my-header-yichong 2.1.8 → 2.1.9

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/my-header.js CHANGED
@@ -5551,7 +5551,7 @@ const je = (e) => (pt("data-v-c970699f"), e = e(), ht(), e), Lf = {
5551
5551
  { name: "Screen&Audio Recorder", href: "https://recorder.livepolls.app/recorder" },
5552
5552
  { name: "ChatGPT Slides Maker", href: "https://www.livepolls.app/ai_slide_generator" },
5553
5553
  { name: "More Apps >", href: "https://www.livepolls.app/apps" }
5554
- ].filter((w) => w.href != "https://www.livepolls.app" + s), i = C(
5554
+ ].filter((w) => w.href != location.origin + s), i = C(
5555
5555
  n.isShenHe ? [
5556
5556
  { name: "Privacy Policy", href: s + "/privacy", target: "_blank" }
5557
5557
  ] : [
package/my-header.umd.cjs CHANGED
@@ -1,26 +1,26 @@
1
- (function(r,ye){typeof exports=="object"&&typeof module<"u"?module.exports=ye(require("vue")):typeof define=="function"&&define.amd?define(["vue"],ye):(r=typeof globalThis<"u"?globalThis:r||self,r["my-header"]=ye(r.Vue))})(this,function(r){"use strict";function ye(e,t){return function(){return e.apply(t,arguments)}}const{toString:Nr}=Object.prototype,{getPrototypeOf:Et}=Object,Je=(e=>t=>{const n=Nr.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),K=e=>(e=e.toLowerCase(),t=>Je(t)===e),Ke=e=>t=>typeof t===e,{isArray:be}=Array,$e=Ke("undefined");function xr(e){return e!==null&&!$e(e)&&e.constructor!==null&&!$e(e.constructor)&&U(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const hn=K("ArrayBuffer");function Cr(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&hn(e.buffer),t}const Or=Ke("string"),U=Ke("function"),gn=Ke("number"),Qe=e=>e!==null&&typeof e=="object",Pr=e=>e===!0||e===!1,Ye=e=>{if(Je(e)!=="object")return!1;const t=Et(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},kr=K("Date"),Tr=K("File"),$r=K("Blob"),Lr=K("FileList"),Br=e=>Qe(e)&&U(e.pipe),Ar=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||U(e.append)&&((t=Je(e))==="formdata"||t==="object"&&U(e.toString)&&e.toString()==="[object FormData]"))},Vr=K("URLSearchParams"),Fr=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Le(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let o,s;if(typeof e!="object"&&(e=[e]),be(e))for(o=0,s=e.length;o<s;o++)t.call(null,e[o],o,e);else{const a=n?Object.getOwnPropertyNames(e):Object.keys(e),l=a.length;let i;for(o=0;o<l;o++)i=a[o],t.call(null,e[i],i,e)}}function yn(e,t){t=t.toLowerCase();const n=Object.keys(e);let o=n.length,s;for(;o-- >0;)if(s=n[o],t===s.toLowerCase())return s;return null}const bn=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),_n=e=>!$e(e)&&e!==bn;function vt(){const{caseless:e}=_n(this)&&this||{},t={},n=(o,s)=>{const a=e&&yn(t,s)||s;Ye(t[a])&&Ye(o)?t[a]=vt(t[a],o):Ye(o)?t[a]=vt({},o):be(o)?t[a]=o.slice():t[a]=o};for(let o=0,s=arguments.length;o<s;o++)arguments[o]&&Le(arguments[o],n);return t}const Ir=(e,t,n,{allOwnKeys:o}={})=>(Le(t,(s,a)=>{n&&U(s)?e[a]=ye(s,n):e[a]=s},{allOwnKeys:o}),e),Dr=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Rr=(e,t,n,o)=>{e.prototype=Object.create(t.prototype,o),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},jr=(e,t,n,o)=>{let s,a,l;const i={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),a=s.length;a-- >0;)l=s[a],(!o||o(l,e,t))&&!i[l]&&(t[l]=e[l],i[l]=!0);e=n!==!1&&Et(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Mr=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const o=e.indexOf(t,n);return o!==-1&&o===n},Ur=e=>{if(!e)return null;if(be(e))return e;let t=e.length;if(!gn(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},zr=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Et(Uint8Array)),Hr=(e,t)=>{const o=(e&&e[Symbol.iterator]).call(e);let s;for(;(s=o.next())&&!s.done;){const a=s.value;t.call(e,a[0],a[1])}},qr=(e,t)=>{let n;const o=[];for(;(n=e.exec(t))!==null;)o.push(n);return o},Wr=K("HTMLFormElement"),Gr=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,o,s){return o.toUpperCase()+s}),wn=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Jr=K("RegExp"),En=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),o={};Le(n,(s,a)=>{t(s,a,e)!==!1&&(o[a]=s)}),Object.defineProperties(e,o)},Kr=e=>{En(e,(t,n)=>{if(U(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const o=e[n];if(U(o)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Qr=(e,t)=>{const n={},o=s=>{s.forEach(a=>{n[a]=!0})};return be(e)?o(e):o(String(e).split(t)),n},Yr=()=>{},Xr=(e,t)=>(e=+e,Number.isFinite(e)?e:t),St="abcdefghijklmnopqrstuvwxyz",vn="0123456789",Sn={DIGIT:vn,ALPHA:St,ALPHA_DIGIT:St+St.toUpperCase()+vn},Zr=(e=16,t=Sn.ALPHA_DIGIT)=>{let n="";const{length:o}=t;for(;e--;)n+=t[Math.random()*o|0];return n};function es(e){return!!(e&&U(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const ts=e=>{const t=new Array(10),n=(o,s)=>{if(Qe(o)){if(t.indexOf(o)>=0)return;if(!("toJSON"in o)){t[s]=o;const a=be(o)?[]:{};return Le(o,(l,i)=>{const f=n(l,s+1);!$e(f)&&(a[i]=f)}),t[s]=void 0,a}}return o};return n(e,0)},ns=K("AsyncFunction"),y={isArray:be,isArrayBuffer:hn,isBuffer:xr,isFormData:Ar,isArrayBufferView:Cr,isString:Or,isNumber:gn,isBoolean:Pr,isObject:Qe,isPlainObject:Ye,isUndefined:$e,isDate:kr,isFile:Tr,isBlob:$r,isRegExp:Jr,isFunction:U,isStream:Br,isURLSearchParams:Vr,isTypedArray:zr,isFileList:Lr,forEach:Le,merge:vt,extend:Ir,trim:Fr,stripBOM:Dr,inherits:Rr,toFlatObject:jr,kindOf:Je,kindOfTest:K,endsWith:Mr,toArray:Ur,forEachEntry:Hr,matchAll:qr,isHTMLForm:Wr,hasOwnProperty:wn,hasOwnProp:wn,reduceDescriptors:En,freezeMethods:Kr,toObjectSet:Qr,toCamelCase:Gr,noop:Yr,toFiniteNumber:Xr,findKey:yn,global:bn,isContextDefined:_n,ALPHABET:Sn,generateString:Zr,isSpecCompliantForm:es,toJSONObject:ts,isAsyncFn:ns,isThenable:e=>e&&(Qe(e)||U(e))&&U(e.then)&&U(e.catch)};function P(e,t,n,o,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),o&&(this.request=o),s&&(this.response=s)}y.inherits(P,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:y.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Nn=P.prototype,xn={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{xn[e]={value:e}}),Object.defineProperties(P,xn),Object.defineProperty(Nn,"isAxiosError",{value:!0}),P.from=(e,t,n,o,s,a)=>{const l=Object.create(Nn);return y.toFlatObject(e,l,function(f){return f!==Error.prototype},i=>i!=="isAxiosError"),P.call(l,e.message,t,n,o,s),l.cause=e,l.name=e.name,a&&Object.assign(l,a),l};const os=null;function Nt(e){return y.isPlainObject(e)||y.isArray(e)}function Cn(e){return y.endsWith(e,"[]")?e.slice(0,-2):e}function On(e,t,n){return e?e.concat(t).map(function(s,a){return s=Cn(s),!n&&a?"["+s+"]":s}).join(n?".":""):t}function rs(e){return y.isArray(e)&&!e.some(Nt)}const ss=y.toFlatObject(y,{},null,function(t){return/^is[A-Z]/.test(t)});function Xe(e,t,n){if(!y.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=y.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(h,_){return!y.isUndefined(_[h])});const o=n.metaTokens,s=n.visitor||u,a=n.dots,l=n.indexes,f=(n.Blob||typeof Blob<"u"&&Blob)&&y.isSpecCompliantForm(t);if(!y.isFunction(s))throw new TypeError("visitor must be a function");function c(g){if(g===null)return"";if(y.isDate(g))return g.toISOString();if(!f&&y.isBlob(g))throw new P("Blob is not supported. Use a Buffer instead.");return y.isArrayBuffer(g)||y.isTypedArray(g)?f&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function u(g,h,_){let w=g;if(g&&!_&&typeof g=="object"){if(y.endsWith(h,"{}"))h=o?h:h.slice(0,-2),g=JSON.stringify(g);else if(y.isArray(g)&&rs(g)||(y.isFileList(g)||y.endsWith(h,"[]"))&&(w=y.toArray(g)))return h=Cn(h),w.forEach(function(x,k){!(y.isUndefined(x)||x===null)&&t.append(l===!0?On([h],k,a):l===null?h:h+"[]",c(x))}),!1}return Nt(g)?!0:(t.append(On(_,h,a),c(g)),!1)}const d=[],p=Object.assign(ss,{defaultVisitor:u,convertValue:c,isVisitable:Nt});function m(g,h){if(!y.isUndefined(g)){if(d.indexOf(g)!==-1)throw Error("Circular reference detected in "+h.join("."));d.push(g),y.forEach(g,function(w,O){(!(y.isUndefined(w)||w===null)&&s.call(t,w,y.isString(O)?O.trim():O,h,p))===!0&&m(w,h?h.concat(O):[O])}),d.pop()}}if(!y.isObject(e))throw new TypeError("data must be an object");return m(e),t}function Pn(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(o){return t[o]})}function xt(e,t){this._pairs=[],e&&Xe(e,this,t)}const kn=xt.prototype;kn.append=function(t,n){this._pairs.push([t,n])},kn.toString=function(t){const n=t?function(o){return t.call(this,o,Pn)}:Pn;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function as(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Tn(e,t,n){if(!t)return e;const o=n&&n.encode||as,s=n&&n.serialize;let a;if(s?a=s(t,n):a=y.isURLSearchParams(t)?t.toString():new xt(t,n).toString(o),a){const l=e.indexOf("#");l!==-1&&(e=e.slice(0,l)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class ls{constructor(){this.handlers=[]}use(t,n,o){return this.handlers.push({fulfilled:t,rejected:n,synchronous:o?o.synchronous:!1,runWhen:o?o.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){y.forEach(this.handlers,function(o){o!==null&&t(o)})}}const $n=ls,Ln={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},is=typeof URLSearchParams<"u"?URLSearchParams:xt,cs=typeof FormData<"u"?FormData:null,us=typeof Blob<"u"?Blob:null,ds=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),fs=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),Q={isBrowser:!0,classes:{URLSearchParams:is,FormData:cs,Blob:us},isStandardBrowserEnv:ds,isStandardBrowserWebWorkerEnv:fs,protocols:["http","https","file","blob","url","data"]};function ps(e,t){return Xe(e,new Q.classes.URLSearchParams,Object.assign({visitor:function(n,o,s,a){return Q.isNode&&y.isBuffer(n)?(this.append(o,n.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},t))}function ms(e){return y.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function hs(e){const t={},n=Object.keys(e);let o;const s=n.length;let a;for(o=0;o<s;o++)a=n[o],t[a]=e[a];return t}function Bn(e){function t(n,o,s,a){let l=n[a++];const i=Number.isFinite(+l),f=a>=n.length;return l=!l&&y.isArray(s)?s.length:l,f?(y.hasOwnProp(s,l)?s[l]=[s[l],o]:s[l]=o,!i):((!s[l]||!y.isObject(s[l]))&&(s[l]=[]),t(n,o,s[l],a)&&y.isArray(s[l])&&(s[l]=hs(s[l])),!i)}if(y.isFormData(e)&&y.isFunction(e.entries)){const n={};return y.forEachEntry(e,(o,s)=>{t(ms(o),s,n,0)}),n}return null}const gs={"Content-Type":void 0};function ys(e,t,n){if(y.isString(e))try{return(t||JSON.parse)(e),y.trim(e)}catch(o){if(o.name!=="SyntaxError")throw o}return(n||JSON.stringify)(e)}const Ze={transitional:Ln,adapter:["xhr","http"],transformRequest:[function(t,n){const o=n.getContentType()||"",s=o.indexOf("application/json")>-1,a=y.isObject(t);if(a&&y.isHTMLForm(t)&&(t=new FormData(t)),y.isFormData(t))return s&&s?JSON.stringify(Bn(t)):t;if(y.isArrayBuffer(t)||y.isBuffer(t)||y.isStream(t)||y.isFile(t)||y.isBlob(t))return t;if(y.isArrayBufferView(t))return t.buffer;if(y.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let i;if(a){if(o.indexOf("application/x-www-form-urlencoded")>-1)return ps(t,this.formSerializer).toString();if((i=y.isFileList(t))||o.indexOf("multipart/form-data")>-1){const f=this.env&&this.env.FormData;return Xe(i?{"files[]":t}:t,f&&new f,this.formSerializer)}}return a||s?(n.setContentType("application/json",!1),ys(t)):t}],transformResponse:[function(t){const n=this.transitional||Ze.transitional,o=n&&n.forcedJSONParsing,s=this.responseType==="json";if(t&&y.isString(t)&&(o&&!this.responseType||s)){const l=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(t)}catch(i){if(l)throw i.name==="SyntaxError"?P.from(i,P.ERR_BAD_RESPONSE,this,null,this.response):i}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Q.classes.FormData,Blob:Q.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};y.forEach(["delete","get","head"],function(t){Ze.headers[t]={}}),y.forEach(["post","put","patch"],function(t){Ze.headers[t]=y.merge(gs)});const Ct=Ze,bs=y.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),_s=e=>{const t={};let n,o,s;return e&&e.split(`
2
- `).forEach(function(l){s=l.indexOf(":"),n=l.substring(0,s).trim().toLowerCase(),o=l.substring(s+1).trim(),!(!n||t[n]&&bs[n])&&(n==="set-cookie"?t[n]?t[n].push(o):t[n]=[o]:t[n]=t[n]?t[n]+", "+o:o)}),t},An=Symbol("internals");function Be(e){return e&&String(e).trim().toLowerCase()}function et(e){return e===!1||e==null?e:y.isArray(e)?e.map(et):String(e)}function ws(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let o;for(;o=n.exec(e);)t[o[1]]=o[2];return t}const Es=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Ot(e,t,n,o,s){if(y.isFunction(o))return o.call(this,t,n);if(s&&(t=n),!!y.isString(t)){if(y.isString(o))return t.indexOf(o)!==-1;if(y.isRegExp(o))return o.test(t)}}function vs(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,o)=>n.toUpperCase()+o)}function Ss(e,t){const n=y.toCamelCase(" "+t);["get","set","has"].forEach(o=>{Object.defineProperty(e,o+n,{value:function(s,a,l){return this[o].call(this,t,s,a,l)},configurable:!0})})}class tt{constructor(t){t&&this.set(t)}set(t,n,o){const s=this;function a(i,f,c){const u=Be(f);if(!u)throw new Error("header name must be a non-empty string");const d=y.findKey(s,u);(!d||s[d]===void 0||c===!0||c===void 0&&s[d]!==!1)&&(s[d||f]=et(i))}const l=(i,f)=>y.forEach(i,(c,u)=>a(c,u,f));return y.isPlainObject(t)||t instanceof this.constructor?l(t,n):y.isString(t)&&(t=t.trim())&&!Es(t)?l(_s(t),n):t!=null&&a(n,t,o),this}get(t,n){if(t=Be(t),t){const o=y.findKey(this,t);if(o){const s=this[o];if(!n)return s;if(n===!0)return ws(s);if(y.isFunction(n))return n.call(this,s,o);if(y.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Be(t),t){const o=y.findKey(this,t);return!!(o&&this[o]!==void 0&&(!n||Ot(this,this[o],o,n)))}return!1}delete(t,n){const o=this;let s=!1;function a(l){if(l=Be(l),l){const i=y.findKey(o,l);i&&(!n||Ot(o,o[i],i,n))&&(delete o[i],s=!0)}}return y.isArray(t)?t.forEach(a):a(t),s}clear(t){const n=Object.keys(this);let o=n.length,s=!1;for(;o--;){const a=n[o];(!t||Ot(this,this[a],a,t,!0))&&(delete this[a],s=!0)}return s}normalize(t){const n=this,o={};return y.forEach(this,(s,a)=>{const l=y.findKey(o,a);if(l){n[l]=et(s),delete n[a];return}const i=t?vs(a):String(a).trim();i!==a&&delete n[a],n[i]=et(s),o[i]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return y.forEach(this,(o,s)=>{o!=null&&o!==!1&&(n[s]=t&&y.isArray(o)?o.join(", "):o)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
3
- `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const o=new this(t);return n.forEach(s=>o.set(s)),o}static accessor(t){const o=(this[An]=this[An]={accessors:{}}).accessors,s=this.prototype;function a(l){const i=Be(l);o[i]||(Ss(s,l),o[i]=!0)}return y.isArray(t)?t.forEach(a):a(t),this}}tt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),y.freezeMethods(tt.prototype),y.freezeMethods(tt);const ee=tt;function Pt(e,t){const n=this||Ct,o=t||n,s=ee.from(o.headers);let a=o.data;return y.forEach(e,function(i){a=i.call(n,a,s.normalize(),t?t.status:void 0)}),s.normalize(),a}function Vn(e){return!!(e&&e.__CANCEL__)}function Ae(e,t,n){P.call(this,e??"canceled",P.ERR_CANCELED,t,n),this.name="CanceledError"}y.inherits(Ae,P,{__CANCEL__:!0});function Ns(e,t,n){const o=n.config.validateStatus;!n.status||!o||o(n.status)?e(n):t(new P("Request failed with status code "+n.status,[P.ERR_BAD_REQUEST,P.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const xs=Q.isStandardBrowserEnv?function(){return{write:function(n,o,s,a,l,i){const f=[];f.push(n+"="+encodeURIComponent(o)),y.isNumber(s)&&f.push("expires="+new Date(s).toGMTString()),y.isString(a)&&f.push("path="+a),y.isString(l)&&f.push("domain="+l),i===!0&&f.push("secure"),document.cookie=f.join("; ")},read:function(n){const o=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return o?decodeURIComponent(o[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function Cs(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Os(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function Fn(e,t){return e&&!Cs(t)?Os(e,t):t}const Ps=Q.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let o;function s(a){let l=a;return t&&(n.setAttribute("href",l),l=n.href),n.setAttribute("href",l),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return o=s(window.location.href),function(l){const i=y.isString(l)?s(l):l;return i.protocol===o.protocol&&i.host===o.host}}():function(){return function(){return!0}}();function ks(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Ts(e,t){e=e||10;const n=new Array(e),o=new Array(e);let s=0,a=0,l;return t=t!==void 0?t:1e3,function(f){const c=Date.now(),u=o[a];l||(l=c),n[s]=f,o[s]=c;let d=a,p=0;for(;d!==s;)p+=n[d++],d=d%e;if(s=(s+1)%e,s===a&&(a=(a+1)%e),c-l<t)return;const m=u&&c-u;return m?Math.round(p*1e3/m):void 0}}function In(e,t){let n=0;const o=Ts(50,250);return s=>{const a=s.loaded,l=s.lengthComputable?s.total:void 0,i=a-n,f=o(i),c=a<=l;n=a;const u={loaded:a,total:l,progress:l?a/l:void 0,bytes:i,rate:f||void 0,estimated:f&&l&&c?(l-a)/f:void 0,event:s};u[t?"download":"upload"]=!0,e(u)}}const nt={http:os,xhr:typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(n,o){let s=e.data;const a=ee.from(e.headers).normalize(),l=e.responseType;let i;function f(){e.cancelToken&&e.cancelToken.unsubscribe(i),e.signal&&e.signal.removeEventListener("abort",i)}y.isFormData(s)&&(Q.isStandardBrowserEnv||Q.isStandardBrowserWebWorkerEnv?a.setContentType(!1):a.setContentType("multipart/form-data;",!1));let c=new XMLHttpRequest;if(e.auth){const m=e.auth.username||"",g=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";a.set("Authorization","Basic "+btoa(m+":"+g))}const u=Fn(e.baseURL,e.url);c.open(e.method.toUpperCase(),Tn(u,e.params,e.paramsSerializer),!0),c.timeout=e.timeout;function d(){if(!c)return;const m=ee.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders()),h={data:!l||l==="text"||l==="json"?c.responseText:c.response,status:c.status,statusText:c.statusText,headers:m,config:e,request:c};Ns(function(w){n(w),f()},function(w){o(w),f()},h),c=null}if("onloadend"in c?c.onloadend=d:c.onreadystatechange=function(){!c||c.readyState!==4||c.status===0&&!(c.responseURL&&c.responseURL.indexOf("file:")===0)||setTimeout(d)},c.onabort=function(){c&&(o(new P("Request aborted",P.ECONNABORTED,e,c)),c=null)},c.onerror=function(){o(new P("Network Error",P.ERR_NETWORK,e,c)),c=null},c.ontimeout=function(){let g=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const h=e.transitional||Ln;e.timeoutErrorMessage&&(g=e.timeoutErrorMessage),o(new P(g,h.clarifyTimeoutError?P.ETIMEDOUT:P.ECONNABORTED,e,c)),c=null},Q.isStandardBrowserEnv){const m=(e.withCredentials||Ps(u))&&e.xsrfCookieName&&xs.read(e.xsrfCookieName);m&&a.set(e.xsrfHeaderName,m)}s===void 0&&a.setContentType(null),"setRequestHeader"in c&&y.forEach(a.toJSON(),function(g,h){c.setRequestHeader(h,g)}),y.isUndefined(e.withCredentials)||(c.withCredentials=!!e.withCredentials),l&&l!=="json"&&(c.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&c.addEventListener("progress",In(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&c.upload&&c.upload.addEventListener("progress",In(e.onUploadProgress)),(e.cancelToken||e.signal)&&(i=m=>{c&&(o(!m||m.type?new Ae(null,e,c):m),c.abort(),c=null)},e.cancelToken&&e.cancelToken.subscribe(i),e.signal&&(e.signal.aborted?i():e.signal.addEventListener("abort",i)));const p=ks(u);if(p&&Q.protocols.indexOf(p)===-1){o(new P("Unsupported protocol "+p+":",P.ERR_BAD_REQUEST,e));return}c.send(s||null)})}};y.forEach(nt,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const $s={getAdapter:e=>{e=y.isArray(e)?e:[e];const{length:t}=e;let n,o;for(let s=0;s<t&&(n=e[s],!(o=y.isString(n)?nt[n.toLowerCase()]:n));s++);if(!o)throw o===!1?new P(`Adapter ${n} is not supported by the environment`,"ERR_NOT_SUPPORT"):new Error(y.hasOwnProp(nt,n)?`Adapter '${n}' is not available in the build`:`Unknown adapter '${n}'`);if(!y.isFunction(o))throw new TypeError("adapter is not a function");return o},adapters:nt};function kt(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ae(null,e)}function Dn(e){return kt(e),e.headers=ee.from(e.headers),e.data=Pt.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),$s.getAdapter(e.adapter||Ct.adapter)(e).then(function(o){return kt(e),o.data=Pt.call(e,e.transformResponse,o),o.headers=ee.from(o.headers),o},function(o){return Vn(o)||(kt(e),o&&o.response&&(o.response.data=Pt.call(e,e.transformResponse,o.response),o.response.headers=ee.from(o.response.headers))),Promise.reject(o)})}const Rn=e=>e instanceof ee?e.toJSON():e;function _e(e,t){t=t||{};const n={};function o(c,u,d){return y.isPlainObject(c)&&y.isPlainObject(u)?y.merge.call({caseless:d},c,u):y.isPlainObject(u)?y.merge({},u):y.isArray(u)?u.slice():u}function s(c,u,d){if(y.isUndefined(u)){if(!y.isUndefined(c))return o(void 0,c,d)}else return o(c,u,d)}function a(c,u){if(!y.isUndefined(u))return o(void 0,u)}function l(c,u){if(y.isUndefined(u)){if(!y.isUndefined(c))return o(void 0,c)}else return o(void 0,u)}function i(c,u,d){if(d in t)return o(c,u);if(d in e)return o(void 0,c)}const f={url:a,method:a,data:a,baseURL:l,transformRequest:l,transformResponse:l,paramsSerializer:l,timeout:l,timeoutMessage:l,withCredentials:l,adapter:l,responseType:l,xsrfCookieName:l,xsrfHeaderName:l,onUploadProgress:l,onDownloadProgress:l,decompress:l,maxContentLength:l,maxBodyLength:l,beforeRedirect:l,transport:l,httpAgent:l,httpsAgent:l,cancelToken:l,socketPath:l,responseEncoding:l,validateStatus:i,headers:(c,u)=>s(Rn(c),Rn(u),!0)};return y.forEach(Object.keys(Object.assign({},e,t)),function(u){const d=f[u]||s,p=d(e[u],t[u],u);y.isUndefined(p)&&d!==i||(n[u]=p)}),n}const jn="1.4.0",Tt={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Tt[e]=function(o){return typeof o===e||"a"+(t<1?"n ":" ")+e}});const Mn={};Tt.transitional=function(t,n,o){function s(a,l){return"[Axios v"+jn+"] Transitional option '"+a+"'"+l+(o?". "+o:"")}return(a,l,i)=>{if(t===!1)throw new P(s(l," has been removed"+(n?" in "+n:"")),P.ERR_DEPRECATED);return n&&!Mn[l]&&(Mn[l]=!0,console.warn(s(l," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(a,l,i):!0}};function Ls(e,t,n){if(typeof e!="object")throw new P("options must be an object",P.ERR_BAD_OPTION_VALUE);const o=Object.keys(e);let s=o.length;for(;s-- >0;){const a=o[s],l=t[a];if(l){const i=e[a],f=i===void 0||l(i,a,e);if(f!==!0)throw new P("option "+a+" must be "+f,P.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new P("Unknown option "+a,P.ERR_BAD_OPTION)}}const $t={assertOptions:Ls,validators:Tt},ne=$t.validators;class ot{constructor(t){this.defaults=t,this.interceptors={request:new $n,response:new $n}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=_e(this.defaults,n);const{transitional:o,paramsSerializer:s,headers:a}=n;o!==void 0&&$t.assertOptions(o,{silentJSONParsing:ne.transitional(ne.boolean),forcedJSONParsing:ne.transitional(ne.boolean),clarifyTimeoutError:ne.transitional(ne.boolean)},!1),s!=null&&(y.isFunction(s)?n.paramsSerializer={serialize:s}:$t.assertOptions(s,{encode:ne.function,serialize:ne.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let l;l=a&&y.merge(a.common,a[n.method]),l&&y.forEach(["delete","get","head","post","put","patch","common"],g=>{delete a[g]}),n.headers=ee.concat(l,a);const i=[];let f=!0;this.interceptors.request.forEach(function(h){typeof h.runWhen=="function"&&h.runWhen(n)===!1||(f=f&&h.synchronous,i.unshift(h.fulfilled,h.rejected))});const c=[];this.interceptors.response.forEach(function(h){c.push(h.fulfilled,h.rejected)});let u,d=0,p;if(!f){const g=[Dn.bind(this),void 0];for(g.unshift.apply(g,i),g.push.apply(g,c),p=g.length,u=Promise.resolve(n);d<p;)u=u.then(g[d++],g[d++]);return u}p=i.length;let m=n;for(d=0;d<p;){const g=i[d++],h=i[d++];try{m=g(m)}catch(_){h.call(this,_);break}}try{u=Dn.call(this,m)}catch(g){return Promise.reject(g)}for(d=0,p=c.length;d<p;)u=u.then(c[d++],c[d++]);return u}getUri(t){t=_e(this.defaults,t);const n=Fn(t.baseURL,t.url);return Tn(n,t.params,t.paramsSerializer)}}y.forEach(["delete","get","head","options"],function(t){ot.prototype[t]=function(n,o){return this.request(_e(o||{},{method:t,url:n,data:(o||{}).data}))}}),y.forEach(["post","put","patch"],function(t){function n(o){return function(a,l,i){return this.request(_e(i||{},{method:t,headers:o?{"Content-Type":"multipart/form-data"}:{},url:a,data:l}))}}ot.prototype[t]=n(),ot.prototype[t+"Form"]=n(!0)});const rt=ot;class Lt{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(a){n=a});const o=this;this.promise.then(s=>{if(!o._listeners)return;let a=o._listeners.length;for(;a-- >0;)o._listeners[a](s);o._listeners=null}),this.promise.then=s=>{let a;const l=new Promise(i=>{o.subscribe(i),a=i}).then(s);return l.cancel=function(){o.unsubscribe(a)},l},t(function(a,l,i){o.reason||(o.reason=new Ae(a,l,i),n(o.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new Lt(function(s){t=s}),cancel:t}}}const Bs=Lt;function As(e){return function(n){return e.apply(null,n)}}function Vs(e){return y.isObject(e)&&e.isAxiosError===!0}const Bt={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Bt).forEach(([e,t])=>{Bt[t]=e});const Fs=Bt;function Un(e){const t=new rt(e),n=ye(rt.prototype.request,t);return y.extend(n,rt.prototype,t,{allOwnKeys:!0}),y.extend(n,t,null,{allOwnKeys:!0}),n.create=function(s){return Un(_e(e,s))},n}const A=Un(Ct);A.Axios=rt,A.CanceledError=Ae,A.CancelToken=Bs,A.isCancel=Vn,A.VERSION=jn,A.toFormData=Xe,A.AxiosError=P,A.Cancel=A.CanceledError,A.all=function(t){return Promise.all(t)},A.spread=As,A.isAxiosError=Vs,A.mergeConfig=_e,A.AxiosHeaders=ee,A.formToJSON=e=>Bn(y.isHTMLForm(e)?new FormData(e):e),A.HttpStatusCode=Fs,A.default=A;const zn=A.create({baseURL:"https://a2.imgkits.com",timeout:5e4});zn.interceptors.request.use(e=>(console.log(e),e),e=>Promise.reject(e)),zn.interceptors.response.use(e=>e.data,e=>Promise.reject(new Error(e)));const At="@",Ve=window.localStorage,Hn={number:{save:e=>e,parse:e=>Number.parseFloat(e)},object:{save:e=>JSON.stringify(e),parse:e=>JSON.parse(e)},undefined:{save:e=>e,parse:()=>{}},default:{save:e=>e,parse:e=>e}};function qn(e){return Hn[e]||Hn.default}const st={get(e){let t=Ve.getItem(e);if(t){let n=t.split("@"),o,s=Date.now();if(n.length>2&&n[2]<s)return Ve.removeItem(e),null;{let a=decodeURIComponent(n[1]);return o=qn(n[0]).parse(a),o}}return null},put(e,t,n){const o=typeof t,s=qn(o);if(!n)t=o+At+encodeURIComponent(s.save(t));else{let a=n*24*60*60*1e3+new Date().getTime();t=o+At+encodeURIComponent(s.save(t))+At+a}Ve.setItem(e,t)},clear(){Ve.clear()},remove(e){Ve.removeItem(e)}};var Is=!1;function at(e,t,n){return Array.isArray(e)?(e.length=Math.max(e.length,t),e.splice(t,1,n),n):(e[t]=n,n)}function Vt(e,t){if(Array.isArray(e)){e.splice(t,1);return}delete e[t]}var Wn;const re=typeof window<"u",Ds=e=>typeof e=="string",Rs=()=>{};re&&((Wn=window==null?void 0:window.navigator)!=null&&Wn.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function Ft(e){return typeof e=="function"?e():r.unref(e)}function js(e){return e}function It(e){return r.getCurrentScope()?(r.onScopeDispose(e),!0):!1}function Ms(e,t=!0){r.getCurrentInstance()?r.onMounted(e):t?e():r.nextTick(e)}function Us(e,t,n={}){const{immediate:o=!0}=n,s=r.ref(!1);let a=null;function l(){a&&(clearTimeout(a),a=null)}function i(){s.value=!1,l()}function f(...c){l(),s.value=!0,a=setTimeout(()=>{s.value=!1,a=null,e(...c)},Ft(t))}return o&&(s.value=!0,re&&f()),It(i),{isPending:r.readonly(s),start:f,stop:i}}function Gn(e){var t;const n=Ft(e);return(t=n==null?void 0:n.$el)!=null?t:n}const Jn=re?window:void 0;function zs(...e){let t,n,o,s;if(Ds(e[0])||Array.isArray(e[0])?([n,o,s]=e,t=Jn):[t,n,o,s]=e,!t)return Rs;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const a=[],l=()=>{a.forEach(u=>u()),a.length=0},i=(u,d,p,m)=>(u.addEventListener(d,p,m),()=>u.removeEventListener(d,p,m)),f=r.watch(()=>[Gn(t),Ft(s)],([u,d])=>{l(),u&&a.push(...n.flatMap(p=>o.map(m=>i(u,p,m,d))))},{immediate:!0,flush:"post"}),c=()=>{f(),l()};return It(c),c}function Hs(e,t=!1){const n=r.ref(),o=()=>n.value=!!e();return o(),Ms(o,t),n}const Kn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Qn="__vueuse_ssr_handlers__";Kn[Qn]=Kn[Qn]||{};var Yn=Object.getOwnPropertySymbols,qs=Object.prototype.hasOwnProperty,Ws=Object.prototype.propertyIsEnumerable,Gs=(e,t)=>{var n={};for(var o in e)qs.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&Yn)for(var o of Yn(e))t.indexOf(o)<0&&Ws.call(e,o)&&(n[o]=e[o]);return n};function Js(e,t,n={}){const o=n,{window:s=Jn}=o,a=Gs(o,["window"]);let l;const i=Hs(()=>s&&"ResizeObserver"in s),f=()=>{l&&(l.disconnect(),l=void 0)},c=r.watch(()=>Gn(e),d=>{f(),i.value&&s&&d&&(l=new ResizeObserver(t),l.observe(d,a))},{immediate:!0,flush:"post"}),u=()=>{f(),c()};return It(u),{isSupported:i,stop:u}}var Xn;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(Xn||(Xn={}));var Ks=Object.defineProperty,Zn=Object.getOwnPropertySymbols,Qs=Object.prototype.hasOwnProperty,Ys=Object.prototype.propertyIsEnumerable,eo=(e,t,n)=>t in e?Ks(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Xs=(e,t)=>{for(var n in t||(t={}))Qs.call(t,n)&&eo(e,n,t[n]);if(Zn)for(var n of Zn(t))Ys.call(t,n)&&eo(e,n,t[n]);return e};Xs({linear:js},{easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]}),process.env.NODE_ENV!=="production"&&Object.freeze({}),process.env.NODE_ENV!=="production"&&Object.freeze([]);const Zs=Object.prototype.hasOwnProperty,to=(e,t)=>Zs.call(e,t),Dt=e=>typeof e=="function",se=e=>typeof e=="string",lt=e=>e!==null&&typeof e=="object",no=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},ea=/-(\w)/g,ta=no(e=>e.replace(ea,(t,n)=>n?n.toUpperCase():"")),na=/\B([A-Z])/g,oa=no(e=>e.replace(na,"-$1").toLowerCase());var ra=typeof global=="object"&&global&&global.Object===Object&&global;const sa=ra;var aa=typeof self=="object"&&self&&self.Object===Object&&self,la=sa||aa||Function("return this")();const Rt=la;var ia=Rt.Symbol;const we=ia;var oo=Object.prototype,ca=oo.hasOwnProperty,ua=oo.toString,Fe=we?we.toStringTag:void 0;function da(e){var t=ca.call(e,Fe),n=e[Fe];try{e[Fe]=void 0;var o=!0}catch{}var s=ua.call(e);return o&&(t?e[Fe]=n:delete e[Fe]),s}var fa=Object.prototype,pa=fa.toString;function ma(e){return pa.call(e)}var ha="[object Null]",ga="[object Undefined]",ro=we?we.toStringTag:void 0;function so(e){return e==null?e===void 0?ga:ha:ro&&ro in Object(e)?da(e):ma(e)}function ya(e){return e!=null&&typeof e=="object"}var ba="[object Symbol]";function jt(e){return typeof e=="symbol"||ya(e)&&so(e)==ba}function _a(e,t){for(var n=-1,o=e==null?0:e.length,s=Array(o);++n<o;)s[n]=t(e[n],n,e);return s}var wa=Array.isArray;const Mt=wa;var Ea=1/0,ao=we?we.prototype:void 0,lo=ao?ao.toString:void 0;function io(e){if(typeof e=="string")return e;if(Mt(e))return _a(e,io)+"";if(jt(e))return lo?lo.call(e):"";var t=e+"";return t=="0"&&1/e==-Ea?"-0":t}function co(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var va="[object AsyncFunction]",Sa="[object Function]",Na="[object GeneratorFunction]",xa="[object Proxy]";function Ca(e){if(!co(e))return!1;var t=so(e);return t==Sa||t==Na||t==va||t==xa}var Oa=Rt["__core-js_shared__"];const Ut=Oa;var uo=function(){var e=/[^.]+$/.exec(Ut&&Ut.keys&&Ut.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Pa(e){return!!uo&&uo in e}var ka=Function.prototype,Ta=ka.toString;function $a(e){if(e!=null){try{return Ta.call(e)}catch{}try{return e+""}catch{}}return""}var La=/[\\^$.*+?()[\]{}|]/g,Ba=/^\[object .+?Constructor\]$/,Aa=Function.prototype,Va=Object.prototype,Fa=Aa.toString,Ia=Va.hasOwnProperty,Da=RegExp("^"+Fa.call(Ia).replace(La,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Ra(e){if(!co(e)||Pa(e))return!1;var t=Ca(e)?Da:Ba;return t.test($a(e))}function ja(e,t){return e==null?void 0:e[t]}function fo(e,t){var n=ja(e,t);return Ra(n)?n:void 0}function Ma(e,t){return e===t||e!==e&&t!==t}var Ua=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,za=/^\w*$/;function Ha(e,t){if(Mt(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||jt(e)?!0:za.test(e)||!Ua.test(e)||t!=null&&e in Object(t)}var qa=fo(Object,"create");const Ie=qa;function Wa(){this.__data__=Ie?Ie(null):{},this.size=0}function Ga(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Ja="__lodash_hash_undefined__",Ka=Object.prototype,Qa=Ka.hasOwnProperty;function Ya(e){var t=this.__data__;if(Ie){var n=t[e];return n===Ja?void 0:n}return Qa.call(t,e)?t[e]:void 0}var Xa=Object.prototype,Za=Xa.hasOwnProperty;function el(e){var t=this.__data__;return Ie?t[e]!==void 0:Za.call(t,e)}var tl="__lodash_hash_undefined__";function nl(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Ie&&t===void 0?tl:t,this}function ae(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}ae.prototype.clear=Wa,ae.prototype.delete=Ga,ae.prototype.get=Ya,ae.prototype.has=el,ae.prototype.set=nl;function ol(){this.__data__=[],this.size=0}function it(e,t){for(var n=e.length;n--;)if(Ma(e[n][0],t))return n;return-1}var rl=Array.prototype,sl=rl.splice;function al(e){var t=this.__data__,n=it(t,e);if(n<0)return!1;var o=t.length-1;return n==o?t.pop():sl.call(t,n,1),--this.size,!0}function ll(e){var t=this.__data__,n=it(t,e);return n<0?void 0:t[n][1]}function il(e){return it(this.__data__,e)>-1}function cl(e,t){var n=this.__data__,o=it(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}function Ee(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}Ee.prototype.clear=ol,Ee.prototype.delete=al,Ee.prototype.get=ll,Ee.prototype.has=il,Ee.prototype.set=cl;var ul=fo(Rt,"Map");const dl=ul;function fl(){this.size=0,this.__data__={hash:new ae,map:new(dl||Ee),string:new ae}}function pl(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function ct(e,t){var n=e.__data__;return pl(t)?n[typeof t=="string"?"string":"hash"]:n.map}function ml(e){var t=ct(this,e).delete(e);return this.size-=t?1:0,t}function hl(e){return ct(this,e).get(e)}function gl(e){return ct(this,e).has(e)}function yl(e,t){var n=ct(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}function le(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}le.prototype.clear=fl,le.prototype.delete=ml,le.prototype.get=hl,le.prototype.has=gl,le.prototype.set=yl;var bl="Expected a function";function zt(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(bl);var n=function(){var o=arguments,s=t?t.apply(this,o):o[0],a=n.cache;if(a.has(s))return a.get(s);var l=e.apply(this,o);return n.cache=a.set(s,l)||a,l};return n.cache=new(zt.Cache||le),n}zt.Cache=le;var _l=500;function wl(e){var t=zt(e,function(o){return n.size===_l&&n.clear(),o}),n=t.cache;return t}var El=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,vl=/\\(\\)?/g,Sl=wl(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(El,function(n,o,s,a){t.push(s?a.replace(vl,"$1"):o||n)}),t});const Nl=Sl;function xl(e){return e==null?"":io(e)}function Cl(e,t){return Mt(e)?e:Ha(e,t)?[e]:Nl(xl(e))}var Ol=1/0;function Pl(e){if(typeof e=="string"||jt(e))return e;var t=e+"";return t=="0"&&1/e==-Ol?"-0":t}function kl(e,t){t=Cl(t,e);for(var n=0,o=t.length;e!=null&&n<o;)e=e[Pl(t[n++])];return n&&n==o?e:void 0}function Tl(e,t,n){var o=e==null?void 0:kl(e,t);return o===void 0?n:o}function $l(e){for(var t=-1,n=e==null?0:e.length,o={};++t<n;){var s=e[t];o[s[0]]=s[1]}return o}const Ll=e=>e===void 0,De=e=>typeof e=="number",Bl=e=>typeof Element>"u"?!1:e instanceof Element,Al=e=>se(e)?!Number.isNaN(Number(e)):!1,po=e=>Object.keys(e);class Vl extends Error{constructor(t){super(t),this.name="ElementPlusError"}}function Ht(e,t){if(process.env.NODE_ENV!=="production"){const n=se(e)?new Vl(`[${e}] ${t}`):e;console.warn(n)}}const Fl="utils/dom/style",mo=(e="")=>e.split(" ").filter(t=>!!t.trim()),ho=(e,t)=>{!e||!t.trim()||e.classList.add(...mo(t))},ut=(e,t)=>{!e||!t.trim()||e.classList.remove(...mo(t))},Re=(e,t)=>{var n;if(!re||!e||!t)return"";let o=ta(t);o==="float"&&(o="cssFloat");try{const s=e.style[o];if(s)return s;const a=(n=document.defaultView)==null?void 0:n.getComputedStyle(e,"");return a?a[o]:""}catch{return e.style[o]}};function Il(e,t="px"){if(!e)return"";if(De(e)||Al(e))return`${e}${t}`;if(se(e))return e;Ht(Fl,"binding value must be a string or number")}/*! Element Plus Icons Vue v2.1.0 */var je=(e,t)=>{let n=e.__vccOpts||e;for(let[o,s]of t)n[o]=s;return n},Dl={name:"CircleCloseFilled"},Rl={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},jl=r.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336L512 457.664z"},null,-1),Ml=[jl];function Ul(e,t,n,o,s,a){return r.openBlock(),r.createElementBlock("svg",Rl,Ml)}var go=je(Dl,[["render",Ul],["__file","circle-close-filled.vue"]]),zl={name:"Close"},Hl={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},ql=r.createElementVNode("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"},null,-1),Wl=[ql];function Gl(e,t,n,o,s,a){return r.openBlock(),r.createElementBlock("svg",Hl,Wl)}var Jl=je(zl,[["render",Gl],["__file","close.vue"]]),Kl={name:"InfoFilled"},Ql={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Yl=r.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64zm67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344zM590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.992 12.992 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"},null,-1),Xl=[Yl];function Zl(e,t,n,o,s,a){return r.openBlock(),r.createElementBlock("svg",Ql,Xl)}var yo=je(Kl,[["render",Zl],["__file","info-filled.vue"]]),ei={name:"SuccessFilled"},ti={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},ni=r.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336L456.192 600.384z"},null,-1),oi=[ni];function ri(e,t,n,o,s,a){return r.openBlock(),r.createElementBlock("svg",ti,oi)}var bo=je(ei,[["render",ri],["__file","success-filled.vue"]]),si={name:"WarningFilled"},ai={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},li=r.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm0 192a58.432 58.432 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.432 58.432 0 0 0 512 256zm0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4z"},null,-1),ii=[li];function ci(e,t,n,o,s,a){return r.openBlock(),r.createElementBlock("svg",ai,ii)}var _o=je(si,[["render",ci],["__file","warning-filled.vue"]]);const wo="__epPropKey",oe=e=>e,ui=e=>lt(e)&&!!e[wo],Eo=(e,t)=>{if(!lt(e)||ui(e))return e;const{values:n,required:o,default:s,type:a,validator:l}=e,f={type:a,required:!!o,validator:n||l?c=>{let u=!1,d=[];if(n&&(d=Array.from(n),to(e,"default")&&d.push(s),u||(u=d.includes(c))),l&&(u||(u=l(c))),!u&&d.length>0){const p=[...new Set(d)].map(m=>JSON.stringify(m)).join(", ");r.warn(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${p}], got value ${JSON.stringify(c)}.`)}return u}:void 0,[wo]:!0};return to(e,"default")&&(f.default=s),f},dt=e=>$l(Object.entries(e).map(([t,n])=>[t,Eo(n,t)])),di=oe([String,Object,Function]),fi={Close:Jl,SuccessFilled:bo,InfoFilled:yo,WarningFilled:_o,CircleCloseFilled:go},vo={success:bo,warning:_o,error:go,info:yo},So=(e,t)=>{if(e.install=n=>{for(const o of[e,...Object.values(t??{})])n.component(o.name,o)},t)for(const[n,o]of Object.entries(t))e[n]=o;return e},pi=(e,t)=>(e.install=n=>{e._context=n._context,n.config.globalProperties[t]=e},e),mi={tab:"Tab",enter:"Enter",space:"Space",left:"ArrowLeft",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",esc:"Escape",delete:"Delete",backspace:"Backspace",numpadEnter:"NumpadEnter",pageUp:"PageUp",pageDown:"PageDown",home:"Home",end:"End"},hi=["","default","small","large"],gi=e=>e;var yi={name:"en",el:{colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color."},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",week:"week",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",page:"Page",prev:"Go to previous page",next:"Go to next page",currentPage:"page {pager}",prevPages:"Previous {pager} pages",nextPages:"Next {pager} pages",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"}}};const bi=e=>(t,n)=>_i(t,n,r.unref(e)),_i=(e,t,n)=>Tl(n,e,e).replace(/\{(\w+)\}/g,(o,s)=>{var a;return`${(a=t==null?void 0:t[s])!=null?a:`{${s}}`}`}),wi=e=>{const t=r.computed(()=>r.unref(e).name),n=r.isRef(e)?e:r.ref(e);return{lang:t,locale:n,t:bi(e)}},No=Symbol("localeContextKey"),Ei=e=>{const t=e||r.inject(No,r.ref());return wi(r.computed(()=>t.value||yi))},ft="el",vi="is-",ie=(e,t,n,o,s)=>{let a=`${e}-${t}`;return n&&(a+=`-${n}`),o&&(a+=`__${o}`),s&&(a+=`--${s}`),a},xo=Symbol("namespaceContextKey"),Si=e=>{const t=e||(r.getCurrentInstance()?r.inject(xo,r.ref(ft)):r.ref(ft));return r.computed(()=>r.unref(t)||ft)},qt=(e,t)=>{const n=Si(t);return{namespace:n,b:(h="")=>ie(n.value,e,h,"",""),e:h=>h?ie(n.value,e,"",h,""):"",m:h=>h?ie(n.value,e,"","",h):"",be:(h,_)=>h&&_?ie(n.value,e,h,_,""):"",em:(h,_)=>h&&_?ie(n.value,e,"",h,_):"",bm:(h,_)=>h&&_?ie(n.value,e,h,"",_):"",bem:(h,_,w)=>h&&_&&w?ie(n.value,e,h,_,w):"",is:(h,..._)=>{const w=_.length>=1?_[0]:!0;return h&&w?`${vi}${h}`:""},cssVar:h=>{const _={};for(const w in h)h[w]&&(_[`--${n.value}-${w}`]=h[w]);return _},cssVarName:h=>`--${n.value}-${h}`,cssVarBlock:h=>{const _={};for(const w in h)h[w]&&(_[`--${n.value}-${e}-${w}`]=h[w]);return _},cssVarBlockName:h=>`--${n.value}-${e}-${h}`}},Co=r.ref(0),Oo=2e3,Po=Symbol("zIndexContextKey"),Ni=e=>{const t=e||(r.getCurrentInstance()?r.inject(Po,void 0):void 0),n=r.computed(()=>{const a=r.unref(t);return De(a)?a:Oo}),o=r.computed(()=>n.value+Co.value);return{initialZIndex:n,currentZIndex:o,nextZIndex:()=>(Co.value++,o.value)}},xi=Eo({type:String,values:hi,required:!1}),Ci=Symbol("size"),ko=Symbol(),pt=r.ref();function To(e,t=void 0){const n=r.getCurrentInstance()?r.inject(ko,pt):pt;return e?r.computed(()=>{var o,s;return(s=(o=n.value)==null?void 0:o[e])!=null?s:t}):n}function $o(e,t){const n=To(),o=qt(e,r.computed(()=>{var i;return((i=n.value)==null?void 0:i.namespace)||ft})),s=Ei(r.computed(()=>{var i;return(i=n.value)==null?void 0:i.locale})),a=Ni(r.computed(()=>{var i;return((i=n.value)==null?void 0:i.zIndex)||Oo})),l=r.computed(()=>{var i;return r.unref(t)||((i=n.value)==null?void 0:i.size)||""});return Lo(r.computed(()=>r.unref(n)||{})),{ns:o,locale:s,zIndex:a,size:l}}const Lo=(e,t,n=!1)=>{var o;const s=!!r.getCurrentInstance(),a=s?To():void 0,l=(o=t==null?void 0:t.provide)!=null?o:s?r.provide:void 0;if(!l){Ht("provideGlobalConfig","provideGlobalConfig() can only be used inside setup().");return}const i=r.computed(()=>{const f=r.unref(e);return a!=null&&a.value?Oi(a.value,f):f});return l(ko,i),l(No,r.computed(()=>i.value.locale)),l(xo,r.computed(()=>i.value.namespace)),l(Po,r.computed(()=>i.value.zIndex)),l(Ci,{size:r.computed(()=>i.value.size||"")}),(n||!pt.value)&&(pt.value=i.value),i},Oi=(e,t)=>{var n;const o=[...new Set([...po(e),...po(t)])],s={};for(const a of o)s[a]=(n=t[a])!=null?n:e[a];return s},Pi=dt({a11y:{type:Boolean,default:!0},locale:{type:oe(Object)},size:xi,button:{type:oe(Object)},experimentalFeatures:{type:oe(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:oe(Object)},zIndex:Number,namespace:{type:String,default:"el"}}),Wt={};r.defineComponent({name:"ElConfigProvider",props:Pi,setup(e,{slots:t}){r.watch(()=>e.message,o=>{Object.assign(Wt,o??{})},{immediate:!0,deep:!0});const n=Lo(e);return()=>r.renderSlot(t,"default",{config:n==null?void 0:n.value})}});var Gt=(e,t)=>{const n=e.__vccOpts||e;for(const[o,s]of t)n[o]=s;return n};const ki=dt({size:{type:oe([Number,String])},color:{type:String}}),Ti=r.defineComponent({name:"ElIcon",inheritAttrs:!1}),$i=r.defineComponent({...Ti,props:ki,setup(e){const t=e,n=qt("icon"),o=r.computed(()=>{const{size:s,color:a}=t;return!s&&!a?{}:{fontSize:Ll(s)?void 0:Il(s),"--color":a}});return(s,a)=>(r.openBlock(),r.createElementBlock("i",r.mergeProps({class:r.unref(n).b(),style:r.unref(o)},s.$attrs),[r.renderSlot(s.$slots,"default")],16))}});var Li=Gt($i,[["__file","/home/runner/work/element-plus/element-plus/packages/components/icon/src/icon.vue"]]);const Bo=So(Li),Bi=dt({value:{type:[String,Number],default:""},max:{type:Number,default:99},isDot:Boolean,hidden:Boolean,type:{type:String,values:["primary","success","warning","info","danger"],default:"danger"}}),Ai=["textContent"],Vi=r.defineComponent({name:"ElBadge"}),Fi=r.defineComponent({...Vi,props:Bi,setup(e,{expose:t}){const n=e,o=qt("badge"),s=r.computed(()=>n.isDot?"":De(n.value)&&De(n.max)?n.max<n.value?`${n.max}+`:`${n.value}`:`${n.value}`);return t({content:s}),(a,l)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(r.unref(o).b())},[r.renderSlot(a.$slots,"default"),r.createVNode(r.Transition,{name:`${r.unref(o).namespace.value}-zoom-in-center`,persisted:""},{default:r.withCtx(()=>[r.withDirectives(r.createElementVNode("sup",{class:r.normalizeClass([r.unref(o).e("content"),r.unref(o).em("content",a.type),r.unref(o).is("fixed",!!a.$slots.default),r.unref(o).is("dot",a.isDot)]),textContent:r.toDisplayString(r.unref(s))},null,10,Ai),[[r.vShow,!a.hidden&&(r.unref(s)||a.isDot)]])]),_:1},8,["name"])],2))}});var Ii=Gt(Fi,[["__file","/home/runner/work/element-plus/element-plus/packages/components/badge/src/badge.vue"]]);const Di=So(Ii);function Ri(e){let t;const n=r.ref(!1),o=r.reactive({...e,originalPosition:"",originalOverflow:"",visible:!1});function s(p){o.text=p}function a(){const p=o.parent,m=d.ns;if(!p.vLoadingAddClassList){let g=p.getAttribute("loading-number");g=Number.parseInt(g)-1,g?p.setAttribute("loading-number",g.toString()):(ut(p,m.bm("parent","relative")),p.removeAttribute("loading-number")),ut(p,m.bm("parent","hidden"))}l(),u.unmount()}function l(){var p,m;(m=(p=d.$el)==null?void 0:p.parentNode)==null||m.removeChild(d.$el)}function i(){var p;e.beforeClose&&!e.beforeClose()||(n.value=!0,clearTimeout(t),t=window.setTimeout(f,400),o.visible=!1,(p=e.closed)==null||p.call(e))}function f(){if(!n.value)return;const p=o.parent;n.value=!1,p.vLoadingAddClassList=void 0,a()}const c=r.defineComponent({name:"ElLoading",setup(p,{expose:m}){const{ns:g,zIndex:h}=$o("loading");return m({ns:g,zIndex:h}),()=>{const _=o.spinner||o.svg,w=r.h("svg",{class:"circular",viewBox:o.svgViewBox?o.svgViewBox:"0 0 50 50",..._?{innerHTML:_}:{}},[r.h("circle",{class:"path",cx:"25",cy:"25",r:"20",fill:"none"})]),O=o.text?r.h("p",{class:g.b("text")},[o.text]):void 0;return r.h(r.Transition,{name:g.b("fade"),onAfterLeave:f},{default:r.withCtx(()=>[r.withDirectives(r.createVNode("div",{style:{backgroundColor:o.background||""},class:[g.b("mask"),o.customClass,o.fullscreen?"is-fullscreen":""]},[r.h("div",{class:g.b("spinner")},[w,O])]),[[r.vShow,o.visible]])])})}}}),u=r.createApp(c),d=u.mount(document.createElement("div"));return{...r.toRefs(o),setText:s,removeElLoadingChild:l,close:i,handleAfterLeave:f,vm:d,get $el(){return d.$el}}}let mt;const Jt=function(e={}){if(!re)return;const t=ji(e);if(t.fullscreen&&mt)return mt;const n=Ri({...t,closed:()=>{var s;(s=t.closed)==null||s.call(t),t.fullscreen&&(mt=void 0)}});Mi(t,t.parent,n),Ao(t,t.parent,n),t.parent.vLoadingAddClassList=()=>Ao(t,t.parent,n);let o=t.parent.getAttribute("loading-number");return o?o=`${Number.parseInt(o)+1}`:o="1",t.parent.setAttribute("loading-number",o),t.parent.appendChild(n.$el),r.nextTick(()=>n.visible.value=t.visible),t.fullscreen&&(mt=n),n},ji=e=>{var t,n,o,s;let a;return se(e.target)?a=(t=document.querySelector(e.target))!=null?t:document.body:a=e.target||document.body,{parent:a===document.body||e.body?document.body:a,background:e.background||"",svg:e.svg||"",svgViewBox:e.svgViewBox||"",spinner:e.spinner||!1,text:e.text||"",fullscreen:a===document.body&&((n=e.fullscreen)!=null?n:!0),lock:(o=e.lock)!=null?o:!1,customClass:e.customClass||"",visible:(s=e.visible)!=null?s:!0,target:a}},Mi=async(e,t,n)=>{const{nextZIndex:o}=n.vm.zIndex||n.vm._.exposed.zIndex,s={};if(e.fullscreen)n.originalPosition.value=Re(document.body,"position"),n.originalOverflow.value=Re(document.body,"overflow"),s.zIndex=o();else if(e.parent===document.body){n.originalPosition.value=Re(document.body,"position"),await r.nextTick();for(const a of["top","left"]){const l=a==="top"?"scrollTop":"scrollLeft";s[a]=`${e.target.getBoundingClientRect()[a]+document.body[l]+document.documentElement[l]-Number.parseInt(Re(document.body,`margin-${a}`),10)}px`}for(const a of["height","width"])s[a]=`${e.target.getBoundingClientRect()[a]}px`}else n.originalPosition.value=Re(t,"position");for(const[a,l]of Object.entries(s))n.$el.style[a]=l},Ao=(e,t,n)=>{const o=n.vm.ns||n.vm._.exposed.ns;["absolute","fixed","sticky"].includes(n.originalPosition.value)?ut(t,o.bm("parent","relative")):ho(t,o.bm("parent","relative")),e.fullscreen&&e.lock?ho(t,o.bm("parent","hidden")):ut(t,o.bm("parent","hidden"))},Kt=Symbol("ElLoading"),Vo=(e,t)=>{var n,o,s,a;const l=t.instance,i=p=>lt(t.value)?t.value[p]:void 0,f=p=>{const m=se(p)&&(l==null?void 0:l[p])||p;return m&&r.ref(m)},c=p=>f(i(p)||e.getAttribute(`element-loading-${oa(p)}`)),u=(n=i("fullscreen"))!=null?n:t.modifiers.fullscreen,d={text:c("text"),svg:c("svg"),svgViewBox:c("svgViewBox"),spinner:c("spinner"),background:c("background"),customClass:c("customClass"),fullscreen:u,target:(o=i("target"))!=null?o:u?void 0:e,body:(s=i("body"))!=null?s:t.modifiers.body,lock:(a=i("lock"))!=null?a:t.modifiers.lock};e[Kt]={options:d,instance:Jt(d)}},Ui=(e,t)=>{for(const n of Object.keys(t))r.isRef(t[n])&&(t[n].value=e[n])},Fo={mounted(e,t){t.value&&Vo(e,t)},updated(e,t){const n=e[Kt];t.oldValue!==t.value&&(t.value&&!t.oldValue?Vo(e,t):t.value&&t.oldValue?lt(t.value)&&Ui(t.value,n.options):n==null||n.instance.close())},unmounted(e){var t;(t=e[Kt])==null||t.instance.close()}},ve={install(e){e.directive("loading",Fo),e.config.globalProperties.$loading=Jt},directive:Fo,service:Jt},Io=["success","info","warning","error"],R=gi({customClass:"",center:!1,dangerouslyUseHTMLString:!1,duration:3e3,icon:void 0,id:"",message:"",onClose:void 0,showClose:!1,type:"info",offset:16,zIndex:0,grouping:!1,repeatNum:1,appendTo:re?document.body:void 0}),zi=dt({customClass:{type:String,default:R.customClass},center:{type:Boolean,default:R.center},dangerouslyUseHTMLString:{type:Boolean,default:R.dangerouslyUseHTMLString},duration:{type:Number,default:R.duration},icon:{type:di,default:R.icon},id:{type:String,default:R.id},message:{type:oe([String,Object,Function]),default:R.message},onClose:{type:oe(Function),required:!1},showClose:{type:Boolean,default:R.showClose},type:{type:String,values:Io,default:R.type},offset:{type:Number,default:R.offset},zIndex:{type:Number,default:R.zIndex},grouping:{type:Boolean,default:R.grouping},repeatNum:{type:Number,default:R.repeatNum}}),Hi={destroy:()=>!0},q=r.shallowReactive([]),qi=e=>{const t=q.findIndex(s=>s.id===e),n=q[t];let o;return t>0&&(o=q[t-1]),{current:n,prev:o}},Wi=e=>{const{prev:t}=qi(e);return t?t.vm.exposed.bottom.value:0},Gi=(e,t)=>q.findIndex(o=>o.id===e)>0?20:t,Ji=["id"],Ki=["innerHTML"],Qi=r.defineComponent({name:"ElMessage"}),Yi=r.defineComponent({...Qi,props:zi,emits:Hi,setup(e,{expose:t}){const n=e,{Close:o}=fi,{ns:s,zIndex:a}=$o("message"),{currentZIndex:l,nextZIndex:i}=a,f=r.ref(),c=r.ref(!1),u=r.ref(0);let d;const p=r.computed(()=>n.type?n.type==="error"?"danger":n.type:"info"),m=r.computed(()=>{const b=n.type;return{[s.bm("icon",b)]:b&&vo[b]}}),g=r.computed(()=>n.icon||vo[n.type]||""),h=r.computed(()=>Wi(n.id)),_=r.computed(()=>Gi(n.id,n.offset)+h.value),w=r.computed(()=>u.value+_.value),O=r.computed(()=>({top:`${_.value}px`,zIndex:l.value}));function x(){n.duration!==0&&({stop:d}=Us(()=>{E()},n.duration))}function k(){d==null||d()}function E(){c.value=!1}function C({code:b}){b===mi.esc&&E()}return r.onMounted(()=>{x(),i(),c.value=!0}),r.watch(()=>n.repeatNum,()=>{k(),x()}),zs(document,"keydown",C),Js(f,()=>{u.value=f.value.getBoundingClientRect().height}),t({visible:c,bottom:w,close:E}),(b,V)=>(r.openBlock(),r.createBlock(r.Transition,{name:r.unref(s).b("fade"),onBeforeLeave:b.onClose,onAfterLeave:V[0]||(V[0]=D=>b.$emit("destroy")),persisted:""},{default:r.withCtx(()=>[r.withDirectives(r.createElementVNode("div",{id:b.id,ref_key:"messageRef",ref:f,class:r.normalizeClass([r.unref(s).b(),{[r.unref(s).m(b.type)]:b.type&&!b.icon},r.unref(s).is("center",b.center),r.unref(s).is("closable",b.showClose),b.customClass]),style:r.normalizeStyle(r.unref(O)),role:"alert",onMouseenter:k,onMouseleave:x},[b.repeatNum>1?(r.openBlock(),r.createBlock(r.unref(Di),{key:0,value:b.repeatNum,type:r.unref(p),class:r.normalizeClass(r.unref(s).e("badge"))},null,8,["value","type","class"])):r.createCommentVNode("v-if",!0),r.unref(g)?(r.openBlock(),r.createBlock(r.unref(Bo),{key:1,class:r.normalizeClass([r.unref(s).e("icon"),r.unref(m)])},{default:r.withCtx(()=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(r.unref(g))))]),_:1},8,["class"])):r.createCommentVNode("v-if",!0),r.renderSlot(b.$slots,"default",{},()=>[b.dangerouslyUseHTMLString?(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[r.createCommentVNode(" Caution here, message could've been compromised, never use user's input as message "),r.createElementVNode("p",{class:r.normalizeClass(r.unref(s).e("content")),innerHTML:b.message},null,10,Ki)],2112)):(r.openBlock(),r.createElementBlock("p",{key:0,class:r.normalizeClass(r.unref(s).e("content"))},r.toDisplayString(b.message),3))]),b.showClose?(r.openBlock(),r.createBlock(r.unref(Bo),{key:2,class:r.normalizeClass(r.unref(s).e("closeBtn")),onClick:r.withModifiers(E,["stop"])},{default:r.withCtx(()=>[r.createVNode(r.unref(o))]),_:1},8,["class","onClick"])):r.createCommentVNode("v-if",!0)],46,Ji),[[r.vShow,c.value]])]),_:3},8,["name","onBeforeLeave"]))}});var Xi=Gt(Yi,[["__file","/home/runner/work/element-plus/element-plus/packages/components/message/src/message.vue"]]);let Zi=1;const Do=e=>{const t=!e||se(e)||r.isVNode(e)||Dt(e)?{message:e}:e,n={...R,...t};if(!n.appendTo)n.appendTo=document.body;else if(se(n.appendTo)){let o=document.querySelector(n.appendTo);Bl(o)||(Ht("ElMessage","the appendTo option is not an HTMLElement. Falling back to document.body."),o=document.body),n.appendTo=o}return n},ec=e=>{const t=q.indexOf(e);if(t===-1)return;q.splice(t,1);const{handler:n}=e;n.close()},tc=({appendTo:e,...t},n)=>{const o=`message_${Zi++}`,s=t.onClose,a=document.createElement("div"),l={...t,id:o,onClose:()=>{s==null||s(),ec(u)},onDestroy:()=>{r.render(null,a)}},i=r.createVNode(Xi,l,Dt(l.message)||r.isVNode(l.message)?{default:Dt(l.message)?l.message:()=>l.message}:null);i.appContext=n||Se._context,r.render(i,a),e.appendChild(a.firstElementChild);const f=i.component,u={id:o,vnode:i,vm:f,handler:{close:()=>{f.exposed.visible.value=!1}},props:i.component.props};return u},Se=(e={},t)=>{if(!re)return{close:()=>{}};if(De(Wt.max)&&q.length>=Wt.max)return{close:()=>{}};const n=Do(e);if(n.grouping&&q.length){const s=q.find(({vnode:a})=>{var l;return((l=a.props)==null?void 0:l.message)===n.message});if(s)return s.props.repeatNum+=1,s.props.type=n.type,s.handler}const o=tc(n,t);return q.push(o),o.handler};Io.forEach(e=>{Se[e]=(t={},n)=>{const o=Do(t);return Se({...o,type:e},n)}});function nc(e){for(const t of q)(!e||e===t.props.type)&&t.handler.close()}Se.closeAll=nc,Se._context=null;const ht=pi(Se,"$message");function Me(){let e="";return typeof app_config=="object"&&app_config&&Object.keys(app_config).length>0&&(e=app_config.base_url||""),e}function oc(){const e=jo(),t=Me();return e.product?e.product:t?t.slice(1):location.href.indexOf("convert")!=-1?"convert":location.href.indexOf("translate")!=-1?"translate":"recorder"}function Ro(e,t){window.__bl&&__bl.error(new Error(JSON.stringify(e)),{filename:t,lineno:384,colno:18})}function jo(){var e={};if(location.search.length>1)for(var t,n=0,o=location.search.substr(1).split("&");n<o.length;n++)t=o[n].split("="),e[decodeURIComponent(t[0])]=t.length>1?decodeURIComponent(t[1]):"";return e}function Ne({url:e,data:t=null,method:n="GET",headers:o=null,cacheKey:s,cacheTime:a}){try{var l=new AbortController,i=l.signal}catch{}const f=oc();let c={method:n,headers:{"X-Access-Channel":f}};if(o&&(c.headers=Object.assign(c.headers,o),o["Content-Type"]&&o["Content-Type"].indexOf("application/x-www-form-urlencoded")!=-1&&t)){let d="";Object.keys(t).forEach(p=>{(t[p]||t[p]==0)&&(d+=`${p}=${t[p]}&`)}),t=d.slice(0,d.length-1)}t&&(typeof t=="string"?c.body=t:c.body=JSON.stringify(t)),i&&(c.signal=i);const u=()=>new Promise((d,p)=>{setTimeout(()=>{d(new Response("timeout",{status:504,statusText:"timeout"})),l&&l.abort()},6e4)});return Promise.race([u(),fetch(e,c).then(d=>d.json())]).then(d=>(console.log(d),d.success==!0||d.ok===0||d.code==0?(s&&(a?st.put(s,d.data,a):st.put(s,d.data)),(d.message||d.message==0)&&(window.g_message=d.message),Promise.resolve(d.data)):d&&d.image||d&&d.GOOGLE_ACCESS_TOKEN?(s&&(a?st.put(s,d,a):st.put(s,d)),Promise.resolve(d)):d.statusText=="timeout"?Promise.reject("The system is busy, please try again later"):Promise.reject(d.message||d.msg&&d||"failed, please check your network and try again"))).catch(d=>Promise.reject(d))}let xe=Me();function Mo(e=!1){const t={"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"};let n=xe+"/api/user/status";return e&&(n+="?drive=1"),Ne({url:n,method:"POST",headers:t})}const rc=e=>Ne({url:xe+"/api/user/active-passport",data:{passport:e},method:"POST",headers:{"Content-Type":"application/json"}});function sc(e){return Ne({url:xe+"/api/user/facebooklogin",data:{token:e},method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"}})}function Uo(e){return Ne({url:xe+"/api/user/google",data:{token:e},method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"}})}function ac(e,t){return Ne({url:xe+"/api/user/emaillogin?email="+encodeURIComponent(e)+"&password="+encodeURIComponent(t)})}function lc(e,t,n){return Ne({url:xe+"/api/user/emailsignup?email="+encodeURIComponent(e)+"&username="+encodeURIComponent(t)+"&password="+encodeURIComponent(n)})}function j(e,t,...n){if(e in t){let s=t[e];return typeof s=="function"?s(...n):s}let o=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(s=>`"${s}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(o,j),o}var ce=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(ce||{}),ic=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(ic||{});function F({visible:e=!0,features:t=0,ourProps:n,theirProps:o,...s}){var a;let l=Ho(o,n),i=Object.assign(s,{props:l});if(e||t&2&&l.static)return Qt(i);if(t&1){let f=(a=l.unmount)==null||a?0:1;return j(f,{[0](){return null},[1](){return Qt({...s,props:{...l,hidden:!0,style:{display:"none"}}})}})}return Qt(i)}function Qt({props:e,attrs:t,slots:n,slot:o,name:s}){var a,l;let{as:i,...f}=cc(e,["unmount","static"]),c=(a=n.default)==null?void 0:a.call(n,o),u={};if(o){let d=!1,p=[];for(let[m,g]of Object.entries(o))typeof g=="boolean"&&(d=!0),g===!0&&p.push(m);d&&(u["data-headlessui-state"]=p.join(" "))}if(i==="template"){if(c=zo(c??[]),Object.keys(f).length>0||Object.keys(t).length>0){let[d,...p]=c??[];if(!uc(d)||p.length>0)throw new Error(['Passing props on "template"!',"",`The current component <${s} /> is rendering a "template".`,"However we need to passthrough the following props:",Object.keys(f).concat(Object.keys(t)).map(h=>h.trim()).filter((h,_,w)=>w.indexOf(h)===_).sort((h,_)=>h.localeCompare(_)).map(h=>` - ${h}`).join(`
1
+ (function(r,ye){typeof exports=="object"&&typeof module<"u"?module.exports=ye(require("vue")):typeof define=="function"&&define.amd?define(["vue"],ye):(r=typeof globalThis<"u"?globalThis:r||self,r["my-header"]=ye(r.Vue))})(this,function(r){"use strict";function ye(e,t){return function(){return e.apply(t,arguments)}}const{toString:Nr}=Object.prototype,{getPrototypeOf:Et}=Object,Je=(e=>t=>{const n=Nr.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),K=e=>(e=e.toLowerCase(),t=>Je(t)===e),Ke=e=>t=>typeof t===e,{isArray:be}=Array,$e=Ke("undefined");function xr(e){return e!==null&&!$e(e)&&e.constructor!==null&&!$e(e.constructor)&&U(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const hn=K("ArrayBuffer");function Cr(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&hn(e.buffer),t}const Or=Ke("string"),U=Ke("function"),gn=Ke("number"),Qe=e=>e!==null&&typeof e=="object",Pr=e=>e===!0||e===!1,Ye=e=>{if(Je(e)!=="object")return!1;const t=Et(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},kr=K("Date"),Tr=K("File"),$r=K("Blob"),Lr=K("FileList"),Br=e=>Qe(e)&&U(e.pipe),Ar=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||U(e.append)&&((t=Je(e))==="formdata"||t==="object"&&U(e.toString)&&e.toString()==="[object FormData]"))},Vr=K("URLSearchParams"),Fr=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Le(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let o,s;if(typeof e!="object"&&(e=[e]),be(e))for(o=0,s=e.length;o<s;o++)t.call(null,e[o],o,e);else{const a=n?Object.getOwnPropertyNames(e):Object.keys(e),i=a.length;let l;for(o=0;o<i;o++)l=a[o],t.call(null,e[l],l,e)}}function yn(e,t){t=t.toLowerCase();const n=Object.keys(e);let o=n.length,s;for(;o-- >0;)if(s=n[o],t===s.toLowerCase())return s;return null}const bn=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),_n=e=>!$e(e)&&e!==bn;function vt(){const{caseless:e}=_n(this)&&this||{},t={},n=(o,s)=>{const a=e&&yn(t,s)||s;Ye(t[a])&&Ye(o)?t[a]=vt(t[a],o):Ye(o)?t[a]=vt({},o):be(o)?t[a]=o.slice():t[a]=o};for(let o=0,s=arguments.length;o<s;o++)arguments[o]&&Le(arguments[o],n);return t}const Ir=(e,t,n,{allOwnKeys:o}={})=>(Le(t,(s,a)=>{n&&U(s)?e[a]=ye(s,n):e[a]=s},{allOwnKeys:o}),e),Dr=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Rr=(e,t,n,o)=>{e.prototype=Object.create(t.prototype,o),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},jr=(e,t,n,o)=>{let s,a,i;const l={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),a=s.length;a-- >0;)i=s[a],(!o||o(i,e,t))&&!l[i]&&(t[i]=e[i],l[i]=!0);e=n!==!1&&Et(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Mr=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const o=e.indexOf(t,n);return o!==-1&&o===n},Ur=e=>{if(!e)return null;if(be(e))return e;let t=e.length;if(!gn(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},zr=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Et(Uint8Array)),Hr=(e,t)=>{const o=(e&&e[Symbol.iterator]).call(e);let s;for(;(s=o.next())&&!s.done;){const a=s.value;t.call(e,a[0],a[1])}},qr=(e,t)=>{let n;const o=[];for(;(n=e.exec(t))!==null;)o.push(n);return o},Wr=K("HTMLFormElement"),Gr=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,o,s){return o.toUpperCase()+s}),wn=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Jr=K("RegExp"),En=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),o={};Le(n,(s,a)=>{t(s,a,e)!==!1&&(o[a]=s)}),Object.defineProperties(e,o)},Kr=e=>{En(e,(t,n)=>{if(U(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const o=e[n];if(U(o)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Qr=(e,t)=>{const n={},o=s=>{s.forEach(a=>{n[a]=!0})};return be(e)?o(e):o(String(e).split(t)),n},Yr=()=>{},Xr=(e,t)=>(e=+e,Number.isFinite(e)?e:t),St="abcdefghijklmnopqrstuvwxyz",vn="0123456789",Sn={DIGIT:vn,ALPHA:St,ALPHA_DIGIT:St+St.toUpperCase()+vn},Zr=(e=16,t=Sn.ALPHA_DIGIT)=>{let n="";const{length:o}=t;for(;e--;)n+=t[Math.random()*o|0];return n};function es(e){return!!(e&&U(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const ts=e=>{const t=new Array(10),n=(o,s)=>{if(Qe(o)){if(t.indexOf(o)>=0)return;if(!("toJSON"in o)){t[s]=o;const a=be(o)?[]:{};return Le(o,(i,l)=>{const f=n(i,s+1);!$e(f)&&(a[l]=f)}),t[s]=void 0,a}}return o};return n(e,0)},ns=K("AsyncFunction"),y={isArray:be,isArrayBuffer:hn,isBuffer:xr,isFormData:Ar,isArrayBufferView:Cr,isString:Or,isNumber:gn,isBoolean:Pr,isObject:Qe,isPlainObject:Ye,isUndefined:$e,isDate:kr,isFile:Tr,isBlob:$r,isRegExp:Jr,isFunction:U,isStream:Br,isURLSearchParams:Vr,isTypedArray:zr,isFileList:Lr,forEach:Le,merge:vt,extend:Ir,trim:Fr,stripBOM:Dr,inherits:Rr,toFlatObject:jr,kindOf:Je,kindOfTest:K,endsWith:Mr,toArray:Ur,forEachEntry:Hr,matchAll:qr,isHTMLForm:Wr,hasOwnProperty:wn,hasOwnProp:wn,reduceDescriptors:En,freezeMethods:Kr,toObjectSet:Qr,toCamelCase:Gr,noop:Yr,toFiniteNumber:Xr,findKey:yn,global:bn,isContextDefined:_n,ALPHABET:Sn,generateString:Zr,isSpecCompliantForm:es,toJSONObject:ts,isAsyncFn:ns,isThenable:e=>e&&(Qe(e)||U(e))&&U(e.then)&&U(e.catch)};function P(e,t,n,o,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),o&&(this.request=o),s&&(this.response=s)}y.inherits(P,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:y.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Nn=P.prototype,xn={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{xn[e]={value:e}}),Object.defineProperties(P,xn),Object.defineProperty(Nn,"isAxiosError",{value:!0}),P.from=(e,t,n,o,s,a)=>{const i=Object.create(Nn);return y.toFlatObject(e,i,function(f){return f!==Error.prototype},l=>l!=="isAxiosError"),P.call(i,e.message,t,n,o,s),i.cause=e,i.name=e.name,a&&Object.assign(i,a),i};const os=null;function Nt(e){return y.isPlainObject(e)||y.isArray(e)}function Cn(e){return y.endsWith(e,"[]")?e.slice(0,-2):e}function On(e,t,n){return e?e.concat(t).map(function(s,a){return s=Cn(s),!n&&a?"["+s+"]":s}).join(n?".":""):t}function rs(e){return y.isArray(e)&&!e.some(Nt)}const ss=y.toFlatObject(y,{},null,function(t){return/^is[A-Z]/.test(t)});function Xe(e,t,n){if(!y.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=y.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(h,_){return!y.isUndefined(_[h])});const o=n.metaTokens,s=n.visitor||u,a=n.dots,i=n.indexes,f=(n.Blob||typeof Blob<"u"&&Blob)&&y.isSpecCompliantForm(t);if(!y.isFunction(s))throw new TypeError("visitor must be a function");function c(g){if(g===null)return"";if(y.isDate(g))return g.toISOString();if(!f&&y.isBlob(g))throw new P("Blob is not supported. Use a Buffer instead.");return y.isArrayBuffer(g)||y.isTypedArray(g)?f&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function u(g,h,_){let w=g;if(g&&!_&&typeof g=="object"){if(y.endsWith(h,"{}"))h=o?h:h.slice(0,-2),g=JSON.stringify(g);else if(y.isArray(g)&&rs(g)||(y.isFileList(g)||y.endsWith(h,"[]"))&&(w=y.toArray(g)))return h=Cn(h),w.forEach(function(x,k){!(y.isUndefined(x)||x===null)&&t.append(i===!0?On([h],k,a):i===null?h:h+"[]",c(x))}),!1}return Nt(g)?!0:(t.append(On(_,h,a),c(g)),!1)}const d=[],p=Object.assign(ss,{defaultVisitor:u,convertValue:c,isVisitable:Nt});function m(g,h){if(!y.isUndefined(g)){if(d.indexOf(g)!==-1)throw Error("Circular reference detected in "+h.join("."));d.push(g),y.forEach(g,function(w,O){(!(y.isUndefined(w)||w===null)&&s.call(t,w,y.isString(O)?O.trim():O,h,p))===!0&&m(w,h?h.concat(O):[O])}),d.pop()}}if(!y.isObject(e))throw new TypeError("data must be an object");return m(e),t}function Pn(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(o){return t[o]})}function xt(e,t){this._pairs=[],e&&Xe(e,this,t)}const kn=xt.prototype;kn.append=function(t,n){this._pairs.push([t,n])},kn.toString=function(t){const n=t?function(o){return t.call(this,o,Pn)}:Pn;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function as(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Tn(e,t,n){if(!t)return e;const o=n&&n.encode||as,s=n&&n.serialize;let a;if(s?a=s(t,n):a=y.isURLSearchParams(t)?t.toString():new xt(t,n).toString(o),a){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class is{constructor(){this.handlers=[]}use(t,n,o){return this.handlers.push({fulfilled:t,rejected:n,synchronous:o?o.synchronous:!1,runWhen:o?o.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){y.forEach(this.handlers,function(o){o!==null&&t(o)})}}const $n=is,Ln={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ls=typeof URLSearchParams<"u"?URLSearchParams:xt,cs=typeof FormData<"u"?FormData:null,us=typeof Blob<"u"?Blob:null,ds=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),fs=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),Q={isBrowser:!0,classes:{URLSearchParams:ls,FormData:cs,Blob:us},isStandardBrowserEnv:ds,isStandardBrowserWebWorkerEnv:fs,protocols:["http","https","file","blob","url","data"]};function ps(e,t){return Xe(e,new Q.classes.URLSearchParams,Object.assign({visitor:function(n,o,s,a){return Q.isNode&&y.isBuffer(n)?(this.append(o,n.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},t))}function ms(e){return y.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function hs(e){const t={},n=Object.keys(e);let o;const s=n.length;let a;for(o=0;o<s;o++)a=n[o],t[a]=e[a];return t}function Bn(e){function t(n,o,s,a){let i=n[a++];const l=Number.isFinite(+i),f=a>=n.length;return i=!i&&y.isArray(s)?s.length:i,f?(y.hasOwnProp(s,i)?s[i]=[s[i],o]:s[i]=o,!l):((!s[i]||!y.isObject(s[i]))&&(s[i]=[]),t(n,o,s[i],a)&&y.isArray(s[i])&&(s[i]=hs(s[i])),!l)}if(y.isFormData(e)&&y.isFunction(e.entries)){const n={};return y.forEachEntry(e,(o,s)=>{t(ms(o),s,n,0)}),n}return null}const gs={"Content-Type":void 0};function ys(e,t,n){if(y.isString(e))try{return(t||JSON.parse)(e),y.trim(e)}catch(o){if(o.name!=="SyntaxError")throw o}return(n||JSON.stringify)(e)}const Ze={transitional:Ln,adapter:["xhr","http"],transformRequest:[function(t,n){const o=n.getContentType()||"",s=o.indexOf("application/json")>-1,a=y.isObject(t);if(a&&y.isHTMLForm(t)&&(t=new FormData(t)),y.isFormData(t))return s&&s?JSON.stringify(Bn(t)):t;if(y.isArrayBuffer(t)||y.isBuffer(t)||y.isStream(t)||y.isFile(t)||y.isBlob(t))return t;if(y.isArrayBufferView(t))return t.buffer;if(y.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(a){if(o.indexOf("application/x-www-form-urlencoded")>-1)return ps(t,this.formSerializer).toString();if((l=y.isFileList(t))||o.indexOf("multipart/form-data")>-1){const f=this.env&&this.env.FormData;return Xe(l?{"files[]":t}:t,f&&new f,this.formSerializer)}}return a||s?(n.setContentType("application/json",!1),ys(t)):t}],transformResponse:[function(t){const n=this.transitional||Ze.transitional,o=n&&n.forcedJSONParsing,s=this.responseType==="json";if(t&&y.isString(t)&&(o&&!this.responseType||s)){const i=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(t)}catch(l){if(i)throw l.name==="SyntaxError"?P.from(l,P.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Q.classes.FormData,Blob:Q.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};y.forEach(["delete","get","head"],function(t){Ze.headers[t]={}}),y.forEach(["post","put","patch"],function(t){Ze.headers[t]=y.merge(gs)});const Ct=Ze,bs=y.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),_s=e=>{const t={};let n,o,s;return e&&e.split(`
2
+ `).forEach(function(i){s=i.indexOf(":"),n=i.substring(0,s).trim().toLowerCase(),o=i.substring(s+1).trim(),!(!n||t[n]&&bs[n])&&(n==="set-cookie"?t[n]?t[n].push(o):t[n]=[o]:t[n]=t[n]?t[n]+", "+o:o)}),t},An=Symbol("internals");function Be(e){return e&&String(e).trim().toLowerCase()}function et(e){return e===!1||e==null?e:y.isArray(e)?e.map(et):String(e)}function ws(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let o;for(;o=n.exec(e);)t[o[1]]=o[2];return t}const Es=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Ot(e,t,n,o,s){if(y.isFunction(o))return o.call(this,t,n);if(s&&(t=n),!!y.isString(t)){if(y.isString(o))return t.indexOf(o)!==-1;if(y.isRegExp(o))return o.test(t)}}function vs(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,o)=>n.toUpperCase()+o)}function Ss(e,t){const n=y.toCamelCase(" "+t);["get","set","has"].forEach(o=>{Object.defineProperty(e,o+n,{value:function(s,a,i){return this[o].call(this,t,s,a,i)},configurable:!0})})}class tt{constructor(t){t&&this.set(t)}set(t,n,o){const s=this;function a(l,f,c){const u=Be(f);if(!u)throw new Error("header name must be a non-empty string");const d=y.findKey(s,u);(!d||s[d]===void 0||c===!0||c===void 0&&s[d]!==!1)&&(s[d||f]=et(l))}const i=(l,f)=>y.forEach(l,(c,u)=>a(c,u,f));return y.isPlainObject(t)||t instanceof this.constructor?i(t,n):y.isString(t)&&(t=t.trim())&&!Es(t)?i(_s(t),n):t!=null&&a(n,t,o),this}get(t,n){if(t=Be(t),t){const o=y.findKey(this,t);if(o){const s=this[o];if(!n)return s;if(n===!0)return ws(s);if(y.isFunction(n))return n.call(this,s,o);if(y.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Be(t),t){const o=y.findKey(this,t);return!!(o&&this[o]!==void 0&&(!n||Ot(this,this[o],o,n)))}return!1}delete(t,n){const o=this;let s=!1;function a(i){if(i=Be(i),i){const l=y.findKey(o,i);l&&(!n||Ot(o,o[l],l,n))&&(delete o[l],s=!0)}}return y.isArray(t)?t.forEach(a):a(t),s}clear(t){const n=Object.keys(this);let o=n.length,s=!1;for(;o--;){const a=n[o];(!t||Ot(this,this[a],a,t,!0))&&(delete this[a],s=!0)}return s}normalize(t){const n=this,o={};return y.forEach(this,(s,a)=>{const i=y.findKey(o,a);if(i){n[i]=et(s),delete n[a];return}const l=t?vs(a):String(a).trim();l!==a&&delete n[a],n[l]=et(s),o[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return y.forEach(this,(o,s)=>{o!=null&&o!==!1&&(n[s]=t&&y.isArray(o)?o.join(", "):o)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
3
+ `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const o=new this(t);return n.forEach(s=>o.set(s)),o}static accessor(t){const o=(this[An]=this[An]={accessors:{}}).accessors,s=this.prototype;function a(i){const l=Be(i);o[l]||(Ss(s,i),o[l]=!0)}return y.isArray(t)?t.forEach(a):a(t),this}}tt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),y.freezeMethods(tt.prototype),y.freezeMethods(tt);const ee=tt;function Pt(e,t){const n=this||Ct,o=t||n,s=ee.from(o.headers);let a=o.data;return y.forEach(e,function(l){a=l.call(n,a,s.normalize(),t?t.status:void 0)}),s.normalize(),a}function Vn(e){return!!(e&&e.__CANCEL__)}function Ae(e,t,n){P.call(this,e??"canceled",P.ERR_CANCELED,t,n),this.name="CanceledError"}y.inherits(Ae,P,{__CANCEL__:!0});function Ns(e,t,n){const o=n.config.validateStatus;!n.status||!o||o(n.status)?e(n):t(new P("Request failed with status code "+n.status,[P.ERR_BAD_REQUEST,P.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const xs=Q.isStandardBrowserEnv?function(){return{write:function(n,o,s,a,i,l){const f=[];f.push(n+"="+encodeURIComponent(o)),y.isNumber(s)&&f.push("expires="+new Date(s).toGMTString()),y.isString(a)&&f.push("path="+a),y.isString(i)&&f.push("domain="+i),l===!0&&f.push("secure"),document.cookie=f.join("; ")},read:function(n){const o=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return o?decodeURIComponent(o[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function Cs(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Os(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function Fn(e,t){return e&&!Cs(t)?Os(e,t):t}const Ps=Q.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let o;function s(a){let i=a;return t&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return o=s(window.location.href),function(i){const l=y.isString(i)?s(i):i;return l.protocol===o.protocol&&l.host===o.host}}():function(){return function(){return!0}}();function ks(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Ts(e,t){e=e||10;const n=new Array(e),o=new Array(e);let s=0,a=0,i;return t=t!==void 0?t:1e3,function(f){const c=Date.now(),u=o[a];i||(i=c),n[s]=f,o[s]=c;let d=a,p=0;for(;d!==s;)p+=n[d++],d=d%e;if(s=(s+1)%e,s===a&&(a=(a+1)%e),c-i<t)return;const m=u&&c-u;return m?Math.round(p*1e3/m):void 0}}function In(e,t){let n=0;const o=Ts(50,250);return s=>{const a=s.loaded,i=s.lengthComputable?s.total:void 0,l=a-n,f=o(l),c=a<=i;n=a;const u={loaded:a,total:i,progress:i?a/i:void 0,bytes:l,rate:f||void 0,estimated:f&&i&&c?(i-a)/f:void 0,event:s};u[t?"download":"upload"]=!0,e(u)}}const nt={http:os,xhr:typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(n,o){let s=e.data;const a=ee.from(e.headers).normalize(),i=e.responseType;let l;function f(){e.cancelToken&&e.cancelToken.unsubscribe(l),e.signal&&e.signal.removeEventListener("abort",l)}y.isFormData(s)&&(Q.isStandardBrowserEnv||Q.isStandardBrowserWebWorkerEnv?a.setContentType(!1):a.setContentType("multipart/form-data;",!1));let c=new XMLHttpRequest;if(e.auth){const m=e.auth.username||"",g=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";a.set("Authorization","Basic "+btoa(m+":"+g))}const u=Fn(e.baseURL,e.url);c.open(e.method.toUpperCase(),Tn(u,e.params,e.paramsSerializer),!0),c.timeout=e.timeout;function d(){if(!c)return;const m=ee.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders()),h={data:!i||i==="text"||i==="json"?c.responseText:c.response,status:c.status,statusText:c.statusText,headers:m,config:e,request:c};Ns(function(w){n(w),f()},function(w){o(w),f()},h),c=null}if("onloadend"in c?c.onloadend=d:c.onreadystatechange=function(){!c||c.readyState!==4||c.status===0&&!(c.responseURL&&c.responseURL.indexOf("file:")===0)||setTimeout(d)},c.onabort=function(){c&&(o(new P("Request aborted",P.ECONNABORTED,e,c)),c=null)},c.onerror=function(){o(new P("Network Error",P.ERR_NETWORK,e,c)),c=null},c.ontimeout=function(){let g=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const h=e.transitional||Ln;e.timeoutErrorMessage&&(g=e.timeoutErrorMessage),o(new P(g,h.clarifyTimeoutError?P.ETIMEDOUT:P.ECONNABORTED,e,c)),c=null},Q.isStandardBrowserEnv){const m=(e.withCredentials||Ps(u))&&e.xsrfCookieName&&xs.read(e.xsrfCookieName);m&&a.set(e.xsrfHeaderName,m)}s===void 0&&a.setContentType(null),"setRequestHeader"in c&&y.forEach(a.toJSON(),function(g,h){c.setRequestHeader(h,g)}),y.isUndefined(e.withCredentials)||(c.withCredentials=!!e.withCredentials),i&&i!=="json"&&(c.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&c.addEventListener("progress",In(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&c.upload&&c.upload.addEventListener("progress",In(e.onUploadProgress)),(e.cancelToken||e.signal)&&(l=m=>{c&&(o(!m||m.type?new Ae(null,e,c):m),c.abort(),c=null)},e.cancelToken&&e.cancelToken.subscribe(l),e.signal&&(e.signal.aborted?l():e.signal.addEventListener("abort",l)));const p=ks(u);if(p&&Q.protocols.indexOf(p)===-1){o(new P("Unsupported protocol "+p+":",P.ERR_BAD_REQUEST,e));return}c.send(s||null)})}};y.forEach(nt,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const $s={getAdapter:e=>{e=y.isArray(e)?e:[e];const{length:t}=e;let n,o;for(let s=0;s<t&&(n=e[s],!(o=y.isString(n)?nt[n.toLowerCase()]:n));s++);if(!o)throw o===!1?new P(`Adapter ${n} is not supported by the environment`,"ERR_NOT_SUPPORT"):new Error(y.hasOwnProp(nt,n)?`Adapter '${n}' is not available in the build`:`Unknown adapter '${n}'`);if(!y.isFunction(o))throw new TypeError("adapter is not a function");return o},adapters:nt};function kt(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ae(null,e)}function Dn(e){return kt(e),e.headers=ee.from(e.headers),e.data=Pt.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),$s.getAdapter(e.adapter||Ct.adapter)(e).then(function(o){return kt(e),o.data=Pt.call(e,e.transformResponse,o),o.headers=ee.from(o.headers),o},function(o){return Vn(o)||(kt(e),o&&o.response&&(o.response.data=Pt.call(e,e.transformResponse,o.response),o.response.headers=ee.from(o.response.headers))),Promise.reject(o)})}const Rn=e=>e instanceof ee?e.toJSON():e;function _e(e,t){t=t||{};const n={};function o(c,u,d){return y.isPlainObject(c)&&y.isPlainObject(u)?y.merge.call({caseless:d},c,u):y.isPlainObject(u)?y.merge({},u):y.isArray(u)?u.slice():u}function s(c,u,d){if(y.isUndefined(u)){if(!y.isUndefined(c))return o(void 0,c,d)}else return o(c,u,d)}function a(c,u){if(!y.isUndefined(u))return o(void 0,u)}function i(c,u){if(y.isUndefined(u)){if(!y.isUndefined(c))return o(void 0,c)}else return o(void 0,u)}function l(c,u,d){if(d in t)return o(c,u);if(d in e)return o(void 0,c)}const f={url:a,method:a,data:a,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:l,headers:(c,u)=>s(Rn(c),Rn(u),!0)};return y.forEach(Object.keys(Object.assign({},e,t)),function(u){const d=f[u]||s,p=d(e[u],t[u],u);y.isUndefined(p)&&d!==l||(n[u]=p)}),n}const jn="1.4.0",Tt={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Tt[e]=function(o){return typeof o===e||"a"+(t<1?"n ":" ")+e}});const Mn={};Tt.transitional=function(t,n,o){function s(a,i){return"[Axios v"+jn+"] Transitional option '"+a+"'"+i+(o?". "+o:"")}return(a,i,l)=>{if(t===!1)throw new P(s(i," has been removed"+(n?" in "+n:"")),P.ERR_DEPRECATED);return n&&!Mn[i]&&(Mn[i]=!0,console.warn(s(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(a,i,l):!0}};function Ls(e,t,n){if(typeof e!="object")throw new P("options must be an object",P.ERR_BAD_OPTION_VALUE);const o=Object.keys(e);let s=o.length;for(;s-- >0;){const a=o[s],i=t[a];if(i){const l=e[a],f=l===void 0||i(l,a,e);if(f!==!0)throw new P("option "+a+" must be "+f,P.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new P("Unknown option "+a,P.ERR_BAD_OPTION)}}const $t={assertOptions:Ls,validators:Tt},ne=$t.validators;class ot{constructor(t){this.defaults=t,this.interceptors={request:new $n,response:new $n}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=_e(this.defaults,n);const{transitional:o,paramsSerializer:s,headers:a}=n;o!==void 0&&$t.assertOptions(o,{silentJSONParsing:ne.transitional(ne.boolean),forcedJSONParsing:ne.transitional(ne.boolean),clarifyTimeoutError:ne.transitional(ne.boolean)},!1),s!=null&&(y.isFunction(s)?n.paramsSerializer={serialize:s}:$t.assertOptions(s,{encode:ne.function,serialize:ne.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i;i=a&&y.merge(a.common,a[n.method]),i&&y.forEach(["delete","get","head","post","put","patch","common"],g=>{delete a[g]}),n.headers=ee.concat(i,a);const l=[];let f=!0;this.interceptors.request.forEach(function(h){typeof h.runWhen=="function"&&h.runWhen(n)===!1||(f=f&&h.synchronous,l.unshift(h.fulfilled,h.rejected))});const c=[];this.interceptors.response.forEach(function(h){c.push(h.fulfilled,h.rejected)});let u,d=0,p;if(!f){const g=[Dn.bind(this),void 0];for(g.unshift.apply(g,l),g.push.apply(g,c),p=g.length,u=Promise.resolve(n);d<p;)u=u.then(g[d++],g[d++]);return u}p=l.length;let m=n;for(d=0;d<p;){const g=l[d++],h=l[d++];try{m=g(m)}catch(_){h.call(this,_);break}}try{u=Dn.call(this,m)}catch(g){return Promise.reject(g)}for(d=0,p=c.length;d<p;)u=u.then(c[d++],c[d++]);return u}getUri(t){t=_e(this.defaults,t);const n=Fn(t.baseURL,t.url);return Tn(n,t.params,t.paramsSerializer)}}y.forEach(["delete","get","head","options"],function(t){ot.prototype[t]=function(n,o){return this.request(_e(o||{},{method:t,url:n,data:(o||{}).data}))}}),y.forEach(["post","put","patch"],function(t){function n(o){return function(a,i,l){return this.request(_e(l||{},{method:t,headers:o?{"Content-Type":"multipart/form-data"}:{},url:a,data:i}))}}ot.prototype[t]=n(),ot.prototype[t+"Form"]=n(!0)});const rt=ot;class Lt{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(a){n=a});const o=this;this.promise.then(s=>{if(!o._listeners)return;let a=o._listeners.length;for(;a-- >0;)o._listeners[a](s);o._listeners=null}),this.promise.then=s=>{let a;const i=new Promise(l=>{o.subscribe(l),a=l}).then(s);return i.cancel=function(){o.unsubscribe(a)},i},t(function(a,i,l){o.reason||(o.reason=new Ae(a,i,l),n(o.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new Lt(function(s){t=s}),cancel:t}}}const Bs=Lt;function As(e){return function(n){return e.apply(null,n)}}function Vs(e){return y.isObject(e)&&e.isAxiosError===!0}const Bt={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Bt).forEach(([e,t])=>{Bt[t]=e});const Fs=Bt;function Un(e){const t=new rt(e),n=ye(rt.prototype.request,t);return y.extend(n,rt.prototype,t,{allOwnKeys:!0}),y.extend(n,t,null,{allOwnKeys:!0}),n.create=function(s){return Un(_e(e,s))},n}const A=Un(Ct);A.Axios=rt,A.CanceledError=Ae,A.CancelToken=Bs,A.isCancel=Vn,A.VERSION=jn,A.toFormData=Xe,A.AxiosError=P,A.Cancel=A.CanceledError,A.all=function(t){return Promise.all(t)},A.spread=As,A.isAxiosError=Vs,A.mergeConfig=_e,A.AxiosHeaders=ee,A.formToJSON=e=>Bn(y.isHTMLForm(e)?new FormData(e):e),A.HttpStatusCode=Fs,A.default=A;const zn=A.create({baseURL:"https://a2.imgkits.com",timeout:5e4});zn.interceptors.request.use(e=>(console.log(e),e),e=>Promise.reject(e)),zn.interceptors.response.use(e=>e.data,e=>Promise.reject(new Error(e)));const At="@",Ve=window.localStorage,Hn={number:{save:e=>e,parse:e=>Number.parseFloat(e)},object:{save:e=>JSON.stringify(e),parse:e=>JSON.parse(e)},undefined:{save:e=>e,parse:()=>{}},default:{save:e=>e,parse:e=>e}};function qn(e){return Hn[e]||Hn.default}const st={get(e){let t=Ve.getItem(e);if(t){let n=t.split("@"),o,s=Date.now();if(n.length>2&&n[2]<s)return Ve.removeItem(e),null;{let a=decodeURIComponent(n[1]);return o=qn(n[0]).parse(a),o}}return null},put(e,t,n){const o=typeof t,s=qn(o);if(!n)t=o+At+encodeURIComponent(s.save(t));else{let a=n*24*60*60*1e3+new Date().getTime();t=o+At+encodeURIComponent(s.save(t))+At+a}Ve.setItem(e,t)},clear(){Ve.clear()},remove(e){Ve.removeItem(e)}};var Is=!1;function at(e,t,n){return Array.isArray(e)?(e.length=Math.max(e.length,t),e.splice(t,1,n),n):(e[t]=n,n)}function Vt(e,t){if(Array.isArray(e)){e.splice(t,1);return}delete e[t]}var Wn;const re=typeof window<"u",Ds=e=>typeof e=="string",Rs=()=>{};re&&((Wn=window==null?void 0:window.navigator)!=null&&Wn.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function Ft(e){return typeof e=="function"?e():r.unref(e)}function js(e){return e}function It(e){return r.getCurrentScope()?(r.onScopeDispose(e),!0):!1}function Ms(e,t=!0){r.getCurrentInstance()?r.onMounted(e):t?e():r.nextTick(e)}function Us(e,t,n={}){const{immediate:o=!0}=n,s=r.ref(!1);let a=null;function i(){a&&(clearTimeout(a),a=null)}function l(){s.value=!1,i()}function f(...c){i(),s.value=!0,a=setTimeout(()=>{s.value=!1,a=null,e(...c)},Ft(t))}return o&&(s.value=!0,re&&f()),It(l),{isPending:r.readonly(s),start:f,stop:l}}function Gn(e){var t;const n=Ft(e);return(t=n==null?void 0:n.$el)!=null?t:n}const Jn=re?window:void 0;function zs(...e){let t,n,o,s;if(Ds(e[0])||Array.isArray(e[0])?([n,o,s]=e,t=Jn):[t,n,o,s]=e,!t)return Rs;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const a=[],i=()=>{a.forEach(u=>u()),a.length=0},l=(u,d,p,m)=>(u.addEventListener(d,p,m),()=>u.removeEventListener(d,p,m)),f=r.watch(()=>[Gn(t),Ft(s)],([u,d])=>{i(),u&&a.push(...n.flatMap(p=>o.map(m=>l(u,p,m,d))))},{immediate:!0,flush:"post"}),c=()=>{f(),i()};return It(c),c}function Hs(e,t=!1){const n=r.ref(),o=()=>n.value=!!e();return o(),Ms(o,t),n}const Kn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Qn="__vueuse_ssr_handlers__";Kn[Qn]=Kn[Qn]||{};var Yn=Object.getOwnPropertySymbols,qs=Object.prototype.hasOwnProperty,Ws=Object.prototype.propertyIsEnumerable,Gs=(e,t)=>{var n={};for(var o in e)qs.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&Yn)for(var o of Yn(e))t.indexOf(o)<0&&Ws.call(e,o)&&(n[o]=e[o]);return n};function Js(e,t,n={}){const o=n,{window:s=Jn}=o,a=Gs(o,["window"]);let i;const l=Hs(()=>s&&"ResizeObserver"in s),f=()=>{i&&(i.disconnect(),i=void 0)},c=r.watch(()=>Gn(e),d=>{f(),l.value&&s&&d&&(i=new ResizeObserver(t),i.observe(d,a))},{immediate:!0,flush:"post"}),u=()=>{f(),c()};return It(u),{isSupported:l,stop:u}}var Xn;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(Xn||(Xn={}));var Ks=Object.defineProperty,Zn=Object.getOwnPropertySymbols,Qs=Object.prototype.hasOwnProperty,Ys=Object.prototype.propertyIsEnumerable,eo=(e,t,n)=>t in e?Ks(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Xs=(e,t)=>{for(var n in t||(t={}))Qs.call(t,n)&&eo(e,n,t[n]);if(Zn)for(var n of Zn(t))Ys.call(t,n)&&eo(e,n,t[n]);return e};Xs({linear:js},{easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]}),process.env.NODE_ENV!=="production"&&Object.freeze({}),process.env.NODE_ENV!=="production"&&Object.freeze([]);const Zs=Object.prototype.hasOwnProperty,to=(e,t)=>Zs.call(e,t),Dt=e=>typeof e=="function",se=e=>typeof e=="string",it=e=>e!==null&&typeof e=="object",no=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},ea=/-(\w)/g,ta=no(e=>e.replace(ea,(t,n)=>n?n.toUpperCase():"")),na=/\B([A-Z])/g,oa=no(e=>e.replace(na,"-$1").toLowerCase());var ra=typeof global=="object"&&global&&global.Object===Object&&global;const sa=ra;var aa=typeof self=="object"&&self&&self.Object===Object&&self,ia=sa||aa||Function("return this")();const Rt=ia;var la=Rt.Symbol;const we=la;var oo=Object.prototype,ca=oo.hasOwnProperty,ua=oo.toString,Fe=we?we.toStringTag:void 0;function da(e){var t=ca.call(e,Fe),n=e[Fe];try{e[Fe]=void 0;var o=!0}catch{}var s=ua.call(e);return o&&(t?e[Fe]=n:delete e[Fe]),s}var fa=Object.prototype,pa=fa.toString;function ma(e){return pa.call(e)}var ha="[object Null]",ga="[object Undefined]",ro=we?we.toStringTag:void 0;function so(e){return e==null?e===void 0?ga:ha:ro&&ro in Object(e)?da(e):ma(e)}function ya(e){return e!=null&&typeof e=="object"}var ba="[object Symbol]";function jt(e){return typeof e=="symbol"||ya(e)&&so(e)==ba}function _a(e,t){for(var n=-1,o=e==null?0:e.length,s=Array(o);++n<o;)s[n]=t(e[n],n,e);return s}var wa=Array.isArray;const Mt=wa;var Ea=1/0,ao=we?we.prototype:void 0,io=ao?ao.toString:void 0;function lo(e){if(typeof e=="string")return e;if(Mt(e))return _a(e,lo)+"";if(jt(e))return io?io.call(e):"";var t=e+"";return t=="0"&&1/e==-Ea?"-0":t}function co(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var va="[object AsyncFunction]",Sa="[object Function]",Na="[object GeneratorFunction]",xa="[object Proxy]";function Ca(e){if(!co(e))return!1;var t=so(e);return t==Sa||t==Na||t==va||t==xa}var Oa=Rt["__core-js_shared__"];const Ut=Oa;var uo=function(){var e=/[^.]+$/.exec(Ut&&Ut.keys&&Ut.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Pa(e){return!!uo&&uo in e}var ka=Function.prototype,Ta=ka.toString;function $a(e){if(e!=null){try{return Ta.call(e)}catch{}try{return e+""}catch{}}return""}var La=/[\\^$.*+?()[\]{}|]/g,Ba=/^\[object .+?Constructor\]$/,Aa=Function.prototype,Va=Object.prototype,Fa=Aa.toString,Ia=Va.hasOwnProperty,Da=RegExp("^"+Fa.call(Ia).replace(La,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Ra(e){if(!co(e)||Pa(e))return!1;var t=Ca(e)?Da:Ba;return t.test($a(e))}function ja(e,t){return e==null?void 0:e[t]}function fo(e,t){var n=ja(e,t);return Ra(n)?n:void 0}function Ma(e,t){return e===t||e!==e&&t!==t}var Ua=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,za=/^\w*$/;function Ha(e,t){if(Mt(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||jt(e)?!0:za.test(e)||!Ua.test(e)||t!=null&&e in Object(t)}var qa=fo(Object,"create");const Ie=qa;function Wa(){this.__data__=Ie?Ie(null):{},this.size=0}function Ga(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Ja="__lodash_hash_undefined__",Ka=Object.prototype,Qa=Ka.hasOwnProperty;function Ya(e){var t=this.__data__;if(Ie){var n=t[e];return n===Ja?void 0:n}return Qa.call(t,e)?t[e]:void 0}var Xa=Object.prototype,Za=Xa.hasOwnProperty;function ei(e){var t=this.__data__;return Ie?t[e]!==void 0:Za.call(t,e)}var ti="__lodash_hash_undefined__";function ni(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Ie&&t===void 0?ti:t,this}function ae(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}ae.prototype.clear=Wa,ae.prototype.delete=Ga,ae.prototype.get=Ya,ae.prototype.has=ei,ae.prototype.set=ni;function oi(){this.__data__=[],this.size=0}function lt(e,t){for(var n=e.length;n--;)if(Ma(e[n][0],t))return n;return-1}var ri=Array.prototype,si=ri.splice;function ai(e){var t=this.__data__,n=lt(t,e);if(n<0)return!1;var o=t.length-1;return n==o?t.pop():si.call(t,n,1),--this.size,!0}function ii(e){var t=this.__data__,n=lt(t,e);return n<0?void 0:t[n][1]}function li(e){return lt(this.__data__,e)>-1}function ci(e,t){var n=this.__data__,o=lt(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}function Ee(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}Ee.prototype.clear=oi,Ee.prototype.delete=ai,Ee.prototype.get=ii,Ee.prototype.has=li,Ee.prototype.set=ci;var ui=fo(Rt,"Map");const di=ui;function fi(){this.size=0,this.__data__={hash:new ae,map:new(di||Ee),string:new ae}}function pi(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function ct(e,t){var n=e.__data__;return pi(t)?n[typeof t=="string"?"string":"hash"]:n.map}function mi(e){var t=ct(this,e).delete(e);return this.size-=t?1:0,t}function hi(e){return ct(this,e).get(e)}function gi(e){return ct(this,e).has(e)}function yi(e,t){var n=ct(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}function ie(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}ie.prototype.clear=fi,ie.prototype.delete=mi,ie.prototype.get=hi,ie.prototype.has=gi,ie.prototype.set=yi;var bi="Expected a function";function zt(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(bi);var n=function(){var o=arguments,s=t?t.apply(this,o):o[0],a=n.cache;if(a.has(s))return a.get(s);var i=e.apply(this,o);return n.cache=a.set(s,i)||a,i};return n.cache=new(zt.Cache||ie),n}zt.Cache=ie;var _i=500;function wi(e){var t=zt(e,function(o){return n.size===_i&&n.clear(),o}),n=t.cache;return t}var Ei=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,vi=/\\(\\)?/g,Si=wi(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Ei,function(n,o,s,a){t.push(s?a.replace(vi,"$1"):o||n)}),t});const Ni=Si;function xi(e){return e==null?"":lo(e)}function Ci(e,t){return Mt(e)?e:Ha(e,t)?[e]:Ni(xi(e))}var Oi=1/0;function Pi(e){if(typeof e=="string"||jt(e))return e;var t=e+"";return t=="0"&&1/e==-Oi?"-0":t}function ki(e,t){t=Ci(t,e);for(var n=0,o=t.length;e!=null&&n<o;)e=e[Pi(t[n++])];return n&&n==o?e:void 0}function Ti(e,t,n){var o=e==null?void 0:ki(e,t);return o===void 0?n:o}function $i(e){for(var t=-1,n=e==null?0:e.length,o={};++t<n;){var s=e[t];o[s[0]]=s[1]}return o}const Li=e=>e===void 0,De=e=>typeof e=="number",Bi=e=>typeof Element>"u"?!1:e instanceof Element,Ai=e=>se(e)?!Number.isNaN(Number(e)):!1,po=e=>Object.keys(e);class Vi extends Error{constructor(t){super(t),this.name="ElementPlusError"}}function Ht(e,t){if(process.env.NODE_ENV!=="production"){const n=se(e)?new Vi(`[${e}] ${t}`):e;console.warn(n)}}const Fi="utils/dom/style",mo=(e="")=>e.split(" ").filter(t=>!!t.trim()),ho=(e,t)=>{!e||!t.trim()||e.classList.add(...mo(t))},ut=(e,t)=>{!e||!t.trim()||e.classList.remove(...mo(t))},Re=(e,t)=>{var n;if(!re||!e||!t)return"";let o=ta(t);o==="float"&&(o="cssFloat");try{const s=e.style[o];if(s)return s;const a=(n=document.defaultView)==null?void 0:n.getComputedStyle(e,"");return a?a[o]:""}catch{return e.style[o]}};function Ii(e,t="px"){if(!e)return"";if(De(e)||Ai(e))return`${e}${t}`;if(se(e))return e;Ht(Fi,"binding value must be a string or number")}/*! Element Plus Icons Vue v2.1.0 */var je=(e,t)=>{let n=e.__vccOpts||e;for(let[o,s]of t)n[o]=s;return n},Di={name:"CircleCloseFilled"},Ri={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},ji=r.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336L512 457.664z"},null,-1),Mi=[ji];function Ui(e,t,n,o,s,a){return r.openBlock(),r.createElementBlock("svg",Ri,Mi)}var go=je(Di,[["render",Ui],["__file","circle-close-filled.vue"]]),zi={name:"Close"},Hi={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},qi=r.createElementVNode("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"},null,-1),Wi=[qi];function Gi(e,t,n,o,s,a){return r.openBlock(),r.createElementBlock("svg",Hi,Wi)}var Ji=je(zi,[["render",Gi],["__file","close.vue"]]),Ki={name:"InfoFilled"},Qi={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Yi=r.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64zm67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344zM590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.992 12.992 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"},null,-1),Xi=[Yi];function Zi(e,t,n,o,s,a){return r.openBlock(),r.createElementBlock("svg",Qi,Xi)}var yo=je(Ki,[["render",Zi],["__file","info-filled.vue"]]),el={name:"SuccessFilled"},tl={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},nl=r.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336L456.192 600.384z"},null,-1),ol=[nl];function rl(e,t,n,o,s,a){return r.openBlock(),r.createElementBlock("svg",tl,ol)}var bo=je(el,[["render",rl],["__file","success-filled.vue"]]),sl={name:"WarningFilled"},al={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},il=r.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm0 192a58.432 58.432 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.432 58.432 0 0 0 512 256zm0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4z"},null,-1),ll=[il];function cl(e,t,n,o,s,a){return r.openBlock(),r.createElementBlock("svg",al,ll)}var _o=je(sl,[["render",cl],["__file","warning-filled.vue"]]);const wo="__epPropKey",oe=e=>e,ul=e=>it(e)&&!!e[wo],Eo=(e,t)=>{if(!it(e)||ul(e))return e;const{values:n,required:o,default:s,type:a,validator:i}=e,f={type:a,required:!!o,validator:n||i?c=>{let u=!1,d=[];if(n&&(d=Array.from(n),to(e,"default")&&d.push(s),u||(u=d.includes(c))),i&&(u||(u=i(c))),!u&&d.length>0){const p=[...new Set(d)].map(m=>JSON.stringify(m)).join(", ");r.warn(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${p}], got value ${JSON.stringify(c)}.`)}return u}:void 0,[wo]:!0};return to(e,"default")&&(f.default=s),f},dt=e=>$i(Object.entries(e).map(([t,n])=>[t,Eo(n,t)])),dl=oe([String,Object,Function]),fl={Close:Ji,SuccessFilled:bo,InfoFilled:yo,WarningFilled:_o,CircleCloseFilled:go},vo={success:bo,warning:_o,error:go,info:yo},So=(e,t)=>{if(e.install=n=>{for(const o of[e,...Object.values(t??{})])n.component(o.name,o)},t)for(const[n,o]of Object.entries(t))e[n]=o;return e},pl=(e,t)=>(e.install=n=>{e._context=n._context,n.config.globalProperties[t]=e},e),ml={tab:"Tab",enter:"Enter",space:"Space",left:"ArrowLeft",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",esc:"Escape",delete:"Delete",backspace:"Backspace",numpadEnter:"NumpadEnter",pageUp:"PageUp",pageDown:"PageDown",home:"Home",end:"End"},hl=["","default","small","large"],gl=e=>e;var yl={name:"en",el:{colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color."},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",week:"week",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",page:"Page",prev:"Go to previous page",next:"Go to next page",currentPage:"page {pager}",prevPages:"Previous {pager} pages",nextPages:"Next {pager} pages",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"}}};const bl=e=>(t,n)=>_l(t,n,r.unref(e)),_l=(e,t,n)=>Ti(n,e,e).replace(/\{(\w+)\}/g,(o,s)=>{var a;return`${(a=t==null?void 0:t[s])!=null?a:`{${s}}`}`}),wl=e=>{const t=r.computed(()=>r.unref(e).name),n=r.isRef(e)?e:r.ref(e);return{lang:t,locale:n,t:bl(e)}},No=Symbol("localeContextKey"),El=e=>{const t=e||r.inject(No,r.ref());return wl(r.computed(()=>t.value||yl))},ft="el",vl="is-",le=(e,t,n,o,s)=>{let a=`${e}-${t}`;return n&&(a+=`-${n}`),o&&(a+=`__${o}`),s&&(a+=`--${s}`),a},xo=Symbol("namespaceContextKey"),Sl=e=>{const t=e||(r.getCurrentInstance()?r.inject(xo,r.ref(ft)):r.ref(ft));return r.computed(()=>r.unref(t)||ft)},qt=(e,t)=>{const n=Sl(t);return{namespace:n,b:(h="")=>le(n.value,e,h,"",""),e:h=>h?le(n.value,e,"",h,""):"",m:h=>h?le(n.value,e,"","",h):"",be:(h,_)=>h&&_?le(n.value,e,h,_,""):"",em:(h,_)=>h&&_?le(n.value,e,"",h,_):"",bm:(h,_)=>h&&_?le(n.value,e,h,"",_):"",bem:(h,_,w)=>h&&_&&w?le(n.value,e,h,_,w):"",is:(h,..._)=>{const w=_.length>=1?_[0]:!0;return h&&w?`${vl}${h}`:""},cssVar:h=>{const _={};for(const w in h)h[w]&&(_[`--${n.value}-${w}`]=h[w]);return _},cssVarName:h=>`--${n.value}-${h}`,cssVarBlock:h=>{const _={};for(const w in h)h[w]&&(_[`--${n.value}-${e}-${w}`]=h[w]);return _},cssVarBlockName:h=>`--${n.value}-${e}-${h}`}},Co=r.ref(0),Oo=2e3,Po=Symbol("zIndexContextKey"),Nl=e=>{const t=e||(r.getCurrentInstance()?r.inject(Po,void 0):void 0),n=r.computed(()=>{const a=r.unref(t);return De(a)?a:Oo}),o=r.computed(()=>n.value+Co.value);return{initialZIndex:n,currentZIndex:o,nextZIndex:()=>(Co.value++,o.value)}},xl=Eo({type:String,values:hl,required:!1}),Cl=Symbol("size"),ko=Symbol(),pt=r.ref();function To(e,t=void 0){const n=r.getCurrentInstance()?r.inject(ko,pt):pt;return e?r.computed(()=>{var o,s;return(s=(o=n.value)==null?void 0:o[e])!=null?s:t}):n}function $o(e,t){const n=To(),o=qt(e,r.computed(()=>{var l;return((l=n.value)==null?void 0:l.namespace)||ft})),s=El(r.computed(()=>{var l;return(l=n.value)==null?void 0:l.locale})),a=Nl(r.computed(()=>{var l;return((l=n.value)==null?void 0:l.zIndex)||Oo})),i=r.computed(()=>{var l;return r.unref(t)||((l=n.value)==null?void 0:l.size)||""});return Lo(r.computed(()=>r.unref(n)||{})),{ns:o,locale:s,zIndex:a,size:i}}const Lo=(e,t,n=!1)=>{var o;const s=!!r.getCurrentInstance(),a=s?To():void 0,i=(o=t==null?void 0:t.provide)!=null?o:s?r.provide:void 0;if(!i){Ht("provideGlobalConfig","provideGlobalConfig() can only be used inside setup().");return}const l=r.computed(()=>{const f=r.unref(e);return a!=null&&a.value?Ol(a.value,f):f});return i(ko,l),i(No,r.computed(()=>l.value.locale)),i(xo,r.computed(()=>l.value.namespace)),i(Po,r.computed(()=>l.value.zIndex)),i(Cl,{size:r.computed(()=>l.value.size||"")}),(n||!pt.value)&&(pt.value=l.value),l},Ol=(e,t)=>{var n;const o=[...new Set([...po(e),...po(t)])],s={};for(const a of o)s[a]=(n=t[a])!=null?n:e[a];return s},Pl=dt({a11y:{type:Boolean,default:!0},locale:{type:oe(Object)},size:xl,button:{type:oe(Object)},experimentalFeatures:{type:oe(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:oe(Object)},zIndex:Number,namespace:{type:String,default:"el"}}),Wt={};r.defineComponent({name:"ElConfigProvider",props:Pl,setup(e,{slots:t}){r.watch(()=>e.message,o=>{Object.assign(Wt,o??{})},{immediate:!0,deep:!0});const n=Lo(e);return()=>r.renderSlot(t,"default",{config:n==null?void 0:n.value})}});var Gt=(e,t)=>{const n=e.__vccOpts||e;for(const[o,s]of t)n[o]=s;return n};const kl=dt({size:{type:oe([Number,String])},color:{type:String}}),Tl=r.defineComponent({name:"ElIcon",inheritAttrs:!1}),$l=r.defineComponent({...Tl,props:kl,setup(e){const t=e,n=qt("icon"),o=r.computed(()=>{const{size:s,color:a}=t;return!s&&!a?{}:{fontSize:Li(s)?void 0:Ii(s),"--color":a}});return(s,a)=>(r.openBlock(),r.createElementBlock("i",r.mergeProps({class:r.unref(n).b(),style:r.unref(o)},s.$attrs),[r.renderSlot(s.$slots,"default")],16))}});var Ll=Gt($l,[["__file","/home/runner/work/element-plus/element-plus/packages/components/icon/src/icon.vue"]]);const Bo=So(Ll),Bl=dt({value:{type:[String,Number],default:""},max:{type:Number,default:99},isDot:Boolean,hidden:Boolean,type:{type:String,values:["primary","success","warning","info","danger"],default:"danger"}}),Al=["textContent"],Vl=r.defineComponent({name:"ElBadge"}),Fl=r.defineComponent({...Vl,props:Bl,setup(e,{expose:t}){const n=e,o=qt("badge"),s=r.computed(()=>n.isDot?"":De(n.value)&&De(n.max)?n.max<n.value?`${n.max}+`:`${n.value}`:`${n.value}`);return t({content:s}),(a,i)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(r.unref(o).b())},[r.renderSlot(a.$slots,"default"),r.createVNode(r.Transition,{name:`${r.unref(o).namespace.value}-zoom-in-center`,persisted:""},{default:r.withCtx(()=>[r.withDirectives(r.createElementVNode("sup",{class:r.normalizeClass([r.unref(o).e("content"),r.unref(o).em("content",a.type),r.unref(o).is("fixed",!!a.$slots.default),r.unref(o).is("dot",a.isDot)]),textContent:r.toDisplayString(r.unref(s))},null,10,Al),[[r.vShow,!a.hidden&&(r.unref(s)||a.isDot)]])]),_:1},8,["name"])],2))}});var Il=Gt(Fl,[["__file","/home/runner/work/element-plus/element-plus/packages/components/badge/src/badge.vue"]]);const Dl=So(Il);function Rl(e){let t;const n=r.ref(!1),o=r.reactive({...e,originalPosition:"",originalOverflow:"",visible:!1});function s(p){o.text=p}function a(){const p=o.parent,m=d.ns;if(!p.vLoadingAddClassList){let g=p.getAttribute("loading-number");g=Number.parseInt(g)-1,g?p.setAttribute("loading-number",g.toString()):(ut(p,m.bm("parent","relative")),p.removeAttribute("loading-number")),ut(p,m.bm("parent","hidden"))}i(),u.unmount()}function i(){var p,m;(m=(p=d.$el)==null?void 0:p.parentNode)==null||m.removeChild(d.$el)}function l(){var p;e.beforeClose&&!e.beforeClose()||(n.value=!0,clearTimeout(t),t=window.setTimeout(f,400),o.visible=!1,(p=e.closed)==null||p.call(e))}function f(){if(!n.value)return;const p=o.parent;n.value=!1,p.vLoadingAddClassList=void 0,a()}const c=r.defineComponent({name:"ElLoading",setup(p,{expose:m}){const{ns:g,zIndex:h}=$o("loading");return m({ns:g,zIndex:h}),()=>{const _=o.spinner||o.svg,w=r.h("svg",{class:"circular",viewBox:o.svgViewBox?o.svgViewBox:"0 0 50 50",..._?{innerHTML:_}:{}},[r.h("circle",{class:"path",cx:"25",cy:"25",r:"20",fill:"none"})]),O=o.text?r.h("p",{class:g.b("text")},[o.text]):void 0;return r.h(r.Transition,{name:g.b("fade"),onAfterLeave:f},{default:r.withCtx(()=>[r.withDirectives(r.createVNode("div",{style:{backgroundColor:o.background||""},class:[g.b("mask"),o.customClass,o.fullscreen?"is-fullscreen":""]},[r.h("div",{class:g.b("spinner")},[w,O])]),[[r.vShow,o.visible]])])})}}}),u=r.createApp(c),d=u.mount(document.createElement("div"));return{...r.toRefs(o),setText:s,removeElLoadingChild:i,close:l,handleAfterLeave:f,vm:d,get $el(){return d.$el}}}let mt;const Jt=function(e={}){if(!re)return;const t=jl(e);if(t.fullscreen&&mt)return mt;const n=Rl({...t,closed:()=>{var s;(s=t.closed)==null||s.call(t),t.fullscreen&&(mt=void 0)}});Ml(t,t.parent,n),Ao(t,t.parent,n),t.parent.vLoadingAddClassList=()=>Ao(t,t.parent,n);let o=t.parent.getAttribute("loading-number");return o?o=`${Number.parseInt(o)+1}`:o="1",t.parent.setAttribute("loading-number",o),t.parent.appendChild(n.$el),r.nextTick(()=>n.visible.value=t.visible),t.fullscreen&&(mt=n),n},jl=e=>{var t,n,o,s;let a;return se(e.target)?a=(t=document.querySelector(e.target))!=null?t:document.body:a=e.target||document.body,{parent:a===document.body||e.body?document.body:a,background:e.background||"",svg:e.svg||"",svgViewBox:e.svgViewBox||"",spinner:e.spinner||!1,text:e.text||"",fullscreen:a===document.body&&((n=e.fullscreen)!=null?n:!0),lock:(o=e.lock)!=null?o:!1,customClass:e.customClass||"",visible:(s=e.visible)!=null?s:!0,target:a}},Ml=async(e,t,n)=>{const{nextZIndex:o}=n.vm.zIndex||n.vm._.exposed.zIndex,s={};if(e.fullscreen)n.originalPosition.value=Re(document.body,"position"),n.originalOverflow.value=Re(document.body,"overflow"),s.zIndex=o();else if(e.parent===document.body){n.originalPosition.value=Re(document.body,"position"),await r.nextTick();for(const a of["top","left"]){const i=a==="top"?"scrollTop":"scrollLeft";s[a]=`${e.target.getBoundingClientRect()[a]+document.body[i]+document.documentElement[i]-Number.parseInt(Re(document.body,`margin-${a}`),10)}px`}for(const a of["height","width"])s[a]=`${e.target.getBoundingClientRect()[a]}px`}else n.originalPosition.value=Re(t,"position");for(const[a,i]of Object.entries(s))n.$el.style[a]=i},Ao=(e,t,n)=>{const o=n.vm.ns||n.vm._.exposed.ns;["absolute","fixed","sticky"].includes(n.originalPosition.value)?ut(t,o.bm("parent","relative")):ho(t,o.bm("parent","relative")),e.fullscreen&&e.lock?ho(t,o.bm("parent","hidden")):ut(t,o.bm("parent","hidden"))},Kt=Symbol("ElLoading"),Vo=(e,t)=>{var n,o,s,a;const i=t.instance,l=p=>it(t.value)?t.value[p]:void 0,f=p=>{const m=se(p)&&(i==null?void 0:i[p])||p;return m&&r.ref(m)},c=p=>f(l(p)||e.getAttribute(`element-loading-${oa(p)}`)),u=(n=l("fullscreen"))!=null?n:t.modifiers.fullscreen,d={text:c("text"),svg:c("svg"),svgViewBox:c("svgViewBox"),spinner:c("spinner"),background:c("background"),customClass:c("customClass"),fullscreen:u,target:(o=l("target"))!=null?o:u?void 0:e,body:(s=l("body"))!=null?s:t.modifiers.body,lock:(a=l("lock"))!=null?a:t.modifiers.lock};e[Kt]={options:d,instance:Jt(d)}},Ul=(e,t)=>{for(const n of Object.keys(t))r.isRef(t[n])&&(t[n].value=e[n])},Fo={mounted(e,t){t.value&&Vo(e,t)},updated(e,t){const n=e[Kt];t.oldValue!==t.value&&(t.value&&!t.oldValue?Vo(e,t):t.value&&t.oldValue?it(t.value)&&Ul(t.value,n.options):n==null||n.instance.close())},unmounted(e){var t;(t=e[Kt])==null||t.instance.close()}},ve={install(e){e.directive("loading",Fo),e.config.globalProperties.$loading=Jt},directive:Fo,service:Jt},Io=["success","info","warning","error"],R=gl({customClass:"",center:!1,dangerouslyUseHTMLString:!1,duration:3e3,icon:void 0,id:"",message:"",onClose:void 0,showClose:!1,type:"info",offset:16,zIndex:0,grouping:!1,repeatNum:1,appendTo:re?document.body:void 0}),zl=dt({customClass:{type:String,default:R.customClass},center:{type:Boolean,default:R.center},dangerouslyUseHTMLString:{type:Boolean,default:R.dangerouslyUseHTMLString},duration:{type:Number,default:R.duration},icon:{type:dl,default:R.icon},id:{type:String,default:R.id},message:{type:oe([String,Object,Function]),default:R.message},onClose:{type:oe(Function),required:!1},showClose:{type:Boolean,default:R.showClose},type:{type:String,values:Io,default:R.type},offset:{type:Number,default:R.offset},zIndex:{type:Number,default:R.zIndex},grouping:{type:Boolean,default:R.grouping},repeatNum:{type:Number,default:R.repeatNum}}),Hl={destroy:()=>!0},q=r.shallowReactive([]),ql=e=>{const t=q.findIndex(s=>s.id===e),n=q[t];let o;return t>0&&(o=q[t-1]),{current:n,prev:o}},Wl=e=>{const{prev:t}=ql(e);return t?t.vm.exposed.bottom.value:0},Gl=(e,t)=>q.findIndex(o=>o.id===e)>0?20:t,Jl=["id"],Kl=["innerHTML"],Ql=r.defineComponent({name:"ElMessage"}),Yl=r.defineComponent({...Ql,props:zl,emits:Hl,setup(e,{expose:t}){const n=e,{Close:o}=fl,{ns:s,zIndex:a}=$o("message"),{currentZIndex:i,nextZIndex:l}=a,f=r.ref(),c=r.ref(!1),u=r.ref(0);let d;const p=r.computed(()=>n.type?n.type==="error"?"danger":n.type:"info"),m=r.computed(()=>{const b=n.type;return{[s.bm("icon",b)]:b&&vo[b]}}),g=r.computed(()=>n.icon||vo[n.type]||""),h=r.computed(()=>Wl(n.id)),_=r.computed(()=>Gl(n.id,n.offset)+h.value),w=r.computed(()=>u.value+_.value),O=r.computed(()=>({top:`${_.value}px`,zIndex:i.value}));function x(){n.duration!==0&&({stop:d}=Us(()=>{E()},n.duration))}function k(){d==null||d()}function E(){c.value=!1}function C({code:b}){b===ml.esc&&E()}return r.onMounted(()=>{x(),l(),c.value=!0}),r.watch(()=>n.repeatNum,()=>{k(),x()}),zs(document,"keydown",C),Js(f,()=>{u.value=f.value.getBoundingClientRect().height}),t({visible:c,bottom:w,close:E}),(b,V)=>(r.openBlock(),r.createBlock(r.Transition,{name:r.unref(s).b("fade"),onBeforeLeave:b.onClose,onAfterLeave:V[0]||(V[0]=D=>b.$emit("destroy")),persisted:""},{default:r.withCtx(()=>[r.withDirectives(r.createElementVNode("div",{id:b.id,ref_key:"messageRef",ref:f,class:r.normalizeClass([r.unref(s).b(),{[r.unref(s).m(b.type)]:b.type&&!b.icon},r.unref(s).is("center",b.center),r.unref(s).is("closable",b.showClose),b.customClass]),style:r.normalizeStyle(r.unref(O)),role:"alert",onMouseenter:k,onMouseleave:x},[b.repeatNum>1?(r.openBlock(),r.createBlock(r.unref(Dl),{key:0,value:b.repeatNum,type:r.unref(p),class:r.normalizeClass(r.unref(s).e("badge"))},null,8,["value","type","class"])):r.createCommentVNode("v-if",!0),r.unref(g)?(r.openBlock(),r.createBlock(r.unref(Bo),{key:1,class:r.normalizeClass([r.unref(s).e("icon"),r.unref(m)])},{default:r.withCtx(()=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(r.unref(g))))]),_:1},8,["class"])):r.createCommentVNode("v-if",!0),r.renderSlot(b.$slots,"default",{},()=>[b.dangerouslyUseHTMLString?(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[r.createCommentVNode(" Caution here, message could've been compromised, never use user's input as message "),r.createElementVNode("p",{class:r.normalizeClass(r.unref(s).e("content")),innerHTML:b.message},null,10,Kl)],2112)):(r.openBlock(),r.createElementBlock("p",{key:0,class:r.normalizeClass(r.unref(s).e("content"))},r.toDisplayString(b.message),3))]),b.showClose?(r.openBlock(),r.createBlock(r.unref(Bo),{key:2,class:r.normalizeClass(r.unref(s).e("closeBtn")),onClick:r.withModifiers(E,["stop"])},{default:r.withCtx(()=>[r.createVNode(r.unref(o))]),_:1},8,["class","onClick"])):r.createCommentVNode("v-if",!0)],46,Jl),[[r.vShow,c.value]])]),_:3},8,["name","onBeforeLeave"]))}});var Xl=Gt(Yl,[["__file","/home/runner/work/element-plus/element-plus/packages/components/message/src/message.vue"]]);let Zl=1;const Do=e=>{const t=!e||se(e)||r.isVNode(e)||Dt(e)?{message:e}:e,n={...R,...t};if(!n.appendTo)n.appendTo=document.body;else if(se(n.appendTo)){let o=document.querySelector(n.appendTo);Bi(o)||(Ht("ElMessage","the appendTo option is not an HTMLElement. Falling back to document.body."),o=document.body),n.appendTo=o}return n},ec=e=>{const t=q.indexOf(e);if(t===-1)return;q.splice(t,1);const{handler:n}=e;n.close()},tc=({appendTo:e,...t},n)=>{const o=`message_${Zl++}`,s=t.onClose,a=document.createElement("div"),i={...t,id:o,onClose:()=>{s==null||s(),ec(u)},onDestroy:()=>{r.render(null,a)}},l=r.createVNode(Xl,i,Dt(i.message)||r.isVNode(i.message)?{default:Dt(i.message)?i.message:()=>i.message}:null);l.appContext=n||Se._context,r.render(l,a),e.appendChild(a.firstElementChild);const f=l.component,u={id:o,vnode:l,vm:f,handler:{close:()=>{f.exposed.visible.value=!1}},props:l.component.props};return u},Se=(e={},t)=>{if(!re)return{close:()=>{}};if(De(Wt.max)&&q.length>=Wt.max)return{close:()=>{}};const n=Do(e);if(n.grouping&&q.length){const s=q.find(({vnode:a})=>{var i;return((i=a.props)==null?void 0:i.message)===n.message});if(s)return s.props.repeatNum+=1,s.props.type=n.type,s.handler}const o=tc(n,t);return q.push(o),o.handler};Io.forEach(e=>{Se[e]=(t={},n)=>{const o=Do(t);return Se({...o,type:e},n)}});function nc(e){for(const t of q)(!e||e===t.props.type)&&t.handler.close()}Se.closeAll=nc,Se._context=null;const ht=pl(Se,"$message");function Me(){let e="";return typeof app_config=="object"&&app_config&&Object.keys(app_config).length>0&&(e=app_config.base_url||""),e}function oc(){const e=jo(),t=Me();return e.product?e.product:t?t.slice(1):location.href.indexOf("convert")!=-1?"convert":location.href.indexOf("translate")!=-1?"translate":"recorder"}function Ro(e,t){window.__bl&&__bl.error(new Error(JSON.stringify(e)),{filename:t,lineno:384,colno:18})}function jo(){var e={};if(location.search.length>1)for(var t,n=0,o=location.search.substr(1).split("&");n<o.length;n++)t=o[n].split("="),e[decodeURIComponent(t[0])]=t.length>1?decodeURIComponent(t[1]):"";return e}function Ne({url:e,data:t=null,method:n="GET",headers:o=null,cacheKey:s,cacheTime:a}){try{var i=new AbortController,l=i.signal}catch{}const f=oc();let c={method:n,headers:{"X-Access-Channel":f}};if(o&&(c.headers=Object.assign(c.headers,o),o["Content-Type"]&&o["Content-Type"].indexOf("application/x-www-form-urlencoded")!=-1&&t)){let d="";Object.keys(t).forEach(p=>{(t[p]||t[p]==0)&&(d+=`${p}=${t[p]}&`)}),t=d.slice(0,d.length-1)}t&&(typeof t=="string"?c.body=t:c.body=JSON.stringify(t)),l&&(c.signal=l);const u=()=>new Promise((d,p)=>{setTimeout(()=>{d(new Response("timeout",{status:504,statusText:"timeout"})),i&&i.abort()},6e4)});return Promise.race([u(),fetch(e,c).then(d=>d.json())]).then(d=>(console.log(d),d.success==!0||d.ok===0||d.code==0?(s&&(a?st.put(s,d.data,a):st.put(s,d.data)),(d.message||d.message==0)&&(window.g_message=d.message),Promise.resolve(d.data)):d&&d.image||d&&d.GOOGLE_ACCESS_TOKEN?(s&&(a?st.put(s,d,a):st.put(s,d)),Promise.resolve(d)):d.statusText=="timeout"?Promise.reject("The system is busy, please try again later"):Promise.reject(d.message||d.msg&&d||"failed, please check your network and try again"))).catch(d=>Promise.reject(d))}let xe=Me();function Mo(e=!1){const t={"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"};let n=xe+"/api/user/status";return e&&(n+="?drive=1"),Ne({url:n,method:"POST",headers:t})}const rc=e=>Ne({url:xe+"/api/user/active-passport",data:{passport:e},method:"POST",headers:{"Content-Type":"application/json"}});function sc(e){return Ne({url:xe+"/api/user/facebooklogin",data:{token:e},method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"}})}function Uo(e){return Ne({url:xe+"/api/user/google",data:{token:e},method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"}})}function ac(e,t){return Ne({url:xe+"/api/user/emaillogin?email="+encodeURIComponent(e)+"&password="+encodeURIComponent(t)})}function ic(e,t,n){return Ne({url:xe+"/api/user/emailsignup?email="+encodeURIComponent(e)+"&username="+encodeURIComponent(t)+"&password="+encodeURIComponent(n)})}function j(e,t,...n){if(e in t){let s=t[e];return typeof s=="function"?s(...n):s}let o=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(s=>`"${s}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(o,j),o}var ce=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(ce||{}),lc=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(lc||{});function F({visible:e=!0,features:t=0,ourProps:n,theirProps:o,...s}){var a;let i=Ho(o,n),l=Object.assign(s,{props:i});if(e||t&2&&i.static)return Qt(l);if(t&1){let f=(a=i.unmount)==null||a?0:1;return j(f,{[0](){return null},[1](){return Qt({...s,props:{...i,hidden:!0,style:{display:"none"}}})}})}return Qt(l)}function Qt({props:e,attrs:t,slots:n,slot:o,name:s}){var a,i;let{as:l,...f}=cc(e,["unmount","static"]),c=(a=n.default)==null?void 0:a.call(n,o),u={};if(o){let d=!1,p=[];for(let[m,g]of Object.entries(o))typeof g=="boolean"&&(d=!0),g===!0&&p.push(m);d&&(u["data-headlessui-state"]=p.join(" "))}if(l==="template"){if(c=zo(c??[]),Object.keys(f).length>0||Object.keys(t).length>0){let[d,...p]=c??[];if(!uc(d)||p.length>0)throw new Error(['Passing props on "template"!',"",`The current component <${s} /> is rendering a "template".`,"However we need to passthrough the following props:",Object.keys(f).concat(Object.keys(t)).map(h=>h.trim()).filter((h,_,w)=>w.indexOf(h)===_).sort((h,_)=>h.localeCompare(_)).map(h=>` - ${h}`).join(`
4
4
  `),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "template".',"Render a single element as the child so that we can forward the props onto that element."].map(h=>` - ${h}`).join(`
5
5
  `)].join(`
6
- `));let m=Ho((l=d.props)!=null?l:{},f),g=r.cloneVNode(d,m);for(let h in m)h.startsWith("on")&&(g.props||(g.props={}),g.props[h]=m[h]);return g}return Array.isArray(c)&&c.length===1?c[0]:c}return r.h(i,Object.assign({},f,u),{default:()=>c})}function zo(e){return e.flatMap(t=>t.type===r.Fragment?zo(t.children):[t])}function Ho(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let o of e)for(let s in o)s.startsWith("on")&&typeof o[s]=="function"?(n[s]!=null||(n[s]=[]),n[s].push(o[s])):t[s]=o[s];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(n).map(o=>[o,void 0])));for(let o in n)Object.assign(t,{[o](s,...a){let l=n[o];for(let i of l){if(s instanceof Event&&s.defaultPrevented)return;i(s,...a)}}});return t}function cc(e,t=[]){let n=Object.assign({},e);for(let o of t)o in n&&delete n[o];return n}function uc(e){return e==null?!1:typeof e.type=="string"||typeof e.type=="object"||typeof e.type=="function"}let dc=0;function fc(){return++dc}function z(){return fc()}var te=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(te||{});function S(e){var t;return e==null||e.value==null?null:(t=e.value.$el)!=null?t:e.value}let qo=Symbol("Context");var W=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(W||{});function Yt(){return r.inject(qo,null)}function pc(e){r.provide(qo,e)}function Wo(e,t){if(e)return e;let n=t??"button";if(typeof n=="string"&&n.toLowerCase()==="button")return"button"}function mc(e,t){let n=r.ref(Wo(e.value.type,e.value.as));return r.onMounted(()=>{n.value=Wo(e.value.type,e.value.as)}),r.watchEffect(()=>{var o;n.value||S(t)&&S(t)instanceof HTMLButtonElement&&!((o=S(t))!=null&&o.hasAttribute("type"))&&(n.value="button")}),n}var hc=Object.defineProperty,gc=(e,t,n)=>t in e?hc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Go=(e,t,n)=>(gc(e,typeof t!="symbol"?t+"":t,n),n);class yc{constructor(){Go(this,"current",this.detect()),Go(this,"currentId",0)}set(t){this.current!==t&&(this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}}let gt=new yc;function Y(e){if(gt.isServer)return null;if(e instanceof Node)return e.ownerDocument;if(e!=null&&e.hasOwnProperty("value")){let t=S(e);if(t)return t.ownerDocument}return document}let Xt=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var I=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))(I||{}),Ue=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(Ue||{}),bc=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(bc||{});function yt(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(Xt)).sort((t,n)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}var Zt=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(Zt||{});function Jo(e,t=0){var n;return e===((n=Y(e))==null?void 0:n.body)?!1:j(t,{[0](){return e.matches(Xt)},[1](){let o=e;for(;o!==null;){if(o.matches(Xt))return!0;o=o.parentElement}return!1}})}var _c=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(_c||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{e.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:e.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function ue(e){e==null||e.focus({preventScroll:!0})}let wc=["textarea","input"].join(",");function Ec(e){var t,n;return(n=(t=e==null?void 0:e.matches)==null?void 0:t.call(e,wc))!=null?n:!1}function vc(e,t=n=>n){return e.slice().sort((n,o)=>{let s=t(n),a=t(o);if(s===null||a===null)return 0;let l=s.compareDocumentPosition(a);return l&Node.DOCUMENT_POSITION_FOLLOWING?-1:l&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function G(e,t,{sorted:n=!0,relativeTo:o=null,skipElements:s=[]}={}){var a;let l=(a=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e==null?void 0:e.ownerDocument)!=null?a:document,i=Array.isArray(e)?n?vc(e):e:yt(e);s.length>0&&i.length>1&&(i=i.filter(g=>!s.includes(g))),o=o??l.activeElement;let f=(()=>{if(t&5)return 1;if(t&10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),c=(()=>{if(t&1)return 0;if(t&2)return Math.max(0,i.indexOf(o))-1;if(t&4)return Math.max(0,i.indexOf(o))+1;if(t&8)return i.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),u=t&32?{preventScroll:!0}:{},d=0,p=i.length,m;do{if(d>=p||d+p<=0)return 0;let g=c+d;if(t&16)g=(g+p)%p;else{if(g<0)return 3;if(g>=p)return 1}m=i[g],m==null||m.focus(u),d+=f}while(m!==l.activeElement);return t&6&&Ec(m)&&m.select(),2}function Ko(e,t,n){gt.isServer||r.watchEffect(o=>{document.addEventListener(e,t,n),o(()=>document.removeEventListener(e,t,n))})}function Qo(e,t,n){gt.isServer||r.watchEffect(o=>{window.addEventListener(e,t,n),o(()=>window.removeEventListener(e,t,n))})}function Yo(e,t,n=r.computed(()=>!0)){function o(a,l){if(!n.value||a.defaultPrevented)return;let i=l(a);if(i===null||!i.getRootNode().contains(i))return;let f=function c(u){return typeof u=="function"?c(u()):Array.isArray(u)||u instanceof Set?u:[u]}(e);for(let c of f){if(c===null)continue;let u=c instanceof HTMLElement?c:S(c);if(u!=null&&u.contains(i)||a.composed&&a.composedPath().includes(u))return}return!Jo(i,Zt.Loose)&&i.tabIndex!==-1&&a.preventDefault(),t(a,i)}let s=r.ref(null);Ko("mousedown",a=>{var l,i;n.value&&(s.value=((i=(l=a.composedPath)==null?void 0:l.call(a))==null?void 0:i[0])||a.target)},!0),Ko("click",a=>{s.value&&(o(a,()=>s.value),s.value=null)},!0),Qo("blur",a=>o(a,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}var de=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(de||{});let Ce=r.defineComponent({name:"Hidden",props:{as:{type:[Object,String],default:"div"},features:{type:Number,default:1}},setup(e,{slots:t,attrs:n}){return()=>{let{features:o,...s}=e,a={"aria-hidden":(o&2)===2?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(o&4)===4&&(o&2)!==2&&{display:"none"}}};return F({ourProps:a,theirProps:s,slot:{},attrs:n,slots:t,name:"Hidden"})}}});function Sc(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function Xo(){let e=[],t={addEventListener(n,o,s,a){return n.addEventListener(o,s,a),t.add(()=>n.removeEventListener(o,s,a))},requestAnimationFrame(...n){let o=requestAnimationFrame(...n);t.add(()=>cancelAnimationFrame(o))},nextFrame(...n){t.requestAnimationFrame(()=>{t.requestAnimationFrame(...n)})},setTimeout(...n){let o=setTimeout(...n);t.add(()=>clearTimeout(o))},style(n,o,s){let a=n.style.getPropertyValue(o);return Object.assign(n.style,{[o]:s}),this.add(()=>{Object.assign(n.style,{[o]:a})})},group(n){let o=Xo();return n(o),this.add(()=>o.dispose())},add(n){return e.push(n),()=>{let o=e.indexOf(n);if(o>=0)for(let s of e.splice(o,1))s()}},dispose(){for(let n of e.splice(0))n()}};return t}var M=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(M||{});function en(){let e=r.ref(0);return Qo("keydown",t=>{t.key==="Tab"&&(e.value=t.shiftKey?1:0)}),e}function tn(e,t,n,o){gt.isServer||r.watchEffect(s=>{e=e??window,e.addEventListener(t,n,o),s(()=>e.removeEventListener(t,n,o))})}function Zo(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function Nc(e){function t(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",t))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",t),t())}function er(e){if(!e)return new Set;if(typeof e=="function")return new Set(e());let t=new Set;for(let n of e.value){let o=S(n);o instanceof HTMLElement&&t.add(o)}return t}var tr=(e=>(e[e.None=1]="None",e[e.InitialFocus=2]="InitialFocus",e[e.TabLock=4]="TabLock",e[e.FocusLock=8]="FocusLock",e[e.RestoreFocus=16]="RestoreFocus",e[e.All=30]="All",e))(tr||{});let ze=Object.assign(r.defineComponent({name:"FocusTrap",props:{as:{type:[Object,String],default:"div"},initialFocus:{type:Object,default:null},features:{type:Number,default:30},containers:{type:[Object,Function],default:r.ref(new Set)}},inheritAttrs:!1,setup(e,{attrs:t,slots:n,expose:o}){let s=r.ref(null);o({el:s,$el:s});let a=r.computed(()=>Y(s)),l=r.ref(!1);r.onMounted(()=>l.value=!0),r.onUnmounted(()=>l.value=!1),Cc({ownerDocument:a},r.computed(()=>l.value&&!!(e.features&16)));let i=Oc({ownerDocument:a,container:s,initialFocus:r.computed(()=>e.initialFocus)},r.computed(()=>l.value&&!!(e.features&2)));Pc({ownerDocument:a,container:s,containers:e.containers,previousActiveElement:i},r.computed(()=>l.value&&!!(e.features&8)));let f=en();function c(m){let g=S(s);g&&(h=>h())(()=>{j(f.value,{[M.Forwards]:()=>{G(g,I.First,{skipElements:[m.relatedTarget]})},[M.Backwards]:()=>{G(g,I.Last,{skipElements:[m.relatedTarget]})}})})}let u=r.ref(!1);function d(m){m.key==="Tab"&&(u.value=!0,requestAnimationFrame(()=>{u.value=!1}))}function p(m){if(!l.value)return;let g=er(e.containers);S(s)instanceof HTMLElement&&g.add(S(s));let h=m.relatedTarget;h instanceof HTMLElement&&h.dataset.headlessuiFocusGuard!=="true"&&(nr(g,h)||(u.value?G(S(s),j(f.value,{[M.Forwards]:()=>I.Next,[M.Backwards]:()=>I.Previous})|I.WrapAround,{relativeTo:m.target}):m.target instanceof HTMLElement&&ue(m.target)))}return()=>{let m={},g={ref:s,onKeydown:d,onFocusout:p},{features:h,initialFocus:_,containers:w,...O}=e;return r.h(r.Fragment,[!!(h&4)&&r.h(Ce,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:c,features:de.Focusable}),F({ourProps:g,theirProps:{...t,...O},slot:m,attrs:t,slots:n,name:"FocusTrap"}),!!(h&4)&&r.h(Ce,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:c,features:de.Focusable})])}}}),{features:tr}),fe=[];Nc(()=>{function e(t){t.target instanceof HTMLElement&&t.target!==document.body&&fe[0]!==t.target&&(fe.unshift(t.target),fe=fe.filter(n=>n!=null&&n.isConnected),fe.splice(10))}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})});function xc(e){let t=r.ref(fe.slice());return r.watch([e],([n],[o])=>{o===!0&&n===!1?Zo(()=>{t.value.splice(0)}):o===!1&&n===!0&&(t.value=fe.slice())},{flush:"post"}),()=>{var n;return(n=t.value.find(o=>o!=null&&o.isConnected))!=null?n:null}}function Cc({ownerDocument:e},t){let n=xc(t);r.onMounted(()=>{r.watchEffect(()=>{var o,s;t.value||((o=e.value)==null?void 0:o.activeElement)===((s=e.value)==null?void 0:s.body)&&ue(n())},{flush:"post"})}),r.onUnmounted(()=>{t.value&&ue(n())})}function Oc({ownerDocument:e,container:t,initialFocus:n},o){let s=r.ref(null),a=r.ref(!1);return r.onMounted(()=>a.value=!0),r.onUnmounted(()=>a.value=!1),r.onMounted(()=>{r.watch([t,n,o],(l,i)=>{if(l.every((c,u)=>(i==null?void 0:i[u])===c)||!o.value)return;let f=S(t);f&&Zo(()=>{var c,u;if(!a.value)return;let d=S(n),p=(c=e.value)==null?void 0:c.activeElement;if(d){if(d===p){s.value=p;return}}else if(f.contains(p)){s.value=p;return}d?ue(d):G(f,I.First|I.NoScroll)===Ue.Error&&console.warn("There are no focusable elements inside the <FocusTrap />"),s.value=(u=e.value)==null?void 0:u.activeElement})},{immediate:!0,flush:"post"})}),s}function Pc({ownerDocument:e,container:t,containers:n,previousActiveElement:o},s){var a;tn((a=e.value)==null?void 0:a.defaultView,"focus",l=>{if(!s.value)return;let i=er(n);S(t)instanceof HTMLElement&&i.add(S(t));let f=o.value;if(!f)return;let c=l.target;c&&c instanceof HTMLElement?nr(i,c)?(o.value=c,ue(c)):(l.preventDefault(),l.stopPropagation(),ue(f)):ue(o.value)},!0)}function nr(e,t){for(let n of e)if(n.contains(t))return!0;return!1}let nn=new Map,He=new Map;function or(e,t=r.ref(!0)){r.watchEffect(n=>{var o;if(!t.value)return;let s=S(e);if(!s)return;n(function(){var l;if(!s)return;let i=(l=He.get(s))!=null?l:1;if(i===1?He.delete(s):He.set(s,i-1),i!==1)return;let f=nn.get(s);f&&(f["aria-hidden"]===null?s.removeAttribute("aria-hidden"):s.setAttribute("aria-hidden",f["aria-hidden"]),s.inert=f.inert,nn.delete(s))});let a=(o=He.get(s))!=null?o:0;He.set(s,a+1),a===0&&(nn.set(s,{"aria-hidden":s.getAttribute("aria-hidden"),inert:s.inert}),s.setAttribute("aria-hidden","true"),s.inert=!0)})}let rr=Symbol("ForcePortalRootContext");function kc(){return r.inject(rr,!1)}let on=r.defineComponent({name:"ForcePortalRoot",props:{as:{type:[Object,String],default:"template"},force:{type:Boolean,default:!1}},setup(e,{slots:t,attrs:n}){return r.provide(rr,e.force),()=>{let{force:o,...s}=e;return F({theirProps:s,ourProps:{},slot:{},slots:t,attrs:n,name:"ForcePortalRoot"})}}});function Tc(e){let t=Y(e);if(!t){if(e===null)return null;throw new Error(`[Headless UI]: Cannot find ownerDocument for contextElement: ${e}`)}let n=t.getElementById("headlessui-portal-root");if(n)return n;let o=t.createElement("div");return o.setAttribute("id","headlessui-portal-root"),t.body.appendChild(o)}let sr=r.defineComponent({name:"Portal",props:{as:{type:[Object,String],default:"div"}},setup(e,{slots:t,attrs:n}){let o=r.ref(null),s=r.computed(()=>Y(o)),a=kc(),l=r.inject(lr,null),i=r.ref(a===!0||l==null?Tc(o.value):l.resolveTarget());r.watchEffect(()=>{a||l!=null&&(i.value=l.resolveTarget())});let f=r.inject(rn,null);return r.onMounted(()=>{let c=S(o);c&&f&&r.onUnmounted(f.register(c))}),r.onUnmounted(()=>{var c,u;let d=(c=s.value)==null?void 0:c.getElementById("headlessui-portal-root");d&&i.value===d&&i.value.children.length<=0&&((u=i.value.parentElement)==null||u.removeChild(i.value))}),()=>{if(i.value===null)return null;let c={ref:o,"data-headlessui-portal":""};return r.h(r.Teleport,{to:i.value},F({ourProps:c,theirProps:e,slot:{},attrs:n,slots:t,name:"Portal"}))}}}),rn=Symbol("PortalParentContext");function ar(){let e=r.inject(rn,null),t=r.ref([]);function n(a){return t.value.push(a),e&&e.register(a),()=>o(a)}function o(a){let l=t.value.indexOf(a);l!==-1&&t.value.splice(l,1),e&&e.unregister(a)}let s={register:n,unregister:o,portals:t};return[t,r.defineComponent({name:"PortalWrapper",setup(a,{slots:l}){return r.provide(rn,s),()=>{var i;return(i=l.default)==null?void 0:i.call(l)}}})]}let lr=Symbol("PortalGroupContext"),$c=r.defineComponent({name:"PortalGroup",props:{as:{type:[Object,String],default:"template"},target:{type:Object,default:null}},setup(e,{attrs:t,slots:n}){let o=r.reactive({resolveTarget(){return e.target}});return r.provide(lr,o),()=>{let{target:s,...a}=e;return F({theirProps:a,ourProps:{},slot:{},attrs:t,slots:n,name:"PortalGroup"})}}}),ir=Symbol("StackContext");var sn=(e=>(e[e.Add=0]="Add",e[e.Remove=1]="Remove",e))(sn||{});function Lc(){return r.inject(ir,()=>{})}function Bc({type:e,enabled:t,element:n,onUpdate:o}){let s=Lc();function a(...l){o==null||o(...l),s(...l)}r.onMounted(()=>{r.watch(t,(l,i)=>{l?a(0,e,n):i===!0&&a(1,e,n)},{immediate:!0,flush:"sync"})}),r.onUnmounted(()=>{t.value&&a(1,e,n)}),r.provide(ir,a)}let cr=Symbol("DescriptionContext");function Ac(){let e=r.inject(cr,null);if(e===null)throw new Error("Missing parent");return e}function Vc({slot:e=r.ref({}),name:t="Description",props:n={}}={}){let o=r.ref([]);function s(a){return o.value.push(a),()=>{let l=o.value.indexOf(a);l!==-1&&o.value.splice(l,1)}}return r.provide(cr,{register:s,slot:e,name:t,props:n}),r.computed(()=>o.value.length>0?o.value.join(" "):void 0)}r.defineComponent({name:"Description",props:{as:{type:[Object,String],default:"p"},id:{type:String,default:()=>`headlessui-description-${z()}`}},setup(e,{attrs:t,slots:n}){let o=Ac();return r.onMounted(()=>r.onUnmounted(o.register(e.id))),()=>{let{name:s="Description",slot:a=r.ref({}),props:l={}}=o,{id:i,...f}=e,c={...Object.entries(l).reduce((u,[d,p])=>Object.assign(u,{[d]:r.unref(p)}),{}),id:i};return F({ourProps:c,theirProps:f,slot:a.value,attrs:t,slots:n,name:s})}}});function Fc(e){let t=r.shallowRef(e.getSnapshot());return r.onUnmounted(e.subscribe(()=>{t.value=e.getSnapshot()})),t}function Ic(e,t){let n=e(),o=new Set;return{getSnapshot(){return n},subscribe(s){return o.add(s),()=>o.delete(s)},dispatch(s,...a){let l=t[s].call(n,...a);l&&(n=l,o.forEach(i=>i()))}}}function Dc(){let e;return{before({doc:t}){var n;let o=t.documentElement;e=((n=t.defaultView)!=null?n:window).innerWidth-o.clientWidth},after({doc:t,d:n}){let o=t.documentElement,s=o.clientWidth-o.offsetWidth,a=e-s;n.style(o,"paddingRight",`${a}px`)}}}function Rc(){if(!Sc())return{};let e;return{before(){e=window.pageYOffset},after({doc:t,d:n,meta:o}){function s(l){return o.containers.flatMap(i=>i()).some(i=>i.contains(l))}n.style(t.body,"marginTop",`-${e}px`),window.scrollTo(0,0);let a=null;n.addEventListener(t,"click",l=>{if(l.target instanceof HTMLElement)try{let i=l.target.closest("a");if(!i)return;let{hash:f}=new URL(i.href),c=t.querySelector(f);c&&!s(c)&&(a=c)}catch{}},!0),n.addEventListener(t,"touchmove",l=>{l.target instanceof HTMLElement&&!s(l.target)&&l.preventDefault()},{passive:!1}),n.add(()=>{window.scrollTo(0,window.pageYOffset+e),a&&a.isConnected&&(a.scrollIntoView({block:"nearest"}),a=null)})}}}function jc(){return{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}}function Mc(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let pe=Ic(()=>new Map,{PUSH(e,t){var n;let o=(n=this.get(e))!=null?n:{doc:e,count:0,d:Xo(),meta:new Set};return o.count++,o.meta.add(t),this.set(e,o),this},POP(e,t){let n=this.get(e);return n&&(n.count--,n.meta.delete(t)),this},SCROLL_PREVENT({doc:e,d:t,meta:n}){let o={doc:e,d:t,meta:Mc(n)},s=[Rc(),Dc(),jc()];s.forEach(({before:a})=>a==null?void 0:a(o)),s.forEach(({after:a})=>a==null?void 0:a(o))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});pe.subscribe(()=>{let e=pe.getSnapshot(),t=new Map;for(let[n]of e)t.set(n,n.documentElement.style.overflow);for(let n of e.values()){let o=t.get(n.doc)==="hidden",s=n.count!==0;(s&&!o||!s&&o)&&pe.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),n.count===0&&pe.dispatch("TEARDOWN",n)}});function Uc(e,t,n){let o=Fc(pe),s=r.computed(()=>{let a=e.value?o.value.get(e.value):void 0;return a?a.count>0:!1});return r.watch([e,t],([a,l],[i],f)=>{if(!a||!l)return;pe.dispatch("PUSH",a,n);let c=!1;f(()=>{c||(pe.dispatch("POP",i??a,n),c=!0)})},{immediate:!0}),s}function ur({defaultContainers:e=[],portals:t}={}){let n=r.ref(null),o=Y(n);function s(){var a;let l=[];for(let i of e)i!==null&&(i instanceof HTMLElement?l.push(i):"value"in i&&i.value instanceof HTMLElement&&l.push(i.value));if(t!=null&&t.value)for(let i of t.value)l.push(i);for(let i of(a=o==null?void 0:o.querySelectorAll("html > *, body > *"))!=null?a:[])i!==document.body&&i!==document.head&&i instanceof HTMLElement&&i.id!=="headlessui-portal-root"&&(i.contains(S(n))||l.some(f=>i.contains(f))||l.push(i));return l}return{resolveContainers:s,contains(a){return s().some(l=>l.contains(a))},mainTreeNodeRef:n,MainTreeNode(){return r.h(Ce,{features:de.Hidden,ref:n})}}}var zc=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(zc||{});let an=Symbol("DialogContext");function qe(e){let t=r.inject(an,null);if(t===null){let n=new Error(`<${e} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,qe),n}return t}let bt="DC8F892D-2EBD-447C-A4C8-A03058436FF4",Hc=r.defineComponent({name:"Dialog",inheritAttrs:!1,props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},open:{type:[Boolean,String],default:bt},initialFocus:{type:Object,default:null},id:{type:String,default:()=>`headlessui-dialog-${z()}`}},emits:{close:e=>!0},setup(e,{emit:t,attrs:n,slots:o,expose:s}){var a;let l=r.ref(!1);r.onMounted(()=>{l.value=!0});let i=r.ref(0),f=Yt(),c=r.computed(()=>e.open===bt&&f!==null?(f.value&W.Open)===W.Open:e.open),u=r.ref(null),d=r.computed(()=>Y(u));if(s({el:u,$el:u}),!(e.open!==bt||f!==null))throw new Error("You forgot to provide an `open` prop to the `Dialog`.");if(typeof c.value!="boolean")throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${c.value===bt?void 0:e.open}`);let p=r.computed(()=>l.value&&c.value?0:1),m=r.computed(()=>p.value===0),g=r.computed(()=>i.value>1),h=r.inject(an,null)!==null,[_,w]=ar(),{resolveContainers:O,mainTreeNodeRef:x,MainTreeNode:k}=ur({portals:_,defaultContainers:[r.computed(()=>{var T;return(T=B.panelRef.value)!=null?T:u.value})]}),E=r.computed(()=>g.value?"parent":"leaf"),C=r.computed(()=>f!==null?(f.value&W.Closing)===W.Closing:!1),b=r.computed(()=>h||C.value?!1:m.value),V=r.computed(()=>{var T,$,X;return(X=Array.from(($=(T=d.value)==null?void 0:T.querySelectorAll("body > *"))!=null?$:[]).find(Z=>Z.id==="headlessui-portal-root"?!1:Z.contains(S(x))&&Z instanceof HTMLElement))!=null?X:null});or(V,b);let D=r.computed(()=>g.value?!0:m.value),N=r.computed(()=>{var T,$,X;return(X=Array.from(($=(T=d.value)==null?void 0:T.querySelectorAll("[data-headlessui-portal]"))!=null?$:[]).find(Z=>Z.contains(S(x))&&Z instanceof HTMLElement))!=null?X:null});or(N,D),Bc({type:"Dialog",enabled:r.computed(()=>p.value===0),element:u,onUpdate:(T,$)=>{if($==="Dialog")return j(T,{[sn.Add]:()=>i.value+=1,[sn.Remove]:()=>i.value-=1})}});let v=Vc({name:"DialogDescription",slot:r.computed(()=>({open:c.value}))}),L=r.ref(null),B={titleId:L,panelRef:r.ref(null),dialogState:p,setTitleId(T){L.value!==T&&(L.value=T)},close(){t("close",!1)}};r.provide(an,B);let ge=r.computed(()=>!(!m.value||g.value));Yo(O,(T,$)=>{B.close(),r.nextTick(()=>$==null?void 0:$.focus())},ge);let fn=r.computed(()=>!(g.value||p.value!==0));tn((a=d.value)==null?void 0:a.defaultView,"keydown",T=>{fn.value&&(T.defaultPrevented||T.key===te.Escape&&(T.preventDefault(),T.stopPropagation(),B.close()))});let pn=r.computed(()=>!(C.value||p.value!==0||h));return Uc(d,pn,T=>{var $;return{containers:[...($=T.containers)!=null?$:[],O]}}),r.watchEffect(T=>{if(p.value!==0)return;let $=S(u);if(!$)return;let X=new ResizeObserver(Z=>{for(let mn of Z){let Te=mn.target.getBoundingClientRect();Te.x===0&&Te.y===0&&Te.width===0&&Te.height===0&&B.close()}});X.observe($),T(()=>X.disconnect())}),()=>{let{id:T,open:$,initialFocus:X,...Z}=e,mn={...n,ref:u,id:T,role:"dialog","aria-modal":p.value===0?!0:void 0,"aria-labelledby":L.value,"aria-describedby":v.value},Te={open:p.value===0};return r.h(on,{force:!0},()=>[r.h(sr,()=>r.h($c,{target:u.value},()=>r.h(on,{force:!1},()=>r.h(ze,{initialFocus:X,containers:O,features:m.value?j(E.value,{parent:ze.features.RestoreFocus,leaf:ze.features.All&~ze.features.FocusLock}):ze.features.None},()=>r.h(w,{},()=>F({ourProps:mn,theirProps:{...Z,...n},slot:Te,attrs:n,slots:o,visible:p.value===0,features:ce.RenderStrategy|ce.Static,name:"Dialog"})))))),r.h(k)])}}});r.defineComponent({name:"DialogOverlay",props:{as:{type:[Object,String],default:"div"},id:{type:String,default:()=>`headlessui-dialog-overlay-${z()}`}},setup(e,{attrs:t,slots:n}){let o=qe("DialogOverlay");function s(a){a.target===a.currentTarget&&(a.preventDefault(),a.stopPropagation(),o.close())}return()=>{let{id:a,...l}=e;return F({ourProps:{id:a,"aria-hidden":!0,onClick:s},theirProps:l,slot:{open:o.dialogState.value===0},attrs:t,slots:n,name:"DialogOverlay"})}}}),r.defineComponent({name:"DialogBackdrop",props:{as:{type:[Object,String],default:"div"},id:{type:String,default:()=>`headlessui-dialog-backdrop-${z()}`}},inheritAttrs:!1,setup(e,{attrs:t,slots:n,expose:o}){let s=qe("DialogBackdrop"),a=r.ref(null);return o({el:a,$el:a}),r.onMounted(()=>{if(s.panelRef.value===null)throw new Error("A <DialogBackdrop /> component is being used, but a <DialogPanel /> component is missing.")}),()=>{let{id:l,...i}=e,f={id:l,ref:a,"aria-hidden":!0};return r.h(on,{force:!0},()=>r.h(sr,()=>F({ourProps:f,theirProps:{...t,...i},slot:{open:s.dialogState.value===0},attrs:t,slots:n,name:"DialogBackdrop"})))}}});let qc=r.defineComponent({name:"DialogPanel",props:{as:{type:[Object,String],default:"div"},id:{type:String,default:()=>`headlessui-dialog-panel-${z()}`}},setup(e,{attrs:t,slots:n,expose:o}){let s=qe("DialogPanel");o({el:s.panelRef,$el:s.panelRef});function a(l){l.stopPropagation()}return()=>{let{id:l,...i}=e,f={id:l,ref:s.panelRef,onClick:a};return F({ourProps:f,theirProps:i,slot:{open:s.dialogState.value===0},attrs:t,slots:n,name:"DialogPanel"})}}});r.defineComponent({name:"DialogTitle",props:{as:{type:[Object,String],default:"h2"},id:{type:String,default:()=>`headlessui-dialog-title-${z()}`}},setup(e,{attrs:t,slots:n}){let o=qe("DialogTitle");return r.onMounted(()=>{o.setTitleId(e.id),r.onUnmounted(()=>o.setTitleId(null))}),()=>{let{id:s,...a}=e;return F({ourProps:{id:s},theirProps:a,slot:{open:o.dialogState.value===0},attrs:t,slots:n,name:"DialogTitle"})}}});var Wc=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Wc||{});let dr=Symbol("PopoverContext");function _t(e){let t=r.inject(dr,null);if(t===null){let n=new Error(`<${e} /> is missing a parent <${hr.name} /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,_t),n}return t}let fr=Symbol("PopoverGroupContext");function pr(){return r.inject(fr,null)}let mr=Symbol("PopoverPanelContext");function Gc(){return r.inject(mr,null)}let hr=r.defineComponent({name:"Popover",props:{as:{type:[Object,String],default:"div"}},setup(e,{slots:t,attrs:n,expose:o}){var s;let a=r.ref(null);o({el:a,$el:a});let l=r.ref(1),i=r.ref(null),f=r.ref(null),c=r.ref(null),u=r.ref(null),d=r.computed(()=>Y(a)),p=r.computed(()=>{var E,C;if(!S(i)||!S(u))return!1;for(let B of document.querySelectorAll("body > *"))if(Number(B==null?void 0:B.contains(S(i)))^Number(B==null?void 0:B.contains(S(u))))return!0;let b=yt(),V=b.indexOf(S(i)),D=(V+b.length-1)%b.length,N=(V+1)%b.length,v=b[D],L=b[N];return!((E=S(u))!=null&&E.contains(v))&&!((C=S(u))!=null&&C.contains(L))}),m={popoverState:l,buttonId:r.ref(null),panelId:r.ref(null),panel:u,button:i,isPortalled:p,beforePanelSentinel:f,afterPanelSentinel:c,togglePopover(){l.value=j(l.value,{[0]:1,[1]:0})},closePopover(){l.value!==1&&(l.value=1)},close(E){m.closePopover();let C=(()=>E?E instanceof HTMLElement?E:E.value instanceof HTMLElement?S(E):S(m.button):S(m.button))();C==null||C.focus()}};r.provide(dr,m),pc(r.computed(()=>j(l.value,{[0]:W.Open,[1]:W.Closed})));let g={buttonId:m.buttonId,panelId:m.panelId,close(){m.closePopover()}},h=pr(),_=h==null?void 0:h.registerPopover,[w,O]=ar(),x=ur({portals:w,defaultContainers:[i,u]});function k(){var E,C,b,V;return(V=h==null?void 0:h.isFocusWithinPopoverGroup())!=null?V:((E=d.value)==null?void 0:E.activeElement)&&(((C=S(i))==null?void 0:C.contains(d.value.activeElement))||((b=S(u))==null?void 0:b.contains(d.value.activeElement)))}return r.watchEffect(()=>_==null?void 0:_(g)),tn((s=d.value)==null?void 0:s.defaultView,"focus",E=>{var C,b;E.target!==window&&E.target instanceof HTMLElement&&l.value===0&&(k()||i&&u&&(x.contains(E.target)||(C=S(m.beforePanelSentinel))!=null&&C.contains(E.target)||(b=S(m.afterPanelSentinel))!=null&&b.contains(E.target)||m.closePopover()))},!0),Yo(x.resolveContainers,(E,C)=>{var b;m.closePopover(),Jo(C,Zt.Loose)||(E.preventDefault(),(b=S(i))==null||b.focus())},r.computed(()=>l.value===0)),()=>{let E={open:l.value===0,close:m.close};return r.h(O,{},()=>F({theirProps:{...e,...n},ourProps:{ref:a},slot:E,slots:t,attrs:n,name:"Popover"}))}}}),Jc=r.defineComponent({name:"PopoverButton",props:{as:{type:[Object,String],default:"button"},disabled:{type:[Boolean],default:!1},id:{type:String,default:()=>`headlessui-popover-button-${z()}`}},inheritAttrs:!1,setup(e,{attrs:t,slots:n,expose:o}){let s=_t("PopoverButton"),a=r.computed(()=>Y(s.button));o({el:s.button,$el:s.button}),r.onMounted(()=>{s.buttonId.value=e.id}),r.onUnmounted(()=>{s.buttonId.value=null});let l=pr(),i=l==null?void 0:l.closeOthers,f=Gc(),c=r.computed(()=>f===null?!1:f.value===s.panelId.value),u=r.ref(null),d=`headlessui-focus-sentinel-${z()}`;c.value||r.watchEffect(()=>{s.button.value=u.value});let p=mc(r.computed(()=>({as:e.as,type:t.type})),u);function m(x){var k,E,C,b,V;if(c.value){if(s.popoverState.value===1)return;switch(x.key){case te.Space:case te.Enter:x.preventDefault(),(E=(k=x.target).click)==null||E.call(k),s.closePopover(),(C=S(s.button))==null||C.focus();break}}else switch(x.key){case te.Space:case te.Enter:x.preventDefault(),x.stopPropagation(),s.popoverState.value===1&&(i==null||i(s.buttonId.value)),s.togglePopover();break;case te.Escape:if(s.popoverState.value!==0)return i==null?void 0:i(s.buttonId.value);if(!S(s.button)||(b=a.value)!=null&&b.activeElement&&!((V=S(s.button))!=null&&V.contains(a.value.activeElement)))return;x.preventDefault(),x.stopPropagation(),s.closePopover();break}}function g(x){c.value||x.key===te.Space&&x.preventDefault()}function h(x){var k,E;e.disabled||(c.value?(s.closePopover(),(k=S(s.button))==null||k.focus()):(x.preventDefault(),x.stopPropagation(),s.popoverState.value===1&&(i==null||i(s.buttonId.value)),s.togglePopover(),(E=S(s.button))==null||E.focus()))}function _(x){x.preventDefault(),x.stopPropagation()}let w=en();function O(){let x=S(s.panel);if(!x)return;function k(){j(w.value,{[M.Forwards]:()=>G(x,I.First),[M.Backwards]:()=>G(x,I.Last)})===Ue.Error&&G(yt().filter(E=>E.dataset.headlessuiFocusGuard!=="true"),j(w.value,{[M.Forwards]:I.Next,[M.Backwards]:I.Previous}),{relativeTo:S(s.button)})}k()}return()=>{let x=s.popoverState.value===0,k={open:x},{id:E,...C}=e,b=c.value?{ref:u,type:p.value,onKeydown:m,onClick:h}:{ref:u,id:E,type:p.value,"aria-expanded":e.disabled?void 0:s.popoverState.value===0,"aria-controls":S(s.panel)?s.panelId.value:void 0,disabled:e.disabled?!0:void 0,onKeydown:m,onKeyup:g,onClick:h,onMousedown:_};return r.h(r.Fragment,[F({ourProps:b,theirProps:{...t,...C},slot:k,attrs:t,slots:n,name:"PopoverButton"}),x&&!c.value&&s.isPortalled.value&&r.h(Ce,{id:d,features:de.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:O})])}}});r.defineComponent({name:"PopoverOverlay",props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0}},setup(e,{attrs:t,slots:n}){let o=_t("PopoverOverlay"),s=`headlessui-popover-overlay-${z()}`,a=Yt(),l=r.computed(()=>a!==null?(a.value&W.Open)===W.Open:o.popoverState.value===0);function i(){o.closePopover()}return()=>{let f={open:o.popoverState.value===0};return F({ourProps:{id:s,"aria-hidden":!0,onClick:i},theirProps:e,slot:f,attrs:t,slots:n,features:ce.RenderStrategy|ce.Static,visible:l.value,name:"PopoverOverlay"})}}});let Kc=r.defineComponent({name:"PopoverPanel",props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},focus:{type:Boolean,default:!1},id:{type:String,default:()=>`headlessui-popover-panel-${z()}`}},inheritAttrs:!1,setup(e,{attrs:t,slots:n,expose:o}){let{focus:s}=e,a=_t("PopoverPanel"),l=r.computed(()=>Y(a.panel)),i=`headlessui-focus-sentinel-before-${z()}`,f=`headlessui-focus-sentinel-after-${z()}`;o({el:a.panel,$el:a.panel}),r.onMounted(()=>{a.panelId.value=e.id}),r.onUnmounted(()=>{a.panelId.value=null}),r.provide(mr,a.panelId),r.watchEffect(()=>{var _,w;if(!s||a.popoverState.value!==0||!a.panel)return;let O=(_=l.value)==null?void 0:_.activeElement;(w=S(a.panel))!=null&&w.contains(O)||G(S(a.panel),I.First)});let c=Yt(),u=r.computed(()=>c!==null?(c.value&W.Open)===W.Open:a.popoverState.value===0);function d(_){var w,O;switch(_.key){case te.Escape:if(a.popoverState.value!==0||!S(a.panel)||l.value&&!((w=S(a.panel))!=null&&w.contains(l.value.activeElement)))return;_.preventDefault(),_.stopPropagation(),a.closePopover(),(O=S(a.button))==null||O.focus();break}}function p(_){var w,O,x,k,E;let C=_.relatedTarget;C&&S(a.panel)&&((w=S(a.panel))!=null&&w.contains(C)||(a.closePopover(),((x=(O=S(a.beforePanelSentinel))==null?void 0:O.contains)!=null&&x.call(O,C)||(E=(k=S(a.afterPanelSentinel))==null?void 0:k.contains)!=null&&E.call(k,C))&&C.focus({preventScroll:!0})))}let m=en();function g(){let _=S(a.panel);if(!_)return;function w(){j(m.value,{[M.Forwards]:()=>{var O;G(_,I.First)===Ue.Error&&((O=S(a.afterPanelSentinel))==null||O.focus())},[M.Backwards]:()=>{var O;(O=S(a.button))==null||O.focus({preventScroll:!0})}})}w()}function h(){let _=S(a.panel);if(!_)return;function w(){j(m.value,{[M.Forwards]:()=>{let O=S(a.button),x=S(a.panel);if(!O)return;let k=yt(),E=k.indexOf(O),C=k.slice(0,E+1),b=[...k.slice(E+1),...C];for(let V of b.slice())if(V.dataset.headlessuiFocusGuard==="true"||x!=null&&x.contains(V)){let D=b.indexOf(V);D!==-1&&b.splice(D,1)}G(b,I.First,{sorted:!1})},[M.Backwards]:()=>{var O;G(_,I.Previous)===Ue.Error&&((O=S(a.button))==null||O.focus())}})}w()}return()=>{let _={open:a.popoverState.value===0,close:a.close},{id:w,focus:O,...x}=e,k={ref:a.panel,id:w,onKeydown:d,onFocusout:s&&a.popoverState.value===0?p:void 0,tabIndex:-1};return F({ourProps:k,theirProps:{...t,...x},attrs:t,slot:_,slots:{...n,default:(...E)=>{var C;return[r.h(r.Fragment,[u.value&&a.isPortalled.value&&r.h(Ce,{id:i,ref:a.beforePanelSentinel,features:de.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:g}),(C=n.default)==null?void 0:C.call(n,...E),u.value&&a.isPortalled.value&&r.h(Ce,{id:f,ref:a.afterPanelSentinel,features:de.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:h})])]}},features:ce.RenderStrategy|ce.Static,visible:u.value,name:"PopoverPanel"})}}});r.defineComponent({name:"PopoverGroup",props:{as:{type:[Object,String],default:"div"}},setup(e,{attrs:t,slots:n,expose:o}){let s=r.ref(null),a=r.shallowRef([]),l=r.computed(()=>Y(s));o({el:s,$el:s});function i(d){let p=a.value.indexOf(d);p!==-1&&a.value.splice(p,1)}function f(d){return a.value.push(d),()=>{i(d)}}function c(){var d;let p=l.value;if(!p)return!1;let m=p.activeElement;return(d=S(s))!=null&&d.contains(m)?!0:a.value.some(g=>{var h,_;return((h=p.getElementById(g.buttonId.value))==null?void 0:h.contains(m))||((_=p.getElementById(g.panelId.value))==null?void 0:_.contains(m))})}function u(d){for(let p of a.value)p.buttonId.value!==d&&p.close()}return r.provide(fr,{registerPopover:f,unregisterPopover:i,isFocusWithinPopoverGroup:c,closeOthers:u}),()=>F({ourProps:{ref:s},theirProps:e,slot:{},attrs:t,slots:n,name:"PopoverGroup"})}});function Qc(e,t){return r.openBlock(),r.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[r.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"})])}function Yc(e,t){return r.openBlock(),r.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[r.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18L18 6M6 6l12 12"})])}const Xd="",Oe=(e,t)=>{const n=e.__vccOpts||e;for(const[o,s]of t)n[o]=s;return n},Xc={data(){return{isSignup:!1,email:"",emailErrorHelp:"",name:"",password:"",passwordErrorHelp:"",errCode:0,disabled:!1,appName:"Video Translator"}},components:{},directives:{focus:{inserted:function(e){e.focus()}}},mounted(){typeof google<"u"&&(google.accounts.id.initialize({client_id:"704677828444-ihbv6faprun043f3iuponnrctutdssgj.apps.googleusercontent.com",callback:this.handleCredentialResponse}),google.accounts.id.renderButton(document.getElementById("buttonDiv"),{theme:"outline",size:"large",width:"255px"})),typeof app_config=="object"&&app_config&&Object.keys(app_config).length>0&&(this.appName=app_config.name||"Video Translator")},methods:{handleFbLogin(){if(typeof FB<"u"){const e=ve.service({text:"logining...",background:"rgba(0, 0, 0, 0.7)"});FB.login(t=>{if(console.log(t),t.status==="connected")sc(t.authResponse.accessToken).then(n=>{e.close(),this.$emit("success");try{document.body.classList.remove("el-loading-parent--relative")}catch{}},n=>{e.close();try{document.body.classList.remove("el-loading-parent--relative")}catch{}console.log(n,"1"),ht({showClose:!0,message:n.msg,type:"error"})});else{e.close();try{document.body.classList.remove("el-loading-parent--relative")}catch{}}},{scope:"public_profile,email"})}},handleCredentialResponse(e){if(console.log(e,"response"),!e||!e.credential)return;const t=ve.service({text:"logining...",background:"rgba(0, 0, 0, 0.7)"});Uo(e.credential).then(n=>{console.log("loginGoogle",n),t.close(),this.$emit("success");try{document.body.classList.remove("el-loading-parent--relative")}catch{}},n=>{console.log(n,2),t.close();try{document.body.classList.remove("el-loading-parent--relative")}catch{}ht({showClose:!0,message:n.msg,type:"error"})})},handleToLogin(){this.isSignup=!1},handleToSignup(){this.isSignup=!0},handleInput(){this.emailErrorHelp="",this.passwordErrorHelp=""},handleInputBlur(){},handleLogin(){if(!this.email){this.showToast("Email must no be empty");return}if(this.emailErrorHelp||this.passwordErrorHelp){this.showToast(this.emailErrorHelp||this.passwordErrorHelp);return}if(!this.password){this.showToast("Password must no be empty");return}const e=ve.service({text:"logining...",background:"rgba(0, 0, 0, 0.7)"});ac(this.email,this.password).then(t=>{e.close(),this.$emit("success");try{document.body.classList.remove("el-loading-parent--relative")}catch{}},t=>{e.close(),this.passwordErrorHelp=t.msg,this.errCode=t.ok;try{document.body.classList.remove("el-loading-parent--relative")}catch{}})},handleSignup(){if(!this.email){this.showToast("Email must no be empty");return}if(this.emailErrorHelp){this.showToast(this.emailErrorHelp);return}if(!this.name){this.showToast("Username must no be empty");return}if(!this.password){this.showToast("Password must no be empty");return}const e=ve.service({text:"registering...",background:"rgba(0, 0, 0, 0.7)"});lc(this.email,this.name,this.password).then(t=>{e.close(),location.href=t.url;try{document.body.classList.remove("el-loading-parent--relative")}catch{}},t=>{let n=t.msg;if(t.data&&t.data.errors){const o=t.data.errors;o.email?n=typeof o.email=="string"?o.email:o.email[0]:o.username?n=typeof o.username=="string"?o.username:o.username[0]:o.password&&(n=typeof o.password=="string"?o.password:o.password[0])}console.log(t,"3"),e.close();try{document.body.classList.remove("el-loading-parent--relative")}catch{}ht({showClose:!0,message:n,type:"error"})})},showToast(e){console.log(e,4),ht({showClose:!0,message:e,type:"warning"})}}},J=e=>(r.pushScopeId("data-v-4682235c"),e=e(),r.popScopeId(),e),Zc={class:"login-wapper"},eu=J(()=>r.createElementVNode("span",null,"Login here",-1)),tu=J(()=>r.createElementVNode("span",null,"Sign up here",-1)),nu={class:"accounts"},ou=J(()=>r.createElementVNode("div",{class:"account"},[r.createElementVNode("div",{id:"buttonDiv"})],-1)),ru=J(()=>r.createElementVNode("svg",{t:"1661493482810",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"3146",width:"24",height:"24"},[r.createElementVNode("path",{d:"M512.262115 959.556658c247.175132 0 447.569968-200.366167 447.569968-447.556658 0-247.16387-200.394836-447.556658-447.569968-447.556658-247.17718 0-447.556658 200.392788-447.556658 447.556658-0.001024 247.190491 200.378454 447.556658 447.556658 447.556658",fill:"#537BBC","p-id":"3147"}),r.createElementVNode("path",{d:"M404.292383 436.216104h46.269378v-44.969044c0-19.828563 0.499656-50.408946 14.904699-69.347753 15.172957-20.05689 36.000832-33.690947 71.826579-33.690946 58.371702 0 82.952117 8.326235 82.952118 8.326235l-11.564785 68.550147s-19.285904-5.576079-37.275569-5.57608c-17.99888 0-34.111763 6.449454-34.111764 24.438095v52.269346h73.791416l-5.152191 66.958004h-68.639225v232.604221h-86.731278V503.174108h-46.269378v-66.958004z",fill:"#FFFFFF","p-id":"3148"})],-1)),su=J(()=>r.createElementVNode("div",{style:{flex:"1","margin-left":"5px","font-size":"14px","font-weight":"500"}},"Login With Facebook",-1)),au=J(()=>r.createElementVNode("div",{class:"divider"},[r.createElementVNode("div",null,"Or Email")],-1)),lu={class:"form-group"},iu=J(()=>r.createElementVNode("label",{for:"user_email"},"Email",-1)),cu={key:0,class:"help-block-error"},uu={key:0,class:"form-group"},du=J(()=>r.createElementVNode("label",{for:"user_name"},"Username",-1)),fu={class:"form-group"},pu=J(()=>r.createElementVNode("label",{for:"user_password"},"Password",-1)),mu={key:0,class:"help-block-error"},hu={key:0},gu=[J(()=>r.createElementVNode("a",{href:"/user/resend-verify",target:"_blank"},"Resend email",-1))],yu=["disabled"],bu=["disabled"],_u={key:2,class:"link"},wu=J(()=>r.createElementVNode("a",{href:"/user/password-reset",target:"_blank"},"Forgot your password?",-1));function Eu(e,t,n,o,s,a){return r.openBlock(),r.createElementBlock("div",Zc,[r.createElementVNode("h1",null,r.toDisplayString(s.isSignup?"Sign Up With "+s.appName:"Welcom! Please Login"),1),s.isSignup?(r.openBlock(),r.createElementBlock("div",{key:0,class:"link",onClick:t[0]||(t[0]=(...l)=>a.handleToLogin&&a.handleToLogin(...l))},[r.createTextVNode("Already registered? "),eu])):(r.openBlock(),r.createElementBlock("div",{key:1,class:"link",onClick:t[1]||(t[1]=(...l)=>a.handleToSignup&&a.handleToSignup(...l))},[r.createTextVNode("New to "+r.toDisplayString(s.appName)+"? ",1),tu])),r.createElementVNode("div",nu,[r.createCommentVNode(` <div class="account">
6
+ `));let m=Ho((i=d.props)!=null?i:{},f),g=r.cloneVNode(d,m);for(let h in m)h.startsWith("on")&&(g.props||(g.props={}),g.props[h]=m[h]);return g}return Array.isArray(c)&&c.length===1?c[0]:c}return r.h(l,Object.assign({},f,u),{default:()=>c})}function zo(e){return e.flatMap(t=>t.type===r.Fragment?zo(t.children):[t])}function Ho(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let o of e)for(let s in o)s.startsWith("on")&&typeof o[s]=="function"?(n[s]!=null||(n[s]=[]),n[s].push(o[s])):t[s]=o[s];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(n).map(o=>[o,void 0])));for(let o in n)Object.assign(t,{[o](s,...a){let i=n[o];for(let l of i){if(s instanceof Event&&s.defaultPrevented)return;l(s,...a)}}});return t}function cc(e,t=[]){let n=Object.assign({},e);for(let o of t)o in n&&delete n[o];return n}function uc(e){return e==null?!1:typeof e.type=="string"||typeof e.type=="object"||typeof e.type=="function"}let dc=0;function fc(){return++dc}function z(){return fc()}var te=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(te||{});function S(e){var t;return e==null||e.value==null?null:(t=e.value.$el)!=null?t:e.value}let qo=Symbol("Context");var W=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(W||{});function Yt(){return r.inject(qo,null)}function pc(e){r.provide(qo,e)}function Wo(e,t){if(e)return e;let n=t??"button";if(typeof n=="string"&&n.toLowerCase()==="button")return"button"}function mc(e,t){let n=r.ref(Wo(e.value.type,e.value.as));return r.onMounted(()=>{n.value=Wo(e.value.type,e.value.as)}),r.watchEffect(()=>{var o;n.value||S(t)&&S(t)instanceof HTMLButtonElement&&!((o=S(t))!=null&&o.hasAttribute("type"))&&(n.value="button")}),n}var hc=Object.defineProperty,gc=(e,t,n)=>t in e?hc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Go=(e,t,n)=>(gc(e,typeof t!="symbol"?t+"":t,n),n);class yc{constructor(){Go(this,"current",this.detect()),Go(this,"currentId",0)}set(t){this.current!==t&&(this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}}let gt=new yc;function Y(e){if(gt.isServer)return null;if(e instanceof Node)return e.ownerDocument;if(e!=null&&e.hasOwnProperty("value")){let t=S(e);if(t)return t.ownerDocument}return document}let Xt=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var I=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))(I||{}),Ue=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(Ue||{}),bc=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(bc||{});function yt(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(Xt)).sort((t,n)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}var Zt=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(Zt||{});function Jo(e,t=0){var n;return e===((n=Y(e))==null?void 0:n.body)?!1:j(t,{[0](){return e.matches(Xt)},[1](){let o=e;for(;o!==null;){if(o.matches(Xt))return!0;o=o.parentElement}return!1}})}var _c=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(_c||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{e.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:e.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function ue(e){e==null||e.focus({preventScroll:!0})}let wc=["textarea","input"].join(",");function Ec(e){var t,n;return(n=(t=e==null?void 0:e.matches)==null?void 0:t.call(e,wc))!=null?n:!1}function vc(e,t=n=>n){return e.slice().sort((n,o)=>{let s=t(n),a=t(o);if(s===null||a===null)return 0;let i=s.compareDocumentPosition(a);return i&Node.DOCUMENT_POSITION_FOLLOWING?-1:i&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function G(e,t,{sorted:n=!0,relativeTo:o=null,skipElements:s=[]}={}){var a;let i=(a=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e==null?void 0:e.ownerDocument)!=null?a:document,l=Array.isArray(e)?n?vc(e):e:yt(e);s.length>0&&l.length>1&&(l=l.filter(g=>!s.includes(g))),o=o??i.activeElement;let f=(()=>{if(t&5)return 1;if(t&10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),c=(()=>{if(t&1)return 0;if(t&2)return Math.max(0,l.indexOf(o))-1;if(t&4)return Math.max(0,l.indexOf(o))+1;if(t&8)return l.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),u=t&32?{preventScroll:!0}:{},d=0,p=l.length,m;do{if(d>=p||d+p<=0)return 0;let g=c+d;if(t&16)g=(g+p)%p;else{if(g<0)return 3;if(g>=p)return 1}m=l[g],m==null||m.focus(u),d+=f}while(m!==i.activeElement);return t&6&&Ec(m)&&m.select(),2}function Ko(e,t,n){gt.isServer||r.watchEffect(o=>{document.addEventListener(e,t,n),o(()=>document.removeEventListener(e,t,n))})}function Qo(e,t,n){gt.isServer||r.watchEffect(o=>{window.addEventListener(e,t,n),o(()=>window.removeEventListener(e,t,n))})}function Yo(e,t,n=r.computed(()=>!0)){function o(a,i){if(!n.value||a.defaultPrevented)return;let l=i(a);if(l===null||!l.getRootNode().contains(l))return;let f=function c(u){return typeof u=="function"?c(u()):Array.isArray(u)||u instanceof Set?u:[u]}(e);for(let c of f){if(c===null)continue;let u=c instanceof HTMLElement?c:S(c);if(u!=null&&u.contains(l)||a.composed&&a.composedPath().includes(u))return}return!Jo(l,Zt.Loose)&&l.tabIndex!==-1&&a.preventDefault(),t(a,l)}let s=r.ref(null);Ko("mousedown",a=>{var i,l;n.value&&(s.value=((l=(i=a.composedPath)==null?void 0:i.call(a))==null?void 0:l[0])||a.target)},!0),Ko("click",a=>{s.value&&(o(a,()=>s.value),s.value=null)},!0),Qo("blur",a=>o(a,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}var de=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(de||{});let Ce=r.defineComponent({name:"Hidden",props:{as:{type:[Object,String],default:"div"},features:{type:Number,default:1}},setup(e,{slots:t,attrs:n}){return()=>{let{features:o,...s}=e,a={"aria-hidden":(o&2)===2?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(o&4)===4&&(o&2)!==2&&{display:"none"}}};return F({ourProps:a,theirProps:s,slot:{},attrs:n,slots:t,name:"Hidden"})}}});function Sc(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function Xo(){let e=[],t={addEventListener(n,o,s,a){return n.addEventListener(o,s,a),t.add(()=>n.removeEventListener(o,s,a))},requestAnimationFrame(...n){let o=requestAnimationFrame(...n);t.add(()=>cancelAnimationFrame(o))},nextFrame(...n){t.requestAnimationFrame(()=>{t.requestAnimationFrame(...n)})},setTimeout(...n){let o=setTimeout(...n);t.add(()=>clearTimeout(o))},style(n,o,s){let a=n.style.getPropertyValue(o);return Object.assign(n.style,{[o]:s}),this.add(()=>{Object.assign(n.style,{[o]:a})})},group(n){let o=Xo();return n(o),this.add(()=>o.dispose())},add(n){return e.push(n),()=>{let o=e.indexOf(n);if(o>=0)for(let s of e.splice(o,1))s()}},dispose(){for(let n of e.splice(0))n()}};return t}var M=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(M||{});function en(){let e=r.ref(0);return Qo("keydown",t=>{t.key==="Tab"&&(e.value=t.shiftKey?1:0)}),e}function tn(e,t,n,o){gt.isServer||r.watchEffect(s=>{e=e??window,e.addEventListener(t,n,o),s(()=>e.removeEventListener(t,n,o))})}function Zo(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function Nc(e){function t(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",t))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",t),t())}function er(e){if(!e)return new Set;if(typeof e=="function")return new Set(e());let t=new Set;for(let n of e.value){let o=S(n);o instanceof HTMLElement&&t.add(o)}return t}var tr=(e=>(e[e.None=1]="None",e[e.InitialFocus=2]="InitialFocus",e[e.TabLock=4]="TabLock",e[e.FocusLock=8]="FocusLock",e[e.RestoreFocus=16]="RestoreFocus",e[e.All=30]="All",e))(tr||{});let ze=Object.assign(r.defineComponent({name:"FocusTrap",props:{as:{type:[Object,String],default:"div"},initialFocus:{type:Object,default:null},features:{type:Number,default:30},containers:{type:[Object,Function],default:r.ref(new Set)}},inheritAttrs:!1,setup(e,{attrs:t,slots:n,expose:o}){let s=r.ref(null);o({el:s,$el:s});let a=r.computed(()=>Y(s)),i=r.ref(!1);r.onMounted(()=>i.value=!0),r.onUnmounted(()=>i.value=!1),Cc({ownerDocument:a},r.computed(()=>i.value&&!!(e.features&16)));let l=Oc({ownerDocument:a,container:s,initialFocus:r.computed(()=>e.initialFocus)},r.computed(()=>i.value&&!!(e.features&2)));Pc({ownerDocument:a,container:s,containers:e.containers,previousActiveElement:l},r.computed(()=>i.value&&!!(e.features&8)));let f=en();function c(m){let g=S(s);g&&(h=>h())(()=>{j(f.value,{[M.Forwards]:()=>{G(g,I.First,{skipElements:[m.relatedTarget]})},[M.Backwards]:()=>{G(g,I.Last,{skipElements:[m.relatedTarget]})}})})}let u=r.ref(!1);function d(m){m.key==="Tab"&&(u.value=!0,requestAnimationFrame(()=>{u.value=!1}))}function p(m){if(!i.value)return;let g=er(e.containers);S(s)instanceof HTMLElement&&g.add(S(s));let h=m.relatedTarget;h instanceof HTMLElement&&h.dataset.headlessuiFocusGuard!=="true"&&(nr(g,h)||(u.value?G(S(s),j(f.value,{[M.Forwards]:()=>I.Next,[M.Backwards]:()=>I.Previous})|I.WrapAround,{relativeTo:m.target}):m.target instanceof HTMLElement&&ue(m.target)))}return()=>{let m={},g={ref:s,onKeydown:d,onFocusout:p},{features:h,initialFocus:_,containers:w,...O}=e;return r.h(r.Fragment,[!!(h&4)&&r.h(Ce,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:c,features:de.Focusable}),F({ourProps:g,theirProps:{...t,...O},slot:m,attrs:t,slots:n,name:"FocusTrap"}),!!(h&4)&&r.h(Ce,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:c,features:de.Focusable})])}}}),{features:tr}),fe=[];Nc(()=>{function e(t){t.target instanceof HTMLElement&&t.target!==document.body&&fe[0]!==t.target&&(fe.unshift(t.target),fe=fe.filter(n=>n!=null&&n.isConnected),fe.splice(10))}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})});function xc(e){let t=r.ref(fe.slice());return r.watch([e],([n],[o])=>{o===!0&&n===!1?Zo(()=>{t.value.splice(0)}):o===!1&&n===!0&&(t.value=fe.slice())},{flush:"post"}),()=>{var n;return(n=t.value.find(o=>o!=null&&o.isConnected))!=null?n:null}}function Cc({ownerDocument:e},t){let n=xc(t);r.onMounted(()=>{r.watchEffect(()=>{var o,s;t.value||((o=e.value)==null?void 0:o.activeElement)===((s=e.value)==null?void 0:s.body)&&ue(n())},{flush:"post"})}),r.onUnmounted(()=>{t.value&&ue(n())})}function Oc({ownerDocument:e,container:t,initialFocus:n},o){let s=r.ref(null),a=r.ref(!1);return r.onMounted(()=>a.value=!0),r.onUnmounted(()=>a.value=!1),r.onMounted(()=>{r.watch([t,n,o],(i,l)=>{if(i.every((c,u)=>(l==null?void 0:l[u])===c)||!o.value)return;let f=S(t);f&&Zo(()=>{var c,u;if(!a.value)return;let d=S(n),p=(c=e.value)==null?void 0:c.activeElement;if(d){if(d===p){s.value=p;return}}else if(f.contains(p)){s.value=p;return}d?ue(d):G(f,I.First|I.NoScroll)===Ue.Error&&console.warn("There are no focusable elements inside the <FocusTrap />"),s.value=(u=e.value)==null?void 0:u.activeElement})},{immediate:!0,flush:"post"})}),s}function Pc({ownerDocument:e,container:t,containers:n,previousActiveElement:o},s){var a;tn((a=e.value)==null?void 0:a.defaultView,"focus",i=>{if(!s.value)return;let l=er(n);S(t)instanceof HTMLElement&&l.add(S(t));let f=o.value;if(!f)return;let c=i.target;c&&c instanceof HTMLElement?nr(l,c)?(o.value=c,ue(c)):(i.preventDefault(),i.stopPropagation(),ue(f)):ue(o.value)},!0)}function nr(e,t){for(let n of e)if(n.contains(t))return!0;return!1}let nn=new Map,He=new Map;function or(e,t=r.ref(!0)){r.watchEffect(n=>{var o;if(!t.value)return;let s=S(e);if(!s)return;n(function(){var i;if(!s)return;let l=(i=He.get(s))!=null?i:1;if(l===1?He.delete(s):He.set(s,l-1),l!==1)return;let f=nn.get(s);f&&(f["aria-hidden"]===null?s.removeAttribute("aria-hidden"):s.setAttribute("aria-hidden",f["aria-hidden"]),s.inert=f.inert,nn.delete(s))});let a=(o=He.get(s))!=null?o:0;He.set(s,a+1),a===0&&(nn.set(s,{"aria-hidden":s.getAttribute("aria-hidden"),inert:s.inert}),s.setAttribute("aria-hidden","true"),s.inert=!0)})}let rr=Symbol("ForcePortalRootContext");function kc(){return r.inject(rr,!1)}let on=r.defineComponent({name:"ForcePortalRoot",props:{as:{type:[Object,String],default:"template"},force:{type:Boolean,default:!1}},setup(e,{slots:t,attrs:n}){return r.provide(rr,e.force),()=>{let{force:o,...s}=e;return F({theirProps:s,ourProps:{},slot:{},slots:t,attrs:n,name:"ForcePortalRoot"})}}});function Tc(e){let t=Y(e);if(!t){if(e===null)return null;throw new Error(`[Headless UI]: Cannot find ownerDocument for contextElement: ${e}`)}let n=t.getElementById("headlessui-portal-root");if(n)return n;let o=t.createElement("div");return o.setAttribute("id","headlessui-portal-root"),t.body.appendChild(o)}let sr=r.defineComponent({name:"Portal",props:{as:{type:[Object,String],default:"div"}},setup(e,{slots:t,attrs:n}){let o=r.ref(null),s=r.computed(()=>Y(o)),a=kc(),i=r.inject(ir,null),l=r.ref(a===!0||i==null?Tc(o.value):i.resolveTarget());r.watchEffect(()=>{a||i!=null&&(l.value=i.resolveTarget())});let f=r.inject(rn,null);return r.onMounted(()=>{let c=S(o);c&&f&&r.onUnmounted(f.register(c))}),r.onUnmounted(()=>{var c,u;let d=(c=s.value)==null?void 0:c.getElementById("headlessui-portal-root");d&&l.value===d&&l.value.children.length<=0&&((u=l.value.parentElement)==null||u.removeChild(l.value))}),()=>{if(l.value===null)return null;let c={ref:o,"data-headlessui-portal":""};return r.h(r.Teleport,{to:l.value},F({ourProps:c,theirProps:e,slot:{},attrs:n,slots:t,name:"Portal"}))}}}),rn=Symbol("PortalParentContext");function ar(){let e=r.inject(rn,null),t=r.ref([]);function n(a){return t.value.push(a),e&&e.register(a),()=>o(a)}function o(a){let i=t.value.indexOf(a);i!==-1&&t.value.splice(i,1),e&&e.unregister(a)}let s={register:n,unregister:o,portals:t};return[t,r.defineComponent({name:"PortalWrapper",setup(a,{slots:i}){return r.provide(rn,s),()=>{var l;return(l=i.default)==null?void 0:l.call(i)}}})]}let ir=Symbol("PortalGroupContext"),$c=r.defineComponent({name:"PortalGroup",props:{as:{type:[Object,String],default:"template"},target:{type:Object,default:null}},setup(e,{attrs:t,slots:n}){let o=r.reactive({resolveTarget(){return e.target}});return r.provide(ir,o),()=>{let{target:s,...a}=e;return F({theirProps:a,ourProps:{},slot:{},attrs:t,slots:n,name:"PortalGroup"})}}}),lr=Symbol("StackContext");var sn=(e=>(e[e.Add=0]="Add",e[e.Remove=1]="Remove",e))(sn||{});function Lc(){return r.inject(lr,()=>{})}function Bc({type:e,enabled:t,element:n,onUpdate:o}){let s=Lc();function a(...i){o==null||o(...i),s(...i)}r.onMounted(()=>{r.watch(t,(i,l)=>{i?a(0,e,n):l===!0&&a(1,e,n)},{immediate:!0,flush:"sync"})}),r.onUnmounted(()=>{t.value&&a(1,e,n)}),r.provide(lr,a)}let cr=Symbol("DescriptionContext");function Ac(){let e=r.inject(cr,null);if(e===null)throw new Error("Missing parent");return e}function Vc({slot:e=r.ref({}),name:t="Description",props:n={}}={}){let o=r.ref([]);function s(a){return o.value.push(a),()=>{let i=o.value.indexOf(a);i!==-1&&o.value.splice(i,1)}}return r.provide(cr,{register:s,slot:e,name:t,props:n}),r.computed(()=>o.value.length>0?o.value.join(" "):void 0)}r.defineComponent({name:"Description",props:{as:{type:[Object,String],default:"p"},id:{type:String,default:()=>`headlessui-description-${z()}`}},setup(e,{attrs:t,slots:n}){let o=Ac();return r.onMounted(()=>r.onUnmounted(o.register(e.id))),()=>{let{name:s="Description",slot:a=r.ref({}),props:i={}}=o,{id:l,...f}=e,c={...Object.entries(i).reduce((u,[d,p])=>Object.assign(u,{[d]:r.unref(p)}),{}),id:l};return F({ourProps:c,theirProps:f,slot:a.value,attrs:t,slots:n,name:s})}}});function Fc(e){let t=r.shallowRef(e.getSnapshot());return r.onUnmounted(e.subscribe(()=>{t.value=e.getSnapshot()})),t}function Ic(e,t){let n=e(),o=new Set;return{getSnapshot(){return n},subscribe(s){return o.add(s),()=>o.delete(s)},dispatch(s,...a){let i=t[s].call(n,...a);i&&(n=i,o.forEach(l=>l()))}}}function Dc(){let e;return{before({doc:t}){var n;let o=t.documentElement;e=((n=t.defaultView)!=null?n:window).innerWidth-o.clientWidth},after({doc:t,d:n}){let o=t.documentElement,s=o.clientWidth-o.offsetWidth,a=e-s;n.style(o,"paddingRight",`${a}px`)}}}function Rc(){if(!Sc())return{};let e;return{before(){e=window.pageYOffset},after({doc:t,d:n,meta:o}){function s(i){return o.containers.flatMap(l=>l()).some(l=>l.contains(i))}n.style(t.body,"marginTop",`-${e}px`),window.scrollTo(0,0);let a=null;n.addEventListener(t,"click",i=>{if(i.target instanceof HTMLElement)try{let l=i.target.closest("a");if(!l)return;let{hash:f}=new URL(l.href),c=t.querySelector(f);c&&!s(c)&&(a=c)}catch{}},!0),n.addEventListener(t,"touchmove",i=>{i.target instanceof HTMLElement&&!s(i.target)&&i.preventDefault()},{passive:!1}),n.add(()=>{window.scrollTo(0,window.pageYOffset+e),a&&a.isConnected&&(a.scrollIntoView({block:"nearest"}),a=null)})}}}function jc(){return{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}}function Mc(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let pe=Ic(()=>new Map,{PUSH(e,t){var n;let o=(n=this.get(e))!=null?n:{doc:e,count:0,d:Xo(),meta:new Set};return o.count++,o.meta.add(t),this.set(e,o),this},POP(e,t){let n=this.get(e);return n&&(n.count--,n.meta.delete(t)),this},SCROLL_PREVENT({doc:e,d:t,meta:n}){let o={doc:e,d:t,meta:Mc(n)},s=[Rc(),Dc(),jc()];s.forEach(({before:a})=>a==null?void 0:a(o)),s.forEach(({after:a})=>a==null?void 0:a(o))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});pe.subscribe(()=>{let e=pe.getSnapshot(),t=new Map;for(let[n]of e)t.set(n,n.documentElement.style.overflow);for(let n of e.values()){let o=t.get(n.doc)==="hidden",s=n.count!==0;(s&&!o||!s&&o)&&pe.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),n.count===0&&pe.dispatch("TEARDOWN",n)}});function Uc(e,t,n){let o=Fc(pe),s=r.computed(()=>{let a=e.value?o.value.get(e.value):void 0;return a?a.count>0:!1});return r.watch([e,t],([a,i],[l],f)=>{if(!a||!i)return;pe.dispatch("PUSH",a,n);let c=!1;f(()=>{c||(pe.dispatch("POP",l??a,n),c=!0)})},{immediate:!0}),s}function ur({defaultContainers:e=[],portals:t}={}){let n=r.ref(null),o=Y(n);function s(){var a;let i=[];for(let l of e)l!==null&&(l instanceof HTMLElement?i.push(l):"value"in l&&l.value instanceof HTMLElement&&i.push(l.value));if(t!=null&&t.value)for(let l of t.value)i.push(l);for(let l of(a=o==null?void 0:o.querySelectorAll("html > *, body > *"))!=null?a:[])l!==document.body&&l!==document.head&&l instanceof HTMLElement&&l.id!=="headlessui-portal-root"&&(l.contains(S(n))||i.some(f=>l.contains(f))||i.push(l));return i}return{resolveContainers:s,contains(a){return s().some(i=>i.contains(a))},mainTreeNodeRef:n,MainTreeNode(){return r.h(Ce,{features:de.Hidden,ref:n})}}}var zc=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(zc||{});let an=Symbol("DialogContext");function qe(e){let t=r.inject(an,null);if(t===null){let n=new Error(`<${e} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,qe),n}return t}let bt="DC8F892D-2EBD-447C-A4C8-A03058436FF4",Hc=r.defineComponent({name:"Dialog",inheritAttrs:!1,props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},open:{type:[Boolean,String],default:bt},initialFocus:{type:Object,default:null},id:{type:String,default:()=>`headlessui-dialog-${z()}`}},emits:{close:e=>!0},setup(e,{emit:t,attrs:n,slots:o,expose:s}){var a;let i=r.ref(!1);r.onMounted(()=>{i.value=!0});let l=r.ref(0),f=Yt(),c=r.computed(()=>e.open===bt&&f!==null?(f.value&W.Open)===W.Open:e.open),u=r.ref(null),d=r.computed(()=>Y(u));if(s({el:u,$el:u}),!(e.open!==bt||f!==null))throw new Error("You forgot to provide an `open` prop to the `Dialog`.");if(typeof c.value!="boolean")throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${c.value===bt?void 0:e.open}`);let p=r.computed(()=>i.value&&c.value?0:1),m=r.computed(()=>p.value===0),g=r.computed(()=>l.value>1),h=r.inject(an,null)!==null,[_,w]=ar(),{resolveContainers:O,mainTreeNodeRef:x,MainTreeNode:k}=ur({portals:_,defaultContainers:[r.computed(()=>{var T;return(T=B.panelRef.value)!=null?T:u.value})]}),E=r.computed(()=>g.value?"parent":"leaf"),C=r.computed(()=>f!==null?(f.value&W.Closing)===W.Closing:!1),b=r.computed(()=>h||C.value?!1:m.value),V=r.computed(()=>{var T,$,X;return(X=Array.from(($=(T=d.value)==null?void 0:T.querySelectorAll("body > *"))!=null?$:[]).find(Z=>Z.id==="headlessui-portal-root"?!1:Z.contains(S(x))&&Z instanceof HTMLElement))!=null?X:null});or(V,b);let D=r.computed(()=>g.value?!0:m.value),N=r.computed(()=>{var T,$,X;return(X=Array.from(($=(T=d.value)==null?void 0:T.querySelectorAll("[data-headlessui-portal]"))!=null?$:[]).find(Z=>Z.contains(S(x))&&Z instanceof HTMLElement))!=null?X:null});or(N,D),Bc({type:"Dialog",enabled:r.computed(()=>p.value===0),element:u,onUpdate:(T,$)=>{if($==="Dialog")return j(T,{[sn.Add]:()=>l.value+=1,[sn.Remove]:()=>l.value-=1})}});let v=Vc({name:"DialogDescription",slot:r.computed(()=>({open:c.value}))}),L=r.ref(null),B={titleId:L,panelRef:r.ref(null),dialogState:p,setTitleId(T){L.value!==T&&(L.value=T)},close(){t("close",!1)}};r.provide(an,B);let ge=r.computed(()=>!(!m.value||g.value));Yo(O,(T,$)=>{B.close(),r.nextTick(()=>$==null?void 0:$.focus())},ge);let fn=r.computed(()=>!(g.value||p.value!==0));tn((a=d.value)==null?void 0:a.defaultView,"keydown",T=>{fn.value&&(T.defaultPrevented||T.key===te.Escape&&(T.preventDefault(),T.stopPropagation(),B.close()))});let pn=r.computed(()=>!(C.value||p.value!==0||h));return Uc(d,pn,T=>{var $;return{containers:[...($=T.containers)!=null?$:[],O]}}),r.watchEffect(T=>{if(p.value!==0)return;let $=S(u);if(!$)return;let X=new ResizeObserver(Z=>{for(let mn of Z){let Te=mn.target.getBoundingClientRect();Te.x===0&&Te.y===0&&Te.width===0&&Te.height===0&&B.close()}});X.observe($),T(()=>X.disconnect())}),()=>{let{id:T,open:$,initialFocus:X,...Z}=e,mn={...n,ref:u,id:T,role:"dialog","aria-modal":p.value===0?!0:void 0,"aria-labelledby":L.value,"aria-describedby":v.value},Te={open:p.value===0};return r.h(on,{force:!0},()=>[r.h(sr,()=>r.h($c,{target:u.value},()=>r.h(on,{force:!1},()=>r.h(ze,{initialFocus:X,containers:O,features:m.value?j(E.value,{parent:ze.features.RestoreFocus,leaf:ze.features.All&~ze.features.FocusLock}):ze.features.None},()=>r.h(w,{},()=>F({ourProps:mn,theirProps:{...Z,...n},slot:Te,attrs:n,slots:o,visible:p.value===0,features:ce.RenderStrategy|ce.Static,name:"Dialog"})))))),r.h(k)])}}});r.defineComponent({name:"DialogOverlay",props:{as:{type:[Object,String],default:"div"},id:{type:String,default:()=>`headlessui-dialog-overlay-${z()}`}},setup(e,{attrs:t,slots:n}){let o=qe("DialogOverlay");function s(a){a.target===a.currentTarget&&(a.preventDefault(),a.stopPropagation(),o.close())}return()=>{let{id:a,...i}=e;return F({ourProps:{id:a,"aria-hidden":!0,onClick:s},theirProps:i,slot:{open:o.dialogState.value===0},attrs:t,slots:n,name:"DialogOverlay"})}}}),r.defineComponent({name:"DialogBackdrop",props:{as:{type:[Object,String],default:"div"},id:{type:String,default:()=>`headlessui-dialog-backdrop-${z()}`}},inheritAttrs:!1,setup(e,{attrs:t,slots:n,expose:o}){let s=qe("DialogBackdrop"),a=r.ref(null);return o({el:a,$el:a}),r.onMounted(()=>{if(s.panelRef.value===null)throw new Error("A <DialogBackdrop /> component is being used, but a <DialogPanel /> component is missing.")}),()=>{let{id:i,...l}=e,f={id:i,ref:a,"aria-hidden":!0};return r.h(on,{force:!0},()=>r.h(sr,()=>F({ourProps:f,theirProps:{...t,...l},slot:{open:s.dialogState.value===0},attrs:t,slots:n,name:"DialogBackdrop"})))}}});let qc=r.defineComponent({name:"DialogPanel",props:{as:{type:[Object,String],default:"div"},id:{type:String,default:()=>`headlessui-dialog-panel-${z()}`}},setup(e,{attrs:t,slots:n,expose:o}){let s=qe("DialogPanel");o({el:s.panelRef,$el:s.panelRef});function a(i){i.stopPropagation()}return()=>{let{id:i,...l}=e,f={id:i,ref:s.panelRef,onClick:a};return F({ourProps:f,theirProps:l,slot:{open:s.dialogState.value===0},attrs:t,slots:n,name:"DialogPanel"})}}});r.defineComponent({name:"DialogTitle",props:{as:{type:[Object,String],default:"h2"},id:{type:String,default:()=>`headlessui-dialog-title-${z()}`}},setup(e,{attrs:t,slots:n}){let o=qe("DialogTitle");return r.onMounted(()=>{o.setTitleId(e.id),r.onUnmounted(()=>o.setTitleId(null))}),()=>{let{id:s,...a}=e;return F({ourProps:{id:s},theirProps:a,slot:{open:o.dialogState.value===0},attrs:t,slots:n,name:"DialogTitle"})}}});var Wc=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Wc||{});let dr=Symbol("PopoverContext");function _t(e){let t=r.inject(dr,null);if(t===null){let n=new Error(`<${e} /> is missing a parent <${hr.name} /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,_t),n}return t}let fr=Symbol("PopoverGroupContext");function pr(){return r.inject(fr,null)}let mr=Symbol("PopoverPanelContext");function Gc(){return r.inject(mr,null)}let hr=r.defineComponent({name:"Popover",props:{as:{type:[Object,String],default:"div"}},setup(e,{slots:t,attrs:n,expose:o}){var s;let a=r.ref(null);o({el:a,$el:a});let i=r.ref(1),l=r.ref(null),f=r.ref(null),c=r.ref(null),u=r.ref(null),d=r.computed(()=>Y(a)),p=r.computed(()=>{var E,C;if(!S(l)||!S(u))return!1;for(let B of document.querySelectorAll("body > *"))if(Number(B==null?void 0:B.contains(S(l)))^Number(B==null?void 0:B.contains(S(u))))return!0;let b=yt(),V=b.indexOf(S(l)),D=(V+b.length-1)%b.length,N=(V+1)%b.length,v=b[D],L=b[N];return!((E=S(u))!=null&&E.contains(v))&&!((C=S(u))!=null&&C.contains(L))}),m={popoverState:i,buttonId:r.ref(null),panelId:r.ref(null),panel:u,button:l,isPortalled:p,beforePanelSentinel:f,afterPanelSentinel:c,togglePopover(){i.value=j(i.value,{[0]:1,[1]:0})},closePopover(){i.value!==1&&(i.value=1)},close(E){m.closePopover();let C=(()=>E?E instanceof HTMLElement?E:E.value instanceof HTMLElement?S(E):S(m.button):S(m.button))();C==null||C.focus()}};r.provide(dr,m),pc(r.computed(()=>j(i.value,{[0]:W.Open,[1]:W.Closed})));let g={buttonId:m.buttonId,panelId:m.panelId,close(){m.closePopover()}},h=pr(),_=h==null?void 0:h.registerPopover,[w,O]=ar(),x=ur({portals:w,defaultContainers:[l,u]});function k(){var E,C,b,V;return(V=h==null?void 0:h.isFocusWithinPopoverGroup())!=null?V:((E=d.value)==null?void 0:E.activeElement)&&(((C=S(l))==null?void 0:C.contains(d.value.activeElement))||((b=S(u))==null?void 0:b.contains(d.value.activeElement)))}return r.watchEffect(()=>_==null?void 0:_(g)),tn((s=d.value)==null?void 0:s.defaultView,"focus",E=>{var C,b;E.target!==window&&E.target instanceof HTMLElement&&i.value===0&&(k()||l&&u&&(x.contains(E.target)||(C=S(m.beforePanelSentinel))!=null&&C.contains(E.target)||(b=S(m.afterPanelSentinel))!=null&&b.contains(E.target)||m.closePopover()))},!0),Yo(x.resolveContainers,(E,C)=>{var b;m.closePopover(),Jo(C,Zt.Loose)||(E.preventDefault(),(b=S(l))==null||b.focus())},r.computed(()=>i.value===0)),()=>{let E={open:i.value===0,close:m.close};return r.h(O,{},()=>F({theirProps:{...e,...n},ourProps:{ref:a},slot:E,slots:t,attrs:n,name:"Popover"}))}}}),Jc=r.defineComponent({name:"PopoverButton",props:{as:{type:[Object,String],default:"button"},disabled:{type:[Boolean],default:!1},id:{type:String,default:()=>`headlessui-popover-button-${z()}`}},inheritAttrs:!1,setup(e,{attrs:t,slots:n,expose:o}){let s=_t("PopoverButton"),a=r.computed(()=>Y(s.button));o({el:s.button,$el:s.button}),r.onMounted(()=>{s.buttonId.value=e.id}),r.onUnmounted(()=>{s.buttonId.value=null});let i=pr(),l=i==null?void 0:i.closeOthers,f=Gc(),c=r.computed(()=>f===null?!1:f.value===s.panelId.value),u=r.ref(null),d=`headlessui-focus-sentinel-${z()}`;c.value||r.watchEffect(()=>{s.button.value=u.value});let p=mc(r.computed(()=>({as:e.as,type:t.type})),u);function m(x){var k,E,C,b,V;if(c.value){if(s.popoverState.value===1)return;switch(x.key){case te.Space:case te.Enter:x.preventDefault(),(E=(k=x.target).click)==null||E.call(k),s.closePopover(),(C=S(s.button))==null||C.focus();break}}else switch(x.key){case te.Space:case te.Enter:x.preventDefault(),x.stopPropagation(),s.popoverState.value===1&&(l==null||l(s.buttonId.value)),s.togglePopover();break;case te.Escape:if(s.popoverState.value!==0)return l==null?void 0:l(s.buttonId.value);if(!S(s.button)||(b=a.value)!=null&&b.activeElement&&!((V=S(s.button))!=null&&V.contains(a.value.activeElement)))return;x.preventDefault(),x.stopPropagation(),s.closePopover();break}}function g(x){c.value||x.key===te.Space&&x.preventDefault()}function h(x){var k,E;e.disabled||(c.value?(s.closePopover(),(k=S(s.button))==null||k.focus()):(x.preventDefault(),x.stopPropagation(),s.popoverState.value===1&&(l==null||l(s.buttonId.value)),s.togglePopover(),(E=S(s.button))==null||E.focus()))}function _(x){x.preventDefault(),x.stopPropagation()}let w=en();function O(){let x=S(s.panel);if(!x)return;function k(){j(w.value,{[M.Forwards]:()=>G(x,I.First),[M.Backwards]:()=>G(x,I.Last)})===Ue.Error&&G(yt().filter(E=>E.dataset.headlessuiFocusGuard!=="true"),j(w.value,{[M.Forwards]:I.Next,[M.Backwards]:I.Previous}),{relativeTo:S(s.button)})}k()}return()=>{let x=s.popoverState.value===0,k={open:x},{id:E,...C}=e,b=c.value?{ref:u,type:p.value,onKeydown:m,onClick:h}:{ref:u,id:E,type:p.value,"aria-expanded":e.disabled?void 0:s.popoverState.value===0,"aria-controls":S(s.panel)?s.panelId.value:void 0,disabled:e.disabled?!0:void 0,onKeydown:m,onKeyup:g,onClick:h,onMousedown:_};return r.h(r.Fragment,[F({ourProps:b,theirProps:{...t,...C},slot:k,attrs:t,slots:n,name:"PopoverButton"}),x&&!c.value&&s.isPortalled.value&&r.h(Ce,{id:d,features:de.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:O})])}}});r.defineComponent({name:"PopoverOverlay",props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0}},setup(e,{attrs:t,slots:n}){let o=_t("PopoverOverlay"),s=`headlessui-popover-overlay-${z()}`,a=Yt(),i=r.computed(()=>a!==null?(a.value&W.Open)===W.Open:o.popoverState.value===0);function l(){o.closePopover()}return()=>{let f={open:o.popoverState.value===0};return F({ourProps:{id:s,"aria-hidden":!0,onClick:l},theirProps:e,slot:f,attrs:t,slots:n,features:ce.RenderStrategy|ce.Static,visible:i.value,name:"PopoverOverlay"})}}});let Kc=r.defineComponent({name:"PopoverPanel",props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},focus:{type:Boolean,default:!1},id:{type:String,default:()=>`headlessui-popover-panel-${z()}`}},inheritAttrs:!1,setup(e,{attrs:t,slots:n,expose:o}){let{focus:s}=e,a=_t("PopoverPanel"),i=r.computed(()=>Y(a.panel)),l=`headlessui-focus-sentinel-before-${z()}`,f=`headlessui-focus-sentinel-after-${z()}`;o({el:a.panel,$el:a.panel}),r.onMounted(()=>{a.panelId.value=e.id}),r.onUnmounted(()=>{a.panelId.value=null}),r.provide(mr,a.panelId),r.watchEffect(()=>{var _,w;if(!s||a.popoverState.value!==0||!a.panel)return;let O=(_=i.value)==null?void 0:_.activeElement;(w=S(a.panel))!=null&&w.contains(O)||G(S(a.panel),I.First)});let c=Yt(),u=r.computed(()=>c!==null?(c.value&W.Open)===W.Open:a.popoverState.value===0);function d(_){var w,O;switch(_.key){case te.Escape:if(a.popoverState.value!==0||!S(a.panel)||i.value&&!((w=S(a.panel))!=null&&w.contains(i.value.activeElement)))return;_.preventDefault(),_.stopPropagation(),a.closePopover(),(O=S(a.button))==null||O.focus();break}}function p(_){var w,O,x,k,E;let C=_.relatedTarget;C&&S(a.panel)&&((w=S(a.panel))!=null&&w.contains(C)||(a.closePopover(),((x=(O=S(a.beforePanelSentinel))==null?void 0:O.contains)!=null&&x.call(O,C)||(E=(k=S(a.afterPanelSentinel))==null?void 0:k.contains)!=null&&E.call(k,C))&&C.focus({preventScroll:!0})))}let m=en();function g(){let _=S(a.panel);if(!_)return;function w(){j(m.value,{[M.Forwards]:()=>{var O;G(_,I.First)===Ue.Error&&((O=S(a.afterPanelSentinel))==null||O.focus())},[M.Backwards]:()=>{var O;(O=S(a.button))==null||O.focus({preventScroll:!0})}})}w()}function h(){let _=S(a.panel);if(!_)return;function w(){j(m.value,{[M.Forwards]:()=>{let O=S(a.button),x=S(a.panel);if(!O)return;let k=yt(),E=k.indexOf(O),C=k.slice(0,E+1),b=[...k.slice(E+1),...C];for(let V of b.slice())if(V.dataset.headlessuiFocusGuard==="true"||x!=null&&x.contains(V)){let D=b.indexOf(V);D!==-1&&b.splice(D,1)}G(b,I.First,{sorted:!1})},[M.Backwards]:()=>{var O;G(_,I.Previous)===Ue.Error&&((O=S(a.button))==null||O.focus())}})}w()}return()=>{let _={open:a.popoverState.value===0,close:a.close},{id:w,focus:O,...x}=e,k={ref:a.panel,id:w,onKeydown:d,onFocusout:s&&a.popoverState.value===0?p:void 0,tabIndex:-1};return F({ourProps:k,theirProps:{...t,...x},attrs:t,slot:_,slots:{...n,default:(...E)=>{var C;return[r.h(r.Fragment,[u.value&&a.isPortalled.value&&r.h(Ce,{id:l,ref:a.beforePanelSentinel,features:de.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:g}),(C=n.default)==null?void 0:C.call(n,...E),u.value&&a.isPortalled.value&&r.h(Ce,{id:f,ref:a.afterPanelSentinel,features:de.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:h})])]}},features:ce.RenderStrategy|ce.Static,visible:u.value,name:"PopoverPanel"})}}});r.defineComponent({name:"PopoverGroup",props:{as:{type:[Object,String],default:"div"}},setup(e,{attrs:t,slots:n,expose:o}){let s=r.ref(null),a=r.shallowRef([]),i=r.computed(()=>Y(s));o({el:s,$el:s});function l(d){let p=a.value.indexOf(d);p!==-1&&a.value.splice(p,1)}function f(d){return a.value.push(d),()=>{l(d)}}function c(){var d;let p=i.value;if(!p)return!1;let m=p.activeElement;return(d=S(s))!=null&&d.contains(m)?!0:a.value.some(g=>{var h,_;return((h=p.getElementById(g.buttonId.value))==null?void 0:h.contains(m))||((_=p.getElementById(g.panelId.value))==null?void 0:_.contains(m))})}function u(d){for(let p of a.value)p.buttonId.value!==d&&p.close()}return r.provide(fr,{registerPopover:f,unregisterPopover:l,isFocusWithinPopoverGroup:c,closeOthers:u}),()=>F({ourProps:{ref:s},theirProps:e,slot:{},attrs:t,slots:n,name:"PopoverGroup"})}});function Qc(e,t){return r.openBlock(),r.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[r.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"})])}function Yc(e,t){return r.openBlock(),r.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[r.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18L18 6M6 6l12 12"})])}const Xd="",Oe=(e,t)=>{const n=e.__vccOpts||e;for(const[o,s]of t)n[o]=s;return n},Xc={data(){return{isSignup:!1,email:"",emailErrorHelp:"",name:"",password:"",passwordErrorHelp:"",errCode:0,disabled:!1,appName:"Video Translator"}},components:{},directives:{focus:{inserted:function(e){e.focus()}}},mounted(){typeof google<"u"&&(google.accounts.id.initialize({client_id:"704677828444-ihbv6faprun043f3iuponnrctutdssgj.apps.googleusercontent.com",callback:this.handleCredentialResponse}),google.accounts.id.renderButton(document.getElementById("buttonDiv"),{theme:"outline",size:"large",width:"255px"})),typeof app_config=="object"&&app_config&&Object.keys(app_config).length>0&&(this.appName=app_config.name||"Video Translator")},methods:{handleFbLogin(){if(typeof FB<"u"){const e=ve.service({text:"logining...",background:"rgba(0, 0, 0, 0.7)"});FB.login(t=>{if(console.log(t),t.status==="connected")sc(t.authResponse.accessToken).then(n=>{e.close(),this.$emit("success");try{document.body.classList.remove("el-loading-parent--relative")}catch{}},n=>{e.close();try{document.body.classList.remove("el-loading-parent--relative")}catch{}console.log(n,"1"),ht({showClose:!0,message:n.msg,type:"error"})});else{e.close();try{document.body.classList.remove("el-loading-parent--relative")}catch{}}},{scope:"public_profile,email"})}},handleCredentialResponse(e){if(console.log(e,"response"),!e||!e.credential)return;const t=ve.service({text:"logining...",background:"rgba(0, 0, 0, 0.7)"});Uo(e.credential).then(n=>{console.log("loginGoogle",n),t.close(),this.$emit("success");try{document.body.classList.remove("el-loading-parent--relative")}catch{}},n=>{console.log(n,2),t.close();try{document.body.classList.remove("el-loading-parent--relative")}catch{}ht({showClose:!0,message:n.msg,type:"error"})})},handleToLogin(){this.isSignup=!1},handleToSignup(){this.isSignup=!0},handleInput(){this.emailErrorHelp="",this.passwordErrorHelp=""},handleInputBlur(){},handleLogin(){if(!this.email){this.showToast("Email must no be empty");return}if(this.emailErrorHelp||this.passwordErrorHelp){this.showToast(this.emailErrorHelp||this.passwordErrorHelp);return}if(!this.password){this.showToast("Password must no be empty");return}const e=ve.service({text:"logining...",background:"rgba(0, 0, 0, 0.7)"});ac(this.email,this.password).then(t=>{e.close(),this.$emit("success");try{document.body.classList.remove("el-loading-parent--relative")}catch{}},t=>{e.close(),this.passwordErrorHelp=t.msg,this.errCode=t.ok;try{document.body.classList.remove("el-loading-parent--relative")}catch{}})},handleSignup(){if(!this.email){this.showToast("Email must no be empty");return}if(this.emailErrorHelp){this.showToast(this.emailErrorHelp);return}if(!this.name){this.showToast("Username must no be empty");return}if(!this.password){this.showToast("Password must no be empty");return}const e=ve.service({text:"registering...",background:"rgba(0, 0, 0, 0.7)"});ic(this.email,this.name,this.password).then(t=>{e.close(),location.href=t.url;try{document.body.classList.remove("el-loading-parent--relative")}catch{}},t=>{let n=t.msg;if(t.data&&t.data.errors){const o=t.data.errors;o.email?n=typeof o.email=="string"?o.email:o.email[0]:o.username?n=typeof o.username=="string"?o.username:o.username[0]:o.password&&(n=typeof o.password=="string"?o.password:o.password[0])}console.log(t,"3"),e.close();try{document.body.classList.remove("el-loading-parent--relative")}catch{}ht({showClose:!0,message:n,type:"error"})})},showToast(e){console.log(e,4),ht({showClose:!0,message:e,type:"warning"})}}},J=e=>(r.pushScopeId("data-v-4682235c"),e=e(),r.popScopeId(),e),Zc={class:"login-wapper"},eu=J(()=>r.createElementVNode("span",null,"Login here",-1)),tu=J(()=>r.createElementVNode("span",null,"Sign up here",-1)),nu={class:"accounts"},ou=J(()=>r.createElementVNode("div",{class:"account"},[r.createElementVNode("div",{id:"buttonDiv"})],-1)),ru=J(()=>r.createElementVNode("svg",{t:"1661493482810",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"3146",width:"24",height:"24"},[r.createElementVNode("path",{d:"M512.262115 959.556658c247.175132 0 447.569968-200.366167 447.569968-447.556658 0-247.16387-200.394836-447.556658-447.569968-447.556658-247.17718 0-447.556658 200.392788-447.556658 447.556658-0.001024 247.190491 200.378454 447.556658 447.556658 447.556658",fill:"#537BBC","p-id":"3147"}),r.createElementVNode("path",{d:"M404.292383 436.216104h46.269378v-44.969044c0-19.828563 0.499656-50.408946 14.904699-69.347753 15.172957-20.05689 36.000832-33.690947 71.826579-33.690946 58.371702 0 82.952117 8.326235 82.952118 8.326235l-11.564785 68.550147s-19.285904-5.576079-37.275569-5.57608c-17.99888 0-34.111763 6.449454-34.111764 24.438095v52.269346h73.791416l-5.152191 66.958004h-68.639225v232.604221h-86.731278V503.174108h-46.269378v-66.958004z",fill:"#FFFFFF","p-id":"3148"})],-1)),su=J(()=>r.createElementVNode("div",{style:{flex:"1","margin-left":"5px","font-size":"14px","font-weight":"500"}},"Login With Facebook",-1)),au=J(()=>r.createElementVNode("div",{class:"divider"},[r.createElementVNode("div",null,"Or Email")],-1)),iu={class:"form-group"},lu=J(()=>r.createElementVNode("label",{for:"user_email"},"Email",-1)),cu={key:0,class:"help-block-error"},uu={key:0,class:"form-group"},du=J(()=>r.createElementVNode("label",{for:"user_name"},"Username",-1)),fu={class:"form-group"},pu=J(()=>r.createElementVNode("label",{for:"user_password"},"Password",-1)),mu={key:0,class:"help-block-error"},hu={key:0},gu=[J(()=>r.createElementVNode("a",{href:"/user/resend-verify",target:"_blank"},"Resend email",-1))],yu=["disabled"],bu=["disabled"],_u={key:2,class:"link"},wu=J(()=>r.createElementVNode("a",{href:"/user/password-reset",target:"_blank"},"Forgot your password?",-1));function Eu(e,t,n,o,s,a){return r.openBlock(),r.createElementBlock("div",Zc,[r.createElementVNode("h1",null,r.toDisplayString(s.isSignup?"Sign Up With "+s.appName:"Welcom! Please Login"),1),s.isSignup?(r.openBlock(),r.createElementBlock("div",{key:0,class:"link",onClick:t[0]||(t[0]=(...i)=>a.handleToLogin&&a.handleToLogin(...i))},[r.createTextVNode("Already registered? "),eu])):(r.openBlock(),r.createElementBlock("div",{key:1,class:"link",onClick:t[1]||(t[1]=(...i)=>a.handleToSignup&&a.handleToSignup(...i))},[r.createTextVNode("New to "+r.toDisplayString(s.appName)+"? ",1),tu])),r.createElementVNode("div",nu,[r.createCommentVNode(` <div class="account">
7
7
  <div class="fb-login-button" scope="public_profile,email" data-width="255px" data-size="large" data-button-type="login_with" data-layout="default" data-auto-logout-link="false" data-use-continue-as="false" data-onlogin="checkLoginState"></div>
8
- </div> `),ou,r.createElementVNode("div",{class:"account flew-row-v-center",style:{padding:"0 12px","border-radius":"4px"},onClick:t[2]||(t[2]=(...l)=>a.handleFbLogin&&a.handleFbLogin(...l))},[r.createCommentVNode(` <img class="img" src="https://statics.imgkits.com/images/facebook_logo.png" alt="facebook logo" width="24" height="24" style="width: 24pxheight: 24px;margin: 8px 8px 8px 12px;">
9
- <div style="flex: 1;margin-right: 12px;color: #fff;font-size: 16px;text-align: center;font-weight: bold;">Log in With Facebook</div> `),ru,su])]),au,r.createElementVNode("div",null,[r.createElementVNode("div",lu,[iu,r.withDirectives(r.createElementVNode("input",{id:"user_email",type:"email","onUpdate:modelValue":t[3]||(t[3]=l=>s.email=l),onInput:t[4]||(t[4]=(...l)=>a.handleInput&&a.handleInput(...l)),onBlur:t[5]||(t[5]=(...l)=>a.handleInputBlur&&a.handleInputBlur(...l))},null,544),[[r.vModelText,s.email]]),s.emailErrorHelp?(r.openBlock(),r.createElementBlock("p",cu,r.toDisplayString(s.emailErrorHelp),1)):r.createCommentVNode("v-if",!0)]),s.isSignup?(r.openBlock(),r.createElementBlock("div",uu,[du,r.withDirectives(r.createElementVNode("input",{id:"user_name",type:"text","onUpdate:modelValue":t[6]||(t[6]=l=>s.name=l)},null,512),[[r.vModelText,s.name]])])):r.createCommentVNode("v-if",!0),r.createElementVNode("div",fu,[pu,r.withDirectives(r.createElementVNode("input",{id:"user_password",type:"password","onUpdate:modelValue":t[7]||(t[7]=l=>s.password=l),onInput:t[8]||(t[8]=(...l)=>a.handleInput&&a.handleInput(...l))},null,544),[[r.vModelText,s.password]]),s.passwordErrorHelp?(r.openBlock(),r.createElementBlock("p",mu,[r.createTextVNode(r.toDisplayString(s.passwordErrorHelp)+" ",1),s.errCode==2?(r.openBlock(),r.createElementBlock("span",hu,gu)):r.createCommentVNode("v-if",!0)])):r.createCommentVNode("v-if",!0)]),s.isSignup?(r.openBlock(),r.createElementBlock("button",{key:1,class:"form-button",disabled:s.disabled,onClick:t[9]||(t[9]=(...l)=>a.handleSignup&&a.handleSignup(...l))},"Create Your Account",8,yu)):(r.openBlock(),r.createElementBlock("button",{key:2,class:"form-button",disabled:s.disabled,onClick:t[10]||(t[10]=(...l)=>a.handleLogin&&a.handleLogin(...l))},"Login",8,bu))]),s.isSignup?r.createCommentVNode("v-if",!0):(r.openBlock(),r.createElementBlock("div",_u,[wu,r.createCommentVNode(' <a href="/user/resend-verification-email"> Need new verification email?</a> ')])),r.createCommentVNode(` <div class="link">
8
+ </div> `),ou,r.createElementVNode("div",{class:"account flew-row-v-center",style:{padding:"0 12px","border-radius":"4px"},onClick:t[2]||(t[2]=(...i)=>a.handleFbLogin&&a.handleFbLogin(...i))},[r.createCommentVNode(` <img class="img" src="https://statics.imgkits.com/images/facebook_logo.png" alt="facebook logo" width="24" height="24" style="width: 24pxheight: 24px;margin: 8px 8px 8px 12px;">
9
+ <div style="flex: 1;margin-right: 12px;color: #fff;font-size: 16px;text-align: center;font-weight: bold;">Log in With Facebook</div> `),ru,su])]),au,r.createElementVNode("div",null,[r.createElementVNode("div",iu,[lu,r.withDirectives(r.createElementVNode("input",{id:"user_email",type:"email","onUpdate:modelValue":t[3]||(t[3]=i=>s.email=i),onInput:t[4]||(t[4]=(...i)=>a.handleInput&&a.handleInput(...i)),onBlur:t[5]||(t[5]=(...i)=>a.handleInputBlur&&a.handleInputBlur(...i))},null,544),[[r.vModelText,s.email]]),s.emailErrorHelp?(r.openBlock(),r.createElementBlock("p",cu,r.toDisplayString(s.emailErrorHelp),1)):r.createCommentVNode("v-if",!0)]),s.isSignup?(r.openBlock(),r.createElementBlock("div",uu,[du,r.withDirectives(r.createElementVNode("input",{id:"user_name",type:"text","onUpdate:modelValue":t[6]||(t[6]=i=>s.name=i)},null,512),[[r.vModelText,s.name]])])):r.createCommentVNode("v-if",!0),r.createElementVNode("div",fu,[pu,r.withDirectives(r.createElementVNode("input",{id:"user_password",type:"password","onUpdate:modelValue":t[7]||(t[7]=i=>s.password=i),onInput:t[8]||(t[8]=(...i)=>a.handleInput&&a.handleInput(...i))},null,544),[[r.vModelText,s.password]]),s.passwordErrorHelp?(r.openBlock(),r.createElementBlock("p",mu,[r.createTextVNode(r.toDisplayString(s.passwordErrorHelp)+" ",1),s.errCode==2?(r.openBlock(),r.createElementBlock("span",hu,gu)):r.createCommentVNode("v-if",!0)])):r.createCommentVNode("v-if",!0)]),s.isSignup?(r.openBlock(),r.createElementBlock("button",{key:1,class:"form-button",disabled:s.disabled,onClick:t[9]||(t[9]=(...i)=>a.handleSignup&&a.handleSignup(...i))},"Create Your Account",8,yu)):(r.openBlock(),r.createElementBlock("button",{key:2,class:"form-button",disabled:s.disabled,onClick:t[10]||(t[10]=(...i)=>a.handleLogin&&a.handleLogin(...i))},"Login",8,bu))]),s.isSignup?r.createCommentVNode("v-if",!0):(r.openBlock(),r.createElementBlock("div",_u,[wu,r.createCommentVNode(' <a href="/user/resend-verification-email"> Need new verification email?</a> ')])),r.createCommentVNode(` <div class="link">
10
10
  By creating an account you agree to our <a href="/site/terms" style="color: #1778f2;">Terms of Use</a>
11
- </div> `)])}const gr=Oe(Xc,[["render",Eu],["__scopeId","data-v-4682235c"],["__file","/Users/hodohimehime/Desktop/test/xiaochengxu/liusenlin_project/Translation_Video/src/components/Login1.vue"]]),ef="",vu={data(){return{}},components:{Login1:gr},mounted(){},methods:{handleLoginSuccess(){this.$emit("success");const e=localStorage.getItem("cache_passport");e&&(rc(e),localStorage.removeItem("cache_passport"),Ro({passport:e},"active_passport_success"))},handleClose(){this.$emit("close")}}},Su=e=>(r.pushScopeId("data-v-47199182"),e=e(),r.popScopeId(),e),Nu={class:"background-cover"},xu={class:"login-content"},Cu=[Su(()=>r.createElementVNode("svg",{t:"1641536858080",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"1477",width:"32",height:"32"},[r.createElementVNode("path",{d:"M512 455.431L794.843 172.59a8 8 0 0 1 11.313 0l45.255 45.255a8 8 0 0 1 0 11.313L568.57 512 851.41 794.843a8 8 0 0 1 0 11.313l-45.255 45.255a8 8 0 0 1-11.313 0L512 568.57 229.157 851.41a8 8 0 0 1-11.313 0l-45.255-45.255a8 8 0 0 1 0-11.313L455.43 512 172.59 229.157a8 8 0 0 1 0-11.313l45.255-45.255a8 8 0 0 1 11.313 0L512 455.43z","p-id":"1478",fill:"#2c2c2c"})],-1))];function Ou(e,t,n,o,s,a){const l=gr;return r.openBlock(),r.createElementBlock("div",Nu,[r.createElementVNode("div",xu,[r.createVNode(l,{onSuccess:a.handleLoginSuccess},null,8,["onSuccess"]),r.createElementVNode("div",{class:"cancel",onClick:t[0]||(t[0]=(...i)=>a.handleClose&&a.handleClose(...i))},Cu)])])}const Pu=Oe(vu,[["render",Ou],["__scopeId","data-v-47199182"],["__file","/Users/hodohimehime/Desktop/test/xiaochengxu/liusenlin_project/Translation_Video/src/components/Login.vue"]]);/*!
11
+ </div> `)])}const gr=Oe(Xc,[["render",Eu],["__scopeId","data-v-4682235c"],["__file","/Users/hodohimehime/Desktop/test/xiaochengxu/liusenlin_project/Translation_Video/src/components/Login1.vue"]]),ef="",vu={data(){return{}},components:{Login1:gr},mounted(){},methods:{handleLoginSuccess(){this.$emit("success");const e=localStorage.getItem("cache_passport");e&&(rc(e),localStorage.removeItem("cache_passport"),Ro({passport:e},"active_passport_success"))},handleClose(){this.$emit("close")}}},Su=e=>(r.pushScopeId("data-v-47199182"),e=e(),r.popScopeId(),e),Nu={class:"background-cover"},xu={class:"login-content"},Cu=[Su(()=>r.createElementVNode("svg",{t:"1641536858080",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"1477",width:"32",height:"32"},[r.createElementVNode("path",{d:"M512 455.431L794.843 172.59a8 8 0 0 1 11.313 0l45.255 45.255a8 8 0 0 1 0 11.313L568.57 512 851.41 794.843a8 8 0 0 1 0 11.313l-45.255 45.255a8 8 0 0 1-11.313 0L512 568.57 229.157 851.41a8 8 0 0 1-11.313 0l-45.255-45.255a8 8 0 0 1 0-11.313L455.43 512 172.59 229.157a8 8 0 0 1 0-11.313l45.255-45.255a8 8 0 0 1 11.313 0L512 455.43z","p-id":"1478",fill:"#2c2c2c"})],-1))];function Ou(e,t,n,o,s,a){const i=gr;return r.openBlock(),r.createElementBlock("div",Nu,[r.createElementVNode("div",xu,[r.createVNode(i,{onSuccess:a.handleLoginSuccess},null,8,["onSuccess"]),r.createElementVNode("div",{class:"cancel",onClick:t[0]||(t[0]=(...l)=>a.handleClose&&a.handleClose(...l))},Cu)])])}const Pu=Oe(vu,[["render",Ou],["__scopeId","data-v-47199182"],["__file","/Users/hodohimehime/Desktop/test/xiaochengxu/liusenlin_project/Translation_Video/src/components/Login.vue"]]);/*!
12
12
  * pinia v2.1.4
13
13
  * (c) 2023 Eduardo San Martin Morote
14
14
  * @license MIT
15
- */let We;const wt=e=>We=e,ku=process.env.NODE_ENV!=="production"?Symbol("pinia"):Symbol();function me(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Ge;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Ge||(Ge={}));const ln=typeof window<"u",cn=(process.env.NODE_ENV!=="production"||!1)&&process.env.NODE_ENV!=="test"&&ln;function yr(e,t){for(const n in t){const o=t[n];if(!(n in e))continue;const s=e[n];me(s)&&me(o)&&!r.isRef(o)&&!r.isReactive(o)?e[n]=yr(s,o):e[n]=o}return e}const br=()=>{};function _r(e,t,n,o=br){e.push(t);const s=()=>{const a=e.indexOf(t);a>-1&&(e.splice(a,1),o())};return!n&&r.getCurrentScope()&&r.onScopeDispose(s),s}function Pe(e,...t){e.slice().forEach(n=>{n(...t)})}const Tu=e=>e();function un(e,t){e instanceof Map&&t instanceof Map&&t.forEach((n,o)=>e.set(o,n)),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const o=t[n],s=e[n];me(s)&&me(o)&&e.hasOwnProperty(n)&&!r.isRef(o)&&!r.isReactive(o)?e[n]=un(s,o):e[n]=o}return e}const $u=process.env.NODE_ENV!=="production"?Symbol("pinia:skipHydration"):Symbol();function Lu(e){return!me(e)||!e.hasOwnProperty($u)}const{assign:H}=Object;function wr(e){return!!(r.isRef(e)&&e.effect)}function Er(e,t,n,o){const{state:s,actions:a,getters:l}=t,i=n.state.value[e];let f;function c(){!i&&(process.env.NODE_ENV==="production"||!o)&&(n.state.value[e]=s?s():{});const u=process.env.NODE_ENV!=="production"&&o?r.toRefs(r.ref(s?s():{}).value):r.toRefs(n.state.value[e]);return H(u,a,Object.keys(l||{}).reduce((d,p)=>(process.env.NODE_ENV!=="production"&&p in u&&console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${p}" in store "${e}".`),d[p]=r.markRaw(r.computed(()=>{wt(n);const m=n._s.get(e);return l[p].call(m,m)})),d),{}))}return f=dn(e,c,t,n,o,!0),f}function dn(e,t,n={},o,s,a){let l;const i=H({actions:{}},n);if(process.env.NODE_ENV!=="production"&&!o._e.active)throw new Error("Pinia destroyed");const f={deep:!0};process.env.NODE_ENV!=="production"&&!Is&&(f.onTrigger=N=>{c?m=N:c==!1&&!b._hotUpdating&&(Array.isArray(m)?m.push(N):console.error("🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug."))});let c,u,d=[],p=[],m;const g=o.state.value[e];!a&&!g&&(process.env.NODE_ENV==="production"||!s)&&(o.state.value[e]={});const h=r.ref({});let _;function w(N){let v;c=u=!1,process.env.NODE_ENV!=="production"&&(m=[]),typeof N=="function"?(N(o.state.value[e]),v={type:Ge.patchFunction,storeId:e,events:m}):(un(o.state.value[e],N),v={type:Ge.patchObject,payload:N,storeId:e,events:m});const L=_=Symbol();r.nextTick().then(()=>{_===L&&(c=!0)}),u=!0,Pe(d,v,o.state.value[e])}const O=a?function(){const{state:v}=n,L=v?v():{};this.$patch(B=>{H(B,L)})}:process.env.NODE_ENV!=="production"?()=>{throw new Error(`🍍: Store "${e}" is built using the setup syntax and does not implement $reset().`)}:br;function x(){l.stop(),d=[],p=[],o._s.delete(e)}function k(N,v){return function(){wt(o);const L=Array.from(arguments),B=[],ge=[];function fn($){B.push($)}function pn($){ge.push($)}Pe(p,{args:L,name:N,store:b,after:fn,onError:pn});let T;try{T=v.apply(this&&this.$id===e?this:b,L)}catch($){throw Pe(ge,$),$}return T instanceof Promise?T.then($=>(Pe(B,$),$)).catch($=>(Pe(ge,$),Promise.reject($))):(Pe(B,T),T)}}const E=r.markRaw({actions:{},getters:{},state:[],hotState:h}),C={_p:o,$id:e,$onAction:_r.bind(null,p),$patch:w,$reset:O,$subscribe(N,v={}){const L=_r(d,N,v.detached,()=>B()),B=l.run(()=>r.watch(()=>o.state.value[e],ge=>{(v.flush==="sync"?u:c)&&N({storeId:e,type:Ge.direct,events:m},ge)},H({},f,v)));return L},$dispose:x},b=r.reactive(process.env.NODE_ENV!=="production"||cn?H({_hmrPayload:E,_customProperties:r.markRaw(new Set)},C):C);o._s.set(e,b);const V=o._a&&o._a.runWithContext||Tu,D=o._e.run(()=>(l=r.effectScope(),V(()=>l.run(t))));for(const N in D){const v=D[N];if(r.isRef(v)&&!wr(v)||r.isReactive(v))process.env.NODE_ENV!=="production"&&s?at(h.value,N,r.toRef(D,N)):a||(g&&Lu(v)&&(r.isRef(v)?v.value=g[N]:un(v,g[N])),o.state.value[e][N]=v),process.env.NODE_ENV!=="production"&&E.state.push(N);else if(typeof v=="function"){const L=process.env.NODE_ENV!=="production"&&s?v:k(N,v);D[N]=L,process.env.NODE_ENV!=="production"&&(E.actions[N]=v),i.actions[N]=v}else process.env.NODE_ENV!=="production"&&wr(v)&&(E.getters[N]=a?n.getters[N]:v,ln&&(D._getters||(D._getters=r.markRaw([]))).push(N))}if(H(b,D),H(r.toRaw(b),D),Object.defineProperty(b,"$state",{get:()=>process.env.NODE_ENV!=="production"&&s?h.value:o.state.value[e],set:N=>{if(process.env.NODE_ENV!=="production"&&s)throw new Error("cannot set hotState");w(v=>{H(v,N)})}}),process.env.NODE_ENV!=="production"&&(b._hotUpdate=r.markRaw(N=>{b._hotUpdating=!0,N._hmrPayload.state.forEach(v=>{if(v in b.$state){const L=N.$state[v],B=b.$state[v];typeof L=="object"&&me(L)&&me(B)?yr(L,B):N.$state[v]=B}at(b,v,r.toRef(N.$state,v))}),Object.keys(b.$state).forEach(v=>{v in N.$state||Vt(b,v)}),c=!1,u=!1,o.state.value[e]=r.toRef(N._hmrPayload,"hotState"),u=!0,r.nextTick().then(()=>{c=!0});for(const v in N._hmrPayload.actions){const L=N[v];at(b,v,k(v,L))}for(const v in N._hmrPayload.getters){const L=N._hmrPayload.getters[v],B=a?r.computed(()=>(wt(o),L.call(b,b))):L;at(b,v,B)}Object.keys(b._hmrPayload.getters).forEach(v=>{v in N._hmrPayload.getters||Vt(b,v)}),Object.keys(b._hmrPayload.actions).forEach(v=>{v in N._hmrPayload.actions||Vt(b,v)}),b._hmrPayload=N._hmrPayload,b._getters=N._getters,b._hotUpdating=!1})),cn){const N={writable:!0,configurable:!0,enumerable:!1};["_p","_hmrPayload","_getters","_customProperties"].forEach(v=>{Object.defineProperty(b,v,H({value:b[v]},N))})}return o._p.forEach(N=>{if(cn){const v=l.run(()=>N({store:b,app:o._a,pinia:o,options:i}));Object.keys(v||{}).forEach(L=>b._customProperties.add(L)),H(b,v)}else H(b,l.run(()=>N({store:b,app:o._a,pinia:o,options:i})))}),process.env.NODE_ENV!=="production"&&b.$state&&typeof b.$state=="object"&&typeof b.$state.constructor=="function"&&!b.$state.constructor.toString().includes("[native code]")&&console.warn(`[🍍]: The "state" must be a plain object. It cannot be
15
+ */let We;const wt=e=>We=e,ku=process.env.NODE_ENV!=="production"?Symbol("pinia"):Symbol();function me(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Ge;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Ge||(Ge={}));const ln=typeof window<"u",cn=(process.env.NODE_ENV!=="production"||!1)&&process.env.NODE_ENV!=="test"&&ln;function yr(e,t){for(const n in t){const o=t[n];if(!(n in e))continue;const s=e[n];me(s)&&me(o)&&!r.isRef(o)&&!r.isReactive(o)?e[n]=yr(s,o):e[n]=o}return e}const br=()=>{};function _r(e,t,n,o=br){e.push(t);const s=()=>{const a=e.indexOf(t);a>-1&&(e.splice(a,1),o())};return!n&&r.getCurrentScope()&&r.onScopeDispose(s),s}function Pe(e,...t){e.slice().forEach(n=>{n(...t)})}const Tu=e=>e();function un(e,t){e instanceof Map&&t instanceof Map&&t.forEach((n,o)=>e.set(o,n)),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const o=t[n],s=e[n];me(s)&&me(o)&&e.hasOwnProperty(n)&&!r.isRef(o)&&!r.isReactive(o)?e[n]=un(s,o):e[n]=o}return e}const $u=process.env.NODE_ENV!=="production"?Symbol("pinia:skipHydration"):Symbol();function Lu(e){return!me(e)||!e.hasOwnProperty($u)}const{assign:H}=Object;function wr(e){return!!(r.isRef(e)&&e.effect)}function Er(e,t,n,o){const{state:s,actions:a,getters:i}=t,l=n.state.value[e];let f;function c(){!l&&(process.env.NODE_ENV==="production"||!o)&&(n.state.value[e]=s?s():{});const u=process.env.NODE_ENV!=="production"&&o?r.toRefs(r.ref(s?s():{}).value):r.toRefs(n.state.value[e]);return H(u,a,Object.keys(i||{}).reduce((d,p)=>(process.env.NODE_ENV!=="production"&&p in u&&console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${p}" in store "${e}".`),d[p]=r.markRaw(r.computed(()=>{wt(n);const m=n._s.get(e);return i[p].call(m,m)})),d),{}))}return f=dn(e,c,t,n,o,!0),f}function dn(e,t,n={},o,s,a){let i;const l=H({actions:{}},n);if(process.env.NODE_ENV!=="production"&&!o._e.active)throw new Error("Pinia destroyed");const f={deep:!0};process.env.NODE_ENV!=="production"&&!Is&&(f.onTrigger=N=>{c?m=N:c==!1&&!b._hotUpdating&&(Array.isArray(m)?m.push(N):console.error("🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug."))});let c,u,d=[],p=[],m;const g=o.state.value[e];!a&&!g&&(process.env.NODE_ENV==="production"||!s)&&(o.state.value[e]={});const h=r.ref({});let _;function w(N){let v;c=u=!1,process.env.NODE_ENV!=="production"&&(m=[]),typeof N=="function"?(N(o.state.value[e]),v={type:Ge.patchFunction,storeId:e,events:m}):(un(o.state.value[e],N),v={type:Ge.patchObject,payload:N,storeId:e,events:m});const L=_=Symbol();r.nextTick().then(()=>{_===L&&(c=!0)}),u=!0,Pe(d,v,o.state.value[e])}const O=a?function(){const{state:v}=n,L=v?v():{};this.$patch(B=>{H(B,L)})}:process.env.NODE_ENV!=="production"?()=>{throw new Error(`🍍: Store "${e}" is built using the setup syntax and does not implement $reset().`)}:br;function x(){i.stop(),d=[],p=[],o._s.delete(e)}function k(N,v){return function(){wt(o);const L=Array.from(arguments),B=[],ge=[];function fn($){B.push($)}function pn($){ge.push($)}Pe(p,{args:L,name:N,store:b,after:fn,onError:pn});let T;try{T=v.apply(this&&this.$id===e?this:b,L)}catch($){throw Pe(ge,$),$}return T instanceof Promise?T.then($=>(Pe(B,$),$)).catch($=>(Pe(ge,$),Promise.reject($))):(Pe(B,T),T)}}const E=r.markRaw({actions:{},getters:{},state:[],hotState:h}),C={_p:o,$id:e,$onAction:_r.bind(null,p),$patch:w,$reset:O,$subscribe(N,v={}){const L=_r(d,N,v.detached,()=>B()),B=i.run(()=>r.watch(()=>o.state.value[e],ge=>{(v.flush==="sync"?u:c)&&N({storeId:e,type:Ge.direct,events:m},ge)},H({},f,v)));return L},$dispose:x},b=r.reactive(process.env.NODE_ENV!=="production"||cn?H({_hmrPayload:E,_customProperties:r.markRaw(new Set)},C):C);o._s.set(e,b);const V=o._a&&o._a.runWithContext||Tu,D=o._e.run(()=>(i=r.effectScope(),V(()=>i.run(t))));for(const N in D){const v=D[N];if(r.isRef(v)&&!wr(v)||r.isReactive(v))process.env.NODE_ENV!=="production"&&s?at(h.value,N,r.toRef(D,N)):a||(g&&Lu(v)&&(r.isRef(v)?v.value=g[N]:un(v,g[N])),o.state.value[e][N]=v),process.env.NODE_ENV!=="production"&&E.state.push(N);else if(typeof v=="function"){const L=process.env.NODE_ENV!=="production"&&s?v:k(N,v);D[N]=L,process.env.NODE_ENV!=="production"&&(E.actions[N]=v),l.actions[N]=v}else process.env.NODE_ENV!=="production"&&wr(v)&&(E.getters[N]=a?n.getters[N]:v,ln&&(D._getters||(D._getters=r.markRaw([]))).push(N))}if(H(b,D),H(r.toRaw(b),D),Object.defineProperty(b,"$state",{get:()=>process.env.NODE_ENV!=="production"&&s?h.value:o.state.value[e],set:N=>{if(process.env.NODE_ENV!=="production"&&s)throw new Error("cannot set hotState");w(v=>{H(v,N)})}}),process.env.NODE_ENV!=="production"&&(b._hotUpdate=r.markRaw(N=>{b._hotUpdating=!0,N._hmrPayload.state.forEach(v=>{if(v in b.$state){const L=N.$state[v],B=b.$state[v];typeof L=="object"&&me(L)&&me(B)?yr(L,B):N.$state[v]=B}at(b,v,r.toRef(N.$state,v))}),Object.keys(b.$state).forEach(v=>{v in N.$state||Vt(b,v)}),c=!1,u=!1,o.state.value[e]=r.toRef(N._hmrPayload,"hotState"),u=!0,r.nextTick().then(()=>{c=!0});for(const v in N._hmrPayload.actions){const L=N[v];at(b,v,k(v,L))}for(const v in N._hmrPayload.getters){const L=N._hmrPayload.getters[v],B=a?r.computed(()=>(wt(o),L.call(b,b))):L;at(b,v,B)}Object.keys(b._hmrPayload.getters).forEach(v=>{v in N._hmrPayload.getters||Vt(b,v)}),Object.keys(b._hmrPayload.actions).forEach(v=>{v in N._hmrPayload.actions||Vt(b,v)}),b._hmrPayload=N._hmrPayload,b._getters=N._getters,b._hotUpdating=!1})),cn){const N={writable:!0,configurable:!0,enumerable:!1};["_p","_hmrPayload","_getters","_customProperties"].forEach(v=>{Object.defineProperty(b,v,H({value:b[v]},N))})}return o._p.forEach(N=>{if(cn){const v=i.run(()=>N({store:b,app:o._a,pinia:o,options:l}));Object.keys(v||{}).forEach(L=>b._customProperties.add(L)),H(b,v)}else H(b,i.run(()=>N({store:b,app:o._a,pinia:o,options:l})))}),process.env.NODE_ENV!=="production"&&b.$state&&typeof b.$state=="object"&&typeof b.$state.constructor=="function"&&!b.$state.constructor.toString().includes("[native code]")&&console.warn(`[🍍]: The "state" must be a plain object. It cannot be
16
16
  state: () => new MyClass()
17
- Found in store "${b.$id}".`),g&&a&&n.hydrate&&n.hydrate(b.$state,g),c=!0,u=!0,b}function Bu(e,t,n){let o,s;const a=typeof t=="function";if(typeof e=="string")o=e,s=a?n:t;else if(s=e,o=e.id,process.env.NODE_ENV!=="production"&&typeof o!="string")throw new Error('[🍍]: "defineStore()" must be passed a store id as its first argument.');function l(i,f){const c=r.hasInjectionContext();if(i=(process.env.NODE_ENV==="test"&&We&&We._testing?null:i)||(c?r.inject(ku,null):null),i&&wt(i),process.env.NODE_ENV!=="production"&&!We)throw new Error(`[🍍]: "getActivePinia()" was called but there was no active Pinia. Did you forget to install pinia?
17
+ Found in store "${b.$id}".`),g&&a&&n.hydrate&&n.hydrate(b.$state,g),c=!0,u=!0,b}function Bu(e,t,n){let o,s;const a=typeof t=="function";if(typeof e=="string")o=e,s=a?n:t;else if(s=e,o=e.id,process.env.NODE_ENV!=="production"&&typeof o!="string")throw new Error('[🍍]: "defineStore()" must be passed a store id as its first argument.');function i(l,f){const c=r.hasInjectionContext();if(l=(process.env.NODE_ENV==="test"&&We&&We._testing?null:l)||(c?r.inject(ku,null):null),l&&wt(l),process.env.NODE_ENV!=="production"&&!We)throw new Error(`[🍍]: "getActivePinia()" was called but there was no active Pinia. Did you forget to install pinia?
18
18
  const pinia = createPinia()
19
19
  app.use(pinia)
20
- This will fail in production.`);i=We,i._s.has(o)||(a?dn(o,t,s,i):Er(o,s,i),process.env.NODE_ENV!=="production"&&(l._pinia=i));const u=i._s.get(o);if(process.env.NODE_ENV!=="production"&&f){const d="__hot:"+o,p=a?dn(d,t,s,i,!0):Er(d,H({},s),i,!0);f._hotUpdate(p),delete i.state.value[d],i._s.delete(d)}if(process.env.NODE_ENV!=="production"&&ln){const d=r.getCurrentInstance();if(d&&d.proxy&&!f){const p=d.proxy,m="_pStores"in p?p._pStores:p._pStores={};m[o]=u}}return u}return l.$id=o,l}function Au(e,t){return Array.isArray(t)?t.reduce((n,o)=>(n[o]=function(...s){return e(this.$pinia)[o](...s)},n),{}):Object.keys(t).reduce((n,o)=>(n[o]=function(...s){return e(this.$pinia)[t[o]](...s)},n),{})}const Vu=Bu("user",{state:()=>({user:null,isShowLogin:!1,isShowToast:!1,toastContent:"",isShowInvite:!1}),actions:{getUser(e=!1){return window.getUserStatusPromise=new Promise((t,n)=>{Mo(e).then(({profile:o,subscription:s,team_subscription:a,drive:l})=>{if(o){let{free_cnt:i,is_subscribed:f,detail:c}=s;i||(i=0),c&&c.ends_at&&(f=new Date(c.ends_at)>new Date);const u=a&&a.detail||null,d=u&&!0||!1,p=f&&c.name||d&&u.name||"",m={...o,free_cnt:i,is_subscribed:f||d,subscribedType:p,detail:c||u,team_subscription:a,isMember:!f&&a,drive:l};this.user=m,window.userStatus=m}t({profile:o,subscription:s})},o=>{n(o)})})},logout(){this.user=null,window.userStatus=null},updateUser(e=!1,t,n=!1){const o=ve.service({text:"Upgrading....",background:"rgba(0, 0, 0, 0.7)"});let s=1;const a=()=>{Mo(n).then(({profile:l,subscription:i,team_subscription:f,drive:c})=>{let{free_cnt:u,is_subscribed:d,detail:p}=i;u||(u=0),p&&p.ends_at&&(d=new Date(p.ends_at)>new Date);const m=f&&f.detail||null,g=m&&!0||!1,h=d&&p.name||g&&m.name||"";if(d||g||t=="purchase"&&u){const _={...l,free_cnt:u,is_subscribed:d||g,subscribedType:h,detail:p||m,team_subscription:f,isMember:!d&&f,drive:c};if(this.user=_,window.userStatus=_,window.opener){const w={type:"subscribed"};Ro({message:w,user:_},"subscribed:success"),window.opener.postMessage(w,process.env.NODE_ENV=="development"?"http://localhost:8080":"*")}o.close(),f&&f.quota>1?this.isShowInvite=!0:(this.isShowToast=!0,this.toastContent=t=="purchase"?"purchased credits":"upgraded to a member",setTimeout(()=>{this.isShowToast=!1;const w=jo();(window.opener&&!e||w.product&&w.product=="image_translator"||w.close)&&window.close()},3e3))}else s>20?o.close():setTimeout(()=>{s++,a()},2e3)},l=>{o.close()})};a()},showLogin(e){this.isShowLogin=e},hideInvite(e){this.isShowInvite=e}}}),nf="";let vr=Me();console.log("childPath3",vr);const Fu={props:["user","from"],data(){return{path:vr}},methods:{...Au(Vu,["logout"]),handlePay(){console.log("user",this.user),this.user.is_subscribed||this.$emit("subscribe")}}},ke=e=>(r.pushScopeId("data-v-8580ad75"),e=e(),r.popScopeId(),e),Iu={class:"user-center-content"},Du={class:"user-info flew-row-v-center"},Ru=["src"],ju={class:"user-name",style:{color:"#000"}},Mu={class:"user-email"},Uu={class:"flew-row-v-center"},zu={key:0,t:"1637834706702",class:"user-item-icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"10206",width:"32",height:"32"},Hu=[ke(()=>r.createElementVNode("path",{d:"M319.786667 74.666667h384.490666A85.333333 85.333333 0 0 1 772.266667 108.458667l207.594666 273.834666a85.333333 85.333333 0 0 1-6.592 110.805334L573.866667 907.136a85.333333 85.333333 0 0 1-122.688 0.149333L50.88 494.144a85.333333 85.333333 0 0 1-6.805333-110.826667L251.733333 108.544A85.333333 85.333333 0 0 1 319.786667 74.666667z",fill:"#d19844","p-id":"10207","data-spm-anchor-id":"a313x.7781069.0.i16",class:"selected"},null,-1)),ke(()=>r.createElementVNode("path",{d:"M685.482667 350.72a32 32 0 0 1 47.445333 42.816l-2.197333 2.432-196.096 196.096a32 32 0 0 1-42.837334 2.197333l-2.432-2.197333-196.096-196.096a32 32 0 0 1 42.816-47.466667l2.432 2.197334L512 524.181333l173.482667-173.482666z",fill:"#FFFFFF","p-id":"10208"},null,-1))],qu={key:1,t:"1637055277290",class:"user-item-icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8080",width:"32",height:"32"},Wu=[ke(()=>r.createElementVNode("path",{d:"M957.942003 407.418107c4.937452-6.197142 4.954849-15.143908-0.297782-21.406542L718.393185 100.883665c-1.357927-1.623987-2.981914-2.916423-4.738931-3.89368-2.765997-5.600555-8.532327-9.42772-15.193027-9.42772L326.247924 87.562265c-6.329149 0-11.978822 3.612271-14.877849 8.930393-2.15406 0.994654-4.142343 2.469238-5.733585 4.391007L66.386478 386.011564c-3.048429 3.628644-4.340865 8.16803-3.90903 12.541641-0.464581 4.391007 0.794086 8.964162 3.859911 12.625552L501.444085 929.709497c5.997598 7.175423 16.634866 8.037047 23.825638 2.02103 3.13234-2.650363 5.086855-6.145977 5.799076-9.841136 0.38067-0.379647 0.762363-0.777713 1.110287-1.209548L953.899944 418.089144C956.533934 414.956803 957.859116 411.17978 957.942003 407.418107zM520.830621 727.291344 754.099409 449.304076c8.963139-10.686387 25.00244-12.06171 35.754319-3.032056 10.852162 9.096169 12.211113 25.035186 3.230578 35.755342L542.071388 781.172509c-5.418406 6.445806-13.387915 9.509585-21.240767 8.930393-7.837502 0.579191-15.807011-2.484587-21.224394-8.930393L248.57489 482.027361c-8.979512-10.720156-7.605212-26.659173 3.247974-35.755342 10.769274-9.029654 26.774807-7.65433 35.754319 3.032056L520.830621 727.291344z","p-id":"8081",fill:"#969696"},null,-1))],Gu={key:0,class:"user-upgrade"},Ju=[ke(()=>r.createElementVNode("span",null,"Upgrade",-1))],Ku=["href"],Qu=[ke(()=>r.createElementVNode("div",{class:"user-item user-item-active flew-row-v-center"},[r.createElementVNode("svg",{t:"1661398041322",class:"user-item-icon dashboard-icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"6706",width:"32",height:"32"},[r.createElementVNode("path",{d:"M763.733333 554.666667H725.333333v-85.333334h38.4c-17.066667-106.666667-102.4-192-209.066666-209.066666V298.666667h-85.333334v-38.4c-106.666667 17.066667-192 102.4-209.066666 209.066666H298.666667v85.333334h-38.4c17.066667 106.666667 102.4 192 209.066666 209.066666V725.333333h85.333334v38.4c106.666667-17.066667 192-102.4 209.066666-209.066666zM512 853.333333c-187.733333 0-341.333333-153.6-341.333333-341.333333s153.6-341.333333 341.333333-341.333333 341.333333 153.6 341.333333 341.333333-153.6 341.333333-341.333333 341.333333z m132.266667-477.866666l-106.666667 196.266666-89.6-89.6 196.266667-106.666666z m-324.266667-25.6l29.866667-29.866667 29.866666 29.866667-29.866666 29.866666-29.866667-29.866666z m320 320l29.866667-29.866667 29.866666 29.866667-29.866666 29.866666-29.866667-29.866666z m29.866667-349.866667l29.866666 29.866667-29.866666 29.866666-29.866667-29.866666 29.866667-29.866667zM349.866667 640l29.866666 29.866667-29.866666 29.866666-29.866667-29.866666 29.866667-29.866667z",fill:"#969696","p-id":"6707"})]),r.createElementVNode("span",null,"Dashboard")],-1))],Yu=["href"],Xu=[ke(()=>r.createElementVNode("div",{class:"user-item user-item-active flew-row-v-center"},[r.createElementVNode("svg",{t:"1637049676350",class:"user-item-icon",viewBox:"0 0 1025 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"5498",width:"32",height:"32"},[r.createElementVNode("path",{d:"M1001.65696 463.424l-332.224-332.416C648.76096 110.4 624.05696 104.256 598.52096 113.792c-26.176 9.856-41.152 33.28-41.216 64.384L557.30496 328.32 492.28096 328.32 305.65696 328.384C266.48896 328.512 239.16096 355.712 239.03296 394.624c-0.128 78.4-0.128 156.736 0 235.072 0.128 37.696 27.776 65.28 65.792 65.664l252.48 0.064L557.24096 724.48c-0.128 40.768-0.256 81.408 0.576 122.112 0.256 15.936 6.528 33.28 16.256 45.184 11.904 14.656 28.224 22.72 45.952 22.72l0 0c17.536 0 35.2-8 49.728-22.464 110.848-110.72 221.568-221.504 332.288-332.352C1031.60896 530.176 1031.48096 493.248 1001.65696 463.424z","p-id":"5499",fill:"#969696"}),r.createElementVNode("path",{d:"M387.70496 805.696 387.64096 805.696l-72.576 0.128-103.872-0.064c-52.48 0-82.624-30.144-82.624-82.688L128.56896 300.48c0-52.416 30.144-82.496 82.752-82.496l68.8-0.064 75.584 0.064 42.048-0.064c30.08 0 46.528-15.104 48.896-44.8 0.896-11.072 0.64-22.336 0.256-34.88C446.13696 106.944 428.60096 89.664 397.68896 89.6L321.33696 89.6C280.44096 89.6 239.54496 89.6 198.71296 89.856 186.16896 89.92 173.30496 91.328 160.44096 94.08 68.21696 113.728 0.88896 196.416 0.37696 290.688 0.12096 341.504 0.18496 392.384 0.24896 443.136l0.064 67.648L0.18496 581.76C0.12096 632.768-0.00704 683.712 0.44096 734.784c0.896 107.776 88.768 197.056 195.904 199.04 26.368 0.512 52.8 0.64 79.168 0.64l125.376-0.256c24.768 0 42.112-15.04 45.184-39.232 1.088-8.832 1.216-17.856 1.28-26.88l0-4.48c0.128-13.312 0.256-31.552-12.544-44.48C422.45696 806.784 404.66496 805.696 387.70496 805.696z","p-id":"5500",fill:"#969696"})]),r.createElementVNode("span",null,"Logout")],-1))];function Zu(e,t,n,o,s,a){return r.openBlock(),r.createElementBlock("div",Iu,[r.createElementVNode("div",Du,[r.createElementVNode("img",{class:"user-avatar",src:n.user.avatar||"https://statics.imgkits.com/images/default_user_avatar_black.png",alt:"user avatar"},null,8,Ru),r.createElementVNode("div",null,[r.createElementVNode("div",ju,[r.createElementVNode("span",null,r.toDisplayString(n.user.username),1)]),r.createElementVNode("div",Mu,[r.createElementVNode("span",null,r.toDisplayString(n.user.email),1)])])]),r.createCommentVNode(` <div v-if="!user.is_subscribed" class="user-item user-item-active flew-row-v-center space-between" @click="handlePay">
20
+ This will fail in production.`);l=We,l._s.has(o)||(a?dn(o,t,s,l):Er(o,s,l),process.env.NODE_ENV!=="production"&&(i._pinia=l));const u=l._s.get(o);if(process.env.NODE_ENV!=="production"&&f){const d="__hot:"+o,p=a?dn(d,t,s,l,!0):Er(d,H({},s),l,!0);f._hotUpdate(p),delete l.state.value[d],l._s.delete(d)}if(process.env.NODE_ENV!=="production"&&ln){const d=r.getCurrentInstance();if(d&&d.proxy&&!f){const p=d.proxy,m="_pStores"in p?p._pStores:p._pStores={};m[o]=u}}return u}return i.$id=o,i}function Au(e,t){return Array.isArray(t)?t.reduce((n,o)=>(n[o]=function(...s){return e(this.$pinia)[o](...s)},n),{}):Object.keys(t).reduce((n,o)=>(n[o]=function(...s){return e(this.$pinia)[t[o]](...s)},n),{})}const Vu=Bu("user",{state:()=>({user:null,isShowLogin:!1,isShowToast:!1,toastContent:"",isShowInvite:!1}),actions:{getUser(e=!1){return window.getUserStatusPromise=new Promise((t,n)=>{Mo(e).then(({profile:o,subscription:s,team_subscription:a,drive:i})=>{if(o){let{free_cnt:l,is_subscribed:f,detail:c}=s;l||(l=0),c&&c.ends_at&&(f=new Date(c.ends_at)>new Date);const u=a&&a.detail||null,d=u&&!0||!1,p=f&&c.name||d&&u.name||"",m={...o,free_cnt:l,is_subscribed:f||d,subscribedType:p,detail:c||u,team_subscription:a,isMember:!f&&a,drive:i};this.user=m,window.userStatus=m}t({profile:o,subscription:s})},o=>{n(o)})})},logout(){this.user=null,window.userStatus=null},updateUser(e=!1,t,n=!1){const o=ve.service({text:"Upgrading....",background:"rgba(0, 0, 0, 0.7)"});let s=1;const a=()=>{Mo(n).then(({profile:i,subscription:l,team_subscription:f,drive:c})=>{let{free_cnt:u,is_subscribed:d,detail:p}=l;u||(u=0),p&&p.ends_at&&(d=new Date(p.ends_at)>new Date);const m=f&&f.detail||null,g=m&&!0||!1,h=d&&p.name||g&&m.name||"";if(d||g||t=="purchase"&&u){const _={...i,free_cnt:u,is_subscribed:d||g,subscribedType:h,detail:p||m,team_subscription:f,isMember:!d&&f,drive:c};if(this.user=_,window.userStatus=_,window.opener){const w={type:"subscribed"};Ro({message:w,user:_},"subscribed:success"),window.opener.postMessage(w,process.env.NODE_ENV=="development"?"http://localhost:8080":"*")}o.close(),f&&f.quota>1?this.isShowInvite=!0:(this.isShowToast=!0,this.toastContent=t=="purchase"?"purchased credits":"upgraded to a member",setTimeout(()=>{this.isShowToast=!1;const w=jo();(window.opener&&!e||w.product&&w.product=="image_translator"||w.close)&&window.close()},3e3))}else s>20?o.close():setTimeout(()=>{s++,a()},2e3)},i=>{o.close()})};a()},showLogin(e){this.isShowLogin=e},hideInvite(e){this.isShowInvite=e}}}),nf="";let vr=Me();console.log("childPath3",vr);const Fu={props:["user","from"],data(){return{path:vr}},methods:{...Au(Vu,["logout"]),handlePay(){console.log("user",this.user),this.user.is_subscribed||this.$emit("subscribe")}}},ke=e=>(r.pushScopeId("data-v-8580ad75"),e=e(),r.popScopeId(),e),Iu={class:"user-center-content"},Du={class:"user-info flew-row-v-center"},Ru=["src"],ju={class:"user-name",style:{color:"#000"}},Mu={class:"user-email"},Uu={class:"flew-row-v-center"},zu={key:0,t:"1637834706702",class:"user-item-icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"10206",width:"32",height:"32"},Hu=[ke(()=>r.createElementVNode("path",{d:"M319.786667 74.666667h384.490666A85.333333 85.333333 0 0 1 772.266667 108.458667l207.594666 273.834666a85.333333 85.333333 0 0 1-6.592 110.805334L573.866667 907.136a85.333333 85.333333 0 0 1-122.688 0.149333L50.88 494.144a85.333333 85.333333 0 0 1-6.805333-110.826667L251.733333 108.544A85.333333 85.333333 0 0 1 319.786667 74.666667z",fill:"#d19844","p-id":"10207","data-spm-anchor-id":"a313x.7781069.0.i16",class:"selected"},null,-1)),ke(()=>r.createElementVNode("path",{d:"M685.482667 350.72a32 32 0 0 1 47.445333 42.816l-2.197333 2.432-196.096 196.096a32 32 0 0 1-42.837334 2.197333l-2.432-2.197333-196.096-196.096a32 32 0 0 1 42.816-47.466667l2.432 2.197334L512 524.181333l173.482667-173.482666z",fill:"#FFFFFF","p-id":"10208"},null,-1))],qu={key:1,t:"1637055277290",class:"user-item-icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8080",width:"32",height:"32"},Wu=[ke(()=>r.createElementVNode("path",{d:"M957.942003 407.418107c4.937452-6.197142 4.954849-15.143908-0.297782-21.406542L718.393185 100.883665c-1.357927-1.623987-2.981914-2.916423-4.738931-3.89368-2.765997-5.600555-8.532327-9.42772-15.193027-9.42772L326.247924 87.562265c-6.329149 0-11.978822 3.612271-14.877849 8.930393-2.15406 0.994654-4.142343 2.469238-5.733585 4.391007L66.386478 386.011564c-3.048429 3.628644-4.340865 8.16803-3.90903 12.541641-0.464581 4.391007 0.794086 8.964162 3.859911 12.625552L501.444085 929.709497c5.997598 7.175423 16.634866 8.037047 23.825638 2.02103 3.13234-2.650363 5.086855-6.145977 5.799076-9.841136 0.38067-0.379647 0.762363-0.777713 1.110287-1.209548L953.899944 418.089144C956.533934 414.956803 957.859116 411.17978 957.942003 407.418107zM520.830621 727.291344 754.099409 449.304076c8.963139-10.686387 25.00244-12.06171 35.754319-3.032056 10.852162 9.096169 12.211113 25.035186 3.230578 35.755342L542.071388 781.172509c-5.418406 6.445806-13.387915 9.509585-21.240767 8.930393-7.837502 0.579191-15.807011-2.484587-21.224394-8.930393L248.57489 482.027361c-8.979512-10.720156-7.605212-26.659173 3.247974-35.755342 10.769274-9.029654 26.774807-7.65433 35.754319 3.032056L520.830621 727.291344z","p-id":"8081",fill:"#969696"},null,-1))],Gu={key:0,class:"user-upgrade"},Ju=[ke(()=>r.createElementVNode("span",null,"Upgrade",-1))],Ku=["href"],Qu=[ke(()=>r.createElementVNode("div",{class:"user-item user-item-active flew-row-v-center"},[r.createElementVNode("svg",{t:"1661398041322",class:"user-item-icon dashboard-icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"6706",width:"32",height:"32"},[r.createElementVNode("path",{d:"M763.733333 554.666667H725.333333v-85.333334h38.4c-17.066667-106.666667-102.4-192-209.066666-209.066666V298.666667h-85.333334v-38.4c-106.666667 17.066667-192 102.4-209.066666 209.066666H298.666667v85.333334h-38.4c17.066667 106.666667 102.4 192 209.066666 209.066666V725.333333h85.333334v38.4c106.666667-17.066667 192-102.4 209.066666-209.066666zM512 853.333333c-187.733333 0-341.333333-153.6-341.333333-341.333333s153.6-341.333333 341.333333-341.333333 341.333333 153.6 341.333333 341.333333-153.6 341.333333-341.333333 341.333333z m132.266667-477.866666l-106.666667 196.266666-89.6-89.6 196.266667-106.666666z m-324.266667-25.6l29.866667-29.866667 29.866666 29.866667-29.866666 29.866666-29.866667-29.866666z m320 320l29.866667-29.866667 29.866666 29.866667-29.866666 29.866666-29.866667-29.866666z m29.866667-349.866667l29.866666 29.866667-29.866666 29.866666-29.866667-29.866666 29.866667-29.866667zM349.866667 640l29.866666 29.866667-29.866666 29.866666-29.866667-29.866666 29.866667-29.866667z",fill:"#969696","p-id":"6707"})]),r.createElementVNode("span",null,"Dashboard")],-1))],Yu=["href"],Xu=[ke(()=>r.createElementVNode("div",{class:"user-item user-item-active flew-row-v-center"},[r.createElementVNode("svg",{t:"1637049676350",class:"user-item-icon",viewBox:"0 0 1025 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"5498",width:"32",height:"32"},[r.createElementVNode("path",{d:"M1001.65696 463.424l-332.224-332.416C648.76096 110.4 624.05696 104.256 598.52096 113.792c-26.176 9.856-41.152 33.28-41.216 64.384L557.30496 328.32 492.28096 328.32 305.65696 328.384C266.48896 328.512 239.16096 355.712 239.03296 394.624c-0.128 78.4-0.128 156.736 0 235.072 0.128 37.696 27.776 65.28 65.792 65.664l252.48 0.064L557.24096 724.48c-0.128 40.768-0.256 81.408 0.576 122.112 0.256 15.936 6.528 33.28 16.256 45.184 11.904 14.656 28.224 22.72 45.952 22.72l0 0c17.536 0 35.2-8 49.728-22.464 110.848-110.72 221.568-221.504 332.288-332.352C1031.60896 530.176 1031.48096 493.248 1001.65696 463.424z","p-id":"5499",fill:"#969696"}),r.createElementVNode("path",{d:"M387.70496 805.696 387.64096 805.696l-72.576 0.128-103.872-0.064c-52.48 0-82.624-30.144-82.624-82.688L128.56896 300.48c0-52.416 30.144-82.496 82.752-82.496l68.8-0.064 75.584 0.064 42.048-0.064c30.08 0 46.528-15.104 48.896-44.8 0.896-11.072 0.64-22.336 0.256-34.88C446.13696 106.944 428.60096 89.664 397.68896 89.6L321.33696 89.6C280.44096 89.6 239.54496 89.6 198.71296 89.856 186.16896 89.92 173.30496 91.328 160.44096 94.08 68.21696 113.728 0.88896 196.416 0.37696 290.688 0.12096 341.504 0.18496 392.384 0.24896 443.136l0.064 67.648L0.18496 581.76C0.12096 632.768-0.00704 683.712 0.44096 734.784c0.896 107.776 88.768 197.056 195.904 199.04 26.368 0.512 52.8 0.64 79.168 0.64l125.376-0.256c24.768 0 42.112-15.04 45.184-39.232 1.088-8.832 1.216-17.856 1.28-26.88l0-4.48c0.128-13.312 0.256-31.552-12.544-44.48C422.45696 806.784 404.66496 805.696 387.70496 805.696z","p-id":"5500",fill:"#969696"})]),r.createElementVNode("span",null,"Logout")],-1))];function Zu(e,t,n,o,s,a){return r.openBlock(),r.createElementBlock("div",Iu,[r.createElementVNode("div",Du,[r.createElementVNode("img",{class:"user-avatar",src:n.user.avatar||"https://statics.imgkits.com/images/default_user_avatar_black.png",alt:"user avatar"},null,8,Ru),r.createElementVNode("div",null,[r.createElementVNode("div",ju,[r.createElementVNode("span",null,r.toDisplayString(n.user.username),1)]),r.createElementVNode("div",Mu,[r.createElementVNode("span",null,r.toDisplayString(n.user.email),1)])])]),r.createCommentVNode(` <div v-if="!user.is_subscribed" class="user-item user-item-active flew-row-v-center space-between" @click="handlePay">
21
21
  <div class="flew-row-v-center">
22
22
  <svg t="1637055176346" class="user-item-icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="6419" width="32" height="32"><path d="M179.2 182.4c-34.4 16.8-51.2 35.2-51.2 55.2v55.2c0 20 16.8 38.4 51.2 55.2 34.4 16.8 80.8 30.4 140 40 59.2 9.6 123.2 14.4 192.8 14.4s133.6-4.8 192.8-14.4c59.2-9.6 105.6-23.2 140-40 34.4-16.8 51.2-35.2 51.2-55.2v-55.2c0-20-16.8-38.4-51.2-55.2-34.4-16.8-80.8-30.4-140-40C645.6 132.8 581.6 128 512 128s-133.6 4.8-192.8 14.4c-58.4 10.4-105.6 23.2-140 40M128 552v69.6c0 20 16.8 38.4 51.2 55.2s80.8 30.4 140 40c59.2 9.6 123.2 14.4 192.8 14.4s133.6-4.8 192.8-14.4c59.2-9.6 105.6-23.2 140-40 34.4-16.8 51.2-35.2 51.2-55.2v-72.8c-40 24-93.6 42.4-162.4 54.4-68.8 12.8-142.4 18.4-221.6 18.4s-152.8-5.6-221.6-18.4C221.6 591.2 168 572.8 128 548.8M128 712v74.4c0 20 16.8 38.4 51.2 55.2s80.8 30.4 140 40c59.2 9.6 123.2 14.4 192.8 14.4s133.6-4.8 192.8-14.4c59.2-9.6 105.6-23.2 140-40 34.4-16.8 51.2-35.2 51.2-55.2v-72.8c-40 24-93.6 42.4-162.4 54.4-68.8 12-142.4 18.4-221.6 18.4s-152.8-6.4-221.6-18.4C221.6 756 168 737.6 128 713.6M128 384v72.8c0 20 16.8 38.4 51.2 55.2s80.8 30.4 140 40c59.2 9.6 123.2 14.4 192.8 14.4s133.6-4.8 192.8-14.4c59.2-9.6 105.6-23.2 140-40 34.4-16.8 51.2-35.2 51.2-55.2V384c-40 24-93.6 42.4-162.4 54.4-68.8 12-142.4 18.4-221.6 18.4s-152.8-6.4-221.6-18.4C221.6 426.4 168 408 128 384" p-id="6420" fill="#969696"></path></svg>
23
23
  <span id="free_cnt">My Credit: {{user.free_cnt}}</span>
24
24
  </div>
25
25
  <div class="user-upgrade user-buy-credit"><span>Buy credit</span></div>
26
- </div> `),r.createElementVNode("div",{class:"user-item flew-row-v-center space-between",onClick:t[0]||(t[0]=(...l)=>a.handlePay&&a.handlePay(...l))},[r.createElementVNode("div",Uu,[n.user.is_subscribed?(r.openBlock(),r.createElementBlock("svg",zu,Hu)):(r.openBlock(),r.createElementBlock("svg",qu,Wu)),r.createElementVNode("span",null,"My Plan: "+r.toDisplayString(n.user.is_subscribed?"Premium Plan":"free"),1)]),!n.user.is_subscribed&&n.from=="addon"?(r.openBlock(),r.createElementBlock("div",Gu,Ju)):r.createCommentVNode("v-if",!0)]),n.from!="addon"?(r.openBlock(),r.createElementBlock("a",{key:0,href:s.path+"/dashboard",target:"_blank"},Qu,8,Ku)):r.createCommentVNode("v-if",!0),n.from!="addon"?(r.openBlock(),r.createElementBlock("a",{key:1,rel:"nofollow",href:s.path+"/user/logout"},Xu,8,Yu)):r.createCommentVNode("v-if",!0)])}const Sr=Oe(Fu,[["render",Zu],["__scopeId","data-v-8580ad75"],["__file","/Users/hodohimehime/Desktop/test/xiaochengxu/liusenlin_project/Translation_Video/src/components/PersonalCenter.vue"]]),uf="",ed={props:["content","top"]},td=(e=>(r.pushScopeId("data-v-7b6def48"),e=e(),r.popScopeId(),e))(()=>r.createElementVNode("svg",{t:"1637907583780",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"2289",width:"32",height:"32"},[r.createElementVNode("path",{d:"M512 1024C229.248 1024 0 794.752 0 512S229.248 0 512 0s512 229.248 512 512-229.248 512-512 512z m-114.176-310.954667a53.333333 53.333333 0 0 0 75.434667 0l323.328-323.328a53.333333 53.333333 0 1 0-75.434667-75.434666l-287.914667 283.306666-128.853333-128.853333a53.333333 53.333333 0 1 0-75.434667 75.434667l168.874667 168.874666z",fill:"#ffffff","p-id":"2290"})],-1));function nd(e,t,n,o,s,a){return r.openBlock(),r.createElementBlock("div",{class:"toast-wrapper",style:r.normalizeStyle({top:n.top||"60PX"})},[td,r.createElementVNode("span",null,"Congratulations! you have successfully "+r.toDisplayString(n.content)+".",1)],4)}const od=Oe(ed,[["render",nd],["__scopeId","data-v-7b6def48"],["__file","/Users/hodohimehime/Desktop/test/xiaochengxu/liusenlin_project/Translation_Video/src/components/Toast.vue"]]),ff="",rd={class:"background-cover"},sd=r.createElementVNode("div",{class:"invite-success"},[r.createElementVNode("svg",{t:"1658474740344",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"3982",width:"32",height:"32"},[r.createElementVNode("path",{d:"M512 57.677643C261.084506 57.677643 57.677643 261.084506 57.677643 512s203.406863 454.322357 454.322357 454.322357 454.322357-203.406863 454.322357-454.322357S762.915494 57.677643 512 57.677643z",fill:"#89B7FF","p-id":"3983"}),r.createElementVNode("path",{d:"M574.292742 467.479958c98.402496-98.402496 199.008277-157.332187 224.708547-131.631916 25.706482 25.706482-33.222322 126.311376-131.626592 224.714759-69.494461 69.494461-140.091009 119.304873-184.627023 133.519306-5.030378 2.413588-10.914385 3.680721-17.476326 3.871501-5.891106 0.594523-11.002232 0.199653-15.218024-1.247611-31.752873-5.672818-73.424527-30.023432-111.022364-67.622156-58.328069-58.327182-84.768388-126.443591-59.068118-152.143862 25.706482-25.706482 93.822003 0.733837 152.150073 59.061907 16.800166 16.800166 30.956035 34.414031 41.981338 51.592208 24.079085-36.552541 58.614683-78.530329 100.199376-120.114136z",fill:"#FFFFFF","p-id":"3984"})])],-1),ad=r.createElementVNode("div",{class:"invite-title"},[r.createElementVNode("span",null,"Successfully subscribed!")],-1),ld=r.createElementVNode("p",{class:"invite-desc"},"You have successfully subscribed to the business plan and now you have the right to add licenses for partners.",-1),id=[r.createElementVNode("span",null,"Invite Partners Now",-1)],cd=[r.createElementVNode("span",null,"Invite Later",-1)],ud=Oe({__name:"TeamInvite",emits:["cancel"],setup(e,{emit:t}){const n=Me(),o=()=>{t("cancel"),location.href=n+"/dashboard"},s=()=>{t("cancel")};return(a,l)=>(r.openBlock(),r.createElementBlock("div",rd,[r.createElementVNode("div",{class:"invite-dialog"},[sd,ad,ld,r.createElementVNode("div",null,[r.createElementVNode("div",{class:"button button-up",onClick:o},id),r.createElementVNode("div",{class:"button button-down",onClick:s},cd)])])]))}},[["__file","/Users/hodohimehime/Desktop/test/xiaochengxu/liusenlin_project/Translation_Video/src/components/TeamInvite.vue"]]);function dd(e,t){return r.openBlock(),r.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},[r.createElementVNode("path",{"fill-rule":"evenodd",d:"M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z","clip-rule":"evenodd"})])}const gf="",yf="",he=e=>(r.pushScopeId("data-v-c970699f"),e=e(),r.popScopeId(),e),fd={class:"flex items-center justify-between py-6 lg:px-0 px-6","aria-label":"Global"},pd={class:"flex lg:flex-1"},md=he(()=>r.createElementVNode("span",{class:"hidden items-center gap-x-1 text-sm font-semibold h-7 leading-7 text-gray-900"},null,-1)),hd=["href"],gd=["src","alt"],yd={class:"pl-2 text-xl"},bd={class:"flex lg:hidden"},_d=he(()=>r.createElementVNode("span",{class:"sr-only"},"Open main menu",-1)),wd={class:"hidden lg:flex lg:gap-x-12"},Ed={class:"navigation-item inline-flex items-center gap-x-1 text-sm font-semibold h-7 leading-7 text-gray-900"},vd=he(()=>r.createElementVNode("span",null,"Apps",-1)),Sd={class:"w-56 shrink rounded-xl bg-white p-4 text-sm font-semibold leading-6 text-gray-900 shadow-lg ring-1 ring-gray-900/5"},Nd=["href"],xd=["href","target"],Cd={key:0,class:"hidden lg:flex lg:flex-1 lg:justify-end"},Od={key:1,class:"hidden lg:flex lg:flex-1 lg:justify-end"},Pd=he(()=>r.createElementVNode("span",{"aria-hidden":"true"},null,-1)),kd={key:2,class:"hidden lg:flex lg:flex-1 lg:justify-end text-sm font-semibold leading-6 text-gray-900 items-center"},Td={class:"pr-4"},$d=["src"],Ld=he(()=>r.createElementVNode("div",{class:"open-icon"},null,-1)),Bd={class:"user-center-dialog shadow-xl"},Ad=he(()=>r.createElementVNode("div",{class:"fixed inset-0 z-50"},null,-1)),Vd={class:"flex items-center justify-between"},Fd=["href"],Id={class:"sr-only"},Dd=["src","alt"],Rd=he(()=>r.createElementVNode("span",{class:"sr-only"},"Close menu",-1)),jd={class:"mt-6 flow-root"},Md={class:"-my-6 divide-y divide-gray-500/10"},Ud={class:"space-y-2 py-6"},zd={key:0,target:"_blank",href:"https://www.livepolls.app/apps",class:"-mx-3 block rounded-lg px-3 py-2 text-base font-semibold leading-7 text-gray-900 hover:bg-gray-50"},Hd=["href","target"],qd={key:0,class:"py-6"},Wd=Oe({__name:"Header",props:{isShenHe:{type:Boolean,default:!1},userStore:{type:Object,default:()=>{}},from:{type:String,default:""},className:{type:String,default:"max-w-7xl"},driveQuery:{type:Boolean,default:!1}},emits:["loginSuccess","initUserCallback"],setup(e,{emit:t}){const n=e;let o={logo:"https://lh3.googleusercontent.com/-Rt2iBOrXu0M/ZKvVIrKS3aI/AAAAAAAAADU/H-qh2KKs4E84IsfLcxAru0j5aN_rdITjwCNcBGAsYHQ/s400/ff.png",name:"Video Translator"};typeof app_config=="object"&&app_config&&Object.keys(app_config).length>0&&(o=app_config),console.log("appInfo",o);const s=r.ref(o),a=Me(),l=[{name:"Live Poll Maker for Slides",href:"https://www.livepolls.app"},{name:"Geocode for Sheets",href:"https://www.livepolls.app/geocode"},{name:"Slides Translator",href:"https://www.livepolls.app/slides_translator"},{name:"Screen&Audio Recorder",href:"https://recorder.livepolls.app/recorder"},{name:"ChatGPT Slides Maker",href:"https://www.livepolls.app/ai_slide_generator"},{name:"More Apps >",href:"https://www.livepolls.app/apps"}].filter(E=>E.href!="https://www.livepolls.app"+a),i=r.ref(n.isShenHe?[{name:"Privacy Policy",href:a+"/privacy",target:"_blank"}]:[{name:"Pricing",href:a+"/pricing",target:"_self"}]),f=r.ref(a||"/"),c=r.ref(!1),u=r.computed(()=>n.userStore.user),d=()=>{n.userStore.showLogin(!0)},p=r.ref(!1);r.onMounted(()=>{n.userStore.getUser(n.driveQuery).then(({profile:E})=>{t("initUserCallback",E),console.log("login",E),!E&&n.from!="login"&&!n.isShenHe&&O()},()=>{})});async function m(){g();const E=ve.service({text:"logining...",background:"rgba(0, 0, 0, 0.7)"});try{await n.userStore.getUser(n.driveQuery),t("loginSuccess")}catch{}finally{E.close()}}function g(){n.userStore.showLogin(!1)}function h(){c.value=!0}function _(){c.value=!1}function w(){c.value=!c.value}function O(E){console.log("addGoogleAccountsScript:before"),typeof google<"u"&&(google.accounts.id.initialize({client_id:"704677828444-ihbv6faprun043f3iuponnrctutdssgj.apps.googleusercontent.com",callback:x}),google.accounts.id.prompt())}function x(E){!E||!E.credential||Uo(E.credential).then(C=>{console.log("fetch_success",C),n.userStore?n.userStore.getUser(n.driveQuery):location.href=location.pathname},C=>{console.log("fetch_fail",C)})}function k(){n.userStore.hideInvite(!1)}return(E,C)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createElementVNode("header",{class:r.normalizeClass(["absolute inset-x-0 px-1 top-0 z-30 mx-auto",[e.className]])},[r.createElementVNode("nav",fd,[r.createElementVNode("div",pd,[md,r.createElementVNode("a",{href:f.value,class:"-m-1.5 p-1.5 flex items-center"},[r.createElementVNode("img",{class:"h-8 w-auto",src:s.value.logo,alt:s.value.name},null,8,gd),r.createElementVNode("span",yd,r.toDisplayString(s.value.name),1)],8,hd)]),r.createElementVNode("div",bd,[r.createElementVNode("button",{type:"button",class:"-m-2.5 inline-flex items-center justify-center rounded-md p-2.5 text-gray-700",onClick:C[0]||(C[0]=b=>p.value=!0)},[_d,r.createVNode(r.unref(Qc),{class:"h-6 w-6","aria-hidden":"true"})])]),r.createElementVNode("div",wd,[e.isShenHe?r.createCommentVNode("v-if",!0):(r.openBlock(),r.createBlock(r.unref(hr),{key:0,class:"relative"},{default:r.withCtx(()=>[r.createVNode(r.unref(Jc),null,{default:r.withCtx(()=>[r.createElementVNode("div",Ed,[vd,r.createVNode(r.unref(dd),{class:"h-5 w-5","aria-hidden":"true"})])]),_:1}),r.createVNode(r.Transition,{"enter-active-class":"transition ease-out duration-200","enter-from-class":"opacity-0 translate-y-1","enter-to-class":"opacity-100 translate-y-0","leave-active-class":"transition ease-in duration-150","leave-from-class":"opacity-100 translate-y-0","leave-to-class":"opacity-0 translate-y-1"},{default:r.withCtx(()=>[r.createVNode(r.unref(Kc),{class:"absolute left-1/2 z-10 mt-5 flex w-screen max-w-min -translate-x-1/2 px-4"},{default:r.withCtx(()=>[r.createElementVNode("div",Sd,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(l),b=>(r.openBlock(),r.createElementBlock("a",{key:b.name,href:b.href,class:"block p-2 hover:text-indigo-600",target:"_blank"},r.toDisplayString(b.name),9,Nd))),128))])]),_:1})]),_:1})]),_:1})),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(i.value,b=>(r.openBlock(),r.createElementBlock("a",{key:b.name,href:b.href,target:b.target,class:"navigation-item inline-flex items-center text-sm h-7 leading-7 font-semibold text-gray-900"},r.toDisplayString(b.name),9,xd))),128))]),e.isShenHe?(r.openBlock(),r.createElementBlock("div",Cd)):u.value?(r.openBlock(),r.createElementBlock("div",kd,[r.createElementVNode("div",{class:"cursor-pointer flex items-center",onMouseenter:h,onMouseleave:_},[r.createElementVNode("div",Td,[r.createElementVNode("span",null,r.toDisplayString(u.value.username),1)]),r.createElementVNode("img",{class:"user-avatar h-10 rounded-full",src:u.value.avatar||"https://statics.imgkits.com/images/default_user_avatar_black.png",alt:"user avatar"},null,8,$d),Ld,r.withDirectives(r.createElementVNode("div",null,[r.createElementVNode("div",Bd,[u.value?(r.openBlock(),r.createBlock(Sr,{key:0,user:u.value},null,8,["user"])):r.createCommentVNode("v-if",!0)])],512),[[r.vShow,c.value]])],32)])):(r.openBlock(),r.createElementBlock("div",Od,[r.createElementVNode("a",{onClick:d,href:"javscript:void(0)",class:"text-sm leading-6 rounded-3xl bg-indigo-600 px-8 py-1.5 font-semibold text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600"},[r.createTextVNode("Log in"),Pd])]))]),r.createVNode(r.unref(Hc),{as:"div",class:"lg:hidden",onClose:C[2]||(C[2]=b=>p.value=!1),open:p.value},{default:r.withCtx(()=>[Ad,r.createVNode(r.unref(qc),{class:"fixed inset-y-0 right-0 z-50 w-full overflow-y-auto bg-white px-6 py-6 sm:max-w-sm sm:ring-1 sm:ring-gray-900/10"},{default:r.withCtx(()=>[r.createElementVNode("div",Vd,[r.createElementVNode("a",{href:f.value,class:"-m-1.5 p-1.5"},[r.createElementVNode("span",Id,r.toDisplayString(s.value.name),1),r.createElementVNode("img",{class:"h-8 w-auto",src:s.value.logo,alt:s.value.name},null,8,Dd)],8,Fd),r.createElementVNode("button",{type:"button",class:"-m-2.5 rounded-md p-2.5 text-gray-700",onClick:C[1]||(C[1]=b=>p.value=!1)},[Rd,r.createVNode(r.unref(Yc),{class:"h-6 w-6","aria-hidden":"true"})])]),r.createElementVNode("div",jd,[r.createElementVNode("div",Md,[r.createElementVNode("div",Ud,[e.isShenHe?r.createCommentVNode("v-if",!0):(r.openBlock(),r.createElementBlock("a",zd,"More Extensions")),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(i.value,b=>(r.openBlock(),r.createElementBlock("a",{key:b.name,href:b.href,target:b.target,class:"-mx-3 block rounded-lg px-3 py-2 text-base font-semibold leading-7 text-gray-900 hover:bg-gray-50"},r.toDisplayString(b.name),9,Hd))),128))]),u.value?(r.openBlock(),r.createElementBlock("div",{key:1,class:"relative sm-user-center-dialog py-6 right flew-center",onClick:w},[u.value?(r.openBlock(),r.createBlock(Sr,{key:0,user:u.value},null,8,["user"])):r.createCommentVNode("v-if",!0)])):(r.openBlock(),r.createElementBlock("div",qd,[r.createElementVNode("a",{href:"#",onClick:d,class:"-mx-3 block rounded-lg px-3 py-2.5 text-base font-semibold leading-7 text-gray-900 hover:bg-gray-50"},"Log in")]))])])]),_:1})]),_:1},8,["open"])],2),r.createCommentVNode(" 引入登录 "),e.userStore.isShowLogin?(r.openBlock(),r.createBlock(Pu,{key:0,onSuccess:m,onClose:g})):r.createCommentVNode("v-if",!0),e.userStore.isShowToast?(r.openBlock(),r.createBlock(od,{key:1,content:e.userStore.toastContent},null,8,["content"])):r.createCommentVNode("v-if",!0),e.userStore.isShowInvite?(r.openBlock(),r.createBlock(ud,{key:2,onCancel:k})):r.createCommentVNode("v-if",!0)],64))}},[["__scopeId","data-v-c970699f"],["__file","/Users/hodohimehime/Desktop/test/xiaochengxu/liusenlin_project/Translation_Video/src/components/Header.vue"]]);return{install(e){e.component("my-header",Wd)}}});
26
+ </div> `),r.createElementVNode("div",{class:"user-item flew-row-v-center space-between",onClick:t[0]||(t[0]=(...i)=>a.handlePay&&a.handlePay(...i))},[r.createElementVNode("div",Uu,[n.user.is_subscribed?(r.openBlock(),r.createElementBlock("svg",zu,Hu)):(r.openBlock(),r.createElementBlock("svg",qu,Wu)),r.createElementVNode("span",null,"My Plan: "+r.toDisplayString(n.user.is_subscribed?"Premium Plan":"free"),1)]),!n.user.is_subscribed&&n.from=="addon"?(r.openBlock(),r.createElementBlock("div",Gu,Ju)):r.createCommentVNode("v-if",!0)]),n.from!="addon"?(r.openBlock(),r.createElementBlock("a",{key:0,href:s.path+"/dashboard",target:"_blank"},Qu,8,Ku)):r.createCommentVNode("v-if",!0),n.from!="addon"?(r.openBlock(),r.createElementBlock("a",{key:1,rel:"nofollow",href:s.path+"/user/logout"},Xu,8,Yu)):r.createCommentVNode("v-if",!0)])}const Sr=Oe(Fu,[["render",Zu],["__scopeId","data-v-8580ad75"],["__file","/Users/hodohimehime/Desktop/test/xiaochengxu/liusenlin_project/Translation_Video/src/components/PersonalCenter.vue"]]),uf="",ed={props:["content","top"]},td=(e=>(r.pushScopeId("data-v-7b6def48"),e=e(),r.popScopeId(),e))(()=>r.createElementVNode("svg",{t:"1637907583780",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"2289",width:"32",height:"32"},[r.createElementVNode("path",{d:"M512 1024C229.248 1024 0 794.752 0 512S229.248 0 512 0s512 229.248 512 512-229.248 512-512 512z m-114.176-310.954667a53.333333 53.333333 0 0 0 75.434667 0l323.328-323.328a53.333333 53.333333 0 1 0-75.434667-75.434666l-287.914667 283.306666-128.853333-128.853333a53.333333 53.333333 0 1 0-75.434667 75.434667l168.874667 168.874666z",fill:"#ffffff","p-id":"2290"})],-1));function nd(e,t,n,o,s,a){return r.openBlock(),r.createElementBlock("div",{class:"toast-wrapper",style:r.normalizeStyle({top:n.top||"60PX"})},[td,r.createElementVNode("span",null,"Congratulations! you have successfully "+r.toDisplayString(n.content)+".",1)],4)}const od=Oe(ed,[["render",nd],["__scopeId","data-v-7b6def48"],["__file","/Users/hodohimehime/Desktop/test/xiaochengxu/liusenlin_project/Translation_Video/src/components/Toast.vue"]]),ff="",rd={class:"background-cover"},sd=r.createElementVNode("div",{class:"invite-success"},[r.createElementVNode("svg",{t:"1658474740344",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"3982",width:"32",height:"32"},[r.createElementVNode("path",{d:"M512 57.677643C261.084506 57.677643 57.677643 261.084506 57.677643 512s203.406863 454.322357 454.322357 454.322357 454.322357-203.406863 454.322357-454.322357S762.915494 57.677643 512 57.677643z",fill:"#89B7FF","p-id":"3983"}),r.createElementVNode("path",{d:"M574.292742 467.479958c98.402496-98.402496 199.008277-157.332187 224.708547-131.631916 25.706482 25.706482-33.222322 126.311376-131.626592 224.714759-69.494461 69.494461-140.091009 119.304873-184.627023 133.519306-5.030378 2.413588-10.914385 3.680721-17.476326 3.871501-5.891106 0.594523-11.002232 0.199653-15.218024-1.247611-31.752873-5.672818-73.424527-30.023432-111.022364-67.622156-58.328069-58.327182-84.768388-126.443591-59.068118-152.143862 25.706482-25.706482 93.822003 0.733837 152.150073 59.061907 16.800166 16.800166 30.956035 34.414031 41.981338 51.592208 24.079085-36.552541 58.614683-78.530329 100.199376-120.114136z",fill:"#FFFFFF","p-id":"3984"})])],-1),ad=r.createElementVNode("div",{class:"invite-title"},[r.createElementVNode("span",null,"Successfully subscribed!")],-1),id=r.createElementVNode("p",{class:"invite-desc"},"You have successfully subscribed to the business plan and now you have the right to add licenses for partners.",-1),ld=[r.createElementVNode("span",null,"Invite Partners Now",-1)],cd=[r.createElementVNode("span",null,"Invite Later",-1)],ud=Oe({__name:"TeamInvite",emits:["cancel"],setup(e,{emit:t}){const n=Me(),o=()=>{t("cancel"),location.href=n+"/dashboard"},s=()=>{t("cancel")};return(a,i)=>(r.openBlock(),r.createElementBlock("div",rd,[r.createElementVNode("div",{class:"invite-dialog"},[sd,ad,id,r.createElementVNode("div",null,[r.createElementVNode("div",{class:"button button-up",onClick:o},ld),r.createElementVNode("div",{class:"button button-down",onClick:s},cd)])])]))}},[["__file","/Users/hodohimehime/Desktop/test/xiaochengxu/liusenlin_project/Translation_Video/src/components/TeamInvite.vue"]]);function dd(e,t){return r.openBlock(),r.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},[r.createElementVNode("path",{"fill-rule":"evenodd",d:"M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z","clip-rule":"evenodd"})])}const gf="",yf="",he=e=>(r.pushScopeId("data-v-c970699f"),e=e(),r.popScopeId(),e),fd={class:"flex items-center justify-between py-6 lg:px-0 px-6","aria-label":"Global"},pd={class:"flex lg:flex-1"},md=he(()=>r.createElementVNode("span",{class:"hidden items-center gap-x-1 text-sm font-semibold h-7 leading-7 text-gray-900"},null,-1)),hd=["href"],gd=["src","alt"],yd={class:"pl-2 text-xl"},bd={class:"flex lg:hidden"},_d=he(()=>r.createElementVNode("span",{class:"sr-only"},"Open main menu",-1)),wd={class:"hidden lg:flex lg:gap-x-12"},Ed={class:"navigation-item inline-flex items-center gap-x-1 text-sm font-semibold h-7 leading-7 text-gray-900"},vd=he(()=>r.createElementVNode("span",null,"Apps",-1)),Sd={class:"w-56 shrink rounded-xl bg-white p-4 text-sm font-semibold leading-6 text-gray-900 shadow-lg ring-1 ring-gray-900/5"},Nd=["href"],xd=["href","target"],Cd={key:0,class:"hidden lg:flex lg:flex-1 lg:justify-end"},Od={key:1,class:"hidden lg:flex lg:flex-1 lg:justify-end"},Pd=he(()=>r.createElementVNode("span",{"aria-hidden":"true"},null,-1)),kd={key:2,class:"hidden lg:flex lg:flex-1 lg:justify-end text-sm font-semibold leading-6 text-gray-900 items-center"},Td={class:"pr-4"},$d=["src"],Ld=he(()=>r.createElementVNode("div",{class:"open-icon"},null,-1)),Bd={class:"user-center-dialog shadow-xl"},Ad=he(()=>r.createElementVNode("div",{class:"fixed inset-0 z-50"},null,-1)),Vd={class:"flex items-center justify-between"},Fd=["href"],Id={class:"sr-only"},Dd=["src","alt"],Rd=he(()=>r.createElementVNode("span",{class:"sr-only"},"Close menu",-1)),jd={class:"mt-6 flow-root"},Md={class:"-my-6 divide-y divide-gray-500/10"},Ud={class:"space-y-2 py-6"},zd={key:0,target:"_blank",href:"https://www.livepolls.app/apps",class:"-mx-3 block rounded-lg px-3 py-2 text-base font-semibold leading-7 text-gray-900 hover:bg-gray-50"},Hd=["href","target"],qd={key:0,class:"py-6"},Wd=Oe({__name:"Header",props:{isShenHe:{type:Boolean,default:!1},userStore:{type:Object,default:()=>{}},from:{type:String,default:""},className:{type:String,default:"max-w-7xl"},driveQuery:{type:Boolean,default:!1}},emits:["loginSuccess","initUserCallback"],setup(e,{emit:t}){const n=e;let o={logo:"https://lh3.googleusercontent.com/-Rt2iBOrXu0M/ZKvVIrKS3aI/AAAAAAAAADU/H-qh2KKs4E84IsfLcxAru0j5aN_rdITjwCNcBGAsYHQ/s400/ff.png",name:"Video Translator"};typeof app_config=="object"&&app_config&&Object.keys(app_config).length>0&&(o=app_config),console.log("appInfo",o);const s=r.ref(o),a=Me(),i=[{name:"Live Poll Maker for Slides",href:"https://www.livepolls.app"},{name:"Geocode for Sheets",href:"https://www.livepolls.app/geocode"},{name:"Slides Translator",href:"https://www.livepolls.app/slides_translator"},{name:"Screen&Audio Recorder",href:"https://recorder.livepolls.app/recorder"},{name:"ChatGPT Slides Maker",href:"https://www.livepolls.app/ai_slide_generator"},{name:"More Apps >",href:"https://www.livepolls.app/apps"}].filter(E=>E.href!=location.origin+a),l=r.ref(n.isShenHe?[{name:"Privacy Policy",href:a+"/privacy",target:"_blank"}]:[{name:"Pricing",href:a+"/pricing",target:"_self"}]),f=r.ref(a||"/"),c=r.ref(!1),u=r.computed(()=>n.userStore.user),d=()=>{n.userStore.showLogin(!0)},p=r.ref(!1);r.onMounted(()=>{n.userStore.getUser(n.driveQuery).then(({profile:E})=>{t("initUserCallback",E),console.log("login",E),!E&&n.from!="login"&&!n.isShenHe&&O()},()=>{})});async function m(){g();const E=ve.service({text:"logining...",background:"rgba(0, 0, 0, 0.7)"});try{await n.userStore.getUser(n.driveQuery),t("loginSuccess")}catch{}finally{E.close()}}function g(){n.userStore.showLogin(!1)}function h(){c.value=!0}function _(){c.value=!1}function w(){c.value=!c.value}function O(E){console.log("addGoogleAccountsScript:before"),typeof google<"u"&&(google.accounts.id.initialize({client_id:"704677828444-ihbv6faprun043f3iuponnrctutdssgj.apps.googleusercontent.com",callback:x}),google.accounts.id.prompt())}function x(E){!E||!E.credential||Uo(E.credential).then(C=>{console.log("fetch_success",C),n.userStore?n.userStore.getUser(n.driveQuery):location.href=location.pathname},C=>{console.log("fetch_fail",C)})}function k(){n.userStore.hideInvite(!1)}return(E,C)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createElementVNode("header",{class:r.normalizeClass(["absolute inset-x-0 px-1 top-0 z-30 mx-auto",[e.className]])},[r.createElementVNode("nav",fd,[r.createElementVNode("div",pd,[md,r.createElementVNode("a",{href:f.value,class:"-m-1.5 p-1.5 flex items-center"},[r.createElementVNode("img",{class:"h-8 w-auto",src:s.value.logo,alt:s.value.name},null,8,gd),r.createElementVNode("span",yd,r.toDisplayString(s.value.name),1)],8,hd)]),r.createElementVNode("div",bd,[r.createElementVNode("button",{type:"button",class:"-m-2.5 inline-flex items-center justify-center rounded-md p-2.5 text-gray-700",onClick:C[0]||(C[0]=b=>p.value=!0)},[_d,r.createVNode(r.unref(Qc),{class:"h-6 w-6","aria-hidden":"true"})])]),r.createElementVNode("div",wd,[e.isShenHe?r.createCommentVNode("v-if",!0):(r.openBlock(),r.createBlock(r.unref(hr),{key:0,class:"relative"},{default:r.withCtx(()=>[r.createVNode(r.unref(Jc),null,{default:r.withCtx(()=>[r.createElementVNode("div",Ed,[vd,r.createVNode(r.unref(dd),{class:"h-5 w-5","aria-hidden":"true"})])]),_:1}),r.createVNode(r.Transition,{"enter-active-class":"transition ease-out duration-200","enter-from-class":"opacity-0 translate-y-1","enter-to-class":"opacity-100 translate-y-0","leave-active-class":"transition ease-in duration-150","leave-from-class":"opacity-100 translate-y-0","leave-to-class":"opacity-0 translate-y-1"},{default:r.withCtx(()=>[r.createVNode(r.unref(Kc),{class:"absolute left-1/2 z-10 mt-5 flex w-screen max-w-min -translate-x-1/2 px-4"},{default:r.withCtx(()=>[r.createElementVNode("div",Sd,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(i),b=>(r.openBlock(),r.createElementBlock("a",{key:b.name,href:b.href,class:"block p-2 hover:text-indigo-600",target:"_blank"},r.toDisplayString(b.name),9,Nd))),128))])]),_:1})]),_:1})]),_:1})),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(l.value,b=>(r.openBlock(),r.createElementBlock("a",{key:b.name,href:b.href,target:b.target,class:"navigation-item inline-flex items-center text-sm h-7 leading-7 font-semibold text-gray-900"},r.toDisplayString(b.name),9,xd))),128))]),e.isShenHe?(r.openBlock(),r.createElementBlock("div",Cd)):u.value?(r.openBlock(),r.createElementBlock("div",kd,[r.createElementVNode("div",{class:"cursor-pointer flex items-center",onMouseenter:h,onMouseleave:_},[r.createElementVNode("div",Td,[r.createElementVNode("span",null,r.toDisplayString(u.value.username),1)]),r.createElementVNode("img",{class:"user-avatar h-10 rounded-full",src:u.value.avatar||"https://statics.imgkits.com/images/default_user_avatar_black.png",alt:"user avatar"},null,8,$d),Ld,r.withDirectives(r.createElementVNode("div",null,[r.createElementVNode("div",Bd,[u.value?(r.openBlock(),r.createBlock(Sr,{key:0,user:u.value},null,8,["user"])):r.createCommentVNode("v-if",!0)])],512),[[r.vShow,c.value]])],32)])):(r.openBlock(),r.createElementBlock("div",Od,[r.createElementVNode("a",{onClick:d,href:"javscript:void(0)",class:"text-sm leading-6 rounded-3xl bg-indigo-600 px-8 py-1.5 font-semibold text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600"},[r.createTextVNode("Log in"),Pd])]))]),r.createVNode(r.unref(Hc),{as:"div",class:"lg:hidden",onClose:C[2]||(C[2]=b=>p.value=!1),open:p.value},{default:r.withCtx(()=>[Ad,r.createVNode(r.unref(qc),{class:"fixed inset-y-0 right-0 z-50 w-full overflow-y-auto bg-white px-6 py-6 sm:max-w-sm sm:ring-1 sm:ring-gray-900/10"},{default:r.withCtx(()=>[r.createElementVNode("div",Vd,[r.createElementVNode("a",{href:f.value,class:"-m-1.5 p-1.5"},[r.createElementVNode("span",Id,r.toDisplayString(s.value.name),1),r.createElementVNode("img",{class:"h-8 w-auto",src:s.value.logo,alt:s.value.name},null,8,Dd)],8,Fd),r.createElementVNode("button",{type:"button",class:"-m-2.5 rounded-md p-2.5 text-gray-700",onClick:C[1]||(C[1]=b=>p.value=!1)},[Rd,r.createVNode(r.unref(Yc),{class:"h-6 w-6","aria-hidden":"true"})])]),r.createElementVNode("div",jd,[r.createElementVNode("div",Md,[r.createElementVNode("div",Ud,[e.isShenHe?r.createCommentVNode("v-if",!0):(r.openBlock(),r.createElementBlock("a",zd,"More Extensions")),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(l.value,b=>(r.openBlock(),r.createElementBlock("a",{key:b.name,href:b.href,target:b.target,class:"-mx-3 block rounded-lg px-3 py-2 text-base font-semibold leading-7 text-gray-900 hover:bg-gray-50"},r.toDisplayString(b.name),9,Hd))),128))]),u.value?(r.openBlock(),r.createElementBlock("div",{key:1,class:"relative sm-user-center-dialog py-6 right flew-center",onClick:w},[u.value?(r.openBlock(),r.createBlock(Sr,{key:0,user:u.value},null,8,["user"])):r.createCommentVNode("v-if",!0)])):(r.openBlock(),r.createElementBlock("div",qd,[r.createElementVNode("a",{href:"#",onClick:d,class:"-mx-3 block rounded-lg px-3 py-2.5 text-base font-semibold leading-7 text-gray-900 hover:bg-gray-50"},"Log in")]))])])]),_:1})]),_:1},8,["open"])],2),r.createCommentVNode(" 引入登录 "),e.userStore.isShowLogin?(r.openBlock(),r.createBlock(Pu,{key:0,onSuccess:m,onClose:g})):r.createCommentVNode("v-if",!0),e.userStore.isShowToast?(r.openBlock(),r.createBlock(od,{key:1,content:e.userStore.toastContent},null,8,["content"])):r.createCommentVNode("v-if",!0),e.userStore.isShowInvite?(r.openBlock(),r.createBlock(ud,{key:2,onCancel:k})):r.createCommentVNode("v-if",!0)],64))}},[["__scopeId","data-v-c970699f"],["__file","/Users/hodohimehime/Desktop/test/xiaochengxu/liusenlin_project/Translation_Video/src/components/Header.vue"]]);return{install(e){e.component("my-header",Wd)}}});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "my-header-yichong",
3
- "version": "2.1.8",
3
+ "version": "2.1.9",
4
4
  "description": "",
5
5
  "main": "my-header.umd.cjs",
6
6
  "scripts": {