Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

miniapp-web-jsapi

Package Overview
Dependencies
Maintainers
2
Versions
114
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

miniapp-web-jsapi - npm Package Compare versions

Comparing version 2.4.0-alpha.3 to 2.4.0

20

CHANGELOG.md

@@ -6,2 +6,22 @@ # Change Log

## [2.4.0](https://code.alipay.com/ant-ife/hylid-bridge/compare/v2.4.0-alpha.4...v2.4.0) (2022-08-18)
**Note:** Version bump only for package miniapp-web-jsapi
## [2.4.0-alpha.4](https://code.alipay.com/ant-ife/hylid-bridge/compare/v2.1.0...v2.4.0-alpha.4) (2022-08-18)
### Features
* 调整 eslint 配置* 固定三方依赖版本号* add withCredentials* reset version* toast* update alert style* update confirm style* update request config* update toast style* update toast style* update version
### Bug Fixes
* 类型报错* 依赖* 以 750 个宽度单位为准编译 px* 以 750 个宽度单位为准编译 rpx* build error
## [2.4.0-alpha.3](https://code.alipay.com/ant-ife/hylid-bridge/compare/v2.4.0-alpha.2...v2.4.0-alpha.3) (2022-08-17)

@@ -8,0 +28,0 @@

2

dist/index.js
/*! For license information please see index.js.LICENSE.txt */
(()=>{var t={904:(t,e,n)=>{"use strict";var o=n(314).isUnitlessNumber,r=n(182),i=Array.isArray,c=Object.keys,a=/^(normal|none|(\b(url\([^)]*\)|chapter_counter|attr\([^)]*\)|(no-)?(open|close)-quote|inherit)((\b\s*)|$|\s+))+)$/;function l(t,e){return o[t]||"number"!=typeof e?"content"!==t||a.test(e)||(e="'"+e.replace(/'/g,"\\'")+"'"):e+="px",r(t)+": "+e+"; "}t.exports=function(t){var e="";if(!t||0===c(t).length)return e;for(var n=c(t),o=0,r=n.length;o<r;o++){var a=n[o],u=t[a];if(i(u))for(var s=0,f=u.length;s<f;s++)e+=l(a,u[s]);else e+=l(a,u)}return e}},314:t=>{"use strict";var e={boxFlex:!0,boxFlexGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,strokeDashoffset:!0,strokeOpacity:!0,strokeWidth:!0},n=["Webkit","ms","Moz","O"];Object.keys(e).forEach((function(t){n.forEach((function(n){e[function(t,e){return t+e.charAt(0).toUpperCase()+e.substring(1)}(n,t)]=e[t]}))}));var o={isUnitlessNumber:e,shorthandPropertyExpansions:{background:{backgroundImage:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundColor:!0},border:{borderWidth:!0,borderStyle:!0,borderColor:!0},borderBottom:{borderBottomWidth:!0,borderBottomStyle:!0,borderBottomColor:!0},borderLeft:{borderLeftWidth:!0,borderLeftStyle:!0,borderLeftColor:!0},borderRight:{borderRightWidth:!0,borderRightStyle:!0,borderRightColor:!0},borderTop:{borderTopWidth:!0,borderTopStyle:!0,borderTopColor:!0},font:{fontStyle:!0,fontVariant:!0,fontWeight:!0,fontSize:!0,lineHeight:!0,fontFamily:!0}}};t.exports=o},182:t=>{"use strict";var e=/^ms-/,n=/([A-Z])/g;t.exports=function(t){return function(t){return t.replace(n,"-$1").toLowerCase()}(t).replace(e,"-ms-")}},61:(t,e,n)=>{var o=n(698).default;function r(){"use strict";t.exports=r=function(){return e},t.exports.__esModule=!0,t.exports.default=t.exports;var e={},n=Object.prototype,i=n.hasOwnProperty,c="function"==typeof Symbol?Symbol:{},a=c.iterator||"@@iterator",l=c.asyncIterator||"@@asyncIterator",u=c.toStringTag||"@@toStringTag";function s(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,n){return t[e]=n}}function f(t,e,n,o){var r=e&&e.prototype instanceof v?e:v,i=Object.create(r.prototype),c=new S(o||[]);return i._invoke=function(t,e,n){var o="suspendedStart";return function(r,i){if("executing"===o)throw new Error("Generator is already running");if("completed"===o){if("throw"===r)throw i;return{value:void 0,done:!0}}for(n.method=r,n.arg=i;;){var c=n.delegate;if(c){var a=$(c,n);if(a){if(a===d)continue;return a}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===o)throw o="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o="executing";var l=p(t,e,n);if("normal"===l.type){if(o=n.done?"completed":"suspendedYield",l.arg===d)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o="completed",n.method="throw",n.arg=l.arg)}}}(t,n,c),i}function p(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var d={};function v(){}function h(){}function y(){}var m={};s(m,a,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(k([])));b&&b!==n&&i.call(b,a)&&(m=b);var w=y.prototype=v.prototype=Object.create(m);function x(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function n(r,c,a,l){var u=p(t[r],t,c);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==o(f)&&i.call(f,"__await")?e.resolve(f.__await).then((function(t){n("next",t,a,l)}),(function(t){n("throw",t,a,l)})):e.resolve(f).then((function(t){s.value=t,a(s)}),(function(t){return n("throw",t,a,l)}))}l(u.arg)}var r;this._invoke=function(t,o){function i(){return new e((function(e,r){n(t,o,e,r)}))}return r=r?r.then(i,i):i()}}function $(t,e){var n=t.iterator[e.method];if(void 0===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,$(t,e),"throw"===e.method))return d;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var o=p(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,d;var r=o.arg;return r?r.done?(e[t.resultName]=r.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,d):r:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function A(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function E(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(A,this),this.reset(!0)}function k(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(i.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:P}}function P(){return{value:void 0,done:!0}}return h.prototype=y,s(w,"constructor",y),s(y,"constructor",h),h.displayName=s(y,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,s(t,u,"GeneratorFunction")),t.prototype=Object.create(w),t},e.awrap=function(t){return{__await:t}},x(O.prototype),s(O.prototype,l,(function(){return this})),e.AsyncIterator=O,e.async=function(t,n,o,r,i){void 0===i&&(i=Promise);var c=new O(f(t,n,o,r),i);return e.isGeneratorFunction(n)?c:c.next().then((function(t){return t.done?t.value:c.next()}))},x(w),s(w,u,"Generator"),s(w,a,(function(){return this})),s(w,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var o=e.pop();if(o in t)return n.value=o,n.done=!1,n}return n.done=!0,n}},e.values=k,S.prototype={constructor:S,reset:function(t){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(E),!t)for(var e in this)"t"===e.charAt(0)&&i.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(n,o){return c.type="throw",c.arg=t,e.next=n,o&&(e.method="next",e.arg=void 0),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var r=this.tryEntries[o],c=r.completion;if("root"===r.tryLoc)return n("end");if(r.tryLoc<=this.prev){var a=i.call(r,"catchLoc"),l=i.call(r,"finallyLoc");if(a&&l){if(this.prev<r.catchLoc)return n(r.catchLoc,!0);if(this.prev<r.finallyLoc)return n(r.finallyLoc)}else if(a){if(this.prev<r.catchLoc)return n(r.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<r.finallyLoc)return n(r.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&i.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var r=o;break}}r&&("break"===t||"continue"===t)&&r.tryLoc<=e&&e<=r.finallyLoc&&(r=null);var c=r?r.completion:{};return c.type=t,c.arg=e,r?(this.method="next",this.next=r.finallyLoc,d):this.complete(c)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),d},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),E(n),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var o=n.completion;if("throw"===o.type){var r=o.arg;E(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:k(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports},698:t=>{function e(n){return t.exports=e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,e(n)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},687:(t,e,n)=>{var o=n(61)();t.exports=o;try{regeneratorRuntime=o}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=o:Function("r","regeneratorRuntime = r")(o)}}},e={};function n(o){var r=e[o];if(void 0!==r)return r.exports;var i=e[o]={exports:{}};return t[o](i,i.exports,n),i.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var o in e)n.o(e,o)&&!n.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var o={};(()=>{"use strict";function t(t){var e=[];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.push([n,t[n]]);return e}function e(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n.r(o),n.d(o,{AppNameEnums:()=>an,EnvironmentEnums:()=>sn,SiteNameEnums:()=>cn,buildNavigateUrl:()=>gn,createUnsupportedJsApi:()=>qe,getEnvironment:()=>mn,getWebPolyfillOptions:()=>hn,getWebQueryParams:()=>yn,initWebPolyfill:()=>vn,registerJsApiExtension:()=>Ue});const r=require("axios");var i=n.n(r);function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function l(t,e,n){return e&&a(t.prototype,e),n&&a(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}var u=function(){function e(){c(this,e)}return l(e,null,[{key:"isString",value:function(t){return"string"==typeof t}},{key:"isFunction",value:function(t){return"function"==typeof t}},{key:"isNotEmpty",value:function(t){return t&&t.length>0}},{key:"isEmpty",value:function(t){return!e.isNotEmpty(t)}},{key:"parseObjectSafe",value:function(t,e){try{return JSON.parse(t)}catch(t){console.warn("parseObjectSafe error: ",t)}return e}},{key:"encodeMap",value:function(e){if(e){var n=[];return t(e).forEach((function(t){var e=t[0],o=t[1];null!=o&&n.push("".concat(encodeURIComponent(e),"=").concat(encodeURIComponent(o)))})),n.length>0?n.join("&"):void 0}}}]),e}();function s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function f(t){for(var n=1;n<arguments.length;n++){var o=null!=arguments[n]?arguments[n]:{};n%2?s(Object(o),!0).forEach((function(n){e(t,n,o[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):s(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}var p={success:!1,errorCode:"AE15015999000001",errorMessage:"System error, please try again later"};function d(t){return t?decodeURIComponent(t):t}function v(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function h(t,e){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},h(t,e)}function y(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&h(t,e)}function m(t){return m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},m(t)}function g(t,e){if(e&&("object"===m(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return v(t)}function b(t){return b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},b(t)}function w(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function x(t,e,n){return x=w()?Reflect.construct.bind():function(t,e,n){var o=[null];o.push.apply(o,e);var r=new(Function.bind.apply(t,o));return n&&h(r,n.prototype),r},x.apply(null,arguments)}function O(t){var e="function"==typeof Map?new Map:void 0;return O=function(t){if(null===t||(n=t,-1===Function.toString.call(n).indexOf("[native code]")))return t;var n;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,o)}function o(){return x(t,arguments,b(this).constructor)}return o.prototype=Object.create(t.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),h(o,t)},O(t)}var $=function(t){y(i,t);var n,o,r=(n=i,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=b(n);if(o){var r=b(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return g(this,t)});function i(t){var n;return c(this,i),e(v(n=r.call(this,t)),"resultStatus",void 0),e(v(n),"memo",void 0),e(v(n),"tips",void 0),e(v(n),"extraMessage",void 0),e(v(n),"traceId",void 0),n}return l(i)}(O(Error));function A(t){var e,n=t.appId,o=t.path,r=t.extraData,i=t.parameters,c=window.location,a=L(),l=I();e=D(c.host)?"".concat(c.origin,"?site=").concat(a,"&app=").concat(l):"".concat(c.origin,"/page/aplus-miniapps/").concat(t.appId,"/index.html?site=").concat(a,"&app=").concat(l);var s=u.encodeMap(i);null!=s&&s.length&&(e+="&".concat(s));var f=u.encodeMap(r);null!=f&&f.length&&(e+="&query=".concat(encodeURIComponent(f)));var p,d=B();n!==d&&(p={appId:d||""});var v=u.encodeMap(p);return null!=v&&v.length&&(e+="&referrerInfo=".concat(encodeURIComponent(v))),o&&(e+="#".concat(o)),e}var E,S,k,P,j,T,R=function(t){return"".concat("alipay-mwj","-").concat(t)};function _(){return E||(E=function(){var e={};t(M(window.location.search)).forEach((function(t){var n=t[0],o=t[1],r=n.toLowerCase();if("query"===r)try{e.query=M(o)}catch(t){console.warn("parse query error: ",t)}else"referrerinfo"===r?e.referrerInfo=M(o):e[n]=o}));var n=window.location.hash;if(n){var o=n.indexOf("?");e.hashPath=o>0?n.substring(1,o):n.substring(1),e.hashQuery=M(n)}return e}()),E}!function(t){t.STABLE="STABLE",t.TEST="TEST",t.PRE="PRE",t.PROD="PROD"}(S||(S={})),function(t){t.EASYPAISA="EASYPAISA",t.TRUEMONEY="TRUEMONEY",t.KAKAOPAY="KAKAOPAY",t.BKASH="BKASH",t.ALIPAY_CN="ALIPAY_CN",t.ALIPAY_HK="ALIPAY_HK",t.ALIPAY_MO="ALIPAY_MO",t.GCASH="GCASH",t.TNG="TNG",t.DANA="DANA"}(j||(j={})),function(t){t.alipayhk="alipayhk",t.alipaymo="alipaymo",t.gcash="gcash",t.tngd="tngd",t.dana="dana",t.kakaopay="kakaopay"}(T||(T={}));var N=(e(P={},j.ALIPAY_HK,T.alipayhk),e(P,j.ALIPAY_MO,T.alipaymo),e(P,j.GCASH,T.gcash),e(P,j.DANA,T.dana),e(P,j.TNG,T.tngd),e(P,j.KAKAOPAY,T.kakaopay),P);function C(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function L(){var t=(void 0,void 0);return u.isNotEmpty(t)?t:(t=_().site,u.isNotEmpty(t)?t:void console.error("no siteName! please specify siteName in initWebPolyfill(...)"))}function I(){var t=(void 0,void 0);if(u.isNotEmpty(t))return t;if(t=_().app,u.isNotEmpty(t))return t;var e=L();if(t=N[e||""],u.isNotEmpty(t))return t;console.error("no appName! please specify appName in initWebPolyfill(...)")}function B(){var t,e=(void 0,void 0);if(u.isNotEmpty(e))return e;var n=null===(t=window.location.pathname)||void 0===t?void 0:t.match(/^\/page\/aplus-miniapps\/(\d{8,}).*/);if(2===(null==n?void 0:n.length))return n[1];console.error("no AppId! please specify AppId in initWebPolyfill(...)")}function M(t){var e,n={};if(u.isEmpty(t))return n;var o=t.indexOf("?");return o>=0&&(t=t.substring(o+1)),null===(e=t.split("&"))||void 0===e||e.forEach((function(t){var e=t.split("=");if(!(e.length<2)){var o=decodeURIComponent(e[0]);n[o]=decodeURIComponent(e[1])}})),n}function D(t){return"localhost"===t||/^localhost:[0-9]+$/.test(t)||/^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+:[0-9]+$/.test(t)}function H(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function F(t){for(var n=1;n<arguments.length;n++){var o=null!=arguments[n]?arguments[n]:{};n%2?H(Object(o),!0).forEach((function(n){e(t,n,o[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):H(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}function Y(t){var n=t.success,o=t.fail,r=t.complete,c=t.operationType,a=t.requestData,l=t.gateway,s=t.headers,v=function(){var t,n,o,r=function(t){for(var n=1;n<arguments.length;n++){var o=null!=arguments[n]?arguments[n]:{};n%2?C(Object(o),!0).forEach((function(n){e(t,n,o[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):C(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}({},void 0);return r.gatewayUrl||(r.gatewayUrl=(k||(n=window.location.host,k=D(n)?S.STABLE:n.endsWith(".test.alipay.net")||"oss-local-test.marmot-cloud.com"===n?S.TEST:n.endsWith(".alipay.net")||"oss-local-dev.marmot-cloud.com"===n?S.STABLE:n.endsWith(".pre.ac.alipay.com")?S.PRE:S.PROD),(t=k)===S.STABLE?"http://imgs-2.sggz00b.stable.alipay.net/imgw.htm":t===S.TEST?"http://imgs-ztt-0.sggz00a.test.alipay.net/mgw.htm":t===S.PRE?"https://imgs-sea-pre.alipay.com/imgw.htm":"https://imgs-ac.alipay.com/imgw.htm")),r.workspaceId||(r.gatewayUrl.indexOf("pre")>0?r.workspaceId="pre":r.workspaceId="default"),r.appId||(r.appId=(o=I())===T.alipayhk?"BE9C457241710":o===T.alipaymo?"ALIPAY_WALLET_MO":o===T.gcash?"GCASH_WALLET_PH":o===T.tngd?"TNGD_WALLET_MY":o===T.dana?"DANA_WALLET_ID":o===T.kakaopay?"KAKAOPAY_WALLET_KR":(console.error("Cannot find Rpc AppId for ".concat(o,"!")),"UNKNOWN_APP_ID")),r}(),h=F(F(F(F(F({},v.appId?{AppId:v.appId}:{}),v.workspaceId?{WorkspaceId:v.workspaceId}:{}),v.headers),s),{},e({"Operation-Type":c,"Content-Type":"application/json"},"X-CORS-".concat(v.appId,"-").concat(v.workspaceId),"1")),y=l||v.gatewayUrl,m=function(t){null==o||o(t),null==r||r()},g={method:"post",url:y,timeout:3e4,headers:h,data:a,withCredentials:!0};i()(g).then((function(t){var e=null;try{e=function(t){var e=t.headers["result-status"];if("1000"===e)return function(t){var e=t.data,n=t.headers["mgw-traceid"];if(null==e)return function(t,e,n){return f(f({},p),{},{errorMessage:u.isNotEmpty(t)?t:p.errorMessage,memo:u.isString(e)?e:"".concat(e),traceId:n})}(d(t.headers.tips),d(t.headers.memo),n);var o=null;if(u.isString(e)){if(null==(o=u.parseObjectSafe(e)))return e}else o=e;return u.isEmpty(o.traceId)&&(o.traceId=n),o}(t);throw function(t,e){var n=d(t.headers.tips),o=d(t.headers.memo),r=new $("".concat(n," - ").concat(o));return r.resultStatus=e,r.traceId=t.headers["mgw-traceid"],r.tips=n,r.memo=o,r}(t,e)}(t)}catch(t){return void m(t)}null==n||n(e),null==r||r()})).catch((function(t){m(t)}))}function K(t,e,n,o,r,i,c){try{var a=t[i](c),l=a.value}catch(t){return void n(t)}a.done?e(l):Promise.resolve(l).then(o,r)}function W(t){return function(){var e=this,n=arguments;return new Promise((function(o,r){var i=t.apply(e,n);function c(t){K(i,o,r,c,a,"next",t)}function a(t){K(i,o,r,c,a,"throw",t)}c(void 0)}))}}var z=n(687),U=n.n(z);function q(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function G(t){for(var n=1;n<arguments.length;n++){var o=null!=arguments[n]?arguments[n]:{};n%2?q(Object(o),!0).forEach((function(n){e(t,n,o[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):q(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}function V(){return(V=W(U().mark((function t(e){var n,o,r;return U().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e){t.next=2;break}return t.abrupt("return");case 2:n=function(t){if(200!==t)return 19},o=function(t){return"text"===t?"text/plain":"base64"!==t?"application/json":void 0},r={url:e.url,method:e.method,headers:G(G({},e.headers),{},{Accept:o(e.dataType)}),timeout:e.timeout},"GET"===e.method?r.params=e.data:r.data=e.data,i().request(r).then((function(t){var o,r;null===(o=e.success)||void 0===o||o.call(e,{status:n(t.status),data:t.data,headers:t.headers}),null===(r=e.complete)||void 0===r||r.call(e,{})})).catch((function(t){var n,o;null===(n=e.fail)||void 0===n||n.call(e,t),null===(o=e.complete)||void 0===o||o.call(e,{})}));case 7:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function J(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,o=new Array(e);n<e;n++)o[n]=t[n];return o}function Q(t,e){if(t){if("string"==typeof t)return J(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?J(t,e):void 0}}function X(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var o,r,i=[],c=!0,a=!1;try{for(n=n.call(t);!(c=(o=n.next()).done)&&(i.push(o.value),!e||i.length!==e);c=!0);}catch(t){a=!0,r=t}finally{try{c||null==n.return||n.return()}finally{if(a)throw r}}return i}}(t,e)||Q(t,e)||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 Z(){}function tt(t){return t()}function et(){return Object.create(null)}function nt(t){t.forEach(tt)}function ot(t){return"function"==typeof t}function rt(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function it(t){return 0===Object.keys(t).length}function ct(t,e,n,o){return t[1]&&o?function(t,e){for(const n in e)t[n]=e[n];return t}(n.ctx.slice(),t[1](o(e))):n.ctx}function at(t){return null==t?"":t}new Set;let lt,ut=!1;function st(t,e){t.appendChild(e)}function ft(t,e,n){const o=function(t){if(!t)return document;const e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}(t);if(!o.getElementById(e)){const t=vt("style");t.id=e,t.textContent=n,function(t,e){st(t.head||t,e)}(o,t)}}function pt(t,e,n){t.insertBefore(e,n||null)}function dt(t){t.parentNode.removeChild(t)}function vt(t){return document.createElement(t)}function ht(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function yt(t){return document.createTextNode(t)}function mt(){return yt(" ")}function gt(t,e,n,o){return t.addEventListener(e,n,o),()=>t.removeEventListener(e,n,o)}function bt(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function wt(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function xt(t){lt=t}function Ot(){if(!lt)throw new Error("Function called outside component initialization");return lt}function $t(t){Ot().$$.on_mount.push(t)}new Map;const At=[],Et=[],St=[],kt=[],Pt=Promise.resolve();let jt=!1;function Tt(t){St.push(t)}const Rt=new Set;let _t=0;function Nt(){const t=lt;do{for(;_t<At.length;){const t=At[_t];_t++,xt(t),Ct(t.$$)}for(xt(null),At.length=0,_t=0;Et.length;)Et.pop()();for(let t=0;t<St.length;t+=1){const e=St[t];Rt.has(e)||(Rt.add(e),e())}St.length=0}while(At.length);for(;kt.length;)kt.pop()();jt=!1,Rt.clear(),xt(t)}function Ct(t){if(null!==t.fragment){t.update(),nt(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(Tt)}}const Lt=new Set;let It,Bt;function Mt(t,e){t&&t.i&&(Lt.delete(t),t.i(e))}function Dt(t,e,n,o){if(t&&t.o){if(Lt.has(t))return;Lt.add(t),It.c.push((()=>{Lt.delete(t),o&&(n&&t.d(1),o())})),t.o(e)}else o&&o()}function Ht(t){t&&t.c()}function Ft(t,e,n,o){const{fragment:r,on_mount:i,on_destroy:c,after_update:a}=t.$$;r&&r.m(e,n),o||Tt((()=>{const e=i.map(tt).filter(ot);c?c.push(...e):nt(e),t.$$.on_mount=[]})),a.forEach(Tt)}function Yt(t,e){const n=t.$$;null!==n.fragment&&(nt(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function Kt(t,e,n,o,r,i,c,a=[-1]){const l=lt;xt(t);const u=t.$$={fragment:null,ctx:null,props:i,update:Z,not_equal:r,bound:et(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(l?l.$$.context:[])),callbacks:et(),dirty:a,skip_bound:!1,root:e.target||l.$$.root};c&&c(u.root);let s=!1;if(u.ctx=n?n(t,e.props||{},((e,n,...o)=>{const i=o.length?o[0]:n;return u.ctx&&r(u.ctx[e],u.ctx[e]=i)&&(!u.skip_bound&&u.bound[e]&&u.bound[e](i),s&&function(t,e){-1===t.$$.dirty[0]&&(At.push(t),jt||(jt=!0,Pt.then(Nt)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}(t,e)),n})):[],u.update(),s=!0,nt(u.before_update),u.fragment=!!o&&o(u.ctx),e.target){if(e.hydrate){ut=!0;const t=(f=e.target,Array.from(f.childNodes));u.fragment&&u.fragment.l(t),t.forEach(dt)}else u.fragment&&u.fragment.c();e.intro&&Mt(t.$$.fragment),Ft(t,e.target,e.anchor,e.customElement),ut=!1,Nt()}var f;xt(l)}"undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global,new Set(["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"]),"function"==typeof HTMLElement&&(Bt=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:t}=this.$$;this.$$.on_disconnect=t.map(tt).filter(ot);for(const t in this.$$.slotted)this.appendChild(this.$$.slotted[t])}attributeChangedCallback(t,e,n){this[t]=n}disconnectedCallback(){nt(this.$$.on_disconnect)}$destroy(){Yt(this,1),this.$destroy=Z}$on(t,e){const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(e),()=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1)}}$set(t){this.$$set&&!it(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}});class Wt{$destroy(){Yt(this,1),this.$destroy=Z}$on(t,e){const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(e),()=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1)}}$set(t){this.$$set&&!it(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}var zt=n(904),Ut=n.n(zt);function qt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function Gt(t){ft(t,"svelte-1l3ztq7",".alipay-mwj-modal.svelte-1l3ztq7{width:100vw;height:100vh;position:fixed;left:0;top:0;right:0;bottom:0;display:flex;flex-direction:column;align-items:center;justify-content:center}")}function Vt(t){var e,n,o,r=t[7].default,i=function(t,e,n,o){if(t){const o=ct(t,e,n,null);return t[0](o)}}(r,t,t[6]);return{c:function(){e=vt("div"),i&&i.c(),bt(e,"class",n=at(t[0]?"".concat(t[2]," ").concat(t[0]):t[2])+" svelte-1l3ztq7"),bt(e,"style",t[1])},m:function(t,n){pt(t,e,n),i&&i.m(e,null),o=!0},p:function(t,c){var a=X(c,1)[0];i&&i.p&&(!o||64&a)&&function(t,e,n,o,r,i){if(r){const c=ct(e,n,o,i);t.p(c,r)}}(i,r,t,t[6],o?function(t,e,n,o){if(t[2]&&o){const r=t[2](o(n));if(void 0===e.dirty)return r;if("object"==typeof r){const t=[],n=Math.max(e.dirty.length,r.length);for(let o=0;o<n;o+=1)t[o]=e.dirty[o]|r[o];return t}return e.dirty|r}return e.dirty}(r,t[6],a,null):function(t){if(t.ctx.length>32){const e=[],n=t.ctx.length/32;for(let t=0;t<n;t++)e[t]=-1;return e}return-1}(t[6]),null),(!o||1&a&&n!==(n=at(t[0]?"".concat(t[2]," ").concat(t[0]):t[2])+" svelte-1l3ztq7"))&&bt(e,"class",n),(!o||2&a)&&bt(e,"style",t[1])},i:function(t){o||(Mt(i,t),o=!0)},o:function(t){Dt(i,t),o=!1},d:function(t){t&&dt(e),i&&i.d(t)}}}function Jt(t,n,o){var r,i=n.$$slots,c=void 0===i?{}:i,a=n.$$scope,l=R("modal"),u=n.duration,s=void 0===u?void 0:u,f=n.afterClose,p=void 0===f?function(){}:f,d=n.className,v=void 0===d?"":d,h=n.style,y=void 0===h?{}:h;return setTimeout((function(){s&&s>0&&p()}),s&&s>0?s:0),t.$$set=function(t){"duration"in t&&o(3,s=t.duration),"afterClose"in t&&o(4,p=t.afterClose),"className"in t&&o(0,v=t.className),"style"in t&&o(5,y=t.style),"$$scope"in t&&o(6,a=t.$$scope)},t.$$.update=function(){32&t.$$.dirty&&o(1,r=Ut()(function(t){for(var n=1;n<arguments.length;n++){var o=null!=arguments[n]?arguments[n]:{};n%2?qt(Object(o),!0).forEach((function(n){e(t,n,o[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):qt(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}({zIndex:999999},y)))},[v,r,l,s,p,y,a,c]}const Qt=function(t){y(r,t);var e,n,o=(e=r,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,o=b(e);if(n){var r=b(this).constructor;t=Reflect.construct(o,arguments,r)}else t=o.apply(this,arguments);return g(this,t)});function r(t){var e;return c(this,r),Kt(v(e=o.call(this)),t,Jt,Vt,rt,{duration:3,afterClose:4,className:0,style:5},Gt),e}return l(r)}(Wt);function Xt(t){ft(t,"svelte-1pl0sex",".alipay-mwj-alert.svelte-1pl0sex{width:100vw;height:100vh;background-color:rgba(0, 0, 0, 0.4);display:flex;flex-direction:column;align-items:center;justify-content:center}.alipay-mwj-alert-content.svelte-1pl0sex{background-color:#fff;width:270px;border-radius:7px;padding-top:15px;text-align:center;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center}.alipay-mwj-alert-title.svelte-1pl0sex{font-size:18px;color:#000;padding:6px 15px 15px;word-break:break-word}.alipay-mwj-alert-text.svelte-1pl0sex{color:#888;font-size:15px;padding:0 15px 15px;overflow:auto;word-break:break-word}.alipay-mwj-alert-line.svelte-1pl0sex{width:100%;height:1px;background-color:#eee}.alipay-mwj-alert-button.svelte-1pl0sex{color:#3F8DE2;font-size:18px;height:50px;line-height:50px}")}function Zt(t){var e,n;return{c:function(){e=vt("span"),n=yt(t[1]),bt(e,"class",t[5]+"-text svelte-1pl0sex")},m:function(t,o){pt(t,e,o),st(e,n)},p:function(t,e){2&e&&wt(n,t[1])},d:function(t){t&&dt(e)}}}function te(t){var e,n,o,r,i,c,a,l,u,s,f,p,d=(t[0]||"")+"",v=(t[2]||"OK")+"",h=t[4]&&Zt(t);return{c:function(){e=vt("div"),n=vt("div"),o=vt("span"),r=yt(d),i=mt(),h&&h.c(),c=mt(),a=vt("div"),l=mt(),u=vt("span"),s=yt(v),bt(o,"class",t[5]+"-title svelte-1pl0sex"),bt(a,"class",t[5]+"-line svelte-1pl0sex"),bt(u,"class",t[5]+"-button svelte-1pl0sex"),bt(n,"class",t[5]+"-content svelte-1pl0sex"),bt(e,"class",at(t[5])+" svelte-1pl0sex")},m:function(d,v){pt(d,e,v),st(e,n),st(n,o),st(o,r),st(n,i),h&&h.m(n,null),st(n,c),st(n,a),st(n,l),st(n,u),st(u,s),f||(p=gt(u,"click",(function(){ot(t[3])&&t[3].apply(this,arguments)})),f=!0)},p:function(e,o){t=e,1&o&&d!==(d=(t[0]||"")+"")&&wt(r,d),t[4]?h?h.p(t,o):((h=Zt(t)).c(),h.m(n,c)):h&&(h.d(1),h=null),4&o&&v!==(v=(t[2]||"OK")+"")&&wt(s,v)},d:function(t){t&&dt(e),h&&h.d(),f=!1,p()}}}function ee(t){var e,n;return e=new Qt({props:{$$slots:{default:[te]},$$scope:{ctx:t}}}),{c:function(){Ht(e.$$.fragment)},m:function(t,o){Ft(e,t,o),n=!0},p:function(t,n){var o=X(n,1)[0],r={};95&o&&(r.$$scope={dirty:o,ctx:t}),e.$set(r)},i:function(t){n||(Mt(e.$$.fragment,t),n=!0)},o:function(t){Dt(e.$$.fragment,t),n=!1},d:function(t){Yt(e,t)}}}function ne(t,e,n){var o,r=e.title,i=e.content,c=e.buttonText,a=e.onClose,l=R("alert");return t.$$set=function(t){"title"in t&&n(0,r=t.title),"content"in t&&n(1,i=t.content),"buttonText"in t&&n(2,c=t.buttonText),"onClose"in t&&n(3,a=t.onClose)},t.$$.update=function(){2&t.$$.dirty&&n(4,o=u.isNotEmpty(i))},[r,i,c,a,o,l]}const oe=function(t){y(r,t);var e,n,o=(e=r,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,o=b(e);if(n){var r=b(this).constructor;t=Reflect.construct(o,arguments,r)}else t=o.apply(this,arguments);return g(this,t)});function r(t){var e;return c(this,r),Kt(v(e=o.call(this)),t,ne,ee,rt,{title:0,content:1,buttonText:2,onClose:3},Xt),e}return l(r)}(Wt);function re(t){ft(t,"svelte-1rtcbed",".alipay-mwj-confirm.svelte-1rtcbed{width:100vw;height:100vh;background-color:rgba(0, 0, 0, 0.4);display:flex;flex-direction:column;align-items:center;justify-content:center}.alipay-mwj-confirm-content.svelte-1rtcbed{background-color:#fff;width:270px;border-radius:7px;padding-top:15px;text-align:center;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center}.alipay-mwj-confirm-title.svelte-1rtcbed{font-size:18px;color:#000;padding:6px 15px 15px}.alipay-mwj-confirm-text.svelte-1rtcbed{color:#888;font-size:15px;padding:0 15px 15px;overflow:auto;word-break:break-word}.alipay-mwj-confirm-line.svelte-1rtcbed{width:100%;height:1px;background-color:#eee}.alipay-mwj-confirm-buttonContent.svelte-1rtcbed{width:100%;display:flex;flex-direction:row;height:50px;line-height:50px;font-size:18px;align-items:center}.alipay-mwj-confirm-button.svelte-1rtcbed{flex:1;color:#3F8DE2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.alipay-mwj-confirm-cancel.svelte-1rtcbed{flex:1;color:#000;border-right:solid 1px #eee;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}")}function ie(t){var e,n;return{c:function(){e=vt("span"),n=yt(t[1]),bt(e,"class",t[6]+"-text svelte-1rtcbed")},m:function(t,o){pt(t,e,o),st(e,n)},p:function(t,e){2&e&&wt(n,t[1])},d:function(t){t&&dt(e)}}}function ce(t){var e,n,o,r,i,c,a,l,u,s,f,p,d,v,h,y,m=(t[3]||"Cancel")+"",g=(t[2]||"OK")+"",b=t[5]&&ie(t);return{c:function(){e=vt("div"),n=vt("div"),o=vt("span"),r=yt(t[0]),i=mt(),b&&b.c(),c=mt(),a=vt("div"),l=mt(),u=vt("div"),s=vt("span"),f=yt(m),p=mt(),d=vt("span"),v=yt(g),bt(o,"class",t[6]+"-title svelte-1rtcbed"),bt(a,"class",t[6]+"-line svelte-1rtcbed"),bt(s,"class",t[6]+"-cancel svelte-1rtcbed"),bt(d,"class",t[6]+"-button svelte-1rtcbed"),bt(u,"class",t[6]+"-buttonContent svelte-1rtcbed"),bt(n,"class",t[6]+"-content svelte-1rtcbed"),bt(e,"class",at(t[6])+" svelte-1rtcbed")},m:function(m,g){pt(m,e,g),st(e,n),st(n,o),st(o,r),st(n,i),b&&b.m(n,null),st(n,c),st(n,a),st(n,l),st(n,u),st(u,s),st(s,f),st(u,p),st(u,d),st(d,v),h||(y=[gt(s,"click",t[7]),gt(d,"click",t[8])],h=!0)},p:function(t,e){1&e&&wt(r,t[0]),t[5]?b?b.p(t,e):((b=ie(t)).c(),b.m(n,c)):b&&(b.d(1),b=null),8&e&&m!==(m=(t[3]||"Cancel")+"")&&wt(f,m),4&e&&g!==(g=(t[2]||"OK")+"")&&wt(v,g)},d:function(t){t&&dt(e),b&&b.d(),h=!1,nt(y)}}}function ae(t){var e,n;return e=new Qt({props:{$$slots:{default:[ce]},$$scope:{ctx:t}}}),{c:function(){Ht(e.$$.fragment)},m:function(t,o){Ft(e,t,o),n=!0},p:function(t,n){var o=X(n,1)[0],r={};575&o&&(r.$$scope={dirty:o,ctx:t}),e.$set(r)},i:function(t){n||(Mt(e.$$.fragment,t),n=!0)},o:function(t){Dt(e.$$.fragment,t),n=!1},d:function(t){Yt(e,t)}}}function le(t,e,n){var o,r=e.title,i=e.content,c=e.confirmButtonText,a=e.cancelButtonText,l=e.onClose,s=R("confirm");return t.$$set=function(t){"title"in t&&n(0,r=t.title),"content"in t&&n(1,i=t.content),"confirmButtonText"in t&&n(2,c=t.confirmButtonText),"cancelButtonText"in t&&n(3,a=t.cancelButtonText),"onClose"in t&&n(4,l=t.onClose)},t.$$.update=function(){2&t.$$.dirty&&n(5,o=u.isNotEmpty(i))},[r,i,c,a,l,o,s,function(){return l(!1)},function(){return l(!0)}]}const ue=function(t){y(r,t);var e,n,o=(e=r,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,o=b(e);if(n){var r=b(this).constructor;t=Reflect.construct(o,arguments,r)}else t=o.apply(this,arguments);return g(this,t)});function r(t){var e;return c(this,r),Kt(v(e=o.call(this)),t,le,ae,rt,{title:0,content:1,confirmButtonText:2,cancelButtonText:3,onClose:4},re),e}return l(r)}(Wt);function se(t){setTimeout(t,0)}function fe(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=b(t);if(e){var r=b(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return g(this,n)}}var pe,de=function(){function t(n){c(this,t),e(this,"elements",void 0),this.elements=n}return l(t,[{key:"map",value:function(t){return null==this.elements?null:Array.isArray(this.elements)?0===this.elements.length?null:this.elements.map(t):[this.elements].map(t)[0]}}]),t}(),ve=function(t){y(n,t);var e=fe(n);function n(){return c(this,n),e.apply(this,arguments)}return l(n,[{key:"execute",value:function(){return this.map((function(t){var e=t.getBoundingClientRect();return{width:e.width,height:e.height,top:e.top,bottom:e.bottom,left:e.left,right:e.right}}))}}]),n}(de),he=function(t){y(n,t);var e=fe(n);function n(){return c(this,n),e.apply(this,arguments)}return l(n,[{key:"execute",value:function(){return this.map((function(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}))}}]),n}(de),ye=function(t){y(n,t);var e=fe(n);function n(){return c(this,n),e.apply(this,arguments)}return l(n,[{key:"execute",value:function(){var t=document.documentElement;return{scrollLeft:(window.pageXOffset||t.scrollLeft)-(t.clientLeft||0),scrollTop:(window.pageYOffset||t.scrollTop)-(t.clientTop||0),width:Math.max(document.documentElement.clientWidth||0,window.innerWidth||0),height:Math.max(document.documentElement.clientHeight||0,window.innerHeight||0)}}}]),n}(de);!function(t){t.ToastHide="ToastHide",t.LoadingHide="LoadingHide"}(pe||(pe={}));const me=pe;var ge=new(function(){function t(n){c(this,t),e(this,"managerName",void 0),e(this,"listenersMap",{}),this.managerName=n}return l(t,[{key:"addListener",value:function(t,e){var n=this;console.log("EventManager_".concat(this.managerName,"#addListener: ").concat(t));var o=this.listenersMap[t];return o||(o=[],this.listenersMap[t]=o),o.push(e),function(){n.removeListener(t,e)}}},{key:"removeListener",value:function(t,e){if(console.log("EventManager_".concat(this.managerName,"#removeListener: ").concat(t)),e){var n=this.listenersMap[t];n&&(this.listenersMap[t]=n.filter((function(t){return t!==e})))}else this.listenersMap[t]=[]}},{key:"notifyEvent",value:function(t,e){console.log("EventManager_".concat(this.managerName,"#notifyEvent: ").concat(t," -> "),e);var n,o=this.listenersMap[t];o&&(n=o,function(t){if(Array.isArray(t))return J(t)}(n)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(n)||Q(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).forEach((function(n){return n(e,t)}))}}]),t}())("default");function be(t){var e,n,o,r;return{c:function(){e=ht("svg"),n=ht("g"),o=ht("path"),r=ht("path"),bt(o,"d","M36 72c19.882 0 36-16.118 36-36S55.882 0 36 0 0 16.118 0 36s16.118 36 36 36zm0-2c18.778 0 34-15.222 34-34S54.778 2 36 2 2 17.222 2 36s15.222 34 34 34z"),bt(o,"fill","#FFF"),bt(r,"stroke","#FFF"),bt(r,"stroke-width","2"),bt(r,"d","M19 34.54l11.545 11.923L52.815 24"),bt(n,"fill","none"),bt(n,"fill-rule","evenodd"),bt(e,"class",t[0]),bt(e,"xmlns","http://www.w3.org/2000/svg"),bt(e,"viewBox","0 0 72 72")},m:function(t,i){pt(t,e,i),st(e,n),st(n,o),st(n,r)},p:function(t,n){1&X(n,1)[0]&&bt(e,"class",t[0])},i:Z,o:Z,d:function(t){t&&dt(e)}}}function we(t,e,n){var o=e.className;return t.$$set=function(t){"className"in t&&n(0,o=t.className)},[o]}const xe=function(t){y(r,t);var e,n,o=(e=r,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,o=b(e);if(n){var r=b(this).constructor;t=Reflect.construct(o,arguments,r)}else t=o.apply(this,arguments);return g(this,t)});function r(t){var e;return c(this,r),Kt(v(e=o.call(this)),t,we,be,rt,{className:0}),e}return l(r)}(Wt);function Oe(t){var e,n,o,r;return{c:function(){e=ht("svg"),n=ht("g"),o=ht("path"),r=ht("path"),bt(o,"d","M36 72c19.882 0 36-16.118 36-36S55.882 0 36 0 0 16.118 0 36s16.118 36 36 36zm0-2c18.778 0 34-15.222 34-34S54.778 2 36 2 2 17.222 2 36s15.222 34 34 34z"),bt(o,"fill","#FFF"),bt(r,"d","M22 22l28.304 28.304m-28.304 0L50.304 22"),bt(r,"stroke","#FFF"),bt(r,"stroke-width","2"),bt(n,"fill","none"),bt(n,"fill-rule","evenodd"),bt(e,"class",t[0]),bt(e,"xmlns","http://www.w3.org/2000/svg"),bt(e,"viewBox","0 0 72 72")},m:function(t,i){pt(t,e,i),st(e,n),st(n,o),st(n,r)},p:function(t,n){1&X(n,1)[0]&&bt(e,"class",t[0])},i:Z,o:Z,d:function(t){t&&dt(e)}}}function $e(t,e,n){var o=e.className;return t.$$set=function(t){"className"in t&&n(0,o=t.className)},[o]}const Ae=function(t){y(r,t);var e,n,o=(e=r,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,o=b(e);if(n){var r=b(this).constructor;t=Reflect.construct(o,arguments,r)}else t=o.apply(this,arguments);return g(this,t)});function r(t){var e;return c(this,r),Kt(v(e=o.call(this)),t,$e,Oe,rt,{className:0}),e}return l(r)}(Wt);function Ee(t){var e,n,o,r,i;return{c:function(){e=ht("svg"),n=ht("g"),o=ht("path"),r=ht("path"),i=ht("path"),bt(o,"d","M36 72c19.882 0 36-16.118 36-36S55.882 0 36 0 0 16.118 0 36s16.118 36 36 36zm0-2c18.778 0 34-15.222 34-34S54.778 2 36 2 2 17.222 2 36s15.222 34 34 34z"),bt(o,"fill","#FFF"),bt(r,"fill","#FFF"),bt(r,"d","M47 22h2v6h-2zm-24 0h2v6h-2z"),bt(i,"d","M21 51s4.6-7 15-7 15 7 15 7"),bt(i,"stroke","#FFF"),bt(i,"stroke-width","2"),bt(n,"fill","none"),bt(n,"fill-rule","evenodd"),bt(e,"class",t[0]),bt(e,"xmlns","http://www.w3.org/2000/svg"),bt(e,"viewBox","0 0 72 72")},m:function(t,c){pt(t,e,c),st(e,n),st(n,o),st(n,r),st(n,i)},p:function(t,n){1&X(n,1)[0]&&bt(e,"class",t[0])},i:Z,o:Z,d:function(t){t&&dt(e)}}}function Se(t,e,n){var o=e.className;return t.$$set=function(t){"className"in t&&n(0,o=t.className)},[o]}const ke=function(t){y(r,t);var e,n,o=(e=r,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,o=b(e);if(n){var r=b(this).constructor;t=Reflect.construct(o,arguments,r)}else t=o.apply(this,arguments);return g(this,t)});function r(t){var e;return c(this,r),Kt(v(e=o.call(this)),t,Se,Ee,rt,{className:0}),e}return l(r)}(Wt);function Pe(t){ft(t,"svelte-1qbkkts",".alipay-mwj-toast.svelte-1qbkkts{background-color:rgba(58, 58, 58, 0.9);max-width:50%;min-width:72px;padding:15px;border-radius:5px;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center}.alipay-mwj-toast-icon.svelte-1qbkkts{width:72px;height:72px;margin-bottom:12px}.alipay-mwj-toast-text.svelte-1qbkkts{color:#fff;font-size:14px;text-align:center}")}function je(t){var e,n,o;return e=new ke({props:{className:t[4]+"-icon"}}),{c:function(){Ht(e.$$.fragment),n=yt(";")},m:function(t,r){Ft(e,t,r),pt(t,n,r),o=!0},p:Z,i:function(t){o||(Mt(e.$$.fragment,t),o=!0)},o:function(t){Dt(e.$$.fragment,t),o=!1},d:function(t){Yt(e,t),t&&dt(n)}}}function Te(t){var e,n;return e=new Ae({props:{className:t[4]+"-icon"}}),{c:function(){Ht(e.$$.fragment)},m:function(t,o){Ft(e,t,o),n=!0},p:Z,i:function(t){n||(Mt(e.$$.fragment,t),n=!0)},o:function(t){Dt(e.$$.fragment,t),n=!1},d:function(t){Yt(e,t)}}}function Re(t){var e,n;return e=new xe({props:{className:t[4]+"-icon"}}),{c:function(){Ht(e.$$.fragment)},m:function(t,o){Ft(e,t,o),n=!0},p:Z,i:function(t){n||(Mt(e.$$.fragment,t),n=!0)},o:function(t){Dt(e.$$.fragment,t),n=!1},d:function(t){Yt(e,t)}}}function _e(t){var e,n,o,r,i,c,a,l=[Re,Te,je],u=[];function s(t,e){return"success"===t[1]?0:"fail"===t[1]?1:"exception"===t[1]?2:-1}return~(n=s(t))&&(o=u[n]=l[n](t)),{c:function(){e=vt("div"),o&&o.c(),r=mt(),i=vt("span"),c=yt(t[0]),bt(i,"class",t[4]+"-text svelte-1qbkkts"),bt(e,"class",at(t[4])+" svelte-1qbkkts")},m:function(t,o){pt(t,e,o),~n&&u[n].m(e,null),st(e,r),st(e,i),st(i,c),a=!0},p:function(t,i){var f=n;(n=s(t))===f?~n&&u[n].p(t,i):(o&&(It={r:0,c:[],p:It},Dt(u[f],1,1,(function(){u[f]=null})),It.r||nt(It.c),It=It.p),~n?((o=u[n])?o.p(t,i):(o=u[n]=l[n](t)).c(),Mt(o,1),o.m(e,r)):o=null),(!a||1&i)&&wt(c,t[0])},i:function(t){a||(Mt(o),a=!0)},o:function(t){Dt(o),a=!1},d:function(t){t&&dt(e),~n&&u[n].d()}}}function Ne(t){var e,n;return e=new Qt({props:{duration:t[2],afterClose:t[3],$$slots:{default:[_e]},$$scope:{ctx:t}}}),{c:function(){Ht(e.$$.fragment)},m:function(t,o){Ft(e,t,o),n=!0},p:function(t,n){var o=X(n,1)[0],r={};4&o&&(r.duration=t[2]),8&o&&(r.afterClose=t[3]),35&o&&(r.$$scope={dirty:o,ctx:t}),e.$set(r)},i:function(t){n||(Mt(e.$$.fragment,t),n=!0)},o:function(t){Dt(e.$$.fragment,t),n=!1},d:function(t){Yt(e,t)}}}function Ce(t,e,n){var o,r=e.content,i=e.type,c=e.duration,a=e.onClose,l=R("toast");return $t((function(){ge.addListener(me.ToastHide,a)})),o=function(){ge.removeListener(me.ToastHide,a)},Ot().$$.on_destroy.push(o),t.$$set=function(t){"content"in t&&n(0,r=t.content),"type"in t&&n(1,i=t.type),"duration"in t&&n(2,c=t.duration),"onClose"in t&&n(3,a=t.onClose)},[r,i,c,a,l]}const Le=function(t){y(r,t);var e,n,o=(e=r,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,o=b(e);if(n){var r=b(this).constructor;t=Reflect.construct(o,arguments,r)}else t=o.apply(this,arguments);return g(this,t)});function r(t){var e;return c(this,r),Kt(v(e=o.call(this)),t,Ce,Ne,rt,{content:0,type:1,duration:2,onClose:3},Pe),e}return l(r)}(Wt);var Ie;!function(t){t.WEB_PAGE="WEB_PAGE",t.SCHEME="SCHEME",t.SCAN="SCAN",t.QR_PAY="QR_PAY",t.BIND_CARD="BIND_CARD",t.TOP_UP="TOP_UP"}(Ie||(Ie={}));var Be=0;function Me(t){ft(t,"svelte-1u60cs3",".alipay-mwj-loading.svelte-1u60cs3{background-color:rgba(58, 58, 58, 0.9);min-width:72px;max-width:50vw;padding:15px;border-radius:5px;box-sizing:border-box;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center}.alipay-mwj-loading-iconRoot.svelte-1u60cs3{width:34px;height:34px;border:solid 4px #888;border-radius:50%;position:relative}.alipay-mwj-loading-icon.svelte-1u60cs3{position:absolute;left:-4px;top:-4px;right:-4px;bottom:-4px;border:solid 4px #fff;border-radius:50%;-webkit-clip-path:polygon(50% 0%, 100% 0%, 100% 3600%, 50% 50%);clip-path:polygon(50% 0%, 100% 0%, 100% 3600%, 50% 50%);-webkit-animation:svelte-1u60cs3-alipay-mwj-loading-ring 1.5s cubic-bezier(0.5, 0, 0.5, 1) infinite;animation:svelte-1u60cs3-alipay-mwj-loading-ring 1.5s cubic-bezier(0.5, 0, 0.5, 1) infinite}.alipay-mwj-loading-text.svelte-1u60cs3{color:#fff;font-size:14px;text-align:center;margin-top:6px}@-webkit-keyframes svelte-1u60cs3-alipay-mwj-loading-ring{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes svelte-1u60cs3-alipay-mwj-loading-ring{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}")}function De(t){var e,n,o,r,i=t[2]&&He(t);return{c:function(){e=vt("div"),n=vt("div"),o=vt("div"),r=mt(),i&&i.c(),bt(o,"class",t[3]+"-icon svelte-1u60cs3"),bt(n,"class",t[3]+"-iconRoot svelte-1u60cs3"),bt(e,"class",at(t[3])+" svelte-1u60cs3")},m:function(t,c){pt(t,e,c),st(e,n),st(n,o),st(e,r),i&&i.m(e,null)},p:function(t,n){t[2]?i?i.p(t,n):((i=He(t)).c(),i.m(e,null)):i&&(i.d(1),i=null)},d:function(t){t&&dt(e),i&&i.d()}}}function He(t){var e,n;return{c:function(){e=vt("span"),n=yt(t[0]),bt(e,"class",t[3]+"-text svelte-1u60cs3")},m:function(t,o){pt(t,e,o),st(e,n)},p:function(t,e){1&e&&wt(n,t[0])},d:function(t){t&&dt(e)}}}function Fe(t){var e,n=t[1]&&De(t);return{c:function(){n&&n.c(),e=yt("")},m:function(t,o){n&&n.m(t,o),pt(t,e,o)},p:function(t,o){t[1]?n?n.p(t,o):((n=De(t)).c(),n.m(e.parentNode,e)):n&&(n.d(1),n=null)},d:function(t){n&&n.d(t),t&&dt(e)}}}function Ye(t){var e,n;return e=new Qt({props:{$$slots:{default:[Fe]},$$scope:{ctx:t}}}),{c:function(){Ht(e.$$.fragment)},m:function(t,o){Ft(e,t,o),n=!0},p:function(t,n){var o=X(n,1)[0],r={};71&o&&(r.$$scope={dirty:o,ctx:t}),e.$set(r)},i:function(t){n||(Mt(e.$$.fragment,t),n=!0)},o:function(t){Dt(e.$$.fragment,t),n=!1},d:function(t){Yt(e,t)}}}function Ke(t,e,n){var o,r=e.content,i=e.delay,c=e.onClose,a=!1,l=R("loading");return $t((function(){var t=ge.addListener(me.LoadingHide,(function(){c(),t()}))})),setTimeout((function(){n(1,a=++Be>0),a||console.log("my.hideLoading called before show")}),i||0),t.$$set=function(t){"content"in t&&n(0,r=t.content),"delay"in t&&n(4,i=t.delay),"onClose"in t&&n(5,c=t.onClose)},t.$$.update=function(){1&t.$$.dirty&&n(2,o=u.isNotEmpty(r))},[r,a,o,l,i,c]}const We=function(t){y(r,t);var e,n,o=(e=r,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,o=b(e);if(n){var r=b(this).constructor;t=Reflect.construct(o,arguments,r)}else t=o.apply(this,arguments);return g(this,t)});function r(t){var e;return c(this,r),Kt(v(e=o.call(this)),t,Ke,Ye,rt,{content:0,delay:4,onClose:5},Me),e}return l(r)}(Wt);var ze={};function Ue(t,e,n){n?window.my[t]=e:ze[t]=e}function qe(t,e){return function(){console.warn("** [miniapp-web-jsapi] JSAPI ".concat(t," unsupported: ").concat(e))}}const Ge=require("device-detector-js");var Ve,Je=n.n(Ge);function Qe(){var t,e,n,o,r,i;return Ve||(44,20,375,o=Math.ceil(375/window.screen.width*window.screen.height),r=I(),i=(new(Je())).parse(navigator.userAgent),Ve={platform:/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)?"iOS":/(Android)/i.test(navigator.userAgent)?"Android":"Unknown",pixelRatio:window.devicePixelRatio,windowWidth:375,windowHeight:o-44-20,titleBarHeight:44,statusBarHeight:20,screenWidth:375,screenHeight:o,currentBattery:"100%",brand:(null===(t=i.device)||void 0===t?void 0:t.brand)||"Unknown",model:(null===(e=i.device)||void 0===e?void 0:e.model)||"Unknown",version:Xe(r),storage:"",app:r||"",fontSizeSetting:16,system:(null===(n=i.os)||void 0===n?void 0:n.version)||"Unknown",language:navigator.language}),Ve}function Xe(t){if(t===T.kakaopay){var e=navigator.userAgent.match(/.+\sKT\/([0-9|.]+).*/);if(e&&e.length>=2)return e[1]}return""}var Ze=function(){function t(){c(this,t)}return l(t,null,[{key:"getKey",value:function(){return my.getAppIdSync()||"global"}},{key:"storageValue",get:function(){return this._storageValue||(this._storageValue=function(){var e=localStorage.getItem(t.getKey());if(e)try{return JSON.parse(e)}catch(t){}}()),this._storageValue||{}}},{key:"setStorage",value:function(e,n){this.storageValue[e]=n,localStorage.setItem(t.getKey(),JSON.stringify(this.storageValue))}},{key:"getStorage",value:function(t){return this.storageValue[t]}},{key:"removeStorage",value:function(e){this.storageValue[e]=void 0,localStorage.setItem(t.getKey(),JSON.stringify(this.storageValue))}},{key:"clearStorage",value:function(){this._storageValue=void 0,localStorage.setItem(t.getKey(),"{}")}}]),t}();function tn(t){var e=t.key;return{success:!0,key:e,data:Ze.getStorage(e)}}function en(t){Ze.setStorage(t.key,t.data)}function nn(t){Ze.removeStorage(t.key)}function on(){Ze.clearStorage()}e(Ze,"_storageValue",void 0);var rn,cn,an,ln,un,sn,fn,pn={alert:function(t){var e=t||{},n=e.title,o=e.content,r=e.buttonText,i=e.success,c=e.complete,a=document.createElement("div");document.body.appendChild(a);var l=new oe({target:a,props:{title:n,content:o,buttonText:r,onClose:function(){var t;null==i||i(),null==c||c(),l.$destroy(),null===(t=a.parentNode)||void 0===t||t.removeChild(a)}}})},confirm:function(t){var e=t.title,n=t.content,o=t.confirmButtonText,r=t.cancelButtonText,i=t.success,c=t.complete,a=document.createElement("div");document.body.appendChild(a);var l=new ue({target:a,props:{title:e,content:n,confirmButtonText:o,cancelButtonText:r,onClose:function(t){var e,n={ok:t,confirm:t};null==i||i(n),null==c||c(n),l.$destroy(),null===(e=a.parentNode)||void 0===e||e.removeChild(a)}}})},getLocation:function(t){var e=function(e){se((function(){var n,o,r={error:e};null===(n=t.fail)||void 0===n||n.call(t,r),null===(o=t.complete)||void 0===o||o.call(t,r)}))},n=navigator.geolocation;n?n.getCurrentPosition((function(e){var n,o,r,i,c,a,l={accuracy:"".concat(null===(n=e.coords)||void 0===n?void 0:n.accuracy),horizontalAccuracy:"".concat(null===(o=e.coords)||void 0===o?void 0:o.altitudeAccuracy),latitude:"".concat(null===(r=e.coords)||void 0===r?void 0:r.latitude),longitude:"".concat(null===(i=e.coords)||void 0===i?void 0:i.longitude)};null===(c=t.success)||void 0===c||c.call(t,l),null===(a=t.complete)||void 0===a||a.call(t,l)}),(function(t){var n=1===t.code?11:13;e(n)})):e(13)},makePhoneCall:function(t){t&&t.number&&function(t){try{var e=document.createElement("a");e.setAttribute("href",t),e.setAttribute("target","_blank");var n=document.createEvent("MouseEvents");n.initMouseEvent("click",!0,!0),e.dispatchEvent(n)}catch(e){window.open(t,"_blank")}}("tel://".concat(t.number))},getServerTime:function(t){var e=t.success,n=t.fail,o=t.complete;my.call("rpc",{operationType:"ac.mobilepayment.basic.time.tick",requestData:[{}],success:function(t){t&&t.success&&null!=t.timestamp&&t.timestamp>0?null==e||e({time:t.timestamp}):null==n||n(),null==o||o()},fail:function(t){null==n||n(),null==o||o()}})},getNetworkType:function(t){var e,n,o=navigator.connection,r=null==o?void 0:o.effectiveType;r?"slow-2g"===r&&(r="2g"):(r=(null==o?void 0:o.type)||"none",-1===["wifi","none"].indexOf(r)&&(r="unknown")),r=r.toUpperCase(),null===(e=t.success)||void 0===e||e.call(t,{networkAvailable:navigator.onLine,networkType:r}),null===(n=t.fail)||void 0===n||n.call(t)},pageScrollTo:function(t){if(t.selector){var e,n,o,r=document.querySelector(t.selector);r?(r.scrollTo(),null===(n=t.success)||void 0===n||n.call(t)):null===(o=t.fail)||void 0===o||o.call(t),null===(e=t.complete)||void 0===e||e.call(t)}else if(null!=t.scrollTop)window.scrollTo({top:t.scrollTop,behavior:"smooth"});else{var i,c;null===(i=t.fail)||void 0===i||i.call(t),null===(c=t.complete)||void 0===c||c.call(t)}},createSelectorQuery:function(t){var e,n=[],o=!1,r=function(t){o?n.push(new ye):n.push(new t(e)),o=!1,e=null},i={boundingClientRect:function(){return r(ve),c},scrollOffset:function(){return r(he),c}},c={select:function(t){return e=document.querySelector(t),i},selectAll:function(t){var n=document.querySelectorAll(t);if(n){var o=[];null==n||n.forEach((function(t){return o.push(t)})),e=o}else e=null;return i},selectViewport:function(){return o=!0,i},exec:function(t){t(n.map((function(t){return t.execute()})))}};return c},navigateToBizScene:function(t){var e=t.sceneCode,n=t.param,o=t.success,r=t.fail,i=function(){null==o||o()},c=function(t){null==r||r(t)};switch(e){case Ie.WEB_PAGE:var a=n;u.isNotEmpty(a.url)?(window.open(a.url),i()):c({errorCode:"PARAM_ILLEGAL",errorMessage:"url is empty"});break;case Ie.SCHEME:var l=n;u.isNotEmpty(l.scheme)?(window.open(l.scheme),i()):c({errorCode:"PARAM_ILLEGAL",errorMessage:"scheme is empty"});break;default:return void c({errorCode:"UNKNOWN",errorMessage:"not implemented for this sceneCode"})}},navigateToMiniProgram:function(t){var e=t.success,n=(t.fail,t.complete);window.location.href=function(t){return A(t)}(t),null==e||e({}),null==n||n({})},request:function(t){return V.apply(this,arguments)},call:function(t,e){var n,o,r=ze[t];return r?r.call(void 0,e):(r=window.my?window.my[t]:void 0,u.isFunction(r)?r.call(void 0,e):(console.error("** JSAPI ".concat(t," not exists!")),null==e||null===(n=e.fail)||void 0===n||n.call(e,new Error("".concat(t," is not exists"))),void(null==e||null===(o=e.complete)||void 0===o||o.call(e,{}))))},rpc:function(t){var e=(void 0,void 0);if(e&&e.onRpcError){var n=t.fail,o=e.onRpcError;t.fail=function(e){o(e,{notifyFail:function(t){null==n||n(t)},resend:function(){t.fail=n,Y(t)}})}}e&&e.onBeforeSendRpc&&e.onBeforeSendRpc(t)||Y(t)},setClipboard:function(t){var e,n;if(!t.text)return null===(e=t.fail)||void 0===e||e.call(t),void(null===(n=t.complete)||void 0===n||n.call(t,{success:!1}));var o,r,i,c,a=document.createElement("input");document.body.appendChild(a),a.setAttribute("readonly","readonly"),a.setAttribute("value",t.text),a.setSelectionRange(0,t.text.length),a.focus(),a.select(),document.execCommand("copy")?(null===(o=t.success)||void 0===o||o.call(t,{success:!0}),null===(r=t.complete)||void 0===r||r.call(t,{success:!0})):(null===(i=t.fail)||void 0===i||i.call(t),null===(c=t.complete)||void 0===c||c.call(t,{success:!1})),document.body.removeChild(a)},getClipboard:function(t){var e;null===(e=t.fail)||void 0===e||e.call(t)},showToast:function(t){var e=t||{},n=e.content,o=e.type,r=e.duration,i=void 0===r?2e3:r,c=e.success,a=e.complete;if(n){var l=document.createElement("div");document.body.appendChild(l);var u=new Le({target:l,props:{content:n,type:o,duration:i,onClose:function(){var t;null==c||c(),null==a||a(),u.$destroy(),null===(t=l.parentNode)||void 0===t||t.removeChild(l)}}})}},hideToast:function(t){ge.notifyEvent(me.ToastHide)},showLoading:function(t){if(t){var e=u.isString(t)?{content:t}:t,n=e.content,o=e.delay,r=e.success,i=e.complete,c=document.createElement("div");document.body.appendChild(c);var a=new We({target:c,props:{content:n,delay:o,onClose:function(){null==r||r(),null==i||i(),a.$destroy(),document.body.removeChild(c)}}})}},hideLoading:function(t){Be=0,ge.notifyEvent(me.LoadingHide)},getSystemInfo:function(t){se((function(){try{var e;null===(e=t.success)||void 0===e||e.call(t,Qe())}catch(e){var n;null===(n=t.fail)||void 0===n||n.call(t)}finally{var o;null===(o=t.complete)||void 0===o||o.call(t)}}))},getSystemInfoSync:function(){return Qe()},clearStorage:function(t){se((function(){try{var e;on(),null==t||null===(e=t.success)||void 0===e||e.call(t)}catch(e){var n;null==t||null===(n=t.fail)||void 0===n||n.call(t)}finally{var o;null==t||null===(o=t.complete)||void 0===o||o.call(t)}}))},clearStorageSync:on,getStorage:function(t){se((function(){try{var e,n=tn({key:t.key});null===(e=t.success)||void 0===e||e.call(t,n)}catch(e){var o;null===(o=t.fail)||void 0===o||o.call(t)}finally{var r;null===(r=t.complete)||void 0===r||r.call(t)}}))},getStorageSync:tn,removeStorage:function(t){se((function(){try{var e;nn({key:t.key}),null===(e=t.success)||void 0===e||e.call(t)}catch(e){var n;null===(n=t.fail)||void 0===n||n.call(t)}finally{var o;null===(o=t.complete)||void 0===o||o.call(t)}}))},removeStorageSync:nn,setStorage:function(t){se((function(){try{var e;en({key:t.key,data:t.data}),null===(e=t.success)||void 0===e||e.call(t)}catch(e){var n;null===(n=t.fail)||void 0===n||n.call(t)}finally{var o;null===(o=t.complete)||void 0===o||o.call(t)}}))},setStorageSync:en,getSiteInfo:function(t){var e=t.success,n=t.fail,o=t.complete;se((function(){var t=L();t&&t.length?null==e||e({siteName:t}):null==n||n(new Error("siteName is empty!")),null==o||o()}))},getAppIdSync:function(){return B()||""},getLaunchOptionsSync:function(){return _()},setNavigationBar:function(t){var e,n;null!=t.title&&(document.title=t.title),null===(e=t.success)||void 0===e||e.call(t),null===(n=t.complete)||void 0===n||n.call(t)},stopPullDownRefresh:qe("stopPullDownRefresh")};function dn(t){var e;return Object.keys(pn).indexOf(t)>=0||null!=(null===(e=window.my)||void 0===e?void 0:e[t])||null!=ze[t]}function vn(t){ln=t}function hn(){return ln}function yn(){return un||(un=function(){var e={};t(M(window.location.search)).forEach((function(t){var n=t[0],o=t[1],r=n.toLowerCase();if("query"===r)try{e.query=M(o)}catch(t){console.warn("parse query error: ",t)}else"referrerinfo"===r?e.referrerInfo=M(o):e[n]=o}));var n=window.location.hash;if(n){var o=n.indexOf("?");e.hashPath=o>0?n.substring(1,o):n.substring(1),e.hashQuery=M(n)}return e}()),un}function mn(){var t;return fn||(t=window.location.host,fn=D(t)?sn.STABLE:t.endsWith(".test.alipay.net")||"oss-local-test.marmot-cloud.com"===t?sn.TEST:t.endsWith(".alipay.net")||"oss-local-dev.marmot-cloud.com"===t?sn.STABLE:t.endsWith(".pre.ac.alipay.com")?sn.PRE:sn.PROD),fn}function gn(t){var e,n=hn();return((null==n||null===(e=n.navigateOptions)||void 0===e?void 0:e.buildNavigateToAppUrl)||A)(t)}!function(){if(window){if(window.my){var e=window.my;t(pn).forEach((function(t){var n=t[0];e[n]||(e[n]=t[1])}))}else window.my=pn;window.my.canIUse=dn}}(),function(t){t.EASYPAISA="EASYPAISA",t.TRUEMONEY="TRUEMONEY",t.KAKAOPAY="KAKAOPAY",t.BKASH="BKASH",t.ALIPAY_CN="ALIPAY_CN",t.ALIPAY_HK="ALIPAY_HK",t.ALIPAY_MO="ALIPAY_MO",t.GCASH="GCASH",t.TNG="TNG",t.DANA="DANA"}(cn||(cn={})),function(t){t.alipayhk="alipayhk",t.alipaymo="alipaymo",t.gcash="gcash",t.tngd="tngd",t.dana="dana",t.kakaopay="kakaopay"}(an||(an={})),e(rn={},cn.ALIPAY_HK,an.alipayhk),e(rn,cn.ALIPAY_MO,an.alipaymo),e(rn,cn.GCASH,an.gcash),e(rn,cn.DANA,an.dana),e(rn,cn.TNG,an.tngd),e(rn,cn.KAKAOPAY,an.kakaopay),function(t){t.STABLE="STABLE",t.TEST="TEST",t.PRE="PRE",t.PROD="PROD"}(sn||(sn={}))})(),module.exports["miniapp-web-jsapi"]=o})();
(()=>{var t={904:(t,e,n)=>{"use strict";var o=n(314).isUnitlessNumber,r=n(182),i=Array.isArray,c=Object.keys,a=/^(normal|none|(\b(url\([^)]*\)|chapter_counter|attr\([^)]*\)|(no-)?(open|close)-quote|inherit)((\b\s*)|$|\s+))+)$/;function l(t,e){return o[t]||"number"!=typeof e?"content"!==t||a.test(e)||(e="'"+e.replace(/'/g,"\\'")+"'"):e+="px",r(t)+": "+e+"; "}t.exports=function(t){var e="";if(!t||0===c(t).length)return e;for(var n=c(t),o=0,r=n.length;o<r;o++){var a=n[o],u=t[a];if(i(u))for(var s=0,f=u.length;s<f;s++)e+=l(a,u[s]);else e+=l(a,u)}return e}},314:t=>{"use strict";var e={boxFlex:!0,boxFlexGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,strokeDashoffset:!0,strokeOpacity:!0,strokeWidth:!0},n=["Webkit","ms","Moz","O"];Object.keys(e).forEach((function(t){n.forEach((function(n){e[function(t,e){return t+e.charAt(0).toUpperCase()+e.substring(1)}(n,t)]=e[t]}))}));var o={isUnitlessNumber:e,shorthandPropertyExpansions:{background:{backgroundImage:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundColor:!0},border:{borderWidth:!0,borderStyle:!0,borderColor:!0},borderBottom:{borderBottomWidth:!0,borderBottomStyle:!0,borderBottomColor:!0},borderLeft:{borderLeftWidth:!0,borderLeftStyle:!0,borderLeftColor:!0},borderRight:{borderRightWidth:!0,borderRightStyle:!0,borderRightColor:!0},borderTop:{borderTopWidth:!0,borderTopStyle:!0,borderTopColor:!0},font:{fontStyle:!0,fontVariant:!0,fontWeight:!0,fontSize:!0,lineHeight:!0,fontFamily:!0}}};t.exports=o},182:t=>{"use strict";var e=/^ms-/,n=/([A-Z])/g;t.exports=function(t){return function(t){return t.replace(n,"-$1").toLowerCase()}(t).replace(e,"-ms-")}},61:(t,e,n)=>{var o=n(698).default;function r(){"use strict";t.exports=r=function(){return e},t.exports.__esModule=!0,t.exports.default=t.exports;var e={},n=Object.prototype,i=n.hasOwnProperty,c="function"==typeof Symbol?Symbol:{},a=c.iterator||"@@iterator",l=c.asyncIterator||"@@asyncIterator",u=c.toStringTag||"@@toStringTag";function s(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,n){return t[e]=n}}function f(t,e,n,o){var r=e&&e.prototype instanceof v?e:v,i=Object.create(r.prototype),c=new S(o||[]);return i._invoke=function(t,e,n){var o="suspendedStart";return function(r,i){if("executing"===o)throw new Error("Generator is already running");if("completed"===o){if("throw"===r)throw i;return{value:void 0,done:!0}}for(n.method=r,n.arg=i;;){var c=n.delegate;if(c){var a=$(c,n);if(a){if(a===d)continue;return a}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===o)throw o="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o="executing";var l=p(t,e,n);if("normal"===l.type){if(o=n.done?"completed":"suspendedYield",l.arg===d)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o="completed",n.method="throw",n.arg=l.arg)}}}(t,n,c),i}function p(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var d={};function v(){}function h(){}function y(){}var m={};s(m,a,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(k([])));b&&b!==n&&i.call(b,a)&&(m=b);var w=y.prototype=v.prototype=Object.create(m);function x(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function n(r,c,a,l){var u=p(t[r],t,c);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==o(f)&&i.call(f,"__await")?e.resolve(f.__await).then((function(t){n("next",t,a,l)}),(function(t){n("throw",t,a,l)})):e.resolve(f).then((function(t){s.value=t,a(s)}),(function(t){return n("throw",t,a,l)}))}l(u.arg)}var r;this._invoke=function(t,o){function i(){return new e((function(e,r){n(t,o,e,r)}))}return r=r?r.then(i,i):i()}}function $(t,e){var n=t.iterator[e.method];if(void 0===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,$(t,e),"throw"===e.method))return d;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var o=p(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,d;var r=o.arg;return r?r.done?(e[t.resultName]=r.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,d):r:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function A(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function E(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(A,this),this.reset(!0)}function k(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(i.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:P}}function P(){return{value:void 0,done:!0}}return h.prototype=y,s(w,"constructor",y),s(y,"constructor",h),h.displayName=s(y,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,s(t,u,"GeneratorFunction")),t.prototype=Object.create(w),t},e.awrap=function(t){return{__await:t}},x(O.prototype),s(O.prototype,l,(function(){return this})),e.AsyncIterator=O,e.async=function(t,n,o,r,i){void 0===i&&(i=Promise);var c=new O(f(t,n,o,r),i);return e.isGeneratorFunction(n)?c:c.next().then((function(t){return t.done?t.value:c.next()}))},x(w),s(w,u,"Generator"),s(w,a,(function(){return this})),s(w,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var o=e.pop();if(o in t)return n.value=o,n.done=!1,n}return n.done=!0,n}},e.values=k,S.prototype={constructor:S,reset:function(t){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(E),!t)for(var e in this)"t"===e.charAt(0)&&i.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(n,o){return c.type="throw",c.arg=t,e.next=n,o&&(e.method="next",e.arg=void 0),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var r=this.tryEntries[o],c=r.completion;if("root"===r.tryLoc)return n("end");if(r.tryLoc<=this.prev){var a=i.call(r,"catchLoc"),l=i.call(r,"finallyLoc");if(a&&l){if(this.prev<r.catchLoc)return n(r.catchLoc,!0);if(this.prev<r.finallyLoc)return n(r.finallyLoc)}else if(a){if(this.prev<r.catchLoc)return n(r.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<r.finallyLoc)return n(r.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&i.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var r=o;break}}r&&("break"===t||"continue"===t)&&r.tryLoc<=e&&e<=r.finallyLoc&&(r=null);var c=r?r.completion:{};return c.type=t,c.arg=e,r?(this.method="next",this.next=r.finallyLoc,d):this.complete(c)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),d},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),E(n),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var o=n.completion;if("throw"===o.type){var r=o.arg;E(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:k(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports},698:t=>{function e(n){return t.exports=e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,e(n)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},687:(t,e,n)=>{var o=n(61)();t.exports=o;try{regeneratorRuntime=o}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=o:Function("r","regeneratorRuntime = r")(o)}}},e={};function n(o){var r=e[o];if(void 0!==r)return r.exports;var i=e[o]={exports:{}};return t[o](i,i.exports,n),i.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var o in e)n.o(e,o)&&!n.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var o={};(()=>{"use strict";function t(t){var e=[];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.push([n,t[n]]);return e}function e(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n.r(o),n.d(o,{AppNameEnums:()=>an,EnvironmentEnums:()=>sn,SiteNameEnums:()=>cn,buildNavigateUrl:()=>gn,createUnsupportedJsApi:()=>qe,getEnvironment:()=>mn,getWebPolyfillOptions:()=>hn,getWebQueryParams:()=>yn,initWebPolyfill:()=>vn,registerJsApiExtension:()=>Ue});const r=require("axios");var i=n.n(r);function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function l(t,e,n){return e&&a(t.prototype,e),n&&a(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}var u=function(){function e(){c(this,e)}return l(e,null,[{key:"isString",value:function(t){return"string"==typeof t}},{key:"isFunction",value:function(t){return"function"==typeof t}},{key:"isNotEmpty",value:function(t){return t&&t.length>0}},{key:"isEmpty",value:function(t){return!e.isNotEmpty(t)}},{key:"parseObjectSafe",value:function(t,e){try{return JSON.parse(t)}catch(t){console.warn("parseObjectSafe error: ",t)}return e}},{key:"encodeMap",value:function(e){if(e){var n=[];return t(e).forEach((function(t){var e=t[0],o=t[1];null!=o&&n.push("".concat(encodeURIComponent(e),"=").concat(encodeURIComponent(o)))})),n.length>0?n.join("&"):void 0}}}]),e}();function s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function f(t){for(var n=1;n<arguments.length;n++){var o=null!=arguments[n]?arguments[n]:{};n%2?s(Object(o),!0).forEach((function(n){e(t,n,o[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):s(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}var p={success:!1,errorCode:"AE15015999000001",errorMessage:"System error, please try again later"};function d(t){return t?decodeURIComponent(t):t}function v(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function h(t,e){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},h(t,e)}function y(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&h(t,e)}function m(t){return m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},m(t)}function g(t,e){if(e&&("object"===m(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return v(t)}function b(t){return b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},b(t)}function w(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function x(t,e,n){return x=w()?Reflect.construct.bind():function(t,e,n){var o=[null];o.push.apply(o,e);var r=new(Function.bind.apply(t,o));return n&&h(r,n.prototype),r},x.apply(null,arguments)}function O(t){var e="function"==typeof Map?new Map:void 0;return O=function(t){if(null===t||(n=t,-1===Function.toString.call(n).indexOf("[native code]")))return t;var n;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,o)}function o(){return x(t,arguments,b(this).constructor)}return o.prototype=Object.create(t.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),h(o,t)},O(t)}var $=function(t){y(i,t);var n,o,r=(n=i,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=b(n);if(o){var r=b(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return g(this,t)});function i(t){var n;return c(this,i),e(v(n=r.call(this,t)),"resultStatus",void 0),e(v(n),"memo",void 0),e(v(n),"tips",void 0),e(v(n),"extraMessage",void 0),e(v(n),"traceId",void 0),n}return l(i)}(O(Error));function A(t){var e,n=t.appId,o=t.path,r=t.extraData,i=t.parameters,c=window.location,a=L(),l=I();e=D(c.host)?"".concat(c.origin,"?site=").concat(a,"&app=").concat(l):"".concat(c.origin,"/page/aplus-miniapps/").concat(t.appId,"/index.html?site=").concat(a,"&app=").concat(l);var s=u.encodeMap(i);null!=s&&s.length&&(e+="&".concat(s));var f=u.encodeMap(r);null!=f&&f.length&&(e+="&query=".concat(encodeURIComponent(f)));var p,d=B();n!==d&&(p={appId:d||""});var v=u.encodeMap(p);return null!=v&&v.length&&(e+="&referrerInfo=".concat(encodeURIComponent(v))),o&&(e+="#".concat(o)),e}var E,S,k,P,j,T,R=function(t){return"".concat("alipay-mwj","-").concat(t)};function _(){return E||(E=function(){var e={};t(M(window.location.search)).forEach((function(t){var n=t[0],o=t[1],r=n.toLowerCase();if("query"===r)try{e.query=M(o)}catch(t){console.warn("parse query error: ",t)}else"referrerinfo"===r?e.referrerInfo=M(o):e[n]=o}));var n=window.location.hash;if(n){var o=n.indexOf("?");e.hashPath=o>0?n.substring(1,o):n.substring(1),e.hashQuery=M(n)}return e}()),E}!function(t){t.STABLE="STABLE",t.TEST="TEST",t.PRE="PRE",t.PROD="PROD"}(S||(S={})),function(t){t.EASYPAISA="EASYPAISA",t.TRUEMONEY="TRUEMONEY",t.KAKAOPAY="KAKAOPAY",t.BKASH="BKASH",t.ALIPAY_CN="ALIPAY_CN",t.ALIPAY_HK="ALIPAY_HK",t.ALIPAY_MO="ALIPAY_MO",t.GCASH="GCASH",t.TNG="TNG",t.DANA="DANA"}(j||(j={})),function(t){t.alipayhk="alipayhk",t.alipaymo="alipaymo",t.gcash="gcash",t.tngd="tngd",t.dana="dana",t.kakaopay="kakaopay"}(T||(T={}));var C=(e(P={},j.ALIPAY_HK,T.alipayhk),e(P,j.ALIPAY_MO,T.alipaymo),e(P,j.GCASH,T.gcash),e(P,j.DANA,T.dana),e(P,j.TNG,T.tngd),e(P,j.KAKAOPAY,T.kakaopay),P);function N(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function L(){var t=(void 0,void 0);return u.isNotEmpty(t)?t:(t=_().site,u.isNotEmpty(t)?t:void console.error("no siteName! please specify siteName in initWebPolyfill(...)"))}function I(){var t=(void 0,void 0);if(u.isNotEmpty(t))return t;if(t=_().app,u.isNotEmpty(t))return t;var e=L();if(t=C[e||""],u.isNotEmpty(t))return t;console.error("no appName! please specify appName in initWebPolyfill(...)")}function B(){var t,e=(void 0,void 0);if(u.isNotEmpty(e))return e;var n=null===(t=window.location.pathname)||void 0===t?void 0:t.match(/^\/page\/aplus-miniapps\/(\d{8,}).*/);if(2===(null==n?void 0:n.length))return n[1];console.error("no AppId! please specify AppId in initWebPolyfill(...)")}function M(t){var e,n={};if(u.isEmpty(t))return n;var o=t.indexOf("?");return o>=0&&(t=t.substring(o+1)),null===(e=t.split("&"))||void 0===e||e.forEach((function(t){var e=t.split("=");if(!(e.length<2)){var o=decodeURIComponent(e[0]);n[o]=decodeURIComponent(e[1])}})),n}function D(t){return"localhost"===t||/^localhost:[0-9]+$/.test(t)||/^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+:[0-9]+$/.test(t)}function H(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function F(t){for(var n=1;n<arguments.length;n++){var o=null!=arguments[n]?arguments[n]:{};n%2?H(Object(o),!0).forEach((function(n){e(t,n,o[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):H(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}function Y(t){var n=t.success,o=t.fail,r=t.complete,c=t.operationType,a=t.requestData,l=t.gateway,s=t.headers,v=function(){var t,n,o,r=function(t){for(var n=1;n<arguments.length;n++){var o=null!=arguments[n]?arguments[n]:{};n%2?N(Object(o),!0).forEach((function(n){e(t,n,o[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):N(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}({},void 0);return r.gatewayUrl||(r.gatewayUrl=(k||(n=window.location.host,k=D(n)?S.STABLE:n.endsWith(".test.alipay.net")||"oss-local-test.marmot-cloud.com"===n?S.TEST:n.endsWith(".alipay.net")||"oss-local-dev.marmot-cloud.com"===n?S.STABLE:n.endsWith(".pre.ac.alipay.com")?S.PRE:S.PROD),(t=k)===S.STABLE?"http://imgs-2.sggz00b.stable.alipay.net/imgw.htm":t===S.TEST?"http://imgs-ztt-0.sggz00a.test.alipay.net/mgw.htm":t===S.PRE?"https://imgs-sea-pre.alipay.com/imgw.htm":"https://imgs-ac.alipay.com/imgw.htm")),r.workspaceId||(r.gatewayUrl.indexOf("pre")>0?r.workspaceId="pre":r.workspaceId="default"),r.appId||(r.appId=(o=I())===T.alipayhk?"BE9C457241710":o===T.alipaymo?"ALIPAY_WALLET_MO":o===T.gcash?"GCASH_WALLET_PH":o===T.tngd?"TNGD_WALLET_MY":o===T.dana?"DANA_WALLET_ID":o===T.kakaopay?"KAKAOPAY_WALLET_KR":(console.error("Cannot find Rpc AppId for ".concat(o,"!")),"UNKNOWN_APP_ID")),r}(),h=F(F(F(F(F({},v.appId?{AppId:v.appId}:{}),v.workspaceId?{WorkspaceId:v.workspaceId}:{}),v.headers),s),{},e({"Operation-Type":c,"Content-Type":"application/json"},"X-CORS-".concat(v.appId,"-").concat(v.workspaceId),"1")),y=l||v.gatewayUrl,m=function(t){null==o||o(t),null==r||r()},g={method:"post",url:y,timeout:3e4,headers:h,data:a,withCredentials:!0};i()(g).then((function(t){var e=null;try{e=function(t){var e=t.headers["result-status"];if("1000"===e)return function(t){var e=t.data,n=t.headers["mgw-traceid"];if(null==e)return function(t,e,n){return f(f({},p),{},{errorMessage:u.isNotEmpty(t)?t:p.errorMessage,memo:u.isString(e)?e:"".concat(e),traceId:n})}(d(t.headers.tips),d(t.headers.memo),n);var o=null;if(u.isString(e)){if(null==(o=u.parseObjectSafe(e)))return e}else o=e;return u.isEmpty(o.traceId)&&(o.traceId=n),o}(t);throw function(t,e){var n=d(t.headers.tips),o=d(t.headers.memo),r=new $("".concat(n," - ").concat(o));return r.resultStatus=e,r.traceId=t.headers["mgw-traceid"],r.tips=n,r.memo=o,r}(t,e)}(t)}catch(t){return void m(t)}null==n||n(e),null==r||r()})).catch((function(t){m(t)}))}function K(t,e,n,o,r,i,c){try{var a=t[i](c),l=a.value}catch(t){return void n(t)}a.done?e(l):Promise.resolve(l).then(o,r)}function W(t){return function(){var e=this,n=arguments;return new Promise((function(o,r){var i=t.apply(e,n);function c(t){K(i,o,r,c,a,"next",t)}function a(t){K(i,o,r,c,a,"throw",t)}c(void 0)}))}}var z=n(687),U=n.n(z);function q(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function G(t){for(var n=1;n<arguments.length;n++){var o=null!=arguments[n]?arguments[n]:{};n%2?q(Object(o),!0).forEach((function(n){e(t,n,o[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):q(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}function V(){return(V=W(U().mark((function t(e){var n,o,r;return U().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e){t.next=2;break}return t.abrupt("return");case 2:n=function(t){if(200!==t)return 19},o=function(t){return"text"===t?"text/plain":"base64"!==t?"application/json":void 0},r={url:e.url,method:e.method,headers:G(G({},e.headers),{},{Accept:o(e.dataType)}),timeout:e.timeout,withCredentials:!0},"GET"===e.method?r.params=e.data:r.data=e.data,i().request(r).then((function(t){var o,r;null===(o=e.success)||void 0===o||o.call(e,{status:n(t.status),data:t.data,headers:t.headers}),null===(r=e.complete)||void 0===r||r.call(e,{})})).catch((function(t){var n,o;null===(n=e.fail)||void 0===n||n.call(e,t),null===(o=e.complete)||void 0===o||o.call(e,{})}));case 7:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function J(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,o=new Array(e);n<e;n++)o[n]=t[n];return o}function Q(t,e){if(t){if("string"==typeof t)return J(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?J(t,e):void 0}}function X(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var o,r,i=[],c=!0,a=!1;try{for(n=n.call(t);!(c=(o=n.next()).done)&&(i.push(o.value),!e||i.length!==e);c=!0);}catch(t){a=!0,r=t}finally{try{c||null==n.return||n.return()}finally{if(a)throw r}}return i}}(t,e)||Q(t,e)||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 Z(){}function tt(t){return t()}function et(){return Object.create(null)}function nt(t){t.forEach(tt)}function ot(t){return"function"==typeof t}function rt(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function it(t){return 0===Object.keys(t).length}function ct(t,e,n,o){return t[1]&&o?function(t,e){for(const n in e)t[n]=e[n];return t}(n.ctx.slice(),t[1](o(e))):n.ctx}function at(t){return null==t?"":t}new Set;let lt,ut=!1;function st(t,e){t.appendChild(e)}function ft(t,e,n){const o=function(t){if(!t)return document;const e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}(t);if(!o.getElementById(e)){const t=vt("style");t.id=e,t.textContent=n,function(t,e){st(t.head||t,e)}(o,t)}}function pt(t,e,n){t.insertBefore(e,n||null)}function dt(t){t.parentNode.removeChild(t)}function vt(t){return document.createElement(t)}function ht(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function yt(t){return document.createTextNode(t)}function mt(){return yt(" ")}function gt(t,e,n,o){return t.addEventListener(e,n,o),()=>t.removeEventListener(e,n,o)}function bt(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function wt(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function xt(t){lt=t}function Ot(){if(!lt)throw new Error("Function called outside component initialization");return lt}function $t(t){Ot().$$.on_mount.push(t)}new Map;const At=[],Et=[],St=[],kt=[],Pt=Promise.resolve();let jt=!1;function Tt(t){St.push(t)}const Rt=new Set;let _t=0;function Ct(){const t=lt;do{for(;_t<At.length;){const t=At[_t];_t++,xt(t),Nt(t.$$)}for(xt(null),At.length=0,_t=0;Et.length;)Et.pop()();for(let t=0;t<St.length;t+=1){const e=St[t];Rt.has(e)||(Rt.add(e),e())}St.length=0}while(At.length);for(;kt.length;)kt.pop()();jt=!1,Rt.clear(),xt(t)}function Nt(t){if(null!==t.fragment){t.update(),nt(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(Tt)}}const Lt=new Set;let It,Bt;function Mt(t,e){t&&t.i&&(Lt.delete(t),t.i(e))}function Dt(t,e,n,o){if(t&&t.o){if(Lt.has(t))return;Lt.add(t),It.c.push((()=>{Lt.delete(t),o&&(n&&t.d(1),o())})),t.o(e)}else o&&o()}function Ht(t){t&&t.c()}function Ft(t,e,n,o){const{fragment:r,on_mount:i,on_destroy:c,after_update:a}=t.$$;r&&r.m(e,n),o||Tt((()=>{const e=i.map(tt).filter(ot);c?c.push(...e):nt(e),t.$$.on_mount=[]})),a.forEach(Tt)}function Yt(t,e){const n=t.$$;null!==n.fragment&&(nt(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function Kt(t,e,n,o,r,i,c,a=[-1]){const l=lt;xt(t);const u=t.$$={fragment:null,ctx:null,props:i,update:Z,not_equal:r,bound:et(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(l?l.$$.context:[])),callbacks:et(),dirty:a,skip_bound:!1,root:e.target||l.$$.root};c&&c(u.root);let s=!1;if(u.ctx=n?n(t,e.props||{},((e,n,...o)=>{const i=o.length?o[0]:n;return u.ctx&&r(u.ctx[e],u.ctx[e]=i)&&(!u.skip_bound&&u.bound[e]&&u.bound[e](i),s&&function(t,e){-1===t.$$.dirty[0]&&(At.push(t),jt||(jt=!0,Pt.then(Ct)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}(t,e)),n})):[],u.update(),s=!0,nt(u.before_update),u.fragment=!!o&&o(u.ctx),e.target){if(e.hydrate){ut=!0;const t=(f=e.target,Array.from(f.childNodes));u.fragment&&u.fragment.l(t),t.forEach(dt)}else u.fragment&&u.fragment.c();e.intro&&Mt(t.$$.fragment),Ft(t,e.target,e.anchor,e.customElement),ut=!1,Ct()}var f;xt(l)}"undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global,new Set(["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"]),"function"==typeof HTMLElement&&(Bt=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:t}=this.$$;this.$$.on_disconnect=t.map(tt).filter(ot);for(const t in this.$$.slotted)this.appendChild(this.$$.slotted[t])}attributeChangedCallback(t,e,n){this[t]=n}disconnectedCallback(){nt(this.$$.on_disconnect)}$destroy(){Yt(this,1),this.$destroy=Z}$on(t,e){const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(e),()=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1)}}$set(t){this.$$set&&!it(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}});class Wt{$destroy(){Yt(this,1),this.$destroy=Z}$on(t,e){const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(e),()=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1)}}$set(t){this.$$set&&!it(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}var zt=n(904),Ut=n.n(zt);function qt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function Gt(t){ft(t,"svelte-1l3ztq7",".alipay-mwj-modal.svelte-1l3ztq7{width:100vw;height:100vh;position:fixed;left:0;top:0;right:0;bottom:0;display:flex;flex-direction:column;align-items:center;justify-content:center}")}function Vt(t){var e,n,o,r=t[7].default,i=function(t,e,n,o){if(t){const o=ct(t,e,n,null);return t[0](o)}}(r,t,t[6]);return{c:function(){e=vt("div"),i&&i.c(),bt(e,"class",n=at(t[0]?"".concat(t[2]," ").concat(t[0]):t[2])+" svelte-1l3ztq7"),bt(e,"style",t[1])},m:function(t,n){pt(t,e,n),i&&i.m(e,null),o=!0},p:function(t,c){var a=X(c,1)[0];i&&i.p&&(!o||64&a)&&function(t,e,n,o,r,i){if(r){const c=ct(e,n,o,i);t.p(c,r)}}(i,r,t,t[6],o?function(t,e,n,o){if(t[2]&&o){const r=t[2](o(n));if(void 0===e.dirty)return r;if("object"==typeof r){const t=[],n=Math.max(e.dirty.length,r.length);for(let o=0;o<n;o+=1)t[o]=e.dirty[o]|r[o];return t}return e.dirty|r}return e.dirty}(r,t[6],a,null):function(t){if(t.ctx.length>32){const e=[],n=t.ctx.length/32;for(let t=0;t<n;t++)e[t]=-1;return e}return-1}(t[6]),null),(!o||1&a&&n!==(n=at(t[0]?"".concat(t[2]," ").concat(t[0]):t[2])+" svelte-1l3ztq7"))&&bt(e,"class",n),(!o||2&a)&&bt(e,"style",t[1])},i:function(t){o||(Mt(i,t),o=!0)},o:function(t){Dt(i,t),o=!1},d:function(t){t&&dt(e),i&&i.d(t)}}}function Jt(t,n,o){var r,i=n.$$slots,c=void 0===i?{}:i,a=n.$$scope,l=R("modal"),u=n.duration,s=void 0===u?void 0:u,f=n.afterClose,p=void 0===f?function(){}:f,d=n.className,v=void 0===d?"":d,h=n.style,y=void 0===h?{}:h;return setTimeout((function(){s&&s>0&&p()}),s&&s>0?s:0),t.$$set=function(t){"duration"in t&&o(3,s=t.duration),"afterClose"in t&&o(4,p=t.afterClose),"className"in t&&o(0,v=t.className),"style"in t&&o(5,y=t.style),"$$scope"in t&&o(6,a=t.$$scope)},t.$$.update=function(){32&t.$$.dirty&&o(1,r=Ut()(function(t){for(var n=1;n<arguments.length;n++){var o=null!=arguments[n]?arguments[n]:{};n%2?qt(Object(o),!0).forEach((function(n){e(t,n,o[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):qt(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}({zIndex:999999},y)))},[v,r,l,s,p,y,a,c]}const Qt=function(t){y(r,t);var e,n,o=(e=r,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,o=b(e);if(n){var r=b(this).constructor;t=Reflect.construct(o,arguments,r)}else t=o.apply(this,arguments);return g(this,t)});function r(t){var e;return c(this,r),Kt(v(e=o.call(this)),t,Jt,Vt,rt,{duration:3,afterClose:4,className:0,style:5},Gt),e}return l(r)}(Wt);function Xt(t){ft(t,"svelte-1pl0sex",".alipay-mwj-alert.svelte-1pl0sex{width:100vw;height:100vh;background-color:rgba(0, 0, 0, 0.4);display:flex;flex-direction:column;align-items:center;justify-content:center}.alipay-mwj-alert-content.svelte-1pl0sex{background-color:#fff;width:270px;border-radius:7px;padding-top:15px;text-align:center;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center}.alipay-mwj-alert-title.svelte-1pl0sex{font-size:18px;color:#000;padding:6px 15px 15px;word-break:break-word}.alipay-mwj-alert-text.svelte-1pl0sex{color:#888;font-size:15px;padding:0 15px 15px;overflow:auto;word-break:break-word}.alipay-mwj-alert-line.svelte-1pl0sex{width:100%;height:1px;background-color:#eee}.alipay-mwj-alert-button.svelte-1pl0sex{color:#3F8DE2;font-size:18px;height:50px;line-height:50px}")}function Zt(t){var e,n;return{c:function(){e=vt("span"),n=yt(t[1]),bt(e,"class",t[5]+"-text svelte-1pl0sex")},m:function(t,o){pt(t,e,o),st(e,n)},p:function(t,e){2&e&&wt(n,t[1])},d:function(t){t&&dt(e)}}}function te(t){var e,n,o,r,i,c,a,l,u,s,f,p,d=(t[0]||"")+"",v=(t[2]||"OK")+"",h=t[4]&&Zt(t);return{c:function(){e=vt("div"),n=vt("div"),o=vt("span"),r=yt(d),i=mt(),h&&h.c(),c=mt(),a=vt("div"),l=mt(),u=vt("span"),s=yt(v),bt(o,"class",t[5]+"-title svelte-1pl0sex"),bt(a,"class",t[5]+"-line svelte-1pl0sex"),bt(u,"class",t[5]+"-button svelte-1pl0sex"),bt(n,"class",t[5]+"-content svelte-1pl0sex"),bt(e,"class",at(t[5])+" svelte-1pl0sex")},m:function(d,v){pt(d,e,v),st(e,n),st(n,o),st(o,r),st(n,i),h&&h.m(n,null),st(n,c),st(n,a),st(n,l),st(n,u),st(u,s),f||(p=gt(u,"click",(function(){ot(t[3])&&t[3].apply(this,arguments)})),f=!0)},p:function(e,o){t=e,1&o&&d!==(d=(t[0]||"")+"")&&wt(r,d),t[4]?h?h.p(t,o):((h=Zt(t)).c(),h.m(n,c)):h&&(h.d(1),h=null),4&o&&v!==(v=(t[2]||"OK")+"")&&wt(s,v)},d:function(t){t&&dt(e),h&&h.d(),f=!1,p()}}}function ee(t){var e,n;return e=new Qt({props:{$$slots:{default:[te]},$$scope:{ctx:t}}}),{c:function(){Ht(e.$$.fragment)},m:function(t,o){Ft(e,t,o),n=!0},p:function(t,n){var o=X(n,1)[0],r={};95&o&&(r.$$scope={dirty:o,ctx:t}),e.$set(r)},i:function(t){n||(Mt(e.$$.fragment,t),n=!0)},o:function(t){Dt(e.$$.fragment,t),n=!1},d:function(t){Yt(e,t)}}}function ne(t,e,n){var o,r=e.title,i=e.content,c=e.buttonText,a=e.onClose,l=R("alert");return t.$$set=function(t){"title"in t&&n(0,r=t.title),"content"in t&&n(1,i=t.content),"buttonText"in t&&n(2,c=t.buttonText),"onClose"in t&&n(3,a=t.onClose)},t.$$.update=function(){2&t.$$.dirty&&n(4,o=u.isNotEmpty(i))},[r,i,c,a,o,l]}const oe=function(t){y(r,t);var e,n,o=(e=r,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,o=b(e);if(n){var r=b(this).constructor;t=Reflect.construct(o,arguments,r)}else t=o.apply(this,arguments);return g(this,t)});function r(t){var e;return c(this,r),Kt(v(e=o.call(this)),t,ne,ee,rt,{title:0,content:1,buttonText:2,onClose:3},Xt),e}return l(r)}(Wt);function re(t){ft(t,"svelte-1rtcbed",".alipay-mwj-confirm.svelte-1rtcbed{width:100vw;height:100vh;background-color:rgba(0, 0, 0, 0.4);display:flex;flex-direction:column;align-items:center;justify-content:center}.alipay-mwj-confirm-content.svelte-1rtcbed{background-color:#fff;width:270px;border-radius:7px;padding-top:15px;text-align:center;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center}.alipay-mwj-confirm-title.svelte-1rtcbed{font-size:18px;color:#000;padding:6px 15px 15px}.alipay-mwj-confirm-text.svelte-1rtcbed{color:#888;font-size:15px;padding:0 15px 15px;overflow:auto;word-break:break-word}.alipay-mwj-confirm-line.svelte-1rtcbed{width:100%;height:1px;background-color:#eee}.alipay-mwj-confirm-buttonContent.svelte-1rtcbed{width:100%;display:flex;flex-direction:row;height:50px;line-height:50px;font-size:18px;align-items:center}.alipay-mwj-confirm-button.svelte-1rtcbed{flex:1;color:#3F8DE2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.alipay-mwj-confirm-cancel.svelte-1rtcbed{flex:1;color:#000;border-right:solid 1px #eee;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}")}function ie(t){var e,n;return{c:function(){e=vt("span"),n=yt(t[1]),bt(e,"class",t[6]+"-text svelte-1rtcbed")},m:function(t,o){pt(t,e,o),st(e,n)},p:function(t,e){2&e&&wt(n,t[1])},d:function(t){t&&dt(e)}}}function ce(t){var e,n,o,r,i,c,a,l,u,s,f,p,d,v,h,y,m=(t[3]||"Cancel")+"",g=(t[2]||"OK")+"",b=t[5]&&ie(t);return{c:function(){e=vt("div"),n=vt("div"),o=vt("span"),r=yt(t[0]),i=mt(),b&&b.c(),c=mt(),a=vt("div"),l=mt(),u=vt("div"),s=vt("span"),f=yt(m),p=mt(),d=vt("span"),v=yt(g),bt(o,"class",t[6]+"-title svelte-1rtcbed"),bt(a,"class",t[6]+"-line svelte-1rtcbed"),bt(s,"class",t[6]+"-cancel svelte-1rtcbed"),bt(d,"class",t[6]+"-button svelte-1rtcbed"),bt(u,"class",t[6]+"-buttonContent svelte-1rtcbed"),bt(n,"class",t[6]+"-content svelte-1rtcbed"),bt(e,"class",at(t[6])+" svelte-1rtcbed")},m:function(m,g){pt(m,e,g),st(e,n),st(n,o),st(o,r),st(n,i),b&&b.m(n,null),st(n,c),st(n,a),st(n,l),st(n,u),st(u,s),st(s,f),st(u,p),st(u,d),st(d,v),h||(y=[gt(s,"click",t[7]),gt(d,"click",t[8])],h=!0)},p:function(t,e){1&e&&wt(r,t[0]),t[5]?b?b.p(t,e):((b=ie(t)).c(),b.m(n,c)):b&&(b.d(1),b=null),8&e&&m!==(m=(t[3]||"Cancel")+"")&&wt(f,m),4&e&&g!==(g=(t[2]||"OK")+"")&&wt(v,g)},d:function(t){t&&dt(e),b&&b.d(),h=!1,nt(y)}}}function ae(t){var e,n;return e=new Qt({props:{$$slots:{default:[ce]},$$scope:{ctx:t}}}),{c:function(){Ht(e.$$.fragment)},m:function(t,o){Ft(e,t,o),n=!0},p:function(t,n){var o=X(n,1)[0],r={};575&o&&(r.$$scope={dirty:o,ctx:t}),e.$set(r)},i:function(t){n||(Mt(e.$$.fragment,t),n=!0)},o:function(t){Dt(e.$$.fragment,t),n=!1},d:function(t){Yt(e,t)}}}function le(t,e,n){var o,r=e.title,i=e.content,c=e.confirmButtonText,a=e.cancelButtonText,l=e.onClose,s=R("confirm");return t.$$set=function(t){"title"in t&&n(0,r=t.title),"content"in t&&n(1,i=t.content),"confirmButtonText"in t&&n(2,c=t.confirmButtonText),"cancelButtonText"in t&&n(3,a=t.cancelButtonText),"onClose"in t&&n(4,l=t.onClose)},t.$$.update=function(){2&t.$$.dirty&&n(5,o=u.isNotEmpty(i))},[r,i,c,a,l,o,s,function(){return l(!1)},function(){return l(!0)}]}const ue=function(t){y(r,t);var e,n,o=(e=r,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,o=b(e);if(n){var r=b(this).constructor;t=Reflect.construct(o,arguments,r)}else t=o.apply(this,arguments);return g(this,t)});function r(t){var e;return c(this,r),Kt(v(e=o.call(this)),t,le,ae,rt,{title:0,content:1,confirmButtonText:2,cancelButtonText:3,onClose:4},re),e}return l(r)}(Wt);function se(t){setTimeout(t,0)}function fe(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=b(t);if(e){var r=b(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return g(this,n)}}var pe,de=function(){function t(n){c(this,t),e(this,"elements",void 0),this.elements=n}return l(t,[{key:"map",value:function(t){return null==this.elements?null:Array.isArray(this.elements)?0===this.elements.length?null:this.elements.map(t):[this.elements].map(t)[0]}}]),t}(),ve=function(t){y(n,t);var e=fe(n);function n(){return c(this,n),e.apply(this,arguments)}return l(n,[{key:"execute",value:function(){return this.map((function(t){var e=t.getBoundingClientRect();return{width:e.width,height:e.height,top:e.top,bottom:e.bottom,left:e.left,right:e.right}}))}}]),n}(de),he=function(t){y(n,t);var e=fe(n);function n(){return c(this,n),e.apply(this,arguments)}return l(n,[{key:"execute",value:function(){return this.map((function(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}))}}]),n}(de),ye=function(t){y(n,t);var e=fe(n);function n(){return c(this,n),e.apply(this,arguments)}return l(n,[{key:"execute",value:function(){var t=document.documentElement;return{scrollLeft:(window.pageXOffset||t.scrollLeft)-(t.clientLeft||0),scrollTop:(window.pageYOffset||t.scrollTop)-(t.clientTop||0),width:Math.max(document.documentElement.clientWidth||0,window.innerWidth||0),height:Math.max(document.documentElement.clientHeight||0,window.innerHeight||0)}}}]),n}(de);!function(t){t.ToastHide="ToastHide",t.LoadingHide="LoadingHide"}(pe||(pe={}));const me=pe;var ge=new(function(){function t(n){c(this,t),e(this,"managerName",void 0),e(this,"listenersMap",{}),this.managerName=n}return l(t,[{key:"addListener",value:function(t,e){var n=this;console.log("EventManager_".concat(this.managerName,"#addListener: ").concat(t));var o=this.listenersMap[t];return o||(o=[],this.listenersMap[t]=o),o.push(e),function(){n.removeListener(t,e)}}},{key:"removeListener",value:function(t,e){if(console.log("EventManager_".concat(this.managerName,"#removeListener: ").concat(t)),e){var n=this.listenersMap[t];n&&(this.listenersMap[t]=n.filter((function(t){return t!==e})))}else this.listenersMap[t]=[]}},{key:"notifyEvent",value:function(t,e){console.log("EventManager_".concat(this.managerName,"#notifyEvent: ").concat(t," -> "),e);var n,o=this.listenersMap[t];o&&(n=o,function(t){if(Array.isArray(t))return J(t)}(n)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(n)||Q(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).forEach((function(n){return n(e,t)}))}}]),t}())("default");function be(t){var e,n,o,r;return{c:function(){e=ht("svg"),n=ht("g"),o=ht("path"),r=ht("path"),bt(o,"d","M36 72c19.882 0 36-16.118 36-36S55.882 0 36 0 0 16.118 0 36s16.118 36 36 36zm0-2c18.778 0 34-15.222 34-34S54.778 2 36 2 2 17.222 2 36s15.222 34 34 34z"),bt(o,"fill","#FFF"),bt(r,"stroke","#FFF"),bt(r,"stroke-width","2"),bt(r,"d","M19 34.54l11.545 11.923L52.815 24"),bt(n,"fill","none"),bt(n,"fill-rule","evenodd"),bt(e,"class",t[0]),bt(e,"xmlns","http://www.w3.org/2000/svg"),bt(e,"viewBox","0 0 72 72")},m:function(t,i){pt(t,e,i),st(e,n),st(n,o),st(n,r)},p:function(t,n){1&X(n,1)[0]&&bt(e,"class",t[0])},i:Z,o:Z,d:function(t){t&&dt(e)}}}function we(t,e,n){var o=e.className;return t.$$set=function(t){"className"in t&&n(0,o=t.className)},[o]}const xe=function(t){y(r,t);var e,n,o=(e=r,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,o=b(e);if(n){var r=b(this).constructor;t=Reflect.construct(o,arguments,r)}else t=o.apply(this,arguments);return g(this,t)});function r(t){var e;return c(this,r),Kt(v(e=o.call(this)),t,we,be,rt,{className:0}),e}return l(r)}(Wt);function Oe(t){var e,n,o,r;return{c:function(){e=ht("svg"),n=ht("g"),o=ht("path"),r=ht("path"),bt(o,"d","M36 72c19.882 0 36-16.118 36-36S55.882 0 36 0 0 16.118 0 36s16.118 36 36 36zm0-2c18.778 0 34-15.222 34-34S54.778 2 36 2 2 17.222 2 36s15.222 34 34 34z"),bt(o,"fill","#FFF"),bt(r,"d","M22 22l28.304 28.304m-28.304 0L50.304 22"),bt(r,"stroke","#FFF"),bt(r,"stroke-width","2"),bt(n,"fill","none"),bt(n,"fill-rule","evenodd"),bt(e,"class",t[0]),bt(e,"xmlns","http://www.w3.org/2000/svg"),bt(e,"viewBox","0 0 72 72")},m:function(t,i){pt(t,e,i),st(e,n),st(n,o),st(n,r)},p:function(t,n){1&X(n,1)[0]&&bt(e,"class",t[0])},i:Z,o:Z,d:function(t){t&&dt(e)}}}function $e(t,e,n){var o=e.className;return t.$$set=function(t){"className"in t&&n(0,o=t.className)},[o]}const Ae=function(t){y(r,t);var e,n,o=(e=r,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,o=b(e);if(n){var r=b(this).constructor;t=Reflect.construct(o,arguments,r)}else t=o.apply(this,arguments);return g(this,t)});function r(t){var e;return c(this,r),Kt(v(e=o.call(this)),t,$e,Oe,rt,{className:0}),e}return l(r)}(Wt);function Ee(t){var e,n,o,r,i;return{c:function(){e=ht("svg"),n=ht("g"),o=ht("path"),r=ht("path"),i=ht("path"),bt(o,"d","M36 72c19.882 0 36-16.118 36-36S55.882 0 36 0 0 16.118 0 36s16.118 36 36 36zm0-2c18.778 0 34-15.222 34-34S54.778 2 36 2 2 17.222 2 36s15.222 34 34 34z"),bt(o,"fill","#FFF"),bt(r,"fill","#FFF"),bt(r,"d","M47 22h2v6h-2zm-24 0h2v6h-2z"),bt(i,"d","M21 51s4.6-7 15-7 15 7 15 7"),bt(i,"stroke","#FFF"),bt(i,"stroke-width","2"),bt(n,"fill","none"),bt(n,"fill-rule","evenodd"),bt(e,"class",t[0]),bt(e,"xmlns","http://www.w3.org/2000/svg"),bt(e,"viewBox","0 0 72 72")},m:function(t,c){pt(t,e,c),st(e,n),st(n,o),st(n,r),st(n,i)},p:function(t,n){1&X(n,1)[0]&&bt(e,"class",t[0])},i:Z,o:Z,d:function(t){t&&dt(e)}}}function Se(t,e,n){var o=e.className;return t.$$set=function(t){"className"in t&&n(0,o=t.className)},[o]}const ke=function(t){y(r,t);var e,n,o=(e=r,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,o=b(e);if(n){var r=b(this).constructor;t=Reflect.construct(o,arguments,r)}else t=o.apply(this,arguments);return g(this,t)});function r(t){var e;return c(this,r),Kt(v(e=o.call(this)),t,Se,Ee,rt,{className:0}),e}return l(r)}(Wt);function Pe(t){ft(t,"svelte-1qbkkts",".alipay-mwj-toast.svelte-1qbkkts{background-color:rgba(58, 58, 58, 0.9);max-width:50%;min-width:72px;padding:15px;border-radius:5px;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center}.alipay-mwj-toast-icon.svelte-1qbkkts{width:72px;height:72px;margin-bottom:12px}.alipay-mwj-toast-text.svelte-1qbkkts{color:#fff;font-size:14px;text-align:center}")}function je(t){var e,n,o;return e=new ke({props:{className:t[4]+"-icon"}}),{c:function(){Ht(e.$$.fragment),n=yt(";")},m:function(t,r){Ft(e,t,r),pt(t,n,r),o=!0},p:Z,i:function(t){o||(Mt(e.$$.fragment,t),o=!0)},o:function(t){Dt(e.$$.fragment,t),o=!1},d:function(t){Yt(e,t),t&&dt(n)}}}function Te(t){var e,n;return e=new Ae({props:{className:t[4]+"-icon"}}),{c:function(){Ht(e.$$.fragment)},m:function(t,o){Ft(e,t,o),n=!0},p:Z,i:function(t){n||(Mt(e.$$.fragment,t),n=!0)},o:function(t){Dt(e.$$.fragment,t),n=!1},d:function(t){Yt(e,t)}}}function Re(t){var e,n;return e=new xe({props:{className:t[4]+"-icon"}}),{c:function(){Ht(e.$$.fragment)},m:function(t,o){Ft(e,t,o),n=!0},p:Z,i:function(t){n||(Mt(e.$$.fragment,t),n=!0)},o:function(t){Dt(e.$$.fragment,t),n=!1},d:function(t){Yt(e,t)}}}function _e(t){var e,n,o,r,i,c,a,l=[Re,Te,je],u=[];function s(t,e){return"success"===t[1]?0:"fail"===t[1]?1:"exception"===t[1]?2:-1}return~(n=s(t))&&(o=u[n]=l[n](t)),{c:function(){e=vt("div"),o&&o.c(),r=mt(),i=vt("span"),c=yt(t[0]),bt(i,"class",t[4]+"-text svelte-1qbkkts"),bt(e,"class",at(t[4])+" svelte-1qbkkts")},m:function(t,o){pt(t,e,o),~n&&u[n].m(e,null),st(e,r),st(e,i),st(i,c),a=!0},p:function(t,i){var f=n;(n=s(t))===f?~n&&u[n].p(t,i):(o&&(It={r:0,c:[],p:It},Dt(u[f],1,1,(function(){u[f]=null})),It.r||nt(It.c),It=It.p),~n?((o=u[n])?o.p(t,i):(o=u[n]=l[n](t)).c(),Mt(o,1),o.m(e,r)):o=null),(!a||1&i)&&wt(c,t[0])},i:function(t){a||(Mt(o),a=!0)},o:function(t){Dt(o),a=!1},d:function(t){t&&dt(e),~n&&u[n].d()}}}function Ce(t){var e,n;return e=new Qt({props:{duration:t[2],afterClose:t[3],$$slots:{default:[_e]},$$scope:{ctx:t}}}),{c:function(){Ht(e.$$.fragment)},m:function(t,o){Ft(e,t,o),n=!0},p:function(t,n){var o=X(n,1)[0],r={};4&o&&(r.duration=t[2]),8&o&&(r.afterClose=t[3]),35&o&&(r.$$scope={dirty:o,ctx:t}),e.$set(r)},i:function(t){n||(Mt(e.$$.fragment,t),n=!0)},o:function(t){Dt(e.$$.fragment,t),n=!1},d:function(t){Yt(e,t)}}}function Ne(t,e,n){var o,r=e.content,i=e.type,c=e.duration,a=e.onClose,l=R("toast");return $t((function(){ge.addListener(me.ToastHide,a)})),o=function(){ge.removeListener(me.ToastHide,a)},Ot().$$.on_destroy.push(o),t.$$set=function(t){"content"in t&&n(0,r=t.content),"type"in t&&n(1,i=t.type),"duration"in t&&n(2,c=t.duration),"onClose"in t&&n(3,a=t.onClose)},[r,i,c,a,l]}const Le=function(t){y(r,t);var e,n,o=(e=r,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,o=b(e);if(n){var r=b(this).constructor;t=Reflect.construct(o,arguments,r)}else t=o.apply(this,arguments);return g(this,t)});function r(t){var e;return c(this,r),Kt(v(e=o.call(this)),t,Ne,Ce,rt,{content:0,type:1,duration:2,onClose:3},Pe),e}return l(r)}(Wt);var Ie;!function(t){t.WEB_PAGE="WEB_PAGE",t.SCHEME="SCHEME",t.SCAN="SCAN",t.QR_PAY="QR_PAY",t.BIND_CARD="BIND_CARD",t.TOP_UP="TOP_UP"}(Ie||(Ie={}));var Be=0;function Me(t){ft(t,"svelte-1u60cs3",".alipay-mwj-loading.svelte-1u60cs3{background-color:rgba(58, 58, 58, 0.9);min-width:72px;max-width:50vw;padding:15px;border-radius:5px;box-sizing:border-box;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center}.alipay-mwj-loading-iconRoot.svelte-1u60cs3{width:34px;height:34px;border:solid 4px #888;border-radius:50%;position:relative}.alipay-mwj-loading-icon.svelte-1u60cs3{position:absolute;left:-4px;top:-4px;right:-4px;bottom:-4px;border:solid 4px #fff;border-radius:50%;-webkit-clip-path:polygon(50% 0%, 100% 0%, 100% 3600%, 50% 50%);clip-path:polygon(50% 0%, 100% 0%, 100% 3600%, 50% 50%);-webkit-animation:svelte-1u60cs3-alipay-mwj-loading-ring 1.5s cubic-bezier(0.5, 0, 0.5, 1) infinite;animation:svelte-1u60cs3-alipay-mwj-loading-ring 1.5s cubic-bezier(0.5, 0, 0.5, 1) infinite}.alipay-mwj-loading-text.svelte-1u60cs3{color:#fff;font-size:14px;text-align:center;margin-top:6px}@-webkit-keyframes svelte-1u60cs3-alipay-mwj-loading-ring{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes svelte-1u60cs3-alipay-mwj-loading-ring{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}")}function De(t){var e,n,o,r,i=t[2]&&He(t);return{c:function(){e=vt("div"),n=vt("div"),o=vt("div"),r=mt(),i&&i.c(),bt(o,"class",t[3]+"-icon svelte-1u60cs3"),bt(n,"class",t[3]+"-iconRoot svelte-1u60cs3"),bt(e,"class",at(t[3])+" svelte-1u60cs3")},m:function(t,c){pt(t,e,c),st(e,n),st(n,o),st(e,r),i&&i.m(e,null)},p:function(t,n){t[2]?i?i.p(t,n):((i=He(t)).c(),i.m(e,null)):i&&(i.d(1),i=null)},d:function(t){t&&dt(e),i&&i.d()}}}function He(t){var e,n;return{c:function(){e=vt("span"),n=yt(t[0]),bt(e,"class",t[3]+"-text svelte-1u60cs3")},m:function(t,o){pt(t,e,o),st(e,n)},p:function(t,e){1&e&&wt(n,t[0])},d:function(t){t&&dt(e)}}}function Fe(t){var e,n=t[1]&&De(t);return{c:function(){n&&n.c(),e=yt("")},m:function(t,o){n&&n.m(t,o),pt(t,e,o)},p:function(t,o){t[1]?n?n.p(t,o):((n=De(t)).c(),n.m(e.parentNode,e)):n&&(n.d(1),n=null)},d:function(t){n&&n.d(t),t&&dt(e)}}}function Ye(t){var e,n;return e=new Qt({props:{$$slots:{default:[Fe]},$$scope:{ctx:t}}}),{c:function(){Ht(e.$$.fragment)},m:function(t,o){Ft(e,t,o),n=!0},p:function(t,n){var o=X(n,1)[0],r={};71&o&&(r.$$scope={dirty:o,ctx:t}),e.$set(r)},i:function(t){n||(Mt(e.$$.fragment,t),n=!0)},o:function(t){Dt(e.$$.fragment,t),n=!1},d:function(t){Yt(e,t)}}}function Ke(t,e,n){var o,r=e.content,i=e.delay,c=e.onClose,a=!1,l=R("loading");return $t((function(){var t=ge.addListener(me.LoadingHide,(function(){c(),t()}))})),setTimeout((function(){n(1,a=++Be>0),a||console.log("my.hideLoading called before show")}),i||0),t.$$set=function(t){"content"in t&&n(0,r=t.content),"delay"in t&&n(4,i=t.delay),"onClose"in t&&n(5,c=t.onClose)},t.$$.update=function(){1&t.$$.dirty&&n(2,o=u.isNotEmpty(r))},[r,a,o,l,i,c]}const We=function(t){y(r,t);var e,n,o=(e=r,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,o=b(e);if(n){var r=b(this).constructor;t=Reflect.construct(o,arguments,r)}else t=o.apply(this,arguments);return g(this,t)});function r(t){var e;return c(this,r),Kt(v(e=o.call(this)),t,Ke,Ye,rt,{content:0,delay:4,onClose:5},Me),e}return l(r)}(Wt);var ze={};function Ue(t,e,n){n?window.my[t]=e:ze[t]=e}function qe(t,e){return function(){console.warn("** [miniapp-web-jsapi] JSAPI ".concat(t," unsupported: ").concat(e))}}const Ge=require("device-detector-js");var Ve,Je=n.n(Ge);function Qe(){var t,e,n,o,r,i;return Ve||(44,20,375,o=Math.ceil(375/window.screen.width*window.screen.height),r=I(),i=(new(Je())).parse(navigator.userAgent),Ve={platform:/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)?"iOS":/(Android)/i.test(navigator.userAgent)?"Android":"Unknown",pixelRatio:window.devicePixelRatio,windowWidth:375,windowHeight:o-44-20,titleBarHeight:44,statusBarHeight:20,screenWidth:375,screenHeight:o,currentBattery:"100%",brand:(null===(t=i.device)||void 0===t?void 0:t.brand)||"Unknown",model:(null===(e=i.device)||void 0===e?void 0:e.model)||"Unknown",version:Xe(r),storage:"",app:r||"",fontSizeSetting:16,system:(null===(n=i.os)||void 0===n?void 0:n.version)||"Unknown",language:navigator.language}),Ve}function Xe(t){if(t===T.kakaopay){var e=navigator.userAgent.match(/.+\sKT\/([0-9|.]+).*/);if(e&&e.length>=2)return e[1]}return""}var Ze=function(){function t(){c(this,t)}return l(t,null,[{key:"getKey",value:function(){return my.getAppIdSync()||"global"}},{key:"storageValue",get:function(){return this._storageValue||(this._storageValue=function(){var e=localStorage.getItem(t.getKey());if(e)try{return JSON.parse(e)}catch(t){}}()),this._storageValue||{}}},{key:"setStorage",value:function(e,n){this.storageValue[e]=n,localStorage.setItem(t.getKey(),JSON.stringify(this.storageValue))}},{key:"getStorage",value:function(t){return this.storageValue[t]}},{key:"removeStorage",value:function(e){this.storageValue[e]=void 0,localStorage.setItem(t.getKey(),JSON.stringify(this.storageValue))}},{key:"clearStorage",value:function(){this._storageValue=void 0,localStorage.setItem(t.getKey(),"{}")}}]),t}();function tn(t){var e=t.key;return{success:!0,key:e,data:Ze.getStorage(e)}}function en(t){Ze.setStorage(t.key,t.data)}function nn(t){Ze.removeStorage(t.key)}function on(){Ze.clearStorage()}e(Ze,"_storageValue",void 0);var rn,cn,an,ln,un,sn,fn,pn={alert:function(t){var e=t||{},n=e.title,o=e.content,r=e.buttonText,i=e.success,c=e.complete,a=document.createElement("div");document.body.appendChild(a);var l=new oe({target:a,props:{title:n,content:o,buttonText:r,onClose:function(){var t;null==i||i(),null==c||c(),l.$destroy(),null===(t=a.parentNode)||void 0===t||t.removeChild(a)}}})},confirm:function(t){var e=t.title,n=t.content,o=t.confirmButtonText,r=t.cancelButtonText,i=t.success,c=t.complete,a=document.createElement("div");document.body.appendChild(a);var l=new ue({target:a,props:{title:e,content:n,confirmButtonText:o,cancelButtonText:r,onClose:function(t){var e,n={ok:t,confirm:t};null==i||i(n),null==c||c(n),l.$destroy(),null===(e=a.parentNode)||void 0===e||e.removeChild(a)}}})},getLocation:function(t){var e=function(e){se((function(){var n,o,r={error:e};null===(n=t.fail)||void 0===n||n.call(t,r),null===(o=t.complete)||void 0===o||o.call(t,r)}))},n=navigator.geolocation;n?n.getCurrentPosition((function(e){var n,o,r,i,c,a,l={accuracy:"".concat(null===(n=e.coords)||void 0===n?void 0:n.accuracy),horizontalAccuracy:"".concat(null===(o=e.coords)||void 0===o?void 0:o.altitudeAccuracy),latitude:"".concat(null===(r=e.coords)||void 0===r?void 0:r.latitude),longitude:"".concat(null===(i=e.coords)||void 0===i?void 0:i.longitude)};null===(c=t.success)||void 0===c||c.call(t,l),null===(a=t.complete)||void 0===a||a.call(t,l)}),(function(t){var n=1===t.code?11:13;e(n)})):e(13)},makePhoneCall:function(t){t&&t.number&&function(t){try{var e=document.createElement("a");e.setAttribute("href",t),e.setAttribute("target","_blank");var n=document.createEvent("MouseEvents");n.initMouseEvent("click",!0,!0),e.dispatchEvent(n)}catch(e){window.open(t,"_blank")}}("tel://".concat(t.number))},getServerTime:function(t){var e=t.success,n=t.fail,o=t.complete;my.call("rpc",{operationType:"ac.mobilepayment.basic.time.tick",requestData:[{}],success:function(t){t&&t.success&&null!=t.timestamp&&t.timestamp>0?null==e||e({time:t.timestamp}):null==n||n(),null==o||o()},fail:function(t){null==n||n(),null==o||o()}})},getNetworkType:function(t){var e,n,o=navigator.connection,r=null==o?void 0:o.effectiveType;r?"slow-2g"===r&&(r="2g"):(r=(null==o?void 0:o.type)||"none",-1===["wifi","none"].indexOf(r)&&(r="unknown")),r=r.toUpperCase(),null===(e=t.success)||void 0===e||e.call(t,{networkAvailable:navigator.onLine,networkType:r}),null===(n=t.fail)||void 0===n||n.call(t)},pageScrollTo:function(t){if(t.selector){var e,n,o,r=document.querySelector(t.selector);r?(r.scrollTo(),null===(n=t.success)||void 0===n||n.call(t)):null===(o=t.fail)||void 0===o||o.call(t),null===(e=t.complete)||void 0===e||e.call(t)}else if(null!=t.scrollTop)window.scrollTo({top:t.scrollTop,behavior:"smooth"});else{var i,c;null===(i=t.fail)||void 0===i||i.call(t),null===(c=t.complete)||void 0===c||c.call(t)}},createSelectorQuery:function(t){var e,n=[],o=!1,r=function(t){o?n.push(new ye):n.push(new t(e)),o=!1,e=null},i={boundingClientRect:function(){return r(ve),c},scrollOffset:function(){return r(he),c}},c={select:function(t){return e=document.querySelector(t),i},selectAll:function(t){var n=document.querySelectorAll(t);if(n){var o=[];null==n||n.forEach((function(t){return o.push(t)})),e=o}else e=null;return i},selectViewport:function(){return o=!0,i},exec:function(t){t(n.map((function(t){return t.execute()})))}};return c},navigateToBizScene:function(t){var e=t.sceneCode,n=t.param,o=t.success,r=t.fail,i=function(){null==o||o()},c=function(t){null==r||r(t)};switch(e){case Ie.WEB_PAGE:var a=n;u.isNotEmpty(a.url)?(window.open(a.url),i()):c({errorCode:"PARAM_ILLEGAL",errorMessage:"url is empty"});break;case Ie.SCHEME:var l=n;u.isNotEmpty(l.scheme)?(window.open(l.scheme),i()):c({errorCode:"PARAM_ILLEGAL",errorMessage:"scheme is empty"});break;default:return void c({errorCode:"UNKNOWN",errorMessage:"not implemented for this sceneCode"})}},navigateToMiniProgram:function(t){var e=t.success,n=(t.fail,t.complete);window.location.href=function(t){return A(t)}(t),null==e||e({}),null==n||n({})},request:function(t){return V.apply(this,arguments)},call:function(t,e){var n,o,r=ze[t];return r?r.call(void 0,e):(r=window.my?window.my[t]:void 0,u.isFunction(r)?r.call(void 0,e):(console.error("** JSAPI ".concat(t," not exists!")),null==e||null===(n=e.fail)||void 0===n||n.call(e,new Error("".concat(t," is not exists"))),void(null==e||null===(o=e.complete)||void 0===o||o.call(e,{}))))},rpc:function(t){var e=(void 0,void 0);if(e&&e.onRpcError){var n=t.fail,o=e.onRpcError;t.fail=function(e){o(e,{notifyFail:function(t){null==n||n(t)},resend:function(){t.fail=n,Y(t)}})}}e&&e.onBeforeSendRpc&&e.onBeforeSendRpc(t)||Y(t)},setClipboard:function(t){var e,n;if(!t.text)return null===(e=t.fail)||void 0===e||e.call(t),void(null===(n=t.complete)||void 0===n||n.call(t,{success:!1}));var o,r,i,c,a=document.createElement("input");document.body.appendChild(a),a.setAttribute("readonly","readonly"),a.setAttribute("value",t.text),a.setSelectionRange(0,t.text.length),a.focus(),a.select(),document.execCommand("copy")?(null===(o=t.success)||void 0===o||o.call(t,{success:!0}),null===(r=t.complete)||void 0===r||r.call(t,{success:!0})):(null===(i=t.fail)||void 0===i||i.call(t),null===(c=t.complete)||void 0===c||c.call(t,{success:!1})),document.body.removeChild(a)},getClipboard:function(t){var e;null===(e=t.fail)||void 0===e||e.call(t)},showToast:function(t){var e=t||{},n=e.content,o=e.type,r=e.duration,i=void 0===r?2e3:r,c=e.success,a=e.complete;if(n){var l=document.createElement("div");document.body.appendChild(l);var u=new Le({target:l,props:{content:n,type:o,duration:i,onClose:function(){var t;null==c||c(),null==a||a(),u.$destroy(),null===(t=l.parentNode)||void 0===t||t.removeChild(l)}}})}},hideToast:function(t){ge.notifyEvent(me.ToastHide)},showLoading:function(t){if(t){var e=u.isString(t)?{content:t}:t,n=e.content,o=e.delay,r=e.success,i=e.complete,c=document.createElement("div");document.body.appendChild(c);var a=new We({target:c,props:{content:n,delay:o,onClose:function(){null==r||r(),null==i||i(),a.$destroy(),document.body.removeChild(c)}}})}},hideLoading:function(t){Be=0,ge.notifyEvent(me.LoadingHide)},getSystemInfo:function(t){se((function(){try{var e;null===(e=t.success)||void 0===e||e.call(t,Qe())}catch(e){var n;null===(n=t.fail)||void 0===n||n.call(t)}finally{var o;null===(o=t.complete)||void 0===o||o.call(t)}}))},getSystemInfoSync:function(){return Qe()},clearStorage:function(t){se((function(){try{var e;on(),null==t||null===(e=t.success)||void 0===e||e.call(t)}catch(e){var n;null==t||null===(n=t.fail)||void 0===n||n.call(t)}finally{var o;null==t||null===(o=t.complete)||void 0===o||o.call(t)}}))},clearStorageSync:on,getStorage:function(t){se((function(){try{var e,n=tn({key:t.key});null===(e=t.success)||void 0===e||e.call(t,n)}catch(e){var o;null===(o=t.fail)||void 0===o||o.call(t)}finally{var r;null===(r=t.complete)||void 0===r||r.call(t)}}))},getStorageSync:tn,removeStorage:function(t){se((function(){try{var e;nn({key:t.key}),null===(e=t.success)||void 0===e||e.call(t)}catch(e){var n;null===(n=t.fail)||void 0===n||n.call(t)}finally{var o;null===(o=t.complete)||void 0===o||o.call(t)}}))},removeStorageSync:nn,setStorage:function(t){se((function(){try{var e;en({key:t.key,data:t.data}),null===(e=t.success)||void 0===e||e.call(t)}catch(e){var n;null===(n=t.fail)||void 0===n||n.call(t)}finally{var o;null===(o=t.complete)||void 0===o||o.call(t)}}))},setStorageSync:en,getSiteInfo:function(t){var e=t.success,n=t.fail,o=t.complete;se((function(){var t=L();t&&t.length?null==e||e({siteName:t}):null==n||n(new Error("siteName is empty!")),null==o||o()}))},getAppIdSync:function(){return B()||""},getLaunchOptionsSync:function(){return _()},setNavigationBar:function(t){var e,n;null!=t.title&&(document.title=t.title),null===(e=t.success)||void 0===e||e.call(t),null===(n=t.complete)||void 0===n||n.call(t)},stopPullDownRefresh:qe("stopPullDownRefresh")};function dn(t){var e;return Object.keys(pn).indexOf(t)>=0||null!=(null===(e=window.my)||void 0===e?void 0:e[t])||null!=ze[t]}function vn(t){ln=t}function hn(){return ln}function yn(){return un||(un=function(){var e={};t(M(window.location.search)).forEach((function(t){var n=t[0],o=t[1],r=n.toLowerCase();if("query"===r)try{e.query=M(o)}catch(t){console.warn("parse query error: ",t)}else"referrerinfo"===r?e.referrerInfo=M(o):e[n]=o}));var n=window.location.hash;if(n){var o=n.indexOf("?");e.hashPath=o>0?n.substring(1,o):n.substring(1),e.hashQuery=M(n)}return e}()),un}function mn(){var t;return fn||(t=window.location.host,fn=D(t)?sn.STABLE:t.endsWith(".test.alipay.net")||"oss-local-test.marmot-cloud.com"===t?sn.TEST:t.endsWith(".alipay.net")||"oss-local-dev.marmot-cloud.com"===t?sn.STABLE:t.endsWith(".pre.ac.alipay.com")?sn.PRE:sn.PROD),fn}function gn(t){var e,n=hn();return((null==n||null===(e=n.navigateOptions)||void 0===e?void 0:e.buildNavigateToAppUrl)||A)(t)}!function(){if(window){if(window.my){var e=window.my;t(pn).forEach((function(t){var n=t[0];e[n]||(e[n]=t[1])}))}else window.my=pn;window.my.canIUse=dn}}(),function(t){t.EASYPAISA="EASYPAISA",t.TRUEMONEY="TRUEMONEY",t.KAKAOPAY="KAKAOPAY",t.BKASH="BKASH",t.ALIPAY_CN="ALIPAY_CN",t.ALIPAY_HK="ALIPAY_HK",t.ALIPAY_MO="ALIPAY_MO",t.GCASH="GCASH",t.TNG="TNG",t.DANA="DANA"}(cn||(cn={})),function(t){t.alipayhk="alipayhk",t.alipaymo="alipaymo",t.gcash="gcash",t.tngd="tngd",t.dana="dana",t.kakaopay="kakaopay"}(an||(an={})),e(rn={},cn.ALIPAY_HK,an.alipayhk),e(rn,cn.ALIPAY_MO,an.alipaymo),e(rn,cn.GCASH,an.gcash),e(rn,cn.DANA,an.dana),e(rn,cn.TNG,an.tngd),e(rn,cn.KAKAOPAY,an.kakaopay),function(t){t.STABLE="STABLE",t.TEST="TEST",t.PRE="PRE",t.PROD="PROD"}(sn||(sn={}))})(),module.exports["miniapp-web-jsapi"]=o})();
//# sourceMappingURL=index.js.map
{
"name": "miniapp-web-jsapi",
"version": "2.4.0-alpha.2",
"version": "2.4.0-alpha.4",
"description": "JSAPI/View adapter for miniprogram running on the web",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -55,3 +55,4 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";

}),
timeout: options.timeout
timeout: options.timeout,
withCredentials: true
};

@@ -58,0 +59,0 @@

{
"name": "miniapp-web-jsapi",
"version": "2.4.0-alpha.3",
"version": "2.4.0",
"description": "JSAPI/View adapter for miniprogram running on the web",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc