morghulis 1.0.6 → 1.0.7

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.
@@ -1 +1,11 @@
1
- (function(e,t){typeof exports=="object"&&typeof module<"u"?module.exports=t(require("vue")):typeof define=="function"&&define.amd?define(["vue"],t):(e=typeof globalThis<"u"?globalThis:e||self,e.morghulis=t(e.Vue))})(this,function(e){"use strict";const t=e.defineComponent({__name:"VueComponentNpmExample",props:{msg:{type:String}},setup(n){const o=e.ref(0);return(c,i)=>{const p=e.resolveComponent("el-button"),s=e.resolveComponent("el-card");return e.openBlock(),e.createBlock(s,null,{header:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.msg),1)]),default:e.withCtx(()=>[e.createVNode(p,{type:"success",onClick:i[0]||(i[0]=r=>o.value++)},{default:e.withCtx(()=>[e.createTextVNode("count is "+e.toDisplayString(o.value),1)]),_:1})]),_:1})}}});return{install:(n,o)=>{n.component("VueComponentNpmExample",t)}}});
1
+ (function(I,O){typeof exports=="object"&&typeof module<"u"?O(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],O):(I=typeof globalThis<"u"?globalThis:I||self,O(I.morghulis={},I.Vue))})(this,function(I,O){"use strict";const Tt={class:"main"},Ct=O.defineComponent({__name:"MorTable",props:{domain:{},entity:{},code:{}},setup(e){return(t,n)=>(O.openBlock(),O.createElementBlock("div",Tt))}});function W(e){return O.getCurrentScope()?(O.onScopeDispose(e),!0):!1}const H=typeof window<"u"&&typeof document<"u",Le=typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope,At=Object.prototype.toString,_t=e=>At.call(e)==="[object Object]",Ue=()=>{};function De(e){return Array.isArray(e)?e:[e]}function xt(...e){if(e.length!==1)return O.toRef(...e);const t=e[0];return typeof t=="function"?O.readonly(O.customRef(()=>({get:t,set:Ue}))):O.ref(t)}function Nt(e,t=1e3,n={}){const{immediate:r=!0,immediateCallback:s=!1}=n;let o=null;const i=O.ref(!1);function c(){o&&(clearInterval(o),o=null)}function f(){i.value=!1,c()}function u(){const l=O.toValue(t);l<=0||(i.value=!0,s&&e(),c(),i.value&&(o=setInterval(e,l)))}if(r&&H&&u(),O.isRef(t)||typeof t=="function"){const l=O.watch(t,()=>{i.value&&H&&u()});W(l)}return W(f),{isActive:i,pause:f,resume:u}}var Y={};/*!
2
+ * cookie
3
+ * Copyright(c) 2012-2014 Roman Shtylman
4
+ * Copyright(c) 2015 Douglas Christopher Wilson
5
+ * MIT Licensed
6
+ */var ve;function Pt(){if(ve)return Y;ve=1,Y.parse=i,Y.serialize=u;var e=Object.prototype.toString,t=Object.prototype.hasOwnProperty,n=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/,r=/^("?)[\u0021\u0023-\u002B\u002D-\u003A\u003C-\u005B\u005D-\u007E]*\1$/,s=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,o=/^[\u0020-\u003A\u003D-\u007E]*$/;function i(y,h){if(typeof y!="string")throw new TypeError("argument str must be a string");var d={},p=y.length;if(p<2)return d;var S=h&&h.decode||l,g=0,E=0,R=0;do{if(E=y.indexOf("=",g),E===-1)break;if(R=y.indexOf(";",g),R===-1)R=p;else if(E>R){g=y.lastIndexOf(";",E-1)+1;continue}var T=c(y,g,E),k=f(y,E,T),U=y.slice(T,k);if(!t.call(d,U)){var N=c(y,E+1,R),j=f(y,R,N);y.charCodeAt(N)===34&&y.charCodeAt(j-1)===34&&(N++,j--);var Q=y.slice(N,j);d[U]=b(Q,S)}g=R+1}while(g<p);return d}function c(y,h,d){do{var p=y.charCodeAt(h);if(p!==32&&p!==9)return h}while(++h<d);return d}function f(y,h,d){for(;h>d;){var p=y.charCodeAt(--h);if(p!==32&&p!==9)return h+1}return d}function u(y,h,d){var p=d&&d.encode||encodeURIComponent;if(typeof p!="function")throw new TypeError("option encode is invalid");if(!n.test(y))throw new TypeError("argument name is invalid");var S=p(h);if(!r.test(S))throw new TypeError("argument val is invalid");var g=y+"="+S;if(!d)return g;if(d.maxAge!=null){var E=Math.floor(d.maxAge);if(!isFinite(E))throw new TypeError("option maxAge is invalid");g+="; Max-Age="+E}if(d.domain){if(!s.test(d.domain))throw new TypeError("option domain is invalid");g+="; Domain="+d.domain}if(d.path){if(!o.test(d.path))throw new TypeError("option path is invalid");g+="; Path="+d.path}if(d.expires){var R=d.expires;if(!m(R)||isNaN(R.valueOf()))throw new TypeError("option expires is invalid");g+="; Expires="+R.toUTCString()}if(d.httpOnly&&(g+="; HttpOnly"),d.secure&&(g+="; Secure"),d.partitioned&&(g+="; Partitioned"),d.priority){var T=typeof d.priority=="string"?d.priority.toLowerCase():d.priority;switch(T){case"low":g+="; Priority=Low";break;case"medium":g+="; Priority=Medium";break;case"high":g+="; Priority=High";break;default:throw new TypeError("option priority is invalid")}}if(d.sameSite){var k=typeof d.sameSite=="string"?d.sameSite.toLowerCase():d.sameSite;switch(k){case!0:g+="; SameSite=Strict";break;case"lax":g+="; SameSite=Lax";break;case"strict":g+="; SameSite=Strict";break;case"none":g+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return g}function l(y){return y.indexOf("%")!==-1?decodeURIComponent(y):y}function m(y){return e.call(y)==="[object Date]"}function b(y,h){try{return h(y)}catch{return y}}return Y}var ee=Pt();function kt(){const e=typeof global>"u"?void 0:global.TEST_HAS_DOCUMENT_COOKIE;return typeof e=="boolean"?e:typeof document=="object"&&typeof document.cookie=="string"}function Lt(e){return typeof e=="string"?ee.parse(e):typeof e=="object"&&e!==null?e:{}}function he(e,t={}){const n=Ut(e);if(!t.doNotParse)try{return JSON.parse(n)}catch{}return e}function Ut(e){return e&&e[0]==="j"&&e[1]===":"?e.substr(2):e}class Dt{constructor(t,n={}){this.changeListeners=[],this.HAS_DOCUMENT_COOKIE=!1,this.update=()=>{if(!this.HAS_DOCUMENT_COOKIE)return;const s=this.cookies;this.cookies=ee.parse(document.cookie),this._checkChanges(s)};const r=typeof document>"u"?"":document.cookie;this.cookies=Lt(t||r),this.defaultSetOptions=n,this.HAS_DOCUMENT_COOKIE=kt()}_emitChange(t){for(let n=0;n<this.changeListeners.length;++n)this.changeListeners[n](t)}_checkChanges(t){new Set(Object.keys(t).concat(Object.keys(this.cookies))).forEach(r=>{t[r]!==this.cookies[r]&&this._emitChange({name:r,value:he(this.cookies[r])})})}_startPolling(){this.pollingInterval=setInterval(this.update,300)}_stopPolling(){this.pollingInterval&&clearInterval(this.pollingInterval)}get(t,n={}){return n.doNotUpdate||this.update(),he(this.cookies[t],n)}getAll(t={}){t.doNotUpdate||this.update();const n={};for(let r in this.cookies)n[r]=he(this.cookies[r],t);return n}set(t,n,r){r?r=Object.assign(Object.assign({},this.defaultSetOptions),r):r=this.defaultSetOptions;const s=typeof n=="string"?n:JSON.stringify(n);this.cookies=Object.assign(Object.assign({},this.cookies),{[t]:s}),this.HAS_DOCUMENT_COOKIE&&(document.cookie=ee.serialize(t,s,r)),this._emitChange({name:t,value:n,options:r})}remove(t,n){const r=n=Object.assign(Object.assign(Object.assign({},this.defaultSetOptions),n),{expires:new Date(1970,1,1,0,0,1),maxAge:0});this.cookies=Object.assign({},this.cookies),delete this.cookies[t],this.HAS_DOCUMENT_COOKIE&&(document.cookie=ee.serialize(t,"",r)),this._emitChange({name:t,value:void 0,options:n})}addChangeListener(t){this.changeListeners.push(t),this.HAS_DOCUMENT_COOKIE&&this.changeListeners.length===1&&(typeof window=="object"&&"cookieStore"in window?window.cookieStore.addEventListener("change",this.update):this._startPolling())}removeChangeListener(t){const n=this.changeListeners.indexOf(t);n>=0&&this.changeListeners.splice(n,1),this.HAS_DOCUMENT_COOKIE&&this.changeListeners.length===0&&(typeof window=="object"&&"cookieStore"in window?window.cookieStore.removeEventListener("change",this.update):this._stopPolling())}}function Fe(e,{doNotParse:t=!1,autoUpdateDependencies:n=!1}={},r=new Dt){const s=n?[...e||[]]:e;let o=r.getAll({doNotParse:!0});const i=O.ref(0),c=()=>{const f=r.getAll({doNotParse:!0});vt(s||null,f,o)&&i.value++,o=f};return r.addChangeListener(c),W(()=>{r.removeChangeListener(c)}),{get:(...f)=>(n&&s&&!s.includes(f[0])&&s.push(f[0]),i.value,r.get(f[0],{doNotParse:t,...f[1]})),getAll:(...f)=>(i.value,r.getAll({doNotParse:t,...f[0]})),set:(...f)=>r.set(...f),remove:(...f)=>r.remove(...f),addChangeListener:(...f)=>r.addChangeListener(...f),removeChangeListener:(...f)=>r.removeChangeListener(...f)}}function vt(e,t,n){if(!e)return!0;for(const r of e)if(t[r]!==n[r])return!0;return!1}const _=[];for(let e=0;e<256;++e)_.push((e+256).toString(16).slice(1));function Ft(e,t=0){return(_[e[t+0]]+_[e[t+1]]+_[e[t+2]]+_[e[t+3]]+"-"+_[e[t+4]]+_[e[t+5]]+"-"+_[e[t+6]]+_[e[t+7]]+"-"+_[e[t+8]]+_[e[t+9]]+"-"+_[e[t+10]]+_[e[t+11]]+_[e[t+12]]+_[e[t+13]]+_[e[t+14]]+_[e[t+15]]).toLowerCase()}let pe;const jt=new Uint8Array(16);function Bt(){if(!pe){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");pe=crypto.getRandomValues.bind(crypto)}return pe(jt)}const je={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function It(e,t,n){if(je.randomUUID&&!t&&!e)return je.randomUUID();e=e||{};const r=e.random||(e.rng||Bt)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,Ft(r)}function Be(e,t){return function(){return e.apply(t,arguments)}}const{toString:$t}=Object.prototype,{getPrototypeOf:me}=Object,te=(e=>t=>{const n=$t.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),v=e=>(e=e.toLowerCase(),t=>te(t)===e),ne=e=>t=>typeof t===e,{isArray:z}=Array,K=ne("undefined");function Mt(e){return e!==null&&!K(e)&&e.constructor!==null&&!K(e.constructor)&&L(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Ie=v("ArrayBuffer");function qt(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Ie(e.buffer),t}const Ht=ne("string"),L=ne("function"),$e=ne("number"),re=e=>e!==null&&typeof e=="object",zt=e=>e===!0||e===!1,se=e=>{if(te(e)!=="object")return!1;const t=me(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Vt=v("Date"),Jt=v("File"),Wt=v("Blob"),Kt=v("FileList"),Gt=e=>re(e)&&L(e.pipe),Xt=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||L(e.append)&&((t=te(e))==="formdata"||t==="object"&&L(e.toString)&&e.toString()==="[object FormData]"))},Zt=v("URLSearchParams"),[Qt,Yt,en,tn]=["ReadableStream","Request","Response","Headers"].map(v),nn=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function G(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,s;if(typeof e!="object"&&(e=[e]),z(e))for(r=0,s=e.length;r<s;r++)t.call(null,e[r],r,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let c;for(r=0;r<i;r++)c=o[r],t.call(null,e[c],c,e)}}function Me(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,s;for(;r-- >0;)if(s=n[r],t===s.toLowerCase())return s;return null}const $=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,qe=e=>!K(e)&&e!==$;function ye(){const{caseless:e}=qe(this)&&this||{},t={},n=(r,s)=>{const o=e&&Me(t,s)||s;se(t[o])&&se(r)?t[o]=ye(t[o],r):se(r)?t[o]=ye({},r):z(r)?t[o]=r.slice():t[o]=r};for(let r=0,s=arguments.length;r<s;r++)arguments[r]&&G(arguments[r],n);return t}const rn=(e,t,n,{allOwnKeys:r}={})=>(G(t,(s,o)=>{n&&L(s)?e[o]=Be(s,n):e[o]=s},{allOwnKeys:r}),e),sn=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),on=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},an=(e,t,n,r)=>{let s,o,i;const c={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),o=s.length;o-- >0;)i=s[o],(!r||r(i,e,t))&&!c[i]&&(t[i]=e[i],c[i]=!0);e=n!==!1&&me(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},cn=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},ln=e=>{if(!e)return null;if(z(e))return e;let t=e.length;if(!$e(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},un=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&me(Uint8Array)),fn=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let s;for(;(s=r.next())&&!s.done;){const o=s.value;t.call(e,o[0],o[1])}},dn=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},hn=v("HTMLFormElement"),pn=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),He=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),mn=v("RegExp"),ze=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};G(n,(s,o)=>{let i;(i=t(s,o,e))!==!1&&(r[o]=i||s)}),Object.defineProperties(e,r)},yn=e=>{ze(e,(t,n)=>{if(L(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(L(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},gn=(e,t)=>{const n={},r=s=>{s.forEach(o=>{n[o]=!0})};return z(e)?r(e):r(String(e).split(t)),n},bn=()=>{},wn=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,ge="abcdefghijklmnopqrstuvwxyz",Ve="0123456789",Je={DIGIT:Ve,ALPHA:ge,ALPHA_DIGIT:ge+ge.toUpperCase()+Ve},En=(e=16,t=Je.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function Sn(e){return!!(e&&L(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const On=e=>{const t=new Array(10),n=(r,s)=>{if(re(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[s]=r;const o=z(r)?[]:{};return G(r,(i,c)=>{const f=n(i,s+1);!K(f)&&(o[c]=f)}),t[s]=void 0,o}}return r};return n(e,0)},Rn=v("AsyncFunction"),Tn=e=>e&&(re(e)||L(e))&&L(e.then)&&L(e.catch),We=((e,t)=>e?setImmediate:t?((n,r)=>($.addEventListener("message",({source:s,data:o})=>{s===$&&o===n&&r.length&&r.shift()()},!1),s=>{r.push(s),$.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",L($.postMessage)),Cn=typeof queueMicrotask<"u"?queueMicrotask.bind($):typeof process<"u"&&process.nextTick||We,a={isArray:z,isArrayBuffer:Ie,isBuffer:Mt,isFormData:Xt,isArrayBufferView:qt,isString:Ht,isNumber:$e,isBoolean:zt,isObject:re,isPlainObject:se,isReadableStream:Qt,isRequest:Yt,isResponse:en,isHeaders:tn,isUndefined:K,isDate:Vt,isFile:Jt,isBlob:Wt,isRegExp:mn,isFunction:L,isStream:Gt,isURLSearchParams:Zt,isTypedArray:un,isFileList:Kt,forEach:G,merge:ye,extend:rn,trim:nn,stripBOM:sn,inherits:on,toFlatObject:an,kindOf:te,kindOfTest:v,endsWith:cn,toArray:ln,forEachEntry:fn,matchAll:dn,isHTMLForm:hn,hasOwnProperty:He,hasOwnProp:He,reduceDescriptors:ze,freezeMethods:yn,toObjectSet:gn,toCamelCase:pn,noop:bn,toFiniteNumber:wn,findKey:Me,global:$,isContextDefined:qe,ALPHABET:Je,generateString:En,isSpecCompliantForm:Sn,toJSONObject:On,isAsyncFn:Rn,isThenable:Tn,setImmediate:We,asap:Cn};function w(e,t,n,r,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),r&&(this.request=r),s&&(this.response=s,this.status=s.status?s.status:null)}a.inherits(w,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.status}}});const Ke=w.prototype,Ge={};["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=>{Ge[e]={value:e}}),Object.defineProperties(w,Ge),Object.defineProperty(Ke,"isAxiosError",{value:!0}),w.from=(e,t,n,r,s,o)=>{const i=Object.create(Ke);return a.toFlatObject(e,i,function(f){return f!==Error.prototype},c=>c!=="isAxiosError"),w.call(i,e.message,t,n,r,s),i.cause=e,i.name=e.name,o&&Object.assign(i,o),i};const An=null;function be(e){return a.isPlainObject(e)||a.isArray(e)}function Xe(e){return a.endsWith(e,"[]")?e.slice(0,-2):e}function Ze(e,t,n){return e?e.concat(t).map(function(s,o){return s=Xe(s),!n&&o?"["+s+"]":s}).join(n?".":""):t}function _n(e){return a.isArray(e)&&!e.some(be)}const xn=a.toFlatObject(a,{},null,function(t){return/^is[A-Z]/.test(t)});function oe(e,t,n){if(!a.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=a.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(d,p){return!a.isUndefined(p[d])});const r=n.metaTokens,s=n.visitor||l,o=n.dots,i=n.indexes,f=(n.Blob||typeof Blob<"u"&&Blob)&&a.isSpecCompliantForm(t);if(!a.isFunction(s))throw new TypeError("visitor must be a function");function u(h){if(h===null)return"";if(a.isDate(h))return h.toISOString();if(!f&&a.isBlob(h))throw new w("Blob is not supported. Use a Buffer instead.");return a.isArrayBuffer(h)||a.isTypedArray(h)?f&&typeof Blob=="function"?new Blob([h]):Buffer.from(h):h}function l(h,d,p){let S=h;if(h&&!p&&typeof h=="object"){if(a.endsWith(d,"{}"))d=r?d:d.slice(0,-2),h=JSON.stringify(h);else if(a.isArray(h)&&_n(h)||(a.isFileList(h)||a.endsWith(d,"[]"))&&(S=a.toArray(h)))return d=Xe(d),S.forEach(function(E,R){!(a.isUndefined(E)||E===null)&&t.append(i===!0?Ze([d],R,o):i===null?d:d+"[]",u(E))}),!1}return be(h)?!0:(t.append(Ze(p,d,o),u(h)),!1)}const m=[],b=Object.assign(xn,{defaultVisitor:l,convertValue:u,isVisitable:be});function y(h,d){if(!a.isUndefined(h)){if(m.indexOf(h)!==-1)throw Error("Circular reference detected in "+d.join("."));m.push(h),a.forEach(h,function(S,g){(!(a.isUndefined(S)||S===null)&&s.call(t,S,a.isString(g)?g.trim():g,d,b))===!0&&y(S,d?d.concat(g):[g])}),m.pop()}}if(!a.isObject(e))throw new TypeError("data must be an object");return y(e),t}function Qe(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function we(e,t){this._pairs=[],e&&oe(e,this,t)}const Ye=we.prototype;Ye.append=function(t,n){this._pairs.push([t,n])},Ye.toString=function(t){const n=t?function(r){return t.call(this,r,Qe)}:Qe;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function Nn(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function et(e,t,n){if(!t)return e;const r=n&&n.encode||Nn;a.isFunction(n)&&(n={serialize:n});const s=n&&n.serialize;let o;if(s?o=s(t,n):o=a.isURLSearchParams(t)?t.toString():new we(t,n).toString(r),o){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class tt{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){a.forEach(this.handlers,function(r){r!==null&&t(r)})}}const nt={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Pn={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:we,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},Ee=typeof window<"u"&&typeof document<"u",Se=typeof navigator=="object"&&navigator||void 0,kn=Ee&&(!Se||["ReactNative","NativeScript","NS"].indexOf(Se.product)<0),Ln=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Un=Ee&&window.location.href||"http://localhost",x={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Ee,hasStandardBrowserEnv:kn,hasStandardBrowserWebWorkerEnv:Ln,navigator:Se,origin:Un},Symbol.toStringTag,{value:"Module"})),...Pn};function Dn(e,t){return oe(e,new x.classes.URLSearchParams,Object.assign({visitor:function(n,r,s,o){return x.isNode&&a.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function vn(e){return a.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Fn(e){const t={},n=Object.keys(e);let r;const s=n.length;let o;for(r=0;r<s;r++)o=n[r],t[o]=e[o];return t}function rt(e){function t(n,r,s,o){let i=n[o++];if(i==="__proto__")return!0;const c=Number.isFinite(+i),f=o>=n.length;return i=!i&&a.isArray(s)?s.length:i,f?(a.hasOwnProp(s,i)?s[i]=[s[i],r]:s[i]=r,!c):((!s[i]||!a.isObject(s[i]))&&(s[i]=[]),t(n,r,s[i],o)&&a.isArray(s[i])&&(s[i]=Fn(s[i])),!c)}if(a.isFormData(e)&&a.isFunction(e.entries)){const n={};return a.forEachEntry(e,(r,s)=>{t(vn(r),s,n,0)}),n}return null}function jn(e,t,n){if(a.isString(e))try{return(t||JSON.parse)(e),a.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const X={transitional:nt,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,o=a.isObject(t);if(o&&a.isHTMLForm(t)&&(t=new FormData(t)),a.isFormData(t))return s?JSON.stringify(rt(t)):t;if(a.isArrayBuffer(t)||a.isBuffer(t)||a.isStream(t)||a.isFile(t)||a.isBlob(t)||a.isReadableStream(t))return t;if(a.isArrayBufferView(t))return t.buffer;if(a.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let c;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Dn(t,this.formSerializer).toString();if((c=a.isFileList(t))||r.indexOf("multipart/form-data")>-1){const f=this.env&&this.env.FormData;return oe(c?{"files[]":t}:t,f&&new f,this.formSerializer)}}return o||s?(n.setContentType("application/json",!1),jn(t)):t}],transformResponse:[function(t){const n=this.transitional||X.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(a.isResponse(t)||a.isReadableStream(t))return t;if(t&&a.isString(t)&&(r&&!this.responseType||s)){const i=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(t)}catch(c){if(i)throw c.name==="SyntaxError"?w.from(c,w.ERR_BAD_RESPONSE,this,null,this.response):c}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:x.classes.FormData,Blob:x.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};a.forEach(["delete","get","head","post","put","patch"],e=>{X.headers[e]={}});const Bn=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"]),In=e=>{const t={};let n,r,s;return e&&e.split(`
7
+ `).forEach(function(i){s=i.indexOf(":"),n=i.substring(0,s).trim().toLowerCase(),r=i.substring(s+1).trim(),!(!n||t[n]&&Bn[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},st=Symbol("internals");function Z(e){return e&&String(e).trim().toLowerCase()}function ie(e){return e===!1||e==null?e:a.isArray(e)?e.map(ie):String(e)}function $n(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const Mn=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Oe(e,t,n,r,s){if(a.isFunction(r))return r.call(this,t,n);if(s&&(t=n),!!a.isString(t)){if(a.isString(r))return t.indexOf(r)!==-1;if(a.isRegExp(r))return r.test(t)}}function qn(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function Hn(e,t){const n=a.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(s,o,i){return this[r].call(this,t,s,o,i)},configurable:!0})})}class P{constructor(t){t&&this.set(t)}set(t,n,r){const s=this;function o(c,f,u){const l=Z(f);if(!l)throw new Error("header name must be a non-empty string");const m=a.findKey(s,l);(!m||s[m]===void 0||u===!0||u===void 0&&s[m]!==!1)&&(s[m||f]=ie(c))}const i=(c,f)=>a.forEach(c,(u,l)=>o(u,l,f));if(a.isPlainObject(t)||t instanceof this.constructor)i(t,n);else if(a.isString(t)&&(t=t.trim())&&!Mn(t))i(In(t),n);else if(a.isHeaders(t))for(const[c,f]of t.entries())o(f,c,r);else t!=null&&o(n,t,r);return this}get(t,n){if(t=Z(t),t){const r=a.findKey(this,t);if(r){const s=this[r];if(!n)return s;if(n===!0)return $n(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(t,n){if(t=Z(t),t){const r=a.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Oe(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let s=!1;function o(i){if(i=Z(i),i){const c=a.findKey(r,i);c&&(!n||Oe(r,r[c],c,n))&&(delete r[c],s=!0)}}return a.isArray(t)?t.forEach(o):o(t),s}clear(t){const n=Object.keys(this);let r=n.length,s=!1;for(;r--;){const o=n[r];(!t||Oe(this,this[o],o,t,!0))&&(delete this[o],s=!0)}return s}normalize(t){const n=this,r={};return a.forEach(this,(s,o)=>{const i=a.findKey(r,o);if(i){n[i]=ie(s),delete n[o];return}const c=t?qn(o):String(o).trim();c!==o&&delete n[o],n[c]=ie(s),r[c]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return a.forEach(this,(r,s)=>{r!=null&&r!==!1&&(n[s]=t&&a.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
8
+ `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(s=>r.set(s)),r}static accessor(t){const r=(this[st]=this[st]={accessors:{}}).accessors,s=this.prototype;function o(i){const c=Z(i);r[c]||(Hn(s,i),r[c]=!0)}return a.isArray(t)?t.forEach(o):o(t),this}}P.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),a.reduceDescriptors(P.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}}),a.freezeMethods(P);function Re(e,t){const n=this||X,r=t||n,s=P.from(r.headers);let o=r.data;return a.forEach(e,function(c){o=c.call(n,o,s.normalize(),t?t.status:void 0)}),s.normalize(),o}function ot(e){return!!(e&&e.__CANCEL__)}function V(e,t,n){w.call(this,e??"canceled",w.ERR_CANCELED,t,n),this.name="CanceledError"}a.inherits(V,w,{__CANCEL__:!0});function it(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new w("Request failed with status code "+n.status,[w.ERR_BAD_REQUEST,w.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function zn(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Vn(e,t){e=e||10;const n=new Array(e),r=new Array(e);let s=0,o=0,i;return t=t!==void 0?t:1e3,function(f){const u=Date.now(),l=r[o];i||(i=u),n[s]=f,r[s]=u;let m=o,b=0;for(;m!==s;)b+=n[m++],m=m%e;if(s=(s+1)%e,s===o&&(o=(o+1)%e),u-i<t)return;const y=l&&u-l;return y?Math.round(b*1e3/y):void 0}}function Jn(e,t){let n=0,r=1e3/t,s,o;const i=(u,l=Date.now())=>{n=l,s=null,o&&(clearTimeout(o),o=null),e.apply(null,u)};return[(...u)=>{const l=Date.now(),m=l-n;m>=r?i(u,l):(s=u,o||(o=setTimeout(()=>{o=null,i(s)},r-m)))},()=>s&&i(s)]}const ae=(e,t,n=3)=>{let r=0;const s=Vn(50,250);return Jn(o=>{const i=o.loaded,c=o.lengthComputable?o.total:void 0,f=i-r,u=s(f),l=i<=c;r=i;const m={loaded:i,total:c,progress:c?i/c:void 0,bytes:f,rate:u||void 0,estimated:u&&c&&l?(c-i)/u:void 0,event:o,lengthComputable:c!=null,[t?"download":"upload"]:!0};e(m)},n)},at=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},ct=e=>(...t)=>a.asap(()=>e(...t)),Wn=x.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,x.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(x.origin),x.navigator&&/(msie|trident)/i.test(x.navigator.userAgent)):()=>!0,Kn=x.hasStandardBrowserEnv?{write(e,t,n,r,s,o){const i=[e+"="+encodeURIComponent(t)];a.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),a.isString(r)&&i.push("path="+r),a.isString(s)&&i.push("domain="+s),o===!0&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Gn(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Xn(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function lt(e,t){return e&&!Gn(t)?Xn(e,t):t}const ut=e=>e instanceof P?{...e}:e;function M(e,t){t=t||{};const n={};function r(u,l,m,b){return a.isPlainObject(u)&&a.isPlainObject(l)?a.merge.call({caseless:b},u,l):a.isPlainObject(l)?a.merge({},l):a.isArray(l)?l.slice():l}function s(u,l,m,b){if(a.isUndefined(l)){if(!a.isUndefined(u))return r(void 0,u,m,b)}else return r(u,l,m,b)}function o(u,l){if(!a.isUndefined(l))return r(void 0,l)}function i(u,l){if(a.isUndefined(l)){if(!a.isUndefined(u))return r(void 0,u)}else return r(void 0,l)}function c(u,l,m){if(m in t)return r(u,l);if(m in e)return r(void 0,u)}const f={url:o,method:o,data:o,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken: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:c,headers:(u,l,m)=>s(ut(u),ut(l),m,!0)};return a.forEach(Object.keys(Object.assign({},e,t)),function(l){const m=f[l]||s,b=m(e[l],t[l],l);a.isUndefined(b)&&m!==c||(n[l]=b)}),n}const ft=e=>{const t=M({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:s,xsrfCookieName:o,headers:i,auth:c}=t;t.headers=i=P.from(i),t.url=et(lt(t.baseURL,t.url),e.params,e.paramsSerializer),c&&i.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):"")));let f;if(a.isFormData(n)){if(x.hasStandardBrowserEnv||x.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if((f=i.getContentType())!==!1){const[u,...l]=f?f.split(";").map(m=>m.trim()).filter(Boolean):[];i.setContentType([u||"multipart/form-data",...l].join("; "))}}if(x.hasStandardBrowserEnv&&(r&&a.isFunction(r)&&(r=r(t)),r||r!==!1&&Wn(t.url))){const u=s&&o&&Kn.read(o);u&&i.set(s,u)}return t},Zn=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(n,r){const s=ft(e);let o=s.data;const i=P.from(s.headers).normalize();let{responseType:c,onUploadProgress:f,onDownloadProgress:u}=s,l,m,b,y,h;function d(){y&&y(),h&&h(),s.cancelToken&&s.cancelToken.unsubscribe(l),s.signal&&s.signal.removeEventListener("abort",l)}let p=new XMLHttpRequest;p.open(s.method.toUpperCase(),s.url,!0),p.timeout=s.timeout;function S(){if(!p)return;const E=P.from("getAllResponseHeaders"in p&&p.getAllResponseHeaders()),T={data:!c||c==="text"||c==="json"?p.responseText:p.response,status:p.status,statusText:p.statusText,headers:E,config:e,request:p};it(function(U){n(U),d()},function(U){r(U),d()},T),p=null}"onloadend"in p?p.onloadend=S:p.onreadystatechange=function(){!p||p.readyState!==4||p.status===0&&!(p.responseURL&&p.responseURL.indexOf("file:")===0)||setTimeout(S)},p.onabort=function(){p&&(r(new w("Request aborted",w.ECONNABORTED,e,p)),p=null)},p.onerror=function(){r(new w("Network Error",w.ERR_NETWORK,e,p)),p=null},p.ontimeout=function(){let R=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const T=s.transitional||nt;s.timeoutErrorMessage&&(R=s.timeoutErrorMessage),r(new w(R,T.clarifyTimeoutError?w.ETIMEDOUT:w.ECONNABORTED,e,p)),p=null},o===void 0&&i.setContentType(null),"setRequestHeader"in p&&a.forEach(i.toJSON(),function(R,T){p.setRequestHeader(T,R)}),a.isUndefined(s.withCredentials)||(p.withCredentials=!!s.withCredentials),c&&c!=="json"&&(p.responseType=s.responseType),u&&([b,h]=ae(u,!0),p.addEventListener("progress",b)),f&&p.upload&&([m,y]=ae(f),p.upload.addEventListener("progress",m),p.upload.addEventListener("loadend",y)),(s.cancelToken||s.signal)&&(l=E=>{p&&(r(!E||E.type?new V(null,e,p):E),p.abort(),p=null)},s.cancelToken&&s.cancelToken.subscribe(l),s.signal&&(s.signal.aborted?l():s.signal.addEventListener("abort",l)));const g=zn(s.url);if(g&&x.protocols.indexOf(g)===-1){r(new w("Unsupported protocol "+g+":",w.ERR_BAD_REQUEST,e));return}p.send(o||null)})},Qn=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,s;const o=function(u){if(!s){s=!0,c();const l=u instanceof Error?u:this.reason;r.abort(l instanceof w?l:new V(l instanceof Error?l.message:l))}};let i=t&&setTimeout(()=>{i=null,o(new w(`timeout ${t} of ms exceeded`,w.ETIMEDOUT))},t);const c=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(o):u.removeEventListener("abort",o)}),e=null)};e.forEach(u=>u.addEventListener("abort",o));const{signal:f}=r;return f.unsubscribe=()=>a.asap(c),f}},Yn=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,s;for(;r<n;)s=r+t,yield e.slice(r,s),r=s},er=async function*(e,t){for await(const n of tr(e))yield*Yn(n,t)},tr=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},dt=(e,t,n,r)=>{const s=er(e,t);let o=0,i,c=f=>{i||(i=!0,r&&r(f))};return new ReadableStream({async pull(f){try{const{done:u,value:l}=await s.next();if(u){c(),f.close();return}let m=l.byteLength;if(n){let b=o+=m;n(b)}f.enqueue(new Uint8Array(l))}catch(u){throw c(u),u}},cancel(f){return c(f),s.return()}},{highWaterMark:2})},ce=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",ht=ce&&typeof ReadableStream=="function",nr=ce&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),pt=(e,...t)=>{try{return!!e(...t)}catch{return!1}},rr=ht&&pt(()=>{let e=!1;const t=new Request(x.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),mt=64*1024,Te=ht&&pt(()=>a.isReadableStream(new Response("").body)),le={stream:Te&&(e=>e.body)};ce&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!le[t]&&(le[t]=a.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new w(`Response type '${t}' is not supported`,w.ERR_NOT_SUPPORT,r)})})})(new Response);const sr=async e=>{if(e==null)return 0;if(a.isBlob(e))return e.size;if(a.isSpecCompliantForm(e))return(await new Request(x.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(a.isArrayBufferView(e)||a.isArrayBuffer(e))return e.byteLength;if(a.isURLSearchParams(e)&&(e=e+""),a.isString(e))return(await nr(e)).byteLength},or=async(e,t)=>{const n=a.toFiniteNumber(e.getContentLength());return n??sr(t)},Ce={http:An,xhr:Zn,fetch:ce&&(async e=>{let{url:t,method:n,data:r,signal:s,cancelToken:o,timeout:i,onDownloadProgress:c,onUploadProgress:f,responseType:u,headers:l,withCredentials:m="same-origin",fetchOptions:b}=ft(e);u=u?(u+"").toLowerCase():"text";let y=Qn([s,o&&o.toAbortSignal()],i),h;const d=y&&y.unsubscribe&&(()=>{y.unsubscribe()});let p;try{if(f&&rr&&n!=="get"&&n!=="head"&&(p=await or(l,r))!==0){let T=new Request(t,{method:"POST",body:r,duplex:"half"}),k;if(a.isFormData(r)&&(k=T.headers.get("content-type"))&&l.setContentType(k),T.body){const[U,N]=at(p,ae(ct(f)));r=dt(T.body,mt,U,N)}}a.isString(m)||(m=m?"include":"omit");const S="credentials"in Request.prototype;h=new Request(t,{...b,signal:y,method:n.toUpperCase(),headers:l.normalize().toJSON(),body:r,duplex:"half",credentials:S?m:void 0});let g=await fetch(h);const E=Te&&(u==="stream"||u==="response");if(Te&&(c||E&&d)){const T={};["status","statusText","headers"].forEach(j=>{T[j]=g[j]});const k=a.toFiniteNumber(g.headers.get("content-length")),[U,N]=c&&at(k,ae(ct(c),!0))||[];g=new Response(dt(g.body,mt,U,()=>{N&&N(),d&&d()}),T)}u=u||"text";let R=await le[a.findKey(le,u)||"text"](g,e);return!E&&d&&d(),await new Promise((T,k)=>{it(T,k,{data:R,headers:P.from(g.headers),status:g.status,statusText:g.statusText,config:e,request:h})})}catch(S){throw d&&d(),S&&S.name==="TypeError"&&/fetch/i.test(S.message)?Object.assign(new w("Network Error",w.ERR_NETWORK,e,h),{cause:S.cause||S}):w.from(S,S&&S.code,e,h)}})};a.forEach(Ce,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const yt=e=>`- ${e}`,ir=e=>a.isFunction(e)||e===null||e===!1,gt={getAdapter:e=>{e=a.isArray(e)?e:[e];const{length:t}=e;let n,r;const s={};for(let o=0;o<t;o++){n=e[o];let i;if(r=n,!ir(n)&&(r=Ce[(i=String(n)).toLowerCase()],r===void 0))throw new w(`Unknown adapter '${i}'`);if(r)break;s[i||"#"+o]=r}if(!r){const o=Object.entries(s).map(([c,f])=>`adapter ${c} `+(f===!1?"is not supported by the environment":"is not available in the build"));let i=t?o.length>1?`since :
9
+ `+o.map(yt).join(`
10
+ `):" "+yt(o[0]):"as no adapter specified";throw new w("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return r},adapters:Ce};function Ae(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new V(null,e)}function bt(e){return Ae(e),e.headers=P.from(e.headers),e.data=Re.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),gt.getAdapter(e.adapter||X.adapter)(e).then(function(r){return Ae(e),r.data=Re.call(e,e.transformResponse,r),r.headers=P.from(r.headers),r},function(r){return ot(r)||(Ae(e),r&&r.response&&(r.response.data=Re.call(e,e.transformResponse,r.response),r.response.headers=P.from(r.response.headers))),Promise.reject(r)})}const wt="1.7.9",ue={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{ue[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Et={};ue.transitional=function(t,n,r){function s(o,i){return"[Axios v"+wt+"] Transitional option '"+o+"'"+i+(r?". "+r:"")}return(o,i,c)=>{if(t===!1)throw new w(s(i," has been removed"+(n?" in "+n:"")),w.ERR_DEPRECATED);return n&&!Et[i]&&(Et[i]=!0,console.warn(s(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,i,c):!0}},ue.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function ar(e,t,n){if(typeof e!="object")throw new w("options must be an object",w.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let s=r.length;for(;s-- >0;){const o=r[s],i=t[o];if(i){const c=e[o],f=c===void 0||i(c,o,e);if(f!==!0)throw new w("option "+o+" must be "+f,w.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new w("Unknown option "+o,w.ERR_BAD_OPTION)}}const fe={assertOptions:ar,validators:ue},F=fe.validators;class q{constructor(t){this.defaults=t,this.interceptors={request:new tt,response:new tt}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let s={};Error.captureStackTrace?Error.captureStackTrace(s):s=new Error;const o=s.stack?s.stack.replace(/^.+\n/,""):"";try{r.stack?o&&!String(r.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(r.stack+=`
11
+ `+o):r.stack=o}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=M(this.defaults,n);const{transitional:r,paramsSerializer:s,headers:o}=n;r!==void 0&&fe.assertOptions(r,{silentJSONParsing:F.transitional(F.boolean),forcedJSONParsing:F.transitional(F.boolean),clarifyTimeoutError:F.transitional(F.boolean)},!1),s!=null&&(a.isFunction(s)?n.paramsSerializer={serialize:s}:fe.assertOptions(s,{encode:F.function,serialize:F.function},!0)),fe.assertOptions(n,{baseUrl:F.spelling("baseURL"),withXsrfToken:F.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=o&&a.merge(o.common,o[n.method]);o&&a.forEach(["delete","get","head","post","put","patch","common"],h=>{delete o[h]}),n.headers=P.concat(i,o);const c=[];let f=!0;this.interceptors.request.forEach(function(d){typeof d.runWhen=="function"&&d.runWhen(n)===!1||(f=f&&d.synchronous,c.unshift(d.fulfilled,d.rejected))});const u=[];this.interceptors.response.forEach(function(d){u.push(d.fulfilled,d.rejected)});let l,m=0,b;if(!f){const h=[bt.bind(this),void 0];for(h.unshift.apply(h,c),h.push.apply(h,u),b=h.length,l=Promise.resolve(n);m<b;)l=l.then(h[m++],h[m++]);return l}b=c.length;let y=n;for(m=0;m<b;){const h=c[m++],d=c[m++];try{y=h(y)}catch(p){d.call(this,p);break}}try{l=bt.call(this,y)}catch(h){return Promise.reject(h)}for(m=0,b=u.length;m<b;)l=l.then(u[m++],u[m++]);return l}getUri(t){t=M(this.defaults,t);const n=lt(t.baseURL,t.url);return et(n,t.params,t.paramsSerializer)}}a.forEach(["delete","get","head","options"],function(t){q.prototype[t]=function(n,r){return this.request(M(r||{},{method:t,url:n,data:(r||{}).data}))}}),a.forEach(["post","put","patch"],function(t){function n(r){return function(o,i,c){return this.request(M(c||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:i}))}}q.prototype[t]=n(),q.prototype[t+"Form"]=n(!0)});class _e{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(s=>{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(c=>{r.subscribe(c),o=c}).then(s);return i.cancel=function(){r.unsubscribe(o)},i},t(function(o,i,c){r.reason||(r.reason=new V(o,i,c),n(r.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)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new _e(function(s){t=s}),cancel:t}}}function cr(e){return function(n){return e.apply(null,n)}}function lr(e){return a.isObject(e)&&e.isAxiosError===!0}const xe={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(xe).forEach(([e,t])=>{xe[t]=e});function St(e){const t=new q(e),n=Be(q.prototype.request,t);return a.extend(n,q.prototype,t,{allOwnKeys:!0}),a.extend(n,t,null,{allOwnKeys:!0}),n.create=function(s){return St(M(e,s))},n}const C=St(X);C.Axios=q,C.CanceledError=V,C.CancelToken=_e,C.isCancel=ot,C.VERSION=wt,C.toFormData=oe,C.AxiosError=w,C.Cancel=C.CanceledError,C.all=function(t){return Promise.all(t)},C.spread=cr,C.isAxiosError=lr,C.mergeConfig=M,C.AxiosHeaders=P,C.formToJSON=e=>rt(a.isHTMLForm(e)?new FormData(e):e),C.getAdapter=gt.getAdapter,C.HttpStatusCode=xe,C.default=C;const ur=H?window:void 0;function fr(e){var t;const n=O.toValue(e);return(t=n==null?void 0:n.$el)!=null?t:n}function dr(...e){let t,n,r,s;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,r,s]=e,t=ur):[t,n,r,s]=e,!t)return Ue;n=De(n),r=De(r);const o=[],i=()=>{o.forEach(l=>l()),o.length=0},c=(l,m,b,y)=>(l.addEventListener(m,b,y),()=>l.removeEventListener(m,b,y)),f=O.watch(()=>[fr(t),O.toValue(s)],([l,m])=>{if(i(),!l)return;const b=_t(m)?{...m}:m;o.push(...n.flatMap(y=>r.map(h=>c(l,y,h,b))))},{immediate:!0,flush:"post"}),u=()=>{f(),i()};return W(u),u}const Ot="ping";function Ne(e){return e===!0?{}:e}function hr(e,t={}){const{onConnected:n,onDisconnected:r,onError:s,onMessage:o,immediate:i=!0,autoConnect:c=!0,autoClose:f=!0,protocols:u=[]}=t,l=O.ref(null),m=O.ref("CLOSED"),b=O.ref(),y=xt(e);let h,d,p=!1,S=0,g=[],E,R;const T=()=>{if(g.length&&b.value&&m.value==="OPEN"){for(const A of g)b.value.send(A);g=[]}},k=()=>{E!=null&&(clearTimeout(E),E=void 0)},U=()=>{clearTimeout(R),R=void 0},N=(A=1e3,D)=>{k(),!(!H&&!Le||!b.value)&&(p=!0,U(),h==null||h(),b.value.close(A,D),b.value=void 0)},j=(A,D=!0)=>!b.value||m.value!=="OPEN"?(D&&g.push(A),!1):(T(),b.value.send(A),!0),Q=()=>{if(p||typeof y.value>"u")return;const A=new WebSocket(y.value,u);b.value=A,m.value="CONNECTING",A.onopen=()=>{m.value="OPEN",S=0,n==null||n(A),d==null||d(),T()},A.onclose=D=>{if(m.value="CLOSED",r==null||r(A,D),!p&&t.autoReconnect&&(b.value==null||A===b.value)){const{retries:B=-1,delay:J=1e3,onFailed:de}=Ne(t.autoReconnect);typeof B=="number"&&(B<0||S<B)?(S+=1,E=setTimeout(Q,J)):typeof B=="function"&&B()?E=setTimeout(Q,J):de==null||de()}},A.onerror=D=>{s==null||s(A,D)},A.onmessage=D=>{if(t.heartbeat){U();const{message:B=Ot,responseMessage:J=B}=Ne(t.heartbeat);if(D.data===O.toValue(J))return}l.value=D.data,o==null||o(A,D)}};if(t.heartbeat){const{message:A=Ot,interval:D=1e3,pongTimeout:B=1e3}=Ne(t.heartbeat),{pause:J,resume:de}=Nt(()=>{j(O.toValue(A),!1),R==null&&(R=setTimeout(()=>{N(),p=!1},B))},D,{immediate:!1});h=J,d=de}f&&(H&&dr("beforeunload",()=>N()),W(N));const ke=()=>{!H&&!Le||(N(),p=!1,S=0,Q())};return i&&ke(),c&&O.watch(y,ke),{data:l,status:m,close:N,send:j,open:ke,ws:b}}const Pe="CLIENT",Rt=1500,pr=e=>{const t=yr(e),n=mr(e),r=C.create({baseURL:t,timeout:Rt}),s=C.create({baseURL:n,timeout:Rt}),o=gr(),i=br(e),c=hr(i);return{$$http:t,$http:r,$$files:n,$files:s,$cookies:o,$socket:c}};function mr(e){let{minio_proxy:t,valar_host:n,minio_host:r,minio_port:s,minio_ssl:o}=e;return t||`${o?"https":"http"}://${r||n}:${s||9e3}/`}function yr(e){let{valar_host:t,valar_port:n,valar_ssl:r,valar_proxy:s}=e;return s||`${r?"https":"http"}://${t}:${n}/`}function gr(){const{get:e,set:t,remove:n}=Fe(["locale"]);let r=e(Pe);return r||(r=It().toString().replace("-",""),t(Pe,r)),{get:e,set:t,remove:n}}function br(e){const{get:t}=Fe(["locale"]),n=t(Pe);let{valar_host:r,valar_port:s,socket_ssl:o}=e;return`${o?"wss":"ws"}://${r}:${s}/base/${n}/`}const wr=(e,t)=>{e.component("MorTable",Ct);const{$$http:n,$http:r,$$files:s,$files:o,$cookies:i,$socket:c}=pr(t);e.config.globalProperties.$$http=n,e.config.globalProperties.$http=r,e.config.globalProperties.$$files=s,e.config.globalProperties.$files=o,e.config.globalProperties.$cookies=i,e.config.globalProperties.$socket=c};I.morghulisPlugin=wr,Object.defineProperty(I,Symbol.toStringTag,{value:"Module"})});
package/package.json CHANGED
@@ -1,33 +1,47 @@
1
1
  {
2
2
  "name": "morghulis",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"
7
7
  ],
8
8
  "main": "./dist/morghulis.umd.cjs",
9
9
  "module": "./dist/morghulis.js",
10
- "types": "./dist/main.d.ts",
11
10
  "exports": {
12
11
  ".": {
13
12
  "import": "./dist/morghulis.js",
14
- "require": "./dist/morghulis.umd.js"
13
+ "require": "./dist/morghulis.umd.cjs"
15
14
  },
16
- "./dist/style.css": "./dist/style.css"
15
+ "./style.css": "./dist/style.css"
17
16
  },
17
+ "types": "./dist/types.d.ts",
18
18
  "scripts": {
19
19
  "dev": "vite",
20
- "build": "vite build && vue-tsc --emitDeclarationOnly",
20
+ "build": "vite build && npm run generate:types",
21
+ "generate:types": "vue-tsc --declaration --emitDeclarationOnly --outdir ./dist",
21
22
  "preview": "vite preview"
22
23
  },
23
24
  "dependencies": {
25
+ "@vue/eslint-config-typescript": "^11.0.1",
26
+ "@vue/tsconfig": "^0.7.0",
27
+ "@vueuse/core": "^12.3.0",
28
+ "@vueuse/integrations": "^12.3.0",
29
+ "axios": "^1.7.9",
30
+ "defu": "^6.1.4",
24
31
  "element-plus": "^2.9.1",
25
- "vue": "^3.5.13"
32
+ "js-cookie": "^3.0.5",
33
+ "nprogress": "^0.2.0",
34
+ "radash": "^12.1.0",
35
+ "universal-cookie": "^7.2.2",
36
+ "uuid": "^11.0.3",
37
+ "vue": "^3.5.13",
38
+ "vue-tsc": "^2.2.0"
26
39
  },
27
40
  "devDependencies": {
28
- "@types/node": "^22.10.2",
29
- "@vitejs/plugin-vue": "^5.2.1",
41
+ "@tsconfig/node22": "^22.0.0",
30
42
  "@vue/tsconfig": "^0.7.0",
43
+ "@types/node": "^22.10.5",
44
+ "@vitejs/plugin-vue": "^5.2.1",
31
45
  "typescript": "~5.6.2",
32
46
  "vite": "^6.0.5",
33
47
  "vue-tsc": "^2.2.0"
@@ -1,10 +0,0 @@
1
- declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
2
- msg: {
3
- type: StringConstructor;
4
- };
5
- }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
6
- msg: {
7
- type: StringConstructor;
8
- };
9
- }>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
10
- export default _default;
package/dist/main.d.ts DELETED
@@ -1,4 +0,0 @@
1
- declare const plugin: {
2
- install: (app: any, options: any) => void;
3
- };
4
- export default plugin;