var qe=Object.defineProperty;var ve=(t,e,n)=>e in t?qe(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var z=(t,e,n)=>(ve(t,typeof e!="symbol"?e+"":e,n),n);import{d as Je,r as $e,c as ze,w as We,o as Ke,a as Xe,b as Ge,t as Qe,u as Ye,E as U,_ as Ze,e as ce,f as k,g as ue,h as le,i as fe,j as et,F as tt,k as nt}from"./index-e6b5a4d2.js";function Oe(t,e){return function(){return t.apply(e,arguments)}}const{toString:Re}=Object.prototype,{getPrototypeOf:te}=Object,ne=(t=>e=>{const n=Re.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),R=t=>(t=t.toLowerCase(),e=>ne(e)===t),q=t=>e=>typeof e===t,{isArray:_}=Array,x=q("undefined");function rt(t){return t!==null&&!x(t)&&t.constructor!==null&&!x(t.constructor)&&N(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const Ae=R("ArrayBuffer");function st(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&Ae(t.buffer),e}const ot=q("string"),N=q("function"),Te=q("number"),re=t=>t!==null&&typeof t=="object",it=t=>t===!0||t===!1,I=t=>{if(ne(t)!=="object")return!1;const e=te(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},at=R("Date"),ct=R("File"),ut=R("Blob"),lt=R("FileList"),ft=t=>re(t)&&N(t.pipe),dt=t=>{const e="[object FormData]";return t&&(typeof FormData=="function"&&t instanceof FormData||Re.call(t)===e||N(t.toString)&&t.toString()===e)},pt=R("URLSearchParams"),ht=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function B(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let r,s;if(typeof t!="object"&&(t=[t]),_(t))for(r=0,s=t.length;r0;)if(s=n[r],e===s.toLowerCase())return s;return null}const Ce=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),De=t=>!x(t)&&t!==Ce;function Q(){const{caseless:t}=De(this)&&this||{},e={},n=(r,s)=>{const o=t&&Ne(e,s)||s;I(e[o])&&I(r)?e[o]=Q(e[o],r):I(r)?e[o]=Q({},r):_(r)?e[o]=r.slice():e[o]=r};for(let r=0,s=arguments.length;r(B(e,(s,o)=>{n&&N(s)?t[o]=Oe(s,n):t[o]=s},{allOwnKeys:r}),t),yt=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),bt=(t,e,n,r)=>{t.prototype=Object.create(e.prototype,r),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},wt=(t,e,n,r)=>{let s,o,i;const u={};if(e=e||{},t==null)return e;do{for(s=Object.getOwnPropertyNames(t),o=s.length;o-- >0;)i=s[o],(!r||r(i,t,e))&&!u[i]&&(e[i]=t[i],u[i]=!0);t=n!==!1&&te(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},Et=(t,e,n)=>{t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=e.length;const r=t.indexOf(e,n);return r!==-1&&r===n},St=t=>{if(!t)return null;if(_(t))return t;let e=t.length;if(!Te(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},gt=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&te(Uint8Array)),Ot=(t,e)=>{const r=(t&&t[Symbol.iterator]).call(t);let s;for(;(s=r.next())&&!s.done;){const o=s.value;e.call(t,o[0],o[1])}},Rt=(t,e)=>{let n;const r=[];for(;(n=t.exec(e))!==null;)r.push(n);return r},At=R("HTMLFormElement"),Tt=t=>t.toLowerCase().replace(/[_-\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),de=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),Nt=R("RegExp"),_e=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};B(n,(s,o)=>{e(s,o,t)!==!1&&(r[o]=s)}),Object.defineProperties(t,r)},Ct=t=>{_e(t,(e,n)=>{if(N(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=t[n];if(N(r)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Dt=(t,e)=>{const n={},r=s=>{s.forEach(o=>{n[o]=!0})};return _(t)?r(t):r(String(t).split(e)),n},_t=()=>{},Pt=(t,e)=>(t=+t,Number.isFinite(t)?t:e),xt=t=>{const e=new Array(10),n=(r,s)=>{if(re(r)){if(e.indexOf(r)>=0)return;if(!("toJSON"in r)){e[s]=r;const o=_(r)?[]:{};return B(r,(i,u)=>{const h=n(i,s+1);!x(h)&&(o[u]=h)}),e[s]=void 0,o}}return r};return n(t,0)},a={isArray:_,isArrayBuffer:Ae,isBuffer:rt,isFormData:dt,isArrayBufferView:st,isString:ot,isNumber:Te,isBoolean:it,isObject:re,isPlainObject:I,isUndefined:x,isDate:at,isFile:ct,isBlob:ut,isRegExp:Nt,isFunction:N,isStream:ft,isURLSearchParams:pt,isTypedArray:gt,isFileList:lt,forEach:B,merge:Q,extend:mt,trim:ht,stripBOM:yt,inherits:bt,toFlatObject:wt,kindOf:ne,kindOfTest:R,endsWith:Et,toArray:St,forEachEntry:Ot,matchAll:Rt,isHTMLForm:At,hasOwnProperty:de,hasOwnProp:de,reduceDescriptors:_e,freezeMethods:Ct,toObjectSet:Dt,toCamelCase:Tt,noop:_t,toFiniteNumber:Pt,findKey:Ne,global:Ce,isContextDefined:De,toJSONObject:xt};function b(t,e,n,r,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),r&&(this.request=r),s&&(this.response=s)}a.inherits(b,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:a.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Pe=b.prototype,xe={};["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(t=>{xe[t]={value:t}});Object.defineProperties(b,xe);Object.defineProperty(Pe,"isAxiosError",{value:!0});b.from=(t,e,n,r,s,o)=>{const i=Object.create(Pe);return a.toFlatObject(t,i,function(h){return h!==Error.prototype},u=>u!=="isAxiosError"),b.call(i,t.message,e,n,r,s),i.cause=t,i.name=t.name,o&&Object.assign(i,o),i};var Bt=typeof self=="object"?self.FormData:window.FormData;const Ft=Bt;function Y(t){return a.isPlainObject(t)||a.isArray(t)}function Be(t){return a.endsWith(t,"[]")?t.slice(0,-2):t}function pe(t,e,n){return t?t.concat(e).map(function(s,o){return s=Be(s),!n&&o?"["+s+"]":s}).join(n?".":""):e}function Lt(t){return a.isArray(t)&&!t.some(Y)}const Ut=a.toFlatObject(a,{},null,function(e){return/^is[A-Z]/.test(e)});function kt(t){return t&&a.isFunction(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator]}function v(t,e,n){if(!a.isObject(t))throw new TypeError("target must be an object");e=e||new(Ft||FormData),n=a.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(p,w){return!a.isUndefined(w[p])});const r=n.metaTokens,s=n.visitor||d,o=n.dots,i=n.indexes,h=(n.Blob||typeof Blob<"u"&&Blob)&&kt(e);if(!a.isFunction(s))throw new TypeError("visitor must be a function");function c(f){if(f===null)return"";if(a.isDate(f))return f.toISOString();if(!h&&a.isBlob(f))throw new b("Blob is not supported. Use a Buffer instead.");return a.isArrayBuffer(f)||a.isTypedArray(f)?h&&typeof Blob=="function"?new Blob([f]):Buffer.from(f):f}function d(f,p,w){let S=f;if(f&&!w&&typeof f=="object"){if(a.endsWith(p,"{}"))p=r?p:p.slice(0,-2),f=JSON.stringify(f);else if(a.isArray(f)&&Lt(f)||a.isFileList(f)||a.endsWith(p,"[]")&&(S=a.toArray(f)))return p=Be(p),S.forEach(function(L,Ve){!(a.isUndefined(L)||L===null)&&e.append(i===!0?pe([p],Ve,o):i===null?p:p+"[]",c(L))}),!1}return Y(f)?!0:(e.append(pe(w,p,o),c(f)),!1)}const l=[],m=Object.assign(Ut,{defaultVisitor:d,convertValue:c,isVisitable:Y});function y(f,p){if(!a.isUndefined(f)){if(l.indexOf(f)!==-1)throw Error("Circular reference detected in "+p.join("."));l.push(f),a.forEach(f,function(S,C){(!(a.isUndefined(S)||S===null)&&s.call(e,S,a.isString(C)?C.trim():C,p,m))===!0&&y(S,p?p.concat(C):[C])}),l.pop()}}if(!a.isObject(t))throw new TypeError("data must be an object");return y(t),e}function he(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(r){return e[r]})}function se(t,e){this._pairs=[],t&&v(t,this,e)}const Fe=se.prototype;Fe.append=function(e,n){this._pairs.push([e,n])};Fe.toString=function(e){const n=e?function(r){return e.call(this,r,he)}:he;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function It(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Le(t,e,n){if(!e)return t;const r=n&&n.encode||It,s=n&&n.serialize;let o;if(s?o=s(e,n):o=a.isURLSearchParams(e)?e.toString():new se(e,n).toString(r),o){const i=t.indexOf("#");i!==-1&&(t=t.slice(0,i)),t+=(t.indexOf("?")===-1?"?":"&")+o}return t}class jt{constructor(){this.handlers=[]}use(e,n,r){return this.handlers.push({fulfilled:e,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){a.forEach(this.handlers,function(r){r!==null&&e(r)})}}const me=jt,Ue={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Mt=typeof URLSearchParams<"u"?URLSearchParams:se,Ht=FormData,Vt=(()=>{let t;return typeof navigator<"u"&&((t=navigator.product)==="ReactNative"||t==="NativeScript"||t==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),qt=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),g={isBrowser:!0,classes:{URLSearchParams:Mt,FormData:Ht,Blob},isStandardBrowserEnv:Vt,isStandardBrowserWebWorkerEnv:qt,protocols:["http","https","file","blob","url","data"]};function vt(t,e){return v(t,new g.classes.URLSearchParams,Object.assign({visitor:function(n,r,s,o){return g.isNode&&a.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},e))}function Jt(t){return a.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function $t(t){const e={},n=Object.keys(t);let r;const s=n.length;let o;for(r=0;r=n.length;return i=!i&&a.isArray(s)?s.length:i,h?(a.hasOwnProp(s,i)?s[i]=[s[i],r]:s[i]=r,!u):((!s[i]||!a.isObject(s[i]))&&(s[i]=[]),e(n,r,s[i],o)&&a.isArray(s[i])&&(s[i]=$t(s[i])),!u)}if(a.isFormData(t)&&a.isFunction(t.entries)){const n={};return a.forEachEntry(t,(r,s)=>{e(Jt(r),s,n,0)}),n}return null}const zt={"Content-Type":void 0};function Wt(t,e,n){if(a.isString(t))try{return(e||JSON.parse)(t),a.trim(t)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(t)}const J={transitional:Ue,adapter:["xhr","http"],transformRequest:[function(e,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,o=a.isObject(e);if(o&&a.isHTMLForm(e)&&(e=new FormData(e)),a.isFormData(e))return s&&s?JSON.stringify(ke(e)):e;if(a.isArrayBuffer(e)||a.isBuffer(e)||a.isStream(e)||a.isFile(e)||a.isBlob(e))return e;if(a.isArrayBufferView(e))return e.buffer;if(a.isURLSearchParams(e))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let u;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return vt(e,this.formSerializer).toString();if((u=a.isFileList(e))||r.indexOf("multipart/form-data")>-1){const h=this.env&&this.env.FormData;return v(u?{"files[]":e}:e,h&&new h,this.formSerializer)}}return o||s?(n.setContentType("application/json",!1),Wt(e)):e}],transformResponse:[function(e){const n=this.transitional||J.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(e&&a.isString(e)&&(r&&!this.responseType||s)){const i=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(e)}catch(u){if(i)throw u.name==="SyntaxError"?b.from(u,b.ERR_BAD_RESPONSE,this,null,this.response):u}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:g.classes.FormData,Blob:g.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};a.forEach(["delete","get","head"],function(e){J.headers[e]={}});a.forEach(["post","put","patch"],function(e){J.headers[e]=a.merge(zt)});const oe=J,Kt=a.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"]),Xt=t=>{const e={};let n,r,s;return t&&t.split(` `).forEach(function(i){s=i.indexOf(":"),n=i.substring(0,s).trim().toLowerCase(),r=i.substring(s+1).trim(),!(!n||e[n]&&Kt[n])&&(n==="set-cookie"?e[n]?e[n].push(r):e[n]=[r]:e[n]=e[n]?e[n]+", "+r:r)}),e},ye=Symbol("internals");function P(t){return t&&String(t).trim().toLowerCase()}function j(t){return t===!1||t==null?t:a.isArray(t)?t.map(j):String(t)}function Gt(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(t);)e[r[1]]=r[2];return e}function Qt(t){return/^[-_a-zA-Z]+$/.test(t.trim())}function be(t,e,n,r){if(a.isFunction(r))return r.call(this,e,n);if(a.isString(e)){if(a.isString(r))return e.indexOf(r)!==-1;if(a.isRegExp(r))return r.test(e)}}function Yt(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,r)=>n.toUpperCase()+r)}function Zt(t,e){const n=a.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(t,r+n,{value:function(s,o,i){return this[r].call(this,e,s,o,i)},configurable:!0})})}class ${constructor(e){e&&this.set(e)}set(e,n,r){const s=this;function o(u,h,c){const d=P(h);if(!d)throw new Error("header name must be a non-empty string");const l=a.findKey(s,d);(!l||s[l]===void 0||c===!0||c===void 0&&s[l]!==!1)&&(s[l||h]=j(u))}const i=(u,h)=>a.forEach(u,(c,d)=>o(c,d,h));return a.isPlainObject(e)||e instanceof this.constructor?i(e,n):a.isString(e)&&(e=e.trim())&&!Qt(e)?i(Xt(e),n):e!=null&&o(n,e,r),this}get(e,n){if(e=P(e),e){const r=a.findKey(this,e);if(r){const s=this[r];if(!n)return s;if(n===!0)return Gt(s);if(a.isFunction(n))return n.call(this,s,r);if(a.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=P(e),e){const r=a.findKey(this,e);return!!(r&&(!n||be(this,this[r],r,n)))}return!1}delete(e,n){const r=this;let s=!1;function o(i){if(i=P(i),i){const u=a.findKey(r,i);u&&(!n||be(r,r[u],u,n))&&(delete r[u],s=!0)}}return a.isArray(e)?e.forEach(o):o(e),s}clear(){return Object.keys(this).forEach(this.delete.bind(this))}normalize(e){const n=this,r={};return a.forEach(this,(s,o)=>{const i=a.findKey(r,o);if(i){n[i]=j(s),delete n[o];return}const u=e?Yt(o):String(o).trim();u!==o&&delete n[o],n[u]=j(s),r[u]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const n=Object.create(null);return a.forEach(this,(r,s)=>{r!=null&&r!==!1&&(n[s]=e&&a.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,n])=>e+": "+n).join(` `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...n){const r=new this(e);return n.forEach(s=>r.set(s)),r}static accessor(e){const r=(this[ye]=this[ye]={accessors:{}}).accessors,s=this.prototype;function o(i){const u=P(i);r[u]||(Zt(s,i),r[u]=!0)}return a.isArray(e)?e.forEach(o):o(e),this}}$.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent"]);a.freezeMethods($.prototype);a.freezeMethods($);const O=$;function W(t,e){const n=this||oe,r=e||n,s=O.from(r.headers);let o=r.data;return a.forEach(t,function(u){o=u.call(n,o,s.normalize(),e?e.status:void 0)}),s.normalize(),o}function Ie(t){return!!(t&&t.__CANCEL__)}function F(t,e,n){b.call(this,t??"canceled",b.ERR_CANCELED,e,n),this.name="CanceledError"}a.inherits(F,b,{__CANCEL__:!0});const en=null;function tn(t,e,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?t(n):e(new b("Request failed with status code "+n.status,[b.ERR_BAD_REQUEST,b.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const nn=g.isStandardBrowserEnv?function(){return{write:function(n,r,s,o,i,u){const h=[];h.push(n+"="+encodeURIComponent(r)),a.isNumber(s)&&h.push("expires="+new Date(s).toGMTString()),a.isString(o)&&h.push("path="+o),a.isString(i)&&h.push("domain="+i),u===!0&&h.push("secure"),document.cookie=h.join("; ")},read:function(n){const r=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function rn(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function sn(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}function je(t,e){return t&&!rn(e)?sn(t,e):e}const on=g.isStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function s(o){let i=o;return e&&(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 r=s(window.location.href),function(i){const u=a.isString(i)?s(i):i;return u.protocol===r.protocol&&u.host===r.host}}():function(){return function(){return!0}}();function an(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function cn(t,e){t=t||10;const n=new Array(t),r=new Array(t);let s=0,o=0,i;return e=e!==void 0?e:1e3,function(h){const c=Date.now(),d=r[o];i||(i=c),n[s]=h,r[s]=c;let l=o,m=0;for(;l!==s;)m+=n[l++],l=l%t;if(s=(s+1)%t,s===o&&(o=(o+1)%t),c-i{const o=s.loaded,i=s.lengthComputable?s.total:void 0,u=o-n,h=r(u),c=o<=i;n=o;const d={loaded:o,total:i,progress:i?o/i:void 0,bytes:u,rate:h||void 0,estimated:h&&i&&c?(i-o)/h:void 0,event:s};d[e?"download":"upload"]=!0,t(d)}}const un=typeof XMLHttpRequest<"u",ln=un&&function(t){return new Promise(function(n,r){let s=t.data;const o=O.from(t.headers).normalize(),i=t.responseType;let u;function h(){t.cancelToken&&t.cancelToken.unsubscribe(u),t.signal&&t.signal.removeEventListener("abort",u)}a.isFormData(s)&&(g.isStandardBrowserEnv||g.isStandardBrowserWebWorkerEnv)&&o.setContentType(!1);let c=new XMLHttpRequest;if(t.auth){const y=t.auth.username||"",f=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";o.set("Authorization","Basic "+btoa(y+":"+f))}const d=je(t.baseURL,t.url);c.open(t.method.toUpperCase(),Le(d,t.params,t.paramsSerializer),!0),c.timeout=t.timeout;function l(){if(!c)return;const y=O.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders()),p={data:!i||i==="text"||i==="json"?c.responseText:c.response,status:c.status,statusText:c.statusText,headers:y,config:t,request:c};tn(function(S){n(S),h()},function(S){r(S),h()},p),c=null}if("onloadend"in c?c.onloadend=l:c.onreadystatechange=function(){!c||c.readyState!==4||c.status===0&&!(c.responseURL&&c.responseURL.indexOf("file:")===0)||setTimeout(l)},c.onabort=function(){c&&(r(new b("Request aborted",b.ECONNABORTED,t,c)),c=null)},c.onerror=function(){r(new b("Network Error",b.ERR_NETWORK,t,c)),c=null},c.ontimeout=function(){let f=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded";const p=t.transitional||Ue;t.timeoutErrorMessage&&(f=t.timeoutErrorMessage),r(new b(f,p.clarifyTimeoutError?b.ETIMEDOUT:b.ECONNABORTED,t,c)),c=null},g.isStandardBrowserEnv){const y=(t.withCredentials||on(d))&&t.xsrfCookieName&&nn.read(t.xsrfCookieName);y&&o.set(t.xsrfHeaderName,y)}s===void 0&&o.setContentType(null),"setRequestHeader"in c&&a.forEach(o.toJSON(),function(f,p){c.setRequestHeader(p,f)}),a.isUndefined(t.withCredentials)||(c.withCredentials=!!t.withCredentials),i&&i!=="json"&&(c.responseType=t.responseType),typeof t.onDownloadProgress=="function"&&c.addEventListener("progress",we(t.onDownloadProgress,!0)),typeof t.onUploadProgress=="function"&&c.upload&&c.upload.addEventListener("progress",we(t.onUploadProgress)),(t.cancelToken||t.signal)&&(u=y=>{c&&(r(!y||y.type?new F(null,t,c):y),c.abort(),c=null)},t.cancelToken&&t.cancelToken.subscribe(u),t.signal&&(t.signal.aborted?u():t.signal.addEventListener("abort",u)));const m=an(d);if(m&&g.protocols.indexOf(m)===-1){r(new b("Unsupported protocol "+m+":",b.ERR_BAD_REQUEST,t));return}c.send(s||null)})},M={http:en,xhr:ln};a.forEach(M,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const fn={getAdapter:t=>{t=a.isArray(t)?t:[t];const{length:e}=t;let n,r;for(let s=0;st instanceof O?t.toJSON():t;function D(t,e){e=e||{};const n={};function r(c,d,l){return a.isPlainObject(c)&&a.isPlainObject(d)?a.merge.call({caseless:l},c,d):a.isPlainObject(d)?a.merge({},d):a.isArray(d)?d.slice():d}function s(c,d,l){if(a.isUndefined(d)){if(!a.isUndefined(c))return r(void 0,c,l)}else return r(c,d,l)}function o(c,d){if(!a.isUndefined(d))return r(void 0,d)}function i(c,d){if(a.isUndefined(d)){if(!a.isUndefined(c))return r(void 0,c)}else return r(void 0,d)}function u(c,d,l){if(l in e)return r(c,d);if(l in t)return r(void 0,c)}const h={url:o,method:o,data:o,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:u,headers:(c,d)=>s(Se(c),Se(d),!0)};return a.forEach(Object.keys(t).concat(Object.keys(e)),function(d){const l=h[d]||s,m=l(t[d],e[d],d);a.isUndefined(m)&&l!==u||(n[d]=m)}),n}const Me="1.2.2",ie={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{ie[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}});const ge={};ie.transitional=function(e,n,r){function s(o,i){return"[Axios v"+Me+"] Transitional option '"+o+"'"+i+(r?". "+r:"")}return(o,i,u)=>{if(e===!1)throw new b(s(i," has been removed"+(n?" in "+n:"")),b.ERR_DEPRECATED);return n&&!ge[i]&&(ge[i]=!0,console.warn(s(i," has been deprecated since v"+n+" and will be removed in the near future"))),e?e(o,i,u):!0}};function dn(t,e,n){if(typeof t!="object")throw new b("options must be an object",b.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let s=r.length;for(;s-- >0;){const o=r[s],i=e[o];if(i){const u=t[o],h=u===void 0||i(u,o,t);if(h!==!0)throw new b("option "+o+" must be "+h,b.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new b("Unknown option "+o,b.ERR_BAD_OPTION)}}const Z={assertOptions:dn,validators:ie},A=Z.validators;class V{constructor(e){this.defaults=e,this.interceptors={request:new me,response:new me}}request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=D(this.defaults,n);const{transitional:r,paramsSerializer:s,headers:o}=n;r!==void 0&&Z.assertOptions(r,{silentJSONParsing:A.transitional(A.boolean),forcedJSONParsing:A.transitional(A.boolean),clarifyTimeoutError:A.transitional(A.boolean)},!1),s!==void 0&&Z.assertOptions(s,{encode:A.function,serialize:A.function},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i;i=o&&a.merge(o.common,o[n.method]),i&&a.forEach(["delete","get","head","post","put","patch","common"],f=>{delete o[f]}),n.headers=O.concat(i,o);const u=[];let h=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(n)===!1||(h=h&&p.synchronous,u.unshift(p.fulfilled,p.rejected))});const c=[];this.interceptors.response.forEach(function(p){c.push(p.fulfilled,p.rejected)});let d,l=0,m;if(!h){const f=[Ee.bind(this),void 0];for(f.unshift.apply(f,u),f.push.apply(f,c),m=f.length,d=Promise.resolve(n);l{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](s);r._listeners=null}),this.promise.then=s=>{let o;const i=new Promise(u=>{r.subscribe(u),o=u}).then(s);return i.cancel=function(){r.unsubscribe(o)},i},e(function(o,i,u){r.reason||(r.reason=new F(o,i,u),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const n=this._listeners.indexOf(e);n!==-1&&this._listeners.splice(n,1)}static source(){let e;return{token:new ae(function(s){e=s}),cancel:e}}}const pn=ae;function hn(t){return function(n){return t.apply(null,n)}}function mn(t){return a.isObject(t)&&t.isAxiosError===!0}const ee={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(ee).forEach(([t,e])=>{ee[e]=t});const yn=ee;function He(t){const e=new H(t),n=Oe(H.prototype.request,e);return a.extend(n,H.prototype,e,{allOwnKeys:!0}),a.extend(n,e,null,{allOwnKeys:!0}),n.create=function(s){return He(D(t,s))},n}const E=He(oe);E.Axios=H;E.CanceledError=F;E.CancelToken=pn;E.isCancel=Ie;E.VERSION=Me;E.toFormData=v;E.AxiosError=b;E.Cancel=E.CanceledError;E.all=function(e){return Promise.all(e)};E.spread=hn;E.isAxiosError=mn;E.mergeConfig=D;E.AxiosHeaders=O;E.formToJSON=t=>ke(a.isHTMLForm(t)?new FormData(t):t);E.HttpStatusCode=yn;E.default=E;const X=E;class bn{constructor(){z(this,"getWantedValueByKeys",(e,n)=>{const r=[];for(const s in e)s.indexOf(n.toString())>=0&&r.push(e[s]);return r})}get staticSourceHost(){return`http://${{}.VUE_APP_STATIC_SOURCE_HOST}`}getChineseStrByKeyAndValue(e,n,r){for(const{label:s,value:o}of e[n])if(r===o)return s;return""}getLabelByValue(e,n){for(const{label:r,value:s}of e)if(s===n)return r;return""}getTargetValByKey(e,n,r,s){for(const o of e)if(o[n]===r)return o[s]}getTargetItemByKey(e,n,r){const s=r||"id";for(const o of e)if(o[s]===n)return o;return{}}getRegionById(e,n){for(const{id:r,name:s}of n)if(e===r)return s}getIndustryById(e,n){for(const{industryCode:r,industryName:s}of n)if(e===r)return s}deepClone(e){return JSON.parse(JSON.stringify(e))}isArray(e){return!!Array.isArray(e)}isValidArray(e){return this.isArray(e)&&e.length}isValidObject(e){return!e||this.isArray(e)?!1:this.isValidArray(Object.keys(e))}getTargetValIndexInList(e,n,r){for(const[s,o]of e.entries())if(o[n]===r)return s;return-1}isExistInList(e,n){return this.isValidArray(e)?e.indexOf(n)>=0:!1}}const T=new bn;class wn{constructor(e){z(this,"ws");this.ws=new WebSocket(e)}onOpen(e){this.ws.onopen=()=>{e&&e()}}send(e){this.ws.send(e)}onMessage(e){this.ws.onmessage=e}close(){this.ws.close()}}const G="/thing",En=Je({name:"preview",setup(){const t=Ye(),e=$e({bannerData:[],index:0}),n=ze(()=>{var l;return+(((l=t.query)==null?void 0:l.interval)||"0")}),r=l=>{c(l===0?e.bannerData.length-1:l-1),e.index=l,u(e.bannerData[l].id,l),o(e.bannerData[l].id)},s=async()=>{var f;const{data:{data:l,code:m,msg:y}}=await X.get(`dashboard/iotdashboard/listShare/${(f=t.query)==null?void 0:f.id}`,{baseURL:G});if(m!==0)return U.error(y);T.isValidArray(l)?e.bannerData=l:e.bannerData=[]},o=async l=>{const{data:{msg:m,code:y,data:f}}=await X.get("dashboard/iotdashboardelement/getElementByDashboardId",{baseURL:G,params:{dashboardId:l}});if(y!==0)return U.error(m);if(T.isValidArray(f))for(const p of f){const w=document.getElementById(p.elementId);w&&p.elementName&&(w.innerHTML=p.elementName)}},i=async(l,m)=>{const{data:{data:y,code:f,msg:p}}=await X.get(`/dashboard/iotdashboard/svg/xml/${l}`,{baseURL:G});if(f!==0)return U.error(p);typeof y=="string"?(e.bannerData[m].detail=y,m===0&&(c(m),u(l,m),o(e.bannerData[m].id))):e.bannerData[m].detail=""},u=(l,m)=>{let y="";y="ws://"+window.location.host+"/thing/dashboard/websocket?dashboardId="+l,e.bannerData[m].socket=new wn(y),e.bannerData[m].map=[],h(l,m)},h=(l,m)=>{e.bannerData[m].loading=!0,e.bannerData[m].socket.onOpen(()=>{e.bannerData[m].socket.onMessage(y=>{if(T.isValidObject(y)&&T.isValidObject(y.data)){const f=JSON.parse(y.data||"{}");if(T.isValidArray(f.data))for(const p of f.data)try{if(p.elementId){e.bannerData[m].map.push(p);const w=document.getElementById(p.elementId);w&&p.val&&(w.innerHTML=p.val)}else if(T.isValidArray(e.bannerData[m].map)){for(const w of e.bannerData[m].map)if(w.thingCode==p.thingCode&&w.attrCode===p.attrKey){const S=document.getElementById(w.elementId);S&&p.val&&(S.innerHTML=p.val)}}else throw new Error}catch{console.warn(`设置${p.elementId}:${p.elementName}失败`)}else typeof f.data=="string"&&U.warning(f.data)}e.bannerData[m].loading=!1})})},c=l=>{T.isValidObject(e.bannerData[l].socket)&&e.bannerData[l].socket.close(),e.bannerData[l].socket={},e.bannerData[l].map=[],e.bannerData[l].loading=!1};We(()=>e.bannerData,l=>{T.isValidArray(l)&&(async()=>{for(const[m,y]of l.entries())await i(y.id,m)})()},{immediate:!0}),Ke(()=>{s()});const d=()=>{for(const[l,m]of e.bannerData.entries())c(l)};return Xe(()=>{d()}),Ge(()=>{d()}),{...Qe(e),changeIndex:r,intervalTime:n}}});const Sn=["innerHTML","id","v-loading"];function gn(t,e,n,r,s,o){const i=ce("el-carousel-item"),u=ce("el-carousel");return k(),ue(u,{trigger:"click",autoplay:!!t.intervalTime,interval:t.intervalTime*1e3,onChange:t.changeIndex,class:"carousel"},{default:le(()=>[(k(!0),fe(tt,null,et(t.bannerData,(h,c)=>(k(),ue(i,{key:h.id},{default:le(()=>[c===t.index?(k(),fe("div",{key:0,innerHTML:h.detail,id:h.id,"v-loading":h.loading},null,8,Sn)):nt("",!0)]),_:2},1024))),128))]),_:1},8,["autoplay","interval","onChange"])}const An=Ze(En,[["render",gn],["__scopeId","data-v-a91e978c"]]);export{An as default};