dw-react-form 1.0.6 → 1.0.8
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/dw-test-form-react.js
CHANGED
|
@@ -8135,14 +8135,14 @@ const qje = {
|
|
|
8135
8135
|
const s = D("el-button");
|
|
8136
8136
|
return B(), S(Ke, null, [
|
|
8137
8137
|
n[1] || (n[1] = C("div", null, "我的DW Test BTN V2", -1)),
|
|
8138
|
-
|
|
8139
|
-
C("div", null, Q(t.value.btnName), 1),
|
|
8140
|
-
I(s, { type: "primary" }, {
|
|
8138
|
+
I(s, { onClick: i }, {
|
|
8141
8139
|
default: F(() => n[0] || (n[0] = [
|
|
8142
|
-
v("
|
|
8140
|
+
v("当前时间")
|
|
8143
8141
|
])),
|
|
8144
8142
|
_: 1
|
|
8145
|
-
})
|
|
8143
|
+
}),
|
|
8144
|
+
C("div", null, Q(t.value.btnName), 1),
|
|
8145
|
+
n[2] || (n[2] = C("button", { type: "primary" }, "我的ELBTN Primary", -1))
|
|
8146
8146
|
], 64);
|
|
8147
8147
|
};
|
|
8148
8148
|
}
|
|
@@ -40,7 +40,7 @@ Expected function or array of functions, received type ${typeof e}.`),Ji)}functi
|
|
|
40
40
|
* vue v3.5.13
|
|
41
41
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
42
42
|
* @license MIT
|
|
43
|
-
**/function Bje(){u$()}process.env.NODE_ENV!=="production"&&Bje();const iee=Object.assign({name:"DwTestBtn"},{setup(e){const t=Mt({btnName:""}),i=()=>{t.value.btnName=new Date};return(o,n)=>{const s=D("el-button");return R(),S(Ke,null,[n[1]||(n[1]=C("div",null,"我的DW Test BTN V2",-1)),C("button",{onClick:i},"当前时间"),C("div",null,Q(t.value.btnName),1),I(s,{type:"primary"},{default:F(()=>n[0]||(n[0]=[v("我的ELBTN Primary")])),_:1})],64)}}}),de=(e,t)=>{const i=e.__vccOpts||e;for(const[o,n]of t)i[o]=n;return i},Dje={name:"DwAnswerMessageBody"};function Zje(e,t,i,o,n,s){return R(),S("div",null,"答卷成功")}const oee=de(Dje,[["render",Zje]]),ms=[];for(let e=0;e<256;++e)ms.push((e+256).toString(16).slice(1));function qje(e,t=0){return(ms[e[t+0]]+ms[e[t+1]]+ms[e[t+2]]+ms[e[t+3]]+"-"+ms[e[t+4]]+ms[e[t+5]]+"-"+ms[e[t+6]]+ms[e[t+7]]+"-"+ms[e[t+8]]+ms[e[t+9]]+"-"+ms[e[t+10]]+ms[e[t+11]]+ms[e[t+12]]+ms[e[t+13]]+ms[e[t+14]]+ms[e[t+15]]).toLowerCase()}let gf;const Kje=new Uint8Array(16);function Sje(){if(!gf){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");gf=crypto.getRandomValues.bind(crypto)}return gf(Kje)}const nee={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function mo(e,t,i){if(nee.randomUUID&&!t&&!e)return nee.randomUUID();e=e||{};const o=e.random||(e.rng||Sje)();return o[6]=o[6]&15|64,o[8]=o[8]&63|128,qje(o)}const yf={sysThemeStyle:{dwPrimaryBgColor:"#064b91",dwPrimaryBgColorActive:"#043c75",dwPrimaryBgColorHover:"#083c75",dwPrimaryTextColorActive:"#0b72dc",dwPrimaryButtonThemeColor:"#0b72dc",dwPrimaryButtonToolbarThemeColor:"#0b63bd",dwPrimaryButtonBgColor6:"#b5d8fc",dwPrimaryThemeColor:"#064b91",dwPrimaryThemeColorDark2:"#043567",dwPrimaryThemeColorlight3:"#0e60b4",dwPrimaryThemeColorlight5:"#196fc7",dwPrimaryThemeColorlight7:"#3985d7",dwPrimaryThemeColorlight8:"#62a4e8",dwPrimaryThemeColorlight9:"#b2cff1",dwHeaderBgColor:null,dwHeaderTextColor:null,dwHeaderMenuBgColor:null,dwHeaderMenuTextColor:null,dwHeaderMenuActiveTextColor:null,dwHeaderMenuHoverBgColor:null,dwLeftMenuBgColor:null,dwLeftMenuTextColor:null,dwLeftMenuActiveTextColor:null,dwLeftMenuHoverBgColor:null},answerThemeStyle:{dwAnswerPageBgColor:"#eeeeee",dwAnswerPrimaryColor:"#064b91",dwAnswerPrimaryColor1:"#033e75",dwAnswerLogoBgColor:"#0b72dc",dwAnswerProgressColor:"#0b63bd"}},AE={rgbToHex(e){if(e!=null){const t=e.replace("rgb","").replace("(","").replace(")","").split(","),i=parseInt(t[0]).toString(16),o=parseInt(t[1]).toString(16),n=parseInt(t[2]).toString(16);return"#"+i+o+n}return null},hexToRgb(e){if(e!=null){const t=e.replace("#","");if(t.length%3)return"hex格式不正确!";const i=t.length/3,o=6/t.length,n=parseInt("0x"+t.substring(0,i))**o,s=parseInt("0x"+t.substring(i,2*i))**o,l=parseInt("0x"+t.substring(2*i))**o;return`rgb(${n}, ${s}, ${l})`}return null},rgbToHsl(e,t,i){e/=255,t/=255,i/=255;const o=Math.max(e,t,i),n=Math.min(e,t,i);let s=(o+n)/2,l=(o+n)/2;const r=(o+n)/2;if(o===n)s=l=0;else{const a=o-n;switch(l=r>.5?a/(2-o-n):a/(o+n),o){case e:s=(t-i)/a+(t<i?6:0);break;case t:s=(i-e)/a+2;break;case i:s=(e-t)/a+4;break}s/=6}return[s,l,r]},generateSimilarColor(e,t,i,o){const n=(A,E,m,h,g)=>(E+=h,m+=g,m=m*100,!o&&m>100&&(m=98),`hsl(${A*360}, ${E*100}%, ${m}%)`),[s,l,r]=e.match(/\d+/g).map(Number),[a,c,u]=this.rgbToHsl(s,l,r);return n(a,c,u,t,i)},isWhiteColor(e){const t=[e.red,e.green,e.blue].map(o=>o/255);console.debug("rgb",t);const i=.95;return t.every(o=>o>i)},hslToRgb(e,t,i){function o(c,u,A){return A<0&&(A+=1),A>1&&(A-=1),A<1/6?c+(u-c)*6*A:A<1/2?u:A<2/3?c+(u-c)*(2/3-A)*6:c}const n=i<.5?i*(1+t):i+t-i*t,s=2*i-n,l=o(s,n,e+1/3),r=o(s,n,e),a=o(s,n,e-1/3);return[Math.round(l*255),Math.round(r*255),Math.round(a*255)]}};function see(){const e=yf.answerThemeStyle;return{pageTopImg:{enabled:!1,src:null,httpSrc:null},pageBgImg:{enabled:!1,src:null,httpSrc:null},logoImg:{enabled:!1,src:null,httpSrc:null,position:"topLogoRight"},pageBgColor:e.dwAnswerPageBgColor,pageThemeColor:e.dwAnswerPrimaryColor,pageThemeColor1:e.dwAnswerPrimaryColor1,logoBgColor:e.dwAnswerLogoBgColor,progressColor:e.dwAnswerProgressColor,showQuNum:!0,showProgressbar:!0,showPageHeader:!0,showQuTypeName:!0,showSurveyTitle:!0,showSurveyNote:!0,showQuScoreNum:!1}}function lee(e,t){return Array.from({length:t-e+1},(i,o)=>e+o)}function ree(e,t){return function(){return e.apply(t,arguments)}}const{toString:Qje}=Object.prototype,{getPrototypeOf:xf}=Object,kR=(e=>t=>{const i=Qje.call(t);return e[i]||(e[i]=i.slice(8,-1).toLowerCase())})(Object.create(null)),Ka=e=>(e=e.toLowerCase(),t=>kR(t)===e),vR=e=>t=>typeof t===e,{isArray:gx}=Array,bp=vR("undefined");function jje(e){return e!==null&&!bp(e)&&e.constructor!==null&&!bp(e.constructor)&&ir(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const aee=Ka("ArrayBuffer");function Vje(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&aee(e.buffer),t}const Wje=vR("string"),ir=vR("function"),cee=vR("number"),PR=e=>e!==null&&typeof e=="object",fje=e=>e===!0||e===!1,_R=e=>{if(kR(e)!=="object")return!1;const t=xf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},bje=Ka("Date"),Nje=Ka("File"),Jje=Ka("Blob"),Tje=Ka("FileList"),zje=e=>PR(e)&&ir(e.pipe),Oje=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||ir(e.append)&&((t=kR(e))==="formdata"||t==="object"&&ir(e.toString)&&e.toString()==="[object FormData]"))},Hje=Ka("URLSearchParams"),[Xje,kje,vje,Pje]=["ReadableStream","Request","Response","Headers"].map(Ka),_je=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Np(e,t,{allOwnKeys:i=!1}={}){if(e===null||typeof e>"u")return;let o,n;if(typeof e!="object"&&(e=[e]),gx(e))for(o=0,n=e.length;o<n;o++)t.call(null,e[o],o,e);else{const s=i?Object.getOwnPropertyNames(e):Object.keys(e),l=s.length;let r;for(o=0;o<l;o++)r=s[o],t.call(null,e[r],r,e)}}function uee(e,t){t=t.toLowerCase();const i=Object.keys(e);let o=i.length,n;for(;o-- >0;)if(n=i[o],t===n.toLowerCase())return n;return null}const aM=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Aee=e=>!bp(e)&&e!==aM;function wf(){const{caseless:e}=Aee(this)&&this||{},t={},i=(o,n)=>{const s=e&&uee(t,n)||n;_R(t[s])&&_R(o)?t[s]=wf(t[s],o):_R(o)?t[s]=wf({},o):gx(o)?t[s]=o.slice():t[s]=o};for(let o=0,n=arguments.length;o<n;o++)arguments[o]&&Np(arguments[o],i);return t}const $je=(e,t,i,{allOwnKeys:o}={})=>(Np(t,(n,s)=>{i&&ir(n)?e[s]=ree(n,i):e[s]=n},{allOwnKeys:o}),e),eVe=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),tVe=(e,t,i,o)=>{e.prototype=Object.create(t.prototype,o),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),i&&Object.assign(e.prototype,i)},iVe=(e,t,i,o)=>{let n,s,l;const r={};if(t=t||{},e==null)return t;do{for(n=Object.getOwnPropertyNames(e),s=n.length;s-- >0;)l=n[s],(!o||o(l,e,t))&&!r[l]&&(t[l]=e[l],r[l]=!0);e=i!==!1&&xf(e)}while(e&&(!i||i(e,t))&&e!==Object.prototype);return t},oVe=(e,t,i)=>{e=String(e),(i===void 0||i>e.length)&&(i=e.length),i-=t.length;const o=e.indexOf(t,i);return o!==-1&&o===i},nVe=e=>{if(!e)return null;if(gx(e))return e;let t=e.length;if(!cee(t))return null;const i=new Array(t);for(;t-- >0;)i[t]=e[t];return i},sVe=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&xf(Uint8Array)),lVe=(e,t)=>{const o=(e&&e[Symbol.iterator]).call(e);let n;for(;(n=o.next())&&!n.done;){const s=n.value;t.call(e,s[0],s[1])}},rVe=(e,t)=>{let i;const o=[];for(;(i=e.exec(t))!==null;)o.push(i);return o},aVe=Ka("HTMLFormElement"),cVe=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(i,o,n){return o.toUpperCase()+n}),Eee=(({hasOwnProperty:e})=>(t,i)=>e.call(t,i))(Object.prototype),uVe=Ka("RegExp"),mee=(e,t)=>{const i=Object.getOwnPropertyDescriptors(e),o={};Np(i,(n,s)=>{let l;(l=t(n,s,e))!==!1&&(o[s]=l||n)}),Object.defineProperties(e,o)},AVe=e=>{mee(e,(t,i)=>{if(ir(e)&&["arguments","caller","callee"].indexOf(i)!==-1)return!1;const o=e[i];if(ir(o)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+i+"'")})}})},EVe=(e,t)=>{const i={},o=n=>{n.forEach(s=>{i[s]=!0})};return gx(e)?o(e):o(String(e).split(t)),i},mVe=()=>{},hVe=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Lf="abcdefghijklmnopqrstuvwxyz",hee="0123456789",Mee={DIGIT:hee,ALPHA:Lf,ALPHA_DIGIT:Lf+Lf.toUpperCase()+hee},MVe=(e=16,t=Mee.ALPHA_DIGIT)=>{let i="";const{length:o}=t;for(;e--;)i+=t[Math.random()*o|0];return i};function gVe(e){return!!(e&&ir(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const yVe=e=>{const t=new Array(10),i=(o,n)=>{if(PR(o)){if(t.indexOf(o)>=0)return;if(!("toJSON"in o)){t[n]=o;const s=gx(o)?[]:{};return Np(o,(l,r)=>{const a=i(l,n+1);!bp(a)&&(s[r]=a)}),t[n]=void 0,s}}return o};return i(e,0)},xVe=Ka("AsyncFunction"),wVe=e=>e&&(PR(e)||ir(e))&&ir(e.then)&&ir(e.catch),gee=((e,t)=>e?setImmediate:t?((i,o)=>(aM.addEventListener("message",({source:n,data:s})=>{n===aM&&s===i&&o.length&&o.shift()()},!1),n=>{o.push(n),aM.postMessage(i,"*")}))(`axios@${Math.random()}`,[]):i=>setTimeout(i))(typeof setImmediate=="function",ir(aM.postMessage)),LVe=typeof queueMicrotask<"u"?queueMicrotask.bind(aM):typeof process<"u"&&process.nextTick||gee,qe={isArray:gx,isArrayBuffer:aee,isBuffer:jje,isFormData:Oje,isArrayBufferView:Vje,isString:Wje,isNumber:cee,isBoolean:fje,isObject:PR,isPlainObject:_R,isReadableStream:Xje,isRequest:kje,isResponse:vje,isHeaders:Pje,isUndefined:bp,isDate:bje,isFile:Nje,isBlob:Jje,isRegExp:uVe,isFunction:ir,isStream:zje,isURLSearchParams:Hje,isTypedArray:sVe,isFileList:Tje,forEach:Np,merge:wf,extend:$je,trim:_je,stripBOM:eVe,inherits:tVe,toFlatObject:iVe,kindOf:kR,kindOfTest:Ka,endsWith:oVe,toArray:nVe,forEachEntry:lVe,matchAll:rVe,isHTMLForm:aVe,hasOwnProperty:Eee,hasOwnProp:Eee,reduceDescriptors:mee,freezeMethods:AVe,toObjectSet:EVe,toCamelCase:cVe,noop:mVe,toFiniteNumber:hVe,findKey:uee,global:aM,isContextDefined:Aee,ALPHABET:Mee,generateString:MVe,isSpecCompliantForm:gVe,toJSONObject:yVe,isAsyncFn:xVe,isThenable:wVe,setImmediate:gee,asap:LVe};function kt(e,t,i,o,n){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),i&&(this.config=i),o&&(this.request=o),n&&(this.response=n,this.status=n.status?n.status:null)}qe.inherits(kt,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:qe.toJSONObject(this.config),code:this.code,status:this.status}}});const yee=kt.prototype,xee={};["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=>{xee[e]={value:e}}),Object.defineProperties(kt,xee),Object.defineProperty(yee,"isAxiosError",{value:!0}),kt.from=(e,t,i,o,n,s)=>{const l=Object.create(yee);return qe.toFlatObject(e,l,function(a){return a!==Error.prototype},r=>r!=="isAxiosError"),kt.call(l,e.message,t,i,o,n),l.cause=e,l.name=e.name,s&&Object.assign(l,s),l};const YVe=null;function Yf(e){return qe.isPlainObject(e)||qe.isArray(e)}function wee(e){return qe.endsWith(e,"[]")?e.slice(0,-2):e}function Lee(e,t,i){return e?e.concat(t).map(function(n,s){return n=wee(n),!i&&s?"["+n+"]":n}).join(i?".":""):t}function pVe(e){return qe.isArray(e)&&!e.some(Yf)}const IVe=qe.toFlatObject(qe,{},null,function(t){return/^is[A-Z]/.test(t)});function $R(e,t,i){if(!qe.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,i=qe.toFlatObject(i,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,M){return!qe.isUndefined(M[g])});const o=i.metaTokens,n=i.visitor||u,s=i.dots,l=i.indexes,a=(i.Blob||typeof Blob<"u"&&Blob)&&qe.isSpecCompliantForm(t);if(!qe.isFunction(n))throw new TypeError("visitor must be a function");function c(h){if(h===null)return"";if(qe.isDate(h))return h.toISOString();if(!a&&qe.isBlob(h))throw new kt("Blob is not supported. Use a Buffer instead.");return qe.isArrayBuffer(h)||qe.isTypedArray(h)?a&&typeof Blob=="function"?new Blob([h]):Buffer.from(h):h}function u(h,g,M){let y=h;if(h&&!M&&typeof h=="object"){if(qe.endsWith(g,"{}"))g=o?g:g.slice(0,-2),h=JSON.stringify(h);else if(qe.isArray(h)&&pVe(h)||(qe.isFileList(h)||qe.endsWith(g,"[]"))&&(y=qe.toArray(h)))return g=wee(g),y.forEach(function(w,L){!(qe.isUndefined(w)||w===null)&&t.append(l===!0?Lee([g],L,s):l===null?g:g+"[]",c(w))}),!1}return Yf(h)?!0:(t.append(Lee(M,g,s),c(h)),!1)}const A=[],E=Object.assign(IVe,{defaultVisitor:u,convertValue:c,isVisitable:Yf});function m(h,g){if(!qe.isUndefined(h)){if(A.indexOf(h)!==-1)throw Error("Circular reference detected in "+g.join("."));A.push(h),qe.forEach(h,function(y,x){(!(qe.isUndefined(y)||y===null)&&n.call(t,y,qe.isString(x)?x.trim():x,g,E))===!0&&m(y,g?g.concat(x):[x])}),A.pop()}}if(!qe.isObject(e))throw new TypeError("data must be an object");return m(e),t}function Yee(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(o){return t[o]})}function pf(e,t){this._pairs=[],e&&$R(e,this,t)}const pee=pf.prototype;pee.append=function(t,i){this._pairs.push([t,i])},pee.toString=function(t){const i=t?function(o){return t.call(this,o,Yee)}:Yee;return this._pairs.map(function(n){return i(n[0])+"="+i(n[1])},"").join("&")};function CVe(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Iee(e,t,i){if(!t)return e;const o=i&&i.encode||CVe;qe.isFunction(i)&&(i={serialize:i});const n=i&&i.serialize;let s;if(n?s=n(t,i):s=qe.isURLSearchParams(t)?t.toString():new pf(t,i).toString(o),s){const l=e.indexOf("#");l!==-1&&(e=e.slice(0,l)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class Cee{constructor(){this.handlers=[]}use(t,i,o){return this.handlers.push({fulfilled:t,rejected:i,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){qe.forEach(this.handlers,function(o){o!==null&&t(o)})}}const dee={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},dVe={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:pf,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},If=typeof window<"u"&&typeof document<"u",Cf=typeof navigator=="object"&&navigator||void 0,UVe=If&&(!Cf||["ReactNative","NativeScript","NS"].indexOf(Cf.product)<0),FVe=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",GVe=If&&window.location.href||"http://localhost",Bs={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:If,hasStandardBrowserEnv:UVe,hasStandardBrowserWebWorkerEnv:FVe,navigator:Cf,origin:GVe},Symbol.toStringTag,{value:"Module"})),...dVe};function RVe(e,t){return $R(e,new Bs.classes.URLSearchParams,Object.assign({visitor:function(i,o,n,s){return Bs.isNode&&qe.isBuffer(i)?(this.append(o,i.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},t))}function BVe(e){return qe.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function DVe(e){const t={},i=Object.keys(e);let o;const n=i.length;let s;for(o=0;o<n;o++)s=i[o],t[s]=e[s];return t}function Uee(e){function t(i,o,n,s){let l=i[s++];if(l==="__proto__")return!0;const r=Number.isFinite(+l),a=s>=i.length;return l=!l&&qe.isArray(n)?n.length:l,a?(qe.hasOwnProp(n,l)?n[l]=[n[l],o]:n[l]=o,!r):((!n[l]||!qe.isObject(n[l]))&&(n[l]=[]),t(i,o,n[l],s)&&qe.isArray(n[l])&&(n[l]=DVe(n[l])),!r)}if(qe.isFormData(e)&&qe.isFunction(e.entries)){const i={};return qe.forEachEntry(e,(o,n)=>{t(BVe(o),n,i,0)}),i}return null}function ZVe(e,t,i){if(qe.isString(e))try{return(t||JSON.parse)(e),qe.trim(e)}catch(o){if(o.name!=="SyntaxError")throw o}return(0,JSON.stringify)(e)}const Jp={transitional:dee,adapter:["xhr","http","fetch"],transformRequest:[function(t,i){const o=i.getContentType()||"",n=o.indexOf("application/json")>-1,s=qe.isObject(t);if(s&&qe.isHTMLForm(t)&&(t=new FormData(t)),qe.isFormData(t))return n?JSON.stringify(Uee(t)):t;if(qe.isArrayBuffer(t)||qe.isBuffer(t)||qe.isStream(t)||qe.isFile(t)||qe.isBlob(t)||qe.isReadableStream(t))return t;if(qe.isArrayBufferView(t))return t.buffer;if(qe.isURLSearchParams(t))return i.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let r;if(s){if(o.indexOf("application/x-www-form-urlencoded")>-1)return RVe(t,this.formSerializer).toString();if((r=qe.isFileList(t))||o.indexOf("multipart/form-data")>-1){const a=this.env&&this.env.FormData;return $R(r?{"files[]":t}:t,a&&new a,this.formSerializer)}}return s||n?(i.setContentType("application/json",!1),ZVe(t)):t}],transformResponse:[function(t){const i=this.transitional||Jp.transitional,o=i&&i.forcedJSONParsing,n=this.responseType==="json";if(qe.isResponse(t)||qe.isReadableStream(t))return t;if(t&&qe.isString(t)&&(o&&!this.responseType||n)){const l=!(i&&i.silentJSONParsing)&&n;try{return JSON.parse(t)}catch(r){if(l)throw r.name==="SyntaxError"?kt.from(r,kt.ERR_BAD_RESPONSE,this,null,this.response):r}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Bs.classes.FormData,Blob:Bs.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};qe.forEach(["delete","get","head","post","put","patch"],e=>{Jp.headers[e]={}});const qVe=qe.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"]),KVe=e=>{const t={};let i,o,n;return e&&e.split(`
|
|
43
|
+
**/function Bje(){u$()}process.env.NODE_ENV!=="production"&&Bje();const iee=Object.assign({name:"DwTestBtn"},{setup(e){const t=Mt({btnName:""}),i=()=>{t.value.btnName=new Date};return(o,n)=>{const s=D("el-button");return R(),S(Ke,null,[n[1]||(n[1]=C("div",null,"我的DW Test BTN V2",-1)),I(s,{onClick:i},{default:F(()=>n[0]||(n[0]=[v("当前时间")])),_:1}),C("div",null,Q(t.value.btnName),1),n[2]||(n[2]=C("button",{type:"primary"},"我的ELBTN Primary",-1))],64)}}}),de=(e,t)=>{const i=e.__vccOpts||e;for(const[o,n]of t)i[o]=n;return i},Dje={name:"DwAnswerMessageBody"};function Zje(e,t,i,o,n,s){return R(),S("div",null,"答卷成功")}const oee=de(Dje,[["render",Zje]]),ms=[];for(let e=0;e<256;++e)ms.push((e+256).toString(16).slice(1));function qje(e,t=0){return(ms[e[t+0]]+ms[e[t+1]]+ms[e[t+2]]+ms[e[t+3]]+"-"+ms[e[t+4]]+ms[e[t+5]]+"-"+ms[e[t+6]]+ms[e[t+7]]+"-"+ms[e[t+8]]+ms[e[t+9]]+"-"+ms[e[t+10]]+ms[e[t+11]]+ms[e[t+12]]+ms[e[t+13]]+ms[e[t+14]]+ms[e[t+15]]).toLowerCase()}let gf;const Kje=new Uint8Array(16);function Sje(){if(!gf){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");gf=crypto.getRandomValues.bind(crypto)}return gf(Kje)}const nee={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function mo(e,t,i){if(nee.randomUUID&&!t&&!e)return nee.randomUUID();e=e||{};const o=e.random||(e.rng||Sje)();return o[6]=o[6]&15|64,o[8]=o[8]&63|128,qje(o)}const yf={sysThemeStyle:{dwPrimaryBgColor:"#064b91",dwPrimaryBgColorActive:"#043c75",dwPrimaryBgColorHover:"#083c75",dwPrimaryTextColorActive:"#0b72dc",dwPrimaryButtonThemeColor:"#0b72dc",dwPrimaryButtonToolbarThemeColor:"#0b63bd",dwPrimaryButtonBgColor6:"#b5d8fc",dwPrimaryThemeColor:"#064b91",dwPrimaryThemeColorDark2:"#043567",dwPrimaryThemeColorlight3:"#0e60b4",dwPrimaryThemeColorlight5:"#196fc7",dwPrimaryThemeColorlight7:"#3985d7",dwPrimaryThemeColorlight8:"#62a4e8",dwPrimaryThemeColorlight9:"#b2cff1",dwHeaderBgColor:null,dwHeaderTextColor:null,dwHeaderMenuBgColor:null,dwHeaderMenuTextColor:null,dwHeaderMenuActiveTextColor:null,dwHeaderMenuHoverBgColor:null,dwLeftMenuBgColor:null,dwLeftMenuTextColor:null,dwLeftMenuActiveTextColor:null,dwLeftMenuHoverBgColor:null},answerThemeStyle:{dwAnswerPageBgColor:"#eeeeee",dwAnswerPrimaryColor:"#064b91",dwAnswerPrimaryColor1:"#033e75",dwAnswerLogoBgColor:"#0b72dc",dwAnswerProgressColor:"#0b63bd"}},AE={rgbToHex(e){if(e!=null){const t=e.replace("rgb","").replace("(","").replace(")","").split(","),i=parseInt(t[0]).toString(16),o=parseInt(t[1]).toString(16),n=parseInt(t[2]).toString(16);return"#"+i+o+n}return null},hexToRgb(e){if(e!=null){const t=e.replace("#","");if(t.length%3)return"hex格式不正确!";const i=t.length/3,o=6/t.length,n=parseInt("0x"+t.substring(0,i))**o,s=parseInt("0x"+t.substring(i,2*i))**o,l=parseInt("0x"+t.substring(2*i))**o;return`rgb(${n}, ${s}, ${l})`}return null},rgbToHsl(e,t,i){e/=255,t/=255,i/=255;const o=Math.max(e,t,i),n=Math.min(e,t,i);let s=(o+n)/2,l=(o+n)/2;const r=(o+n)/2;if(o===n)s=l=0;else{const a=o-n;switch(l=r>.5?a/(2-o-n):a/(o+n),o){case e:s=(t-i)/a+(t<i?6:0);break;case t:s=(i-e)/a+2;break;case i:s=(e-t)/a+4;break}s/=6}return[s,l,r]},generateSimilarColor(e,t,i,o){const n=(A,E,m,h,g)=>(E+=h,m+=g,m=m*100,!o&&m>100&&(m=98),`hsl(${A*360}, ${E*100}%, ${m}%)`),[s,l,r]=e.match(/\d+/g).map(Number),[a,c,u]=this.rgbToHsl(s,l,r);return n(a,c,u,t,i)},isWhiteColor(e){const t=[e.red,e.green,e.blue].map(o=>o/255);console.debug("rgb",t);const i=.95;return t.every(o=>o>i)},hslToRgb(e,t,i){function o(c,u,A){return A<0&&(A+=1),A>1&&(A-=1),A<1/6?c+(u-c)*6*A:A<1/2?u:A<2/3?c+(u-c)*(2/3-A)*6:c}const n=i<.5?i*(1+t):i+t-i*t,s=2*i-n,l=o(s,n,e+1/3),r=o(s,n,e),a=o(s,n,e-1/3);return[Math.round(l*255),Math.round(r*255),Math.round(a*255)]}};function see(){const e=yf.answerThemeStyle;return{pageTopImg:{enabled:!1,src:null,httpSrc:null},pageBgImg:{enabled:!1,src:null,httpSrc:null},logoImg:{enabled:!1,src:null,httpSrc:null,position:"topLogoRight"},pageBgColor:e.dwAnswerPageBgColor,pageThemeColor:e.dwAnswerPrimaryColor,pageThemeColor1:e.dwAnswerPrimaryColor1,logoBgColor:e.dwAnswerLogoBgColor,progressColor:e.dwAnswerProgressColor,showQuNum:!0,showProgressbar:!0,showPageHeader:!0,showQuTypeName:!0,showSurveyTitle:!0,showSurveyNote:!0,showQuScoreNum:!1}}function lee(e,t){return Array.from({length:t-e+1},(i,o)=>e+o)}function ree(e,t){return function(){return e.apply(t,arguments)}}const{toString:Qje}=Object.prototype,{getPrototypeOf:xf}=Object,kR=(e=>t=>{const i=Qje.call(t);return e[i]||(e[i]=i.slice(8,-1).toLowerCase())})(Object.create(null)),Ka=e=>(e=e.toLowerCase(),t=>kR(t)===e),vR=e=>t=>typeof t===e,{isArray:gx}=Array,bp=vR("undefined");function jje(e){return e!==null&&!bp(e)&&e.constructor!==null&&!bp(e.constructor)&&ir(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const aee=Ka("ArrayBuffer");function Vje(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&aee(e.buffer),t}const Wje=vR("string"),ir=vR("function"),cee=vR("number"),PR=e=>e!==null&&typeof e=="object",fje=e=>e===!0||e===!1,_R=e=>{if(kR(e)!=="object")return!1;const t=xf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},bje=Ka("Date"),Nje=Ka("File"),Jje=Ka("Blob"),Tje=Ka("FileList"),zje=e=>PR(e)&&ir(e.pipe),Oje=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||ir(e.append)&&((t=kR(e))==="formdata"||t==="object"&&ir(e.toString)&&e.toString()==="[object FormData]"))},Hje=Ka("URLSearchParams"),[Xje,kje,vje,Pje]=["ReadableStream","Request","Response","Headers"].map(Ka),_je=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Np(e,t,{allOwnKeys:i=!1}={}){if(e===null||typeof e>"u")return;let o,n;if(typeof e!="object"&&(e=[e]),gx(e))for(o=0,n=e.length;o<n;o++)t.call(null,e[o],o,e);else{const s=i?Object.getOwnPropertyNames(e):Object.keys(e),l=s.length;let r;for(o=0;o<l;o++)r=s[o],t.call(null,e[r],r,e)}}function uee(e,t){t=t.toLowerCase();const i=Object.keys(e);let o=i.length,n;for(;o-- >0;)if(n=i[o],t===n.toLowerCase())return n;return null}const aM=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Aee=e=>!bp(e)&&e!==aM;function wf(){const{caseless:e}=Aee(this)&&this||{},t={},i=(o,n)=>{const s=e&&uee(t,n)||n;_R(t[s])&&_R(o)?t[s]=wf(t[s],o):_R(o)?t[s]=wf({},o):gx(o)?t[s]=o.slice():t[s]=o};for(let o=0,n=arguments.length;o<n;o++)arguments[o]&&Np(arguments[o],i);return t}const $je=(e,t,i,{allOwnKeys:o}={})=>(Np(t,(n,s)=>{i&&ir(n)?e[s]=ree(n,i):e[s]=n},{allOwnKeys:o}),e),eVe=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),tVe=(e,t,i,o)=>{e.prototype=Object.create(t.prototype,o),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),i&&Object.assign(e.prototype,i)},iVe=(e,t,i,o)=>{let n,s,l;const r={};if(t=t||{},e==null)return t;do{for(n=Object.getOwnPropertyNames(e),s=n.length;s-- >0;)l=n[s],(!o||o(l,e,t))&&!r[l]&&(t[l]=e[l],r[l]=!0);e=i!==!1&&xf(e)}while(e&&(!i||i(e,t))&&e!==Object.prototype);return t},oVe=(e,t,i)=>{e=String(e),(i===void 0||i>e.length)&&(i=e.length),i-=t.length;const o=e.indexOf(t,i);return o!==-1&&o===i},nVe=e=>{if(!e)return null;if(gx(e))return e;let t=e.length;if(!cee(t))return null;const i=new Array(t);for(;t-- >0;)i[t]=e[t];return i},sVe=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&xf(Uint8Array)),lVe=(e,t)=>{const o=(e&&e[Symbol.iterator]).call(e);let n;for(;(n=o.next())&&!n.done;){const s=n.value;t.call(e,s[0],s[1])}},rVe=(e,t)=>{let i;const o=[];for(;(i=e.exec(t))!==null;)o.push(i);return o},aVe=Ka("HTMLFormElement"),cVe=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(i,o,n){return o.toUpperCase()+n}),Eee=(({hasOwnProperty:e})=>(t,i)=>e.call(t,i))(Object.prototype),uVe=Ka("RegExp"),mee=(e,t)=>{const i=Object.getOwnPropertyDescriptors(e),o={};Np(i,(n,s)=>{let l;(l=t(n,s,e))!==!1&&(o[s]=l||n)}),Object.defineProperties(e,o)},AVe=e=>{mee(e,(t,i)=>{if(ir(e)&&["arguments","caller","callee"].indexOf(i)!==-1)return!1;const o=e[i];if(ir(o)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+i+"'")})}})},EVe=(e,t)=>{const i={},o=n=>{n.forEach(s=>{i[s]=!0})};return gx(e)?o(e):o(String(e).split(t)),i},mVe=()=>{},hVe=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Lf="abcdefghijklmnopqrstuvwxyz",hee="0123456789",Mee={DIGIT:hee,ALPHA:Lf,ALPHA_DIGIT:Lf+Lf.toUpperCase()+hee},MVe=(e=16,t=Mee.ALPHA_DIGIT)=>{let i="";const{length:o}=t;for(;e--;)i+=t[Math.random()*o|0];return i};function gVe(e){return!!(e&&ir(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const yVe=e=>{const t=new Array(10),i=(o,n)=>{if(PR(o)){if(t.indexOf(o)>=0)return;if(!("toJSON"in o)){t[n]=o;const s=gx(o)?[]:{};return Np(o,(l,r)=>{const a=i(l,n+1);!bp(a)&&(s[r]=a)}),t[n]=void 0,s}}return o};return i(e,0)},xVe=Ka("AsyncFunction"),wVe=e=>e&&(PR(e)||ir(e))&&ir(e.then)&&ir(e.catch),gee=((e,t)=>e?setImmediate:t?((i,o)=>(aM.addEventListener("message",({source:n,data:s})=>{n===aM&&s===i&&o.length&&o.shift()()},!1),n=>{o.push(n),aM.postMessage(i,"*")}))(`axios@${Math.random()}`,[]):i=>setTimeout(i))(typeof setImmediate=="function",ir(aM.postMessage)),LVe=typeof queueMicrotask<"u"?queueMicrotask.bind(aM):typeof process<"u"&&process.nextTick||gee,qe={isArray:gx,isArrayBuffer:aee,isBuffer:jje,isFormData:Oje,isArrayBufferView:Vje,isString:Wje,isNumber:cee,isBoolean:fje,isObject:PR,isPlainObject:_R,isReadableStream:Xje,isRequest:kje,isResponse:vje,isHeaders:Pje,isUndefined:bp,isDate:bje,isFile:Nje,isBlob:Jje,isRegExp:uVe,isFunction:ir,isStream:zje,isURLSearchParams:Hje,isTypedArray:sVe,isFileList:Tje,forEach:Np,merge:wf,extend:$je,trim:_je,stripBOM:eVe,inherits:tVe,toFlatObject:iVe,kindOf:kR,kindOfTest:Ka,endsWith:oVe,toArray:nVe,forEachEntry:lVe,matchAll:rVe,isHTMLForm:aVe,hasOwnProperty:Eee,hasOwnProp:Eee,reduceDescriptors:mee,freezeMethods:AVe,toObjectSet:EVe,toCamelCase:cVe,noop:mVe,toFiniteNumber:hVe,findKey:uee,global:aM,isContextDefined:Aee,ALPHABET:Mee,generateString:MVe,isSpecCompliantForm:gVe,toJSONObject:yVe,isAsyncFn:xVe,isThenable:wVe,setImmediate:gee,asap:LVe};function kt(e,t,i,o,n){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),i&&(this.config=i),o&&(this.request=o),n&&(this.response=n,this.status=n.status?n.status:null)}qe.inherits(kt,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:qe.toJSONObject(this.config),code:this.code,status:this.status}}});const yee=kt.prototype,xee={};["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=>{xee[e]={value:e}}),Object.defineProperties(kt,xee),Object.defineProperty(yee,"isAxiosError",{value:!0}),kt.from=(e,t,i,o,n,s)=>{const l=Object.create(yee);return qe.toFlatObject(e,l,function(a){return a!==Error.prototype},r=>r!=="isAxiosError"),kt.call(l,e.message,t,i,o,n),l.cause=e,l.name=e.name,s&&Object.assign(l,s),l};const YVe=null;function Yf(e){return qe.isPlainObject(e)||qe.isArray(e)}function wee(e){return qe.endsWith(e,"[]")?e.slice(0,-2):e}function Lee(e,t,i){return e?e.concat(t).map(function(n,s){return n=wee(n),!i&&s?"["+n+"]":n}).join(i?".":""):t}function pVe(e){return qe.isArray(e)&&!e.some(Yf)}const IVe=qe.toFlatObject(qe,{},null,function(t){return/^is[A-Z]/.test(t)});function $R(e,t,i){if(!qe.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,i=qe.toFlatObject(i,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,M){return!qe.isUndefined(M[g])});const o=i.metaTokens,n=i.visitor||u,s=i.dots,l=i.indexes,a=(i.Blob||typeof Blob<"u"&&Blob)&&qe.isSpecCompliantForm(t);if(!qe.isFunction(n))throw new TypeError("visitor must be a function");function c(h){if(h===null)return"";if(qe.isDate(h))return h.toISOString();if(!a&&qe.isBlob(h))throw new kt("Blob is not supported. Use a Buffer instead.");return qe.isArrayBuffer(h)||qe.isTypedArray(h)?a&&typeof Blob=="function"?new Blob([h]):Buffer.from(h):h}function u(h,g,M){let y=h;if(h&&!M&&typeof h=="object"){if(qe.endsWith(g,"{}"))g=o?g:g.slice(0,-2),h=JSON.stringify(h);else if(qe.isArray(h)&&pVe(h)||(qe.isFileList(h)||qe.endsWith(g,"[]"))&&(y=qe.toArray(h)))return g=wee(g),y.forEach(function(w,L){!(qe.isUndefined(w)||w===null)&&t.append(l===!0?Lee([g],L,s):l===null?g:g+"[]",c(w))}),!1}return Yf(h)?!0:(t.append(Lee(M,g,s),c(h)),!1)}const A=[],E=Object.assign(IVe,{defaultVisitor:u,convertValue:c,isVisitable:Yf});function m(h,g){if(!qe.isUndefined(h)){if(A.indexOf(h)!==-1)throw Error("Circular reference detected in "+g.join("."));A.push(h),qe.forEach(h,function(y,x){(!(qe.isUndefined(y)||y===null)&&n.call(t,y,qe.isString(x)?x.trim():x,g,E))===!0&&m(y,g?g.concat(x):[x])}),A.pop()}}if(!qe.isObject(e))throw new TypeError("data must be an object");return m(e),t}function Yee(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(o){return t[o]})}function pf(e,t){this._pairs=[],e&&$R(e,this,t)}const pee=pf.prototype;pee.append=function(t,i){this._pairs.push([t,i])},pee.toString=function(t){const i=t?function(o){return t.call(this,o,Yee)}:Yee;return this._pairs.map(function(n){return i(n[0])+"="+i(n[1])},"").join("&")};function CVe(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Iee(e,t,i){if(!t)return e;const o=i&&i.encode||CVe;qe.isFunction(i)&&(i={serialize:i});const n=i&&i.serialize;let s;if(n?s=n(t,i):s=qe.isURLSearchParams(t)?t.toString():new pf(t,i).toString(o),s){const l=e.indexOf("#");l!==-1&&(e=e.slice(0,l)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class Cee{constructor(){this.handlers=[]}use(t,i,o){return this.handlers.push({fulfilled:t,rejected:i,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){qe.forEach(this.handlers,function(o){o!==null&&t(o)})}}const dee={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},dVe={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:pf,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},If=typeof window<"u"&&typeof document<"u",Cf=typeof navigator=="object"&&navigator||void 0,UVe=If&&(!Cf||["ReactNative","NativeScript","NS"].indexOf(Cf.product)<0),FVe=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",GVe=If&&window.location.href||"http://localhost",Bs={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:If,hasStandardBrowserEnv:UVe,hasStandardBrowserWebWorkerEnv:FVe,navigator:Cf,origin:GVe},Symbol.toStringTag,{value:"Module"})),...dVe};function RVe(e,t){return $R(e,new Bs.classes.URLSearchParams,Object.assign({visitor:function(i,o,n,s){return Bs.isNode&&qe.isBuffer(i)?(this.append(o,i.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},t))}function BVe(e){return qe.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function DVe(e){const t={},i=Object.keys(e);let o;const n=i.length;let s;for(o=0;o<n;o++)s=i[o],t[s]=e[s];return t}function Uee(e){function t(i,o,n,s){let l=i[s++];if(l==="__proto__")return!0;const r=Number.isFinite(+l),a=s>=i.length;return l=!l&&qe.isArray(n)?n.length:l,a?(qe.hasOwnProp(n,l)?n[l]=[n[l],o]:n[l]=o,!r):((!n[l]||!qe.isObject(n[l]))&&(n[l]=[]),t(i,o,n[l],s)&&qe.isArray(n[l])&&(n[l]=DVe(n[l])),!r)}if(qe.isFormData(e)&&qe.isFunction(e.entries)){const i={};return qe.forEachEntry(e,(o,n)=>{t(BVe(o),n,i,0)}),i}return null}function ZVe(e,t,i){if(qe.isString(e))try{return(t||JSON.parse)(e),qe.trim(e)}catch(o){if(o.name!=="SyntaxError")throw o}return(0,JSON.stringify)(e)}const Jp={transitional:dee,adapter:["xhr","http","fetch"],transformRequest:[function(t,i){const o=i.getContentType()||"",n=o.indexOf("application/json")>-1,s=qe.isObject(t);if(s&&qe.isHTMLForm(t)&&(t=new FormData(t)),qe.isFormData(t))return n?JSON.stringify(Uee(t)):t;if(qe.isArrayBuffer(t)||qe.isBuffer(t)||qe.isStream(t)||qe.isFile(t)||qe.isBlob(t)||qe.isReadableStream(t))return t;if(qe.isArrayBufferView(t))return t.buffer;if(qe.isURLSearchParams(t))return i.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let r;if(s){if(o.indexOf("application/x-www-form-urlencoded")>-1)return RVe(t,this.formSerializer).toString();if((r=qe.isFileList(t))||o.indexOf("multipart/form-data")>-1){const a=this.env&&this.env.FormData;return $R(r?{"files[]":t}:t,a&&new a,this.formSerializer)}}return s||n?(i.setContentType("application/json",!1),ZVe(t)):t}],transformResponse:[function(t){const i=this.transitional||Jp.transitional,o=i&&i.forcedJSONParsing,n=this.responseType==="json";if(qe.isResponse(t)||qe.isReadableStream(t))return t;if(t&&qe.isString(t)&&(o&&!this.responseType||n)){const l=!(i&&i.silentJSONParsing)&&n;try{return JSON.parse(t)}catch(r){if(l)throw r.name==="SyntaxError"?kt.from(r,kt.ERR_BAD_RESPONSE,this,null,this.response):r}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Bs.classes.FormData,Blob:Bs.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};qe.forEach(["delete","get","head","post","put","patch"],e=>{Jp.headers[e]={}});const qVe=qe.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"]),KVe=e=>{const t={};let i,o,n;return e&&e.split(`
|
|
44
44
|
`).forEach(function(l){n=l.indexOf(":"),i=l.substring(0,n).trim().toLowerCase(),o=l.substring(n+1).trim(),!(!i||t[i]&&qVe[i])&&(i==="set-cookie"?t[i]?t[i].push(o):t[i]=[o]:t[i]=t[i]?t[i]+", "+o:o)}),t},Fee=Symbol("internals");function Tp(e){return e&&String(e).trim().toLowerCase()}function eB(e){return e===!1||e==null?e:qe.isArray(e)?e.map(eB):String(e)}function SVe(e){const t=Object.create(null),i=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let o;for(;o=i.exec(e);)t[o[1]]=o[2];return t}const QVe=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function df(e,t,i,o,n){if(qe.isFunction(o))return o.call(this,t,i);if(n&&(t=i),!!qe.isString(t)){if(qe.isString(o))return t.indexOf(o)!==-1;if(qe.isRegExp(o))return o.test(t)}}function jVe(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,i,o)=>i.toUpperCase()+o)}function VVe(e,t){const i=qe.toCamelCase(" "+t);["get","set","has"].forEach(o=>{Object.defineProperty(e,o+i,{value:function(n,s,l){return this[o].call(this,t,n,s,l)},configurable:!0})})}class dl{constructor(t){t&&this.set(t)}set(t,i,o){const n=this;function s(r,a,c){const u=Tp(a);if(!u)throw new Error("header name must be a non-empty string");const A=qe.findKey(n,u);(!A||n[A]===void 0||c===!0||c===void 0&&n[A]!==!1)&&(n[A||a]=eB(r))}const l=(r,a)=>qe.forEach(r,(c,u)=>s(c,u,a));if(qe.isPlainObject(t)||t instanceof this.constructor)l(t,i);else if(qe.isString(t)&&(t=t.trim())&&!QVe(t))l(KVe(t),i);else if(qe.isHeaders(t))for(const[r,a]of t.entries())s(a,r,o);else t!=null&&s(i,t,o);return this}get(t,i){if(t=Tp(t),t){const o=qe.findKey(this,t);if(o){const n=this[o];if(!i)return n;if(i===!0)return SVe(n);if(qe.isFunction(i))return i.call(this,n,o);if(qe.isRegExp(i))return i.exec(n);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,i){if(t=Tp(t),t){const o=qe.findKey(this,t);return!!(o&&this[o]!==void 0&&(!i||df(this,this[o],o,i)))}return!1}delete(t,i){const o=this;let n=!1;function s(l){if(l=Tp(l),l){const r=qe.findKey(o,l);r&&(!i||df(o,o[r],r,i))&&(delete o[r],n=!0)}}return qe.isArray(t)?t.forEach(s):s(t),n}clear(t){const i=Object.keys(this);let o=i.length,n=!1;for(;o--;){const s=i[o];(!t||df(this,this[s],s,t,!0))&&(delete this[s],n=!0)}return n}normalize(t){const i=this,o={};return qe.forEach(this,(n,s)=>{const l=qe.findKey(o,s);if(l){i[l]=eB(n),delete i[s];return}const r=t?jVe(s):String(s).trim();r!==s&&delete i[s],i[r]=eB(n),o[r]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const i=Object.create(null);return qe.forEach(this,(o,n)=>{o!=null&&o!==!1&&(i[n]=t&&qe.isArray(o)?o.join(", "):o)}),i}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,i])=>t+": "+i).join(`
|
|
45
45
|
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...i){const o=new this(t);return i.forEach(n=>o.set(n)),o}static accessor(t){const o=(this[Fee]=this[Fee]={accessors:{}}).accessors,n=this.prototype;function s(l){const r=Tp(l);o[r]||(VVe(n,l),o[r]=!0)}return qe.isArray(t)?t.forEach(s):s(t),this}}dl.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),qe.reduceDescriptors(dl.prototype,({value:e},t)=>{let i=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(o){this[i]=o}}}),qe.freezeMethods(dl);function Uf(e,t){const i=this||Jp,o=t||i,n=dl.from(o.headers);let s=o.data;return qe.forEach(e,function(r){s=r.call(i,s,n.normalize(),t?t.status:void 0)}),n.normalize(),s}function Gee(e){return!!(e&&e.__CANCEL__)}function yx(e,t,i){kt.call(this,e??"canceled",kt.ERR_CANCELED,t,i),this.name="CanceledError"}qe.inherits(yx,kt,{__CANCEL__:!0});function Ree(e,t,i){const o=i.config.validateStatus;!i.status||!o||o(i.status)?e(i):t(new kt("Request failed with status code "+i.status,[kt.ERR_BAD_REQUEST,kt.ERR_BAD_RESPONSE][Math.floor(i.status/100)-4],i.config,i.request,i))}function WVe(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function fVe(e,t){e=e||10;const i=new Array(e),o=new Array(e);let n=0,s=0,l;return t=t!==void 0?t:1e3,function(a){const c=Date.now(),u=o[s];l||(l=c),i[n]=a,o[n]=c;let A=s,E=0;for(;A!==n;)E+=i[A++],A=A%e;if(n=(n+1)%e,n===s&&(s=(s+1)%e),c-l<t)return;const m=u&&c-u;return m?Math.round(E*1e3/m):void 0}}function bVe(e,t){let i=0,o=1e3/t,n,s;const l=(c,u=Date.now())=>{i=u,n=null,s&&(clearTimeout(s),s=null),e.apply(null,c)};return[(...c)=>{const u=Date.now(),A=u-i;A>=o?l(c,u):(n=c,s||(s=setTimeout(()=>{s=null,l(n)},o-A)))},()=>n&&l(n)]}const tB=(e,t,i=3)=>{let o=0;const n=fVe(50,250);return bVe(s=>{const l=s.loaded,r=s.lengthComputable?s.total:void 0,a=l-o,c=n(a),u=l<=r;o=l;const A={loaded:l,total:r,progress:r?l/r:void 0,bytes:a,rate:c||void 0,estimated:c&&r&&u?(r-l)/c:void 0,event:s,lengthComputable:r!=null,[t?"download":"upload"]:!0};e(A)},i)},Bee=(e,t)=>{const i=e!=null;return[o=>t[0]({lengthComputable:i,total:e,loaded:o}),t[1]]},Dee=e=>(...t)=>qe.asap(()=>e(...t)),NVe=Bs.hasStandardBrowserEnv?((e,t)=>i=>(i=new URL(i,Bs.origin),e.protocol===i.protocol&&e.host===i.host&&(t||e.port===i.port)))(new URL(Bs.origin),Bs.navigator&&/(msie|trident)/i.test(Bs.navigator.userAgent)):()=>!0,JVe=Bs.hasStandardBrowserEnv?{write(e,t,i,o,n,s){const l=[e+"="+encodeURIComponent(t)];qe.isNumber(i)&&l.push("expires="+new Date(i).toGMTString()),qe.isString(o)&&l.push("path="+o),qe.isString(n)&&l.push("domain="+n),s===!0&&l.push("secure"),document.cookie=l.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 TVe(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function zVe(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Zee(e,t){return e&&!TVe(t)?zVe(e,t):t}const qee=e=>e instanceof dl?{...e}:e;function cM(e,t){t=t||{};const i={};function o(c,u,A,E){return qe.isPlainObject(c)&&qe.isPlainObject(u)?qe.merge.call({caseless:E},c,u):qe.isPlainObject(u)?qe.merge({},u):qe.isArray(u)?u.slice():u}function n(c,u,A,E){if(qe.isUndefined(u)){if(!qe.isUndefined(c))return o(void 0,c,A,E)}else return o(c,u,A,E)}function s(c,u){if(!qe.isUndefined(u))return o(void 0,u)}function l(c,u){if(qe.isUndefined(u)){if(!qe.isUndefined(c))return o(void 0,c)}else return o(void 0,u)}function r(c,u,A){if(A in t)return o(c,u);if(A in e)return o(void 0,c)}const a={url:s,method:s,data:s,baseURL:l,transformRequest:l,transformResponse:l,paramsSerializer:l,timeout:l,timeoutMessage:l,withCredentials:l,withXSRFToken: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:r,headers:(c,u,A)=>n(qee(c),qee(u),A,!0)};return qe.forEach(Object.keys(Object.assign({},e,t)),function(u){const A=a[u]||n,E=A(e[u],t[u],u);qe.isUndefined(E)&&A!==r||(i[u]=E)}),i}const Kee=e=>{const t=cM({},e);let{data:i,withXSRFToken:o,xsrfHeaderName:n,xsrfCookieName:s,headers:l,auth:r}=t;t.headers=l=dl.from(l),t.url=Iee(Zee(t.baseURL,t.url),e.params,e.paramsSerializer),r&&l.set("Authorization","Basic "+btoa((r.username||"")+":"+(r.password?unescape(encodeURIComponent(r.password)):"")));let a;if(qe.isFormData(i)){if(Bs.hasStandardBrowserEnv||Bs.hasStandardBrowserWebWorkerEnv)l.setContentType(void 0);else if((a=l.getContentType())!==!1){const[c,...u]=a?a.split(";").map(A=>A.trim()).filter(Boolean):[];l.setContentType([c||"multipart/form-data",...u].join("; "))}}if(Bs.hasStandardBrowserEnv&&(o&&qe.isFunction(o)&&(o=o(t)),o||o!==!1&&NVe(t.url))){const c=n&&s&&JVe.read(s);c&&l.set(n,c)}return t},OVe=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(i,o){const n=Kee(e);let s=n.data;const l=dl.from(n.headers).normalize();let{responseType:r,onUploadProgress:a,onDownloadProgress:c}=n,u,A,E,m,h;function g(){m&&m(),h&&h(),n.cancelToken&&n.cancelToken.unsubscribe(u),n.signal&&n.signal.removeEventListener("abort",u)}let M=new XMLHttpRequest;M.open(n.method.toUpperCase(),n.url,!0),M.timeout=n.timeout;function y(){if(!M)return;const w=dl.from("getAllResponseHeaders"in M&&M.getAllResponseHeaders()),Y={data:!r||r==="text"||r==="json"?M.responseText:M.response,status:M.status,statusText:M.statusText,headers:w,config:e,request:M};Ree(function(d){i(d),g()},function(d){o(d),g()},Y),M=null}"onloadend"in M?M.onloadend=y:M.onreadystatechange=function(){!M||M.readyState!==4||M.status===0&&!(M.responseURL&&M.responseURL.indexOf("file:")===0)||setTimeout(y)},M.onabort=function(){M&&(o(new kt("Request aborted",kt.ECONNABORTED,e,M)),M=null)},M.onerror=function(){o(new kt("Network Error",kt.ERR_NETWORK,e,M)),M=null},M.ontimeout=function(){let L=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const Y=n.transitional||dee;n.timeoutErrorMessage&&(L=n.timeoutErrorMessage),o(new kt(L,Y.clarifyTimeoutError?kt.ETIMEDOUT:kt.ECONNABORTED,e,M)),M=null},s===void 0&&l.setContentType(null),"setRequestHeader"in M&&qe.forEach(l.toJSON(),function(L,Y){M.setRequestHeader(Y,L)}),qe.isUndefined(n.withCredentials)||(M.withCredentials=!!n.withCredentials),r&&r!=="json"&&(M.responseType=n.responseType),c&&([E,h]=tB(c,!0),M.addEventListener("progress",E)),a&&M.upload&&([A,m]=tB(a),M.upload.addEventListener("progress",A),M.upload.addEventListener("loadend",m)),(n.cancelToken||n.signal)&&(u=w=>{M&&(o(!w||w.type?new yx(null,e,M):w),M.abort(),M=null)},n.cancelToken&&n.cancelToken.subscribe(u),n.signal&&(n.signal.aborted?u():n.signal.addEventListener("abort",u)));const x=WVe(n.url);if(x&&Bs.protocols.indexOf(x)===-1){o(new kt("Unsupported protocol "+x+":",kt.ERR_BAD_REQUEST,e));return}M.send(s||null)})},HVe=(e,t)=>{const{length:i}=e=e?e.filter(Boolean):[];if(t||i){let o=new AbortController,n;const s=function(c){if(!n){n=!0,r();const u=c instanceof Error?c:this.reason;o.abort(u instanceof kt?u:new yx(u instanceof Error?u.message:u))}};let l=t&&setTimeout(()=>{l=null,s(new kt(`timeout ${t} of ms exceeded`,kt.ETIMEDOUT))},t);const r=()=>{e&&(l&&clearTimeout(l),l=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(s):c.removeEventListener("abort",s)}),e=null)};e.forEach(c=>c.addEventListener("abort",s));const{signal:a}=o;return a.unsubscribe=()=>qe.asap(r),a}},XVe=function*(e,t){let i=e.byteLength;if(i<t){yield e;return}let o=0,n;for(;o<i;)n=o+t,yield e.slice(o,n),o=n},kVe=async function*(e,t){for await(const i of vVe(e))yield*XVe(i,t)},vVe=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:i,value:o}=await t.read();if(i)break;yield o}}finally{await t.cancel()}},See=(e,t,i,o)=>{const n=kVe(e,t);let s=0,l,r=a=>{l||(l=!0,o&&o(a))};return new ReadableStream({async pull(a){try{const{done:c,value:u}=await n.next();if(c){r(),a.close();return}let A=u.byteLength;if(i){let E=s+=A;i(E)}a.enqueue(new Uint8Array(u))}catch(c){throw r(c),c}},cancel(a){return r(a),n.return()}},{highWaterMark:2})},iB=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Qee=iB&&typeof ReadableStream=="function",PVe=iB&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),jee=(e,...t)=>{try{return!!e(...t)}catch{return!1}},_Ve=Qee&&jee(()=>{let e=!1;const t=new Request(Bs.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Vee=64*1024,Ff=Qee&&jee(()=>qe.isReadableStream(new Response("").body)),oB={stream:Ff&&(e=>e.body)};iB&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!oB[t]&&(oB[t]=qe.isFunction(e[t])?i=>i[t]():(i,o)=>{throw new kt(`Response type '${t}' is not supported`,kt.ERR_NOT_SUPPORT,o)})})})(new Response);const $Ve=async e=>{if(e==null)return 0;if(qe.isBlob(e))return e.size;if(qe.isSpecCompliantForm(e))return(await new Request(Bs.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(qe.isArrayBufferView(e)||qe.isArrayBuffer(e))return e.byteLength;if(qe.isURLSearchParams(e)&&(e=e+""),qe.isString(e))return(await PVe(e)).byteLength},eWe=async(e,t)=>{const i=qe.toFiniteNumber(e.getContentLength());return i??$Ve(t)},Gf={http:YVe,xhr:OVe,fetch:iB&&(async e=>{let{url:t,method:i,data:o,signal:n,cancelToken:s,timeout:l,onDownloadProgress:r,onUploadProgress:a,responseType:c,headers:u,withCredentials:A="same-origin",fetchOptions:E}=Kee(e);c=c?(c+"").toLowerCase():"text";let m=HVe([n,s&&s.toAbortSignal()],l),h;const g=m&&m.unsubscribe&&(()=>{m.unsubscribe()});let M;try{if(a&&_Ve&&i!=="get"&&i!=="head"&&(M=await eWe(u,o))!==0){let Y=new Request(t,{method:"POST",body:o,duplex:"half"}),p;if(qe.isFormData(o)&&(p=Y.headers.get("content-type"))&&u.setContentType(p),Y.body){const[d,U]=Bee(M,tB(Dee(a)));o=See(Y.body,Vee,d,U)}}qe.isString(A)||(A=A?"include":"omit");const y="credentials"in Request.prototype;h=new Request(t,{...E,signal:m,method:i.toUpperCase(),headers:u.normalize().toJSON(),body:o,duplex:"half",credentials:y?A:void 0});let x=await fetch(h);const w=Ff&&(c==="stream"||c==="response");if(Ff&&(r||w&&g)){const Y={};["status","statusText","headers"].forEach(G=>{Y[G]=x[G]});const p=qe.toFiniteNumber(x.headers.get("content-length")),[d,U]=r&&Bee(p,tB(Dee(r),!0))||[];x=new Response(See(x.body,Vee,d,()=>{U&&U(),g&&g()}),Y)}c=c||"text";let L=await oB[qe.findKey(oB,c)||"text"](x,e);return!w&&g&&g(),await new Promise((Y,p)=>{Ree(Y,p,{data:L,headers:dl.from(x.headers),status:x.status,statusText:x.statusText,config:e,request:h})})}catch(y){throw g&&g(),y&&y.name==="TypeError"&&/fetch/i.test(y.message)?Object.assign(new kt("Network Error",kt.ERR_NETWORK,e,h),{cause:y.cause||y}):kt.from(y,y&&y.code,e,h)}})};qe.forEach(Gf,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Wee=e=>`- ${e}`,tWe=e=>qe.isFunction(e)||e===null||e===!1,fee={getAdapter:e=>{e=qe.isArray(e)?e:[e];const{length:t}=e;let i,o;const n={};for(let s=0;s<t;s++){i=e[s];let l;if(o=i,!tWe(i)&&(o=Gf[(l=String(i)).toLowerCase()],o===void 0))throw new kt(`Unknown adapter '${l}'`);if(o)break;n[l||"#"+s]=o}if(!o){const s=Object.entries(n).map(([r,a])=>`adapter ${r} `+(a===!1?"is not supported by the environment":"is not available in the build"));let l=t?s.length>1?`since :
|
|
46
46
|
`+s.map(Wee).join(`
|