34 lines
160 KiB
JavaScript
34 lines
160 KiB
JavaScript
"use strict";
|
|
/**
|
|
* @vue/shared v3.4.21
|
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
* @license MIT
|
|
**/
|
|
function t(t,e){const n=new Set(t.split(","));return t=>n.has(t)}const e={},n=[],r=()=>{},o=()=>!1,i=t=>111===t.charCodeAt(0)&&110===t.charCodeAt(1)&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97),s=t=>t.startsWith("onUpdate:"),u=Object.assign,c=(t,e)=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)},f=Object.prototype.hasOwnProperty,a=(t,e)=>f.call(t,e),l=Array.isArray,h=t=>"[object Map]"===w(t),p=t=>"[object Set]"===w(t),d=t=>"function"==typeof t,g=t=>"string"==typeof t,y=t=>"symbol"==typeof t,m=t=>null!==t&&"object"==typeof t,v=t=>(m(t)||d(t))&&d(t.then)&&d(t.catch),b=Object.prototype.toString,w=t=>b.call(t),_=t=>"[object Object]"===w(t),x=t=>g(t)&&"NaN"!==t&&"-"!==t[0]&&""+parseInt(t,10)===t,E=t(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),B=t=>{const e=Object.create(null);return n=>e[n]||(e[n]=t(n))},S=/-(\w)/g,A=B((t=>t.replace(S,((t,e)=>e?e.toUpperCase():"")))),I=/\B([A-Z])/g,T=B((t=>t.replace(I,"-$1").toLowerCase())),O=B((t=>t.charAt(0).toUpperCase()+t.slice(1))),$=B((t=>t?`on${O(t)}`:"")),F=(t,e)=>!Object.is(t,e),P=(t,e)=>{for(let n=0;n<t.length;n++)t[n](e)},R=t=>{const e=parseFloat(t);return isNaN(e)?t:e};let C;const k=(t,e)=>e&&e.__v_isRef?k(t,e.value):h(e)?{[`Map(${e.size})`]:[...e.entries()].reduce(((t,[e,n],r)=>(t[D(e,r)+" =>"]=n,t)),{})}:p(e)?{[`Set(${e.size})`]:[...e.values()].map((t=>D(t)))}:y(e)?D(e):!m(e)||l(e)||_(e)?e:String(e),D=(t,e="")=>{var n;return y(t)?`Symbol(${null!=(n=t.description)?n:e})`:t},M="onShow",j="onHide",L="onLaunch",U="onError",N="onThemeChange",V="onPageNotFound",q="onUnhandledRejection",H="onLoad",z="onReady",K="onUnload",W="onInit",Z="onSaveExitState",Y="onResize",G="onBackPress",J="onPageScroll",X="onTabItemTap",Q="onReachBottom",tt="onPullDownRefresh",et="onShareTimeline",nt="onShareChat",rt="onAddToFavorites",ot="onShareAppMessage",it="onNavigationBarButtonTap",st="onNavigationBarSearchInputClicked",ut="onNavigationBarSearchInputChanged",ct="onNavigationBarSearchInputConfirmed",ft="onNavigationBarSearchInputFocusChanged";function at(t,e=null){let n;return(...r)=>(t&&(n=t.apply(e,r),t=null),n)}function lt(t,e){if(!g(e))return;const n=(e=e.replace(/\[(\d+)\]/g,".$1")).split(".");let r=n[0];return t||(t={}),1===n.length?t[r]:lt(t[r],n.slice(1).join("."))}function ht(t){let e={};return _(t)&&Object.keys(t).sort().forEach((n=>{const r=n;e[r]=t[r]})),Object.keys(e)?e:t}const pt=/:/g;const dt=encodeURIComponent;function gt(t,e=dt){const n=t?Object.keys(t).map((n=>{let r=t[n];return void 0===typeof r||null===r?r="":_(r)&&(r=JSON.stringify(r)),e(n)+"="+e(r)})).filter((t=>t.length>0)).join("&"):null;return n?`?${n}`:""}const yt=[W,H,M,j,K,G,J,X,Q,tt,et,ot,nt,rt,Z,it,st,ut,ct,ft];const mt=[M,j,L,U,N,V,q,"onExit",W,H,z,K,Y,G,J,X,Q,tt,et,rt,ot,nt,Z,it,st,ut,ct,ft],vt=(()=>({onPageScroll:1,onShareAppMessage:2,onShareTimeline:4}))();function bt(t,e,n=!0){return!(n&&!d(e))&&(mt.indexOf(t)>-1||0===t.indexOf("on"))}let wt;const _t=[];const xt=at(((t,e)=>{if(d(t._component.onError))return e(t)})),Et=function(){};Et.prototype={_id:1,on:function(t,e,n){var r=this.e||(this.e={});return(r[t]||(r[t]=[])).push({fn:e,ctx:n,_id:this._id}),this._id++},once:function(t,e,n){var r=this;function o(){r.off(t,o),e.apply(n,arguments)}return o._=e,this.on(t,o,n)},emit:function(t){for(var e=[].slice.call(arguments,1),n=((this.e||(this.e={}))[t]||[]).slice(),r=0,o=n.length;r<o;r++)n[r].fn.apply(n[r].ctx,e);return this},off:function(t,e){var n=this.e||(this.e={}),r=n[t],o=[];if(r&&e){for(var i=r.length-1;i>=0;i--)if(r[i].fn===e||r[i].fn._===e||r[i]._id===e){r.splice(i,1);break}o=r}return o.length?n[t]=o:delete n[t],this}};var Bt=Et;const St="zh-Hans",At="zh-Hant",It="en";function Tt(t,e){if(!t)return;if("chinese"===(t=(t=t.trim().replace(/_/g,"-")).toLowerCase()))return St;if(0===t.indexOf("zh"))return t.indexOf("-hans")>-1?St:t.indexOf("-hant")>-1?At:(n=t,["-tw","-hk","-mo","-cht"].find((t=>-1!==n.indexOf(t)))?At:St);var n;const r=function(t,e){return e.find((e=>0===t.indexOf(e)))}(t,[It,"fr","es"]);return r||void 0}function Ot(t){return function(){try{return t.apply(t,arguments)}catch(e){console.error(e)}}}let $t=1;const Ft={};function Pt(t,e,n){if("number"==typeof t){const r=Ft[t];if(r)return r.keepAlive||delete Ft[t],r.callback(e,n)}return e}const Rt="success",Ct="fail",kt="complete";function Dt(t,e={},{beforeAll:n,beforeSuccess:r}={}){_(e)||(e={});const{success:o,fail:i,complete:s}=function(t){const e={};for(const n in t){const r=t[n];d(r)&&(e[n]=Ot(r),delete t[n])}return e}(e),u=d(o),c=d(i),f=d(s),a=$t++;return function(t,e,n,r=!1){Ft[t]={name:e,keepAlive:r,callback:n}}(a,t,(a=>{(a=a||{}).errMsg=function(t,e){return t&&-1!==t.indexOf(":fail")?e+t.substring(t.indexOf(":fail")):e+":ok"}(a.errMsg,t),d(n)&&n(a),a.errMsg===t+":ok"?(d(r)&&r(a,e),u&&o(a)):c&&i(a),f&&s(a)})),a}const Mt="success",jt="fail",Lt="complete",Ut={},Nt={};function Vt(t,e){return function(n){return t(n,e)||n}}function qt(t,e,n){let r=!1;for(let o=0;o<t.length;o++){const i=t[o];if(r)r=Promise.resolve(Vt(i,n));else{const t=i(e,n);if(v(t)&&(r=Promise.resolve(t)),!1===t)return{then(){},catch(){}}}}return r||{then:t=>t(e),catch(){}}}function Ht(t,e={}){return[Mt,jt,Lt].forEach((n=>{const r=t[n];if(!l(r))return;const o=e[n];e[n]=function(t){qt(r,t,e).then((t=>d(o)&&o(t)||t))}})),e}function zt(t,e){const n=[];l(Ut.returnValue)&&n.push(...Ut.returnValue);const r=Nt[t];return r&&l(r.returnValue)&&n.push(...r.returnValue),n.forEach((t=>{e=t(e)||e})),e}function Kt(t){const e=Object.create(null);Object.keys(Ut).forEach((t=>{"returnValue"!==t&&(e[t]=Ut[t].slice())}));const n=Nt[t];return n&&Object.keys(n).forEach((t=>{"returnValue"!==t&&(e[t]=(e[t]||[]).concat(n[t]))})),e}function Wt(t,e,n,r){const o=Kt(t);if(o&&Object.keys(o).length){if(l(o.invoke)){return qt(o.invoke,n).then((n=>e(Ht(Kt(t),n),...r)))}return e(Ht(o,n),...r)}return e(n,...r)}function Zt(t,e){return(n={},...r)=>function(t){return!(!_(t)||![Rt,Ct,kt].find((e=>d(t[e]))))}(n)?zt(t,Wt(t,e,n,r)):zt(t,new Promise(((o,i)=>{Wt(t,e,u(n,{success:o,fail:i}),r)})))}function Yt(t,e,n,r={}){const o=e+":fail";let i="";return i=n?0===n.indexOf(o)?n:o+" "+n:o,delete r.errCode,Pt(t,u({errMsg:i},r))}function Gt(t,e,n,r){const o=function(t){t[0]}(e);if(o)return o}function Jt(t,e,n,r){return n=>{const o=Dt(t,n,r),i=Gt(0,[n]);return i?Yt(o,t,i):e(n,{resolve:e=>function(t,e,n){return Pt(t,u(n||{},{errMsg:e+":ok"}))}(o,t,e),reject:(e,n)=>Yt(o,t,function(t){return!t||g(t)?t:t.stack?("undefined"!=typeof globalThis&&globalThis.harmonyChannel||console.error(t.message+"\n"+t.stack),t.message):t}(e),n)})}}function Xt(t,e,n,r){return function(t,e){return(...t)=>{const n=Gt(0,t);if(n)throw new Error(n);return e.apply(null,t)}}(0,e)}let Qt=!1,te=0,ee=0;function ne(){const{platform:t,pixelRatio:e,windowWidth:n}=wx.getSystemInfoSync();te=n,ee=e,Qt="ios"===t}const re=Xt(0,((t,e)=>{if(0===te&&ne(),0===(t=Number(t)))return 0;let n=t/750*(e||te);return n<0&&(n=-n),n=Math.floor(n+1e-4),0===n&&(n=1!==ee&&Qt?.5:1),t<0?-n:n}));function oe(t,e){Object.keys(e).forEach((n=>{d(e[n])&&(t[n]=function(t,e){const n=e?t?t.concat(e):l(e)?e:[e]:t;return n?function(t){const e=[];for(let n=0;n<t.length;n++)-1===e.indexOf(t[n])&&e.push(t[n]);return e}(n):n}(t[n],e[n]))}))}function ie(t,e){t&&e&&Object.keys(e).forEach((n=>{const r=t[n],o=e[n];l(r)&&d(o)&&c(r,o)}))}const se=Xt(0,((t,e)=>{g(t)&&_(e)?oe(Nt[t]||(Nt[t]={}),e):_(t)&&oe(Ut,t)})),ue=Xt(0,((t,e)=>{g(t)?_(e)?ie(Nt[t],e):delete Nt[t]:_(t)&&ie(Ut,t)}));const ce=new class{constructor(){this.$emitter=new Bt}on(t,e){return this.$emitter.on(t,e)}once(t,e){return this.$emitter.once(t,e)}off(t,e){t?this.$emitter.off(t,e):this.$emitter.e={}}emit(t,...e){this.$emitter.emit(t,...e)}},fe=Xt(0,((t,e)=>(ce.on(t,e),()=>ce.off(t,e)))),ae=Xt(0,((t,e)=>(ce.once(t,e),()=>ce.off(t,e)))),le=Xt(0,((t,e)=>{l(t)||(t=t?[t]:[]),t.forEach((t=>ce.off(t,e)))})),he=Xt(0,((t,...e)=>{ce.emit(t,...e)}));let pe,de,ge;function ye(t){try{return JSON.parse(t)}catch(e){}return t}const me=[];function ve(t,e){me.forEach((n=>{n(t,e)})),me.length=0}const be=Zt(we="getPushClientId",function(t,e,n,r){return Jt(t,e,0,r)}(we,((t,{resolve:e,reject:n})=>{Promise.resolve().then((()=>{void 0===ge&&(ge=!1,pe="",de="uniPush is not enabled"),me.push(((t,r)=>{t?e({cid:t}):n(r)})),void 0!==pe&&ve(pe,de)}))}),0,_e));var we,_e;const xe=[],Ee=/^\$|getLocale|setLocale|sendNativeEvent|restoreGlobal|requireGlobal|getCurrentSubNVue|getMenuButtonBoundingClientRect|^report|interceptors|Interceptor$|getSubNVueById|requireNativePlugin|upx2px|hideKeyboard|canIUse|^create|Sync$|Manager$|base64ToArrayBuffer|arrayBufferToBase64|getDeviceInfo|getAppBaseInfo|getWindowInfo|getSystemSetting|getAppAuthorizeSetting/,Be=/^create|Manager$/,Se=["createBLEConnection"],Ae=["createBLEConnection"],Ie=/^on|^off/;function Te(t){return Be.test(t)&&-1===Se.indexOf(t)}function Oe(t){return Ee.test(t)&&-1===Ae.indexOf(t)}function $e(t){return!(Te(t)||Oe(t)||function(t){return Ie.test(t)&&"onPush"!==t}(t))}function Fe(t,e){return $e(t)&&d(e)?function(n={},...r){return d(n.success)||d(n.fail)||d(n.complete)?zt(t,Wt(t,e,n,r)):zt(t,new Promise(((o,i)=>{Wt(t,e,u({},n,{success:o,fail:i}),r)})))}:e}Promise.prototype.finally||(Promise.prototype.finally=function(t){const e=this.constructor;return this.then((n=>e.resolve(t&&t()).then((()=>n))),(n=>e.resolve(t&&t()).then((()=>{throw n}))))});const Pe=["success","fail","cancel","complete"];const Re=()=>{const t=d(getApp)&&getApp({allowDefault:!0});return t&&t.$vm?t.$vm.$locale:Tt(wx.getSystemInfoSync().language)||It},Ce=[];"undefined"!=typeof global&&(global.getLocale=Re);const ke="__DC_STAT_UUID";let De;function Me(t=wx){return function(e,n){De=De||t.getStorageSync(ke),De||(De=Date.now()+""+Math.floor(1e7*Math.random()),wx.setStorage({key:ke,data:De})),n.deviceId=De}}function je(t,e){if(t.safeArea){const n=t.safeArea;e.safeAreaInsets={top:n.top,left:n.left,right:t.windowWidth-n.right,bottom:t.screenHeight-n.bottom}}}function Le(t,e){let n="",r="";return n=t.split(" ")[0]||"",r=t.split(" ")[1]||"",{osName:n.toLocaleLowerCase(),osVersion:r}}function Ue(t,e){let n=t.deviceType||"phone";{const t={ipad:"pad",windows:"pc",mac:"pc"},r=Object.keys(t),o=e.toLocaleLowerCase();for(let e=0;e<r.length;e++){const i=r[e];if(-1!==o.indexOf(i)){n=t[i];break}}}return n}function Ne(t){let e=t;return e&&(e=e.toLocaleLowerCase()),e}function Ve(t){return Re?Re():t}function qe(t){let e=t.hostName||"WeChat";return t.environment?e=t.environment:t.host&&t.host.env&&(e=t.host.env),e}const He={returnValue:(t,e)=>{je(t,e),Me()(t,e),function(t,e){const{brand:n="",model:r="",system:o="",language:i="",theme:s,version:c,platform:f,fontSizeSetting:a,SDKVersion:l,pixelRatio:h,deviceOrientation:p}=t,{osName:d,osVersion:g}=Le(o);let y=c,m=Ue(t,r),v=Ne(n),b=qe(t),w=p,_=h,x=l;const E=i.replace(/_/g,"-"),B={appId:"",appName:"",appVersion:"1.0.0",appVersionCode:"100",appLanguage:Ve(E),uniCompileVersion:"4.36",uniCompilerVersion:"4.36",uniRuntimeVersion:"4.36",uniPlatform:"mp-weixin",deviceBrand:v,deviceModel:r,deviceType:m,devicePixelRatio:_,deviceOrientation:w,osName:d,osVersion:g,hostTheme:s,hostVersion:y,hostLanguage:E,hostName:b,hostSDKVersion:x,hostFontSizeSetting:a,windowTop:0,windowBottom:0,osLanguage:void 0,osTheme:void 0,ua:void 0,hostPackageName:void 0,browserName:void 0,browserVersion:void 0,isUniAppX:!1};u(e,B)}(t,e)}},ze=He,Ke={args(t,e){let n=parseInt(t.current);if(isNaN(n))return;const r=t.urls;if(!l(r))return;const o=r.length;return o?(n<0?n=0:n>=o&&(n=o-1),n>0?(e.current=r[n],e.urls=r.filter(((t,e)=>!(e<n)||t!==r[n]))):e.current=r[0],{indicator:!1,loop:!1}):void 0}},We={args(t,e){e.alertText=t.title}},Ze={returnValue:(t,e)=>{const{brand:n,model:r,system:o="",platform:i=""}=t;let s=Ue(t,r),c=Ne(n);Me()(t,e);const{osName:f,osVersion:a}=Le(o);e=ht(u(e,{deviceType:s,deviceBrand:c,deviceModel:r,osName:f,osVersion:a}))}},Ye={returnValue:(t,e)=>{const{version:n,language:r,SDKVersion:o,theme:i}=t;let s=qe(t),c=r.replace(/_/g,"-");e=ht(u(e,{hostVersion:n,hostLanguage:c,hostName:s,hostSDKVersion:o,hostTheme:i,appId:"",appName:"",appVersion:"1.0.0",appVersionCode:"100",appLanguage:Ve(c),isUniAppX:!1,uniPlatform:"mp-weixin",uniCompileVersion:"4.36",uniCompilerVersion:"4.36",uniRuntimeVersion:"4.36"}))}},Ge={returnValue:(t,e)=>{je(t,e),e=ht(u(e,{windowTop:0,windowBottom:0}))}},Je={$on:fe,$off:le,$once:ae,$emit:he,upx2px:re,interceptors:{},addInterceptor:se,removeInterceptor:ue,onCreateVueApp:function(t){if(wt)return t(wt);_t.push(t)},invokeCreateVueAppHook:function(t){wt=t,_t.forEach((e=>e(t)))},getLocale:Re,setLocale:t=>{const e=d(getApp)&&getApp();if(!e)return!1;return e.$vm.$locale!==t&&(e.$vm.$locale=t,Ce.forEach((e=>e({locale:t}))),!0)},onLocaleChange:t=>{-1===Ce.indexOf(t)&&Ce.push(t)},getPushClientId:be,onPushMessage:t=>{-1===xe.indexOf(t)&&xe.push(t)},offPushMessage:t=>{if(t){const e=xe.indexOf(t);e>-1&&xe.splice(e,1)}else xe.length=0},invokePushCallback:function(t){if("enabled"===t.type)ge=!0;else if("clientId"===t.type)pe=t.cid,de=t.errMsg,ve(pe,t.errMsg);else if("pushMsg"===t.type){const e={type:"receive",data:ye(t.message)};for(let t=0;t<xe.length;t++){if((0,xe[t])(e),e.stopped)break}}else"click"===t.type&&xe.forEach((e=>{e({type:"click",data:ye(t.message)})}))}};const Xe=["qy","env","error","version","lanDebug","cloud","serviceMarket","router","worklet","__webpack_require_UNI_MP_PLUGIN__"],Qe=["lanDebug","router","worklet"],tn=wx.getLaunchOptionsSync?wx.getLaunchOptionsSync():null;function en(t){return(!tn||1154!==tn.scene||!Qe.includes(t))&&(Xe.indexOf(t)>-1||"function"==typeof wx[t])}function nn(){const t={};for(const e in wx)en(e)&&(t[e]=wx[e]);return"undefined"!=typeof globalThis&&"undefined"==typeof requireMiniProgram&&(globalThis.wx=t),t}const rn=["__route__","__wxExparserNodeId__","__wxWebviewId__"],on=(sn={oauth:["weixin"],share:["weixin"],payment:["wxpay"],push:["weixin"]},function({service:t,success:e,fail:n,complete:r}){let o;sn[t]?(o={errMsg:"getProvider:ok",service:t,provider:sn[t]},d(e)&&e(o)):(o={errMsg:"getProvider:fail:服务["+t+"]不存在"},d(n)&&n(o)),d(r)&&r(o)});var sn;const un=nn();let cn=un.getAppBaseInfo&&un.getAppBaseInfo();cn||(cn=un.getSystemInfoSync());const fn=cn?cn.host:null,an=fn&&"SAAASDK"===fn.env?un.miniapp.shareVideoMessage:un.shareVideoMessage;var ln=Object.freeze({__proto__:null,createSelectorQuery:function(){const t=un.createSelectorQuery(),e=t.in;return t.in=function(t){return e.call(this,function(t){const e=Object.create(null);return rn.forEach((n=>{e[n]=t[n]})),e}(t))},t},getProvider:on,shareVideoMessage:an});const hn={args(t,e){t.compressedHeight&&!e.compressHeight&&(e.compressHeight=t.compressedHeight),t.compressedWidth&&!e.compressWidth&&(e.compressWidth=t.compressedWidth)}};var pn=Object.freeze({__proto__:null,compressImage:hn,getAppAuthorizeSetting:{returnValue:function(t,e){const{locationReducedAccuracy:n}=t;e.locationAccuracy="unsupported",!0===n?e.locationAccuracy="reduced":!1===n&&(e.locationAccuracy="full")}},getAppBaseInfo:Ye,getDeviceInfo:Ze,getSystemInfo:He,getSystemInfoSync:ze,getWindowInfo:Ge,previewImage:Ke,redirectTo:{},showActionSheet:We});const dn=nn();var gn=function(t,e,n=wx){const r=function(t){function e(t,e,n){return function(o){return e(r(t,o,n))}}function n(t,n,r={},o={},i=!1){if(_(n)){const s=!0===i?n:{};d(r)&&(r=r(n,s)||{});for(const u in n)if(a(r,u)){let e=r[u];d(e)&&(e=e(n[u],n,s)),e?g(e)?s[e]=n[u]:_(e)&&(s[e.name?e.name:u]=e.value):console.warn(`微信小程序 ${t} 暂不支持 ${u}`)}else if(-1!==Pe.indexOf(u)){const r=n[u];d(r)&&(s[u]=e(t,r,o))}else i||a(s,u)||(s[u]=n[u]);return s}return d(n)&&(n=e(t,n,o)),n}function r(e,r,o,i=!1){return d(t.returnValue)&&(r=t.returnValue(e,r)),n(e,r,o,{},i)}return function(e,o){if(!a(t,e))return o;const i=t[e];return i?function(t,o){let s=i;d(i)&&(s=i(t));const u=[t=n(e,t,s.args,s.returnValue)];void 0!==o&&u.push(o);const c=wx[s.name||e].apply(wx,u);return Oe(e)?r(e,c,s.returnValue,Te(e)):c}:function(){console.error(`微信小程序 暂不支持${e}`)}}}(e);return new Proxy({},{get:(e,o)=>a(e,o)?e[o]:a(t,o)?Fe(o,t[o]):a(Je,o)?Fe(o,Je[o]):Fe(o,r(o,n[o]))})}(ln,pn,dn);new Set(Object.getOwnPropertyNames(Symbol).filter((t=>"arguments"!==t&&"caller"!==t)).map((t=>Symbol[t])).filter(y));{const t=C||(C="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{}),e=(e,n)=>{let r;return(r=t[e])||(r=t[e]=[]),r.push(n),t=>{r.length>1?r.forEach((e=>e(t))):r[0](t)}};e("__VUE_INSTANCE_SETTERS__",(t=>t)),e("__VUE_SSR_SETTERS__",(t=>t))}let yn,mn;class vn{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=yn,!t&&yn&&(this.index=(yn.scopes||(yn.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const e=yn;try{return yn=this,t()}finally{yn=e}}}on(){yn=this}off(){yn=this.parent}stop(t){if(this._active){let e,n;for(e=0,n=this.effects.length;e<n;e++)this.effects[e].stop();for(e=0,n=this.cleanups.length;e<n;e++)this.cleanups[e]();if(this.scopes)for(e=0,n=this.scopes.length;e<n;e++)this.scopes[e].stop(!0);if(!this.detached&&this.parent&&!t){const t=this.parent.scopes.pop();t&&t!==this&&(this.parent.scopes[this.index]=t,t.index=this.index)}this.parent=void 0,this._active=!1}}}function bn(t){return new vn(t)}function wn(){return yn}class _n{constructor(t,e,n,r){this.fn=t,this.trigger=e,this.scheduler=n,this.active=!0,this.deps=[],this._dirtyLevel=4,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,function(t,e=yn){e&&e.active&&e.effects.push(t)}(this,r)}get dirty(){if(2===this._dirtyLevel||3===this._dirtyLevel){this._dirtyLevel=1,Tn();for(let t=0;t<this._depsLength;t++){const e=this.deps[t];if(e.computed&&(e.computed.value,this._dirtyLevel>=4))break}1===this._dirtyLevel&&(this._dirtyLevel=0),On()}return this._dirtyLevel>=4}set dirty(t){this._dirtyLevel=t?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=Sn,e=mn;try{return Sn=!0,mn=this,this._runnings++,xn(this),this.fn()}finally{En(this),this._runnings--,mn=e,Sn=t}}stop(){var t;this.active&&(xn(this),En(this),null==(t=this.onStop)||t.call(this),this.active=!1)}}function xn(t){t._trackId++,t._depsLength=0}function En(t){if(t.deps.length>t._depsLength){for(let e=t._depsLength;e<t.deps.length;e++)Bn(t.deps[e],t);t.deps.length=t._depsLength}}function Bn(t,e){const n=t.get(e);void 0!==n&&e._trackId!==n&&(t.delete(e),0===t.size&&t.cleanup())}let Sn=!0,An=0;const In=[];function Tn(){In.push(Sn),Sn=!1}function On(){const t=In.pop();Sn=void 0===t||t}function $n(){An++}function Fn(){for(An--;!An&&Rn.length;)Rn.shift()()}function Pn(t,e,n){if(e.get(t)!==t._trackId){e.set(t,t._trackId);const n=t.deps[t._depsLength];n!==e?(n&&Bn(n,t),t.deps[t._depsLength++]=e):t._depsLength++}}const Rn=[];function Cn(t,e,n){$n();for(const r of t.keys()){let n;r._dirtyLevel<e&&(null!=n?n:n=t.get(r)===r._trackId)&&(r._shouldSchedule||(r._shouldSchedule=0===r._dirtyLevel),r._dirtyLevel=e),r._shouldSchedule&&(null!=n?n:n=t.get(r)===r._trackId)&&(r.trigger(),r._runnings&&!r.allowRecurse||2===r._dirtyLevel||(r._shouldSchedule=!1,r.scheduler&&Rn.push(r.scheduler)))}Fn()}const kn=(t,e)=>{const n=new Map;return n.cleanup=t,n.computed=e,n},Dn=new WeakMap,Mn=Symbol(""),jn=Symbol("");function Ln(t,e,n){if(Sn&&mn){let e=Dn.get(t);e||Dn.set(t,e=new Map);let r=e.get(n);r||e.set(n,r=kn((()=>e.delete(n)))),Pn(mn,r)}}function Un(t,e,n,r,o,i){const s=Dn.get(t);if(!s)return;let u=[];if("clear"===e)u=[...s.values()];else if("length"===n&&l(t)){const t=Number(r);s.forEach(((e,n)=>{("length"===n||!y(n)&&n>=t)&&u.push(e)}))}else switch(void 0!==n&&u.push(s.get(n)),e){case"add":l(t)?x(n)&&u.push(s.get("length")):(u.push(s.get(Mn)),h(t)&&u.push(s.get(jn)));break;case"delete":l(t)||(u.push(s.get(Mn)),h(t)&&u.push(s.get(jn)));break;case"set":h(t)&&u.push(s.get(Mn))}$n();for(const c of u)c&&Cn(c,4);Fn()}const Nn=t("__proto__,__v_isRef,__isVue"),Vn=new Set(Object.getOwnPropertyNames(Symbol).filter((t=>"arguments"!==t&&"caller"!==t)).map((t=>Symbol[t])).filter(y)),qn=Hn();function Hn(){const t={};return["includes","indexOf","lastIndexOf"].forEach((e=>{t[e]=function(...t){const n=$r(this);for(let e=0,o=this.length;e<o;e++)Ln(n,0,e+"");const r=n[e](...t);return-1===r||!1===r?n[e](...t.map($r)):r}})),["push","pop","shift","unshift","splice"].forEach((e=>{t[e]=function(...t){Tn(),$n();const n=$r(this)[e].apply(this,t);return Fn(),On(),n}})),t}function zn(t){const e=$r(this);return Ln(e,0,t),e.hasOwnProperty(t)}class Kn{constructor(t=!1,e=!1){this._isReadonly=t,this._isShallow=e}get(t,e,n){const r=this._isReadonly,o=this._isShallow;if("__v_isReactive"===e)return!r;if("__v_isReadonly"===e)return r;if("__v_isShallow"===e)return o;if("__v_raw"===e)return n===(r?o?xr:_r:o?wr:br).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const i=l(t);if(!r){if(i&&a(qn,e))return Reflect.get(qn,e,n);if("hasOwnProperty"===e)return zn}const s=Reflect.get(t,e,n);return(y(e)?Vn.has(e):Nn(e))?s:(r||Ln(t,0,e),o?s:Mr(s)?i&&x(e)?s:s.value:m(s)?r?Sr(s):Br(s):s)}}class Wn extends Kn{constructor(t=!1){super(!1,t)}set(t,e,n,r){let o=t[e];if(!this._isShallow){const e=Tr(o);if(Or(n)||Tr(n)||(o=$r(o),n=$r(n)),!l(t)&&Mr(o)&&!Mr(n))return!e&&(o.value=n,!0)}const i=l(t)&&x(e)?Number(e)<t.length:a(t,e),s=Reflect.set(t,e,n,r);return t===$r(r)&&(i?F(n,o)&&Un(t,"set",e,n):Un(t,"add",e,n)),s}deleteProperty(t,e){const n=a(t,e);t[e];const r=Reflect.deleteProperty(t,e);return r&&n&&Un(t,"delete",e,void 0),r}has(t,e){const n=Reflect.has(t,e);return y(e)&&Vn.has(e)||Ln(t,0,e),n}ownKeys(t){return Ln(t,0,l(t)?"length":Mn),Reflect.ownKeys(t)}}class Zn extends Kn{constructor(t=!1){super(!0,t)}set(t,e){return!0}deleteProperty(t,e){return!0}}const Yn=new Wn,Gn=new Zn,Jn=new Wn(!0),Xn=t=>t,Qn=t=>Reflect.getPrototypeOf(t);function tr(t,e,n=!1,r=!1){const o=$r(t=t.__v_raw),i=$r(e);n||(F(e,i)&&Ln(o,0,e),Ln(o,0,i));const{has:s}=Qn(o),u=r?Xn:n?Rr:Pr;return s.call(o,e)?u(t.get(e)):s.call(o,i)?u(t.get(i)):void(t!==o&&t.get(e))}function er(t,e=!1){const n=this.__v_raw,r=$r(n),o=$r(t);return e||(F(t,o)&&Ln(r,0,t),Ln(r,0,o)),t===o?n.has(t):n.has(t)||n.has(o)}function nr(t,e=!1){return t=t.__v_raw,!e&&Ln($r(t),0,Mn),Reflect.get(t,"size",t)}function rr(t){t=$r(t);const e=$r(this);return Qn(e).has.call(e,t)||(e.add(t),Un(e,"add",t,t)),this}function or(t,e){e=$r(e);const n=$r(this),{has:r,get:o}=Qn(n);let i=r.call(n,t);i||(t=$r(t),i=r.call(n,t));const s=o.call(n,t);return n.set(t,e),i?F(e,s)&&Un(n,"set",t,e):Un(n,"add",t,e),this}function ir(t){const e=$r(this),{has:n,get:r}=Qn(e);let o=n.call(e,t);o||(t=$r(t),o=n.call(e,t)),r&&r.call(e,t);const i=e.delete(t);return o&&Un(e,"delete",t,void 0),i}function sr(){const t=$r(this),e=0!==t.size,n=t.clear();return e&&Un(t,"clear",void 0,void 0),n}function ur(t,e){return function(n,r){const o=this,i=o.__v_raw,s=$r(i),u=e?Xn:t?Rr:Pr;return!t&&Ln(s,0,Mn),i.forEach(((t,e)=>n.call(r,u(t),u(e),o)))}}function cr(t,e,n){return function(...r){const o=this.__v_raw,i=$r(o),s=h(i),u="entries"===t||t===Symbol.iterator&&s,c="keys"===t&&s,f=o[t](...r),a=n?Xn:e?Rr:Pr;return!e&&Ln(i,0,c?jn:Mn),{next(){const{value:t,done:e}=f.next();return e?{value:t,done:e}:{value:u?[a(t[0]),a(t[1])]:a(t),done:e}},[Symbol.iterator](){return this}}}}function fr(t){return function(...e){return"delete"!==t&&("clear"===t?void 0:this)}}function ar(){const t={get(t){return tr(this,t)},get size(){return nr(this)},has:er,add:rr,set:or,delete:ir,clear:sr,forEach:ur(!1,!1)},e={get(t){return tr(this,t,!1,!0)},get size(){return nr(this)},has:er,add:rr,set:or,delete:ir,clear:sr,forEach:ur(!1,!0)},n={get(t){return tr(this,t,!0)},get size(){return nr(this,!0)},has(t){return er.call(this,t,!0)},add:fr("add"),set:fr("set"),delete:fr("delete"),clear:fr("clear"),forEach:ur(!0,!1)},r={get(t){return tr(this,t,!0,!0)},get size(){return nr(this,!0)},has(t){return er.call(this,t,!0)},add:fr("add"),set:fr("set"),delete:fr("delete"),clear:fr("clear"),forEach:ur(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((o=>{t[o]=cr(o,!1,!1),n[o]=cr(o,!0,!1),e[o]=cr(o,!1,!0),r[o]=cr(o,!0,!0)})),[t,n,e,r]}const[lr,hr,pr,dr]=ar();function gr(t,e){const n=e?t?dr:pr:t?hr:lr;return(e,r,o)=>"__v_isReactive"===r?!t:"__v_isReadonly"===r?t:"__v_raw"===r?e:Reflect.get(a(n,r)&&r in e?n:e,r,o)}const yr={get:gr(!1,!1)},mr={get:gr(!1,!0)},vr={get:gr(!0,!1)},br=new WeakMap,wr=new WeakMap,_r=new WeakMap,xr=new WeakMap;function Er(t){return t.__v_skip||!Object.isExtensible(t)?0:function(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}((t=>w(t).slice(8,-1))(t))}function Br(t){return Tr(t)?t:Ar(t,!1,Yn,yr,br)}function Sr(t){return Ar(t,!0,Gn,vr,_r)}function Ar(t,e,n,r,o){if(!m(t))return t;if(t.__v_raw&&(!e||!t.__v_isReactive))return t;const i=o.get(t);if(i)return i;const s=Er(t);if(0===s)return t;const u=new Proxy(t,2===s?r:n);return o.set(t,u),u}function Ir(t){return Tr(t)?Ir(t.__v_raw):!(!t||!t.__v_isReactive)}function Tr(t){return!(!t||!t.__v_isReadonly)}function Or(t){return!(!t||!t.__v_isShallow)}function $r(t){const e=t&&t.__v_raw;return e?$r(e):t}function Fr(t){return Object.isExtensible(t)&&((t,e,n)=>{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value:n})})(t,"__v_skip",!0),t}const Pr=t=>m(t)?Br(t):t,Rr=t=>m(t)?Sr(t):t;class Cr{constructor(t,e,n,r){this.getter=t,this._setter=e,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new _n((()=>t(this._value)),(()=>Dr(this,2===this.effect._dirtyLevel?2:3))),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=n}get value(){const t=$r(this);return t._cacheable&&!t.effect.dirty||!F(t._value,t._value=t.effect.run())||Dr(t,4),kr(t),t.effect._dirtyLevel>=2&&Dr(t,2),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function kr(t){var e;Sn&&mn&&(t=$r(t),Pn(mn,null!=(e=t.dep)?e:t.dep=kn((()=>t.dep=void 0),t instanceof Cr?t:void 0)))}function Dr(t,e=4,n){const r=(t=$r(t)).dep;r&&Cn(r,e)}function Mr(t){return!(!t||!0!==t.__v_isRef)}function jr(t){return function(t,e){if(Mr(t))return t;return new Lr(t,e)}(t,!1)}class Lr{constructor(t,e){this.__v_isShallow=e,this.dep=void 0,this.__v_isRef=!0,this._rawValue=e?t:$r(t),this._value=e?t:Pr(t)}get value(){return kr(this),this._value}set value(t){const e=this.__v_isShallow||Or(t)||Tr(t);t=e?t:$r(t),F(t,this._rawValue)&&(this._rawValue=t,this._value=e?t:Pr(t),Dr(this,4))}}function Ur(t){return Mr(t)?t.value:t}const Nr={get:(t,e,n)=>Ur(Reflect.get(t,e,n)),set:(t,e,n,r)=>{const o=t[e];return Mr(o)&&!Mr(n)?(o.value=n,!0):Reflect.set(t,e,n,r)}};function Vr(t){return Ir(t)?t:new Proxy(t,Nr)}class qr{constructor(t,e,n){this._object=t,this._key=e,this._defaultValue=n,this.__v_isRef=!0}get value(){const t=this._object[this._key];return void 0===t?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return t=$r(this._object),e=this._key,null==(n=Dn.get(t))?void 0:n.get(e);var t,e,n}}function Hr(t,e,n){const r=t[e];return Mr(r)?r:new qr(t,e,n)}function zr(t,e,n,r){try{return r?t(...r):t()}catch(o){Wr(o,e,n)}}function Kr(t,e,n,r){if(d(t)){const o=zr(t,e,n,r);return o&&v(o)&&o.catch((t=>{Wr(t,e,n)})),o}const o=[];for(let i=0;i<t.length;i++)o.push(Kr(t[i],e,n,r));return o}function Wr(t,e,n,r=!0){e&&e.vnode;if(e){let r=e.parent;const o=e.proxy,i=`https://vuejs.org/error-reference/#runtime-${n}`;for(;r;){const e=r.ec;if(e)for(let n=0;n<e.length;n++)if(!1===e[n](t,o,i))return;r=r.parent}const s=e.appContext.config.errorHandler;if(s)return void zr(s,null,10,[t,o,i])}!function(t){console.error(t)}(t,0,0,r)}let Zr=!1,Yr=!1;const Gr=[];let Jr=0;const Xr=[];let Qr=null,to=0;const eo=Promise.resolve();let no=null;function ro(t){const e=no||eo;return t?e.then(this?t.bind(this):t):e}function oo(t){Gr.length&&Gr.includes(t,Zr&&t.allowRecurse?Jr+1:Jr)||(null==t.id?Gr.push(t):Gr.splice(function(t){let e=Jr+1,n=Gr.length;for(;e<n;){const r=e+n>>>1,o=Gr[r],i=co(o);i<t||i===t&&o.pre?e=r+1:n=r}return e}(t.id),0,t),io())}function io(){Zr||Yr||(Yr=!0,no=eo.then(ao))}function so(t){l(t)?Xr.push(...t):Qr&&Qr.includes(t,t.allowRecurse?to+1:to)||Xr.push(t),io()}function uo(t,e,n=(Zr?Jr+1:0)){for(;n<Gr.length;n++){const t=Gr[n];t&&t.pre&&(Gr.splice(n,1),n--,t())}}const co=t=>null==t.id?1/0:t.id,fo=(t,e)=>{const n=co(t)-co(e);if(0===n){if(t.pre&&!e.pre)return-1;if(e.pre&&!t.pre)return 1}return n};function ao(t){Yr=!1,Zr=!0,Gr.sort(fo);try{for(Jr=0;Jr<Gr.length;Jr++){const t=Gr[Jr];t&&!1!==t.active&&zr(t,null,14)}}finally{Jr=0,Gr.length=0,function(){if(Xr.length){const t=[...new Set(Xr)].sort(((t,e)=>co(t)-co(e)));if(Xr.length=0,Qr)return void Qr.push(...t);for(Qr=t,to=0;to<Qr.length;to++)Qr[to]();Qr=null,to=0}}(),Zr=!1,no=null,(Gr.length||Xr.length)&&ao()}}function lo(t,n,...r){if(t.isUnmounted)return;const o=t.vnode.props||e;let i=r;const s=n.startsWith("update:"),u=s&&n.slice(7);if(u&&u in o){const t=`${"modelValue"===u?"model":u}Modifiers`,{number:n,trim:s}=o[t]||e;s&&(i=r.map((t=>g(t)?t.trim():t))),n&&(i=r.map(R))}let c,f=o[c=$(n)]||o[c=$(A(n))];!f&&s&&(f=o[c=$(T(n))]),f&&Kr(f,t,6,i);const a=o[c+"Once"];if(a){if(t.emitted){if(t.emitted[c])return}else t.emitted={};t.emitted[c]=!0,Kr(a,t,6,i)}}function ho(t,e,n=!1){const r=e.emitsCache,o=r.get(t);if(void 0!==o)return o;const i=t.emits;let s={},c=!1;if(!d(t)){const r=t=>{const n=ho(t,e,!0);n&&(c=!0,u(s,n))};!n&&e.mixins.length&&e.mixins.forEach(r),t.extends&&r(t.extends),t.mixins&&t.mixins.forEach(r)}return i||c?(l(i)?i.forEach((t=>s[t]=null)):u(s,i),m(t)&&r.set(t,s),s):(m(t)&&r.set(t,null),null)}function po(t,e){return!(!t||!i(e))&&(e=e.slice(2).replace(/Once$/,""),a(t,e[0].toLowerCase()+e.slice(1))||a(t,T(e))||a(t,e))}let go=null;function yo(t){const e=go;return go=t,t&&t.type.__scopeId,e}const mo={};function vo(t,e,n){return bo(t,e,n)}function bo(t,n,{immediate:o,deep:i,flush:s,once:u,onTrack:f,onTrigger:a}=e){if(n&&u){const t=n;n=(...e)=>{t(...e),S()}}const h=wi,p=t=>!0===i?t:xo(t,!1===i?1:void 0);let g,y,m=!1,v=!1;if(Mr(t)?(g=()=>t.value,m=Or(t)):Ir(t)?(g=()=>p(t),m=!0):l(t)?(v=!0,m=t.some((t=>Ir(t)||Or(t))),g=()=>t.map((t=>Mr(t)?t.value:Ir(t)?p(t):d(t)?zr(t,h,2):void 0))):g=d(t)?n?()=>zr(t,h,2):()=>(y&&y(),Kr(t,h,3,[b])):r,n&&i){const t=g;g=()=>xo(t())}let b=t=>{y=E.onStop=()=>{zr(t,h,4),y=E.onStop=void 0}},w=v?new Array(t.length).fill(mo):mo;const _=()=>{if(E.active&&E.dirty)if(n){const t=E.run();(i||m||(v?t.some(((t,e)=>F(t,w[e]))):F(t,w)))&&(y&&y(),Kr(n,h,3,[t,w===mo?void 0:v&&w[0]===mo?[]:w,b]),w=t)}else E.run()};let x;_.allowRecurse=!!n,"sync"===s?x=_:"post"===s?x=()=>di(_,h&&h.suspense):(_.pre=!0,h&&(_.id=h.uid),x=()=>oo(_));const E=new _n(g,r,x),B=wn(),S=()=>{E.stop(),B&&c(B.effects,E)};return n?o?_():w=E.run():"post"===s?di(E.run.bind(E),h&&h.suspense):E.run(),S}function wo(t,e,n){const r=this.proxy,o=g(t)?t.includes(".")?_o(r,t):()=>r[t]:t.bind(r,r);let i;d(e)?i=e:(i=e.handler,n=e);const s=_i(this),u=bo(o,i.bind(r),n);return s(),u}function _o(t,e){const n=e.split(".");return()=>{let e=t;for(let t=0;t<n.length&&e;t++)e=e[n[t]];return e}}function xo(t,e,n=0,r){if(!m(t)||t.__v_skip)return t;if(e&&e>0){if(n>=e)return t;n++}if((r=r||new Set).has(t))return t;if(r.add(t),Mr(t))xo(t.value,e,n,r);else if(l(t))for(let o=0;o<t.length;o++)xo(t[o],e,n,r);else if(p(t)||h(t))t.forEach((t=>{xo(t,e,n,r)}));else if(_(t))for(const o in t)xo(t[o],e,n,r);return t}function Eo(){return{app:null,config:{isNativeTag:o,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Bo=0;let So=null;function Ao(t,e,n=!1){const r=wi||go;if(r||So){const o=r?null==r.parent?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:So._context.provides;if(o&&t in o)return o[t];if(arguments.length>1)return n&&d(e)?e.call(r&&r.proxy):e}}function Io(t,e){Oo(t,"a",e)}function To(t,e){Oo(t,"da",e)}function Oo(t,e,n=wi){const r=t.__wdc||(t.__wdc=()=>{let e=n;for(;e;){if(e.isDeactivated)return;e=e.parent}return t()});if(Fo(e,r,n),n){let t=n.parent;for(;t&&t.parent;)t.parent.vnode.type.__isKeepAlive&&$o(r,e,n,t),t=t.parent}}function $o(t,e,n,r){const o=Fo(e,t,r,!0);jo((()=>{c(r[e],o)}),n)}function Fo(t,e,n=wi,r=!1){if(n){(function(t){return yt.indexOf(t)>-1})(t)&&(n=n.root);const o=n[t]||(n[t]=[]),i=e.__weh||(e.__weh=(...r)=>{if(n.isUnmounted)return;Tn();const o=_i(n),i=Kr(e,n,t,r);return o(),On(),i});return r?o.unshift(i):o.push(i),i}}const Po=t=>(e,n=wi)=>(!Bi||"sp"===t)&&Fo(t,((...t)=>e(...t)),n),Ro=Po("bm"),Co=Po("m"),ko=Po("bu"),Do=Po("u"),Mo=Po("bum"),jo=Po("um"),Lo=Po("sp"),Uo=Po("rtg"),No=Po("rtc");function Vo(t,e=wi){Fo("ec",t,e)}const qo=t=>t?Ei(t)?Ii(t)||t.proxy:qo(t.parent):null,Ho=u(Object.create(null),{$:t=>t,$el:t=>t.__$el||(t.__$el={}),$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>qo(t.parent),$root:t=>qo(t.root),$emit:t=>t.emit,$options:t=>Xo(t),$forceUpdate:t=>t.f||(t.f=()=>{t.effect.dirty=!0,oo(t.update)}),$watch:t=>wo.bind(t)}),zo=(t,n)=>t!==e&&!t.__isScriptSetup&&a(t,n),Ko={get({_:t},n){const{ctx:r,setupState:o,data:i,props:s,accessCache:u,type:c,appContext:f}=t;let l;if("$"!==n[0]){const c=u[n];if(void 0!==c)switch(c){case 1:return o[n];case 2:return i[n];case 4:return r[n];case 3:return s[n]}else{if(zo(o,n))return u[n]=1,o[n];if(i!==e&&a(i,n))return u[n]=2,i[n];if((l=t.propsOptions[0])&&a(l,n))return u[n]=3,s[n];if(r!==e&&a(r,n))return u[n]=4,r[n];Zo&&(u[n]=0)}}const h=Ho[n];let p,d;return h?("$attrs"===n&&Ln(t,0,n),h(t)):(p=c.__cssModules)&&(p=p[n])?p:r!==e&&a(r,n)?(u[n]=4,r[n]):(d=f.config.globalProperties,a(d,n)?d[n]:void 0)},set({_:t},n,r){const{data:o,setupState:i,ctx:s}=t;return zo(i,n)?(i[n]=r,!0):o!==e&&a(o,n)?(o[n]=r,!0):!a(t.props,n)&&(("$"!==n[0]||!(n.slice(1)in t))&&(s[n]=r,!0))},has({_:{data:t,setupState:n,accessCache:r,ctx:o,appContext:i,propsOptions:s}},u){let c;return!!r[u]||t!==e&&a(t,u)||zo(n,u)||(c=s[0])&&a(c,u)||a(o,u)||a(Ho,u)||a(i.config.globalProperties,u)},defineProperty(t,e,n){return null!=n.get?t._.accessCache[e]=0:a(n,"value")&&this.set(t,e,n.value,null),Reflect.defineProperty(t,e,n)}};function Wo(t){return l(t)?t.reduce(((t,e)=>(t[e]=null,t)),{}):t}let Zo=!0;function Yo(t){const e=Xo(t),n=t.proxy,o=t.ctx;Zo=!1,e.beforeCreate&&Go(e.beforeCreate,t,"bc");const{data:i,computed:s,methods:u,watch:c,provide:f,inject:a,created:h,beforeMount:p,mounted:g,beforeUpdate:y,updated:v,activated:b,deactivated:w,beforeDestroy:_,beforeUnmount:x,destroyed:E,unmounted:B,render:S,renderTracked:A,renderTriggered:I,errorCaptured:T,serverPrefetch:O,expose:$,inheritAttrs:F,components:P,directives:R,filters:C}=e;if(a&&function(t,e){l(t)&&(t=ni(t));for(const n in t){const r=t[n];let o;o=m(r)?"default"in r?Ao(r.from||n,r.default,!0):Ao(r.from||n):Ao(r),Mr(o)?Object.defineProperty(e,n,{enumerable:!0,configurable:!0,get:()=>o.value,set:t=>o.value=t}):e[n]=o}}(a,o),u)for(const r in u){const t=u[r];d(t)&&(o[r]=t.bind(n))}if(i){const e=i.call(n,n);m(e)&&(t.data=Br(e))}if(Zo=!0,s)for(const l in s){const t=s[l],e=d(t)?t.bind(n,n):d(t.get)?t.get.bind(n,n):r,i=!d(t)&&d(t.set)?t.set.bind(n):r,u=Ti({get:e,set:i});Object.defineProperty(o,l,{enumerable:!0,configurable:!0,get:()=>u.value,set:t=>u.value=t})}if(c)for(const r in c)Jo(c[r],o,n,r);function k(t,e){l(e)?e.forEach((e=>t(e.bind(n)))):e&&t(e.bind(n))}if(function(){if(f){const t=d(f)?f.call(n):f;Reflect.ownKeys(t).forEach((e=>{!function(t,e){if(wi){let n=wi.provides;const r=wi.parent&&wi.parent.provides;r===n&&(n=wi.provides=Object.create(r)),n[t]=e,"app"===wi.type.mpType&&wi.appContext.app.provide(t,e)}}(e,t[e])}))}}(),h&&Go(h,t,"c"),k(Ro,p),k(Co,g),k(ko,y),k(Do,v),k(Io,b),k(To,w),k(Vo,T),k(No,A),k(Uo,I),k(Mo,x),k(jo,B),k(Lo,O),l($))if($.length){const e=t.exposed||(t.exposed={});$.forEach((t=>{Object.defineProperty(e,t,{get:()=>n[t],set:e=>n[t]=e})}))}else t.exposed||(t.exposed={});S&&t.render===r&&(t.render=S),null!=F&&(t.inheritAttrs=F),P&&(t.components=P),R&&(t.directives=R),t.ctx.$onApplyOptions&&t.ctx.$onApplyOptions(e,t,n)}function Go(t,e,n){Kr(l(t)?t.map((t=>t.bind(e.proxy))):t.bind(e.proxy),e,n)}function Jo(t,e,n,r){const o=r.includes(".")?_o(n,r):()=>n[r];if(g(t)){const n=e[t];d(n)&&vo(o,n)}else if(d(t))vo(o,t.bind(n));else if(m(t))if(l(t))t.forEach((t=>Jo(t,e,n,r)));else{const r=d(t.handler)?t.handler.bind(n):e[t.handler];d(r)&&vo(o,r,t)}}function Xo(t){const e=t.type,{mixins:n,extends:r}=e,{mixins:o,optionsCache:i,config:{optionMergeStrategies:s}}=t.appContext,u=i.get(e);let c;return u?c=u:o.length||n||r?(c={},o.length&&o.forEach((t=>Qo(c,t,s,!0))),Qo(c,e,s)):c=e,m(e)&&i.set(e,c),c}function Qo(t,e,n,r=!1){const{mixins:o,extends:i}=e;i&&Qo(t,i,n,!0),o&&o.forEach((e=>Qo(t,e,n,!0)));for(const s in e)if(r&&"expose"===s);else{const r=ti[s]||n&&n[s];t[s]=r?r(t[s],e[s]):e[s]}return t}const ti={data:ei,props:ii,emits:ii,methods:oi,computed:oi,beforeCreate:ri,created:ri,beforeMount:ri,mounted:ri,beforeUpdate:ri,updated:ri,beforeDestroy:ri,beforeUnmount:ri,destroyed:ri,unmounted:ri,activated:ri,deactivated:ri,errorCaptured:ri,serverPrefetch:ri,components:oi,directives:oi,watch:function(t,e){if(!t)return e;if(!e)return t;const n=u(Object.create(null),t);for(const r in e)n[r]=ri(t[r],e[r]);return n},provide:ei,inject:function(t,e){return oi(ni(t),ni(e))}};function ei(t,e){return e?t?function(){return u(d(t)?t.call(this,this):t,d(e)?e.call(this,this):e)}:e:t}function ni(t){if(l(t)){const e={};for(let n=0;n<t.length;n++)e[t[n]]=t[n];return e}return t}function ri(t,e){return t?[...new Set([].concat(t,e))]:e}function oi(t,e){return t?u(Object.create(null),t,e):e}function ii(t,e){return t?l(t)&&l(e)?[...new Set([...t,...e])]:u(Object.create(null),Wo(t),Wo(null!=e?e:{})):e}function si(t,e,n,r=!1){const o={},i={};t.propsDefaults=Object.create(null),ui(t,e,o,i);for(const s in t.propsOptions[0])s in o||(o[s]=void 0);n?t.props=r?o:Ar(o,!1,Jn,mr,wr):t.type.props?t.props=o:t.props=i,t.attrs=i}function ui(t,n,r,o){const[i,s]=t.propsOptions;let u,c=!1;if(n)for(let e in n){if(E(e))continue;const f=n[e];let l;i&&a(i,l=A(e))?s&&s.includes(l)?(u||(u={}))[l]=f:r[l]=f:po(t.emitsOptions,e)||e in o&&f===o[e]||(o[e]=f,c=!0)}if(s){const n=$r(r),o=u||e;for(let e=0;e<s.length;e++){const u=s[e];r[u]=ci(i,n,u,o[u],t,!a(o,u))}}return c}function ci(t,e,n,r,o,i){const s=t[n];if(null!=s){const t=a(s,"default");if(t&&void 0===r){const t=s.default;if(s.type!==Function&&!s.skipFactory&&d(t)){const{propsDefaults:i}=o;if(n in i)r=i[n];else{const s=_i(o);r=i[n]=t.call(null,e),s()}}else r=t}s[0]&&(i&&!t?r=!1:!s[1]||""!==r&&r!==T(n)||(r=!0))}return r}function fi(t,r,o=!1){const i=r.propsCache,s=i.get(t);if(s)return s;const c=t.props,f={},h=[];let p=!1;if(!d(t)){const e=t=>{p=!0;const[e,n]=fi(t,r,!0);u(f,e),n&&h.push(...n)};!o&&r.mixins.length&&r.mixins.forEach(e),t.extends&&e(t.extends),t.mixins&&t.mixins.forEach(e)}if(!c&&!p)return m(t)&&i.set(t,n),n;if(l(c))for(let n=0;n<c.length;n++){const t=A(c[n]);ai(t)&&(f[t]=e)}else if(c)for(const e in c){const t=A(e);if(ai(t)){const n=c[e],r=f[t]=l(n)||d(n)?{type:n}:u({},n);if(r){const e=pi(Boolean,r.type),n=pi(String,r.type);r[0]=e>-1,r[1]=n<0||e<n,(e>-1||a(r,"default"))&&h.push(t)}}}const g=[f,h];return m(t)&&i.set(t,g),g}function ai(t){return"$"!==t[0]&&!E(t)}function li(t){if(null===t)return"null";if("function"==typeof t)return t.name||"";if("object"==typeof t){return t.constructor&&t.constructor.name||""}return""}function hi(t,e){return li(t)===li(e)}function pi(t,e){return l(e)?e.findIndex((e=>hi(e,t))):d(e)&&hi(e,t)?0:-1}const di=so,gi=Eo();let yi=0;function mi(t,n,r){const o=t.type,i=(n?n.appContext:t.appContext)||gi,s={uid:yi++,vnode:t,type:o,parent:n,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,scope:new vn(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:n?n.provides:Object.create(i.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:fi(o,i),emitsOptions:ho(o,i),emit:null,emitted:null,propsDefaults:e,inheritAttrs:o.inheritAttrs,ctx:e,data:e,props:e,attrs:e,slots:e,refs:e,setupState:e,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:r,suspenseId:r?r.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null,$uniElements:new Map,$templateUniElementRefs:[],$templateUniElementStyles:{},$eS:{}};return s.ctx={_:s},s.root=n?n.root:s,s.emit=lo.bind(null,s),t.ce&&t.ce(s),s}let vi,bi,wi=null;vi=t=>{wi=t},bi=t=>{Bi=t};const _i=t=>{const e=wi;return vi(t),t.scope.on(),()=>{t.scope.off(),vi(e)}},xi=()=>{wi&&wi.scope.off(),vi(null)};function Ei(t){return 4&t.vnode.shapeFlag}let Bi=!1;function Si(t,e=!1){e&&bi(e);const{props:n}=t.vnode,r=Ei(t);si(t,n,r,e);const o=r?function(t){const e=t.type;t.accessCache=Object.create(null),t.proxy=Fr(new Proxy(t.ctx,Ko));const{setup:n}=e;if(n){const e=t.setupContext=n.length>1?function(t){const e=e=>{t.exposed=e||{}};return{get attrs(){return function(t){return t.attrsProxy||(t.attrsProxy=new Proxy(t.attrs,{get:(e,n)=>(Ln(t,0,"$attrs"),e[n])}))}(t)},slots:t.slots,emit:t.emit,expose:e}}(t):null,r=_i(t);Tn();const o=zr(n,t,0,[t.props,e]);On(),r(),v(o)?o.then(xi,xi):function(t,e){d(e)?t.render=e:m(e)&&(t.setupState=Vr(e));Ai(t)}(t,o)}else Ai(t)}(t):void 0;return e&&bi(!1),o}function Ai(t,e,n){const o=t.type;t.render||(t.render=o.render||r);{const e=_i(t);Tn();try{Yo(t)}finally{On(),e()}}}function Ii(t){if(t.exposed)return t.exposeProxy||(t.exposeProxy=new Proxy(Vr(Fr(t.exposed)),{get:(e,n)=>n in e?e[n]:t.proxy[n],has:(t,e)=>e in t||e in Ho}))}const Ti=(t,e)=>{const n=function(t,e,n=!1){let o,i;const s=d(t);return s?(o=t,i=r):(o=t.get,i=t.set),new Cr(o,i,s||!i,n)}(t,0,Bi);return n},Oi="3.4.21";function $i(t){return Ur(t)}const Fi="[object Array]",Pi="[object Object]";function Ri(t,e){const n={};return Ci(t,e),ki(t,e,"",n),n}function Ci(t,e){if((t=$i(t))===e)return;const n=w(t),r=w(e);if(n==Pi&&r==Pi)for(let o in e){const n=t[o];void 0===n?t[o]=null:Ci(n,e[o])}else n==Fi&&r==Fi&&t.length>=e.length&&e.forEach(((e,n)=>{Ci(t[n],e)}))}function ki(t,e,n,r){if((t=$i(t))===e)return;const o=w(t),i=w(e);if(o==Pi)if(i!=Pi||Object.keys(t).length<Object.keys(e).length)Di(r,n,t);else for(let s in t){const o=$i(t[s]),i=e[s],u=w(o),c=w(i);if(u!=Fi&&u!=Pi)o!=i&&Di(r,(""==n?"":n+".")+s,o);else if(u==Fi)c!=Fi||o.length<i.length?Di(r,(""==n?"":n+".")+s,o):o.forEach(((t,e)=>{ki(t,i[e],(""==n?"":n+".")+s+"["+e+"]",r)}));else if(u==Pi)if(c!=Pi||Object.keys(o).length<Object.keys(i).length)Di(r,(""==n?"":n+".")+s,o);else for(let t in o)ki(o[t],i[t],(""==n?"":n+".")+s+"."+t,r)}else o==Fi?i!=Fi||t.length<e.length?Di(r,n,t):t.forEach(((t,o)=>{ki(t,e[o],n+"["+o+"]",r)})):Di(r,n,t)}function Di(t,e,n){t[e]=n}function Mi(t){const e=t.ctx.__next_tick_callbacks;if(e&&e.length){const t=e.slice(0);e.length=0;for(let e=0;e<t.length;e++)t[e]()}}function ji(t,e){const n=t.ctx;if(!n.__next_tick_pending&&!function(t){return Gr.includes(t.update)}(t))return ro(e&&e.bind(t.proxy));let r;return n.__next_tick_callbacks||(n.__next_tick_callbacks=[]),n.__next_tick_callbacks.push((()=>{e?zr(e.bind(t.proxy),t,14):r&&r(t.proxy)})),new Promise((t=>{r=t}))}function Li(t,e){const n=typeof(t=$i(t));if("object"===n&&null!==t){let n=e.get(t);if(void 0!==n)return n;if(l(t)){const r=t.length;n=new Array(r),e.set(t,n);for(let o=0;o<r;o++)n[o]=Li(t[o],e)}else{n={},e.set(t,n);for(const r in t)a(t,r)&&(n[r]=Li(t[r],e))}return n}if("symbol"!==n)return t}function Ui(t){return Li(t,"undefined"!=typeof WeakMap?new WeakMap:new Map)}function Ni(t,e,n){if(!e)return;(e=Ui(e)).$eS=t.$eS||{};const r=t.ctx,o=r.mpType;if("page"===o||"component"===o){e.r0=1;const n=r.$scope,o=Ri(e,function(t,e){const n=t.data,r=Object.create(null);return e.forEach((t=>{r[t]=n[t]})),r}(n,Object.keys(e)));Object.keys(o).length?(r.__next_tick_pending=!0,n.setData(o,(()=>{r.__next_tick_pending=!1,Mi(t)})),uo()):Mi(t)}}function Vi(t,e,n){e.appContext.config.globalProperties.$applyOptions(t,e,n);const r=t.computed;if(r){const t=Object.keys(r);if(t.length){const n=e.ctx;n.$computedKeys||(n.$computedKeys=[]),n.$computedKeys.push(...t)}}delete e.ctx.$onApplyOptions}function qi(t,e=!1){const{setupState:n,$templateRefs:r,$templateUniElementRefs:o,ctx:{$scope:i,$mpPlatform:s}}=t;if("mp-alipay"===s)return;if(!i||!r&&!o)return;if(e)return r&&r.forEach((t=>Hi(t,null,n))),void(o&&o.forEach((t=>Hi(t,null,n))));const u="mp-baidu"===s||"mp-toutiao"===s,c=t=>{if(0===t.length)return[];const e=(i.selectAllComponents(".r")||[]).concat(i.selectAllComponents(".r-i-f")||[]);return t.filter((t=>{const r=function(t,e){const n=t.find((t=>t&&(t.properties||t.props).uI===e));if(n){const t=n.$vm;return t?Ii(t.$)||t:function(t){m(t)&&Fr(t);return t}(n)}return null}(e,t.i);return!(!u||null!==r)||(Hi(t,r,n),!1)}))},f=()=>{if(r){const e=c(r);e.length&&t.proxy&&t.proxy.$scope&&t.proxy.$scope.setData({r1:1},(()=>{c(e)}))}};o&&o.length&&ji(t,(()=>{o.forEach((t=>{l(t.v)?t.v.forEach((e=>{Hi(t,e,n)})):Hi(t,t.v,n)}))})),i._$setRef?i._$setRef(f):ji(t,f)}function Hi({r:t,f:e},n,r){if(d(t))t(n,{});else{const o=g(t),i=Mr(t);if(o||i)if(e){if(!i)return;l(t.value)||(t.value=[]);const e=t.value;if(-1===e.indexOf(n)){if(e.push(n),!n)return;n.$&&Mo((()=>c(e,n)),n.$)}}else o?a(r,t)&&(r[t]=n):Mr(t)&&(t.value=n)}}const zi=so;function Ki(t,e){const n=t.component=mi(t,e.parentComponent,null);return n.ctx.$onApplyOptions=Vi,n.ctx.$children=[],"app"===e.mpType&&(n.render=r),e.onBeforeSetup&&e.onBeforeSetup(n,e),Si(n),e.parentComponent&&n.proxy&&e.parentComponent.ctx.$children.push(Ii(n)||n.proxy),function(t){const e=Ji.bind(t);t.$updateScopedSlots=()=>ro((()=>oo(e)));const n=()=>{if(t.isMounted){const{next:e,bu:n,u:r}=t;Xi(t,!1),Gi(),n&&P(n),Xi(t,!0),Ni(t,Zi(t)),r&&zi(r)}else Mo((()=>{qi(t,!0)}),t),Ni(t,Zi(t))},o=t.effect=new _n(n,r,(()=>oo(i)),t.scope),i=t.update=()=>{o.dirty&&o.run()};i.id=t.uid,Xi(t,!0),i()}(n),n.proxy}const Wi=t=>{let e;for(const n in t)("class"===n||"style"===n||i(n))&&((e||(e={}))[n]=t[n]);return e};function Zi(t){const{type:e,vnode:n,proxy:r,withProxy:o,props:i,propsOptions:[s],slots:u,attrs:c,emit:f,render:a,renderCache:l,data:h,setupState:p,ctx:d,uid:g,appContext:{app:{config:{globalProperties:{pruneComponentPropsCache:y}}}},inheritAttrs:m}=t;let v;t.$uniElementIds=new Map,t.$templateRefs=[],t.$templateUniElementRefs=[],t.$templateUniElementStyles={},t.$ei=0,y(g),t.__counter=0===t.__counter?1:0;const b=yo(t);try{if(4&n.shapeFlag){Yi(m,i,s,c);const t=o||r;v=a.call(t,t,l,i,p,h,d)}else{Yi(m,i,s,e.props?c:Wi(c));const t=e;v=t.length>1?t(i,{attrs:c,slots:u,emit:f}):t(i,null)}}catch(w){Wr(w,t,1),v=!1}return qi(t),yo(b),v}function Yi(t,e,n,r){if(e&&r&&!1!==t){const t=Object.keys(r).filter((t=>"class"!==t&&"style"!==t));if(!t.length)return;n&&t.some(s)?t.forEach((t=>{s(t)&&t.slice(9)in n||(e[t]=r[t])})):t.forEach((t=>e[t]=r[t]))}}const Gi=t=>{Tn(),uo(),On()};function Ji(){const t=this.$scopedSlotsData;if(!t||0===t.length)return;const e=this.ctx.$scope,n=e.data,r=Object.create(null);t.forEach((({path:t,index:e,data:o})=>{const i=lt(n,t),s=g(e)?`${t}.${e}`:`${t}[${e}]`;if(void 0===i||void 0===i[e])r[s]=o;else{const t=Ri(o,i[e]);Object.keys(t).forEach((e=>{r[s+"."+e]=t[e]}))}})),t.length=0,Object.keys(r).length&&e.setData(r)}function Xi({effect:t,update:e},n){t.allowRecurse=e.allowRecurse=n}const Qi=function(t,e=null){d(t)||(t=u({},t)),null==e||m(e)||(e=null);const n=Eo(),r=new WeakSet,o=n.app={_uid:Bo++,_component:t,_props:e,_container:null,_context:n,_instance:null,version:Oi,get config(){return n.config},set config(t){},use:(t,...e)=>(r.has(t)||(t&&d(t.install)?(r.add(t),t.install(o,...e)):d(t)&&(r.add(t),t(o,...e))),o),mixin:t=>(n.mixins.includes(t)||n.mixins.push(t),o),component:(t,e)=>e?(n.components[t]=e,o):n.components[t],directive:(t,e)=>e?(n.directives[t]=e,o):n.directives[t],mount(){},unmount(){},provide:(t,e)=>(n.provides[t]=e,o),runWithContext(t){const e=So;So=o;try{return t()}finally{So=e}}};return o};function ts(t,e=null){("undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof my?my:void 0).__VUE__=!0;const n=Qi(t,e),o=n._context;o.config.globalProperties.$nextTick=function(t){return ji(this.$,t)};const i=t=>(t.appContext=o,t.shapeFlag=6,t),s=function(t,e){return Ki(i(t),e)},u=function(t){return t&&function(t){const{bum:e,scope:n,update:r,um:o}=t;e&&P(e);{const e=t.parent;if(e){const n=e.ctx.$children,r=Ii(t)||t.proxy,o=n.indexOf(r);o>-1&&n.splice(o,1)}}n.stop(),r&&(r.active=!1),o&&zi(o),zi((()=>{t.isUnmounted=!0}))}(t.$)};return n.mount=function(){t.render=r;const e=Ki(i({type:t}),{mpType:"app",mpInstance:null,parentComponent:null,slots:[],props:null});return n._instance=e.$,e.$app=n,e.$createComponent=s,e.$destroyComponent=u,o.$appInstance=e,e},n.unmount=function(){},n}function es(t,e,n,r){d(e)&&Fo(t,e.bind(n),r)}function ns(t,e,n){!function(t,e,n){const r=t.mpType||n.$mpType;r&&"component"!==r&&Object.keys(t).forEach((r=>{if(bt(r,t[r],!1)){const o=t[r];l(o)?o.forEach((t=>es(r,t,n,e))):es(r,o,n,e)}}))}(t,e,n)}function rs(t,e,n){return t[e]=n}function os(t,...e){const n=this[t];return n?n(...e):(console.error(`method ${t} not found`),null)}function is(t){return function(e,n,r){if(!n)throw e;const o=t._instance;if(!o||!o.proxy)throw e;o.proxy.$callHook(U,e)}}function ss(t,e){return t?[...new Set([].concat(t,e))]:e}let us;const cs="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",fs=/^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;function as(){const t=gn.getStorageSync("uni_id_token")||"",e=t.split(".");if(!t||3!==e.length)return{uid:null,role:[],permission:[],tokenExpired:0};let n;try{n=JSON.parse((r=e[1],decodeURIComponent(us(r).split("").map((function(t){return"%"+("00"+t.charCodeAt(0).toString(16)).slice(-2)})).join(""))))}catch(o){throw new Error("获取当前用户信息出错,详细错误信息为:"+o.message)}var r;return n.tokenExpired=1e3*n.exp,delete n.exp,delete n.iat,n}function ls(t){const e=t._context.config;var n;e.errorHandler=xt(t,is),n=e.optionMergeStrategies,mt.forEach((t=>{n[t]=ss}));const r=e.globalProperties;!function(t){t.uniIDHasRole=function(t){const{role:e}=as();return e.indexOf(t)>-1},t.uniIDHasPermission=function(t){const{permission:e}=as();return this.uniIDHasRole("admin")||e.indexOf(t)>-1},t.uniIDTokenValid=function(){const{tokenExpired:t}=as();return t>Date.now()}}(r),r.$set=rs,r.$applyOptions=ns,r.$callMethod=os,gn.invokeCreateVueAppHook(t)}us="function"!=typeof atob?function(t){if(t=String(t).replace(/[\t\n\f\r ]+/g,""),!fs.test(t))throw new Error("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");var e;t+="==".slice(2-(3&t.length));for(var n,r,o="",i=0;i<t.length;)e=cs.indexOf(t.charAt(i++))<<18|cs.indexOf(t.charAt(i++))<<12|(n=cs.indexOf(t.charAt(i++)))<<6|(r=cs.indexOf(t.charAt(i++))),o+=64===n?String.fromCharCode(e>>16&255):64===r?String.fromCharCode(e>>16&255,e>>8&255):String.fromCharCode(e>>16&255,e>>8&255,255&e);return o}:atob;const hs=Object.create(null);function ps(t){delete hs[t]}function ds(t){if(!t)return;const[e,n]=t.split(",");return hs[e]?hs[e][parseInt(n)]:void 0}var gs={install(t){ls(t),t.config.globalProperties.pruneComponentPropsCache=ps;const e=t.mount;t.mount=function(n){const r=e.call(t,n),o=function(){const t="createPluginApp";if("undefined"!=typeof global&&void 0!==global[t])return global[t];if("undefined"!=typeof my)return my[t]}();return o?o(r):"undefined"!=typeof createMiniProgramApp&&createMiniProgramApp(r),r}}};const ys=function(t,e=null){return t&&(t.mpType="app"),ts(t,e).use(gs)};const ms=["externalClasses"];const vs=/_(.*)_worklet_factory_/;function bs(t,e){const n=t.$children;for(let o=n.length-1;o>=0;o--){const t=n[o];if(t.$scope._$vueId===e)return t}let r;for(let o=n.length-1;o>=0;o--)if(r=bs(n[o],e),r)return r}const ws=["createSelectorQuery","createIntersectionObserver","selectAllComponents","selectComponent"];function _s(t,e){const n=t.ctx;n.mpType=e.mpType,n.$mpType=e.mpType,n.$mpPlatform="mp-weixin",n.$scope=e.mpInstance,n.$mp={},n._self={},t.slots={},l(e.slots)&&e.slots.length&&(e.slots.forEach((e=>{t.slots[e]=!0})),t.slots.d&&(t.slots.default=!0)),n.getOpenerEventChannel=function(){return e.mpInstance.getOpenerEventChannel()},n.$hasHook=xs,n.$callHook=Es,t.emit=function(t,e){return function(n,...r){const o=e.$scope;if(o&&n){const t={__args__:r};o.triggerEvent(n,t)}return t.apply(this,[n,...r])}}(t.emit,n)}function xs(t){const e=this.$[t];return!(!e||!e.length)}function Es(t,e){"mounted"===t&&(Es.call(this,"bm"),this.$.isMounted=!0,t="m");const n=this.$[t];return n&&((t,e)=>{let n;for(let r=0;r<t.length;r++)n=t[r](e);return n})(n,e)}const Bs=[H,M,j,K,Y,X,Q,tt,rt];function Ss(t,e=new Set){if(t){Object.keys(t).forEach((n=>{bt(n,t[n])&&e.add(n)}));{const{extends:n,mixins:r}=t;r&&r.forEach((t=>Ss(t,e))),n&&Ss(n,e)}}return e}function As(t,e,n){-1!==n.indexOf(e)||a(t,e)||(t[e]=function(t){return this.$vm&&this.$vm.$callHook(e,t)})}const Is=[z];function Ts(t,e,n=Is){e.forEach((e=>As(t,e,n)))}function Os(t,e,n=Is){Ss(e).forEach((e=>As(t,e,n)))}const $s=at((()=>{const t=[],e=d(getApp)&&getApp({allowDefault:!0});if(e&&e.$vm&&e.$vm.$){const n=e.$vm.$.appContext.mixins;if(l(n)){const e=Object.keys(vt);n.forEach((n=>{e.forEach((e=>{a(n,e)&&!t.includes(e)&&t.push(e)}))}))}}return t}));const Fs=[M,j,U,N,V,q];function Ps(t,e){const n=t.$,r={globalData:t.$options&&t.$options.globalData||{},$vm:t,onLaunch(e){this.$vm=t;const r=n.ctx;this.$vm&&r.$scope&&r.$callHook||(_s(n,{mpType:"app",mpInstance:this,slots:[]}),r.globalData=this.globalData,t.$callHook(L,e))}},{onError:o}=n;o&&(n.appContext.config.errorHandler=e=>{t.$callHook(U,e)}),function(t){const e=jr(Tt(wx.getSystemInfoSync().language)||It);Object.defineProperty(t,"$locale",{get:()=>e.value,set(t){e.value=t}})}(t);const i=t.$.type;Ts(r,Fs),Os(r,i);{const t=i.methods;t&&u(r,t)}return r}function Rs(t,e){if(d(t.onLaunch)){const e=wx.getLaunchOptionsSync&&wx.getLaunchOptionsSync();t.onLaunch(e)}d(t.onShow)&&wx.onAppShow&&wx.onAppShow((t=>{e.$callHook("onShow",t)})),d(t.onHide)&&wx.onAppHide&&wx.onAppHide((t=>{e.$callHook("onHide",t)}))}const Cs=["eO","uR","uRIF","uI","uT","uP","uS"];function ks(t){t.properties||(t.properties={}),u(t.properties,function(t,e=!1){const n={};if(!e){let t=function(t){const e=Object.create(null);t&&t.forEach((t=>{e[t]=!0})),this.setData({$slots:e})};Cs.forEach((t=>{n[t]={type:null,value:""}})),n.uS={type:null,value:[]},n.uS.observer=t}return t.behaviors&&t.behaviors.includes("wx://form-field")&&(t.properties&&t.properties.name||(n.name={type:null,value:""}),t.properties&&t.properties.value||(n.value={type:null,value:""})),n}(t),function(t){const e={};return t&&t.virtualHost&&(e.virtualHostStyle={type:null,value:""},e.virtualHostClass={type:null,value:""}),e}(t.options))}const Ds=[String,Number,Boolean,Object,Array,null];function Ms(t,e){const n=function(t){return l(t)&&1===t.length?t[0]:t}(t);return-1!==Ds.indexOf(n)?n:null}function js(t,e){return(e?function(t){const e={};_(t)&&Object.keys(t).forEach((n=>{-1===Cs.indexOf(n)&&(e[n]=t[n])}));return e}(t):ds(t.uP))||{}}function Ls(t){const e=function(){const t=this.properties.uP;t&&(this.$vm?function(t,e){const n=$r(e.props),r=ds(t)||{};Us(n,r)&&(!function(t,e,n){const{props:r,attrs:o,vnode:{patchFlag:i}}=t,s=$r(r),[u]=t.propsOptions;let c=!1;if(i>0&&!(16&i)){if(8&i){const n=t.vnode.dynamicProps;for(let i=0;i<n.length;i++){let f=n[i];if(po(t.emitsOptions,f))continue;const l=e[f];if(u)if(a(o,f))l!==o[f]&&(o[f]=l,c=!0);else{const e=A(f);r[e]=ci(u,s,e,l,t,!1)}else l!==o[f]&&(o[f]=l,c=!0)}}}else{let i;ui(t,e,r,o)&&(c=!0);for(const o in s)e&&(a(e,o)||(i=T(o))!==o&&a(e,i))||(u?!n||void 0===n[o]&&void 0===n[i]||(r[o]=ci(u,s,o,void 0,t,!0)):delete r[o]);if(o!==s)for(const t in o)e&&a(e,t)||(delete o[t],c=!0)}c&&Un(t,"set","$attrs")}(e,r,n),o=e.update,Gr.indexOf(o)>-1&&function(t){const e=Gr.indexOf(t);e>Jr&&Gr.splice(e,1)}(e.update),e.update());var o}(t,this.$vm.$):"m"===this.properties.uT&&function(t,e){const n=e.properties,r=ds(t)||{};Us(n,r,!1)&&e.setData(r)}(t,this))};t.observers||(t.observers={}),t.observers.uP=e}function Us(t,e,n=!0){const r=Object.keys(e);if(n&&r.length!==Object.keys(t).length)return!0;for(let o=0;o<r.length;o++){const n=r[o];if(e[n]!==t[n])return!0}return!1}function Ns(t,e){t.data={},t.behaviors=function(t){const e=t.behaviors;let n=t.props;n||(t.props=n=[]);const r=[];return l(e)&&e.forEach((t=>{r.push(t.replace("uni://","wx://")),"uni://form-field"===t&&(l(n)?(n.push("name"),n.push("modelValue")):(n.name={type:String,default:""},n.modelValue={type:[String,Number,Boolean,Array,Object,Date],default:""}))})),r}(e)}function Vs(t,{parse:e,mocks:n,isPage:r,initRelation:o,handleLink:i,initLifetimes:s}){t=t.default||t;const c={multipleSlots:!0,addGlobalClass:!0,pureDataPattern:/^uP$/};l(t.mixins)&&t.mixins.forEach((t=>{m(t.options)&&u(c,t.options)})),t.options&&u(c,t.options);const f={options:c,lifetimes:s({mocks:n,isPage:r,initRelation:o,vueOptions:t}),pageLifetimes:{show(){this.$vm&&this.$vm.$callHook("onPageShow")},hide(){this.$vm&&this.$vm.$callHook("onPageHide")},resize(t){this.$vm&&this.$vm.$callHook("onPageResize",t)}},methods:{__l:i}};var h,p,d,g;return Ns(f,t),ks(f),Ls(f),function(t,e){ms.forEach((n=>{a(e,n)&&(t[n]=e[n])}))}(f,t),h=f.methods,p=t.wxsCallMethods,l(p)&&p.forEach((t=>{h[t]=function(e){return this.$vm[t](e)}})),d=f.methods,(g=t.methods)&&Object.keys(g).forEach((t=>{const e=t.match(vs);if(e){const n=e[1];d[t]=g[t],d[n]=g[n]}})),e&&e(f,{handleLink:i}),f}let qs,Hs;function zs(){return wx.$vm}function Ks(t,e){const{parse:n,mocks:r,isPage:o,initRelation:i,handleLink:s,initLifetimes:u}=e,c=Vs(t,{mocks:r,isPage:o,initRelation:i,handleLink:s,initLifetimes:u});!function({properties:t},e){l(e)?e.forEach((e=>{t[e]={type:String,value:""}})):_(e)&&Object.keys(e).forEach((n=>{const r=e[n];if(_(r)){let e=r.default;d(e)&&(e=e());const o=r.type;r.type=Ms(o),t[n]={type:r.type,value:e}}else t[n]={type:Ms(r)}}))}(c,(t.default||t).props);const f=c.methods;return f.onLoad=function(t){var e;return this.options=t,this.$page={fullPath:(e=this.route+gt(t),function(t){return 0===t.indexOf("/")}(e)?e:"/"+e)},this.$vm&&this.$vm.$callHook(H,t)},Ts(f,Bs),Os(f,t),function(t,e){if(!e)return;Object.keys(vt).forEach((n=>{e&vt[n]&&As(t,n,[])}))}(f,t.__runtimeHooks),Ts(f,$s()),n&&n(c,{handleLink:s}),c}const Ws=Page,Zs=Component;function Ys(t){const e=t.triggerEvent,n=function(n,...r){return e.apply(t,[(o=n,A(o.replace(pt,"-"))),...r]);var o};try{t.triggerEvent=n}catch(r){t._triggerEvent=n}}function Gs(t,e,n){const r=e[t];e[t]=r?function(...t){return Ys(this),r.apply(this,t)}:function(){Ys(this)}}Page=function(t){return Gs(H,t),Ws(t)},Component=function(t){Gs("created",t);return t.properties&&t.properties.uP||(ks(t),Ls(t)),Zs(t)};var Js=Object.freeze({__proto__:null,handleLink:function(t){const e=t.detail||t.value,n=e.vuePid;let r;n&&(r=bs(this.$vm,n)),r||(r=this.$vm),e.parent=r},initLifetimes:function({mocks:t,isPage:e,initRelation:n,vueOptions:r}){return{attached(){let o=this.properties;!function(t,e){if(!t)return;const n=t.split(","),r=n.length;1===r?e._$vueId=n[0]:2===r&&(e._$vueId=n[0],e._$vuePid=n[1])}(o.uI,this);const i={vuePid:this._$vuePid};n(this,i);const s=this,u=e(s);let c=o;this.$vm=function(t,e){qs||(qs=zs().$createComponent);const n=qs(t,e);return Ii(n.$)||n}({type:r,props:js(c,u)},{mpType:u?"page":"component",mpInstance:s,slots:o.uS||{},parentComponent:i.parent&&i.parent.$,onBeforeSetup(e,n){!function(t,e){Object.defineProperty(t,"refs",{get(){const t={};return function(t,e,n){t.selectAllComponents(e).forEach((t=>{const e=t.properties.uR;n[e]=t.$vm||t}))}(e,".r",t),e.selectAllComponents(".r-i-f").forEach((e=>{const n=e.properties.uR;n&&(t[n]||(t[n]=[]),t[n].push(e.$vm||e))})),t}})}(e,s),function(t,e,n){const r=t.ctx;n.forEach((n=>{a(e,n)&&(t[n]=r[n]=e[n])}))}(e,s,t),function(t,e){_s(t,e);const n=t.ctx;ws.forEach((t=>{n[t]=function(...e){const r=n.$scope;if(r&&r[t])return r[t].apply(r,e)}}))}(e,n)}}),u||function(t){const e=t.$options;l(e.behaviors)&&e.behaviors.includes("uni://form-field")&&t.$watch("modelValue",(()=>{t.$scope&&t.$scope.setData({name:t.name,value:t.modelValue})}),{immediate:!0})}(this.$vm)},ready(){this.$vm&&(this.$vm.$callHook("mounted"),this.$vm.$callHook(z))},detached(){var t;this.$vm&&(ps(this.$vm.$.uid),t=this.$vm,Hs||(Hs=zs().$destroyComponent),Hs(t))}}},initRelation:function(t,e){t.triggerEvent("__l",e)},isPage:function(t){return!!t.route},mocks:["__route__","__wxExparserNodeId__","__wxWebviewId__"]});const Xs=function(t){return App(Ps(t))},Qs=(tu=Js,function(t){return Component(Ks(t,tu))});var tu;const eu=function(t){return function(e){return Component(Vs(e,t))}}(Js),nu=function(t){Rs(Ps(t),t),wx.$vm=t},ru=function(t){const e=Ps(t),n=d(getApp)&&getApp({allowDefault:!0});if(!n)return;t.$.ctx.$scope=n;const r=n.globalData;r&&Object.keys(e.globalData).forEach((t=>{a(r,t)||(r[t]=e.globalData[t])})),Object.keys(e).forEach((t=>{a(n,t)||(n[t]=e[t])})),Rs(e,t)};wx.createApp=global.createApp=Xs,wx.createPage=Qs,wx.createComponent=eu,wx.createPluginApp=global.createPluginApp=nu,wx.createSubpackageApp=global.createSubpackageApp=ru;
|
|
/*!
|
|
* pinia v2.2.8
|
|
* (c) 2024 Eduardo San Martin Morote
|
|
* @license MIT
|
|
*/
|
|
let ou;const iu=t=>ou=t,su=Symbol();function uu(t){return t&&"object"==typeof t&&"[object Object]"===Object.prototype.toString.call(t)&&"function"!=typeof t.toJSON}var cu,fu;(fu=cu||(cu={})).direct="direct",fu.patchObject="patch object",fu.patchFunction="patch function";const au=()=>{};function lu(t,e,n,r=au){t.push(e);const o=()=>{const n=t.indexOf(e);n>-1&&(t.splice(n,1),r())};return!n&&wn()&&function(t){yn&&yn.cleanups.push(t)}(o),o}function hu(t,...e){t.slice().forEach((t=>{t(...e)}))}const pu=t=>t(),du=Symbol(),gu=Symbol();function yu(t,e){t instanceof Map&&e instanceof Map?e.forEach(((e,n)=>t.set(n,e))):t instanceof Set&&e instanceof Set&&e.forEach(t.add,t);for(const n in e){if(!e.hasOwnProperty(n))continue;const r=e[n],o=t[n];uu(o)&&uu(r)&&t.hasOwnProperty(n)&&!Mr(r)&&!Ir(r)?t[n]=yu(o,r):t[n]=r}return t}const mu=Symbol();const{assign:vu}=Object;function bu(t,e,n,r){const{state:o,actions:i,getters:s}=e,u=n.state.value[t];let c;return c=wu(t,(function(){u||(n.state.value[t]=o?o():{});const e=function(t){const e=l(t)?new Array(t.length):{};for(const n in t)e[n]=Hr(t,n);return e}(n.state.value[t]);return vu(e,i,Object.keys(s||{}).reduce(((e,r)=>(e[r]=Fr(Ti((()=>{iu(n);const e=n._s.get(t);return s[r].call(e,e)}))),e)),{}))}),e,n,r,!0),c}function wu(t,e,n={},r,o,i){let s;const u=vu({actions:{}},n),c={deep:!0};let f,a,l,h=[],p=[];const d=r.state.value[t];let g;function y(e){let n;f=a=!1,"function"==typeof e?(e(r.state.value[t]),n={type:cu.patchFunction,storeId:t,events:l}):(yu(r.state.value[t],e),n={type:cu.patchObject,payload:e,storeId:t,events:l});const o=g=Symbol();ro().then((()=>{g===o&&(f=!0)})),a=!0,hu(h,n,r.state.value[t])}i||d||(r.state.value[t]={}),jr({});const m=i?function(){const{state:t}=n,e=t?t():{};this.$patch((t=>{vu(t,e)}))}:au;const v=(e,n="")=>{if(du in e)return e[gu]=n,e;const o=function(){iu(r);const n=Array.from(arguments),i=[],s=[];let u;hu(p,{args:n,name:o[gu],store:b,after:function(t){i.push(t)},onError:function(t){s.push(t)}});try{u=e.apply(this&&this.$id===t?this:b,n)}catch(c){throw hu(s,c),c}return u instanceof Promise?u.then((t=>(hu(i,t),t))).catch((t=>(hu(s,t),Promise.reject(t)))):(hu(i,u),u)};return o[du]=!0,o[gu]=n,o},b=Br({_p:r,$id:t,$onAction:lu.bind(null,p),$patch:y,$reset:m,$subscribe(e,n={}){const o=lu(h,e,n.detached,(()=>i())),i=s.run((()=>vo((()=>r.state.value[t]),(r=>{("sync"===n.flush?a:f)&&e({storeId:t,type:cu.direct,events:l},r)}),vu({},c,n))));return o},$dispose:function(){s.stop(),h=[],p=[],r._s.delete(t)}});r._s.set(t,b);const w=(r._a&&r._a.runWithContext||pu)((()=>r._e.run((()=>(s=bn()).run((()=>e({action:v})))))));for(const E in w){const e=w[E];if(Mr(e)&&(!Mr(x=e)||!x.effect)||Ir(e))i||(!d||uu(_=e)&&_.hasOwnProperty(mu)||(Mr(e)?e.value=d[E]:yu(e,d[E])),r.state.value[t][E]=e);else if("function"==typeof e){const t=v(e,E);w[E]=t,u.actions[E]=e}}var _,x;return vu(b,w),vu($r(b),w),Object.defineProperty(b,"$state",{get:()=>r.state.value[t],set:t=>{y((e=>{vu(e,t)}))}}),r._p.forEach((t=>{vu(b,s.run((()=>t({store:b,app:r._a,pinia:r,options:u}))))})),d&&i&&n.hydrate&&n.hydrate(b.$state,d),f=!0,a=!0,b}
|
|
/*! #__NO_SIDE_EFFECTS__ */var _u="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function xu(t){if(t.__esModule)return t;var e=t.default;if("function"==typeof e){var n=function t(){return this instanceof t?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach((function(e){var r=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(n,e,r.get?r:{enumerable:!0,get:function(){return t[e]}})})),n}var Eu,Bu={exports:{}};Eu=Bu,function(){var t;function e(t,e,n){null!=t&&("number"==typeof t?this.fromNumber(t,e,n):null==e&&"string"!=typeof t?this.fromString(t,256):this.fromString(t,e))}function n(){return new e(null)}var r="undefined"!=typeof navigator;r&&"Microsoft Internet Explorer"==navigator.appName?(e.prototype.am=function(t,e,n,r,o,i){for(var s=32767&e,u=e>>15;--i>=0;){var c=32767&this[t],f=this[t++]>>15,a=u*c+f*s;o=((c=s*c+((32767&a)<<15)+n[r]+(1073741823&o))>>>30)+(a>>>15)+u*f+(o>>>30),n[r++]=1073741823&c}return o},t=30):r&&"Netscape"!=navigator.appName?(e.prototype.am=function(t,e,n,r,o,i){for(;--i>=0;){var s=e*this[t++]+n[r]+o;o=Math.floor(s/67108864),n[r++]=67108863&s}return o},t=26):(e.prototype.am=function(t,e,n,r,o,i){for(var s=16383&e,u=e>>14;--i>=0;){var c=16383&this[t],f=this[t++]>>14,a=u*c+f*s;o=((c=s*c+((16383&a)<<14)+n[r]+o)>>28)+(a>>14)+u*f,n[r++]=268435455&c}return o},t=28),e.prototype.DB=t,e.prototype.DM=(1<<t)-1,e.prototype.DV=1<<t,e.prototype.FV=Math.pow(2,52),e.prototype.F1=52-t,e.prototype.F2=2*t-52;var o,i,s=new Array;for(o="0".charCodeAt(0),i=0;i<=9;++i)s[o++]=i;for(o="a".charCodeAt(0),i=10;i<36;++i)s[o++]=i;for(o="A".charCodeAt(0),i=10;i<36;++i)s[o++]=i;function u(t){return"0123456789abcdefghijklmnopqrstuvwxyz".charAt(t)}function c(t,e){var n=s[t.charCodeAt(e)];return null==n?-1:n}function f(t){var e=n();return e.fromInt(t),e}function a(t){var e,n=1;return 0!=(e=t>>>16)&&(t=e,n+=16),0!=(e=t>>8)&&(t=e,n+=8),0!=(e=t>>4)&&(t=e,n+=4),0!=(e=t>>2)&&(t=e,n+=2),0!=(e=t>>1)&&(t=e,n+=1),n}function l(t){this.m=t}function h(t){this.m=t,this.mp=t.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<<t.DB-15)-1,this.mt2=2*t.t}function p(t,e){return t&e}function d(t,e){return t|e}function g(t,e){return t^e}function y(t,e){return t&~e}function m(t){if(0==t)return-1;var e=0;return 65535&t||(t>>=16,e+=16),255&t||(t>>=8,e+=8),15&t||(t>>=4,e+=4),3&t||(t>>=2,e+=2),1&t||++e,e}function v(t){for(var e=0;0!=t;)t&=t-1,++e;return e}function b(){}function w(t){return t}function _(t){this.r2=n(),this.q3=n(),e.ONE.dlShiftTo(2*t.t,this.r2),this.mu=this.r2.divide(t),this.m=t}l.prototype.convert=function(t){return t.s<0||t.compareTo(this.m)>=0?t.mod(this.m):t},l.prototype.revert=function(t){return t},l.prototype.reduce=function(t){t.divRemTo(this.m,null,t)},l.prototype.mulTo=function(t,e,n){t.multiplyTo(e,n),this.reduce(n)},l.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},h.prototype.convert=function(t){var r=n();return t.abs().dlShiftTo(this.m.t,r),r.divRemTo(this.m,null,r),t.s<0&&r.compareTo(e.ZERO)>0&&this.m.subTo(r,r),r},h.prototype.revert=function(t){var e=n();return t.copyTo(e),this.reduce(e),e},h.prototype.reduce=function(t){for(;t.t<=this.mt2;)t[t.t++]=0;for(var e=0;e<this.m.t;++e){var n=32767&t[e],r=n*this.mpl+((n*this.mph+(t[e]>>15)*this.mpl&this.um)<<15)&t.DM;for(t[n=e+this.m.t]+=this.m.am(0,r,t,e,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)},h.prototype.mulTo=function(t,e,n){t.multiplyTo(e,n),this.reduce(n)},h.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},e.prototype.copyTo=function(t){for(var e=this.t-1;e>=0;--e)t[e]=this[e];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,n){var r;if(16==n)r=4;else if(8==n)r=3;else if(256==n)r=8;else if(2==n)r=1;else if(32==n)r=5;else{if(4!=n)return void this.fromRadix(t,n);r=2}this.t=0,this.s=0;for(var o=t.length,i=!1,s=0;--o>=0;){var u=8==r?255&t[o]:c(t,o);u<0?"-"==t.charAt(o)&&(i=!0):(i=!1,0==s?this[this.t++]=u:s+r>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+=r)>=this.DB&&(s-=this.DB))}8==r&&128&t[0]&&(this.s=-1,s>0&&(this[this.t-1]|=(1<<this.DB-s)-1<<s)),this.clamp(),i&&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,e){var n;for(n=this.t-1;n>=0;--n)e[n+t]=this[n];for(n=t-1;n>=0;--n)e[n]=0;e.t=this.t+t,e.s=this.s},e.prototype.drShiftTo=function(t,e){for(var n=t;n<this.t;++n)e[n-t]=this[n];e.t=Math.max(this.t-t,0),e.s=this.s},e.prototype.lShiftTo=function(t,e){var n,r=t%this.DB,o=this.DB-r,i=(1<<o)-1,s=Math.floor(t/this.DB),u=this.s<<r&this.DM;for(n=this.t-1;n>=0;--n)e[n+s+1]=this[n]>>o|u,u=(this[n]&i)<<r;for(n=s-1;n>=0;--n)e[n]=0;e[s]=u,e.t=this.t+s+1,e.s=this.s,e.clamp()},e.prototype.rShiftTo=function(t,e){e.s=this.s;var n=Math.floor(t/this.DB);if(n>=this.t)e.t=0;else{var r=t%this.DB,o=this.DB-r,i=(1<<r)-1;e[0]=this[n]>>r;for(var s=n+1;s<this.t;++s)e[s-n-1]|=(this[s]&i)<<o,e[s-n]=this[s]>>r;r>0&&(e[this.t-n-1]|=(this.s&i)<<o),e.t=this.t-n,e.clamp()}},e.prototype.subTo=function(t,e){for(var n=0,r=0,o=Math.min(t.t,this.t);n<o;)r+=this[n]-t[n],e[n++]=r&this.DM,r>>=this.DB;if(t.t<this.t){for(r-=t.s;n<this.t;)r+=this[n],e[n++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;n<t.t;)r-=t[n],e[n++]=r&this.DM,r>>=this.DB;r-=t.s}e.s=r<0?-1:0,r<-1?e[n++]=this.DV+r:r>0&&(e[n++]=r),e.t=n,e.clamp()},e.prototype.multiplyTo=function(t,n){var r=this.abs(),o=t.abs(),i=r.t;for(n.t=i+o.t;--i>=0;)n[i]=0;for(i=0;i<o.t;++i)n[i+r.t]=r.am(0,o[i],n,i,0,r.t);n.s=0,n.clamp(),this.s!=t.s&&e.ZERO.subTo(n,n)},e.prototype.squareTo=function(t){for(var e=this.abs(),n=t.t=2*e.t;--n>=0;)t[n]=0;for(n=0;n<e.t-1;++n){var r=e.am(n,e[n],t,2*n,0,1);(t[n+e.t]+=e.am(n+1,2*e[n],t,2*n+1,r,e.t-n-1))>=e.DV&&(t[n+e.t]-=e.DV,t[n+e.t+1]=1)}t.t>0&&(t[t.t-1]+=e.am(n,e[n],t,2*n,0,1)),t.s=0,t.clamp()},e.prototype.divRemTo=function(t,r,o){var i=t.abs();if(!(i.t<=0)){var s=this.abs();if(s.t<i.t)return null!=r&&r.fromInt(0),void(null!=o&&this.copyTo(o));null==o&&(o=n());var u=n(),c=this.s,f=t.s,l=this.DB-a(i[i.t-1]);l>0?(i.lShiftTo(l,u),s.lShiftTo(l,o)):(i.copyTo(u),s.copyTo(o));var h=u.t,p=u[h-1];if(0!=p){var d=p*(1<<this.F1)+(h>1?u[h-2]>>this.F2:0),g=this.FV/d,y=(1<<this.F1)/d,m=1<<this.F2,v=o.t,b=v-h,w=null==r?n():r;for(u.dlShiftTo(b,w),o.compareTo(w)>=0&&(o[o.t++]=1,o.subTo(w,o)),e.ONE.dlShiftTo(h,w),w.subTo(u,u);u.t<h;)u[u.t++]=0;for(;--b>=0;){var _=o[--v]==p?this.DM:Math.floor(o[v]*g+(o[v-1]+m)*y);if((o[v]+=u.am(0,_,o,b,0,h))<_)for(u.dlShiftTo(b,w),o.subTo(w,o);o[v]<--_;)o.subTo(w,o)}null!=r&&(o.drShiftTo(h,r),c!=f&&e.ZERO.subTo(r,r)),o.t=h,o.clamp(),l>0&&o.rShiftTo(l,o),c<0&&e.ZERO.subTo(o,o)}}},e.prototype.invDigit=function(){if(this.t<1)return 0;var t=this[0];if(!(1&t))return 0;var e=3&t;return(e=(e=(e=(e=e*(2-(15&t)*e)&15)*(2-(255&t)*e)&255)*(2-((65535&t)*e&65535))&65535)*(2-t*e%this.DV)%this.DV)>0?this.DV-e:-e},e.prototype.isEven=function(){return 0==(this.t>0?1&this[0]:this.s)},e.prototype.exp=function(t,r){if(t>4294967295||t<1)return e.ONE;var o=n(),i=n(),s=r.convert(this),u=a(t)-1;for(s.copyTo(o);--u>=0;)if(r.sqrTo(o,i),(t&1<<u)>0)r.mulTo(i,s,o);else{var c=o;o=i,i=c}return r.revert(o)},e.prototype.toString=function(t){if(this.s<0)return"-"+this.negate().toString(t);var e;if(16==t)e=4;else if(8==t)e=3;else if(2==t)e=1;else if(32==t)e=5;else{if(4!=t)return this.toRadix(t);e=2}var n,r=(1<<e)-1,o=!1,i="",s=this.t,c=this.DB-s*this.DB%e;if(s-- >0)for(c<this.DB&&(n=this[s]>>c)>0&&(o=!0,i=u(n));s>=0;)c<e?(n=(this[s]&(1<<c)-1)<<e-c,n|=this[--s]>>(c+=this.DB-e)):(n=this[s]>>(c-=e)&r,c<=0&&(c+=this.DB,--s)),n>0&&(o=!0),o&&(i+=u(n));return o?i:"0"},e.prototype.negate=function(){var t=n();return e.ZERO.subTo(this,t),t},e.prototype.abs=function(){return this.s<0?this.negate():this},e.prototype.compareTo=function(t){var e=this.s-t.s;if(0!=e)return e;var n=this.t;if(0!=(e=n-t.t))return this.s<0?-e:e;for(;--n>=0;)if(0!=(e=this[n]-t[n]))return e;return 0},e.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+a(this[this.t-1]^this.s&this.DM)},e.prototype.mod=function(t){var r=n();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,e){var n;return n=t<256||e.isEven()?new l(e):new h(e),this.exp(t,n)},e.ZERO=f(0),e.ONE=f(1),b.prototype.convert=w,b.prototype.revert=w,b.prototype.mulTo=function(t,e,n){t.multiplyTo(e,n)},b.prototype.sqrTo=function(t,e){t.squareTo(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 e=n();return t.copyTo(e),this.reduce(e),e},_.prototype.revert=function(t){return t},_.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)},_.prototype.mulTo=function(t,e,n){t.multiplyTo(e,n),this.reduce(n)},_.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)};var x,E,B,S=[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],A=(1<<26)/S[S.length-1];function I(){var t;t=(new Date).getTime(),E[B++]^=255&t,E[B++]^=t>>8&255,E[B++]^=t>>16&255,E[B++]^=t>>24&255,B>=C&&(B-=C)}if(e.prototype.chunkSize=function(t){return Math.floor(Math.LN2*this.DB/Math.log(t))},e.prototype.toRadix=function(t){if(null==t&&(t=10),0==this.signum()||t<2||t>36)return"0";var e=this.chunkSize(t),r=Math.pow(t,e),o=f(r),i=n(),s=n(),u="";for(this.divRemTo(o,i,s);i.signum()>0;)u=(r+s.intValue()).toString(t).substr(1)+u,i.divRemTo(o,i,s);return s.intValue().toString(t)+u},e.prototype.fromRadix=function(t,n){this.fromInt(0),null==n&&(n=10);for(var r=this.chunkSize(n),o=Math.pow(n,r),i=!1,s=0,u=0,f=0;f<t.length;++f){var a=c(t,f);a<0?"-"==t.charAt(f)&&0==this.signum()&&(i=!0):(u=n*u+a,++s>=r&&(this.dMultiply(o),this.dAddOffset(u,0),s=0,u=0))}s>0&&(this.dMultiply(Math.pow(n,s)),this.dAddOffset(u,0)),i&&e.ZERO.subTo(this,this)},e.prototype.fromNumber=function(t,n,r){if("number"==typeof n)if(t<2)this.fromInt(1);else for(this.fromNumber(t,r),this.testBit(t-1)||this.bitwiseTo(e.ONE.shiftLeft(t-1),d,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(n);)this.dAddOffset(2,0),this.bitLength()>t&&this.subTo(e.ONE.shiftLeft(t-1),this);else{var o=new Array,i=7&t;o.length=1+(t>>3),n.nextBytes(o),i>0?o[0]&=(1<<i)-1:o[0]=0,this.fromString(o,256)}},e.prototype.bitwiseTo=function(t,e,n){var r,o,i=Math.min(t.t,this.t);for(r=0;r<i;++r)n[r]=e(this[r],t[r]);if(t.t<this.t){for(o=t.s&this.DM,r=i;r<this.t;++r)n[r]=e(this[r],o);n.t=this.t}else{for(o=this.s&this.DM,r=i;r<t.t;++r)n[r]=e(o,t[r]);n.t=t.t}n.s=e(this.s,t.s),n.clamp()},e.prototype.changeBit=function(t,n){var r=e.ONE.shiftLeft(t);return this.bitwiseTo(r,n,r),r},e.prototype.addTo=function(t,e){for(var n=0,r=0,o=Math.min(t.t,this.t);n<o;)r+=this[n]+t[n],e[n++]=r&this.DM,r>>=this.DB;if(t.t<this.t){for(r+=t.s;n<this.t;)r+=this[n],e[n++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;n<t.t;)r+=t[n],e[n++]=r&this.DM,r>>=this.DB;r+=t.s}e.s=r<0?-1:0,r>0?e[n++]=r:r<-1&&(e[n++]=this.DV+r),e.t=n,e.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,e){if(0!=t){for(;this.t<=e;)this[this.t++]=0;for(this[e]+=t;this[e]>=this.DV;)this[e]-=this.DV,++e>=this.t&&(this[this.t++]=0),++this[e]}},e.prototype.multiplyLowerTo=function(t,e,n){var r,o=Math.min(this.t+t.t,e);for(n.s=0,n.t=o;o>0;)n[--o]=0;for(r=n.t-this.t;o<r;++o)n[o+this.t]=this.am(0,t[o],n,o,0,this.t);for(r=Math.min(t.t,e);o<r;++o)this.am(0,t[o],n,o,0,e-o);n.clamp()},e.prototype.multiplyUpperTo=function(t,e,n){--e;var r=n.t=this.t+t.t-e;for(n.s=0;--r>=0;)n[r]=0;for(r=Math.max(e-this.t,0);r<t.t;++r)n[this.t+r-e]=this.am(e-r,t[r],n,0,0,this.t+r-e);n.clamp(),n.drShiftTo(1,n)},e.prototype.modInt=function(t){if(t<=0)return 0;var e=this.DV%t,n=this.s<0?t-1:0;if(this.t>0)if(0==e)n=this[0]%t;else for(var r=this.t-1;r>=0;--r)n=(e*n+this[r])%t;return n},e.prototype.millerRabin=function(t){var r=this.subtract(e.ONE),o=r.getLowestSetBit();if(o<=0)return!1;var i=r.shiftRight(o);(t=t+1>>1)>S.length&&(t=S.length);for(var s=n(),u=0;u<t;++u){s.fromInt(S[Math.floor(Math.random()*S.length)]);var c=s.modPow(i,this);if(0!=c.compareTo(e.ONE)&&0!=c.compareTo(r)){for(var f=1;f++<o&&0!=c.compareTo(r);)if(0==(c=c.modPowInt(2,this)).compareTo(e.ONE))return!1;if(0!=c.compareTo(r))return!1}}return!0},e.prototype.clone=function(){var t=n();return this.copyTo(t),t},e.prototype.intValue=function(){if(this.s<0){if(1==this.t)return this[0]-this.DV;if(0==this.t)return-1}else{if(1==this.t)return this[0];if(0==this.t)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},e.prototype.byteValue=function(){return 0==this.t?this.s:this[0]<<24>>24},e.prototype.shortValue=function(){return 0==this.t?this.s:this[0]<<16>>16},e.prototype.signum=function(){return this.s<0?-1:this.t<=0||1==this.t&&this[0]<=0?0:1},e.prototype.toByteArray=function(){var t=this.t,e=new Array;e[0]=this.s;var n,r=this.DB-t*this.DB%8,o=0;if(t-- >0)for(r<this.DB&&(n=this[t]>>r)!=(this.s&this.DM)>>r&&(e[o++]=n|this.s<<this.DB-r);t>=0;)r<8?(n=(this[t]&(1<<r)-1)<<8-r,n|=this[--t]>>(r+=this.DB-8)):(n=this[t]>>(r-=8)&255,r<=0&&(r+=this.DB,--t)),128&n&&(n|=-256),0==o&&(128&this.s)!=(128&n)&&++o,(o>0||n!=this.s)&&(e[o++]=n);return e},e.prototype.equals=function(t){return 0==this.compareTo(t)},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 e=n();return this.bitwiseTo(t,p,e),e},e.prototype.or=function(t){var e=n();return this.bitwiseTo(t,d,e),e},e.prototype.xor=function(t){var e=n();return this.bitwiseTo(t,g,e),e},e.prototype.andNot=function(t){var e=n();return this.bitwiseTo(t,y,e),e},e.prototype.not=function(){for(var t=n(),e=0;e<this.t;++e)t[e]=this.DM&~this[e];return t.t=this.t,t.s=~this.s,t},e.prototype.shiftLeft=function(t){var e=n();return t<0?this.rShiftTo(-t,e):this.lShiftTo(t,e),e},e.prototype.shiftRight=function(t){var e=n();return t<0?this.lShiftTo(-t,e):this.rShiftTo(t,e),e},e.prototype.getLowestSetBit=function(){for(var t=0;t<this.t;++t)if(0!=this[t])return t*this.DB+m(this[t]);return this.s<0?this.t*this.DB:-1},e.prototype.bitCount=function(){for(var t=0,e=this.s&this.DM,n=0;n<this.t;++n)t+=v(this[n]^e);return t},e.prototype.testBit=function(t){var e=Math.floor(t/this.DB);return e>=this.t?0!=this.s:!!(this[e]&1<<t%this.DB)},e.prototype.setBit=function(t){return this.changeBit(t,d)},e.prototype.clearBit=function(t){return this.changeBit(t,y)},e.prototype.flipBit=function(t){return this.changeBit(t,g)},e.prototype.add=function(t){var e=n();return this.addTo(t,e),e},e.prototype.subtract=function(t){var e=n();return this.subTo(t,e),e},e.prototype.multiply=function(t){var e=n();return this.multiplyTo(t,e),e},e.prototype.divide=function(t){var e=n();return this.divRemTo(t,e,null),e},e.prototype.remainder=function(t){var e=n();return this.divRemTo(t,null,e),e},e.prototype.divideAndRemainder=function(t){var e=n(),r=n();return this.divRemTo(t,e,r),new Array(e,r)},e.prototype.modPow=function(t,e){var r,o,i=t.bitLength(),s=f(1);if(i<=0)return s;r=i<18?1:i<48?3:i<144?4:i<768?5:6,o=i<8?new l(e):e.isEven()?new _(e):new h(e);var u=new Array,c=3,p=r-1,d=(1<<r)-1;if(u[1]=o.convert(this),r>1){var g=n();for(o.sqrTo(u[1],g);c<=d;)u[c]=n(),o.mulTo(g,u[c-2],u[c]),c+=2}var y,m,v=t.t-1,b=!0,w=n();for(i=a(t[v])-1;v>=0;){for(i>=p?y=t[v]>>i-p&d:(y=(t[v]&(1<<i+1)-1)<<p-i,v>0&&(y|=t[v-1]>>this.DB+i-p)),c=r;!(1&y);)y>>=1,--c;if((i-=c)<0&&(i+=this.DB,--v),b)u[y].copyTo(s),b=!1;else{for(;c>1;)o.sqrTo(s,w),o.sqrTo(w,s),c-=2;c>0?o.sqrTo(s,w):(m=s,s=w,w=m),o.mulTo(w,u[y],s)}for(;v>=0&&!(t[v]&1<<i);)o.sqrTo(s,w),m=s,s=w,w=m,--i<0&&(i=this.DB-1,--v)}return o.revert(s)},e.prototype.modInverse=function(t){var n=t.isEven();if(this.isEven()&&n||0==t.signum())return e.ZERO;for(var r=t.clone(),o=this.clone(),i=f(1),s=f(0),u=f(0),c=f(1);0!=r.signum();){for(;r.isEven();)r.rShiftTo(1,r),n?(i.isEven()&&s.isEven()||(i.addTo(this,i),s.subTo(t,s)),i.rShiftTo(1,i)):s.isEven()||s.subTo(t,s),s.rShiftTo(1,s);for(;o.isEven();)o.rShiftTo(1,o),n?(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);r.compareTo(o)>=0?(r.subTo(o,r),n&&i.subTo(u,i),s.subTo(c,s)):(o.subTo(r,o),n&&u.subTo(i,u),c.subTo(s,c))}return 0!=o.compareTo(e.ONE)?e.ZERO:c.compareTo(t)>=0?c.subtract(t):c.signum()<0?(c.addTo(t,c),c.signum()<0?c.add(t):c):c},e.prototype.pow=function(t){return this.exp(t,new b)},e.prototype.gcd=function(t){var e=this.s<0?this.negate():this.clone(),n=t.s<0?t.negate():t.clone();if(e.compareTo(n)<0){var r=e;e=n,n=r}var o=e.getLowestSetBit(),i=n.getLowestSetBit();if(i<0)return e;for(o<i&&(i=o),i>0&&(e.rShiftTo(i,e),n.rShiftTo(i,n));e.signum()>0;)(o=e.getLowestSetBit())>0&&e.rShiftTo(o,e),(o=n.getLowestSetBit())>0&&n.rShiftTo(o,n),e.compareTo(n)>=0?(e.subTo(n,e),e.rShiftTo(1,e)):(n.subTo(e,n),n.rShiftTo(1,n));return i>0&&n.lShiftTo(i,n),n},e.prototype.isProbablePrime=function(t){var e,n=this.abs();if(1==n.t&&n[0]<=S[S.length-1]){for(e=0;e<S.length;++e)if(n[0]==S[e])return!0;return!1}if(n.isEven())return!1;for(e=1;e<S.length;){for(var r=S[e],o=e+1;o<S.length&&r<A;)r*=S[o++];for(r=n.modInt(r);e<o;)if(r%S[e++]==0)return!1}return n.millerRabin(t)},e.prototype.square=function(){var t=n();return this.squareTo(t),t},e.prototype.Barrett=_,null==E){var T;if(E=new Array,B=0,"undefined"!=typeof window&&window.crypto)if(window.crypto.getRandomValues){var O=new Uint8Array(32);for(window.crypto.getRandomValues(O),T=0;T<32;++T)E[B++]=O[T]}else if("Netscape"==navigator.appName&&navigator.appVersion<"5"){var $=window.crypto.random(32);for(T=0;T<$.length;++T)E[B++]=255&$.charCodeAt(T)}for(;B<C;)T=Math.floor(65536*Math.random()),E[B++]=T>>>8,E[B++]=255&T;B=0,I()}function F(){if(null==x){for(I(),(x=new R).init(E),B=0;B<E.length;++B)E[B]=0;B=0}return x.next()}function P(){}function R(){this.i=0,this.j=0,this.S=new Array}P.prototype.nextBytes=function(t){var e;for(e=0;e<t.length;++e)t[e]=F()},R.prototype.init=function(t){var e,n,r;for(e=0;e<256;++e)this.S[e]=e;for(n=0,e=0;e<256;++e)n=n+this.S[e]+t[e%t.length]&255,r=this.S[e],this.S[e]=this.S[n],this.S[n]=r;this.i=0,this.j=0},R.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]};var C=256;Eu.exports={default:e,BigInteger:e,SecureRandom:P}}.call(_u);var Su=Bu.exports;const{BigInteger:Au}=Su;class Iu{constructor(){this.tlv=null,this.t="00",this.l="00",this.v=""}getEncodedHex(){return this.tlv||(this.v=this.getValue(),this.l=this.getLength(),this.tlv=this.t+this.l+this.v),this.tlv}getLength(){const t=this.v.length/2;let e=t.toString(16);if(e.length%2==1&&(e="0"+e),t<128)return e;return(128+e.length/2).toString(16)+e}getValue(){return""}}class Tu extends Iu{constructor(t){super(),this.t="02",t&&(this.v=function(t){let e=t.toString(16);if("-"!==e[0])e.length%2==1?e="0"+e:e.match(/^[0-7]/)||(e="00"+e);else{e=e.substr(1);let n=e.length;n%2==1?n+=1:e.match(/^[0-7]/)||(n+=2);let r="";for(let t=0;t<n;t++)r+="f";r=new Au(r,16),e=r.xor(t).add(Au.ONE),e=e.toString(16).replace(/^-/,"")}return e}(t))}getValue(){return this.v}}class Ou extends Iu{constructor(t){super(),this.t="30",this.asn1Array=t}getValue(){return this.v=this.asn1Array.map((t=>t.getEncodedHex())).join(""),this.v}}function $u(t,e){return+t[e+2]<8?1:128&+t.substr(e+2,2)}function Fu(t,e){const n=$u(t,e),r=t.substr(e+2,2*n);if(!r)return-1;return(+r[0]<8?new Au(r,16):new Au(r.substr(2),16)).intValue()}function Pu(t,e){return e+2*($u(t,e)+1)}var Ru={encodeDer(t,e){const n=new Tu(t),r=new Tu(e);return new Ou([n,r]).getEncodedHex()},decodeDer(t){const e=Pu(t,0),n=Pu(t,e),r=Fu(t,e),o=t.substr(n,2*r),i=n+o.length,s=Pu(t,i),u=Fu(t,i),c=t.substr(s,2*u);return{r:new Au(o,16),s:new Au(c,16)}}};const{BigInteger:Cu}=Su,ku=new Cu("2"),Du=new Cu("3");class Mu{constructor(t,e){this.x=e,this.q=t}equals(t){return t===this||this.q.equals(t.q)&&this.x.equals(t.x)}toBigInteger(){return this.x}negate(){return new Mu(this.q,this.x.negate().mod(this.q))}add(t){return new Mu(this.q,this.x.add(t.toBigInteger()).mod(this.q))}subtract(t){return new Mu(this.q,this.x.subtract(t.toBigInteger()).mod(this.q))}multiply(t){return new Mu(this.q,this.x.multiply(t.toBigInteger()).mod(this.q))}divide(t){return new Mu(this.q,this.x.multiply(t.toBigInteger().modInverse(this.q)).mod(this.q))}square(){return new Mu(this.q,this.x.square().mod(this.q))}}class ju{constructor(t,e,n,r){this.curve=t,this.x=e,this.y=n,this.z=null==r?Cu.ONE:r,this.zinv=null}getX(){return null===this.zinv&&(this.zinv=this.z.modInverse(this.curve.q)),this.curve.fromBigInteger(this.x.toBigInteger().multiply(this.zinv).mod(this.curve.q))}getY(){return null===this.zinv&&(this.zinv=this.z.modInverse(this.curve.q)),this.curve.fromBigInteger(this.y.toBigInteger().multiply(this.zinv).mod(this.curve.q))}equals(t){if(t===this)return!0;if(this.isInfinity())return t.isInfinity();if(t.isInfinity())return this.isInfinity();if(!t.y.toBigInteger().multiply(this.z).subtract(this.y.toBigInteger().multiply(t.z)).mod(this.curve.q).equals(Cu.ZERO))return!1;return t.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(t.z)).mod(this.curve.q).equals(Cu.ZERO)}isInfinity(){return null===this.x&&null===this.y||this.z.equals(Cu.ZERO)&&!this.y.toBigInteger().equals(Cu.ZERO)}negate(){return new ju(this.curve,this.x,this.y.negate(),this.z)}add(t){if(this.isInfinity())return t;if(t.isInfinity())return this;const e=this.x.toBigInteger(),n=this.y.toBigInteger(),r=this.z,o=t.x.toBigInteger(),i=t.y.toBigInteger(),s=t.z,u=this.curve.q,c=e.multiply(s).mod(u),f=o.multiply(r).mod(u),a=c.subtract(f),l=n.multiply(s).mod(u),h=i.multiply(r).mod(u),p=l.subtract(h);if(Cu.ZERO.equals(a))return Cu.ZERO.equals(p)?this.twice():this.curve.infinity;const d=c.add(f),g=r.multiply(s).mod(u),y=a.square().mod(u),m=a.multiply(y).mod(u),v=g.multiply(p.square()).subtract(d.multiply(y)).mod(u),b=a.multiply(v).mod(u),w=p.multiply(y.multiply(c).subtract(v)).subtract(l.multiply(m)).mod(u),_=m.multiply(g).mod(u);return new ju(this.curve,this.curve.fromBigInteger(b),this.curve.fromBigInteger(w),_)}twice(){if(this.isInfinity())return this;if(!this.y.toBigInteger().signum())return this.curve.infinity;const t=this.x.toBigInteger(),e=this.y.toBigInteger(),n=this.z,r=this.curve.q,o=this.curve.a.toBigInteger(),i=t.square().multiply(Du).add(o.multiply(n.square())).mod(r),s=e.shiftLeft(1).multiply(n).mod(r),u=e.square().mod(r),c=u.multiply(t).multiply(n).mod(r),f=s.square().mod(r),a=i.square().subtract(c.shiftLeft(3)).mod(r),l=s.multiply(a).mod(r),h=i.multiply(c.shiftLeft(2).subtract(a)).subtract(f.shiftLeft(1).multiply(u)).mod(r),p=s.multiply(f).mod(r);return new ju(this.curve,this.curve.fromBigInteger(l),this.curve.fromBigInteger(h),p)}multiply(t){if(this.isInfinity())return this;if(!t.signum())return this.curve.infinity;const e=t.multiply(Du),n=this.negate();let r=this;for(let o=e.bitLength()-2;o>0;o--){r=r.twice();const i=e.testBit(o);i!==t.testBit(o)&&(r=r.add(i?this:n))}return r}}var Lu={ECPointFp:ju,ECCurveFp:class{constructor(t,e,n){this.q=t,this.a=this.fromBigInteger(e),this.b=this.fromBigInteger(n),this.infinity=new ju(this,null,null)}equals(t){return t===this||this.q.equals(t.q)&&this.a.equals(t.a)&&this.b.equals(t.b)}fromBigInteger(t){return new Mu(this.q,t)}decodePointHex(t){switch(parseInt(t.substr(0,2),16)){case 0:return this.infinity;case 2:case 3:const e=this.fromBigInteger(new Cu(t.substr(2),16));let n=this.fromBigInteger(e.multiply(e.square()).add(e.multiply(this.a)).add(this.b).toBigInteger().modPow(this.q.divide(new Cu("4")).add(Cu.ONE),this.q));return n.toBigInteger().mod(ku).equals(new Cu(t.substr(0,2),16).subtract(ku))||(n=n.negate()),new ju(this,e,n);case 4:case 6:case 7:const r=(t.length-2)/2,o=t.substr(2,r),i=t.substr(r+2,r);return new ju(this,this.fromBigInteger(new Cu(o,16)),this.fromBigInteger(new Cu(i,16)));default:return null}}}};const{BigInteger:Uu,SecureRandom:Nu}=Su,{ECCurveFp:Vu}=Lu,qu=new Nu,{curve:Hu,G:zu,n:Ku}=Wu();function Wu(){const t=new Uu("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00000000FFFFFFFFFFFFFFFF",16),e=new Uu("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00000000FFFFFFFFFFFFFFFC",16),n=new Uu("28E9FA9E9D9F5E344D5A9E4BCF6509A7F39789F515AB8F92DDBCBD414D940E93",16),r=new Vu(t,e,n),o=r.decodePointHex("0432C4AE2C1F1981195F9904466A39C9948FE30BBFF2660BE1715A4589334C74C7BC3736A2F4F6779C59BDCEE36B692153D0A9877CC62A474002DF32E52139F0A0");return{curve:r,G:o,n:new Uu("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFF7203DF6B21C6052B53BBF40939D54123",16)}}function Zu(t,e){return t.length>=e?t:new Array(e-t.length+1).join("0")+t}var Yu={getGlobalCurve:function(){return Hu},generateEcparam:Wu,generateKeyPairHex:function(t,e,n){const r=(t?new Uu(t,e,n):new Uu(Ku.bitLength(),qu)).mod(Ku.subtract(Uu.ONE)).add(Uu.ONE),o=Zu(r.toString(16),64),i=zu.multiply(r);return{privateKey:o,publicKey:"04"+Zu(i.getX().toBigInteger().toString(16),64)+Zu(i.getY().toBigInteger().toString(16),64)}},compressPublicKeyHex:function(t){if(130!==t.length)throw new Error("Invalid public key to compress");const e=(t.length-2)/2,n=t.substr(2,e);let r="03";return new Uu(t.substr(e+2,e),16).mod(new Uu("2")).equals(Uu.ZERO)&&(r="02"),r+n},utf8ToHex:function(t){const e=(t=unescape(encodeURIComponent(t))).length,n=[];for(let o=0;o<e;o++)n[o>>>2]|=(255&t.charCodeAt(o))<<24-o%4*8;const r=[];for(let o=0;o<e;o++){const t=n[o>>>2]>>>24-o%4*8&255;r.push((t>>>4).toString(16)),r.push((15&t).toString(16))}return r.join("")},leftPad:Zu,arrayToHex:function(t){return t.map((t=>1===(t=t.toString(16)).length?"0"+t:t)).join("")},arrayToUtf8:function(t){const e=[];let n=0;for(let o=0;o<2*t.length;o+=2)e[o>>>3]|=parseInt(t[n],10)<<24-o%8*4,n++;try{const n=[];for(let r=0;r<t.length;r++){const t=e[r>>>2]>>>24-r%4*8&255;n.push(String.fromCharCode(t))}return decodeURIComponent(escape(n.join("")))}catch(r){throw new Error("Malformed UTF-8 data")}},hexToArray:function(t){const e=[];let n=t.length;n%2!=0&&(t=Zu(t,n+1)),n=t.length;for(let r=0;r<n;r+=2)e.push(parseInt(t.substr(r,2),16));return e},verifyPublicKey:function(t){const e=Hu.decodePointHex(t);if(!e)return!1;const n=e.getX();return e.getY().square().equals(n.multiply(n.square()).add(n.multiply(Hu.a)).add(Hu.b))},comparePublicKeyHex:function(t,e){const n=Hu.decodePointHex(t);if(!n)return!1;const r=Hu.decodePointHex(e);return!!r&&n.equals(r)}};const Gu=new Uint32Array(68),Ju=new Uint32Array(64);function Xu(t,e){const n=31&e;return t<<n|t>>>32-n}function Qu(t,e){const n=[];for(let r=t.length-1;r>=0;r--)n[r]=255&(t[r]^e[r]);return n}function tc(t){return t^Xu(t,9)^Xu(t,17)}function ec(t){let e=8*t.length,n=e%512;n=n>=448?512-n%448-1:448-n-1;const r=new Array((n-7)/8),o=new Array(8);for(let l=0,h=r.length;l<h;l++)r[l]=0;for(let l=0,h=o.length;l<h;l++)o[l]=0;e=e.toString(2);for(let l=7;l>=0;l--)if(e.length>8){const t=e.length-8;o[l]=parseInt(e.substr(t),2),e=e.substr(0,t)}else e.length>0&&(o[l]=parseInt(e,2),e="");const i=new Uint8Array([...t,128,...r,...o]),s=new DataView(i.buffer,0),u=i.length/64,c=new Uint32Array([1937774191,1226093241,388252375,3666478592,2842636476,372324522,3817729613,2969243214]);for(let l=0;l<u;l++){Gu.fill(0),Ju.fill(0);const t=16*l;for(let c=0;c<16;c++)Gu[c]=s.getUint32(4*(t+c),!1);for(let s=16;s<68;s++)Gu[s]=(f=Gu[s-16]^Gu[s-9]^Xu(Gu[s-3],15))^Xu(f,15)^Xu(f,23)^Xu(Gu[s-13],7)^Gu[s-6];for(let s=0;s<64;s++)Ju[s]=Gu[s]^Gu[s+4];const e=2043430169,n=2055708042;let r,o,i,u,a,h=c[0],p=c[1],d=c[2],g=c[3],y=c[4],m=c[5],v=c[6],b=c[7];for(let s=0;s<64;s++)a=s>=0&&s<=15?e:n,r=Xu(Xu(h,12)+y+Xu(a,s),7),o=r^Xu(h,12),i=(s>=0&&s<=15?h^p^d:h&p|h&d|p&d)+g+o+Ju[s],u=(s>=0&&s<=15?y^m^v:y&m|~y&v)+b+r+Gu[s],g=d,d=Xu(p,9),p=h,h=i,b=v,v=Xu(m,19),m=y,y=tc(u);c[0]^=h,c[1]^=p,c[2]^=d,c[3]^=g,c[4]^=y,c[5]^=m,c[6]^=v,c[7]^=b}var f;const a=[];for(let l=0,h=c.length;l<h;l++){const t=c[l];a.push((4278190080&t)>>>24,(16711680&t)>>>16,(65280&t)>>>8,255&t)}return a}const nc=new Uint8Array(64),rc=new Uint8Array(64);for(let bf=0;bf<64;bf++)nc[bf]=54,rc[bf]=92;var oc={sm3:ec,hmac:function(t,e){for(e.length>64&&(e=ec(e));e.length<64;)e.push(0);const n=Qu(e,nc),r=Qu(e,rc),o=ec([...n,...t]);return ec([...r,...o])}};const{BigInteger:ic}=Su,{encodeDer:sc,decodeDer:uc}=Ru,cc=Yu,fc=oc.sm3,{G:ac,curve:lc,n:hc}=cc.generateEcparam();function pc(t,e,n="1234567812345678"){n=cc.utf8ToHex(n);const r=cc.leftPad(ac.curve.a.toBigInteger().toRadix(16),64),o=cc.leftPad(ac.curve.b.toBigInteger().toRadix(16),64),i=cc.leftPad(ac.getX().toBigInteger().toRadix(16),64),s=cc.leftPad(ac.getY().toBigInteger().toRadix(16),64);let u,c;if(128===e.length)u=e.substr(0,64),c=e.substr(64,64);else{const t=ac.curve.decodePointHex(e);u=cc.leftPad(t.getX().toBigInteger().toRadix(16),64),c=cc.leftPad(t.getY().toBigInteger().toRadix(16),64)}const f=cc.hexToArray(n+r+o+i+s+u+c),a=4*n.length;f.unshift(255&a),f.unshift(a>>8&255);const l=fc(f);return cc.arrayToHex(fc(l.concat(cc.hexToArray(t))))}function dc(t){const e=ac.multiply(new ic(t,16));return"04"+cc.leftPad(e.getX().toBigInteger().toString(16),64)+cc.leftPad(e.getY().toBigInteger().toString(16),64)}function gc(){const t=cc.generateKeyPairHex(),e=lc.decodePointHex(t.publicKey);return t.k=new ic(t.privateKey,16),t.x1=e.getX().toBigInteger(),t}var yc={generateKeyPairHex:cc.generateKeyPairHex,compressPublicKeyHex:cc.compressPublicKeyHex,comparePublicKeyHex:cc.comparePublicKeyHex,doEncrypt:function(t,e,n=1){t="string"==typeof t?cc.hexToArray(cc.utf8ToHex(t)):Array.prototype.slice.call(t),e=cc.getGlobalCurve().decodePointHex(e);const r=cc.generateKeyPairHex(),o=new ic(r.privateKey,16);let i=r.publicKey;i.length>128&&(i=i.substr(i.length-128));const s=e.multiply(o),u=cc.hexToArray(cc.leftPad(s.getX().toBigInteger().toRadix(16),64)),c=cc.hexToArray(cc.leftPad(s.getY().toBigInteger().toRadix(16),64)),f=cc.arrayToHex(fc([].concat(u,t,c)));let a=1,l=0,h=[];const p=[].concat(u,c),d=()=>{h=fc([...p,a>>24&255,a>>16&255,a>>8&255,255&a]),a++,l=0};d();for(let y=0,m=t.length;y<m;y++)l===h.length&&d(),t[y]^=255&h[l++];const g=cc.arrayToHex(t);return 0===n?i+g+f:i+f+g},doDecrypt:function(t,e,n=1,{output:r="string"}={}){e=new ic(e,16);let o=t.substr(128,64),i=t.substr(192);0===n&&(o=t.substr(t.length-64),i=t.substr(128,t.length-128-64));const s=cc.hexToArray(i),u=cc.getGlobalCurve().decodePointHex("04"+t.substr(0,128)).multiply(e),c=cc.hexToArray(cc.leftPad(u.getX().toBigInteger().toRadix(16),64)),f=cc.hexToArray(cc.leftPad(u.getY().toBigInteger().toRadix(16),64));let a=1,l=0,h=[];const p=[].concat(c,f),d=()=>{h=fc([...p,a>>24&255,a>>16&255,a>>8&255,255&a]),a++,l=0};d();for(let g=0,y=s.length;g<y;g++)l===h.length&&d(),s[g]^=255&h[l++];return cc.arrayToHex(fc([].concat(c,s,f)))===o.toLowerCase()?"array"===r?s:cc.arrayToUtf8(s):"array"===r?[]:""},doSignature:function(t,e,{pointPool:n,der:r,hash:o,publicKey:i,userId:s}={}){let u="string"==typeof t?cc.utf8ToHex(t):cc.arrayToHex(t);o&&(u=pc(u,i=i||dc(e),s));const c=new ic(e,16),f=new ic(u,16);let a=null,l=null,h=null;do{do{let t;t=n&&n.length?n.pop():gc(),a=t.k,l=f.add(t.x1).mod(hc)}while(l.equals(ic.ZERO)||l.add(a).equals(hc));h=c.add(ic.ONE).modInverse(hc).multiply(a.subtract(l.multiply(c))).mod(hc)}while(h.equals(ic.ZERO));return r?sc(l,h):cc.leftPad(l.toString(16),64)+cc.leftPad(h.toString(16),64)},doVerifySignature:function(t,e,n,{der:r,hash:o,userId:i}={}){let s,u,c="string"==typeof t?cc.utf8ToHex(t):cc.arrayToHex(t);if(o&&(c=pc(c,n,i)),r){const t=uc(e);s=t.r,u=t.s}else s=new ic(e.substring(0,64),16),u=new ic(e.substring(64),16);const f=lc.decodePointHex(n),a=new ic(c,16),l=s.add(u).mod(hc);if(l.equals(ic.ZERO))return!1;const h=ac.multiply(u).add(f.multiply(l)),p=a.add(h.getX().toBigInteger()).mod(hc);return s.equals(p)},getPublicKeyFromPrivateKey:dc,getPoint:gc,verifyPublicKey:cc.verifyPublicKey};const{sm3:mc,hmac:vc}=oc;function bc(t){return t.map((t=>1===(t=t.toString(16)).length?"0"+t:t)).join("")}function wc(t){const e=[];let n=t.length;var r,o;n%2!=0&&(o=n+1,t=(r=t).length>=o?r:new Array(o-r.length+1).join("0")+r),n=t.length;for(let i=0;i<n;i+=2)e.push(parseInt(t.substr(i,2),16));return e}const _c=16,xc=[214,144,233,254,204,225,61,183,22,182,20,194,40,251,44,5,43,103,154,118,42,190,4,195,170,68,19,38,73,134,6,153,156,66,80,244,145,239,152,122,51,84,11,67,237,207,172,98,228,179,28,169,201,8,232,149,128,223,148,250,117,143,63,166,71,7,167,252,243,115,23,186,131,89,60,25,230,133,79,168,104,107,129,178,113,100,218,139,248,235,15,75,112,86,157,53,30,36,14,94,99,88,209,162,37,34,124,59,1,33,120,135,212,0,70,87,159,211,39,82,76,54,2,231,160,196,200,158,234,191,138,210,64,199,56,181,163,247,242,206,249,97,21,161,224,174,93,164,155,52,26,85,173,147,50,48,245,140,177,227,29,246,226,46,130,102,202,96,192,41,35,171,13,83,78,111,213,219,55,69,222,253,142,47,3,255,106,114,109,108,91,81,141,27,175,146,187,221,188,127,17,217,92,65,31,16,90,216,10,193,49,136,165,205,123,189,45,116,208,18,184,229,180,176,137,105,151,74,12,150,119,126,101,185,241,9,197,110,198,132,24,240,125,236,58,220,77,32,121,238,95,62,215,203,57,72],Ec=[462357,472066609,943670861,1415275113,1886879365,2358483617,2830087869,3301692121,3773296373,4228057617,404694573,876298825,1347903077,1819507329,2291111581,2762715833,3234320085,3705924337,4177462797,337322537,808926789,1280531041,1752135293,2223739545,2695343797,3166948049,3638552301,4110090761,269950501,741554753,1213159005,1684763257];function Bc(t){const e=[];for(let n=0,r=t.length;n<r;n+=2)e.push(parseInt(t.substr(n,2),16));return e}function Sc(t,e){const n=31&e;return t<<n|t>>>32-n}function Ac(t){return(255&xc[t>>>24&255])<<24|(255&xc[t>>>16&255])<<16|(255&xc[t>>>8&255])<<8|255&xc[255&t]}function Ic(t){return t^Sc(t,2)^Sc(t,10)^Sc(t,18)^Sc(t,24)}function Tc(t){return t^Sc(t,13)^Sc(t,23)}function Oc(t,e,n){const r=new Array(4),o=new Array(4);for(let i=0;i<4;i++)o[0]=255&t[4*i],o[1]=255&t[4*i+1],o[2]=255&t[4*i+2],o[3]=255&t[4*i+3],r[i]=o[0]<<24|o[1]<<16|o[2]<<8|o[3];for(let i,s=0;s<32;s+=4)i=r[1]^r[2]^r[3]^n[s+0],r[0]^=Ic(Ac(i)),i=r[2]^r[3]^r[0]^n[s+1],r[1]^=Ic(Ac(i)),i=r[3]^r[0]^r[1]^n[s+2],r[2]^=Ic(Ac(i)),i=r[0]^r[1]^r[2]^n[s+3],r[3]^=Ic(Ac(i));for(let i=0;i<16;i+=4)e[i]=r[3-i/4]>>>24&255,e[i+1]=r[3-i/4]>>>16&255,e[i+2]=r[3-i/4]>>>8&255,e[i+3]=255&r[3-i/4]}function $c(t,e,n,{padding:r="pkcs#7",mode:o,iv:i=[],output:s="string"}={}){if("cbc"===o&&("string"==typeof i&&(i=Bc(i)),16!==i.length))throw new Error("iv is invalid");if("string"==typeof e&&(e=Bc(e)),16!==e.length)throw new Error("key is invalid");if(t="string"==typeof t?0!==n?function(t){const e=[];for(let n=0,r=t.length;n<r;n++){const r=t.codePointAt(n);if(r<=127)e.push(r);else if(r<=2047)e.push(192|r>>>6),e.push(128|63&r);else if(r<=55295||r>=57344&&r<=65535)e.push(224|r>>>12),e.push(128|r>>>6&63),e.push(128|63&r);else{if(!(r>=65536&&r<=1114111))throw e.push(r),new Error("input is not supported");n++,e.push(240|r>>>18&28),e.push(128|r>>>12&63),e.push(128|r>>>6&63),e.push(128|63&r)}}return e}(t):Bc(t):[...t],("pkcs#5"===r||"pkcs#7"===r)&&0!==n){const e=_c-t.length%_c;for(let n=0;n<e;n++)t.push(e)}const u=new Array(32);!function(t,e,n){const r=new Array(4),o=new Array(4);for(let i=0;i<4;i++)o[0]=255&t[0+4*i],o[1]=255&t[1+4*i],o[2]=255&t[2+4*i],o[3]=255&t[3+4*i],r[i]=o[0]<<24|o[1]<<16|o[2]<<8|o[3];r[0]^=2746333894,r[1]^=1453994832,r[2]^=1736282519,r[3]^=2993693404;for(let i,s=0;s<32;s+=4)i=r[1]^r[2]^r[3]^Ec[s+0],e[s+0]=r[0]^=Tc(Ac(i)),i=r[2]^r[3]^r[0]^Ec[s+1],e[s+1]=r[1]^=Tc(Ac(i)),i=r[3]^r[0]^r[1]^Ec[s+2],e[s+2]=r[2]^=Tc(Ac(i)),i=r[0]^r[1]^r[2]^Ec[s+3],e[s+3]=r[3]^=Tc(Ac(i));if(0===n)for(let i,s=0;s<16;s++)i=e[s],e[s]=e[31-s],e[31-s]=i}(e,u,n);const c=[];let f=i,a=t.length,l=0;for(;a>=_c;){const e=t.slice(l,l+16),r=new Array(16);if("cbc"===o)for(let t=0;t<_c;t++)0!==n&&(e[t]^=f[t]);Oc(e,r,u);for(let t=0;t<_c;t++)"cbc"===o&&0===n&&(r[t]^=f[t]),c[l+t]=r[t];"cbc"===o&&(f=0!==n?r:e),a-=_c,l+=_c}if(("pkcs#5"===r||"pkcs#7"===r)&&0===n){const t=c.length,e=c[t-1];for(let n=1;n<=e;n++)if(c[t-n]!==e)throw new Error("padding is invalid");c.splice(t-e,e)}return"array"!==s?0!==n?c.map((t=>1===(t=t.toString(16)).length?"0"+t:t)).join(""):function(t){const e=[];for(let n=0,r=t.length;n<r;n++)t[n]>=240&&t[n]<=247?(e.push(String.fromCodePoint(((7&t[n])<<18)+((63&t[n+1])<<12)+((63&t[n+2])<<6)+(63&t[n+3]))),n+=3):t[n]>=224&&t[n]<=239?(e.push(String.fromCodePoint(((15&t[n])<<12)+((63&t[n+1])<<6)+(63&t[n+2]))),n+=2):t[n]>=192&&t[n]<=223?(e.push(String.fromCodePoint(((31&t[n])<<6)+(63&t[n+1]))),n++):e.push(String.fromCodePoint(t[n]));return e.join("")}(c):c}var Fc={encrypt:(t,e,n)=>$c(t,e,1,n),decrypt:(t,e,n)=>$c(t,e,0,n)},Pc={sm2:yc,sm3:function(t,e){if(t="string"==typeof t?function(t){const e=[];for(let n=0,r=t.length;n<r;n++){const r=t.codePointAt(n);if(r<=127)e.push(r);else if(r<=2047)e.push(192|r>>>6),e.push(128|63&r);else if(r<=55295||r>=57344&&r<=65535)e.push(224|r>>>12),e.push(128|r>>>6&63),e.push(128|63&r);else{if(!(r>=65536&&r<=1114111))throw e.push(r),new Error("input is not supported");n++,e.push(240|r>>>18&28),e.push(128|r>>>12&63),e.push(128|r>>>6&63),e.push(128|63&r)}}return e}(t):Array.prototype.slice.call(t),e){if("hmac"!==(e.mode||"hmac"))throw new Error("invalid mode");let n=e.key;if(!n)throw new Error("invalid key");return n="string"==typeof n?wc(n):Array.prototype.slice.call(n),bc(vc(t,n))}return bc(mc(t))},sm4:Fc},Rc={exports:{}};const Cc=xu(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));
|
|
/**
|
|
* [js-md5]{@link https://github.com/emn178/js-md5}
|
|
*
|
|
* @namespace md5
|
|
* @version 0.8.3
|
|
* @author Chen, Yi-Cyuan [emn178@gmail.com]
|
|
* @copyright Chen, Yi-Cyuan 2014-2023
|
|
* @license MIT
|
|
*/
|
|
!function(t){!function(){var e="input is invalid type",n="object"==typeof window,r=n?window:{};r.JS_MD5_NO_WINDOW&&(n=!1);var o=!n&&"object"==typeof self,i=!r.JS_MD5_NO_NODE_JS&&"object"==typeof process&&process.versions&&process.versions.node;i?r=_u:o&&(r=self);var s,u=!r.JS_MD5_NO_COMMON_JS&&t.exports,c=!r.JS_MD5_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,f="0123456789abcdef".split(""),a=[128,32768,8388608,-2147483648],l=[0,8,16,24],h=["hex","array","digest","buffer","arrayBuffer","base64"],p="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),d=[];if(c){var g=new ArrayBuffer(68);s=new Uint8Array(g),d=new Uint32Array(g)}var y=Array.isArray;!r.JS_MD5_NO_NODE_JS&&y||(y=function(t){return"[object Array]"===Object.prototype.toString.call(t)});var m=ArrayBuffer.isView;!c||!r.JS_MD5_NO_ARRAY_BUFFER_IS_VIEW&&m||(m=function(t){return"object"==typeof t&&t.buffer&&t.buffer.constructor===ArrayBuffer});var v=function(t){var n=typeof t;if("string"===n)return[t,!0];if("object"!==n||null===t)throw new Error(e);if(c&&t.constructor===ArrayBuffer)return[new Uint8Array(t),!1];if(!y(t)&&!m(t))throw new Error(e);return[t,!1]},b=function(t){return function(e){return new x(!0).update(e)[t]()}},w=function(t){var n,o=Cc,i=Cc.Buffer;n=i.from&&!r.JS_MD5_NO_BUFFER_FROM?i.from:function(t){return new i(t)};return function(r){if("string"==typeof r)return o.createHash("md5").update(r,"utf8").digest("hex");if(null==r)throw new Error(e);return r.constructor===ArrayBuffer&&(r=new Uint8Array(r)),y(r)||m(r)||r.constructor===i?o.createHash("md5").update(n(r)).digest("hex"):t(r)}},_=function(t){return function(e,n){return new E(e,!0).update(n)[t]()}};function x(t){if(t)d[0]=d[16]=d[1]=d[2]=d[3]=d[4]=d[5]=d[6]=d[7]=d[8]=d[9]=d[10]=d[11]=d[12]=d[13]=d[14]=d[15]=0,this.blocks=d,this.buffer8=s;else if(c){var e=new ArrayBuffer(68);this.buffer8=new Uint8Array(e),this.blocks=new Uint32Array(e)}else this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];this.h0=this.h1=this.h2=this.h3=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0}function E(t,e){var n,r=v(t);if(t=r[0],r[1]){var o,i=[],s=t.length,u=0;for(n=0;n<s;++n)(o=t.charCodeAt(n))<128?i[u++]=o:o<2048?(i[u++]=192|o>>>6,i[u++]=128|63&o):o<55296||o>=57344?(i[u++]=224|o>>>12,i[u++]=128|o>>>6&63,i[u++]=128|63&o):(o=65536+((1023&o)<<10|1023&t.charCodeAt(++n)),i[u++]=240|o>>>18,i[u++]=128|o>>>12&63,i[u++]=128|o>>>6&63,i[u++]=128|63&o);t=i}t.length>64&&(t=new x(!0).update(t).array());var c=[],f=[];for(n=0;n<64;++n){var a=t[n]||0;c[n]=92^a,f[n]=54^a}x.call(this,e),this.update(f),this.oKeyPad=c,this.inner=!0,this.sharedMemory=e}x.prototype.update=function(t){if(this.finalized)throw new Error("finalize already called");var e=v(t);t=e[0];for(var n,r,o=e[1],i=0,s=t.length,u=this.blocks,f=this.buffer8;i<s;){if(this.hashed&&(this.hashed=!1,u[0]=u[16],u[16]=u[1]=u[2]=u[3]=u[4]=u[5]=u[6]=u[7]=u[8]=u[9]=u[10]=u[11]=u[12]=u[13]=u[14]=u[15]=0),o)if(c)for(r=this.start;i<s&&r<64;++i)(n=t.charCodeAt(i))<128?f[r++]=n:n<2048?(f[r++]=192|n>>>6,f[r++]=128|63&n):n<55296||n>=57344?(f[r++]=224|n>>>12,f[r++]=128|n>>>6&63,f[r++]=128|63&n):(n=65536+((1023&n)<<10|1023&t.charCodeAt(++i)),f[r++]=240|n>>>18,f[r++]=128|n>>>12&63,f[r++]=128|n>>>6&63,f[r++]=128|63&n);else for(r=this.start;i<s&&r<64;++i)(n=t.charCodeAt(i))<128?u[r>>>2]|=n<<l[3&r++]:n<2048?(u[r>>>2]|=(192|n>>>6)<<l[3&r++],u[r>>>2]|=(128|63&n)<<l[3&r++]):n<55296||n>=57344?(u[r>>>2]|=(224|n>>>12)<<l[3&r++],u[r>>>2]|=(128|n>>>6&63)<<l[3&r++],u[r>>>2]|=(128|63&n)<<l[3&r++]):(n=65536+((1023&n)<<10|1023&t.charCodeAt(++i)),u[r>>>2]|=(240|n>>>18)<<l[3&r++],u[r>>>2]|=(128|n>>>12&63)<<l[3&r++],u[r>>>2]|=(128|n>>>6&63)<<l[3&r++],u[r>>>2]|=(128|63&n)<<l[3&r++]);else if(c)for(r=this.start;i<s&&r<64;++i)f[r++]=t[i];else for(r=this.start;i<s&&r<64;++i)u[r>>>2]|=t[i]<<l[3&r++];this.lastByteIndex=r,this.bytes+=r-this.start,r>=64?(this.start=r-64,this.hash(),this.hashed=!0):this.start=r}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296|0,this.bytes=this.bytes%4294967296),this},x.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var t=this.blocks,e=this.lastByteIndex;t[e>>>2]|=a[3&e],e>=56&&(this.hashed||this.hash(),t[0]=t[16],t[16]=t[1]=t[2]=t[3]=t[4]=t[5]=t[6]=t[7]=t[8]=t[9]=t[10]=t[11]=t[12]=t[13]=t[14]=t[15]=0),t[14]=this.bytes<<3,t[15]=this.hBytes<<3|this.bytes>>>29,this.hash()}},x.prototype.hash=function(){var t,e,n,r,o,i,s=this.blocks;this.first?e=((e=((t=((t=s[0]-680876937)<<7|t>>>25)-271733879|0)^(n=((n=(-271733879^(r=((r=(-1732584194^2004318071&t)+s[1]-117830708)<<12|r>>>20)+t|0)&(-271733879^t))+s[2]-1126478375)<<17|n>>>15)+r|0)&(r^t))+s[3]-1316259209)<<22|e>>>10)+n|0:(t=this.h0,e=this.h1,n=this.h2,e=((e+=((t=((t+=((r=this.h3)^e&(n^r))+s[0]-680876936)<<7|t>>>25)+e|0)^(n=((n+=(e^(r=((r+=(n^t&(e^n))+s[1]-389564586)<<12|r>>>20)+t|0)&(t^e))+s[2]+606105819)<<17|n>>>15)+r|0)&(r^t))+s[3]-1044525330)<<22|e>>>10)+n|0),e=((e+=((t=((t+=(r^e&(n^r))+s[4]-176418897)<<7|t>>>25)+e|0)^(n=((n+=(e^(r=((r+=(n^t&(e^n))+s[5]+1200080426)<<12|r>>>20)+t|0)&(t^e))+s[6]-1473231341)<<17|n>>>15)+r|0)&(r^t))+s[7]-45705983)<<22|e>>>10)+n|0,e=((e+=((t=((t+=(r^e&(n^r))+s[8]+1770035416)<<7|t>>>25)+e|0)^(n=((n+=(e^(r=((r+=(n^t&(e^n))+s[9]-1958414417)<<12|r>>>20)+t|0)&(t^e))+s[10]-42063)<<17|n>>>15)+r|0)&(r^t))+s[11]-1990404162)<<22|e>>>10)+n|0,e=((e+=((t=((t+=(r^e&(n^r))+s[12]+1804603682)<<7|t>>>25)+e|0)^(n=((n+=(e^(r=((r+=(n^t&(e^n))+s[13]-40341101)<<12|r>>>20)+t|0)&(t^e))+s[14]-1502002290)<<17|n>>>15)+r|0)&(r^t))+s[15]+1236535329)<<22|e>>>10)+n|0,e=((e+=((r=((r+=(e^n&((t=((t+=(n^r&(e^n))+s[1]-165796510)<<5|t>>>27)+e|0)^e))+s[6]-1069501632)<<9|r>>>23)+t|0)^t&((n=((n+=(t^e&(r^t))+s[11]+643717713)<<14|n>>>18)+r|0)^r))+s[0]-373897302)<<20|e>>>12)+n|0,e=((e+=((r=((r+=(e^n&((t=((t+=(n^r&(e^n))+s[5]-701558691)<<5|t>>>27)+e|0)^e))+s[10]+38016083)<<9|r>>>23)+t|0)^t&((n=((n+=(t^e&(r^t))+s[15]-660478335)<<14|n>>>18)+r|0)^r))+s[4]-405537848)<<20|e>>>12)+n|0,e=((e+=((r=((r+=(e^n&((t=((t+=(n^r&(e^n))+s[9]+568446438)<<5|t>>>27)+e|0)^e))+s[14]-1019803690)<<9|r>>>23)+t|0)^t&((n=((n+=(t^e&(r^t))+s[3]-187363961)<<14|n>>>18)+r|0)^r))+s[8]+1163531501)<<20|e>>>12)+n|0,e=((e+=((r=((r+=(e^n&((t=((t+=(n^r&(e^n))+s[13]-1444681467)<<5|t>>>27)+e|0)^e))+s[2]-51403784)<<9|r>>>23)+t|0)^t&((n=((n+=(t^e&(r^t))+s[7]+1735328473)<<14|n>>>18)+r|0)^r))+s[12]-1926607734)<<20|e>>>12)+n|0,e=((e+=((i=(r=((r+=((o=e^n)^(t=((t+=(o^r)+s[5]-378558)<<4|t>>>28)+e|0))+s[8]-2022574463)<<11|r>>>21)+t|0)^t)^(n=((n+=(i^e)+s[11]+1839030562)<<16|n>>>16)+r|0))+s[14]-35309556)<<23|e>>>9)+n|0,e=((e+=((i=(r=((r+=((o=e^n)^(t=((t+=(o^r)+s[1]-1530992060)<<4|t>>>28)+e|0))+s[4]+1272893353)<<11|r>>>21)+t|0)^t)^(n=((n+=(i^e)+s[7]-155497632)<<16|n>>>16)+r|0))+s[10]-1094730640)<<23|e>>>9)+n|0,e=((e+=((i=(r=((r+=((o=e^n)^(t=((t+=(o^r)+s[13]+681279174)<<4|t>>>28)+e|0))+s[0]-358537222)<<11|r>>>21)+t|0)^t)^(n=((n+=(i^e)+s[3]-722521979)<<16|n>>>16)+r|0))+s[6]+76029189)<<23|e>>>9)+n|0,e=((e+=((i=(r=((r+=((o=e^n)^(t=((t+=(o^r)+s[9]-640364487)<<4|t>>>28)+e|0))+s[12]-421815835)<<11|r>>>21)+t|0)^t)^(n=((n+=(i^e)+s[15]+530742520)<<16|n>>>16)+r|0))+s[2]-995338651)<<23|e>>>9)+n|0,e=((e+=((r=((r+=(e^((t=((t+=(n^(e|~r))+s[0]-198630844)<<6|t>>>26)+e|0)|~n))+s[7]+1126891415)<<10|r>>>22)+t|0)^((n=((n+=(t^(r|~e))+s[14]-1416354905)<<15|n>>>17)+r|0)|~t))+s[5]-57434055)<<21|e>>>11)+n|0,e=((e+=((r=((r+=(e^((t=((t+=(n^(e|~r))+s[12]+1700485571)<<6|t>>>26)+e|0)|~n))+s[3]-1894986606)<<10|r>>>22)+t|0)^((n=((n+=(t^(r|~e))+s[10]-1051523)<<15|n>>>17)+r|0)|~t))+s[1]-2054922799)<<21|e>>>11)+n|0,e=((e+=((r=((r+=(e^((t=((t+=(n^(e|~r))+s[8]+1873313359)<<6|t>>>26)+e|0)|~n))+s[15]-30611744)<<10|r>>>22)+t|0)^((n=((n+=(t^(r|~e))+s[6]-1560198380)<<15|n>>>17)+r|0)|~t))+s[13]+1309151649)<<21|e>>>11)+n|0,e=((e+=((r=((r+=(e^((t=((t+=(n^(e|~r))+s[4]-145523070)<<6|t>>>26)+e|0)|~n))+s[11]-1120210379)<<10|r>>>22)+t|0)^((n=((n+=(t^(r|~e))+s[2]+718787259)<<15|n>>>17)+r|0)|~t))+s[9]-343485551)<<21|e>>>11)+n|0,this.first?(this.h0=t+1732584193|0,this.h1=e-271733879|0,this.h2=n-1732584194|0,this.h3=r+271733878|0,this.first=!1):(this.h0=this.h0+t|0,this.h1=this.h1+e|0,this.h2=this.h2+n|0,this.h3=this.h3+r|0)},x.prototype.hex=function(){this.finalize();var t=this.h0,e=this.h1,n=this.h2,r=this.h3;return f[t>>>4&15]+f[15&t]+f[t>>>12&15]+f[t>>>8&15]+f[t>>>20&15]+f[t>>>16&15]+f[t>>>28&15]+f[t>>>24&15]+f[e>>>4&15]+f[15&e]+f[e>>>12&15]+f[e>>>8&15]+f[e>>>20&15]+f[e>>>16&15]+f[e>>>28&15]+f[e>>>24&15]+f[n>>>4&15]+f[15&n]+f[n>>>12&15]+f[n>>>8&15]+f[n>>>20&15]+f[n>>>16&15]+f[n>>>28&15]+f[n>>>24&15]+f[r>>>4&15]+f[15&r]+f[r>>>12&15]+f[r>>>8&15]+f[r>>>20&15]+f[r>>>16&15]+f[r>>>28&15]+f[r>>>24&15]},x.prototype.toString=x.prototype.hex,x.prototype.digest=function(){this.finalize();var t=this.h0,e=this.h1,n=this.h2,r=this.h3;return[255&t,t>>>8&255,t>>>16&255,t>>>24&255,255&e,e>>>8&255,e>>>16&255,e>>>24&255,255&n,n>>>8&255,n>>>16&255,n>>>24&255,255&r,r>>>8&255,r>>>16&255,r>>>24&255]},x.prototype.array=x.prototype.digest,x.prototype.arrayBuffer=function(){this.finalize();var t=new ArrayBuffer(16),e=new Uint32Array(t);return e[0]=this.h0,e[1]=this.h1,e[2]=this.h2,e[3]=this.h3,t},x.prototype.buffer=x.prototype.arrayBuffer,x.prototype.base64=function(){for(var t,e,n,r="",o=this.array(),i=0;i<15;)t=o[i++],e=o[i++],n=o[i++],r+=p[t>>>2]+p[63&(t<<4|e>>>4)]+p[63&(e<<2|n>>>6)]+p[63&n];return t=o[i],r+=p[t>>>2]+p[t<<4&63]+"=="},E.prototype=new x,E.prototype.finalize=function(){if(x.prototype.finalize.call(this),this.inner){this.inner=!1;var t=this.array();x.call(this,this.sharedMemory),this.update(this.oKeyPad),this.update(t),x.prototype.finalize.call(this)}};var B=function(){var t=b("hex");i&&(t=w(t)),t.create=function(){return new x},t.update=function(e){return t.create().update(e)};for(var e=0;e<h.length;++e){var n=h[e];t[n]=b(n)}return t}();B.md5=B,B.md5.hmac=function(){var t=_("hex");t.create=function(t){return new E(t)},t.update=function(e,n){return t.create(e).update(n)};for(var e=0;e<h.length;++e){var n=h[e];t[n]=_(n)}return t}(),u?t.exports=B:r.md5=B}()}(Rc);var kc=Rc.exports;for(var Dc={},Mc={byteLength:function(t){var e=qc(t),n=e[0],r=e[1];return 3*(n+r)/4-r},toByteArray:function(t){var e,n,r=qc(t),o=r[0],i=r[1],s=new Uc(function(t,e,n){return 3*(e+n)/4-n}(0,o,i)),u=0,c=i>0?o-4:o;for(n=0;n<c;n+=4)e=Lc[t.charCodeAt(n)]<<18|Lc[t.charCodeAt(n+1)]<<12|Lc[t.charCodeAt(n+2)]<<6|Lc[t.charCodeAt(n+3)],s[u++]=e>>16&255,s[u++]=e>>8&255,s[u++]=255&e;2===i&&(e=Lc[t.charCodeAt(n)]<<2|Lc[t.charCodeAt(n+1)]>>4,s[u++]=255&e);1===i&&(e=Lc[t.charCodeAt(n)]<<10|Lc[t.charCodeAt(n+1)]<<4|Lc[t.charCodeAt(n+2)]>>2,s[u++]=e>>8&255,s[u++]=255&e);return s},fromByteArray:function(t){for(var e,n=t.length,r=n%3,o=[],i=16383,s=0,u=n-r;s<u;s+=i)o.push(Hc(t,s,s+i>u?u:s+i));1===r?(e=t[n-1],o.push(jc[e>>2]+jc[e<<4&63]+"==")):2===r&&(e=(t[n-2]<<8)+t[n-1],o.push(jc[e>>10]+jc[e>>4&63]+jc[e<<2&63]+"="));return o.join("")}},jc=[],Lc=[],Uc="undefined"!=typeof Uint8Array?Uint8Array:Array,Nc="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Vc=0;Vc<64;++Vc)jc[Vc]=Nc[Vc],Lc[Nc.charCodeAt(Vc)]=Vc;function qc(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");return-1===n&&(n=e),[n,n===e?0:4-n%4]}function Hc(t,e,n){for(var r,o,i=[],s=e;s<n;s+=3)r=(t[s]<<16&16711680)+(t[s+1]<<8&65280)+(255&t[s+2]),i.push(jc[(o=r)>>18&63]+jc[o>>12&63]+jc[o>>6&63]+jc[63&o]);return i.join("")}Lc["-".charCodeAt(0)]=62,Lc["_".charCodeAt(0)]=63;var zc={
|
|
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
read:function(t,e,n,r,o){var i,s,u=8*o-r-1,c=(1<<u)-1,f=c>>1,a=-7,l=n?o-1:0,h=n?-1:1,p=t[e+l];for(l+=h,i=p&(1<<-a)-1,p>>=-a,a+=u;a>0;i=256*i+t[e+l],l+=h,a-=8);for(s=i&(1<<-a)-1,i>>=-a,a+=r;a>0;s=256*s+t[e+l],l+=h,a-=8);if(0===i)i=1-f;else{if(i===c)return s?NaN:1/0*(p?-1:1);s+=Math.pow(2,r),i-=f}return(p?-1:1)*s*Math.pow(2,i-r)},write:function(t,e,n,r,o,i){var s,u,c,f=8*i-o-1,a=(1<<f)-1,l=a>>1,h=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:i-1,d=r?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(u=isNaN(e)?1:0,s=a):(s=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-s))<1&&(s--,c*=2),(e+=s+l>=1?h/c:h*Math.pow(2,1-l))*c>=2&&(s++,c/=2),s+l>=a?(u=0,s=a):s+l>=1?(u=(e*c-1)*Math.pow(2,o),s+=l):(u=e*Math.pow(2,l-1)*Math.pow(2,o),s=0));o>=8;t[n+p]=255&u,p+=d,u/=256,o-=8);for(s=s<<o|u,f+=o;f>0;t[n+p]=255&s,p+=d,s/=256,f-=8);t[n+p-d]|=128*g}};
|
|
/*!
|
|
* The buffer module from node.js, for the browser.
|
|
*
|
|
* @author Feross Aboukhadijeh <https://feross.org>
|
|
* @license MIT
|
|
*/
|
|
!function(t){const e=Mc,n=zc,r="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=s,t.SlowBuffer=function(t){+t!=t&&(t=0);return s.alloc(+t)},t.INSPECT_MAX_BYTES=50;const o=2147483647;function i(t){if(t>o)throw new RangeError('The value "'+t+'" is invalid for option "size"');const e=new Uint8Array(t);return Object.setPrototypeOf(e,s.prototype),e}function s(t,e,n){if("number"==typeof t){if("string"==typeof e)throw new TypeError('The "string" argument must be of type string. Received type number');return f(t)}return u(t,e,n)}function u(t,e,n){if("string"==typeof t)return function(t,e){"string"==typeof e&&""!==e||(e="utf8");if(!s.isEncoding(e))throw new TypeError("Unknown encoding: "+e);const n=0|p(t,e);let r=i(n);const o=r.write(t,e);o!==n&&(r=r.slice(0,o));return r}(t,e);if(ArrayBuffer.isView(t))return function(t){if(W(t,Uint8Array)){const e=new Uint8Array(t);return l(e.buffer,e.byteOffset,e.byteLength)}return a(t)}(t);if(null==t)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(W(t,ArrayBuffer)||t&&W(t.buffer,ArrayBuffer))return l(t,e,n);if("undefined"!=typeof SharedArrayBuffer&&(W(t,SharedArrayBuffer)||t&&W(t.buffer,SharedArrayBuffer)))return l(t,e,n);if("number"==typeof t)throw new TypeError('The "value" argument must not be of type number. Received type number');const r=t.valueOf&&t.valueOf();if(null!=r&&r!==t)return s.from(r,e,n);const o=function(t){if(s.isBuffer(t)){const e=0|h(t.length),n=i(e);return 0===n.length||t.copy(n,0,0,e),n}if(void 0!==t.length)return"number"!=typeof t.length||Z(t.length)?i(0):a(t);if("Buffer"===t.type&&Array.isArray(t.data))return a(t.data)}(t);if(o)return o;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return s.from(t[Symbol.toPrimitive]("string"),e,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function c(t){if("number"!=typeof t)throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function f(t){return c(t),i(t<0?0:0|h(t))}function a(t){const e=t.length<0?0:0|h(t.length),n=i(e);for(let r=0;r<e;r+=1)n[r]=255&t[r];return n}function l(t,e,n){if(e<0||t.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(n||0))throw new RangeError('"length" is outside of buffer bounds');let r;return r=void 0===e&&void 0===n?new Uint8Array(t):void 0===n?new Uint8Array(t,e):new Uint8Array(t,e,n),Object.setPrototypeOf(r,s.prototype),r}function h(t){if(t>=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return 0|t}function p(t,e){if(s.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||W(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);const n=t.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;let o=!1;for(;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return H(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return z(t).length;default:if(o)return r?-1:H(t).length;e=(""+e).toLowerCase(),o=!0}}function d(t,e,n){let r=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return T(this,e,n);case"utf8":case"utf-8":return B(this,e,n);case"ascii":return A(this,e,n);case"latin1":case"binary":return I(this,e,n);case"base64":return E(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function g(t,e,n){const r=t[e];t[e]=t[n],t[n]=r}function y(t,e,n,r,o){if(0===t.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),Z(n=+n)&&(n=o?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(o)return-1;n=t.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof e&&(e=s.from(e,r)),s.isBuffer(e))return 0===e.length?-1:m(t,e,n,r,o);if("number"==typeof e)return e&=255,"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):m(t,[e],n,r,o);throw new TypeError("val must be string, number or Buffer")}function m(t,e,n,r,o){let i,s=1,u=t.length,c=e.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;s=2,u/=2,c/=2,n/=2}function f(t,e){return 1===s?t[e]:t.readUInt16BE(e*s)}if(o){let r=-1;for(i=n;i<u;i++)if(f(t,i)===f(e,-1===r?0:i-r)){if(-1===r&&(r=i),i-r+1===c)return r*s}else-1!==r&&(i-=i-r),r=-1}else for(n+c>u&&(n=u-c),i=n;i>=0;i--){let n=!0;for(let r=0;r<c;r++)if(f(t,i+r)!==f(e,r)){n=!1;break}if(n)return i}return-1}function v(t,e,n,r){n=Number(n)||0;const o=t.length-n;r?(r=Number(r))>o&&(r=o):r=o;const i=e.length;let s;for(r>i/2&&(r=i/2),s=0;s<r;++s){const r=parseInt(e.substr(2*s,2),16);if(Z(r))return s;t[n+s]=r}return s}function b(t,e,n,r){return K(H(e,t.length-n),t,n,r)}function w(t,e,n,r){return K(function(t){const e=[];for(let n=0;n<t.length;++n)e.push(255&t.charCodeAt(n));return e}(e),t,n,r)}function _(t,e,n,r){return K(z(e),t,n,r)}function x(t,e,n,r){return K(function(t,e){let n,r,o;const i=[];for(let s=0;s<t.length&&!((e-=2)<0);++s)n=t.charCodeAt(s),r=n>>8,o=n%256,i.push(o),i.push(r);return i}(e,t.length-n),t,n,r)}function E(t,n,r){return 0===n&&r===t.length?e.fromByteArray(t):e.fromByteArray(t.slice(n,r))}function B(t,e,n){n=Math.min(t.length,n);const r=[];let o=e;for(;o<n;){const e=t[o];let i=null,s=e>239?4:e>223?3:e>191?2:1;if(o+s<=n){let n,r,u,c;switch(s){case 1:e<128&&(i=e);break;case 2:n=t[o+1],128==(192&n)&&(c=(31&e)<<6|63&n,c>127&&(i=c));break;case 3:n=t[o+1],r=t[o+2],128==(192&n)&&128==(192&r)&&(c=(15&e)<<12|(63&n)<<6|63&r,c>2047&&(c<55296||c>57343)&&(i=c));break;case 4:n=t[o+1],r=t[o+2],u=t[o+3],128==(192&n)&&128==(192&r)&&128==(192&u)&&(c=(15&e)<<18|(63&n)<<12|(63&r)<<6|63&u,c>65535&&c<1114112&&(i=c))}}null===i?(i=65533,s=1):i>65535&&(i-=65536,r.push(i>>>10&1023|55296),i=56320|1023&i),r.push(i),o+=s}return function(t){const e=t.length;if(e<=S)return String.fromCharCode.apply(String,t);let n="",r=0;for(;r<e;)n+=String.fromCharCode.apply(String,t.slice(r,r+=S));return n}(r)}t.kMaxLength=o,s.TYPED_ARRAY_SUPPORT=function(){try{const t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),42===t.foo()}catch(t){return!1}}(),s.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}}),s.poolSize=8192,s.from=function(t,e,n){return u(t,e,n)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array),s.alloc=function(t,e,n){return function(t,e,n){return c(t),t<=0?i(t):void 0!==e?"string"==typeof n?i(t).fill(e,n):i(t).fill(e):i(t)}(t,e,n)},s.allocUnsafe=function(t){return f(t)},s.allocUnsafeSlow=function(t){return f(t)},s.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==s.prototype},s.compare=function(t,e){if(W(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),W(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(t)||!s.isBuffer(e))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;let n=t.length,r=e.length;for(let o=0,i=Math.min(n,r);o<i;++o)if(t[o]!==e[o]){n=t[o],r=e[o];break}return n<r?-1:r<n?1:0},s.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},s.concat=function(t,e){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return s.alloc(0);let n;if(void 0===e)for(e=0,n=0;n<t.length;++n)e+=t[n].length;const r=s.allocUnsafe(e);let o=0;for(n=0;n<t.length;++n){let e=t[n];if(W(e,Uint8Array))o+e.length>r.length?(s.isBuffer(e)||(e=s.from(e)),e.copy(r,o)):Uint8Array.prototype.set.call(r,e,o);else{if(!s.isBuffer(e))throw new TypeError('"list" argument must be an Array of Buffers');e.copy(r,o)}o+=e.length}return r},s.byteLength=p,s.prototype._isBuffer=!0,s.prototype.swap16=function(){const t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let e=0;e<t;e+=2)g(this,e,e+1);return this},s.prototype.swap32=function(){const t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let e=0;e<t;e+=4)g(this,e,e+3),g(this,e+1,e+2);return this},s.prototype.swap64=function(){const t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let e=0;e<t;e+=8)g(this,e,e+7),g(this,e+1,e+6),g(this,e+2,e+5),g(this,e+3,e+4);return this},s.prototype.toString=function(){const t=this.length;return 0===t?"":0===arguments.length?B(this,0,t):d.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(t){if(!s.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===s.compare(this,t)},s.prototype.inspect=function(){let e="";const n=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(e+=" ... "),"<Buffer "+e+">"},r&&(s.prototype[r]=s.prototype.inspect),s.prototype.compare=function(t,e,n,r,o){if(W(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),e<0||n>t.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&e>=n)return 0;if(r>=o)return-1;if(e>=n)return 1;if(this===t)return 0;let i=(o>>>=0)-(r>>>=0),u=(n>>>=0)-(e>>>=0);const c=Math.min(i,u),f=this.slice(r,o),a=t.slice(e,n);for(let s=0;s<c;++s)if(f[s]!==a[s]){i=f[s],u=a[s];break}return i<u?-1:u<i?1:0},s.prototype.includes=function(t,e,n){return-1!==this.indexOf(t,e,n)},s.prototype.indexOf=function(t,e,n){return y(this,t,e,n,!0)},s.prototype.lastIndexOf=function(t,e,n){return y(this,t,e,n,!1)},s.prototype.write=function(t,e,n,r){if(void 0===e)r="utf8",n=this.length,e=0;else if(void 0===n&&"string"==typeof e)r=e,n=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e>>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}const o=this.length-e;if((void 0===n||n>o)&&(n=o),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");let i=!1;for(;;)switch(r){case"hex":return v(this,t,e,n);case"utf8":case"utf-8":return b(this,t,e,n);case"ascii":case"latin1":case"binary":return w(this,t,e,n);case"base64":return _(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return x(this,t,e,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const S=4096;function A(t,e,n){let r="";n=Math.min(t.length,n);for(let o=e;o<n;++o)r+=String.fromCharCode(127&t[o]);return r}function I(t,e,n){let r="";n=Math.min(t.length,n);for(let o=e;o<n;++o)r+=String.fromCharCode(t[o]);return r}function T(t,e,n){const r=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>r)&&(n=r);let o="";for(let i=e;i<n;++i)o+=Y[t[i]];return o}function O(t,e,n){const r=t.slice(e,n);let o="";for(let i=0;i<r.length-1;i+=2)o+=String.fromCharCode(r[i]+256*r[i+1]);return o}function $(t,e,n){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>n)throw new RangeError("Trying to access beyond buffer length")}function F(t,e,n,r,o,i){if(!s.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>o||e<i)throw new RangeError('"value" argument is out of bounds');if(n+r>t.length)throw new RangeError("Index out of range")}function P(t,e,n,r,o){U(e,r,o,t,n,7);let i=Number(e&BigInt(4294967295));t[n++]=i,i>>=8,t[n++]=i,i>>=8,t[n++]=i,i>>=8,t[n++]=i;let s=Number(e>>BigInt(32)&BigInt(4294967295));return t[n++]=s,s>>=8,t[n++]=s,s>>=8,t[n++]=s,s>>=8,t[n++]=s,n}function R(t,e,n,r,o){U(e,r,o,t,n,7);let i=Number(e&BigInt(4294967295));t[n+7]=i,i>>=8,t[n+6]=i,i>>=8,t[n+5]=i,i>>=8,t[n+4]=i;let s=Number(e>>BigInt(32)&BigInt(4294967295));return t[n+3]=s,s>>=8,t[n+2]=s,s>>=8,t[n+1]=s,s>>=8,t[n]=s,n+8}function C(t,e,n,r,o,i){if(n+r>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function k(t,e,r,o,i){return e=+e,r>>>=0,i||C(t,0,r,4),n.write(t,e,r,o,23,4),r+4}function D(t,e,r,o,i){return e=+e,r>>>=0,i||C(t,0,r,8),n.write(t,e,r,o,52,8),r+8}s.prototype.slice=function(t,e){const n=this.length;(t=~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),(e=void 0===e?n:~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),e<t&&(e=t);const r=this.subarray(t,e);return Object.setPrototypeOf(r,s.prototype),r},s.prototype.readUintLE=s.prototype.readUIntLE=function(t,e,n){t>>>=0,e>>>=0,n||$(t,e,this.length);let r=this[t],o=1,i=0;for(;++i<e&&(o*=256);)r+=this[t+i]*o;return r},s.prototype.readUintBE=s.prototype.readUIntBE=function(t,e,n){t>>>=0,e>>>=0,n||$(t,e,this.length);let r=this[t+--e],o=1;for(;e>0&&(o*=256);)r+=this[t+--e]*o;return r},s.prototype.readUint8=s.prototype.readUInt8=function(t,e){return t>>>=0,e||$(t,1,this.length),this[t]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(t,e){return t>>>=0,e||$(t,2,this.length),this[t]|this[t+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(t,e){return t>>>=0,e||$(t,2,this.length),this[t]<<8|this[t+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(t,e){return t>>>=0,e||$(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(t,e){return t>>>=0,e||$(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},s.prototype.readBigUInt64LE=G((function(t){N(t>>>=0,"offset");const e=this[t],n=this[t+7];void 0!==e&&void 0!==n||V(t,this.length-8);const r=e+256*this[++t]+65536*this[++t]+this[++t]*2**24,o=this[++t]+256*this[++t]+65536*this[++t]+n*2**24;return BigInt(r)+(BigInt(o)<<BigInt(32))})),s.prototype.readBigUInt64BE=G((function(t){N(t>>>=0,"offset");const e=this[t],n=this[t+7];void 0!==e&&void 0!==n||V(t,this.length-8);const r=e*2**24+65536*this[++t]+256*this[++t]+this[++t],o=this[++t]*2**24+65536*this[++t]+256*this[++t]+n;return(BigInt(r)<<BigInt(32))+BigInt(o)})),s.prototype.readIntLE=function(t,e,n){t>>>=0,e>>>=0,n||$(t,e,this.length);let r=this[t],o=1,i=0;for(;++i<e&&(o*=256);)r+=this[t+i]*o;return o*=128,r>=o&&(r-=Math.pow(2,8*e)),r},s.prototype.readIntBE=function(t,e,n){t>>>=0,e>>>=0,n||$(t,e,this.length);let r=e,o=1,i=this[t+--r];for(;r>0&&(o*=256);)i+=this[t+--r]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*e)),i},s.prototype.readInt8=function(t,e){return t>>>=0,e||$(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},s.prototype.readInt16LE=function(t,e){t>>>=0,e||$(t,2,this.length);const n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},s.prototype.readInt16BE=function(t,e){t>>>=0,e||$(t,2,this.length);const n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},s.prototype.readInt32LE=function(t,e){return t>>>=0,e||$(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},s.prototype.readInt32BE=function(t,e){return t>>>=0,e||$(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},s.prototype.readBigInt64LE=G((function(t){N(t>>>=0,"offset");const e=this[t],n=this[t+7];void 0!==e&&void 0!==n||V(t,this.length-8);const r=this[t+4]+256*this[t+5]+65536*this[t+6]+(n<<24);return(BigInt(r)<<BigInt(32))+BigInt(e+256*this[++t]+65536*this[++t]+this[++t]*2**24)})),s.prototype.readBigInt64BE=G((function(t){N(t>>>=0,"offset");const e=this[t],n=this[t+7];void 0!==e&&void 0!==n||V(t,this.length-8);const r=(e<<24)+65536*this[++t]+256*this[++t]+this[++t];return(BigInt(r)<<BigInt(32))+BigInt(this[++t]*2**24+65536*this[++t]+256*this[++t]+n)})),s.prototype.readFloatLE=function(t,e){return t>>>=0,e||$(t,4,this.length),n.read(this,t,!0,23,4)},s.prototype.readFloatBE=function(t,e){return t>>>=0,e||$(t,4,this.length),n.read(this,t,!1,23,4)},s.prototype.readDoubleLE=function(t,e){return t>>>=0,e||$(t,8,this.length),n.read(this,t,!0,52,8)},s.prototype.readDoubleBE=function(t,e){return t>>>=0,e||$(t,8,this.length),n.read(this,t,!1,52,8)},s.prototype.writeUintLE=s.prototype.writeUIntLE=function(t,e,n,r){if(t=+t,e>>>=0,n>>>=0,!r){F(this,t,e,n,Math.pow(2,8*n)-1,0)}let o=1,i=0;for(this[e]=255&t;++i<n&&(o*=256);)this[e+i]=t/o&255;return e+n},s.prototype.writeUintBE=s.prototype.writeUIntBE=function(t,e,n,r){if(t=+t,e>>>=0,n>>>=0,!r){F(this,t,e,n,Math.pow(2,8*n)-1,0)}let o=n-1,i=1;for(this[e+o]=255&t;--o>=0&&(i*=256);)this[e+o]=t/i&255;return e+n},s.prototype.writeUint8=s.prototype.writeUInt8=function(t,e,n){return t=+t,e>>>=0,n||F(this,t,e,1,255,0),this[e]=255&t,e+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(t,e,n){return t=+t,e>>>=0,n||F(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(t,e,n){return t=+t,e>>>=0,n||F(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(t,e,n){return t=+t,e>>>=0,n||F(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(t,e,n){return t=+t,e>>>=0,n||F(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},s.prototype.writeBigUInt64LE=G((function(t,e=0){return P(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))})),s.prototype.writeBigUInt64BE=G((function(t,e=0){return R(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))})),s.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e>>>=0,!r){const r=Math.pow(2,8*n-1);F(this,t,e,n,r-1,-r)}let o=0,i=1,s=0;for(this[e]=255&t;++o<n&&(i*=256);)t<0&&0===s&&0!==this[e+o-1]&&(s=1),this[e+o]=(t/i|0)-s&255;return e+n},s.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e>>>=0,!r){const r=Math.pow(2,8*n-1);F(this,t,e,n,r-1,-r)}let o=n-1,i=1,s=0;for(this[e+o]=255&t;--o>=0&&(i*=256);)t<0&&0===s&&0!==this[e+o+1]&&(s=1),this[e+o]=(t/i|0)-s&255;return e+n},s.prototype.writeInt8=function(t,e,n){return t=+t,e>>>=0,n||F(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},s.prototype.writeInt16LE=function(t,e,n){return t=+t,e>>>=0,n||F(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},s.prototype.writeInt16BE=function(t,e,n){return t=+t,e>>>=0,n||F(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},s.prototype.writeInt32LE=function(t,e,n){return t=+t,e>>>=0,n||F(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},s.prototype.writeInt32BE=function(t,e,n){return t=+t,e>>>=0,n||F(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},s.prototype.writeBigInt64LE=G((function(t,e=0){return P(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),s.prototype.writeBigInt64BE=G((function(t,e=0){return R(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),s.prototype.writeFloatLE=function(t,e,n){return k(this,t,e,!0,n)},s.prototype.writeFloatBE=function(t,e,n){return k(this,t,e,!1,n)},s.prototype.writeDoubleLE=function(t,e,n){return D(this,t,e,!0,n)},s.prototype.writeDoubleBE=function(t,e,n){return D(this,t,e,!1,n)},s.prototype.copy=function(t,e,n,r){if(!s.isBuffer(t))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e<r-n&&(r=t.length-e+n);const o=r-n;return this===t&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(e,n,r):Uint8Array.prototype.set.call(t,this.subarray(n,r),e),o},s.prototype.fill=function(t,e,n,r){if("string"==typeof t){if("string"==typeof e?(r=e,e=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!s.isEncoding(r))throw new TypeError("Unknown encoding: "+r);if(1===t.length){const e=t.charCodeAt(0);("utf8"===r&&e<128||"latin1"===r)&&(t=e)}}else"number"==typeof t?t&=255:"boolean"==typeof t&&(t=Number(t));if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;let o;if(e>>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"==typeof t)for(o=e;o<n;++o)this[o]=t;else{const i=s.isBuffer(t)?t:s.from(t,r),u=i.length;if(0===u)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(o=0;o<n-e;++o)this[o+e]=i[o%u]}return this};const M={};function j(t,e,n){M[t]=class extends n{constructor(){super(),Object.defineProperty(this,"message",{value:e.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${t}]`,this.stack,delete this.name}get code(){return t}set code(t){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:t,writable:!0})}toString(){return`${this.name} [${t}]: ${this.message}`}}}function L(t){let e="",n=t.length;const r="-"===t[0]?1:0;for(;n>=r+4;n-=3)e=`_${t.slice(n-3,n)}${e}`;return`${t.slice(0,n)}${e}`}function U(t,e,n,r,o,i){if(t>n||t<e){const n="bigint"==typeof e?"n":"";let r;throw r=0===e||e===BigInt(0)?`>= 0${n} and < 2${n} ** ${8*(i+1)}${n}`:`>= -(2${n} ** ${8*(i+1)-1}${n}) and < 2 ** ${8*(i+1)-1}${n}`,new M.ERR_OUT_OF_RANGE("value",r,t)}!function(t,e,n){N(e,"offset"),void 0!==t[e]&&void 0!==t[e+n]||V(e,t.length-(n+1))}(r,o,i)}function N(t,e){if("number"!=typeof t)throw new M.ERR_INVALID_ARG_TYPE(e,"number",t)}function V(t,e,n){if(Math.floor(t)!==t)throw N(t,n),new M.ERR_OUT_OF_RANGE("offset","an integer",t);if(e<0)throw new M.ERR_BUFFER_OUT_OF_BOUNDS;throw new M.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${e}`,t)}j("ERR_BUFFER_OUT_OF_BOUNDS",(function(t){return t?`${t} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),j("ERR_INVALID_ARG_TYPE",(function(t,e){return`The "${t}" argument must be of type number. Received type ${typeof e}`}),TypeError),j("ERR_OUT_OF_RANGE",(function(t,e,n){let r=`The value of "${t}" is out of range.`,o=n;return Number.isInteger(n)&&Math.abs(n)>2**32?o=L(String(n)):"bigint"==typeof n&&(o=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(o=L(o)),o+="n"),r+=` It must be ${e}. Received ${o}`,r}),RangeError);const q=/[^+/0-9A-Za-z-_]/g;function H(t,e){let n;e=e||1/0;const r=t.length;let o=null;const i=[];for(let s=0;s<r;++s){if(n=t.charCodeAt(s),n>55295&&n<57344){if(!o){if(n>56319){(e-=3)>-1&&i.push(239,191,189);continue}if(s+1===r){(e-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(e-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(e-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((e-=1)<0)break;i.push(n)}else if(n<2048){if((e-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function z(t){return e.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(q,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function K(t,e,n,r){let o;for(o=0;o<r&&!(o+n>=e.length||o>=t.length);++o)e[o+n]=t[o];return o}function W(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}function Z(t){return t!=t}const Y=function(){const t="0123456789abcdef",e=new Array(256);for(let n=0;n<16;++n){const r=16*n;for(let o=0;o<16;++o)e[r+o]=t[n]+t[o]}return e}();function G(t){return"undefined"==typeof BigInt?J:t}function J(){throw new Error("BigInt not supported")}}(Dc);const Kc=(t,e)=>Dc.Buffer.from(t,e);function Wc(t,e){const n=(t,n)=>e(Kc(t),n)>>>0;return n.signed=(t,n)=>e(Kc(t),n),n.unsigned=n,n.model=t,n}const Zc=Wc("crc1",((t,e=0)=>{let n=~~e,r=0;for(let o=0;o<t.length;o++)r+=t[o];return n+=r%256,n%256}));let Yc=[0,7,14,9,28,27,18,21,56,63,54,49,36,35,42,45,112,119,126,121,108,107,98,101,72,79,70,65,84,83,90,93,224,231,238,233,252,251,242,245,216,223,214,209,196,195,202,205,144,151,158,153,140,139,130,133,168,175,166,161,180,179,186,189,199,192,201,206,219,220,213,210,255,248,241,246,227,228,237,234,183,176,185,190,171,172,165,162,143,136,129,134,147,148,157,154,39,32,41,46,59,60,53,50,31,24,17,22,3,4,13,10,87,80,89,94,75,76,69,66,111,104,97,102,115,116,125,122,137,142,135,128,149,146,155,156,177,182,191,184,173,170,163,164,249,254,247,240,229,226,235,236,193,198,207,200,221,218,211,212,105,110,103,96,117,114,123,124,81,86,95,88,77,74,67,68,25,30,23,16,5,2,11,12,33,38,47,40,61,58,51,52,78,73,64,71,82,85,92,91,118,113,120,127,106,109,100,99,62,57,48,55,34,37,44,43,6,1,8,15,26,29,20,19,174,169,160,167,178,181,188,187,150,145,152,159,138,141,132,131,222,217,208,215,194,197,204,203,230,225,232,239,250,253,244,243];"undefined"!=typeof Int32Array&&(Yc=new Int32Array(Yc));const Gc=Wc("crc-8",((t,e=0)=>{let n=~~e;for(let r=0;r<t.length;r++)n=255&Yc[255&(n^t[r])];return n}));let Jc=[0,94,188,226,97,63,221,131,194,156,126,32,163,253,31,65,157,195,33,127,252,162,64,30,95,1,227,189,62,96,130,220,35,125,159,193,66,28,254,160,225,191,93,3,128,222,60,98,190,224,2,92,223,129,99,61,124,34,192,158,29,67,161,255,70,24,250,164,39,121,155,197,132,218,56,102,229,187,89,7,219,133,103,57,186,228,6,88,25,71,165,251,120,38,196,154,101,59,217,135,4,90,184,230,167,249,27,69,198,152,122,36,248,166,68,26,153,199,37,123,58,100,134,216,91,5,231,185,140,210,48,110,237,179,81,15,78,16,242,172,47,113,147,205,17,79,173,243,112,46,204,146,211,141,111,49,178,236,14,80,175,241,19,77,206,144,114,44,109,51,209,143,12,82,176,238,50,108,142,208,83,13,239,177,240,174,76,18,145,207,45,115,202,148,118,40,171,245,23,73,8,86,180,234,105,55,213,139,87,9,235,181,54,104,138,212,149,203,41,119,244,170,72,22,233,183,85,11,136,214,52,106,43,117,151,201,74,20,246,168,116,42,200,150,21,75,169,247,182,232,10,84,215,137,107,53];"undefined"!=typeof Int32Array&&(Jc=new Int32Array(Jc));const Xc=Wc("dallas-1-wire",((t,e=0)=>{let n=~~e;for(let r=0;r<t.length;r++)n=255&Jc[255&(n^t[r])];return n}));let Qc=[0,213,127,170,254,43,129,84,41,252,86,131,215,2,168,125,82,135,45,248,172,121,211,6,123,174,4,209,133,80,250,47,164,113,219,14,90,143,37,240,141,88,242,39,115,166,12,217,246,35,137,92,8,221,119,162,223,10,160,117,33,244,94,139,157,72,226,55,99,182,28,201,180,97,203,30,74,159,53,224,207,26,176,101,49,228,78,155,230,51,153,76,24,205,103,178,57,236,70,147,199,18,184,109,16,197,111,186,238,59,145,68,107,190,20,193,149,64,234,63,66,151,61,232,188,105,195,22,239,58,144,69,17,196,110,187,198,19,185,108,56,237,71,146,189,104,194,23,67,150,60,233,148,65,235,62,106,191,21,192,75,158,52,225,181,96,202,31,98,183,29,200,156,73,227,54,25,204,102,179,231,50,152,77,48,229,79,154,206,27,177,100,114,167,13,216,140,89,243,38,91,142,36,241,165,112,218,15,32,245,95,138,222,11,161,116,9,220,118,163,247,34,136,93,214,3,169,124,40,253,87,130,255,42,128,85,1,212,126,171,132,81,251,46,122,175,5,208,173,120,210,7,83,134,44,249];"undefined"!=typeof Int32Array&&(Qc=new Int32Array(Qc));const tf=Wc("crc-8-dvbs2",((t,e=0)=>{let n=~~e;for(let r=0;r<t.length;r++)n=255&Qc[255&(n^t[r])];return n}));let ef=[0,49345,49537,320,49921,960,640,49729,50689,1728,1920,51009,1280,50625,50305,1088,52225,3264,3456,52545,3840,53185,52865,3648,2560,51905,52097,2880,51457,2496,2176,51265,55297,6336,6528,55617,6912,56257,55937,6720,7680,57025,57217,8e3,56577,7616,7296,56385,5120,54465,54657,5440,55041,6080,5760,54849,53761,4800,4992,54081,4352,53697,53377,4160,61441,12480,12672,61761,13056,62401,62081,12864,13824,63169,63361,14144,62721,13760,13440,62529,15360,64705,64897,15680,65281,16320,16e3,65089,64001,15040,15232,64321,14592,63937,63617,14400,10240,59585,59777,10560,60161,11200,10880,59969,60929,11968,12160,61249,11520,60865,60545,11328,58369,9408,9600,58689,9984,59329,59009,9792,8704,58049,58241,9024,57601,8640,8320,57409,40961,24768,24960,41281,25344,41921,41601,25152,26112,42689,42881,26432,42241,26048,25728,42049,27648,44225,44417,27968,44801,28608,28288,44609,43521,27328,27520,43841,26880,43457,43137,26688,30720,47297,47489,31040,47873,31680,31360,47681,48641,32448,32640,48961,32e3,48577,48257,31808,46081,29888,30080,46401,30464,47041,46721,30272,29184,45761,45953,29504,45313,29120,28800,45121,20480,37057,37249,20800,37633,21440,21120,37441,38401,22208,22400,38721,21760,38337,38017,21568,39937,23744,23936,40257,24320,40897,40577,24128,23040,39617,39809,23360,39169,22976,22656,38977,34817,18624,18816,35137,19200,35777,35457,19008,19968,36545,36737,20288,36097,19904,19584,35905,17408,33985,34177,17728,34561,18368,18048,34369,33281,17088,17280,33601,16640,33217,32897,16448];"undefined"!=typeof Int32Array&&(ef=new Int32Array(ef));const nf=Wc("crc-16",((t,e=0)=>{let n=~~e;for(let r=0;r<t.length;r++)n=65535&(ef[255&(n^t[r])]^n>>8);return n}));let rf=[0,4129,8258,12387,16516,20645,24774,28903,33032,37161,41290,45419,49548,53677,57806,61935,4657,528,12915,8786,21173,17044,29431,25302,37689,33560,45947,41818,54205,50076,62463,58334,9314,13379,1056,5121,25830,29895,17572,21637,42346,46411,34088,38153,58862,62927,50604,54669,13907,9842,5649,1584,30423,26358,22165,18100,46939,42874,38681,34616,63455,59390,55197,51132,18628,22757,26758,30887,2112,6241,10242,14371,51660,55789,59790,63919,35144,39273,43274,47403,23285,19156,31415,27286,6769,2640,14899,10770,56317,52188,64447,60318,39801,35672,47931,43802,27814,31879,19684,23749,11298,15363,3168,7233,60846,64911,52716,56781,44330,48395,36200,40265,32407,28342,24277,20212,15891,11826,7761,3696,65439,61374,57309,53244,48923,44858,40793,36728,37256,33193,45514,41451,53516,49453,61774,57711,4224,161,12482,8419,20484,16421,28742,24679,33721,37784,41979,46042,49981,54044,58239,62302,689,4752,8947,13010,16949,21012,25207,29270,46570,42443,38312,34185,62830,58703,54572,50445,13538,9411,5280,1153,29798,25671,21540,17413,42971,47098,34713,38840,59231,63358,50973,55100,9939,14066,1681,5808,26199,30326,17941,22068,55628,51565,63758,59695,39368,35305,47498,43435,22596,18533,30726,26663,6336,2273,14466,10403,52093,56156,60223,64286,35833,39896,43963,48026,19061,23124,27191,31254,2801,6864,10931,14994,64814,60687,56684,52557,48554,44427,40424,36297,31782,27655,23652,19525,15522,11395,7392,3265,61215,65342,53085,57212,44955,49082,36825,40952,28183,32310,20053,24180,11923,16050,3793,7920];"undefined"!=typeof Int32Array&&(rf=new Int32Array(rf));const of=Wc("ccitt",((t,e)=>{let n=void 0!==e?~~e:65535;for(let r=0;r<t.length;r++)n=65535&(rf[255&(n>>8^t[r])]^n<<8);return n}));let sf=[0,49345,49537,320,49921,960,640,49729,50689,1728,1920,51009,1280,50625,50305,1088,52225,3264,3456,52545,3840,53185,52865,3648,2560,51905,52097,2880,51457,2496,2176,51265,55297,6336,6528,55617,6912,56257,55937,6720,7680,57025,57217,8e3,56577,7616,7296,56385,5120,54465,54657,5440,55041,6080,5760,54849,53761,4800,4992,54081,4352,53697,53377,4160,61441,12480,12672,61761,13056,62401,62081,12864,13824,63169,63361,14144,62721,13760,13440,62529,15360,64705,64897,15680,65281,16320,16e3,65089,64001,15040,15232,64321,14592,63937,63617,14400,10240,59585,59777,10560,60161,11200,10880,59969,60929,11968,12160,61249,11520,60865,60545,11328,58369,9408,9600,58689,9984,59329,59009,9792,8704,58049,58241,9024,57601,8640,8320,57409,40961,24768,24960,41281,25344,41921,41601,25152,26112,42689,42881,26432,42241,26048,25728,42049,27648,44225,44417,27968,44801,28608,28288,44609,43521,27328,27520,43841,26880,43457,43137,26688,30720,47297,47489,31040,47873,31680,31360,47681,48641,32448,32640,48961,32e3,48577,48257,31808,46081,29888,30080,46401,30464,47041,46721,30272,29184,45761,45953,29504,45313,29120,28800,45121,20480,37057,37249,20800,37633,21440,21120,37441,38401,22208,22400,38721,21760,38337,38017,21568,39937,23744,23936,40257,24320,40897,40577,24128,23040,39617,39809,23360,39169,22976,22656,38977,34817,18624,18816,35137,19200,35777,35457,19008,19968,36545,36737,20288,36097,19904,19584,35905,17408,33985,34177,17728,34561,18368,18048,34369,33281,17088,17280,33601,16640,33217,32897,16448];"undefined"!=typeof Int32Array&&(sf=new Int32Array(sf));const uf=Wc("crc-16-modbus",((t,e)=>{let n=void 0!==e?~~e:65535;for(let r=0;r<t.length;r++)n=65535&(sf[255&(n^t[r])]^n>>8);return n})),cf=Wc("xmodem",((t,e)=>{let n=void 0!==e?~~e:0;for(let r=0;r<t.length;r++){let e=n>>>8&255;e^=255&t[r],e^=e>>>4,n=n<<8&65535,n^=e,e=e<<5&65535,n^=e,e=e<<7&65535,n^=e}return n}));let ff=[0,4489,8978,12955,17956,22445,25910,29887,35912,40385,44890,48851,51820,56293,59774,63735,4225,264,13203,8730,22181,18220,30135,25662,40137,36160,49115,44626,56045,52068,63999,59510,8450,12427,528,5017,26406,30383,17460,21949,44362,48323,36440,40913,60270,64231,51324,55797,12675,8202,4753,792,30631,26158,21685,17724,48587,44098,40665,36688,64495,60006,55549,51572,16900,21389,24854,28831,1056,5545,10034,14011,52812,57285,60766,64727,34920,39393,43898,47859,21125,17164,29079,24606,5281,1320,14259,9786,57037,53060,64991,60502,39145,35168,48123,43634,25350,29327,16404,20893,9506,13483,1584,6073,61262,65223,52316,56789,43370,47331,35448,39921,29575,25102,20629,16668,13731,9258,5809,1848,65487,60998,56541,52564,47595,43106,39673,35696,33800,38273,42778,46739,49708,54181,57662,61623,2112,6601,11090,15067,20068,24557,28022,31999,38025,34048,47003,42514,53933,49956,61887,57398,6337,2376,15315,10842,24293,20332,32247,27774,42250,46211,34328,38801,58158,62119,49212,53685,10562,14539,2640,7129,28518,32495,19572,24061,46475,41986,38553,34576,62383,57894,53437,49460,14787,10314,6865,2904,32743,28270,23797,19836,50700,55173,58654,62615,32808,37281,41786,45747,19012,23501,26966,30943,3168,7657,12146,16123,54925,50948,62879,58390,37033,33056,46011,41522,23237,19276,31191,26718,7393,3432,16371,11898,59150,63111,50204,54677,41258,45219,33336,37809,27462,31439,18516,23005,11618,15595,3696,8185,63375,58886,54429,50452,45483,40994,37561,33584,31687,27214,22741,18780,15843,11370,7921,3960];"undefined"!=typeof Int32Array&&(ff=new Int32Array(ff));const af=Wc("kermit",((t,e)=>{let n=void 0!==e?~~e:0;for(let r=0;r<t.length;r++)n=65535&(ff[255&(n^t[r])]^n>>8);return n}));let lf=[0,8801531,9098509,825846,9692897,1419802,1651692,10452759,10584377,2608578,2839604,11344079,3303384,11807523,12104405,4128302,12930697,4391538,5217156,13227903,5679208,13690003,14450021,5910942,6606768,14844747,15604413,6837830,16197969,7431594,8256604,16494759,840169,9084178,8783076,18463,10434312,1670131,1434117,9678590,11358416,2825259,2590173,10602790,4109873,12122826,11821884,3289031,13213536,5231515,4409965,12912278,5929345,14431610,13675660,5693559,6823513,15618722,14863188,6588335,16513208,8238147,7417269,16212302,1680338,10481449,9664223,1391140,9061683,788936,36926,8838341,12067563,4091408,3340262,11844381,2868234,11372785,10555655,2579964,14478683,5939616,5650518,13661357,5180346,13190977,12967607,4428364,8219746,16457881,16234863,7468436,15633027,6866552,6578062,14816117,1405499,9649856,10463030,1698765,8819930,55329,803287,9047340,11858690,3325945,4072975,12086004,2561507,10574104,11387118,2853909,13647026,5664841,5958079,14460228,4446803,12949160,13176670,5194661,7454091,16249200,16476294,8201341,14834538,6559633,6852199,15647388,3360676,11864927,12161705,4185682,10527045,2551230,2782280,11286707,9619101,1346150,1577872,10379115,73852,8875143,9172337,899466,16124205,7357910,8182816,16421083,6680524,14918455,15678145,6911546,5736468,13747439,14507289,5968354,12873461,4334094,5159928,13170435,4167245,12180150,11879232,3346363,11301036,2767959,2532769,10545498,10360692,1596303,1360505,9604738,913813,9157998,8856728,92259,16439492,8164415,7343561,16138546,6897189,15692510,14936872,6662099,5986813,14488838,13733104,5750795,13156124,5174247,4352529,12855018,2810998,11315341,10498427,2522496,12124823,4148844,3397530,11901793,9135439,862644,110658,8912057,1606574,10407765,9590435,1317464,15706879,6940164,6651890,14889737,8145950,16384229,16161043,7394792,5123014,13133629,12910283,4370992,14535975,5997020,5707818,13718737,2504095,10516836,11329682,2796649,11916158,3383173,4130419,12143240,8893606,129117,876971,9121104,1331783,9576124,10389322,1625009,14908182,6633453,6925851,15721184,7380471,16175372,16402682,8127489,4389423,12891860,13119266,5137369,13704398,5722165,6015427,14517560];"undefined"!=typeof Int32Array&&(lf=new Int32Array(lf));const hf=Wc("crc-24",((t,e)=>{let n=void 0!==e?~~e:11994318;for(let r=0;r<t.length;r++)n=16777215&(lf[255&(n>>16^t[r])]^n<<8);return n}));let pf=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117];"undefined"!=typeof Int32Array&&(pf=new Int32Array(pf));const df=Wc("crc-32",((t,e)=>{let n=0===e?0:~e;for(let r=0;r<t.length;r++)n=pf[255&(n^t[r])]^n>>>8;return~n}));let gf=[0,79764919,159529838,222504665,319059676,398814059,445009330,507990021,638119352,583659535,797628118,726387553,890018660,835552979,1015980042,944750013,1276238704,1221641927,1167319070,1095957929,1595256236,1540665371,1452775106,1381403509,1780037320,1859660671,1671105958,1733955601,2031960084,2111593891,1889500026,1952343757,2552477408,2632100695,2443283854,2506133561,2334638140,2414271883,2191915858,2254759653,3190512472,3135915759,3081330742,3009969537,2905550212,2850959411,2762807018,2691435357,3560074640,3505614887,3719321342,3648080713,3342211916,3287746299,3467911202,3396681109,4063920168,4143685023,4223187782,4286162673,3779000052,3858754371,3904687514,3967668269,881225847,809987520,1023691545,969234094,662832811,591600412,771767749,717299826,311336399,374308984,453813921,533576470,25881363,88864420,134795389,214552010,2023205639,2086057648,1897238633,1976864222,1804852699,1867694188,1645340341,1724971778,1587496639,1516133128,1461550545,1406951526,1302016099,1230646740,1142491917,1087903418,2896545431,2825181984,2770861561,2716262478,3215044683,3143675388,3055782693,3001194130,2326604591,2389456536,2200899649,2280525302,2578013683,2640855108,2418763421,2498394922,3769900519,3832873040,3912640137,3992402750,4088425275,4151408268,4197601365,4277358050,3334271071,3263032808,3476998961,3422541446,3585640067,3514407732,3694837229,3640369242,1762451694,1842216281,1619975040,1682949687,2047383090,2127137669,1938468188,2001449195,1325665622,1271206113,1183200824,1111960463,1543535498,1489069629,1434599652,1363369299,622672798,568075817,748617968,677256519,907627842,853037301,1067152940,995781531,51762726,131386257,177728840,240578815,269590778,349224269,429104020,491947555,4046411278,4126034873,4172115296,4234965207,3794477266,3874110821,3953728444,4016571915,3609705398,3555108353,3735388376,3664026991,3290680682,3236090077,3449943556,3378572211,3174993278,3120533705,3032266256,2961025959,2923101090,2868635157,2813903052,2742672763,2604032198,2683796849,2461293480,2524268063,2284983834,2364738477,2175806836,2238787779,1569362073,1498123566,1409854455,1355396672,1317987909,1246755826,1192025387,1137557660,2072149281,2135122070,1912620623,1992383480,1753615357,1816598090,1627664531,1707420964,295390185,358241886,404320391,483945776,43990325,106832002,186451547,266083308,932423249,861060070,1041341759,986742920,613929101,542559546,756411363,701822548,3316196985,3244833742,3425377559,3370778784,3601682597,3530312978,3744426955,3689838204,3819031489,3881883254,3928223919,4007849240,4037393693,4100235434,4180117107,4259748804,2310601993,2373574846,2151335527,2231098320,2596047829,2659030626,2470359227,2550115596,2947551409,2876312838,2788305887,2733848168,3165939309,3094707162,3040238851,2985771188];"undefined"!=typeof Int32Array&&(gf=new Int32Array(gf));const yf=Wc("crc-32-mpeg",((t,e)=>{let n=void 0!==e?~~e:4294967295;for(let r=0;r<t.length;r++)n=gf[255&(n>>24^t[r])]^n<<8;return n}));let mf=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117];"undefined"!=typeof Int32Array&&(mf=new Int32Array(mf));const vf={crc1:Zc,crc8:Gc,crc81wire:Xc,crc8dvbs2:tf,crc16:nf,crc16ccitt:of,crc16modbus:uf,crc16xmodem:cf,crc16kermit:af,crc24:hf,crc32:df,crc32mpeg2:yf,crcjam:Wc("jam",((t,e=-1)=>{let n=0===e?0:~~e;for(let r=0;r<t.length;r++)n=mf[255&(n^t[r])]^n>>>8;return n}))};exports._export_sfc=(t,e)=>{const n=t.__vccOpts||t;for(const[r,o]of e)n[r]=o;return n},exports.crc=vf,exports.createPinia=function(){const t=bn(!0),e=t.run((()=>jr({})));let n=[],r=[];const o=Fr({install(t){iu(o),o._a=t,t.provide(su,o),t.config.globalProperties.$pinia=o,r.forEach((t=>n.push(t))),r=[]},use(t){return this._a?n.push(t):r.push(t),this},_p:n,_a:null,_e:t,_s:new Map,state:e});return o},exports.createSSRApp=ys,exports.defineStore=function(t,e,n){let r,o;const i="function"==typeof e;function s(t,n){(t=t||(!!(wi||go||So)?Ao(su,null):null))&&iu(t),(t=ou)._s.has(r)||(i?wu(r,e,o,t):bu(r,o,t));return t._s.get(r)}return r=t,o=i?n:e,s.$id=r,s},exports.index=gn,exports.md5Exports=kc,exports.src=Pc,exports.t=t=>(t=>g(t)?t:null==t?"":l(t)||m(t)&&(t.toString===b||!d(t.toString))?JSON.stringify(t,k,2):String(t))(t),exports.wx$1=dn;
|