hylid-bridge 4.0.3 → 4.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.my=t():e.my=t()}(self,(()=>(()=>{"use strict";var e={5554:e=>{var t="%[a-f0-9]{2}",n=new RegExp("("+t+")|([^%]+?)","gi"),r=new RegExp("("+t+")+","gi");function o(e,t){try{return[decodeURIComponent(e.join(""))]}catch(e){}if(1===e.length)return e;t=t||1;var n=e.slice(0,t),r=e.slice(t);return Array.prototype.concat.call([],o(n),o(r))}function a(e){try{return decodeURIComponent(e)}catch(a){for(var t=e.match(n)||[],r=1;r<t.length;r++)t=(e=o(t,r).join("")).match(n)||[];return e}}e.exports=function(e){if("string"!=typeof e)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch(t){return function(e){for(var t={"%FE%FF":"��","%FF%FE":"��"},n=r.exec(e);n;){try{t[n[0]]=decodeURIComponent(n[0])}catch(e){var o=a(n[0]);o!==n[0]&&(t[n[0]]=o)}n=r.exec(e)}t["%C2"]="�";for(var c=Object.keys(t),i=0;i<c.length;i++){var u=c[i];e=e.replace(new RegExp(u,"g"),t[u])}return e}(e)}}},3563:(e,t,n)=>{function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n(6635);var o=n(5554);function a(e,t){if("string"!=typeof e||"string"!=typeof t)throw new TypeError("Expected the arguments to be of type `string`");if(""===t)return[e];var n=e.indexOf(t);return-1===n?[e]:[e.slice(0,n),e.slice(n+t.length)]}function c(e,t){return t.decode?o(e):e}function i(e){return Array.isArray(e)?e.sort():"object"===r(e)?i(Object.keys(e)).sort((function(e,t){return Number(e)-Number(t)})).map((function(t){return e[t]})):e}function u(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&"string"==typeof e&&""!==e.trim()?e=Number(e):!t.parseBooleans||null===e||"true"!==e.toLowerCase()&&"false"!==e.toLowerCase()||(e="true"===e.toLowerCase()),e}t.Qc=function(e,t){var n=function(e){var t;switch(e.arrayFormat){case"index":return function(e,n,r){t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===r[e]&&(r[e]={}),r[e][t[1]]=n):r[e]=n};case"bracket":return function(e,n,r){t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==r[e]?r[e]=[].concat(r[e],n):r[e]=[n]:r[e]=n};case"comma":return function(e,t,n){var r="string"==typeof t&&t.split("").indexOf(",")>-1?t.split(","):t;n[e]=r};default:return function(e,t,n){void 0!==n[e]?n[e]=[].concat(n[e],t):n[e]=t}}}(t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",parseNumbers:!1,parseBooleans:!1},t)),o=Object.create(null);if("string"!=typeof e)return o;if(!(e=e.trim().replace(/^[?#&]/,"")))return o;var s,p,l=!0,f=!1,y=void 0;try{for(var d,h=e.split("&")[Symbol.iterator]();!(l=(d=h.next()).done);l=!0){var g=(s=a(d.value.replace(/\+/g," "),"="),p=2,function(e){if(Array.isArray(e))return e}(s)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],r=!0,o=!1,a=void 0;try{for(var c,i=e[Symbol.iterator]();!(r=(c=i.next()).done)&&(n.push(c.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==i.return||i.return()}finally{if(o)throw a}}return n}}(s,p)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()),m=g[0];w=void 0===(w=g[1])?null:c(w,t),n(c(m,t),w,o)}}catch(e){f=!0,y=e}finally{try{l||null==h.return||h.return()}finally{if(f)throw y}}for(var v=0,b=Object.keys(o);v<b.length;v++){var w;if(m=b[v],"object"===r(w=o[m])&&null!==w)for(var O=0,S=Object.keys(w);O<S.length;O++){var A=S[O];w[A]=u(w[A],t)}else o[m]=u(w,t)}return!1===t.sort?o:(!0===t.sort?Object.keys(o).sort():Object.keys(o).sort(t.sort)).reduce((function(e,t){var n=o[t];return Boolean(n)&&"object"===r(n)&&!Array.isArray(n)?e[t]=i(n):e[t]=n,e}),Object.create(null))}},6635:e=>{e.exports=function(e){return encodeURIComponent(e).replace(/[!'()*]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}},7375:(e,t)=>{var n=Object.prototype.hasOwnProperty;function r(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch(e){return null}}function o(e){try{return encodeURIComponent(e)}catch(e){return null}}t.stringify=function(e,t){t=t||"";var r,a,c=[];for(a in"string"!=typeof t&&(t="?"),e)if(n.call(e,a)){if((r=e[a])||null!=r&&!isNaN(r)||(r=""),a=o(a),r=o(r),null===a||null===r)continue;c.push(a+"="+r)}return c.length?t+c.join("&"):""},t.parse=function(e){for(var t,n=/([^=?#&]+)=?([^&]*)/g,o={};t=n.exec(e);){var a=r(t[1]),c=r(t[2]);null===a||null===c||a in o||(o[a]=c)}return o}},7245:e=>{e.exports=function(e,t){if(t=t.split(":")[0],!(e=+e))return!1;switch(t){case"http":case"ws":return 80!==e;case"https":case"wss":return 443!==e;case"ftp":return 21!==e;case"gopher":return 70!==e;case"file":return!1}return 0!==e}},5731:(e,t,n)=>{var r=n(7245),o=n(7375),a=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,c=/[\n\r\t]/g,i=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,u=/:\d+$/,s=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,p=/^[a-zA-Z]:/;function l(e){return(e||"").toString().replace(a,"")}var f=[["#","hash"],["?","query"],function(e,t){return h(t.protocol)?e.replace(/\\/g,"/"):e},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d*)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],y={hash:1,query:1};function d(e){var t,r=("undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{}).location||{},o={},a=typeof(e=e||r);if("blob:"===e.protocol)o=new m(unescape(e.pathname),{});else if("string"===a)for(t in o=new m(e,{}),y)delete o[t];else if("object"===a){for(t in e)t in y||(o[t]=e[t]);void 0===o.slashes&&(o.slashes=i.test(e.href))}return o}function h(e){return"file:"===e||"ftp:"===e||"http:"===e||"https:"===e||"ws:"===e||"wss:"===e}function g(e,t){e=(e=l(e)).replace(c,""),t=t||{};var n,r=s.exec(e),o=r[1]?r[1].toLowerCase():"",a=!!r[2],i=!!r[3],u=0;return a?i?(n=r[2]+r[3]+r[4],u=r[2].length+r[3].length):(n=r[2]+r[4],u=r[2].length):i?(n=r[3]+r[4],u=r[3].length):n=r[4],"file:"===o?u>=2&&(n=n.slice(2)):h(o)?n=r[4]:o?a&&(n=n.slice(2)):u>=2&&h(t.protocol)&&(n=r[4]),{protocol:o,slashes:a||h(o),slashesCount:u,rest:n}}function m(e,t,n){if(e=(e=l(e)).replace(c,""),!(this instanceof m))return new m(e,t,n);var a,i,u,s,y,v,b=f.slice(),w=typeof t,O=this,S=0;for("object"!==w&&"string"!==w&&(n=t,t=null),n&&"function"!=typeof n&&(n=o.parse),a=!(i=g(e||"",t=d(t))).protocol&&!i.slashes,O.slashes=i.slashes||a&&t.slashes,O.protocol=i.protocol||t.protocol||"",e=i.rest,("file:"===i.protocol&&(2!==i.slashesCount||p.test(e))||!i.slashes&&(i.protocol||i.slashesCount<2||!h(O.protocol)))&&(b[3]=[/(.*)/,"pathname"]);S<b.length;S++)"function"!=typeof(s=b[S])?(u=s[0],v=s[1],u!=u?O[v]=e:"string"==typeof u?~(y="@"===u?e.lastIndexOf(u):e.indexOf(u))&&("number"==typeof s[2]?(O[v]=e.slice(0,y),e=e.slice(y+s[2])):(O[v]=e.slice(y),e=e.slice(0,y))):(y=u.exec(e))&&(O[v]=y[1],e=e.slice(0,y.index)),O[v]=O[v]||a&&s[3]&&t[v]||"",s[4]&&(O[v]=O[v].toLowerCase())):e=s(e,O);n&&(O.query=n(O.query)),a&&t.slashes&&"/"!==O.pathname.charAt(0)&&(""!==O.pathname||""!==t.pathname)&&(O.pathname=function(e,t){if(""===e)return t;for(var n=(t||"/").split("/").slice(0,-1).concat(e.split("/")),r=n.length,o=n[r-1],a=!1,c=0;r--;)"."===n[r]?n.splice(r,1):".."===n[r]?(n.splice(r,1),c++):c&&(0===r&&(a=!0),n.splice(r,1),c--);return a&&n.unshift(""),"."!==o&&".."!==o||n.push(""),n.join("/")}(O.pathname,t.pathname)),"/"!==O.pathname.charAt(0)&&h(O.protocol)&&(O.pathname="/"+O.pathname),r(O.port,O.protocol)||(O.host=O.hostname,O.port=""),O.username=O.password="",O.auth&&(~(y=O.auth.indexOf(":"))?(O.username=O.auth.slice(0,y),O.username=encodeURIComponent(decodeURIComponent(O.username)),O.password=O.auth.slice(y+1),O.password=encodeURIComponent(decodeURIComponent(O.password))):O.username=encodeURIComponent(decodeURIComponent(O.auth)),O.auth=O.password?O.username+":"+O.password:O.username),O.origin="file:"!==O.protocol&&h(O.protocol)&&O.host?O.protocol+"//"+O.host:"null",O.href=O.toString()}m.prototype={set:function(e,t,n){var a=this;switch(e){case"query":"string"==typeof t&&t.length&&(t=(n||o.parse)(t)),a[e]=t;break;case"port":a[e]=t,r(t,a.protocol)?t&&(a.host=a.hostname+":"+t):(a.host=a.hostname,a[e]="");break;case"hostname":a[e]=t,a.port&&(t+=":"+a.port),a.host=t;break;case"host":a[e]=t,u.test(t)?(t=t.split(":"),a.port=t.pop(),a.hostname=t.join(":")):(a.hostname=t,a.port="");break;case"protocol":a.protocol=t.toLowerCase(),a.slashes=!n;break;case"pathname":case"hash":if(t){var c="pathname"===e?"/":"#";a[e]=t.charAt(0)!==c?c+t:t}else a[e]=t;break;case"username":case"password":a[e]=encodeURIComponent(t);break;case"auth":var i=t.indexOf(":");~i?(a.username=t.slice(0,i),a.username=encodeURIComponent(decodeURIComponent(a.username)),a.password=t.slice(i+1),a.password=encodeURIComponent(decodeURIComponent(a.password))):a.username=encodeURIComponent(decodeURIComponent(t))}for(var s=0;s<f.length;s++){var p=f[s];p[4]&&(a[p[1]]=a[p[1]].toLowerCase())}return a.auth=a.password?a.username+":"+a.password:a.username,a.origin="file:"!==a.protocol&&h(a.protocol)&&a.host?a.protocol+"//"+a.host:"null",a.href=a.toString(),a},toString:function(e){e&&"function"==typeof e||(e=o.stringify);var t,n=this,r=n.host,a=n.protocol;a&&":"!==a.charAt(a.length-1)&&(a+=":");var c=a+(n.protocol&&n.slashes||h(n.protocol)?"//":"");return n.username?(c+=n.username,n.password&&(c+=":"+n.password),c+="@"):n.password?(c+=":"+n.password,c+="@"):"file:"!==n.protocol&&h(n.protocol)&&!r&&"/"!==n.pathname&&(c+="@"),(":"===r[r.length-1]||u.test(n.hostname)&&!n.port)&&(r+=":"),c+=r+n.pathname,(t="object"==typeof n.query?e(n.query):n.query)&&(c+="?"!==t.charAt(0)?"?"+t:t),n.hash&&(c+=n.hash),c}},m.extractProtocol=g,m.location=d,m.trimLeft=l,m.qs=o,e.exports=m}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var a=t[r]={exports:{}};return e[r](a,a.exports,n),a.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var r={};return(()=>{n.d(r,{default:()=>ye});var e=function(e){if(window.AlipayJSBridge)return e();document.addEventListener("AlipayJSBridgeReady",(function(){return e()}),!1)},t=!1,o=[];function a(e){return o.push(e),function(){o=o.filter((function(t){return t!==e}))}}function c(n){return t||(document.addEventListener("onToWebViewMessage",(function(e){var t=e.data.res;if(t&&"message"===t.type){var n=JSON.parse(t.data);o.forEach((function(e){return e(n)}))}})),t=!0),e((function(){window.AlipayJSBridge.call("postWebViewMessage",{type:"message",detail:n})}))}var i={};function u(e,t,n){var r=e+"_"+Math.floor(1e6*Math.random());t&&(i[r]=t),c({source:"hylid",type:"apiCall",api:e,serialId:r,options:t,config:n,isSync:null==n?void 0:n.isSync})}a((function(e){var t,n=e,r=n.serialId;if(r&&i[r]){var o=i[r],a=n.result;if("callback"===(null===(t=n.config)||void 0===t?void 0:t.type)){var c=a||{},u=c._data_;return"success"===c._type_?o(u):o(void 0,u)}var s=o||{},p=s.success,l=s.fail,f=s.complete,y=a||{},d=y._data_,h=y._type_;h?("success"===h&&(null==p||p(d)),"fail"===h&&(null==l||l(d)),null==f||f(d)):((null==a?void 0:a.error)?null==l||l(a):null==p||p(a),null==f||f(a)),delete i[r]}})),u.onMessage=a,u.postMessage=c,u.broadcastGlobalData=function(e,t){c({source:"hylid",type:"broadcast",from:window.location.href,key:e,result:t})},u.onReceiveGlobalData=function(e,t){return a((function(n){var r=n;if("hylid"===r.source&&"broadcast"===r.type&&r.key===e){var o=r.result||{},a=o._data_;return"success"===o._type_?t(a,void 0,r.from):t(void 0,a,r.from)}}))},u.onPageEvent=function(e,t){return c({source:"hylid",type:"pageEvent",event:e}),a((function(n){var r=n;if("hylid"===r.source&&"pageEvent"===r.type&&r.event===e){var o=r.result||{},a=o._data_;return"success"===o._type_?t(a):t(void 0,a)}}))};function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}var p="";function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function y(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a=[],c=!0,i=!1;try{for(n=n.call(e);!(c=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);c=!0);}catch(e){i=!0,o=e}finally{try{c||null==n.return||n.return()}finally{if(i)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var h=["success","fail","complete"],g=function(e){return function(t){return new Promise((function(n,r){var o=t||{},a=o.success,c=o.fail,i=o.complete,u=d(o,h);e(u,(function(e){n(e),null==a||a(e),null==i||i(e)}),(function(e){r(e),null==c||c(e),null==i||i(e)}))}))}},m=function(e){return function(t){return toString.call(t)==="[object ".concat(e,"]")}},v=(m("RegExp"),m("String"),m("Function"),m("Object")),b=(m("Number"),Array.isArray,m("Boolean"),function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce((function(e,t){if(!t)return e;for(var n=Object.entries(t),r=n.length,o=0;o<r;o++){var a=y(n[o],2),c=a[0],i=a[1];v(i)?e[c]=b(e[c],i):Object.assign(e,l({},c,i))}return e}),{})}),w=n(3563),O=n(5731),S=n.n(O);function A(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function C(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?A(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):A(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var P=function(e){return e.openInApp="openinapp",e.openOtherApp="openotherapp",e.openBizScene="openbizscene",e.openPayCodePage="openpaycodepage",e.openApPayCodePage="openappaycodepage",e.openScanPage="openscanpage",e.openInBrowser="openinbrowser",e}(P||{}),j=function(e){return e.scan="scan",e.payCode="payCode",e}(j||{}),k="caprMode=sync";function B(e,t){var n=e.filter((function(e){return e.match.every((function(e){return e.test(t)}))}));if(n.length){var r=n[0].name;if(n.length>1){var o=n.map((function(e){return e.name})).join(",");E("Multiple clients have been identified(".concat(o,"), and the first one(").concat(r,")is used by default."))}return r}}function I(e,t){return Object.keys(e).reduce((function(n,r){return n["is".concat(r)]=t===e[r],n}),{})}function E(e){console.info("[hylid-env]: ".concat(e))}var D={WEB:"web",MPWEB:"mpweb",MP:"mp"},T={DEMO:"demo",ALIPAY:"alipay",ALIPAYHK:"alipayhk",TNGD:"tngd",GCASH:"gcash",TRUEMONEY:"truemoney",DANA:"dana",KAKAOPAY:"kakaopay",KAKAOTALK:"kakaotalk",NAVERPAY:"naverpay",MPAY:"mpay",TOSSPAY:"toss",HIPAY:"hipay",CHOPE:"chope",VODAPAY:"vodapay",CHANGIPAY:"changipay",OCBC:"ocbc",MANDIRI:"mandiri",NAYAPAY:"nayapay",TINABA:"tinaba",KASPI:"kaspi",H5:"h5",WECHAT:"wechat",TNGD_H5NG:"tngdh5ng"},L=/miniprogram/i,N=/^((?!miniprogram).)*$/i,_=/griver/i,R=/^((?!griver).)*$/i,x=[{name:T.DEMO,match:[/demo/]},{name:T.ALIPAY,match:[/alipay/]},{name:T.ALIPAYHK,match:[/hk/]},{name:T.TNGD,match:[/tngd/]},{name:T.GCASH,match:[/gcash/]},{name:T.TRUEMONEY,match:[/tmn/]},{name:T.DANA,match:[/dana/]},{name:T.TOSSPAY,match:[/toss/]}],M=[{name:T.DEMO,match:[/alipayIDE/i]},{name:T.ALIPAYHK,match:[L,R,/AlipayClientHK/]},{name:T.TNGD,match:[L,/TNGKit|Touch 'n Go/]},{name:T.GCASH,match:[L,_,/GCash/]},{name:T.TRUEMONEY,match:[L,_,/TrueMoney/]},{name:T.ALIPAY,match:[L,R,/alipay/i]},{name:T.DEMO,match:[L,_]}];function U(){return B(M,window.navigator.userAgent)}var K=[{name:T.ALIPAYHK,match:[N,R,/AlipayClientHK/]},{name:T.TNGD,match:[N,_,/TNGKit|Touch 'n Go/]},{name:T.TNGD_H5NG,match:[N,/TNGKit|Touch 'n Go/,/IAPWebH5NG/]},{name:T.GCASH,match:[N,_,/GCash/]},{name:T.TRUEMONEY,match:[N,_,/TrueMoney/i]},{name:T.KAKAOPAY,match:[N,/PAYCLIENT|KAKAOTALK|KAKAOPAY/]},{name:T.KAKAOTALK,match:[N,/ALIPAYCONNECT_KAKAO_TALK/]},{name:T.NAVERPAY,match:[N,/NAVER/]},{name:T.MPAY,match:[N,/mpay|macaupay/i]},{name:T.TOSSPAY,match:[N,/Toss/i]},{name:T.ALIPAY,match:[N,R,/AlipayClient/]},{name:T.DEMO,match:[N,_,/GriverDemo/]}];function Y(){return B(K,window.navigator.userAgent)||T.H5}var F=function(){var e,t;if("undefined"!=typeof wx||"undefined"!=typeof my&&"string"==typeof my.SDKVersion)e="undefined"!=typeof wx?T.WECHAT:B(x,my.getSystemInfoSync().app),t=D.MP;else{var n=function(){var e,t=((null===(e=window.location.search)||void 0===e?void 0:e.match(/__app__=([^&]*)/))||[])[1],n=(window.location.search.match(/__platform__=([^&]*)/)||[])[1];(t||n)&&localStorage.setItem("__hy_env__",JSON.stringify({client:t,platform:n}));var r=localStorage.getItem("__hy_env__");return r?JSON.parse(r):{}}();n.platform?(t=n.platform,e=n.client||("mpweb"===t?U():Y())):(e=n.client||U())?t=D.MPWEB:(e=Y(),t=D.WEB)}return t&&e||E("Cannot identify your client."),{client:e,platform:t}}(),G=F.client,W=F.platform;I(T,G),I(D,W);var H,V={NOTFOUND:{code:-1,message:function(e){return"".concat(e," is not found")}},NOTALLOWED:{code:-2,message:function(e){return"".concat(e," is not allowed")}},INVALID:{code:-3,message:function(e){return"".concat(e," is invalid")}},NOTBIND:{code:-4,message:function(e){return"".concat(e," exec fail, webviewBridge not bind context")}},PARAMS_ERROR:{code:-5,message:function(e){return"".concat(e," exec fail, params error")}}},q=((H={})[D.MP]=function(e,t,n){var r=(n||{}).type,o=void 0===r?"async":r;return"sync"===o||(null==n?void 0:n.isSync)?my[e](t):("async"===o&&(my[e]?my[e](t):my.call(e,t)),"callback"===o&&my[e](t),"attribute"===o?my[e]:void 0)},H[D.MPWEB]=u,H[D.WEB]=function(t,n,r){e((function(){var e=(r||{}).type,o=void 0===e?"async":e;"async"===o&&window.AlipayJSBridge.call(t,n,(function(e){var t=n||{},r=t.success,o=t.fail,a=t.complete;e.error?null==o||o(e):null==r||r(e),null==a||a(e)})),"callback"===o&&window.AlipayJSBridge.call(t,n)}))},H);function z(e,t,n){return W?q[W](e,t,n):function(e,t,n){var r;void 0===n&&(n={});var o=n.type,a=void 0===o?"async":o,c=function(e,t){void 0===t&&(t="");var n=V.NOTFOUND;return{errorCode:n.code,errorMessage:(0,n.message)(t),errorSouce:"hylid"}}(0,e);if("sync"===a)return c;"callback"===a&&(null==t||t(c)),"async"===a&&(null===(r=null==t?void 0:t.fail)||void 0===r||r.call(t,c))}(t,n)}function $(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function J(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Q=function(){return z("navigateToBizScene",{sceneCode:"APLUS_QR_PAY"})},Z=function(){return z("navigateToBizScene",{sceneCode:"QR_PAY"})},X=function(){return z("navigateToBizScene",{sceneCode:"SCAN"})},ee=function(e){return z("navigateToBizScene",{sceneCode:"SCHEME",param:{scheme:e.url}})};function te(e){var t=e.url,n=e.path,r=n&&"/"!==n?n:"/pages/index/index";if(!t)return r;var o=r.includes("?")?"&":"?";return"".concat(r).concat(o,"url=").concat(encodeURIComponent(t))}var ne=function(e){return z("navigateTo",{url:te(e)})},re=function(e){return z("navigateToMiniProgram",J(J({},e),{},{extraData:null==e?void 0:e.launchParams}))},oe=function(e){return z("navigateToBizScene",{sceneCode:"WEB_PAGE",param:{url:e.url}})},ae=g((function(e,t,n){!function(e,t,n){if(e)if(e.startsWith("aplus://"))!function(e,t,n){var r,o=new(S())(e,!0),a=o.host,c=o.pathname,i=o.query;switch(a){case P.openInApp:t.openInApp(C({path:c,url:i.url||""},n));break;case P.openOtherApp:console.log("### openCustomScheme",P.openOtherApp);var u=i.appId,s=void 0===u?"":u,p=i.path,l=i.launchParams,f=void 0===l?"":l,y=(0,w.Qc)(f);t.openOtherApp(C({appId:s,path:p,launchParams:y},n));break;case P.openBizScene:console.warn("该 API 已弃用, 请使用 aplus://openApPayCodePage 等链接替代"),i.sceneCode===j.scan?t.openScanPage(n):i.sceneCode===j.payCode&&t.openApPayCodePage(n);break;case P.openScanPage:t.openScanPage(n);break;case P.openPayCodePage:t.openPayCodePage(n);break;case P.openApPayCodePage:t.openApPayCodePage(n);break;case P.openInBrowser:t.openInBrowser(C({url:i.url||""},n));break;default:console.log("[openCustomScheme] 不支持的 routeType: ",a),n.fail&&n.fail((r="openCustomScheme ".concat(a),{error:-102,errorMessage:"[".concat(r,"]: Not Support")}))}}(e,t,n);else if(e.startsWith("/")){var r=function(e){var t=location.pathname.replace(/\/[^/]+.html/,""),n="".concat(location.protocol,"//").concat(location.host).concat(t).concat(e);if(location.search.includes(k)){var r=n.includes("?")?"&":"?";return"".concat(n).concat(r).concat(k)}return n}(e);t.openInApp(C({url:r},n))}else t.openWebURL(C({url:e},n))}(e.url,{openWebURL:oe,openInApp:ne,openOtherApp:re,openInBrowser:ee,openPayCodePage:Z,openApPayCodePage:Q,openScanPage:X},{success:t,fail:n})}));function ce(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ie(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ce(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ce(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ue=["success"];function se(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function pe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function le(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var fe={hylidVersion:"4.0.1"};const ye={addPhoneContact:function(e){return u("addPhoneContact",e,{type:"async"})},alert:function(e){return u("alert",e,{type:"async"})},chooseImage:function(e){return u("chooseImage",e,{type:"async"})},choosePhoneContact:function(e){return u("choosePhoneContact",e,{type:"async"})},clearStorage:function(e){return u("clearStorage",e,{type:"async"})},closeBluetoothAdapter:function(e){return u("closeBluetoothAdapter",e,{type:"async"})},closeSocket:function(e){return u("closeSocket",e,{type:"async"})},confirm:function(e){return u("confirm",e,{type:"async"})},connectBLEDevice:function(e){return u("connectBLEDevice",e,{type:"async"})},connectSocket:function(e){return u("connectSocket",e,{type:"async"})},datePicker:function(e){return u("datePicker",e,{type:"async"})},disconnectBLEDevice:function(e){return u("disconnectBLEDevice",e,{type:"async"})},downloadFile:function(e){return u("downloadFile",e,{type:"async"})},getAppToken:function(e){return u("getAppToken",e,{type:"async"})},getAuthCode:function(e){return u("getAuthCode",e,{type:"async"})},getBatteryInfo:function(e){return u("getBatteryInfo",e,{type:"async"})},getBLEDeviceCharacteristics:function(e){return u("getBLEDeviceCharacteristics",e,{type:"async"})},getBLEDeviceServices:function(e){return u("getBLEDeviceServices",e,{type:"async"})},getBluetoothAdapterState:function(e){return u("getBluetoothAdapterState",e,{type:"async"})},getBluetoothDevices:function(e){return u("getBluetoothDevices",e,{type:"async"})},getClipboard:function(e){return u("getClipboard",e,{type:"async"})},getConnectedBluetoothDevices:function(e){return u("getConnectedBluetoothDevices",e,{type:"async"})},getFileInfo:function(e){return u("getFileInfo",e,{type:"async"})},getImageInfo:function(e){return u("getImageInfo",e,{type:"async"})},getLocation:function(e){return u("getLocation",e,{type:"async"})},getNetworkType:function(e){return u("getNetworkType",e,{type:"async"})},getOpenUserInfo:function(e){return u("getOpenUserInfo",e,{type:"async"})},getSavedFileInfo:function(e){return u("getSavedFileInfo",e,{type:"async"})},getSavedFileList:function(e){return u("getSavedFileList",e,{type:"async"})},getScreenBrightness:function(e){return u("getScreenBrightness",e,{type:"async"})},getServerTime:function(e){return u("getServerTime",e,{type:"async"})},getSetting:function(e){return u("getSetting",e,{type:"async"})},getSiteInfo:function(e){return u("getSiteInfo",e,{type:"async"})},getStorage:function(e){return u("getStorage",e,{type:"async"})},getSystemInfo:function(e){return u("getSystemInfo",e,{type:"async"})},hideBackHome:function(e){return u("hideBackHome",e,{type:"async"})},hideKeyboard:function(e){return u("hideKeyboard",e,{type:"async"})},hideLoading:function(e){return u("hideLoading",e,{type:"async"})},hideNavigationBarLoading:function(e){return u("hideNavigationBarLoading",e,{type:"async"})},hideTabBar:function(e){return u("hideTabBar",e,{type:"async"})},hideToast:function(e){return u("hideToast",e,{type:"async"})},makePhoneCall:function(e){return u("makePhoneCall",e,{type:"async"})},multiLevelSelect:function(e){return u("multiLevelSelect",e,{type:"async"})},navigateBack:function(e){return u("navigateBack",e,{type:"async"})},navigateBackMiniProgram:function(e){return u("navigateBackMiniProgram",e,{type:"async"})},navigateTo:function(e){return u("navigateTo",e,{type:"async"})},navigateToMiniProgram:function(e){return u("navigateToMiniProgram",e,{type:"async"})},notifyBLECharacteristicValueChange:function(e){return u("notifyBLECharacteristicValueChange",e,{type:"async"})},offAccelerometerChange:function(e){return u("offAccelerometerChange",e,{type:"callback"})},offBLECharacteristicValueChange:function(e){return u("offBLECharacteristicValueChange",e,{type:"callback"})},offBLEConnectionStateChanged:function(e){return u("offBLEConnectionStateChanged",e,{type:"callback"})},offBluetoothAdapterStateChange:function(e){return u("offBluetoothAdapterStateChange",e,{type:"callback"})},offBluetoothDeviceFound:function(e){return u("offBluetoothDeviceFound",e,{type:"callback"})},offCompassChange:function(e){return u("offCompassChange",e,{type:"callback"})},offMemoryWarning:function(e){return u("offMemoryWarning",e,{type:"callback"})},offSocketClose:function(e){return u("offSocketClose",e,{type:"callback"})},offSocketError:function(e){return u("offSocketError",e,{type:"callback"})},offSocketMessage:function(e){return u("offSocketMessage",e,{type:"callback"})},offSocketOpen:function(e){return u("offSocketOpen",e,{type:"callback"})},offUserCaptureScreen:function(e){return u("offUserCaptureScreen",e,{type:"callback"})},onAccelerometerChange:function(e){return u("onAccelerometerChange",e,{type:"callback"})},onBLECharacteristicValueChange:function(e){return u("onBLECharacteristicValueChange",e,{type:"callback"})},onBLEConnectionStateChanged:function(e){return u("onBLEConnectionStateChanged",e,{type:"callback"})},onBluetoothAdapterStateChange:function(e){return u("onBluetoothAdapterStateChange",e,{type:"callback"})},onBluetoothDeviceFound:function(e){return u("onBluetoothDeviceFound",e,{type:"callback"})},onCompassChange:function(e){return u("onCompassChange",e,{type:"callback"})},onMemoryWarning:function(e){return u("onMemoryWarning",e,{type:"callback"})},onSocketClose:function(e){return u("onSocketClose",e,{type:"callback"})},onSocketError:function(e){return u("onSocketError",e,{type:"callback"})},onSocketMessage:function(e){return u("onSocketMessage",e,{type:"callback"})},onSocketOpen:function(e){return u("onSocketOpen",e,{type:"callback"})},onUserCaptureScreen:function(e){return u("onUserCaptureScreen",e,{type:"callback"})},openBluetoothAdapter:function(e){return u("openBluetoothAdapter",e,{type:"async"})},openDocument:function(e){return u("openDocument",e,{type:"async"})},openSetting:function(e){return u("openSetting",e,{type:"async"})},pageScrollTo:function(e){return u("pageScrollTo",e,{type:"async"})},previewImage:function(e){return u("previewImage",e,{type:"async"})},prompt:function(e){return u("prompt",e,{type:"async"})},readBLECharacteristicValue:function(e){return u("readBLECharacteristicValue",e,{type:"async"})},redirectTo:function(e){return u("redirectTo",e,{type:"async"})},reLaunch:function(e){return u("reLaunch",e,{type:"async"})},removeSavedFile:function(e){return u("removeSavedFile",e,{type:"async"})},removeStorage:function(e){return u("removeStorage",e,{type:"async"})},request:function(e){return u("request",e,{type:"async"})},saveFile:function(e){return u("saveFile",e,{type:"async"})},saveImage:function(e){return u("saveImage",e,{type:"async"})},scan:function(e){return u("scan",e,{type:"async"})},sendSocketMessage:function(e){return u("sendSocketMessage",e,{type:"async"})},setBackgroundColor:function(e){return u("setBackgroundColor",e,{type:"async"})},setCanPullDown:function(e){return u("setCanPullDown",e,{type:"async"})},setClipboard:function(e){return u("setClipboard",e,{type:"async"})},setKeepScreenOn:function(e){return u("setKeepScreenOn",e,{type:"async"})},setNavigationBar:function(e){return u("setNavigationBar",e,{type:"async"})},setScreenBrightness:function(e){return u("setScreenBrightness",e,{type:"async"})},setStorage:function(e){return u("setStorage",e,{type:"async"})},setTabBarStyle:function(e){return u("setTabBarStyle",e,{type:"async"})},showActionSheet:function(e){return u("showActionSheet",e,{type:"async"})},showAuthGuide:function(e){return u("showAuthGuide",e,{type:"async"})},showLoading:function(e){return u("showLoading",e,{type:"async"})},showNavigationBarLoading:function(e){return u("showNavigationBarLoading",e,{type:"async"})},showToast:function(e){return u("showToast",e,{type:"async"})},signContract:function(e){return u("signContract",e,{type:"async"})},startBluetoothDevicesDiscovery:function(e){return u("startBluetoothDevicesDiscovery",e,{type:"async"})},startPullDownRefresh:function(e){return u("startPullDownRefresh",e,{type:"async"})},stopBluetoothDevicesDiscovery:function(e){return u("stopBluetoothDevicesDiscovery",e,{type:"async"})},stopPullDownRefresh:function(e){return u("stopPullDownRefresh",e,{type:"async"})},switchTab:function(e){return u("switchTab",e,{type:"async"})},tradePay:function(e){return u("tradePay",e,{type:"async"})},uploadFile:function(e){return u("uploadFile",e,{type:"async"})},vibrate:function(e){return u("vibrate",e,{type:"async"})},watchShake:function(e){return u("watchShake",e,{type:"async"})},writeBLECharacteristicValue:function(e){return u("writeBLECharacteristicValue",e,{type:"async"})},showSharePanel:function(e){return u("showSharePanel",e,{type:"async"})},setTransparentTitle:function(e){return u("setTransparentTitle",e,{type:"async"})},getCurrentLanguage:function(){if(!p){var e=function(){if("object"===("undefined"==typeof window?"undefined":s(window))){var e,t=null===(e=window.location.search)||void 0===e?void 0:e.match(/__lang__=([^&]*)/);if(t)return t[1]}}()||function(){if("object"===("undefined"==typeof document?"undefined":s(document))){var e,t=null===(e=document.documentElement)||void 0===e?void 0:e.lang;if(t)return t}}()||function(){if("object"===("undefined"==typeof window?"undefined":s(window))){var e,t=(null===(e=window.navigator)||void 0===e?void 0:e.userAgent)||"",n=(/Language\/([^\s]*)/i.exec(t)||[]).pop();if(n)return n}}()||function(){if("object"===("undefined"==typeof window?"undefined":s(window))&&window.navigator){var e,t=window.navigator,n=(null===(e=t.languages)||void 0===e?void 0:e[0])||t.language||t.userLanguage||t.browserLanguage;if(n)return n}}()||"en-US";p=e.toLowerCase()}return p},openURL:ae,openWebURL:oe,openInApp:ne,openOtherApp:re,openInBrowser:ee,openPayCodePage:Z,openApPayCodePage:Q,openScanPage:X,createWithoutAuthRpc:function(e){var t=e.appId,n=e.workspaceId,r=void 0===n?"default":n,o=e.defaultGateway,a=e.defaultHeaders,c=e.request,i=t&&r?l({AppId:t,workspaceId:r},"X-CORS-".concat(t,"-").concat(r),"1"):{};return g((function(e,t,n){var r=e.gateway,u=e.operationType,s=e.headers,p=e.requestData,l=e.timeout;c({url:r||o,method:"POST",timeout:l,headers:ie(ie(ie({"Content-Type":"application/json"},a),{},{"Operation-Type":u},i),s),data:p,success:function(e){t({headers:(null==e?void 0:e.headers)||{},resData:(null==e?void 0:e.data)||{}})},fail:n})}))},rpcWithAuth:function(e){var t=e.success;z("rpc",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?se(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):se(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({success:function(e){null==t||t({headers:{},resData:e})}},d(e,ue)))},getAppId:function(e){u("getAppIdSync",e,{type:"sync"})},getCurrentPages:function(e){u("__hy_internal__",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pe(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({name:"getCurrentPages"},e))},getSDKVersion:function(e){u("SDKVersion",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?le(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):le(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e),{type:"attribute"})},defineRuntimeConfig:function(e){return fe=b(fe,e)},popWindow:function(e){z("navigateBack",e)}}})(),r.default})()));
1
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.my=t():e.my=t()}(self,(()=>(()=>{"use strict";var e={5554:e=>{var t="%[a-f0-9]{2}",n=new RegExp("("+t+")|([^%]+?)","gi"),r=new RegExp("("+t+")+","gi");function o(e,t){try{return[decodeURIComponent(e.join(""))]}catch(e){}if(1===e.length)return e;t=t||1;var n=e.slice(0,t),r=e.slice(t);return Array.prototype.concat.call([],o(n),o(r))}function a(e){try{return decodeURIComponent(e)}catch(a){for(var t=e.match(n)||[],r=1;r<t.length;r++)t=(e=o(t,r).join("")).match(n)||[];return e}}e.exports=function(e){if("string"!=typeof e)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch(t){return function(e){for(var t={"%FE%FF":"��","%FF%FE":"��"},n=r.exec(e);n;){try{t[n[0]]=decodeURIComponent(n[0])}catch(e){var o=a(n[0]);o!==n[0]&&(t[n[0]]=o)}n=r.exec(e)}t["%C2"]="�";for(var c=Object.keys(t),i=0;i<c.length;i++){var u=c[i];e=e.replace(new RegExp(u,"g"),t[u])}return e}(e)}}},3563:(e,t,n)=>{function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n(6635);var o=n(5554);function a(e,t){if("string"!=typeof e||"string"!=typeof t)throw new TypeError("Expected the arguments to be of type `string`");if(""===t)return[e];var n=e.indexOf(t);return-1===n?[e]:[e.slice(0,n),e.slice(n+t.length)]}function c(e,t){return t.decode?o(e):e}function i(e){return Array.isArray(e)?e.sort():"object"===r(e)?i(Object.keys(e)).sort((function(e,t){return Number(e)-Number(t)})).map((function(t){return e[t]})):e}function u(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&"string"==typeof e&&""!==e.trim()?e=Number(e):!t.parseBooleans||null===e||"true"!==e.toLowerCase()&&"false"!==e.toLowerCase()||(e="true"===e.toLowerCase()),e}t.Qc=function(e,t){var n=function(e){var t;switch(e.arrayFormat){case"index":return function(e,n,r){t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===r[e]&&(r[e]={}),r[e][t[1]]=n):r[e]=n};case"bracket":return function(e,n,r){t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==r[e]?r[e]=[].concat(r[e],n):r[e]=[n]:r[e]=n};case"comma":return function(e,t,n){var r="string"==typeof t&&t.split("").indexOf(",")>-1?t.split(","):t;n[e]=r};default:return function(e,t,n){void 0!==n[e]?n[e]=[].concat(n[e],t):n[e]=t}}}(t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",parseNumbers:!1,parseBooleans:!1},t)),o=Object.create(null);if("string"!=typeof e)return o;if(!(e=e.trim().replace(/^[?#&]/,"")))return o;var s,p,l=!0,f=!1,y=void 0;try{for(var d,h=e.split("&")[Symbol.iterator]();!(l=(d=h.next()).done);l=!0){var g=(s=a(d.value.replace(/\+/g," "),"="),p=2,function(e){if(Array.isArray(e))return e}(s)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],r=!0,o=!1,a=void 0;try{for(var c,i=e[Symbol.iterator]();!(r=(c=i.next()).done)&&(n.push(c.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==i.return||i.return()}finally{if(o)throw a}}return n}}(s,p)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()),m=g[0];w=void 0===(w=g[1])?null:c(w,t),n(c(m,t),w,o)}}catch(e){f=!0,y=e}finally{try{l||null==h.return||h.return()}finally{if(f)throw y}}for(var v=0,b=Object.keys(o);v<b.length;v++){var w;if(m=b[v],"object"===r(w=o[m])&&null!==w)for(var O=0,S=Object.keys(w);O<S.length;O++){var A=S[O];w[A]=u(w[A],t)}else o[m]=u(w,t)}return!1===t.sort?o:(!0===t.sort?Object.keys(o).sort():Object.keys(o).sort(t.sort)).reduce((function(e,t){var n=o[t];return Boolean(n)&&"object"===r(n)&&!Array.isArray(n)?e[t]=i(n):e[t]=n,e}),Object.create(null))}},6635:e=>{e.exports=function(e){return encodeURIComponent(e).replace(/[!'()*]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}},7375:(e,t)=>{var n=Object.prototype.hasOwnProperty;function r(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch(e){return null}}function o(e){try{return encodeURIComponent(e)}catch(e){return null}}t.stringify=function(e,t){t=t||"";var r,a,c=[];for(a in"string"!=typeof t&&(t="?"),e)if(n.call(e,a)){if((r=e[a])||null!=r&&!isNaN(r)||(r=""),a=o(a),r=o(r),null===a||null===r)continue;c.push(a+"="+r)}return c.length?t+c.join("&"):""},t.parse=function(e){for(var t,n=/([^=?#&]+)=?([^&]*)/g,o={};t=n.exec(e);){var a=r(t[1]),c=r(t[2]);null===a||null===c||a in o||(o[a]=c)}return o}},7245:e=>{e.exports=function(e,t){if(t=t.split(":")[0],!(e=+e))return!1;switch(t){case"http":case"ws":return 80!==e;case"https":case"wss":return 443!==e;case"ftp":return 21!==e;case"gopher":return 70!==e;case"file":return!1}return 0!==e}},5731:(e,t,n)=>{var r=n(7245),o=n(7375),a=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,c=/[\n\r\t]/g,i=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,u=/:\d+$/,s=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,p=/^[a-zA-Z]:/;function l(e){return(e||"").toString().replace(a,"")}var f=[["#","hash"],["?","query"],function(e,t){return h(t.protocol)?e.replace(/\\/g,"/"):e},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d*)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],y={hash:1,query:1};function d(e){var t,r=("undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{}).location||{},o={},a=typeof(e=e||r);if("blob:"===e.protocol)o=new m(unescape(e.pathname),{});else if("string"===a)for(t in o=new m(e,{}),y)delete o[t];else if("object"===a){for(t in e)t in y||(o[t]=e[t]);void 0===o.slashes&&(o.slashes=i.test(e.href))}return o}function h(e){return"file:"===e||"ftp:"===e||"http:"===e||"https:"===e||"ws:"===e||"wss:"===e}function g(e,t){e=(e=l(e)).replace(c,""),t=t||{};var n,r=s.exec(e),o=r[1]?r[1].toLowerCase():"",a=!!r[2],i=!!r[3],u=0;return a?i?(n=r[2]+r[3]+r[4],u=r[2].length+r[3].length):(n=r[2]+r[4],u=r[2].length):i?(n=r[3]+r[4],u=r[3].length):n=r[4],"file:"===o?u>=2&&(n=n.slice(2)):h(o)?n=r[4]:o?a&&(n=n.slice(2)):u>=2&&h(t.protocol)&&(n=r[4]),{protocol:o,slashes:a||h(o),slashesCount:u,rest:n}}function m(e,t,n){if(e=(e=l(e)).replace(c,""),!(this instanceof m))return new m(e,t,n);var a,i,u,s,y,v,b=f.slice(),w=typeof t,O=this,S=0;for("object"!==w&&"string"!==w&&(n=t,t=null),n&&"function"!=typeof n&&(n=o.parse),a=!(i=g(e||"",t=d(t))).protocol&&!i.slashes,O.slashes=i.slashes||a&&t.slashes,O.protocol=i.protocol||t.protocol||"",e=i.rest,("file:"===i.protocol&&(2!==i.slashesCount||p.test(e))||!i.slashes&&(i.protocol||i.slashesCount<2||!h(O.protocol)))&&(b[3]=[/(.*)/,"pathname"]);S<b.length;S++)"function"!=typeof(s=b[S])?(u=s[0],v=s[1],u!=u?O[v]=e:"string"==typeof u?~(y="@"===u?e.lastIndexOf(u):e.indexOf(u))&&("number"==typeof s[2]?(O[v]=e.slice(0,y),e=e.slice(y+s[2])):(O[v]=e.slice(y),e=e.slice(0,y))):(y=u.exec(e))&&(O[v]=y[1],e=e.slice(0,y.index)),O[v]=O[v]||a&&s[3]&&t[v]||"",s[4]&&(O[v]=O[v].toLowerCase())):e=s(e,O);n&&(O.query=n(O.query)),a&&t.slashes&&"/"!==O.pathname.charAt(0)&&(""!==O.pathname||""!==t.pathname)&&(O.pathname=function(e,t){if(""===e)return t;for(var n=(t||"/").split("/").slice(0,-1).concat(e.split("/")),r=n.length,o=n[r-1],a=!1,c=0;r--;)"."===n[r]?n.splice(r,1):".."===n[r]?(n.splice(r,1),c++):c&&(0===r&&(a=!0),n.splice(r,1),c--);return a&&n.unshift(""),"."!==o&&".."!==o||n.push(""),n.join("/")}(O.pathname,t.pathname)),"/"!==O.pathname.charAt(0)&&h(O.protocol)&&(O.pathname="/"+O.pathname),r(O.port,O.protocol)||(O.host=O.hostname,O.port=""),O.username=O.password="",O.auth&&(~(y=O.auth.indexOf(":"))?(O.username=O.auth.slice(0,y),O.username=encodeURIComponent(decodeURIComponent(O.username)),O.password=O.auth.slice(y+1),O.password=encodeURIComponent(decodeURIComponent(O.password))):O.username=encodeURIComponent(decodeURIComponent(O.auth)),O.auth=O.password?O.username+":"+O.password:O.username),O.origin="file:"!==O.protocol&&h(O.protocol)&&O.host?O.protocol+"//"+O.host:"null",O.href=O.toString()}m.prototype={set:function(e,t,n){var a=this;switch(e){case"query":"string"==typeof t&&t.length&&(t=(n||o.parse)(t)),a[e]=t;break;case"port":a[e]=t,r(t,a.protocol)?t&&(a.host=a.hostname+":"+t):(a.host=a.hostname,a[e]="");break;case"hostname":a[e]=t,a.port&&(t+=":"+a.port),a.host=t;break;case"host":a[e]=t,u.test(t)?(t=t.split(":"),a.port=t.pop(),a.hostname=t.join(":")):(a.hostname=t,a.port="");break;case"protocol":a.protocol=t.toLowerCase(),a.slashes=!n;break;case"pathname":case"hash":if(t){var c="pathname"===e?"/":"#";a[e]=t.charAt(0)!==c?c+t:t}else a[e]=t;break;case"username":case"password":a[e]=encodeURIComponent(t);break;case"auth":var i=t.indexOf(":");~i?(a.username=t.slice(0,i),a.username=encodeURIComponent(decodeURIComponent(a.username)),a.password=t.slice(i+1),a.password=encodeURIComponent(decodeURIComponent(a.password))):a.username=encodeURIComponent(decodeURIComponent(t))}for(var s=0;s<f.length;s++){var p=f[s];p[4]&&(a[p[1]]=a[p[1]].toLowerCase())}return a.auth=a.password?a.username+":"+a.password:a.username,a.origin="file:"!==a.protocol&&h(a.protocol)&&a.host?a.protocol+"//"+a.host:"null",a.href=a.toString(),a},toString:function(e){e&&"function"==typeof e||(e=o.stringify);var t,n=this,r=n.host,a=n.protocol;a&&":"!==a.charAt(a.length-1)&&(a+=":");var c=a+(n.protocol&&n.slashes||h(n.protocol)?"//":"");return n.username?(c+=n.username,n.password&&(c+=":"+n.password),c+="@"):n.password?(c+=":"+n.password,c+="@"):"file:"!==n.protocol&&h(n.protocol)&&!r&&"/"!==n.pathname&&(c+="@"),(":"===r[r.length-1]||u.test(n.hostname)&&!n.port)&&(r+=":"),c+=r+n.pathname,(t="object"==typeof n.query?e(n.query):n.query)&&(c+="?"!==t.charAt(0)?"?"+t:t),n.hash&&(c+=n.hash),c}},m.extractProtocol=g,m.location=d,m.trimLeft=l,m.qs=o,e.exports=m}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var a=t[r]={exports:{}};return e[r](a,a.exports,n),a.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var r={};return(()=>{n.d(r,{default:()=>ye});var e=function(e){if(window.AlipayJSBridge)return e();document.addEventListener("AlipayJSBridgeReady",(function(){return e()}),!1)},t=!1,o=[];function a(e){return o.push(e),function(){o=o.filter((function(t){return t!==e}))}}function c(n){return t||(document.addEventListener("onToWebViewMessage",(function(e){var t=e.data.res;if(t&&"message"===t.type){var n=JSON.parse(t.data);o.forEach((function(e){return e(n)}))}})),t=!0),e((function(){window.AlipayJSBridge.call("postWebViewMessage",{type:"message",detail:n})}))}var i={};function u(e,t,n){var r=e+"_"+Math.floor(1e6*Math.random());t&&(i[r]=t),c({source:"hylid",type:"apiCall",api:e,serialId:r,options:t,config:n,isSync:null==n?void 0:n.isSync})}a((function(e){var t,n=e,r=n.serialId;if(r&&i[r]){var o=i[r],a=n.result;if("callback"===(null===(t=n.config)||void 0===t?void 0:t.type)){var c=a||{},u=c._data_;return"success"===c._type_?o(u):o(void 0,u)}var s=o||{},p=s.success,l=s.fail,f=s.complete,y=a||{},d=y._data_,h=y._type_;h?("success"===h&&(null==p||p(d)),"fail"===h&&(null==l||l(d)),null==f||f(d)):((null==a?void 0:a.error)?null==l||l(a):null==p||p(a),null==f||f(a)),delete i[r]}})),u.onMessage=a,u.postMessage=c,u.broadcastGlobalData=function(e,t){c({source:"hylid",type:"broadcast",from:window.location.href,key:e,result:t})},u.onReceiveGlobalData=function(e,t){return a((function(n){var r=n;if("hylid"===r.source&&"broadcast"===r.type&&r.key===e){var o=r.result||{},a=o._data_;return"success"===o._type_?t(a,void 0,r.from):t(void 0,a,r.from)}}))},u.onPageEvent=function(e,t){return c({source:"hylid",type:"pageEvent",event:e}),a((function(n){var r=n;if("hylid"===r.source&&"pageEvent"===r.type&&r.event===e){var o=r.result||{},a=o._data_;return"success"===o._type_?t(a):t(void 0,a)}}))};function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}var p="";function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function y(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a=[],c=!0,i=!1;try{for(n=n.call(e);!(c=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);c=!0);}catch(e){i=!0,o=e}finally{try{c||null==n.return||n.return()}finally{if(i)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var h=["success","fail","complete"],g=function(e){return function(t){return new Promise((function(n,r){var o=t||{},a=o.success,c=o.fail,i=o.complete,u=d(o,h);e(u,(function(e){n(e),null==a||a(e),null==i||i(e)}),(function(e){r(e),null==c||c(e),null==i||i(e)}))}))}},m=function(e){return function(t){return toString.call(t)==="[object ".concat(e,"]")}},v=(m("RegExp"),m("String"),m("Function"),m("Object")),b=(m("Number"),Array.isArray,m("Boolean"),function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce((function(e,t){if(!t)return e;for(var n=Object.entries(t),r=n.length,o=0;o<r;o++){var a=y(n[o],2),c=a[0],i=a[1];v(i)?e[c]=b(e[c],i):Object.assign(e,l({},c,i))}return e}),{})}),w=n(3563),O=n(5731),S=n.n(O);function A(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function C(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?A(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):A(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var P=function(e){return e.openInApp="openinapp",e.openOtherApp="openotherapp",e.openBizScene="openbizscene",e.openPayCodePage="openpaycodepage",e.openApPayCodePage="openappaycodepage",e.openScanPage="openscanpage",e.openInBrowser="openinbrowser",e}(P||{}),j=function(e){return e.scan="scan",e.payCode="payCode",e}(j||{}),k="caprMode=sync";function B(e,t){var n=e.filter((function(e){return e.match.every((function(e){return e.test(t)}))}));if(n.length){var r=n[0].name;if(n.length>1){var o=n.map((function(e){return e.name})).join(",");E("Multiple clients have been identified(".concat(o,"), and the first one(").concat(r,")is used by default."))}return r}}function I(e,t){return Object.keys(e).reduce((function(n,r){return n["is".concat(r)]=t===e[r],n}),{})}function E(e){console.info("[hylid-env]: ".concat(e))}var D={WEB:"web",MPWEB:"mpweb",MP:"mp"},T={DEMO:"demo",ALIPAY:"alipay",ALIPAYHK:"alipayhk",TNGD:"tngd",GCASH:"gcash",TRUEMONEY:"truemoney",DANA:"dana",KAKAOPAY:"kakaopay",KAKAOTALK:"kakaotalk",NAVERPAY:"naverpay",MPAY:"mpay",TOSSPAY:"toss",HIPAY:"hipay",CHOPE:"chope",VODAPAY:"vodapay",CHANGIPAY:"changipay",OCBC:"ocbc",MANDIRI:"mandiri",NAYAPAY:"nayapay",TINABA:"tinaba",KASPI:"kaspi",H5:"h5",WECHAT:"wechat",TNGD_H5NG:"tngdh5ng"},L=/miniprogram/i,N=/^((?!miniprogram).)*$/i,_=/griver/i,R=/^((?!griver).)*$/i,x=[{name:T.DEMO,match:[/demo/]},{name:T.ALIPAYHK,match:[/alipayHK/]},{name:T.TNGD,match:[/tngd/]},{name:T.GCASH,match:[/gcash/]},{name:T.TRUEMONEY,match:[/tmn/]},{name:T.DANA,match:[/dana/]},{name:T.TOSSPAY,match:[/toss/]},{name:T.ALIPAY,match:[/alipay/]}],M=[{name:T.DEMO,match:[/alipayIDE/i]},{name:T.ALIPAYHK,match:[L,R,/AlipayClientHK/]},{name:T.TNGD,match:[L,/TNGKit|Touch 'n Go/]},{name:T.GCASH,match:[L,_,/GCash/]},{name:T.TRUEMONEY,match:[L,_,/TrueMoney/]},{name:T.ALIPAY,match:[L,R,/alipay/i]},{name:T.DEMO,match:[L,_]}];function U(){return B(M,window.navigator.userAgent)}var K=[{name:T.ALIPAYHK,match:[N,R,/AlipayClientHK/]},{name:T.TNGD,match:[N,_,/TNGKit|Touch 'n Go/]},{name:T.TNGD_H5NG,match:[N,/TNGKit|Touch 'n Go/,/IAPWebH5NG/]},{name:T.GCASH,match:[N,_,/GCash/]},{name:T.TRUEMONEY,match:[N,_,/TrueMoney/i]},{name:T.KAKAOPAY,match:[N,/PAYCLIENT|KAKAOTALK|KAKAOPAY/]},{name:T.KAKAOTALK,match:[N,/ALIPAYCONNECT_KAKAO_TALK/]},{name:T.NAVERPAY,match:[N,/NAVER/]},{name:T.MPAY,match:[N,/mpay|macaupay/i]},{name:T.TOSSPAY,match:[N,/Toss/i]},{name:T.ALIPAY,match:[N,R,/AlipayClient/]},{name:T.DEMO,match:[N,_,/GriverDemo/]}];function Y(){return B(K,window.navigator.userAgent)||T.H5}var F=function(){var e,t;if("undefined"!=typeof wx||"undefined"!=typeof my&&"string"==typeof my.SDKVersion)e="undefined"!=typeof wx?T.WECHAT:B(x,my.getSystemInfoSync().app),t=D.MP;else{var n=function(){var e,t=((null===(e=window.location.search)||void 0===e?void 0:e.match(/__app__=([^&]*)/))||[])[1],n=(window.location.search.match(/__platform__=([^&]*)/)||[])[1];(t||n)&&localStorage.setItem("__hy_env__",JSON.stringify({client:t,platform:n}));var r=localStorage.getItem("__hy_env__");return r?JSON.parse(r):{}}();n.platform?(t=n.platform,e=n.client||("mpweb"===t?U():Y())):(e=n.client||U())?t=D.MPWEB:(e=Y(),t=D.WEB)}return t&&e||E("Cannot identify your client."),{client:e,platform:t}}(),G=F.client,H=F.platform;I(T,G),I(D,H);var W,V={NOTFOUND:{code:-1,message:function(e){return"".concat(e," is not found")}},NOTALLOWED:{code:-2,message:function(e){return"".concat(e," is not allowed")}},INVALID:{code:-3,message:function(e){return"".concat(e," is invalid")}},NOTBIND:{code:-4,message:function(e){return"".concat(e," exec fail, webviewBridge not bind context")}},PARAMS_ERROR:{code:-5,message:function(e){return"".concat(e," exec fail, params error")}}},q=((W={})[D.MP]=function(e,t,n){var r=(n||{}).type,o=void 0===r?"async":r;return"sync"===o||(null==n?void 0:n.isSync)?my[e](t):("async"===o&&(my[e]?my[e](t):my.call(e,t)),"callback"===o&&my[e](t),"attribute"===o?my[e]:void 0)},W[D.MPWEB]=u,W[D.WEB]=function(t,n,r){e((function(){var e=(r||{}).type,o=void 0===e?"async":e;"async"===o&&window.AlipayJSBridge.call(t,n,(function(e){var t=n||{},r=t.success,o=t.fail,a=t.complete;e.error?null==o||o(e):null==r||r(e),null==a||a(e)})),"callback"===o&&window.AlipayJSBridge.call(t,n)}))},W);function z(e,t,n){return H?q[H](e,t,n):function(e,t,n){var r;void 0===n&&(n={});var o=n.type,a=void 0===o?"async":o,c=function(e,t){void 0===t&&(t="");var n=V.NOTFOUND;return{errorCode:n.code,errorMessage:(0,n.message)(t),errorSouce:"hylid"}}(0,e);if("sync"===a)return c;"callback"===a&&(null==t||t(c)),"async"===a&&(null===(r=null==t?void 0:t.fail)||void 0===r||r.call(t,c))}(t,n)}function $(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function J(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Q=function(){return z("navigateToBizScene",{sceneCode:"APLUS_QR_PAY"})},Z=function(){return z("navigateToBizScene",{sceneCode:"QR_PAY"})},X=function(){return z("navigateToBizScene",{sceneCode:"SCAN"})},ee=function(e){return z("navigateToBizScene",{sceneCode:"SCHEME",param:{scheme:e.url}})};function te(e){var t=e.url,n=e.path,r=n&&"/"!==n?n:"/pages/index/index";if(!t)return r;var o=r.includes("?")?"&":"?";return"".concat(r).concat(o,"url=").concat(encodeURIComponent(t))}var ne=function(e){return z("navigateTo",{url:te(e)})},re=function(e){return z("navigateToMiniProgram",J(J({},e),{},{extraData:null==e?void 0:e.launchParams}))},oe=function(e){return z("navigateToBizScene",{sceneCode:"WEB_PAGE",param:{url:e.url}})},ae=g((function(e,t,n){!function(e,t,n){if(e)if(e.startsWith("aplus://"))!function(e,t,n){var r,o=new(S())(e,!0),a=o.host,c=o.pathname,i=o.query;switch(a){case P.openInApp:t.openInApp(C({path:c,url:i.url||""},n));break;case P.openOtherApp:console.log("### openCustomScheme",P.openOtherApp);var u=i.appId,s=void 0===u?"":u,p=i.path,l=i.launchParams,f=void 0===l?"":l,y=(0,w.Qc)(f);t.openOtherApp(C({appId:s,path:p,launchParams:y},n));break;case P.openBizScene:console.warn("该 API 已弃用, 请使用 aplus://openApPayCodePage 等链接替代"),i.sceneCode===j.scan?t.openScanPage(n):i.sceneCode===j.payCode&&t.openApPayCodePage(n);break;case P.openScanPage:t.openScanPage(n);break;case P.openPayCodePage:t.openPayCodePage(n);break;case P.openApPayCodePage:t.openApPayCodePage(n);break;case P.openInBrowser:t.openInBrowser(C({url:i.url||""},n));break;default:console.log("[openCustomScheme] 不支持的 routeType: ",a),n.fail&&n.fail((r="openCustomScheme ".concat(a),{error:-102,errorMessage:"[".concat(r,"]: Not Support")}))}}(e,t,n);else if(e.startsWith("/")){var r=function(e){var t=location.pathname.replace(/\/[^/]+.html/,""),n="".concat(location.protocol,"//").concat(location.host).concat(t).concat(e);if(location.search.includes(k)){var r=n.includes("?")?"&":"?";return"".concat(n).concat(r).concat(k)}return n}(e);t.openInApp(C({url:r},n))}else t.openWebURL(C({url:e},n))}(e.url,{openWebURL:oe,openInApp:ne,openOtherApp:re,openInBrowser:ee,openPayCodePage:Z,openApPayCodePage:Q,openScanPage:X},{success:t,fail:n})}));function ce(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ie(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ce(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ce(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ue=["success"];function se(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function pe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function le(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var fe={};const ye={addPhoneContact:function(e){return u("addPhoneContact",e,{type:"async"})},alert:function(e){return u("alert",e,{type:"async"})},chooseImage:function(e){return u("chooseImage",e,{type:"async"})},choosePhoneContact:function(e){return u("choosePhoneContact",e,{type:"async"})},clearStorage:function(e){return u("clearStorage",e,{type:"async"})},closeBluetoothAdapter:function(e){return u("closeBluetoothAdapter",e,{type:"async"})},closeSocket:function(e){return u("closeSocket",e,{type:"async"})},confirm:function(e){return u("confirm",e,{type:"async"})},connectBLEDevice:function(e){return u("connectBLEDevice",e,{type:"async"})},connectSocket:function(e){return u("connectSocket",e,{type:"async"})},datePicker:function(e){return u("datePicker",e,{type:"async"})},disconnectBLEDevice:function(e){return u("disconnectBLEDevice",e,{type:"async"})},downloadFile:function(e){return u("downloadFile",e,{type:"async"})},getAppToken:function(e){return u("getAppToken",e,{type:"async"})},getAuthCode:function(e){return u("getAuthCode",e,{type:"async"})},getBatteryInfo:function(e){return u("getBatteryInfo",e,{type:"async"})},getBLEDeviceCharacteristics:function(e){return u("getBLEDeviceCharacteristics",e,{type:"async"})},getBLEDeviceServices:function(e){return u("getBLEDeviceServices",e,{type:"async"})},getBluetoothAdapterState:function(e){return u("getBluetoothAdapterState",e,{type:"async"})},getBluetoothDevices:function(e){return u("getBluetoothDevices",e,{type:"async"})},getClipboard:function(e){return u("getClipboard",e,{type:"async"})},getConnectedBluetoothDevices:function(e){return u("getConnectedBluetoothDevices",e,{type:"async"})},getFileInfo:function(e){return u("getFileInfo",e,{type:"async"})},getImageInfo:function(e){return u("getImageInfo",e,{type:"async"})},getLocation:function(e){return u("getLocation",e,{type:"async"})},getNetworkType:function(e){return u("getNetworkType",e,{type:"async"})},getOpenUserInfo:function(e){return u("getOpenUserInfo",e,{type:"async"})},getSavedFileInfo:function(e){return u("getSavedFileInfo",e,{type:"async"})},getSavedFileList:function(e){return u("getSavedFileList",e,{type:"async"})},getScreenBrightness:function(e){return u("getScreenBrightness",e,{type:"async"})},getServerTime:function(e){return u("getServerTime",e,{type:"async"})},getSetting:function(e){return u("getSetting",e,{type:"async"})},getSiteInfo:function(e){return u("getSiteInfo",e,{type:"async"})},getStorage:function(e){return u("getStorage",e,{type:"async"})},getSystemInfo:function(e){return u("getSystemInfo",e,{type:"async"})},hideBackHome:function(e){return u("hideBackHome",e,{type:"async"})},hideKeyboard:function(e){return u("hideKeyboard",e,{type:"async"})},hideLoading:function(e){return u("hideLoading",e,{type:"async"})},hideNavigationBarLoading:function(e){return u("hideNavigationBarLoading",e,{type:"async"})},hideTabBar:function(e){return u("hideTabBar",e,{type:"async"})},hideToast:function(e){return u("hideToast",e,{type:"async"})},makePhoneCall:function(e){return u("makePhoneCall",e,{type:"async"})},multiLevelSelect:function(e){return u("multiLevelSelect",e,{type:"async"})},navigateBack:function(e){return u("navigateBack",e,{type:"async"})},navigateBackMiniProgram:function(e){return u("navigateBackMiniProgram",e,{type:"async"})},navigateTo:function(e){return u("navigateTo",e,{type:"async"})},navigateToMiniProgram:function(e){return u("navigateToMiniProgram",e,{type:"async"})},notifyBLECharacteristicValueChange:function(e){return u("notifyBLECharacteristicValueChange",e,{type:"async"})},offAccelerometerChange:function(e){return u("offAccelerometerChange",e,{type:"callback"})},offBLECharacteristicValueChange:function(e){return u("offBLECharacteristicValueChange",e,{type:"callback"})},offBLEConnectionStateChanged:function(e){return u("offBLEConnectionStateChanged",e,{type:"callback"})},offBluetoothAdapterStateChange:function(e){return u("offBluetoothAdapterStateChange",e,{type:"callback"})},offBluetoothDeviceFound:function(e){return u("offBluetoothDeviceFound",e,{type:"callback"})},offCompassChange:function(e){return u("offCompassChange",e,{type:"callback"})},offMemoryWarning:function(e){return u("offMemoryWarning",e,{type:"callback"})},offSocketClose:function(e){return u("offSocketClose",e,{type:"callback"})},offSocketError:function(e){return u("offSocketError",e,{type:"callback"})},offSocketMessage:function(e){return u("offSocketMessage",e,{type:"callback"})},offSocketOpen:function(e){return u("offSocketOpen",e,{type:"callback"})},offUserCaptureScreen:function(e){return u("offUserCaptureScreen",e,{type:"callback"})},onAccelerometerChange:function(e){return u("onAccelerometerChange",e,{type:"callback"})},onBLECharacteristicValueChange:function(e){return u("onBLECharacteristicValueChange",e,{type:"callback"})},onBLEConnectionStateChanged:function(e){return u("onBLEConnectionStateChanged",e,{type:"callback"})},onBluetoothAdapterStateChange:function(e){return u("onBluetoothAdapterStateChange",e,{type:"callback"})},onBluetoothDeviceFound:function(e){return u("onBluetoothDeviceFound",e,{type:"callback"})},onCompassChange:function(e){return u("onCompassChange",e,{type:"callback"})},onMemoryWarning:function(e){return u("onMemoryWarning",e,{type:"callback"})},onSocketClose:function(e){return u("onSocketClose",e,{type:"callback"})},onSocketError:function(e){return u("onSocketError",e,{type:"callback"})},onSocketMessage:function(e){return u("onSocketMessage",e,{type:"callback"})},onSocketOpen:function(e){return u("onSocketOpen",e,{type:"callback"})},onUserCaptureScreen:function(e){return u("onUserCaptureScreen",e,{type:"callback"})},openBluetoothAdapter:function(e){return u("openBluetoothAdapter",e,{type:"async"})},openDocument:function(e){return u("openDocument",e,{type:"async"})},openSetting:function(e){return u("openSetting",e,{type:"async"})},pageScrollTo:function(e){return u("pageScrollTo",e,{type:"async"})},previewImage:function(e){return u("previewImage",e,{type:"async"})},prompt:function(e){return u("prompt",e,{type:"async"})},readBLECharacteristicValue:function(e){return u("readBLECharacteristicValue",e,{type:"async"})},redirectTo:function(e){return u("redirectTo",e,{type:"async"})},reLaunch:function(e){return u("reLaunch",e,{type:"async"})},removeSavedFile:function(e){return u("removeSavedFile",e,{type:"async"})},removeStorage:function(e){return u("removeStorage",e,{type:"async"})},request:function(e){return u("request",e,{type:"async"})},saveFile:function(e){return u("saveFile",e,{type:"async"})},saveImage:function(e){return u("saveImage",e,{type:"async"})},scan:function(e){return u("scan",e,{type:"async"})},sendSocketMessage:function(e){return u("sendSocketMessage",e,{type:"async"})},setBackgroundColor:function(e){return u("setBackgroundColor",e,{type:"async"})},setCanPullDown:function(e){return u("setCanPullDown",e,{type:"async"})},setClipboard:function(e){return u("setClipboard",e,{type:"async"})},setKeepScreenOn:function(e){return u("setKeepScreenOn",e,{type:"async"})},setNavigationBar:function(e){return u("setNavigationBar",e,{type:"async"})},setScreenBrightness:function(e){return u("setScreenBrightness",e,{type:"async"})},setStorage:function(e){return u("setStorage",e,{type:"async"})},setTabBarStyle:function(e){return u("setTabBarStyle",e,{type:"async"})},showActionSheet:function(e){return u("showActionSheet",e,{type:"async"})},showAuthGuide:function(e){return u("showAuthGuide",e,{type:"async"})},showLoading:function(e){return u("showLoading",e,{type:"async"})},showNavigationBarLoading:function(e){return u("showNavigationBarLoading",e,{type:"async"})},showToast:function(e){return u("showToast",e,{type:"async"})},signContract:function(e){return u("signContract",e,{type:"async"})},startBluetoothDevicesDiscovery:function(e){return u("startBluetoothDevicesDiscovery",e,{type:"async"})},startPullDownRefresh:function(e){return u("startPullDownRefresh",e,{type:"async"})},stopBluetoothDevicesDiscovery:function(e){return u("stopBluetoothDevicesDiscovery",e,{type:"async"})},stopPullDownRefresh:function(e){return u("stopPullDownRefresh",e,{type:"async"})},switchTab:function(e){return u("switchTab",e,{type:"async"})},tradePay:function(e){return u("tradePay",e,{type:"async"})},uploadFile:function(e){return u("uploadFile",e,{type:"async"})},vibrate:function(e){return u("vibrate",e,{type:"async"})},watchShake:function(e){return u("watchShake",e,{type:"async"})},writeBLECharacteristicValue:function(e){return u("writeBLECharacteristicValue",e,{type:"async"})},showSharePanel:function(e){return u("showSharePanel",e,{type:"async"})},setTransparentTitle:function(e){return u("setTransparentTitle",e,{type:"async"})},getCurrentLanguage:function(){if(!p){var e=function(){if("object"===("undefined"==typeof window?"undefined":s(window))){var e,t=null===(e=window.location.search)||void 0===e?void 0:e.match(/__lang__=([^&]*)/);if(t)return t[1]}}()||function(){if("object"===("undefined"==typeof document?"undefined":s(document))){var e,t=null===(e=document.documentElement)||void 0===e?void 0:e.lang;if(t)return t}}()||function(){if("object"===("undefined"==typeof window?"undefined":s(window))){var e,t=(null===(e=window.navigator)||void 0===e?void 0:e.userAgent)||"",n=(/Language\/([^\s]*)/i.exec(t)||[]).pop();if(n)return n}}()||function(){if("object"===("undefined"==typeof window?"undefined":s(window))&&window.navigator){var e,t=window.navigator,n=(null===(e=t.languages)||void 0===e?void 0:e[0])||t.language||t.userLanguage||t.browserLanguage;if(n)return n}}()||"en-US";p=e.toLowerCase()}return p},openURL:ae,openWebURL:oe,openInApp:ne,openOtherApp:re,openInBrowser:ee,openPayCodePage:Z,openApPayCodePage:Q,openScanPage:X,createWithoutAuthRpc:function(e){var t=e.appId,n=e.workspaceId,r=void 0===n?"default":n,o=e.defaultGateway,a=e.defaultHeaders,c=e.request,i=t&&r?l({AppId:t,workspaceId:r},"X-CORS-".concat(t,"-").concat(r),"1"):{};return g((function(e,t,n){var r=e.gateway,u=e.operationType,s=e.headers,p=e.requestData,l=e.timeout;c({url:r||o,method:"POST",timeout:l,headers:ie(ie(ie({"Content-Type":"application/json"},a),{},{"Operation-Type":u},i),s),data:p,success:function(e){t({headers:(null==e?void 0:e.headers)||{},resData:(null==e?void 0:e.data)||{}})},fail:n})}))},rpcWithAuth:function(e){var t=e.success;z("rpc",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?se(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):se(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({success:function(e){null==t||t({headers:{},resData:e})}},d(e,ue)))},getAppId:function(e){u("getAppIdSync",e,{type:"sync"})},getCurrentPages:function(e){u("__hy_internal__",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pe(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({name:"getCurrentPages"},e))},getSDKVersion:function(e){u("SDKVersion",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?le(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):le(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e),{type:"attribute"})},defineRuntimeConfig:function(e){return fe=b(fe,e)},popWindow:function(e){z("navigateBack",e)}}})(),r.default})()));
@@ -1,2 +1,2 @@
1
1
  /*! For license information please see mp_web_mpay.js.LICENSE.txt */
2
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.my=t():e.my=t()}(self,(()=>(()=>{var e={7359:function(e,t,n){var r;e.exports=(r=r||function(e){var t;if("undefined"!=typeof window&&window.crypto&&(t=window.crypto),"undefined"!=typeof self&&self.crypto&&(t=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(t=globalThis.crypto),!t&&"undefined"!=typeof window&&window.msCrypto&&(t=window.msCrypto),!t&&void 0!==n.g&&n.g.crypto&&(t=n.g.crypto),!t)try{t=n(633)}catch(e){}var r=function(){if(t){if("function"==typeof t.getRandomValues)try{return t.getRandomValues(new Uint32Array(1))[0]}catch(e){}if("function"==typeof t.randomBytes)try{return t.randomBytes(4).readInt32LE()}catch(e){}}throw new Error("Native crypto module could not be used to get secure random number.")},o=Object.create||function(){function e(){}return function(t){var n;return e.prototype=t,n=new e,e.prototype=null,n}}(),a={},i=a.lib={},c=i.Base={extend:function(e){var t=o(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},u=i.WordArray=c.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:4*e.length},toString:function(e){return(e||p).stringify(this)},concat:function(e){var t=this.words,n=e.words,r=this.sigBytes,o=e.sigBytes;if(this.clamp(),r%4)for(var a=0;a<o;a++){var i=n[a>>>2]>>>24-a%4*8&255;t[r+a>>>2]|=i<<24-(r+a)%4*8}else for(var c=0;c<o;c+=4)t[r+c>>>2]=n[c>>>2];return this.sigBytes+=o,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=c.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],n=0;n<e;n+=4)t.push(r());return new u.init(t,e)}}),s=a.enc={},p=s.Hex={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],o=0;o<n;o++){var a=t[o>>>2]>>>24-o%4*8&255;r.push((a>>>4).toString(16)),r.push((15&a).toString(16))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r+=2)n[r>>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new u.init(n,t/2)}},f=s.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],o=0;o<n;o++){var a=t[o>>>2]>>>24-o%4*8&255;r.push(String.fromCharCode(a))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r++)n[r>>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new u.init(n,t)}},l=s.Utf8={stringify:function(e){try{return decodeURIComponent(escape(f.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return f.parse(unescape(encodeURIComponent(e)))}},h=i.BufferedBlockAlgorithm=c.extend({reset:function(){this._data=new u.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=l.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n,r=this._data,o=r.words,a=r.sigBytes,i=this.blockSize,c=a/(4*i),s=(c=t?e.ceil(c):e.max((0|c)-this._minBufferSize,0))*i,p=e.min(4*s,a);if(s){for(var f=0;f<s;f+=i)this._doProcessBlock(o,f);n=o.splice(0,s),r.sigBytes-=p}return new u.init(n,p)},clone:function(){var e=c.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0}),y=(i.Hasher=h.extend({cfg:c.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){h.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,n){return new e.init(n).finalize(t)}},_createHmacHelper:function(e){return function(t,n){return new y.HMAC.init(e,n).finalize(t)}}}),a.algo={});return a}(Math),r)},9174:function(e,t,n){var r;e.exports=(r=n(7359),function(e){var t=r,n=t.lib,o=n.WordArray,a=n.Hasher,i=t.algo,c=[];!function(){for(var t=0;t<64;t++)c[t]=4294967296*e.abs(e.sin(t+1))|0}();var u=i.MD5=a.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var r=t+n,o=e[r];e[r]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8)}var a=this._hash.words,i=e[t+0],u=e[t+1],h=e[t+2],y=e[t+3],d=e[t+4],m=e[t+5],v=e[t+6],g=e[t+7],b=e[t+8],w=e[t+9],O=e[t+10],A=e[t+11],P=e[t+12],j=e[t+13],x=e[t+14],S=e[t+15],C=a[0],_=a[1],I=a[2],E=a[3];C=s(C,_,I,E,i,7,c[0]),E=s(E,C,_,I,u,12,c[1]),I=s(I,E,C,_,h,17,c[2]),_=s(_,I,E,C,y,22,c[3]),C=s(C,_,I,E,d,7,c[4]),E=s(E,C,_,I,m,12,c[5]),I=s(I,E,C,_,v,17,c[6]),_=s(_,I,E,C,g,22,c[7]),C=s(C,_,I,E,b,7,c[8]),E=s(E,C,_,I,w,12,c[9]),I=s(I,E,C,_,O,17,c[10]),_=s(_,I,E,C,A,22,c[11]),C=s(C,_,I,E,P,7,c[12]),E=s(E,C,_,I,j,12,c[13]),I=s(I,E,C,_,x,17,c[14]),C=p(C,_=s(_,I,E,C,S,22,c[15]),I,E,u,5,c[16]),E=p(E,C,_,I,v,9,c[17]),I=p(I,E,C,_,A,14,c[18]),_=p(_,I,E,C,i,20,c[19]),C=p(C,_,I,E,m,5,c[20]),E=p(E,C,_,I,O,9,c[21]),I=p(I,E,C,_,S,14,c[22]),_=p(_,I,E,C,d,20,c[23]),C=p(C,_,I,E,w,5,c[24]),E=p(E,C,_,I,x,9,c[25]),I=p(I,E,C,_,y,14,c[26]),_=p(_,I,E,C,b,20,c[27]),C=p(C,_,I,E,j,5,c[28]),E=p(E,C,_,I,h,9,c[29]),I=p(I,E,C,_,g,14,c[30]),C=f(C,_=p(_,I,E,C,P,20,c[31]),I,E,m,4,c[32]),E=f(E,C,_,I,b,11,c[33]),I=f(I,E,C,_,A,16,c[34]),_=f(_,I,E,C,x,23,c[35]),C=f(C,_,I,E,u,4,c[36]),E=f(E,C,_,I,d,11,c[37]),I=f(I,E,C,_,g,16,c[38]),_=f(_,I,E,C,O,23,c[39]),C=f(C,_,I,E,j,4,c[40]),E=f(E,C,_,I,i,11,c[41]),I=f(I,E,C,_,y,16,c[42]),_=f(_,I,E,C,v,23,c[43]),C=f(C,_,I,E,w,4,c[44]),E=f(E,C,_,I,P,11,c[45]),I=f(I,E,C,_,S,16,c[46]),C=l(C,_=f(_,I,E,C,h,23,c[47]),I,E,i,6,c[48]),E=l(E,C,_,I,g,10,c[49]),I=l(I,E,C,_,x,15,c[50]),_=l(_,I,E,C,m,21,c[51]),C=l(C,_,I,E,P,6,c[52]),E=l(E,C,_,I,y,10,c[53]),I=l(I,E,C,_,O,15,c[54]),_=l(_,I,E,C,u,21,c[55]),C=l(C,_,I,E,b,6,c[56]),E=l(E,C,_,I,S,10,c[57]),I=l(I,E,C,_,v,15,c[58]),_=l(_,I,E,C,j,21,c[59]),C=l(C,_,I,E,d,6,c[60]),E=l(E,C,_,I,A,10,c[61]),I=l(I,E,C,_,h,15,c[62]),_=l(_,I,E,C,w,21,c[63]),a[0]=a[0]+C|0,a[1]=a[1]+_|0,a[2]=a[2]+I|0,a[3]=a[3]+E|0},_doFinalize:function(){var t=this._data,n=t.words,r=8*this._nDataBytes,o=8*t.sigBytes;n[o>>>5]|=128<<24-o%32;var a=e.floor(r/4294967296),i=r;n[15+(o+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),n[14+(o+64>>>9<<4)]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),t.sigBytes=4*(n.length+1),this._process();for(var c=this._hash,u=c.words,s=0;s<4;s++){var p=u[s];u[s]=16711935&(p<<8|p>>>24)|4278255360&(p<<24|p>>>8)}return c},clone:function(){var e=a.clone.call(this);return e._hash=this._hash.clone(),e}});function s(e,t,n,r,o,a,i){var c=e+(t&n|~t&r)+o+i;return(c<<a|c>>>32-a)+t}function p(e,t,n,r,o,a,i){var c=e+(t&r|n&~r)+o+i;return(c<<a|c>>>32-a)+t}function f(e,t,n,r,o,a,i){var c=e+(t^n^r)+o+i;return(c<<a|c>>>32-a)+t}function l(e,t,n,r,o,a,i){var c=e+(n^(t|~r))+o+i;return(c<<a|c>>>32-a)+t}t.MD5=a._createHelper(u),t.HmacMD5=a._createHmacHelper(u)}(Math),r.MD5)},5554:e=>{"use strict";var t="%[a-f0-9]{2}",n=new RegExp("("+t+")|([^%]+?)","gi"),r=new RegExp("("+t+")+","gi");function o(e,t){try{return[decodeURIComponent(e.join(""))]}catch(e){}if(1===e.length)return e;t=t||1;var n=e.slice(0,t),r=e.slice(t);return Array.prototype.concat.call([],o(n),o(r))}function a(e){try{return decodeURIComponent(e)}catch(a){for(var t=e.match(n)||[],r=1;r<t.length;r++)t=(e=o(t,r).join("")).match(n)||[];return e}}e.exports=function(e){if("string"!=typeof e)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch(t){return function(e){for(var t={"%FE%FF":"��","%FF%FE":"��"},n=r.exec(e);n;){try{t[n[0]]=decodeURIComponent(n[0])}catch(e){var o=a(n[0]);o!==n[0]&&(t[n[0]]=o)}n=r.exec(e)}t["%C2"]="�";for(var i=Object.keys(t),c=0;c<i.length;c++){var u=i[c];e=e.replace(new RegExp(u,"g"),t[u])}return e}(e)}}},3563:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n(6635);var o=n(5554);function a(e,t){if("string"!=typeof e||"string"!=typeof t)throw new TypeError("Expected the arguments to be of type `string`");if(""===t)return[e];var n=e.indexOf(t);return-1===n?[e]:[e.slice(0,n),e.slice(n+t.length)]}function i(e,t){return t.decode?o(e):e}function c(e){return Array.isArray(e)?e.sort():"object"===r(e)?c(Object.keys(e)).sort((function(e,t){return Number(e)-Number(t)})).map((function(t){return e[t]})):e}function u(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&"string"==typeof e&&""!==e.trim()?e=Number(e):!t.parseBooleans||null===e||"true"!==e.toLowerCase()&&"false"!==e.toLowerCase()||(e="true"===e.toLowerCase()),e}t.Qc=function(e,t){var n=function(e){var t;switch(e.arrayFormat){case"index":return function(e,n,r){t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===r[e]&&(r[e]={}),r[e][t[1]]=n):r[e]=n};case"bracket":return function(e,n,r){t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==r[e]?r[e]=[].concat(r[e],n):r[e]=[n]:r[e]=n};case"comma":return function(e,t,n){var r="string"==typeof t&&t.split("").indexOf(",")>-1?t.split(","):t;n[e]=r};default:return function(e,t,n){void 0!==n[e]?n[e]=[].concat(n[e],t):n[e]=t}}}(t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",parseNumbers:!1,parseBooleans:!1},t)),o=Object.create(null);if("string"!=typeof e)return o;if(!(e=e.trim().replace(/^[?#&]/,"")))return o;var s,p,f=!0,l=!1,h=void 0;try{for(var y,d=e.split("&")[Symbol.iterator]();!(f=(y=d.next()).done);f=!0){var m=(s=a(y.value.replace(/\+/g," "),"="),p=2,function(e){if(Array.isArray(e))return e}(s)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],r=!0,o=!1,a=void 0;try{for(var i,c=e[Symbol.iterator]();!(r=(i=c.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw a}}return n}}(s,p)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()),v=m[0];w=void 0===(w=m[1])?null:i(w,t),n(i(v,t),w,o)}}catch(e){l=!0,h=e}finally{try{f||null==d.return||d.return()}finally{if(l)throw h}}for(var g=0,b=Object.keys(o);g<b.length;g++){var w;if(v=b[g],"object"===r(w=o[v])&&null!==w)for(var O=0,A=Object.keys(w);O<A.length;O++){var P=A[O];w[P]=u(w[P],t)}else o[v]=u(w,t)}return!1===t.sort?o:(!0===t.sort?Object.keys(o).sort():Object.keys(o).sort(t.sort)).reduce((function(e,t){var n=o[t];return Boolean(n)&&"object"===r(n)&&!Array.isArray(n)?e[t]=c(n):e[t]=n,e}),Object.create(null))}},6635:e=>{"use strict";e.exports=function(e){return encodeURIComponent(e).replace(/[!'()*]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}},7375:(e,t)=>{"use strict";var n=Object.prototype.hasOwnProperty;function r(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch(e){return null}}function o(e){try{return encodeURIComponent(e)}catch(e){return null}}t.stringify=function(e,t){t=t||"";var r,a,i=[];for(a in"string"!=typeof t&&(t="?"),e)if(n.call(e,a)){if((r=e[a])||null!=r&&!isNaN(r)||(r=""),a=o(a),r=o(r),null===a||null===r)continue;i.push(a+"="+r)}return i.length?t+i.join("&"):""},t.parse=function(e){for(var t,n=/([^=?#&]+)=?([^&]*)/g,o={};t=n.exec(e);){var a=r(t[1]),i=r(t[2]);null===a||null===i||a in o||(o[a]=i)}return o}},7245:e=>{"use strict";e.exports=function(e,t){if(t=t.split(":")[0],!(e=+e))return!1;switch(t){case"http":case"ws":return 80!==e;case"https":case"wss":return 443!==e;case"ftp":return 21!==e;case"gopher":return 70!==e;case"file":return!1}return 0!==e}},5731:(e,t,n)=>{"use strict";var r=n(7245),o=n(7375),a=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,i=/[\n\r\t]/g,c=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,u=/:\d+$/,s=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,p=/^[a-zA-Z]:/;function f(e){return(e||"").toString().replace(a,"")}var l=[["#","hash"],["?","query"],function(e,t){return d(t.protocol)?e.replace(/\\/g,"/"):e},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d*)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],h={hash:1,query:1};function y(e){var t,r=("undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{}).location||{},o={},a=typeof(e=e||r);if("blob:"===e.protocol)o=new v(unescape(e.pathname),{});else if("string"===a)for(t in o=new v(e,{}),h)delete o[t];else if("object"===a){for(t in e)t in h||(o[t]=e[t]);void 0===o.slashes&&(o.slashes=c.test(e.href))}return o}function d(e){return"file:"===e||"ftp:"===e||"http:"===e||"https:"===e||"ws:"===e||"wss:"===e}function m(e,t){e=(e=f(e)).replace(i,""),t=t||{};var n,r=s.exec(e),o=r[1]?r[1].toLowerCase():"",a=!!r[2],c=!!r[3],u=0;return a?c?(n=r[2]+r[3]+r[4],u=r[2].length+r[3].length):(n=r[2]+r[4],u=r[2].length):c?(n=r[3]+r[4],u=r[3].length):n=r[4],"file:"===o?u>=2&&(n=n.slice(2)):d(o)?n=r[4]:o?a&&(n=n.slice(2)):u>=2&&d(t.protocol)&&(n=r[4]),{protocol:o,slashes:a||d(o),slashesCount:u,rest:n}}function v(e,t,n){if(e=(e=f(e)).replace(i,""),!(this instanceof v))return new v(e,t,n);var a,c,u,s,h,g,b=l.slice(),w=typeof t,O=this,A=0;for("object"!==w&&"string"!==w&&(n=t,t=null),n&&"function"!=typeof n&&(n=o.parse),a=!(c=m(e||"",t=y(t))).protocol&&!c.slashes,O.slashes=c.slashes||a&&t.slashes,O.protocol=c.protocol||t.protocol||"",e=c.rest,("file:"===c.protocol&&(2!==c.slashesCount||p.test(e))||!c.slashes&&(c.protocol||c.slashesCount<2||!d(O.protocol)))&&(b[3]=[/(.*)/,"pathname"]);A<b.length;A++)"function"!=typeof(s=b[A])?(u=s[0],g=s[1],u!=u?O[g]=e:"string"==typeof u?~(h="@"===u?e.lastIndexOf(u):e.indexOf(u))&&("number"==typeof s[2]?(O[g]=e.slice(0,h),e=e.slice(h+s[2])):(O[g]=e.slice(h),e=e.slice(0,h))):(h=u.exec(e))&&(O[g]=h[1],e=e.slice(0,h.index)),O[g]=O[g]||a&&s[3]&&t[g]||"",s[4]&&(O[g]=O[g].toLowerCase())):e=s(e,O);n&&(O.query=n(O.query)),a&&t.slashes&&"/"!==O.pathname.charAt(0)&&(""!==O.pathname||""!==t.pathname)&&(O.pathname=function(e,t){if(""===e)return t;for(var n=(t||"/").split("/").slice(0,-1).concat(e.split("/")),r=n.length,o=n[r-1],a=!1,i=0;r--;)"."===n[r]?n.splice(r,1):".."===n[r]?(n.splice(r,1),i++):i&&(0===r&&(a=!0),n.splice(r,1),i--);return a&&n.unshift(""),"."!==o&&".."!==o||n.push(""),n.join("/")}(O.pathname,t.pathname)),"/"!==O.pathname.charAt(0)&&d(O.protocol)&&(O.pathname="/"+O.pathname),r(O.port,O.protocol)||(O.host=O.hostname,O.port=""),O.username=O.password="",O.auth&&(~(h=O.auth.indexOf(":"))?(O.username=O.auth.slice(0,h),O.username=encodeURIComponent(decodeURIComponent(O.username)),O.password=O.auth.slice(h+1),O.password=encodeURIComponent(decodeURIComponent(O.password))):O.username=encodeURIComponent(decodeURIComponent(O.auth)),O.auth=O.password?O.username+":"+O.password:O.username),O.origin="file:"!==O.protocol&&d(O.protocol)&&O.host?O.protocol+"//"+O.host:"null",O.href=O.toString()}v.prototype={set:function(e,t,n){var a=this;switch(e){case"query":"string"==typeof t&&t.length&&(t=(n||o.parse)(t)),a[e]=t;break;case"port":a[e]=t,r(t,a.protocol)?t&&(a.host=a.hostname+":"+t):(a.host=a.hostname,a[e]="");break;case"hostname":a[e]=t,a.port&&(t+=":"+a.port),a.host=t;break;case"host":a[e]=t,u.test(t)?(t=t.split(":"),a.port=t.pop(),a.hostname=t.join(":")):(a.hostname=t,a.port="");break;case"protocol":a.protocol=t.toLowerCase(),a.slashes=!n;break;case"pathname":case"hash":if(t){var i="pathname"===e?"/":"#";a[e]=t.charAt(0)!==i?i+t:t}else a[e]=t;break;case"username":case"password":a[e]=encodeURIComponent(t);break;case"auth":var c=t.indexOf(":");~c?(a.username=t.slice(0,c),a.username=encodeURIComponent(decodeURIComponent(a.username)),a.password=t.slice(c+1),a.password=encodeURIComponent(decodeURIComponent(a.password))):a.username=encodeURIComponent(decodeURIComponent(t))}for(var s=0;s<l.length;s++){var p=l[s];p[4]&&(a[p[1]]=a[p[1]].toLowerCase())}return a.auth=a.password?a.username+":"+a.password:a.username,a.origin="file:"!==a.protocol&&d(a.protocol)&&a.host?a.protocol+"//"+a.host:"null",a.href=a.toString(),a},toString:function(e){e&&"function"==typeof e||(e=o.stringify);var t,n=this,r=n.host,a=n.protocol;a&&":"!==a.charAt(a.length-1)&&(a+=":");var i=a+(n.protocol&&n.slashes||d(n.protocol)?"//":"");return n.username?(i+=n.username,n.password&&(i+=":"+n.password),i+="@"):n.password?(i+=":"+n.password,i+="@"):"file:"!==n.protocol&&d(n.protocol)&&!r&&"/"!==n.pathname&&(i+="@"),(":"===r[r.length-1]||u.test(n.hostname)&&!n.port)&&(r+=":"),i+=r+n.pathname,(t="object"==typeof n.query?e(n.query):n.query)&&(i+="?"!==t.charAt(0)?"?"+t:t),n.hash&&(i+=n.hash),i}},v.extractProtocol=m,v.location=y,v.trimLeft=f,v.qs=o,e.exports=v},633:()=>{},7609:(e,t,n)=>{var r=n(7425).default;function o(){"use strict";e.exports=o=function(){return t},e.exports.__esModule=!0,e.exports.default=e.exports;var t={},n=Object.prototype,a=n.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},c=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function p(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{p({},"")}catch(e){p=function(e,t,n){return e[t]=n}}function f(e,t,n,r){var o=t&&t.prototype instanceof y?t:y,a=Object.create(o.prototype),i=new S(r||[]);return a._invoke=function(e,t,n){var r="suspendedStart";return function(o,a){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw a;return{value:void 0,done:!0}}for(n.method=o,n.arg=a;;){var i=n.delegate;if(i){var c=P(i,n);if(c){if(c===h)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=l(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===h)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}(e,n,i),a}function l(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=f;var h={};function y(){}function d(){}function m(){}var v={};p(v,c,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(C([])));b&&b!==n&&a.call(b,c)&&(v=b);var w=m.prototype=y.prototype=Object.create(v);function O(e){["next","throw","return"].forEach((function(t){p(e,t,(function(e){return this._invoke(t,e)}))}))}function A(e,t){function n(o,i,c,u){var s=l(e[o],e,i);if("throw"!==s.type){var p=s.arg,f=p.value;return f&&"object"==r(f)&&a.call(f,"__await")?t.resolve(f.__await).then((function(e){n("next",e,c,u)}),(function(e){n("throw",e,c,u)})):t.resolve(f).then((function(e){p.value=e,c(p)}),(function(e){return n("throw",e,c,u)}))}u(s.arg)}var o;this._invoke=function(e,r){function a(){return new t((function(t,o){n(e,r,t,o)}))}return o=o?o.then(a,a):a()}}function P(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,P(e,t),"throw"===t.method))return h;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var r=l(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,h;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,h):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,h)}function j(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function x(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(j,this),this.reset(!0)}function C(e){if(e){var t=e[c];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,r=function t(){for(;++n<e.length;)if(a.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return r.next=r}}return{next:_}}function _(){return{value:void 0,done:!0}}return d.prototype=m,p(w,"constructor",m),p(m,"constructor",d),d.displayName=p(m,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,m):(e.__proto__=m,p(e,s,"GeneratorFunction")),e.prototype=Object.create(w),e},t.awrap=function(e){return{__await:e}},O(A.prototype),p(A.prototype,u,(function(){return this})),t.AsyncIterator=A,t.async=function(e,n,r,o,a){void 0===a&&(a=Promise);var i=new A(f(e,n,r,o),a);return t.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},O(w),p(w,s,"Generator"),p(w,c,(function(){return this})),p(w,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},t.values=C,S.prototype={constructor:S,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!e)for(var t in this)"t"===t.charAt(0)&&a.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(n,r){return i.type="throw",i.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],i=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var c=a.call(o,"catchLoc"),u=a.call(o,"finallyLoc");if(c&&u){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,h):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),h},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),x(n),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;x(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:C(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),h}},t}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},7425:e=>{function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},2841:(e,t,n)=>{var r=n(7609)();e.exports=r;try{regeneratorRuntime=r}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var a=t[r]={exports:{}};return e[r].call(a.exports,a,a.exports,n),a.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var r={};return(()=>{"use strict";n.d(r,{default:()=>Ke});var e=function(e){if(window.AlipayJSBridge)return e();document.addEventListener("AlipayJSBridgeReady",(function(){return e()}),!1)},t=!1,o=[];function a(e){return o.push(e),function(){o=o.filter((function(t){return t!==e}))}}function i(n){return t||(document.addEventListener("onToWebViewMessage",(function(e){var t=e.data.res;if(t&&"message"===t.type){var n=JSON.parse(t.data);o.forEach((function(e){return e(n)}))}})),t=!0),e((function(){window.AlipayJSBridge.call("postWebViewMessage",{type:"message",detail:n})}))}var c={};function u(e,t,n){var r=e+"_"+Math.floor(1e6*Math.random());t&&(c[r]=t),i({source:"hylid",type:"apiCall",api:e,serialId:r,options:t,config:n,isSync:null==n?void 0:n.isSync})}a((function(e){var t,n=e,r=n.serialId;if(r&&c[r]){var o=c[r],a=n.result;if("callback"===(null===(t=n.config)||void 0===t?void 0:t.type)){var i=a||{},u=i._data_;return"success"===i._type_?o(u):o(void 0,u)}var s=o||{},p=s.success,f=s.fail,l=s.complete,h=a||{},y=h._data_,d=h._type_;d?("success"===d&&(null==p||p(y)),"fail"===d&&(null==f||f(y)),null==l||l(y)):((null==a?void 0:a.error)?null==f||f(a):null==p||p(a),null==l||l(a)),delete c[r]}})),u.onMessage=a,u.postMessage=i,u.broadcastGlobalData=function(e,t){i({source:"hylid",type:"broadcast",from:window.location.href,key:e,result:t})},u.onReceiveGlobalData=function(e,t){return a((function(n){var r=n;if("hylid"===r.source&&"broadcast"===r.type&&r.key===e){var o=r.result||{},a=o._data_;return"success"===o._type_?t(a,void 0,r.from):t(void 0,a,r.from)}}))},u.onPageEvent=function(e,t){return i({source:"hylid",type:"pageEvent",event:e}),a((function(n){var r=n;if("hylid"===r.source&&"pageEvent"===r.type&&r.event===e){var o=r.result||{},a=o._data_;return"success"===o._type_?t(a):t(void 0,a)}}))};function s(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var p=["success","fail","complete"],f=function(e){return function(t){return new Promise((function(n,r){var o=t||{},a=o.success,i=o.fail,c=o.complete,u=s(o,p);e(u,(function(e){n(e),null==a||a(e),null==c||c(e)}),(function(e){r(e),null==i||i(e),null==c||c(e)}))}))}},l=function(e){return function(t){return toString.call(t)==="[object ".concat(e,"]")}};function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}l("RegExp"),l("String"),l("Function"),l("Object"),l("Number"),Array.isArray,l("Boolean");var y=n(3563),d=n(5731),m=n.n(d);function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v(Object(n),!0).forEach((function(t){h(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var b=function(e){return e.openInApp="openinapp",e.openOtherApp="openotherapp",e.openBizScene="openbizscene",e.openPayCodePage="openpaycodepage",e.openApPayCodePage="openappaycodepage",e.openScanPage="openscanpage",e.openInBrowser="openinbrowser",e}(b||{}),w=function(e){return e.scan="scan",e.payCode="payCode",e}(w||{}),O="caprMode=sync";function A(e,t){var n=e.filter((function(e){return e.match.every((function(e){return e.test(t)}))}));if(n.length){var r=n[0].name;if(n.length>1){var o=n.map((function(e){return e.name})).join(",");j("Multiple clients have been identified(".concat(o,"), and the first one(").concat(r,")is used by default."))}return r}}function P(e,t){return Object.keys(e).reduce((function(n,r){return n["is".concat(r)]=t===e[r],n}),{})}function j(e){console.info("[hylid-env]: ".concat(e))}var x={WEB:"web",MPWEB:"mpweb",MP:"mp"},S={DEMO:"demo",ALIPAY:"alipay",ALIPAYHK:"alipayhk",TNGD:"tngd",GCASH:"gcash",TRUEMONEY:"truemoney",DANA:"dana",KAKAOPAY:"kakaopay",KAKAOTALK:"kakaotalk",NAVERPAY:"naverpay",MPAY:"mpay",TOSSPAY:"toss",HIPAY:"hipay",CHOPE:"chope",VODAPAY:"vodapay",CHANGIPAY:"changipay",OCBC:"ocbc",MANDIRI:"mandiri",NAYAPAY:"nayapay",TINABA:"tinaba",KASPI:"kaspi",H5:"h5",WECHAT:"wechat",TNGD_H5NG:"tngdh5ng"},C=/miniprogram/i,_=/^((?!miniprogram).)*$/i,I=/griver/i,E=/^((?!griver).)*$/i,T=[{name:S.DEMO,match:[/demo/]},{name:S.ALIPAY,match:[/alipay/]},{name:S.ALIPAYHK,match:[/hk/]},{name:S.TNGD,match:[/tngd/]},{name:S.GCASH,match:[/gcash/]},{name:S.TRUEMONEY,match:[/tmn/]},{name:S.DANA,match:[/dana/]},{name:S.TOSSPAY,match:[/toss/]}],k=[{name:S.DEMO,match:[/alipayIDE/i]},{name:S.ALIPAYHK,match:[C,E,/AlipayClientHK/]},{name:S.TNGD,match:[C,/TNGKit|Touch 'n Go/]},{name:S.GCASH,match:[C,I,/GCash/]},{name:S.TRUEMONEY,match:[C,I,/TrueMoney/]},{name:S.ALIPAY,match:[C,E,/alipay/i]},{name:S.DEMO,match:[C,I]}];function D(){return A(k,window.navigator.userAgent)}var L=[{name:S.ALIPAYHK,match:[_,E,/AlipayClientHK/]},{name:S.TNGD,match:[_,I,/TNGKit|Touch 'n Go/]},{name:S.TNGD_H5NG,match:[_,/TNGKit|Touch 'n Go/,/IAPWebH5NG/]},{name:S.GCASH,match:[_,I,/GCash/]},{name:S.TRUEMONEY,match:[_,I,/TrueMoney/i]},{name:S.KAKAOPAY,match:[_,/PAYCLIENT|KAKAOTALK|KAKAOPAY/]},{name:S.KAKAOTALK,match:[_,/ALIPAYCONNECT_KAKAO_TALK/]},{name:S.NAVERPAY,match:[_,/NAVER/]},{name:S.MPAY,match:[_,/mpay|macaupay/i]},{name:S.TOSSPAY,match:[_,/Toss/i]},{name:S.ALIPAY,match:[_,E,/AlipayClient/]},{name:S.DEMO,match:[_,I,/GriverDemo/]}];function N(){return A(L,window.navigator.userAgent)||S.H5}var R=function(){var e,t;if("undefined"!=typeof wx||"undefined"!=typeof my&&"string"==typeof my.SDKVersion)e="undefined"!=typeof wx?S.WECHAT:A(T,my.getSystemInfoSync().app),t=x.MP;else{var n=function(){var e,t=((null===(e=window.location.search)||void 0===e?void 0:e.match(/__app__=([^&]*)/))||[])[1],n=(window.location.search.match(/__platform__=([^&]*)/)||[])[1];(t||n)&&localStorage.setItem("__hy_env__",JSON.stringify({client:t,platform:n}));var r=localStorage.getItem("__hy_env__");return r?JSON.parse(r):{}}();n.platform?(t=n.platform,e=n.client||("mpweb"===t?D():N())):(e=n.client||D())?t=x.MPWEB:(e=N(),t=x.WEB)}return t&&e||j("Cannot identify your client."),{client:e,platform:t}}(),B=R.client,M=R.platform;P(S,B),P(x,M);var Y,G={NOTFOUND:{code:-1,message:function(e){return"".concat(e," is not found")}},NOTALLOWED:{code:-2,message:function(e){return"".concat(e," is not allowed")}},INVALID:{code:-3,message:function(e){return"".concat(e," is invalid")}},NOTBIND:{code:-4,message:function(e){return"".concat(e," exec fail, webviewBridge not bind context")}},PARAMS_ERROR:{code:-5,message:function(e){return"".concat(e," exec fail, params error")}}},U=((Y={})[x.MP]=function(e,t,n){var r=(n||{}).type,o=void 0===r?"async":r;return"sync"===o||(null==n?void 0:n.isSync)?my[e](t):("async"===o&&(my[e]?my[e](t):my.call(e,t)),"callback"===o&&my[e](t),"attribute"===o?my[e]:void 0)},Y[x.MPWEB]=u,Y[x.WEB]=function(t,n,r){e((function(){var e=(r||{}).type,o=void 0===e?"async":e;"async"===o&&window.AlipayJSBridge.call(t,n,(function(e){var t=n||{},r=t.success,o=t.fail,a=t.complete;e.error?null==o||o(e):null==r||r(e),null==a||a(e)})),"callback"===o&&window.AlipayJSBridge.call(t,n)}))},Y);function K(e,t,n){return M?U[M](e,t,n):function(e,t,n){var r;void 0===n&&(n={});var o=n.type,a=void 0===o?"async":o,i=function(e,t){void 0===t&&(t="");var n=G.NOTFOUND;return{errorCode:n.code,errorMessage:(0,n.message)(t),errorSouce:"hylid"}}(0,e);if("sync"===a)return i;"callback"===a&&(null==t||t(i)),"async"===a&&(null===(r=null==t?void 0:t.fail)||void 0===r||r.call(t,i))}(t,n)}function q(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function H(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?q(Object(n),!0).forEach((function(t){h(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):q(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var W=function(){return K("navigateToBizScene",{sceneCode:"QR_PAY"})},F=function(){return K("navigateToBizScene",{sceneCode:"SCAN"})},z=function(e){return K("navigateToBizScene",{sceneCode:"SCHEME",param:{scheme:e.url}})};function V(e){var t=e.url,n=e.path,r=n&&"/"!==n?n:"/pages/index/index";if(!t)return r;var o=r.includes("?")?"&":"?";return"".concat(r).concat(o,"url=").concat(encodeURIComponent(t))}var J=function(e){return K("navigateTo",{url:V(e)})},$=function(e){return K("navigateToMiniProgram",H(H({},e),{},{extraData:null==e?void 0:e.launchParams}))},Q=function(e){return K("navigateToBizScene",{sceneCode:"WEB_PAGE",param:{url:e.url}})};const Z=f((function(e,t,n){!function(e,t,n){if(e)if(e.startsWith("aplus://"))!function(e,t,n){var r,o=new(m())(e,!0),a=o.host,i=o.pathname,c=o.query;switch(a){case b.openInApp:t.openInApp(g({path:i,url:c.url||""},n));break;case b.openOtherApp:console.log("### openCustomScheme",b.openOtherApp);var u=c.appId,s=void 0===u?"":u,p=c.path,f=c.launchParams,l=void 0===f?"":f,h=(0,y.Qc)(l);t.openOtherApp(g({appId:s,path:p,launchParams:h},n));break;case b.openBizScene:console.warn("该 API 已弃用, 请使用 aplus://openApPayCodePage 等链接替代"),c.sceneCode===w.scan?t.openScanPage(n):c.sceneCode===w.payCode&&t.openApPayCodePage(n);break;case b.openScanPage:t.openScanPage(n);break;case b.openPayCodePage:t.openPayCodePage(n);break;case b.openApPayCodePage:t.openApPayCodePage(n);break;case b.openInBrowser:t.openInBrowser(g({url:c.url||""},n));break;default:console.log("[openCustomScheme] 不支持的 routeType: ",a),n.fail&&n.fail((r="openCustomScheme ".concat(a),{error:-102,errorMessage:"[".concat(r,"]: Not Support")}))}}(e,t,n);else if(e.startsWith("/")){var r=function(e){var t=location.pathname.replace(/\/[^/]+.html/,""),n="".concat(location.protocol,"//").concat(location.host).concat(t).concat(e);if(location.search.includes(O)){var r=n.includes("?")?"&":"?";return"".concat(n).concat(r).concat(O)}return n}(e);t.openInApp(g({url:r},n))}else t.openWebURL(g({url:e},n))}(e.url,{openWebURL:Q,openInApp:J,openOtherApp:$,openInBrowser:z,openPayCodePage:W,openApPayCodePage:W,openScanPage:F},{success:t,fail:n})})),X=Q,ee=J,te=$,ne=z,re=W,oe=W,ae=F;var ie=function(){return ie=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ie.apply(this,arguments)},ce=function(e){return function(t){return new Promise((function(n,r){var o=ie(ie({},t),{success:function(e){var r;n(e),null===(r=null==t?void 0:t.success)||void 0===r||r.call(t,e)},fail:function(e){var n;r(e),null===(n=null==t?void 0:t.fail)||void 0===n||n.call(t,e)}});e(o)}))}};function ue(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function se(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ue(Object(n),!0).forEach((function(t){h(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ue(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function pe(e,t,n,r,o,a,i){try{var c=e[a](i),u=c.value}catch(e){return void n(e)}c.done?t(u):Promise.resolve(u).then(r,o)}function fe(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function i(e){pe(a,r,o,i,c,"next",e)}function c(e){pe(a,r,o,i,c,"throw",e)}i(void 0)}))}}var le=n(2841),he=n.n(le),ye=n(9174),de=n.n(ye);function me(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ve(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?me(Object(n),!0).forEach((function(t){h(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):me(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ge(e,t){var n=_e();return(ge=function(e,t){return n[e-=0]})(e,t)}var be,we={TOSS:xe(0,-318,0,-325)+xe(0,-323,0,-291)+Ce(258,247)+Ce(236,255)+"8v0XGf"+je(0,-440,0,0,-455),MPAY:je(0,-464,0,0,-474)+"6C1JVc"+je(0,-488,0,0,-496)+Ce(235,249)+je(0,-482,0,0,-464),ALIPAY:Ce(288,272)+je(0,-502,0,0,-510)+Ce(202,231)+xe(0,-241,0,-266)+Ce(296,285)+xe(0,-352,0,-322)},Oe={TOSS:xe(0,-276,0,-279)+Ce(256,245)+xe(0,-340,0,-309)+"ds.aut"+Ce(266,239)+xe(0,-283,0,-297),MPAY:je(0,-471,0,0,-463)+Ce(257,245)+xe(0,-307,0,-296)+xe(0,-280,0,-263)+"h.authlogin",ALIPAY:xe(0,-266,0,-279)+Ce(245,245)+"svoyag"+je(0,-439,0,0,-447)+je(0,-523,0,0,-495)+je(0,-511,0,0,-481)},Ae=function(e,t){var n={c:function(e,t){return e===t},d:u(0,0,-552,-521),e:function(e,t){return e(t)}},r=we[t];function o(e,t,n,r,o){return ge(r-948,e)}if(!r&&n[i(-688,0,0,0,-699)](n[u(0,0,-507,-495)],n[u(0,0,-501,-495)]))return{};var a=Date.now();function i(e,t,n,r,o){return ge(e- -702,o)}var c=r+"&ts="+a+"&requestData"+u(0,0,-510,-543)+e[u(0,0,-497,-496)+"tData"]+o(970,0,0,1e3)+"tionTy"+o(1033,0,0,1011)+e[u(0,0,-511,-484)+u(0,0,-497,-511)+"e"];function u(e,t,n,r,o){return ge(r- -549,n)}return{signV2:n[u(0,0,-545,-529)](de(),c)[i(-652,0,0,0,-668)+"ng"](),ts:a}};function Pe(){var e={c:r(-579,0,-597)+r(-587,0,-558)+"cdef",d:function(e,t){return e<t},e:function(e,t){return e!==t},f:r(-520,0,-550),g:r(-539,0,-546),h:function(e,t){return e*t},i:function(e,t){return e|t},j:function(e,t){return e&t}},t=[],n=e[r(-585,0,-587)];function r(e,t,n,r,o){return ge(n- -601,e)}for(var o=0;e[a(0,-57,0,-80)](o,36);o++)e[r(-570,0,-581)](e[a(0,-112,0,-115)],e[i(442,459)])&&(t[o]=n.substr(Math[r(-540,0,-541)](e[a(0,-87,0,-105)](Math[a(0,-123,0,-90)](),16)),1));function a(e,t,n,r,o){return ge(r- -134,t)}function i(e,t,n,r,o){return ge(t-426,e)}return t[14]=i(439,429),t[19]=n[r(-581,0,-594)](e[a(0,-151,0,-124)](e[i(455,483)](t[19],3),8),1),t[8]=t[13]=t[18]=t[23]=a(0,-65,0,-75),t[i(465,465)]("")}function je(e,t,n,r,o){return ge(o- -511,t)}function xe(e,t,n,r,o){return ge(r- -327,t)}var Se=function(){var e=fe(he().mark((function e(t){var n,r,o,a,i,c,u,s,p,f,l,h,y,d,m,v,g,b,w,O,A,P,j,x,S,C,_;return he().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return m=function(e,t,n,o,a){return ge(e-r.c,t)},u=function(e,t,n,r,o){return ge(n-926,e)},a=function(e,t,n,r,a){return ge(r-o.c,e)},r={c:403},o={c:384},i={c:function(e,t){return e*t},d:function(e){return e()},e:function(e){return e()},f:function(e,t,n){return e(t,n)},g:function(e,t){return e(t)},h:function(e,t){return e!==t},i:u((n={c:934,d:974,e:417,f:381,g:398,h:972,i:969,j:996,k:960,l:935,m:905,n:947,o:417,p:429,q:423,r:438,t:416,u:426,v:439,w:958,x:986,ah:977,ai:961,aj:444,ak:470,al:461,am:470,an:997,ao:383,ap:397,aq:401,ar:396,as:428,at:916,au:931,av:917,aw:465,ax:446,ay:374,az:399,aA:390,aB:394,aC:955,aD:954,aE:926,aF:953,aG:995,aH:1011,aI:420,aJ:397,aK:375,aL:415,aM:471,aN:467,aO:477,aP:384,aQ:973,aR:946,aS:948,aT:968,aU:967,aV:964,aW:998,aX:954,aY:949,aZ:445,b0:413,b1:419,b2:441,b3:418}).c,941,966,961,n.d),j:function(e,t){return e-t},k:function(e,t){return e*t},l:function(e,t){return e-t},m:"nBZiR"},c=i[a(n.e,405,n.f,n.g,421)](60,1e3),s=i[u(924,n.h,940,928,n.i)](3600,1e3),p=t.httpRequest,f=t.getAuthParams,l=t.saveAuthParams,h=t.getAuthCode,y=t.getAppId,d=t.siteName,v=Oe[d],e.prev=7,e.next=10,i.d(f);case 10:return w=e.sent,O="",O=null!=w&&w[u(1e3,n.j,971,940,977)]&&null!=w&&null!==(g=w[u(949,967,971,n.k,982)])&&void 0!==g&&g[u(967,964,n.l,n.m,n.n)]?null==w||null===(b=w[m(448,468,n.o,n.p,445)])||void 0===b?void 0:b.token:i[m(423,n.q,n.g,n.r,n.t)](Pe),e.next=15,i[a(n.u,n.v,460,n.r,406)](y);case 15:return A=e.sent,P=A.appId,j={instanceId:O,appId:P},e.next=20,i[u(n.w,n.x,980,n.ah,n.ai)](h);case 20:return x=e.sent,j["authCo"+m(n.aj,430,n.ak,451,437)]=x[m(n.al,n.v,n.am,446,438)+u(975,n.an,967,966,943)]||"",S={operationType:v,requestData:JSON[a(n.ao,n.ap,421,n.aq,397)+a(390,374,373,n.ar,367)]([j])},C=i.f(Ae,S,d),e.next=26,i[m(436,433,443,440,451)](p,ve(ve({},S),{},{headers:ve({},C)}));case 26:if((_=e.sent)&&_[m(n.as,459,400,395,447)+u(n.at,n.au,947,n.av,937)]){e.next=32;break}if(!i[m(432,n.aw,n.as,n.q,n.ax)](i[a(410,384,364,394,n.ay)],i[a(n.az,411,n.aA,n.aB,424)])){e.next=31;break}e.next=32;break;case 31:throw _;case 32:i.g(l,{sessionIdLastTime:Date[u(n.aC,n.aD,n.aE,n.aF,923)](),sessionIdExpiresTime:i[u(1008,n.aG,983,n.aH,962)](i.k(_[a(371,n.aI,365,n.aJ,n.aK)+a(n.aL,429,389,411,392)+m(449,n.aM,n.aN,416,n.aO)]||0,1e3),c),clientKeyLastTime:Date[a(n.aA,414,405,n.aP,360)](),clientKeyExpiresTime:i[u(n.aQ,966,961,n.l,n.aR)](i.c(_[u(n.aS,949,n.aT,n.aU,n.aV)+"KeyExpireTime"]||0,1e3),s),clientKey:_[u(n.aW,983,968,998,991)+u(971,n.aX,n.aY,975,922)]||"",openId:_[u(949,n.n,937,926,952)]||"",token:O});case 33:return e.prev=33,i[m(432,n.aZ,n.b0,n.b1,418)](i[a(n.u,n.aJ,n.b2,n.b3,434)],i.m)||(be=void 0),e.finish(33);case 36:case"end":return e.stop()}}),e,null,[[7,,33,36]])})));return function(t){return e.apply(this,arguments)}}();function Ce(e,t,n,r,o){return ge(t-223,e)}function _e(){var e=["now","e403eb","Y2RnWk","4","012345","ae","=","substr","8e8bf2","token","i","openId","ify","sessio","c","4fBX3i","h.auth","string","srewar","f","e","s","payplu","Key","x3pTVp","succes","8yrZzV","nExpir","YvQOw","h","login","svoyag","9uI6g1","g","m","l","5yJGy4","aLhI5S","ionTyp","join","WrLog","de","client","6789ab","random","data","eTime","Ctk","ap.ali","094d20","toStri","JlqiC","&opera","reques","d","pgeFL","Qh","j","authCo","-","floor","a17e0f","0ba7fc","pe=","er.aut","operat"];return(_e=function(){return e})()}var Ie=function(){var e=fe(he().mark((function e(t){var n,r,o,a,i,c,u,s,p,f,l,h,y,d;return he().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return d=function(e,t,n,o,a){return ge(a-r.c,n)},y=function(e,t,n,r,o){return ge(t-24,r)},p=function(e,t,n,r,a){return ge(e-o.c,r)},n={c:21,d:42,e:77,f:521,g:570,h:27,i:44,j:500,k:547,l:52,m:70,n:39,o:25,p:87,q:75,r:56,t:53,u:24,v:78,w:65,x:34,as:32},r={c:519},o={c:58},a={c:function(e){return e()},d:function(e,t){return e&&t},e:function(e,t){return e<t},f:function(e,t){return e-t},g:function(e,t){return e===t},h:"cgVrj",i:function(e,t){return e(t)}},i=t.isForceLogin,c=void 0!==i&&i,u=t.getAuthParams,e.next=12,a[y(n.c,38,17,n.d,71)](u);case 12:if(s=e.sent,f=s[y(n.e,69,58,73,67)]||{},l=f.sessionIdExpiresTime,h=f.sessionIdLastTime,!(a.d(!c,h)&&l&&a[d(n.f,548,n.g,545,539)](a[y(n.h,43,52,26,n.i)](Date[d(n.j,530,534,n.k,519)](),h),l))){e.next=19;break}if(!a[y(n.l,57,n.m,n.n,n.o)](a[p(n.p,n.q,118,n.r,76)],a[y(27,n.t,28,n.u,n.v)])){e.next=19;break}return e.abrupt("return");case 19:return be=be||a[y(n.w,n.x,42,42,n.as)](Se,t),e.next=22,be;case 22:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Ee=["headers"];function Te(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ke(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Te(Object(n),!0).forEach((function(t){h(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Te(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const De=function(e){return u("request",e,{type:"async"})};const Le=function(e){return u("getStorage",e,{type:"async"})};const Ne=function(e){return u("setStorage",e,{type:"async"})};var Re=ce((function(e){return u("getAuthCode",e,{type:"async"})})),Be=ce(Le),Me=ce(Ne),Ye=ce((function(e){u("getAppIdSync",e,{type:"sync"})}));function Ge(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ue(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const Ke={getAppToken:function(e){return u("getAppToken",e,{type:"async"})},getAuthCode:function(e){return u("getAuthCode",e,{type:"async"})},getStorage:function(e){return u("getStorage",e,{type:"async"})},request:function(e){return u("request",e,{type:"async"})},setStorage:function(e){return u("setStorage",e,{type:"async"})},createWithoutAuthRpc:function(e){return u("createWithoutAuthRpc",e,{type:"sync"})},defineRuntimeConfig:function(e){return u("defineRuntimeConfig",e,{type:"sync"})},setTransparentTitle:function(e){return u("setTransparentTitle",e,{type:"async"})},openURL:Z,openWebURL:X,openInApp:ee,openOtherApp:te,openInBrowser:ne,openPayCodePage:re,openApPayCodePage:oe,openScanPage:ae,rpcWithAuth:function(e){return function(e,t,n,r,o,a){var i="auth-login-storage",c=null,u=function(){return c||(c=t({key:i}))},p=function(e){return c={data:e},n({key:i,data:e})},l=f(function(){var t=fe(he().mark((function t(n,i,c){var f,l,h,y,d;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return f=n.headers,"string"!=typeof(l=s(n,Ee)).requestData&&(l.requestData=JSON.stringify(l.requestData)),h=function(e){var t=e.headers,n=e.operationType,r=e.requestData;return new Promise((function(e,o){a(ke(ke({},l),{},{requestData:r,headers:ke(ke(ke({},f),t),{},{"Operation-Type":n}),operationType:n,success:function(t){e(null==t?void 0:t.resData)},fail:function(e){o(e)}}))}))},t.prev=3,t.next=6,Ie({httpRequest:h,isForceLogin:!1,getAuthParams:u,saveAuthParams:p,getAuthCode:r,getAppId:o,siteName:e});case 6:t.next=12;break;case 8:return t.prev=8,t.t0=t.catch(3),c(t.t0),t.abrupt("return");case 12:y=Ae(l,e),d=ke(ke({},f),y),a(ke(ke({},l),{},{headers:d,success:function(t){var n,s;"2000"===(null===(n=t.headers)||void 0===n||null===(s=n["result-status"])||void 0===s?void 0:s.toString())?Ie({httpRequest:h,isForceLogin:!0,getAuthParams:u,saveAuthParams:p,getAuthCode:r,getAppId:o,siteName:e}).then((function(){a(ke(ke({},l),{},{headers:d,success:i,fail:c}))})).catch((function(e){c(e)})):i(t)},fail:c}));case 15:case"end":return t.stop()}}),t,null,[[3,8]])})));return function(e,n,r){return t.apply(this,arguments)}}());return l}("MPAY",Be,Me,(function(){return Re({scopes:["auth_base"]})}),(function(){return Ye()}),function(e){var t=e.appId,n=e.workspaceId,r=void 0===n?"default":n,o=e.defaultGateway,a=e.defaultHeaders,i=e.request,c=t&&r?h({AppId:t,workspaceId:r},"X-CORS-".concat(t,"-").concat(r),"1"):{};return f((function(e,t,n){var r=e.gateway,u=e.operationType,s=e.headers,p=e.requestData,f=e.timeout;i({url:r||o,method:"POST",timeout:f,headers:se(se(se({"Content-Type":"application/json"},a),{},{"Operation-Type":u},c),s),data:p,success:function(e){t({headers:(null==e?void 0:e.headers)||{},resData:(null==e?void 0:e.data)||{}})},fail:n})}))}({appId:"MPAY_WALLET_MO",workspaceId:e.workspaceId||"default",defaultGateway:"https://imgs-sea-global.alipay.com/imgw.htm",request:De}))(e)},getAppId:function(e){u("getAppIdSync",e,{type:"sync"})},getCurrentPages:function(e){u("__hy_internal__",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ge(Object(n),!0).forEach((function(t){h(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ge(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({name:"getCurrentPages"},e))},getSDKVersion:function(e){u("SDKVersion",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ue(Object(n),!0).forEach((function(t){h(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ue(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e),{type:"attribute"})},popWindow:function(e){K("navigateBack",e)}}})(),r.default})()));
2
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.my=t():e.my=t()}(self,(()=>(()=>{var e={7359:function(e,t,n){var r;e.exports=(r=r||function(e){var t;if("undefined"!=typeof window&&window.crypto&&(t=window.crypto),"undefined"!=typeof self&&self.crypto&&(t=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(t=globalThis.crypto),!t&&"undefined"!=typeof window&&window.msCrypto&&(t=window.msCrypto),!t&&void 0!==n.g&&n.g.crypto&&(t=n.g.crypto),!t)try{t=n(633)}catch(e){}var r=function(){if(t){if("function"==typeof t.getRandomValues)try{return t.getRandomValues(new Uint32Array(1))[0]}catch(e){}if("function"==typeof t.randomBytes)try{return t.randomBytes(4).readInt32LE()}catch(e){}}throw new Error("Native crypto module could not be used to get secure random number.")},o=Object.create||function(){function e(){}return function(t){var n;return e.prototype=t,n=new e,e.prototype=null,n}}(),a={},i=a.lib={},c=i.Base={extend:function(e){var t=o(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},u=i.WordArray=c.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:4*e.length},toString:function(e){return(e||p).stringify(this)},concat:function(e){var t=this.words,n=e.words,r=this.sigBytes,o=e.sigBytes;if(this.clamp(),r%4)for(var a=0;a<o;a++){var i=n[a>>>2]>>>24-a%4*8&255;t[r+a>>>2]|=i<<24-(r+a)%4*8}else for(var c=0;c<o;c+=4)t[r+c>>>2]=n[c>>>2];return this.sigBytes+=o,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=c.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],n=0;n<e;n+=4)t.push(r());return new u.init(t,e)}}),s=a.enc={},p=s.Hex={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],o=0;o<n;o++){var a=t[o>>>2]>>>24-o%4*8&255;r.push((a>>>4).toString(16)),r.push((15&a).toString(16))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r+=2)n[r>>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new u.init(n,t/2)}},f=s.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],o=0;o<n;o++){var a=t[o>>>2]>>>24-o%4*8&255;r.push(String.fromCharCode(a))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r++)n[r>>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new u.init(n,t)}},l=s.Utf8={stringify:function(e){try{return decodeURIComponent(escape(f.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return f.parse(unescape(encodeURIComponent(e)))}},h=i.BufferedBlockAlgorithm=c.extend({reset:function(){this._data=new u.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=l.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n,r=this._data,o=r.words,a=r.sigBytes,i=this.blockSize,c=a/(4*i),s=(c=t?e.ceil(c):e.max((0|c)-this._minBufferSize,0))*i,p=e.min(4*s,a);if(s){for(var f=0;f<s;f+=i)this._doProcessBlock(o,f);n=o.splice(0,s),r.sigBytes-=p}return new u.init(n,p)},clone:function(){var e=c.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0}),y=(i.Hasher=h.extend({cfg:c.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){h.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,n){return new e.init(n).finalize(t)}},_createHmacHelper:function(e){return function(t,n){return new y.HMAC.init(e,n).finalize(t)}}}),a.algo={});return a}(Math),r)},9174:function(e,t,n){var r;e.exports=(r=n(7359),function(e){var t=r,n=t.lib,o=n.WordArray,a=n.Hasher,i=t.algo,c=[];!function(){for(var t=0;t<64;t++)c[t]=4294967296*e.abs(e.sin(t+1))|0}();var u=i.MD5=a.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var r=t+n,o=e[r];e[r]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8)}var a=this._hash.words,i=e[t+0],u=e[t+1],h=e[t+2],y=e[t+3],d=e[t+4],m=e[t+5],v=e[t+6],g=e[t+7],b=e[t+8],w=e[t+9],O=e[t+10],A=e[t+11],P=e[t+12],j=e[t+13],x=e[t+14],S=e[t+15],C=a[0],_=a[1],I=a[2],E=a[3];C=s(C,_,I,E,i,7,c[0]),E=s(E,C,_,I,u,12,c[1]),I=s(I,E,C,_,h,17,c[2]),_=s(_,I,E,C,y,22,c[3]),C=s(C,_,I,E,d,7,c[4]),E=s(E,C,_,I,m,12,c[5]),I=s(I,E,C,_,v,17,c[6]),_=s(_,I,E,C,g,22,c[7]),C=s(C,_,I,E,b,7,c[8]),E=s(E,C,_,I,w,12,c[9]),I=s(I,E,C,_,O,17,c[10]),_=s(_,I,E,C,A,22,c[11]),C=s(C,_,I,E,P,7,c[12]),E=s(E,C,_,I,j,12,c[13]),I=s(I,E,C,_,x,17,c[14]),C=p(C,_=s(_,I,E,C,S,22,c[15]),I,E,u,5,c[16]),E=p(E,C,_,I,v,9,c[17]),I=p(I,E,C,_,A,14,c[18]),_=p(_,I,E,C,i,20,c[19]),C=p(C,_,I,E,m,5,c[20]),E=p(E,C,_,I,O,9,c[21]),I=p(I,E,C,_,S,14,c[22]),_=p(_,I,E,C,d,20,c[23]),C=p(C,_,I,E,w,5,c[24]),E=p(E,C,_,I,x,9,c[25]),I=p(I,E,C,_,y,14,c[26]),_=p(_,I,E,C,b,20,c[27]),C=p(C,_,I,E,j,5,c[28]),E=p(E,C,_,I,h,9,c[29]),I=p(I,E,C,_,g,14,c[30]),C=f(C,_=p(_,I,E,C,P,20,c[31]),I,E,m,4,c[32]),E=f(E,C,_,I,b,11,c[33]),I=f(I,E,C,_,A,16,c[34]),_=f(_,I,E,C,x,23,c[35]),C=f(C,_,I,E,u,4,c[36]),E=f(E,C,_,I,d,11,c[37]),I=f(I,E,C,_,g,16,c[38]),_=f(_,I,E,C,O,23,c[39]),C=f(C,_,I,E,j,4,c[40]),E=f(E,C,_,I,i,11,c[41]),I=f(I,E,C,_,y,16,c[42]),_=f(_,I,E,C,v,23,c[43]),C=f(C,_,I,E,w,4,c[44]),E=f(E,C,_,I,P,11,c[45]),I=f(I,E,C,_,S,16,c[46]),C=l(C,_=f(_,I,E,C,h,23,c[47]),I,E,i,6,c[48]),E=l(E,C,_,I,g,10,c[49]),I=l(I,E,C,_,x,15,c[50]),_=l(_,I,E,C,m,21,c[51]),C=l(C,_,I,E,P,6,c[52]),E=l(E,C,_,I,y,10,c[53]),I=l(I,E,C,_,O,15,c[54]),_=l(_,I,E,C,u,21,c[55]),C=l(C,_,I,E,b,6,c[56]),E=l(E,C,_,I,S,10,c[57]),I=l(I,E,C,_,v,15,c[58]),_=l(_,I,E,C,j,21,c[59]),C=l(C,_,I,E,d,6,c[60]),E=l(E,C,_,I,A,10,c[61]),I=l(I,E,C,_,h,15,c[62]),_=l(_,I,E,C,w,21,c[63]),a[0]=a[0]+C|0,a[1]=a[1]+_|0,a[2]=a[2]+I|0,a[3]=a[3]+E|0},_doFinalize:function(){var t=this._data,n=t.words,r=8*this._nDataBytes,o=8*t.sigBytes;n[o>>>5]|=128<<24-o%32;var a=e.floor(r/4294967296),i=r;n[15+(o+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),n[14+(o+64>>>9<<4)]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),t.sigBytes=4*(n.length+1),this._process();for(var c=this._hash,u=c.words,s=0;s<4;s++){var p=u[s];u[s]=16711935&(p<<8|p>>>24)|4278255360&(p<<24|p>>>8)}return c},clone:function(){var e=a.clone.call(this);return e._hash=this._hash.clone(),e}});function s(e,t,n,r,o,a,i){var c=e+(t&n|~t&r)+o+i;return(c<<a|c>>>32-a)+t}function p(e,t,n,r,o,a,i){var c=e+(t&r|n&~r)+o+i;return(c<<a|c>>>32-a)+t}function f(e,t,n,r,o,a,i){var c=e+(t^n^r)+o+i;return(c<<a|c>>>32-a)+t}function l(e,t,n,r,o,a,i){var c=e+(n^(t|~r))+o+i;return(c<<a|c>>>32-a)+t}t.MD5=a._createHelper(u),t.HmacMD5=a._createHmacHelper(u)}(Math),r.MD5)},5554:e=>{"use strict";var t="%[a-f0-9]{2}",n=new RegExp("("+t+")|([^%]+?)","gi"),r=new RegExp("("+t+")+","gi");function o(e,t){try{return[decodeURIComponent(e.join(""))]}catch(e){}if(1===e.length)return e;t=t||1;var n=e.slice(0,t),r=e.slice(t);return Array.prototype.concat.call([],o(n),o(r))}function a(e){try{return decodeURIComponent(e)}catch(a){for(var t=e.match(n)||[],r=1;r<t.length;r++)t=(e=o(t,r).join("")).match(n)||[];return e}}e.exports=function(e){if("string"!=typeof e)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch(t){return function(e){for(var t={"%FE%FF":"��","%FF%FE":"��"},n=r.exec(e);n;){try{t[n[0]]=decodeURIComponent(n[0])}catch(e){var o=a(n[0]);o!==n[0]&&(t[n[0]]=o)}n=r.exec(e)}t["%C2"]="�";for(var i=Object.keys(t),c=0;c<i.length;c++){var u=i[c];e=e.replace(new RegExp(u,"g"),t[u])}return e}(e)}}},3563:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n(6635);var o=n(5554);function a(e,t){if("string"!=typeof e||"string"!=typeof t)throw new TypeError("Expected the arguments to be of type `string`");if(""===t)return[e];var n=e.indexOf(t);return-1===n?[e]:[e.slice(0,n),e.slice(n+t.length)]}function i(e,t){return t.decode?o(e):e}function c(e){return Array.isArray(e)?e.sort():"object"===r(e)?c(Object.keys(e)).sort((function(e,t){return Number(e)-Number(t)})).map((function(t){return e[t]})):e}function u(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&"string"==typeof e&&""!==e.trim()?e=Number(e):!t.parseBooleans||null===e||"true"!==e.toLowerCase()&&"false"!==e.toLowerCase()||(e="true"===e.toLowerCase()),e}t.Qc=function(e,t){var n=function(e){var t;switch(e.arrayFormat){case"index":return function(e,n,r){t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===r[e]&&(r[e]={}),r[e][t[1]]=n):r[e]=n};case"bracket":return function(e,n,r){t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==r[e]?r[e]=[].concat(r[e],n):r[e]=[n]:r[e]=n};case"comma":return function(e,t,n){var r="string"==typeof t&&t.split("").indexOf(",")>-1?t.split(","):t;n[e]=r};default:return function(e,t,n){void 0!==n[e]?n[e]=[].concat(n[e],t):n[e]=t}}}(t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",parseNumbers:!1,parseBooleans:!1},t)),o=Object.create(null);if("string"!=typeof e)return o;if(!(e=e.trim().replace(/^[?#&]/,"")))return o;var s,p,f=!0,l=!1,h=void 0;try{for(var y,d=e.split("&")[Symbol.iterator]();!(f=(y=d.next()).done);f=!0){var m=(s=a(y.value.replace(/\+/g," "),"="),p=2,function(e){if(Array.isArray(e))return e}(s)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],r=!0,o=!1,a=void 0;try{for(var i,c=e[Symbol.iterator]();!(r=(i=c.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw a}}return n}}(s,p)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()),v=m[0];w=void 0===(w=m[1])?null:i(w,t),n(i(v,t),w,o)}}catch(e){l=!0,h=e}finally{try{f||null==d.return||d.return()}finally{if(l)throw h}}for(var g=0,b=Object.keys(o);g<b.length;g++){var w;if(v=b[g],"object"===r(w=o[v])&&null!==w)for(var O=0,A=Object.keys(w);O<A.length;O++){var P=A[O];w[P]=u(w[P],t)}else o[v]=u(w,t)}return!1===t.sort?o:(!0===t.sort?Object.keys(o).sort():Object.keys(o).sort(t.sort)).reduce((function(e,t){var n=o[t];return Boolean(n)&&"object"===r(n)&&!Array.isArray(n)?e[t]=c(n):e[t]=n,e}),Object.create(null))}},6635:e=>{"use strict";e.exports=function(e){return encodeURIComponent(e).replace(/[!'()*]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}},7375:(e,t)=>{"use strict";var n=Object.prototype.hasOwnProperty;function r(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch(e){return null}}function o(e){try{return encodeURIComponent(e)}catch(e){return null}}t.stringify=function(e,t){t=t||"";var r,a,i=[];for(a in"string"!=typeof t&&(t="?"),e)if(n.call(e,a)){if((r=e[a])||null!=r&&!isNaN(r)||(r=""),a=o(a),r=o(r),null===a||null===r)continue;i.push(a+"="+r)}return i.length?t+i.join("&"):""},t.parse=function(e){for(var t,n=/([^=?#&]+)=?([^&]*)/g,o={};t=n.exec(e);){var a=r(t[1]),i=r(t[2]);null===a||null===i||a in o||(o[a]=i)}return o}},7245:e=>{"use strict";e.exports=function(e,t){if(t=t.split(":")[0],!(e=+e))return!1;switch(t){case"http":case"ws":return 80!==e;case"https":case"wss":return 443!==e;case"ftp":return 21!==e;case"gopher":return 70!==e;case"file":return!1}return 0!==e}},5731:(e,t,n)=>{"use strict";var r=n(7245),o=n(7375),a=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,i=/[\n\r\t]/g,c=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,u=/:\d+$/,s=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,p=/^[a-zA-Z]:/;function f(e){return(e||"").toString().replace(a,"")}var l=[["#","hash"],["?","query"],function(e,t){return d(t.protocol)?e.replace(/\\/g,"/"):e},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d*)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],h={hash:1,query:1};function y(e){var t,r=("undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{}).location||{},o={},a=typeof(e=e||r);if("blob:"===e.protocol)o=new v(unescape(e.pathname),{});else if("string"===a)for(t in o=new v(e,{}),h)delete o[t];else if("object"===a){for(t in e)t in h||(o[t]=e[t]);void 0===o.slashes&&(o.slashes=c.test(e.href))}return o}function d(e){return"file:"===e||"ftp:"===e||"http:"===e||"https:"===e||"ws:"===e||"wss:"===e}function m(e,t){e=(e=f(e)).replace(i,""),t=t||{};var n,r=s.exec(e),o=r[1]?r[1].toLowerCase():"",a=!!r[2],c=!!r[3],u=0;return a?c?(n=r[2]+r[3]+r[4],u=r[2].length+r[3].length):(n=r[2]+r[4],u=r[2].length):c?(n=r[3]+r[4],u=r[3].length):n=r[4],"file:"===o?u>=2&&(n=n.slice(2)):d(o)?n=r[4]:o?a&&(n=n.slice(2)):u>=2&&d(t.protocol)&&(n=r[4]),{protocol:o,slashes:a||d(o),slashesCount:u,rest:n}}function v(e,t,n){if(e=(e=f(e)).replace(i,""),!(this instanceof v))return new v(e,t,n);var a,c,u,s,h,g,b=l.slice(),w=typeof t,O=this,A=0;for("object"!==w&&"string"!==w&&(n=t,t=null),n&&"function"!=typeof n&&(n=o.parse),a=!(c=m(e||"",t=y(t))).protocol&&!c.slashes,O.slashes=c.slashes||a&&t.slashes,O.protocol=c.protocol||t.protocol||"",e=c.rest,("file:"===c.protocol&&(2!==c.slashesCount||p.test(e))||!c.slashes&&(c.protocol||c.slashesCount<2||!d(O.protocol)))&&(b[3]=[/(.*)/,"pathname"]);A<b.length;A++)"function"!=typeof(s=b[A])?(u=s[0],g=s[1],u!=u?O[g]=e:"string"==typeof u?~(h="@"===u?e.lastIndexOf(u):e.indexOf(u))&&("number"==typeof s[2]?(O[g]=e.slice(0,h),e=e.slice(h+s[2])):(O[g]=e.slice(h),e=e.slice(0,h))):(h=u.exec(e))&&(O[g]=h[1],e=e.slice(0,h.index)),O[g]=O[g]||a&&s[3]&&t[g]||"",s[4]&&(O[g]=O[g].toLowerCase())):e=s(e,O);n&&(O.query=n(O.query)),a&&t.slashes&&"/"!==O.pathname.charAt(0)&&(""!==O.pathname||""!==t.pathname)&&(O.pathname=function(e,t){if(""===e)return t;for(var n=(t||"/").split("/").slice(0,-1).concat(e.split("/")),r=n.length,o=n[r-1],a=!1,i=0;r--;)"."===n[r]?n.splice(r,1):".."===n[r]?(n.splice(r,1),i++):i&&(0===r&&(a=!0),n.splice(r,1),i--);return a&&n.unshift(""),"."!==o&&".."!==o||n.push(""),n.join("/")}(O.pathname,t.pathname)),"/"!==O.pathname.charAt(0)&&d(O.protocol)&&(O.pathname="/"+O.pathname),r(O.port,O.protocol)||(O.host=O.hostname,O.port=""),O.username=O.password="",O.auth&&(~(h=O.auth.indexOf(":"))?(O.username=O.auth.slice(0,h),O.username=encodeURIComponent(decodeURIComponent(O.username)),O.password=O.auth.slice(h+1),O.password=encodeURIComponent(decodeURIComponent(O.password))):O.username=encodeURIComponent(decodeURIComponent(O.auth)),O.auth=O.password?O.username+":"+O.password:O.username),O.origin="file:"!==O.protocol&&d(O.protocol)&&O.host?O.protocol+"//"+O.host:"null",O.href=O.toString()}v.prototype={set:function(e,t,n){var a=this;switch(e){case"query":"string"==typeof t&&t.length&&(t=(n||o.parse)(t)),a[e]=t;break;case"port":a[e]=t,r(t,a.protocol)?t&&(a.host=a.hostname+":"+t):(a.host=a.hostname,a[e]="");break;case"hostname":a[e]=t,a.port&&(t+=":"+a.port),a.host=t;break;case"host":a[e]=t,u.test(t)?(t=t.split(":"),a.port=t.pop(),a.hostname=t.join(":")):(a.hostname=t,a.port="");break;case"protocol":a.protocol=t.toLowerCase(),a.slashes=!n;break;case"pathname":case"hash":if(t){var i="pathname"===e?"/":"#";a[e]=t.charAt(0)!==i?i+t:t}else a[e]=t;break;case"username":case"password":a[e]=encodeURIComponent(t);break;case"auth":var c=t.indexOf(":");~c?(a.username=t.slice(0,c),a.username=encodeURIComponent(decodeURIComponent(a.username)),a.password=t.slice(c+1),a.password=encodeURIComponent(decodeURIComponent(a.password))):a.username=encodeURIComponent(decodeURIComponent(t))}for(var s=0;s<l.length;s++){var p=l[s];p[4]&&(a[p[1]]=a[p[1]].toLowerCase())}return a.auth=a.password?a.username+":"+a.password:a.username,a.origin="file:"!==a.protocol&&d(a.protocol)&&a.host?a.protocol+"//"+a.host:"null",a.href=a.toString(),a},toString:function(e){e&&"function"==typeof e||(e=o.stringify);var t,n=this,r=n.host,a=n.protocol;a&&":"!==a.charAt(a.length-1)&&(a+=":");var i=a+(n.protocol&&n.slashes||d(n.protocol)?"//":"");return n.username?(i+=n.username,n.password&&(i+=":"+n.password),i+="@"):n.password?(i+=":"+n.password,i+="@"):"file:"!==n.protocol&&d(n.protocol)&&!r&&"/"!==n.pathname&&(i+="@"),(":"===r[r.length-1]||u.test(n.hostname)&&!n.port)&&(r+=":"),i+=r+n.pathname,(t="object"==typeof n.query?e(n.query):n.query)&&(i+="?"!==t.charAt(0)?"?"+t:t),n.hash&&(i+=n.hash),i}},v.extractProtocol=m,v.location=y,v.trimLeft=f,v.qs=o,e.exports=v},633:()=>{},7609:(e,t,n)=>{var r=n(7425).default;function o(){"use strict";e.exports=o=function(){return t},e.exports.__esModule=!0,e.exports.default=e.exports;var t={},n=Object.prototype,a=n.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},c=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function p(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{p({},"")}catch(e){p=function(e,t,n){return e[t]=n}}function f(e,t,n,r){var o=t&&t.prototype instanceof y?t:y,a=Object.create(o.prototype),i=new S(r||[]);return a._invoke=function(e,t,n){var r="suspendedStart";return function(o,a){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw a;return{value:void 0,done:!0}}for(n.method=o,n.arg=a;;){var i=n.delegate;if(i){var c=P(i,n);if(c){if(c===h)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=l(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===h)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}(e,n,i),a}function l(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=f;var h={};function y(){}function d(){}function m(){}var v={};p(v,c,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(C([])));b&&b!==n&&a.call(b,c)&&(v=b);var w=m.prototype=y.prototype=Object.create(v);function O(e){["next","throw","return"].forEach((function(t){p(e,t,(function(e){return this._invoke(t,e)}))}))}function A(e,t){function n(o,i,c,u){var s=l(e[o],e,i);if("throw"!==s.type){var p=s.arg,f=p.value;return f&&"object"==r(f)&&a.call(f,"__await")?t.resolve(f.__await).then((function(e){n("next",e,c,u)}),(function(e){n("throw",e,c,u)})):t.resolve(f).then((function(e){p.value=e,c(p)}),(function(e){return n("throw",e,c,u)}))}u(s.arg)}var o;this._invoke=function(e,r){function a(){return new t((function(t,o){n(e,r,t,o)}))}return o=o?o.then(a,a):a()}}function P(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,P(e,t),"throw"===t.method))return h;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var r=l(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,h;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,h):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,h)}function j(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function x(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(j,this),this.reset(!0)}function C(e){if(e){var t=e[c];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,r=function t(){for(;++n<e.length;)if(a.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return r.next=r}}return{next:_}}function _(){return{value:void 0,done:!0}}return d.prototype=m,p(w,"constructor",m),p(m,"constructor",d),d.displayName=p(m,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,m):(e.__proto__=m,p(e,s,"GeneratorFunction")),e.prototype=Object.create(w),e},t.awrap=function(e){return{__await:e}},O(A.prototype),p(A.prototype,u,(function(){return this})),t.AsyncIterator=A,t.async=function(e,n,r,o,a){void 0===a&&(a=Promise);var i=new A(f(e,n,r,o),a);return t.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},O(w),p(w,s,"Generator"),p(w,c,(function(){return this})),p(w,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},t.values=C,S.prototype={constructor:S,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!e)for(var t in this)"t"===t.charAt(0)&&a.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(n,r){return i.type="throw",i.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],i=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var c=a.call(o,"catchLoc"),u=a.call(o,"finallyLoc");if(c&&u){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,h):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),h},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),x(n),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;x(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:C(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),h}},t}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},7425:e=>{function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},2841:(e,t,n)=>{var r=n(7609)();e.exports=r;try{regeneratorRuntime=r}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var a=t[r]={exports:{}};return e[r].call(a.exports,a,a.exports,n),a.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var r={};return(()=>{"use strict";n.d(r,{default:()=>Ke});var e=function(e){if(window.AlipayJSBridge)return e();document.addEventListener("AlipayJSBridgeReady",(function(){return e()}),!1)},t=!1,o=[];function a(e){return o.push(e),function(){o=o.filter((function(t){return t!==e}))}}function i(n){return t||(document.addEventListener("onToWebViewMessage",(function(e){var t=e.data.res;if(t&&"message"===t.type){var n=JSON.parse(t.data);o.forEach((function(e){return e(n)}))}})),t=!0),e((function(){window.AlipayJSBridge.call("postWebViewMessage",{type:"message",detail:n})}))}var c={};function u(e,t,n){var r=e+"_"+Math.floor(1e6*Math.random());t&&(c[r]=t),i({source:"hylid",type:"apiCall",api:e,serialId:r,options:t,config:n,isSync:null==n?void 0:n.isSync})}a((function(e){var t,n=e,r=n.serialId;if(r&&c[r]){var o=c[r],a=n.result;if("callback"===(null===(t=n.config)||void 0===t?void 0:t.type)){var i=a||{},u=i._data_;return"success"===i._type_?o(u):o(void 0,u)}var s=o||{},p=s.success,f=s.fail,l=s.complete,h=a||{},y=h._data_,d=h._type_;d?("success"===d&&(null==p||p(y)),"fail"===d&&(null==f||f(y)),null==l||l(y)):((null==a?void 0:a.error)?null==f||f(a):null==p||p(a),null==l||l(a)),delete c[r]}})),u.onMessage=a,u.postMessage=i,u.broadcastGlobalData=function(e,t){i({source:"hylid",type:"broadcast",from:window.location.href,key:e,result:t})},u.onReceiveGlobalData=function(e,t){return a((function(n){var r=n;if("hylid"===r.source&&"broadcast"===r.type&&r.key===e){var o=r.result||{},a=o._data_;return"success"===o._type_?t(a,void 0,r.from):t(void 0,a,r.from)}}))},u.onPageEvent=function(e,t){return i({source:"hylid",type:"pageEvent",event:e}),a((function(n){var r=n;if("hylid"===r.source&&"pageEvent"===r.type&&r.event===e){var o=r.result||{},a=o._data_;return"success"===o._type_?t(a):t(void 0,a)}}))};function s(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var p=["success","fail","complete"],f=function(e){return function(t){return new Promise((function(n,r){var o=t||{},a=o.success,i=o.fail,c=o.complete,u=s(o,p);e(u,(function(e){n(e),null==a||a(e),null==c||c(e)}),(function(e){r(e),null==i||i(e),null==c||c(e)}))}))}},l=function(e){return function(t){return toString.call(t)==="[object ".concat(e,"]")}};function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}l("RegExp"),l("String"),l("Function"),l("Object"),l("Number"),Array.isArray,l("Boolean");var y=n(3563),d=n(5731),m=n.n(d);function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v(Object(n),!0).forEach((function(t){h(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var b=function(e){return e.openInApp="openinapp",e.openOtherApp="openotherapp",e.openBizScene="openbizscene",e.openPayCodePage="openpaycodepage",e.openApPayCodePage="openappaycodepage",e.openScanPage="openscanpage",e.openInBrowser="openinbrowser",e}(b||{}),w=function(e){return e.scan="scan",e.payCode="payCode",e}(w||{}),O="caprMode=sync";function A(e,t){var n=e.filter((function(e){return e.match.every((function(e){return e.test(t)}))}));if(n.length){var r=n[0].name;if(n.length>1){var o=n.map((function(e){return e.name})).join(",");j("Multiple clients have been identified(".concat(o,"), and the first one(").concat(r,")is used by default."))}return r}}function P(e,t){return Object.keys(e).reduce((function(n,r){return n["is".concat(r)]=t===e[r],n}),{})}function j(e){console.info("[hylid-env]: ".concat(e))}var x={WEB:"web",MPWEB:"mpweb",MP:"mp"},S={DEMO:"demo",ALIPAY:"alipay",ALIPAYHK:"alipayhk",TNGD:"tngd",GCASH:"gcash",TRUEMONEY:"truemoney",DANA:"dana",KAKAOPAY:"kakaopay",KAKAOTALK:"kakaotalk",NAVERPAY:"naverpay",MPAY:"mpay",TOSSPAY:"toss",HIPAY:"hipay",CHOPE:"chope",VODAPAY:"vodapay",CHANGIPAY:"changipay",OCBC:"ocbc",MANDIRI:"mandiri",NAYAPAY:"nayapay",TINABA:"tinaba",KASPI:"kaspi",H5:"h5",WECHAT:"wechat",TNGD_H5NG:"tngdh5ng"},C=/miniprogram/i,_=/^((?!miniprogram).)*$/i,I=/griver/i,E=/^((?!griver).)*$/i,T=[{name:S.DEMO,match:[/demo/]},{name:S.ALIPAYHK,match:[/alipayHK/]},{name:S.TNGD,match:[/tngd/]},{name:S.GCASH,match:[/gcash/]},{name:S.TRUEMONEY,match:[/tmn/]},{name:S.DANA,match:[/dana/]},{name:S.TOSSPAY,match:[/toss/]},{name:S.ALIPAY,match:[/alipay/]}],k=[{name:S.DEMO,match:[/alipayIDE/i]},{name:S.ALIPAYHK,match:[C,E,/AlipayClientHK/]},{name:S.TNGD,match:[C,/TNGKit|Touch 'n Go/]},{name:S.GCASH,match:[C,I,/GCash/]},{name:S.TRUEMONEY,match:[C,I,/TrueMoney/]},{name:S.ALIPAY,match:[C,E,/alipay/i]},{name:S.DEMO,match:[C,I]}];function D(){return A(k,window.navigator.userAgent)}var L=[{name:S.ALIPAYHK,match:[_,E,/AlipayClientHK/]},{name:S.TNGD,match:[_,I,/TNGKit|Touch 'n Go/]},{name:S.TNGD_H5NG,match:[_,/TNGKit|Touch 'n Go/,/IAPWebH5NG/]},{name:S.GCASH,match:[_,I,/GCash/]},{name:S.TRUEMONEY,match:[_,I,/TrueMoney/i]},{name:S.KAKAOPAY,match:[_,/PAYCLIENT|KAKAOTALK|KAKAOPAY/]},{name:S.KAKAOTALK,match:[_,/ALIPAYCONNECT_KAKAO_TALK/]},{name:S.NAVERPAY,match:[_,/NAVER/]},{name:S.MPAY,match:[_,/mpay|macaupay/i]},{name:S.TOSSPAY,match:[_,/Toss/i]},{name:S.ALIPAY,match:[_,E,/AlipayClient/]},{name:S.DEMO,match:[_,I,/GriverDemo/]}];function N(){return A(L,window.navigator.userAgent)||S.H5}var R=function(){var e,t;if("undefined"!=typeof wx||"undefined"!=typeof my&&"string"==typeof my.SDKVersion)e="undefined"!=typeof wx?S.WECHAT:A(T,my.getSystemInfoSync().app),t=x.MP;else{var n=function(){var e,t=((null===(e=window.location.search)||void 0===e?void 0:e.match(/__app__=([^&]*)/))||[])[1],n=(window.location.search.match(/__platform__=([^&]*)/)||[])[1];(t||n)&&localStorage.setItem("__hy_env__",JSON.stringify({client:t,platform:n}));var r=localStorage.getItem("__hy_env__");return r?JSON.parse(r):{}}();n.platform?(t=n.platform,e=n.client||("mpweb"===t?D():N())):(e=n.client||D())?t=x.MPWEB:(e=N(),t=x.WEB)}return t&&e||j("Cannot identify your client."),{client:e,platform:t}}(),B=R.client,M=R.platform;P(S,B),P(x,M);var Y,G={NOTFOUND:{code:-1,message:function(e){return"".concat(e," is not found")}},NOTALLOWED:{code:-2,message:function(e){return"".concat(e," is not allowed")}},INVALID:{code:-3,message:function(e){return"".concat(e," is invalid")}},NOTBIND:{code:-4,message:function(e){return"".concat(e," exec fail, webviewBridge not bind context")}},PARAMS_ERROR:{code:-5,message:function(e){return"".concat(e," exec fail, params error")}}},U=((Y={})[x.MP]=function(e,t,n){var r=(n||{}).type,o=void 0===r?"async":r;return"sync"===o||(null==n?void 0:n.isSync)?my[e](t):("async"===o&&(my[e]?my[e](t):my.call(e,t)),"callback"===o&&my[e](t),"attribute"===o?my[e]:void 0)},Y[x.MPWEB]=u,Y[x.WEB]=function(t,n,r){e((function(){var e=(r||{}).type,o=void 0===e?"async":e;"async"===o&&window.AlipayJSBridge.call(t,n,(function(e){var t=n||{},r=t.success,o=t.fail,a=t.complete;e.error?null==o||o(e):null==r||r(e),null==a||a(e)})),"callback"===o&&window.AlipayJSBridge.call(t,n)}))},Y);function K(e,t,n){return M?U[M](e,t,n):function(e,t,n){var r;void 0===n&&(n={});var o=n.type,a=void 0===o?"async":o,i=function(e,t){void 0===t&&(t="");var n=G.NOTFOUND;return{errorCode:n.code,errorMessage:(0,n.message)(t),errorSouce:"hylid"}}(0,e);if("sync"===a)return i;"callback"===a&&(null==t||t(i)),"async"===a&&(null===(r=null==t?void 0:t.fail)||void 0===r||r.call(t,i))}(t,n)}function H(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function q(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?H(Object(n),!0).forEach((function(t){h(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):H(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var W=function(){return K("navigateToBizScene",{sceneCode:"QR_PAY"})},F=function(){return K("navigateToBizScene",{sceneCode:"SCAN"})},z=function(e){return K("navigateToBizScene",{sceneCode:"SCHEME",param:{scheme:e.url}})};function V(e){var t=e.url,n=e.path,r=n&&"/"!==n?n:"/pages/index/index";if(!t)return r;var o=r.includes("?")?"&":"?";return"".concat(r).concat(o,"url=").concat(encodeURIComponent(t))}var J=function(e){return K("navigateTo",{url:V(e)})},$=function(e){return K("navigateToMiniProgram",q(q({},e),{},{extraData:null==e?void 0:e.launchParams}))},Q=function(e){return K("navigateToBizScene",{sceneCode:"WEB_PAGE",param:{url:e.url}})};const Z=f((function(e,t,n){!function(e,t,n){if(e)if(e.startsWith("aplus://"))!function(e,t,n){var r,o=new(m())(e,!0),a=o.host,i=o.pathname,c=o.query;switch(a){case b.openInApp:t.openInApp(g({path:i,url:c.url||""},n));break;case b.openOtherApp:console.log("### openCustomScheme",b.openOtherApp);var u=c.appId,s=void 0===u?"":u,p=c.path,f=c.launchParams,l=void 0===f?"":f,h=(0,y.Qc)(l);t.openOtherApp(g({appId:s,path:p,launchParams:h},n));break;case b.openBizScene:console.warn("该 API 已弃用, 请使用 aplus://openApPayCodePage 等链接替代"),c.sceneCode===w.scan?t.openScanPage(n):c.sceneCode===w.payCode&&t.openApPayCodePage(n);break;case b.openScanPage:t.openScanPage(n);break;case b.openPayCodePage:t.openPayCodePage(n);break;case b.openApPayCodePage:t.openApPayCodePage(n);break;case b.openInBrowser:t.openInBrowser(g({url:c.url||""},n));break;default:console.log("[openCustomScheme] 不支持的 routeType: ",a),n.fail&&n.fail((r="openCustomScheme ".concat(a),{error:-102,errorMessage:"[".concat(r,"]: Not Support")}))}}(e,t,n);else if(e.startsWith("/")){var r=function(e){var t=location.pathname.replace(/\/[^/]+.html/,""),n="".concat(location.protocol,"//").concat(location.host).concat(t).concat(e);if(location.search.includes(O)){var r=n.includes("?")?"&":"?";return"".concat(n).concat(r).concat(O)}return n}(e);t.openInApp(g({url:r},n))}else t.openWebURL(g({url:e},n))}(e.url,{openWebURL:Q,openInApp:J,openOtherApp:$,openInBrowser:z,openPayCodePage:W,openApPayCodePage:W,openScanPage:F},{success:t,fail:n})})),X=Q,ee=J,te=$,ne=z,re=W,oe=W,ae=F;var ie=function(){return ie=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ie.apply(this,arguments)},ce=function(e){return function(t){return new Promise((function(n,r){var o=ie(ie({},t),{success:function(e){var r;n(e),null===(r=null==t?void 0:t.success)||void 0===r||r.call(t,e)},fail:function(e){var n;r(e),null===(n=null==t?void 0:t.fail)||void 0===n||n.call(t,e)}});e(o)}))}};function ue(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function se(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ue(Object(n),!0).forEach((function(t){h(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ue(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function pe(e,t,n,r,o,a,i){try{var c=e[a](i),u=c.value}catch(e){return void n(e)}c.done?t(u):Promise.resolve(u).then(r,o)}function fe(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function i(e){pe(a,r,o,i,c,"next",e)}function c(e){pe(a,r,o,i,c,"throw",e)}i(void 0)}))}}var le=n(2841),he=n.n(le),ye=n(9174),de=n.n(ye);function me(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ve(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?me(Object(n),!0).forEach((function(t){h(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):me(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ge(e,t){var n=_e();return(ge=function(e,t){return n[e-=0]})(e,t)}var be,we={TOSS:xe(0,-318,0,-325)+xe(0,-323,0,-291)+Ce(258,247)+Ce(236,255)+"8v0XGf"+je(0,-440,0,0,-455),MPAY:je(0,-464,0,0,-474)+"6C1JVc"+je(0,-488,0,0,-496)+Ce(235,249)+je(0,-482,0,0,-464),ALIPAY:Ce(288,272)+je(0,-502,0,0,-510)+Ce(202,231)+xe(0,-241,0,-266)+Ce(296,285)+xe(0,-352,0,-322)},Oe={TOSS:xe(0,-276,0,-279)+Ce(256,245)+xe(0,-340,0,-309)+"ds.aut"+Ce(266,239)+xe(0,-283,0,-297),MPAY:je(0,-471,0,0,-463)+Ce(257,245)+xe(0,-307,0,-296)+xe(0,-280,0,-263)+"h.authlogin",ALIPAY:xe(0,-266,0,-279)+Ce(245,245)+"svoyag"+je(0,-439,0,0,-447)+je(0,-523,0,0,-495)+je(0,-511,0,0,-481)},Ae=function(e,t){var n={c:function(e,t){return e===t},d:u(0,0,-552,-521),e:function(e,t){return e(t)}},r=we[t];function o(e,t,n,r,o){return ge(r-948,e)}if(!r&&n[i(-688,0,0,0,-699)](n[u(0,0,-507,-495)],n[u(0,0,-501,-495)]))return{};var a=Date.now();function i(e,t,n,r,o){return ge(e- -702,o)}var c=r+"&ts="+a+"&requestData"+u(0,0,-510,-543)+e[u(0,0,-497,-496)+"tData"]+o(970,0,0,1e3)+"tionTy"+o(1033,0,0,1011)+e[u(0,0,-511,-484)+u(0,0,-497,-511)+"e"];function u(e,t,n,r,o){return ge(r- -549,n)}return{signV2:n[u(0,0,-545,-529)](de(),c)[i(-652,0,0,0,-668)+"ng"](),ts:a}};function Pe(){var e={c:r(-579,0,-597)+r(-587,0,-558)+"cdef",d:function(e,t){return e<t},e:function(e,t){return e!==t},f:r(-520,0,-550),g:r(-539,0,-546),h:function(e,t){return e*t},i:function(e,t){return e|t},j:function(e,t){return e&t}},t=[],n=e[r(-585,0,-587)];function r(e,t,n,r,o){return ge(n- -601,e)}for(var o=0;e[a(0,-57,0,-80)](o,36);o++)e[r(-570,0,-581)](e[a(0,-112,0,-115)],e[i(442,459)])&&(t[o]=n.substr(Math[r(-540,0,-541)](e[a(0,-87,0,-105)](Math[a(0,-123,0,-90)](),16)),1));function a(e,t,n,r,o){return ge(r- -134,t)}function i(e,t,n,r,o){return ge(t-426,e)}return t[14]=i(439,429),t[19]=n[r(-581,0,-594)](e[a(0,-151,0,-124)](e[i(455,483)](t[19],3),8),1),t[8]=t[13]=t[18]=t[23]=a(0,-65,0,-75),t[i(465,465)]("")}function je(e,t,n,r,o){return ge(o- -511,t)}function xe(e,t,n,r,o){return ge(r- -327,t)}var Se=function(){var e=fe(he().mark((function e(t){var n,r,o,a,i,c,u,s,p,f,l,h,y,d,m,v,g,b,w,O,A,P,j,x,S,C,_;return he().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return m=function(e,t,n,o,a){return ge(e-r.c,t)},u=function(e,t,n,r,o){return ge(n-926,e)},a=function(e,t,n,r,a){return ge(r-o.c,e)},r={c:403},o={c:384},i={c:function(e,t){return e*t},d:function(e){return e()},e:function(e){return e()},f:function(e,t,n){return e(t,n)},g:function(e,t){return e(t)},h:function(e,t){return e!==t},i:u((n={c:934,d:974,e:417,f:381,g:398,h:972,i:969,j:996,k:960,l:935,m:905,n:947,o:417,p:429,q:423,r:438,t:416,u:426,v:439,w:958,x:986,ah:977,ai:961,aj:444,ak:470,al:461,am:470,an:997,ao:383,ap:397,aq:401,ar:396,as:428,at:916,au:931,av:917,aw:465,ax:446,ay:374,az:399,aA:390,aB:394,aC:955,aD:954,aE:926,aF:953,aG:995,aH:1011,aI:420,aJ:397,aK:375,aL:415,aM:471,aN:467,aO:477,aP:384,aQ:973,aR:946,aS:948,aT:968,aU:967,aV:964,aW:998,aX:954,aY:949,aZ:445,b0:413,b1:419,b2:441,b3:418}).c,941,966,961,n.d),j:function(e,t){return e-t},k:function(e,t){return e*t},l:function(e,t){return e-t},m:"nBZiR"},c=i[a(n.e,405,n.f,n.g,421)](60,1e3),s=i[u(924,n.h,940,928,n.i)](3600,1e3),p=t.httpRequest,f=t.getAuthParams,l=t.saveAuthParams,h=t.getAuthCode,y=t.getAppId,d=t.siteName,v=Oe[d],e.prev=7,e.next=10,i.d(f);case 10:return w=e.sent,O="",O=null!=w&&w[u(1e3,n.j,971,940,977)]&&null!=w&&null!==(g=w[u(949,967,971,n.k,982)])&&void 0!==g&&g[u(967,964,n.l,n.m,n.n)]?null==w||null===(b=w[m(448,468,n.o,n.p,445)])||void 0===b?void 0:b.token:i[m(423,n.q,n.g,n.r,n.t)](Pe),e.next=15,i[a(n.u,n.v,460,n.r,406)](y);case 15:return A=e.sent,P=A.appId,j={instanceId:O,appId:P},e.next=20,i[u(n.w,n.x,980,n.ah,n.ai)](h);case 20:return x=e.sent,j["authCo"+m(n.aj,430,n.ak,451,437)]=x[m(n.al,n.v,n.am,446,438)+u(975,n.an,967,966,943)]||"",S={operationType:v,requestData:JSON[a(n.ao,n.ap,421,n.aq,397)+a(390,374,373,n.ar,367)]([j])},C=i.f(Ae,S,d),e.next=26,i[m(436,433,443,440,451)](p,ve(ve({},S),{},{headers:ve({},C)}));case 26:if((_=e.sent)&&_[m(n.as,459,400,395,447)+u(n.at,n.au,947,n.av,937)]){e.next=32;break}if(!i[m(432,n.aw,n.as,n.q,n.ax)](i[a(410,384,364,394,n.ay)],i[a(n.az,411,n.aA,n.aB,424)])){e.next=31;break}e.next=32;break;case 31:throw _;case 32:i.g(l,{sessionIdLastTime:Date[u(n.aC,n.aD,n.aE,n.aF,923)](),sessionIdExpiresTime:i[u(1008,n.aG,983,n.aH,962)](i.k(_[a(371,n.aI,365,n.aJ,n.aK)+a(n.aL,429,389,411,392)+m(449,n.aM,n.aN,416,n.aO)]||0,1e3),c),clientKeyLastTime:Date[a(n.aA,414,405,n.aP,360)](),clientKeyExpiresTime:i[u(n.aQ,966,961,n.l,n.aR)](i.c(_[u(n.aS,949,n.aT,n.aU,n.aV)+"KeyExpireTime"]||0,1e3),s),clientKey:_[u(n.aW,983,968,998,991)+u(971,n.aX,n.aY,975,922)]||"",openId:_[u(949,n.n,937,926,952)]||"",token:O});case 33:return e.prev=33,i[m(432,n.aZ,n.b0,n.b1,418)](i[a(n.u,n.aJ,n.b2,n.b3,434)],i.m)||(be=void 0),e.finish(33);case 36:case"end":return e.stop()}}),e,null,[[7,,33,36]])})));return function(t){return e.apply(this,arguments)}}();function Ce(e,t,n,r,o){return ge(t-223,e)}function _e(){var e=["now","e403eb","Y2RnWk","4","012345","ae","=","substr","8e8bf2","token","i","openId","ify","sessio","c","4fBX3i","h.auth","string","srewar","f","e","s","payplu","Key","x3pTVp","succes","8yrZzV","nExpir","YvQOw","h","login","svoyag","9uI6g1","g","m","l","5yJGy4","aLhI5S","ionTyp","join","WrLog","de","client","6789ab","random","data","eTime","Ctk","ap.ali","094d20","toStri","JlqiC","&opera","reques","d","pgeFL","Qh","j","authCo","-","floor","a17e0f","0ba7fc","pe=","er.aut","operat"];return(_e=function(){return e})()}var Ie=function(){var e=fe(he().mark((function e(t){var n,r,o,a,i,c,u,s,p,f,l,h,y,d;return he().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return d=function(e,t,n,o,a){return ge(a-r.c,n)},y=function(e,t,n,r,o){return ge(t-24,r)},p=function(e,t,n,r,a){return ge(e-o.c,r)},n={c:21,d:42,e:77,f:521,g:570,h:27,i:44,j:500,k:547,l:52,m:70,n:39,o:25,p:87,q:75,r:56,t:53,u:24,v:78,w:65,x:34,as:32},r={c:519},o={c:58},a={c:function(e){return e()},d:function(e,t){return e&&t},e:function(e,t){return e<t},f:function(e,t){return e-t},g:function(e,t){return e===t},h:"cgVrj",i:function(e,t){return e(t)}},i=t.isForceLogin,c=void 0!==i&&i,u=t.getAuthParams,e.next=12,a[y(n.c,38,17,n.d,71)](u);case 12:if(s=e.sent,f=s[y(n.e,69,58,73,67)]||{},l=f.sessionIdExpiresTime,h=f.sessionIdLastTime,!(a.d(!c,h)&&l&&a[d(n.f,548,n.g,545,539)](a[y(n.h,43,52,26,n.i)](Date[d(n.j,530,534,n.k,519)](),h),l))){e.next=19;break}if(!a[y(n.l,57,n.m,n.n,n.o)](a[p(n.p,n.q,118,n.r,76)],a[y(27,n.t,28,n.u,n.v)])){e.next=19;break}return e.abrupt("return");case 19:return be=be||a[y(n.w,n.x,42,42,n.as)](Se,t),e.next=22,be;case 22:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Ee=["headers"];function Te(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ke(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Te(Object(n),!0).forEach((function(t){h(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Te(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const De=function(e){return u("request",e,{type:"async"})};const Le=function(e){return u("getStorage",e,{type:"async"})};const Ne=function(e){return u("setStorage",e,{type:"async"})};var Re=ce((function(e){return u("getAuthCode",e,{type:"async"})})),Be=ce(Le),Me=ce(Ne),Ye=ce((function(e){u("getAppIdSync",e,{type:"sync"})}));function Ge(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ue(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const Ke={getAppToken:function(e){return u("getAppToken",e,{type:"async"})},getAuthCode:function(e){return u("getAuthCode",e,{type:"async"})},getStorage:function(e){return u("getStorage",e,{type:"async"})},request:function(e){return u("request",e,{type:"async"})},setStorage:function(e){return u("setStorage",e,{type:"async"})},createWithoutAuthRpc:function(e){return u("createWithoutAuthRpc",e,{type:"sync"})},defineRuntimeConfig:function(e){return u("defineRuntimeConfig",e,{type:"sync"})},setTransparentTitle:function(e){return u("setTransparentTitle",e,{type:"async"})},openURL:Z,openWebURL:X,openInApp:ee,openOtherApp:te,openInBrowser:ne,openPayCodePage:re,openApPayCodePage:oe,openScanPage:ae,rpcWithAuth:function(e){return function(e,t,n,r,o,a){var i="auth-login-storage",c=null,u=function(){return c||(c=t({key:i}))},p=function(e){return c={data:e},n({key:i,data:e})},l=f(function(){var t=fe(he().mark((function t(n,i,c){var f,l,h,y,d;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return f=n.headers,"string"!=typeof(l=s(n,Ee)).requestData&&(l.requestData=JSON.stringify(l.requestData)),h=function(e){var t=e.headers,n=e.operationType,r=e.requestData;return new Promise((function(e,o){a(ke(ke({},l),{},{requestData:r,headers:ke(ke(ke({},f),t),{},{"Operation-Type":n}),operationType:n,success:function(t){e(null==t?void 0:t.resData)},fail:function(e){o(e)}}))}))},t.prev=3,t.next=6,Ie({httpRequest:h,isForceLogin:!1,getAuthParams:u,saveAuthParams:p,getAuthCode:r,getAppId:o,siteName:e});case 6:t.next=12;break;case 8:return t.prev=8,t.t0=t.catch(3),c(t.t0),t.abrupt("return");case 12:y=Ae(l,e),d=ke(ke({},f),y),a(ke(ke({},l),{},{headers:d,success:function(t){var n,s;"2000"===(null===(n=t.headers)||void 0===n||null===(s=n["result-status"])||void 0===s?void 0:s.toString())?Ie({httpRequest:h,isForceLogin:!0,getAuthParams:u,saveAuthParams:p,getAuthCode:r,getAppId:o,siteName:e}).then((function(){a(ke(ke({},l),{},{headers:d,success:i,fail:c}))})).catch((function(e){c(e)})):i(t)},fail:c}));case 15:case"end":return t.stop()}}),t,null,[[3,8]])})));return function(e,n,r){return t.apply(this,arguments)}}());return l}("MPAY",Be,Me,(function(){return Re({scopes:["auth_base"]})}),(function(){return Ye()}),function(e){var t=e.appId,n=e.workspaceId,r=void 0===n?"default":n,o=e.defaultGateway,a=e.defaultHeaders,i=e.request,c=t&&r?h({AppId:t,workspaceId:r},"X-CORS-".concat(t,"-").concat(r),"1"):{};return f((function(e,t,n){var r=e.gateway,u=e.operationType,s=e.headers,p=e.requestData,f=e.timeout;i({url:r||o,method:"POST",timeout:f,headers:se(se(se({"Content-Type":"application/json"},a),{},{"Operation-Type":u},c),s),data:p,success:function(e){t({headers:(null==e?void 0:e.headers)||{},resData:(null==e?void 0:e.data)||{}})},fail:n})}))}({appId:"MPAY_WALLET_MO",workspaceId:e.workspaceId||"default",defaultGateway:"https://imgs-sea-global.alipay.com/imgw.htm",request:De}))(e)},getAppId:function(e){u("getAppIdSync",e,{type:"sync"})},getCurrentPages:function(e){u("__hy_internal__",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ge(Object(n),!0).forEach((function(t){h(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ge(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({name:"getCurrentPages"},e))},getSDKVersion:function(e){u("SDKVersion",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ue(Object(n),!0).forEach((function(t){h(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ue(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e),{type:"attribute"})},popWindow:function(e){K("navigateBack",e)}}})(),r.default})()));