hylid-bridge 4.0.4 → 4.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2 +1,2 @@
1
1
  /*! For license information please see web_alipay.js.LICENSE.txt */
2
- !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.my=e():t.my=e()}(self,(()=>(()=>{var t={7359:function(t,e,n){var r;t.exports=(r=r||function(t){var e;if("undefined"!=typeof window&&window.crypto&&(e=window.crypto),"undefined"!=typeof self&&self.crypto&&(e=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(e=globalThis.crypto),!e&&"undefined"!=typeof window&&window.msCrypto&&(e=window.msCrypto),!e&&void 0!==n.g&&n.g.crypto&&(e=n.g.crypto),!e)try{e=n(633)}catch(t){}var r=function(){if(e){if("function"==typeof e.getRandomValues)try{return e.getRandomValues(new Uint32Array(1))[0]}catch(t){}if("function"==typeof e.randomBytes)try{return e.randomBytes(4).readInt32LE()}catch(t){}}throw new Error("Native crypto module could not be used to get secure random number.")},o=Object.create||function(){function t(){}return function(e){var n;return t.prototype=e,n=new t,t.prototype=null,n}}(),i={},a=i.lib={},c=a.Base={extend:function(t){var e=o(this);return t&&e.mixIn(t),e.hasOwnProperty("init")&&this.init!==e.init||(e.init=function(){e.$super.init.apply(this,arguments)}),e.init.prototype=e,e.$super=this,e},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}},s=a.WordArray=c.extend({init:function(t,e){t=this.words=t||[],this.sigBytes=null!=e?e:4*t.length},toString:function(t){return(t||p).stringify(this)},concat:function(t){var e=this.words,n=t.words,r=this.sigBytes,o=t.sigBytes;if(this.clamp(),r%4)for(var i=0;i<o;i++){var a=n[i>>>2]>>>24-i%4*8&255;e[r+i>>>2]|=a<<24-(r+i)%4*8}else for(var c=0;c<o;c+=4)e[r+c>>>2]=n[c>>>2];return this.sigBytes+=o,this},clamp:function(){var e=this.words,n=this.sigBytes;e[n>>>2]&=4294967295<<32-n%4*8,e.length=t.ceil(n/4)},clone:function(){var t=c.clone.call(this);return t.words=this.words.slice(0),t},random:function(t){for(var e=[],n=0;n<t;n+=4)e.push(r());return new s.init(e,t)}}),u=i.enc={},p=u.Hex={stringify:function(t){for(var e=t.words,n=t.sigBytes,r=[],o=0;o<n;o++){var i=e[o>>>2]>>>24-o%4*8&255;r.push((i>>>4).toString(16)),r.push((15&i).toString(16))}return r.join("")},parse:function(t){for(var e=t.length,n=[],r=0;r<e;r+=2)n[r>>>3]|=parseInt(t.substr(r,2),16)<<24-r%8*4;return new s.init(n,e/2)}},l=u.Latin1={stringify:function(t){for(var e=t.words,n=t.sigBytes,r=[],o=0;o<n;o++){var i=e[o>>>2]>>>24-o%4*8&255;r.push(String.fromCharCode(i))}return r.join("")},parse:function(t){for(var e=t.length,n=[],r=0;r<e;r++)n[r>>>2]|=(255&t.charCodeAt(r))<<24-r%4*8;return new s.init(n,e)}},f=u.Utf8={stringify:function(t){try{return decodeURIComponent(escape(l.stringify(t)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(t){return l.parse(unescape(encodeURIComponent(t)))}},h=a.BufferedBlockAlgorithm=c.extend({reset:function(){this._data=new s.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=f.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(e){var n,r=this._data,o=r.words,i=r.sigBytes,a=this.blockSize,c=i/(4*a),u=(c=e?t.ceil(c):t.max((0|c)-this._minBufferSize,0))*a,p=t.min(4*u,i);if(u){for(var l=0;l<u;l+=a)this._doProcessBlock(o,l);n=o.splice(0,u),r.sigBytes-=p}return new s.init(n,p)},clone:function(){var t=c.clone.call(this);return t._data=this._data.clone(),t},_minBufferSize:0}),d=(a.Hasher=h.extend({cfg:c.extend(),init:function(t){this.cfg=this.cfg.extend(t),this.reset()},reset:function(){h.reset.call(this),this._doReset()},update:function(t){return this._append(t),this._process(),this},finalize:function(t){return t&&this._append(t),this._doFinalize()},blockSize:16,_createHelper:function(t){return function(e,n){return new t.init(n).finalize(e)}},_createHmacHelper:function(t){return function(e,n){return new d.HMAC.init(t,n).finalize(e)}}}),i.algo={});return i}(Math),r)},9174:function(t,e,n){var r;t.exports=(r=n(7359),function(t){var e=r,n=e.lib,o=n.WordArray,i=n.Hasher,a=e.algo,c=[];!function(){for(var e=0;e<64;e++)c[e]=4294967296*t.abs(t.sin(e+1))|0}();var s=a.MD5=i.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(t,e){for(var n=0;n<16;n++){var r=e+n,o=t[r];t[r]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8)}var i=this._hash.words,a=t[e+0],s=t[e+1],h=t[e+2],d=t[e+3],y=t[e+4],v=t[e+5],g=t[e+6],m=t[e+7],b=t[e+8],I=t[e+9],O=t[e+10],P=t[e+11],w=t[e+12],A=t[e+13],E=t[e+14],_=t[e+15],S=i[0],x=i[1],k=i[2],C=i[3];S=u(S,x,k,C,a,7,c[0]),C=u(C,S,x,k,s,12,c[1]),k=u(k,C,S,x,h,17,c[2]),x=u(x,k,C,S,d,22,c[3]),S=u(S,x,k,C,y,7,c[4]),C=u(C,S,x,k,v,12,c[5]),k=u(k,C,S,x,g,17,c[6]),x=u(x,k,C,S,m,22,c[7]),S=u(S,x,k,C,b,7,c[8]),C=u(C,S,x,k,I,12,c[9]),k=u(k,C,S,x,O,17,c[10]),x=u(x,k,C,S,P,22,c[11]),S=u(S,x,k,C,w,7,c[12]),C=u(C,S,x,k,A,12,c[13]),k=u(k,C,S,x,E,17,c[14]),S=p(S,x=u(x,k,C,S,_,22,c[15]),k,C,s,5,c[16]),C=p(C,S,x,k,g,9,c[17]),k=p(k,C,S,x,P,14,c[18]),x=p(x,k,C,S,a,20,c[19]),S=p(S,x,k,C,v,5,c[20]),C=p(C,S,x,k,O,9,c[21]),k=p(k,C,S,x,_,14,c[22]),x=p(x,k,C,S,y,20,c[23]),S=p(S,x,k,C,I,5,c[24]),C=p(C,S,x,k,E,9,c[25]),k=p(k,C,S,x,d,14,c[26]),x=p(x,k,C,S,b,20,c[27]),S=p(S,x,k,C,A,5,c[28]),C=p(C,S,x,k,h,9,c[29]),k=p(k,C,S,x,m,14,c[30]),S=l(S,x=p(x,k,C,S,w,20,c[31]),k,C,v,4,c[32]),C=l(C,S,x,k,b,11,c[33]),k=l(k,C,S,x,P,16,c[34]),x=l(x,k,C,S,E,23,c[35]),S=l(S,x,k,C,s,4,c[36]),C=l(C,S,x,k,y,11,c[37]),k=l(k,C,S,x,m,16,c[38]),x=l(x,k,C,S,O,23,c[39]),S=l(S,x,k,C,A,4,c[40]),C=l(C,S,x,k,a,11,c[41]),k=l(k,C,S,x,d,16,c[42]),x=l(x,k,C,S,g,23,c[43]),S=l(S,x,k,C,I,4,c[44]),C=l(C,S,x,k,w,11,c[45]),k=l(k,C,S,x,_,16,c[46]),S=f(S,x=l(x,k,C,S,h,23,c[47]),k,C,a,6,c[48]),C=f(C,S,x,k,m,10,c[49]),k=f(k,C,S,x,E,15,c[50]),x=f(x,k,C,S,v,21,c[51]),S=f(S,x,k,C,w,6,c[52]),C=f(C,S,x,k,d,10,c[53]),k=f(k,C,S,x,O,15,c[54]),x=f(x,k,C,S,s,21,c[55]),S=f(S,x,k,C,b,6,c[56]),C=f(C,S,x,k,_,10,c[57]),k=f(k,C,S,x,g,15,c[58]),x=f(x,k,C,S,A,21,c[59]),S=f(S,x,k,C,y,6,c[60]),C=f(C,S,x,k,P,10,c[61]),k=f(k,C,S,x,h,15,c[62]),x=f(x,k,C,S,I,21,c[63]),i[0]=i[0]+S|0,i[1]=i[1]+x|0,i[2]=i[2]+k|0,i[3]=i[3]+C|0},_doFinalize:function(){var e=this._data,n=e.words,r=8*this._nDataBytes,o=8*e.sigBytes;n[o>>>5]|=128<<24-o%32;var i=t.floor(r/4294967296),a=r;n[15+(o+64>>>9<<4)]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),n[14+(o+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),e.sigBytes=4*(n.length+1),this._process();for(var c=this._hash,s=c.words,u=0;u<4;u++){var p=s[u];s[u]=16711935&(p<<8|p>>>24)|4278255360&(p<<24|p>>>8)}return c},clone:function(){var t=i.clone.call(this);return t._hash=this._hash.clone(),t}});function u(t,e,n,r,o,i,a){var c=t+(e&n|~e&r)+o+a;return(c<<i|c>>>32-i)+e}function p(t,e,n,r,o,i,a){var c=t+(e&r|n&~r)+o+a;return(c<<i|c>>>32-i)+e}function l(t,e,n,r,o,i,a){var c=t+(e^n^r)+o+a;return(c<<i|c>>>32-i)+e}function f(t,e,n,r,o,i,a){var c=t+(n^(e|~r))+o+a;return(c<<i|c>>>32-i)+e}e.MD5=i._createHelper(s),e.HmacMD5=i._createHmacHelper(s)}(Math),r.MD5)},5554:t=>{"use strict";var e="%[a-f0-9]{2}",n=new RegExp("("+e+")|([^%]+?)","gi"),r=new RegExp("("+e+")+","gi");function o(t,e){try{return[decodeURIComponent(t.join(""))]}catch(t){}if(1===t.length)return t;e=e||1;var n=t.slice(0,e),r=t.slice(e);return Array.prototype.concat.call([],o(n),o(r))}function i(t){try{return decodeURIComponent(t)}catch(i){for(var e=t.match(n)||[],r=1;r<e.length;r++)e=(t=o(e,r).join("")).match(n)||[];return t}}t.exports=function(t){if("string"!=typeof t)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof t+"`");try{return t=t.replace(/\+/g," "),decodeURIComponent(t)}catch(e){return function(t){for(var e={"%FE%FF":"��","%FF%FE":"��"},n=r.exec(t);n;){try{e[n[0]]=decodeURIComponent(n[0])}catch(t){var o=i(n[0]);o!==n[0]&&(e[n[0]]=o)}n=r.exec(t)}e["%C2"]="�";for(var a=Object.keys(e),c=0;c<a.length;c++){var s=a[c];t=t.replace(new RegExp(s,"g"),e[s])}return t}(t)}}},3563:(t,e,n)=>{"use strict";function r(t){return r="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},r(t)}n(6635);var o=n(5554);function i(t,e){if("string"!=typeof t||"string"!=typeof e)throw new TypeError("Expected the arguments to be of type `string`");if(""===e)return[t];var n=t.indexOf(e);return-1===n?[t]:[t.slice(0,n),t.slice(n+e.length)]}function a(t,e){return e.decode?o(t):t}function c(t){return Array.isArray(t)?t.sort():"object"===r(t)?c(Object.keys(t)).sort((function(t,e){return Number(t)-Number(e)})).map((function(e){return t[e]})):t}function s(t,e){return e.parseNumbers&&!Number.isNaN(Number(t))&&"string"==typeof t&&""!==t.trim()?t=Number(t):!e.parseBooleans||null===t||"true"!==t.toLowerCase()&&"false"!==t.toLowerCase()||(t="true"===t.toLowerCase()),t}e.Qc=function(t,e){var n=function(t){var e;switch(t.arrayFormat){case"index":return function(t,n,r){e=/\[(\d*)\]$/.exec(t),t=t.replace(/\[\d*\]$/,""),e?(void 0===r[t]&&(r[t]={}),r[t][e[1]]=n):r[t]=n};case"bracket":return function(t,n,r){e=/(\[\])$/.exec(t),t=t.replace(/\[\]$/,""),e?void 0!==r[t]?r[t]=[].concat(r[t],n):r[t]=[n]:r[t]=n};case"comma":return function(t,e,n){var r="string"==typeof e&&e.split("").indexOf(",")>-1?e.split(","):e;n[t]=r};default:return function(t,e,n){void 0!==n[t]?n[t]=[].concat(n[t],e):n[t]=e}}}(e=Object.assign({decode:!0,sort:!0,arrayFormat:"none",parseNumbers:!1,parseBooleans:!1},e)),o=Object.create(null);if("string"!=typeof t)return o;if(!(t=t.trim().replace(/^[?#&]/,"")))return o;var u,p,l=!0,f=!1,h=void 0;try{for(var d,y=t.split("&")[Symbol.iterator]();!(l=(d=y.next()).done);l=!0){var v=(u=i(d.value.replace(/\+/g," "),"="),p=2,function(t){if(Array.isArray(t))return t}(u)||function(t,e){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=t[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}}(u,p)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()),g=v[0];I=void 0===(I=v[1])?null:a(I,e),n(a(g,e),I,o)}}catch(t){f=!0,h=t}finally{try{l||null==y.return||y.return()}finally{if(f)throw h}}for(var m=0,b=Object.keys(o);m<b.length;m++){var I;if(g=b[m],"object"===r(I=o[g])&&null!==I)for(var O=0,P=Object.keys(I);O<P.length;O++){var w=P[O];I[w]=s(I[w],e)}else o[g]=s(I,e)}return!1===e.sort?o:(!0===e.sort?Object.keys(o).sort():Object.keys(o).sort(e.sort)).reduce((function(t,e){var n=o[e];return Boolean(n)&&"object"===r(n)&&!Array.isArray(n)?t[e]=c(n):t[e]=n,t}),Object.create(null))}},6635:t=>{"use strict";t.exports=function(t){return encodeURIComponent(t).replace(/[!'()*]/g,(function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()}))}},7375:(t,e)=>{"use strict";var n=Object.prototype.hasOwnProperty;function r(t){try{return decodeURIComponent(t.replace(/\+/g," "))}catch(t){return null}}function o(t){try{return encodeURIComponent(t)}catch(t){return null}}e.stringify=function(t,e){e=e||"";var r,i,a=[];for(i in"string"!=typeof e&&(e="?"),t)if(n.call(t,i)){if((r=t[i])||null!=r&&!isNaN(r)||(r=""),i=o(i),r=o(r),null===i||null===r)continue;a.push(i+"="+r)}return a.length?e+a.join("&"):""},e.parse=function(t){for(var e,n=/([^=?#&]+)=?([^&]*)/g,o={};e=n.exec(t);){var i=r(e[1]),a=r(e[2]);null===i||null===a||i in o||(o[i]=a)}return o}},7245:t=>{"use strict";t.exports=function(t,e){if(e=e.split(":")[0],!(t=+t))return!1;switch(e){case"http":case"ws":return 80!==t;case"https":case"wss":return 443!==t;case"ftp":return 21!==t;case"gopher":return 70!==t;case"file":return!1}return 0!==t}},5731:(t,e,n)=>{"use strict";var r=n(7245),o=n(7375),i=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,a=/[\n\r\t]/g,c=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,s=/:\d+$/,u=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,p=/^[a-zA-Z]:/;function l(t){return(t||"").toString().replace(i,"")}var f=[["#","hash"],["?","query"],function(t,e){return y(e.protocol)?t.replace(/\\/g,"/"):t},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d*)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],h={hash:1,query:1};function d(t){var e,r=("undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{}).location||{},o={},i=typeof(t=t||r);if("blob:"===t.protocol)o=new g(unescape(t.pathname),{});else if("string"===i)for(e in o=new g(t,{}),h)delete o[e];else if("object"===i){for(e in t)e in h||(o[e]=t[e]);void 0===o.slashes&&(o.slashes=c.test(t.href))}return o}function y(t){return"file:"===t||"ftp:"===t||"http:"===t||"https:"===t||"ws:"===t||"wss:"===t}function v(t,e){t=(t=l(t)).replace(a,""),e=e||{};var n,r=u.exec(t),o=r[1]?r[1].toLowerCase():"",i=!!r[2],c=!!r[3],s=0;return i?c?(n=r[2]+r[3]+r[4],s=r[2].length+r[3].length):(n=r[2]+r[4],s=r[2].length):c?(n=r[3]+r[4],s=r[3].length):n=r[4],"file:"===o?s>=2&&(n=n.slice(2)):y(o)?n=r[4]:o?i&&(n=n.slice(2)):s>=2&&y(e.protocol)&&(n=r[4]),{protocol:o,slashes:i||y(o),slashesCount:s,rest:n}}function g(t,e,n){if(t=(t=l(t)).replace(a,""),!(this instanceof g))return new g(t,e,n);var i,c,s,u,h,m,b=f.slice(),I=typeof e,O=this,P=0;for("object"!==I&&"string"!==I&&(n=e,e=null),n&&"function"!=typeof n&&(n=o.parse),i=!(c=v(t||"",e=d(e))).protocol&&!c.slashes,O.slashes=c.slashes||i&&e.slashes,O.protocol=c.protocol||e.protocol||"",t=c.rest,("file:"===c.protocol&&(2!==c.slashesCount||p.test(t))||!c.slashes&&(c.protocol||c.slashesCount<2||!y(O.protocol)))&&(b[3]=[/(.*)/,"pathname"]);P<b.length;P++)"function"!=typeof(u=b[P])?(s=u[0],m=u[1],s!=s?O[m]=t:"string"==typeof s?~(h="@"===s?t.lastIndexOf(s):t.indexOf(s))&&("number"==typeof u[2]?(O[m]=t.slice(0,h),t=t.slice(h+u[2])):(O[m]=t.slice(h),t=t.slice(0,h))):(h=s.exec(t))&&(O[m]=h[1],t=t.slice(0,h.index)),O[m]=O[m]||i&&u[3]&&e[m]||"",u[4]&&(O[m]=O[m].toLowerCase())):t=u(t,O);n&&(O.query=n(O.query)),i&&e.slashes&&"/"!==O.pathname.charAt(0)&&(""!==O.pathname||""!==e.pathname)&&(O.pathname=function(t,e){if(""===t)return e;for(var n=(e||"/").split("/").slice(0,-1).concat(t.split("/")),r=n.length,o=n[r-1],i=!1,a=0;r--;)"."===n[r]?n.splice(r,1):".."===n[r]?(n.splice(r,1),a++):a&&(0===r&&(i=!0),n.splice(r,1),a--);return i&&n.unshift(""),"."!==o&&".."!==o||n.push(""),n.join("/")}(O.pathname,e.pathname)),"/"!==O.pathname.charAt(0)&&y(O.protocol)&&(O.pathname="/"+O.pathname),r(O.port,O.protocol)||(O.host=O.hostname,O.port=""),O.username=O.password="",O.auth&&(~(h=O.auth.indexOf(":"))?(O.username=O.auth.slice(0,h),O.username=encodeURIComponent(decodeURIComponent(O.username)),O.password=O.auth.slice(h+1),O.password=encodeURIComponent(decodeURIComponent(O.password))):O.username=encodeURIComponent(decodeURIComponent(O.auth)),O.auth=O.password?O.username+":"+O.password:O.username),O.origin="file:"!==O.protocol&&y(O.protocol)&&O.host?O.protocol+"//"+O.host:"null",O.href=O.toString()}g.prototype={set:function(t,e,n){var i=this;switch(t){case"query":"string"==typeof e&&e.length&&(e=(n||o.parse)(e)),i[t]=e;break;case"port":i[t]=e,r(e,i.protocol)?e&&(i.host=i.hostname+":"+e):(i.host=i.hostname,i[t]="");break;case"hostname":i[t]=e,i.port&&(e+=":"+i.port),i.host=e;break;case"host":i[t]=e,s.test(e)?(e=e.split(":"),i.port=e.pop(),i.hostname=e.join(":")):(i.hostname=e,i.port="");break;case"protocol":i.protocol=e.toLowerCase(),i.slashes=!n;break;case"pathname":case"hash":if(e){var a="pathname"===t?"/":"#";i[t]=e.charAt(0)!==a?a+e:e}else i[t]=e;break;case"username":case"password":i[t]=encodeURIComponent(e);break;case"auth":var c=e.indexOf(":");~c?(i.username=e.slice(0,c),i.username=encodeURIComponent(decodeURIComponent(i.username)),i.password=e.slice(c+1),i.password=encodeURIComponent(decodeURIComponent(i.password))):i.username=encodeURIComponent(decodeURIComponent(e))}for(var u=0;u<f.length;u++){var p=f[u];p[4]&&(i[p[1]]=i[p[1]].toLowerCase())}return i.auth=i.password?i.username+":"+i.password:i.username,i.origin="file:"!==i.protocol&&y(i.protocol)&&i.host?i.protocol+"//"+i.host:"null",i.href=i.toString(),i},toString:function(t){t&&"function"==typeof t||(t=o.stringify);var e,n=this,r=n.host,i=n.protocol;i&&":"!==i.charAt(i.length-1)&&(i+=":");var a=i+(n.protocol&&n.slashes||y(n.protocol)?"//":"");return n.username?(a+=n.username,n.password&&(a+=":"+n.password),a+="@"):n.password?(a+=":"+n.password,a+="@"):"file:"!==n.protocol&&y(n.protocol)&&!r&&"/"!==n.pathname&&(a+="@"),(":"===r[r.length-1]||s.test(n.hostname)&&!n.port)&&(r+=":"),a+=r+n.pathname,(e="object"==typeof n.query?t(n.query):n.query)&&(a+="?"!==e.charAt(0)?"?"+e:e),n.hash&&(a+=n.hash),a}},g.extractProtocol=v,g.location=d,g.trimLeft=l,g.qs=o,t.exports=g},633:()=>{},7609:(t,e,n)=>{var r=n(7425).default;function o(){"use strict";t.exports=o=function(){return e},t.exports.__esModule=!0,t.exports.default=t.exports;var e={},n=Object.prototype,i=n.hasOwnProperty,a="function"==typeof Symbol?Symbol:{},c=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function p(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{p({},"")}catch(t){p=function(t,e,n){return t[e]=n}}function l(t,e,n,r){var o=e&&e.prototype instanceof d?e:d,i=Object.create(o.prototype),a=new _(r||[]);return i._invoke=function(t,e,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return{value:void 0,done:!0}}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=w(a,n);if(c){if(c===h)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var s=f(t,e,n);if("normal"===s.type){if(r=n.done?"completed":"suspendedYield",s.arg===h)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(r="completed",n.method="throw",n.arg=s.arg)}}}(t,n,a),i}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var h={};function d(){}function y(){}function v(){}var g={};p(g,c,(function(){return this}));var m=Object.getPrototypeOf,b=m&&m(m(S([])));b&&b!==n&&i.call(b,c)&&(g=b);var I=v.prototype=d.prototype=Object.create(g);function O(t){["next","throw","return"].forEach((function(e){p(t,e,(function(t){return this._invoke(e,t)}))}))}function P(t,e){function n(o,a,c,s){var u=f(t[o],t,a);if("throw"!==u.type){var p=u.arg,l=p.value;return l&&"object"==r(l)&&i.call(l,"__await")?e.resolve(l.__await).then((function(t){n("next",t,c,s)}),(function(t){n("throw",t,c,s)})):e.resolve(l).then((function(t){p.value=t,c(p)}),(function(t){return n("throw",t,c,s)}))}s(u.arg)}var o;this._invoke=function(t,r){function i(){return new e((function(e,o){n(t,r,e,o)}))}return o=o?o.then(i,i):i()}}function w(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,w(t,e),"throw"===e.method))return h;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var r=f(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,h;var o=r.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}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 _(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(A,this),this.reset(!0)}function S(t){if(t){var e=t[c];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,r=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 r.next=r}}return{next:x}}function x(){return{value:void 0,done:!0}}return y.prototype=v,p(I,"constructor",v),p(v,"constructor",y),y.displayName=p(v,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,p(t,u,"GeneratorFunction")),t.prototype=Object.create(I),t},e.awrap=function(t){return{__await:t}},O(P.prototype),p(P.prototype,s,(function(){return this})),e.AsyncIterator=P,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new P(l(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(I),p(I,u,"Generator"),p(I,c,(function(){return this})),p(I,"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 r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=S,_.prototype={constructor:_,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,r){return a.type="throw",a.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var c=i.call(o,"catchLoc"),s=i.call(o,"finallyLoc");if(c&&s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,h):this.complete(a)},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),h},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),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;E(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:S(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),h}},e}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports},7425: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},2841:(t,e,n)=>{var r=n(7609)();t.exports=r;try{regeneratorRuntime=r}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var i=e[r]={exports:{}};return t[r].call(i.exports,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 r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var r={};return(()=>{"use strict";n.d(r,{default:()=>So});var t=function(t){if(window.AlipayJSBridge)return t();document.addEventListener("AlipayJSBridgeReady",(function(){return t()}),!1)};function e(e,n,r){t((function(){var t=(r||{}).type,o=void 0===t?"async":t;"async"===o&&window.AlipayJSBridge.call(e,n,(function(t){var e=n||{},r=e.success,o=e.fail,i=e.complete;t.error?null==o||o(t):null==r||r(t),null==i||i(t)})),"callback"===o&&window.AlipayJSBridge.call(e,n)}))}function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function i(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}var a=["content","buttonText"];function c(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}var s=["confirmButtonText","cancelButtonText","content"];function u(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}var p=["format","currentDate","startDate","endDate"];function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}var f={"HH:mm:ss":0,"yyyy-MM-dd":1,"yyyy-MM-dd HH:mm:ss":2};var h=["url"];function d(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}var y=[{type:"image",exts:["jpg","jpeg","png","bmp","gif"]},{type:"video",exts:["mp4","3gp","avi","wmv"]},{type:"audio",exts:["mp3","wma","wav"]}];var v=["scopes"];function g(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function m(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?g(Object(n),!0).forEach((function(e){o(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var b=["type"];function I(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}var O=["success"];function P(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function w(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?P(Object(n),!0).forEach((function(e){o(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):P(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function A(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function E(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function _(t){var e=[];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.push([n,t[n]]);return e}var S,x,k,C,j,T,D,M=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}var e,n;return e=t,n=[{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(e){return!t.isNotEmpty(e)}},{key:"parseObjectSafe",value:function(t,e){try{return JSON.parse(t)}catch(t){console.warn("parseObjectSafe error: ",t)}return e}},{key:"encodeMap",value:function(t){if(t){var e=[];return _(t).forEach((function(t){var n=t[0],r=t[1];null!=r&&e.push("".concat(encodeURIComponent(n),"=").concat(encodeURIComponent(r)))})),e.length>0?e.join("&"):void 0}}}],null&&E(e.prototype,null),n&&E(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();function N(){var t,e=null===(t=C)||void 0===t?void 0:t.siteName;return M.isNotEmpty(e)?e:(e=(j||(j=function(){var t={};_(L(window.location.search)).forEach((function(e){var n=e[0],r=e[1],o=n.toLowerCase();if("query"===o)try{t.query=L(r)}catch(t){console.warn("parse query error: ",t)}else"referrerinfo"===o?t.referrerInfo=L(r):t[n]=r}));var e=window.location.hash;if(e){var n=e.indexOf("?");t.hashPath=n>0?e.substring(1,n):e.substring(1),t.hashQuery=L(e)}return t}()),j).site,M.isNotEmpty(e)?e:void console.error("no siteName! please specify siteName in initWebPolyfill(...)"))}function L(t){var e,n={};if(M.isEmpty(t))return n;var r=t.indexOf("?");return r>=0&&(t=t.substring(r+1)),null===(e=t.split("&"))||void 0===e||e.forEach((function(t){var e=t.split("=");if(!(e.length<2)){var r=decodeURIComponent(e[0]);n[r]=decodeURIComponent(e[1])}})),n}!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"}(S||(S={})),(k=x||(x={})).alipayhk="alipayhk",k.alipaymo="alipaymo",k.gcash="gcash",k.tngd="tngd",k.dana="dana",k.kakaopay="kakaopay",o(o(o(o(o(o({},S.ALIPAY_HK,x.alipayhk),S.ALIPAY_MO,x.alipaymo),S.GCASH,x.gcash),S.DANA,x.dana),S.TNG,x.tngd),S.KAKAOPAY,x.kakaopay),(D=T||(T={})).STABLE="STABLE",D.TEST="TEST",D.PRE="PRE",D.PROD="PROD";var R=Object.prototype.hasOwnProperty,B=Object.assign||function(t,e){for(var n,r=function(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}(t),o=1;o<arguments.length;o++)for(var i in n=Object(arguments[o]))R.call(n,i)&&(r[i]=n[i]);return r},U=function(t,e){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},U(t,e)};function F(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}U(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var H=function(){return H=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},H.apply(this,arguments)};"function"==typeof SuppressedError&&SuppressedError;var V=Function.prototype.apply.call.bind(Function.prototype.apply),Y=Function.prototype.bind;function G(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return V(t,e,n)}function K(t,e,n){return V(t,e,n)}function W(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return V(Y,t,e)}var q,z,J,$,Z,Q,X,tt,et,nt,rt=JSON.stringify,ot=JSON.parse;function it(){return z||(t="undefined"!=typeof Set,z=t?Set:function(){function t(){this.itemList=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.itemList.length},enumerable:!1,configurable:!0}),t.prototype.add=function(t){return-1===this.itemList.indexOf(t)&&this.itemList.push(t),this},t.prototype.delete=function(t){var e=this.itemList.indexOf(t);return-1!==e&&(this.itemList.splice(e,1),!0)},t.prototype.clear=function(){this.itemList=[]},t.prototype.has=function(t){return-1!==this.itemList.indexOf(t)},t.prototype.forEach=function(t){for(var e=0,n=this.itemList.slice();e<n.length;e++){var r=n[e];t(r,r,this)}},t}()),new z;var t}function at(t){return"number"==typeof t&&t>=0&&t<=8}function ct(t){var e=t.split(".");if(!e.length)return!1;var n=function(t){for(var e=(nt||"undefined"!=typeof __APPX_CAN_I_USE_DATA__&&(nt=__APPX_CAN_I_USE_DATA__),nt),n=0,r=t;n<r.length;n++){var o=r[n];if(void 0===(e=e&&e[o]))return;var i=e._;if(i){var a=i[et.default];if(a||(a=i[et[void 0]]),!a)return!1;if(void 0!==a[et.const])return Boolean(a[et.const]);var c=a[et.version_added];return void 0!==c&&void 0>=c}}}(e);return void 0!==n?n:function(t,e){if(!e.length)return!1;for(var n=void 0,r=0,o=e;r<o.length;r++){var i=o[r];if(void 0===(n=n&&n[i]))return;if("number"==typeof n._||"boolean"==typeof n._)return Boolean(n._);if("number"==typeof n||"boolean"==typeof n)return Boolean(n)}}(0,e)}J||(J="undefined"!=typeof WeakMap?WeakMap:function(){var t=Object.prototype.hasOwnProperty,e=function(t,e,n){Object.defineProperty?Object.defineProperty(t,e,{configurable:!0,value:n,writable:!0}):t[e]=n};function n(t){return Object(t)===t}function r(){if(void 0===this)throw new TypeError("Constructor WeakMap requires 'new'");if(e(this,"_id","_WeakMap_"+i()+"."+i()),arguments.length>0)throw new TypeError("WeakMap iterable is not supported")}function o(e,r){if(!n(e)||!t.call(e,"_id"))throw new TypeError(r+" method called on incompatible receiver "+typeof e)}function i(){return Math.random().toString().substring(2)}return e(r.prototype,"delete",(function(t){if(o(this,"delete"),!n(t))return!1;var e=t[this._id];return!(!e||e[0]!==t||(delete t[this._id],0))})),e(r.prototype,"get",(function(t){if(o(this,"get"),n(t)){var e=t[this._id];return e&&e[0]===t?e[1]:void 0}})),e(r.prototype,"has",(function(t){if(o(this,"has"),!n(t))return!1;var e=t[this._id];return!(!e||e[0]!==t)})),e(r.prototype,"set",(function(t,r){if(o(this,"set"),!n(t))throw new TypeError("Invalid value used as weak map key");var i=t[this._id];return i&&i[0]===t?(i[1]=r,this):(e(t,this._id,[t,r]),this)})),e(r,"_polyfill",!0),r}()),new J,"undefined"!=typeof SECURITY_FUNCTION_CALL&&(SECURITY_FUNCTION_CALL=function(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return"function"==typeof t?(V||(V=Function.prototype.apply.call.bind(Function.prototype.apply)),V(t,e,n)):t.call.apply(t,function(t,e,n){if(n||2===arguments.length)for(var r,o=0,i=e.length;o<i;o++)!r&&o in e||(r||(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return t.concat(r||Array.prototype.slice.call(e))}([e],n,!1))}),"undefined"!=typeof SECURITY_FUNCTION_APPLY&&(SECURITY_FUNCTION_APPLY=function(t,e,n){return"function"==typeof t?(V||(V=Function.prototype.apply.call.bind(Function.prototype.apply)),V(t,e,n)):t.apply(e,n)}),function(t){t.CanvasContext="CanvasContext"}($||($={})),function(t){t[t.PLUGIN=1]="PLUGIN",t[t.SUB_PACKAGE=2]="SUB_PACKAGE"}(Z||(Z={})),function(t){t.PLUGIN="plugin",t.SUB_PACKAGE="subpackage"}(Q||(Q={})),function(t){t[t.Info=0]="Info",t[t.Warn=1]="Warn",t[t.Error=2]="Error"}(X||(X={})),function(t){t.AppxLifecycle="AppxLifecycle"}(tt||(tt={})),"undefined"!=typeof HAS_INSIDE_FEATURE&&HAS_INSIDE_FEATURE,function(t){t.version_added="v",t.const="c",t.android="a",t.ios="i",t.default="d"}(et||(et={}));var st,ut={scope:void 0,type:"empty"};function pt(t){return t&&"empty"===t.type}function lt(t){return t&&"extension"===t.type}function ft(t){return t&&"openCapability"===t.type}function ht(){return st||(st=function(){try{return INSIDE_CONFIG_STATIC||{}}catch(t){return{}}}()),st}"undefined"!=typeof ZEPHYR_HAS_INSIDE_FEATURE&&ZEPHYR_HAS_INSIDE_FEATURE,"undefined"!=typeof ZEPHYR_IS_INSIDE_UNSUPPORT_ELEMENT&&ZEPHYR_IS_INSIDE_UNSUPPORT_ELEMENT;var dt,yt,vt,gt=function(){function t(t){this.taskMap=Object.create(null),this.addEventListener=t}return t.prototype.hasMatcher=function(t,e){var n=this.taskMap[t];if(!n)return!1;if(void 0===e){var r=Object.keys(n.callbacks).some((function(t){var e=n.callbacks[t];return!!(e&&e.length>0)}));return r}var o=n.callbacks[e];return!!o&&o.length>0},t.prototype.removeMatcher=function(t,e,n){var r=this.taskMap[t];if(!r)return 0;var o=r.callbacks[e];if(!o)return 0;if(n){var i=o.length;return r.callbacks[e]=o.filter((function(t){return t!==n})),i-r.callbacks[e].length}return i=o.length,o.length=0,i},t.prototype.addMatcher=function(t,e,n,r,o,i){var a=this.taskMap[t];a||(a=this.taskMap[t]={callbacks:Object.create(null)},this.addEventListener(t,W(this.onEventHandler,this,t,r,o),i));var c=a.callbacks[e];return c||(c=a.callbacks[e]=[]),c.indexOf(n)<0?(c.push(n),1):0},t.prototype.onEventHandler=function(t,e,n,r){var o=this.taskMap[t],i=e(r,o);if(i)for(var a=o.callbacks,c=0,s=i;c<s.length;c++){var u=a[s[c]];if(u){var p=n(r);if(p)for(var l=0,f=u;l<f.length;l++)(0,f[l])(p)}}},t}();function mt(t){return void 0===t}function bt(t){return t&&"object"==typeof t}function It(t){return"function"==typeof t}function Ot(t){return!!(t&&t.get&&t.update)}var Pt=function(t,e,n,r,o,i,a){e().getKernel().__BRIDGE_CALL__(i,n,r,o)},wt=function(t,e,n,r,o,i){return e().getKernel().__BRIDGE_CALL_SYNC__(o,n,r)};function At(t,e){var n=t.jsApiCacheWhitelist;return!!(n&&"string"==typeof n&&n.indexOf(e)>=0)}function Et(t,e){return t[e]}var _t={internalAPI:!0,openInBrowser:!0},St={};function xt(t,e,n,r,o,i,a,c){var s="".concat(i),u=!!(1&o),p=!!(2&o),l=!!(4&o),f=!1===u&&!0===p,h=f?t.getPublicCallProxyAPIInfoByName(s):t.getAPIInfoByName(s),d=f?"my.callSync":jt(h,i);if(h||(h=St),!_t[s]){(u||p)&&(c=null);var y=re(h,n,r,u,l,c,e,s,a,{caller:d});try{return y.invoke()}finally{}}}function kt(t,e,n,r,o,i,a,c,s){var u="".concat(i),p=!!(1&o),l=!!(2&o),f=!!(4&o),h=!1===p&&!0===l,d=St;t&&(d=h?t.getPublicCallProxyAPIInfoByName(u):t.getAPIInfoByName(u));var y=h?"my.call":jt(d,i);if(d||(d=St),!_t[u]){(p||l)&&(s=null);var v=ne(d,n,r,p,f,s,e,u,a,c,{caller:y});try{return v.invoke()}finally{}}}function Ct(t,e,n,r,o,i,a,c){var s=function(t,e,n,r,o,i,a,c,s,u){return new te(e,n,i,a,c,t,{caller:null==u?void 0:u.caller,callerContext:null==u?void 0:u.callerContext,directly:!0,inside:!1,shouldNotRewriteIdOrClass:s,viewId:null})}(t,r,o,0,0,n,e,i,a,c);return s.invoke()}function jt(t,e){if(t)return t.avaliableNamespace?"my.".concat(t.avaliableNamespace,".").concat(e):"my.".concat(e)}var Tt,Dt,Mt=function(){function t(t){this._context=t,this.__appxDomain=t.appxDomain.scope;var e=this._context.runtime().getEnv(),n=e.isIOS,r=e.isAndroid,o=e.isIDE;this.isIOS=n,this.isAndroid=r,this.isIDE=o}return t.prototype.callBridge=function(t,e,n){this._context.callDefaultBridge(t,e,n)},t.prototype.callBridgeSync=function(t,e){return this._context.callDefaultBridgeSync(t,e)},t.prototype.on=function(t,e){return this._context.runtime().getBridge().event.addEventListener(t,0,e)},t.prototype.off=function(t,e){return this._context.runtime().getBridge().event.removeEventListener(t,0,e)},t.prototype.getStartupParams=function(){return this._context.runtime().getEnv().originalStartupParams},t}();function Nt(t){var e;Tt||(q||(e="undefined"!=typeof Map,q=e?Map:function(){function t(){this.keyList=[],this.valueList=[]}return t.prototype.set=function(t,e){var n=this.keyList,r=n.indexOf(t);if(-1===r){var o=n.push(t)-1;this.valueList[o]=e}else this.valueList[r]=e;return this},t.prototype.get=function(t){var e=this.keyList.indexOf(t);return-1===e?void 0:this.valueList[e]},t.prototype.forEach=function(t){for(var e=this.keyList.slice(),n=this.valueList.slice(),r=e.length,o=0;o<r;o++){var i=e[o];t(n[o],i,this)}},Object.defineProperty(t.prototype,"size",{get:function(){return this.keyList.length},enumerable:!1,configurable:!0}),t.prototype.has=function(t){return-1!==this.keyList.indexOf(t)},t.prototype.delete=function(t){var e=this.keyList.indexOf(t);return-1!==e&&(this.keyList.splice(e,1),this.valueList.splice(e,1),!0)},t.prototype.clear=function(){this.keyList=[],this.valueList=[]},t}()),Tt=new q);var n=Tt.get(t);if(!n){n=it(),Tt.set(t,n);for(var r=0,o=t;r<o.length;r++){var i=o[r];"string"==typeof i&&n.add(i)}}return n}function Lt(){return Dt||((Dt=it()).add("success"),Dt.add("error"),Dt.add("errorMessage")),Dt}function Rt(t,e,n){if(t&&"object"==typeof t){for(var r=Nt(e),o={},i=0,a=Object.keys(t);i<a.length;i++){var c=a[i];r.has(c)||n&&n.has(c)?o[c]=t[c]:"undefined"!=typeof process&&process&&process.env}return o}return t}function Bt(t,e,n){var r=t,o=e;return It(t)&&(mt(e)||n()&&(o=t,r={})),function(t,e){var n=t,r=e;return mt(e)&&It(t)&&(r=t,n={}),bt(t)||void 0===t||(n={}),mt(n)&&(n={}),{callback:r,option:n}}(r,o)}function Ut(t,e,n){try{var r=ht().config;if(!r||"ap"!==r.clientName)return!0;if(e().getBehaviorManager().report("duplicated my.call(".concat(n,")")),t.getFlag("ignoreCallbackWhenInvokeMyCall"))return!0}catch(t){}return!1}function Ft(t){var e={};return It((t=t||{}).success)&&(e.success=t.success,delete t.success),It(t.fail)&&(e.fail=t.fail,delete t.fail),It(t.complete)&&(e.complete=t.complete,delete t.complete),e}var Ht=1,Vt={};function Yt(){}var Gt=Object.defineProperty;function Kt(t,e,n){Gt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n})}var Wt,qt=function(){function t(t,e,n,r,o,i,a,c){if(u=o,"[object Object]"===Object.prototype.toString.call(u)){var s=H({},o);void 0!==s.page&&(s.page=void 0),this.option=s}else this.option=o;var u;Kt(this,"ctx",t),Kt(this,"runtime",e),Kt(this,"extraInfo",c),Kt(this,"apiName",r),Kt(this,"appxDomain",n),Kt(this,"appxDomainIsNotEmpty",!pt(n)),Kt(this,"callback",a),Kt(this,"apiInfo",this.getFlag("freezeAPIInfo")?function(t){try{Object.isFrozen(t)||(Object.setPrototypeOf(t,null),Object.freeze(t))}finally{return t}}(H({},i)):i||{}),i.t&&(this.taskId=Ht++),this.startTime=(new Date).getTime(),this.initDependency(o,c.viewId,i,a),this.callStack=new Error("")}return t.prototype.invoke=function(){},t.prototype.callScopedBridge=function(t,e,n,r){var o=this.appxDomain;return o&&!pt(o)&&(e=H(H({},e),{__appxDomain:o.scope})),this.callDefaultBridge(t,e,n,r)},t.prototype.callScopedBridgeSync=function(t,e,n){var r=this.appxDomain;return r&&!pt(r)&&(e=H(H({},e),{__appxDomain:r.scope})),this.callDefaultBridgeSync(t,e,n)},t.prototype.callBridge=function(t,e,n,r){return this.callDefaultBridge(t,e,n,r)},t.prototype.callDefaultBridge=function(t,e,n,r){var o=this.runtime();if(o){var i=o.getBridge();i&&i.callBridge(t,e,n,void 0,{caller:this.extraInfo.caller})}},t.prototype.callDefaultBridgeSync=function(t,e,n){var r=this.runtime();if(r){var o=r.getBridge();if(o)return o.callBridgeSync(t,e,n,{caller:this.extraInfo.caller})}},t.prototype.callInternalAPI=function(t,e,n,r){var o=this.runtime();if(o){var i=o.getBridge();i&&i.callInternalAPI(t,e,n,r,{caller:this.extraInfo.caller})}},t.prototype.callInternalAPISync=function(t,e,n){var r=this.runtime();if(r){var o=r.getBridge();if(o)return o.callInternalAPISync(t,e,n,{caller:this.extraInfo.caller})}},t.prototype.getEnvAppBiz=function(){return"TinyAppBiz-".concat(this.getEnvAppId())},t.prototype.getEnvAppId=function(){var t=this.runtime().getEnv().startupParams.appId;return void 0===t?"":t},t.prototype.getEnvPlatformIOS=function(){return"ios"===this.runtime().getEnv().platform},t.prototype.invokeExternalElementMethod=function(t,e,n,r){if(t&&void 0!==t.$viewId){var o=t.$viewId,i=this.runtime().getPageManager().getInstanceById("".concat(o));i&&i.invokeClientElementMethod(e,"onHostExternalMessage",[n,r])}},t.prototype.getBridgeExtraInfo=function(){return this.runtime().getBridge().extraInfo},t.prototype.getEnvPlatformAndroid=function(){return"android"===this.runtime().getEnv().platform},t.prototype.getEnvOnlyCube=function(){return this.runtime().getEnv().isOnlyCube},t.prototype.invokeCallback=function(t,e){t?this.callbackUnion[t]&&this.callbackUnion[t](e):this.callback&&this.callback(e)},t.prototype.dispatchResultCallback=function(t){var e=!1;if("object"==typeof t&&(e="error"in t||"errorMessage"in t),e?(this.shouldEmitEvent()&&this.runtime().getTypedEventManager().invokeInternalEvent(8,[{key:this.apiName,option:this.option,result:t,type:"fail"}]),t=this.callHookAfterLog(t),this.invokeCallback("fail",t)):(this.shouldEmitEvent()&&this.runtime().getTypedEventManager().invokeInternalEvent(8,[{key:this.apiName,option:this.option,result:t,type:"success"}]),this.invokeCallback("success",t)),this.invokeCallback("complete",t),this.invokeCallback(null,t),!e)return t;if(!this.shouldNotReturnPromise()){var n=this.runtime();if(n&&"function"==typeof n.getLogger){var r=n.getLogger();r&&r.attachErrorSource&&r.attachErrorSource(t,{from:"api",method:this.apiName,payload:this.option,stack:this.callStack})}throw t}},t.prototype.shouldNotReturnPromise=function(){if(this.apiInfo.noPromise)return!0;var t=!!(this.callbackUnion.complete||this.callbackUnion.success||this.callbackUnion.fail||this.callback),e=this.apiInfo.allowAbort||this.apiInfo.progress||this.apiInfo.returnProto;return t&&!e},t.prototype.shouldEmitEvent=function(){return this.extraInfo.directly&&"object"==typeof this.option&&!Vt[this.apiName]},t.prototype.prepareOption=function(){return this.shouldEmitEvent()&&this.runtime().getTypedEventManager().invokeInternalEvent(8,[{key:this.apiName,type:"invoke"}]),this.callHookBefore()},t.prototype.getInsideContext=function(){var t=this.insideContext;return t||(t=this.insideContext=new Mt(this)),t},t.prototype.callHookValidate=function(){var t=this.apiInfo.tapMark;if("function"!=typeof t||this.extraInfo.inside||(t=G(t,this)),!0===t){var e=this.getPageInstance();e&&!e.getTapMarkManager().checkTapMark()&&(this.validateResult={error:5,errorMessage:"".concat(this.apiName," can only be invoked by user tap gesture")})}return void 0===this.validateResult&&this.apiInfo.v&&!this.extraInfo.inside&&(this.apiInfo.b_v&&(this.validateResult=G(this.apiInfo.b_v,this,this.option)),void 0===this.validateResult&&(this.validateResult=G(this.apiInfo.v,this,this.option)),void 0===this.validateResult&&this.apiInfo.a_v&&(this.validateResult=G(this.apiInfo.a_v,this,this.option))),this.validateResult},t.prototype.callHookBefore=function(){var t=this.option;return this.optionPageViewId||this.apiInfo.b?(t=H({},t),Array.isArray(this.apiInfo.in)&&(t=Rt(t,this.apiInfo.in,Lt())),this.optionPageViewId&&(t.viewId=this.optionPageViewId),this.apiInfo.b&&(this.apiInfo.b_b&&(t=this.extraInfo.inside?G(this.apiInfo.b_b,this.getInsideContext(),t,this.callback)||t:G(this.apiInfo.b_b,this,t,this.callback)||t),t=this.extraInfo.inside?G(this.apiInfo.b,this.getInsideContext(),t,this.callback)||t:G(this.apiInfo.b,this,t,this.callback)||t,this.apiInfo.a_b&&(t=this.extraInfo.inside?G(this.apiInfo.a_b,this.getInsideContext(),t,this.callback)||t:G(this.apiInfo.a_b,this,t,this.callback)||t))):Array.isArray(this.apiInfo.in)&&(t=Rt(t,this.apiInfo.in,Lt())),ft(this.appxDomain)?t.__openCapabilityId=this.appxDomain.origin:t.__openCapabilityId&&delete t.__openCapabilityId,t},t.prototype.callHookAfter=function(t){var e=t;return this.apiInfo.a&&(this.apiInfo.b_a&&(this.apiInfo.ignoreShadowCopyResponse||(e=H({},e)),e=!0===this.extraInfo.inside?G(this.apiInfo.b_a,this.getInsideContext(),e,this.finalOption,this.option)||e:G(this.apiInfo.b_a,this,e,this.finalOption,this.option)||e),this.apiInfo.ignoreShadowCopyResponse||(e=H({},e)),e=!0===this.extraInfo.inside?G(this.apiInfo.a,this.getInsideContext(),e,this.finalOption,this.option)||e:G(this.apiInfo.a,this,e,this.finalOption,this.option)||e,this.apiInfo.a_a&&(this.apiInfo.ignoreShadowCopyResponse||(e=H({},e)),e=!0===this.extraInfo.inside?G(this.apiInfo.a_a,this.getInsideContext(),e,this.finalOption,this.option)||e:G(this.apiInfo.a_a,this,e,this.finalOption,this.option)||e)),Array.isArray(this.apiInfo.out)&&(e=Rt(e,this.apiInfo.out,Lt())),e},t.prototype.callHookAfterLog=function(t){var e=t;return this.apiInfo.a_l&&(e=G(this.apiInfo.a_l,this,e,this.finalOption,this.option)||e),e},t.prototype.processResult=function(t){var e,n=t||{};n=this.callHookAfter(n);var r=!0;return(null===(e=this.extraInfo)||void 0===e?void 0:e.directly)&&this.getFlag("disablePublicCallErrorCodeNormalize")&&(r=!1),r&&(n=function(t){return"string"==typeof t.error&&(t.error=parseInt(t.error,10)),0===t.error&&(delete t.error,delete t.errorMessage),t}(n)),n},t.prototype.getRewriteIdWithAppxDomain=function(t){var e,n,r=t,o=this.appxDomain;return!lt(o)&&!ft(o)||this.extraInfo.shouldNotRewriteIdOrClass||(r=(e={type:4,value:o.origin},n={type:8,value:r},{type:9,value:"p-".concat(e.value,"-").concat(n.value)}).value),r},t.prototype.getPageInstance=function(){var t=this.pageInstance;return t&&!t.hasPageUnloaded()||(t&&(this.pageInstance=null),t=this.runtime().getNav().getTopInstance()),t},t.prototype.initDependency=function(t,e,n,r){var o,i,a=this.runtime(),c=t&&t.page&&t.page.$viewId||void 0,s=c||e||void 0;s&&(i=a.getPageManager().getInstanceById(s)),i&&!i.hasPageUnloaded()||(i=null===(o=a.getNav())||void 0===o?void 0:o.getTopInstance()),i&&(s=i.pageId,this.pageInstance=i),this.assignedViewId=s,this.optionPageViewId=c},t.prototype.getState=function(){return this.extraInfo.parentState},t.prototype.getProtoContext=function(){return this.extraInfo.parentProtoContext},t.prototype.getCallerContext=function(){return this.extraInfo.callerContext},t.prototype.callProtoAPI=function(t,e){return Ct(t,this.apiName,this.appxDomain,this.ctx,this.runtime,e,this.extraInfo.shouldNotRewriteIdOrClass,{caller:this.extraInfo.caller,callerContext:this})},t.prototype.reportHostError=function(t,e,n,r,o){return this.runtime().getKernel().reportHostError(t,e,n,r,o)},t.prototype.getFlag=function(t){return this.ctx.getFlags()[t]},t.prototype.invokeCompositeElementMethod=function(t,e,n){var r;void 0===e&&(e=Yt);var o=null===(r=this.extraInfo)||void 0===r?void 0:r.scopedElementId;if(o){var i=n||this.apiName,a=function(t,e,n,r){if(t){var o=t.success,i=t.fail;return{complete:t.complete,data:function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]])}return n}(t,["success","fail","complete"]),element:n,fail:i,success:o,viewId:e,action:r}}return{element:n,viewId:e,action:r}}(t,this.assignedViewId,o,i);this.pageInstance?this.pageInstance.invokeCompositeElementMethod(a,this,e):e({error:1,errorMessage:"page not found"})}},t}();var zt,Jt,$t=/^(?:on|off)([A-Z])(\w+)/;var Zt,Qt,Xt={},te=function(t){function e(e,n,r,o,i,a,c){return t.call(this,e,n,r,o,i,a,void 0,c)||this}return F(e,t),e.prototype.invoke=function(){for(var t=this,e=K(this.apiInfo.state,this,this.option),n={},r=function(r){var i=o.apiInfo.proto[r];if("function"==typeof i.feature&&!G(i.feature,o))return"continue";var a=o.apiName?"".concat(o.extractProtoEntityNameFromAPIInfo(o.apiName),".").concat(r):void 0,c=function(r){r.extraInfo.caller=a,r.extraInfo.scopedElementId=t.apiInfo.compositeElement?t.getRewriteIdWithAppxDomain(t.option[0]):void 0,r.extraInfo.parentState=e,r.extraInfo.parentProtoContext=n,r.extraInfo.callerContext=t.extraInfo.callerContext||t};if(i.getter){var s,u=function(t,e,n,r,o,i,a){return new ee(e,n,i,a,t,{caller:void 0,directly:!1,viewId:o,inside:!1,scopedElementId:void 0})}(i,o.ctx,o.runtime,0,o.assignedViewId,o.appxDomain,r);c(u);var p=!1;Object.defineProperty(n,r,{configurable:!0,enumerable:!0,get:function(){return p||(s=u.invoke()),s},set:function(t){return s=t,p=!0,!0}})}else n[r]=function(e,n){if(t.apiInfo.compositeElement&&!t.hasPermission())return t.invokeNoPermissionCallbackDirectly(a,r,e,n);var o=ne(i,t.ctx,t.runtime,!1,!1,t.assignedViewId,t.appxDomain,r,e,n);return c(o),o.invoke()}},o=this,i=0,a=Object.keys(this.apiInfo.proto);i<a.length;i++)r(a[i]);return n},e.prototype.initDependency=function(e,n,r,o){var i=r.createOptionIndex,a=!1===i?null:e[i];t.prototype.initDependency.call(this,a,n,r,null)},e.prototype.extractProtoEntityNameFromAPIInfo=function(t){var e=t.match(/^(create|get)(.*)$/);return e?e[2]:"".concat(t[0].toUpperCase()).concat(t.slice(1))},e.prototype.hasPermission=function(){var t=this.runtime().getPermissionManager();return!t||t.checkElementPermission4ContextAPI(this.apiInfo.compositeElement,this.appxDomain)},e.prototype.invokeNoPermissionCallbackDirectly=function(t,e,n,r){var o=this,i={error:4,errorMessage:"无权调用 ".concat(t)},a=Bt(n,r,(function(){return Ut(o.ctx,o.runtime,e)})),c=a.option,s=a.callback,u=Ft(c),p=function(t){return o.runtime().getKernel().setTimeout(t,0)};u.fail&&p((function(){u.fail(i)})),u.complete&&p((function(){u.complete(i)})),s&&p((function(){s(i)}))},e}(qt);var ee=function(t){function e(e,n,r,o,i,a){return t.call(this,e,n,r,o,null,i,null,a)||this}return F(e,t),e.prototype.invoke=function(){return G(this.apiInfo.getter,this)},e}(qt);function ne(t,e,n,r,o,i,a,c,s,u,p){if(t.fn)return new(Jt||(Jt=function(t){function e(e,n,r,o,i,a,c,s){return t.call(this,e,n,r,o,i,c,a,s)||this}return F(e,t),e.prototype.invoke=function(){return!0===this.extraInfo.inside?G(this.apiInfo.fn,this.getInsideContext(),this.option,this.callback):G(this.apiInfo.fn,this,this.option,this.callback)},e.prototype.initDependency=function(e,n,r,o){var i=r.fnOptionIndex,a=0===i?e:1===i?o:null;t.prototype.initDependency.call(this,a,n,r,null)},e}(qt)),Jt)(e,n,a,c,s,u,t,{caller:void 0,directly:r,inside:o,viewId:i,scopedElementId:null==p?void 0:p.scopedElementId});var l=Bt(s,u,(function(){return Ut(e,n,c)})),f=l.option,h=l.callback;return function(t){return/^(?:on|off)[A-Z](?:\w+)/.test(t)}(c)?new(zt||(zt=function(t){function e(e,n,r,o,i,a,c,s){var u=t.call(this,e,n,r,o,i,a,c,s)||this;return"function"==typeof a.e?u.eventName=G(a.e,u):u.eventName=function(t,e){var n="";if(e&&$t.test(t)){var r=t.match($t);"string"==typeof e.m&&(n=e.m),!n&&r[1]&&r[2]&&(n=r[1].toLowerCase()+r[2])}return n}(o,u.apiInfo),u}return F(e,t),e.prototype.invoke=function(){if(this.finalOption=this.prepareOption(),this.callbackUnion=Ft(this.finalOption),/^on/.test(this.apiName)){if(at(this.apiInfo.m))return"function"==typeof this.callback?this.runtime().getTypedEventManager().addEventListener(this.apiInfo.m,this.callback,!0):{remove:function(){}};if(this.apiInfo.task){if("function"==typeof this.callback){var t=this.apiInfo.task,e=t.id,n=t.getTaskId,r=t.getPayload,o=t.isolate,i="function"==typeof e?G(e,this):e;this.callHookEventTask("start",o,i),this.runtime().getBridge().event.taskManager.addMatcher(this.eventName,i,this.callback,n,r)}}else this.callHookEvent("start"),this.runtime().getBridge().event.addEventListener(this.eventName,1,W(this.processEventResult,this),this.callback)}else if(at(this.apiInfo.m))"function"==typeof this.callback&&this.runtime().getTypedEventManager().removeEventListener(this.apiInfo.m,this.callback);else if(this.apiInfo.task){if("function"==typeof this.callback){var a=this.apiInfo.task;e=a.id,o=a.isolate,i="function"==typeof e?G(e,this):e,this.runtime().getBridge().event.taskManager.removeMatcher(this.eventName,i,this.callback),this.callHookEventTask("end",o,i)}}else this.runtime().getBridge().event.removeEventListener(this.eventName,1,this.callback),this.callHookEvent("end")},e.prototype.processEventResult=function(t){var e,n;n={},mt((e=t).data)||(n=bt(n=e.data)?n:{data:n}),t=n;var r=this.processResult(t);this.dispatchResultCallback(r)},e.prototype.callHookEventTask=function(t,e,n){var r=this.runtime().getBridge().event.taskManager;(2===e?r.hasMatcher(this.eventName,n):1===e&&r.hasMatcher(this.eventName))||It(this.apiInfo[t])&&(this.extraInfo.inside?G(this.apiInfo[t],this.getInsideContext()):G(this.apiInfo[t],this))},e.prototype.callHookEvent=function(t){this.runtime().getBridge().event.hasEventListener(this.eventName,1)||It(this.apiInfo[t])&&(this.extraInfo.inside?G(this.apiInfo[t],this.getInsideContext()):G(this.apiInfo[t],this))},e}(qt)),zt)(e,n,a,c,f,t,h,{caller:null==p?void 0:p.caller,directly:r,inside:o,viewId:i,scopedElementId:null==p?void 0:p.scopedElementId}):new(Wt||(Wt=function(t){function e(e,n,r,o,i,a,c,s){return t.call(this,e,n,r,o,i,a,c,s)||this}return F(e,t),e.prototype.invoke=function(){var t=this,e=this.invokeMethodAsync();if(!this.shouldNotReturnPromise()){var n=this.apiInfo,r=n.allowAbort,o=n.progress,i=n.returnEvent,a=n.returnProto;if(r||o||i||a){if(r){var c=this.apiInfo.cancelname||"abort";e[c]=function(){It(t.apiInfo.c)&&G(t.apiInfo.c,t),t.resolveImmediate&&t.resolveImmediate({error:9,errorMessage:"".concat(t.apiName,":fail abort")})}}if("object"==typeof i&&i)for(var s=function(n){var r=i[n],o=r.taskId,a=r.getTaskId,c=r.eventName,s=r.getPayload,p=r.feature;if("function"==typeof p&&!G(p,u))return"continue";var l=n[0].toUpperCase()+n.slice(1);e["on".concat(l)]=function(e){var n=t.runtime();if(n){var r=n.getBridge().event;if(r){var i="function"==typeof o?G(o,t):o;r.taskManager.addMatcher(c,i,e,a,s)}}},e["off".concat(l)]=function(e){var n=t.runtime();if(n){var r=n.getBridge().event;if(r){var i="function"==typeof o?G(o,t):o;r.taskManager.removeMatcher(c,i)}}}},u=this,p=0,l=Object.keys(i);p<l.length;p++)s(l[p]);if(o){var f=this.taskId,h=o.key,d=o.getPayload,y=o.getTaskId;e.onProgressUpdate=function(e){var n=t.runtime();if(n){var r=n.getBridge().event;r&&r.taskManager.addMatcher("".concat(h,"StateChange"),f,e,y,d)}}}if(a){var v=G(a,this);B(e,v)}}return e}},e.prototype.callHookDoingAsync=function(t){this.apiInfo.allowAbort&&(this.resolveImmediate=t);var e=this.getFlag("idempotentAPIWhiteList"),n=this.apiInfo.m||this.apiName;if(this.apiInfo.i||Array.isArray(e)&&e.indexOf(n)>-1){var r=this.getFlag("idempotentAPIBlackList");Array.isArray(r)&&r.indexOf(n)>-1?this.doingAsync(t):this.invokeIdempotentAPI(this.apiInfo.i,t)}else this.doingAsync(t)},e.prototype.doingAsync=function(t){It(this.apiInfo.d)?!0===this.extraInfo.inside?G(this.apiInfo.d,this.getInsideContext(),this.finalOption,t):G(this.apiInfo.d,this,this.finalOption,t):It(this.apiInfo.d_with_cache)?this.interceptBridgeCall4Cache(this.apiInfo.cache,t)||(!0===this.extraInfo.inside?G(this.apiInfo.d_with_cache,this.getInsideContext(),this.finalOption,t):G(this.apiInfo.d_with_cache,this,this.finalOption,t)):this.apiInfo.compositeElementAction?this.invokeCompositeElementMethod(this.finalOption,t):this.interceptBridgeCall4Cache(this.apiInfo.cache,t)||(this.shouldForbidAsyncJSAPI(this.apiInfo.m||this.apiName,this.finalOption)?(this.runtime().getEnv().packageAndRunSceneType,t({error:4,errorMessage:"API调用受限"})):Pt(this.ctx,this.runtime,this.apiInfo.m||this.apiName,this.appxDomainIsNotEmpty?H(H({},this.finalOption),{__appxDomain:this.appxDomain.scope}):this.finalOption,t,this.assignedViewId,{caller:this.extraInfo.caller}))},e.prototype.shouldForbidAsyncJSAPI=function(t,e){var n=!1;if("hideOptionMenuItem"===t){var r=this.getFlag("forbidAPIList");"favorite"===e.name&&r&&r.indexOf("hideOptionMenuItem")>-1&&(n=!0)}return n},e.prototype.interceptBridgeCall4Cache=function(t,e){var n=this;if(!t)return!1;var r=this.runtime(),o=r.getBridge(),i=t.key,a=r.getEnv().originalStartupParams;if(!At(a,i))return!1;var c=o.extraInfo[i];if(c||(c=o.extraInfo[i]={cache:Et(a,i)}),Ot(t)){var s=G(t.get,null,c,this.finalOption);return s?((0,this.runtime().getKernel().setTimeout)((function(){e(s)}),0),!0):(Pt(this.ctx,this.runtime,this.apiInfo.m||this.apiName,this.appxDomainIsNotEmpty?H(H({},this.finalOption),{__appxDomain:this.appxDomain.scope}):this.finalOption,(function(r){G(t.update,null,c,n.finalOption,r),e(r)}),this.assignedViewId,{caller:this.extraInfo.caller}),!0)}return t.set?(G(t.set,null,c,this.finalOption),!1):void 0},e.prototype.invokeMethodAsync=function(){var t=this,e=this.runtime(),n=e.getKernel(),r=n.Promise;return this.callHookValidate()?(this.callbackUnion=Ft(this.option),r.resolve().then((function(){return t.dispatchResultCallback(t.validateResult)}))):(this.callbackUnion=Ft(this.option),this.finalOption=this.prepareOption(),new r((function(r,o){var i=1;t.callHookDoingAsync((function(a){var c=t.apiInfo,s=c.progress;if(s){var u=s.key,p=e.getBridge().event;p&&p.taskManager.removeMatcher("".concat(u,"StateChange"),t.taskId)}if(c.allowAbort){if(!t.resolveImmediate)return;t.resolveImmediate=null}var l=t.processResult(a);try{if(i)return void n.setTimeout((function(){try{r(t.dispatchResultCallback(l))}catch(t){o(t)}}),2);r(t.dispatchResultCallback(l))}catch(t){o(t)}})),i=0})))},e.prototype.invokeIdempotentAPI=function(t,e){if(this.finalOption&&Object.keys(this.finalOption).length>0)return this.doingAsync(e);var n=this.runtime(),r=n.getBridge(),o=r.extraInfo.idempotenceInfo;o||(o=r.extraInfo.idempotenceInfo={});var i=this.apiInfo.m||this.apiName,a=void 0!==this.optionPageViewId?this.optionPageViewId:void 0!==this.assignedViewId?this.assignedViewId:"default",c=this.appxDomainIsNotEmpty?this.appxDomain.scope:"default",s="".concat(i,"-").concat(a,"-").concat(c),u=o[s];u||(u=o[s]={processing:!1,resolveQueue:[]}),u.processing?u.resolveQueue.push(e):(u.processing=!0,this.doingAsync((function(t){var r;u.processing=!1;try{r=ot(rt(t))}catch(t){r={},n.getLogger().reportError(12,t)}e(t),u.resolveQueue&&u.resolveQueue.length>0&&(u.resolveQueue.forEach((function(t){t(ot(rt(r)))})),u.resolveQueue=[])})))},e.prototype.abort=function(){this.resolveImmediate&&this.resolveImmediate({error:9,errorMessage:"".concat(this.apiName,":fail abort")})},e}(qt)),Wt)(e,n,a,c,f,t,h,{caller:null==p?void 0:p.caller,directly:r,inside:o,viewId:i,scopedElementId:null==p?void 0:p.scopedElementId})}function re(t,e,n,r,o,i,a,c,s,u){var p=Bt(s,void 0,(function(){return Ut(e,n,c)})).option;return new(Qt||(Qt=function(t){function e(e,n,r,o,i,a,c){return t.call(this,e,n,r,o,i,a,null,c)||this}return F(e,t),e.prototype.interceptBridgeCallSync4Cache=function(t){if(t){var e=this.runtime(),n=e.getBridge(),r=t.key,o=e.getEnv().originalStartupParams;if(At(o,r)){var i=n.extraInfo[r];if(i||(i=n.extraInfo[r]={cache:Et(o,r)}),Ot(t)){var a=G(t.get,null,i,this.finalOption);if(a)return{hit:!0,result:a};var c=wt(this.ctx,this.runtime,this.apiInfo.m||this.apiName,this.appxDomainIsNotEmpty?H(H({},this.finalOption),{__appxDomain:this.appxDomain.scope}):this.finalOption,this.assignedViewId,{caller:this.extraInfo.caller});return G(t.update,null,i,this.finalOption,c),{hit:!1,result:c}}t.set&&G(t.set,null,i,this.finalOption)}}},e.prototype.callHookDoingSync=function(){var t;if(It(this.apiInfo.d))t=!0===this.extraInfo.inside?G(this.apiInfo.d,this.getInsideContext(),this.finalOption,void 0):G(this.apiInfo.d,this,this.finalOption,void 0);else if(It(this.apiInfo.d_with_cache_sync))(t=(e=this.interceptBridgeCallSync4Cache(this.apiInfo.cache))?e.result:!0===this.extraInfo.inside?G(this.apiInfo.d_with_cache_sync,this.getInsideContext(),this.finalOption,void 0):G(this.apiInfo.d_with_cache_sync,this,this.finalOption,void 0))&&(t=this.processResult(t)||t);else{var e;(t=(e=this.interceptBridgeCallSync4Cache(this.apiInfo.cache))?e.result:wt(this.ctx,this.runtime,this.apiInfo.m||this.apiName,this.appxDomainIsNotEmpty?H(H({},this.finalOption),{__appxDomain:this.appxDomain.scope}):this.finalOption,this.assignedViewId,{caller:this.extraInfo.caller}))&&(t=this.processResult(t)||t)}return t||(t={error:999,errorMessage:"System Error: Return ".concat(t)}),t},e.prototype.invoke=function(){return this.callHookValidate()?this.validateResult:(this.finalOption=this.prepareOption(),It(this.apiInfo.responseProxy)&&!0!==this.extraInfo.inside&&this.getFlag("enableBridgeResponseProxy")&&(t=G(this.apiInfo.responseProxy,this,this.finalOption,W(this.callHookDoingSync,this),W(this.callHookDoingAsync4ResponseProxy,this))),t||(t=this.callHookDoingSync()),t);var t},e.prototype.callHookDoingAsync4ResponseProxy=function(t){var e=this,n=function(n){var r=e.processResult(n);t(r)};this.interceptBridgeCall4CacheAsync(this.apiInfo.cache,n)||Pt(this.ctx,this.runtime,this.apiInfo.m||this.apiName,this.appxDomainIsNotEmpty?H(H({},this.finalOption),{__appxDomain:this.appxDomain.scope}):this.finalOption,n,this.assignedViewId,{caller:this.extraInfo.caller})},e.prototype.interceptBridgeCall4CacheAsync=function(t,e){var n=this;if(!t)return!1;var r=this.runtime(),o=r.getBridge(),i=t.key,a=r.getEnv().originalStartupParams;if(!At(a,i))return!1;var c=o.extraInfo[i];if(c||(c=o.extraInfo[i]={cache:Et(a,i)}),Ot(t)){var s=G(t.get,null,c,this.finalOption);return s?((0,this.runtime().getKernel().setTimeout)((function(){e(s)}),0),!0):(Pt(this.ctx,this.runtime,this.apiInfo.m||this.apiName,this.appxDomainIsNotEmpty?H(H({},this.finalOption),{__appxDomain:this.appxDomain.scope}):this.finalOption,(function(r){G(t.update,null,c,n.finalOption,r),e(r)}),this.assignedViewId,{caller:this.extraInfo.caller}),!0)}return t.set?(G(t.set,null,c,this.finalOption),!1):void 0},e}(qt)),Qt)(e,n,a,c,p,t,{caller:null==u?void 0:u.caller,directly:r,inside:o,viewId:i})}function oe(t){var e=function(){};return e.prototype=t,ae(new e),t}function ie(t){return t.__MAGIC_SLOW_PROPERTY=1,delete t.__MAGIC_SLOW_PROPERTY,t}function ae(t){if(t===ae)throw ae;return t}var ce={SDKVersion:!0,call:!0,callSync:!0,canIUse:!0,emit:!0,off:!0,on:!0,renderTarget:!0};function se(t,e){if(!e.length)return!1;for(var n=t,r=0,o=e;r<o.length;r++){var i=o[r];if(!(n=n&&n[i]))return!1}return!0}function ue(t,e){if(!e.length)return!1;for(var n=t,r=0,o=e;r<o.length;r++){var i=o[r];if(null==(n=n&&n[i]))return!1}return!0}var pe=function(){function t(t,e,n,r,o){this.collection=new fe,this.collectedCanIUseKeys=it(),this.hasRegisteredCanIUseReportHandler=!1,this.ctx=n,this.getRuntime=r,this.appxDomain=e,this.unrefRuntime=o,this.callSync4PublicNamed=W(this.callSync4PublicNamed,this),this.callSync4PublicNamedInside=W(this.callSync4PublicNamedInside,this),this.call4PublicNamed=W(this.call4PublicNamed,this),this.call4PublicNamedInside=W(this.call4PublicNamedInside,this),this.call=W(this.call,this),this.callSync=W(this.callSync,this),this.canIUse=W(this.canIUse,this),this.call4LinkedContext=W(this.call4LinkedContext,this),this.call4ProtoContext=W(this.call4ProtoContext,this),this.call4PublicCall=W(this.call4PublicCall,this),this.callSync4PublicCall=W(this.callSync4PublicCall,this),ft(e)?this.publicInstance={canIUse:this.canIUse}:this.publicInstance={call:this.call4PublicCall,callSync:this.callSync4PublicCall,canIUse:this.canIUse,emit:t.emit,off:t.off,on:t.on}}return t.prototype.callSync4PublicNamed=function(t,e,n){return xt(this.collection,this.appxDomain,this.ctx,this.getRuntime,1,t,e,n)},t.prototype.callSync4PublicNamedInside=function(t,e,n){return xt(this.collection,this.appxDomain,this.ctx,this.getRuntime,5,t,e,n)},t.prototype.callSync4PublicCall=function(t,e,n){return xt(this.collection,this.appxDomain,this.ctx,this.getRuntime,2,t,e,n)},t.prototype.call4PublicCall=function(t,e,n,r){return kt(this.collection,this.appxDomain,this.ctx,this.getRuntime,2,t,e,n,r)},t.prototype.call4PublicNamed=function(t,e,n,r){return kt(this.collection,this.appxDomain,this.ctx,this.getRuntime,1,t,e,n,r)},t.prototype.call4PublicNamedInside=function(t,e,n,r){return kt(this.collection,this.appxDomain,this.ctx,this.getRuntime,5,t,e,n,r)},t.prototype.removeAPIs=function(t,e){this.collection.removeAPIs(t);for(var n=e?this.publicInstance[e]:this.publicInstance,r=0,o=t;r<o.length;r++){var i=o[r];n&&n[i]&&(n[i]=void 0)}},t.prototype.replaceAPI=function(t,e){this.collection.replaceAPI(t,e)},t.prototype.replacePublicCallProxyAPI=function(t,e){this.collection.replacePublicCallProxyAPI(t,e)},t.prototype.replaceLinkedContextAPI2Proto=function(t,e){this.replaceAPI(t,e),this.publicInstance[t]=W(this.call4ProtoContext,null,t,!1)},t.prototype.getCollection=function(){return this.collection},t.prototype.callSync=function(t,e,n){return xt(this.collection,this.appxDomain,this.ctx,this.getRuntime,0,t,e,n)},t.prototype.canIUse=function(t){return"string"!=typeof t&&(t=String(t)),this.registerCanIUseReportHandler(),this.collectedCanIUseKeys.add(t),function(t,e,n,r,o,i){if(!r.getFlag("disableCanIUseByMetaInBridge")){var a=ct(i);if(void 0!==a)return a}var c=String(i).split(".");if(1===c.length&&ce[c[0]])return!0;var s=0,u=o();if(u){var p=u.getNav().getTopInstance();p&&(s=p.getEngineType())}return!!se(t.getCanIUseMap(r,o,s),c)||!!t.evaluateCanIUse(r,o,e,c)||!!(r.getFlag("enableCanIUseFix4PublicInstanceCheck")?ue:se)(n,c)}(this.collection,this.appxDomain,this.publicInstance,this.ctx,this.getRuntime,t)},t.prototype.call=function(t,e,n,r){return kt(this.collection,this.appxDomain,this.ctx,this.getRuntime,0,t,e,n,r)},t.prototype.call4LinkedContext=function(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return function(t,e,n,r,o,i,a){var c="".concat(o),s=t.getAPIInfoByName(c)||St;if(!_t[c]){jt(s,o);var u=function(t,e,n,r,o,i,a,c,s){return new(Zt||(Zt=function(t){function e(e,n,r,o,i,a,c){var s=t.call(this,e,n,r,o,i,a,void 0,c)||this;return s.cache4ApiInfo=Object.create(null),s.callLinkedCollection=W(s.callLinkedCollection,s),s.callAfterCompositeElementReady=W(s.callAfterCompositeElementReady,s),s.callSyncLinkedCollection=W(s.callSyncLinkedCollection,s),s}return F(e,t),e.prototype.invoke=function(){return K(this.apiInfo.create,this,this.option)},e.prototype.callScopedBridge=function(t,e,n,r){var o=this.appxDomain;o&&!pt(o)&&(e=H(H({},e),{__appxDomain:o.scope}));var i=this.runtime();if(i){var a=i.getBridge();a&&a.callBridge(t,e,n)}},e.prototype.callLinkedCollection=function(t,e,n){return ne(this.getApiInfoFromLinkedCollection(t),this.ctx,this.runtime,!1,!1,this.assignedViewId,this.appxDomain,t,e,n).invoke()},e.prototype.callSyncLinkedCollection=function(t,e){return re(this.getApiInfoFromLinkedCollection(t),this.ctx,this.runtime,!1,!1,this.assignedViewId,this.appxDomain,t,e).invoke()},e.prototype.callAfterCompositeElementReady=function(t,e){var n=this,r=this.getPageInstance();r&&r.whenCompositeElementReady(e.element,(function(){n.callLinkedCollection(t,e)}))},e.prototype.initDependency=function(e,n,r,o){var i=r.createOptionIndex,a=!1===i?null:e[i];t.prototype.initDependency.call(this,a,n,r,null)},e.prototype.getApiInfoFromLinkedCollection=function(t){if(!this.cache4ApiInfo[t]){var e,n=this.apiInfo.linked;e=n&&n[t]||Xt,this.cache4ApiInfo[t]=e}return this.cache4ApiInfo[t]},e}(qt)),Zt)(e,n,i,a,c,t,{caller:void 0,directly:!0,shouldNotRewriteIdOrClass:s,viewId:null})}(s,n,r,0,0,e,c,i,a);return u.invoke()}}(this.collection,this.appxDomain,this.ctx,this.getRuntime,t,n,e)},t.prototype.call4ProtoContext=function(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var o=this.collection.getAPIInfoByName(t),i=jt(o,t);return Ct(o,t,this.appxDomain,this.ctx,this.getRuntime,n,e,{caller:i})},t.prototype.destroy=function(){this.publicInstance=null,this.collection=null,this.unrefRuntime&&this.unrefRuntime()},t.prototype.registerCanIUseReportHandler=function(){var t=this;if(!this.hasRegisteredCanIUseReportHandler){var e=this.getRuntime();this.ctx.getFlag("enableCanIUseReport")&&e.getEventManager().addEventListener("pause",(function(){var n,r,o,i=[];t.collectedCanIUseKeys.forEach((function(t){i.push(t)})),i.length>0&&t.call("remoteLog",{actionId:"event",bizType:"TAC",param4:(n={key:i.join("|"),appxDomain:lt(t.appxDomain)||ft(t.appxDomain)?t.appxDomain.origin:e.getEnv().startupParams.appId},r=!0,n?"string"==typeof n?n:(o=n,o&&"object"==typeof o?Object.keys(o):[]).filter((function(t){return void 0!==n[t]||!r})).map((function(t){var e="".concat(t,"=");return e+=function(t){return null!==t&&"object"==typeof t?"function"==typeof t.toString?String(t):"":String(t)}(n[t]).replace(/,/g,";").replace(/\^/g,"@").replace(/\=/g,"~"),e})).join("^"):""),seedId:"miniapi.canIUse",type:"behavior"}),t.collectedCanIUseKeys.clear()})),this.hasRegisteredCanIUseReportHandler=!0}},t}();var le=function(){function t(t,e,n){var r=this;this.extraInfo={},this.scope4Domain=Object.create(null),this.scopeList4Plugin=[],this.dynamicAPIs={},this.ctx=t,this.getRuntime=e,this.unrefRuntime=n,this.callBridge=function(t,e,n,o,i){return r.callBridgeImpl(t,e,n,o,i)},this.callBridgeSync=function(t,e,n,o){return r.callBridgeSyncImpl(t,e,n,o)},this.on=W(this.on,this),this.off=W(this.off,this),this.emit=W(this.emit,this),this.defaultScope=new pe(this,ut,this.ctx,this.getRuntime)}return Object.defineProperty(t.prototype,"event",{get:function(){return this.getEventManager()},enumerable:!1,configurable:!0}),t.prototype.off=function(t,e){return this.getEventManager().removeEventListener(t,1,e)},t.prototype.on=function(t,e,n){var r=this.extraInfo;if(!r.reportMyOnComposite){var o=!0;try{var i=this.getRuntime().getBehaviorManager().get("reportMyOnComposite");i.report&&(t.startsWith("nbcomponent.")?i.report("myoncomposite"):o=!1)}catch(t){}o&&(r.reportMyOnComposite=!0)}return this.getEventManager().addEventListener(t,1,e,n)},t.prototype.emit=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return this.getEventManager().invokeTypedEvent(t,1,e)},t.prototype.callBridgeImpl=function(t,e,n,r,o){return Pt(this.ctx,this.getRuntime,t,e,n,void 0,o)},t.prototype.callBridgeSyncImpl=function(t,e,n,r){return wt(this.ctx,this.getRuntime,t,e,n,r)},t.prototype.dispose=function(){this.unrefRuntime&&this.unrefRuntime()},t.prototype.callInternalAPI=function(t,e,n,r,o){return function(t,e,n,r,o,i,a){if(e().getEnv()){var c=ht().config;c&&!0===c.noUseInternalAPI?Pt(t,e,n,r,o,i,a):Pt(t,e,"internalAPI",{method:n,param:r,viewId:r&&r.viewId},o,i,a)}}(this.ctx,this.getRuntime,t,e,n,r,o)},t.prototype.callInternalAPISync=function(t,e,n,r){return function(t,e,n,r,o,i){if(e().getEnv()){var a=ht().config;return a&&!0===a.noUseInternalAPI?wt(t,e,n,r,o,i):wt(t,e,"internalAPI",{method:n,param:r,viewId:r&&r.viewId},void 0,i)}}(this.ctx,this.getRuntime,t,e,n,r)},t.prototype.getPluginScopes=function(){return this.scopeList4Plugin},t.prototype.createScope=function(t){if(pt(t))return this.defaultScope;var e=this.scope4Domain,n=lt(t),r=n||ft(t)?t.origin:t.scope;if(!e[r]){var o=e[r]=new pe(this,t,this.ctx,this.getRuntime);n&&this.scopeList4Plugin.push(o)}return e[r]},t.prototype.getScope=function(t){return pt(t)?this.defaultScope:this.scope4Domain[lt(t)||ft(t)?t.origin:t.scope]},t.prototype.getScopeByProviderInfo=function(t){if(function(t){return t&&1===t.providerType}(t)||function(t){return t&&2===t.providerType}(t))return this.scope4Domain[t.providerId];var e=this.getRuntime();return e?e.getKernel().isUsingExtensionMode?this.scope4Domain.app:this.defaultScope:void 0},t.prototype.setDynamicDistributedAPIs=function(t){this.dynamicAPIs=H(H({},this.dynamicAPIs),t)},t.prototype.getDynamicDistributedAPIs=function(){return this.dynamicAPIs},t.prototype.getEventManager=function(){var t,e;return this.eventInstance||(this.eventInstance=(t=this.getRuntime,e=function(){function e(){var t=this;this.eventMap=Object.create(null),this.eventInvokeMap=Object.create(null),this.taskManager=new gt((function(e,n,r){t.addEventListener(e,r?0:1,n)}))}return e.prototype.hasEventListener=function(t,e){var n=this.getCustomTypeContext(t);return e?!(!n[e]||!n[e].length):!!(n[0].length||n[1].length||n[2].length)},e.prototype.addEventListener=function(t,e,n,r){var o=this;if(void 0===r&&(r=n),this.hasCustomEventMatched(t,e,r)||this.eventMap[t][e].push({cache:r,invoke:n}),this.registerListener(t),1===e)return{remove:function(){o.removeEventListener(t,e,r)}}},e.prototype.removeEventListener=function(t,e,n){e?(this.removeEventListener4Type(t,e,n),this.hasEventListener(t)||this.unregisterListener(t)):(this.eventMap[t]=null,this.unregisterListener(t))},e.prototype.removeEventListener4Type=function(t,e,n){var r=this.getCustomTypeContext(t);n||(r[e]=[]),r[e].length&&(r[e]=r[e].filter((function(t){return t.cache!==n})))},e.prototype.invokeTypedEvent=function(t,e,n){if(this.hasEventListener(t)){var r=this.getCustomTypeContext(t)[e];if(r&&r.length)for(var o=0,i=r;o<i.length;o++)i[o].invoke.apply(null,n)}},e.prototype.getCustomTypeContext=function(t){return this.eventMap[t]||(this.eventMap[t]=[[],[],[]]),this.eventMap[t]},e.prototype.hasCustomEventMatched=function(t,e,n){return this.getCustomTypeContext(t)[e].some((function(t){return t.cache===n}))},e.prototype.registerListener=function(e){if(!this.eventInvokeMap[e]){var n=this.eventInvokeMap[e]=W(this.invokeEventImpl,this,e);t().getKernel().__EVENT_ADD_LISTENER__(e,n)}},e.prototype.unregisterListener=function(e){var n=this.eventInvokeMap[e];n&&(t().getKernel().__EVENT_REMOVE_LISTENER__(e,n),this.eventInvokeMap[e]=null)},e.prototype.invokeEventImpl=function(t,e){if(this.hasEventListener(t)){for(var n=this.getCustomTypeContext(t),r=0,o=n[0];r<o.length;r++)G(o[r].invoke,null,e);var i=n[1].length,a=n[2].length;(i||a)&&function(t,e){var n;if(!(!t||!t.data)){var r=t.data,o=(delete(n=H({},r)).appInstanceId,delete n.instanceId,delete n.pageName,n);t.data=o,e(t),t.data=r}else e(t)}(e,(function(t){for(var e=0,r=n[1];e<r.length;e++)G(r[e].invoke,null,t);for(var o=0,i=n[2];o<i.length;o++)G(i[o].invoke,null,t.data)}))}},e}(),new e)),this.eventInstance},t}(),fe=function(){function t(){this.apiMap=Object.create(null),this.publicProxyMap=Object.create(null)}return t.prototype.setCanIUses=function(t){this.typedCanIUseMapInfo=t},t.prototype.removeAPIs=function(t){for(var e=this.apiMap,n=0,r=t;n<r.length;n++)e[r[n]]=void 0},t.prototype.setAPIs=function(t){var e=this.apiMap;ie(e);for(var n=0,r=t;n<r.length;n++){for(var o=r[n],i=o.values,a=0,c=o.keys;a<c.length;a++)e[p=c[a]]=i[p];if(o.namespace)for(var s=0,u=o.keys;s<u.length;s++){var p;e[p=u[s]].avaliableNamespace=o.namespace}}return oe(e),e},t.prototype.replaceAPI=function(t,e){var n=this.apiMap;n[t]&&e&&(n[t]=e)},t.prototype.setPublicCallProxyAPIs=function(t){var e=this.publicProxyMap;ie(e);for(var n=0,r=t;n<r.length;n++)for(var o=r[n],i=o.values,a=0,c=o.keys;a<c.length;a++){var s=c[a];e[s]=i[s]}return oe(e),this.publicProxyMap=e,e},t.prototype.getPublicCallProxyAPIInfoByName=function(t){return this.publicProxyMap[t]},t.prototype.hasPublicCallProxyAPI=function(t){return!!this.publicProxyMap[t]},t.prototype.replacePublicCallProxyAPI=function(t,e){var n=this.publicProxyMap;n[t]&&e&&(n[t]=e)},t.prototype.has=function(t){return!!this.apiMap[t]},t.prototype.evaluateCanIUse=function(t,e,n,r){if(e()){var o=!n||pt(n)?"empty":"".concat(n.type,"_").concat(n.scope);this.typedCanIUseMap||(this.typedCanIUseMap=he(this.typedCanIUseMapInfo,t,e));var i=this.typedCanIUseMap.evaluate,a=i[o];i[o]||(a=i[o]={});var c=this.typedCanIUseMapInfo.evaluate;if(c)for(var s=0,u=c;s<u.length;s++){var p=(0,u[s])(t,e,n,r,a);if(void 0!==p)return p}}return 0},t.prototype.getCanIUseMap=function(t,e,n){if(e()){if(this.typedCanIUseMap||(this.typedCanIUseMap=he(this.typedCanIUseMapInfo,t,e)),1!==n&&2!==n){if(!this.typedCanIUseMap)return{};n=this.typedCanIUseMap.defaultType}return this.typedCanIUseMap?this.typedCanIUseMap[n]:{}}return{}},t.prototype.getAPIMap=function(){return this.apiMap},t.prototype.getAPIInfoByName=function(t){return this.apiMap[t]},t}();function he(t,e,n){for(var r,o=((r={defaultType:t.defaultType,evaluate:{}})[1]=Object.create(null),r[2]=Object.create(null),r),i=0,a=[1,2];i<a.length;i++){var c=a[i],s=t[c];if(s){for(var u=o[c],p=0,l=s(e,n);p<l.length;p++)u=de(u,l[p]);o[c]=u}}return o}function de(t,e){if(!t)return e;if(!e)return t;var n=1===t?{}:H({},t);if("object"==typeof e)for(var r=0,o=Object.keys(e);r<o.length;r++){var i=o[r];n[i]=de(n[i],e[i])}return n}var ye=function(){function t(t){this.callbackMap=Object.create(null),this.implMap=Object.create(null),this.appInstanceId=t}return t.prototype.dispose=function(){var t=this;Object.keys(this.implMap).forEach((function(e){t.removeEventListeners(e)})),this.implMap=null,this.callbackMap=null},t.prototype.addEventListener=function(t,e){if("function"!=typeof e)throw new Error("callback is not function");if(!this.implMap[t]){var n=this.invokeEvent.bind(this,t);this.addEventImpl(t,n),this.implMap[t]=n}this.callbackMap[t]=this.callbackMap[t]||[];var r=this.callbackMap[t];r.indexOf(e)<0&&r.push(e)},t.prototype.removeEventListener=function(t,e){if("function"!=typeof e)throw new Error("callback is not function");this.callbackMap[t]=this.callbackMap[t]||[],this.callbackMap[t]=this.callbackMap[t].filter((function(t){return t!==e})),0===this.callbackMap[t].length&&(this.removeEventImpl(t,this.implMap[t]),delete this.implMap[t])},t.prototype.removeEventListeners=function(t){this.callbackMap[t]=[],this.removeEventImpl(t,this.implMap[t]),delete this.implMap[t]},t.prototype.invokeEvent=function(t,e){for(var n=0,r=this.callbackMap[t]||[];n<r.length;n++)(0,r[n])(e)},t.prototype.addEventImpl=function(t,e){document.addEventListener(t,e)},t.prototype.removeEventImpl=function(t,e){document.removeEventListener(t,e)},t}(),ve=function(){function t(){this.flag=0}return t.prototype.invokeInternalEvent=function(t,e){},t.prototype.addEventListener=function(t,e,n){var r=this;if(n)return{remove:function(){r.removeEventListener(t,e)}}},t.prototype.removeEventListener=function(t,e){},t}(),ge=function(){function t(){}return t.prototype.isFirstPage=function(){return!0},t.prototype.getTopViewId=function(){},t.prototype.getTopInstance=function(){},t}(),me=function(){},be=function(){function t(t,e){this.id="1",this.type=0,this._kernel=t,this._eventManager=e,this._nav=new ge,this._page={getInstanceById:function(){}},this._switch={get:me}}return t.prototype.getLogger=function(){},t.prototype.getMeta=function(){return{getAppBehavior:me,getTabBar:me,isTabPage:me,removeTabBarItem:me,getAppExt:me}},t.prototype.getBehaviorManager=function(){return{report:me}},t.prototype.getApp=function(){return{appInstanceId:this.getKernel().appInstanceId}},t.prototype.getSubPackageManager=function(){},t.prototype.getTypedEventManager=function(){return this._typedEventManager||(this._typedEventManager=new ve),this._typedEventManager},t.prototype.getRegistry=function(){},t.prototype.setRegistry=function(){},t.prototype.getMiniExtensionManager=function(){},t.prototype.getSwitchManager=function(){return this._switch},t.prototype.getPageManager=function(){return this._page},t.prototype.getNav=function(){return this._nav},t.prototype.getEnv=function(){return this._env},t.prototype.setEnv=function(t){this._env=t},t.prototype.setBridge=function(t){this._bridge=t},t.prototype.getBridge=function(){return this._bridge},t.prototype.getKernel=function(){return this._kernel},t.prototype.getEventManager=function(){return this._eventManager},t}(),Ie=function(){};function Oe(t,e,n,r,o){var i="smallfish",a=new ye(i),c={appInstanceId:i,userAgent:"",isDisableAppContext:!1,isUsingExtensionMode:!1,__BRIDGE_CALL__:function(t,e,n,r){"undefined"!=typeof AlipayJSBridge?AlipayJSBridge.call(e,n,r):document.addEventListener("AlipayJSBridgeReady",(function(){AlipayJSBridge.call(e,n,r)}))},__BRIDGE_CALL_SYNC__:function(t,e,n){return{error:10,errorMessage:"callSync is not avaliable in H5WebView"}},__EVENT_ADD_LISTENER__:a.addEventListener.bind(a),__EVENT_REMOVE_LISTENER__:a.removeEventListener.bind(a),__FATAL_ERROR__:Ie,__GET_PLATFORM_ELEMENTS__:function(){return[]},__GET_STARTUP_PARAMS__:function(){return"undefined"!=typeof AlipayJSBridge?AlipayJSBridge.startupParams:{}},__EVAL__:Ie,__IMPORT_SCRIPT__:Ie,__PERFORMANCE__:Ie,__REPORT_ERROR__:Ie,__SET_PAGE_CONTEXT_GETTER__:Ie,__SET_CURRENT_PAGE_ID_GETTER__:Ie,__SET_RUNTIME_ERROR_REPORTER__:Ie,Promise:t,setTimeout:"undefined"==typeof window?e:e.bind(window),clearTimeout:"undefined"==typeof window?n:n.bind(window),setInterval:"undefined"==typeof window?r:r.bind(window),clearInterval:"undefined"==typeof window?o:o.bind(window),getFrameworkContextSymbol:Ie,reportHostError:Ie},s=new be(c,a);return s.setEnv(function(t){var e,n="undefined"!=typeof navigator?navigator.userAgent:"",r=function(t){if(dt)return dt;var e=t.match(/Griver\/(\d+\.\d+\.\d+)/),n=t.match(/AliApp\((\S*)/),r=t.match(/AriverApp\((\S*)/),o=t.match(/GriverApp\((\S*)/),i=!!n&&2===n.length&&n[1].split("/")||!!r&&2===r.length&&r[1].split("/")||!!o&&2===o.length&&o[1].split("/"),a="unknown",c="0.0.0",s=0,u="",p=function(t){if(!yt){var e=t.match(/UCBS\/((\d+)\.(\d+))/);if(e){var n=e[1]||"",r=parseInt(e[2],10),o=parseInt(e[3],10);yt=[n,r,o]}else yt=["",0,0]}return yt}(t),l=!(!p||!p[0]),f=t.indexOf("AlipayIDE")>-1,h=t.match(/Language\/(\S+)/),d=t.indexOf("Android")>-1,y=!d&&!!t.match(/iPhone|iPad/i),v=y?"ios":d?"android":"unknown",g=function(t,e){if(!vt){if(e){var n=t.match(/OS (\d+)_(\d+)(?:_(\d+))?/);if(n){var r=parseInt(n[1],10),o=parseInt(n[2],10),i=parseInt(n[3]||"0",10);vt=[r,o,i]}}vt=vt||[0,0,0]}return vt}(t,y);if(i?(a=i[0],c=i[1].match(/(\d+\.\d+\.\d+)/)[0],u=i[1].match(/([\w.]+)/)[0]):e&&(a="Griver",u=c=e[0]),"string"==typeof c){var m=function(t){for(var e=[],n=0,r=t.split(".");n<r.length;n++){var o=r[n];e.push(parseInt(o,10))}return e}(c);s=(m[0]?1e6*m[0]:0)+(m[1]?1e3*m[1]:0)+(m[2]?1*m[2]:0)}return dt={alipayVersionSequence:s,clientName:a.toLowerCase(),clientVersion:c,clientVersionSequence:s,iosMajorVersion:g[0],iosMinorVersion:g[1],iosPatchVersion:g[2],isAndroid:d,isIDE:f,isIOS:y,isUCWebView:l,language:h?h[1]:"",originalClientName:a,originalClientVersion:u,platform:v,ucMajorVersion:p[1],ucMinorVersion:p[2],ucVersion:p[0]}}(n),o=r.alipayVersionSequence,i=r.clientName,a=r.clientVersion,c=r.clientVersionSequence,s=r.isAndroid,u=r.isIDE,p=r.isIOS,l=r.isUCWebView,f=r.language,h=r.originalClientName,d=r.platform,y=r.ucMajorVersion,v=r.ucMinorVersion,g=r.ucVersion;return{alipayVersionSequence:o,appxVersion:"2.0.0",clientName:i,clientVersion:a,clientVersionSequence:c,isAndroid:s,isIDE:u,isIOS:p,isUCWebView:l,language:f,iosMajorVersion:r.iosMajorVersion,iosMinorVersion:r.iosMinorVersion,iosPatchVersion:r.iosPatchVersion,isPortalWorkerScene:void 0,get originalStartupParams(){return e||(e=t.__GET_STARTUP_PARAMS__()),e},originalClientName:h,packageAndRunSceneType:17,platform:d,startupParams:{get appId(){return e||(e=t.__GET_STARTUP_PARAMS__()),e&&e.appId||""}},ucMajorVersion:y,ucMinorVersion:v,ucVersion:g,userAgent:n}}(c)),s}var Pe=function(){function t(){var t,e=this;this.flags=((t={}).idempotentAPIWhiteList=["getStartupParams","getUserInfo","getRunScene","getSystemInfo","getClientInfo"],t.idempotentAPIBlackList=void 0,t.forbidAPIList=void 0,t.filterAppxDomainForSecurity=void 0,t.invokeBridgeWithCaller=void 0,t.disablePublicCallErrorCodeNormalize=void 0,t.ignoreCallbackWhenInvokeMyCall=void 0,t.enableBridgeResponseProxy=1,t.disableCanIUseByMetaInBridge=void 0,t.authCodeMapping4Aplus=void 0,t.uep=void 0,t.fixTempFilePath=void 0,t.selectorQueryContextClearActions=void 0,t.validSignContractURL=void 0,t.enableOpenEmbeddedMiniProgramScopedBridgeCall=void 0,t.openEmbeddedMiniProgramDefaultBridgeCallExtensionsWhiteList=void 0,t.disableGetWidthFromUA=void 0,t.enableGetterFromState4Audio=void 0,t.compositeElement=void 0,t.cameraContextPermissionCheck=void 0,t.navigateToMiniProgramQuery=1,t.enableExtConfigFromStartupParms=void 0,t.enableNavigateToMiniProgramScopedBridgeCall=void 0,t.disableLoadFontFaceLoadCanvasFont=void 0,t.disableSubscribeMsgJSAPI=void 0,t.fixNavigateBackMiniProgram=void 0,t.iosVersion4GetSystemInfoProxy=void 0,t.disableSystemInfoTaskCache282=void 0,t.enableAppXStorageCache=void 0,t),this.getFlags=function(){return e.flags}}return t.prototype.getFlag=function(t){return this.flags[t]},t.prototype.getCurrentCallStep=function(){},t}();function we(t,e,n,r){var o;Pt=Ae,wt=Ee;var i=function(t,e,n){var r=function(t,e,n){return new le(t,e,n)}(t,e,n);return r}(new Pe,(function(){return r})),a=i.defaultScope;return function(t,e,n,r){var o=r.getCollection();o.setCanIUses(n),o.setPublicCallProxyAPIs(e),function(t,e){var n=e.getCollection();n.setAPIs(t);var r=n.getAPIMap(),o=e.callSync4PublicNamed,i=e.callSync4PublicNamedInside,a=e.call4PublicNamed,c=e.call4PublicNamedInside,s=e.call4LinkedContext,u=e.call4ProtoContext,p=e.publicInstance;ie(p);for(var l=0,f=t;l<f.length;l++){var h=f[l],d=h.namespace,y=p;if(d&&(y[d]||(y[d]={}),ie(y=y[d])),h.linked)for(var v=0,g=h.keys;v<g.length;v++)r[w=g[v]]&&(y[w]=W(s,null,w,!1));else if(h.proto)for(var m=0,b=h.keys;m<b.length;m++)r[w=b[m]]&&(y[w]=W(u,null,w,!1));else for(var I=h.sync?h.inside?i:o:h.inside?c:a,O=0,P=h.keys;O<P.length;O++){var w;if(r[w=P[O]]){var A=r[w].feature;if("function"==typeof A&&!A())continue;y[w]=W(I,null,w)}}d&&oe(y)}oe(p)}(t,r),r.publicInstance}(t,e,((o={defaultType:1,evaluate:[]})[1]=function(){return n},o[2]=function(){return[]},o),a),r.setBridge(i),i}function Ae(t,e,n,r,o,i){e().getKernel().__BRIDGE_CALL__(i,n,r,o)}function Ee(t,e,n,r,o){return e().getKernel().__BRIDGE_CALL_SYNC__(o,n,r)}var _e=Object.prototype.hasOwnProperty,Se=Object.assign||function(t,e){for(var n,r=function(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}(t),o=1;o<arguments.length;o++)for(var i in n=Object(arguments[o]))_e.call(n,i)&&(r[i]=n[i]);return r},xe=function(){return xe=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},xe.apply(this,arguments)};"function"==typeof SuppressedError&&SuppressedError;var ke=Function.prototype.apply.call.bind(Function.prototype.apply);Function.prototype.bind;var Ce,je,Te,De=JSON.stringify,Me=JSON.parse,Ne=encodeURIComponent;function Le(t,e){return e.encode?e.strict?Ne(t).replace(/[!'()*]/g,(function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})):Ne(t):t}Ce||function(){var t="undefined"!=typeof WeakMap;Ce=t?WeakMap:function(){var t=Object.prototype.hasOwnProperty,e=function(t,e,n){Object.defineProperty?Object.defineProperty(t,e,{configurable:!0,value:n,writable:!0}):t[e]=n};function n(t){return Object(t)===t}function r(){if(void 0===this)throw new TypeError("Constructor WeakMap requires 'new'");if(e(this,"_id","_WeakMap_"+i()+"."+i()),arguments.length>0)throw new TypeError("WeakMap iterable is not supported")}function o(e,r){if(!n(e)||!t.call(e,"_id"))throw new TypeError(r+" method called on incompatible receiver "+typeof e)}function i(){return Math.random().toString().substring(2)}return e(r.prototype,"delete",(function(t){if(o(this,"delete"),!n(t))return!1;var e=t[this._id];return!(!e||e[0]!==t||(delete t[this._id],0))})),e(r.prototype,"get",(function(t){if(o(this,"get"),n(t)){var e=t[this._id];return e&&e[0]===t?e[1]:void 0}})),e(r.prototype,"has",(function(t){if(o(this,"has"),!n(t))return!1;var e=t[this._id];return!(!e||e[0]!==t)})),e(r.prototype,"set",(function(t,r){if(o(this,"set"),!n(t))throw new TypeError("Invalid value used as weak map key");var i=t[this._id];return i&&i[0]===t?(i[1]=r,this):(e(t,this._id,[t,r]),this)})),e(r,"_polyfill",!0),r}()}(),new Ce,"undefined"!=typeof SECURITY_FUNCTION_CALL&&(SECURITY_FUNCTION_CALL=function(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return"function"==typeof t?(ke||(ke=Function.prototype.apply.call.bind(Function.prototype.apply)),ke(t,e,n)):t.call.apply(t,function(t,e,n){if(n||2===arguments.length)for(var r,o=0,i=e.length;o<i;o++)!r&&o in e||(r||(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return t.concat(r||Array.prototype.slice.call(e))}([e],n,!1))}),"undefined"!=typeof SECURITY_FUNCTION_APPLY&&(SECURITY_FUNCTION_APPLY=function(t,e,n){return"function"==typeof t?(ke||(ke=Function.prototype.apply.call.bind(Function.prototype.apply)),ke(t,e,n)):t.apply(e,n)}),function(t){t[t.Info=0]="Info",t[t.Warn=1]="Warn",t[t.Error=2]="Error"}(je||(je={})),function(t){t.AppxLifecycle="AppxLifecycle"}(Te||(Te={}));var Re="undefined"!=typeof HAS_INSIDE_FEATURE&&HAS_INSIDE_FEATURE||function(t){return!1};function Be(t){return t&&"openCapability"===t.type}"undefined"!=typeof ZEPHYR_HAS_INSIDE_FEATURE&&ZEPHYR_HAS_INSIDE_FEATURE,"undefined"!=typeof ZEPHYR_IS_INSIDE_UNSUPPORT_ELEMENT&&ZEPHYR_IS_INSIDE_UNSUPPORT_ELEMENT;var Ue="undefined"!=typeof nativeLog&&"undefined"!=typeof mqEnvironment;function Fe(t){return t&&"object"==typeof t?Object.keys(t):[]}function He(t,e){var n,r;return"%s"===t?e="object"==typeof(r=e)?De(r):r+"":"%c"===t?e=function(t){var e=""+t;0===e.indexOf("#")&&(e=e.substr(1)),3===e.length&&(e=e.replace(/(.)/g,"$1$1"));var n,r=parseInt(e,16);return isNaN(r)&&(n="".concat(t," is invalid hex color."),Ue?nativeLog(n,Date.now()):console.error(n,Date.now())),r}(e):"%b"===t?("string"==typeof(n=e)&&(n=n.replace(/^data:(\/|\w|\-|\.)+;base64,/i,"")),e=n):"%d"===t?e=parseInt(e,10):"%f"===t&&(e=parseFloat(e)),e}function Ve(t,e,n){var r;return n=n||{},Fe(e).forEach((function(o){var i,a,c,s=e[o];a=((i=s)||"").match(/(\w+)(%\w)$/i),c={k:i},a&&(c.k=a[1],c.t=a[2]),void 0!==(s=(r=c).k)&&(o in t||o in n)&&void 0===t[s]&&(t[s]=He(r.t,void 0===n[o]?t[o]:n[o]),s!==o&&delete t[o])})),t}function Ye(t){return"[object ArrayBuffer]"===(e=t,Object.prototype.toString.call(e))&&void 0!==t.byteLength;var e}function Ge(t){return e=t,r=function(t){switch(t.arrayFormat){case"index":return function(e,n,r){return null===n?[Le(e,t),"[",r,"]"].join(""):[Le(e,t),"[",Le(r,t),"]=",Le(n,t)].join("")};case"bracket":return function(e,n){return null===n?Le(e,t):[Le(e,t),"[]=",Le(n,t)].join("")};default:return function(e,n){return null===n?Le(e,t):[Le(e,t),"=",Le(n,t)].join("")}}}(n=Se({encode:!0,strict:!0,arrayFormat:"none"},n)),e?Object.keys(e).sort().map((function(t){var o=e[t];if(void 0===o)return"";if(null===o)return Le(t,n);if(Array.isArray(o)){var i=[];return o.slice().forEach((function(e){void 0!==e&&i.push(r(t,e,i.length))})),i.join("&")}return Le(t,n)+"="+Le(o,n)})).filter((function(t){return t.length>0})).join("&"):"";var e,n,r}function Ke(t){return/^application\/x-www-form-urlencoded\b/i.test(t)}var We={allowAbort:!0,returnEvent:{headersReceived:{feature:function(){return Re("a_request_headersReceived_2_8_7")},eventName:"requestTaskHeadersReceived",getPayload:function(t){return{header:t.data.headers}},getTaskId:function(t){return[t.data.requestTaskId]},taskId:function(){return"".concat(this.taskId)}}},t:!0,b:function(t){Ve(t,{header:"headers"}),t.requestTaskId=this.taskId,t.method=(t.method||"GET").toUpperCase(),t.enableSubErrorCode=!0;var e=this.runtime();if(void 0!==t.dataType||"arraybuffer"!==t.responseType&&"text"!==t.responseType)t.dataType=(t.dataType||"json").toLowerCase(),t.responseType=t.dataType;else{var n=e.getBehaviorManager().get("requestBehaviors",0),r=n.standard,o=n.report;o&&o("request.dataType is undefined and has request.responseType",{url:t.url,responseType:t.responseType}),r?t.dataType=t.responseType:(t.dataType=(t.dataType||"json").toLowerCase(),t.responseType=t.dataType)}t.responseType="base64"!==t.responseType&&"arraybuffer"!==t.responseType?"text":t.responseType;var i,a,c,s,u=t.headers=t.headers||{},p="";for(var l in u)if("content-type"==l.toLowerCase()){p=u[l];break}if(p||(p=u["content-type"]="application/json"),this.getEnvPlatformAndroid()&&(t.headers=function(t){for(var e=[],n=0,r=Fe(t);n<r.length;n++){var o=r[n],i={};i[o]=t[o],e.push(i)}return e}(t.headers)),"GET"===t.method?(t.hasAssembleParams=!0,t.url=(a=t.url,c=function(t,e){var n=e;return Ke(t)&&"object"==typeof e&&(n=function(t,e){for(var n={},r=0,o=Fe(e);r<o.length;r++){var i=o[r];n[i]="object"==typeof(a=e[i])?De(a):a}var a;return n}(0,e)),n}(p,t.data),s=c||"","object"==typeof c&&(s=Ge(c)),""===s?a:(/\?/.test(a)?/&$/.test(a)||/\?$/.test(a)||(s="&"+s):s="?"+s,a+s))):"DELETE"===t.method&&(t.hasAssembleParams=!1),"string"!=typeof t.data&&Ye(t.data)||(t.data=function(t,e){return void 0===e?e="":"string"!=typeof e&&(e=Ke(t)?Ge(e):/^application\/json\b/i.test(t)||"object"==typeof e?De(e):e.toString()),e}(p,t.data)),!t.referrerStrategy)if((i=this.appxDomain)&&"empty"===i.type||function(t){return t&&"app"===t.type}(this.appxDomain)){var f=e.getMeta().getAppBehavior();f&&f.requestReferrerStrategy&&("page"===f.requestReferrerStrategy?t.referrerStrategy="page":"index"===f.requestReferrerStrategy&&(t.referrerStrategy="index"))}else if(function(t){return t&&"extension"===t.type}(this.appxDomain)){var h=e.getMiniExtensionManager().getMetaByExtensionId({type:4,value:this.appxDomain.origin});if(h&&h.config&&h.config.behavior){var d=h.config.behavior;d.requestReferrerStrategy&&("page"===d.requestReferrerStrategy?t.referrerStrategy="page":"index"===d.requestReferrerStrategy&&(t.referrerStrategy="index"))}}},a:function(t,e){switch(Ve(t,{header:"headers",statusCode:"status"}),e.dataType){case"json":if(t.data)try{t.data=Me(t.data)}catch(e){void 0!==t.error&&0!==t.error||(t.error=14,t.errorMessage="JSON parse data error")}break;case"base64":t.data&&t.headers&&(t.data=(n=t.data,r=t.headers["Content-Type"]||t.headers["content-type"],n&&n.startsWith&&n.startsWith("data:")||n&&r&&(n="data:".concat(r,";base64,")+n),n));break;case"arraybuffer":if(t.data&&!Ye(t.data))try{t.data=function(t){for(var e=function(t){var e="",n=String(t).replace(/=+$/,"");if(n.length%4==1)throw new Error('"atob" failed');for(var r=0,o=0,i=0,a=0;o=n.charAt(a);)a+=1,~(o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(o))&&(r=i%4?64*r+o:o,i++%4&&(e+=String.fromCharCode(255&r>>(-2*i&6))));return e}(t),n=e.length,r=new Uint8Array(n),o=0;o<n;o++)r[o]=e.charCodeAt(o);return r.buffer}(t.data)}catch(e){void 0!==t.error&&0!==t.error||(t.error=14,t.errorMessage="parse arraybuffer data error")}}var n,r;if("status"in t){var o=t.status+"";/^[45]/.test(o)&&(void 0!==t.error&&0!==t.error||(t.error=19,t.errorMessage="http status error"))}t.appxProfile&&delete t.appxProfile,t.status&&(t.statusCode=t.status),t.headers&&(t.header=t.headers)},a_l:function(t){t.subErrorCode&&delete t.subErrorCode},c:function(){this.callScopedBridge("operateRequestTask",{operationType:"abort",requestTaskId:this.taskId})}},qe="_appx_open_capability_";function ze(t,e){return"".concat(qe).concat(t,"_").concat(e)}function Je(t,e,n){if(0===e.indexOf(qe)){var r=n().getBehaviorManager().get("enableIsolation4OCStorage");if(r.report&&r.report("unexpected key when using storage API: ".concat(e,", type: ").concat(t)),r.standard)return{error:15,errorMessage:"无效key,key不能以".concat(qe,"开头")}}}var $e,Ze,Qe,Xe,tn,en={m:"setTinyLocalStorage",v:function(t){return Je("setStorage",String(t.key),this.runtime)},b:function(t){t.value=De({APDataStorage:t.data}),t.data=t.value,Re("a_setStorage_value_remove_2_8_16")&&this.getFlag("removeSetStorageParamValue")&&(t.value=void 0),Be(this.appxDomain)&&!Re("a_storage_open_capability_2_8_15")?t.key=ze(this.appxDomain.origin,String(t.key)):t.key=String(t.key),t.type="user"},cache:{key:"jsApi_tinyLocalStorage",set:function(t,e){t.cache||(t.cache={}),t.cache[e.key]={data:e.data}}}},nn={m:"getTinyLocalStorage",v:function(t){return Je("getStorage",String(t.key),this.runtime)},cache:{key:"jsApi_tinyLocalStorage",get:function(t,e){t.cache||(t.cache={});var n=t.cache[e.key];if(n&&"object"==typeof n){if(n.data)return{success:!0,data:n.data};if(11===n.error)return{success:!1,error:11}}},update:function(t,e,n){t.cache||(t.cache={}),n.data?t.cache[e.key]={data:n.data}:11===n.error&&(t.cache[e.key]={error:11})}},b:function(t){Be(this.appxDomain)&&!Re("a_storage_open_capability_2_8_15")?t.key=ze(this.appxDomain.origin,String(t.key)):t.key=String(t.key),t.type="user";var e=this.runtime().getNav();t.isAppFirstPage=e.isFirstPage()},a:function(t){if(11===t.error&&(t.data=null,delete t.error,delete t.errorMessage,delete t.success),t.data){var e=Me(t.data);t.data=e.APDataStorage}}};function rn(){if(!Xe){var t=Oe(Promise,setTimeout,clearTimeout,setInterval,clearInterval);Xe=we([],[],[],t)}return Xe}function on(t,e){var n=function(t){if("undefined"==typeof navigator||!navigator||void 0===navigator.userAgent)return function(){throw new Error("API ".concat(t," should not initialized by smallfish. Please check your environment"))}}(t);if(n)return n;var r=(tn||(tn=rn().defaultScope.publicInstance),tn);if(!r[t]){var o=rn().defaultScope;o.getCollection().apiMap[t]=e;var i=o.call4PublicNamed;r[t]=i.bind(null,t)}return r[t]}$e||($e={}),Ze||(Ze={}),Qe||(Qe={});var an=on("setNavigationBar",{v:function(t){if(void 0!==t.frontColor){var e=He("%c",t.frontColor);if(16777215!==e&&0!==e)return{error:2,errorMessage:"frontColor 参数 ".concat(t.frontColor," 颜色值不合法")}}},b:function(t){t.reset&&(t.backgroundColor="#ffffff"),delete t.reset;var e,n="setTitle",r="setTitleColor",o="setBarBottomLineColor",i=this.optionPageViewId;return(e=i?{setTitle:{viewId:i},setTitleColor:{viewId:i},setBarBottomLineColor:{viewId:i}}:{setTitle:{},setTitleColor:{},setBarBottomLineColor:{}})[n]=Ve(e[n],{title:"title%s",image:"image%b"},t),e[r]=Ve(e[r],{backgroundColor:"color%c",frontColor:"frontColor%c"},t),e[o]=Ve(e[o],{borderBottomColor:"color%c"},t),e},d:function(t,e){var n="setTitle",r="setTitleColor",o="setBarBottomLineColor",i={};0!==Fe(t[n]).length&&this.callDefaultBridge(n,t[n],void 0,this.optionPageViewId),0!==Fe(t[o]).length&&(isNaN(t[o].color)?(i.error=2,i.errorMessage="borderBottomColor 颜色值不合法"):this.callDefaultBridge(o,t[o],void 0,this.optionPageViewId)),0!==Fe(t[r]).length?isNaN(t[r].color)?(i.error=2,i.errorMessage="frontColor 需和 backgroundColor 同时设置",e(i)):this.callDefaultBridge(r,t[r],(function(t){i=xe(xe({},t),i),e(i)}),this.optionPageViewId):e(i)}}),cn=on("request",We),sn=on("setStorage",en),un=on("getStorage",nn);const pn=un;var ln=["current","urls"];function fn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}const hn=cn;var dn=["url"];function yn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}const vn=an,gn=sn;var mn=["items","cancelButtonText"];function bn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function In(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}var On=["content"];function Pn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function wn(t,e){var n=t.filter((function(t){return t.match.every((function(t){return t.test(e)}))}));if(n.length){var r=n[0].name;if(n.length>1){var o=n.map((function(t){return t.name})).join(",");En("Multiple clients have been identified(".concat(o,"), and the first one(").concat(r,")is used by default."))}return r}}function An(t,e){return Object.keys(t).reduce((function(n,r){return n["is".concat(r)]=e===t[r],n}),{})}function En(t){console.info("[hylid-env]: ".concat(t))}var _n={WEB:"web",MPWEB:"mpweb",MP:"mp"},Sn={DEMO:"demo",ALIPAY:"alipay",ALIPAYHK:"alipayhk",TNGD:"tngd",GCASH:"gcash",TRUEMONEY:"truemoney",DANA:"dana",KAKAOPAY:"kakaopay",KAKAOTALK:"kakaotalk",NAVERPAY:"naverpay",MPAY:"mpay",TOSSPAY:"toss",HIPAY:"hipay",CHOPE:"chope",VODAPAY:"vodapay",CHANGIPAY:"changipay",OCBC:"ocbc",MANDIRI:"mandiri",NAYAPAY:"nayapay",TINABA:"tinaba",KASPI:"kaspi",H5:"h5",WECHAT:"wechat",TNGD_H5NG:"tngdh5ng"},xn=/miniprogram/i,kn=/^((?!miniprogram).)*$/i,Cn=/griver/i,jn=/^((?!griver).)*$/i,Tn=[{name:Sn.DEMO,match:[/demo/]},{name:Sn.ALIPAYHK,match:[/alipayHK/]},{name:Sn.TNGD,match:[/tngd/]},{name:Sn.GCASH,match:[/gcash/]},{name:Sn.TRUEMONEY,match:[/tmn/]},{name:Sn.DANA,match:[/dana/]},{name:Sn.TOSSPAY,match:[/toss/]},{name:Sn.ALIPAY,match:[/alipay/]}],Dn=[{name:Sn.DEMO,match:[/alipayIDE/i]},{name:Sn.ALIPAYHK,match:[xn,jn,/AlipayClientHK/]},{name:Sn.TNGD,match:[xn,/TNGKit|Touch 'n Go/]},{name:Sn.GCASH,match:[xn,Cn,/GCash/]},{name:Sn.TRUEMONEY,match:[xn,Cn,/TrueMoney/]},{name:Sn.ALIPAY,match:[xn,jn,/alipay/i]},{name:Sn.DEMO,match:[xn,Cn]}];function Mn(){return wn(Dn,window.navigator.userAgent)}var Nn=[{name:Sn.ALIPAYHK,match:[kn,jn,/AlipayClientHK/]},{name:Sn.TNGD,match:[kn,Cn,/TNGKit|Touch 'n Go/]},{name:Sn.TNGD_H5NG,match:[kn,/TNGKit|Touch 'n Go/,/IAPWebH5NG/]},{name:Sn.GCASH,match:[kn,Cn,/GCash/]},{name:Sn.TRUEMONEY,match:[kn,Cn,/TrueMoney/i]},{name:Sn.KAKAOPAY,match:[kn,/PAYCLIENT|KAKAOTALK|KAKAOPAY/]},{name:Sn.KAKAOTALK,match:[kn,/ALIPAYCONNECT_KAKAO_TALK/]},{name:Sn.NAVERPAY,match:[kn,/NAVER/]},{name:Sn.MPAY,match:[kn,/mpay|macaupay/i]},{name:Sn.TOSSPAY,match:[kn,/Toss/i]},{name:Sn.ALIPAY,match:[kn,jn,/AlipayClient/]},{name:Sn.DEMO,match:[kn,Cn,/GriverDemo/]}];function Ln(){return wn(Nn,window.navigator.userAgent)||Sn.H5}var Rn=function(){var t,e;if("undefined"!=typeof wx||"undefined"!=typeof my&&"string"==typeof my.SDKVersion)t="undefined"!=typeof wx?Sn.WECHAT:wn(Tn,my.getSystemInfoSync().app),e=_n.MP;else{var n=function(){var t,e=((null===(t=window.location.search)||void 0===t?void 0:t.match(/__app__=([^&]*)/))||[])[1],n=(window.location.search.match(/__platform__=([^&]*)/)||[])[1];(e||n)&&localStorage.setItem("__hy_env__",JSON.stringify({client:e,platform:n}));var r=localStorage.getItem("__hy_env__");return r?JSON.parse(r):{}}();n.platform?(e=n.platform,t=n.client||("mpweb"===e?Mn():Ln())):(t=n.client||Mn())?e=_n.MPWEB:(t=Ln(),e=_n.WEB)}return e&&t||En("Cannot identify your client."),{client:t,platform:e}}(),Bn=Rn.client,Un=Rn.platform;An(Sn,Bn),An(_n,Un);var Fn=!1,Hn=[];function Vn(t){return Hn.push(t),function(){Hn=Hn.filter((function(e){return e!==t}))}}function Yn(e){return Fn||(document.addEventListener("onToWebViewMessage",(function(t){var e=t.data.res;if(e&&"message"===e.type){var n=JSON.parse(e.data);Hn.forEach((function(t){return t(n)}))}})),Fn=!0),t((function(){window.AlipayJSBridge.call("postWebViewMessage",{type:"message",detail:e})}))}var Gn={};function Kn(t,e,n){var r=t+"_"+Math.floor(1e6*Math.random());e&&(Gn[r]=e),Yn({source:"hylid",type:"apiCall",api:t,serialId:r,options:e,config:n,isSync:null==n?void 0:n.isSync})}Vn((function(t){var e,n=t,r=n.serialId;if(r&&Gn[r]){var o=Gn[r],i=n.result;if("callback"===(null===(e=n.config)||void 0===e?void 0:e.type)){var a=i||{},c=a._data_;return"success"===a._type_?o(c):o(void 0,c)}var s=o||{},u=s.success,p=s.fail,l=s.complete,f=i||{},h=f._data_,d=f._type_;d?("success"===d&&(null==u||u(h)),"fail"===d&&(null==p||p(h)),null==l||l(h)):((null==i?void 0:i.error)?null==p||p(i):null==u||u(i),null==l||l(i)),delete Gn[r]}})),Kn.onMessage=Vn,Kn.postMessage=Yn,Kn.broadcastGlobalData=function(t,e){Yn({source:"hylid",type:"broadcast",from:window.location.href,key:t,result:e})},Kn.onReceiveGlobalData=function(t,e){return Vn((function(n){var r=n;if("hylid"===r.source&&"broadcast"===r.type&&r.key===t){var o=r.result||{},i=o._data_;return"success"===o._type_?e(i,void 0,r.from):e(void 0,i,r.from)}}))},Kn.onPageEvent=function(t,e){return Yn({source:"hylid",type:"pageEvent",event:t}),Vn((function(n){var r=n;if("hylid"===r.source&&"pageEvent"===r.type&&r.event===t){var o=r.result||{},i=o._data_;return"success"===o._type_?e(i):e(void 0,i)}}))};var Wn,qn={NOTFOUND:{code:-1,message:function(t){return"".concat(t," is not found")}},NOTALLOWED:{code:-2,message:function(t){return"".concat(t," is not allowed")}},INVALID:{code:-3,message:function(t){return"".concat(t," is invalid")}},NOTBIND:{code:-4,message:function(t){return"".concat(t," exec fail, webviewBridge not bind context")}},PARAMS_ERROR:{code:-5,message:function(t){return"".concat(t," exec fail, params error")}}},zn=((Wn={})[_n.MP]=function(t,e,n){var r=(n||{}).type,o=void 0===r?"async":r;return"sync"===o||(null==n?void 0:n.isSync)?my[t](e):("async"===o&&(my[t]?my[t](e):my.call(t,e)),"callback"===o&&my[t](e),"attribute"===o?my[t]:void 0)},Wn[_n.MPWEB]=Kn,Wn[_n.WEB]=e,Wn);function Jn(t,e,n){return Un?zn[Un](t,e,n):function(t,e,n){var r;void 0===n&&(n={});var o=n.type,i=void 0===o?"async":o,a=function(t,e){void 0===e&&(e="");var n=qn.NOTFOUND;return{errorCode:n.code,errorMessage:(0,n.message)(e),errorSouce:"hylid"}}(0,t);if("sync"===i)return a;"callback"===i&&(null==e||e(a)),"async"===i&&(null===(r=null==e?void 0:e.fail)||void 0===r||r.call(e,a))}(e,n)}var $n=["flowType"];var Zn=["fileName","fileType"];function Qn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Xn(t){return Xn="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},Xn(t)}var tr="";function er(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function nr(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 r,o,i=[],a=!0,c=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);a=!0);}catch(t){c=!0,o=t}finally{try{a||null==n.return||n.return()}finally{if(c)throw o}}return i}}(t,e)||function(t,e){if(t){if("string"==typeof t)return er(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)?er(t,e):void 0}}(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.")}()}var rr=["success","fail","complete"],or=function(t){return function(e){return new Promise((function(n,r){var o=e||{},a=o.success,c=o.fail,s=o.complete,u=i(o,rr);t(u,(function(t){n(t),null==a||a(t),null==s||s(t)}),(function(t){r(t),null==c||c(t),null==s||s(t)}))}))}},ir=function(t){return function(e){return toString.call(e)==="[object ".concat(t,"]")}},ar=(ir("RegExp"),ir("String"),ir("Function"),ir("Object")),cr=(ir("Number"),Array.isArray,ir("Boolean"),function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return e.reduce((function(t,e){if(!e)return t;for(var n=Object.entries(e),r=n.length,i=0;i<r;i++){var a=nr(n[i],2),c=a[0],s=a[1];ar(s)?t[c]=cr(t[c],s):Object.assign(t,o({},c,s))}return t}),{})}),sr=n(3563),ur=n(5731),pr=n.n(ur);function lr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function fr(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?lr(Object(n),!0).forEach((function(e){o(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):lr(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var hr=function(t){return t.openInApp="openinapp",t.openOtherApp="openotherapp",t.openBizScene="openbizscene",t.openPayCodePage="openpaycodepage",t.openApPayCodePage="openappaycodepage",t.openScanPage="openscanpage",t.openInBrowser="openinbrowser",t}(hr||{}),dr=function(t){return t.scan="scan",t.payCode="payCode",t}(dr||{}),yr="caprMode=sync";var vr=function(){return Jn("startApp",{appId:"20000056"})},gr=function(){return Jn("startApp",{appId:"20000056"})},mr=function(){return Jn("startApp",{appId:"10000007"})},br=function(t){return Jn("pushWindow",t)},Ir=function(t){return Jn("openInBrowser",t)};function Or(t){var e=t.appId,n=t.path,r=t.launchParams,o="alipays://platformapi/startapp?appId=".concat(e);n&&(o+="&page=".concat(encodeURIComponent(n)));var i="";return r&&(i=Object.keys(r).map((function(t){return"".concat(t,"=").concat(r[t])})).join("&"),o+="&query=".concat(encodeURIComponent(i))),null!=r&&r.chInfo&&(o+="&chInfo=".concat(r.chInfo)),o}var Pr=function(t){return Jn("pushWindow",{url:Or(t)})};const wr=or((function(t,e,n){!function(t,e,n){if(t)if(t.startsWith("aplus://"))!function(t,e,n){var r,o=new(pr())(t,!0),i=o.host,a=o.pathname,c=o.query;switch(i){case hr.openInApp:e.openInApp(fr({path:a,url:c.url||""},n));break;case hr.openOtherApp:console.log("### openCustomScheme",hr.openOtherApp);var s=c.appId,u=void 0===s?"":s,p=c.path,l=c.launchParams,f=void 0===l?"":l,h=(0,sr.Qc)(f);e.openOtherApp(fr({appId:u,path:p,launchParams:h},n));break;case hr.openBizScene:console.warn("该 API 已弃用, 请使用 aplus://openApPayCodePage 等链接替代"),c.sceneCode===dr.scan?e.openScanPage(n):c.sceneCode===dr.payCode&&e.openApPayCodePage(n);break;case hr.openScanPage:e.openScanPage(n);break;case hr.openPayCodePage:e.openPayCodePage(n);break;case hr.openApPayCodePage:e.openApPayCodePage(n);break;case hr.openInBrowser:e.openInBrowser(fr({url:c.url||""},n));break;default:console.log("[openCustomScheme] 不支持的 routeType: ",i),n.fail&&n.fail((r="openCustomScheme ".concat(i),{error:-102,errorMessage:"[".concat(r,"]: Not Support")}))}}(t,e,n);else if(t.startsWith("/")){var r=function(t){var e=location.pathname.replace(/\/[^/]+.html/,""),n="".concat(location.protocol,"//").concat(location.host).concat(e).concat(t);if(location.search.includes(yr)){var r=n.includes("?")?"&":"?";return"".concat(n).concat(r).concat(yr)}return n}(t);e.openInApp(fr({url:r},n))}else e.openWebURL(fr({url:t},n))}(t.url,{openWebURL:br,openInApp:br,openOtherApp:Pr,openInBrowser:Ir,openPayCodePage:gr,openApPayCodePage:vr,openScanPage:mr},{success:e,fail:n})})),Ar=br,Er=br,_r=Pr,Sr=Ir,xr=gr,kr=vr,Cr=mr;function jr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Tr(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?jr(Object(n),!0).forEach((function(e){o(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):jr(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}const Dr=function(t){var e=t.appId,n=t.workspaceId,r=void 0===n?"default":n,i=t.defaultGateway,a=t.defaultHeaders,c=t.request,s=e&&r?o({AppId:e,workspaceId:r},"X-CORS-".concat(e,"-").concat(r),"1"):{};return or((function(t,e,n){var r=t.gateway,o=t.operationType,u=t.headers,p=t.requestData,l=t.timeout;c({url:r||i,method:"POST",timeout:l,headers:Tr(Tr(Tr({"Content-Type":"application/json"},a),{},{"Operation-Type":o},s),u),data:p,success:function(t){e({headers:(null==t?void 0:t.headers)||{},resData:(null==t?void 0:t.data)||{}})},fail:n})}))},Mr=Dr;var Nr=["success"];function Lr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}var Rr={};const Br=function(t){return Rr=cr(Rr,t)},Ur=Br;var Fr=function(){return Fr=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Fr.apply(this,arguments)},Hr=function(t){return function(e){return new Promise((function(n,r){var o=Fr(Fr({},e),{success:function(t){var r;n(t),null===(r=null==e?void 0:e.success)||void 0===r||r.call(e,t)},fail:function(t){var n;r(t),null===(n=null==e?void 0:e.fail)||void 0===n||n.call(e,t)}});t(o)}))}};function Vr(t,e,n,r,o,i,a){try{var c=t[i](a),s=c.value}catch(t){return void n(t)}c.done?e(s):Promise.resolve(s).then(r,o)}function Yr(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){Vr(i,r,o,a,c,"next",t)}function c(t){Vr(i,r,o,a,c,"throw",t)}a(void 0)}))}}var Gr=n(2841),Kr=n.n(Gr),Wr=n(9174),qr=n.n(Wr);function zr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Jr(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?zr(Object(n),!0).forEach((function(e){o(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):zr(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function $r(t,e){var n=ao();return($r=function(t,e){return n[t-=0]})(t,e)}var Zr,Qr={TOSS:ro(0,-318,0,-325)+ro(0,-323,0,-291)+io(258,247)+io(236,255)+"8v0XGf"+no(0,-440,0,0,-455),MPAY:no(0,-464,0,0,-474)+"6C1JVc"+no(0,-488,0,0,-496)+io(235,249)+no(0,-482,0,0,-464),ALIPAY:io(288,272)+no(0,-502,0,0,-510)+io(202,231)+ro(0,-241,0,-266)+io(296,285)+ro(0,-352,0,-322)},Xr={TOSS:ro(0,-276,0,-279)+io(256,245)+ro(0,-340,0,-309)+"ds.aut"+io(266,239)+ro(0,-283,0,-297),MPAY:no(0,-471,0,0,-463)+io(257,245)+ro(0,-307,0,-296)+ro(0,-280,0,-263)+"h.authlogin",ALIPAY:ro(0,-266,0,-279)+io(245,245)+"svoyag"+no(0,-439,0,0,-447)+no(0,-523,0,0,-495)+no(0,-511,0,0,-481)},to=function(t,e){var n={c:function(t,e){return t===e},d:s(0,0,-552,-521),e:function(t,e){return t(e)}},r=Qr[e];function o(t,e,n,r,o){return $r(r-948,t)}if(!r&&n[a(-688,0,0,0,-699)](n[s(0,0,-507,-495)],n[s(0,0,-501,-495)]))return{};var i=Date.now();function a(t,e,n,r,o){return $r(t- -702,o)}var c=r+"&ts="+i+"&requestData"+s(0,0,-510,-543)+t[s(0,0,-497,-496)+"tData"]+o(970,0,0,1e3)+"tionTy"+o(1033,0,0,1011)+t[s(0,0,-511,-484)+s(0,0,-497,-511)+"e"];function s(t,e,n,r,o){return $r(r- -549,n)}return{signV2:n[s(0,0,-545,-529)](qr(),c)[a(-652,0,0,0,-668)+"ng"](),ts:i}};function eo(){var t={c:r(-579,0,-597)+r(-587,0,-558)+"cdef",d:function(t,e){return t<e},e:function(t,e){return t!==e},f:r(-520,0,-550),g:r(-539,0,-546),h:function(t,e){return t*e},i:function(t,e){return t|e},j:function(t,e){return t&e}},e=[],n=t[r(-585,0,-587)];function r(t,e,n,r,o){return $r(n- -601,t)}for(var o=0;t[i(0,-57,0,-80)](o,36);o++)t[r(-570,0,-581)](t[i(0,-112,0,-115)],t[a(442,459)])&&(e[o]=n.substr(Math[r(-540,0,-541)](t[i(0,-87,0,-105)](Math[i(0,-123,0,-90)](),16)),1));function i(t,e,n,r,o){return $r(r- -134,e)}function a(t,e,n,r,o){return $r(e-426,t)}return e[14]=a(439,429),e[19]=n[r(-581,0,-594)](t[i(0,-151,0,-124)](t[a(455,483)](e[19],3),8),1),e[8]=e[13]=e[18]=e[23]=i(0,-65,0,-75),e[a(465,465)]("")}function no(t,e,n,r,o){return $r(o- -511,e)}function ro(t,e,n,r,o){return $r(r- -327,e)}var oo=function(){var t=Yr(Kr().mark((function t(e){var n,r,o,i,a,c,s,u,p,l,f,h,d,y,v,g,m,b,I,O,P,w,A,E,_,S,x;return Kr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return v=function(t,e,n,o,i){return $r(t-r.c,e)},s=function(t,e,n,r,o){return $r(n-926,t)},i=function(t,e,n,r,i){return $r(r-o.c,t)},r={c:403},o={c:384},a={c:function(t,e){return t*e},d:function(t){return t()},e:function(t){return t()},f:function(t,e,n){return t(e,n)},g:function(t,e){return t(e)},h:function(t,e){return t!==e},i:s((n={c:934,d:974,e:417,f:381,g:398,h:972,i:969,j:996,k:960,l:935,m:905,n:947,o:417,p:429,q:423,r:438,t:416,u:426,v:439,w:958,x:986,ah:977,ai:961,aj:444,ak:470,al:461,am:470,an:997,ao:383,ap:397,aq:401,ar:396,as:428,at:916,au:931,av:917,aw:465,ax:446,ay:374,az:399,aA:390,aB:394,aC:955,aD:954,aE:926,aF:953,aG:995,aH:1011,aI:420,aJ:397,aK:375,aL:415,aM:471,aN:467,aO:477,aP:384,aQ:973,aR:946,aS:948,aT:968,aU:967,aV:964,aW:998,aX:954,aY:949,aZ:445,b0:413,b1:419,b2:441,b3:418}).c,941,966,961,n.d),j:function(t,e){return t-e},k:function(t,e){return t*e},l:function(t,e){return t-e},m:"nBZiR"},c=a[i(n.e,405,n.f,n.g,421)](60,1e3),u=a[s(924,n.h,940,928,n.i)](3600,1e3),p=e.httpRequest,l=e.getAuthParams,f=e.saveAuthParams,h=e.getAuthCode,d=e.getAppId,y=e.siteName,g=Xr[y],t.prev=7,t.next=10,a.d(l);case 10:return I=t.sent,O="",O=null!=I&&I[s(1e3,n.j,971,940,977)]&&null!=I&&null!==(m=I[s(949,967,971,n.k,982)])&&void 0!==m&&m[s(967,964,n.l,n.m,n.n)]?null==I||null===(b=I[v(448,468,n.o,n.p,445)])||void 0===b?void 0:b.token:a[v(423,n.q,n.g,n.r,n.t)](eo),t.next=15,a[i(n.u,n.v,460,n.r,406)](d);case 15:return P=t.sent,w=P.appId,A={instanceId:O,appId:w},t.next=20,a[s(n.w,n.x,980,n.ah,n.ai)](h);case 20:return E=t.sent,A["authCo"+v(n.aj,430,n.ak,451,437)]=E[v(n.al,n.v,n.am,446,438)+s(975,n.an,967,966,943)]||"",_={operationType:g,requestData:JSON[i(n.ao,n.ap,421,n.aq,397)+i(390,374,373,n.ar,367)]([A])},S=a.f(to,_,y),t.next=26,a[v(436,433,443,440,451)](p,Jr(Jr({},_),{},{headers:Jr({},S)}));case 26:if((x=t.sent)&&x[v(n.as,459,400,395,447)+s(n.at,n.au,947,n.av,937)]){t.next=32;break}if(!a[v(432,n.aw,n.as,n.q,n.ax)](a[i(410,384,364,394,n.ay)],a[i(n.az,411,n.aA,n.aB,424)])){t.next=31;break}t.next=32;break;case 31:throw x;case 32:a.g(f,{sessionIdLastTime:Date[s(n.aC,n.aD,n.aE,n.aF,923)](),sessionIdExpiresTime:a[s(1008,n.aG,983,n.aH,962)](a.k(x[i(371,n.aI,365,n.aJ,n.aK)+i(n.aL,429,389,411,392)+v(449,n.aM,n.aN,416,n.aO)]||0,1e3),c),clientKeyLastTime:Date[i(n.aA,414,405,n.aP,360)](),clientKeyExpiresTime:a[s(n.aQ,966,961,n.l,n.aR)](a.c(x[s(n.aS,949,n.aT,n.aU,n.aV)+"KeyExpireTime"]||0,1e3),u),clientKey:x[s(n.aW,983,968,998,991)+s(971,n.aX,n.aY,975,922)]||"",openId:x[s(949,n.n,937,926,952)]||"",token:O});case 33:return t.prev=33,a[v(432,n.aZ,n.b0,n.b1,418)](a[i(n.u,n.aJ,n.b2,n.b3,434)],a.m)||(Zr=void 0),t.finish(33);case 36:case"end":return t.stop()}}),t,null,[[7,,33,36]])})));return function(e){return t.apply(this,arguments)}}();function io(t,e,n,r,o){return $r(e-223,t)}function ao(){var t=["now","e403eb","Y2RnWk","4","012345","ae","=","substr","8e8bf2","token","i","openId","ify","sessio","c","4fBX3i","h.auth","string","srewar","f","e","s","payplu","Key","x3pTVp","succes","8yrZzV","nExpir","YvQOw","h","login","svoyag","9uI6g1","g","m","l","5yJGy4","aLhI5S","ionTyp","join","WrLog","de","client","6789ab","random","data","eTime","Ctk","ap.ali","094d20","toStri","JlqiC","&opera","reques","d","pgeFL","Qh","j","authCo","-","floor","a17e0f","0ba7fc","pe=","er.aut","operat"];return(ao=function(){return t})()}var co=function(){var t=Yr(Kr().mark((function t(e){var n,r,o,i,a,c,s,u,p,l,f,h,d,y;return Kr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return y=function(t,e,n,o,i){return $r(i-r.c,n)},d=function(t,e,n,r,o){return $r(e-24,r)},p=function(t,e,n,r,i){return $r(t-o.c,r)},n={c:21,d:42,e:77,f:521,g:570,h:27,i:44,j:500,k:547,l:52,m:70,n:39,o:25,p:87,q:75,r:56,t:53,u:24,v:78,w:65,x:34,as:32},r={c:519},o={c:58},i={c:function(t){return t()},d:function(t,e){return t&&e},e:function(t,e){return t<e},f:function(t,e){return t-e},g:function(t,e){return t===e},h:"cgVrj",i:function(t,e){return t(e)}},a=e.isForceLogin,c=void 0!==a&&a,s=e.getAuthParams,t.next=12,i[d(n.c,38,17,n.d,71)](s);case 12:if(u=t.sent,l=u[d(n.e,69,58,73,67)]||{},f=l.sessionIdExpiresTime,h=l.sessionIdLastTime,!(i.d(!c,h)&&f&&i[y(n.f,548,n.g,545,539)](i[d(n.h,43,52,26,n.i)](Date[y(n.j,530,534,n.k,519)](),h),f))){t.next=19;break}if(!i[d(n.l,57,n.m,n.n,n.o)](i[p(n.p,n.q,118,n.r,76)],i[d(27,n.t,28,n.u,n.v)])){t.next=19;break}return t.abrupt("return");case 19:return Zr=Zr||i[d(n.w,n.x,42,42,n.as)](oo,e),t.next=22,Zr;case 22:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),so=["headers"];function uo(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function po(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?uo(Object(n),!0).forEach((function(e){o(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):uo(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}const lo=cn;var fo=function(){return fo=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},fo.apply(this,arguments)};const ho=un,yo=sn;var vo=Hr((function(t){var n=t||{},r=n.scopes,o=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]])}return n}(n,["scopes"]);e("getAuthCode",fo(fo({scopeNicks:r},o),{success:function(t){var e;return null===(e=o.success)||void 0===e?void 0:e.call(o,fo(fo({},t),{authCode:t.authCode||t.authcode}))}}))})),go=Hr(ho),mo=Hr(yo);const bo=function(t){return function(t,e,n,r,o,a){var c="auth-login-storage",s=null,u=function(){return s||(s=e({key:c}))},p=function(t){return s={data:t},n({key:c,data:t})},l=or(function(){var e=Yr(Kr().mark((function e(n,c,s){var l,f,h,d,y;return Kr().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return l=n.headers,"string"!=typeof(f=i(n,so)).requestData&&(f.requestData=JSON.stringify(f.requestData)),h=function(t){var e=t.headers,n=t.operationType,r=t.requestData;return new Promise((function(t,o){a(po(po({},f),{},{requestData:r,headers:po(po(po({},l),e),{},{"Operation-Type":n}),operationType:n,success:function(e){t(null==e?void 0:e.resData)},fail:function(t){o(t)}}))}))},e.prev=3,e.next=6,co({httpRequest:h,isForceLogin:!1,getAuthParams:u,saveAuthParams:p,getAuthCode:r,getAppId:o,siteName:t});case 6:e.next=12;break;case 8:return e.prev=8,e.t0=e.catch(3),s(e.t0),e.abrupt("return");case 12:d=to(f,t),y=po(po({},l),d),a(po(po({},f),{},{headers:y,success:function(e){var n,i;"2000"===(null===(n=e.headers)||void 0===n||null===(i=n["result-status"])||void 0===i?void 0:i.toString())?co({httpRequest:h,isForceLogin:!0,getAuthParams:u,saveAuthParams:p,getAuthCode:r,getAppId:o,siteName:t}).then((function(){a(po(po({},f),{},{headers:y,success:c,fail:s}))})).catch((function(t){s(t)})):c(e)},fail:s}));case 15:case"end":return e.stop()}}),e,null,[[3,8]])})));return function(t,n,r){return e.apply(this,arguments)}}());return l}("ALIPAY",go,mo,(function(){var t;return vo({scopes:["auth_base"],appId:(null===(t=Br({}))||void 0===t?void 0:t.appId)||""})}),(function(){var t;return Promise.resolve({appId:(null===(t=Br({}))||void 0===t?void 0:t.appId)||""})}),Dr({appId:"WALLET_CN",workspaceId:t.workspaceId||"default",defaultGateway:"https://imgs-sea-global.alipay.com/imgw.htm",request:lo}))(t)};var Io=function(t){return function(e){return toString.call(e)==="[object ".concat(t,"]")}};function Oo(t,e){if(!t)return e;var n;try{n=JSON.parse(t)}catch(t){n=e}return n}Io("Function"),Io("String"),function(){try{return/iPad|iPhone|iPod/.test(window.navigator.userAgent)&&!window.MSStream}catch(t){return!1}}();var Po=["name","callback"];function wo(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}var Ao=Hr((function(t){return e("getSystemInfo",t,{type:"async"})})),Eo=["name"];function _o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}const So={addPhoneContact:function(t){return e("addPhoneContact",t,{type:"async"})},chooseImage:function(t){return e("chooseImage",t,{type:"async"})},exitApp:function(t){return e("exitApp",t,{type:"async"})},getAppToken:function(t){return e("getAppToken",t,{type:"async"})},getBatteryInfo:function(t){return e("getBatteryInfo",t,{type:"async"})},getClipboard:function(t){return e("getClipboard",t,{type:"async"})},getFileInfo:function(t){return e("getFileInfo",t,{type:"async"})},getImageInfo:function(t){return e("getImageInfo",t,{type:"async"})},getSavedFileInfo:function(t){return e("getSavedFileInfo",t,{type:"async"})},getSavedFileList:function(t){return e("getSavedFileList",t,{type:"async"})},getScreenBrightness:function(t){return e("getScreenBrightness",t,{type:"async"})},getServerTime:function(t){return e("getServerTime",t,{type:"async"})},getSetting:function(t){return e("getSetting",t,{type:"async"})},getSystemInfo:function(t){return e("getSystemInfo",t,{type:"async"})},hideKeyboard:function(t){return e("hideKeyboard",t,{type:"async"})},hideLoading:function(t){return e("hideLoading",t,{type:"async"})},hideToast:function(t){return e("hideToast",t,{type:"async"})},makePhoneCall:function(t){return e("makePhoneCall",t,{type:"async"})},navigateBackMiniProgram:function(t){return e("navigateBackMiniProgram",t,{type:"async"})},navigateToMiniProgram:function(t){return e("navigateToMiniProgram",t,{type:"async"})},openDocument:function(t){return e("openDocument",t,{type:"async"})},openSetting:function(t){return e("openSetting",t,{type:"async"})},prompt:function(t){return e("prompt",t,{type:"async"})},removeSavedFile:function(t){return e("removeSavedFile",t,{type:"async"})},rpc:function(t){return e("rpc",t,{type:"async"})},saveFile:function(t){return e("saveFile",t,{type:"async"})},scan:function(t){return e("scan",t,{type:"async"})},setClipboard:function(t){return e("setClipboard",t,{type:"async"})},setKeepScreenOn:function(t){return e("setKeepScreenOn",t,{type:"async"})},setScreenBrightness:function(t){return e("setScreenBrightness",t,{type:"async"})},showLoading:function(t){return e("showLoading",t,{type:"async"})},signContract:function(t){return e("signContract",t,{type:"async"})},startApp:function(t){return e("startApp",t,{type:"async"})},crossPay:function(t){return e("crossPay",t,{type:"async"})},vibrate:function(t){return e("vibrate",t,{type:"async"})},easyShare:function(t){return e("easyShare",t,{type:"async"})},homeAddAppToMyApps:function(t){return e("homeAddAppToMyApps",t,{type:"async"})},homeCanAddAppToMyApps:function(t){return e("homeCanAddAppToMyApps",t,{type:"async"})},postNotification:function(t){return e("postNotification",t,{type:"async"})},getMainSelectedCity:function(t){return e("getMainSelectedCity",t,{type:"async"})},chooseDistrict:function(t){return e("chooseDistrict",t,{type:"async"})},setTransparentTitle:function(t){return e("setTransparentTitle",t,{type:"async"})},alert:function(t){var n=t||{};e("alert",function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?c(Object(n),!0).forEach((function(e){o(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({message:n.content,button:n.buttonText},i(n,a)))},choosePhoneContact:function(t){e("contact",t)},clearStorage:function(t){e("clearTinyLocalStorage",t)},confirm:function(t){var n=t||{};e("confirm",function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?u(Object(n),!0).forEach((function(e){o(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({okButton:n.confirmButtonText,cancelButton:n.cancelButtonText,message:n.content},i(n,s)))},datePicker:function(t){var n=t||{},r=n.format,a=(n.currentDate,n.startDate),c=n.endDate,s=i(n,p);e("datePicker",function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?l(Object(n),!0).forEach((function(e){o(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({mode:f[r||"yyyy-MM-dd"],beginDate:a,minDate:a,maxDate:c},s))},downloadFile:function(t){var n,r,a=t||{},c=a.url,s=i(a,h),u=null===(n=c.match(/\.(\w+)$/))||void 0===n?void 0:n[1];e("downloadFile",function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?d(Object(n),!0).forEach((function(e){o(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({url:c,type:null===(r=y.find((function(t){return t.exts.includes(u||"png")})))||void 0===r?void 0:r.type},s))},getAuthCode:function(t){var n=t||{},r=n.scopes,o=i(n,v);e("getAuthCode",m(m({scopeNicks:r},o),{},{success:function(t){var e;return null===(e=o.success)||void 0===e?void 0:e.call(o,m(m({},t),{},{authCode:t.authCode||t.authcode}))}}))},getLocation:function(t){var n=t||{},r=n.type,a=i(n,b);e("getCurrentLocation",function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?I(Object(n),!0).forEach((function(e){o(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):I(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({bizType:(null==t?void 0:t.bizType)||"alipayIntl",requestType:r},a))},getNetworkType:function(t){var n=t.success;e("getNetworkType",w(w({},i(t,O)),{},{success:function(t){n&&n(w(w({},t),{},{networkType:t.networkInfo.toLocaleUpperCase()}))}}))},getPhoneNumber:function(t){e("appxrpc",function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?A(Object(n),!0).forEach((function(e){o(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):A(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({requestData:[{method:"getPhoneNumber"}]},t))},getSiteInfo:function(t){return function(t){var e=t.success,n=t.fail,r=t.complete;setTimeout((function(){var t=N();t&&t.length?null==e||e({siteName:t}):null==n||n(new Error("siteName is empty!")),null==r||r()}),0)}(t)},getStorage:pn,hideNavigationBarLoading:function(){e("hideTitleLoading")},multiLevelSelect:function(t){e("beehiveMultilevelSelect",t)},navigateBack:function(t){e("popWindow",{options:t})},navigateTo:function(t){e("pushWindow",t)},previewImage:function(t){var n=t.current,r=t.urls,a=void 0===r?[]:r,c=i(t,ln);e("imageViewer",function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?fn(Object(n),!0).forEach((function(e){o(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):fn(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({images:a.map((function(t){return{u:t}})),init:n},c))},redirectTo:function(t){var e=t||{},n=e.url,r=e.success,o=e.complete;window.location.replace(n),null==r||r({}),null==o||o({})},removeStorage:function(t){e("removeTinyLocalStorage",t)},request:hn,saveImage:function(t){var n=t||{};e("saveImage",function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?yn(Object(n),!0).forEach((function(e){o(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):yn(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({src:n.url},i(n,dn)))},setNavigationBar:vn,setStorage:gn,showActionSheet:function(t){var n=t||{};e("actionSheet",function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?bn(Object(n),!0).forEach((function(e){o(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):bn(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({btns:n.items,cancelBtn:n.cancelButtonText},i(n,mn)))},showAuthGuide:function(t){e("showAuthGuide",function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?In(Object(n),!0).forEach((function(e){o(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):In(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({bizType:(null==t?void 0:t.bizType)||"alipayIntl"},t))},showNavigationBarLoading:function(){e("showTitleLoading")},showToast:function(t){var n=t||{};e("toast",function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Pn(Object(n),!0).forEach((function(e){o(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Pn(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({content:n.content||""},i(n,On)))},tradePay:function(t){var e=t||{};Jn("a+"===e.flowType?"tradePayCrossApp":"tradePay",i(e,$n))},uploadFile:function(t){var n=t||{};e("uploadFile",function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Qn(Object(n),!0).forEach((function(e){o(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Qn(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({name:n.fileName,type:n.fileType},i(n,Zn)))},getCurrentLanguage:function(){if(!tr){var t=function(){if("object"===("undefined"==typeof window?"undefined":Xn(window))){var t,e=null===(t=window.location.search)||void 0===t?void 0:t.match(/__lang__=([^&]*)/);if(e)return e[1]}}()||function(){if("object"===("undefined"==typeof document?"undefined":Xn(document))){var t,e=null===(t=document.documentElement)||void 0===t?void 0:t.lang;if(e)return e}}()||function(){if("object"===("undefined"==typeof window?"undefined":Xn(window))){var t,e=(null===(t=window.navigator)||void 0===t?void 0:t.userAgent)||"",n=(/Language\/([^\s]*)/i.exec(e)||[]).pop();if(n)return n}}()||function(){if("object"===("undefined"==typeof window?"undefined":Xn(window))&&window.navigator){var t,e=window.navigator,n=(null===(t=e.languages)||void 0===t?void 0:t[0])||e.language||e.userLanguage||e.browserLanguage;if(n)return n}}()||"en-US";tr=t.toLowerCase()}return tr},openURL:wr,openWebURL:Ar,openInApp:Er,openOtherApp:_r,openInBrowser:Sr,openPayCodePage:xr,openApPayCodePage:kr,openScanPage:Cr,createWithoutAuthRpc:Mr,rpcWithAuth:function(t){var e=t.success;Jn("rpc",function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Lr(Object(n),!0).forEach((function(e){o(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Lr(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({success:function(t){null==e||e({headers:{},resData:t})}},i(t,Nr)))},defineRuntimeConfig:Ur,rpcWithAuthAPlus:bo,addNotifyListener:function(t){var e=t||{},n=e.name,r=e.callback,a=i(e,Po),c=function(){var t=Yr(Kr().mark((function t(e){var n,o;return Kr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Ao({});case 2:if("Android"===t.sent.platform){for(o in n={},e)n[o]=Oo(e[o],e[o]);null==r||r(n)}else null==r||r(e);case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}();Jn("addNotifyListener",function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?wo(Object(n),!0).forEach((function(e){o(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):wo(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({name:"NEBULANOTIFY_"+n,complete:c},a))},removeNotifyListener:function(t){var e=t||{};Jn("removeNotifyListener",function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?_o(Object(n),!0).forEach((function(e){o(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):_o(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({name:"NEBULANOTIFY_"+e.name},i(e,Eo)))},popWindow:function(t){Jn("popWindow",t)}}})(),r.default})()));
2
+ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.my=e():t.my=e()}(self,(()=>(()=>{var t={7359:function(t,e,n){var r;t.exports=(r=r||function(t){var e;if("undefined"!=typeof window&&window.crypto&&(e=window.crypto),"undefined"!=typeof self&&self.crypto&&(e=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(e=globalThis.crypto),!e&&"undefined"!=typeof window&&window.msCrypto&&(e=window.msCrypto),!e&&void 0!==n.g&&n.g.crypto&&(e=n.g.crypto),!e)try{e=n(633)}catch(t){}var r=function(){if(e){if("function"==typeof e.getRandomValues)try{return e.getRandomValues(new Uint32Array(1))[0]}catch(t){}if("function"==typeof e.randomBytes)try{return e.randomBytes(4).readInt32LE()}catch(t){}}throw new Error("Native crypto module could not be used to get secure random number.")},o=Object.create||function(){function t(){}return function(e){var n;return t.prototype=e,n=new t,t.prototype=null,n}}(),i={},a=i.lib={},c=a.Base={extend:function(t){var e=o(this);return t&&e.mixIn(t),e.hasOwnProperty("init")&&this.init!==e.init||(e.init=function(){e.$super.init.apply(this,arguments)}),e.init.prototype=e,e.$super=this,e},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}},s=a.WordArray=c.extend({init:function(t,e){t=this.words=t||[],this.sigBytes=null!=e?e:4*t.length},toString:function(t){return(t||p).stringify(this)},concat:function(t){var e=this.words,n=t.words,r=this.sigBytes,o=t.sigBytes;if(this.clamp(),r%4)for(var i=0;i<o;i++){var a=n[i>>>2]>>>24-i%4*8&255;e[r+i>>>2]|=a<<24-(r+i)%4*8}else for(var c=0;c<o;c+=4)e[r+c>>>2]=n[c>>>2];return this.sigBytes+=o,this},clamp:function(){var e=this.words,n=this.sigBytes;e[n>>>2]&=4294967295<<32-n%4*8,e.length=t.ceil(n/4)},clone:function(){var t=c.clone.call(this);return t.words=this.words.slice(0),t},random:function(t){for(var e=[],n=0;n<t;n+=4)e.push(r());return new s.init(e,t)}}),u=i.enc={},p=u.Hex={stringify:function(t){for(var e=t.words,n=t.sigBytes,r=[],o=0;o<n;o++){var i=e[o>>>2]>>>24-o%4*8&255;r.push((i>>>4).toString(16)),r.push((15&i).toString(16))}return r.join("")},parse:function(t){for(var e=t.length,n=[],r=0;r<e;r+=2)n[r>>>3]|=parseInt(t.substr(r,2),16)<<24-r%8*4;return new s.init(n,e/2)}},l=u.Latin1={stringify:function(t){for(var e=t.words,n=t.sigBytes,r=[],o=0;o<n;o++){var i=e[o>>>2]>>>24-o%4*8&255;r.push(String.fromCharCode(i))}return r.join("")},parse:function(t){for(var e=t.length,n=[],r=0;r<e;r++)n[r>>>2]|=(255&t.charCodeAt(r))<<24-r%4*8;return new s.init(n,e)}},f=u.Utf8={stringify:function(t){try{return decodeURIComponent(escape(l.stringify(t)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(t){return l.parse(unescape(encodeURIComponent(t)))}},h=a.BufferedBlockAlgorithm=c.extend({reset:function(){this._data=new s.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=f.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(e){var n,r=this._data,o=r.words,i=r.sigBytes,a=this.blockSize,c=i/(4*a),u=(c=e?t.ceil(c):t.max((0|c)-this._minBufferSize,0))*a,p=t.min(4*u,i);if(u){for(var l=0;l<u;l+=a)this._doProcessBlock(o,l);n=o.splice(0,u),r.sigBytes-=p}return new s.init(n,p)},clone:function(){var t=c.clone.call(this);return t._data=this._data.clone(),t},_minBufferSize:0}),d=(a.Hasher=h.extend({cfg:c.extend(),init:function(t){this.cfg=this.cfg.extend(t),this.reset()},reset:function(){h.reset.call(this),this._doReset()},update:function(t){return this._append(t),this._process(),this},finalize:function(t){return t&&this._append(t),this._doFinalize()},blockSize:16,_createHelper:function(t){return function(e,n){return new t.init(n).finalize(e)}},_createHmacHelper:function(t){return function(e,n){return new d.HMAC.init(t,n).finalize(e)}}}),i.algo={});return i}(Math),r)},9174:function(t,e,n){var r;t.exports=(r=n(7359),function(t){var e=r,n=e.lib,o=n.WordArray,i=n.Hasher,a=e.algo,c=[];!function(){for(var e=0;e<64;e++)c[e]=4294967296*t.abs(t.sin(e+1))|0}();var s=a.MD5=i.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(t,e){for(var n=0;n<16;n++){var r=e+n,o=t[r];t[r]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8)}var i=this._hash.words,a=t[e+0],s=t[e+1],h=t[e+2],d=t[e+3],y=t[e+4],v=t[e+5],g=t[e+6],m=t[e+7],b=t[e+8],I=t[e+9],O=t[e+10],P=t[e+11],w=t[e+12],A=t[e+13],E=t[e+14],_=t[e+15],S=i[0],x=i[1],k=i[2],C=i[3];S=u(S,x,k,C,a,7,c[0]),C=u(C,S,x,k,s,12,c[1]),k=u(k,C,S,x,h,17,c[2]),x=u(x,k,C,S,d,22,c[3]),S=u(S,x,k,C,y,7,c[4]),C=u(C,S,x,k,v,12,c[5]),k=u(k,C,S,x,g,17,c[6]),x=u(x,k,C,S,m,22,c[7]),S=u(S,x,k,C,b,7,c[8]),C=u(C,S,x,k,I,12,c[9]),k=u(k,C,S,x,O,17,c[10]),x=u(x,k,C,S,P,22,c[11]),S=u(S,x,k,C,w,7,c[12]),C=u(C,S,x,k,A,12,c[13]),k=u(k,C,S,x,E,17,c[14]),S=p(S,x=u(x,k,C,S,_,22,c[15]),k,C,s,5,c[16]),C=p(C,S,x,k,g,9,c[17]),k=p(k,C,S,x,P,14,c[18]),x=p(x,k,C,S,a,20,c[19]),S=p(S,x,k,C,v,5,c[20]),C=p(C,S,x,k,O,9,c[21]),k=p(k,C,S,x,_,14,c[22]),x=p(x,k,C,S,y,20,c[23]),S=p(S,x,k,C,I,5,c[24]),C=p(C,S,x,k,E,9,c[25]),k=p(k,C,S,x,d,14,c[26]),x=p(x,k,C,S,b,20,c[27]),S=p(S,x,k,C,A,5,c[28]),C=p(C,S,x,k,h,9,c[29]),k=p(k,C,S,x,m,14,c[30]),S=l(S,x=p(x,k,C,S,w,20,c[31]),k,C,v,4,c[32]),C=l(C,S,x,k,b,11,c[33]),k=l(k,C,S,x,P,16,c[34]),x=l(x,k,C,S,E,23,c[35]),S=l(S,x,k,C,s,4,c[36]),C=l(C,S,x,k,y,11,c[37]),k=l(k,C,S,x,m,16,c[38]),x=l(x,k,C,S,O,23,c[39]),S=l(S,x,k,C,A,4,c[40]),C=l(C,S,x,k,a,11,c[41]),k=l(k,C,S,x,d,16,c[42]),x=l(x,k,C,S,g,23,c[43]),S=l(S,x,k,C,I,4,c[44]),C=l(C,S,x,k,w,11,c[45]),k=l(k,C,S,x,_,16,c[46]),S=f(S,x=l(x,k,C,S,h,23,c[47]),k,C,a,6,c[48]),C=f(C,S,x,k,m,10,c[49]),k=f(k,C,S,x,E,15,c[50]),x=f(x,k,C,S,v,21,c[51]),S=f(S,x,k,C,w,6,c[52]),C=f(C,S,x,k,d,10,c[53]),k=f(k,C,S,x,O,15,c[54]),x=f(x,k,C,S,s,21,c[55]),S=f(S,x,k,C,b,6,c[56]),C=f(C,S,x,k,_,10,c[57]),k=f(k,C,S,x,g,15,c[58]),x=f(x,k,C,S,A,21,c[59]),S=f(S,x,k,C,y,6,c[60]),C=f(C,S,x,k,P,10,c[61]),k=f(k,C,S,x,h,15,c[62]),x=f(x,k,C,S,I,21,c[63]),i[0]=i[0]+S|0,i[1]=i[1]+x|0,i[2]=i[2]+k|0,i[3]=i[3]+C|0},_doFinalize:function(){var e=this._data,n=e.words,r=8*this._nDataBytes,o=8*e.sigBytes;n[o>>>5]|=128<<24-o%32;var i=t.floor(r/4294967296),a=r;n[15+(o+64>>>9<<4)]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),n[14+(o+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),e.sigBytes=4*(n.length+1),this._process();for(var c=this._hash,s=c.words,u=0;u<4;u++){var p=s[u];s[u]=16711935&(p<<8|p>>>24)|4278255360&(p<<24|p>>>8)}return c},clone:function(){var t=i.clone.call(this);return t._hash=this._hash.clone(),t}});function u(t,e,n,r,o,i,a){var c=t+(e&n|~e&r)+o+a;return(c<<i|c>>>32-i)+e}function p(t,e,n,r,o,i,a){var c=t+(e&r|n&~r)+o+a;return(c<<i|c>>>32-i)+e}function l(t,e,n,r,o,i,a){var c=t+(e^n^r)+o+a;return(c<<i|c>>>32-i)+e}function f(t,e,n,r,o,i,a){var c=t+(n^(e|~r))+o+a;return(c<<i|c>>>32-i)+e}e.MD5=i._createHelper(s),e.HmacMD5=i._createHmacHelper(s)}(Math),r.MD5)},5554:t=>{"use strict";var e="%[a-f0-9]{2}",n=new RegExp("("+e+")|([^%]+?)","gi"),r=new RegExp("("+e+")+","gi");function o(t,e){try{return[decodeURIComponent(t.join(""))]}catch(t){}if(1===t.length)return t;e=e||1;var n=t.slice(0,e),r=t.slice(e);return Array.prototype.concat.call([],o(n),o(r))}function i(t){try{return decodeURIComponent(t)}catch(i){for(var e=t.match(n)||[],r=1;r<e.length;r++)e=(t=o(e,r).join("")).match(n)||[];return t}}t.exports=function(t){if("string"!=typeof t)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof t+"`");try{return t=t.replace(/\+/g," "),decodeURIComponent(t)}catch(e){return function(t){for(var e={"%FE%FF":"��","%FF%FE":"��"},n=r.exec(t);n;){try{e[n[0]]=decodeURIComponent(n[0])}catch(t){var o=i(n[0]);o!==n[0]&&(e[n[0]]=o)}n=r.exec(t)}e["%C2"]="�";for(var a=Object.keys(e),c=0;c<a.length;c++){var s=a[c];t=t.replace(new RegExp(s,"g"),e[s])}return t}(t)}}},3563:(t,e,n)=>{"use strict";function r(t){return r="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},r(t)}n(6635);var o=n(5554);function i(t,e){if("string"!=typeof t||"string"!=typeof e)throw new TypeError("Expected the arguments to be of type `string`");if(""===e)return[t];var n=t.indexOf(e);return-1===n?[t]:[t.slice(0,n),t.slice(n+e.length)]}function a(t,e){return e.decode?o(t):t}function c(t){return Array.isArray(t)?t.sort():"object"===r(t)?c(Object.keys(t)).sort((function(t,e){return Number(t)-Number(e)})).map((function(e){return t[e]})):t}function s(t,e){return e.parseNumbers&&!Number.isNaN(Number(t))&&"string"==typeof t&&""!==t.trim()?t=Number(t):!e.parseBooleans||null===t||"true"!==t.toLowerCase()&&"false"!==t.toLowerCase()||(t="true"===t.toLowerCase()),t}e.Qc=function(t,e){var n=function(t){var e;switch(t.arrayFormat){case"index":return function(t,n,r){e=/\[(\d*)\]$/.exec(t),t=t.replace(/\[\d*\]$/,""),e?(void 0===r[t]&&(r[t]={}),r[t][e[1]]=n):r[t]=n};case"bracket":return function(t,n,r){e=/(\[\])$/.exec(t),t=t.replace(/\[\]$/,""),e?void 0!==r[t]?r[t]=[].concat(r[t],n):r[t]=[n]:r[t]=n};case"comma":return function(t,e,n){var r="string"==typeof e&&e.split("").indexOf(",")>-1?e.split(","):e;n[t]=r};default:return function(t,e,n){void 0!==n[t]?n[t]=[].concat(n[t],e):n[t]=e}}}(e=Object.assign({decode:!0,sort:!0,arrayFormat:"none",parseNumbers:!1,parseBooleans:!1},e)),o=Object.create(null);if("string"!=typeof t)return o;if(!(t=t.trim().replace(/^[?#&]/,"")))return o;var u,p,l=!0,f=!1,h=void 0;try{for(var d,y=t.split("&")[Symbol.iterator]();!(l=(d=y.next()).done);l=!0){var v=(u=i(d.value.replace(/\+/g," "),"="),p=2,function(t){if(Array.isArray(t))return t}(u)||function(t,e){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=t[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}}(u,p)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()),g=v[0];I=void 0===(I=v[1])?null:a(I,e),n(a(g,e),I,o)}}catch(t){f=!0,h=t}finally{try{l||null==y.return||y.return()}finally{if(f)throw h}}for(var m=0,b=Object.keys(o);m<b.length;m++){var I;if(g=b[m],"object"===r(I=o[g])&&null!==I)for(var O=0,P=Object.keys(I);O<P.length;O++){var w=P[O];I[w]=s(I[w],e)}else o[g]=s(I,e)}return!1===e.sort?o:(!0===e.sort?Object.keys(o).sort():Object.keys(o).sort(e.sort)).reduce((function(t,e){var n=o[e];return Boolean(n)&&"object"===r(n)&&!Array.isArray(n)?t[e]=c(n):t[e]=n,t}),Object.create(null))}},6635:t=>{"use strict";t.exports=function(t){return encodeURIComponent(t).replace(/[!'()*]/g,(function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()}))}},7375:(t,e)=>{"use strict";var n=Object.prototype.hasOwnProperty;function r(t){try{return decodeURIComponent(t.replace(/\+/g," "))}catch(t){return null}}function o(t){try{return encodeURIComponent(t)}catch(t){return null}}e.stringify=function(t,e){e=e||"";var r,i,a=[];for(i in"string"!=typeof e&&(e="?"),t)if(n.call(t,i)){if((r=t[i])||null!=r&&!isNaN(r)||(r=""),i=o(i),r=o(r),null===i||null===r)continue;a.push(i+"="+r)}return a.length?e+a.join("&"):""},e.parse=function(t){for(var e,n=/([^=?#&]+)=?([^&]*)/g,o={};e=n.exec(t);){var i=r(e[1]),a=r(e[2]);null===i||null===a||i in o||(o[i]=a)}return o}},7245:t=>{"use strict";t.exports=function(t,e){if(e=e.split(":")[0],!(t=+t))return!1;switch(e){case"http":case"ws":return 80!==t;case"https":case"wss":return 443!==t;case"ftp":return 21!==t;case"gopher":return 70!==t;case"file":return!1}return 0!==t}},5731:(t,e,n)=>{"use strict";var r=n(7245),o=n(7375),i=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,a=/[\n\r\t]/g,c=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,s=/:\d+$/,u=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,p=/^[a-zA-Z]:/;function l(t){return(t||"").toString().replace(i,"")}var f=[["#","hash"],["?","query"],function(t,e){return y(e.protocol)?t.replace(/\\/g,"/"):t},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d*)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],h={hash:1,query:1};function d(t){var e,r=("undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{}).location||{},o={},i=typeof(t=t||r);if("blob:"===t.protocol)o=new g(unescape(t.pathname),{});else if("string"===i)for(e in o=new g(t,{}),h)delete o[e];else if("object"===i){for(e in t)e in h||(o[e]=t[e]);void 0===o.slashes&&(o.slashes=c.test(t.href))}return o}function y(t){return"file:"===t||"ftp:"===t||"http:"===t||"https:"===t||"ws:"===t||"wss:"===t}function v(t,e){t=(t=l(t)).replace(a,""),e=e||{};var n,r=u.exec(t),o=r[1]?r[1].toLowerCase():"",i=!!r[2],c=!!r[3],s=0;return i?c?(n=r[2]+r[3]+r[4],s=r[2].length+r[3].length):(n=r[2]+r[4],s=r[2].length):c?(n=r[3]+r[4],s=r[3].length):n=r[4],"file:"===o?s>=2&&(n=n.slice(2)):y(o)?n=r[4]:o?i&&(n=n.slice(2)):s>=2&&y(e.protocol)&&(n=r[4]),{protocol:o,slashes:i||y(o),slashesCount:s,rest:n}}function g(t,e,n){if(t=(t=l(t)).replace(a,""),!(this instanceof g))return new g(t,e,n);var i,c,s,u,h,m,b=f.slice(),I=typeof e,O=this,P=0;for("object"!==I&&"string"!==I&&(n=e,e=null),n&&"function"!=typeof n&&(n=o.parse),i=!(c=v(t||"",e=d(e))).protocol&&!c.slashes,O.slashes=c.slashes||i&&e.slashes,O.protocol=c.protocol||e.protocol||"",t=c.rest,("file:"===c.protocol&&(2!==c.slashesCount||p.test(t))||!c.slashes&&(c.protocol||c.slashesCount<2||!y(O.protocol)))&&(b[3]=[/(.*)/,"pathname"]);P<b.length;P++)"function"!=typeof(u=b[P])?(s=u[0],m=u[1],s!=s?O[m]=t:"string"==typeof s?~(h="@"===s?t.lastIndexOf(s):t.indexOf(s))&&("number"==typeof u[2]?(O[m]=t.slice(0,h),t=t.slice(h+u[2])):(O[m]=t.slice(h),t=t.slice(0,h))):(h=s.exec(t))&&(O[m]=h[1],t=t.slice(0,h.index)),O[m]=O[m]||i&&u[3]&&e[m]||"",u[4]&&(O[m]=O[m].toLowerCase())):t=u(t,O);n&&(O.query=n(O.query)),i&&e.slashes&&"/"!==O.pathname.charAt(0)&&(""!==O.pathname||""!==e.pathname)&&(O.pathname=function(t,e){if(""===t)return e;for(var n=(e||"/").split("/").slice(0,-1).concat(t.split("/")),r=n.length,o=n[r-1],i=!1,a=0;r--;)"."===n[r]?n.splice(r,1):".."===n[r]?(n.splice(r,1),a++):a&&(0===r&&(i=!0),n.splice(r,1),a--);return i&&n.unshift(""),"."!==o&&".."!==o||n.push(""),n.join("/")}(O.pathname,e.pathname)),"/"!==O.pathname.charAt(0)&&y(O.protocol)&&(O.pathname="/"+O.pathname),r(O.port,O.protocol)||(O.host=O.hostname,O.port=""),O.username=O.password="",O.auth&&(~(h=O.auth.indexOf(":"))?(O.username=O.auth.slice(0,h),O.username=encodeURIComponent(decodeURIComponent(O.username)),O.password=O.auth.slice(h+1),O.password=encodeURIComponent(decodeURIComponent(O.password))):O.username=encodeURIComponent(decodeURIComponent(O.auth)),O.auth=O.password?O.username+":"+O.password:O.username),O.origin="file:"!==O.protocol&&y(O.protocol)&&O.host?O.protocol+"//"+O.host:"null",O.href=O.toString()}g.prototype={set:function(t,e,n){var i=this;switch(t){case"query":"string"==typeof e&&e.length&&(e=(n||o.parse)(e)),i[t]=e;break;case"port":i[t]=e,r(e,i.protocol)?e&&(i.host=i.hostname+":"+e):(i.host=i.hostname,i[t]="");break;case"hostname":i[t]=e,i.port&&(e+=":"+i.port),i.host=e;break;case"host":i[t]=e,s.test(e)?(e=e.split(":"),i.port=e.pop(),i.hostname=e.join(":")):(i.hostname=e,i.port="");break;case"protocol":i.protocol=e.toLowerCase(),i.slashes=!n;break;case"pathname":case"hash":if(e){var a="pathname"===t?"/":"#";i[t]=e.charAt(0)!==a?a+e:e}else i[t]=e;break;case"username":case"password":i[t]=encodeURIComponent(e);break;case"auth":var c=e.indexOf(":");~c?(i.username=e.slice(0,c),i.username=encodeURIComponent(decodeURIComponent(i.username)),i.password=e.slice(c+1),i.password=encodeURIComponent(decodeURIComponent(i.password))):i.username=encodeURIComponent(decodeURIComponent(e))}for(var u=0;u<f.length;u++){var p=f[u];p[4]&&(i[p[1]]=i[p[1]].toLowerCase())}return i.auth=i.password?i.username+":"+i.password:i.username,i.origin="file:"!==i.protocol&&y(i.protocol)&&i.host?i.protocol+"//"+i.host:"null",i.href=i.toString(),i},toString:function(t){t&&"function"==typeof t||(t=o.stringify);var e,n=this,r=n.host,i=n.protocol;i&&":"!==i.charAt(i.length-1)&&(i+=":");var a=i+(n.protocol&&n.slashes||y(n.protocol)?"//":"");return n.username?(a+=n.username,n.password&&(a+=":"+n.password),a+="@"):n.password?(a+=":"+n.password,a+="@"):"file:"!==n.protocol&&y(n.protocol)&&!r&&"/"!==n.pathname&&(a+="@"),(":"===r[r.length-1]||s.test(n.hostname)&&!n.port)&&(r+=":"),a+=r+n.pathname,(e="object"==typeof n.query?t(n.query):n.query)&&(a+="?"!==e.charAt(0)?"?"+e:e),n.hash&&(a+=n.hash),a}},g.extractProtocol=v,g.location=d,g.trimLeft=l,g.qs=o,t.exports=g},633:()=>{},7609:(t,e,n)=>{var r=n(7425).default;function o(){"use strict";t.exports=o=function(){return e},t.exports.__esModule=!0,t.exports.default=t.exports;var e={},n=Object.prototype,i=n.hasOwnProperty,a="function"==typeof Symbol?Symbol:{},c=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function p(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{p({},"")}catch(t){p=function(t,e,n){return t[e]=n}}function l(t,e,n,r){var o=e&&e.prototype instanceof d?e:d,i=Object.create(o.prototype),a=new _(r||[]);return i._invoke=function(t,e,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return{value:void 0,done:!0}}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=w(a,n);if(c){if(c===h)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var s=f(t,e,n);if("normal"===s.type){if(r=n.done?"completed":"suspendedYield",s.arg===h)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(r="completed",n.method="throw",n.arg=s.arg)}}}(t,n,a),i}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var h={};function d(){}function y(){}function v(){}var g={};p(g,c,(function(){return this}));var m=Object.getPrototypeOf,b=m&&m(m(S([])));b&&b!==n&&i.call(b,c)&&(g=b);var I=v.prototype=d.prototype=Object.create(g);function O(t){["next","throw","return"].forEach((function(e){p(t,e,(function(t){return this._invoke(e,t)}))}))}function P(t,e){function n(o,a,c,s){var u=f(t[o],t,a);if("throw"!==u.type){var p=u.arg,l=p.value;return l&&"object"==r(l)&&i.call(l,"__await")?e.resolve(l.__await).then((function(t){n("next",t,c,s)}),(function(t){n("throw",t,c,s)})):e.resolve(l).then((function(t){p.value=t,c(p)}),(function(t){return n("throw",t,c,s)}))}s(u.arg)}var o;this._invoke=function(t,r){function i(){return new e((function(e,o){n(t,r,e,o)}))}return o=o?o.then(i,i):i()}}function w(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,w(t,e),"throw"===e.method))return h;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var r=f(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,h;var o=r.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}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 _(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(A,this),this.reset(!0)}function S(t){if(t){var e=t[c];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,r=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 r.next=r}}return{next:x}}function x(){return{value:void 0,done:!0}}return y.prototype=v,p(I,"constructor",v),p(v,"constructor",y),y.displayName=p(v,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,p(t,u,"GeneratorFunction")),t.prototype=Object.create(I),t},e.awrap=function(t){return{__await:t}},O(P.prototype),p(P.prototype,s,(function(){return this})),e.AsyncIterator=P,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new P(l(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(I),p(I,u,"Generator"),p(I,c,(function(){return this})),p(I,"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 r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=S,_.prototype={constructor:_,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,r){return a.type="throw",a.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var c=i.call(o,"catchLoc"),s=i.call(o,"finallyLoc");if(c&&s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,h):this.complete(a)},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),h},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),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;E(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:S(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),h}},e}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports},7425: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},2841:(t,e,n)=>{var r=n(7609)();t.exports=r;try{regeneratorRuntime=r}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var i=e[r]={exports:{}};return t[r].call(i.exports,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 r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var r={};return(()=>{"use strict";n.d(r,{default:()=>So});var t=function(t){if(window.AlipayJSBridge)return t();document.addEventListener("AlipayJSBridgeReady",(function(){return t()}),!1)};function e(e,n,r){t((function(){var t=(r||{}).type,o=void 0===t?"async":t;"async"===o&&window.AlipayJSBridge.call(e,n,(function(t){var e=n||{},r=e.success,o=e.fail,i=e.complete;t.error?null==o||o(t):null==r||r(t),null==i||i(t)})),"callback"===o&&window.AlipayJSBridge.call(e,n)}))}function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function i(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}var a=["content","buttonText"];function c(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}var s=["confirmButtonText","cancelButtonText","content"];function u(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}var p=["format","currentDate","startDate","endDate"];function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}var f={"HH:mm:ss":0,"yyyy-MM-dd":1,"yyyy-MM-dd HH:mm:ss":2};var h=["url"];function d(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}var y=[{type:"image",exts:["jpg","jpeg","png","bmp","gif"]},{type:"video",exts:["mp4","3gp","avi","wmv"]},{type:"audio",exts:["mp3","wma","wav"]}];var v=["scopes"];function g(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function m(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?g(Object(n),!0).forEach((function(e){o(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var b=["type"];function I(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}var O=["success"];function P(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function w(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?P(Object(n),!0).forEach((function(e){o(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):P(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function A(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function E(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function _(t){var e=[];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.push([n,t[n]]);return e}var S,x,k,C,j,T,D,M=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}var e,n;return e=t,n=[{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(e){return!t.isNotEmpty(e)}},{key:"parseObjectSafe",value:function(t,e){try{return JSON.parse(t)}catch(t){console.warn("parseObjectSafe error: ",t)}return e}},{key:"encodeMap",value:function(t){if(t){var e=[];return _(t).forEach((function(t){var n=t[0],r=t[1];null!=r&&e.push("".concat(encodeURIComponent(n),"=").concat(encodeURIComponent(r)))})),e.length>0?e.join("&"):void 0}}}],null&&E(e.prototype,null),n&&E(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();function N(){var t,e=null===(t=C)||void 0===t?void 0:t.siteName;return M.isNotEmpty(e)?e:(e=(j||(j=function(){var t={};_(L(window.location.search)).forEach((function(e){var n=e[0],r=e[1],o=n.toLowerCase();if("query"===o)try{t.query=L(r)}catch(t){console.warn("parse query error: ",t)}else"referrerinfo"===o?t.referrerInfo=L(r):t[n]=r}));var e=window.location.hash;if(e){var n=e.indexOf("?");t.hashPath=n>0?e.substring(1,n):e.substring(1),t.hashQuery=L(e)}return t}()),j).site,M.isNotEmpty(e)?e:void console.error("no siteName! please specify siteName in initWebPolyfill(...)"))}function L(t){var e,n={};if(M.isEmpty(t))return n;var r=t.indexOf("?");return r>=0&&(t=t.substring(r+1)),null===(e=t.split("&"))||void 0===e||e.forEach((function(t){var e=t.split("=");if(!(e.length<2)){var r=decodeURIComponent(e[0]);n[r]=decodeURIComponent(e[1])}})),n}!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"}(S||(S={})),(k=x||(x={})).alipayhk="alipayhk",k.alipaymo="alipaymo",k.gcash="gcash",k.tngd="tngd",k.dana="dana",k.kakaopay="kakaopay",o(o(o(o(o(o({},S.ALIPAY_HK,x.alipayhk),S.ALIPAY_MO,x.alipaymo),S.GCASH,x.gcash),S.DANA,x.dana),S.TNG,x.tngd),S.KAKAOPAY,x.kakaopay),(D=T||(T={})).STABLE="STABLE",D.TEST="TEST",D.PRE="PRE",D.PROD="PROD";var R=Object.prototype.hasOwnProperty,B=Object.assign||function(t,e){for(var n,r=function(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}(t),o=1;o<arguments.length;o++)for(var i in n=Object(arguments[o]))R.call(n,i)&&(r[i]=n[i]);return r},U=function(t,e){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},U(t,e)};function F(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}U(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var H=function(){return H=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},H.apply(this,arguments)};"function"==typeof SuppressedError&&SuppressedError;var V=Function.prototype.apply.call.bind(Function.prototype.apply),Y=Function.prototype.bind;function G(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return V(t,e,n)}function K(t,e,n){return V(t,e,n)}function W(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return V(Y,t,e)}var q,z,J,$,Z,Q,X,tt,et,nt,rt=JSON.stringify,ot=JSON.parse;function it(){return z||(t="undefined"!=typeof Set,z=t?Set:function(){function t(){this.itemList=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.itemList.length},enumerable:!1,configurable:!0}),t.prototype.add=function(t){return-1===this.itemList.indexOf(t)&&this.itemList.push(t),this},t.prototype.delete=function(t){var e=this.itemList.indexOf(t);return-1!==e&&(this.itemList.splice(e,1),!0)},t.prototype.clear=function(){this.itemList=[]},t.prototype.has=function(t){return-1!==this.itemList.indexOf(t)},t.prototype.forEach=function(t){for(var e=0,n=this.itemList.slice();e<n.length;e++){var r=n[e];t(r,r,this)}},t}()),new z;var t}function at(t){return"number"==typeof t&&t>=0&&t<=8}function ct(t){var e=t.split(".");if(!e.length)return!1;var n=function(t){for(var e=(nt||"undefined"!=typeof __APPX_CAN_I_USE_DATA__&&(nt=__APPX_CAN_I_USE_DATA__),nt),n=0,r=t;n<r.length;n++){var o=r[n];if(void 0===(e=e&&e[o]))return;var i=e._;if(i){var a=i[et.default];if(a||(a=i[et[void 0]]),!a)return!1;if(void 0!==a[et.const])return Boolean(a[et.const]);var c=a[et.version_added];return void 0!==c&&void 0>=c}}}(e);return void 0!==n?n:function(t,e){if(!e.length)return!1;for(var n=void 0,r=0,o=e;r<o.length;r++){var i=o[r];if(void 0===(n=n&&n[i]))return;if("number"==typeof n._||"boolean"==typeof n._)return Boolean(n._);if("number"==typeof n||"boolean"==typeof n)return Boolean(n)}}(0,e)}J||(J="undefined"!=typeof WeakMap?WeakMap:function(){var t=Object.prototype.hasOwnProperty,e=function(t,e,n){Object.defineProperty?Object.defineProperty(t,e,{configurable:!0,value:n,writable:!0}):t[e]=n};function n(t){return Object(t)===t}function r(){if(void 0===this)throw new TypeError("Constructor WeakMap requires 'new'");if(e(this,"_id","_WeakMap_"+i()+"."+i()),arguments.length>0)throw new TypeError("WeakMap iterable is not supported")}function o(e,r){if(!n(e)||!t.call(e,"_id"))throw new TypeError(r+" method called on incompatible receiver "+typeof e)}function i(){return Math.random().toString().substring(2)}return e(r.prototype,"delete",(function(t){if(o(this,"delete"),!n(t))return!1;var e=t[this._id];return!(!e||e[0]!==t||(delete t[this._id],0))})),e(r.prototype,"get",(function(t){if(o(this,"get"),n(t)){var e=t[this._id];return e&&e[0]===t?e[1]:void 0}})),e(r.prototype,"has",(function(t){if(o(this,"has"),!n(t))return!1;var e=t[this._id];return!(!e||e[0]!==t)})),e(r.prototype,"set",(function(t,r){if(o(this,"set"),!n(t))throw new TypeError("Invalid value used as weak map key");var i=t[this._id];return i&&i[0]===t?(i[1]=r,this):(e(t,this._id,[t,r]),this)})),e(r,"_polyfill",!0),r}()),new J,"undefined"!=typeof SECURITY_FUNCTION_CALL&&(SECURITY_FUNCTION_CALL=function(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return"function"==typeof t?(V||(V=Function.prototype.apply.call.bind(Function.prototype.apply)),V(t,e,n)):t.call.apply(t,function(t,e,n){if(n||2===arguments.length)for(var r,o=0,i=e.length;o<i;o++)!r&&o in e||(r||(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return t.concat(r||Array.prototype.slice.call(e))}([e],n,!1))}),"undefined"!=typeof SECURITY_FUNCTION_APPLY&&(SECURITY_FUNCTION_APPLY=function(t,e,n){return"function"==typeof t?(V||(V=Function.prototype.apply.call.bind(Function.prototype.apply)),V(t,e,n)):t.apply(e,n)}),function(t){t.CanvasContext="CanvasContext"}($||($={})),function(t){t[t.PLUGIN=1]="PLUGIN",t[t.SUB_PACKAGE=2]="SUB_PACKAGE"}(Z||(Z={})),function(t){t.PLUGIN="plugin",t.SUB_PACKAGE="subpackage"}(Q||(Q={})),function(t){t[t.Info=0]="Info",t[t.Warn=1]="Warn",t[t.Error=2]="Error"}(X||(X={})),function(t){t.AppxLifecycle="AppxLifecycle"}(tt||(tt={})),"undefined"!=typeof HAS_INSIDE_FEATURE&&HAS_INSIDE_FEATURE,function(t){t.version_added="v",t.const="c",t.android="a",t.ios="i",t.default="d"}(et||(et={}));var st,ut={scope:void 0,type:"empty"};function pt(t){return t&&"empty"===t.type}function lt(t){return t&&"extension"===t.type}function ft(t){return t&&"openCapability"===t.type}function ht(){return st||(st=function(){try{return INSIDE_CONFIG_STATIC||{}}catch(t){return{}}}()),st}"undefined"!=typeof ZEPHYR_HAS_INSIDE_FEATURE&&ZEPHYR_HAS_INSIDE_FEATURE,"undefined"!=typeof ZEPHYR_IS_INSIDE_UNSUPPORT_ELEMENT&&ZEPHYR_IS_INSIDE_UNSUPPORT_ELEMENT;var dt,yt,vt,gt=function(){function t(t){this.taskMap=Object.create(null),this.addEventListener=t}return t.prototype.hasMatcher=function(t,e){var n=this.taskMap[t];if(!n)return!1;if(void 0===e){var r=Object.keys(n.callbacks).some((function(t){var e=n.callbacks[t];return!!(e&&e.length>0)}));return r}var o=n.callbacks[e];return!!o&&o.length>0},t.prototype.removeMatcher=function(t,e,n){var r=this.taskMap[t];if(!r)return 0;var o=r.callbacks[e];if(!o)return 0;if(n){var i=o.length;return r.callbacks[e]=o.filter((function(t){return t!==n})),i-r.callbacks[e].length}return i=o.length,o.length=0,i},t.prototype.addMatcher=function(t,e,n,r,o,i){var a=this.taskMap[t];a||(a=this.taskMap[t]={callbacks:Object.create(null)},this.addEventListener(t,W(this.onEventHandler,this,t,r,o),i));var c=a.callbacks[e];return c||(c=a.callbacks[e]=[]),c.indexOf(n)<0?(c.push(n),1):0},t.prototype.onEventHandler=function(t,e,n,r){var o=this.taskMap[t],i=e(r,o);if(i)for(var a=o.callbacks,c=0,s=i;c<s.length;c++){var u=a[s[c]];if(u){var p=n(r);if(p)for(var l=0,f=u;l<f.length;l++)(0,f[l])(p)}}},t}();function mt(t){return void 0===t}function bt(t){return t&&"object"==typeof t}function It(t){return"function"==typeof t}function Ot(t){return!!(t&&t.get&&t.update)}var Pt=function(t,e,n,r,o,i,a){e().getKernel().__BRIDGE_CALL__(i,n,r,o)},wt=function(t,e,n,r,o,i){return e().getKernel().__BRIDGE_CALL_SYNC__(o,n,r)};function At(t,e){var n=t.jsApiCacheWhitelist;return!!(n&&"string"==typeof n&&n.indexOf(e)>=0)}function Et(t,e){return t[e]}var _t={internalAPI:!0,openInBrowser:!0},St={};function xt(t,e,n,r,o,i,a,c){var s="".concat(i),u=!!(1&o),p=!!(2&o),l=!!(4&o),f=!1===u&&!0===p,h=f?t.getPublicCallProxyAPIInfoByName(s):t.getAPIInfoByName(s),d=f?"my.callSync":jt(h,i);if(h||(h=St),!_t[s]){(u||p)&&(c=null);var y=re(h,n,r,u,l,c,e,s,a,{caller:d});try{return y.invoke()}finally{}}}function kt(t,e,n,r,o,i,a,c,s){var u="".concat(i),p=!!(1&o),l=!!(2&o),f=!!(4&o),h=!1===p&&!0===l,d=St;t&&(d=h?t.getPublicCallProxyAPIInfoByName(u):t.getAPIInfoByName(u));var y=h?"my.call":jt(d,i);if(d||(d=St),!_t[u]){(p||l)&&(s=null);var v=ne(d,n,r,p,f,s,e,u,a,c,{caller:y});try{return v.invoke()}finally{}}}function Ct(t,e,n,r,o,i,a,c){var s=function(t,e,n,r,o,i,a,c,s,u){return new te(e,n,i,a,c,t,{caller:null==u?void 0:u.caller,callerContext:null==u?void 0:u.callerContext,directly:!0,inside:!1,shouldNotRewriteIdOrClass:s,viewId:null})}(t,r,o,0,0,n,e,i,a,c);return s.invoke()}function jt(t,e){if(t)return t.avaliableNamespace?"my.".concat(t.avaliableNamespace,".").concat(e):"my.".concat(e)}var Tt,Dt,Mt=function(){function t(t){this._context=t,this.__appxDomain=t.appxDomain.scope;var e=this._context.runtime().getEnv(),n=e.isIOS,r=e.isAndroid,o=e.isIDE;this.isIOS=n,this.isAndroid=r,this.isIDE=o}return t.prototype.callBridge=function(t,e,n){this._context.callDefaultBridge(t,e,n)},t.prototype.callBridgeSync=function(t,e){return this._context.callDefaultBridgeSync(t,e)},t.prototype.on=function(t,e){return this._context.runtime().getBridge().event.addEventListener(t,0,e)},t.prototype.off=function(t,e){return this._context.runtime().getBridge().event.removeEventListener(t,0,e)},t.prototype.getStartupParams=function(){return this._context.runtime().getEnv().originalStartupParams},t}();function Nt(t){var e;Tt||(q||(e="undefined"!=typeof Map,q=e?Map:function(){function t(){this.keyList=[],this.valueList=[]}return t.prototype.set=function(t,e){var n=this.keyList,r=n.indexOf(t);if(-1===r){var o=n.push(t)-1;this.valueList[o]=e}else this.valueList[r]=e;return this},t.prototype.get=function(t){var e=this.keyList.indexOf(t);return-1===e?void 0:this.valueList[e]},t.prototype.forEach=function(t){for(var e=this.keyList.slice(),n=this.valueList.slice(),r=e.length,o=0;o<r;o++){var i=e[o];t(n[o],i,this)}},Object.defineProperty(t.prototype,"size",{get:function(){return this.keyList.length},enumerable:!1,configurable:!0}),t.prototype.has=function(t){return-1!==this.keyList.indexOf(t)},t.prototype.delete=function(t){var e=this.keyList.indexOf(t);return-1!==e&&(this.keyList.splice(e,1),this.valueList.splice(e,1),!0)},t.prototype.clear=function(){this.keyList=[],this.valueList=[]},t}()),Tt=new q);var n=Tt.get(t);if(!n){n=it(),Tt.set(t,n);for(var r=0,o=t;r<o.length;r++){var i=o[r];"string"==typeof i&&n.add(i)}}return n}function Lt(){return Dt||((Dt=it()).add("success"),Dt.add("error"),Dt.add("errorMessage")),Dt}function Rt(t,e,n){if(t&&"object"==typeof t){for(var r=Nt(e),o={},i=0,a=Object.keys(t);i<a.length;i++){var c=a[i];r.has(c)||n&&n.has(c)?o[c]=t[c]:"undefined"!=typeof process&&process&&process.env}return o}return t}function Bt(t,e,n){var r=t,o=e;return It(t)&&(mt(e)||n()&&(o=t,r={})),function(t,e){var n=t,r=e;return mt(e)&&It(t)&&(r=t,n={}),bt(t)||void 0===t||(n={}),mt(n)&&(n={}),{callback:r,option:n}}(r,o)}function Ut(t,e,n){try{var r=ht().config;if(!r||"ap"!==r.clientName)return!0;if(e().getBehaviorManager().report("duplicated my.call(".concat(n,")")),t.getFlag("ignoreCallbackWhenInvokeMyCall"))return!0}catch(t){}return!1}function Ft(t){var e={};return It((t=t||{}).success)&&(e.success=t.success,delete t.success),It(t.fail)&&(e.fail=t.fail,delete t.fail),It(t.complete)&&(e.complete=t.complete,delete t.complete),e}var Ht=1,Vt={};function Yt(){}var Gt=Object.defineProperty;function Kt(t,e,n){Gt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n})}var Wt,qt=function(){function t(t,e,n,r,o,i,a,c){if(u=o,"[object Object]"===Object.prototype.toString.call(u)){var s=H({},o);void 0!==s.page&&(s.page=void 0),this.option=s}else this.option=o;var u;Kt(this,"ctx",t),Kt(this,"runtime",e),Kt(this,"extraInfo",c),Kt(this,"apiName",r),Kt(this,"appxDomain",n),Kt(this,"appxDomainIsNotEmpty",!pt(n)),Kt(this,"callback",a),Kt(this,"apiInfo",this.getFlag("freezeAPIInfo")?function(t){try{Object.isFrozen(t)||(Object.setPrototypeOf(t,null),Object.freeze(t))}finally{return t}}(H({},i)):i||{}),i.t&&(this.taskId=Ht++),this.startTime=(new Date).getTime(),this.initDependency(o,c.viewId,i,a),this.callStack=new Error("")}return t.prototype.invoke=function(){},t.prototype.callScopedBridge=function(t,e,n,r){var o=this.appxDomain;return o&&!pt(o)&&(e=H(H({},e),{__appxDomain:o.scope})),this.callDefaultBridge(t,e,n,r)},t.prototype.callScopedBridgeSync=function(t,e,n){var r=this.appxDomain;return r&&!pt(r)&&(e=H(H({},e),{__appxDomain:r.scope})),this.callDefaultBridgeSync(t,e,n)},t.prototype.callBridge=function(t,e,n,r){return this.callDefaultBridge(t,e,n,r)},t.prototype.callDefaultBridge=function(t,e,n,r){var o=this.runtime();if(o){var i=o.getBridge();i&&i.callBridge(t,e,n,void 0,{caller:this.extraInfo.caller})}},t.prototype.callDefaultBridgeSync=function(t,e,n){var r=this.runtime();if(r){var o=r.getBridge();if(o)return o.callBridgeSync(t,e,n,{caller:this.extraInfo.caller})}},t.prototype.callInternalAPI=function(t,e,n,r){var o=this.runtime();if(o){var i=o.getBridge();i&&i.callInternalAPI(t,e,n,r,{caller:this.extraInfo.caller})}},t.prototype.callInternalAPISync=function(t,e,n){var r=this.runtime();if(r){var o=r.getBridge();if(o)return o.callInternalAPISync(t,e,n,{caller:this.extraInfo.caller})}},t.prototype.getEnvAppBiz=function(){return"TinyAppBiz-".concat(this.getEnvAppId())},t.prototype.getEnvAppId=function(){var t=this.runtime().getEnv().startupParams.appId;return void 0===t?"":t},t.prototype.getEnvPlatformIOS=function(){return"ios"===this.runtime().getEnv().platform},t.prototype.invokeExternalElementMethod=function(t,e,n,r){if(t&&void 0!==t.$viewId){var o=t.$viewId,i=this.runtime().getPageManager().getInstanceById("".concat(o));i&&i.invokeClientElementMethod(e,"onHostExternalMessage",[n,r])}},t.prototype.getBridgeExtraInfo=function(){return this.runtime().getBridge().extraInfo},t.prototype.getEnvPlatformAndroid=function(){return"android"===this.runtime().getEnv().platform},t.prototype.getEnvOnlyCube=function(){return this.runtime().getEnv().isOnlyCube},t.prototype.invokeCallback=function(t,e){t?this.callbackUnion[t]&&this.callbackUnion[t](e):this.callback&&this.callback(e)},t.prototype.dispatchResultCallback=function(t){var e=!1;if("object"==typeof t&&(e="error"in t||"errorMessage"in t),e?(this.shouldEmitEvent()&&this.runtime().getTypedEventManager().invokeInternalEvent(8,[{key:this.apiName,option:this.option,result:t,type:"fail"}]),t=this.callHookAfterLog(t),this.invokeCallback("fail",t)):(this.shouldEmitEvent()&&this.runtime().getTypedEventManager().invokeInternalEvent(8,[{key:this.apiName,option:this.option,result:t,type:"success"}]),this.invokeCallback("success",t)),this.invokeCallback("complete",t),this.invokeCallback(null,t),!e)return t;if(!this.shouldNotReturnPromise()){var n=this.runtime();if(n&&"function"==typeof n.getLogger){var r=n.getLogger();r&&r.attachErrorSource&&r.attachErrorSource(t,{from:"api",method:this.apiName,payload:this.option,stack:this.callStack})}throw t}},t.prototype.shouldNotReturnPromise=function(){if(this.apiInfo.noPromise)return!0;var t=!!(this.callbackUnion.complete||this.callbackUnion.success||this.callbackUnion.fail||this.callback),e=this.apiInfo.allowAbort||this.apiInfo.progress||this.apiInfo.returnProto;return t&&!e},t.prototype.shouldEmitEvent=function(){return this.extraInfo.directly&&"object"==typeof this.option&&!Vt[this.apiName]},t.prototype.prepareOption=function(){return this.shouldEmitEvent()&&this.runtime().getTypedEventManager().invokeInternalEvent(8,[{key:this.apiName,type:"invoke"}]),this.callHookBefore()},t.prototype.getInsideContext=function(){var t=this.insideContext;return t||(t=this.insideContext=new Mt(this)),t},t.prototype.callHookValidate=function(){var t=this.apiInfo.tapMark;if("function"!=typeof t||this.extraInfo.inside||(t=G(t,this)),!0===t){var e=this.getPageInstance();e&&!e.getTapMarkManager().checkTapMark()&&(this.validateResult={error:5,errorMessage:"".concat(this.apiName," can only be invoked by user tap gesture")})}return void 0===this.validateResult&&this.apiInfo.v&&!this.extraInfo.inside&&(this.apiInfo.b_v&&(this.validateResult=G(this.apiInfo.b_v,this,this.option)),void 0===this.validateResult&&(this.validateResult=G(this.apiInfo.v,this,this.option)),void 0===this.validateResult&&this.apiInfo.a_v&&(this.validateResult=G(this.apiInfo.a_v,this,this.option))),this.validateResult},t.prototype.callHookBefore=function(){var t=this.option;return this.optionPageViewId||this.apiInfo.b?(t=H({},t),Array.isArray(this.apiInfo.in)&&(t=Rt(t,this.apiInfo.in,Lt())),this.optionPageViewId&&(t.viewId=this.optionPageViewId),this.apiInfo.b&&(this.apiInfo.b_b&&(t=this.extraInfo.inside?G(this.apiInfo.b_b,this.getInsideContext(),t,this.callback)||t:G(this.apiInfo.b_b,this,t,this.callback)||t),t=this.extraInfo.inside?G(this.apiInfo.b,this.getInsideContext(),t,this.callback)||t:G(this.apiInfo.b,this,t,this.callback)||t,this.apiInfo.a_b&&(t=this.extraInfo.inside?G(this.apiInfo.a_b,this.getInsideContext(),t,this.callback)||t:G(this.apiInfo.a_b,this,t,this.callback)||t))):Array.isArray(this.apiInfo.in)&&(t=Rt(t,this.apiInfo.in,Lt())),ft(this.appxDomain)?t.__openCapabilityId=this.appxDomain.origin:t.__openCapabilityId&&delete t.__openCapabilityId,t},t.prototype.callHookAfter=function(t){var e=t;return this.apiInfo.a&&(this.apiInfo.b_a&&(this.apiInfo.ignoreShadowCopyResponse||(e=H({},e)),e=!0===this.extraInfo.inside?G(this.apiInfo.b_a,this.getInsideContext(),e,this.finalOption,this.option)||e:G(this.apiInfo.b_a,this,e,this.finalOption,this.option)||e),this.apiInfo.ignoreShadowCopyResponse||(e=H({},e)),e=!0===this.extraInfo.inside?G(this.apiInfo.a,this.getInsideContext(),e,this.finalOption,this.option)||e:G(this.apiInfo.a,this,e,this.finalOption,this.option)||e,this.apiInfo.a_a&&(this.apiInfo.ignoreShadowCopyResponse||(e=H({},e)),e=!0===this.extraInfo.inside?G(this.apiInfo.a_a,this.getInsideContext(),e,this.finalOption,this.option)||e:G(this.apiInfo.a_a,this,e,this.finalOption,this.option)||e)),Array.isArray(this.apiInfo.out)&&(e=Rt(e,this.apiInfo.out,Lt())),e},t.prototype.callHookAfterLog=function(t){var e=t;return this.apiInfo.a_l&&(e=G(this.apiInfo.a_l,this,e,this.finalOption,this.option)||e),e},t.prototype.processResult=function(t){var e,n=t||{};n=this.callHookAfter(n);var r=!0;return(null===(e=this.extraInfo)||void 0===e?void 0:e.directly)&&this.getFlag("disablePublicCallErrorCodeNormalize")&&(r=!1),r&&(n=function(t){return"string"==typeof t.error&&(t.error=parseInt(t.error,10)),0===t.error&&(delete t.error,delete t.errorMessage),t}(n)),n},t.prototype.getRewriteIdWithAppxDomain=function(t){var e,n,r=t,o=this.appxDomain;return!lt(o)&&!ft(o)||this.extraInfo.shouldNotRewriteIdOrClass||(r=(e={type:4,value:o.origin},n={type:8,value:r},{type:9,value:"p-".concat(e.value,"-").concat(n.value)}).value),r},t.prototype.getPageInstance=function(){var t=this.pageInstance;return t&&!t.hasPageUnloaded()||(t&&(this.pageInstance=null),t=this.runtime().getNav().getTopInstance()),t},t.prototype.initDependency=function(t,e,n,r){var o,i,a=this.runtime(),c=t&&t.page&&t.page.$viewId||void 0,s=c||e||void 0;s&&(i=a.getPageManager().getInstanceById(s)),i&&!i.hasPageUnloaded()||(i=null===(o=a.getNav())||void 0===o?void 0:o.getTopInstance()),i&&(s=i.pageId,this.pageInstance=i),this.assignedViewId=s,this.optionPageViewId=c},t.prototype.getState=function(){return this.extraInfo.parentState},t.prototype.getProtoContext=function(){return this.extraInfo.parentProtoContext},t.prototype.getCallerContext=function(){return this.extraInfo.callerContext},t.prototype.callProtoAPI=function(t,e){return Ct(t,this.apiName,this.appxDomain,this.ctx,this.runtime,e,this.extraInfo.shouldNotRewriteIdOrClass,{caller:this.extraInfo.caller,callerContext:this})},t.prototype.reportHostError=function(t,e,n,r,o){return this.runtime().getKernel().reportHostError(t,e,n,r,o)},t.prototype.getFlag=function(t){return this.ctx.getFlags()[t]},t.prototype.invokeCompositeElementMethod=function(t,e,n){var r;void 0===e&&(e=Yt);var o=null===(r=this.extraInfo)||void 0===r?void 0:r.scopedElementId;if(o){var i=n||this.apiName,a=function(t,e,n,r){if(t){var o=t.success,i=t.fail;return{complete:t.complete,data:function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]])}return n}(t,["success","fail","complete"]),element:n,fail:i,success:o,viewId:e,action:r}}return{element:n,viewId:e,action:r}}(t,this.assignedViewId,o,i);this.pageInstance?this.pageInstance.invokeCompositeElementMethod(a,this,e):e({error:1,errorMessage:"page not found"})}},t}();var zt,Jt,$t=/^(?:on|off)([A-Z])(\w+)/;var Zt,Qt,Xt={},te=function(t){function e(e,n,r,o,i,a,c){return t.call(this,e,n,r,o,i,a,void 0,c)||this}return F(e,t),e.prototype.invoke=function(){for(var t=this,e=K(this.apiInfo.state,this,this.option),n={},r=function(r){var i=o.apiInfo.proto[r];if("function"==typeof i.feature&&!G(i.feature,o))return"continue";var a=o.apiName?"".concat(o.extractProtoEntityNameFromAPIInfo(o.apiName),".").concat(r):void 0,c=function(r){r.extraInfo.caller=a,r.extraInfo.scopedElementId=t.apiInfo.compositeElement?t.getRewriteIdWithAppxDomain(t.option[0]):void 0,r.extraInfo.parentState=e,r.extraInfo.parentProtoContext=n,r.extraInfo.callerContext=t.extraInfo.callerContext||t};if(i.getter){var s,u=function(t,e,n,r,o,i,a){return new ee(e,n,i,a,t,{caller:void 0,directly:!1,viewId:o,inside:!1,scopedElementId:void 0})}(i,o.ctx,o.runtime,0,o.assignedViewId,o.appxDomain,r);c(u);var p=!1;Object.defineProperty(n,r,{configurable:!0,enumerable:!0,get:function(){return p||(s=u.invoke()),s},set:function(t){return s=t,p=!0,!0}})}else n[r]=function(e,n){if(t.apiInfo.compositeElement&&!t.hasPermission())return t.invokeNoPermissionCallbackDirectly(a,r,e,n);var o=ne(i,t.ctx,t.runtime,!1,!1,t.assignedViewId,t.appxDomain,r,e,n);return c(o),o.invoke()}},o=this,i=0,a=Object.keys(this.apiInfo.proto);i<a.length;i++)r(a[i]);return n},e.prototype.initDependency=function(e,n,r,o){var i=r.createOptionIndex,a=!1===i?null:e[i];t.prototype.initDependency.call(this,a,n,r,null)},e.prototype.extractProtoEntityNameFromAPIInfo=function(t){var e=t.match(/^(create|get)(.*)$/);return e?e[2]:"".concat(t[0].toUpperCase()).concat(t.slice(1))},e.prototype.hasPermission=function(){var t=this.runtime().getPermissionManager();return!t||t.checkElementPermission4ContextAPI(this.apiInfo.compositeElement,this.appxDomain)},e.prototype.invokeNoPermissionCallbackDirectly=function(t,e,n,r){var o=this,i={error:4,errorMessage:"无权调用 ".concat(t)},a=Bt(n,r,(function(){return Ut(o.ctx,o.runtime,e)})),c=a.option,s=a.callback,u=Ft(c),p=function(t){return o.runtime().getKernel().setTimeout(t,0)};u.fail&&p((function(){u.fail(i)})),u.complete&&p((function(){u.complete(i)})),s&&p((function(){s(i)}))},e}(qt);var ee=function(t){function e(e,n,r,o,i,a){return t.call(this,e,n,r,o,null,i,null,a)||this}return F(e,t),e.prototype.invoke=function(){return G(this.apiInfo.getter,this)},e}(qt);function ne(t,e,n,r,o,i,a,c,s,u,p){if(t.fn)return new(Jt||(Jt=function(t){function e(e,n,r,o,i,a,c,s){return t.call(this,e,n,r,o,i,c,a,s)||this}return F(e,t),e.prototype.invoke=function(){return!0===this.extraInfo.inside?G(this.apiInfo.fn,this.getInsideContext(),this.option,this.callback):G(this.apiInfo.fn,this,this.option,this.callback)},e.prototype.initDependency=function(e,n,r,o){var i=r.fnOptionIndex,a=0===i?e:1===i?o:null;t.prototype.initDependency.call(this,a,n,r,null)},e}(qt)),Jt)(e,n,a,c,s,u,t,{caller:void 0,directly:r,inside:o,viewId:i,scopedElementId:null==p?void 0:p.scopedElementId});var l=Bt(s,u,(function(){return Ut(e,n,c)})),f=l.option,h=l.callback;return function(t){return/^(?:on|off)[A-Z](?:\w+)/.test(t)}(c)?new(zt||(zt=function(t){function e(e,n,r,o,i,a,c,s){var u=t.call(this,e,n,r,o,i,a,c,s)||this;return"function"==typeof a.e?u.eventName=G(a.e,u):u.eventName=function(t,e){var n="";if(e&&$t.test(t)){var r=t.match($t);"string"==typeof e.m&&(n=e.m),!n&&r[1]&&r[2]&&(n=r[1].toLowerCase()+r[2])}return n}(o,u.apiInfo),u}return F(e,t),e.prototype.invoke=function(){if(this.finalOption=this.prepareOption(),this.callbackUnion=Ft(this.finalOption),/^on/.test(this.apiName)){if(at(this.apiInfo.m))return"function"==typeof this.callback?this.runtime().getTypedEventManager().addEventListener(this.apiInfo.m,this.callback,!0):{remove:function(){}};if(this.apiInfo.task){if("function"==typeof this.callback){var t=this.apiInfo.task,e=t.id,n=t.getTaskId,r=t.getPayload,o=t.isolate,i="function"==typeof e?G(e,this):e;this.callHookEventTask("start",o,i),this.runtime().getBridge().event.taskManager.addMatcher(this.eventName,i,this.callback,n,r)}}else this.callHookEvent("start"),this.runtime().getBridge().event.addEventListener(this.eventName,1,W(this.processEventResult,this),this.callback)}else if(at(this.apiInfo.m))"function"==typeof this.callback&&this.runtime().getTypedEventManager().removeEventListener(this.apiInfo.m,this.callback);else if(this.apiInfo.task){if("function"==typeof this.callback){var a=this.apiInfo.task;e=a.id,o=a.isolate,i="function"==typeof e?G(e,this):e,this.runtime().getBridge().event.taskManager.removeMatcher(this.eventName,i,this.callback),this.callHookEventTask("end",o,i)}}else this.runtime().getBridge().event.removeEventListener(this.eventName,1,this.callback),this.callHookEvent("end")},e.prototype.processEventResult=function(t){var e,n;n={},mt((e=t).data)||(n=bt(n=e.data)?n:{data:n}),t=n;var r=this.processResult(t);this.dispatchResultCallback(r)},e.prototype.callHookEventTask=function(t,e,n){var r=this.runtime().getBridge().event.taskManager;(2===e?r.hasMatcher(this.eventName,n):1===e&&r.hasMatcher(this.eventName))||It(this.apiInfo[t])&&(this.extraInfo.inside?G(this.apiInfo[t],this.getInsideContext()):G(this.apiInfo[t],this))},e.prototype.callHookEvent=function(t){this.runtime().getBridge().event.hasEventListener(this.eventName,1)||It(this.apiInfo[t])&&(this.extraInfo.inside?G(this.apiInfo[t],this.getInsideContext()):G(this.apiInfo[t],this))},e}(qt)),zt)(e,n,a,c,f,t,h,{caller:null==p?void 0:p.caller,directly:r,inside:o,viewId:i,scopedElementId:null==p?void 0:p.scopedElementId}):new(Wt||(Wt=function(t){function e(e,n,r,o,i,a,c,s){return t.call(this,e,n,r,o,i,a,c,s)||this}return F(e,t),e.prototype.invoke=function(){var t=this,e=this.invokeMethodAsync();if(!this.shouldNotReturnPromise()){var n=this.apiInfo,r=n.allowAbort,o=n.progress,i=n.returnEvent,a=n.returnProto;if(r||o||i||a){if(r){var c=this.apiInfo.cancelname||"abort";e[c]=function(){It(t.apiInfo.c)&&G(t.apiInfo.c,t),t.resolveImmediate&&t.resolveImmediate({error:9,errorMessage:"".concat(t.apiName,":fail abort")})}}if("object"==typeof i&&i)for(var s=function(n){var r=i[n],o=r.taskId,a=r.getTaskId,c=r.eventName,s=r.getPayload,p=r.feature;if("function"==typeof p&&!G(p,u))return"continue";var l=n[0].toUpperCase()+n.slice(1);e["on".concat(l)]=function(e){var n=t.runtime();if(n){var r=n.getBridge().event;if(r){var i="function"==typeof o?G(o,t):o;r.taskManager.addMatcher(c,i,e,a,s)}}},e["off".concat(l)]=function(e){var n=t.runtime();if(n){var r=n.getBridge().event;if(r){var i="function"==typeof o?G(o,t):o;r.taskManager.removeMatcher(c,i)}}}},u=this,p=0,l=Object.keys(i);p<l.length;p++)s(l[p]);if(o){var f=this.taskId,h=o.key,d=o.getPayload,y=o.getTaskId;e.onProgressUpdate=function(e){var n=t.runtime();if(n){var r=n.getBridge().event;r&&r.taskManager.addMatcher("".concat(h,"StateChange"),f,e,y,d)}}}if(a){var v=G(a,this);B(e,v)}}return e}},e.prototype.callHookDoingAsync=function(t){this.apiInfo.allowAbort&&(this.resolveImmediate=t);var e=this.getFlag("idempotentAPIWhiteList"),n=this.apiInfo.m||this.apiName;if(this.apiInfo.i||Array.isArray(e)&&e.indexOf(n)>-1){var r=this.getFlag("idempotentAPIBlackList");Array.isArray(r)&&r.indexOf(n)>-1?this.doingAsync(t):this.invokeIdempotentAPI(this.apiInfo.i,t)}else this.doingAsync(t)},e.prototype.doingAsync=function(t){It(this.apiInfo.d)?!0===this.extraInfo.inside?G(this.apiInfo.d,this.getInsideContext(),this.finalOption,t):G(this.apiInfo.d,this,this.finalOption,t):It(this.apiInfo.d_with_cache)?this.interceptBridgeCall4Cache(this.apiInfo.cache,t)||(!0===this.extraInfo.inside?G(this.apiInfo.d_with_cache,this.getInsideContext(),this.finalOption,t):G(this.apiInfo.d_with_cache,this,this.finalOption,t)):this.apiInfo.compositeElementAction?this.invokeCompositeElementMethod(this.finalOption,t):this.interceptBridgeCall4Cache(this.apiInfo.cache,t)||(this.shouldForbidAsyncJSAPI(this.apiInfo.m||this.apiName,this.finalOption)?(this.runtime().getEnv().packageAndRunSceneType,t({error:4,errorMessage:"API调用受限"})):Pt(this.ctx,this.runtime,this.apiInfo.m||this.apiName,this.appxDomainIsNotEmpty?H(H({},this.finalOption),{__appxDomain:this.appxDomain.scope}):this.finalOption,t,this.assignedViewId,{caller:this.extraInfo.caller}))},e.prototype.shouldForbidAsyncJSAPI=function(t,e){var n=!1;if("hideOptionMenuItem"===t){var r=this.getFlag("forbidAPIList");"favorite"===e.name&&r&&r.indexOf("hideOptionMenuItem")>-1&&(n=!0)}return n},e.prototype.interceptBridgeCall4Cache=function(t,e){var n=this;if(!t)return!1;var r=this.runtime(),o=r.getBridge(),i=t.key,a=r.getEnv().originalStartupParams;if(!At(a,i))return!1;var c=o.extraInfo[i];if(c||(c=o.extraInfo[i]={cache:Et(a,i)}),Ot(t)){var s=G(t.get,null,c,this.finalOption);return s?((0,this.runtime().getKernel().setTimeout)((function(){e(s)}),0),!0):(Pt(this.ctx,this.runtime,this.apiInfo.m||this.apiName,this.appxDomainIsNotEmpty?H(H({},this.finalOption),{__appxDomain:this.appxDomain.scope}):this.finalOption,(function(r){G(t.update,null,c,n.finalOption,r),e(r)}),this.assignedViewId,{caller:this.extraInfo.caller}),!0)}return t.set?(G(t.set,null,c,this.finalOption),!1):void 0},e.prototype.invokeMethodAsync=function(){var t=this,e=this.runtime(),n=e.getKernel(),r=n.Promise;return this.callHookValidate()?(this.callbackUnion=Ft(this.option),r.resolve().then((function(){return t.dispatchResultCallback(t.validateResult)}))):(this.callbackUnion=Ft(this.option),this.finalOption=this.prepareOption(),new r((function(r,o){var i=1;t.callHookDoingAsync((function(a){var c=t.apiInfo,s=c.progress;if(s){var u=s.key,p=e.getBridge().event;p&&p.taskManager.removeMatcher("".concat(u,"StateChange"),t.taskId)}if(c.allowAbort){if(!t.resolveImmediate)return;t.resolveImmediate=null}var l=t.processResult(a);try{if(i)return void n.setTimeout((function(){try{r(t.dispatchResultCallback(l))}catch(t){o(t)}}),2);r(t.dispatchResultCallback(l))}catch(t){o(t)}})),i=0})))},e.prototype.invokeIdempotentAPI=function(t,e){if(this.finalOption&&Object.keys(this.finalOption).length>0)return this.doingAsync(e);var n=this.runtime(),r=n.getBridge(),o=r.extraInfo.idempotenceInfo;o||(o=r.extraInfo.idempotenceInfo={});var i=this.apiInfo.m||this.apiName,a=void 0!==this.optionPageViewId?this.optionPageViewId:void 0!==this.assignedViewId?this.assignedViewId:"default",c=this.appxDomainIsNotEmpty?this.appxDomain.scope:"default",s="".concat(i,"-").concat(a,"-").concat(c),u=o[s];u||(u=o[s]={processing:!1,resolveQueue:[]}),u.processing?u.resolveQueue.push(e):(u.processing=!0,this.doingAsync((function(t){var r;u.processing=!1;try{r=ot(rt(t))}catch(t){r={},n.getLogger().reportError(12,t)}e(t),u.resolveQueue&&u.resolveQueue.length>0&&(u.resolveQueue.forEach((function(t){t(ot(rt(r)))})),u.resolveQueue=[])})))},e.prototype.abort=function(){this.resolveImmediate&&this.resolveImmediate({error:9,errorMessage:"".concat(this.apiName,":fail abort")})},e}(qt)),Wt)(e,n,a,c,f,t,h,{caller:null==p?void 0:p.caller,directly:r,inside:o,viewId:i,scopedElementId:null==p?void 0:p.scopedElementId})}function re(t,e,n,r,o,i,a,c,s,u){var p=Bt(s,void 0,(function(){return Ut(e,n,c)})).option;return new(Qt||(Qt=function(t){function e(e,n,r,o,i,a,c){return t.call(this,e,n,r,o,i,a,null,c)||this}return F(e,t),e.prototype.interceptBridgeCallSync4Cache=function(t){if(t){var e=this.runtime(),n=e.getBridge(),r=t.key,o=e.getEnv().originalStartupParams;if(At(o,r)){var i=n.extraInfo[r];if(i||(i=n.extraInfo[r]={cache:Et(o,r)}),Ot(t)){var a=G(t.get,null,i,this.finalOption);if(a)return{hit:!0,result:a};var c=wt(this.ctx,this.runtime,this.apiInfo.m||this.apiName,this.appxDomainIsNotEmpty?H(H({},this.finalOption),{__appxDomain:this.appxDomain.scope}):this.finalOption,this.assignedViewId,{caller:this.extraInfo.caller});return G(t.update,null,i,this.finalOption,c),{hit:!1,result:c}}t.set&&G(t.set,null,i,this.finalOption)}}},e.prototype.callHookDoingSync=function(){var t;if(It(this.apiInfo.d))t=!0===this.extraInfo.inside?G(this.apiInfo.d,this.getInsideContext(),this.finalOption,void 0):G(this.apiInfo.d,this,this.finalOption,void 0);else if(It(this.apiInfo.d_with_cache_sync))(t=(e=this.interceptBridgeCallSync4Cache(this.apiInfo.cache))?e.result:!0===this.extraInfo.inside?G(this.apiInfo.d_with_cache_sync,this.getInsideContext(),this.finalOption,void 0):G(this.apiInfo.d_with_cache_sync,this,this.finalOption,void 0))&&(t=this.processResult(t)||t);else{var e;(t=(e=this.interceptBridgeCallSync4Cache(this.apiInfo.cache))?e.result:wt(this.ctx,this.runtime,this.apiInfo.m||this.apiName,this.appxDomainIsNotEmpty?H(H({},this.finalOption),{__appxDomain:this.appxDomain.scope}):this.finalOption,this.assignedViewId,{caller:this.extraInfo.caller}))&&(t=this.processResult(t)||t)}return t||(t={error:999,errorMessage:"System Error: Return ".concat(t)}),t},e.prototype.invoke=function(){return this.callHookValidate()?this.validateResult:(this.finalOption=this.prepareOption(),It(this.apiInfo.responseProxy)&&!0!==this.extraInfo.inside&&this.getFlag("enableBridgeResponseProxy")&&(t=G(this.apiInfo.responseProxy,this,this.finalOption,W(this.callHookDoingSync,this),W(this.callHookDoingAsync4ResponseProxy,this))),t||(t=this.callHookDoingSync()),t);var t},e.prototype.callHookDoingAsync4ResponseProxy=function(t){var e=this,n=function(n){var r=e.processResult(n);t(r)};this.interceptBridgeCall4CacheAsync(this.apiInfo.cache,n)||Pt(this.ctx,this.runtime,this.apiInfo.m||this.apiName,this.appxDomainIsNotEmpty?H(H({},this.finalOption),{__appxDomain:this.appxDomain.scope}):this.finalOption,n,this.assignedViewId,{caller:this.extraInfo.caller})},e.prototype.interceptBridgeCall4CacheAsync=function(t,e){var n=this;if(!t)return!1;var r=this.runtime(),o=r.getBridge(),i=t.key,a=r.getEnv().originalStartupParams;if(!At(a,i))return!1;var c=o.extraInfo[i];if(c||(c=o.extraInfo[i]={cache:Et(a,i)}),Ot(t)){var s=G(t.get,null,c,this.finalOption);return s?((0,this.runtime().getKernel().setTimeout)((function(){e(s)}),0),!0):(Pt(this.ctx,this.runtime,this.apiInfo.m||this.apiName,this.appxDomainIsNotEmpty?H(H({},this.finalOption),{__appxDomain:this.appxDomain.scope}):this.finalOption,(function(r){G(t.update,null,c,n.finalOption,r),e(r)}),this.assignedViewId,{caller:this.extraInfo.caller}),!0)}return t.set?(G(t.set,null,c,this.finalOption),!1):void 0},e}(qt)),Qt)(e,n,a,c,p,t,{caller:null==u?void 0:u.caller,directly:r,inside:o,viewId:i})}function oe(t){var e=function(){};return e.prototype=t,ae(new e),t}function ie(t){return t.__MAGIC_SLOW_PROPERTY=1,delete t.__MAGIC_SLOW_PROPERTY,t}function ae(t){if(t===ae)throw ae;return t}var ce={SDKVersion:!0,call:!0,callSync:!0,canIUse:!0,emit:!0,off:!0,on:!0,renderTarget:!0};function se(t,e){if(!e.length)return!1;for(var n=t,r=0,o=e;r<o.length;r++){var i=o[r];if(!(n=n&&n[i]))return!1}return!0}function ue(t,e){if(!e.length)return!1;for(var n=t,r=0,o=e;r<o.length;r++){var i=o[r];if(null==(n=n&&n[i]))return!1}return!0}var pe=function(){function t(t,e,n,r,o){this.collection=new fe,this.collectedCanIUseKeys=it(),this.hasRegisteredCanIUseReportHandler=!1,this.ctx=n,this.getRuntime=r,this.appxDomain=e,this.unrefRuntime=o,this.callSync4PublicNamed=W(this.callSync4PublicNamed,this),this.callSync4PublicNamedInside=W(this.callSync4PublicNamedInside,this),this.call4PublicNamed=W(this.call4PublicNamed,this),this.call4PublicNamedInside=W(this.call4PublicNamedInside,this),this.call=W(this.call,this),this.callSync=W(this.callSync,this),this.canIUse=W(this.canIUse,this),this.call4LinkedContext=W(this.call4LinkedContext,this),this.call4ProtoContext=W(this.call4ProtoContext,this),this.call4PublicCall=W(this.call4PublicCall,this),this.callSync4PublicCall=W(this.callSync4PublicCall,this),ft(e)?this.publicInstance={canIUse:this.canIUse}:this.publicInstance={call:this.call4PublicCall,callSync:this.callSync4PublicCall,canIUse:this.canIUse,emit:t.emit,off:t.off,on:t.on}}return t.prototype.callSync4PublicNamed=function(t,e,n){return xt(this.collection,this.appxDomain,this.ctx,this.getRuntime,1,t,e,n)},t.prototype.callSync4PublicNamedInside=function(t,e,n){return xt(this.collection,this.appxDomain,this.ctx,this.getRuntime,5,t,e,n)},t.prototype.callSync4PublicCall=function(t,e,n){return xt(this.collection,this.appxDomain,this.ctx,this.getRuntime,2,t,e,n)},t.prototype.call4PublicCall=function(t,e,n,r){return kt(this.collection,this.appxDomain,this.ctx,this.getRuntime,2,t,e,n,r)},t.prototype.call4PublicNamed=function(t,e,n,r){return kt(this.collection,this.appxDomain,this.ctx,this.getRuntime,1,t,e,n,r)},t.prototype.call4PublicNamedInside=function(t,e,n,r){return kt(this.collection,this.appxDomain,this.ctx,this.getRuntime,5,t,e,n,r)},t.prototype.removeAPIs=function(t,e){this.collection.removeAPIs(t);for(var n=e?this.publicInstance[e]:this.publicInstance,r=0,o=t;r<o.length;r++){var i=o[r];n&&n[i]&&(n[i]=void 0)}},t.prototype.replaceAPI=function(t,e){this.collection.replaceAPI(t,e)},t.prototype.replacePublicCallProxyAPI=function(t,e){this.collection.replacePublicCallProxyAPI(t,e)},t.prototype.replaceLinkedContextAPI2Proto=function(t,e){this.replaceAPI(t,e),this.publicInstance[t]=W(this.call4ProtoContext,null,t,!1)},t.prototype.getCollection=function(){return this.collection},t.prototype.callSync=function(t,e,n){return xt(this.collection,this.appxDomain,this.ctx,this.getRuntime,0,t,e,n)},t.prototype.canIUse=function(t){return"string"!=typeof t&&(t=String(t)),this.registerCanIUseReportHandler(),this.collectedCanIUseKeys.add(t),function(t,e,n,r,o,i){if(!r.getFlag("disableCanIUseByMetaInBridge")){var a=ct(i);if(void 0!==a)return a}var c=String(i).split(".");if(1===c.length&&ce[c[0]])return!0;var s=0,u=o();if(u){var p=u.getNav().getTopInstance();p&&(s=p.getEngineType())}return!!se(t.getCanIUseMap(r,o,s),c)||!!t.evaluateCanIUse(r,o,e,c)||!!(r.getFlag("enableCanIUseFix4PublicInstanceCheck")?ue:se)(n,c)}(this.collection,this.appxDomain,this.publicInstance,this.ctx,this.getRuntime,t)},t.prototype.call=function(t,e,n,r){return kt(this.collection,this.appxDomain,this.ctx,this.getRuntime,0,t,e,n,r)},t.prototype.call4LinkedContext=function(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return function(t,e,n,r,o,i,a){var c="".concat(o),s=t.getAPIInfoByName(c)||St;if(!_t[c]){jt(s,o);var u=function(t,e,n,r,o,i,a,c,s){return new(Zt||(Zt=function(t){function e(e,n,r,o,i,a,c){var s=t.call(this,e,n,r,o,i,a,void 0,c)||this;return s.cache4ApiInfo=Object.create(null),s.callLinkedCollection=W(s.callLinkedCollection,s),s.callAfterCompositeElementReady=W(s.callAfterCompositeElementReady,s),s.callSyncLinkedCollection=W(s.callSyncLinkedCollection,s),s}return F(e,t),e.prototype.invoke=function(){return K(this.apiInfo.create,this,this.option)},e.prototype.callScopedBridge=function(t,e,n,r){var o=this.appxDomain;o&&!pt(o)&&(e=H(H({},e),{__appxDomain:o.scope}));var i=this.runtime();if(i){var a=i.getBridge();a&&a.callBridge(t,e,n)}},e.prototype.callLinkedCollection=function(t,e,n){return ne(this.getApiInfoFromLinkedCollection(t),this.ctx,this.runtime,!1,!1,this.assignedViewId,this.appxDomain,t,e,n).invoke()},e.prototype.callSyncLinkedCollection=function(t,e){return re(this.getApiInfoFromLinkedCollection(t),this.ctx,this.runtime,!1,!1,this.assignedViewId,this.appxDomain,t,e).invoke()},e.prototype.callAfterCompositeElementReady=function(t,e){var n=this,r=this.getPageInstance();r&&r.whenCompositeElementReady(e.element,(function(){n.callLinkedCollection(t,e)}))},e.prototype.initDependency=function(e,n,r,o){var i=r.createOptionIndex,a=!1===i?null:e[i];t.prototype.initDependency.call(this,a,n,r,null)},e.prototype.getApiInfoFromLinkedCollection=function(t){if(!this.cache4ApiInfo[t]){var e,n=this.apiInfo.linked;e=n&&n[t]||Xt,this.cache4ApiInfo[t]=e}return this.cache4ApiInfo[t]},e}(qt)),Zt)(e,n,i,a,c,t,{caller:void 0,directly:!0,shouldNotRewriteIdOrClass:s,viewId:null})}(s,n,r,0,0,e,c,i,a);return u.invoke()}}(this.collection,this.appxDomain,this.ctx,this.getRuntime,t,n,e)},t.prototype.call4ProtoContext=function(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var o=this.collection.getAPIInfoByName(t),i=jt(o,t);return Ct(o,t,this.appxDomain,this.ctx,this.getRuntime,n,e,{caller:i})},t.prototype.destroy=function(){this.publicInstance=null,this.collection=null,this.unrefRuntime&&this.unrefRuntime()},t.prototype.registerCanIUseReportHandler=function(){var t=this;if(!this.hasRegisteredCanIUseReportHandler){var e=this.getRuntime();this.ctx.getFlag("enableCanIUseReport")&&e.getEventManager().addEventListener("pause",(function(){var n,r,o,i=[];t.collectedCanIUseKeys.forEach((function(t){i.push(t)})),i.length>0&&t.call("remoteLog",{actionId:"event",bizType:"TAC",param4:(n={key:i.join("|"),appxDomain:lt(t.appxDomain)||ft(t.appxDomain)?t.appxDomain.origin:e.getEnv().startupParams.appId},r=!0,n?"string"==typeof n?n:(o=n,o&&"object"==typeof o?Object.keys(o):[]).filter((function(t){return void 0!==n[t]||!r})).map((function(t){var e="".concat(t,"=");return e+=function(t){return null!==t&&"object"==typeof t?"function"==typeof t.toString?String(t):"":String(t)}(n[t]).replace(/,/g,";").replace(/\^/g,"@").replace(/\=/g,"~"),e})).join("^"):""),seedId:"miniapi.canIUse",type:"behavior"}),t.collectedCanIUseKeys.clear()})),this.hasRegisteredCanIUseReportHandler=!0}},t}();var le=function(){function t(t,e,n){var r=this;this.extraInfo={},this.scope4Domain=Object.create(null),this.scopeList4Plugin=[],this.dynamicAPIs={},this.ctx=t,this.getRuntime=e,this.unrefRuntime=n,this.callBridge=function(t,e,n,o,i){return r.callBridgeImpl(t,e,n,o,i)},this.callBridgeSync=function(t,e,n,o){return r.callBridgeSyncImpl(t,e,n,o)},this.on=W(this.on,this),this.off=W(this.off,this),this.emit=W(this.emit,this),this.defaultScope=new pe(this,ut,this.ctx,this.getRuntime)}return Object.defineProperty(t.prototype,"event",{get:function(){return this.getEventManager()},enumerable:!1,configurable:!0}),t.prototype.off=function(t,e){return this.getEventManager().removeEventListener(t,1,e)},t.prototype.on=function(t,e,n){var r=this.extraInfo;if(!r.reportMyOnComposite){var o=!0;try{var i=this.getRuntime().getBehaviorManager().get("reportMyOnComposite");i.report&&(t.startsWith("nbcomponent.")?i.report("myoncomposite"):o=!1)}catch(t){}o&&(r.reportMyOnComposite=!0)}return this.getEventManager().addEventListener(t,1,e,n)},t.prototype.emit=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return this.getEventManager().invokeTypedEvent(t,1,e)},t.prototype.callBridgeImpl=function(t,e,n,r,o){return Pt(this.ctx,this.getRuntime,t,e,n,void 0,o)},t.prototype.callBridgeSyncImpl=function(t,e,n,r){return wt(this.ctx,this.getRuntime,t,e,n,r)},t.prototype.dispose=function(){this.unrefRuntime&&this.unrefRuntime()},t.prototype.callInternalAPI=function(t,e,n,r,o){return function(t,e,n,r,o,i,a){if(e().getEnv()){var c=ht().config;c&&!0===c.noUseInternalAPI?Pt(t,e,n,r,o,i,a):Pt(t,e,"internalAPI",{method:n,param:r,viewId:r&&r.viewId},o,i,a)}}(this.ctx,this.getRuntime,t,e,n,r,o)},t.prototype.callInternalAPISync=function(t,e,n,r){return function(t,e,n,r,o,i){if(e().getEnv()){var a=ht().config;return a&&!0===a.noUseInternalAPI?wt(t,e,n,r,o,i):wt(t,e,"internalAPI",{method:n,param:r,viewId:r&&r.viewId},void 0,i)}}(this.ctx,this.getRuntime,t,e,n,r)},t.prototype.getPluginScopes=function(){return this.scopeList4Plugin},t.prototype.createScope=function(t){if(pt(t))return this.defaultScope;var e=this.scope4Domain,n=lt(t),r=n||ft(t)?t.origin:t.scope;if(!e[r]){var o=e[r]=new pe(this,t,this.ctx,this.getRuntime);n&&this.scopeList4Plugin.push(o)}return e[r]},t.prototype.getScope=function(t){return pt(t)?this.defaultScope:this.scope4Domain[lt(t)||ft(t)?t.origin:t.scope]},t.prototype.getScopeByProviderInfo=function(t){if(function(t){return t&&1===t.providerType}(t)||function(t){return t&&2===t.providerType}(t))return this.scope4Domain[t.providerId];var e=this.getRuntime();return e?e.getKernel().isUsingExtensionMode?this.scope4Domain.app:this.defaultScope:void 0},t.prototype.setDynamicDistributedAPIs=function(t){this.dynamicAPIs=H(H({},this.dynamicAPIs),t)},t.prototype.getDynamicDistributedAPIs=function(){return this.dynamicAPIs},t.prototype.getEventManager=function(){var t,e;return this.eventInstance||(this.eventInstance=(t=this.getRuntime,e=function(){function e(){var t=this;this.eventMap=Object.create(null),this.eventInvokeMap=Object.create(null),this.taskManager=new gt((function(e,n,r){t.addEventListener(e,r?0:1,n)}))}return e.prototype.hasEventListener=function(t,e){var n=this.getCustomTypeContext(t);return e?!(!n[e]||!n[e].length):!!(n[0].length||n[1].length||n[2].length)},e.prototype.addEventListener=function(t,e,n,r){var o=this;if(void 0===r&&(r=n),this.hasCustomEventMatched(t,e,r)||this.eventMap[t][e].push({cache:r,invoke:n}),this.registerListener(t),1===e)return{remove:function(){o.removeEventListener(t,e,r)}}},e.prototype.removeEventListener=function(t,e,n){e?(this.removeEventListener4Type(t,e,n),this.hasEventListener(t)||this.unregisterListener(t)):(this.eventMap[t]=null,this.unregisterListener(t))},e.prototype.removeEventListener4Type=function(t,e,n){var r=this.getCustomTypeContext(t);n||(r[e]=[]),r[e].length&&(r[e]=r[e].filter((function(t){return t.cache!==n})))},e.prototype.invokeTypedEvent=function(t,e,n){if(this.hasEventListener(t)){var r=this.getCustomTypeContext(t)[e];if(r&&r.length)for(var o=0,i=r;o<i.length;o++)i[o].invoke.apply(null,n)}},e.prototype.getCustomTypeContext=function(t){return this.eventMap[t]||(this.eventMap[t]=[[],[],[]]),this.eventMap[t]},e.prototype.hasCustomEventMatched=function(t,e,n){return this.getCustomTypeContext(t)[e].some((function(t){return t.cache===n}))},e.prototype.registerListener=function(e){if(!this.eventInvokeMap[e]){var n=this.eventInvokeMap[e]=W(this.invokeEventImpl,this,e);t().getKernel().__EVENT_ADD_LISTENER__(e,n)}},e.prototype.unregisterListener=function(e){var n=this.eventInvokeMap[e];n&&(t().getKernel().__EVENT_REMOVE_LISTENER__(e,n),this.eventInvokeMap[e]=null)},e.prototype.invokeEventImpl=function(t,e){if(this.hasEventListener(t)){for(var n=this.getCustomTypeContext(t),r=0,o=n[0];r<o.length;r++)G(o[r].invoke,null,e);var i=n[1].length,a=n[2].length;(i||a)&&function(t,e){var n;if(!(!t||!t.data)){var r=t.data,o=(delete(n=H({},r)).appInstanceId,delete n.instanceId,delete n.pageName,n);t.data=o,e(t),t.data=r}else e(t)}(e,(function(t){for(var e=0,r=n[1];e<r.length;e++)G(r[e].invoke,null,t);for(var o=0,i=n[2];o<i.length;o++)G(i[o].invoke,null,t.data)}))}},e}(),new e)),this.eventInstance},t}(),fe=function(){function t(){this.apiMap=Object.create(null),this.publicProxyMap=Object.create(null)}return t.prototype.setCanIUses=function(t){this.typedCanIUseMapInfo=t},t.prototype.removeAPIs=function(t){for(var e=this.apiMap,n=0,r=t;n<r.length;n++)e[r[n]]=void 0},t.prototype.setAPIs=function(t){var e=this.apiMap;ie(e);for(var n=0,r=t;n<r.length;n++){for(var o=r[n],i=o.values,a=0,c=o.keys;a<c.length;a++)e[p=c[a]]=i[p];if(o.namespace)for(var s=0,u=o.keys;s<u.length;s++){var p;e[p=u[s]].avaliableNamespace=o.namespace}}return oe(e),e},t.prototype.replaceAPI=function(t,e){var n=this.apiMap;n[t]&&e&&(n[t]=e)},t.prototype.setPublicCallProxyAPIs=function(t){var e=this.publicProxyMap;ie(e);for(var n=0,r=t;n<r.length;n++)for(var o=r[n],i=o.values,a=0,c=o.keys;a<c.length;a++){var s=c[a];e[s]=i[s]}return oe(e),this.publicProxyMap=e,e},t.prototype.getPublicCallProxyAPIInfoByName=function(t){return this.publicProxyMap[t]},t.prototype.hasPublicCallProxyAPI=function(t){return!!this.publicProxyMap[t]},t.prototype.replacePublicCallProxyAPI=function(t,e){var n=this.publicProxyMap;n[t]&&e&&(n[t]=e)},t.prototype.has=function(t){return!!this.apiMap[t]},t.prototype.evaluateCanIUse=function(t,e,n,r){if(e()){var o=!n||pt(n)?"empty":"".concat(n.type,"_").concat(n.scope);this.typedCanIUseMap||(this.typedCanIUseMap=he(this.typedCanIUseMapInfo,t,e));var i=this.typedCanIUseMap.evaluate,a=i[o];i[o]||(a=i[o]={});var c=this.typedCanIUseMapInfo.evaluate;if(c)for(var s=0,u=c;s<u.length;s++){var p=(0,u[s])(t,e,n,r,a);if(void 0!==p)return p}}return 0},t.prototype.getCanIUseMap=function(t,e,n){if(e()){if(this.typedCanIUseMap||(this.typedCanIUseMap=he(this.typedCanIUseMapInfo,t,e)),1!==n&&2!==n){if(!this.typedCanIUseMap)return{};n=this.typedCanIUseMap.defaultType}return this.typedCanIUseMap?this.typedCanIUseMap[n]:{}}return{}},t.prototype.getAPIMap=function(){return this.apiMap},t.prototype.getAPIInfoByName=function(t){return this.apiMap[t]},t}();function he(t,e,n){for(var r,o=((r={defaultType:t.defaultType,evaluate:{}})[1]=Object.create(null),r[2]=Object.create(null),r),i=0,a=[1,2];i<a.length;i++){var c=a[i],s=t[c];if(s){for(var u=o[c],p=0,l=s(e,n);p<l.length;p++)u=de(u,l[p]);o[c]=u}}return o}function de(t,e){if(!t)return e;if(!e)return t;var n=1===t?{}:H({},t);if("object"==typeof e)for(var r=0,o=Object.keys(e);r<o.length;r++){var i=o[r];n[i]=de(n[i],e[i])}return n}var ye=function(){function t(t){this.callbackMap=Object.create(null),this.implMap=Object.create(null),this.appInstanceId=t}return t.prototype.dispose=function(){var t=this;Object.keys(this.implMap).forEach((function(e){t.removeEventListeners(e)})),this.implMap=null,this.callbackMap=null},t.prototype.addEventListener=function(t,e){if("function"!=typeof e)throw new Error("callback is not function");if(!this.implMap[t]){var n=this.invokeEvent.bind(this,t);this.addEventImpl(t,n),this.implMap[t]=n}this.callbackMap[t]=this.callbackMap[t]||[];var r=this.callbackMap[t];r.indexOf(e)<0&&r.push(e)},t.prototype.removeEventListener=function(t,e){if("function"!=typeof e)throw new Error("callback is not function");this.callbackMap[t]=this.callbackMap[t]||[],this.callbackMap[t]=this.callbackMap[t].filter((function(t){return t!==e})),0===this.callbackMap[t].length&&(this.removeEventImpl(t,this.implMap[t]),delete this.implMap[t])},t.prototype.removeEventListeners=function(t){this.callbackMap[t]=[],this.removeEventImpl(t,this.implMap[t]),delete this.implMap[t]},t.prototype.invokeEvent=function(t,e){for(var n=0,r=this.callbackMap[t]||[];n<r.length;n++)(0,r[n])(e)},t.prototype.addEventImpl=function(t,e){document.addEventListener(t,e)},t.prototype.removeEventImpl=function(t,e){document.removeEventListener(t,e)},t}(),ve=function(){function t(){this.flag=0}return t.prototype.invokeInternalEvent=function(t,e){},t.prototype.addEventListener=function(t,e,n){var r=this;if(n)return{remove:function(){r.removeEventListener(t,e)}}},t.prototype.removeEventListener=function(t,e){},t}(),ge=function(){function t(){}return t.prototype.isFirstPage=function(){return!0},t.prototype.getTopViewId=function(){},t.prototype.getTopInstance=function(){},t}(),me=function(){},be=function(){function t(t,e){this.id="1",this.type=0,this._kernel=t,this._eventManager=e,this._nav=new ge,this._page={getInstanceById:function(){}},this._switch={get:me}}return t.prototype.getLogger=function(){},t.prototype.getMeta=function(){return{getAppBehavior:me,getTabBar:me,isTabPage:me,removeTabBarItem:me,getAppExt:me}},t.prototype.getBehaviorManager=function(){return{report:me}},t.prototype.getApp=function(){return{appInstanceId:this.getKernel().appInstanceId}},t.prototype.getSubPackageManager=function(){},t.prototype.getTypedEventManager=function(){return this._typedEventManager||(this._typedEventManager=new ve),this._typedEventManager},t.prototype.getRegistry=function(){},t.prototype.setRegistry=function(){},t.prototype.getMiniExtensionManager=function(){},t.prototype.getSwitchManager=function(){return this._switch},t.prototype.getPageManager=function(){return this._page},t.prototype.getNav=function(){return this._nav},t.prototype.getEnv=function(){return this._env},t.prototype.setEnv=function(t){this._env=t},t.prototype.setBridge=function(t){this._bridge=t},t.prototype.getBridge=function(){return this._bridge},t.prototype.getKernel=function(){return this._kernel},t.prototype.getEventManager=function(){return this._eventManager},t}(),Ie=function(){};function Oe(t,e,n,r,o){var i="smallfish",a=new ye(i),c={appInstanceId:i,userAgent:"",isDisableAppContext:!1,isUsingExtensionMode:!1,__BRIDGE_CALL__:function(t,e,n,r){"undefined"!=typeof AlipayJSBridge?AlipayJSBridge.call(e,n,r):document.addEventListener("AlipayJSBridgeReady",(function(){AlipayJSBridge.call(e,n,r)}))},__BRIDGE_CALL_SYNC__:function(t,e,n){return{error:10,errorMessage:"callSync is not avaliable in H5WebView"}},__EVENT_ADD_LISTENER__:a.addEventListener.bind(a),__EVENT_REMOVE_LISTENER__:a.removeEventListener.bind(a),__FATAL_ERROR__:Ie,__GET_PLATFORM_ELEMENTS__:function(){return[]},__GET_STARTUP_PARAMS__:function(){return"undefined"!=typeof AlipayJSBridge?AlipayJSBridge.startupParams:{}},__EVAL__:Ie,__IMPORT_SCRIPT__:Ie,__PERFORMANCE__:Ie,__REPORT_ERROR__:Ie,__SET_PAGE_CONTEXT_GETTER__:Ie,__SET_CURRENT_PAGE_ID_GETTER__:Ie,__SET_RUNTIME_ERROR_REPORTER__:Ie,Promise:t,setTimeout:"undefined"==typeof window?e:e.bind(window),clearTimeout:"undefined"==typeof window?n:n.bind(window),setInterval:"undefined"==typeof window?r:r.bind(window),clearInterval:"undefined"==typeof window?o:o.bind(window),getFrameworkContextSymbol:Ie,reportHostError:Ie},s=new be(c,a);return s.setEnv(function(t){var e,n="undefined"!=typeof navigator?navigator.userAgent:"",r=function(t){if(dt)return dt;var e=t.match(/Griver\/(\d+\.\d+\.\d+)/),n=t.match(/AliApp\((\S*)/),r=t.match(/AriverApp\((\S*)/),o=t.match(/GriverApp\((\S*)/),i=!!n&&2===n.length&&n[1].split("/")||!!r&&2===r.length&&r[1].split("/")||!!o&&2===o.length&&o[1].split("/"),a="unknown",c="0.0.0",s=0,u="",p=function(t){if(!yt){var e=t.match(/UCBS\/((\d+)\.(\d+))/);if(e){var n=e[1]||"",r=parseInt(e[2],10),o=parseInt(e[3],10);yt=[n,r,o]}else yt=["",0,0]}return yt}(t),l=!(!p||!p[0]),f=t.indexOf("AlipayIDE")>-1,h=t.match(/Language\/(\S+)/),d=t.indexOf("Android")>-1,y=!d&&!!t.match(/iPhone|iPad/i),v=y?"ios":d?"android":"unknown",g=function(t,e){if(!vt){if(e){var n=t.match(/OS (\d+)_(\d+)(?:_(\d+))?/);if(n){var r=parseInt(n[1],10),o=parseInt(n[2],10),i=parseInt(n[3]||"0",10);vt=[r,o,i]}}vt=vt||[0,0,0]}return vt}(t,y);if(i?(a=i[0],c=i[1].match(/(\d+\.\d+\.\d+)/)[0],u=i[1].match(/([\w.]+)/)[0]):e&&(a="Griver",u=c=e[0]),"string"==typeof c){var m=function(t){for(var e=[],n=0,r=t.split(".");n<r.length;n++){var o=r[n];e.push(parseInt(o,10))}return e}(c);s=(m[0]?1e6*m[0]:0)+(m[1]?1e3*m[1]:0)+(m[2]?1*m[2]:0)}return dt={alipayVersionSequence:s,clientName:a.toLowerCase(),clientVersion:c,clientVersionSequence:s,iosMajorVersion:g[0],iosMinorVersion:g[1],iosPatchVersion:g[2],isAndroid:d,isIDE:f,isIOS:y,isUCWebView:l,language:h?h[1]:"",originalClientName:a,originalClientVersion:u,platform:v,ucMajorVersion:p[1],ucMinorVersion:p[2],ucVersion:p[0]}}(n),o=r.alipayVersionSequence,i=r.clientName,a=r.clientVersion,c=r.clientVersionSequence,s=r.isAndroid,u=r.isIDE,p=r.isIOS,l=r.isUCWebView,f=r.language,h=r.originalClientName,d=r.platform,y=r.ucMajorVersion,v=r.ucMinorVersion,g=r.ucVersion;return{alipayVersionSequence:o,appxVersion:"2.0.0",clientName:i,clientVersion:a,clientVersionSequence:c,isAndroid:s,isIDE:u,isIOS:p,isUCWebView:l,language:f,iosMajorVersion:r.iosMajorVersion,iosMinorVersion:r.iosMinorVersion,iosPatchVersion:r.iosPatchVersion,isPortalWorkerScene:void 0,get originalStartupParams(){return e||(e=t.__GET_STARTUP_PARAMS__()),e},originalClientName:h,packageAndRunSceneType:17,platform:d,startupParams:{get appId(){return e||(e=t.__GET_STARTUP_PARAMS__()),e&&e.appId||""}},ucMajorVersion:y,ucMinorVersion:v,ucVersion:g,userAgent:n}}(c)),s}var Pe=function(){function t(){var t,e=this;this.flags=((t={}).idempotentAPIWhiteList=["getStartupParams","getUserInfo","getRunScene","getSystemInfo","getClientInfo"],t.idempotentAPIBlackList=void 0,t.forbidAPIList=void 0,t.filterAppxDomainForSecurity=void 0,t.invokeBridgeWithCaller=void 0,t.disablePublicCallErrorCodeNormalize=void 0,t.ignoreCallbackWhenInvokeMyCall=void 0,t.enableBridgeResponseProxy=1,t.disableCanIUseByMetaInBridge=void 0,t.authCodeMapping4Aplus=void 0,t.uep=void 0,t.fixTempFilePath=void 0,t.selectorQueryContextClearActions=void 0,t.validSignContractURL=void 0,t.enableOpenEmbeddedMiniProgramScopedBridgeCall=void 0,t.openEmbeddedMiniProgramDefaultBridgeCallExtensionsWhiteList=void 0,t.disableGetWidthFromUA=void 0,t.enableGetterFromState4Audio=void 0,t.compositeElement=void 0,t.cameraContextPermissionCheck=void 0,t.navigateToMiniProgramQuery=1,t.enableExtConfigFromStartupParms=void 0,t.enableNavigateToMiniProgramScopedBridgeCall=void 0,t.disableLoadFontFaceLoadCanvasFont=void 0,t.disableSubscribeMsgJSAPI=void 0,t.fixNavigateBackMiniProgram=void 0,t.iosVersion4GetSystemInfoProxy=void 0,t.disableSystemInfoTaskCache282=void 0,t.enableAppXStorageCache=void 0,t),this.getFlags=function(){return e.flags}}return t.prototype.getFlag=function(t){return this.flags[t]},t.prototype.getCurrentCallStep=function(){},t}();function we(t,e,n,r){var o;Pt=Ae,wt=Ee;var i=function(t,e,n){var r=function(t,e,n){return new le(t,e,n)}(t,e,n);return r}(new Pe,(function(){return r})),a=i.defaultScope;return function(t,e,n,r){var o=r.getCollection();o.setCanIUses(n),o.setPublicCallProxyAPIs(e),function(t,e){var n=e.getCollection();n.setAPIs(t);var r=n.getAPIMap(),o=e.callSync4PublicNamed,i=e.callSync4PublicNamedInside,a=e.call4PublicNamed,c=e.call4PublicNamedInside,s=e.call4LinkedContext,u=e.call4ProtoContext,p=e.publicInstance;ie(p);for(var l=0,f=t;l<f.length;l++){var h=f[l],d=h.namespace,y=p;if(d&&(y[d]||(y[d]={}),ie(y=y[d])),h.linked)for(var v=0,g=h.keys;v<g.length;v++)r[w=g[v]]&&(y[w]=W(s,null,w,!1));else if(h.proto)for(var m=0,b=h.keys;m<b.length;m++)r[w=b[m]]&&(y[w]=W(u,null,w,!1));else for(var I=h.sync?h.inside?i:o:h.inside?c:a,O=0,P=h.keys;O<P.length;O++){var w;if(r[w=P[O]]){var A=r[w].feature;if("function"==typeof A&&!A())continue;y[w]=W(I,null,w)}}d&&oe(y)}oe(p)}(t,r),r.publicInstance}(t,e,((o={defaultType:1,evaluate:[]})[1]=function(){return n},o[2]=function(){return[]},o),a),r.setBridge(i),i}function Ae(t,e,n,r,o,i){e().getKernel().__BRIDGE_CALL__(i,n,r,o)}function Ee(t,e,n,r,o){return e().getKernel().__BRIDGE_CALL_SYNC__(o,n,r)}var _e=Object.prototype.hasOwnProperty,Se=Object.assign||function(t,e){for(var n,r=function(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}(t),o=1;o<arguments.length;o++)for(var i in n=Object(arguments[o]))_e.call(n,i)&&(r[i]=n[i]);return r},xe=function(){return xe=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},xe.apply(this,arguments)};"function"==typeof SuppressedError&&SuppressedError;var ke=Function.prototype.apply.call.bind(Function.prototype.apply);Function.prototype.bind;var Ce,je,Te,De=JSON.stringify,Me=JSON.parse,Ne=encodeURIComponent;function Le(t,e){return e.encode?e.strict?Ne(t).replace(/[!'()*]/g,(function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})):Ne(t):t}Ce||function(){var t="undefined"!=typeof WeakMap;Ce=t?WeakMap:function(){var t=Object.prototype.hasOwnProperty,e=function(t,e,n){Object.defineProperty?Object.defineProperty(t,e,{configurable:!0,value:n,writable:!0}):t[e]=n};function n(t){return Object(t)===t}function r(){if(void 0===this)throw new TypeError("Constructor WeakMap requires 'new'");if(e(this,"_id","_WeakMap_"+i()+"."+i()),arguments.length>0)throw new TypeError("WeakMap iterable is not supported")}function o(e,r){if(!n(e)||!t.call(e,"_id"))throw new TypeError(r+" method called on incompatible receiver "+typeof e)}function i(){return Math.random().toString().substring(2)}return e(r.prototype,"delete",(function(t){if(o(this,"delete"),!n(t))return!1;var e=t[this._id];return!(!e||e[0]!==t||(delete t[this._id],0))})),e(r.prototype,"get",(function(t){if(o(this,"get"),n(t)){var e=t[this._id];return e&&e[0]===t?e[1]:void 0}})),e(r.prototype,"has",(function(t){if(o(this,"has"),!n(t))return!1;var e=t[this._id];return!(!e||e[0]!==t)})),e(r.prototype,"set",(function(t,r){if(o(this,"set"),!n(t))throw new TypeError("Invalid value used as weak map key");var i=t[this._id];return i&&i[0]===t?(i[1]=r,this):(e(t,this._id,[t,r]),this)})),e(r,"_polyfill",!0),r}()}(),new Ce,"undefined"!=typeof SECURITY_FUNCTION_CALL&&(SECURITY_FUNCTION_CALL=function(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return"function"==typeof t?(ke||(ke=Function.prototype.apply.call.bind(Function.prototype.apply)),ke(t,e,n)):t.call.apply(t,function(t,e,n){if(n||2===arguments.length)for(var r,o=0,i=e.length;o<i;o++)!r&&o in e||(r||(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return t.concat(r||Array.prototype.slice.call(e))}([e],n,!1))}),"undefined"!=typeof SECURITY_FUNCTION_APPLY&&(SECURITY_FUNCTION_APPLY=function(t,e,n){return"function"==typeof t?(ke||(ke=Function.prototype.apply.call.bind(Function.prototype.apply)),ke(t,e,n)):t.apply(e,n)}),function(t){t[t.Info=0]="Info",t[t.Warn=1]="Warn",t[t.Error=2]="Error"}(je||(je={})),function(t){t.AppxLifecycle="AppxLifecycle"}(Te||(Te={}));var Re="undefined"!=typeof HAS_INSIDE_FEATURE&&HAS_INSIDE_FEATURE||function(t){return!1};function Be(t){return t&&"openCapability"===t.type}"undefined"!=typeof ZEPHYR_HAS_INSIDE_FEATURE&&ZEPHYR_HAS_INSIDE_FEATURE,"undefined"!=typeof ZEPHYR_IS_INSIDE_UNSUPPORT_ELEMENT&&ZEPHYR_IS_INSIDE_UNSUPPORT_ELEMENT;var Ue="undefined"!=typeof nativeLog&&"undefined"!=typeof mqEnvironment;function Fe(t){return t&&"object"==typeof t?Object.keys(t):[]}function He(t,e){var n,r;return"%s"===t?e="object"==typeof(r=e)?De(r):r+"":"%c"===t?e=function(t){var e=""+t;0===e.indexOf("#")&&(e=e.substr(1)),3===e.length&&(e=e.replace(/(.)/g,"$1$1"));var n,r=parseInt(e,16);return isNaN(r)&&(n="".concat(t," is invalid hex color."),Ue?nativeLog(n,Date.now()):console.error(n,Date.now())),r}(e):"%b"===t?("string"==typeof(n=e)&&(n=n.replace(/^data:(\/|\w|\-|\.)+;base64,/i,"")),e=n):"%d"===t?e=parseInt(e,10):"%f"===t&&(e=parseFloat(e)),e}function Ve(t,e,n){var r;return n=n||{},Fe(e).forEach((function(o){var i,a,c,s=e[o];a=((i=s)||"").match(/(\w+)(%\w)$/i),c={k:i},a&&(c.k=a[1],c.t=a[2]),void 0!==(s=(r=c).k)&&(o in t||o in n)&&void 0===t[s]&&(t[s]=He(r.t,void 0===n[o]?t[o]:n[o]),s!==o&&delete t[o])})),t}function Ye(t){return"[object ArrayBuffer]"===(e=t,Object.prototype.toString.call(e))&&void 0!==t.byteLength;var e}function Ge(t){return e=t,r=function(t){switch(t.arrayFormat){case"index":return function(e,n,r){return null===n?[Le(e,t),"[",r,"]"].join(""):[Le(e,t),"[",Le(r,t),"]=",Le(n,t)].join("")};case"bracket":return function(e,n){return null===n?Le(e,t):[Le(e,t),"[]=",Le(n,t)].join("")};default:return function(e,n){return null===n?Le(e,t):[Le(e,t),"=",Le(n,t)].join("")}}}(n=Se({encode:!0,strict:!0,arrayFormat:"none"},n)),e?Object.keys(e).sort().map((function(t){var o=e[t];if(void 0===o)return"";if(null===o)return Le(t,n);if(Array.isArray(o)){var i=[];return o.slice().forEach((function(e){void 0!==e&&i.push(r(t,e,i.length))})),i.join("&")}return Le(t,n)+"="+Le(o,n)})).filter((function(t){return t.length>0})).join("&"):"";var e,n,r}function Ke(t){return/^application\/x-www-form-urlencoded\b/i.test(t)}var We={allowAbort:!0,returnEvent:{headersReceived:{feature:function(){return Re("a_request_headersReceived_2_8_7")},eventName:"requestTaskHeadersReceived",getPayload:function(t){return{header:t.data.headers}},getTaskId:function(t){return[t.data.requestTaskId]},taskId:function(){return"".concat(this.taskId)}}},t:!0,b:function(t){Ve(t,{header:"headers"}),t.requestTaskId=this.taskId,t.method=(t.method||"GET").toUpperCase(),t.enableSubErrorCode=!0;var e=this.runtime();if(void 0!==t.dataType||"arraybuffer"!==t.responseType&&"text"!==t.responseType)t.dataType=(t.dataType||"json").toLowerCase(),t.responseType=t.dataType;else{var n=e.getBehaviorManager().get("requestBehaviors",0),r=n.standard,o=n.report;o&&o("request.dataType is undefined and has request.responseType",{url:t.url,responseType:t.responseType}),r?t.dataType=t.responseType:(t.dataType=(t.dataType||"json").toLowerCase(),t.responseType=t.dataType)}t.responseType="base64"!==t.responseType&&"arraybuffer"!==t.responseType?"text":t.responseType;var i,a,c,s,u=t.headers=t.headers||{},p="";for(var l in u)if("content-type"==l.toLowerCase()){p=u[l];break}if(p||(p=u["content-type"]="application/json"),this.getEnvPlatformAndroid()&&(t.headers=function(t){for(var e=[],n=0,r=Fe(t);n<r.length;n++){var o=r[n],i={};i[o]=t[o],e.push(i)}return e}(t.headers)),"GET"===t.method?(t.hasAssembleParams=!0,t.url=(a=t.url,c=function(t,e){var n=e;return Ke(t)&&"object"==typeof e&&(n=function(t,e){for(var n={},r=0,o=Fe(e);r<o.length;r++){var i=o[r];n[i]="object"==typeof(a=e[i])?De(a):a}var a;return n}(0,e)),n}(p,t.data),s=c||"","object"==typeof c&&(s=Ge(c)),""===s?a:(/\?/.test(a)?/&$/.test(a)||/\?$/.test(a)||(s="&"+s):s="?"+s,a+s))):"DELETE"===t.method&&(t.hasAssembleParams=!1),"string"!=typeof t.data&&Ye(t.data)||(t.data=function(t,e){return void 0===e?e="":"string"!=typeof e&&(e=Ke(t)?Ge(e):/^application\/json\b/i.test(t)||"object"==typeof e?De(e):e.toString()),e}(p,t.data)),!t.referrerStrategy)if((i=this.appxDomain)&&"empty"===i.type||function(t){return t&&"app"===t.type}(this.appxDomain)){var f=e.getMeta().getAppBehavior();f&&f.requestReferrerStrategy&&("page"===f.requestReferrerStrategy?t.referrerStrategy="page":"index"===f.requestReferrerStrategy&&(t.referrerStrategy="index"))}else if(function(t){return t&&"extension"===t.type}(this.appxDomain)){var h=e.getMiniExtensionManager().getMetaByExtensionId({type:4,value:this.appxDomain.origin});if(h&&h.config&&h.config.behavior){var d=h.config.behavior;d.requestReferrerStrategy&&("page"===d.requestReferrerStrategy?t.referrerStrategy="page":"index"===d.requestReferrerStrategy&&(t.referrerStrategy="index"))}}},a:function(t,e){switch(Ve(t,{header:"headers",statusCode:"status"}),e.dataType){case"json":if(t.data)try{t.data=Me(t.data)}catch(e){void 0!==t.error&&0!==t.error||(t.error=14,t.errorMessage="JSON parse data error")}break;case"base64":t.data&&t.headers&&(t.data=(n=t.data,r=t.headers["Content-Type"]||t.headers["content-type"],n&&n.startsWith&&n.startsWith("data:")||n&&r&&(n="data:".concat(r,";base64,")+n),n));break;case"arraybuffer":if(t.data&&!Ye(t.data))try{t.data=function(t){for(var e=function(t){var e="",n=String(t).replace(/=+$/,"");if(n.length%4==1)throw new Error('"atob" failed');for(var r=0,o=0,i=0,a=0;o=n.charAt(a);)a+=1,~(o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(o))&&(r=i%4?64*r+o:o,i++%4&&(e+=String.fromCharCode(255&r>>(-2*i&6))));return e}(t),n=e.length,r=new Uint8Array(n),o=0;o<n;o++)r[o]=e.charCodeAt(o);return r.buffer}(t.data)}catch(e){void 0!==t.error&&0!==t.error||(t.error=14,t.errorMessage="parse arraybuffer data error")}}var n,r;if("status"in t){var o=t.status+"";/^[45]/.test(o)&&(void 0!==t.error&&0!==t.error||(t.error=19,t.errorMessage="http status error"))}t.appxProfile&&delete t.appxProfile,t.status&&(t.statusCode=t.status),t.headers&&(t.header=t.headers)},a_l:function(t){t.subErrorCode&&delete t.subErrorCode},c:function(){this.callScopedBridge("operateRequestTask",{operationType:"abort",requestTaskId:this.taskId})}},qe="_appx_open_capability_";function ze(t,e){return"".concat(qe).concat(t,"_").concat(e)}function Je(t,e,n){if(0===e.indexOf(qe)){var r=n().getBehaviorManager().get("enableIsolation4OCStorage");if(r.report&&r.report("unexpected key when using storage API: ".concat(e,", type: ").concat(t)),r.standard)return{error:15,errorMessage:"无效key,key不能以".concat(qe,"开头")}}}var $e,Ze,Qe,Xe,tn,en={m:"setTinyLocalStorage",v:function(t){return Je("setStorage",String(t.key),this.runtime)},b:function(t){t.value=De({APDataStorage:t.data}),t.data=t.value,Re("a_setStorage_value_remove_2_8_16")&&this.getFlag("removeSetStorageParamValue")&&(t.value=void 0),Be(this.appxDomain)&&!Re("a_storage_open_capability_2_8_15")?t.key=ze(this.appxDomain.origin,String(t.key)):t.key=String(t.key),t.type="user"},cache:{key:"jsApi_tinyLocalStorage",set:function(t,e){t.cache||(t.cache={}),t.cache[e.key]={data:e.data}}}},nn={m:"getTinyLocalStorage",v:function(t){return Je("getStorage",String(t.key),this.runtime)},cache:{key:"jsApi_tinyLocalStorage",get:function(t,e){t.cache||(t.cache={});var n=t.cache[e.key];if(n&&"object"==typeof n){if(n.data)return{success:!0,data:n.data};if(11===n.error)return{success:!1,error:11}}},update:function(t,e,n){t.cache||(t.cache={}),n.data?t.cache[e.key]={data:n.data}:11===n.error&&(t.cache[e.key]={error:11})}},b:function(t){Be(this.appxDomain)&&!Re("a_storage_open_capability_2_8_15")?t.key=ze(this.appxDomain.origin,String(t.key)):t.key=String(t.key),t.type="user";var e=this.runtime().getNav();t.isAppFirstPage=e.isFirstPage()},a:function(t){if(11===t.error&&(t.data=null,delete t.error,delete t.errorMessage,delete t.success),t.data){var e=Me(t.data);t.data=e.APDataStorage}}};function rn(){if(!Xe){var t=Oe(Promise,setTimeout,clearTimeout,setInterval,clearInterval);Xe=we([],[],[],t)}return Xe}function on(t,e){var n=function(t){if("undefined"==typeof navigator||!navigator||void 0===navigator.userAgent)return function(){throw new Error("API ".concat(t," should not initialized by smallfish. Please check your environment"))}}(t);if(n)return n;var r=(tn||(tn=rn().defaultScope.publicInstance),tn);if(!r[t]){var o=rn().defaultScope;o.getCollection().apiMap[t]=e;var i=o.call4PublicNamed;r[t]=i.bind(null,t)}return r[t]}$e||($e={}),Ze||(Ze={}),Qe||(Qe={});var an=on("setNavigationBar",{v:function(t){if(void 0!==t.frontColor){var e=He("%c",t.frontColor);if(16777215!==e&&0!==e)return{error:2,errorMessage:"frontColor 参数 ".concat(t.frontColor," 颜色值不合法")}}},b:function(t){t.reset&&(t.backgroundColor="#ffffff"),delete t.reset;var e,n="setTitle",r="setTitleColor",o="setBarBottomLineColor",i=this.optionPageViewId;return(e=i?{setTitle:{viewId:i},setTitleColor:{viewId:i},setBarBottomLineColor:{viewId:i}}:{setTitle:{},setTitleColor:{},setBarBottomLineColor:{}})[n]=Ve(e[n],{title:"title%s",image:"image%b"},t),e[r]=Ve(e[r],{backgroundColor:"color%c",frontColor:"frontColor%c"},t),e[o]=Ve(e[o],{borderBottomColor:"color%c"},t),e},d:function(t,e){var n="setTitle",r="setTitleColor",o="setBarBottomLineColor",i={};0!==Fe(t[n]).length&&this.callDefaultBridge(n,t[n],void 0,this.optionPageViewId),0!==Fe(t[o]).length&&(isNaN(t[o].color)?(i.error=2,i.errorMessage="borderBottomColor 颜色值不合法"):this.callDefaultBridge(o,t[o],void 0,this.optionPageViewId)),0!==Fe(t[r]).length?isNaN(t[r].color)?(i.error=2,i.errorMessage="frontColor 需和 backgroundColor 同时设置",e(i)):this.callDefaultBridge(r,t[r],(function(t){i=xe(xe({},t),i),e(i)}),this.optionPageViewId):e(i)}}),cn=on("request",We),sn=on("setStorage",en),un=on("getStorage",nn);const pn=un;var ln=["current","urls"];function fn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}const hn=cn;var dn=["url"];function yn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}const vn=an,gn=sn;var mn=["items","cancelButtonText"];function bn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function In(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}var On=["content"];function Pn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function wn(t,e){var n=t.filter((function(t){return t.match.every((function(t){return t.test(e)}))}));if(n.length){var r=n[0].name;if(n.length>1){var o=n.map((function(t){return t.name})).join(",");En("Multiple clients have been identified(".concat(o,"), and the first one(").concat(r,")is used by default."))}return r}}function An(t,e){return Object.keys(t).reduce((function(n,r){return n["is".concat(r)]=e===t[r],n}),{})}function En(t){console.info("[hylid-env]: ".concat(t))}var _n={WEB:"web",MPWEB:"mpweb",MP:"mp"},Sn={DEMO:"demo",ALIPAY:"alipay",ALIPAYHK:"alipayhk",TNGD:"tngd",GCASH:"gcash",TRUEMONEY:"truemoney",DANA:"dana",KAKAOPAY:"kakaopay",KAKAOTALK:"kakaotalk",NAVERPAY:"naverpay",MPAY:"mpay",TOSSPAY:"toss",HIPAY:"hipay",CHOPE:"chope",VODAPAY:"vodapay",CHANGIPAY:"changipay",OCBC:"ocbc",MANDIRI:"mandiri",NAYAPAY:"nayapay",TINABA:"tinaba",KASPI:"kaspi",H5:"h5",WECHAT:"wechat",TNGD_H5NG:"tngdh5ng",WORLDFIRST:"worldfirst"},xn=/miniprogram/i,kn=/^((?!miniprogram).)*$/i,Cn=/griver/i,jn=/^((?!griver).)*$/i,Tn=[{name:Sn.DEMO,match:[/demo/]},{name:Sn.ALIPAYHK,match:[/alipayHK/]},{name:Sn.TNGD,match:[/tngd/]},{name:Sn.GCASH,match:[/gcash/]},{name:Sn.TRUEMONEY,match:[/tmn/]},{name:Sn.DANA,match:[/dana/]},{name:Sn.TOSSPAY,match:[/toss/]},{name:Sn.ALIPAY,match:[/alipay/]}],Dn=[{name:Sn.DEMO,match:[/alipayIDE/i]},{name:Sn.ALIPAYHK,match:[xn,jn,/AlipayClientHK/]},{name:Sn.TNGD,match:[xn,/TNGKit|Touch 'n Go/]},{name:Sn.GCASH,match:[xn,Cn,/GCash/]},{name:Sn.TRUEMONEY,match:[xn,Cn,/TrueMoney/]},{name:Sn.ALIPAY,match:[xn,jn,/alipay/i]},{name:Sn.DEMO,match:[xn,Cn]}];function Mn(){return wn(Dn,window.navigator.userAgent)}var Nn=[{name:Sn.ALIPAYHK,match:[kn,jn,/AlipayClientHK/]},{name:Sn.TNGD,match:[kn,Cn,/TNGKit|Touch 'n Go/]},{name:Sn.TNGD_H5NG,match:[kn,/TNGKit|Touch 'n Go/,/IAPWebH5NG/]},{name:Sn.GCASH,match:[kn,Cn,/GCash/]},{name:Sn.TRUEMONEY,match:[kn,Cn,/TrueMoney/i]},{name:Sn.KAKAOPAY,match:[kn,/PAYCLIENT|KAKAOTALK|KAKAOPAY/]},{name:Sn.KAKAOTALK,match:[kn,/ALIPAYCONNECT_KAKAO_TALK/]},{name:Sn.NAVERPAY,match:[kn,/NAVER/]},{name:Sn.MPAY,match:[kn,/mpay|macaupay/i]},{name:Sn.TOSSPAY,match:[kn,/Toss/i]},{name:Sn.ALIPAY,match:[kn,jn,/AlipayClient/]},{name:Sn.DEMO,match:[kn,Cn,/GriverDemo/]},{name:Sn.WORLDFIRST,match:[kn,jn,/WorldFirst/]}];function Ln(){return wn(Nn,window.navigator.userAgent)||Sn.H5}var Rn=function(){var t,e;if("undefined"!=typeof wx||"undefined"!=typeof my&&"string"==typeof my.SDKVersion)t="undefined"!=typeof wx?Sn.WECHAT:wn(Tn,my.getSystemInfoSync().app),e=_n.MP;else{var n=function(){var t,e=((null===(t=window.location.search)||void 0===t?void 0:t.match(/__app__=([^&]*)/))||[])[1],n=(window.location.search.match(/__platform__=([^&]*)/)||[])[1];(e||n)&&localStorage.setItem("__hy_env__",JSON.stringify({client:e,platform:n}));var r=localStorage.getItem("__hy_env__");return r?JSON.parse(r):{}}();n.platform?(e=n.platform,t=n.client||("mpweb"===e?Mn():Ln())):(t=n.client||Mn())?e=_n.MPWEB:(t=Ln(),e=_n.WEB)}return e&&t||En("Cannot identify your client."),{client:t,platform:e}}(),Bn=Rn.client,Un=Rn.platform;An(Sn,Bn),An(_n,Un);var Fn=!1,Hn=[];function Vn(t){return Hn.push(t),function(){Hn=Hn.filter((function(e){return e!==t}))}}function Yn(e){return Fn||(document.addEventListener("onToWebViewMessage",(function(t){var e=t.data.res;if(e&&"message"===e.type){var n=JSON.parse(e.data);Hn.forEach((function(t){return t(n)}))}})),Fn=!0),t((function(){window.AlipayJSBridge.call("postWebViewMessage",{type:"message",detail:e})}))}var Gn={};function Kn(t,e,n){var r=t+"_"+Math.floor(1e6*Math.random());e&&(Gn[r]=e),Yn({source:"hylid",type:"apiCall",api:t,serialId:r,options:e,config:n,isSync:null==n?void 0:n.isSync})}Vn((function(t){var e,n=t,r=n.serialId;if(r&&Gn[r]){var o=Gn[r],i=n.result;if("callback"===(null===(e=n.config)||void 0===e?void 0:e.type)){var a=i||{},c=a._data_;return"success"===a._type_?o(c):o(void 0,c)}var s=o||{},u=s.success,p=s.fail,l=s.complete,f=i||{},h=f._data_,d=f._type_;d?("success"===d&&(null==u||u(h)),"fail"===d&&(null==p||p(h)),null==l||l(h)):((null==i?void 0:i.error)?null==p||p(i):null==u||u(i),null==l||l(i)),delete Gn[r]}})),Kn.onMessage=Vn,Kn.postMessage=Yn,Kn.broadcastGlobalData=function(t,e){Yn({source:"hylid",type:"broadcast",from:window.location.href,key:t,result:e})},Kn.onReceiveGlobalData=function(t,e){return Vn((function(n){var r=n;if("hylid"===r.source&&"broadcast"===r.type&&r.key===t){var o=r.result||{},i=o._data_;return"success"===o._type_?e(i,void 0,r.from):e(void 0,i,r.from)}}))},Kn.onPageEvent=function(t,e){return Yn({source:"hylid",type:"pageEvent",event:t}),Vn((function(n){var r=n;if("hylid"===r.source&&"pageEvent"===r.type&&r.event===t){var o=r.result||{},i=o._data_;return"success"===o._type_?e(i):e(void 0,i)}}))};var Wn,qn={NOTFOUND:{code:-1,message:function(t){return"".concat(t," is not found")}},NOTALLOWED:{code:-2,message:function(t){return"".concat(t," is not allowed")}},INVALID:{code:-3,message:function(t){return"".concat(t," is invalid")}},NOTBIND:{code:-4,message:function(t){return"".concat(t," exec fail, webviewBridge not bind context")}},PARAMS_ERROR:{code:-5,message:function(t){return"".concat(t," exec fail, params error")}}},zn=((Wn={})[_n.MP]=function(t,e,n){var r=(n||{}).type,o=void 0===r?"async":r;return"sync"===o||(null==n?void 0:n.isSync)?my[t](e):("async"===o&&(my[t]?my[t](e):my.call(t,e)),"callback"===o&&my[t](e),"attribute"===o?my[t]:void 0)},Wn[_n.MPWEB]=Kn,Wn[_n.WEB]=e,Wn);function Jn(t,e,n){return Un?zn[Un](t,e,n):function(t,e,n){var r;void 0===n&&(n={});var o=n.type,i=void 0===o?"async":o,a=function(t,e){void 0===e&&(e="");var n=qn.NOTFOUND;return{errorCode:n.code,errorMessage:(0,n.message)(e),errorSouce:"hylid"}}(0,t);if("sync"===i)return a;"callback"===i&&(null==e||e(a)),"async"===i&&(null===(r=null==e?void 0:e.fail)||void 0===r||r.call(e,a))}(e,n)}var $n=["flowType"];var Zn=["fileName","fileType"];function Qn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Xn(t){return Xn="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},Xn(t)}var tr="";function er(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function nr(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 r,o,i=[],a=!0,c=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);a=!0);}catch(t){c=!0,o=t}finally{try{a||null==n.return||n.return()}finally{if(c)throw o}}return i}}(t,e)||function(t,e){if(t){if("string"==typeof t)return er(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)?er(t,e):void 0}}(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.")}()}var rr=["success","fail","complete"],or=function(t){return function(e){return new Promise((function(n,r){var o=e||{},a=o.success,c=o.fail,s=o.complete,u=i(o,rr);t(u,(function(t){n(t),null==a||a(t),null==s||s(t)}),(function(t){r(t),null==c||c(t),null==s||s(t)}))}))}},ir=function(t){return function(e){return toString.call(e)==="[object ".concat(t,"]")}},ar=(ir("RegExp"),ir("String"),ir("Function"),ir("Object")),cr=(ir("Number"),Array.isArray,ir("Boolean"),function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return e.reduce((function(t,e){if(!e)return t;for(var n=Object.entries(e),r=n.length,i=0;i<r;i++){var a=nr(n[i],2),c=a[0],s=a[1];ar(s)?t[c]=cr(t[c],s):Object.assign(t,o({},c,s))}return t}),{})}),sr=n(3563),ur=n(5731),pr=n.n(ur);function lr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function fr(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?lr(Object(n),!0).forEach((function(e){o(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):lr(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var hr=function(t){return t.openInApp="openinapp",t.openOtherApp="openotherapp",t.openBizScene="openbizscene",t.openPayCodePage="openpaycodepage",t.openApPayCodePage="openappaycodepage",t.openScanPage="openscanpage",t.openInBrowser="openinbrowser",t}(hr||{}),dr=function(t){return t.scan="scan",t.payCode="payCode",t}(dr||{}),yr="caprMode=sync";var vr=function(){return Jn("startApp",{appId:"20000056"})},gr=function(){return Jn("startApp",{appId:"20000056"})},mr=function(){return Jn("startApp",{appId:"10000007"})},br=function(t){return Jn("pushWindow",t)},Ir=function(t){return Jn("openInBrowser",t)};function Or(t){var e=t.appId,n=t.path,r=t.launchParams,o="alipays://platformapi/startapp?appId=".concat(e);n&&(o+="&page=".concat(encodeURIComponent(n)));var i="";return r&&(i=Object.keys(r).map((function(t){return"".concat(t,"=").concat(r[t])})).join("&"),o+="&query=".concat(encodeURIComponent(i))),null!=r&&r.chInfo&&(o+="&chInfo=".concat(r.chInfo)),o}var Pr=function(t){return Jn("pushWindow",{url:Or(t)})};const wr=or((function(t,e,n){!function(t,e,n){if(t)if(t.startsWith("aplus://"))!function(t,e,n){var r,o=new(pr())(t,!0),i=o.host,a=o.pathname,c=o.query;switch(i){case hr.openInApp:e.openInApp(fr({path:a,url:c.url||""},n));break;case hr.openOtherApp:console.log("### openCustomScheme",hr.openOtherApp);var s=c.appId,u=void 0===s?"":s,p=c.path,l=c.launchParams,f=void 0===l?"":l,h=(0,sr.Qc)(f);e.openOtherApp(fr({appId:u,path:p,launchParams:h},n));break;case hr.openBizScene:console.warn("该 API 已弃用, 请使用 aplus://openApPayCodePage 等链接替代"),c.sceneCode===dr.scan?e.openScanPage(n):c.sceneCode===dr.payCode&&e.openApPayCodePage(n);break;case hr.openScanPage:e.openScanPage(n);break;case hr.openPayCodePage:e.openPayCodePage(n);break;case hr.openApPayCodePage:e.openApPayCodePage(n);break;case hr.openInBrowser:e.openInBrowser(fr({url:c.url||""},n));break;default:console.log("[openCustomScheme] 不支持的 routeType: ",i),n.fail&&n.fail((r="openCustomScheme ".concat(i),{error:-102,errorMessage:"[".concat(r,"]: Not Support")}))}}(t,e,n);else if(t.startsWith("/")){var r=function(t){var e=location.pathname.replace(/\/[^/]+.html/,""),n="".concat(location.protocol,"//").concat(location.host).concat(e).concat(t);if(location.search.includes(yr)){var r=n.includes("?")?"&":"?";return"".concat(n).concat(r).concat(yr)}return n}(t);e.openInApp(fr({url:r},n))}else e.openWebURL(fr({url:t},n))}(t.url,{openWebURL:br,openInApp:br,openOtherApp:Pr,openInBrowser:Ir,openPayCodePage:gr,openApPayCodePage:vr,openScanPage:mr},{success:e,fail:n})})),Ar=br,Er=br,_r=Pr,Sr=Ir,xr=gr,kr=vr,Cr=mr;function jr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Tr(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?jr(Object(n),!0).forEach((function(e){o(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):jr(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}const Dr=function(t){var e=t.appId,n=t.workspaceId,r=void 0===n?"default":n,i=t.defaultGateway,a=t.defaultHeaders,c=t.request,s=e&&r?o({AppId:e,workspaceId:r},"X-CORS-".concat(e,"-").concat(r),"1"):{};return or((function(t,e,n){var r=t.gateway,o=t.operationType,u=t.headers,p=t.requestData,l=t.timeout;c({url:r||i,method:"POST",timeout:l,headers:Tr(Tr(Tr({"Content-Type":"application/json"},a),{},{"Operation-Type":o},s),u),data:p,success:function(t){e({headers:(null==t?void 0:t.headers)||{},resData:(null==t?void 0:t.data)||{}})},fail:n})}))},Mr=Dr;var Nr=["success"];function Lr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}var Rr={};const Br=function(t){return Rr=cr(Rr,t)},Ur=Br;var Fr=function(){return Fr=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Fr.apply(this,arguments)},Hr=function(t){return function(e){return new Promise((function(n,r){var o=Fr(Fr({},e),{success:function(t){var r;n(t),null===(r=null==e?void 0:e.success)||void 0===r||r.call(e,t)},fail:function(t){var n;r(t),null===(n=null==e?void 0:e.fail)||void 0===n||n.call(e,t)}});t(o)}))}};function Vr(t,e,n,r,o,i,a){try{var c=t[i](a),s=c.value}catch(t){return void n(t)}c.done?e(s):Promise.resolve(s).then(r,o)}function Yr(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){Vr(i,r,o,a,c,"next",t)}function c(t){Vr(i,r,o,a,c,"throw",t)}a(void 0)}))}}var Gr=n(2841),Kr=n.n(Gr),Wr=n(9174),qr=n.n(Wr);function zr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Jr(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?zr(Object(n),!0).forEach((function(e){o(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):zr(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function $r(t,e){var n=ao();return($r=function(t,e){return n[t-=0]})(t,e)}var Zr,Qr={TOSS:ro(0,-318,0,-325)+ro(0,-323,0,-291)+io(258,247)+io(236,255)+"8v0XGf"+no(0,-440,0,0,-455),MPAY:no(0,-464,0,0,-474)+"6C1JVc"+no(0,-488,0,0,-496)+io(235,249)+no(0,-482,0,0,-464),ALIPAY:io(288,272)+no(0,-502,0,0,-510)+io(202,231)+ro(0,-241,0,-266)+io(296,285)+ro(0,-352,0,-322)},Xr={TOSS:ro(0,-276,0,-279)+io(256,245)+ro(0,-340,0,-309)+"ds.aut"+io(266,239)+ro(0,-283,0,-297),MPAY:no(0,-471,0,0,-463)+io(257,245)+ro(0,-307,0,-296)+ro(0,-280,0,-263)+"h.authlogin",ALIPAY:ro(0,-266,0,-279)+io(245,245)+"svoyag"+no(0,-439,0,0,-447)+no(0,-523,0,0,-495)+no(0,-511,0,0,-481)},to=function(t,e){var n={c:function(t,e){return t===e},d:s(0,0,-552,-521),e:function(t,e){return t(e)}},r=Qr[e];function o(t,e,n,r,o){return $r(r-948,t)}if(!r&&n[a(-688,0,0,0,-699)](n[s(0,0,-507,-495)],n[s(0,0,-501,-495)]))return{};var i=Date.now();function a(t,e,n,r,o){return $r(t- -702,o)}var c=r+"&ts="+i+"&requestData"+s(0,0,-510,-543)+t[s(0,0,-497,-496)+"tData"]+o(970,0,0,1e3)+"tionTy"+o(1033,0,0,1011)+t[s(0,0,-511,-484)+s(0,0,-497,-511)+"e"];function s(t,e,n,r,o){return $r(r- -549,n)}return{signV2:n[s(0,0,-545,-529)](qr(),c)[a(-652,0,0,0,-668)+"ng"](),ts:i}};function eo(){var t={c:r(-579,0,-597)+r(-587,0,-558)+"cdef",d:function(t,e){return t<e},e:function(t,e){return t!==e},f:r(-520,0,-550),g:r(-539,0,-546),h:function(t,e){return t*e},i:function(t,e){return t|e},j:function(t,e){return t&e}},e=[],n=t[r(-585,0,-587)];function r(t,e,n,r,o){return $r(n- -601,t)}for(var o=0;t[i(0,-57,0,-80)](o,36);o++)t[r(-570,0,-581)](t[i(0,-112,0,-115)],t[a(442,459)])&&(e[o]=n.substr(Math[r(-540,0,-541)](t[i(0,-87,0,-105)](Math[i(0,-123,0,-90)](),16)),1));function i(t,e,n,r,o){return $r(r- -134,e)}function a(t,e,n,r,o){return $r(e-426,t)}return e[14]=a(439,429),e[19]=n[r(-581,0,-594)](t[i(0,-151,0,-124)](t[a(455,483)](e[19],3),8),1),e[8]=e[13]=e[18]=e[23]=i(0,-65,0,-75),e[a(465,465)]("")}function no(t,e,n,r,o){return $r(o- -511,e)}function ro(t,e,n,r,o){return $r(r- -327,e)}var oo=function(){var t=Yr(Kr().mark((function t(e){var n,r,o,i,a,c,s,u,p,l,f,h,d,y,v,g,m,b,I,O,P,w,A,E,_,S,x;return Kr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return v=function(t,e,n,o,i){return $r(t-r.c,e)},s=function(t,e,n,r,o){return $r(n-926,t)},i=function(t,e,n,r,i){return $r(r-o.c,t)},r={c:403},o={c:384},a={c:function(t,e){return t*e},d:function(t){return t()},e:function(t){return t()},f:function(t,e,n){return t(e,n)},g:function(t,e){return t(e)},h:function(t,e){return t!==e},i:s((n={c:934,d:974,e:417,f:381,g:398,h:972,i:969,j:996,k:960,l:935,m:905,n:947,o:417,p:429,q:423,r:438,t:416,u:426,v:439,w:958,x:986,ah:977,ai:961,aj:444,ak:470,al:461,am:470,an:997,ao:383,ap:397,aq:401,ar:396,as:428,at:916,au:931,av:917,aw:465,ax:446,ay:374,az:399,aA:390,aB:394,aC:955,aD:954,aE:926,aF:953,aG:995,aH:1011,aI:420,aJ:397,aK:375,aL:415,aM:471,aN:467,aO:477,aP:384,aQ:973,aR:946,aS:948,aT:968,aU:967,aV:964,aW:998,aX:954,aY:949,aZ:445,b0:413,b1:419,b2:441,b3:418}).c,941,966,961,n.d),j:function(t,e){return t-e},k:function(t,e){return t*e},l:function(t,e){return t-e},m:"nBZiR"},c=a[i(n.e,405,n.f,n.g,421)](60,1e3),u=a[s(924,n.h,940,928,n.i)](3600,1e3),p=e.httpRequest,l=e.getAuthParams,f=e.saveAuthParams,h=e.getAuthCode,d=e.getAppId,y=e.siteName,g=Xr[y],t.prev=7,t.next=10,a.d(l);case 10:return I=t.sent,O="",O=null!=I&&I[s(1e3,n.j,971,940,977)]&&null!=I&&null!==(m=I[s(949,967,971,n.k,982)])&&void 0!==m&&m[s(967,964,n.l,n.m,n.n)]?null==I||null===(b=I[v(448,468,n.o,n.p,445)])||void 0===b?void 0:b.token:a[v(423,n.q,n.g,n.r,n.t)](eo),t.next=15,a[i(n.u,n.v,460,n.r,406)](d);case 15:return P=t.sent,w=P.appId,A={instanceId:O,appId:w},t.next=20,a[s(n.w,n.x,980,n.ah,n.ai)](h);case 20:return E=t.sent,A["authCo"+v(n.aj,430,n.ak,451,437)]=E[v(n.al,n.v,n.am,446,438)+s(975,n.an,967,966,943)]||"",_={operationType:g,requestData:JSON[i(n.ao,n.ap,421,n.aq,397)+i(390,374,373,n.ar,367)]([A])},S=a.f(to,_,y),t.next=26,a[v(436,433,443,440,451)](p,Jr(Jr({},_),{},{headers:Jr({},S)}));case 26:if((x=t.sent)&&x[v(n.as,459,400,395,447)+s(n.at,n.au,947,n.av,937)]){t.next=32;break}if(!a[v(432,n.aw,n.as,n.q,n.ax)](a[i(410,384,364,394,n.ay)],a[i(n.az,411,n.aA,n.aB,424)])){t.next=31;break}t.next=32;break;case 31:throw x;case 32:a.g(f,{sessionIdLastTime:Date[s(n.aC,n.aD,n.aE,n.aF,923)](),sessionIdExpiresTime:a[s(1008,n.aG,983,n.aH,962)](a.k(x[i(371,n.aI,365,n.aJ,n.aK)+i(n.aL,429,389,411,392)+v(449,n.aM,n.aN,416,n.aO)]||0,1e3),c),clientKeyLastTime:Date[i(n.aA,414,405,n.aP,360)](),clientKeyExpiresTime:a[s(n.aQ,966,961,n.l,n.aR)](a.c(x[s(n.aS,949,n.aT,n.aU,n.aV)+"KeyExpireTime"]||0,1e3),u),clientKey:x[s(n.aW,983,968,998,991)+s(971,n.aX,n.aY,975,922)]||"",openId:x[s(949,n.n,937,926,952)]||"",token:O});case 33:return t.prev=33,a[v(432,n.aZ,n.b0,n.b1,418)](a[i(n.u,n.aJ,n.b2,n.b3,434)],a.m)||(Zr=void 0),t.finish(33);case 36:case"end":return t.stop()}}),t,null,[[7,,33,36]])})));return function(e){return t.apply(this,arguments)}}();function io(t,e,n,r,o){return $r(e-223,t)}function ao(){var t=["now","e403eb","Y2RnWk","4","012345","ae","=","substr","8e8bf2","token","i","openId","ify","sessio","c","4fBX3i","h.auth","string","srewar","f","e","s","payplu","Key","x3pTVp","succes","8yrZzV","nExpir","YvQOw","h","login","svoyag","9uI6g1","g","m","l","5yJGy4","aLhI5S","ionTyp","join","WrLog","de","client","6789ab","random","data","eTime","Ctk","ap.ali","094d20","toStri","JlqiC","&opera","reques","d","pgeFL","Qh","j","authCo","-","floor","a17e0f","0ba7fc","pe=","er.aut","operat"];return(ao=function(){return t})()}var co=function(){var t=Yr(Kr().mark((function t(e){var n,r,o,i,a,c,s,u,p,l,f,h,d,y;return Kr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return y=function(t,e,n,o,i){return $r(i-r.c,n)},d=function(t,e,n,r,o){return $r(e-24,r)},p=function(t,e,n,r,i){return $r(t-o.c,r)},n={c:21,d:42,e:77,f:521,g:570,h:27,i:44,j:500,k:547,l:52,m:70,n:39,o:25,p:87,q:75,r:56,t:53,u:24,v:78,w:65,x:34,as:32},r={c:519},o={c:58},i={c:function(t){return t()},d:function(t,e){return t&&e},e:function(t,e){return t<e},f:function(t,e){return t-e},g:function(t,e){return t===e},h:"cgVrj",i:function(t,e){return t(e)}},a=e.isForceLogin,c=void 0!==a&&a,s=e.getAuthParams,t.next=12,i[d(n.c,38,17,n.d,71)](s);case 12:if(u=t.sent,l=u[d(n.e,69,58,73,67)]||{},f=l.sessionIdExpiresTime,h=l.sessionIdLastTime,!(i.d(!c,h)&&f&&i[y(n.f,548,n.g,545,539)](i[d(n.h,43,52,26,n.i)](Date[y(n.j,530,534,n.k,519)](),h),f))){t.next=19;break}if(!i[d(n.l,57,n.m,n.n,n.o)](i[p(n.p,n.q,118,n.r,76)],i[d(27,n.t,28,n.u,n.v)])){t.next=19;break}return t.abrupt("return");case 19:return Zr=Zr||i[d(n.w,n.x,42,42,n.as)](oo,e),t.next=22,Zr;case 22:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),so=["headers"];function uo(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function po(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?uo(Object(n),!0).forEach((function(e){o(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):uo(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}const lo=cn;var fo=function(){return fo=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},fo.apply(this,arguments)};const ho=un,yo=sn;var vo=Hr((function(t){var n=t||{},r=n.scopes,o=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]])}return n}(n,["scopes"]);e("getAuthCode",fo(fo({scopeNicks:r},o),{success:function(t){var e;return null===(e=o.success)||void 0===e?void 0:e.call(o,fo(fo({},t),{authCode:t.authCode||t.authcode}))}}))})),go=Hr(ho),mo=Hr(yo);const bo=function(t){return function(t,e,n,r,o,a){var c="auth-login-storage",s=null,u=function(){return s||(s=e({key:c}))},p=function(t){return s={data:t},n({key:c,data:t})},l=or(function(){var e=Yr(Kr().mark((function e(n,c,s){var l,f,h,d,y;return Kr().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return l=n.headers,"string"!=typeof(f=i(n,so)).requestData&&(f.requestData=JSON.stringify(f.requestData)),h=function(t){var e=t.headers,n=t.operationType,r=t.requestData;return new Promise((function(t,o){a(po(po({},f),{},{requestData:r,headers:po(po(po({},l),e),{},{"Operation-Type":n}),operationType:n,success:function(e){t(null==e?void 0:e.resData)},fail:function(t){o(t)}}))}))},e.prev=3,e.next=6,co({httpRequest:h,isForceLogin:!1,getAuthParams:u,saveAuthParams:p,getAuthCode:r,getAppId:o,siteName:t});case 6:e.next=12;break;case 8:return e.prev=8,e.t0=e.catch(3),s(e.t0),e.abrupt("return");case 12:d=to(f,t),y=po(po({},l),d),a(po(po({},f),{},{headers:y,success:function(e){var n,i;"2000"===(null===(n=e.headers)||void 0===n||null===(i=n["result-status"])||void 0===i?void 0:i.toString())?co({httpRequest:h,isForceLogin:!0,getAuthParams:u,saveAuthParams:p,getAuthCode:r,getAppId:o,siteName:t}).then((function(){a(po(po({},f),{},{headers:y,success:c,fail:s}))})).catch((function(t){s(t)})):c(e)},fail:s}));case 15:case"end":return e.stop()}}),e,null,[[3,8]])})));return function(t,n,r){return e.apply(this,arguments)}}());return l}("ALIPAY",go,mo,(function(){var t;return vo({scopes:["auth_base"],appId:(null===(t=Br({}))||void 0===t?void 0:t.appId)||""})}),(function(){var t;return Promise.resolve({appId:(null===(t=Br({}))||void 0===t?void 0:t.appId)||""})}),Dr({appId:"WALLET_CN",workspaceId:t.workspaceId||"default",defaultGateway:"https://imgs-sea-global.alipay.com/imgw.htm",request:lo}))(t)};var Io=function(t){return function(e){return toString.call(e)==="[object ".concat(t,"]")}};function Oo(t,e){if(!t)return e;var n;try{n=JSON.parse(t)}catch(t){n=e}return n}Io("Function"),Io("String"),function(){try{return/iPad|iPhone|iPod/.test(window.navigator.userAgent)&&!window.MSStream}catch(t){return!1}}();var Po=["name","callback"];function wo(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}var Ao=Hr((function(t){return e("getSystemInfo",t,{type:"async"})})),Eo=["name"];function _o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}const So={addPhoneContact:function(t){return e("addPhoneContact",t,{type:"async"})},chooseImage:function(t){return e("chooseImage",t,{type:"async"})},exitApp:function(t){return e("exitApp",t,{type:"async"})},getAppToken:function(t){return e("getAppToken",t,{type:"async"})},getBatteryInfo:function(t){return e("getBatteryInfo",t,{type:"async"})},getClipboard:function(t){return e("getClipboard",t,{type:"async"})},getFileInfo:function(t){return e("getFileInfo",t,{type:"async"})},getImageInfo:function(t){return e("getImageInfo",t,{type:"async"})},getSavedFileInfo:function(t){return e("getSavedFileInfo",t,{type:"async"})},getSavedFileList:function(t){return e("getSavedFileList",t,{type:"async"})},getScreenBrightness:function(t){return e("getScreenBrightness",t,{type:"async"})},getServerTime:function(t){return e("getServerTime",t,{type:"async"})},getSetting:function(t){return e("getSetting",t,{type:"async"})},getSystemInfo:function(t){return e("getSystemInfo",t,{type:"async"})},hideKeyboard:function(t){return e("hideKeyboard",t,{type:"async"})},hideLoading:function(t){return e("hideLoading",t,{type:"async"})},hideToast:function(t){return e("hideToast",t,{type:"async"})},makePhoneCall:function(t){return e("makePhoneCall",t,{type:"async"})},navigateBackMiniProgram:function(t){return e("navigateBackMiniProgram",t,{type:"async"})},navigateToMiniProgram:function(t){return e("navigateToMiniProgram",t,{type:"async"})},openDocument:function(t){return e("openDocument",t,{type:"async"})},openSetting:function(t){return e("openSetting",t,{type:"async"})},prompt:function(t){return e("prompt",t,{type:"async"})},removeSavedFile:function(t){return e("removeSavedFile",t,{type:"async"})},rpc:function(t){return e("rpc",t,{type:"async"})},saveFile:function(t){return e("saveFile",t,{type:"async"})},scan:function(t){return e("scan",t,{type:"async"})},setClipboard:function(t){return e("setClipboard",t,{type:"async"})},setKeepScreenOn:function(t){return e("setKeepScreenOn",t,{type:"async"})},setScreenBrightness:function(t){return e("setScreenBrightness",t,{type:"async"})},showLoading:function(t){return e("showLoading",t,{type:"async"})},signContract:function(t){return e("signContract",t,{type:"async"})},startApp:function(t){return e("startApp",t,{type:"async"})},crossPay:function(t){return e("crossPay",t,{type:"async"})},vibrate:function(t){return e("vibrate",t,{type:"async"})},easyShare:function(t){return e("easyShare",t,{type:"async"})},homeAddAppToMyApps:function(t){return e("homeAddAppToMyApps",t,{type:"async"})},homeCanAddAppToMyApps:function(t){return e("homeCanAddAppToMyApps",t,{type:"async"})},postNotification:function(t){return e("postNotification",t,{type:"async"})},getMainSelectedCity:function(t){return e("getMainSelectedCity",t,{type:"async"})},chooseDistrict:function(t){return e("chooseDistrict",t,{type:"async"})},setTransparentTitle:function(t){return e("setTransparentTitle",t,{type:"async"})},alert:function(t){var n=t||{};e("alert",function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?c(Object(n),!0).forEach((function(e){o(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({message:n.content,button:n.buttonText},i(n,a)))},choosePhoneContact:function(t){e("contact",t)},clearStorage:function(t){e("clearTinyLocalStorage",t)},confirm:function(t){var n=t||{};e("confirm",function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?u(Object(n),!0).forEach((function(e){o(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({okButton:n.confirmButtonText,cancelButton:n.cancelButtonText,message:n.content},i(n,s)))},datePicker:function(t){var n=t||{},r=n.format,a=(n.currentDate,n.startDate),c=n.endDate,s=i(n,p);e("datePicker",function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?l(Object(n),!0).forEach((function(e){o(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({mode:f[r||"yyyy-MM-dd"],beginDate:a,minDate:a,maxDate:c},s))},downloadFile:function(t){var n,r,a=t||{},c=a.url,s=i(a,h),u=null===(n=c.match(/\.(\w+)$/))||void 0===n?void 0:n[1];e("downloadFile",function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?d(Object(n),!0).forEach((function(e){o(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({url:c,type:null===(r=y.find((function(t){return t.exts.includes(u||"png")})))||void 0===r?void 0:r.type},s))},getAuthCode:function(t){var n=t||{},r=n.scopes,o=i(n,v);e("getAuthCode",m(m({scopeNicks:r},o),{},{success:function(t){var e;return null===(e=o.success)||void 0===e?void 0:e.call(o,m(m({},t),{},{authCode:t.authCode||t.authcode}))}}))},getLocation:function(t){var n=t||{},r=n.type,a=i(n,b);e("getCurrentLocation",function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?I(Object(n),!0).forEach((function(e){o(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):I(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({bizType:(null==t?void 0:t.bizType)||"alipayIntl",requestType:r},a))},getNetworkType:function(t){var n=t.success;e("getNetworkType",w(w({},i(t,O)),{},{success:function(t){n&&n(w(w({},t),{},{networkType:t.networkInfo.toLocaleUpperCase()}))}}))},getPhoneNumber:function(t){e("appxrpc",function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?A(Object(n),!0).forEach((function(e){o(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):A(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({requestData:[{method:"getPhoneNumber"}]},t))},getSiteInfo:function(t){return function(t){var e=t.success,n=t.fail,r=t.complete;setTimeout((function(){var t=N();t&&t.length?null==e||e({siteName:t}):null==n||n(new Error("siteName is empty!")),null==r||r()}),0)}(t)},getStorage:pn,hideNavigationBarLoading:function(){e("hideTitleLoading")},multiLevelSelect:function(t){e("beehiveMultilevelSelect",t)},navigateBack:function(t){e("popWindow",{options:t})},navigateTo:function(t){e("pushWindow",t)},previewImage:function(t){var n=t.current,r=t.urls,a=void 0===r?[]:r,c=i(t,ln);e("imageViewer",function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?fn(Object(n),!0).forEach((function(e){o(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):fn(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({images:a.map((function(t){return{u:t}})),init:n},c))},redirectTo:function(t){var e=t||{},n=e.url,r=e.success,o=e.complete;window.location.replace(n),null==r||r({}),null==o||o({})},removeStorage:function(t){e("removeTinyLocalStorage",t)},request:hn,saveImage:function(t){var n=t||{};e("saveImage",function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?yn(Object(n),!0).forEach((function(e){o(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):yn(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({src:n.url},i(n,dn)))},setNavigationBar:vn,setStorage:gn,showActionSheet:function(t){var n=t||{};e("actionSheet",function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?bn(Object(n),!0).forEach((function(e){o(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):bn(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({btns:n.items,cancelBtn:n.cancelButtonText},i(n,mn)))},showAuthGuide:function(t){e("showAuthGuide",function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?In(Object(n),!0).forEach((function(e){o(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):In(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({bizType:(null==t?void 0:t.bizType)||"alipayIntl"},t))},showNavigationBarLoading:function(){e("showTitleLoading")},showToast:function(t){var n=t||{};e("toast",function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Pn(Object(n),!0).forEach((function(e){o(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Pn(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({content:n.content||""},i(n,On)))},tradePay:function(t){var e=t||{};Jn("a+"===e.flowType?"tradePayCrossApp":"tradePay",i(e,$n))},uploadFile:function(t){var n=t||{};e("uploadFile",function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Qn(Object(n),!0).forEach((function(e){o(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Qn(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({name:n.fileName,type:n.fileType},i(n,Zn)))},getCurrentLanguage:function(){if(!tr){var t=function(){if("object"===("undefined"==typeof window?"undefined":Xn(window))){var t,e=null===(t=window.location.search)||void 0===t?void 0:t.match(/__lang__=([^&]*)/);if(e)return e[1]}}()||function(){if("object"===("undefined"==typeof document?"undefined":Xn(document))){var t,e=null===(t=document.documentElement)||void 0===t?void 0:t.lang;if(e)return e}}()||function(){if("object"===("undefined"==typeof window?"undefined":Xn(window))){var t,e=(null===(t=window.navigator)||void 0===t?void 0:t.userAgent)||"",n=(/Language\/([^\s]*)/i.exec(e)||[]).pop();if(n)return n}}()||function(){if("object"===("undefined"==typeof window?"undefined":Xn(window))&&window.navigator){var t,e=window.navigator,n=(null===(t=e.languages)||void 0===t?void 0:t[0])||e.language||e.userLanguage||e.browserLanguage;if(n)return n}}()||"en-US";tr=t.toLowerCase()}return tr},openURL:wr,openWebURL:Ar,openInApp:Er,openOtherApp:_r,openInBrowser:Sr,openPayCodePage:xr,openApPayCodePage:kr,openScanPage:Cr,createWithoutAuthRpc:Mr,rpcWithAuth:function(t){var e=t.success;Jn("rpc",function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Lr(Object(n),!0).forEach((function(e){o(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Lr(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({success:function(t){null==e||e({headers:{},resData:t})}},i(t,Nr)))},defineRuntimeConfig:Ur,rpcWithAuthAPlus:bo,addNotifyListener:function(t){var e=t||{},n=e.name,r=e.callback,a=i(e,Po),c=function(){var t=Yr(Kr().mark((function t(e){var n,o;return Kr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Ao({});case 2:if("Android"===t.sent.platform){for(o in n={},e)n[o]=Oo(e[o],e[o]);null==r||r(n)}else null==r||r(e);case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}();Jn("addNotifyListener",function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?wo(Object(n),!0).forEach((function(e){o(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):wo(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({name:"NEBULANOTIFY_"+n,complete:c},a))},removeNotifyListener:function(t){var e=t||{};Jn("removeNotifyListener",function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?_o(Object(n),!0).forEach((function(e){o(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):_o(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({name:"NEBULANOTIFY_"+e.name},i(e,Eo)))},popWindow:function(t){Jn("popWindow",t)}}})(),r.default})()));