@vtj/pro 0.9.30 → 0.10.1-alpha.0

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.
Files changed (71) hide show
  1. package/dist/@vtj/materials/assets/antdv/index.umd.js +2 -2
  2. package/dist/@vtj/materials/assets/charts/index.umd.js +2 -2
  3. package/dist/@vtj/materials/assets/element/index.umd.js +2 -2
  4. package/dist/@vtj/materials/assets/ui/index.umd.js +2 -2
  5. package/dist/@vtj/materials/assets/uni-h5/index.umd.js +7 -0
  6. package/dist/@vtj/materials/assets/vant/index.umd.js +5 -5
  7. package/dist/@vtj/materials/deps/@vtj/charts/index.umd.js +2 -2
  8. package/dist/@vtj/materials/deps/@vtj/icons/index.umd.js +2 -2
  9. package/dist/@vtj/materials/deps/@vtj/icons/style.css +1 -1
  10. package/dist/@vtj/materials/deps/@vtj/ui/index.umd.js +2 -2
  11. package/dist/@vtj/materials/deps/@vtj/uni/index.umd.js +7 -0
  12. package/dist/@vtj/materials/deps/@vtj/uni/style.css +1 -0
  13. package/dist/@vtj/materials/deps/@vtj/utils/index.umd.js +2 -2
  14. package/dist/@vtj/materials/deps/@vueuse/core/index.iife.min.js +1 -1
  15. package/dist/@vtj/materials/deps/uni-app/index.umd.js +1 -0
  16. package/dist/@vtj/materials/deps/uni-h5/index.umd.js +19 -0
  17. package/dist/@vtj/materials/deps/uni-h5/style.css +1 -0
  18. package/dist/@vtj/materials/deps/uni-h5-vue/index.umd.js +8 -0
  19. package/dist/assets/{@element-plus-icons-vue-JgjQwxw0.js → @element-plus-icons-vue-CKT2Xck5.js} +1 -1
  20. package/dist/assets/@vueuse-PLVskUkm.js +1 -0
  21. package/dist/assets/{Editor-BFm57YMW-C94rZ-PX.js → Editor-BFm57YMW-ICS0kLhR.js} +1 -1
  22. package/dist/assets/auth-DOf-FTU6.js +1 -0
  23. package/dist/assets/{element-plus-BFFi_tB4.js → element-plus-DQ6lwucB.js} +1 -1
  24. package/dist/assets/extension-Al38NjBF.css +1 -0
  25. package/dist/assets/extension-BFNwuAqn.js +167 -0
  26. package/dist/assets/index-BQgIWiKT.js +159 -0
  27. package/dist/assets/index-qxxdDj8s.css +1 -0
  28. package/dist/assets/index-u0ty6Cb-.js +1 -0
  29. package/dist/assets/{mockjs-D_zazQCp.js → mockjs-DPQI6pPj.js} +1 -1
  30. package/dist/assets/page-CwpyqtAT.js +2 -0
  31. package/dist/assets/preview-DX069QZG.js +2 -0
  32. package/dist/assets/uni-page-Bjgk97mC.js +1 -0
  33. package/dist/assets/uni-page-Diqmj53r.css +1 -0
  34. package/dist/assets/{utils-CR3FiZqd.js → utils-QKipar_R.js} +1 -1
  35. package/dist/assets/{vue-Crnm0cHZ.js → vue-DnfbZNhx.js} +1 -1
  36. package/dist/assets/vue-router-D8EXeL0F.js +5 -0
  37. package/dist/assets/{vxe-cI65GXN1.js → vxe-DAcKvQ6r.js} +1 -1
  38. package/dist/index.html +12 -10
  39. package/dist/uni/assets/@dcloudio-uni-h5-vue-Bu5X-z7t.js +5 -0
  40. package/dist/uni/assets/@dcloudio-uni-shared-VStmjWbh.js +1 -0
  41. package/dist/uni/assets/index-DBvmFwEC.js +155 -0
  42. package/dist/uni/assets/mockjs-DMVMD3cZ.js +9 -0
  43. package/dist/uni/assets/vue-BK7aLblh.js +5 -0
  44. package/dist/{assets/vue-router-CmJCdr1O.js → uni/assets/vue-router-C0BknHSK.js} +2 -2
  45. package/dist/uni/index.html +26 -0
  46. package/package.json +15 -13
  47. package/src/App.vue +2 -0
  48. package/src/manifest.json +72 -0
  49. package/src/vtj/files/45t8zpljt.json +28 -0
  50. package/src/vtj/files/45t98u7le.json +19 -0
  51. package/src/vtj/histories/45t8zpljt/45t8zrek0.json +28 -0
  52. package/src/vtj/histories/45t8zpljt/45t90beoh.json +28 -0
  53. package/src/vtj/histories/45t8zpljt/45t90fn02.json +28 -0
  54. package/src/vtj/histories/45t8zpljt/45t923wpf.json +32 -0
  55. package/src/vtj/histories/45t8zpljt/7pf6pkqbb.json +28 -0
  56. package/src/vtj/histories/45t8zpljt/7pf6rxqsj.json +32 -0
  57. package/src/vtj/histories/45t8zpljt/b914fe2oe.json +28 -0
  58. package/src/vtj/histories/45t8zpljt/b914g2z9c.json +40 -0
  59. package/src/vtj/histories/45t8zpljt/esn260aw6.json +28 -0
  60. package/src/vtj/histories/45t8zpljt.json +41 -0
  61. package/src/vtj/materials/@vtj/pro.json +14729 -0
  62. package/src/vtj/projects/@vtj/pro.json +216 -0
  63. package/dist/assets/@vueuse-DbIzleUK.js +0 -1
  64. package/dist/assets/auth-ClPL45D5.js +0 -1
  65. package/dist/assets/extension-9SSJdadf.js +0 -154
  66. package/dist/assets/extension-Bc_SvzI0.css +0 -1
  67. package/dist/assets/index-CdSv23YK.css +0 -1
  68. package/dist/assets/index-CmegD0Ke.js +0 -1
  69. package/dist/assets/index-DzEED7Jk.js +0 -157
  70. package/dist/assets/page-BhC1yzc2.js +0 -2
  71. package/dist/assets/preview-Ci4NxL5B.js +0 -2
@@ -0,0 +1,155 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./@dcloudio-uni-h5-vue-Bu5X-z7t.js","./vue-BK7aLblh.js","./@dcloudio-uni-shared-VStmjWbh.js","./vue-router-C0BknHSK.js"])))=>i.map(i=>d[i]);
2
+ var Is=Object.defineProperty,Fs=Object.defineProperties;var Ps=Object.getOwnPropertyDescriptors;var we=Object.getOwnPropertySymbols;var ln=Object.prototype.hasOwnProperty,fn=Object.prototype.propertyIsEnumerable;var Vt=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),Ms=e=>{throw TypeError(e)};var er=(e,t,r)=>t in e?Is(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,V=(e,t)=>{for(var r in t||(t={}))ln.call(t,r)&&er(e,r,t[r]);if(we)for(var r of we(t))fn.call(t,r)&&er(e,r,t[r]);return e},Q=(e,t)=>Fs(e,Ps(t));var hn=(e,t)=>{var r={};for(var n in e)ln.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&we)for(var n of we(e))t.indexOf(n)<0&&fn.call(e,n)&&(r[n]=e[n]);return r};var z=(e,t,r)=>er(e,typeof t!="symbol"?t+"":t,r);var L=(e,t,r)=>new Promise((n,i)=>{var o=c=>{try{u(r.next(c))}catch(a){i(a)}},s=c=>{try{u(r.throw(c))}catch(a){i(a)}},u=c=>c.done?n(c.value):Promise.resolve(c.value).then(o,s);u((r=r.apply(e,t)).next())}),At=function(e,t){this[0]=e,this[1]=t},rr=(e,t,r)=>{var n=(s,u,c,a)=>{try{var l=r[s](u),f=(u=l.value)instanceof At,p=l.done;Promise.resolve(f?u[0]:u).then(h=>f?n(s==="return"?s:"next",u[1]?{done:h.done,value:h.value}:h,c,a):c({value:h,done:p})).catch(h=>n("throw",h,c,a))}catch(h){a(h)}},i=s=>o[s]=u=>new Promise((c,a)=>n(s,u,c,a)),o={};return r=r.apply(e,t),o[Vt("asyncIterator")]=()=>o,i("next"),i("throw"),i("return"),o},nr=e=>{var t=e[Vt("asyncIterator")],r=!1,n,i={};return t==null?(t=e[Vt("iterator")](),n=o=>i[o]=s=>t[o](s)):(t=t.call(e),n=o=>i[o]=s=>{if(r){if(r=!1,o==="throw")throw s;return s}return r=!0,{done:!1,value:new At(new Promise(u=>{var c=t[o](s);c instanceof Object||Ms("Object expected"),u(c)}),1)}}),i[Vt("iterator")]=()=>i,n("next"),"throw"in t?n("throw"):i.throw=o=>{throw o},"return"in t&&n("return"),i},pn=(e,t,r)=>(t=e[Vt("asyncIterator")])?t.call(e):(e=e[Vt("iterator")](),t={},r=(n,i)=>(i=e[n])&&(t[n]=o=>new Promise((s,u,c)=>(o=i.call(e,o),c=o.done,Promise.resolve(o.value).then(a=>s({value:a,done:c}),u)))),r("next"),r("return"),t);import{d as Jr,g as dn,h as Er,r as Yr,N as He,i as Ls,w as Ni,j as Us,k as Vs,l as Dt,t as Hs,m as qs,q as zs,c as ki,v as Kr,x as Ws,y as Js,z as Ys,A as Ii,B as Ks}from"./@dcloudio-uni-h5-vue-Bu5X-z7t.js";import{R as It}from"./mockjs-DMVMD3cZ.js";import{useRoute as Gs}from"./vue-router-C0BknHSK.js";import{L as ir}from"./vue-BK7aLblh.js";import"./@dcloudio-uni-shared-VStmjWbh.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&n(s)}).observe(document,{childList:!0,subtree:!0});function r(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function n(i){if(i.ep)return;i.ep=!0;const o=r(i);fetch(i.href,o)}})();const Zs="modulepreload",Xs=function(e,t){return new URL(e,t).href},mn={},gn=function(t,r,n){let i=Promise.resolve();if(r&&r.length>0){const s=document.getElementsByTagName("link"),u=document.querySelector("meta[property=csp-nonce]"),c=(u==null?void 0:u.nonce)||(u==null?void 0:u.getAttribute("nonce"));i=Promise.allSettled(r.map(a=>{if(a=Xs(a,n),a in mn)return;mn[a]=!0;const l=a.endsWith(".css"),f=l?'[rel="stylesheet"]':"";if(!!n)for(let d=s.length-1;d>=0;d--){const m=s[d];if(m.href===a&&(!l||m.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${a}"]${f}`))return;const h=document.createElement("link");if(h.rel=l?"stylesheet":Zs,l||(h.as="script"),h.crossOrigin="",h.href=a,c&&h.setAttribute("nonce",c),document.head.appendChild(h),l)return new Promise((d,m)=>{h.addEventListener("load",d),h.addEventListener("error",()=>m(new Error(`Unable to preload CSS for ${a}`)))})}))}function o(s){const u=new Event("vite:preloadError",{cancelable:!0});if(u.payload=s,window.dispatchEvent(u),!u.defaultPrevented)throw s}return i.then(s=>{for(const u of s||[])u.status==="rejected"&&o(u.reason);return t().catch(o)})};var Qs={ENV_TYPE:"live",NODE_ENV:"production"},ta=typeof global=="object"&&global&&global.Object===Object&&global;const Fi=ta;var ea=typeof self=="object"&&self&&self.Object===Object&&self,ra=Fi||ea||Function("return this")();const pt=ra;var na=pt.Symbol;const gt=na;var Pi=Object.prototype,ia=Pi.hasOwnProperty,oa=Pi.toString,oe=gt?gt.toStringTag:void 0;function sa(e){var t=ia.call(e,oe),r=e[oe];try{e[oe]=void 0;var n=!0}catch(o){}var i=oa.call(e);return n&&(t?e[oe]=r:delete e[oe]),i}var aa=Object.prototype,ua=aa.toString;function ca(e){return ua.call(e)}var la="[object Null]",fa="[object Undefined]",yn=gt?gt.toStringTag:void 0;function bt(e){return e==null?e===void 0?fa:la:yn&&yn in Object(e)?sa(e):ca(e)}function Tt(e){return e!=null&&typeof e=="object"}var ha="[object Symbol]";function Mi(e){return typeof e=="symbol"||Tt(e)&&bt(e)==ha}function Li(e,t){for(var r=-1,n=e==null?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}var pa=Array.isArray;const fe=pa;var vn=gt?gt.prototype:void 0,bn=vn?vn.toString:void 0;function Ui(e){if(typeof e=="string")return e;if(fe(e))return Li(e,Ui)+"";if(Mi(e))return bn?bn.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var da=/\s/;function ma(e){for(var t=e.length;t--&&da.test(e.charAt(t)););return t}var ga=/^\s+/;function ya(e){return e&&e.slice(0,ma(e)+1).replace(ga,"")}function ft(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var _n=NaN,va=/^[-+]0x[0-9a-f]+$/i,ba=/^0b[01]+$/i,_a=/^0o[0-7]+$/i,wa=parseInt;function wn(e){if(typeof e=="number")return e;if(Mi(e))return _n;if(ft(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=ft(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=ya(e);var r=ba.test(e);return r||_a.test(e)?wa(e.slice(2),r?2:8):va.test(e)?_n:+e}function Vi(e){return e}var Ea="[object AsyncFunction]",Sa="[object Function]",xa="[object GeneratorFunction]",Ta="[object Proxy]";function he(e){if(!ft(e))return!1;var t=bt(e);return t==Sa||t==xa||t==Ea||t==Ta}var Ra=pt["__core-js_shared__"];const or=Ra;var En=function(){var e=/[^.]+$/.exec(or&&or.keys&&or.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Oa(e){return!!En&&En in e}var $a=Function.prototype,Aa=$a.toString;function Pt(e){if(e!=null){try{return Aa.call(e)}catch(t){}try{return e+""}catch(t){}}return""}var Da=/[\\^$.*+?()[\]{}|]/g,ja=/^\[object .+?Constructor\]$/,Ba=Function.prototype,Ca=Object.prototype,Na=Ba.toString,ka=Ca.hasOwnProperty,Ia=RegExp("^"+Na.call(ka).replace(Da,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Fa(e){if(!ft(e)||Oa(e))return!1;var t=he(e)?Ia:ja;return t.test(Pt(e))}function Pa(e,t){return e==null?void 0:e[t]}function Mt(e,t){var r=Pa(e,t);return Fa(r)?r:void 0}var Ma=Mt(pt,"WeakMap");const Sr=Ma;var Sn=Object.create,La=function(){function e(){}return function(t){if(!ft(t))return{};if(Sn)return Sn(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();const Ua=La;function Hi(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function Va(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}var Ha=800,qa=16,za=Date.now;function Wa(e){var t=0,r=0;return function(){var n=za(),i=qa-(n-r);if(r=n,i>0){if(++t>=Ha)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function Ja(e){return function(){return e}}var Ya=function(){try{var e=Mt(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();const Fe=Ya;var Ka=Fe?function(e,t){return Fe(e,"toString",{configurable:!0,enumerable:!1,value:Ja(t),writable:!0})}:Vi;const Ga=Ka;var Za=Wa(Ga);const Xa=Za;var Qa=9007199254740991,tu=/^(?:0|[1-9]\d*)$/;function qi(e,t){var r=typeof e;return t=t!=null?t:Qa,!!t&&(r=="number"||r!="symbol"&&tu.test(e))&&e>-1&&e%1==0&&e<t}function Gr(e,t,r){t=="__proto__"&&Fe?Fe(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function ye(e,t){return e===t||e!==e&&t!==t}var eu=Object.prototype,ru=eu.hasOwnProperty;function nu(e,t,r){var n=e[t];(!(ru.call(e,t)&&ye(n,r))||r===void 0&&!(t in e))&&Gr(e,t,r)}function zi(e,t,r,n){var i=!r;r||(r={});for(var o=-1,s=t.length;++o<s;){var u=t[o],c=n?n(r[u],e[u],u,r,e):void 0;c===void 0&&(c=e[u]),i?Gr(r,u,c):nu(r,u,c)}return r}var xn=Math.max;function iu(e,t,r){return t=xn(t===void 0?e.length-1:t,0),function(){for(var n=arguments,i=-1,o=xn(n.length-t,0),s=Array(o);++i<o;)s[i]=n[t+i];i=-1;for(var u=Array(t+1);++i<t;)u[i]=n[i];return u[t]=r(s),Hi(e,this,u)}}function Wi(e,t){return Xa(iu(e,t,Vi),e+"")}var ou=9007199254740991;function Ji(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=ou}function qe(e){return e!=null&&Ji(e.length)&&!he(e)}function su(e,t,r){if(!ft(r))return!1;var n=typeof t;return(n=="number"?qe(r)&&qi(t,r.length):n=="string"&&t in r)?ye(r[t],e):!1}function Yi(e){return Wi(function(t,r){var n=-1,i=r.length,o=i>1?r[i-1]:void 0,s=i>2?r[2]:void 0;for(o=e.length>3&&typeof o=="function"?(i--,o):void 0,s&&su(r[0],r[1],s)&&(o=i<3?void 0:o,i=1),t=Object(t);++n<i;){var u=r[n];u&&e(t,u,n,o)}return t})}var au=Object.prototype;function Zr(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||au;return e===r}function uu(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var cu="[object Arguments]";function Tn(e){return Tt(e)&&bt(e)==cu}var Ki=Object.prototype,lu=Ki.hasOwnProperty,fu=Ki.propertyIsEnumerable,hu=Tn(function(){return arguments}())?Tn:function(e){return Tt(e)&&lu.call(e,"callee")&&!fu.call(e,"callee")};const xr=hu;function pu(){return!1}var Gi=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Rn=Gi&&typeof module=="object"&&module&&!module.nodeType&&module,du=Rn&&Rn.exports===Gi,On=du?pt.Buffer:void 0,mu=On?On.isBuffer:void 0,gu=mu||pu;const Zi=gu;var yu="[object Arguments]",vu="[object Array]",bu="[object Boolean]",_u="[object Date]",wu="[object Error]",Eu="[object Function]",Su="[object Map]",xu="[object Number]",Tu="[object Object]",Ru="[object RegExp]",Ou="[object Set]",$u="[object String]",Au="[object WeakMap]",Du="[object ArrayBuffer]",ju="[object DataView]",Bu="[object Float32Array]",Cu="[object Float64Array]",Nu="[object Int8Array]",ku="[object Int16Array]",Iu="[object Int32Array]",Fu="[object Uint8Array]",Pu="[object Uint8ClampedArray]",Mu="[object Uint16Array]",Lu="[object Uint32Array]",K={};K[Bu]=K[Cu]=K[Nu]=K[ku]=K[Iu]=K[Fu]=K[Pu]=K[Mu]=K[Lu]=!0,K[yu]=K[vu]=K[Du]=K[bu]=K[ju]=K[_u]=K[wu]=K[Eu]=K[Su]=K[xu]=K[Tu]=K[Ru]=K[Ou]=K[$u]=K[Au]=!1;function Uu(e){return Tt(e)&&Ji(e.length)&&!!K[bt(e)]}function Vu(e){return function(t){return e(t)}}var Xi=typeof exports=="object"&&exports&&!exports.nodeType&&exports,le=Xi&&typeof module=="object"&&module&&!module.nodeType&&module,Hu=le&&le.exports===Xi,sr=Hu&&Fi.process,qu=function(){try{var e=le&&le.require&&le.require("util").types;return e||sr&&sr.binding&&sr.binding("util")}catch(t){}}();const yt=qu;var $n=yt&&yt.isTypedArray,zu=$n?Vu($n):Uu;const Qi=zu;var Wu=Object.prototype,Ju=Wu.hasOwnProperty;function to(e,t){var r=fe(e),n=!r&&xr(e),i=!r&&!n&&Zi(e),o=!r&&!n&&!i&&Qi(e),s=r||n||i||o,u=s?uu(e.length,String):[],c=u.length;for(var a in e)(t||Ju.call(e,a))&&!(s&&(a=="length"||i&&(a=="offset"||a=="parent")||o&&(a=="buffer"||a=="byteLength"||a=="byteOffset")||qi(a,c)))&&u.push(a);return u}function eo(e,t){return function(r){return e(t(r))}}var Yu=eo(Object.keys,Object);const Ku=Yu;var Gu=Object.prototype,Zu=Gu.hasOwnProperty;function Xu(e){if(!Zr(e))return Ku(e);var t=[];for(var r in Object(e))Zu.call(e,r)&&r!="constructor"&&t.push(r);return t}function Qu(e){return qe(e)?to(e):Xu(e)}function tc(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var ec=Object.prototype,rc=ec.hasOwnProperty;function nc(e){if(!ft(e))return tc(e);var t=Zr(e),r=[];for(var n in e)n=="constructor"&&(t||!rc.call(e,n))||r.push(n);return r}function Xr(e){return qe(e)?to(e,!0):nc(e)}var ic=Yi(function(e,t,r,n){zi(t,Xr(t),e,n)});const An=ic;var oc=Mt(Object,"create");const pe=oc;function sc(){this.__data__=pe?pe(null):{},this.size=0}function ac(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var uc="__lodash_hash_undefined__",cc=Object.prototype,lc=cc.hasOwnProperty;function fc(e){var t=this.__data__;if(pe){var r=t[e];return r===uc?void 0:r}return lc.call(t,e)?t[e]:void 0}var hc=Object.prototype,pc=hc.hasOwnProperty;function dc(e){var t=this.__data__;return pe?t[e]!==void 0:pc.call(t,e)}var mc="__lodash_hash_undefined__";function gc(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=pe&&t===void 0?mc:t,this}function Ct(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Ct.prototype.clear=sc,Ct.prototype.delete=ac,Ct.prototype.get=fc,Ct.prototype.has=dc,Ct.prototype.set=gc;function yc(){this.__data__=[],this.size=0}function ze(e,t){for(var r=e.length;r--;)if(ye(e[r][0],t))return r;return-1}var vc=Array.prototype,bc=vc.splice;function _c(e){var t=this.__data__,r=ze(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():bc.call(t,r,1),--this.size,!0}function wc(e){var t=this.__data__,r=ze(t,e);return r<0?void 0:t[r][1]}function Ec(e){return ze(this.__data__,e)>-1}function Sc(e,t){var r=this.__data__,n=ze(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function vt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}vt.prototype.clear=yc,vt.prototype.delete=_c,vt.prototype.get=wc,vt.prototype.has=Ec,vt.prototype.set=Sc;var xc=Mt(pt,"Map");const de=xc;function Tc(){this.size=0,this.__data__={hash:new Ct,map:new(de||vt),string:new Ct}}function Rc(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function We(e,t){var r=e.__data__;return Rc(t)?r[typeof t=="string"?"string":"hash"]:r.map}function Oc(e){var t=We(this,e).delete(e);return this.size-=t?1:0,t}function $c(e){return We(this,e).get(e)}function Ac(e){return We(this,e).has(e)}function Dc(e,t){var r=We(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function St(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}St.prototype.clear=Tc,St.prototype.delete=Oc,St.prototype.get=$c,St.prototype.has=Ac,St.prototype.set=Dc;var jc="Expected a function";function Qr(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(jc);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var s=e.apply(this,n);return r.cache=o.set(i,s)||o,s};return r.cache=new(Qr.Cache||St),r}Qr.Cache=St;var Bc=500;function Cc(e){var t=Qr(e,function(n){return r.size===Bc&&r.clear(),n}),r=t.cache;return t}var Nc=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,kc=/\\(\\)?/g;Cc(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Nc,function(r,n,i,o){t.push(i?o.replace(kc,"$1"):n||r)}),t});function Qt(e){return e==null?"":Ui(e)}var Ic=eo(Object.getPrototypeOf,Object);const ro=Ic;var Fc="[object Object]",Pc=Function.prototype,Mc=Object.prototype,no=Pc.toString,Lc=Mc.hasOwnProperty,Uc=no.call(Object);function io(e){if(!Tt(e)||bt(e)!=Fc)return!1;var t=ro(e);if(t===null)return!0;var r=Lc.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&no.call(r)==Uc}var Vc="[object DOMException]",Hc="[object Error]";function oo(e){if(!Tt(e))return!1;var t=bt(e);return t==Hc||t==Vc||typeof e.message=="string"&&typeof e.name=="string"&&!io(e)}var qc=Wi(function(e,t){try{return Hi(e,void 0,t)}catch(r){return oo(r)?r:new Error(r)}});const zc=qc;function Wc(e,t,r){var n=-1,i=e.length;t<0&&(t=-t>i?0:i+t),r=r>i?i:r,r<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var o=Array(i);++n<i;)o[n]=e[n+t];return o}function Jc(e,t,r){var n=e.length;return r=r===void 0?n:r,Wc(e,t,r)}var Yc="\\ud800-\\udfff",Kc="\\u0300-\\u036f",Gc="\\ufe20-\\ufe2f",Zc="\\u20d0-\\u20ff",Xc=Kc+Gc+Zc,Qc="\\ufe0e\\ufe0f",tl="\\u200d",el=RegExp("["+tl+Yc+Xc+Qc+"]");function so(e){return el.test(e)}function rl(e){return e.split("")}var ao="\\ud800-\\udfff",nl="\\u0300-\\u036f",il="\\ufe20-\\ufe2f",ol="\\u20d0-\\u20ff",sl=nl+il+ol,al="\\ufe0e\\ufe0f",ul="["+ao+"]",Tr="["+sl+"]",Rr="\\ud83c[\\udffb-\\udfff]",cl="(?:"+Tr+"|"+Rr+")",uo="[^"+ao+"]",co="(?:\\ud83c[\\udde6-\\uddff]){2}",lo="[\\ud800-\\udbff][\\udc00-\\udfff]",ll="\\u200d",fo=cl+"?",ho="["+al+"]?",fl="(?:"+ll+"(?:"+[uo,co,lo].join("|")+")"+ho+fo+")*",hl=ho+fo+fl,pl="(?:"+[uo+Tr+"?",Tr,co,lo,ul].join("|")+")",dl=RegExp(Rr+"(?="+Rr+")|"+pl+hl,"g");function ml(e){return e.match(dl)||[]}function gl(e){return so(e)?ml(e):rl(e)}function yl(e){return function(t){t=Qt(t);var r=so(t)?gl(t):void 0,n=r?r[0]:t.charAt(0),i=r?Jc(r,1).join(""):t.slice(1);return n[e]()+i}}var vl=yl("toUpperCase");const po=vl;function bl(e){return po(Qt(e).toLowerCase())}function _l(e,t,r,n){var i=-1,o=e==null?0:e.length;for(n;++i<o;)r=t(r,e[i],i,e);return r}function mo(e){return function(t){return e==null?void 0:e[t]}}var wl={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},El=mo(wl);const Sl=El;var xl=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Tl="\\u0300-\\u036f",Rl="\\ufe20-\\ufe2f",Ol="\\u20d0-\\u20ff",$l=Tl+Rl+Ol,Al="["+$l+"]",Dl=RegExp(Al,"g");function jl(e){return e=Qt(e),e&&e.replace(xl,Sl).replace(Dl,"")}var Bl=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function Cl(e){return e.match(Bl)||[]}var Nl=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function kl(e){return Nl.test(e)}var go="\\ud800-\\udfff",Il="\\u0300-\\u036f",Fl="\\ufe20-\\ufe2f",Pl="\\u20d0-\\u20ff",Ml=Il+Fl+Pl,yo="\\u2700-\\u27bf",vo="a-z\\xdf-\\xf6\\xf8-\\xff",Ll="\\xac\\xb1\\xd7\\xf7",Ul="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Vl="\\u2000-\\u206f",Hl=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",bo="A-Z\\xc0-\\xd6\\xd8-\\xde",ql="\\ufe0e\\ufe0f",_o=Ll+Ul+Vl+Hl,wo="['’]",Dn="["+_o+"]",zl="["+Ml+"]",Eo="\\d+",Wl="["+yo+"]",So="["+vo+"]",xo="[^"+go+_o+Eo+yo+vo+bo+"]",Jl="\\ud83c[\\udffb-\\udfff]",Yl="(?:"+zl+"|"+Jl+")",Kl="[^"+go+"]",To="(?:\\ud83c[\\udde6-\\uddff]){2}",Ro="[\\ud800-\\udbff][\\udc00-\\udfff]",Jt="["+bo+"]",Gl="\\u200d",jn="(?:"+So+"|"+xo+")",Zl="(?:"+Jt+"|"+xo+")",Bn="(?:"+wo+"(?:d|ll|m|re|s|t|ve))?",Cn="(?:"+wo+"(?:D|LL|M|RE|S|T|VE))?",Oo=Yl+"?",$o="["+ql+"]?",Xl="(?:"+Gl+"(?:"+[Kl,To,Ro].join("|")+")"+$o+Oo+")*",Ql="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",tf="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",ef=$o+Oo+Xl,rf="(?:"+[Wl,To,Ro].join("|")+")"+ef,nf=RegExp([Jt+"?"+So+"+"+Bn+"(?="+[Dn,Jt,"$"].join("|")+")",Zl+"+"+Cn+"(?="+[Dn,Jt+jn,"$"].join("|")+")",Jt+"?"+jn+"+"+Bn,Jt+"+"+Cn,tf,Ql,Eo,rf].join("|"),"g");function of(e){return e.match(nf)||[]}function sf(e,t,r){return e=Qt(e),t=t,t===void 0?kl(e)?of(e):Cl(e):e.match(t)||[]}var af="['’]",uf=RegExp(af,"g");function cf(e){return function(t){return _l(sf(jl(t).replace(uf,"")),e,"")}}var lf=cf(function(e,t,r){return t=t.toLowerCase(),e+(r?bl(t):t)});const jt=lf;function ff(){this.__data__=new vt,this.size=0}function hf(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function pf(e){return this.__data__.get(e)}function df(e){return this.__data__.has(e)}var mf=200;function gf(e,t){var r=this.__data__;if(r instanceof vt){var n=r.__data__;if(!de||n.length<mf-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new St(n)}return r.set(e,t),this.size=r.size,this}function Yt(e){var t=this.__data__=new vt(e);this.size=t.size}Yt.prototype.clear=ff,Yt.prototype.delete=hf,Yt.prototype.get=pf,Yt.prototype.has=df,Yt.prototype.set=gf;var Ao=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Nn=Ao&&typeof module=="object"&&module&&!module.nodeType&&module,yf=Nn&&Nn.exports===Ao,kn=yf?pt.Buffer:void 0;kn&&kn.allocUnsafe;function vf(e,t){return e.slice()}var bf=Mt(pt,"DataView");const Or=bf;var _f=Mt(pt,"Promise");const $r=_f;var wf=Mt(pt,"Set");const Ar=wf;var In="[object Map]",Ef="[object Object]",Fn="[object Promise]",Pn="[object Set]",Mn="[object WeakMap]",Ln="[object DataView]",Sf=Pt(Or),xf=Pt(de),Tf=Pt($r),Rf=Pt(Ar),Of=Pt(Sr),Ht=bt;(Or&&Ht(new Or(new ArrayBuffer(1)))!=Ln||de&&Ht(new de)!=In||$r&&Ht($r.resolve())!=Fn||Ar&&Ht(new Ar)!=Pn||Sr&&Ht(new Sr)!=Mn)&&(Ht=function(e){var t=bt(e),r=t==Ef?e.constructor:void 0,n=r?Pt(r):"";if(n)switch(n){case Sf:return Ln;case xf:return In;case Tf:return Fn;case Rf:return Pn;case Of:return Mn}return t});var $f=pt.Uint8Array;const Un=$f;function Af(e){var t=new e.constructor(e.byteLength);return new Un(t).set(new Un(e)),t}var Vn=gt?gt.prototype:void 0;Vn&&Vn.valueOf;function Df(e,t){var r=Af(e.buffer);return new e.constructor(r,e.byteOffset,e.length)}function jf(e){return typeof e.constructor=="function"&&!Zr(e)?Ua(ro(e)):{}}yt&&yt.isMap;yt&&yt.isSet;var Hn=gt?gt.prototype:void 0;Hn&&Hn.valueOf;function Bf(e){return function(t,r,n){for(var i=-1,o=Object(t),s=n(t),u=s.length;u--;){var c=s[++i];if(r(o[c],c,o)===!1)break}return t}}var Cf=Bf();const Nf=Cf;var kf=function(){return pt.Date.now()};const ar=kf;var If="Expected a function",Ff=Math.max,Pf=Math.min;function Do(e,t,r){var n,i,o,s,u,c,a=0,l=!1,f=!1,p=!0;if(typeof e!="function")throw new TypeError(If);t=wn(t)||0,ft(r)&&(l=!!r.leading,f="maxWait"in r,o=f?Ff(wn(r.maxWait)||0,t):o,p="trailing"in r?!!r.trailing:p);function h(g){var x=n,O=i;return n=i=void 0,a=g,s=e.apply(O,x),s}function d(g){return a=g,u=setTimeout(E,t),l?h(g):s}function m(g){var x=g-c,O=g-a,P=t-x;return f?Pf(P,o-O):P}function b(g){var x=g-c,O=g-a;return c===void 0||x>=t||x<0||f&&O>=o}function E(){var g=ar();if(b(g))return y(g);u=setTimeout(E,m(g))}function y(g){return u=void 0,p&&n?h(g):(n=i=void 0,s)}function v(){u!==void 0&&clearTimeout(u),a=0,n=c=i=u=void 0}function _(){return u===void 0?s:y(ar())}function S(){var g=ar(),x=b(g);if(n=arguments,i=this,c=g,x){if(u===void 0)return d(c);if(f)return clearTimeout(u),u=setTimeout(E,t),h(c)}return u===void 0&&(u=setTimeout(E,t)),s}return S.cancel=v,S.flush=_,S}function Dr(e,t,r){(r!==void 0&&!ye(e[t],r)||r===void 0&&!(t in e))&&Gr(e,t,r)}function Mf(e){return Tt(e)&&qe(e)}function jr(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function Lf(e){return zi(e,Xr(e))}function Uf(e,t,r,n,i,o,s){var u=jr(e,r),c=jr(t,r),a=s.get(c);if(a){Dr(e,r,a);return}var l=o?o(u,c,r+"",e,t,s):void 0,f=l===void 0;if(f){var p=fe(c),h=!p&&Zi(c),d=!p&&!h&&Qi(c);l=c,p||h||d?fe(u)?l=u:Mf(u)?l=Va(u):h?(f=!1,l=vf(c)):d?(f=!1,l=Df(c)):l=[]:io(c)||xr(c)?(l=u,xr(u)?l=Lf(u):(!ft(u)||he(u))&&(l=jf(c))):f=!1}f&&(s.set(c,l),i(l,c,n,o,s),s.delete(c)),Dr(e,r,l)}function jo(e,t,r,n,i){e!==t&&Nf(t,function(o,s){if(i||(i=new Yt),ft(o))Uf(e,t,s,r,jo,n,i);else{var u=n?n(jr(e,s),o,s+"",e,t,i):void 0;u===void 0&&(u=o),Dr(e,s,u)}},Xr)}var Vf={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Hf=mo(Vf);const qf=Hf;var Bo=/[&<>"']/g,zf=RegExp(Bo.source);function Wf(e){return e=Qt(e),e&&zf.test(e)?e.replace(Bo,qf):e}var Jf="[object String]";function Lt(e){return typeof e=="string"||!fe(e)&&Tt(e)&&bt(e)==Jf}function Yf(e,t){return Li(t,function(r){return e[r]})}yt&&yt.isArrayBuffer;yt&&yt.isDate;var Kf=Yi(function(e,t,r){jo(e,t,r)});const ue=Kf;var Co=Object.prototype,Gf=Co.hasOwnProperty;function qn(e,t,r,n){return e===void 0||ye(e,Co[r])&&!Gf.call(n,r)?t:e}var Zf={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};function Xf(e){return"\\"+Zf[e]}var Qf=/<%=([\s\S]+?)%>/g;const No=Qf;var th=/<%-([\s\S]+?)%>/g;const eh=th;var rh=/<%([\s\S]+?)%>/g;const nh=rh;var ih={escape:eh,evaluate:nh,interpolate:No,variable:"",imports:{_:{escape:Wf}}};const zn=ih;var oh="Invalid `variable` option passed into `_.template`",sh=/\b__p \+= '';/g,ah=/\b(__p \+=) '' \+/g,uh=/(__e\(.*?\)|\b__t\)) \+\n'';/g,ch=/[()=,{}\[\]\/\s]/,lh=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ee=/($^)/,fh=/['\n\r\u2028\u2029\\]/g,hh=Object.prototype,Wn=hh.hasOwnProperty;function ph(e,t,r){var n=zn.imports._.templateSettings||zn;e=Qt(e),t=An({},t,n,qn);var i=An({},t.imports,n.imports,qn),o=Qu(i),s=Yf(i,o),u,c,a=0,l=t.interpolate||Ee,f="__p += '",p=RegExp((t.escape||Ee).source+"|"+l.source+"|"+(l===No?lh:Ee).source+"|"+(t.evaluate||Ee).source+"|$","g"),h=Wn.call(t,"sourceURL")?"//# sourceURL="+(t.sourceURL+"").replace(/\s/g," ")+`
3
+ `:"";e.replace(p,function(b,E,y,v,_,S){return y||(y=v),f+=e.slice(a,S).replace(fh,Xf),E&&(u=!0,f+=`' +
4
+ __e(`+E+`) +
5
+ '`),_&&(c=!0,f+=`';
6
+ `+_+`;
7
+ __p += '`),y&&(f+=`' +
8
+ ((__t = (`+y+`)) == null ? '' : __t) +
9
+ '`),a=S+b.length,b}),f+=`';
10
+ `;var d=Wn.call(t,"variable")&&t.variable;if(!d)f=`with (obj) {
11
+ `+f+`
12
+ }
13
+ `;else if(ch.test(d))throw new Error(oh);f=(c?f.replace(sh,""):f).replace(ah,"$1").replace(uh,"$1;"),f="function("+(d||"obj")+`) {
14
+ `+(d?"":`obj || (obj = {});
15
+ `)+"var __t, __p = ''"+(u?", __e = _.escape":"")+(c?`, __j = Array.prototype.join;
16
+ function print() { __p += __j.call(arguments, '') }
17
+ `:`;
18
+ `)+f+`return __p
19
+ }`;var m=zc(function(){return Function(o,h+"return "+f).apply(void 0,s)});if(m.source=f,oo(m))throw m;return m}var dh="Expected a function";function mh(e,t,r){var n=!0,i=!0;if(typeof e!="function")throw new TypeError(dh);return ft(r)&&(n="leading"in r?!0:n,i="trailing"in r?!1:i),Do(e,t,{leading:n,maxWait:t,trailing:i})}var rt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function te(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ko={exports:{}};function gh(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Jn={exports:{}},Yn;function Rt(){return Yn||(Yn=1,function(e,t){(function(r,n){e.exports=n()})(rt,function(){var r=r||function(n,i){var o;if(typeof window<"u"&&window.crypto&&(o=window.crypto),typeof self<"u"&&self.crypto&&(o=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(o=globalThis.crypto),!o&&typeof window<"u"&&window.msCrypto&&(o=window.msCrypto),!o&&typeof rt<"u"&&rt.crypto&&(o=rt.crypto),!o&&typeof gh=="function")try{o=require("crypto")}catch(y){}var s=function(){if(o){if(typeof o.getRandomValues=="function")try{return o.getRandomValues(new Uint32Array(1))[0]}catch(y){}if(typeof o.randomBytes=="function")try{return o.randomBytes(4).readInt32LE()}catch(y){}}throw new Error("Native crypto module could not be used to get secure random number.")},u=Object.create||function(){function y(){}return function(v){var _;return y.prototype=v,_=new y,y.prototype=null,_}}(),c={},a=c.lib={},l=a.Base=function(){return{extend:function(y){var v=u(this);return y&&v.mixIn(y),(!v.hasOwnProperty("init")||this.init===v.init)&&(v.init=function(){v.$super.init.apply(this,arguments)}),v.init.prototype=v,v.$super=this,v},create:function(){var y=this.extend();return y.init.apply(y,arguments),y},init:function(){},mixIn:function(y){for(var v in y)y.hasOwnProperty(v)&&(this[v]=y[v]);y.hasOwnProperty("toString")&&(this.toString=y.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),f=a.WordArray=l.extend({init:function(y,v){y=this.words=y||[],v!=i?this.sigBytes=v:this.sigBytes=y.length*4},toString:function(y){return(y||h).stringify(this)},concat:function(y){var v=this.words,_=y.words,S=this.sigBytes,g=y.sigBytes;if(this.clamp(),S%4)for(var x=0;x<g;x++){var O=_[x>>>2]>>>24-x%4*8&255;v[S+x>>>2]|=O<<24-(S+x)%4*8}else for(var P=0;P<g;P+=4)v[S+P>>>2]=_[P>>>2];return this.sigBytes+=g,this},clamp:function(){var y=this.words,v=this.sigBytes;y[v>>>2]&=4294967295<<32-v%4*8,y.length=n.ceil(v/4)},clone:function(){var y=l.clone.call(this);return y.words=this.words.slice(0),y},random:function(y){for(var v=[],_=0;_<y;_+=4)v.push(s());return new f.init(v,y)}}),p=c.enc={},h=p.Hex={stringify:function(y){for(var v=y.words,_=y.sigBytes,S=[],g=0;g<_;g++){var x=v[g>>>2]>>>24-g%4*8&255;S.push((x>>>4).toString(16)),S.push((x&15).toString(16))}return S.join("")},parse:function(y){for(var v=y.length,_=[],S=0;S<v;S+=2)_[S>>>3]|=parseInt(y.substr(S,2),16)<<24-S%8*4;return new f.init(_,v/2)}},d=p.Latin1={stringify:function(y){for(var v=y.words,_=y.sigBytes,S=[],g=0;g<_;g++){var x=v[g>>>2]>>>24-g%4*8&255;S.push(String.fromCharCode(x))}return S.join("")},parse:function(y){for(var v=y.length,_=[],S=0;S<v;S++)_[S>>>2]|=(y.charCodeAt(S)&255)<<24-S%4*8;return new f.init(_,v)}},m=p.Utf8={stringify:function(y){try{return decodeURIComponent(escape(d.stringify(y)))}catch(v){throw new Error("Malformed UTF-8 data")}},parse:function(y){return d.parse(unescape(encodeURIComponent(y)))}},b=a.BufferedBlockAlgorithm=l.extend({reset:function(){this._data=new f.init,this._nDataBytes=0},_append:function(y){typeof y=="string"&&(y=m.parse(y)),this._data.concat(y),this._nDataBytes+=y.sigBytes},_process:function(y){var v,_=this._data,S=_.words,g=_.sigBytes,x=this.blockSize,O=x*4,P=g/O;y?P=n.ceil(P):P=n.max((P|0)-this._minBufferSize,0);var w=P*x,T=n.min(w*4,g);if(w){for(var F=0;F<w;F+=x)this._doProcessBlock(S,F);v=S.splice(0,w),_.sigBytes-=T}return new f.init(v,T)},clone:function(){var y=l.clone.call(this);return y._data=this._data.clone(),y},_minBufferSize:0});a.Hasher=b.extend({cfg:l.extend(),init:function(y){this.cfg=this.cfg.extend(y),this.reset()},reset:function(){b.reset.call(this),this._doReset()},update:function(y){return this._append(y),this._process(),this},finalize:function(y){y&&this._append(y);var v=this._doFinalize();return v},blockSize:16,_createHelper:function(y){return function(v,_){return new y.init(_).finalize(v)}},_createHmacHelper:function(y){return function(v,_){return new E.HMAC.init(y,_).finalize(v)}}});var E=c.algo={};return c}(Math);return r})}(Jn)),Jn.exports}(function(e,t){(function(r,n){e.exports=n(Rt())})(rt,function(r){return function(n){var i=r,o=i.lib,s=o.WordArray,u=o.Hasher,c=i.algo,a=[];(function(){for(var m=0;m<64;m++)a[m]=n.abs(n.sin(m+1))*4294967296|0})();var l=c.MD5=u.extend({_doReset:function(){this._hash=new s.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(m,b){for(var E=0;E<16;E++){var y=b+E,v=m[y];m[y]=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360}var _=this._hash.words,S=m[b+0],g=m[b+1],x=m[b+2],O=m[b+3],P=m[b+4],w=m[b+5],T=m[b+6],F=m[b+7],j=m[b+8],I=m[b+9],D=m[b+10],C=m[b+11],U=m[b+12],M=m[b+13],H=m[b+14],q=m[b+15],$=_[0],B=_[1],N=_[2],k=_[3];$=f($,B,N,k,S,7,a[0]),k=f(k,$,B,N,g,12,a[1]),N=f(N,k,$,B,x,17,a[2]),B=f(B,N,k,$,O,22,a[3]),$=f($,B,N,k,P,7,a[4]),k=f(k,$,B,N,w,12,a[5]),N=f(N,k,$,B,T,17,a[6]),B=f(B,N,k,$,F,22,a[7]),$=f($,B,N,k,j,7,a[8]),k=f(k,$,B,N,I,12,a[9]),N=f(N,k,$,B,D,17,a[10]),B=f(B,N,k,$,C,22,a[11]),$=f($,B,N,k,U,7,a[12]),k=f(k,$,B,N,M,12,a[13]),N=f(N,k,$,B,H,17,a[14]),B=f(B,N,k,$,q,22,a[15]),$=p($,B,N,k,g,5,a[16]),k=p(k,$,B,N,T,9,a[17]),N=p(N,k,$,B,C,14,a[18]),B=p(B,N,k,$,S,20,a[19]),$=p($,B,N,k,w,5,a[20]),k=p(k,$,B,N,D,9,a[21]),N=p(N,k,$,B,q,14,a[22]),B=p(B,N,k,$,P,20,a[23]),$=p($,B,N,k,I,5,a[24]),k=p(k,$,B,N,H,9,a[25]),N=p(N,k,$,B,O,14,a[26]),B=p(B,N,k,$,j,20,a[27]),$=p($,B,N,k,M,5,a[28]),k=p(k,$,B,N,x,9,a[29]),N=p(N,k,$,B,F,14,a[30]),B=p(B,N,k,$,U,20,a[31]),$=h($,B,N,k,w,4,a[32]),k=h(k,$,B,N,j,11,a[33]),N=h(N,k,$,B,C,16,a[34]),B=h(B,N,k,$,H,23,a[35]),$=h($,B,N,k,g,4,a[36]),k=h(k,$,B,N,P,11,a[37]),N=h(N,k,$,B,F,16,a[38]),B=h(B,N,k,$,D,23,a[39]),$=h($,B,N,k,M,4,a[40]),k=h(k,$,B,N,S,11,a[41]),N=h(N,k,$,B,O,16,a[42]),B=h(B,N,k,$,T,23,a[43]),$=h($,B,N,k,I,4,a[44]),k=h(k,$,B,N,U,11,a[45]),N=h(N,k,$,B,q,16,a[46]),B=h(B,N,k,$,x,23,a[47]),$=d($,B,N,k,S,6,a[48]),k=d(k,$,B,N,F,10,a[49]),N=d(N,k,$,B,H,15,a[50]),B=d(B,N,k,$,w,21,a[51]),$=d($,B,N,k,U,6,a[52]),k=d(k,$,B,N,O,10,a[53]),N=d(N,k,$,B,D,15,a[54]),B=d(B,N,k,$,g,21,a[55]),$=d($,B,N,k,j,6,a[56]),k=d(k,$,B,N,q,10,a[57]),N=d(N,k,$,B,T,15,a[58]),B=d(B,N,k,$,M,21,a[59]),$=d($,B,N,k,P,6,a[60]),k=d(k,$,B,N,C,10,a[61]),N=d(N,k,$,B,x,15,a[62]),B=d(B,N,k,$,I,21,a[63]),_[0]=_[0]+$|0,_[1]=_[1]+B|0,_[2]=_[2]+N|0,_[3]=_[3]+k|0},_doFinalize:function(){var m=this._data,b=m.words,E=this._nDataBytes*8,y=m.sigBytes*8;b[y>>>5]|=128<<24-y%32;var v=n.floor(E/4294967296),_=E;b[(y+64>>>9<<4)+15]=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360,b[(y+64>>>9<<4)+14]=(_<<8|_>>>24)&16711935|(_<<24|_>>>8)&4278255360,m.sigBytes=(b.length+1)*4,this._process();for(var S=this._hash,g=S.words,x=0;x<4;x++){var O=g[x];g[x]=(O<<8|O>>>24)&16711935|(O<<24|O>>>8)&4278255360}return S},clone:function(){var m=u.clone.call(this);return m._hash=this._hash.clone(),m}});function f(m,b,E,y,v,_,S){var g=m+(b&E|~b&y)+v+S;return(g<<_|g>>>32-_)+b}function p(m,b,E,y,v,_,S){var g=m+(b&y|E&~y)+v+S;return(g<<_|g>>>32-_)+b}function h(m,b,E,y,v,_,S){var g=m+(b^E^y)+v+S;return(g<<_|g>>>32-_)+b}function d(m,b,E,y,v,_,S){var g=m+(E^(b|~y))+v+S;return(g<<_|g>>>32-_)+b}i.MD5=u._createHelper(l),i.HmacMD5=u._createHmacHelper(l)}(Math),r.MD5})})(ko);var Io=ko.exports;te(Io);var Fo={exports:{}};(function(e,t){(function(r,n){e.exports=n(Rt())})(rt,function(r){return function(){var n=r,i=n.lib,o=i.WordArray,s=n.enc;s.Base64={stringify:function(c){var a=c.words,l=c.sigBytes,f=this._map;c.clamp();for(var p=[],h=0;h<l;h+=3)for(var d=a[h>>>2]>>>24-h%4*8&255,m=a[h+1>>>2]>>>24-(h+1)%4*8&255,b=a[h+2>>>2]>>>24-(h+2)%4*8&255,E=d<<16|m<<8|b,y=0;y<4&&h+y*.75<l;y++)p.push(f.charAt(E>>>6*(3-y)&63));var v=f.charAt(64);if(v)for(;p.length%4;)p.push(v);return p.join("")},parse:function(c){var a=c.length,l=this._map,f=this._reverseMap;if(!f){f=this._reverseMap=[];for(var p=0;p<l.length;p++)f[l.charCodeAt(p)]=p}var h=l.charAt(64);if(h){var d=c.indexOf(h);d!==-1&&(a=d)}return u(c,a,f)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function u(c,a,l){for(var f=[],p=0,h=0;h<a;h++)if(h%4){var d=l[c.charCodeAt(h-1)]<<h%4*2,m=l[c.charCodeAt(h)]>>>6-h%4*2,b=d|m;f[p>>>2]|=b<<24-p%4*8,p++}return o.create(f,p)}}(),r.enc.Base64})})(Fo);var Po=Fo.exports;te(Po);var Mo={exports:{}};(function(e,t){(function(r,n){e.exports=n(Rt())})(rt,function(r){return r.enc.Utf8})})(Mo);var yh=Mo.exports;te(yh);var Lo={exports:{}},Kn={exports:{}},Gn={exports:{}},Zn;function vh(){return Zn||(Zn=1,function(e,t){(function(r,n){e.exports=n(Rt())})(rt,function(r){return function(){var n=r,i=n.lib,o=i.WordArray,s=i.Hasher,u=n.algo,c=[],a=u.SHA1=s.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(l,f){for(var p=this._hash.words,h=p[0],d=p[1],m=p[2],b=p[3],E=p[4],y=0;y<80;y++){if(y<16)c[y]=l[f+y]|0;else{var v=c[y-3]^c[y-8]^c[y-14]^c[y-16];c[y]=v<<1|v>>>31}var _=(h<<5|h>>>27)+E+c[y];y<20?_+=(d&m|~d&b)+1518500249:y<40?_+=(d^m^b)+1859775393:y<60?_+=(d&m|d&b|m&b)-1894007588:_+=(d^m^b)-899497514,E=b,b=m,m=d<<30|d>>>2,d=h,h=_}p[0]=p[0]+h|0,p[1]=p[1]+d|0,p[2]=p[2]+m|0,p[3]=p[3]+b|0,p[4]=p[4]+E|0},_doFinalize:function(){var l=this._data,f=l.words,p=this._nDataBytes*8,h=l.sigBytes*8;return f[h>>>5]|=128<<24-h%32,f[(h+64>>>9<<4)+14]=Math.floor(p/4294967296),f[(h+64>>>9<<4)+15]=p,l.sigBytes=f.length*4,this._process(),this._hash},clone:function(){var l=s.clone.call(this);return l._hash=this._hash.clone(),l}});n.SHA1=s._createHelper(a),n.HmacSHA1=s._createHmacHelper(a)}(),r.SHA1})}(Gn)),Gn.exports}var Xn={exports:{}},Qn;function bh(){return Qn||(Qn=1,function(e,t){(function(r,n){e.exports=n(Rt())})(rt,function(r){(function(){var n=r,i=n.lib,o=i.Base,s=n.enc,u=s.Utf8,c=n.algo;c.HMAC=o.extend({init:function(a,l){a=this._hasher=new a.init,typeof l=="string"&&(l=u.parse(l));var f=a.blockSize,p=f*4;l.sigBytes>p&&(l=a.finalize(l)),l.clamp();for(var h=this._oKey=l.clone(),d=this._iKey=l.clone(),m=h.words,b=d.words,E=0;E<f;E++)m[E]^=1549556828,b[E]^=909522486;h.sigBytes=d.sigBytes=p,this.reset()},reset:function(){var a=this._hasher;a.reset(),a.update(this._iKey)},update:function(a){return this._hasher.update(a),this},finalize:function(a){var l=this._hasher,f=l.finalize(a);l.reset();var p=l.finalize(this._oKey.clone().concat(f));return p}})})()})}(Xn)),Xn.exports}var ti;function Uo(){return ti||(ti=1,function(e,t){(function(r,n,i){e.exports=n(Rt(),vh(),bh())})(rt,function(r){return function(){var n=r,i=n.lib,o=i.Base,s=i.WordArray,u=n.algo,c=u.MD5,a=u.EvpKDF=o.extend({cfg:o.extend({keySize:128/32,hasher:c,iterations:1}),init:function(l){this.cfg=this.cfg.extend(l)},compute:function(l,f){for(var p,h=this.cfg,d=h.hasher.create(),m=s.create(),b=m.words,E=h.keySize,y=h.iterations;b.length<E;){p&&d.update(p),p=d.update(l).finalize(f),d.reset();for(var v=1;v<y;v++)p=d.finalize(p),d.reset();m.concat(p)}return m.sigBytes=E*4,m}});n.EvpKDF=function(l,f,p){return a.create(p).compute(l,f)}}(),r.EvpKDF})}(Kn)),Kn.exports}var ei={exports:{}},ri;function _h(){return ri||(ri=1,function(e,t){(function(r,n,i){e.exports=n(Rt(),Uo())})(rt,function(r){r.lib.Cipher||function(n){var i=r,o=i.lib,s=o.Base,u=o.WordArray,c=o.BufferedBlockAlgorithm,a=i.enc;a.Utf8;var l=a.Base64,f=i.algo,p=f.EvpKDF,h=o.Cipher=c.extend({cfg:s.extend(),createEncryptor:function(w,T){return this.create(this._ENC_XFORM_MODE,w,T)},createDecryptor:function(w,T){return this.create(this._DEC_XFORM_MODE,w,T)},init:function(w,T,F){this.cfg=this.cfg.extend(F),this._xformMode=w,this._key=T,this.reset()},reset:function(){c.reset.call(this),this._doReset()},process:function(w){return this._append(w),this._process()},finalize:function(w){w&&this._append(w);var T=this._doFinalize();return T},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function w(T){return typeof T=="string"?P:g}return function(T){return{encrypt:function(F,j,I){return w(j).encrypt(T,F,j,I)},decrypt:function(F,j,I){return w(j).decrypt(T,F,j,I)}}}}()});o.StreamCipher=h.extend({_doFinalize:function(){var w=this._process(!0);return w},blockSize:1});var d=i.mode={},m=o.BlockCipherMode=s.extend({createEncryptor:function(w,T){return this.Encryptor.create(w,T)},createDecryptor:function(w,T){return this.Decryptor.create(w,T)},init:function(w,T){this._cipher=w,this._iv=T}}),b=d.CBC=function(){var w=m.extend();w.Encryptor=w.extend({processBlock:function(F,j){var I=this._cipher,D=I.blockSize;T.call(this,F,j,D),I.encryptBlock(F,j),this._prevBlock=F.slice(j,j+D)}}),w.Decryptor=w.extend({processBlock:function(F,j){var I=this._cipher,D=I.blockSize,C=F.slice(j,j+D);I.decryptBlock(F,j),T.call(this,F,j,D),this._prevBlock=C}});function T(F,j,I){var D,C=this._iv;C?(D=C,this._iv=n):D=this._prevBlock;for(var U=0;U<I;U++)F[j+U]^=D[U]}return w}(),E=i.pad={},y=E.Pkcs7={pad:function(w,T){for(var F=T*4,j=F-w.sigBytes%F,I=j<<24|j<<16|j<<8|j,D=[],C=0;C<j;C+=4)D.push(I);var U=u.create(D,j);w.concat(U)},unpad:function(w){var T=w.words[w.sigBytes-1>>>2]&255;w.sigBytes-=T}};o.BlockCipher=h.extend({cfg:h.cfg.extend({mode:b,padding:y}),reset:function(){var w;h.reset.call(this);var T=this.cfg,F=T.iv,j=T.mode;this._xformMode==this._ENC_XFORM_MODE?w=j.createEncryptor:(w=j.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==w?this._mode.init(this,F&&F.words):(this._mode=w.call(j,this,F&&F.words),this._mode.__creator=w)},_doProcessBlock:function(w,T){this._mode.processBlock(w,T)},_doFinalize:function(){var w,T=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(T.pad(this._data,this.blockSize),w=this._process(!0)):(w=this._process(!0),T.unpad(w)),w},blockSize:128/32});var v=o.CipherParams=s.extend({init:function(w){this.mixIn(w)},toString:function(w){return(w||this.formatter).stringify(this)}}),_=i.format={},S=_.OpenSSL={stringify:function(w){var T,F=w.ciphertext,j=w.salt;return j?T=u.create([1398893684,1701076831]).concat(j).concat(F):T=F,T.toString(l)},parse:function(w){var T,F=l.parse(w),j=F.words;return j[0]==1398893684&&j[1]==1701076831&&(T=u.create(j.slice(2,4)),j.splice(0,4),F.sigBytes-=16),v.create({ciphertext:F,salt:T})}},g=o.SerializableCipher=s.extend({cfg:s.extend({format:S}),encrypt:function(w,T,F,j){j=this.cfg.extend(j);var I=w.createEncryptor(F,j),D=I.finalize(T),C=I.cfg;return v.create({ciphertext:D,key:F,iv:C.iv,algorithm:w,mode:C.mode,padding:C.padding,blockSize:w.blockSize,formatter:j.format})},decrypt:function(w,T,F,j){j=this.cfg.extend(j),T=this._parse(T,j.format);var I=w.createDecryptor(F,j).finalize(T.ciphertext);return I},_parse:function(w,T){return typeof w=="string"?T.parse(w,this):w}}),x=i.kdf={},O=x.OpenSSL={execute:function(w,T,F,j,I){if(j||(j=u.random(64/8)),I)var D=p.create({keySize:T+F,hasher:I}).compute(w,j);else var D=p.create({keySize:T+F}).compute(w,j);var C=u.create(D.words.slice(T),F*4);return D.sigBytes=T*4,v.create({key:D,iv:C,salt:j})}},P=o.PasswordBasedCipher=g.extend({cfg:g.cfg.extend({kdf:O}),encrypt:function(w,T,F,j){j=this.cfg.extend(j);var I=j.kdf.execute(F,w.keySize,w.ivSize,j.salt,j.hasher);j.iv=I.iv;var D=g.encrypt.call(this,w,T,I.key,j);return D.mixIn(I),D},decrypt:function(w,T,F,j){j=this.cfg.extend(j),T=this._parse(T,j.format);var I=j.kdf.execute(F,w.keySize,w.ivSize,T.salt,j.hasher);j.iv=I.iv;var D=g.decrypt.call(this,w,T,I.key,j);return D}})}()})}(ei)),ei.exports}(function(e,t){(function(r,n,i){e.exports=n(Rt(),Po,Io,Uo(),_h())})(rt,function(r){return function(){var n=r,i=n.lib,o=i.BlockCipher,s=n.algo,u=[],c=[],a=[],l=[],f=[],p=[],h=[],d=[],m=[],b=[];(function(){for(var v=[],_=0;_<256;_++)_<128?v[_]=_<<1:v[_]=_<<1^283;for(var S=0,g=0,_=0;_<256;_++){var x=g^g<<1^g<<2^g<<3^g<<4;x=x>>>8^x&255^99,u[S]=x,c[x]=S;var O=v[S],P=v[O],w=v[P],T=v[x]*257^x*16843008;a[S]=T<<24|T>>>8,l[S]=T<<16|T>>>16,f[S]=T<<8|T>>>24,p[S]=T;var T=w*16843009^P*65537^O*257^S*16843008;h[x]=T<<24|T>>>8,d[x]=T<<16|T>>>16,m[x]=T<<8|T>>>24,b[x]=T,S?(S=O^v[v[v[w^O]]],g^=v[v[g]]):S=g=1}})();var E=[0,1,2,4,8,16,32,64,128,27,54],y=s.AES=o.extend({_doReset:function(){var v;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var _=this._keyPriorReset=this._key,S=_.words,g=_.sigBytes/4,x=this._nRounds=g+6,O=(x+1)*4,P=this._keySchedule=[],w=0;w<O;w++)w<g?P[w]=S[w]:(v=P[w-1],w%g?g>6&&w%g==4&&(v=u[v>>>24]<<24|u[v>>>16&255]<<16|u[v>>>8&255]<<8|u[v&255]):(v=v<<8|v>>>24,v=u[v>>>24]<<24|u[v>>>16&255]<<16|u[v>>>8&255]<<8|u[v&255],v^=E[w/g|0]<<24),P[w]=P[w-g]^v);for(var T=this._invKeySchedule=[],F=0;F<O;F++){var w=O-F;if(F%4)var v=P[w];else var v=P[w-4];F<4||w<=4?T[F]=v:T[F]=h[u[v>>>24]]^d[u[v>>>16&255]]^m[u[v>>>8&255]]^b[u[v&255]]}}},encryptBlock:function(v,_){this._doCryptBlock(v,_,this._keySchedule,a,l,f,p,u)},decryptBlock:function(v,_){var S=v[_+1];v[_+1]=v[_+3],v[_+3]=S,this._doCryptBlock(v,_,this._invKeySchedule,h,d,m,b,c);var S=v[_+1];v[_+1]=v[_+3],v[_+3]=S},_doCryptBlock:function(v,_,S,g,x,O,P,w){for(var T=this._nRounds,F=v[_]^S[0],j=v[_+1]^S[1],I=v[_+2]^S[2],D=v[_+3]^S[3],C=4,U=1;U<T;U++){var M=g[F>>>24]^x[j>>>16&255]^O[I>>>8&255]^P[D&255]^S[C++],H=g[j>>>24]^x[I>>>16&255]^O[D>>>8&255]^P[F&255]^S[C++],q=g[I>>>24]^x[D>>>16&255]^O[F>>>8&255]^P[j&255]^S[C++],$=g[D>>>24]^x[F>>>16&255]^O[j>>>8&255]^P[I&255]^S[C++];F=M,j=H,I=q,D=$}var M=(w[F>>>24]<<24|w[j>>>16&255]<<16|w[I>>>8&255]<<8|w[D&255])^S[C++],H=(w[j>>>24]<<24|w[I>>>16&255]<<16|w[D>>>8&255]<<8|w[F&255])^S[C++],q=(w[I>>>24]<<24|w[D>>>16&255]<<16|w[F>>>8&255]<<8|w[j&255])^S[C++],$=(w[D>>>24]<<24|w[F>>>16&255]<<16|w[j>>>8&255]<<8|w[I&255])^S[C++];v[_]=M,v[_+1]=H,v[_+2]=q,v[_+3]=$},keySize:256/32});n.AES=o._createHelper(y)}(),r.AES})})(Lo);var wh=Lo.exports;te(wh);var Eh="0123456789abcdefghijklmnopqrstuvwxyz";function ni(e){return Eh.charAt(e)}function Sh(e,t){return e&t}function Se(e,t){return e|t}function ii(e,t){return e^t}function oi(e,t){return e&~t}function xh(e){if(e==0)return-1;var t=0;return e&65535||(e>>=16,t+=16),e&255||(e>>=8,t+=8),e&15||(e>>=4,t+=4),e&3||(e>>=2,t+=2),e&1||++t,t}function Th(e){for(var t=0;e!=0;)e&=e-1,++t;return t}var se="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Rh="=";function si(e){var t,r,n="";for(t=0;t+3<=e.length;t+=3)r=parseInt(e.substring(t,t+3),16),n+=se.charAt(r>>6)+se.charAt(r&63);for(t+1==e.length?(r=parseInt(e.substring(t,t+1),16),n+=se.charAt(r<<2)):t+2==e.length&&(r=parseInt(e.substring(t,t+2),16),n+=se.charAt(r>>2)+se.charAt((r&3)<<4));(n.length&3)>0;)n+=Rh;return n}var qt,Oh={decode:function(e){var t;if(qt===void 0){var r="0123456789ABCDEF",n=` \f
20
+ \r  \u2028\u2029`;for(qt={},t=0;t<16;++t)qt[r.charAt(t)]=t;for(r=r.toLowerCase(),t=10;t<16;++t)qt[r.charAt(t)]=t;for(t=0;t<n.length;++t)qt[n.charAt(t)]=-1}var i=[],o=0,s=0;for(t=0;t<e.length;++t){var u=e.charAt(t);if(u=="=")break;if(u=qt[u],u!=-1){if(u===void 0)throw new Error("Illegal character at offset "+t);o|=u,++s>=2?(i[i.length]=o,o=0,s=0):o<<=4}}if(s)throw new Error("Hex encoding incomplete: 4 bits missing");return i}},Bt,Br={decode:function(e){var t;if(Bt===void 0){var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n=`= \f
21
+ \r  \u2028\u2029`;for(Bt=Object.create(null),t=0;t<64;++t)Bt[r.charAt(t)]=t;for(Bt["-"]=62,Bt._=63,t=0;t<n.length;++t)Bt[n.charAt(t)]=-1}var i=[],o=0,s=0;for(t=0;t<e.length;++t){var u=e.charAt(t);if(u=="=")break;if(u=Bt[u],u!=-1){if(u===void 0)throw new Error("Illegal character at offset "+t);o|=u,++s>=4?(i[i.length]=o>>16,i[i.length]=o>>8&255,i[i.length]=o&255,o=0,s=0):o<<=6}}switch(s){case 1:throw new Error("Base64 encoding incomplete: at least 2 bits missing");case 2:i[i.length]=o>>10;break;case 3:i[i.length]=o>>16,i[i.length]=o>>8&255;break}return i},re:/-----BEGIN [^-]+-----([A-Za-z0-9+\/=\s]+)-----END [^-]+-----|begin-base64[^\n]+\n([A-Za-z0-9+\/=\s]+)====/,unarmor:function(e){var t=Br.re.exec(e);if(t)if(t[1])e=t[1];else if(t[2])e=t[2];else throw new Error("RegExp out of sync");return Br.decode(e)}},zt=1e13,ce=function(){function e(t){this.buf=[+t||0]}return e.prototype.mulAdd=function(t,r){var n=this.buf,i=n.length,o,s;for(o=0;o<i;++o)s=n[o]*t+r,s<zt?r=0:(r=0|s/zt,s-=r*zt),n[o]=s;r>0&&(n[o]=r)},e.prototype.sub=function(t){var r=this.buf,n=r.length,i,o;for(i=0;i<n;++i)o=r[i]-t,o<0?(o+=zt,t=1):t=0,r[i]=o;for(;r[r.length-1]===0;)r.pop()},e.prototype.toString=function(t){if((t||10)!=10)throw new Error("only base 10 is supported");for(var r=this.buf,n=r[r.length-1].toString(),i=r.length-2;i>=0;--i)n+=(zt+r[i]).toString().substring(1);return n},e.prototype.valueOf=function(){for(var t=this.buf,r=0,n=t.length-1;n>=0;--n)r=r*zt+t[n];return r},e.prototype.simplify=function(){var t=this.buf;return t.length==1?t[0]:this},e}(),Vo="…",$h=/^(\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/,Ah=/^(\d\d\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/;function Gt(e,t){return e.length>t&&(e=e.substring(0,t)+Vo),e}var ur=function(){function e(t,r){this.hexDigits="0123456789ABCDEF",t instanceof e?(this.enc=t.enc,this.pos=t.pos):(this.enc=t,this.pos=r)}return e.prototype.get=function(t){if(t===void 0&&(t=this.pos++),t>=this.enc.length)throw new Error("Requesting byte offset ".concat(t," on a stream of length ").concat(this.enc.length));return typeof this.enc=="string"?this.enc.charCodeAt(t):this.enc[t]},e.prototype.hexByte=function(t){return this.hexDigits.charAt(t>>4&15)+this.hexDigits.charAt(t&15)},e.prototype.hexDump=function(t,r,n){for(var i="",o=t;o<r;++o)if(i+=this.hexByte(this.get(o)),n!==!0)switch(o&15){case 7:i+=" ";break;case 15:i+=`
22
+ `;break;default:i+=" "}return i},e.prototype.isASCII=function(t,r){for(var n=t;n<r;++n){var i=this.get(n);if(i<32||i>176)return!1}return!0},e.prototype.parseStringISO=function(t,r){for(var n="",i=t;i<r;++i)n+=String.fromCharCode(this.get(i));return n},e.prototype.parseStringUTF=function(t,r){for(var n="",i=t;i<r;){var o=this.get(i++);o<128?n+=String.fromCharCode(o):o>191&&o<224?n+=String.fromCharCode((o&31)<<6|this.get(i++)&63):n+=String.fromCharCode((o&15)<<12|(this.get(i++)&63)<<6|this.get(i++)&63)}return n},e.prototype.parseStringBMP=function(t,r){for(var n="",i,o,s=t;s<r;)i=this.get(s++),o=this.get(s++),n+=String.fromCharCode(i<<8|o);return n},e.prototype.parseTime=function(t,r,n){var i=this.parseStringISO(t,r),o=(n?$h:Ah).exec(i);return o?(n&&(o[1]=+o[1],o[1]+=+o[1]<70?2e3:1900),i=o[1]+"-"+o[2]+"-"+o[3]+" "+o[4],o[5]&&(i+=":"+o[5],o[6]&&(i+=":"+o[6],o[7]&&(i+="."+o[7]))),o[8]&&(i+=" UTC",o[8]!="Z"&&(i+=o[8],o[9]&&(i+=":"+o[9]))),i):"Unrecognized time: "+i},e.prototype.parseInteger=function(t,r){for(var n=this.get(t),i=n>127,o=i?255:0,s,u="";n==o&&++t<r;)n=this.get(t);if(s=r-t,s===0)return i?-1:0;if(s>4){for(u=n,s<<=3;!((+u^o)&128);)u=+u<<1,--s;u="("+s+` bit)
23
+ `}i&&(n=n-256);for(var c=new ce(n),a=t+1;a<r;++a)c.mulAdd(256,this.get(a));return u+c.toString()},e.prototype.parseBitString=function(t,r,n){for(var i=this.get(t),o=(r-t-1<<3)-i,s="("+o+` bit)
24
+ `,u="",c=t+1;c<r;++c){for(var a=this.get(c),l=c==r-1?i:0,f=7;f>=l;--f)u+=a>>f&1?"1":"0";if(u.length>n)return s+Gt(u,n)}return s+u},e.prototype.parseOctetString=function(t,r,n){if(this.isASCII(t,r))return Gt(this.parseStringISO(t,r),n);var i=r-t,o="("+i+` byte)
25
+ `;n/=2,i>n&&(r=t+n);for(var s=t;s<r;++s)o+=this.hexByte(this.get(s));return i>n&&(o+=Vo),o},e.prototype.parseOID=function(t,r,n){for(var i="",o=new ce,s=0,u=t;u<r;++u){var c=this.get(u);if(o.mulAdd(128,c&127),s+=7,!(c&128)){if(i==="")if(o=o.simplify(),o instanceof ce)o.sub(80),i="2."+o.toString();else{var a=o<80?o<40?0:1:2;i=a+"."+(o-a*40)}else i+="."+o.toString();if(i.length>n)return Gt(i,n);o=new ce,s=0}}return s>0&&(i+=".incomplete"),i},e}(),Dh=function(){function e(t,r,n,i,o){if(!(i instanceof ai))throw new Error("Invalid tag value.");this.stream=t,this.header=r,this.length=n,this.tag=i,this.sub=o}return e.prototype.typeName=function(){switch(this.tag.tagClass){case 0:switch(this.tag.tagNumber){case 0:return"EOC";case 1:return"BOOLEAN";case 2:return"INTEGER";case 3:return"BIT_STRING";case 4:return"OCTET_STRING";case 5:return"NULL";case 6:return"OBJECT_IDENTIFIER";case 7:return"ObjectDescriptor";case 8:return"EXTERNAL";case 9:return"REAL";case 10:return"ENUMERATED";case 11:return"EMBEDDED_PDV";case 12:return"UTF8String";case 16:return"SEQUENCE";case 17:return"SET";case 18:return"NumericString";case 19:return"PrintableString";case 20:return"TeletexString";case 21:return"VideotexString";case 22:return"IA5String";case 23:return"UTCTime";case 24:return"GeneralizedTime";case 25:return"GraphicString";case 26:return"VisibleString";case 27:return"GeneralString";case 28:return"UniversalString";case 30:return"BMPString"}return"Universal_"+this.tag.tagNumber.toString();case 1:return"Application_"+this.tag.tagNumber.toString();case 2:return"["+this.tag.tagNumber.toString()+"]";case 3:return"Private_"+this.tag.tagNumber.toString()}},e.prototype.content=function(t){if(this.tag===void 0)return null;t===void 0&&(t=1/0);var r=this.posContent(),n=Math.abs(this.length);if(!this.tag.isUniversal())return this.sub!==null?"("+this.sub.length+" elem)":this.stream.parseOctetString(r,r+n,t);switch(this.tag.tagNumber){case 1:return this.stream.get(r)===0?"false":"true";case 2:return this.stream.parseInteger(r,r+n);case 3:return this.sub?"("+this.sub.length+" elem)":this.stream.parseBitString(r,r+n,t);case 4:return this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(r,r+n,t);case 6:return this.stream.parseOID(r,r+n,t);case 16:case 17:return this.sub!==null?"("+this.sub.length+" elem)":"(no elem)";case 12:return Gt(this.stream.parseStringUTF(r,r+n),t);case 18:case 19:case 20:case 21:case 22:case 26:return Gt(this.stream.parseStringISO(r,r+n),t);case 30:return Gt(this.stream.parseStringBMP(r,r+n),t);case 23:case 24:return this.stream.parseTime(r,r+n,this.tag.tagNumber==23)}return null},e.prototype.toString=function(){return this.typeName()+"@"+this.stream.pos+"[header:"+this.header+",length:"+this.length+",sub:"+(this.sub===null?"null":this.sub.length)+"]"},e.prototype.toPrettyString=function(t){t===void 0&&(t="");var r=t+this.typeName()+" @"+this.stream.pos;if(this.length>=0&&(r+="+"),r+=this.length,this.tag.tagConstructed?r+=" (constructed)":this.tag.isUniversal()&&(this.tag.tagNumber==3||this.tag.tagNumber==4)&&this.sub!==null&&(r+=" (encapsulates)"),r+=`
26
+ `,this.sub!==null){t+=" ";for(var n=0,i=this.sub.length;n<i;++n)r+=this.sub[n].toPrettyString(t)}return r},e.prototype.posStart=function(){return this.stream.pos},e.prototype.posContent=function(){return this.stream.pos+this.header},e.prototype.posEnd=function(){return this.stream.pos+this.header+Math.abs(this.length)},e.prototype.toHexString=function(){return this.stream.hexDump(this.posStart(),this.posEnd(),!0)},e.decodeLength=function(t){var r=t.get(),n=r&127;if(n==r)return n;if(n>6)throw new Error("Length over 48 bits not supported at position "+(t.pos-1));if(n===0)return null;r=0;for(var i=0;i<n;++i)r=r*256+t.get();return r},e.prototype.getHexStringValue=function(){var t=this.toHexString(),r=this.header*2,n=this.length*2;return t.substr(r,n)},e.decode=function(t){var r;t instanceof ur?r=t:r=new ur(t,0);var n=new ur(r),i=new ai(r),o=e.decodeLength(r),s=r.pos,u=s-n.pos,c=null,a=function(){var f=[];if(o!==null){for(var p=s+o;r.pos<p;)f[f.length]=e.decode(r);if(r.pos!=p)throw new Error("Content size is not correct for container starting at offset "+s)}else try{for(;;){var h=e.decode(r);if(h.tag.isEOC())break;f[f.length]=h}o=s-r.pos}catch(d){throw new Error("Exception while decoding undefined length content: "+d)}return f};if(i.tagConstructed)c=a();else if(i.isUniversal()&&(i.tagNumber==3||i.tagNumber==4))try{if(i.tagNumber==3&&r.get()!=0)throw new Error("BIT STRINGs with unused bits cannot encapsulate.");c=a();for(var l=0;l<c.length;++l)if(c[l].tag.isEOC())throw new Error("EOC is not supposed to be actual content.")}catch(f){c=null}if(c===null){if(o===null)throw new Error("We can't skip over an invalid tag with undefined length at offset "+s);r.pos=s+Math.abs(o)}return new e(n,u,o,i,c)},e}(),ai=function(){function e(t){var r=t.get();if(this.tagClass=r>>6,this.tagConstructed=(r&32)!==0,this.tagNumber=r&31,this.tagNumber==31){var n=new ce;do r=t.get(),n.mulAdd(128,r&127);while(r&128);this.tagNumber=n.simplify()}}return e.prototype.isUniversal=function(){return this.tagClass===0},e.prototype.isEOC=function(){return this.tagClass===0&&this.tagNumber===0},e}(),wt,jh=0xdeadbeefcafe,ui=(jh&16777215)==15715070,et=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],Bh=(1<<26)/et[et.length-1],J=function(){function e(t,r,n){t!=null&&(typeof t=="number"?this.fromNumber(t,r,n):r==null&&typeof t!="string"?this.fromString(t,256):this.fromString(t,r))}return e.prototype.toString=function(t){if(this.s<0)return"-"+this.negate().toString(t);var r;if(t==16)r=4;else if(t==8)r=3;else if(t==2)r=1;else if(t==32)r=5;else if(t==4)r=2;else return this.toRadix(t);var n=(1<<r)-1,i,o=!1,s="",u=this.t,c=this.DB-u*this.DB%r;if(u-- >0)for(c<this.DB&&(i=this[u]>>c)>0&&(o=!0,s=ni(i));u>=0;)c<r?(i=(this[u]&(1<<c)-1)<<r-c,i|=this[--u]>>(c+=this.DB-r)):(i=this[u]>>(c-=r)&n,c<=0&&(c+=this.DB,--u)),i>0&&(o=!0),o&&(s+=ni(i));return o?s:"0"},e.prototype.negate=function(){var t=Y();return e.ZERO.subTo(this,t),t},e.prototype.abs=function(){return this.s<0?this.negate():this},e.prototype.compareTo=function(t){var r=this.s-t.s;if(r!=0)return r;var n=this.t;if(r=n-t.t,r!=0)return this.s<0?-r:r;for(;--n>=0;)if((r=this[n]-t[n])!=0)return r;return 0},e.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+xe(this[this.t-1]^this.s&this.DM)},e.prototype.mod=function(t){var r=Y();return this.abs().divRemTo(t,null,r),this.s<0&&r.compareTo(e.ZERO)>0&&t.subTo(r,r),r},e.prototype.modPowInt=function(t,r){var n;return t<256||r.isEven()?n=new ci(r):n=new li(r),this.exp(t,n)},e.prototype.clone=function(){var t=Y();return this.copyTo(t),t},e.prototype.intValue=function(){if(this.s<0){if(this.t==1)return this[0]-this.DV;if(this.t==0)return-1}else{if(this.t==1)return this[0];if(this.t==0)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},e.prototype.byteValue=function(){return this.t==0?this.s:this[0]<<24>>24},e.prototype.shortValue=function(){return this.t==0?this.s:this[0]<<16>>16},e.prototype.signum=function(){return this.s<0?-1:this.t<=0||this.t==1&&this[0]<=0?0:1},e.prototype.toByteArray=function(){var t=this.t,r=[];r[0]=this.s;var n=this.DB-t*this.DB%8,i,o=0;if(t-- >0)for(n<this.DB&&(i=this[t]>>n)!=(this.s&this.DM)>>n&&(r[o++]=i|this.s<<this.DB-n);t>=0;)n<8?(i=(this[t]&(1<<n)-1)<<8-n,i|=this[--t]>>(n+=this.DB-8)):(i=this[t]>>(n-=8)&255,n<=0&&(n+=this.DB,--t)),i&128&&(i|=-256),o==0&&(this.s&128)!=(i&128)&&++o,(o>0||i!=this.s)&&(r[o++]=i);return r},e.prototype.equals=function(t){return this.compareTo(t)==0},e.prototype.min=function(t){return this.compareTo(t)<0?this:t},e.prototype.max=function(t){return this.compareTo(t)>0?this:t},e.prototype.and=function(t){var r=Y();return this.bitwiseTo(t,Sh,r),r},e.prototype.or=function(t){var r=Y();return this.bitwiseTo(t,Se,r),r},e.prototype.xor=function(t){var r=Y();return this.bitwiseTo(t,ii,r),r},e.prototype.andNot=function(t){var r=Y();return this.bitwiseTo(t,oi,r),r},e.prototype.not=function(){for(var t=Y(),r=0;r<this.t;++r)t[r]=this.DM&~this[r];return t.t=this.t,t.s=~this.s,t},e.prototype.shiftLeft=function(t){var r=Y();return t<0?this.rShiftTo(-t,r):this.lShiftTo(t,r),r},e.prototype.shiftRight=function(t){var r=Y();return t<0?this.lShiftTo(-t,r):this.rShiftTo(t,r),r},e.prototype.getLowestSetBit=function(){for(var t=0;t<this.t;++t)if(this[t]!=0)return t*this.DB+xh(this[t]);return this.s<0?this.t*this.DB:-1},e.prototype.bitCount=function(){for(var t=0,r=this.s&this.DM,n=0;n<this.t;++n)t+=Th(this[n]^r);return t},e.prototype.testBit=function(t){var r=Math.floor(t/this.DB);return r>=this.t?this.s!=0:(this[r]&1<<t%this.DB)!=0},e.prototype.setBit=function(t){return this.changeBit(t,Se)},e.prototype.clearBit=function(t){return this.changeBit(t,oi)},e.prototype.flipBit=function(t){return this.changeBit(t,ii)},e.prototype.add=function(t){var r=Y();return this.addTo(t,r),r},e.prototype.subtract=function(t){var r=Y();return this.subTo(t,r),r},e.prototype.multiply=function(t){var r=Y();return this.multiplyTo(t,r),r},e.prototype.divide=function(t){var r=Y();return this.divRemTo(t,r,null),r},e.prototype.remainder=function(t){var r=Y();return this.divRemTo(t,null,r),r},e.prototype.divideAndRemainder=function(t){var r=Y(),n=Y();return this.divRemTo(t,r,n),[r,n]},e.prototype.modPow=function(t,r){var n=t.bitLength(),i,o=Et(1),s;if(n<=0)return o;n<18?i=1:n<48?i=3:n<144?i=4:n<768?i=5:i=6,n<8?s=new ci(r):r.isEven()?s=new Nh(r):s=new li(r);var u=[],c=3,a=i-1,l=(1<<i)-1;if(u[1]=s.convert(this),i>1){var f=Y();for(s.sqrTo(u[1],f);c<=l;)u[c]=Y(),s.mulTo(f,u[c-2],u[c]),c+=2}var p=t.t-1,h,d=!0,m=Y(),b;for(n=xe(t[p])-1;p>=0;){for(n>=a?h=t[p]>>n-a&l:(h=(t[p]&(1<<n+1)-1)<<a-n,p>0&&(h|=t[p-1]>>this.DB+n-a)),c=i;!(h&1);)h>>=1,--c;if((n-=c)<0&&(n+=this.DB,--p),d)u[h].copyTo(o),d=!1;else{for(;c>1;)s.sqrTo(o,m),s.sqrTo(m,o),c-=2;c>0?s.sqrTo(o,m):(b=o,o=m,m=b),s.mulTo(m,u[h],o)}for(;p>=0&&!(t[p]&1<<n);)s.sqrTo(o,m),b=o,o=m,m=b,--n<0&&(n=this.DB-1,--p)}return s.revert(o)},e.prototype.modInverse=function(t){var r=t.isEven();if(this.isEven()&&r||t.signum()==0)return e.ZERO;for(var n=t.clone(),i=this.clone(),o=Et(1),s=Et(0),u=Et(0),c=Et(1);n.signum()!=0;){for(;n.isEven();)n.rShiftTo(1,n),r?((!o.isEven()||!s.isEven())&&(o.addTo(this,o),s.subTo(t,s)),o.rShiftTo(1,o)):s.isEven()||s.subTo(t,s),s.rShiftTo(1,s);for(;i.isEven();)i.rShiftTo(1,i),r?((!u.isEven()||!c.isEven())&&(u.addTo(this,u),c.subTo(t,c)),u.rShiftTo(1,u)):c.isEven()||c.subTo(t,c),c.rShiftTo(1,c);n.compareTo(i)>=0?(n.subTo(i,n),r&&o.subTo(u,o),s.subTo(c,s)):(i.subTo(n,i),r&&u.subTo(o,u),c.subTo(s,c))}if(i.compareTo(e.ONE)!=0)return e.ZERO;if(c.compareTo(t)>=0)return c.subtract(t);if(c.signum()<0)c.addTo(t,c);else return c;return c.signum()<0?c.add(t):c},e.prototype.pow=function(t){return this.exp(t,new Ch)},e.prototype.gcd=function(t){var r=this.s<0?this.negate():this.clone(),n=t.s<0?t.negate():t.clone();if(r.compareTo(n)<0){var i=r;r=n,n=i}var o=r.getLowestSetBit(),s=n.getLowestSetBit();if(s<0)return r;for(o<s&&(s=o),s>0&&(r.rShiftTo(s,r),n.rShiftTo(s,n));r.signum()>0;)(o=r.getLowestSetBit())>0&&r.rShiftTo(o,r),(o=n.getLowestSetBit())>0&&n.rShiftTo(o,n),r.compareTo(n)>=0?(r.subTo(n,r),r.rShiftTo(1,r)):(n.subTo(r,n),n.rShiftTo(1,n));return s>0&&n.lShiftTo(s,n),n},e.prototype.isProbablePrime=function(t){var r,n=this.abs();if(n.t==1&&n[0]<=et[et.length-1]){for(r=0;r<et.length;++r)if(n[0]==et[r])return!0;return!1}if(n.isEven())return!1;for(r=1;r<et.length;){for(var i=et[r],o=r+1;o<et.length&&i<Bh;)i*=et[o++];for(i=n.modInt(i);r<o;)if(i%et[r++]==0)return!1}return n.millerRabin(t)},e.prototype.copyTo=function(t){for(var r=this.t-1;r>=0;--r)t[r]=this[r];t.t=this.t,t.s=this.s},e.prototype.fromInt=function(t){this.t=1,this.s=t<0?-1:0,t>0?this[0]=t:t<-1?this[0]=t+this.DV:this.t=0},e.prototype.fromString=function(t,r){var n;if(r==16)n=4;else if(r==8)n=3;else if(r==256)n=8;else if(r==2)n=1;else if(r==32)n=5;else if(r==4)n=2;else{this.fromRadix(t,r);return}this.t=0,this.s=0;for(var i=t.length,o=!1,s=0;--i>=0;){var u=n==8?+t[i]&255:hi(t,i);if(u<0){t.charAt(i)=="-"&&(o=!0);continue}o=!1,s==0?this[this.t++]=u:s+n>this.DB?(this[this.t-1]|=(u&(1<<this.DB-s)-1)<<s,this[this.t++]=u>>this.DB-s):this[this.t-1]|=u<<s,s+=n,s>=this.DB&&(s-=this.DB)}n==8&&+t[0]&128&&(this.s=-1,s>0&&(this[this.t-1]|=(1<<this.DB-s)-1<<s)),this.clamp(),o&&e.ZERO.subTo(this,this)},e.prototype.clamp=function(){for(var t=this.s&this.DM;this.t>0&&this[this.t-1]==t;)--this.t},e.prototype.dlShiftTo=function(t,r){var n;for(n=this.t-1;n>=0;--n)r[n+t]=this[n];for(n=t-1;n>=0;--n)r[n]=0;r.t=this.t+t,r.s=this.s},e.prototype.drShiftTo=function(t,r){for(var n=t;n<this.t;++n)r[n-t]=this[n];r.t=Math.max(this.t-t,0),r.s=this.s},e.prototype.lShiftTo=function(t,r){for(var n=t%this.DB,i=this.DB-n,o=(1<<i)-1,s=Math.floor(t/this.DB),u=this.s<<n&this.DM,c=this.t-1;c>=0;--c)r[c+s+1]=this[c]>>i|u,u=(this[c]&o)<<n;for(var c=s-1;c>=0;--c)r[c]=0;r[s]=u,r.t=this.t+s+1,r.s=this.s,r.clamp()},e.prototype.rShiftTo=function(t,r){r.s=this.s;var n=Math.floor(t/this.DB);if(n>=this.t){r.t=0;return}var i=t%this.DB,o=this.DB-i,s=(1<<i)-1;r[0]=this[n]>>i;for(var u=n+1;u<this.t;++u)r[u-n-1]|=(this[u]&s)<<o,r[u-n]=this[u]>>i;i>0&&(r[this.t-n-1]|=(this.s&s)<<o),r.t=this.t-n,r.clamp()},e.prototype.subTo=function(t,r){for(var n=0,i=0,o=Math.min(t.t,this.t);n<o;)i+=this[n]-t[n],r[n++]=i&this.DM,i>>=this.DB;if(t.t<this.t){for(i-=t.s;n<this.t;)i+=this[n],r[n++]=i&this.DM,i>>=this.DB;i+=this.s}else{for(i+=this.s;n<t.t;)i-=t[n],r[n++]=i&this.DM,i>>=this.DB;i-=t.s}r.s=i<0?-1:0,i<-1?r[n++]=this.DV+i:i>0&&(r[n++]=i),r.t=n,r.clamp()},e.prototype.multiplyTo=function(t,r){var n=this.abs(),i=t.abs(),o=n.t;for(r.t=o+i.t;--o>=0;)r[o]=0;for(o=0;o<i.t;++o)r[o+n.t]=n.am(0,i[o],r,o,0,n.t);r.s=0,r.clamp(),this.s!=t.s&&e.ZERO.subTo(r,r)},e.prototype.squareTo=function(t){for(var r=this.abs(),n=t.t=2*r.t;--n>=0;)t[n]=0;for(n=0;n<r.t-1;++n){var i=r.am(n,r[n],t,2*n,0,1);(t[n+r.t]+=r.am(n+1,2*r[n],t,2*n+1,i,r.t-n-1))>=r.DV&&(t[n+r.t]-=r.DV,t[n+r.t+1]=1)}t.t>0&&(t[t.t-1]+=r.am(n,r[n],t,2*n,0,1)),t.s=0,t.clamp()},e.prototype.divRemTo=function(t,r,n){var i=t.abs();if(!(i.t<=0)){var o=this.abs();if(o.t<i.t){r==null||r.fromInt(0),n!=null&&this.copyTo(n);return}n==null&&(n=Y());var s=Y(),u=this.s,c=t.s,a=this.DB-xe(i[i.t-1]);a>0?(i.lShiftTo(a,s),o.lShiftTo(a,n)):(i.copyTo(s),o.copyTo(n));var l=s.t,f=s[l-1];if(f!=0){var p=f*(1<<this.F1)+(l>1?s[l-2]>>this.F2:0),h=this.FV/p,d=(1<<this.F1)/p,m=1<<this.F2,b=n.t,E=b-l,y=r!=null?r:Y();for(s.dlShiftTo(E,y),n.compareTo(y)>=0&&(n[n.t++]=1,n.subTo(y,n)),e.ONE.dlShiftTo(l,y),y.subTo(s,s);s.t<l;)s[s.t++]=0;for(;--E>=0;){var v=n[--b]==f?this.DM:Math.floor(n[b]*h+(n[b-1]+m)*d);if((n[b]+=s.am(0,v,n,E,0,l))<v)for(s.dlShiftTo(E,y),n.subTo(y,n);n[b]<--v;)n.subTo(y,n)}r!=null&&(n.drShiftTo(l,r),u!=c&&e.ZERO.subTo(r,r)),n.t=l,n.clamp(),a>0&&n.rShiftTo(a,n),u<0&&e.ZERO.subTo(n,n)}}},e.prototype.invDigit=function(){if(this.t<1)return 0;var t=this[0];if(!(t&1))return 0;var r=t&3;return r=r*(2-(t&15)*r)&15,r=r*(2-(t&255)*r)&255,r=r*(2-((t&65535)*r&65535))&65535,r=r*(2-t*r%this.DV)%this.DV,r>0?this.DV-r:-r},e.prototype.isEven=function(){return(this.t>0?this[0]&1:this.s)==0},e.prototype.exp=function(t,r){if(t>4294967295||t<1)return e.ONE;var n=Y(),i=Y(),o=r.convert(this),s=xe(t)-1;for(o.copyTo(n);--s>=0;)if(r.sqrTo(n,i),(t&1<<s)>0)r.mulTo(i,o,n);else{var u=n;n=i,i=u}return r.revert(n)},e.prototype.chunkSize=function(t){return Math.floor(Math.LN2*this.DB/Math.log(t))},e.prototype.toRadix=function(t){if(t==null&&(t=10),this.signum()==0||t<2||t>36)return"0";var r=this.chunkSize(t),n=Math.pow(t,r),i=Et(n),o=Y(),s=Y(),u="";for(this.divRemTo(i,o,s);o.signum()>0;)u=(n+s.intValue()).toString(t).substr(1)+u,o.divRemTo(i,o,s);return s.intValue().toString(t)+u},e.prototype.fromRadix=function(t,r){this.fromInt(0),r==null&&(r=10);for(var n=this.chunkSize(r),i=Math.pow(r,n),o=!1,s=0,u=0,c=0;c<t.length;++c){var a=hi(t,c);if(a<0){t.charAt(c)=="-"&&this.signum()==0&&(o=!0);continue}u=r*u+a,++s>=n&&(this.dMultiply(i),this.dAddOffset(u,0),s=0,u=0)}s>0&&(this.dMultiply(Math.pow(r,s)),this.dAddOffset(u,0)),o&&e.ZERO.subTo(this,this)},e.prototype.fromNumber=function(t,r,n){if(typeof r=="number")if(t<2)this.fromInt(1);else for(this.fromNumber(t,n),this.testBit(t-1)||this.bitwiseTo(e.ONE.shiftLeft(t-1),Se,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(r);)this.dAddOffset(2,0),this.bitLength()>t&&this.subTo(e.ONE.shiftLeft(t-1),this);else{var i=[],o=t&7;i.length=(t>>3)+1,r.nextBytes(i),o>0?i[0]&=(1<<o)-1:i[0]=0,this.fromString(i,256)}},e.prototype.bitwiseTo=function(t,r,n){var i,o,s=Math.min(t.t,this.t);for(i=0;i<s;++i)n[i]=r(this[i],t[i]);if(t.t<this.t){for(o=t.s&this.DM,i=s;i<this.t;++i)n[i]=r(this[i],o);n.t=this.t}else{for(o=this.s&this.DM,i=s;i<t.t;++i)n[i]=r(o,t[i]);n.t=t.t}n.s=r(this.s,t.s),n.clamp()},e.prototype.changeBit=function(t,r){var n=e.ONE.shiftLeft(t);return this.bitwiseTo(n,r,n),n},e.prototype.addTo=function(t,r){for(var n=0,i=0,o=Math.min(t.t,this.t);n<o;)i+=this[n]+t[n],r[n++]=i&this.DM,i>>=this.DB;if(t.t<this.t){for(i+=t.s;n<this.t;)i+=this[n],r[n++]=i&this.DM,i>>=this.DB;i+=this.s}else{for(i+=this.s;n<t.t;)i+=t[n],r[n++]=i&this.DM,i>>=this.DB;i+=t.s}r.s=i<0?-1:0,i>0?r[n++]=i:i<-1&&(r[n++]=this.DV+i),r.t=n,r.clamp()},e.prototype.dMultiply=function(t){this[this.t]=this.am(0,t-1,this,0,0,this.t),++this.t,this.clamp()},e.prototype.dAddOffset=function(t,r){if(t!=0){for(;this.t<=r;)this[this.t++]=0;for(this[r]+=t;this[r]>=this.DV;)this[r]-=this.DV,++r>=this.t&&(this[this.t++]=0),++this[r]}},e.prototype.multiplyLowerTo=function(t,r,n){var i=Math.min(this.t+t.t,r);for(n.s=0,n.t=i;i>0;)n[--i]=0;for(var o=n.t-this.t;i<o;++i)n[i+this.t]=this.am(0,t[i],n,i,0,this.t);for(var o=Math.min(t.t,r);i<o;++i)this.am(0,t[i],n,i,0,r-i);n.clamp()},e.prototype.multiplyUpperTo=function(t,r,n){--r;var i=n.t=this.t+t.t-r;for(n.s=0;--i>=0;)n[i]=0;for(i=Math.max(r-this.t,0);i<t.t;++i)n[this.t+i-r]=this.am(r-i,t[i],n,0,0,this.t+i-r);n.clamp(),n.drShiftTo(1,n)},e.prototype.modInt=function(t){if(t<=0)return 0;var r=this.DV%t,n=this.s<0?t-1:0;if(this.t>0)if(r==0)n=this[0]%t;else for(var i=this.t-1;i>=0;--i)n=(r*n+this[i])%t;return n},e.prototype.millerRabin=function(t){var r=this.subtract(e.ONE),n=r.getLowestSetBit();if(n<=0)return!1;var i=r.shiftRight(n);t=t+1>>1,t>et.length&&(t=et.length);for(var o=Y(),s=0;s<t;++s){o.fromInt(et[Math.floor(Math.random()*et.length)]);var u=o.modPow(i,this);if(u.compareTo(e.ONE)!=0&&u.compareTo(r)!=0){for(var c=1;c++<n&&u.compareTo(r)!=0;)if(u=u.modPowInt(2,this),u.compareTo(e.ONE)==0)return!1;if(u.compareTo(r)!=0)return!1}}return!0},e.prototype.square=function(){var t=Y();return this.squareTo(t),t},e.prototype.gcda=function(t,r){var n=this.s<0?this.negate():this.clone(),i=t.s<0?t.negate():t.clone();if(n.compareTo(i)<0){var o=n;n=i,i=o}var s=n.getLowestSetBit(),u=i.getLowestSetBit();if(u<0){r(n);return}s<u&&(u=s),u>0&&(n.rShiftTo(u,n),i.rShiftTo(u,i));var c=function(){(s=n.getLowestSetBit())>0&&n.rShiftTo(s,n),(s=i.getLowestSetBit())>0&&i.rShiftTo(s,i),n.compareTo(i)>=0?(n.subTo(i,n),n.rShiftTo(1,n)):(i.subTo(n,i),i.rShiftTo(1,i)),n.signum()>0?setTimeout(c,0):(u>0&&i.lShiftTo(u,i),setTimeout(function(){r(i)},0))};setTimeout(c,10)},e.prototype.fromNumberAsync=function(t,r,n,i){if(typeof r=="number")if(t<2)this.fromInt(1);else{this.fromNumber(t,n),this.testBit(t-1)||this.bitwiseTo(e.ONE.shiftLeft(t-1),Se,this),this.isEven()&&this.dAddOffset(1,0);var o=this,s=function(){o.dAddOffset(2,0),o.bitLength()>t&&o.subTo(e.ONE.shiftLeft(t-1),o),o.isProbablePrime(r)?setTimeout(function(){i()},0):setTimeout(s,0)};setTimeout(s,0)}else{var u=[],c=t&7;u.length=(t>>3)+1,r.nextBytes(u),c>0?u[0]&=(1<<c)-1:u[0]=0,this.fromString(u,256)}},e}(),Ch=function(){function e(){}return e.prototype.convert=function(t){return t},e.prototype.revert=function(t){return t},e.prototype.mulTo=function(t,r,n){t.multiplyTo(r,n)},e.prototype.sqrTo=function(t,r){t.squareTo(r)},e}(),ci=function(){function e(t){this.m=t}return e.prototype.convert=function(t){return t.s<0||t.compareTo(this.m)>=0?t.mod(this.m):t},e.prototype.revert=function(t){return t},e.prototype.reduce=function(t){t.divRemTo(this.m,null,t)},e.prototype.mulTo=function(t,r,n){t.multiplyTo(r,n),this.reduce(n)},e.prototype.sqrTo=function(t,r){t.squareTo(r),this.reduce(r)},e}(),li=function(){function e(t){this.m=t,this.mp=t.invDigit(),this.mpl=this.mp&32767,this.mph=this.mp>>15,this.um=(1<<t.DB-15)-1,this.mt2=2*t.t}return e.prototype.convert=function(t){var r=Y();return t.abs().dlShiftTo(this.m.t,r),r.divRemTo(this.m,null,r),t.s<0&&r.compareTo(J.ZERO)>0&&this.m.subTo(r,r),r},e.prototype.revert=function(t){var r=Y();return t.copyTo(r),this.reduce(r),r},e.prototype.reduce=function(t){for(;t.t<=this.mt2;)t[t.t++]=0;for(var r=0;r<this.m.t;++r){var n=t[r]&32767,i=n*this.mpl+((n*this.mph+(t[r]>>15)*this.mpl&this.um)<<15)&t.DM;for(n=r+this.m.t,t[n]+=this.m.am(0,i,t,r,0,this.m.t);t[n]>=t.DV;)t[n]-=t.DV,t[++n]++}t.clamp(),t.drShiftTo(this.m.t,t),t.compareTo(this.m)>=0&&t.subTo(this.m,t)},e.prototype.mulTo=function(t,r,n){t.multiplyTo(r,n),this.reduce(n)},e.prototype.sqrTo=function(t,r){t.squareTo(r),this.reduce(r)},e}(),Nh=function(){function e(t){this.m=t,this.r2=Y(),this.q3=Y(),J.ONE.dlShiftTo(2*t.t,this.r2),this.mu=this.r2.divide(t)}return e.prototype.convert=function(t){if(t.s<0||t.t>2*this.m.t)return t.mod(this.m);if(t.compareTo(this.m)<0)return t;var r=Y();return t.copyTo(r),this.reduce(r),r},e.prototype.revert=function(t){return t},e.prototype.reduce=function(t){for(t.drShiftTo(this.m.t-1,this.r2),t.t>this.m.t+1&&(t.t=this.m.t+1,t.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);t.compareTo(this.r2)<0;)t.dAddOffset(1,this.m.t+1);for(t.subTo(this.r2,t);t.compareTo(this.m)>=0;)t.subTo(this.m,t)},e.prototype.mulTo=function(t,r,n){t.multiplyTo(r,n),this.reduce(n)},e.prototype.sqrTo=function(t,r){t.squareTo(r),this.reduce(r)},e}();function Y(){return new J(null)}function G(e,t){return new J(e,t)}var fi=typeof navigator<"u";fi&&ui&&navigator.appName=="Microsoft Internet Explorer"?(J.prototype.am=function(e,t,r,n,i,o){for(var s=t&32767,u=t>>15;--o>=0;){var c=this[e]&32767,a=this[e++]>>15,l=u*c+a*s;c=s*c+((l&32767)<<15)+r[n]+(i&1073741823),i=(c>>>30)+(l>>>15)+u*a+(i>>>30),r[n++]=c&1073741823}return i},wt=30):fi&&ui&&navigator.appName!="Netscape"?(J.prototype.am=function(e,t,r,n,i,o){for(;--o>=0;){var s=t*this[e++]+r[n]+i;i=Math.floor(s/67108864),r[n++]=s&67108863}return i},wt=26):(J.prototype.am=function(e,t,r,n,i,o){for(var s=t&16383,u=t>>14;--o>=0;){var c=this[e]&16383,a=this[e++]>>14,l=u*c+a*s;c=s*c+((l&16383)<<14)+r[n]+i,i=(c>>28)+(l>>14)+u*a,r[n++]=c&268435455}return i},wt=28),J.prototype.DB=wt,J.prototype.DM=(1<<wt)-1,J.prototype.DV=1<<wt;var cr=52;J.prototype.FV=Math.pow(2,cr),J.prototype.F1=cr-wt,J.prototype.F2=2*wt-cr;var Je=[],Xt,ct;for(Xt=48,ct=0;ct<=9;++ct)Je[Xt++]=ct;for(Xt=97,ct=10;ct<36;++ct)Je[Xt++]=ct;for(Xt=65,ct=10;ct<36;++ct)Je[Xt++]=ct;function hi(e,t){var r=Je[e.charCodeAt(t)];return r!=null?r:-1}function Et(e){var t=Y();return t.fromInt(e),t}function xe(e){var t=1,r;return(r=e>>>16)!=0&&(e=r,t+=16),(r=e>>8)!=0&&(e=r,t+=8),(r=e>>4)!=0&&(e=r,t+=4),(r=e>>2)!=0&&(e=r,t+=2),(r=e>>1)!=0&&(e=r,t+=1),t}J.ZERO=Et(0),J.ONE=Et(1);var kh=function(){function e(){this.i=0,this.j=0,this.S=[]}return e.prototype.init=function(t){var r,n,i;for(r=0;r<256;++r)this.S[r]=r;for(n=0,r=0;r<256;++r)n=n+this.S[r]+t[r%t.length]&255,i=this.S[r],this.S[r]=this.S[n],this.S[n]=i;this.i=0,this.j=0},e.prototype.next=function(){var t;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,t=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=t,this.S[t+this.S[this.i]&255]},e}();function Ih(){return new kh}var Ho=256,Te,xt=null,lt;if(xt==null){xt=[],lt=0;var Re=void 0;if(typeof window<"u"&&window.crypto&&window.crypto.getRandomValues){var lr=new Uint32Array(256);for(window.crypto.getRandomValues(lr),Re=0;Re<lr.length;++Re)xt[lt++]=lr[Re]&255}var Oe=0,$e=function(e){if(Oe=Oe||0,Oe>=256||lt>=Ho){window.removeEventListener?window.removeEventListener("mousemove",$e,!1):window.detachEvent&&window.detachEvent("onmousemove",$e);return}try{var t=e.x+e.y;xt[lt++]=t&255,Oe+=1}catch(r){}};typeof window<"u"&&(window.addEventListener?window.addEventListener("mousemove",$e,!1):window.attachEvent&&window.attachEvent("onmousemove",$e))}function Fh(){if(Te==null){for(Te=Ih();lt<Ho;){var e=Math.floor(65536*Math.random());xt[lt++]=e&255}for(Te.init(xt),lt=0;lt<xt.length;++lt)xt[lt]=0;lt=0}return Te.next()}var Cr=function(){function e(){}return e.prototype.nextBytes=function(t){for(var r=0;r<t.length;++r)t[r]=Fh()},e}();function Ph(e,t){if(t<e.length+22)return console.error("Message too long for RSA"),null;for(var r=t-e.length-6,n="",i=0;i<r;i+=2)n+="ff";var o="0001"+n+"00"+e;return G(o,16)}function Mh(e,t){if(t<e.length+11)return console.error("Message too long for RSA"),null;for(var r=[],n=e.length-1;n>=0&&t>0;){var i=e.charCodeAt(n--);i<128?r[--t]=i:i>127&&i<2048?(r[--t]=i&63|128,r[--t]=i>>6|192):(r[--t]=i&63|128,r[--t]=i>>6&63|128,r[--t]=i>>12|224)}r[--t]=0;for(var o=new Cr,s=[];t>2;){for(s[0]=0;s[0]==0;)o.nextBytes(s);r[--t]=s[0]}return r[--t]=2,r[--t]=0,new J(r)}var Lh=function(){function e(){this.n=null,this.e=0,this.d=null,this.p=null,this.q=null,this.dmp1=null,this.dmq1=null,this.coeff=null}return e.prototype.doPublic=function(t){return t.modPowInt(this.e,this.n)},e.prototype.doPrivate=function(t){if(this.p==null||this.q==null)return t.modPow(this.d,this.n);for(var r=t.mod(this.p).modPow(this.dmp1,this.p),n=t.mod(this.q).modPow(this.dmq1,this.q);r.compareTo(n)<0;)r=r.add(this.p);return r.subtract(n).multiply(this.coeff).mod(this.p).multiply(this.q).add(n)},e.prototype.setPublic=function(t,r){t!=null&&r!=null&&t.length>0&&r.length>0?(this.n=G(t,16),this.e=parseInt(r,16)):console.error("Invalid RSA public key")},e.prototype.encrypt=function(t){var r=this.n.bitLength()+7>>3,n=Mh(t,r);if(n==null)return null;var i=this.doPublic(n);if(i==null)return null;for(var o=i.toString(16),s=o.length,u=0;u<r*2-s;u++)o="0"+o;return o},e.prototype.setPrivate=function(t,r,n){t!=null&&r!=null&&t.length>0&&r.length>0?(this.n=G(t,16),this.e=parseInt(r,16),this.d=G(n,16)):console.error("Invalid RSA private key")},e.prototype.setPrivateEx=function(t,r,n,i,o,s,u,c){t!=null&&r!=null&&t.length>0&&r.length>0?(this.n=G(t,16),this.e=parseInt(r,16),this.d=G(n,16),this.p=G(i,16),this.q=G(o,16),this.dmp1=G(s,16),this.dmq1=G(u,16),this.coeff=G(c,16)):console.error("Invalid RSA private key")},e.prototype.generate=function(t,r){var n=new Cr,i=t>>1;this.e=parseInt(r,16);for(var o=new J(r,16);;){for(;this.p=new J(t-i,1,n),!(this.p.subtract(J.ONE).gcd(o).compareTo(J.ONE)==0&&this.p.isProbablePrime(10)););for(;this.q=new J(i,1,n),!(this.q.subtract(J.ONE).gcd(o).compareTo(J.ONE)==0&&this.q.isProbablePrime(10)););if(this.p.compareTo(this.q)<=0){var s=this.p;this.p=this.q,this.q=s}var u=this.p.subtract(J.ONE),c=this.q.subtract(J.ONE),a=u.multiply(c);if(a.gcd(o).compareTo(J.ONE)==0){this.n=this.p.multiply(this.q),this.d=o.modInverse(a),this.dmp1=this.d.mod(u),this.dmq1=this.d.mod(c),this.coeff=this.q.modInverse(this.p);break}}},e.prototype.decrypt=function(t){var r=G(t,16),n=this.doPrivate(r);return n==null?null:Uh(n,this.n.bitLength()+7>>3)},e.prototype.generateAsync=function(t,r,n){var i=new Cr,o=t>>1;this.e=parseInt(r,16);var s=new J(r,16),u=this,c=function(){var a=function(){if(u.p.compareTo(u.q)<=0){var p=u.p;u.p=u.q,u.q=p}var h=u.p.subtract(J.ONE),d=u.q.subtract(J.ONE),m=h.multiply(d);m.gcd(s).compareTo(J.ONE)==0?(u.n=u.p.multiply(u.q),u.d=s.modInverse(m),u.dmp1=u.d.mod(h),u.dmq1=u.d.mod(d),u.coeff=u.q.modInverse(u.p),setTimeout(function(){n()},0)):setTimeout(c,0)},l=function(){u.q=Y(),u.q.fromNumberAsync(o,1,i,function(){u.q.subtract(J.ONE).gcda(s,function(p){p.compareTo(J.ONE)==0&&u.q.isProbablePrime(10)?setTimeout(a,0):setTimeout(l,0)})})},f=function(){u.p=Y(),u.p.fromNumberAsync(t-o,1,i,function(){u.p.subtract(J.ONE).gcda(s,function(p){p.compareTo(J.ONE)==0&&u.p.isProbablePrime(10)?setTimeout(l,0):setTimeout(f,0)})})};setTimeout(f,0)};setTimeout(c,0)},e.prototype.sign=function(t,r,n){var i=Vh(n),o=i+r(t).toString(),s=Ph(o,this.n.bitLength()/4);if(s==null)return null;var u=this.doPrivate(s);if(u==null)return null;var c=u.toString(16);return c.length&1?"0"+c:c},e.prototype.verify=function(t,r,n){var i=G(r,16),o=this.doPublic(i);if(o==null)return null;var s=o.toString(16).replace(/^1f+00/,""),u=Hh(s);return u==n(t).toString()},e}();function Uh(e,t){for(var r=e.toByteArray(),n=0;n<r.length&&r[n]==0;)++n;if(r.length-n!=t-1||r[n]!=2)return null;for(++n;r[n]!=0;)if(++n>=r.length)return null;for(var i="";++n<r.length;){var o=r[n]&255;o<128?i+=String.fromCharCode(o):o>191&&o<224?(i+=String.fromCharCode((o&31)<<6|r[n+1]&63),++n):(i+=String.fromCharCode((o&15)<<12|(r[n+1]&63)<<6|r[n+2]&63),n+=2)}return i}var je={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"};function Vh(e){return je[e]||""}function Hh(e){for(var t in je)if(je.hasOwnProperty(t)){var r=je[t],n=r.length;if(e.substr(0,n)==r)return e.substr(n)}return e}/*!
27
+ Copyright (c) 2011, Yahoo! Inc. All rights reserved.
28
+ Code licensed under the BSD License:
29
+ http://developer.yahoo.com/yui/license.html
30
+ version: 2.9.0
31
+ */var X={};X.lang={extend:function(e,t,r){if(!t||!e)throw new Error("YAHOO.lang.extend failed, please check that all dependencies are included.");var n=function(){};if(n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e,e.superclass=t.prototype,t.prototype.constructor==Object.prototype.constructor&&(t.prototype.constructor=t),r){var i;for(i in r)e.prototype[i]=r[i];var o=function(){},s=["toString","valueOf"];try{/MSIE/.test(navigator.userAgent)&&(o=function(u,c){for(i=0;i<s.length;i=i+1){var a=s[i],l=c[a];typeof l=="function"&&l!=Object.prototype[a]&&(u[a]=l)}})}catch(u){}o(e.prototype,r)}}};/**
32
+ * @fileOverview
33
+ * @name asn1-1.0.js
34
+ * @author Kenji Urushima kenji.urushima@gmail.com
35
+ * @version asn1 1.0.13 (2017-Jun-02)
36
+ * @since jsrsasign 2.1
37
+ * @license <a href="https://kjur.github.io/jsrsasign/license/">MIT License</a>
38
+ */var A={};(typeof A.asn1>"u"||!A.asn1)&&(A.asn1={}),A.asn1.ASN1Util=new function(){this.integerToByteHex=function(e){var t=e.toString(16);return t.length%2==1&&(t="0"+t),t},this.bigIntToMinTwosComplementsHex=function(e){var t=e.toString(16);if(t.substr(0,1)!="-")t.length%2==1?t="0"+t:t.match(/^[0-7]/)||(t="00"+t);else{var r=t.substr(1),n=r.length;n%2==1?n+=1:t.match(/^[0-7]/)||(n+=2);for(var i="",o=0;o<n;o++)i+="f";var s=new J(i,16),u=s.xor(e).add(J.ONE);t=u.toString(16).replace(/^-/,"")}return t},this.getPEMStringFromHex=function(e,t){return hextopem(e,t)},this.newObject=function(e){var t=A,r=t.asn1,n=r.DERBoolean,i=r.DERInteger,o=r.DERBitString,s=r.DEROctetString,u=r.DERNull,c=r.DERObjectIdentifier,a=r.DEREnumerated,l=r.DERUTF8String,f=r.DERNumericString,p=r.DERPrintableString,h=r.DERTeletexString,d=r.DERIA5String,m=r.DERUTCTime,b=r.DERGeneralizedTime,E=r.DERSequence,y=r.DERSet,v=r.DERTaggedObject,_=r.ASN1Util.newObject,S=Object.keys(e);if(S.length!=1)throw"key of param shall be only one.";var g=S[0];if(":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+g+":")==-1)throw"undefined key: "+g;if(g=="bool")return new n(e[g]);if(g=="int")return new i(e[g]);if(g=="bitstr")return new o(e[g]);if(g=="octstr")return new s(e[g]);if(g=="null")return new u(e[g]);if(g=="oid")return new c(e[g]);if(g=="enum")return new a(e[g]);if(g=="utf8str")return new l(e[g]);if(g=="numstr")return new f(e[g]);if(g=="prnstr")return new p(e[g]);if(g=="telstr")return new h(e[g]);if(g=="ia5str")return new d(e[g]);if(g=="utctime")return new m(e[g]);if(g=="gentime")return new b(e[g]);if(g=="seq"){for(var x=e[g],O=[],P=0;P<x.length;P++){var w=_(x[P]);O.push(w)}return new E({array:O})}if(g=="set"){for(var x=e[g],O=[],P=0;P<x.length;P++){var w=_(x[P]);O.push(w)}return new y({array:O})}if(g=="tag"){var T=e[g];if(Object.prototype.toString.call(T)==="[object Array]"&&T.length==3){var F=_(T[2]);return new v({tag:T[0],explicit:T[1],obj:F})}else{var j={};if(T.explicit!==void 0&&(j.explicit=T.explicit),T.tag!==void 0&&(j.tag=T.tag),T.obj===void 0)throw"obj shall be specified for 'tag'.";return j.obj=_(T.obj),new v(j)}}},this.jsonToASN1HEX=function(e){var t=this.newObject(e);return t.getEncodedHex()}},A.asn1.ASN1Util.oidHexToInt=function(e){for(var i="",t=parseInt(e.substr(0,2),16),r=Math.floor(t/40),n=t%40,i=r+"."+n,o="",s=2;s<e.length;s+=2){var u=parseInt(e.substr(s,2),16),c=("00000000"+u.toString(2)).slice(-8);if(o=o+c.substr(1,7),c.substr(0,1)=="0"){var a=new J(o,2);i=i+"."+a.toString(10),o=""}}return i},A.asn1.ASN1Util.oidIntToHex=function(e){var t=function(u){var c=u.toString(16);return c.length==1&&(c="0"+c),c},r=function(u){var c="",a=new J(u,10),l=a.toString(2),f=7-l.length%7;f==7&&(f=0);for(var p="",h=0;h<f;h++)p+="0";l=p+l;for(var h=0;h<l.length-1;h+=7){var d=l.substr(h,7);h!=l.length-7&&(d="1"+d),c+=t(parseInt(d,2))}return c};if(!e.match(/^[0-9.]+$/))throw"malformed oid string: "+e;var n="",i=e.split("."),o=parseInt(i[0])*40+parseInt(i[1]);n+=t(o),i.splice(0,2);for(var s=0;s<i.length;s++)n+=r(i[s]);return n},A.asn1.ASN1Object=function(){var e="";this.getLengthHexFromValue=function(){if(typeof this.hV>"u"||this.hV==null)throw"this.hV is null or undefined.";if(this.hV.length%2==1)throw"value hex must be even length: n="+e.length+",v="+this.hV;var t=this.hV.length/2,r=t.toString(16);if(r.length%2==1&&(r="0"+r),t<128)return r;var n=r.length/2;if(n>15)throw"ASN.1 length too long to represent by 8x: n = "+t.toString(16);var i=128+n;return i.toString(16)+r},this.getEncodedHex=function(){return(this.hTLV==null||this.isModified)&&(this.hV=this.getFreshValueHex(),this.hL=this.getLengthHexFromValue(),this.hTLV=this.hT+this.hL+this.hV,this.isModified=!1),this.hTLV},this.getValueHex=function(){return this.getEncodedHex(),this.hV},this.getFreshValueHex=function(){return""}},A.asn1.DERAbstractString=function(e){A.asn1.DERAbstractString.superclass.constructor.call(this),this.getString=function(){return this.s},this.setString=function(t){this.hTLV=null,this.isModified=!0,this.s=t,this.hV=stohex(this.s)},this.setStringHex=function(t){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=t},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e=="string"?this.setString(e):typeof e.str<"u"?this.setString(e.str):typeof e.hex<"u"&&this.setStringHex(e.hex))},X.lang.extend(A.asn1.DERAbstractString,A.asn1.ASN1Object),A.asn1.DERAbstractTime=function(e){A.asn1.DERAbstractTime.superclass.constructor.call(this),this.localDateToUTC=function(t){utc=t.getTime()+t.getTimezoneOffset()*6e4;var r=new Date(utc);return r},this.formatDate=function(t,r,n){var i=this.zeroPadding,o=this.localDateToUTC(t),s=String(o.getFullYear());r=="utc"&&(s=s.substr(2,2));var u=i(String(o.getMonth()+1),2),c=i(String(o.getDate()),2),a=i(String(o.getHours()),2),l=i(String(o.getMinutes()),2),f=i(String(o.getSeconds()),2),p=s+u+c+a+l+f;if(n===!0){var h=o.getMilliseconds();if(h!=0){var d=i(String(h),3);d=d.replace(/[0]+$/,""),p=p+"."+d}}return p+"Z"},this.zeroPadding=function(t,r){return t.length>=r?t:new Array(r-t.length+1).join("0")+t},this.getString=function(){return this.s},this.setString=function(t){this.hTLV=null,this.isModified=!0,this.s=t,this.hV=stohex(t)},this.setByDateValue=function(t,r,n,i,o,s){var u=new Date(Date.UTC(t,r-1,n,i,o,s,0));this.setByDate(u)},this.getFreshValueHex=function(){return this.hV}},X.lang.extend(A.asn1.DERAbstractTime,A.asn1.ASN1Object),A.asn1.DERAbstractStructured=function(e){A.asn1.DERAbstractString.superclass.constructor.call(this),this.setByASN1ObjectArray=function(t){this.hTLV=null,this.isModified=!0,this.asn1Array=t},this.appendASN1Object=function(t){this.hTLV=null,this.isModified=!0,this.asn1Array.push(t)},this.asn1Array=new Array,typeof e<"u"&&typeof e.array<"u"&&(this.asn1Array=e.array)},X.lang.extend(A.asn1.DERAbstractStructured,A.asn1.ASN1Object),A.asn1.DERBoolean=function(){A.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"},X.lang.extend(A.asn1.DERBoolean,A.asn1.ASN1Object),A.asn1.DERInteger=function(e){A.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=A.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var r=new J(String(t),10);this.setByBigInteger(r)},this.setValueHex=function(t){this.hV=t},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e.bigint<"u"?this.setByBigInteger(e.bigint):typeof e.int<"u"?this.setByInteger(e.int):typeof e=="number"?this.setByInteger(e):typeof e.hex<"u"&&this.setValueHex(e.hex))},X.lang.extend(A.asn1.DERInteger,A.asn1.ASN1Object),A.asn1.DERBitString=function(e){if(e!==void 0&&typeof e.obj<"u"){var t=A.asn1.ASN1Util.newObject(e.obj);e.hex="00"+t.getEncodedHex()}A.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(r){this.hTLV=null,this.isModified=!0,this.hV=r},this.setUnusedBitsAndHexValue=function(r,n){if(r<0||7<r)throw"unused bits shall be from 0 to 7: u = "+r;var i="0"+r;this.hTLV=null,this.isModified=!0,this.hV=i+n},this.setByBinaryString=function(r){r=r.replace(/0+$/,"");var n=8-r.length%8;n==8&&(n=0);for(var i=0;i<=n;i++)r+="0";for(var o="",i=0;i<r.length-1;i+=8){var s=r.substr(i,8),u=parseInt(s,2).toString(16);u.length==1&&(u="0"+u),o+=u}this.hTLV=null,this.isModified=!0,this.hV="0"+n+o},this.setByBooleanArray=function(r){for(var n="",i=0;i<r.length;i++)r[i]==!0?n+="1":n+="0";this.setByBinaryString(n)},this.newFalseArray=function(r){for(var n=new Array(r),i=0;i<r;i++)n[i]=!1;return n},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e=="string"&&e.toLowerCase().match(/^[0-9a-f]+$/)?this.setHexValueIncludingUnusedBits(e):typeof e.hex<"u"?this.setHexValueIncludingUnusedBits(e.hex):typeof e.bin<"u"?this.setByBinaryString(e.bin):typeof e.array<"u"&&this.setByBooleanArray(e.array))},X.lang.extend(A.asn1.DERBitString,A.asn1.ASN1Object),A.asn1.DEROctetString=function(e){if(e!==void 0&&typeof e.obj<"u"){var t=A.asn1.ASN1Util.newObject(e.obj);e.hex=t.getEncodedHex()}A.asn1.DEROctetString.superclass.constructor.call(this,e),this.hT="04"},X.lang.extend(A.asn1.DEROctetString,A.asn1.DERAbstractString),A.asn1.DERNull=function(){A.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"},X.lang.extend(A.asn1.DERNull,A.asn1.ASN1Object),A.asn1.DERObjectIdentifier=function(e){var t=function(n){var i=n.toString(16);return i.length==1&&(i="0"+i),i},r=function(n){var i="",o=new J(n,10),s=o.toString(2),u=7-s.length%7;u==7&&(u=0);for(var c="",a=0;a<u;a++)c+="0";s=c+s;for(var a=0;a<s.length-1;a+=7){var l=s.substr(a,7);a!=s.length-7&&(l="1"+l),i+=t(parseInt(l,2))}return i};A.asn1.DERObjectIdentifier.superclass.constructor.call(this),this.hT="06",this.setValueHex=function(n){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=n},this.setValueOidString=function(n){if(!n.match(/^[0-9.]+$/))throw"malformed oid string: "+n;var i="",o=n.split("."),s=parseInt(o[0])*40+parseInt(o[1]);i+=t(s),o.splice(0,2);for(var u=0;u<o.length;u++)i+=r(o[u]);this.hTLV=null,this.isModified=!0,this.s=null,this.hV=i},this.setValueName=function(n){var i=A.asn1.x509.OID.name2oid(n);if(i!=="")this.setValueOidString(i);else throw"DERObjectIdentifier oidName undefined: "+n},this.getFreshValueHex=function(){return this.hV},e!==void 0&&(typeof e=="string"?e.match(/^[0-2].[0-9.]+$/)?this.setValueOidString(e):this.setValueName(e):e.oid!==void 0?this.setValueOidString(e.oid):e.hex!==void 0?this.setValueHex(e.hex):e.name!==void 0&&this.setValueName(e.name))},X.lang.extend(A.asn1.DERObjectIdentifier,A.asn1.ASN1Object),A.asn1.DEREnumerated=function(e){A.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=A.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var r=new J(String(t),10);this.setByBigInteger(r)},this.setValueHex=function(t){this.hV=t},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e.int<"u"?this.setByInteger(e.int):typeof e=="number"?this.setByInteger(e):typeof e.hex<"u"&&this.setValueHex(e.hex))},X.lang.extend(A.asn1.DEREnumerated,A.asn1.ASN1Object),A.asn1.DERUTF8String=function(e){A.asn1.DERUTF8String.superclass.constructor.call(this,e),this.hT="0c"},X.lang.extend(A.asn1.DERUTF8String,A.asn1.DERAbstractString),A.asn1.DERNumericString=function(e){A.asn1.DERNumericString.superclass.constructor.call(this,e),this.hT="12"},X.lang.extend(A.asn1.DERNumericString,A.asn1.DERAbstractString),A.asn1.DERPrintableString=function(e){A.asn1.DERPrintableString.superclass.constructor.call(this,e),this.hT="13"},X.lang.extend(A.asn1.DERPrintableString,A.asn1.DERAbstractString),A.asn1.DERTeletexString=function(e){A.asn1.DERTeletexString.superclass.constructor.call(this,e),this.hT="14"},X.lang.extend(A.asn1.DERTeletexString,A.asn1.DERAbstractString),A.asn1.DERIA5String=function(e){A.asn1.DERIA5String.superclass.constructor.call(this,e),this.hT="16"},X.lang.extend(A.asn1.DERIA5String,A.asn1.DERAbstractString),A.asn1.DERUTCTime=function(e){A.asn1.DERUTCTime.superclass.constructor.call(this,e),this.hT="17",this.setByDate=function(t){this.hTLV=null,this.isModified=!0,this.date=t,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return typeof this.date>"u"&&typeof this.s>"u"&&(this.date=new Date,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)),this.hV},e!==void 0&&(e.str!==void 0?this.setString(e.str):typeof e=="string"&&e.match(/^[0-9]{12}Z$/)?this.setString(e):e.hex!==void 0?this.setStringHex(e.hex):e.date!==void 0&&this.setByDate(e.date))},X.lang.extend(A.asn1.DERUTCTime,A.asn1.DERAbstractTime),A.asn1.DERGeneralizedTime=function(e){A.asn1.DERGeneralizedTime.superclass.constructor.call(this,e),this.hT="18",this.withMillis=!1,this.setByDate=function(t){this.hTLV=null,this.isModified=!0,this.date=t,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return this.date===void 0&&this.s===void 0&&(this.date=new Date,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)),this.hV},e!==void 0&&(e.str!==void 0?this.setString(e.str):typeof e=="string"&&e.match(/^[0-9]{14}Z$/)?this.setString(e):e.hex!==void 0?this.setStringHex(e.hex):e.date!==void 0&&this.setByDate(e.date),e.millis===!0&&(this.withMillis=!0))},X.lang.extend(A.asn1.DERGeneralizedTime,A.asn1.DERAbstractTime),A.asn1.DERSequence=function(e){A.asn1.DERSequence.superclass.constructor.call(this,e),this.hT="30",this.getFreshValueHex=function(){for(var t="",r=0;r<this.asn1Array.length;r++){var n=this.asn1Array[r];t+=n.getEncodedHex()}return this.hV=t,this.hV}},X.lang.extend(A.asn1.DERSequence,A.asn1.DERAbstractStructured),A.asn1.DERSet=function(e){A.asn1.DERSet.superclass.constructor.call(this,e),this.hT="31",this.sortFlag=!0,this.getFreshValueHex=function(){for(var t=new Array,r=0;r<this.asn1Array.length;r++){var n=this.asn1Array[r];t.push(n.getEncodedHex())}return this.sortFlag==!0&&t.sort(),this.hV=t.join(""),this.hV},typeof e<"u"&&typeof e.sortflag<"u"&&e.sortflag==!1&&(this.sortFlag=!1)},X.lang.extend(A.asn1.DERSet,A.asn1.DERAbstractStructured),A.asn1.DERTaggedObject=function(e){A.asn1.DERTaggedObject.superclass.constructor.call(this),this.hT="a0",this.hV="",this.isExplicit=!0,this.asn1Object=null,this.setASN1Object=function(t,r,n){this.hT=r,this.isExplicit=t,this.asn1Object=n,this.isExplicit?(this.hV=this.asn1Object.getEncodedHex(),this.hTLV=null,this.isModified=!0):(this.hV=null,this.hTLV=n.getEncodedHex(),this.hTLV=this.hTLV.replace(/^../,r),this.isModified=!1)},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e.tag<"u"&&(this.hT=e.tag),typeof e.explicit<"u"&&(this.isExplicit=e.explicit),typeof e.obj<"u"&&(this.asn1Object=e.obj,this.setASN1Object(this.isExplicit,this.hT,this.asn1Object)))},X.lang.extend(A.asn1.DERTaggedObject,A.asn1.ASN1Object);var qh=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();(function(e){qh(t,e);function t(r){var n=e.call(this)||this;return r&&(typeof r=="string"?n.parseKey(r):(t.hasPrivateKeyProperty(r)||t.hasPublicKeyProperty(r))&&n.parsePropertiesFrom(r)),n}return t.prototype.parseKey=function(r){try{var n=0,i=0,o=/^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/,s=o.test(r)?Oh.decode(r):Br.unarmor(r),u=Dh.decode(s);if(u.sub.length===3&&(u=u.sub[2].sub[0]),u.sub.length===9){n=u.sub[1].getHexStringValue(),this.n=G(n,16),i=u.sub[2].getHexStringValue(),this.e=parseInt(i,16);var c=u.sub[3].getHexStringValue();this.d=G(c,16);var a=u.sub[4].getHexStringValue();this.p=G(a,16);var l=u.sub[5].getHexStringValue();this.q=G(l,16);var f=u.sub[6].getHexStringValue();this.dmp1=G(f,16);var p=u.sub[7].getHexStringValue();this.dmq1=G(p,16);var h=u.sub[8].getHexStringValue();this.coeff=G(h,16)}else if(u.sub.length===2)if(u.sub[0].sub){var d=u.sub[1],m=d.sub[0];n=m.sub[0].getHexStringValue(),this.n=G(n,16),i=m.sub[1].getHexStringValue(),this.e=parseInt(i,16)}else n=u.sub[0].getHexStringValue(),this.n=G(n,16),i=u.sub[1].getHexStringValue(),this.e=parseInt(i,16);else return!1;return!0}catch(b){return!1}},t.prototype.getPrivateBaseKey=function(){var r={array:[new A.asn1.DERInteger({int:0}),new A.asn1.DERInteger({bigint:this.n}),new A.asn1.DERInteger({int:this.e}),new A.asn1.DERInteger({bigint:this.d}),new A.asn1.DERInteger({bigint:this.p}),new A.asn1.DERInteger({bigint:this.q}),new A.asn1.DERInteger({bigint:this.dmp1}),new A.asn1.DERInteger({bigint:this.dmq1}),new A.asn1.DERInteger({bigint:this.coeff})]},n=new A.asn1.DERSequence(r);return n.getEncodedHex()},t.prototype.getPrivateBaseKeyB64=function(){return si(this.getPrivateBaseKey())},t.prototype.getPublicBaseKey=function(){var r=new A.asn1.DERSequence({array:[new A.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new A.asn1.DERNull]}),n=new A.asn1.DERSequence({array:[new A.asn1.DERInteger({bigint:this.n}),new A.asn1.DERInteger({int:this.e})]}),i=new A.asn1.DERBitString({hex:"00"+n.getEncodedHex()}),o=new A.asn1.DERSequence({array:[r,i]});return o.getEncodedHex()},t.prototype.getPublicBaseKeyB64=function(){return si(this.getPublicBaseKey())},t.wordwrap=function(r,n){if(n=n||64,!r)return r;var i="(.{1,"+n+`})( +|$
39
+ ?)|(.{1,`+n+"})";return r.match(RegExp(i,"g")).join(`
40
+ `)},t.prototype.getPrivateKey=function(){var r=`-----BEGIN RSA PRIVATE KEY-----
41
+ `;return r+=t.wordwrap(this.getPrivateBaseKeyB64())+`
42
+ `,r+="-----END RSA PRIVATE KEY-----",r},t.prototype.getPublicKey=function(){var r=`-----BEGIN PUBLIC KEY-----
43
+ `;return r+=t.wordwrap(this.getPublicBaseKeyB64())+`
44
+ `,r+="-----END PUBLIC KEY-----",r},t.hasPublicKeyProperty=function(r){return r=r||{},r.hasOwnProperty("n")&&r.hasOwnProperty("e")},t.hasPrivateKeyProperty=function(r){return r=r||{},r.hasOwnProperty("n")&&r.hasOwnProperty("e")&&r.hasOwnProperty("d")&&r.hasOwnProperty("p")&&r.hasOwnProperty("q")&&r.hasOwnProperty("dmp1")&&r.hasOwnProperty("dmq1")&&r.hasOwnProperty("coeff")},t.prototype.parsePropertiesFrom=function(r){this.n=r.n,this.e=r.e,r.hasOwnProperty("d")&&(this.d=r.d,this.p=r.p,this.q=r.q,this.dmp1=r.dmp1,this.dmq1=r.dmq1,this.coeff=r.coeff)},t})(Lh);var fr;typeof process<"u"&&((fr=Qs)===null||fr===void 0||fr.npm_package_version);const qo=/^(http|https):\/\/[\w.:\-@]*/;function zh(e){return qo.test(e)}var zo={exports:{}};/*! @preserve
45
+ * numeral.js
46
+ * version : 2.0.6
47
+ * author : Adam Draper
48
+ * license : MIT
49
+ * http://adamwdraper.github.com/Numeral-js/
50
+ */(function(e){(function(t,r){e.exports?e.exports=r():t.numeral=r()})(rt,function(){var t,r,n="2.0.6",i={},o={},s={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0},u={currentLocale:s.currentLocale,zeroFormat:s.zeroFormat,nullFormat:s.nullFormat,defaultFormat:s.defaultFormat,scalePercentBy100:s.scalePercentBy100};function c(a,l){this._input=a,this._value=l}return t=function(a){var l,f,p,h;if(t.isNumeral(a))l=a.value();else if(a===0||typeof a>"u")l=0;else if(a===null||r.isNaN(a))l=null;else if(typeof a=="string")if(u.zeroFormat&&a===u.zeroFormat)l=0;else if(u.nullFormat&&a===u.nullFormat||!a.replace(/[^0-9]+/g,"").length)l=null;else{for(f in i)if(h=typeof i[f].regexps.unformat=="function"?i[f].regexps.unformat():i[f].regexps.unformat,h&&a.match(h)){p=i[f].unformat;break}p=p||t._.stringToNumber,l=p(a)}else l=Number(a)||null;return new c(a,l)},t.version=n,t.isNumeral=function(a){return a instanceof c},t._=r={numberToFormat:function(a,l,f){var p=o[t.options.currentLocale],h=!1,d=!1,m=0,b="",E=1e12,y=1e9,v=1e6,_=1e3,S="",g=!1,x,O,P,w,T,F,j;if(a=a||0,O=Math.abs(a),t._.includes(l,"(")?(h=!0,l=l.replace(/[\(|\)]/g,"")):(t._.includes(l,"+")||t._.includes(l,"-"))&&(T=t._.includes(l,"+")?l.indexOf("+"):a<0?l.indexOf("-"):-1,l=l.replace(/[\+|\-]/g,"")),t._.includes(l,"a")&&(x=l.match(/a(k|m|b|t)?/),x=x?x[1]:!1,t._.includes(l," a")&&(b=" "),l=l.replace(new RegExp(b+"a[kmbt]?"),""),O>=E&&!x||x==="t"?(b+=p.abbreviations.trillion,a=a/E):O<E&&O>=y&&!x||x==="b"?(b+=p.abbreviations.billion,a=a/y):O<y&&O>=v&&!x||x==="m"?(b+=p.abbreviations.million,a=a/v):(O<v&&O>=_&&!x||x==="k")&&(b+=p.abbreviations.thousand,a=a/_)),t._.includes(l,"[.]")&&(d=!0,l=l.replace("[.]",".")),P=a.toString().split(".")[0],w=l.split(".")[1],F=l.indexOf(","),m=(l.split(".")[0].split(",")[0].match(/0/g)||[]).length,w?(t._.includes(w,"[")?(w=w.replace("]",""),w=w.split("["),S=t._.toFixed(a,w[0].length+w[1].length,f,w[1].length)):S=t._.toFixed(a,w.length,f),P=S.split(".")[0],t._.includes(S,".")?S=p.delimiters.decimal+S.split(".")[1]:S="",d&&Number(S.slice(1))===0&&(S="")):P=t._.toFixed(a,0,f),b&&!x&&Number(P)>=1e3&&b!==p.abbreviations.trillion)switch(P=String(Number(P)/1e3),b){case p.abbreviations.thousand:b=p.abbreviations.million;break;case p.abbreviations.million:b=p.abbreviations.billion;break;case p.abbreviations.billion:b=p.abbreviations.trillion;break}if(t._.includes(P,"-")&&(P=P.slice(1),g=!0),P.length<m)for(var I=m-P.length;I>0;I--)P="0"+P;return F>-1&&(P=P.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+p.delimiters.thousands)),l.indexOf(".")===0&&(P=""),j=P+S+(b||""),h?j=(h&&g?"(":"")+j+(h&&g?")":""):T>=0?j=T===0?(g?"-":"+")+j:j+(g?"-":"+"):g&&(j="-"+j),j},stringToNumber:function(a){var l=o[u.currentLocale],f=a,p={thousand:3,million:6,billion:9,trillion:12},h,d,m;if(u.zeroFormat&&a===u.zeroFormat)d=0;else if(u.nullFormat&&a===u.nullFormat||!a.replace(/[^0-9]+/g,"").length)d=null;else{d=1,l.delimiters.decimal!=="."&&(a=a.replace(/\./g,"").replace(l.delimiters.decimal,"."));for(h in p)if(m=new RegExp("[^a-zA-Z]"+l.abbreviations[h]+"(?:\\)|(\\"+l.currency.symbol+")?(?:\\))?)?$"),f.match(m)){d*=Math.pow(10,p[h]);break}d*=(a.split("-").length+Math.min(a.split("(").length-1,a.split(")").length-1))%2?1:-1,a=a.replace(/[^0-9\.]+/g,""),d*=Number(a)}return d},isNaN:function(a){return typeof a=="number"&&isNaN(a)},includes:function(a,l){return a.indexOf(l)!==-1},insert:function(a,l,f){return a.slice(0,f)+l+a.slice(f)},reduce:function(a,l){if(this===null)throw new TypeError("Array.prototype.reduce called on null or undefined");if(typeof l!="function")throw new TypeError(l+" is not a function");var f=Object(a),p=f.length>>>0,h=0,d;if(arguments.length===3)d=arguments[2];else{for(;h<p&&!(h in f);)h++;if(h>=p)throw new TypeError("Reduce of empty array with no initial value");d=f[h++]}for(;h<p;h++)h in f&&(d=l(d,f[h],h,f));return d},multiplier:function(a){var l=a.toString().split(".");return l.length<2?1:Math.pow(10,l[1].length)},correctionFactor:function(){var a=Array.prototype.slice.call(arguments);return a.reduce(function(l,f){var p=r.multiplier(f);return l>p?l:p},1)},toFixed:function(a,l,f,p){var h=a.toString().split("."),d=l-(p||0),m,b,E,y;return h.length===2?m=Math.min(Math.max(h[1].length,d),l):m=d,E=Math.pow(10,m),y=(f(a+"e+"+m)/E).toFixed(m),p>l-m&&(b=new RegExp("\\.?0{1,"+(p-(l-m))+"}$"),y=y.replace(b,"")),y}},t.options=u,t.formats=i,t.locales=o,t.locale=function(a){return a&&(u.currentLocale=a.toLowerCase()),u.currentLocale},t.localeData=function(a){if(!a)return o[u.currentLocale];if(a=a.toLowerCase(),!o[a])throw new Error("Unknown locale : "+a);return o[a]},t.reset=function(){for(var a in s)u[a]=s[a]},t.zeroFormat=function(a){u.zeroFormat=typeof a=="string"?a:null},t.nullFormat=function(a){u.nullFormat=typeof a=="string"?a:null},t.defaultFormat=function(a){u.defaultFormat=typeof a=="string"?a:"0.0"},t.register=function(a,l,f){if(l=l.toLowerCase(),this[a+"s"][l])throw new TypeError(l+" "+a+" already registered.");return this[a+"s"][l]=f,f},t.validate=function(a,l){var f,p,h,d,m,b,E,y;if(typeof a!="string"&&(a+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",a)),a=a.trim(),a.match(/^\d+$/))return!0;if(a==="")return!1;try{E=t.localeData(l)}catch(v){E=t.localeData(t.locale())}return h=E.currency.symbol,m=E.abbreviations,f=E.delimiters.decimal,E.delimiters.thousands==="."?p="\\.":p=E.delimiters.thousands,y=a.match(/^[^\d]+/),y!==null&&(a=a.substr(1),y[0]!==h)||(y=a.match(/[^\d]+$/),y!==null&&(a=a.slice(0,-1),y[0]!==m.thousand&&y[0]!==m.million&&y[0]!==m.billion&&y[0]!==m.trillion))?!1:(b=new RegExp(p+"{2}"),a.match(/[^\d.,]/g)?!1:(d=a.split(f),d.length>2?!1:d.length<2?!!d[0].match(/^\d+.*\d$/)&&!d[0].match(b):d[0].length===1?!!d[0].match(/^\d+$/)&&!d[0].match(b)&&!!d[1].match(/^\d+$/):!!d[0].match(/^\d+.*\d$/)&&!d[0].match(b)&&!!d[1].match(/^\d+$/)))},t.fn=c.prototype={clone:function(){return t(this)},format:function(a,l){var f=this._value,p=a||u.defaultFormat,h,d,m;if(l=l||Math.round,f===0&&u.zeroFormat!==null)d=u.zeroFormat;else if(f===null&&u.nullFormat!==null)d=u.nullFormat;else{for(h in i)if(p.match(i[h].regexps.format)){m=i[h].format;break}m=m||t._.numberToFormat,d=m(f,p,l)}return d},value:function(){return this._value},input:function(){return this._input},set:function(a){return this._value=Number(a),this},add:function(a){var l=r.correctionFactor.call(null,this._value,a);function f(p,h,d,m){return p+Math.round(l*h)}return this._value=r.reduce([this._value,a],f,0)/l,this},subtract:function(a){var l=r.correctionFactor.call(null,this._value,a);function f(p,h,d,m){return p-Math.round(l*h)}return this._value=r.reduce([a],f,Math.round(this._value*l))/l,this},multiply:function(a){function l(f,p,h,d){var m=r.correctionFactor(f,p);return Math.round(f*m)*Math.round(p*m)/Math.round(m*m)}return this._value=r.reduce([this._value,a],l,1),this},divide:function(a){function l(f,p,h,d){var m=r.correctionFactor(f,p);return Math.round(f*m)/Math.round(p*m)}return this._value=r.reduce([this._value,a],l),this},difference:function(a){return Math.abs(t(this._value).subtract(a).value())}},t.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(a){var l=a%10;return~~(a%100/10)===1?"th":l===1?"st":l===2?"nd":l===3?"rd":"th"},currency:{symbol:"$"}}),function(){t.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(a,l,f){var p=t._.includes(l," BPS")?" ":"",h;return a=a*1e4,l=l.replace(/\s?BPS/,""),h=t._.numberToFormat(a,l,f),t._.includes(h,")")?(h=h.split(""),h.splice(-1,0,p+"BPS"),h=h.join("")):h=h+p+"BPS",h},unformat:function(a){return+(t._.stringToNumber(a)*1e-4).toFixed(15)}})}(),function(){var a={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]},l={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},f=a.suffixes.concat(l.suffixes.filter(function(h){return a.suffixes.indexOf(h)<0})),p=f.join("|");p="("+p.replace("B","B(?!PS)")+")",t.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(p)},format:function(h,d,m){var b,E=t._.includes(d,"ib")?l:a,y=t._.includes(d," b")||t._.includes(d," ib")?" ":"",v,_,S;for(d=d.replace(/\s?i?b/,""),v=0;v<=E.suffixes.length;v++)if(_=Math.pow(E.base,v),S=Math.pow(E.base,v+1),h===null||h===0||h>=_&&h<S){y+=E.suffixes[v],_>0&&(h=h/_);break}return b=t._.numberToFormat(h,d,m),b+y},unformat:function(h){var d=t._.stringToNumber(h),m,b;if(d){for(m=a.suffixes.length-1;m>=0;m--){if(t._.includes(h,a.suffixes[m])){b=Math.pow(a.base,m);break}if(t._.includes(h,l.suffixes[m])){b=Math.pow(l.base,m);break}}d*=b||1}return d}})}(),function(){t.register("format","currency",{regexps:{format:/(\$)/},format:function(a,l,f){var p=t.locales[t.options.currentLocale],h={before:l.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:l.match(/([\+|\-|\)|\s|\$]*)$/)[0]},d,m,b;for(l=l.replace(/\s?\$\s?/,""),d=t._.numberToFormat(a,l,f),a>=0?(h.before=h.before.replace(/[\-\(]/,""),h.after=h.after.replace(/[\-\)]/,"")):a<0&&!t._.includes(h.before,"-")&&!t._.includes(h.before,"(")&&(h.before="-"+h.before),b=0;b<h.before.length;b++)switch(m=h.before[b],m){case"$":d=t._.insert(d,p.currency.symbol,b);break;case" ":d=t._.insert(d," ",b+p.currency.symbol.length-1);break}for(b=h.after.length-1;b>=0;b--)switch(m=h.after[b],m){case"$":d=b===h.after.length-1?d+p.currency.symbol:t._.insert(d,p.currency.symbol,-(h.after.length-(1+b)));break;case" ":d=b===h.after.length-1?d+" ":t._.insert(d," ",-(h.after.length-(1+b)+p.currency.symbol.length-1));break}return d}})}(),function(){t.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(a,l,f){var p,h=typeof a=="number"&&!t._.isNaN(a)?a.toExponential():"0e+0",d=h.split("e");return l=l.replace(/e[\+|\-]{1}0/,""),p=t._.numberToFormat(Number(d[0]),l,f),p+"e"+d[1]},unformat:function(a){var l=t._.includes(a,"e+")?a.split("e+"):a.split("e-"),f=Number(l[0]),p=Number(l[1]);p=t._.includes(a,"e-")?p*=-1:p;function h(d,m,b,E){var y=t._.correctionFactor(d,m),v=d*y*(m*y)/(y*y);return v}return t._.reduce([f,Math.pow(10,p)],h,1)}})}(),function(){t.register("format","ordinal",{regexps:{format:/(o)/},format:function(a,l,f){var p=t.locales[t.options.currentLocale],h,d=t._.includes(l," o")?" ":"";return l=l.replace(/\s?o/,""),d+=p.ordinal(a),h=t._.numberToFormat(a,l,f),h+d}})}(),function(){t.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(a,l,f){var p=t._.includes(l," %")?" ":"",h;return t.options.scalePercentBy100&&(a=a*100),l=l.replace(/\s?\%/,""),h=t._.numberToFormat(a,l,f),t._.includes(h,")")?(h=h.split(""),h.splice(-1,0,p+"%"),h=h.join("")):h=h+p+"%",h},unformat:function(a){var l=t._.stringToNumber(a);return t.options.scalePercentBy100?l*.01:l}})}(),function(){t.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(a,l,f){var p=Math.floor(a/60/60),h=Math.floor((a-p*60*60)/60),d=Math.round(a-p*60*60-h*60);return p+":"+(h<10?"0"+h:h)+":"+(d<10?"0"+d:d)},unformat:function(a){var l=a.split(":"),f=0;return l.length===3?(f=f+Number(l[0])*60*60,f=f+Number(l[1])*60,f=f+Number(l[2])):l.length===2&&(f=f+Number(l[0])*60,f=f+Number(l[1])),Number(f)}})}(),t})})(zo);var Wh=zo.exports;te(Wh);var Wo={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(rt,function(){var r=1e3,n=6e4,i=36e5,o="millisecond",s="second",u="minute",c="hour",a="day",l="week",f="month",p="quarter",h="year",d="date",m="Invalid Date",b=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,E=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,y={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(I){var D=["th","st","nd","rd"],C=I%100;return"["+I+(D[(C-20)%10]||D[C]||D[0])+"]"}},v=function(I,D,C){var U=String(I);return!U||U.length>=D?I:""+Array(D+1-U.length).join(C)+I},_={s:v,z:function(I){var D=-I.utcOffset(),C=Math.abs(D),U=Math.floor(C/60),M=C%60;return(D<=0?"+":"-")+v(U,2,"0")+":"+v(M,2,"0")},m:function I(D,C){if(D.date()<C.date())return-I(C,D);var U=12*(C.year()-D.year())+(C.month()-D.month()),M=D.clone().add(U,f),H=C-M<0,q=D.clone().add(U+(H?-1:1),f);return+(-(U+(C-M)/(H?M-q:q-M))||0)},a:function(I){return I<0?Math.ceil(I)||0:Math.floor(I)},p:function(I){return{M:f,y:h,w:l,d:a,D:d,h:c,m:u,s,ms:o,Q:p}[I]||String(I||"").toLowerCase().replace(/s$/,"")},u:function(I){return I===void 0}},S="en",g={};g[S]=y;var x="$isDayjsObject",O=function(I){return I instanceof F||!(!I||!I[x])},P=function I(D,C,U){var M;if(!D)return S;if(typeof D=="string"){var H=D.toLowerCase();g[H]&&(M=H),C&&(g[H]=C,M=H);var q=D.split("-");if(!M&&q.length>1)return I(q[0])}else{var $=D.name;g[$]=D,M=$}return!U&&M&&(S=M),M||!U&&S},w=function(I,D){if(O(I))return I.clone();var C=typeof D=="object"?D:{};return C.date=I,C.args=arguments,new F(C)},T=_;T.l=P,T.i=O,T.w=function(I,D){return w(I,{locale:D.$L,utc:D.$u,x:D.$x,$offset:D.$offset})};var F=function(){function I(C){this.$L=P(C.locale,null,!0),this.parse(C),this.$x=this.$x||C.x||{},this[x]=!0}var D=I.prototype;return D.parse=function(C){this.$d=function(U){var M=U.date,H=U.utc;if(M===null)return new Date(NaN);if(T.u(M))return new Date;if(M instanceof Date)return new Date(M);if(typeof M=="string"&&!/Z$/i.test(M)){var q=M.match(b);if(q){var $=q[2]-1||0,B=(q[7]||"0").substring(0,3);return H?new Date(Date.UTC(q[1],$,q[3]||1,q[4]||0,q[5]||0,q[6]||0,B)):new Date(q[1],$,q[3]||1,q[4]||0,q[5]||0,q[6]||0,B)}}return new Date(M)}(C),this.init()},D.init=function(){var C=this.$d;this.$y=C.getFullYear(),this.$M=C.getMonth(),this.$D=C.getDate(),this.$W=C.getDay(),this.$H=C.getHours(),this.$m=C.getMinutes(),this.$s=C.getSeconds(),this.$ms=C.getMilliseconds()},D.$utils=function(){return T},D.isValid=function(){return this.$d.toString()!==m},D.isSame=function(C,U){var M=w(C);return this.startOf(U)<=M&&M<=this.endOf(U)},D.isAfter=function(C,U){return w(C)<this.startOf(U)},D.isBefore=function(C,U){return this.endOf(U)<w(C)},D.$g=function(C,U,M){return T.u(C)?this[U]:this.set(M,C)},D.unix=function(){return Math.floor(this.valueOf()/1e3)},D.valueOf=function(){return this.$d.getTime()},D.startOf=function(C,U){var M=this,H=!!T.u(U)||U,q=T.p(C),$=function($t,nt){var _t=T.w(M.$u?Date.UTC(M.$y,nt,$t):new Date(M.$y,nt,$t),M);return H?_t:_t.endOf(a)},B=function($t,nt){return T.w(M.toDate()[$t].apply(M.toDate("s"),(H?[0,0,0,0]:[23,59,59,999]).slice(nt)),M)},N=this.$W,k=this.$M,at=this.$D,Ut="set"+(this.$u?"UTC":"");switch(q){case h:return H?$(1,0):$(31,11);case f:return H?$(1,k):$(0,k+1);case l:var Ot=this.$locale().weekStart||0,ne=(N<Ot?N+7:N)-Ot;return $(H?at-ne:at+(6-ne),k);case a:case d:return B(Ut+"Hours",0);case c:return B(Ut+"Minutes",1);case u:return B(Ut+"Seconds",2);case s:return B(Ut+"Milliseconds",3);default:return this.clone()}},D.endOf=function(C){return this.startOf(C,!1)},D.$set=function(C,U){var M,H=T.p(C),q="set"+(this.$u?"UTC":""),$=(M={},M[a]=q+"Date",M[d]=q+"Date",M[f]=q+"Month",M[h]=q+"FullYear",M[c]=q+"Hours",M[u]=q+"Minutes",M[s]=q+"Seconds",M[o]=q+"Milliseconds",M)[H],B=H===a?this.$D+(U-this.$W):U;if(H===f||H===h){var N=this.clone().set(d,1);N.$d[$](B),N.init(),this.$d=N.set(d,Math.min(this.$D,N.daysInMonth())).$d}else $&&this.$d[$](B);return this.init(),this},D.set=function(C,U){return this.clone().$set(C,U)},D.get=function(C){return this[T.p(C)]()},D.add=function(C,U){var M,H=this;C=Number(C);var q=T.p(U),$=function(k){var at=w(H);return T.w(at.date(at.date()+Math.round(k*C)),H)};if(q===f)return this.set(f,this.$M+C);if(q===h)return this.set(h,this.$y+C);if(q===a)return $(1);if(q===l)return $(7);var B=(M={},M[u]=n,M[c]=i,M[s]=r,M)[q]||1,N=this.$d.getTime()+C*B;return T.w(N,this)},D.subtract=function(C,U){return this.add(-1*C,U)},D.format=function(C){var U=this,M=this.$locale();if(!this.isValid())return M.invalidDate||m;var H=C||"YYYY-MM-DDTHH:mm:ssZ",q=T.z(this),$=this.$H,B=this.$m,N=this.$M,k=M.weekdays,at=M.months,Ut=M.meridiem,Ot=function(nt,_t,ie,_e){return nt&&(nt[_t]||nt(U,H))||ie[_t].slice(0,_e)},ne=function(nt){return T.s($%12||12,nt,"0")},$t=Ut||function(nt,_t,ie){var _e=nt<12?"AM":"PM";return ie?_e.toLowerCase():_e};return H.replace(E,function(nt,_t){return _t||function(ie){switch(ie){case"YY":return String(U.$y).slice(-2);case"YYYY":return T.s(U.$y,4,"0");case"M":return N+1;case"MM":return T.s(N+1,2,"0");case"MMM":return Ot(M.monthsShort,N,at,3);case"MMMM":return Ot(at,N);case"D":return U.$D;case"DD":return T.s(U.$D,2,"0");case"d":return String(U.$W);case"dd":return Ot(M.weekdaysMin,U.$W,k,2);case"ddd":return Ot(M.weekdaysShort,U.$W,k,3);case"dddd":return k[U.$W];case"H":return String($);case"HH":return T.s($,2,"0");case"h":return ne(1);case"hh":return ne(2);case"a":return $t($,B,!0);case"A":return $t($,B,!1);case"m":return String(B);case"mm":return T.s(B,2,"0");case"s":return String(U.$s);case"ss":return T.s(U.$s,2,"0");case"SSS":return T.s(U.$ms,3,"0");case"Z":return q}return null}(nt)||q.replace(":","")})},D.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},D.diff=function(C,U,M){var H,q=this,$=T.p(U),B=w(C),N=(B.utcOffset()-this.utcOffset())*n,k=this-B,at=function(){return T.m(q,B)};switch($){case h:H=at()/12;break;case f:H=at();break;case p:H=at()/3;break;case l:H=(k-N)/6048e5;break;case a:H=(k-N)/864e5;break;case c:H=k/i;break;case u:H=k/n;break;case s:H=k/r;break;default:H=k}return M?H:T.a(H)},D.daysInMonth=function(){return this.endOf(f).$D},D.$locale=function(){return g[this.$L]},D.locale=function(C,U){if(!C)return this.$L;var M=this.clone(),H=P(C,U,!0);return H&&(M.$L=H),M},D.clone=function(){return T.w(this.$d,this)},D.toDate=function(){return new Date(this.valueOf())},D.toJSON=function(){return this.isValid()?this.toISOString():null},D.toISOString=function(){return this.$d.toISOString()},D.toString=function(){return this.$d.toUTCString()},I}(),j=F.prototype;return w.prototype=j,[["$ms",o],["$s",s],["$m",u],["$H",c],["$W",a],["$M",f],["$y",h],["$D",d]].forEach(function(I){j[I[1]]=function(D){return this.$g(D,I[0],I[1])}}),w.extend=function(I,D){return I.$i||(I(D,F,w),I.$i=!0),w},w.locale=P,w.isDayjs=O,w.unix=function(I){return w(1e3*I)},w.en=g[S],w.Ls=g,w.p={},w})})(Wo);var Jo=Wo.exports;const Jh=te(Jo);var Yh={exports:{}};(function(e,t){(function(r,n){e.exports=n(Jo)})(rt,function(r){function n(s){return s&&typeof s=="object"&&"default"in s?s:{default:s}}var i=n(r),o={name:"zh-cn",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(s,u){return u==="W"?s+"周":s+"日"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},meridiem:function(s,u){var c=100*s+u;return c<600?"凌晨":c<900?"早上":c<1100?"上午":c<1300?"中午":c<1800?"下午":"晚上"}};return i.default.locale(o,null,!0),o})})(Yh),Jh.locale("zh-cn");function Kh(e=!0){const t="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(r){const n=Math.random()*16|0;return(r==="x"?n:n&3|8).toString(16)});return e?t.toLowerCase():t.replace(/-/gi,"")}function Gh(e=0){return L(this,null,function*(){return new Promise(t=>{setTimeout(t,e)})})}function Zh(e){return[...e.entries()].reduce((t,[r,n])=>(t[r]=n,t),{})}function Xh(e,t){return Array.from(new Set(e))}function hr(e,t){const r={};if(Array.isArray(t))Object.keys(e).forEach(n=>{t.includes(n)||(r[n]=e[n])});else{const n=t;Object.entries(e).forEach(([i,o])=>{n(i,o)||(r[i]=o)})}return r}function Qh(e,t){const r={};if(Array.isArray(t))Object.keys(e).forEach(n=>{t.includes(n)&&(r[n]=e[n])});else{const n=t;Object.entries(e).forEach(([i,o])=>{n(i,o)&&(r[i]=o)})}return r}var Yo={exports:{}};(function(e){var t=function(){var r=String.fromCharCode,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",o={};function s(c,a){if(!o[c]){o[c]={};for(var l=0;l<c.length;l++)o[c][c.charAt(l)]=l}return o[c][a]}var u={compressToBase64:function(c){if(c==null)return"";var a=u._compress(c,6,function(l){return n.charAt(l)});switch(a.length%4){default:case 0:return a;case 1:return a+"===";case 2:return a+"==";case 3:return a+"="}},decompressFromBase64:function(c){return c==null?"":c==""?null:u._decompress(c.length,32,function(a){return s(n,c.charAt(a))})},compressToUTF16:function(c){return c==null?"":u._compress(c,15,function(a){return r(a+32)})+" "},decompressFromUTF16:function(c){return c==null?"":c==""?null:u._decompress(c.length,16384,function(a){return c.charCodeAt(a)-32})},compressToUint8Array:function(c){for(var a=u.compress(c),l=new Uint8Array(a.length*2),f=0,p=a.length;f<p;f++){var h=a.charCodeAt(f);l[f*2]=h>>>8,l[f*2+1]=h%256}return l},decompressFromUint8Array:function(c){if(c==null)return u.decompress(c);for(var a=new Array(c.length/2),l=0,f=a.length;l<f;l++)a[l]=c[l*2]*256+c[l*2+1];var p=[];return a.forEach(function(h){p.push(r(h))}),u.decompress(p.join(""))},compressToEncodedURIComponent:function(c){return c==null?"":u._compress(c,6,function(a){return i.charAt(a)})},decompressFromEncodedURIComponent:function(c){return c==null?"":c==""?null:(c=c.replace(/ /g,"+"),u._decompress(c.length,32,function(a){return s(i,c.charAt(a))}))},compress:function(c){return u._compress(c,16,function(a){return r(a)})},_compress:function(c,a,l){if(c==null)return"";var f,p,h={},d={},m="",b="",E="",y=2,v=3,_=2,S=[],g=0,x=0,O;for(O=0;O<c.length;O+=1)if(m=c.charAt(O),Object.prototype.hasOwnProperty.call(h,m)||(h[m]=v++,d[m]=!0),b=E+m,Object.prototype.hasOwnProperty.call(h,b))E=b;else{if(Object.prototype.hasOwnProperty.call(d,E)){if(E.charCodeAt(0)<256){for(f=0;f<_;f++)g=g<<1,x==a-1?(x=0,S.push(l(g)),g=0):x++;for(p=E.charCodeAt(0),f=0;f<8;f++)g=g<<1|p&1,x==a-1?(x=0,S.push(l(g)),g=0):x++,p=p>>1}else{for(p=1,f=0;f<_;f++)g=g<<1|p,x==a-1?(x=0,S.push(l(g)),g=0):x++,p=0;for(p=E.charCodeAt(0),f=0;f<16;f++)g=g<<1|p&1,x==a-1?(x=0,S.push(l(g)),g=0):x++,p=p>>1}y--,y==0&&(y=Math.pow(2,_),_++),delete d[E]}else for(p=h[E],f=0;f<_;f++)g=g<<1|p&1,x==a-1?(x=0,S.push(l(g)),g=0):x++,p=p>>1;y--,y==0&&(y=Math.pow(2,_),_++),h[b]=v++,E=String(m)}if(E!==""){if(Object.prototype.hasOwnProperty.call(d,E)){if(E.charCodeAt(0)<256){for(f=0;f<_;f++)g=g<<1,x==a-1?(x=0,S.push(l(g)),g=0):x++;for(p=E.charCodeAt(0),f=0;f<8;f++)g=g<<1|p&1,x==a-1?(x=0,S.push(l(g)),g=0):x++,p=p>>1}else{for(p=1,f=0;f<_;f++)g=g<<1|p,x==a-1?(x=0,S.push(l(g)),g=0):x++,p=0;for(p=E.charCodeAt(0),f=0;f<16;f++)g=g<<1|p&1,x==a-1?(x=0,S.push(l(g)),g=0):x++,p=p>>1}y--,y==0&&(y=Math.pow(2,_),_++),delete d[E]}else for(p=h[E],f=0;f<_;f++)g=g<<1|p&1,x==a-1?(x=0,S.push(l(g)),g=0):x++,p=p>>1;y--,y==0&&(y=Math.pow(2,_),_++)}for(p=2,f=0;f<_;f++)g=g<<1|p&1,x==a-1?(x=0,S.push(l(g)),g=0):x++,p=p>>1;for(;;)if(g=g<<1,x==a-1){S.push(l(g));break}else x++;return S.join("")},decompress:function(c){return c==null?"":c==""?null:u._decompress(c.length,32768,function(a){return c.charCodeAt(a)})},_decompress:function(c,a,l){var f=[],p=4,h=4,d=3,m="",b=[],E,y,v,_,S,g,x,O={val:l(0),position:a,index:1};for(E=0;E<3;E+=1)f[E]=E;for(v=0,S=Math.pow(2,2),g=1;g!=S;)_=O.val&O.position,O.position>>=1,O.position==0&&(O.position=a,O.val=l(O.index++)),v|=(_>0?1:0)*g,g<<=1;switch(v){case 0:for(v=0,S=Math.pow(2,8),g=1;g!=S;)_=O.val&O.position,O.position>>=1,O.position==0&&(O.position=a,O.val=l(O.index++)),v|=(_>0?1:0)*g,g<<=1;x=r(v);break;case 1:for(v=0,S=Math.pow(2,16),g=1;g!=S;)_=O.val&O.position,O.position>>=1,O.position==0&&(O.position=a,O.val=l(O.index++)),v|=(_>0?1:0)*g,g<<=1;x=r(v);break;case 2:return""}for(f[3]=x,y=x,b.push(x);;){if(O.index>c)return"";for(v=0,S=Math.pow(2,d),g=1;g!=S;)_=O.val&O.position,O.position>>=1,O.position==0&&(O.position=a,O.val=l(O.index++)),v|=(_>0?1:0)*g,g<<=1;switch(x=v){case 0:for(v=0,S=Math.pow(2,8),g=1;g!=S;)_=O.val&O.position,O.position>>=1,O.position==0&&(O.position=a,O.val=l(O.index++)),v|=(_>0?1:0)*g,g<<=1;f[h++]=r(v),x=h-1,p--;break;case 1:for(v=0,S=Math.pow(2,16),g=1;g!=S;)_=O.val&O.position,O.position>>=1,O.position==0&&(O.position=a,O.val=l(O.index++)),v|=(_>0?1:0)*g,g<<=1;f[h++]=r(v),x=h-1,p--;break;case 2:return b.join("")}if(p==0&&(p=Math.pow(2,d),d++),f[x])m=f[x];else if(x===h)m=y+y.charAt(0);else return null;b.push(m),f[h++]=y+m.charAt(0),p--,y=m,p==0&&(p=Math.pow(2,d),d++)}}};return u}();e!=null?e.exports=t:typeof angular<"u"&&angular!=null&&angular.module("LZString",[]).factory("LZString",function(){return t})})(Yo);var Ko=Yo.exports;function tp(e){for(var t=[],r=0;r<e.length;){var n=e[r];if(n==="*"||n==="+"||n==="?"){t.push({type:"MODIFIER",index:r,value:e[r++]});continue}if(n==="\\"){t.push({type:"ESCAPED_CHAR",index:r++,value:e[r++]});continue}if(n==="{"){t.push({type:"OPEN",index:r,value:e[r++]});continue}if(n==="}"){t.push({type:"CLOSE",index:r,value:e[r++]});continue}if(n===":"){for(var i="",o=r+1;o<e.length;){var s=e.charCodeAt(o);if(s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122||s===95){i+=e[o++];continue}break}if(!i)throw new TypeError("Missing parameter name at ".concat(r));t.push({type:"NAME",index:r,value:i}),r=o;continue}if(n==="("){var u=1,c="",o=r+1;if(e[o]==="?")throw new TypeError('Pattern cannot start with "?" at '.concat(o));for(;o<e.length;){if(e[o]==="\\"){c+=e[o++]+e[o++];continue}if(e[o]===")"){if(u--,u===0){o++;break}}else if(e[o]==="("&&(u++,e[o+1]!=="?"))throw new TypeError("Capturing groups are not allowed at ".concat(o));c+=e[o++]}if(u)throw new TypeError("Unbalanced pattern at ".concat(r));if(!c)throw new TypeError("Missing pattern at ".concat(r));t.push({type:"PATTERN",index:r,value:c}),r=o;continue}t.push({type:"CHAR",index:r,value:e[r++]})}return t.push({type:"END",index:r,value:""}),t}function Go(e,t){t===void 0&&(t={});for(var r=tp(e),n=t.prefixes,i=n===void 0?"./":n,o="[^".concat(Kt(t.delimiter||"/#?"),"]+?"),s=[],u=0,c=0,a="",l=function(g){if(c<r.length&&r[c].type===g)return r[c++].value},f=function(g){var x=l(g);if(x!==void 0)return x;var O=r[c],P=O.type,w=O.index;throw new TypeError("Unexpected ".concat(P," at ").concat(w,", expected ").concat(g))},p=function(){for(var g="",x;x=l("CHAR")||l("ESCAPED_CHAR");)g+=x;return g};c<r.length;){var h=l("CHAR"),d=l("NAME"),m=l("PATTERN");if(d||m){var b=h||"";i.indexOf(b)===-1&&(a+=b,b=""),a&&(s.push(a),a=""),s.push({name:d||u++,prefix:b,suffix:"",pattern:m||o,modifier:l("MODIFIER")||""});continue}var E=h||l("ESCAPED_CHAR");if(E){a+=E;continue}a&&(s.push(a),a="");var y=l("OPEN");if(y){var b=p(),v=l("NAME")||"",_=l("PATTERN")||"",S=p();f("CLOSE"),s.push({name:v||(_?u++:""),pattern:v&&!_?o:_,prefix:b,suffix:S,modifier:l("MODIFIER")||""});continue}f("END")}return s}function ep(e,t){return rp(Go(e,t),t)}function rp(e,t){t===void 0&&(t={});var r=tn(t),n=t.encode,i=n===void 0?function(c){return c}:n,o=t.validate,s=o===void 0?!0:o,u=e.map(function(c){if(typeof c=="object")return new RegExp("^(?:".concat(c.pattern,")$"),r)});return function(c){for(var a="",l=0;l<e.length;l++){var f=e[l];if(typeof f=="string"){a+=f;continue}var p=c?c[f.name]:void 0,h=f.modifier==="?"||f.modifier==="*",d=f.modifier==="*"||f.modifier==="+";if(Array.isArray(p)){if(!d)throw new TypeError('Expected "'.concat(f.name,'" to not repeat, but got an array'));if(p.length===0){if(h)continue;throw new TypeError('Expected "'.concat(f.name,'" to not be empty'))}for(var m=0;m<p.length;m++){var b=i(p[m],f);if(s&&!u[l].test(b))throw new TypeError('Expected all "'.concat(f.name,'" to match "').concat(f.pattern,'", but got "').concat(b,'"'));a+=f.prefix+b+f.suffix}continue}if(typeof p=="string"||typeof p=="number"){var b=i(String(p),f);if(s&&!u[l].test(b))throw new TypeError('Expected "'.concat(f.name,'" to match "').concat(f.pattern,'", but got "').concat(b,'"'));a+=f.prefix+b+f.suffix;continue}if(!h){var E=d?"an array":"a string";throw new TypeError('Expected "'.concat(f.name,'" to be ').concat(E))}}return a}}function np(e,t){var r=[],n=en(e,r,t);return ip(n,r,t)}function ip(e,t,r){r===void 0&&(r={});var n=r.decode,i=n===void 0?function(o){return o}:n;return function(o){var s=e.exec(o);if(!s)return!1;for(var u=s[0],c=s.index,a=Object.create(null),l=function(p){if(s[p]===void 0)return"continue";var h=t[p-1];h.modifier==="*"||h.modifier==="+"?a[h.name]=s[p].split(h.prefix+h.suffix).map(function(d){return i(d,h)}):a[h.name]=i(s[p],h)},f=1;f<s.length;f++)l(f);return{path:u,index:c,params:a}}}function Kt(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function tn(e){return e&&e.sensitive?"":"i"}function op(e,t){if(!t)return e;for(var r=/\((?:\?<(.*?)>)?(?!\?)/g,n=0,i=r.exec(e.source);i;)t.push({name:i[1]||n++,prefix:"",suffix:"",modifier:"",pattern:""}),i=r.exec(e.source);return e}function sp(e,t,r){var n=e.map(function(i){return en(i,t,r).source});return new RegExp("(?:".concat(n.join("|"),")"),tn(r))}function ap(e,t,r){return up(Go(e,r),t,r)}function up(e,t,r){r===void 0&&(r={});for(var n=r.strict,i=n===void 0?!1:n,o=r.start,s=o===void 0?!0:o,u=r.end,c=u===void 0?!0:u,a=r.encode,l=a===void 0?function(w){return w}:a,f=r.delimiter,p=f===void 0?"/#?":f,h=r.endsWith,d=h===void 0?"":h,m="[".concat(Kt(d),"]|$"),b="[".concat(Kt(p),"]"),E=s?"^":"",y=0,v=e;y<v.length;y++){var _=v[y];if(typeof _=="string")E+=Kt(l(_));else{var S=Kt(l(_.prefix)),g=Kt(l(_.suffix));if(_.pattern)if(t&&t.push(_),S||g)if(_.modifier==="+"||_.modifier==="*"){var x=_.modifier==="*"?"?":"";E+="(?:".concat(S,"((?:").concat(_.pattern,")(?:").concat(g).concat(S,"(?:").concat(_.pattern,"))*)").concat(g,")").concat(x)}else E+="(?:".concat(S,"(").concat(_.pattern,")").concat(g,")").concat(_.modifier);else _.modifier==="+"||_.modifier==="*"?E+="((?:".concat(_.pattern,")").concat(_.modifier,")"):E+="(".concat(_.pattern,")").concat(_.modifier);else E+="(?:".concat(S).concat(g,")").concat(_.modifier)}}if(c)i||(E+="".concat(b,"?")),E+=r.endsWith?"(?=".concat(m,")"):"$";else{var O=e[e.length-1],P=typeof O=="string"?b.indexOf(O[O.length-1])>-1:O===void 0;i||(E+="(?:".concat(b,"(?=").concat(m,"))?")),P||(E+="(?=".concat(b,"|").concat(m,")"))}return new RegExp(E,tn(r))}function en(e,t,r){return e instanceof RegExp?op(e,t):Array.isArray(e)?sp(e,t,r):ap(e,t,r)}Ko.compress;Ko.decompress;/**!
51
+ * Copyright (c) 2025, VTJ.PRO All rights reserved.
52
+ * @name @vtj/core
53
+ * @author CHC chenhuachun1549@dingtalk.com
54
+ * @version 0.10.1-alpha.0
55
+ * @license <a href="https://vtj.pro/license.html">MIT License</a>
56
+ */const cp="VueMaterial",lp="VueRouterMaterial",fp={[cp]:["Transition","TransitionGroup","KeepAlive","Teleport","Suspense"],[lp]:["RouterView","RouterLink"]};class hp{constructor(){z(this,"listeners",[]);z(this,"isReady",!1)}triggerReady(){this.isReady=!0;for(const t of this.listeners)t();this.listeners=[]}ready(t){this.isReady?t():this.listeners.push(t)}resetReady(){this.isReady=!1}}var pp=Object.defineProperty,dp=(e,t,r)=>t in e?pp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ut=(e,t,r)=>dp(e,typeof t!="symbol"?t+"":t,r);(function(){if(typeof window>"u"||typeof EventTarget>"u")return;const e=EventTarget.prototype.addEventListener;EventTarget.prototype.addEventListener=function(t,r,n){typeof n!="boolean"&&(n=n||{},n.passive=!1),e.call(this,t,r,n)}})();const mp=e=>typeof e=="symbol";new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(mp));function Zo(e,t){return function(){return e.apply(t,arguments)}}const{toString:gp}=Object.prototype,{getPrototypeOf:rn}=Object,Ye=(e=>t=>{const r=gp.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),dt=e=>(e=e.toLowerCase(),t=>Ye(t)===e),Ke=e=>t=>typeof t===e,{isArray:ee}=Array,me=Ke("undefined");function yp(e){return e!==null&&!me(e)&&e.constructor!==null&&!me(e.constructor)&&st(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Xo=dt("ArrayBuffer");function vp(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Xo(e.buffer),t}const bp=Ke("string"),st=Ke("function"),Qo=Ke("number"),Ge=e=>e!==null&&typeof e=="object",_p=e=>e===!0||e===!1,Be=e=>{if(Ye(e)!=="object")return!1;const t=rn(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},wp=dt("Date"),Ep=dt("File"),Sp=dt("Blob"),xp=dt("FileList"),Tp=e=>Ge(e)&&st(e.pipe),Rp=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||st(e.append)&&((t=Ye(e))==="formdata"||t==="object"&&st(e.toString)&&e.toString()==="[object FormData]"))},Op=dt("URLSearchParams"),[$p,Ap,Dp,jp]=["ReadableStream","Request","Response","Headers"].map(dt),Bp=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ve(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,i;if(typeof e!="object"&&(e=[e]),ee(e))for(n=0,i=e.length;n<i;n++)t.call(null,e[n],n,e);else{const o=r?Object.getOwnPropertyNames(e):Object.keys(e),s=o.length;let u;for(n=0;n<s;n++)u=o[n],t.call(null,e[u],u,e)}}function ts(e,t){t=t.toLowerCase();const r=Object.keys(e);let n=r.length,i;for(;n-- >0;)if(i=r[n],t===i.toLowerCase())return i;return null}const Nt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,es=e=>!me(e)&&e!==Nt;function Nr(){const{caseless:e}=es(this)&&this||{},t={},r=(n,i)=>{const o=e&&ts(t,i)||i;Be(t[o])&&Be(n)?t[o]=Nr(t[o],n):Be(n)?t[o]=Nr({},n):ee(n)?t[o]=n.slice():t[o]=n};for(let n=0,i=arguments.length;n<i;n++)arguments[n]&&ve(arguments[n],r);return t}const Cp=(e,t,r,{allOwnKeys:n}={})=>(ve(t,(i,o)=>{r&&st(i)?e[o]=Zo(i,r):e[o]=i},{allOwnKeys:n}),e),Np=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),kp=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},Ip=(e,t,r,n)=>{let i,o,s;const u={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)s=i[o],(!n||n(s,e,t))&&!u[s]&&(t[s]=e[s],u[s]=!0);e=r!==!1&&rn(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},Fp=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},Pp=e=>{if(!e)return null;if(ee(e))return e;let t=e.length;if(!Qo(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},Mp=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&rn(Uint8Array)),Lp=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let n;for(;(n=r.next())&&!n.done;){const i=n.value;t.call(e,i[0],i[1])}},Up=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},Vp=dt("HTMLFormElement"),Hp=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,r,n){return r.toUpperCase()+n}),pi=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),qp=dt("RegExp"),rs=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};ve(r,(i,o)=>{let s;(s=t(i,o,e))!==!1&&(n[o]=s||i)}),Object.defineProperties(e,n)},zp=e=>{rs(e,(t,r)=>{if(st(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(st(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},Wp=(e,t)=>{const r={},n=i=>{i.forEach(o=>{r[o]=!0})};return ee(e)?n(e):n(String(e).split(t)),r},Jp=()=>{},Yp=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,pr="abcdefghijklmnopqrstuvwxyz",di="0123456789",ns={DIGIT:di,ALPHA:pr,ALPHA_DIGIT:pr+pr.toUpperCase()+di},Kp=(e=16,t=ns.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r};function Gp(e){return!!(e&&st(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Zp=e=>{const t=new Array(10),r=(n,i)=>{if(Ge(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[i]=n;const o=ee(n)?[]:{};return ve(n,(s,u)=>{const c=r(s,i+1);!me(c)&&(o[u]=c)}),t[i]=void 0,o}}return n};return r(e,0)},Xp=dt("AsyncFunction"),Qp=e=>e&&(Ge(e)||st(e))&&st(e.then)&&st(e.catch),is=((e,t)=>e?setImmediate:t?((r,n)=>(Nt.addEventListener("message",({source:i,data:o})=>{i===Nt&&o===r&&n.length&&n.shift()()},!1),i=>{n.push(i),Nt.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",st(Nt.postMessage)),td=typeof queueMicrotask<"u"?queueMicrotask.bind(Nt):typeof process<"u"&&process.nextTick||is,R={isArray:ee,isArrayBuffer:Xo,isBuffer:yp,isFormData:Rp,isArrayBufferView:vp,isString:bp,isNumber:Qo,isBoolean:_p,isObject:Ge,isPlainObject:Be,isReadableStream:$p,isRequest:Ap,isResponse:Dp,isHeaders:jp,isUndefined:me,isDate:wp,isFile:Ep,isBlob:Sp,isRegExp:qp,isFunction:st,isStream:Tp,isURLSearchParams:Op,isTypedArray:Mp,isFileList:xp,forEach:ve,merge:Nr,extend:Cp,trim:Bp,stripBOM:Np,inherits:kp,toFlatObject:Ip,kindOf:Ye,kindOfTest:dt,endsWith:Fp,toArray:Pp,forEachEntry:Lp,matchAll:Up,isHTMLForm:Vp,hasOwnProperty:pi,hasOwnProp:pi,reduceDescriptors:rs,freezeMethods:zp,toObjectSet:Wp,toCamelCase:Hp,noop:Jp,toFiniteNumber:Yp,findKey:ts,global:Nt,isContextDefined:es,ALPHABET:ns,generateString:Kp,isSpecCompliantForm:Gp,toJSONObject:Zp,isAsyncFn:Xp,isThenable:Qp,setImmediate:is,asap:td};function W(e,t,r,n,i){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),r&&(this.config=r),n&&(this.request=n),i&&(this.response=i,this.status=i.status?i.status:null)}R.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:R.toJSONObject(this.config),code:this.code,status:this.status}}});const os=W.prototype,ss={};["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=>{ss[e]={value:e}});Object.defineProperties(W,ss);Object.defineProperty(os,"isAxiosError",{value:!0});W.from=(e,t,r,n,i,o)=>{const s=Object.create(os);return R.toFlatObject(e,s,function(u){return u!==Error.prototype},u=>u!=="isAxiosError"),W.call(s,e.message,t,r,n,i),s.cause=e,s.name=e.name,o&&Object.assign(s,o),s};const ed=null;function kr(e){return R.isPlainObject(e)||R.isArray(e)}function as(e){return R.endsWith(e,"[]")?e.slice(0,-2):e}function mi(e,t,r){return e?e.concat(t).map(function(n,i){return n=as(n),!r&&i?"["+n+"]":n}).join(r?".":""):t}function rd(e){return R.isArray(e)&&!e.some(kr)}const nd=R.toFlatObject(R,{},null,function(e){return/^is[A-Z]/.test(e)});function Ze(e,t,r){if(!R.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=R.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(h,d){return!R.isUndefined(d[h])});const n=r.metaTokens,i=r.visitor||a,o=r.dots,s=r.indexes,u=(r.Blob||typeof Blob<"u"&&Blob)&&R.isSpecCompliantForm(t);if(!R.isFunction(i))throw new TypeError("visitor must be a function");function c(h){if(h===null)return"";if(R.isDate(h))return h.toISOString();if(!u&&R.isBlob(h))throw new W("Blob is not supported. Use a Buffer instead.");return R.isArrayBuffer(h)||R.isTypedArray(h)?u&&typeof Blob=="function"?new Blob([h]):Buffer.from(h):h}function a(h,d,m){let b=h;if(h&&!m&&typeof h=="object"){if(R.endsWith(d,"{}"))d=n?d:d.slice(0,-2),h=JSON.stringify(h);else if(R.isArray(h)&&rd(h)||(R.isFileList(h)||R.endsWith(d,"[]"))&&(b=R.toArray(h)))return d=as(d),b.forEach(function(E,y){!(R.isUndefined(E)||E===null)&&t.append(s===!0?mi([d],y,o):s===null?d:d+"[]",c(E))}),!1}return kr(h)?!0:(t.append(mi(m,d,o),c(h)),!1)}const l=[],f=Object.assign(nd,{defaultVisitor:a,convertValue:c,isVisitable:kr});function p(h,d){if(!R.isUndefined(h)){if(l.indexOf(h)!==-1)throw Error("Circular reference detected in "+d.join("."));l.push(h),R.forEach(h,function(m,b){(!(R.isUndefined(m)||m===null)&&i.call(t,m,R.isString(b)?b.trim():b,d,f))===!0&&p(m,d?d.concat(b):[b])}),l.pop()}}if(!R.isObject(e))throw new TypeError("data must be an object");return p(e),t}function gi(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function nn(e,t){this._pairs=[],e&&Ze(e,this,t)}const us=nn.prototype;us.append=function(e,t){this._pairs.push([e,t])};us.toString=function(e){const t=e?function(r){return e.call(this,r,gi)}:gi;return this._pairs.map(function(r){return t(r[0])+"="+t(r[1])},"").join("&")};function id(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function cs(e,t,r){if(!t)return e;const n=r&&r.encode||id;R.isFunction(r)&&(r={serialize:r});const i=r&&r.serialize;let o;if(i?o=i(t,r):o=R.isURLSearchParams(t)?t.toString():new nn(t,r).toString(n),o){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}let yi=class{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){R.forEach(this.handlers,function(r){r!==null&&t(r)})}};const ls={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},od=typeof URLSearchParams<"u"?URLSearchParams:nn,sd=typeof FormData<"u"?FormData:null,ad=typeof Blob<"u"?Blob:null,ud={isBrowser:!0,classes:{URLSearchParams:od,FormData:sd,Blob:ad},protocols:["http","https","file","blob","url","data"]},on=typeof window<"u"&&typeof document<"u",Ir=typeof navigator=="object"&&navigator||void 0,cd=on&&(!Ir||["ReactNative","NativeScript","NS"].indexOf(Ir.product)<0),ld=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",fd=on&&window.location.href||"http://localhost",hd=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:on,hasStandardBrowserEnv:cd,hasStandardBrowserWebWorkerEnv:ld,navigator:Ir,origin:fd},Symbol.toStringTag,{value:"Module"})),tt=V(V({},hd),ud);function pd(e,t){return Ze(e,new tt.classes.URLSearchParams,Object.assign({visitor:function(r,n,i,o){return tt.isNode&&R.isBuffer(r)?(this.append(n,r.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function dd(e){return R.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function md(e){const t={},r=Object.keys(e);let n;const i=r.length;let o;for(n=0;n<i;n++)o=r[n],t[o]=e[o];return t}function fs(e){function t(r,n,i,o){let s=r[o++];if(s==="__proto__")return!0;const u=Number.isFinite(+s),c=o>=r.length;return s=!s&&R.isArray(i)?i.length:s,c?(R.hasOwnProp(i,s)?i[s]=[i[s],n]:i[s]=n,!u):((!i[s]||!R.isObject(i[s]))&&(i[s]=[]),t(r,n,i[s],o)&&R.isArray(i[s])&&(i[s]=md(i[s])),!u)}if(R.isFormData(e)&&R.isFunction(e.entries)){const r={};return R.forEachEntry(e,(n,i)=>{t(dd(n),i,r,0)}),r}return null}function gd(e,t,r){if(R.isString(e))try{return(t||JSON.parse)(e),R.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const be={transitional:ls,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const r=t.getContentType()||"",n=r.indexOf("application/json")>-1,i=R.isObject(e);if(i&&R.isHTMLForm(e)&&(e=new FormData(e)),R.isFormData(e))return n?JSON.stringify(fs(e)):e;if(R.isArrayBuffer(e)||R.isBuffer(e)||R.isStream(e)||R.isFile(e)||R.isBlob(e)||R.isReadableStream(e))return e;if(R.isArrayBufferView(e))return e.buffer;if(R.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let o;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return pd(e,this.formSerializer).toString();if((o=R.isFileList(e))||r.indexOf("multipart/form-data")>-1){const s=this.env&&this.env.FormData;return Ze(o?{"files[]":e}:e,s&&new s,this.formSerializer)}}return i||n?(t.setContentType("application/json",!1),gd(e)):e}],transformResponse:[function(e){const t=this.transitional||be.transitional,r=t&&t.forcedJSONParsing,n=this.responseType==="json";if(R.isResponse(e)||R.isReadableStream(e))return e;if(e&&R.isString(e)&&(r&&!this.responseType||n)){const i=!(t&&t.silentJSONParsing)&&n;try{return JSON.parse(e)}catch(o){if(i)throw o.name==="SyntaxError"?W.from(o,W.ERR_BAD_RESPONSE,this,null,this.response):o}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:tt.classes.FormData,Blob:tt.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};R.forEach(["delete","get","head","post","put","patch"],e=>{be.headers[e]={}});const yd=R.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"]),vd=e=>{const t={};let r,n,i;return e&&e.split(`
57
+ `).forEach(function(o){i=o.indexOf(":"),r=o.substring(0,i).trim().toLowerCase(),n=o.substring(i+1).trim(),!(!r||t[r]&&yd[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},vi=Symbol("internals");function ae(e){return e&&String(e).trim().toLowerCase()}function Ce(e){return e===!1||e==null?e:R.isArray(e)?e.map(Ce):String(e)}function bd(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const _d=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function dr(e,t,r,n,i){if(R.isFunction(n))return n.call(this,t,r);if(i&&(t=r),!!R.isString(t)){if(R.isString(n))return t.indexOf(n)!==-1;if(R.isRegExp(n))return n.test(t)}}function wd(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function Ed(e,t){const r=R.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(i,o,s){return this[n].call(this,t,i,o,s)},configurable:!0})})}let it=class{constructor(t){t&&this.set(t)}set(t,r,n){const i=this;function o(u,c,a){const l=ae(c);if(!l)throw new Error("header name must be a non-empty string");const f=R.findKey(i,l);(!f||i[f]===void 0||a===!0||a===void 0&&i[f]!==!1)&&(i[f||c]=Ce(u))}const s=(u,c)=>R.forEach(u,(a,l)=>o(a,l,c));if(R.isPlainObject(t)||t instanceof this.constructor)s(t,r);else if(R.isString(t)&&(t=t.trim())&&!_d(t))s(vd(t),r);else if(R.isHeaders(t))for(const[u,c]of t.entries())o(c,u,n);else t!=null&&o(r,t,n);return this}get(t,r){if(t=ae(t),t){const n=R.findKey(this,t);if(n){const i=this[n];if(!r)return i;if(r===!0)return bd(i);if(R.isFunction(r))return r.call(this,i,n);if(R.isRegExp(r))return r.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=ae(t),t){const n=R.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||dr(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let i=!1;function o(s){if(s=ae(s),s){const u=R.findKey(n,s);u&&(!r||dr(n,n[u],u,r))&&(delete n[u],i=!0)}}return R.isArray(t)?t.forEach(o):o(t),i}clear(t){const r=Object.keys(this);let n=r.length,i=!1;for(;n--;){const o=r[n];(!t||dr(this,this[o],o,t,!0))&&(delete this[o],i=!0)}return i}normalize(t){const r=this,n={};return R.forEach(this,(i,o)=>{const s=R.findKey(n,o);if(s){r[s]=Ce(i),delete r[o];return}const u=t?wd(o):String(o).trim();u!==o&&delete r[o],r[u]=Ce(i),n[u]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return R.forEach(this,(n,i)=>{n!=null&&n!==!1&&(r[i]=t&&R.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
58
+ `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(i=>n.set(i)),n}static accessor(t){const r=(this[vi]=this[vi]={accessors:{}}).accessors,n=this.prototype;function i(o){const s=ae(o);r[s]||(Ed(n,o),r[s]=!0)}return R.isArray(t)?t.forEach(i):i(t),this}};it.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);R.reduceDescriptors(it.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}});R.freezeMethods(it);function mr(e,t){const r=this||be,n=t||r,i=it.from(n.headers);let o=n.data;return R.forEach(e,function(s){o=s.call(r,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function hs(e){return!!(e&&e.__CANCEL__)}function re(e,t,r){W.call(this,e!=null?e:"canceled",W.ERR_CANCELED,t,r),this.name="CanceledError"}R.inherits(re,W,{__CANCEL__:!0});function ps(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new W("Request failed with status code "+r.status,[W.ERR_BAD_REQUEST,W.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function Sd(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function xd(e,t){e=e||10;const r=new Array(e),n=new Array(e);let i=0,o=0,s;return t=t!==void 0?t:1e3,function(u){const c=Date.now(),a=n[o];s||(s=c),r[i]=u,n[i]=c;let l=o,f=0;for(;l!==i;)f+=r[l++],l=l%e;if(i=(i+1)%e,i===o&&(o=(o+1)%e),c-s<t)return;const p=a&&c-a;return p?Math.round(f*1e3/p):void 0}}function Td(e,t){let r=0,n=1e3/t,i,o;const s=(u,c=Date.now())=>{r=c,i=null,o&&(clearTimeout(o),o=null),e.apply(null,u)};return[(...u)=>{const c=Date.now(),a=c-r;a>=n?s(u,c):(i=u,o||(o=setTimeout(()=>{o=null,s(i)},n-a)))},()=>i&&s(i)]}const Pe=(e,t,r=3)=>{let n=0;const i=xd(50,250);return Td(o=>{const s=o.loaded,u=o.lengthComputable?o.total:void 0,c=s-n,a=i(c),l=s<=u;n=s;const f={loaded:s,total:u,progress:u?s/u:void 0,bytes:c,rate:a||void 0,estimated:a&&u&&l?(u-s)/a:void 0,event:o,lengthComputable:u!=null,[t?"download":"upload"]:!0};e(f)},r)},bi=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},_i=e=>(...t)=>R.asap(()=>e(...t)),Rd=tt.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,tt.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(tt.origin),tt.navigator&&/(msie|trident)/i.test(tt.navigator.userAgent)):()=>!0,Od=tt.hasStandardBrowserEnv?{write(e,t,r,n,i,o){const s=[e+"="+encodeURIComponent(t)];R.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),R.isString(n)&&s.push("path="+n),R.isString(i)&&s.push("domain="+i),o===!0&&s.push("secure"),document.cookie=s.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 $d(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Ad(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function ds(e,t){return e&&!$d(t)?Ad(e,t):t}const wi=e=>e instanceof it?V({},e):e;function Ft(e,t){t=t||{};const r={};function n(a,l,f,p){return R.isPlainObject(a)&&R.isPlainObject(l)?R.merge.call({caseless:p},a,l):R.isPlainObject(l)?R.merge({},l):R.isArray(l)?l.slice():l}function i(a,l,f,p){if(R.isUndefined(l)){if(!R.isUndefined(a))return n(void 0,a,f,p)}else return n(a,l,f,p)}function o(a,l){if(!R.isUndefined(l))return n(void 0,l)}function s(a,l){if(R.isUndefined(l)){if(!R.isUndefined(a))return n(void 0,a)}else return n(void 0,l)}function u(a,l,f){if(f in t)return n(a,l);if(f in e)return n(void 0,a)}const c={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:u,headers:(a,l,f)=>i(wi(a),wi(l),f,!0)};return R.forEach(Object.keys(Object.assign({},e,t)),function(a){const l=c[a]||i,f=l(e[a],t[a],a);R.isUndefined(f)&&l!==u||(r[a]=f)}),r}const ms=e=>{const t=Ft({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:i,xsrfCookieName:o,headers:s,auth:u}=t;t.headers=s=it.from(s),t.url=cs(ds(t.baseURL,t.url),e.params,e.paramsSerializer),u&&s.set("Authorization","Basic "+btoa((u.username||"")+":"+(u.password?unescape(encodeURIComponent(u.password)):"")));let c;if(R.isFormData(r)){if(tt.hasStandardBrowserEnv||tt.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if((c=s.getContentType())!==!1){const[a,...l]=c?c.split(";").map(f=>f.trim()).filter(Boolean):[];s.setContentType([a||"multipart/form-data",...l].join("; "))}}if(tt.hasStandardBrowserEnv&&(n&&R.isFunction(n)&&(n=n(t)),n||n!==!1&&Rd(t.url))){const a=i&&o&&Od.read(o);a&&s.set(i,a)}return t},Dd=typeof XMLHttpRequest<"u",jd=Dd&&function(e){return new Promise(function(t,r){const n=ms(e);let i=n.data;const o=it.from(n.headers).normalize();let{responseType:s,onUploadProgress:u,onDownloadProgress:c}=n,a,l,f,p,h;function d(){p&&p(),h&&h(),n.cancelToken&&n.cancelToken.unsubscribe(a),n.signal&&n.signal.removeEventListener("abort",a)}let m=new XMLHttpRequest;m.open(n.method.toUpperCase(),n.url,!0),m.timeout=n.timeout;function b(){if(!m)return;const y=it.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders()),v={data:!s||s==="text"||s==="json"?m.responseText:m.response,status:m.status,statusText:m.statusText,headers:y,config:e,request:m};ps(function(_){t(_),d()},function(_){r(_),d()},v),m=null}"onloadend"in m?m.onloadend=b:m.onreadystatechange=function(){!m||m.readyState!==4||m.status===0&&!(m.responseURL&&m.responseURL.indexOf("file:")===0)||setTimeout(b)},m.onabort=function(){m&&(r(new W("Request aborted",W.ECONNABORTED,e,m)),m=null)},m.onerror=function(){r(new W("Network Error",W.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let y=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const v=n.transitional||ls;n.timeoutErrorMessage&&(y=n.timeoutErrorMessage),r(new W(y,v.clarifyTimeoutError?W.ETIMEDOUT:W.ECONNABORTED,e,m)),m=null},i===void 0&&o.setContentType(null),"setRequestHeader"in m&&R.forEach(o.toJSON(),function(y,v){m.setRequestHeader(v,y)}),R.isUndefined(n.withCredentials)||(m.withCredentials=!!n.withCredentials),s&&s!=="json"&&(m.responseType=n.responseType),c&&([f,h]=Pe(c,!0),m.addEventListener("progress",f)),u&&m.upload&&([l,p]=Pe(u),m.upload.addEventListener("progress",l),m.upload.addEventListener("loadend",p)),(n.cancelToken||n.signal)&&(a=y=>{m&&(r(!y||y.type?new re(null,e,m):y),m.abort(),m=null)},n.cancelToken&&n.cancelToken.subscribe(a),n.signal&&(n.signal.aborted?a():n.signal.addEventListener("abort",a)));const E=Sd(n.url);if(E&&tt.protocols.indexOf(E)===-1){r(new W("Unsupported protocol "+E+":",W.ERR_BAD_REQUEST,e));return}m.send(i||null)})},Bd=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let n=new AbortController,i;const o=function(a){if(!i){i=!0,u();const l=a instanceof Error?a:this.reason;n.abort(l instanceof W?l:new re(l instanceof Error?l.message:l))}};let s=t&&setTimeout(()=>{s=null,o(new W(`timeout ${t} of ms exceeded`,W.ETIMEDOUT))},t);const u=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(a=>{a.unsubscribe?a.unsubscribe(o):a.removeEventListener("abort",o)}),e=null)};e.forEach(a=>a.addEventListener("abort",o));const{signal:c}=n;return c.unsubscribe=()=>R.asap(u),c}},Cd=function*(e,t){let r=e.byteLength;if(r<t){yield e;return}let n=0,i;for(;n<r;)i=n+t,yield e.slice(n,i),n=i},Nd=function(e,t){return rr(this,null,function*(){try{for(var r=pn(kd(e)),n,i,o;n=!(i=yield new At(r.next())).done;n=!1){const s=i.value;yield*nr(Cd(s,t))}}catch(i){o=[i]}finally{try{n&&(i=r.return)&&(yield new At(i.call(r)))}finally{if(o)throw o[0]}}})},kd=function(e){return rr(this,null,function*(){if(e[Symbol.asyncIterator]){yield*nr(e);return}const t=e.getReader();try{for(;;){const{done:r,value:n}=yield new At(t.read());if(r)break;yield n}}finally{yield new At(t.cancel())}})},Ei=(e,t,r,n)=>{const i=Nd(e,t);let o=0,s,u=a=>{s||(s=!0,n&&n(a))};return new ReadableStream({pull(a){return L(this,null,function*(){try{const{done:l,value:f}=yield i.next();if(l){u(),a.close();return}let p=f.byteLength;if(r){let h=o+=p;r(h)}a.enqueue(new Uint8Array(f))}catch(l){throw u(l),l}})},cancel(a){return u(a),i.return()}},{highWaterMark:2})},Xe=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",gs=Xe&&typeof ReadableStream=="function",Id=Xe&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):e=>L(void 0,null,function*(){return new Uint8Array(yield new Response(e).arrayBuffer())})),ys=(e,...t)=>{try{return!!e(...t)}catch(r){return!1}},Fd=gs&&ys(()=>{let e=!1;const t=new Request(tt.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Si=64*1024,Fr=gs&&ys(()=>R.isReadableStream(new Response("").body)),Me={stream:Fr&&(e=>e.body)};Xe&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Me[t]&&(Me[t]=R.isFunction(e[t])?r=>r[t]():(r,n)=>{throw new W(`Response type '${t}' is not supported`,W.ERR_NOT_SUPPORT,n)})})})(new Response);const Pd=e=>L(void 0,null,function*(){if(e==null)return 0;if(R.isBlob(e))return e.size;if(R.isSpecCompliantForm(e))return(yield new Request(tt.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(R.isArrayBufferView(e)||R.isArrayBuffer(e))return e.byteLength;if(R.isURLSearchParams(e)&&(e=e+""),R.isString(e))return(yield Id(e)).byteLength}),Md=(e,t)=>L(void 0,null,function*(){const r=R.toFiniteNumber(e.getContentLength());return r!=null?r:Pd(t)}),Ld=Xe&&(e=>L(void 0,null,function*(){let{url:t,method:r,data:n,signal:i,cancelToken:o,timeout:s,onDownloadProgress:u,onUploadProgress:c,responseType:a,headers:l,withCredentials:f="same-origin",fetchOptions:p}=ms(e);a=a?(a+"").toLowerCase():"text";let h=Bd([i,o&&o.toAbortSignal()],s),d;const m=h&&h.unsubscribe&&(()=>{h.unsubscribe()});let b;try{if(c&&Fd&&r!=="get"&&r!=="head"&&(b=yield Md(l,n))!==0){let S=new Request(t,{method:"POST",body:n,duplex:"half"}),g;if(R.isFormData(n)&&(g=S.headers.get("content-type"))&&l.setContentType(g),S.body){const[x,O]=bi(b,Pe(_i(c)));n=Ei(S.body,Si,x,O)}}R.isString(f)||(f=f?"include":"omit");const E="credentials"in Request.prototype;d=new Request(t,Q(V({},p),{signal:h,method:r.toUpperCase(),headers:l.normalize().toJSON(),body:n,duplex:"half",credentials:E?f:void 0}));let y=yield fetch(d);const v=Fr&&(a==="stream"||a==="response");if(Fr&&(u||v&&m)){const S={};["status","statusText","headers"].forEach(P=>{S[P]=y[P]});const g=R.toFiniteNumber(y.headers.get("content-length")),[x,O]=u&&bi(g,Pe(_i(u),!0))||[];y=new Response(Ei(y.body,Si,x,()=>{O&&O(),m&&m()}),S)}a=a||"text";let _=yield Me[R.findKey(Me,a)||"text"](y,e);return!v&&m&&m(),yield new Promise((S,g)=>{ps(S,g,{data:_,headers:it.from(y.headers),status:y.status,statusText:y.statusText,config:e,request:d})})}catch(E){throw m&&m(),E&&E.name==="TypeError"&&/fetch/i.test(E.message)?Object.assign(new W("Network Error",W.ERR_NETWORK,e,d),{cause:E.cause||E}):W.from(E,E&&E.code,e,d)}})),Pr={http:ed,xhr:jd,fetch:Ld};R.forEach(Pr,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(r){}Object.defineProperty(e,"adapterName",{value:t})}});const xi=e=>`- ${e}`,Ud=e=>R.isFunction(e)||e===null||e===!1,vs={getAdapter:e=>{e=R.isArray(e)?e:[e];const{length:t}=e;let r,n;const i={};for(let o=0;o<t;o++){r=e[o];let s;if(n=r,!Ud(r)&&(n=Pr[(s=String(r)).toLowerCase()],n===void 0))throw new W(`Unknown adapter '${s}'`);if(n)break;i[s||"#"+o]=n}if(!n){const o=Object.entries(i).map(([u,c])=>`adapter ${u} `+(c===!1?"is not supported by the environment":"is not available in the build"));let s=t?o.length>1?`since :
59
+ `+o.map(xi).join(`
60
+ `):" "+xi(o[0]):"as no adapter specified";throw new W("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return n},adapters:Pr};function gr(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new re(null,e)}function Ti(e){return gr(e),e.headers=it.from(e.headers),e.data=mr.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),vs.getAdapter(e.adapter||be.adapter)(e).then(function(t){return gr(e),t.data=mr.call(e,e.transformResponse,t),t.headers=it.from(t.headers),t},function(t){return hs(t)||(gr(e),t&&t.response&&(t.response.data=mr.call(e,e.transformResponse,t.response),t.response.headers=it.from(t.response.headers))),Promise.reject(t)})}const bs="1.7.9",Qe={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Qe[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Ri={};Qe.transitional=function(e,t,r){function n(i,o){return"[Axios v"+bs+"] Transitional option '"+i+"'"+o+(r?". "+r:"")}return(i,o,s)=>{if(e===!1)throw new W(n(o," has been removed"+(t?" in "+t:"")),W.ERR_DEPRECATED);return t&&!Ri[o]&&(Ri[o]=!0,console.warn(n(o," has been deprecated since v"+t+" and will be removed in the near future"))),e?e(i,o,s):!0}};Qe.spelling=function(e){return(t,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};function Vd(e,t,r){if(typeof e!="object")throw new W("options must be an object",W.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let i=n.length;for(;i-- >0;){const o=n[i],s=t[o];if(s){const u=e[o],c=u===void 0||s(u,o,e);if(c!==!0)throw new W("option "+o+" must be "+c,W.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new W("Unknown option "+o,W.ERR_BAD_OPTION)}}const Ne={assertOptions:Vd,validators:Qe},mt=Ne.validators;let kt=class{constructor(e){this.defaults=e,this.interceptors={request:new yi,response:new yi}}request(e,t){return L(this,null,function*(){try{return yield this._request(e,t)}catch(r){if(r instanceof Error){let n={};Error.captureStackTrace?Error.captureStackTrace(n):n=new Error;const i=n.stack?n.stack.replace(/^.+\n/,""):"";try{r.stack?i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(r.stack+=`
61
+ `+i):r.stack=i}catch(o){}}throw r}})}_request(e,t){typeof e=="string"?(t=t||{},t.url=e):t=e||{},t=Ft(this.defaults,t);const{transitional:r,paramsSerializer:n,headers:i}=t;r!==void 0&&Ne.assertOptions(r,{silentJSONParsing:mt.transitional(mt.boolean),forcedJSONParsing:mt.transitional(mt.boolean),clarifyTimeoutError:mt.transitional(mt.boolean)},!1),n!=null&&(R.isFunction(n)?t.paramsSerializer={serialize:n}:Ne.assertOptions(n,{encode:mt.function,serialize:mt.function},!0)),Ne.assertOptions(t,{baseUrl:mt.spelling("baseURL"),withXsrfToken:mt.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let o=i&&R.merge(i.common,i[t.method]);i&&R.forEach(["delete","get","head","post","put","patch","common"],h=>{delete i[h]}),t.headers=it.concat(o,i);const s=[];let u=!0;this.interceptors.request.forEach(function(h){typeof h.runWhen=="function"&&h.runWhen(t)===!1||(u=u&&h.synchronous,s.unshift(h.fulfilled,h.rejected))});const c=[];this.interceptors.response.forEach(function(h){c.push(h.fulfilled,h.rejected)});let a,l=0,f;if(!u){const h=[Ti.bind(this),void 0];for(h.unshift.apply(h,s),h.push.apply(h,c),f=h.length,a=Promise.resolve(t);l<f;)a=a.then(h[l++],h[l++]);return a}f=s.length;let p=t;for(l=0;l<f;){const h=s[l++],d=s[l++];try{p=h(p)}catch(m){d.call(this,m);break}}try{a=Ti.call(this,p)}catch(h){return Promise.reject(h)}for(l=0,f=c.length;l<f;)a=a.then(c[l++],c[l++]);return a}getUri(e){e=Ft(this.defaults,e);const t=ds(e.baseURL,e.url);return cs(t,e.params,e.paramsSerializer)}};R.forEach(["delete","get","head","options"],function(e){kt.prototype[e]=function(t,r){return this.request(Ft(r||{},{method:e,url:t,data:(r||{}).data}))}});R.forEach(["post","put","patch"],function(e){function t(r){return function(n,i,o){return this.request(Ft(o||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:n,data:i}))}}kt.prototype[e]=t(),kt.prototype[e+"Form"]=t(!0)});let Hd=class _s{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(i){r=i});const n=this;this.promise.then(i=>{if(!n._listeners)return;let o=n._listeners.length;for(;o-- >0;)n._listeners[o](i);n._listeners=null}),this.promise.then=i=>{let o;const s=new Promise(u=>{n.subscribe(u),o=u}).then(i);return s.cancel=function(){n.unsubscribe(o)},s},t(function(i,o,s){n.reason||(n.reason=new re(i,o,s),r(n.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 r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=n=>{t.abort(n)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new _s(function(r){t=r}),cancel:t}}};function qd(e){return function(t){return e.apply(null,t)}}function zd(e){return R.isObject(e)&&e.isAxiosError===!0}const Mr={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(Mr).forEach(([e,t])=>{Mr[t]=e});function ws(e){const t=new kt(e),r=Zo(kt.prototype.request,t);return R.extend(r,kt.prototype,t,{allOwnKeys:!0}),R.extend(r,t,null,{allOwnKeys:!0}),r.create=function(n){return ws(Ft(e,n))},r}const Z=ws(be);Z.Axios=kt;Z.CanceledError=re;Z.CancelToken=Hd;Z.isCancel=hs;Z.VERSION=bs;Z.toFormData=Ze;Z.AxiosError=W;Z.Cancel=Z.CanceledError;Z.all=function(e){return Promise.all(e)};Z.spread=qd;Z.isAxiosError=zd;Z.mergeConfig=Ft;Z.AxiosHeaders=it;Z.formToJSON=e=>fs(R.isHTMLForm(e)?new FormData(e):e);Z.getAdapter=vs.getAdapter;Z.HttpStatusCode=Mr;Z.default=Z;const{Axios:D0,AxiosError:j0,CanceledError:B0,isCancel:C0,CancelToken:N0,VERSION:k0,all:I0,Cancel:F0,isAxiosError:P0,spread:M0,toFormData:L0,AxiosHeaders:U0,HttpStatusCode:V0,formToJSON:H0,getAdapter:q0,mergeConfig:z0}=Z,Wd={form:"application/x-www-form-urlencoded",json:"application/json",data:"multipart/form-data"},Jd=["put","post","patch"],Oi="Local-Request-Id",Yd=100,Kd=300;let Gd=class{constructor(e={}){ut(this,"axios"),ut(this,"settings"),ut(this,"records",{}),ut(this,"isLoading",!1),ut(this,"stopSkipWarn"),ut(this,"showLoading"),ut(this,"showError"),this.settings=Object.assign({type:"form"},e.settings||{});const t=hr(e,["settings","query"]);this.axios=Z.create(ue({headers:{"Content-Type":"application/x-www-form-urlencoded"},timeout:2*60*1e3},t)),this.setupSkipWarn(this.settings),this.showLoading=Do(this.openLoading.bind(this),Yd),this.showError=mh(this._showError.bind(this),Kd,{leading:!0,trailing:!1})}setConfig(e={}){this.settings=ue(this.settings,e.settings||{});const t=hr(e,["settings","query"]);this.axios.defaults=ue(this.axios.defaults,t),this.setupSkipWarn(this.settings)}cancel(e,t="请求已取消"){if(e){const r=this.records[e];if(!r)return;r.source.cancel(t)}else for(const r of Object.values(this.records))r.source.cancel(t)}createHeaders(e,t,r){const n=t.injectHeaders?typeof t.headers=="function"?t.headers(e,r,t):t.headers||{}:{},i=V(V({"Content-Type":Wd[t.type||"form"]},r.headers),n);return t.skipWarn&&(i[Oi]=e),i}isJsonType(e){return Object.entries(e).some(([t,r])=>t.toLowerCase()==="content-type"&&String(r).includes("application/json"))}toFormData(e,t="data"){if(e instanceof FormData||e instanceof URLSearchParams)return e;const r=t==="data"?new FormData:new URLSearchParams;return Object.entries(e).forEach(([n,i])=>{r.append(n,i)}),r}createSendData(e,t,r,n,i={}){const{type:o,skipWarn:s}=e,{name:u="skipWarn"}=s||{};let{data:c,params:a={},method:l="get"}=t;const f=n?{[u]:!0}:{};return Jd.includes(l.toLowerCase())?(c=Object.assign(c||{},f),c=o!=="json"||!this.isJsonType(r)?this.toFormData(c,o):c,a=V({},i)):o==="form"?a=V(V(V({},c||{}),i),f):(c&&(o!=="json"||!this.isJsonType(r))&&(c=this.toFormData(c,o)),a=V(V({},i),f)),{data:c,params:a}}createUrl(e){let{url:t,params:r}=e;if(t)try{return ep(t,{encode:encodeURIComponent})(r||{})}catch(n){console.warn("createUrl","pathToRegexpCompile error",t)}return t}openLoading(e){const{loading:t,showLoading:r}=e;t&&r&&Object.keys(this.records).length>0&&(this.isLoading=!0,r())}closeLoading(e){const{loading:t,hideLoading:r}=e;if(!t)return;this.isLoading=!1;const n=Object.keys(this.records);r&&n.length===0&&(this.isLoading=!1,r())}_showError(e,t){var i;const{failMessage:r,showError:n}=e;if(r&&n){const o=(i=t.response)==null?void 0:i.data,s=(o==null?void 0:o.message)||(o==null?void 0:o.msg)||(t==null?void 0:t.message)||(t==null?void 0:t.msg)||"未知错误";n(s,t)}}validResponse(e,t){const{validSuccess:r,validate:n}=e;return r&&n?!!n(t):!0}isSkipWarnResponse(e){return!!e.promise}send(e={},t=!1){const r=ue({},this.settings,e.settings||{}),n=e.query||{},i=hr(e,["settings","query"]),o=Kh(!1),s=Z.CancelToken.source();this.records[o]={settings:r,config:i,source:s};const u=this.createUrl(i),c=this.createHeaders(o,r,i),{data:a,params:l}=this.createSendData(r,i,c,t,n);return this.showLoading(r),new Promise((f,p)=>{this.axios(Q(V({cancelToken:s.token},i),{url:u,headers:c,data:a,params:l})).then(h=>{var d;return this.isSkipWarnResponse(h)?f(h.promise):this.validResponse(r,h)?f(r.originResponse?h:(d=h.data)==null?void 0:d.data):(this.showError(r,h.data),p(h.data))}).catch(h=>(this.showError(r,h),p(h))).finally(()=>{delete this.records[o],this.closeLoading(r)})})}useResponse(e,t){const{response:r}=this.axios.interceptors,n=r.use(e,t);return()=>r.eject(n)}useRequest(e,t){const{request:r}=this.axios.interceptors,n=r.use(e,t);return()=>r.eject(n)}setupSkipWarn(e){if(this.stopSkipWarn&&(this.stopSkipWarn(),this.stopSkipWarn=void 0),!e.skipWarn)return;const{code:t,executor:r,callback:n,complete:i}=e.skipWarn;this.stopSkipWarn=this.useResponse(o=>{const s=(o.config.headers||{})[Oi],u=this.records[s];if(!u)return o;const{data:c}=o;if(!c||typeof c!="object")return o;if((c==null?void 0:c.code)===t){n&&n(o);const a=new Promise(r).then(()=>this.send(Q(V({},u.config),{settings:u.settings}),!0));a.catch(l=>l).finally(()=>{i&&i()}),o.promise=a}return o})}};function sn(e={}){const t=new Gd(e),r=t.send.bind(t),n=t.cancel.bind(t),i=t.setConfig.bind(t),o=t.useRequest.bind(t),s=t.useResponse.bind(t);return Object.assign(r,Q(V({},t),{instance:t,send:r,cancel:n,setConfig:i,useRequest:o,useResponse:s}))}const Lr=sn({settings:{injectHeaders:!0,loading:!0,originResponse:!0}}),Ur=typeof window<"u";function Zd(e){const t={};return e?(e.forEach((r,n)=>{t[n]=typeof r=="string"?decodeURIComponent(r):r}),t):{}}class Es{constructor(t={}){ut(this,"options",{type:"cache",expired:0,prefix:"__VTJ_"}),ut(this,"caches",{}),ut(this,"types"),this.types={local:Ur?window.localStorage:this.caches,session:Ur?window.sessionStorage:this.caches,cache:this.caches},this.config(t)}config(t={}){this.options=Object.assign(this.options,t)}save(t,r,n={}){const{type:i,expired:o,prefix:s}=V(V({},this.options),n),u=Date.now(),c=s+t,a=this.types[i]||this.caches,l={value:r,timestamp:u,expired:o};a===this.caches?a[c]=l:a.setItem(c,JSON.stringify(l))}get(t,r={}){const{type:n,prefix:i}=V(V({},this.options),r),o=i+t,s=this.types[n]||this.caches;let u;if(s===this.caches)u=s[o];else{const f=s.getItem(o);f&&(u=JSON.parse(f))}if(!u)return null;const{value:c,timestamp:a,expired:l}=u;return l>0&&a+l<Date.now()?(this.remove(t,r),null):c}remove(t,r={}){const{type:n,prefix:i}=V(V({},this.options),r),o=this.types[n]||this.caches,s=i+t;o===this.caches?delete o[s]:o.removeItem(s)}clear(t={}){const{type:r}=V(V({},this.options),t),n=this.types[r]||this.caches;n===this.caches?this.caches={}:n.clear()}}new Es;function Ss(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ke={exports:{}},Xd=ke.exports,$i;function Qd(){return $i||($i=1,function(e,t){(function(r,n){n(t,e)})(Xd,function(r,n){var i={timeout:5e3,jsonpCallback:"callback"};function o(){return"jsonp_"+Date.now()+"_"+Math.ceil(Math.random()*1e5)}function s(a){try{delete window[a]}catch(l){window[a]=void 0}}function u(a){var l=document.getElementById(a);l&&document.getElementsByTagName("head")[0].removeChild(l)}function c(a){var l=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],f=a,p=l.timeout||i.timeout,h=l.jsonpCallback||i.jsonpCallback,d=void 0;return new Promise(function(m,b){var E=l.jsonpCallbackFunction||o(),y=h+"_"+E;window[E]=function(_){m({ok:!0,json:function(){return Promise.resolve(_)}}),d&&clearTimeout(d),u(y),s(E)},f+=f.indexOf("?")===-1?"?":"&";var v=document.createElement("script");v.setAttribute("src",""+f+h+"="+E),l.charset&&v.setAttribute("charset",l.charset),l.nonce&&v.setAttribute("nonce",l.nonce),l.referrerPolicy&&v.setAttribute("referrerPolicy",l.referrerPolicy),l.crossorigin&&v.setAttribute("crossorigin","true"),v.id=y,document.getElementsByTagName("head")[0].appendChild(v),d=setTimeout(function(){b(new Error("JSONP request to "+a+" timed out")),s(E),u(y),window[E]=function(){s(E)}},p),v.onerror=function(){b(new Error("JSONP request to "+a+" failed")),s(E),u(y),d&&clearTimeout(d)}})}n.exports=c})}(ke,ke.exports)),ke.exports}var tm=Qd();const em=Ss(tm);function rm(e){if(Ur){const{protocol:t,host:r,pathname:n}=location;return`${t}//${r}${e?n:""}`}else return null}function nm(e=""){const t=e.match(qo);return t?t[0]:""}function xs(e){const t=[];for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.push([r,encodeURIComponent(e[r])].join("="));return t.join("&")}function Vr(e,t,r){const n={};e=(e||location.search).replace(/^[^]*\?/,""),t=t||"&",r=r||"=";let i;const o=new RegExp("(?:^|\\"+t+")([^\\"+r+"\\"+t+"]+)(?:\\"+r+"([^\\"+t+"]*))?","g");for(;(i=o.exec(e))!==null;)i[1]!==e&&(n[decodeURIComponent(i[1])]=decodeURIComponent(i[2]||""));return n}function Ts(e,t){t=typeof t=="string"?Vr(t):t;const r=e.split("?")[0],n=Vr(e),i=Object.assign({},n,t),o=xs(i);return o?[r,o].join("?"):e}const Ie=Object.freeze(Object.defineProperty({__proto__:null,append:Ts,getCurrentHost:rm,getHost:nm,parse:Vr,stringify:xs},Symbol.toStringTag,{value:"Module"}));function Rs(r){return L(this,arguments,function*(e,t={}){const{query:n={}}=t;e.includes("${")&&(e=ph(e)(n||{}));const i=Ts(e,n);return yield(yield em(i,t)).json()})}var yr,Ai;function im(){if(Ai)return yr;Ai=1,yr=function(n,i,o){var s=document.head||document.getElementsByTagName("head")[0],u=document.createElement("script");typeof i=="function"&&(o=i,i={}),i=i||{},o=o||function(){},u.type=i.type||"text/javascript",u.charset=i.charset||"utf8",u.async="async"in i?!!i.async:!0,u.src=n,i.attrs&&e(u,i.attrs),i.text&&(u.text=""+i.text);var c="onload"in u?t:r;c(u,o),u.onload||t(u,o),s.appendChild(u)};function e(n,i){for(var o in i)n.setAttribute(o,i[o])}function t(n,i){n.onload=function(){this.onerror=this.onload=null,i(null,n)},n.onerror=function(){this.onerror=this.onload=null,i(new Error("Failed to load "+this.src),n)}}function r(n,i){n.onreadystatechange=function(){this.readyState!="complete"&&this.readyState!="loaded"||(this.onreadystatechange=null,i(null,n))}}return yr}var om=im();const sm=Ss(om);function Di(e,t={}){return new Promise((r,n)=>{const{library:i}=t;sm(e,t,(o,s)=>{o?n(o):r(i?window[i]:void 0)})})}const ji={debug:-1,log:0,info:0,warn:1,error:2},am=function(e,t,r,n){return function(...i){if(t&&ji[t]<=ji[e]&&console[e].apply&&(n==="*"||r.startsWith(n)))return console[e].apply(console,um(i,r))}};function um(e,t){return t!=="*"&&(typeof e[0]=="string"?e[0]=`[${t}] ${e[0]}`:e=["["+t+"]"].concat(e)),e}function cm(e,t){if(!e)return{targetLevel:t.level,targetBizName:t.bizName};if(~e.indexOf(":")){const r=e.split(":");return{targetLevel:r[0],targetBizName:r[1]}}return{targetLevel:e,targetBizName:"*"}}const lm={level:"warn",bizName:"*"};class fm{constructor(t){ut(this,"config"),ut(this,"options"),this.options=V(V({},lm),t);const r=typeof location<"u"?location:{},n=(/__(?:logConf|logLevel)__=([^#/&]*)/.exec(r.href)||[])[1];this.config=cm(n,t)}_log(t){const{targetLevel:r,targetBizName:n}=this.config,{bizName:i}=this.options;return am(t,r,i,n)}debug(...t){return this._log("debug")(...t)}log(...t){return this._log("log")(...t)}info(...t){return this._log("info")(...t)}warn(...t){return this._log("warn")(...t)}error(...t){return this._log("error")(...t)}}function hm(e){return new fm(e)}const Zt=hm({level:"log",bizName:"VTJ"});/*! js-cookie v3.0.5 | MIT */function Ae(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)e[n]=r[n]}return e}var pm={read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function Hr(e,t){function r(i,o,s){if(!(typeof document>"u")){s=Ae({},t,s),typeof s.expires=="number"&&(s.expires=new Date(Date.now()+s.expires*864e5)),s.expires&&(s.expires=s.expires.toUTCString()),i=encodeURIComponent(i).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var u="";for(var c in s)s[c]&&(u+="; "+c,s[c]!==!0&&(u+="="+s[c].split(";")[0]));return document.cookie=i+"="+e.write(o,i)+u}}function n(i){if(!(typeof document>"u"||arguments.length&&!i)){for(var o=document.cookie?document.cookie.split("; "):[],s={},u=0;u<o.length;u++){var c=o[u].split("="),a=c.slice(1).join("=");try{var l=decodeURIComponent(c[0]);if(s[l]=e.read(a,l),i===l)break}catch(f){}}return i?s[i]:s}}return Object.create({set:r,get:n,remove:function(i,o){r(i,"",Ae({},o,{expires:-1}))},withAttributes:function(i){return Hr(this.converter,Ae({},this.attributes,i))},withConverter:function(i){return Hr(Ae({},this.converter,i),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}Hr(pm,{path:"/"});/**!
62
+ * Copyright (c) 2025, VTJ.PRO All rights reserved.
63
+ * @name @vtj/renderer
64
+ * @author CHC chenhuachun1549@dingtalk.com
65
+ * @version 0.10.1-alpha.0
66
+ * @license <a href="https://vtj.pro/license.html">MIT License</a>
67
+ */const vr="0.10.1-alpha.0";var ot=(e=>(e.Runtime="Runtime",e.Design="Design",e.Raw="Raw",e.VNode="VNode",e))(ot||{});const Bi=["$el","$emit","$nextTick","$parent","$root","$attrs","$slots","$watch","$props","$options","$forceUpdate"],dm=["vIf","vShow","vModel","vFor","vBind","vHtml"],mm={String,Number,Boolean,Array,Object,Function,Date},br="VtjPage",_r="VtjHomepage",gm="html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot".split(","),ym="component,slot".split(",");function De(e,t){return e.map(r=>zh(r)||r.startsWith("/")?r:`${t}${r}`)}function an(e){return/\.css$/.test(e)}function un(e){return/\.js$/.test(e)}function vm(e){return/\.json$/.test(e)}function bm(e,t=!1){return t&&e.endsWith(".prod.js")?e.replace(".prod.js",".js"):e}function _m(e,t,r=!1){const n=e.filter(p=>!!p.enabled),i=[],o=[],s=[],u=[],c={},a={},l=[],f={};return n.forEach(({urls:p,assetsUrl:h,library:d,assetsLibrary:m,localeLibrary:b})=>{p==null||p.forEach(E=>{un(E)&&i.push(bm(E,r)),an(E)&&o.push(E)}),d&&(u.push(d),c[d]=De(p||[],t),b&&(a[d]=b)),h&&s.push(h),m&&l.push(m),d&&m&&(f[m]=d)}),{scripts:De(i,t),css:De(o,t),materials:De(s,t),libraryExports:u,materialExports:Xh(l),materialMapLibrary:f,libraryMap:c,libraryLocaleMap:a}}function wm(e,t){var o;const{name:r,parent:n,alias:i}=e;return n?(o=t[n])==null?void 0:o[i||r]:t[i||r]}function Os(e){return Lt(e)?e:JSON.stringify(e)}function cn(e,t,r){const n=e.CSSStyleSheet;if(n.prototype.replaceSync){const i=new n;i.id=t,i.replaceSync(r);const o=e.document,s=o.adoptedStyleSheets,u=Array.from(s).filter(c=>c.id!==t);o.adoptedStyleSheets=[...u,i]}else{const i=e.document;let o=i.getElementById(t);o?o.innerHTML=r:(o=i.createElement("style"),o.id=t,o.innerHTML=r,i.head.appendChild(o))}}function Em(e,t){return L(this,null,function*(){const r=yield window.fetch(t).then(n=>n.text()).catch(()=>"");r&&cn(window,e,r)})}function Sm(e,t=window){const r=t.document,n=t.document.head;for(const i of e)if(!r.getElementById(i)){const o=r.createElement("link");o.rel="stylesheet",o.id=i,o.href=i,n.appendChild(o)}}function xm(n,i){return L(this,arguments,function*(e,t,r=window){const o=r.document,s=r.document.head;let u=r[t];return u?u.default||u:new Promise((c,a)=>{for(const l of e){const f=o.createElement("script");f.src=l,f.onload=()=>{u=r[t],u?c(u.default||u):a(null)},f.onerror=p=>{a(p)},s.appendChild(f)}})})}function Tm(e){return he(e)||he(e==null?void 0:e.install)}function Rm(e){return ym.includes(e)}function Om(e){return gm.includes(e)}function ge(e,t,r=!1,n=!1){var i;try{const o=['"use strict";',"var __self = arguments[0];"];o.push("return ");let s=(e.value||"").trim();s=s.replace(/this(\W|$)/g,(c,a)=>`__self${a}`),s=o.join(`
68
+ `)+s;const u=`with(${r?"{}":"$scope || {}"}) { ${s} }`;return new Function("$scope",u)(t)}catch(o){if(Zt.error("parseExpression.error",o,e,(i=t==null?void 0:t.__self)!=null?i:t),n)throw o}}function Le(e,t,r=!1,n=!1){var o;const i=ge(e,t,r,n);if(typeof i!="function"&&(Zt.error("parseFunction.error","not a function",e,(o=t==null?void 0:t.__self)!=null?o:t),n))throw new Error(`"${e.value}" not a function`);return i}function ht(e){return e&&e.type==="JSExpression"}function tr(e){return typeof e=="object"&&e&&e.type==="JSFunction"}function $m(e={}){const{notify:t,loading:r,settings:n={}}=e;let i=null;return{request:sn({settings:V({type:"form",validSuccess:!0,originResponse:!1,loading:!0,validate:o=>{var s,u;return((s=o.data)==null?void 0:s.code)===0||!!((u=o.data)!=null&&u.success)},failMessage:!0,showError:o=>{t&&t(o||"未知错误")},showLoading:()=>{i&&i.close(),r&&(i=r())},hideLoading:()=>{i&&(i.close(),i=null)}},n)}),jsonp:Rs,notify:t,loading:r}}function Am(e,t){const{jsonp:r,request:n}=t;if(e.method==="jsonp")return(i={})=>r(e.url,Q(V({},e.jsonpOptions),{query:i}));{const i=e.headers?ge(e.headers,{},!0):void 0,o={url:e.url,method:e.method,settings:Q(V({},e.settings),{headers:i})};return(s,u)=>(delete o.data,n.send(ue(o,u||{},{data:s})))}}function Dm(e,t){const{metaQuery:r}=t;if(!r)return;const{code:n,queryCode:i}=e;return(o,s)=>{if(!r){console.warn("adapter.metaQuery is not defined!");return}return r(n,i,o,s)}}function jm(e=[],t=[],r){const n={};for(const i of e)n[i.id]=Am(i,r);for(const i of t)n[i.id]=Dm(i,r);return n}function Bm(){return L(this,arguments,function*(e=[]){It&&($s(),e.forEach(t=>Nm(It,t)))})}function Cm(e){const t=tr(e.mockTemplate)&&e.mockTemplate.value?Le(e.mockTemplate,{},!0):void 0;return(...r)=>L(this,null,function*(){let n={};if(t)try{n=yield t.apply(t,r)}catch(i){Zt.warn("模拟数据模版异常",i)}return It.mock(n)})}function Nm(e,t){if(!t.mock)return;const{url:r,mockTemplate:n}=t;if(r&&n){const i=en(`${r}(.*)`),o=np(r,{decode:decodeURIComponent}),s=ge(n,{},!0);e.mock(i,u=>{var f;const c=Ie.parse(u.url)||{},a=u.body instanceof FormData?Zd(u.body):u.body,l=(f=o(u.url))==null?void 0:f.params;return Object.assign(u,{data:a,params:c,query:l}),e.mock(s(u))})}}function $s(){It&&(It._mocked={})}class km{constructor(t){z(this,"__id",null);z(this,"__mode");z(this,"__instance",null);z(this,"__contextRefs",{});z(this,"__refs",{});z(this,"context",{});z(this,"state",{});z(this,"props",{});z(this,"$props",{});z(this,"$refs",{});z(this,"$el",null);z(this,"$emit",null);z(this,"$nextTick",null);z(this,"$parent",null);z(this,"$root",null);z(this,"$attrs",null);z(this,"$slots",null);z(this,"$watch",null);z(this,"$options",null);z(this,"$forceUpdate",null);z(this,"$components",{});z(this,"$libs",{});z(this,"$apis",{});z(this,"__transform",{});const{mode:r,dsl:n,attrs:i}=t;this.__mode=r,n&&(this.__id=n.id||null,this.__transform=n.transform||{}),i&&Object.assign(this,i)}setup(t,r=He){const n=r.getCurrentInstance();if(!n)return;this.__refs={},this.$refs={},this.context={},this.__contextRefs={},this.__instance=n.proxy;const i=n.appContext.config.globalProperties;Object.assign(this,i),Object.assign(this,t||{}),this.__proxy(),r.onMounted(()=>{this.__proxy()}),r.onUnmounted(()=>{this.__cleanup()}),r.onBeforeUpdate(()=>{this.__reset()})}__proxy(){this.__instance&&Bi.forEach(t=>{var r;this[t]=(r=this.__instance)==null?void 0:r[t]})}__cleanup(){Bi.forEach(t=>{this[t]=null}),this.__reset()}__reset(){this.__refs={},this.$refs={},this.__contextRefs={},this.context={}}__parseFunction(t){var r;if(t)if(this.__mode===ot.Runtime){const{id:n,type:i}=t,o=n&&(r=this.__transform[n])!=null?r:t.value;return Le({type:i,value:o},this)}else return Le(t,this)}__parseExpression(t){var r;if(t)if(this.__mode===ot.Runtime){const{id:n,type:i}=t,o=n&&(r=this.__transform[n])!=null?r:t.value;return ge({type:i,value:o},this)}else return ge(t,this)}__ref(t=null,r){if(this.__mode!==ot.VNode)return t&&t!==this.__id&&(this.__contextRefs[t]=this),n=>L(this,null,function*(){var o,s;yield Gh(0);let i=(n==null?void 0:n.$vtjEl)||(n==null?void 0:n.$el)||((s=(o=n==null?void 0:n._)==null?void 0:o.vnode)==null?void 0:s.el)||n;if(!i){typeof r=="string"&&(delete this.$refs[r],t&&delete this.__refs[t]);return}return i.nodeType===3&&i.nextSibling&&(i=i.nextSibling),i.__vtj__=t,ot.Design===this.__mode&&(i.__context__=this,i.draggable=!0),t&&(this.__refs[t]=this.__getRefEl(this.__refs,t,n)),typeof r=="function"?r(n):r&&(this.$refs[r]=this.__getRefEl(this.$refs,r,n)),n})}__getRefEl(t,r,n){const i=t[r];if(i&&n!==i){const o=new Set([].concat(i,n));return Array.from(o)}else return n}__clone(t={}){const r=V(V({},this.context),t),n=Q(V({},r),{context:r});return n.context.__proto__=this.context,n.__proto__=this,n}}function Ue(e){var f,p;const{Vue:t=He,mode:r=ot.Runtime,components:n={},libs:i={},apis:o={},loader:s}=e,u=t.computed(()=>e.dsl),c={$components:n,$libs:i,$apis:o},a=new km({mode:r,dsl:u.value,attrs:c}),l=t.defineComponent(V({name:u.value.name,props:V({},Fm((f=u.value.props)!=null?f:[],a)),setup(h){var v,_,S,g;a.$props=h,a.props=h,u.value.id&&cn(e.window||window,u.value.id,u.value.css||""),a.state=Pm(t,(v=u.value.state)!=null?v:{},a);const d=Mm(t,(_=u.value.computed)!=null?_:{},a),m=Lm((S=u.value.methods)!=null?S:{},a),b=Um(t,u.value.inject,a),E=Vm(u.value.dataSources||{},a),y=V(V(V(V({},b),d),m),E);return a.setup(y,t),Hm(t,(g=u.value.watch)!=null?g:[],a),{vtj:a}},emits:Im(u.value.emits),expose:["vtj"],render(){if(!u.value.nodes)return null;const h=u.value.nodes||[];return h.length===1?Ve(h[0],a,t,s):h.map(d=>Ve(d,a,t,s))}},qm((p=u.value.lifeCycles)!=null?p:{},a)));return{renderer:t.markRaw(l),context:a}}function Im(e=[]){return e.map(t=>Lt(t)?t:t.name)}function Fm(e=[],t){const r=n=>n?(Array.isArray(n)?n:[n]).map(i=>mm[i]):void 0;return e.map(n=>Lt(n)?{name:n}:{name:n.name,type:n.type,required:n.required,default:ht(n.default)?t.__parseExpression(n.default):n.default}).reduce((n,i)=>(n[i.name]={type:r(i.type),required:i.required,default:i.default},n),{})}function Pm(e,t,r){return e.reactive(Object.keys(t||{}).reduce((n,i)=>{let o=t[i];return ht(o)?o=r.__parseExpression(o):tr(o)&&(o=r.__parseFunction(o)),n[i]=o,n},{}))}function Mm(e,t,r){return Object.entries(t!=null?t:{}).reduce((n,[i,o])=>(n[i]=e.computed(r.__parseFunction(o)),n),{})}function Lm(e,t){return Object.entries(e!=null?e:{}).reduce((r,[n,i])=>(r[n]=t.__parseFunction(i),r),{})}function Um(e,t=[],r){return t.reduce((n,i)=>{var a;const{name:o,from:s}=i||{};i.default;const u=ht(s)?r.__parseExpression(s)||o:s!=null?s:o,c=ht(i.default)?r.__parseExpression(i.default):(a=i.default)!=null?a:null;return n[o]=e.inject(u,c),n},{})}function Vm(e,t){return Object.keys(e).reduce((r,n)=>{const i=e[n];if(i.type==="mock")r[n]=Cm(i);else if(i.ref){const o=t.$apis[i.ref],s=tr(i.transform)?i.transform.value?t.__parseFunction(i.transform):void 0:i.transform;r[n]=(...u)=>L(this,null,function*(){const c=yield o.apply(t,u);return s?s(c):c})}return r},{})}function Hm(e,t=[],r){t.forEach(n=>{e.watch(r.__parseExpression(n.source),r.__parseFunction(n.handler),{deep:n.deep,immediate:n.immediate})})}function qm(e,t){return Object.entries(e!=null?e:{}).reduce((r,[n,i])=>(r[n]=t.__parseFunction(i),r),{})}let wr=[],Wt={};const zm=e=>e;function As(r){return L(this,arguments,function*(e,t=window){const{urls:n=[],library:i}=e,o=n.filter(u=>un(u));if(o.length===0||!i)return null;const s=n.filter(u=>an(u));return s.length&&Sm(s,t),yield xm(o,i,t).catch(u=>(console.warn("loadScriptUrl error",o,i,u),null))})}function qr(e){const{getDsl:t,getDslByUrl:r,options:n}=e;return n.window&&(wr.forEach(i=>{delete n.window[i]}),wr=[]),(i,o,s=He)=>{if(!o||typeof o=="string")return i;if(o.type==="Schema"&&o.id){let u=Wt[o.id];return u||(u=Wt[o.id]=s.defineAsyncComponent(()=>L(this,null,function*(){const c=yield t(o.id);return c&&(c.name=i),c?Ue(Q(V({},n),{Vue:s,dsl:c,mode:ot.Runtime,loader:qr(e)})).renderer:null})),u)}if(o.type==="UrlSchema"&&o.url){let u=Wt[o.url];return u||(u=Wt[o.url]=s.defineAsyncComponent(()=>L(this,null,function*(){const c=yield r(o.url);return c&&(c.name=i),c?Ue(Q(V({},n),{Vue:s,dsl:c,mode:ot.Runtime,loader:qr(e)})).renderer:null})),u)}if(o.type==="Plugin"){let u=o.library?Wt[o.library]:null;return u||(o.library&&wr.push(o.library),u=Wt[o.library||Symbol()]=s.defineAsyncComponent(()=>L(this,null,function*(){return(yield As(o,n.window))||(console.warn("getPlugin result is null",o),null)})),u)}return i}}function Ve(e,t,r=He,n=zm){var m;if(!e||!e.name||e.invisible)return null;const i=(m=r.getCurrentInstance())==null?void 0:m.appContext,{id:o=null,directives:s=[]}=e,{vIf:u,vFor:c,vShow:a,vModels:l,vBind:f,vHtml:p,others:h}=Jm(s);if(u&&!Ym(u,t))return null;const d=b=>{var O,P,w,T;const E=b.$components,y=(()=>{var j,I,D,C;if(e.name==="component")return Km(b,(j=e.props)==null?void 0:j.is);if(e.name==="slot")return e.name;const F=n(e.name,e.from,r);return Lt(F)?Rm(F)||Om(F)?F:(C=(D=E[F])!=null?D:(I=i==null?void 0:i.app)==null?void 0:I.component(F))!=null?C:F:F})(),v=Gm(o,(O=e.props)!=null?O:{},b),_=Zm(r,(P=e.events)!=null?P:{},b);if(e.name==="slot")return Xm(r,e,v,b,n);f&&Object.assign(v,b.__parseExpression(f.value)),a&&(v.style=Object.assign((w=v.style)!=null?w:{},tg(a,b))),p&&Object.assign(v,eg(p,b)),l.forEach(F=>{Object.assign(v,rg(r,F,b))});const S=ng(r,(T=e.children)!=null?T:[],b,n,e);let g=r.createVNode(y,V(V({},v),_),S);const x=i?Wm(i,h,b):[];return x.length&&(g=r.withDirectives(g,x)),g};return c?sg(c,d,t):d(t)}function Wm(e,t,r){const n=e.app;return t.map(i=>{const o=typeof i.name=="string"?n.directive(i.name):r.__parseExpression(i.name);if(!o)return null;const s=[o];return i.value&&s.push(r.__parseExpression(i.value)),i.arg&&s.push(i.arg),i.modifiers&&s.push(i.modifiers),s}).filter(i=>!!i)}function Jm(e=[]){const t=e.find(c=>jt(c.name)==="vIf"),r=e.find(c=>jt(c.name)==="vFor"),n=e.find(c=>jt(c.name)==="vShow"),i=e.find(c=>jt(c.name)==="vBind"),o=e.find(c=>jt(c.name)==="vHtml"),s=e.filter(c=>jt(c.name)==="vModel"),u=e.filter(c=>!dm.includes(jt(c.name)));return{vIf:t,vFor:r,vShow:n,vModels:s,vBind:i,others:u,vHtml:o}}function Ym(e,t){return!!t.__parseExpression(e.value)}function Km(e,t){return t?ht(t)?e.__parseExpression(t):t:"div"}function Gm(e,t,r){const n=zr(t,r);return n.ref=r.__ref(e,n.ref),n}function zr(e,t){return ht(e)?t.__parseExpression(e):tr(e)?t.__parseFunction(e):Array.isArray(e)?e.map(r=>zr(r,t)):typeof e=="object"?Object.keys(e||{}).reduce((r,n)=>{let i=e[n];return r[n]=zr(i,t),r},{}):e}function Zm(e,t,r){const n=["passive","capture","once"],i={capture:"Capture",once:"Once",passive:"OnceCapture"};return Object.keys(t||{}).reduce((o,s)=>{const u=t[s],c=Ds(u.modifiers),a=c.find(p=>n.includes(p)),l="on"+po(s)+(a&&i[a]||""),f=r.__parseFunction(u.handler);return f&&(o[l]=e.withModifiers(f,c)),o},{})}function Ds(e={},t=!1){const r=Object.keys(e);return t?r.map(n=>"."+n):r}function Xm(e,t,r,n,i){var c;const{children:o}=t,s=Qm(t,n),u=(c=n.$slots)==null?void 0:c[s.name];return u?u(r):o?Lt(o)?e.createTextVNode(o):ht(o)?e.createTextVNode(Os(n.__parseExpression(o))):Array.isArray(o)?o.map(a=>Ve(a,n,e,i)):null:null}function Qm(e,t){const{props:r}=e,n=(r==null?void 0:r.name)||"default";return{name:ht(n)?t.__parseExpression(n):n,params:[]}}function tg(e,t){return t.__parseExpression(e.value)?{}:{display:"none"}}function eg(e,t){return{innerHTML:t.__parseExpression(e.value)||""}}function rg(e,t,r){var u;const n={type:"JSFunction",value:(u=t.value)!=null&&u.value?`(v) => {
69
+ ${t.value.value} = v;
70
+ }`:"(v) => {}"},i=r.__parseFunction(n),o=Ds(ht(t.modifiers)?r.__parseExpression(t.modifiers):t.modifiers),s=ht(t.arg)?r.__parseExpression(t.arg):t.arg||"modelValue";return{[s]:r.__parseExpression(t.value),[`onUpdate:${s}`]:o.length&&i?e.withModifiers(i,o):i}}function ng(e,t,r,n,i){if(!t)return null;if(Lt(t))return{default:()=>t};if(ht(t))return{default:()=>Os(r.__parseExpression(t))};if(Array.isArray(t)&&t.length>0){const o=ig(t),s=u=>!u||!i?{}:i!=null&&i.id&&Object.keys(u).length?{[`scope_${i.id}`]:u}:{};return Object.entries(o).reduce((u,[c,{nodes:a,params:l}])=>(u[c]=f=>{const p=l.length?Qh(f!=null?f:{},l):s(f);return a.map(h=>Ve(h,r.__clone(p),e,n))},u),{})}return null}function ig(e){const t={default:{params:[],nodes:[]}};for(const r of e){const n=og(r.slot),i=n.name;t[i]?(t[i].nodes.push(r),t[i].params=t[i].params.concat(n.params)):t[i]={nodes:[r],params:n.params}}return t}function og(e="default"){return Lt(e)?{name:e,params:[]}:V({params:[]},e)}function sg(e,t,r){const{value:n,iterator:i}=e,{item:o="item",index:s="index"}=i||{};let u=r.__parseExpression(n)||[];return Number.isInteger(u)&&(u=new Array(u).fill(!0).map((c,a)=>a+1)),Array.isArray(u)?u.map((c,a)=>t(r.__clone({[o]:c,[s]:a}))):(console.warn("[vForRender]:",`${n==null?void 0:n.value} is not a Arrary`),[])}function ag(e){return Js()?(Ys(e),!0):!1}const js=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const ug=e=>e!=null,cg=()=>{};function lg(e){return Ii()}function fg(e){return Array.isArray(e)?e:[e]}function hg(...e){if(e.length!==1)return Hs(...e);const t=e[0];return typeof t=="function"?qs(zs(()=>({get:t,set:cg}))):Yr(t)}function pg(e,t){lg()&&Ws(e,t)}const dg=js?window:void 0,mg=js?window.document:void 0;function gg(e){var t;const r=Kr(e);return(t=r==null?void 0:r.$el)!=null?t:r}function yg(){const e=Yr(!1),t=Ii();return t&&Ks(()=>{e.value=!0},t),e}function vg(e){const t=yg();return ki(()=>(t.value,!!e()))}function bg(e,t,r={}){const p=r,{window:n=dg}=p,i=hn(p,["window"]);let o;const s=vg(()=>n&&"MutationObserver"in n),u=()=>{o&&(o.disconnect(),o=void 0)},c=ki(()=>{const h=Kr(e),d=fg(h).map(gg).filter(ug);return new Set(d)}),a=Ni(()=>c.value,h=>{u(),s.value&&h.size&&(o=new MutationObserver(t),h.forEach(d=>o.observe(d,i)))},{immediate:!0,flush:"post"}),l=()=>o==null?void 0:o.takeRecords(),f=()=>{a(),u()};return ag(f),{isSupported:s,stop:f,takeRecords:l}}function _g(e=null,t={}){var r,n,i;const{document:o=mg,restoreOnUnmount:s=f=>f}=t,u=(r=o==null?void 0:o.title)!=null?r:"",c=hg((n=e!=null?e:o==null?void 0:o.title)!=null?n:null),a=!!(e&&typeof e=="function");function l(f){if(!("titleTemplate"in t))return f;const p=t.titleTemplate||"%s";return typeof p=="function"?p(f):Kr(p).replace(/%s/g,f)}return Ni(c,(f,p)=>{f!==p&&o&&(o.title=l(f!=null?f:""))},{immediate:!0}),t.observe&&!t.titleTemplate&&o&&!a&&bg((i=o.head)==null?void 0:i.querySelector("title"),()=>{o&&o.title!==c.value&&(c.value=l(o.title))},{childList:!0}),pg(()=>{if(s){const f=s(u,c.value||"");f!=null&&o&&(o.title=f)}}),c}const Ci=Jr({name:"VtjPageContainer",setup(){return L(this,null,function*(){const e=jg(),t=Gs(),r=t.params.id,n=r?e.getPage(r):e.getHomepage(),i=n?yield e.getRenderComponent(n.id):null,o=Yr(Symbol());return n&&(Object.assign(t.meta,n.meta||{},{cache:n.cache}),_g(n.title||"VTJ")),{provider:e,component:i,file:n,query:t.query,meta:t.meta,sid:o,route:t}})},render(){const{component:e,query:t,sid:r}=this;return e?Er(e,Q(V({},t),{key:r})):Er("div","页面不存在")},activated(){this.meta.cache===!1&&(this.sid=Symbol())}}),wg={"data-l-h6o7ki7":"",class:"vtj-startup__wrapper"},Eg={"data-l-h6o7ki7":"",class:"vtj-startup"},Sg={"data-l-h6o7ki7":"",class:"vtj-startup__name"},xg={"data-l-h6o7ki7":""},Tg={"data-l-h6o7ki7":"",class:"vtj-startup__tagline"},Rg={"data-l-h6o7ki7":"",class:"vtj-startup__actions"},Og=Jr({__name:"Startup",props:{name:{default:"VTJ.PRO"},tagline:{default:"基于 Vue3 + TypeScript 快速打造高生产力的低代码研发平台"},actionText:{default:"开始设计"},link:{}},setup(e){((n,i)=>{let o=document.getElementById("h6o7ki7");o||(o=document.createElement("style"),o.id="h6o7ki7",document.head.appendChild(o),o.innerHTML=i)})("h6o7ki7",`
71
+ .vtj-startup[data-l-h6o7ki7]{
72
+ padding: 20px;
73
+ border-radius: 4px;
74
+ box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
75
+ box-sizing: border-box;
76
+ grid-row: 1;
77
+ width: 100%;
78
+ max-width: 800px;
79
+ }
80
+ .vtj-startup__wrapper[data-l-h6o7ki7]{
81
+ height: 100%;
82
+ display: flex;
83
+ justify-content: center;
84
+ align-items: center;
85
+ width: 100%;
86
+ }
87
+ .vtj-startup__name[data-l-h6o7ki7]{
88
+ margin: 0;
89
+ padding: 0;
90
+ max-width: 576px;
91
+ line-height: 56px;
92
+ font-size: 48px;
93
+ font-weight: 700;
94
+ white-space: pre-wrap;
95
+ }
96
+ .vtj-startup__name .span[data-l-h6o7ki7]{
97
+ background: -webkit-linear-gradient(120deg, #bd34fe 30%, #41d1ff);
98
+ -webkit-background-clip: text;
99
+ background-clip: text;
100
+ -webkit-text-fill-color: transparent;
101
+ }
102
+ .vtj-startup__tagline[data-l-h6o7ki7]{
103
+ padding-top: 20px;
104
+ line-height: 32px;
105
+ font-size: 20px;
106
+ font-weight: 500;
107
+ white-space: pre-wrap;
108
+ color: rgba(60, 60, 67, 0.78);
109
+ }
110
+ .vtj-startup__actions[data-l-h6o7ki7]{
111
+ display: flex;
112
+ flex-wrap: wrap;
113
+ justify-content: space-between;
114
+ align-items: center;
115
+ border-top: 1px solid rgba(60, 60, 67, 0.08);
116
+ padding: 20px 0 0 0;
117
+ margin-top: 20px;
118
+ }
119
+ .vtj-startup__actions .span[data-l-h6o7ki7]{
120
+ color: #e6a23c;
121
+ }@media (max-width: 768px){
122
+
123
+ .vtj-startup__actions .span[data-l-h6o7ki7]{
124
+ display: block;
125
+ text-align: center;
126
+ width: 100%;
127
+ }
128
+ }
129
+ .vtj-startup__actions .button[data-l-h6o7ki7]{
130
+ height: 40px;
131
+ padding: 0 20px;
132
+ border-radius: 20px;
133
+ background-color: #409eff;
134
+ border: 1px solid transparent;
135
+ color: #fff;
136
+ font-weight: 600;
137
+ cursor: pointer;
138
+ display: inline-block;
139
+ line-height: 40px;
140
+ }@media (max-width: 768px){
141
+
142
+ .vtj-startup__actions .button[data-l-h6o7ki7]{
143
+ width: 100%;
144
+ margin-top: 20px;
145
+ }
146
+ }
147
+ .vtj-startup__actions .button[data-l-h6o7ki7]:hover{
148
+ opacity: 0.7;
149
+ }`);const t=e,r=()=>{if(typeof window<"u"){if(t.link){typeof t.link=="function"?t.link():window.location.href=t.link;return}let n=(window.__VTJ_LINK__||{}).href||window.location.pathname+"__vtj__/#/";window.location.href=n}};return(n,i)=>(Vs(),Us("div",wg,[Dt("div",Eg,[Dt("h1",Sg,[Dt("span",xg,ir(t.name),1)]),Dt("div",Tg,ir(t.tagline),1),Dt("div",Rg,[i[0]||(i[0]=Dt("span",{"data-l-h6o7ki7":"",class:"span"},"设置项目主页后,将替换此页面显示",-1)),Dt("span",{"data-l-h6o7ki7":"",class:"button",onClick:r},ir(t.actionText),1)])])]))}}),$g=Jr({name:"VtjStartupContainer",render(){return Er(Og)}}),Bs=Symbol("Provider");class Ag extends hp{constructor(r){super();z(this,"mode");z(this,"globals",{});z(this,"modules",{});z(this,"adapter",{request:Lr,jsonp:Rs});z(this,"apis",{});z(this,"dependencies",{});z(this,"materials",{});z(this,"library",{});z(this,"service");z(this,"project",null);z(this,"components",{});z(this,"nodeEnv","development");z(this,"router",null);z(this,"materialPath","./");z(this,"urlDslCaches",{});this.options=r;const{service:n,mode:i=ot.Raw,dependencies:o,materials:s,project:u={},adapter:c={},globals:a={},modules:l={},router:f=null,materialPath:p="./",nodeEnv:h="development"}=r;this.mode=i,this.modules=l,this.service=n,this.router=f,this.materialPath=p,this.nodeEnv=h,o&&(this.dependencies=o),s&&(this.materials=s),Object.assign(this.globals,a),Object.assign(this.adapter,c);const{access:d,request:m}=this.adapter;d&&d.connect({mode:i,router:f,request:m}),u&&i!==ot.Design?this.load(u):this.project=u,It.setup({timeout:"50-500"})}createMock(r){return(...n)=>L(this,null,function*(){let i={};if(r)try{i=yield r.apply(r,n)}catch(o){Zt.warn("模拟数据模版异常",o)}return It.mock(i)})}load(r){return L(this,null,function*(){const n=this.modules[`.vtj/projects/${r.id}.json`];if(this.project=n?yield n():yield this.service.init(r),!this.project)throw new Error("project is null");const{apis:i=[],meta:o=[]}=this.project,s=window;s.CKEDITOR_VERSION=void 0,this.mode===ot.Raw?yield this.loadDependencies(s):yield this.loadAssets(s),this.apis=jm(i,o,this.adapter),$s(),Bm(i),r.platform!=="uniapp"&&this.initRouter(),this.triggerReady()})}loadDependencies(r){return L(this,null,function*(){const n=Object.entries(this.dependencies);for(const[i,o]of n)r[i]||(r[i]=this.library[i]=yield o())})}loadAssets(r){return L(this,null,function*(){const{dependencies:n=[]}=this.project,{dependencies:i,library:o,components:s,materialPath:u,nodeEnv:c}=this,{libraryExports:a,libraryMap:l,materials:f,materialExports:p,materialMapLibrary:h}=_m(n,u,c==="development");for(const d of a){const m=i[d],b=r[d];if(b)o[d]=b;else if(m)r[d]=o[d]=yield m();else{const E=l[d]||[];for(const y of E)an(y)&&(yield Em(d,Ie.append(y,{v:vr}))),un(y)&&(yield Di(Ie.append(y,{v:vr})));o[d]=r[d]}}if(c==="development"){for(const m of f)yield Di(Ie.append(m,{v:vr}));const d=this.materials||{};for(const m of p){const b=r[h[m]],E=fp[m];if(E)b&&E.forEach(y=>{s[y]=b[y]});else{const y=d[m]?(yield d[m]()).default:r[m];y&&b&&(y.components||[]).forEach(v=>{s[v.name]=wm(v,b)})}}}})}initRouter(){const{router:r,project:n,options:i,adapter:o}=this;if(!r)return;const{routeAppendTo:s,pageRouteName:u="page",routeMeta:c}=i,a=s?"":"/",l={path:`${a}${u}/:id`,name:br,component:Ci},f={path:a,name:_r,component:n!=null&&n.homepage?Ci:o.startupComponent||$g,meta:c};r.hasRoute(br)&&r.removeRoute(br),r.hasRoute(_r)&&r.removeRoute(_r),s?(r.addRoute(s,l),r.addRoute(s,f)):(r.addRoute(l),r.addRoute(f))}install(r){const n=r.config.globalProperties.installed||{};for(const[i,o]of Object.entries(this.library))!n[i]&&Tm(o)&&(r.use(o),n[i]=!0);this.options.install&&r.use(this.options.install),this.adapter.access&&r.use(this.adapter.access),r.provide(Bs,this),r.config.globalProperties.installed=n,this.mode===ot.Design&&(r.config.errorHandler=(i,o,s)=>{const u=o==null?void 0:o.$options.name,c=typeof i=="string"?i:(i==null?void 0:i.message)||(i==null?void 0:i.msg)||"未知错误",a=`[ ${u} ] ${c} ${s}`;console.error("[VTJ Error]:",{err:i,instance:o,info:s},i==null?void 0:i.stack),this.adapter.notify&&this.adapter.notify(a,"组件渲染错误","error")})}getFile(r){const{blocks:n=[]}=this.project||{};return this.getPage(r)||n.find(i=>i.id===r)||null}getPage(r){const{pages:n=[]}=this.project||{},i=(o,s=[])=>{for(const u of s){if(u.id===o)return u;if(u.children&&u.children.length){const c=i(o,u.children);if(c)return c}}};return i(r,n)||null}getHomepage(){const{homepage:r}=this.project||{};return r?this.getPage(r):null}getDsl(r){return L(this,null,function*(){const n=this.modules[`.vtj/files/${r}.json`];return n?yield n():this.service.getFile(r,this.project||void 0).catch(()=>null)})}getDslByUrl(r){return L(this,null,function*(){return this.urlDslCaches[r]||(this.urlDslCaches[r]=this.adapter.request.send({url:r,method:"get",settings:{validSuccess:!1,originResponse:!0}}).then(i=>i.data).catch(()=>null))})}createDslRenderer(r,n={}){const{library:i,components:o,mode:s,apis:u}=this,c=V({mode:s,Vue:i.Vue,components:o,libs:i,apis:u,window},n),a=qr({getDsl:l=>L(this,null,function*(){return(yield this.getDsl(l))||null}),getDslByUrl:l=>L(this,null,function*(){return(yield this.getDslByUrl(l))||null}),options:c});return Ue(Q(V({},c),{dsl:r,loader:a}))}getRenderComponent(r,n){return L(this,null,function*(){var c;const i=this.getFile(r);if(!i)return Zt.warn(`Can not find file: ${r}`),null;n&&n(i);const o=`.vtj/vue/${r}.vue`,s=this.modules[o];if(s)return(c=yield s())==null?void 0:c.default;const u=yield this.getDsl(i.id);return u?this.createDslRenderer(u).renderer:(Zt.warn(`Can not find dsl: ${r}`),null)})}defineUrlSchemaComponent(r,n){return dn(()=>L(this,null,function*(){const i=yield this.getDslByUrl(r);return i?(i.name=n||i.name,this.createDslRenderer(i).renderer):null}))}definePluginComponent(r){return dn(()=>L(this,null,function*(){return yield As(r,window)}))}}function Dg(e){const t=new Ag(e);return{provider:t,onReady:r=>t.ready(r)}}function jg(e={}){const t=Ls(Bs);if(!t)throw new Error("Can not find provider");if(t.nodeEnv==="development"){const{id:r,version:n}=e;r&&n&&L(this,null,function*(){const i=yield t.getDsl(r);(i==null?void 0:i.__VERSION__)!==n&&t.adapter.notify&&t.adapter.notify(`[ ${i==null?void 0:i.name} ] 组件源码版本与运行时版本不一致,请重新发布组件`,"版本不一致","warning")})}return t}const Cs={type:"json",validSuccess:!0,originResponse:!1,failMessage:!0,validate:e=>{var t;return((t=e.data)==null?void 0:t.code)===0}},Bg=(e,t="/__vtj__/api/:type.json")=>(r,n,i)=>e.send({url:t,method:"post",params:{type:r},query:i,data:{type:r,data:n},settings:Cs}),Cg=(e,t="/__vtj__/api/uploader.json")=>(r,n)=>L(void 0,null,function*(){return yield e.send({url:t,method:"post",data:{files:r,projectId:n},settings:Q(V({},Cs),{type:"data"})}).then(i=>i&&i[0]?i[0]:null).catch(()=>null)});function Ng(e){return sn({settings:{type:"json",validSuccess:!0,originResponse:!1,failMessage:!0,validate:t=>{var r;return((r=t.data)==null?void 0:r.code)===0},showError:t=>{e&&e(t||"未知错误")}}})}class kg{constructor(t=Lr){z(this,"api");z(this,"pluginCaches",{});z(this,"uploader");this.api=Bg(t),this.uploader=Cg(t)}getExtension(){return L(this,null,function*(){console.log("BaseService.getExtension")})}init(t){return L(this,null,function*(){return console.log("BaseService.init",t),{}})}saveProject(t,r){return L(this,null,function*(){return!!(yield this.api("saveProject",t,{type:r}).catch(()=>!1))})}saveMaterials(t,r){return L(this,null,function*(){return console.log("BaseService.saveMaterials",t,r),!1})}saveFile(t){return L(this,null,function*(){return console.log("BaseService.saveFile",t),!1})}getFile(t){return L(this,null,function*(){return console.log("BaseService.getFile",t),{}})}removeFile(t){return L(this,null,function*(){return console.log("BaseService.removeFile",t),!1})}saveHistory(t){return L(this,null,function*(){return console.log("BaseService.saveHistory",t),!1})}removeHistory(t){return L(this,null,function*(){return console.log("BaseService.removeHistory",t),!1})}getHistory(t){return L(this,null,function*(){return console.log("BaseService.getHistory",t),{}})}getHistoryItem(t,r){return L(this,null,function*(){return console.log("BaseService.getHistoryItem",t,r),{}})}saveHistoryItem(t,r){return L(this,null,function*(){return console.log("BaseService.saveHistoryItem",t,r),!1})}removeHistoryItem(t,r){return L(this,null,function*(){return console.log("BaseService.removeHistoryItem",t,r),!1})}publish(t){return L(this,null,function*(){return!!(yield this.api("publish",t).catch(()=>!1))})}publishFile(t,r){return L(this,null,function*(){return!!(yield this.api("publishFile",{project:t,file:r}).catch(()=>!1))})}genVueContent(t,r){return L(this,null,function*(){return yield this.api("genVueContent",{project:t,dsl:r}).catch(()=>"")})}createRawPage(t){return L(this,null,function*(){return yield this.api("createRawPage",t).catch(()=>"")})}removeRawPage(t){return L(this,null,function*(){return yield this.api("removeRawPage",t).catch(()=>"")})}uploadStaticFile(t,r){return L(this,null,function*(){return yield this.uploader(t,r).catch(()=>null)})}getStaticFiles(t){return L(this,null,function*(){return yield this.api("getStaticFiles",t).catch(()=>[])})}removeStaticFile(t,r){return L(this,null,function*(){return yield this.api("removeStaticFile",{name:t,projectId:r}).catch(()=>"")})}clearStaticFiles(t){return L(this,null,function*(){return yield this.api("clearStaticFiles",t).catch(()=>"")})}getPluginMaterial(t){return L(this,null,function*(){const{urls:r=[]}=t,n=r.filter(o=>vm(o))[0];return n?this.pluginCaches[n]||(this.pluginCaches[n]=Lr.send({url:n,method:"get",settings:{validSuccess:!1,originResponse:!0}}).then(o=>o.data).catch(()=>null)):null})}genSource(t){return L(this,null,function*(){return console.log("BaseService.genSource",t),""})}}new Es({type:"local",expired:0,prefix:"__VTJ_"});class Ig extends kg{constructor(){super(...arguments);z(this,"getFileCaches",{})}getExtension(){return L(this,null,function*(){return yield this.api("getExtension",{}).catch(()=>{})})}init(r){return L(this,null,function*(){return(yield this.api("init",r).catch(()=>null))||{}})}saveProject(r,n){return L(this,null,function*(){return!!(yield this.api("saveProject",r,{type:n}).catch(()=>!1))})}saveMaterials(r,n){return L(this,null,function*(){return!!(yield this.api("saveMaterials",{project:r,materials:Zh(n)}).catch(()=>!1))})}saveFile(r){return L(this,null,function*(){return!!(yield this.api("saveFile",r).catch(()=>!1))})}getFile(r){return L(this,null,function*(){return this.getFileCaches[r]||(this.getFileCaches[r]=this.api("getFile",r).catch(()=>null)).finally(()=>{delete this.getFileCaches[r]})})}removeFile(r){return L(this,null,function*(){return!!(yield this.api("removeFile",r).catch(()=>!1))})}saveHistory(r){return L(this,null,function*(){return!!(yield this.api("saveHistory",r).catch(()=>!1))})}removeHistory(r){return L(this,null,function*(){return!!(yield this.api("removeHistory",r).catch(()=>!1))})}getHistory(r){return L(this,null,function*(){return(yield this.api("getHistory",r).catch(()=>null))||{}})}getHistoryItem(r,n){return L(this,null,function*(){return(yield this.api("getHistoryItem",{fId:r,id:n}).catch(()=>null))||{}})}saveHistoryItem(r,n){return L(this,null,function*(){return!!(yield this.api("saveHistoryItem",{fId:r,item:n}).catch(()=>!1))})}removeHistoryItem(r,n){return L(this,null,function*(){return!!(yield this.api("removeHistoryItem",{fId:r,ids:n}).catch(()=>!1))})}}/**!
150
+ * Copyright (c) 2025, VTJ.PRO All rights reserved.
151
+ * @name @vtj/uni
152
+ * @author CHC chenhuachun1549@dingtalk.com
153
+ * @version 0.10.1-alpha.0
154
+ * @license <a href="https://vtj.pro/license.html">MIT License</a>
155
+ */const Fg=["onLaunch","onShow","onHide","onError","onPageNotFound","onUnhandledRejection","onThemeChange","onPageNotFound","onUniNViewMessage","onExit"],Pg="VTJ",Mg="__UNI__1FC118B",Lg="VTJ移动跨端项目",Ug="1.0.0",Vg="100",Hg=!1,qg={},zg={enable:!1},Wg="3",Jg={name:Pg,appid:Mg,description:Lg,versionName:Ug,versionCode:Vg,transformPx:Hg,"app-plus":{usingComponents:!0,nvueStyleCompiler:"uni-app",compilerVersion:3,splashscreen:{alwaysShowBeforeRender:!0,waiting:!0,autoclose:!0,delay:0},modules:{},distribute:{android:{permissions:['<uses-permission android:name="android.permission.CHANGE_NETWORK_STATE"/>','<uses-permission android:name="android.permission.MOUNT_UNMOUNT_FILESYSTEMS"/>','<uses-permission android:name="android.permission.VIBRATE"/>','<uses-permission android:name="android.permission.READ_LOGS"/>','<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>','<uses-feature android:name="android.hardware.camera.autofocus"/>','<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>','<uses-permission android:name="android.permission.CAMERA"/>','<uses-permission android:name="android.permission.GET_ACCOUNTS"/>','<uses-permission android:name="android.permission.READ_PHONE_STATE"/>','<uses-permission android:name="android.permission.CHANGE_WIFI_STATE"/>','<uses-permission android:name="android.permission.WAKE_LOCK"/>','<uses-permission android:name="android.permission.FLASHLIGHT"/>','<uses-feature android:name="android.hardware.camera"/>','<uses-permission android:name="android.permission.WRITE_SETTINGS"/>']},ios:{},sdkConfigs:{},icons:{android:{hdpi:"src/static/logo.png",xhdpi:"src/static/logo.png",xxhdpi:"src/static/logo.png",xxxhdpi:"src/static/logo.png"}}}},quickapp:qg,"mp-weixin":{appid:"",setting:{urlCheck:!1},usingComponents:!0},"mp-alipay":{usingComponents:!0},"mp-baidu":{usingComponents:!0},"mp-toutiao":{usingComponents:!0},uniStatistics:zg,vueVersion:Wg},Yg=[],Kg={navigationBarTextStyle:"black",navigationBarTitleText:"uni-app",navigationBarBackgroundColor:"#F8F8F8",backgroundColor:"#F8F8F8"},Gg={pages:Yg,globalStyle:Kg};function Zg(e){let{manifestJson:t={},pagesJson:r={},routes:n=[]}=e;const i=n.map(o=>{const{path:s,style:u,needLogin:c}=o;return{path:s,style:u,needLogin:c}});return Q(V({},e),{manifestJson:Object.assign({},Jg,t),pagesJson:Object.assign({},Gg,r,{pages:i})})}const Wr={navigationBarBackgroundColor:"backgroundColor",navigationBarTextStyle:"titleColor",navigationBarTitleText:"titleText",navigationStyle:"style",titleImage:"titleImage",titlePenetrate:"titlePenetrate",transparentTitle:"transparentTitle"};function Ns(e){const t={},r={black:"#000000",white:"#ffffff"};for(const n in e)Wr[n]&&(t[Wr[n]]=n==="navigationBarTextStyle"?r[e[n]]||r.black:e[n]);return t}function Xg(e){const t={};for(const r in e)Wr[r]||(t[r]=e[r]);return t}function Qg(e){var t,r;return((r=(t=e.h5)==null?void 0:t.router)==null?void 0:r.mode)||"hash"}function t0(e){var t,r,n;return{topWindow:!!((t=e.topWindow)!=null&&t.path),leftWindow:!!((r=e.leftWindow)!=null&&r.path),rightWindow:!!((n=e.rightWindow)!=null&&n.path)}}function e0(e){const{pagesJson:t={}}=e,{globalStyle:r,pages:n=[]}=t;return!!(r!=null&&r.enablePullDownRefresh||n.find(i=>{var o;return!!((o=i.style)!=null&&o.enablePullDownRefresh)}))}function r0(e){const{pagesJson:t={}}=e,{globalStyle:r,pages:n=[]}=t;let i=!1;return(r==null?void 0:r.navigationStyle)==="custom"?(i=!0,n.find(o=>{var s;return((s=o.style)==null?void 0:s.navigationStyle)==="default"})&&(i=!1)):n.every(o=>{var s;return((s=o.style)==null?void 0:s.navigationStyle)==="custom"})&&(i=!0),i}function n0(e){var u;const t=r0(e),r={navigationBar:!1,navigationBarButtons:!1,navigationBarSearchInput:!1,navigationBarTransparent:!1},{pagesJson:n={}}=e,{globalStyle:i,pages:o=[]}=n;if(t)return r;r.navigationBar=!0;const s=(u=i==null?void 0:i.h5)==null?void 0:u.titleNView;return o.find(c=>{var a,l,f;return!!((f=(l=(a=c.style)==null?void 0:a.h5)==null?void 0:l.titleNView)!=null&&f.buttons.length)})&&(r.navigationBarButtons=!0),(s!=null&&s.searchInput||o.find(c=>{var a,l,f;return!!((f=(l=(a=c.style)==null?void 0:a.h5)==null?void 0:l.titleNView)!=null&&f.searchInput)}))&&(r.navigationBarSearchInput=!0),((s==null?void 0:s.type)==="transparent"||o.find(c=>{var a,l,f;return((f=(l=(a=c.style)==null?void 0:a.h5)==null?void 0:l.titleNView)==null?void 0:f.type)==="transparent"}))&&(r.navigationBarTransparent=!0),r}function i0(e,t=window){var p,h,d,m;const{pagesJson:r={},manifestJson:n={}}=e,{topWindow:i,leftWindow:o,rightWindow:s}=t0(r),{navigationBar:u,navigationBarButtons:c,navigationBarSearchInput:a,navigationBarTransparent:l}=n0(e),f={__VUE_OPTIONS_API__:!0,__VUE_PROD_DEVTOOLS__:!1,__VUE_PROD_HYDRATION_MISMATCH_DETAILS__:!1,__UNI_FEATURE_WX__:!1,__UNI_FEATURE_WXS__:!1,__UNI_FEATURE_RPX__:!1,__UNI_FEATURE_PROMISE__:!1,__UNI_FEATURE_LONGPRESS__:!1,__UNI_FEATURE_I18N_EN__:!1,__UNI_FEATURE_I18N_ES__:!1,__UNI_FEATURE_I18N_FR__:!1,__UNI_FEATURE_I18N_ZH_HANS__:!0,__UNI_FEATURE_I18N_ZH_HANT__:!1,__UNI_FEATURE_UNI_CLOUD__:!1,__UNI_FEATURE_I18N_LOCALE__:!1,__UNI_FEATURE_NVUE__:!1,__UNI_FEATURE_ROUTER_MODE__:Qg(n),__UNI_FEATURE_PAGES__:!!((p=r.pages)!=null&&p.length),__UNI_FEATURE_TABBAR__:!!((d=(h=r.tabBar)==null?void 0:h.list)!=null&&d.length),__UNI_FEATURE_TABBAR_MIDBUTTON__:!!((m=r.tabBar)!=null&&m.midButton),__UNI_FEATURE_TOPWINDOW__:i,__UNI_FEATURE_LEFTWINDOW__:o,__UNI_FEATURE_RIGHTWINDOW__:s,__UNI_FEATURE_RESPONSIVE__:!1,__UNI_FEATURE_NAVIGATIONBAR__:u,__UNI_FEATURE_PULL_DOWN_REFRESH__:e0(e),__UNI_FEATURE_NAVIGATIONBAR_BUTTONS__:c,__UNI_FEATURE_NAVIGATIONBAR_SEARCHINPUT__:a,__UNI_FEATURE_NAVIGATIONBAR_TRANSPARENT__:l};Object.entries(f).forEach(([b,E])=>{t[b]=E})}const o0="4.45";function s0(e,t=window){var f,p;const{pagesJson:r={},manifestJson:n={}}=e,{easycom:i={}}=r,{appid:o="",name:s="",versionCode:u="",versionName:c=""}=n,a=r.globalStyle,l=((f=n.h5)==null?void 0:f.router)||{};t.__uniConfig={easycom:i,globalStyle:Q(V({},Xg(a)),{navigationBar:Ns(a),isNVue:!1}),compilerVersion:o0,appId:o,appName:s,appVersion:c,appVersionCode:String(u),async:V({loading:"AsyncLoading",error:"AsyncError",delay:200,timeout:6e4,suspensible:!0},((p=n.h5)==null?void 0:p.async)||{}),debug:!1,networkTimeout:V({request:6e4,connectSocket:6e4,uploadFile:6e4,downloadFile:6e4},n.networkTimeout||{}),sdkConfigs:{},nvue:{"flex-direction":"column"},locale:"",fallbackLocale:"",locales:{},router:V({mode:"hash",base:"/",assets:"assets",routerBase:l.base||"/"},l),darkmode:!1,themeConfig:{},tabBar:r.tabBar?V({position:"bottom",color:"#7A7E83",selectedColor:"#3cc51f",borderStyle:"black",blurEffect:"none",fontSize:"10px",iconWidth:"24px",spacing:"3px",height:"50px",backgroundColor:"#ffffff",selectedIndex:0,shown:!0},r.tabBar):void 0}}function a0(e,t=window){const{UniServiceJSBridge:r,UniViewJSBridge:n,getApp:i,uni:o,getCurrentPages:s,upx2px:u,setupPage:c}=e;t.UniServiceJSBridge=r,t.UniViewJSBridge=n,t.getApp=i,t.uni=o,t.wx=o,t.getCurrentPages=s,t.upx2px=u,t.__setupPage=a=>c(a)}function u0(e,t,r){const{defineAsyncComponent:n,openBlock:i,createBlock:o,withCtx:s,createVNode:u}=e,{PageComponent:c,setupPage:a,getApp:l}=t;return{mpType:"page",setup(){var h,d;const f=((d=(h=l())==null?void 0:h.$route)==null?void 0:d.query)||{},p=typeof r=="function"?n(r):r;return()=>(i(),o(c,null,{page:s(()=>[u(a(p),Object.assign({},f,{ref:"page"}),null,512)]),_:1}))}}}function c0(e,t,r){var l;const{path:n,style:i={},meta:o={},home:s}=t,u=(((l=e.tabBar)==null?void 0:l.list)||[]).findIndex(f=>f.pagePath===n),c=u>-1,a=r===0;return V({isTabBar:c,tabBarIndex:u,isQuit:s!=null?s:a,isEntry:s!=null?s:a,navigationBar:V({type:"default"},Ns(i)),isNVue:!1,route:n},o)}function l0(e,t,r,n,i=window){const o=r.map((s,u)=>{const c=c0(n,s,u),a=u0(e,t,s.component),{path:l}=s;return{path:l,alias:l,meta:c,component:a}});i.__uniRoutes=o,i.__uniLayout={}}function f0(e,t,r=window){cn(r,String(e),t)}function h0(e,t){t&&["View","ScrollView","Swiper","MovableArea","MovableView","CoverView","CoverImage","Icon","Text","RichText","Progress","Button","CheckboxGroup","Checkbox","Editor","Form","Input","Label","Picker","PickerView","RadioGroup","Radio","Slider","Switch","Textarea","Navigator","Image","Video","Map","Canvas","WebView","PickerViewColumn","ResizeSensor","SwiperItem"].forEach(r=>{const n=t[r];e.component(r,n)})}function p0(e){const t=Zg(e),{Vue:r,App:n,UniH5:i,routes:o=[],pagesJson:s={},manifestJson:u={},window:c,css:a}=t,{plugin:l,setupApp:f}=i;i0(t,c),s0(t,c),a0(i,c),l0(r,i,o,s,c),a&&f0(u.appid||Date.now(),a,c);const p=r.createApp(f(n));return p.use(h0,i),p.use(l),p}function d0(e,t){const r={};return Object.entries(e).forEach(([n,i])=>{Fg.includes(n)&&i&&(r[n]=t(i))}),r}function m0(e,t,r=!1){return L(this,null,function*(){var s,u,c;const n=((s=e.project)==null?void 0:s.pages)||[],i=[];for(const a of n){const l=yield e.getDsl(a.id);if(!l)continue;const{renderer:f}=t({dsl:l,components:{}}),p=((u=e.project)==null?void 0:u.homepage)===a.id;i.push({id:a.id,path:`/pages/${a.id}`,component:f,style:V({navigationBarTitleText:a.title},a.style),needLogin:a.needLogin,home:p})}const o=i.find(a=>!!a.home)||i[0];if(o&&i.unshift(Q(V({},o),{path:"/"})),r){const a=((c=e.project)==null?void 0:c.blocks)||[];for(const l of a){const f=yield e.getDsl(l.id);if(!f)continue;const{renderer:p}=t({dsl:f,components:{}});i.push({id:l.id,path:`/pages/${l.id}`,component:p,style:{navigationStyle:"custom"}})}}return i})}function g0(){if(window.uni)return window.uni.showLoading({title:"加载中...",mask:!0}),()=>{window.uni.hideLoading()}}function ks(e,t="",r="warning"){window.uni&&window.uni.showModal({title:t,content:e,showCancel:!1})}const y0=$m({loading:g0,notify:ks}),v0=new Ig(Ng(ks)),{provider:b0,onReady:_0}=Dg({nodeEnv:"production",mode:ot.Runtime,materialPath:"../",adapter:y0,service:v0,dependencies:{Vue:()=>gn(()=>import("./@dcloudio-uni-h5-vue-Bu5X-z7t.js").then(e=>e.N),__vite__mapDeps([0,1,2]),import.meta.url),VueRouter:()=>gn(()=>import("./vue-router-C0BknHSK.js"),__vite__mapDeps([3,0,1,2]),import.meta.url)}}),w0=e=>L(void 0,null,function*(){var c;const{Vue:t,UniH5:r}=window,n=e.project;if(!n)return;const i=d0(n.uniConfig||{},a=>Le(a,window,!1,!0)),o=((c=n.uniConfig)==null?void 0:c.css)||"",s=yield m0(e,Ue,!0),u=p0({Vue:t,App:i,UniH5:r,routes:s,css:o});u.use(e),u.mount(document.body)});_0(()=>w0(b0));