@alipay/ams-checkout 0.0.1779094014-dev.2 → 0.0.1779094014-dev.21
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.
- package/ams-checkout.js +3 -3
- package/dist/ams-checkout.min.js +1 -1
- package/dist/ams-checkout.min.js.map +1 -1
- package/esm/component/popupWindow.style.js +2 -1
- package/esm/config/index.d.ts +7 -0
- package/esm/config/index.js +2 -2
- package/esm/constant/index.d.ts +1 -0
- package/esm/constant/index.js +1 -0
- package/esm/core/component/element/elementContainerService/containerService.js +3 -2
- package/esm/core/component/element/elementProcessor/paymentProcessor.js +42 -4
- package/esm/core/component/element/index.d.ts +3 -0
- package/esm/core/component/element/index.js +13 -8
- package/esm/core/component/element/modernElementController/adapter.d.ts +5 -5
- package/esm/core/component/element/modernElementController/adapter.js +23 -19
- package/esm/core/component/element/modernElementController/index.d.ts +43 -13
- package/esm/core/component/element/modernElementController/index.js +585 -263
- package/esm/core/component/element/type.d.ts +6 -18
- package/esm/foundation/service/container/utils.js +3 -1
- package/esm/modern/global.d.ts +3 -0
- package/esm/modern/index.d.ts +5 -1
- package/esm/modern/index.js +1 -51
- package/esm/modern/tools.js +1 -0
- package/esm/plugin/component/channel.d.ts +4 -1
- package/esm/plugin/component/channel.js +6 -2
- package/esm/plugin/component/index.js +7 -6
- package/esm/tsdoc-metadata.json +1 -1
- package/esm/types/index.d.ts +1 -0
- package/esm/util/logger.js +1 -2
- package/package.json +23 -10
- package/types.d.ts +896 -71
- package/types.untrimmed.d.ts +1203 -113
- package/esm/modern/oneapi/iexpfront/PaymentSessionService.d.ts +0 -23
- package/esm/modern/oneapi/iexpfront/PaymentSessionService.js +0 -55
- package/esm/modern/oneapi/iexpfront/definitions.d.ts +0 -3656
- package/esm/modern/oneapi/iexpfront/definitions.js +0 -1
- package/esm/modern/tools/AntomSDKError.d.ts +0 -47
- package/esm/modern/tools/AntomSDKError.js +0 -47
- package/esm/modern/tools/buildPageUrl.d.ts +0 -4
- package/esm/modern/tools/buildPageUrl.js +0 -19
- package/esm/modern/tools/getDevReqConfig.d.ts +0 -2
- package/esm/modern/tools/getDevReqConfig.js +0 -16
- package/esm/modern/tools/getLocaleFromRenderData.d.ts +0 -6
- package/esm/modern/tools/getLocaleFromRenderData.js +0 -20
- package/esm/modern/tools/getMetaData.d.ts +0 -102
- package/esm/modern/tools/getMetaData.js +0 -7
- package/esm/modern/tools/openModal.d.ts +0 -20
- package/esm/modern/tools/openModal.js +0 -221
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var n=t();for(var r in n)("object"==typeof exports?exports:e)[r]=n[r]}}(self,(function(){return function(){var e={306:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},i=this&&this.__generator||function(e,t){var n,r,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(u){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(o=0)),o;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!(i=o.trys,(i=i.length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,u])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.loadScript=void 0,t.createSingletonInstance=u,t.createInstance=c,t.createLoader=function(e){var t=this,n=e.sdkURL,s=e.globalName,l=e.timeout,h=void 0===l?2e4:l,f=e.onLoadComplete,d=e.onError,p=e.onLoadStart,g=e.onInitialized,v=e.single,m=void 0===v||v,y=e.namespace;return function(e){return r(t,void 0,void 0,(function(){var t,l,v=this;return i(this,(function(_){var b,E;return null==p||p(),t=Date.now(),o.tracker.log({code:"7988",msg:y,d1:"loadStart",d2:"无",d3:"无",d4:"无",d5:"npm",m1:0,m2:0}),b=function(){return(0,a.loadScriptClass)(n,s)},E=h,l=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Promise.race([new Promise((function(e,t){setTimeout((function(){t(new a.LoaderError("LOAD_TIMEOUT","Load timeout: ".concat(E)))}),E)})),b.apply(void 0,e)])},[2,l().then((function(n){return r(v,[n],void 0,(function(n){var r,l,h,d=n.variable,p=n.cache;return i(this,(function(n){switch(n.label){case 0:if(r=Date.now(),p||o.tracker.log({code:"7988",msg:y,d1:"loadComplete",d2:"无",d3:"无",d4:(null==d?void 0:d.version)||"无",d5:"npm",m1:Math.round(Date.now()-t),m2:0}),null==f||f(),!d)throw new a.LoaderError("NO_REMOTE_CLASS","No variables ".concat(s," were found. Cannot be initialized the Class ").concat(s));n.label=1;case 1:return n.trys.push([1,3,,4]),[4,(m?u:c)(d,e,void 0)];case 2:return l=n.sent(),o.tracker.log({code:"7988",msg:y,d1:"initialized",d2:"无",d3:"无",d4:l.version||"无版本号",d5:"npm",m1:Math.round(Date.now()-t),m2:Math.round(Date.now()-r)}),null==g||g(l,window.location.href),[2,l];case 3:throw h=n.sent(),new a.LoaderError("INIT_ERROR","Initialize Class ".concat(s," failed: ").concat(h.message));case 4:return[2]}}))}))})).catch((function(e){var n=a.LoaderError.unificationError(e);return o.tracker.log({code:"7988",msg:y,d1:"createError",d2:n.code,d3:n.message,d4:"无",d5:"npm",m1:Math.round(Date.now()-t),m2:0}),null==d||d(n),Promise.reject(e)}))]}))}))}};var o=n(611),a=n(880);Object.defineProperty(t,"loadScript",{enumerable:!0,get:function(){return a.loadScript}});var s=null;function u(e,t,n){return s||(s=c(e,t,n))}function c(e,t,n){var r=new e(t),i=Date.now();return r.init().then((function(e){return n&&o.tracker.log({code:"7988",msg:n,d1:"initialized",d2:"无",d3:"无",d4:r.version||"无版本号",d5:"umd",m1:Math.round(Date.now()-i),m2:Math.round(Date.now()-i)}),e})).catch((function(e){var t=new a.LoaderError("INIT_ERROR","Initialize Class failed: ".concat(e.message));throw n&&o.tracker.log({code:"7988",msg:n,d1:"createError",d2:t.code,d3:t.message,d4:"无",d5:"umd",m1:Math.round(Date.now()-i),m2:0}),t}))}},611:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},i=this&&this.__generator||function(e,t){var n,r,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(u){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(o=0)),o;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!(i=o.trys,(i=i.length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,u])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.tracker=t.ScriptTracker=void 0;var o=n(880),a=function(){function e(e){var t=this;Object.defineProperty(this,"initOptions",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"tracker",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.initOptions=e,this.loadTacker().then((function(e){t.tracker=e}))}return Object.defineProperty(e.prototype,"loadTacker",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this;return(0,o.loadScript)("https://cdn.marmot-cloud.com/tnpm-package/@antintl-opensdk-debugger/1.0.1/dist/tracker.umd.js","intlSdkTracker").then((function(t){var n;return null===(n=null==t?void 0:t.variable)||void 0===n?void 0:n.getTrackerInstance(e.initOptions)}))}}),Object.defineProperty(e.prototype,"getTracker",{enumerable:!1,configurable:!0,writable:!0,value:function(){return r(this,void 0,void 0,(function(){var e;return i(this,(function(t){switch(t.label){case 0:return this.tracker?[2,this.tracker]:[4,this.loadTacker()];case 1:return(e=t.sent())&&(this.tracker=e),[2,e]}}))}))}}),Object.defineProperty(e.prototype,"safeCall",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this.getTracker().then(e)}}),Object.defineProperty(e.prototype,"log",{enumerable:!1,configurable:!0,writable:!0,value:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.safeCall((function(t){return null==t?void 0:t.log.apply(t,e)}))}}),e}();t.ScriptTracker=a;var s=(null==="DEV"?void 0:"DEV".toUpperCase())||"PROD",u=["DEV","SIT","PRE","PROD","LOCAL"].includes(s)?s:"PROD";t.tracker=new a({appId:"180020050100012557",env:u,server:"sg",performance:!1,error:!1})},880:function(e,t){"use strict";var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.LoaderError=void 0,t.loadScriptClass=function(e,t){return o(e,t)},t.loadScript=o;var i=function(e){function t(t,n){var r=e.call(this,n)||this;return Object.defineProperty(r,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),r.name="LoaderError",r.code=t,r}return r(t,e),Object.defineProperty(t,"unificationError",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return e instanceof t||e instanceof Error&&"LoaderError"===e.name?e:new t("UNKNOWN_ERROR",e instanceof Error?e.message:"An unknown error occurred.")}}),t}(Error);function o(e,t){var n=function(){if("function"==typeof t)return t();var e=window[t];return(null==e?void 0:e.default)||e};return new Promise((function(t,r){var o=n();if(o)return t({cache:!0,variable:o});var a=document.querySelector('script[src="'.concat(e,'"]')),s=a||document.createElement("script");s.src=e,s.async=!0,s.addEventListener("load",(function(){t({cache:!1,variable:n()})})),s.addEventListener("error",(function(t){r(new i("LOAD_ERROR","Load script ".concat(e," failed: ").concat(t.message)))})),a||document.head.appendChild(s)}))}t.LoaderError=i},861:function(e,t){"use strict";t.byteLength=function(e){var t=u(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,o=u(e),a=o[0],s=o[1],c=new i(function(e,t,n){return 3*(t+n)/4-n}(0,a,s)),l=0,h=s>0?a-4:a;for(n=0;n<h;n+=4)t=r[e.charCodeAt(n)]<<18|r[e.charCodeAt(n+1)]<<12|r[e.charCodeAt(n+2)]<<6|r[e.charCodeAt(n+3)],c[l++]=t>>16&255,c[l++]=t>>8&255,c[l++]=255&t;2===s&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,c[l++]=255&t);1===s&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,c[l++]=t>>8&255,c[l++]=255&t);return c},t.fromByteArray=function(e){for(var t,r=e.length,i=r%3,o=[],a=16383,s=0,u=r-i;s<u;s+=a)o.push(c(e,s,s+a>u?u:s+a));1===i?(t=e[r-1],o.push(n[t>>2]+n[t<<4&63]+"==")):2===i&&(t=(e[r-2]<<8)+e[r-1],o.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"="));return o.join("")};for(var n=[],r=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,s=o.length;a<s;++a)n[a]=o[a],r[o.charCodeAt(a)]=a;function u(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function c(e,t,r){for(var i,o,a=[],s=t;s<r;s+=3)i=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),a.push(n[(o=i)>>18&63]+n[o>>12&63]+n[o>>6&63]+n[63&o]);return a.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},207:function(e,t,n){"use strict";var r=n(861),i=n(90),o=n(736);function a(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(a()<t)throw new RangeError("Invalid typed array length");return u.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=u.prototype:(null===e&&(e=new u(t)),e.length=t),e}function u(e,t,n){if(!(u.TYPED_ARRAY_SUPPORT||this instanceof u))return new u(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return h(this,e)}return c(this,e,t,n)}function c(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r);u.TYPED_ARRAY_SUPPORT?(e=t).__proto__=u.prototype:e=f(e,t);return e}(e,t,n,r):"string"==typeof t?function(e,t,n){"string"==typeof n&&""!==n||(n="utf8");if(!u.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|p(t,n);e=s(e,r);var i=e.write(t,n);i!==r&&(e=e.slice(0,i));return e}(e,t,n):function(e,t){if(u.isBuffer(t)){var n=0|d(t.length);return 0===(e=s(e,n)).length||t.copy(e,0,0,n),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(r=t.length)!=r?s(e,0):f(e,t);if("Buffer"===t.type&&o(t.data))return f(e,t.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function l(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function h(e,t){if(l(t),e=s(e,t<0?0:0|d(t)),!u.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function f(e,t){var n=t.length<0?0:0|d(t.length);e=s(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function d(e){if(e>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function p(e,t){if(u.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return z(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return G(e).length;default:if(r)return z(e).length;t=(""+t).toLowerCase(),r=!0}}function g(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return N(this,t,n);case"utf8":case"utf-8":return R(this,t,n);case"ascii":return L(this,t,n);case"latin1":case"binary":return k(this,t,n);case"base64":return A(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function v(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function m(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=u.from(t,r)),u.isBuffer(t))return 0===t.length?-1:y(e,t,n,r,i);if("number"==typeof t)return t&=255,u.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):y(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function y(e,t,n,r,i){var o,a=1,s=e.length,u=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,u/=2,n/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var l=-1;for(o=n;o<s;o++)if(c(e,o)===c(t,-1===l?0:o-l)){if(-1===l&&(l=o),o-l+1===u)return l*a}else-1!==l&&(o-=o-l),l=-1}else for(n+u>s&&(n=s-u),o=n;o>=0;o--){for(var h=!0,f=0;f<u;f++)if(c(e,o+f)!==c(t,f)){h=!1;break}if(h)return o}return-1}function _(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a<r;++a){var s=parseInt(t.substr(2*a,2),16);if(isNaN(s))return a;e[n+a]=s}return a}function b(e,t,n,r){return K(z(t,e.length-n),e,n,r)}function E(e,t,n,r){return K(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function w(e,t,n,r){return E(e,t,n,r)}function S(e,t,n,r){return K(G(t),e,n,r)}function T(e,t,n,r){return K(function(e,t){for(var n,r,i,o=[],a=0;a<e.length&&!((t-=2)<0);++a)r=(n=e.charCodeAt(a))>>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function A(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function R(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var o,a,s,u,c=e[i],l=null,h=c>239?4:c>223?3:c>191?2:1;if(i+h<=n)switch(h){case 1:c<128&&(l=c);break;case 2:128==(192&(o=e[i+1]))&&(u=(31&c)<<6|63&o)>127&&(l=u);break;case 3:o=e[i+1],a=e[i+2],128==(192&o)&&128==(192&a)&&(u=(15&c)<<12|(63&o)<<6|63&a)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(u=(15&c)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(l=u)}null===l?(l=65533,h=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),i+=h}return function(e){var t=e.length;if(t<=P)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=P));return n}(r)}t.lW=u,t.h2=50,u.TYPED_ARRAY_SUPPORT=void 0!==n.g.TYPED_ARRAY_SUPPORT?n.g.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),a(),u.poolSize=8192,u._augment=function(e){return e.__proto__=u.prototype,e},u.from=function(e,t,n){return c(null,e,t,n)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(e,t,n){return function(e,t,n,r){return l(t),t<=0?s(e,t):void 0!==n?"string"==typeof r?s(e,t).fill(n,r):s(e,t).fill(n):s(e,t)}(null,e,t,n)},u.allocUnsafe=function(e){return h(null,e)},u.allocUnsafeSlow=function(e){return h(null,e)},u.isBuffer=function(e){return!(null==e||!e._isBuffer)},u.compare=function(e,t){if(!u.isBuffer(e)||!u.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i<o;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},u.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(e,t){if(!o(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return u.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=u.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var a=e[n];if(!u.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(r,i),i+=a.length}return r},u.byteLength=p,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)v(this,t,t+1);return this},u.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)v(this,t,t+3),v(this,t+1,t+2);return this},u.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)v(this,t,t+7),v(this,t+1,t+6),v(this,t+2,t+5),v(this,t+3,t+4);return this},u.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?R(this,0,e):g.apply(this,arguments)},u.prototype.equals=function(e){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===u.compare(this,e)},u.prototype.inspect=function(){var e="",n=t.h2;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},u.prototype.compare=function(e,t,n,r,i){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),s=Math.min(o,a),c=this.slice(r,i),l=e.slice(t,n),h=0;h<s;++h)if(c[h]!==l[h]){o=c[h],a=l[h];break}return o<a?-1:a<o?1:0},u.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},u.prototype.indexOf=function(e,t,n){return m(this,e,t,n,!0)},u.prototype.lastIndexOf=function(e,t,n){return m(this,e,t,n,!1)},u.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return _(this,e,t,n);case"utf8":case"utf-8":return b(this,e,t,n);case"ascii":return E(this,e,t,n);case"latin1":case"binary":return w(this,e,t,n);case"base64":return S(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var P=4096;function L(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function k(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function N(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=t;o<n;++o)i+=j(e[o]);return i}function O(e,t,n){for(var r=e.slice(t,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function I(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function C(e,t,n,r,i,o){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function M(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-n,2);i<o;++i)e[n+i]=(t&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function D(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-n,4);i<o;++i)e[n+i]=t>>>8*(r?i:3-i)&255}function x(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function B(e,t,n,r,o){return o||x(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function U(e,t,n,r,o){return o||x(e,0,n,8),i.write(e,t,n,r,52,8),n+8}u.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),u.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=u.prototype;else{var i=t-e;n=new u(i,void 0);for(var o=0;o<i;++o)n[o]=this[o+e]}return n},u.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||I(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r},u.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||I(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},u.prototype.readUInt8=function(e,t){return t||I(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,t){return t||I(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,t){return t||I(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,t){return t||I(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUInt32BE=function(e,t){return t||I(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||I(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*t)),r},u.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||I(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},u.prototype.readInt8=function(e,t){return t||I(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){t||I(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(e,t){t||I(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(e,t){return t||I(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return t||I(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return t||I(e,4,this.length),i.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return t||I(e,4,this.length),i.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return t||I(e,8,this.length),i.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return t||I(e,8,this.length),i.read(this,e,!1,52,8)},u.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||C(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[t]=255&e;++o<n&&(i*=256);)this[t+o]=e/i&255;return t+n},u.prototype.writeUIntBE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||C(this,e,t,n,Math.pow(2,8*n)-1,0);var i=n-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+n},u.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||C(this,e,t,1,255,0),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},u.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||C(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):M(this,e,t,!0),t+2},u.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||C(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):M(this,e,t,!1),t+2},u.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||C(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):D(this,e,t,!0),t+4},u.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||C(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):D(this,e,t,!1),t+4},u.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);C(this,e,t,n,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o<n&&(a*=256);)e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},u.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);C(this,e,t,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},u.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||C(this,e,t,1,127,-128),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||C(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):M(this,e,t,!0),t+2},u.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||C(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):M(this,e,t,!1),t+2},u.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||C(this,e,t,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):D(this,e,t,!0),t+4},u.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||C(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):D(this,e,t,!1),t+4},u.prototype.writeFloatLE=function(e,t,n){return B(this,e,t,!0,n)},u.prototype.writeFloatBE=function(e,t,n){return B(this,e,t,!1,n)},u.prototype.writeDoubleLE=function(e,t,n){return U(this,e,t,!0,n)},u.prototype.writeDoubleBE=function(e,t,n){return U(this,e,t,!1,n)},u.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i,o=r-n;if(this===e&&n<t&&t<r)for(i=o-1;i>=0;--i)e[i+t]=this[i+n];else if(o<1e3||!u.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)e[i+t]=this[i+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+o),t);return o},u.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===e.length){var i=e.charCodeAt(0);i<256&&(e=i)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!u.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var o;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=t;o<n;++o)this[o]=e;else{var a=u.isBuffer(e)?e:z(new u(e,r).toString()),s=a.length;for(o=0;o<n-t;++o)this[o+t]=a[o%s]}return this};var H=/[^+\/0-9A-Za-z-_]/g;function j(e){return e<16?"0"+e.toString(16):e.toString(16)}function z(e,t){var n;t=t||1/0;for(var r=e.length,i=null,o=[],a=0;a<r;++a){if((n=e.charCodeAt(a))>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function G(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(H,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function K(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}},736:function(e){var t={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==t.call(e)}},90:function(e,t){t.read=function(e,t,n,r,i){var o,a,s=8*i-r-1,u=(1<<s)-1,c=u>>1,l=-7,h=n?i-1:0,f=n?-1:1,d=e[t+h];for(h+=f,o=d&(1<<-l)-1,d>>=-l,l+=s;l>0;o=256*o+e[t+h],h+=f,l-=8);for(a=o&(1<<-l)-1,o>>=-l,l+=r;l>0;a=256*a+e[t+h],h+=f,l-=8);if(0===o)o=1-c;else{if(o===u)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,r),o-=c}return(d?-1:1)*a*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var a,s,u,c=8*o-i-1,l=(1<<c)-1,h=l>>1,f=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:o-1,p=r?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),(t+=a+h>=1?f/u:f*Math.pow(2,1-h))*u>=2&&(a++,u/=2),a+h>=l?(s=0,a=l):a+h>=1?(s=(t*u-1)*Math.pow(2,i),a+=h):(s=t*Math.pow(2,h-1)*Math.pow(2,i),a=0));i>=8;e[n+d]=255&s,d+=p,s/=256,i-=8);for(a=a<<i|s,c+=i;c>0;e[n+d]=255&a,d+=p,a/=256,c-=8);e[n+d-p]|=128*g}},98:function(e,t,n){var r=n(944).default,i=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,s=/^0o[0-7]+$/i,u=parseInt,c="object"==(void 0===n.g?"undefined":r(n.g))&&n.g&&n.g.Object===Object&&n.g,l="object"==("undefined"==typeof self?"undefined":r(self))&&self&&self.Object===Object&&self,h=c||l||Function("return this")(),f=Object.prototype.toString,d=Math.max,p=Math.min,g=function(){return h.Date.now()};function v(e){var t=r(e);return!!e&&("object"==t||"function"==t)}function m(e){return"symbol"==r(e)||function(e){return!!e&&"object"==r(e)}(e)&&"[object Symbol]"==f.call(e)}function y(e){if("number"==typeof e)return e;if(m(e))return NaN;if(v(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=v(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(i,"");var n=a.test(e);return n||s.test(e)?u(e.slice(2),n?2:8):o.test(e)?NaN:+e}e.exports=function(e,t,n){var r,i,o,a,s,u,c=0,l=!1,h=!1,f=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function m(t){var n=r,o=i;return r=i=void 0,c=t,a=e.apply(o,n)}function _(e){return c=e,s=setTimeout(E,t),l?m(e):a}function b(e){var n=e-u;return void 0===u||n>=t||n<0||h&&e-c>=o}function E(){var e=g();if(b(e))return w(e);s=setTimeout(E,function(e){var n=t-(e-u);return h?p(n,o-(e-c)):n}(e))}function w(e){return s=void 0,f&&r?m(e):(r=i=void 0,a)}function S(){var e=g(),n=b(e);if(r=arguments,i=this,u=e,n){if(void 0===s)return _(u);if(h)return s=setTimeout(E,t),m(u)}return void 0===s&&(s=setTimeout(E,t)),a}return t=y(t)||0,v(n)&&(l=!!n.leading,o=(h="maxWait"in n)?d(y(n.maxWait)||0,t):o,f="trailing"in n?!!n.trailing:f),S.cancel=function(){void 0!==s&&clearTimeout(s),c=0,r=u=i=s=void 0},S.flush=function(){return void 0===s?a:w(g())},S}},414:function(e,t,n){var r=n(944).default,i="__lodash_hash_undefined__",o="[object Function]",a="[object GeneratorFunction]",s=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,u=/^\w*$/,c=/^\./,l=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,h=/\\(\\)?/g,f=/^\[object .+?Constructor\]$/,d="object"==(void 0===n.g?"undefined":r(n.g))&&n.g&&n.g.Object===Object&&n.g,p="object"==("undefined"==typeof self?"undefined":r(self))&&self&&self.Object===Object&&self,g=d||p||Function("return this")();var v,m=Array.prototype,y=Function.prototype,_=Object.prototype,b=g["__core-js_shared__"],E=(v=/[^.]+$/.exec(b&&b.keys&&b.keys.IE_PROTO||""))?"Symbol(src)_1."+v:"",w=y.toString,S=_.hasOwnProperty,T=_.toString,A=RegExp("^"+w.call(S).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),R=g.Symbol,P=m.splice,L=H(g,"Map"),k=H(Object,"create"),N=R?R.prototype:void 0,O=N?N.toString:void 0;function I(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function C(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function M(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function D(e,t){for(var n,r,i=e.length;i--;)if((n=e[i][0])===(r=t)||n!=n&&r!=r)return i;return-1}function x(e,t){var n;t=function(e,t){if(K(e))return!1;var n=r(e);if("number"==n||"symbol"==n||"boolean"==n||null==e||F(e))return!0;return u.test(e)||!s.test(e)||null!=t&&e in Object(t)}(t,e)?[t]:K(n=t)?n:j(n);for(var i=0,o=t.length;null!=e&&i<o;)e=e[z(t[i++])];return i&&i==o?e:void 0}function B(e){if(!Y(e)||(t=e,E&&E in t))return!1;var t,n=function(e){var t=Y(e)?T.call(e):"";return t==o||t==a}(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(e)?A:f;return n.test(function(e){if(null!=e){try{return w.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e))}function U(e,t){var n,i,o=e.__data__;return("string"==(i=r(n=t))||"number"==i||"symbol"==i||"boolean"==i?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function H(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return B(n)?n:void 0}I.prototype.clear=function(){this.__data__=k?k(null):{}},I.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},I.prototype.get=function(e){var t=this.__data__;if(k){var n=t[e];return n===i?void 0:n}return S.call(t,e)?t[e]:void 0},I.prototype.has=function(e){var t=this.__data__;return k?void 0!==t[e]:S.call(t,e)},I.prototype.set=function(e,t){return this.__data__[e]=k&&void 0===t?i:t,this},C.prototype.clear=function(){this.__data__=[]},C.prototype.delete=function(e){var t=this.__data__,n=D(t,e);return!(n<0)&&(n==t.length-1?t.pop():P.call(t,n,1),!0)},C.prototype.get=function(e){var t=this.__data__,n=D(t,e);return n<0?void 0:t[n][1]},C.prototype.has=function(e){return D(this.__data__,e)>-1},C.prototype.set=function(e,t){var n=this.__data__,r=D(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},M.prototype.clear=function(){this.__data__={hash:new I,map:new(L||C),string:new I}},M.prototype.delete=function(e){return U(this,e).delete(e)},M.prototype.get=function(e){return U(this,e).get(e)},M.prototype.has=function(e){return U(this,e).has(e)},M.prototype.set=function(e,t){return U(this,e).set(e,t),this};var j=G((function(e){var t;e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if(F(e))return O?O.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(t);var n=[];return c.test(e)&&n.push(""),e.replace(l,(function(e,t,r,i){n.push(r?i.replace(h,"$1"):t||e)})),n}));function z(e){if("string"==typeof e||F(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function G(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function n(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a),a};return n.cache=new(G.Cache||M),n}G.Cache=M;var K=Array.isArray;function Y(e){var t=r(e);return!!e&&("object"==t||"function"==t)}function F(e){return"symbol"==r(e)||function(e){return!!e&&"object"==r(e)}(e)&&"[object Symbol]"==T.call(e)}e.exports=function(e,t,n){var r=null==e?void 0:x(e,t);return void 0===r?n:r}},994:function(e,t,n){e=n.nmd(e);var r=n(944).default,i="__lodash_hash_undefined__",o=9007199254740991,a="[object Arguments]",s="[object Function]",u="[object Object]",c=/^\[object .+?Constructor\]$/,l=/^(?:0|[1-9]\d*)$/,h={};h["[object Float32Array]"]=h["[object Float64Array]"]=h["[object Int8Array]"]=h["[object Int16Array]"]=h["[object Int32Array]"]=h["[object Uint8Array]"]=h["[object Uint8ClampedArray]"]=h["[object Uint16Array]"]=h["[object Uint32Array]"]=!0,h[a]=h["[object Array]"]=h["[object ArrayBuffer]"]=h["[object Boolean]"]=h["[object DataView]"]=h["[object Date]"]=h["[object Error]"]=h[s]=h["[object Map]"]=h["[object Number]"]=h[u]=h["[object RegExp]"]=h["[object Set]"]=h["[object String]"]=h["[object WeakMap]"]=!1;var f="object"==(void 0===n.g?"undefined":r(n.g))&&n.g&&n.g.Object===Object&&n.g,d="object"==("undefined"==typeof self?"undefined":r(self))&&self&&self.Object===Object&&self,p=f||d||Function("return this")(),g="object"==r(t)&&t&&!t.nodeType&&t,v=g&&"object"==r(e)&&e&&!e.nodeType&&e,m=v&&v.exports===g,y=m&&f.process,_=function(){try{var e=v&&v.require&&v.require("util").types;return e||y&&y.binding&&y.binding("util")}catch(e){}}(),b=_&&_.isTypedArray;function E(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var w,S,T,A=Array.prototype,R=Function.prototype,P=Object.prototype,L=p["__core-js_shared__"],k=R.toString,N=P.hasOwnProperty,O=(w=/[^.]+$/.exec(L&&L.keys&&L.keys.IE_PROTO||""))?"Symbol(src)_1."+w:"",I=P.toString,C=k.call(Object),M=RegExp("^"+k.call(N).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),D=m?p.Buffer:void 0,x=p.Symbol,B=p.Uint8Array,U=D?D.allocUnsafe:void 0,H=(S=Object.getPrototypeOf,T=Object,function(e){return S(T(e))}),j=Object.create,z=P.propertyIsEnumerable,G=A.splice,K=x?x.toStringTag:void 0,Y=function(){try{var e=ve(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),F=D?D.isBuffer:void 0,W=Math.max,V=Date.now,q=ve(p,"Map"),J=ve(Object,"create"),X=function(){function e(){}return function(t){if(!Le(t))return{};if(j)return j(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function Z(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Q(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function $(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ee(e){var t=this.__data__=new Q(e);this.size=t.size}function te(e,t){var n=Se(e),r=!n&&we(e),i=!n&&!r&&Ae(e),o=!n&&!r&&!i&&Ne(e),a=n||r||i||o,s=a?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],u=s.length;for(var c in e)!t&&!N.call(e,c)||a&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||me(c,u))||s.push(c);return s}function ne(e,t,n){(void 0!==n&&!Ee(e[t],n)||void 0===n&&!(t in e))&&oe(e,t,n)}function re(e,t,n){var r=e[t];N.call(e,t)&&Ee(r,n)&&(void 0!==n||t in e)||oe(e,t,n)}function ie(e,t){for(var n=e.length;n--;)if(Ee(e[n][0],t))return n;return-1}function oe(e,t,n){"__proto__"==t&&Y?Y(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}Z.prototype.clear=function(){this.__data__=J?J(null):{},this.size=0},Z.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Z.prototype.get=function(e){var t=this.__data__;if(J){var n=t[e];return n===i?void 0:n}return N.call(t,e)?t[e]:void 0},Z.prototype.has=function(e){var t=this.__data__;return J?void 0!==t[e]:N.call(t,e)},Z.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=J&&void 0===t?i:t,this},Q.prototype.clear=function(){this.__data__=[],this.size=0},Q.prototype.delete=function(e){var t=this.__data__,n=ie(t,e);return!(n<0)&&(n==t.length-1?t.pop():G.call(t,n,1),--this.size,!0)},Q.prototype.get=function(e){var t=this.__data__,n=ie(t,e);return n<0?void 0:t[n][1]},Q.prototype.has=function(e){return ie(this.__data__,e)>-1},Q.prototype.set=function(e,t){var n=this.__data__,r=ie(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},$.prototype.clear=function(){this.size=0,this.__data__={hash:new Z,map:new(q||Q),string:new Z}},$.prototype.delete=function(e){var t=ge(this,e).delete(e);return this.size-=t?1:0,t},$.prototype.get=function(e){return ge(this,e).get(e)},$.prototype.has=function(e){return ge(this,e).has(e)},$.prototype.set=function(e,t){var n=ge(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},ee.prototype.clear=function(){this.__data__=new Q,this.size=0},ee.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},ee.prototype.get=function(e){return this.__data__.get(e)},ee.prototype.has=function(e){return this.__data__.has(e)},ee.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Q){var r=n.__data__;if(!q||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new $(r)}return n.set(e,t),this.size=n.size,this};var ae,se=function(e,t,n){for(var r=-1,i=Object(e),o=n(e),a=o.length;a--;){var s=o[ae?a:++r];if(!1===t(i[s],s,i))break}return e};function ue(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":K&&K in Object(e)?function(e){var t=N.call(e,K),n=e[K];try{e[K]=void 0;var r=!0}catch(e){}var i=I.call(e);r&&(t?e[K]=n:delete e[K]);return i}(e):function(e){return I.call(e)}(e)}function ce(e){return ke(e)&&ue(e)==a}function le(e){return!(!Le(e)||function(e){return!!O&&O in e}(e))&&(Re(e)?M:c).test(function(e){if(null!=e){try{return k.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e))}function he(e){if(!Le(e))return function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}(e);var t=ye(e),n=[];for(var r in e)("constructor"!=r||!t&&N.call(e,r))&&n.push(r);return n}function fe(e,t,n,r,i){e!==t&&se(t,(function(o,a){if(i||(i=new ee),Le(o))!function(e,t,n,r,i,o,a){var s=_e(e,n),c=_e(t,n),l=a.get(c);if(l)return void ne(e,n,l);var h=o?o(s,c,n+"",e,t,a):void 0,f=void 0===h;if(f){var d=Se(c),p=!d&&Ae(c),g=!d&&!p&&Ne(c);h=c,d||p||g?Se(s)?h=s:ke(b=s)&&Te(b)?h=function(e,t){var n=-1,r=e.length;t||(t=Array(r));for(;++n<r;)t[n]=e[n];return t}(s):p?(f=!1,h=function(e,t){if(t)return e.slice();var n=e.length,r=U?U(n):new e.constructor(n);return e.copy(r),r}(c,!0)):g?(f=!1,v=c,m=!0?(y=v.buffer,_=new y.constructor(y.byteLength),new B(_).set(new B(y)),_):v.buffer,h=new v.constructor(m,v.byteOffset,v.length)):h=[]:function(e){if(!ke(e)||ue(e)!=u)return!1;var t=H(e);if(null===t)return!0;var n=N.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&k.call(n)==C}(c)||we(c)?(h=s,we(s)?h=function(e){return function(e,t,n,r){var i=!n;n||(n={});var o=-1,a=t.length;for(;++o<a;){var s=t[o],u=r?r(n[s],e[s],s,n,e):void 0;void 0===u&&(u=e[s]),i?oe(n,s,u):re(n,s,u)}return n}(e,Oe(e))}(s):Le(s)&&!Re(s)||(h=function(e){return"function"!=typeof e.constructor||ye(e)?{}:X(H(e))}(c))):f=!1}var v,m,y,_;var b;f&&(a.set(c,h),i(h,c,r,o,a),a.delete(c));ne(e,n,h)}(e,t,a,n,fe,r,i);else{var s=r?r(_e(e,a),o,a+"",e,t,i):void 0;void 0===s&&(s=o),ne(e,a,s)}}),Oe)}function de(e,t){return be(function(e,t,n){return t=W(void 0===t?e.length-1:t,0),function(){for(var r=arguments,i=-1,o=W(r.length-t,0),a=Array(o);++i<o;)a[i]=r[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=r[i];return s[t]=n(a),E(e,this,s)}}(e,t,Me),e+"")}var pe=Y?function(e,t){return Y(e,"toString",{configurable:!0,enumerable:!1,value:(n=t,function(){return n}),writable:!0});var n}:Me;function ge(e,t){var n,i,o=e.__data__;return("string"==(i=r(n=t))||"number"==i||"symbol"==i||"boolean"==i?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function ve(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return le(n)?n:void 0}function me(e,t){var n=r(e);return!!(t=null==t?o:t)&&("number"==n||"symbol"!=n&&l.test(e))&&e>-1&&e%1==0&&e<t}function ye(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||P)}function _e(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var be=function(e){var t=0,n=0;return function(){var r=V(),i=16-(r-n);if(n=r,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(pe);function Ee(e,t){return e===t||e!=e&&t!=t}var we=ce(function(){return arguments}())?ce:function(e){return ke(e)&&N.call(e,"callee")&&!z.call(e,"callee")},Se=Array.isArray;function Te(e){return null!=e&&Pe(e.length)&&!Re(e)}var Ae=F||function(){return!1};function Re(e){if(!Le(e))return!1;var t=ue(e);return t==s||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Pe(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=o}function Le(e){var t=r(e);return null!=e&&("object"==t||"function"==t)}function ke(e){return null!=e&&"object"==r(e)}var Ne=b?function(e){return function(t){return e(t)}}(b):function(e){return ke(e)&&Pe(e.length)&&!!h[ue(e)]};function Oe(e){return Te(e)?te(e,!0):he(e)}var Ie,Ce=(Ie=function(e,t,n){fe(e,t,n)},de((function(e,t){var n=-1,i=t.length,o=i>1?t[i-1]:void 0,a=i>2?t[2]:void 0;for(o=Ie.length>3&&"function"==typeof o?(i--,o):void 0,a&&function(e,t,n){if(!Le(n))return!1;var i=r(t);return!!("number"==i?Te(n)&&me(t,n.length):"string"==i&&t in n)&&Ee(n[t],e)}(t[0],t[1],a)&&(o=i<3?void 0:o,i=1),e=Object(e);++n<i;){var s=t[n];s&&Ie(e,s,n,o)}return e})));function Me(e){return e}e.exports=Ce},89:function(e){var t,n,r=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function a(e){if(t===setTimeout)return setTimeout(e,0);if((t===i||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:i}catch(e){t=i}try{n="function"==typeof clearTimeout?clearTimeout:o}catch(e){n=o}}();var s,u=[],c=!1,l=-1;function h(){c&&s&&(c=!1,s.length?u=s.concat(u):l=-1,u.length&&f())}function f(){if(!c){var e=a(h);c=!0;for(var t=u.length;t;){for(s=u,u=[];++l<t;)s&&s[l].run();l=-1,t=u.length}s=null,c=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===o||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function d(e,t){this.fun=e,this.array=t}function p(){}r.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];u.push(new d(e,t)),1!==u.length||c||a(f)},d.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=p,r.addListener=p,r.once=p,r.off=p,r.removeListener=p,r.removeAllListeners=p,r.emit=p,r.prependListener=p,r.prependOnceListener=p,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},319:function(e,t,n){var r=n(652);function i(e){var t,n;function i(t,n){try{var a=e[t](n),s=a.value,u=s instanceof r;Promise.resolve(u?s.v:s).then((function(n){if(u){var r="return"===t?"return":"next";if(!s.k||n.done)return i(r,n);n=e[r](n).value}o(a.done?"return":"normal",n)}),(function(e){i("throw",e)}))}catch(e){o("throw",e)}}function o(e,r){switch(e){case"return":t.resolve({value:r,done:!0});break;case"throw":t.reject(r);break;default:t.resolve({value:r,done:!1})}(t=t.next)?i(t.key,t.arg):n=null}this._invoke=function(e,r){return new Promise((function(o,a){var s={key:e,arg:r,resolve:o,reject:a,next:null};n?n=n.next=s:(t=n=s,i(e,r))}))},"function"!=typeof e.return&&(this.return=void 0)}i.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},i.prototype.next=function(e){return this._invoke("next",e)},i.prototype.throw=function(e){return this._invoke("throw",e)},i.prototype.return=function(e){return this._invoke("return",e)},e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports},652:function(e){e.exports=function(e,t){this.v=e,this.k=t},e.exports.__esModule=!0,e.exports.default=e.exports},317:function(e){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r},e.exports.__esModule=!0,e.exports.default=e.exports},180:function(e){e.exports=function(e){if(Array.isArray(e))return e},e.exports.__esModule=!0,e.exports.default=e.exports},786:function(e,t,n){var r=n(317);e.exports=function(e){if(Array.isArray(e))return r(e)},e.exports.__esModule=!0,e.exports.default=e.exports},374:function(e){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.__esModule=!0,e.exports.default=e.exports},331:function(e,t,n){var r=n(652);e.exports=function(e){var t={},n=!1;function i(t,i){return n=!0,i=new Promise((function(n){n(e[t](i))})),{done:!1,value:new r(i,1)}}return t["undefined"!=typeof Symbol&&Symbol.iterator||"@@iterator"]=function(){return this},t.next=function(e){return n?(n=!1,e):i("next",e)},"function"==typeof e.throw&&(t.throw=function(e){if(n)throw n=!1,e;return i("throw",e)}),"function"==typeof e.return&&(t.return=function(e){return n?(n=!1,e):i("return",e)}),t},e.exports.__esModule=!0,e.exports.default=e.exports},193:function(e){function t(e){function n(e){if(Object(e)!==e)return Promise.reject(new TypeError(e+" is not an object."));var t=e.done;return Promise.resolve(e.value).then((function(e){return{value:e,done:t}}))}return t=function(e){this.s=e,this.n=e.next},t.prototype={s:null,n:null,next:function(){return n(this.n.apply(this.s,arguments))},return:function(e){var t=this.s.return;return void 0===t?Promise.resolve({value:e,done:!0}):n(t.apply(this.s,arguments))},throw:function(e){var t=this.s.return;return void 0===t?Promise.reject(e):n(t.apply(this.s,arguments))}},new t(e)}e.exports=function(e){var n,r,i,o=2;for("undefined"!=typeof Symbol&&(r=Symbol.asyncIterator,i=Symbol.iterator);o--;){if(r&&null!=(n=e[r]))return n.call(e);if(i&&null!=(n=e[i]))return new t(n.call(e));r="@@asyncIterator",i="@@iterator"}throw new TypeError("Object is not async iterable")},e.exports.__esModule=!0,e.exports.default=e.exports},404:function(e){function t(e,t,n,r,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,i)}e.exports=function(e){return function(){var n=this,r=arguments;return new Promise((function(i,o){var a=e.apply(n,r);function s(e){t(a,i,o,s,u,"next",e)}function u(e){t(a,i,o,s,u,"throw",e)}s(void 0)}))}},e.exports.__esModule=!0,e.exports.default=e.exports},946:function(e,t,n){var r=n(652);e.exports=function(e){return new r(e,0)},e.exports.__esModule=!0,e.exports.default=e.exports},486:function(e){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports.default=e.exports},855:function(e,t,n){var r=n(687),i=n(424);function o(t,n,a){return i()?(e.exports=o=Reflect.construct.bind(),e.exports.__esModule=!0,e.exports.default=e.exports):(e.exports=o=function(e,t,n){var i=[null];i.push.apply(i,t);var o=new(Function.bind.apply(e,i));return n&&r(o,n.prototype),o},e.exports.__esModule=!0,e.exports.default=e.exports),o.apply(null,arguments)}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},702:function(e,t,n){var r=n(281);function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,r(i.key),i)}}e.exports=function(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e},e.exports.__esModule=!0,e.exports.default=e.exports},746:function(e,t,n){var r=n(508);e.exports=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=r(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,o=function(){};return{s:o,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){u=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw a}}}},e.exports.__esModule=!0,e.exports.default=e.exports},400:function(e,t,n){var r=n(242),i=n(424),o=n(983);e.exports=function(e){var t=i();return function(){var n,i=r(e);if(t){var a=r(this).constructor;n=Reflect.construct(i,arguments,a)}else n=i.apply(this,arguments);return o(this,n)}},e.exports.__esModule=!0,e.exports.default=e.exports},143:function(e,t,n){var r=n(281);e.exports=function(e,t,n){return(t=r(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},225:function(e,t,n){var r=n(155);function i(){return"undefined"!=typeof Reflect&&Reflect.get?(e.exports=i=Reflect.get.bind(),e.exports.__esModule=!0,e.exports.default=e.exports):(e.exports=i=function(e,t,n){var i=r(e,t);if(i){var o=Object.getOwnPropertyDescriptor(i,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},e.exports.__esModule=!0,e.exports.default=e.exports),i.apply(this,arguments)}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports},242:function(e){function t(n){return e.exports=t=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},821:function(e,t,n){var r=n(687);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&r(e,t)},e.exports.__esModule=!0,e.exports.default=e.exports},185:function(e){e.exports=function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}},e.exports.__esModule=!0,e.exports.default=e.exports},424:function(e){e.exports=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}},e.exports.__esModule=!0,e.exports.default=e.exports},682:function(e){e.exports=function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.__esModule=!0,e.exports.default=e.exports},249:function(e){e.exports=function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],u=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){c=!0,i=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}},e.exports.__esModule=!0,e.exports.default=e.exports},20:function(e){e.exports=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.")},e.exports.__esModule=!0,e.exports.default=e.exports},114:function(e){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},118:function(e,t,n){var r=n(143);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}e.exports=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e},e.exports.__esModule=!0,e.exports.default=e.exports},983:function(e,t,n){var r=n(944).default,i=n(374);e.exports=function(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return i(e)},e.exports.__esModule=!0,e.exports.default=e.exports},662:function(e,t,n){var r=n(944).default;function i(){"use strict";e.exports=i=function(){return n},e.exports.__esModule=!0,e.exports.default=e.exports;var t,n={},o=Object.prototype,a=o.hasOwnProperty,s=Object.defineProperty||function(e,t,n){e[t]=n.value},u="function"==typeof Symbol?Symbol:{},c=u.iterator||"@@iterator",l=u.asyncIterator||"@@asyncIterator",h=u.toStringTag||"@@toStringTag";function f(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{f({},"")}catch(t){f=function(e,t,n){return e[t]=n}}function d(e,t,n,r){var i=t&&t.prototype instanceof _?t:_,o=Object.create(i.prototype),a=new I(r||[]);return s(o,"_invoke",{value:L(e,n,a)}),o}function p(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}n.wrap=d;var g="suspendedStart",v="executing",m="completed",y={};function _(){}function b(){}function E(){}var w={};f(w,c,(function(){return this}));var S=Object.getPrototypeOf,T=S&&S(S(C([])));T&&T!==o&&a.call(T,c)&&(w=T);var A=E.prototype=_.prototype=Object.create(w);function R(e){["next","throw","return"].forEach((function(t){f(e,t,(function(e){return this._invoke(t,e)}))}))}function P(e,t){function n(i,o,s,u){var c=p(e[i],e,o);if("throw"!==c.type){var l=c.arg,h=l.value;return h&&"object"==r(h)&&a.call(h,"__await")?t.resolve(h.__await).then((function(e){n("next",e,s,u)}),(function(e){n("throw",e,s,u)})):t.resolve(h).then((function(e){l.value=e,s(l)}),(function(e){return n("throw",e,s,u)}))}u(c.arg)}var i;s(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}})}function L(e,n,r){var i=g;return function(o,a){if(i===v)throw new Error("Generator is already running");if(i===m){if("throw"===o)throw a;return{value:t,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var u=k(s,r);if(u){if(u===y)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===g)throw i=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=v;var c=p(e,n,r);if("normal"===c.type){if(i=r.done?m:"suspendedYield",c.arg===y)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(i=m,r.method="throw",r.arg=c.arg)}}}function k(e,n){var r=n.method,i=e.iterator[r];if(i===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,k(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var o=p(i,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,y;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,y):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function N(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(N,this),this.reset(!0)}function C(e){if(e||""===e){var n=e[c];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function n(){for(;++i<e.length;)if(a.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return o.next=o}}throw new TypeError(r(e)+" is not iterable")}return b.prototype=E,s(A,"constructor",{value:E,configurable:!0}),s(E,"constructor",{value:b,configurable:!0}),b.displayName=f(E,h,"GeneratorFunction"),n.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},n.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,E):(e.__proto__=E,f(e,h,"GeneratorFunction")),e.prototype=Object.create(A),e},n.awrap=function(e){return{__await:e}},R(P.prototype),f(P.prototype,l,(function(){return this})),n.AsyncIterator=P,n.async=function(e,t,r,i,o){void 0===o&&(o=Promise);var a=new P(d(e,t,r,i),o);return n.isGeneratorFunction(t)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},R(A),f(A,h,"Generator"),f(A,c,(function(){return this})),f(A,"toString",(function(){return"[object Generator]"})),n.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},n.values=C,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(O),!e)for(var n in this)"t"===n.charAt(0)&&a.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function r(r,i){return s.type="throw",s.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],s=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var u=a.call(o,"catchLoc"),c=a.call(o,"finallyLoc");if(u&&c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(u){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=e,o.arg=t,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;O(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:C(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),y}},n}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports},687:function(e){function t(n,r){return e.exports=t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n,r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},925:function(e,t,n){var r=n(180),i=n(249),o=n(508),a=n(20);e.exports=function(e,t){return r(e)||i(e,t)||o(e,t)||a()},e.exports.__esModule=!0,e.exports.default=e.exports},155:function(e,t,n){var r=n(242);e.exports=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=r(e)););return e},e.exports.__esModule=!0,e.exports.default=e.exports},44:function(e,t,n){var r=n(786),i=n(682),o=n(508),a=n(114);e.exports=function(e){return r(e)||i(e)||o(e)||a()},e.exports.__esModule=!0,e.exports.default=e.exports},224:function(e,t,n){var r=n(944).default;e.exports=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},281:function(e,t,n){var r=n(944).default,i=n(224);e.exports=function(e){var t=i(e,"string");return"symbol"==r(t)?t:String(t)},e.exports.__esModule=!0,e.exports.default=e.exports},944:function(e){function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},508:function(e,t,n){var r=n(317);e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports},697:function(e,t,n){var r=n(319);e.exports=function(e){return function(){return new r(e.apply(this,arguments))}},e.exports.__esModule=!0,e.exports.default=e.exports},907:function(e,t,n){var r=n(242),i=n(687),o=n(185),a=n(855);function s(t){var n="function"==typeof Map?new Map:void 0;return e.exports=s=function(e){if(null===e||!o(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(e))return n.get(e);n.set(e,t)}function t(){return a(e,arguments,r(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),i(t,e)},e.exports.__esModule=!0,e.exports.default=e.exports,s(t)}e.exports=s,e.exports.__esModule=!0,e.exports.default=e.exports}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e};var r={};return function(){"use strict";n.r(r),n.d(r,{MessageType:function(){return re},OpenSDKError:function(){return O},SDKBridge:function(){return ue},adjustSessionData:function(){return Ja},awaitWrap:function(){return Ss},buildPageUrl:function(){return t},debug:function(){return gs},debugError:function(){return vs},getDevReqConfig:function(){return i},getLocaleFromRenderData:function(){return s},getMetaData:function(){return Va},isElements2:function(){return Xa},oneAccountQuery:function(){return As},openModal:function(){return ns},parseHostSign:function(){return zr},parseTrackerId:function(){return jr},request:function(){return Ya},sdkQuery:function(){return Ps},themeColorMap:function(){return ws}});var e={};function t(e,t){return function(e){var t=e?"elements2":"elements",n=location.origin,r=localStorage.getItem("antom-web-checkout-v2_app_document_prefix");return r&&(n=r),"".concat(n,"/").concat(t,"/").concat(localStorage.getItem("ANTOM_LOCAL")?"src/pages":"pages")}(t)+(e.startsWith("/")?e:"/".concat(e))}n.r(e),n.d(e,{hasBrowserEnv:function(){return _o},hasStandardBrowserEnv:function(){return Eo},hasStandardBrowserWebWorkerEnv:function(){return wo},navigator:function(){return bo},origin:function(){return So}});function i(){var e=window.localStorage.getItem("antom-web-checkout-v2_app_env")||"dev";"pre"!==e&&"local"!==e||"true"!==window.localStorage.getItem("antom-web-checkout-v2_sandbox_enabled")||(e="sandbox");var t=window.localStorage.getItem("antom-web-checkout-v2_base_url")||void 0,n=window.localStorage.getItem("antom-web-checkout-v2_group_id")||void 0,r=JSON.parse(JSON.stringify({baseURL:t,groupId:n,env:e}));return console.log("[getDevReqConfig] dev request config:",r),r}var o=n(746),a=n.n(o);function s(e){var t,n=(null==e?void 0:e.supportedLanguages)||[],r=a()(n);try{for(r.s();!(t=r.n()).done;){var i=t.value;if(i.preferred&&i.locale)return i.locale}}catch(e){r.e(e)}finally{r.f()}}var u=n(486),c=n.n(u),l=n(702),h=n.n(l),f=n(374),d=n.n(f),p=n(821),g=n.n(p),v=n(400),m=n.n(v),y=n(143),_=n.n(y),b=n(118),E=n.n(b),w=n(662),S=n.n(w),T=n(404),A=n.n(T),R=n(925),P=n(944),L=n.n(P),k=n(907),N={i18nPrefix:"OPENSDK"},O=function(e){p(n,e);var t=v(n);function n(e,r,i,o){var a,s,c,l=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];u(this,n);var h,d=o,p=void 0;return e&&"object"===P(e)?(h=e.message,p=e.params):h=e,c=t.call(this,!N.i18n||l&&"SERVER_API"===i?h:N.i18n.get({id:"".concat(N.i18nPrefix,".").concat(r),dm:(null===(a=(s=N).getDefaultMessage)||void 0===a?void 0:a.call(s))||h},p)),y(f(c),"code",void 0),y(f(c),"name","OpenSDKError"),y(f(c),"_openSDKErrorFlag","__OpenSDKErrorFlag__"),y(f(c),"source","SDK_INTERNAL"),y(f(c),"traceId",void 0),y(f(c),"reason",void 0),c.reason=h,c.code=r,c.source=i,c.traceId=d,c}return l(n,[{key:"toJSON",value:function(){var e={message:this.message,code:this.code,source:this.source,traceId:this.traceId,reason:this.reason,stack:this.stack};return JSON.parse(JSON.stringify(e))}}],[{key:"isError",value:function(e){return e instanceof n||e instanceof Error&&"__OpenSDKErrorFlag__"===e._openSDKErrorFlag}},{key:"unificationError",value:function(e){var t,r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"APP_RUNTIME";if(n.isError(e))return e;var o=new I(e instanceof Error?e.message:(null===(t=(r=N).getDefaultMessage)||void 0===t?void 0:t.call(r))||"An unknown error occurred.","UNKNOWN_ERROR",i);return o}},{key:"initConfig",value:function(e){N=b(b({},N),e)}}]),n}(k(Error)),I=function(e){p(n,e);var t=v(n);function n(){var e;u(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return e=t.call.apply(t,[this].concat(i)),y(f(e),"name","SDKBridgeError"),e}return l(n)}(O),C=n(44),M=function(e){return C(new Set(e))},D=function(e,t){return e.filter((function(e){return!t.includes(e)}))},x=function(e,t){return e.filter((function(e){return t.includes(e)}))},B=function(e){return"bigint"==typeof e||!Number.isNaN(Number(e))&&Math.floor(Number(e))===e},U=function(e){return"bigint"==typeof e||e>=0&&Number.isSafeInteger(e)};function H(e,t){if(0===t.length)return e;for(var n,r=C(e),i=r.length-1,o=0,a=0;i>0;i--,o++){a+=n=t[o%=t.length].codePointAt(0);var s=(n+o+a)%i,u=r[i],c=r[s];r[s]=u,r[i]=c}return r}var j=function(e,t){return e.reduce((function(n,r){var i=t.indexOf(r);if(-1===i)throw new Error("The provided ID (".concat(e.join(""),") is invalid, as it contains characters that do not exist in the alphabet (").concat(t.join(""),")"));if("bigint"==typeof n)return n*BigInt(t.length)+BigInt(i);var o=n*t.length+i;return Number.isSafeInteger(o)?o:(W("Unable to decode the provided string, due to lack of support for BigInt numbers in the current environment"),BigInt(n)*BigInt(t.length)+BigInt(i))}),0)},z=/^\+?\d+$/,G=function(e){if(!z.test(e))return Number.NaN;var t=Number.parseInt(e,10);return Number.isSafeInteger(t)?t:(W("Unable to encode the provided BigInt string without loss of information due to lack of support for BigInt type in the current environment"),BigInt(e))},K=function(e){return new RegExp(e.map((function(e){return F(e)})).sort((function(e,t){return t.length-e.length})).join("|"))},Y=function(e){return new RegExp("^[".concat(e.map((function(e){return F(e)})).sort((function(e,t){return t.length-e.length})).join(""),"]+$"))},F=function(e){return e.replace(/[\s#$()*+,.?[\\\]^{|}-]/g,"\\$&")},W=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"BigInt is not available in this environment";if("function"!=typeof BigInt)throw new TypeError(e)},V=3.5,q=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"cfhistuCFHISTU";if(u(this,e),this.minLength=n,"number"!=typeof n)throw new TypeError("Hashids: Provided 'minLength' has to be a number (is ".concat(P(n),")"));if("string"!=typeof t)throw new TypeError("Hashids: Provided 'salt' has to be a string (is ".concat(P(t),")"));if("string"!=typeof r)throw new TypeError("Hashids: Provided alphabet has to be a string (is ".concat(P(r),")"));var o=Array.from(t),a=Array.from(r),s=Array.from(i);this.salt=o;var c=M(a);if(c.length<16)throw new Error("Hashids: alphabet must contain at least ".concat(16," unique characters, provided: ").concat(c.join("")));this.alphabet=D(c,s);var l,h,f,d=x(s,c);(this.seps=H(d,o),0===this.seps.length||this.alphabet.length/this.seps.length>V)&&((l=Math.ceil(this.alphabet.length/V))>this.seps.length&&(h=l-this.seps.length,(f=this.seps).push.apply(f,C(this.alphabet.slice(0,h))),this.alphabet=this.alphabet.slice(h)));this.alphabet=H(this.alphabet,o);var p=Math.ceil(this.alphabet.length/12);this.alphabet.length<3?(this.guards=this.seps.slice(0,p),this.seps=this.seps.slice(p)):(this.guards=this.alphabet.slice(0,p),this.alphabet=this.alphabet.slice(p)),this.guardsRegExp=K(this.guards),this.sepsRegExp=K(this.seps),this.allowedCharsRegExp=Y([].concat(C(this.alphabet),C(this.guards),C(this.seps)))}return l(e,[{key:"encode",value:function(e){for(var t="",n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];var o=Array.isArray(e)?e:[].concat(C(null!=e?[e]:[]),r);return 0===o.length?t:(o.every(B)||(o=o.map((function(e){return"bigint"==typeof e||"number"==typeof e?e:G(String(e))}))),o.every(U)?this._encode(o).join(""):t)}},{key:"decode",value:function(e){return e&&"string"==typeof e&&0!==e.length?this._decode(e):[]}},{key:"encodeHex",value:function(e){var t=e;switch(P(t)){case"bigint":t=t.toString(16);break;case"string":if(!/^[\dA-Fa-f]+$/.test(t))return"";break;default:throw new Error("Hashids: The provided value is neither a string, nor a BigInt (got: ".concat(P(t),")"))}var n,r,i,o=(n=t,r=12,i=function(e){return Number.parseInt("1".concat(e),16)},Array.from({length:Math.ceil(n.length/r)},(function(e,t){return i(n.slice(t*r,(t+1)*r))})));return this.encode(o)}},{key:"decodeHex",value:function(e){return this.decode(e).map((function(e){return e.toString(16).slice(1)})).join("")}},{key:"isValidId",value:function(e){return this.allowedCharsRegExp.test(e)}},{key:"_encode",value:function(e){var t=this,n=this.alphabet,r=e.reduce((function(e,t,n){return e+("bigint"==typeof t?Number(t%BigInt(n+100)):t%(n+100))}),0),i=[n[r%n.length]],o=C(i),a=this.seps,s=this.guards;if(e.forEach((function(r,s){var u,c=o.concat(t.salt,n),l=function(e,t){var n=[],r=e;if("bigint"==typeof r){var i=BigInt(t.length);do{n.unshift(t[Number(r%i)]),r/=i}while(r>BigInt(0))}else do{n.unshift(t[r%t.length]),r=Math.floor(r/t.length)}while(r>0);return n}(r,n=H(n,c));if((u=i).push.apply(u,C(l)),s+1<e.length){var h=l[0].codePointAt(0)+s,f="bigint"==typeof r?Number(r%BigInt(h)):r%h;i.push(a[f%a.length])}})),i.length<this.minLength){var u=(r+i[0].codePointAt(0))%s.length;if(i.unshift(s[u]),i.length<this.minLength){var c=(r+i[2].codePointAt(0))%s.length;i.push(s[c])}}for(var l=Math.floor(n.length/2);i.length<this.minLength;){var h,f;n=H(n,n),(h=i).unshift.apply(h,C(n.slice(l))),(f=i).push.apply(f,C(n.slice(0,l)));var d=i.length-this.minLength;if(d>0){var p=d/2;i=i.slice(p,p+this.minLength)}}return i}},{key:"_decode",value:function(e){if(!this.isValidId(e))throw new Error("The provided ID (".concat(e,") is invalid, as it contains characters that do not exist in the alphabet (").concat(this.guards.join("")).concat(this.seps.join("")).concat(this.alphabet.join(""),")"));var t=e.split(this.guardsRegExp),n=t[3===t.length||2===t.length?1:0];if(0===n.length)return[];var r,i=n[Symbol.iterator]().next().value,a=n.slice(i.length).split(this.sepsRegExp),s=this.alphabet,u=[],c=o(a);try{for(c.s();!(r=c.n()).done;){var l=r.value,h=H(s,[i].concat(C(this.salt),C(s)).slice(0,s.length));u.push(j(Array.from(l),h)),s=h}}catch(e){c.e(e)}finally{c.f()}return this._encode(u).join("")!==e?[]:u}}]),e}(),J=new q("intl-open-sdk",6);function X(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(){var r,i=new Promise((function(e,i){r=setTimeout((function(){n?i(n):e(void 0)}),t)}));return Promise.race([i,e.apply(void 0,arguments)]).finally((function(){return clearTimeout(r)}))}}var Z=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e+J.encode("".concat(Date.now()).concat(Math.ceil(100*Math.random())))};function Q(e){if("onpagehide"in self){var t=function(t){t.persisted||e("pagehide")};return self.addEventListener("pagehide",t),function(){return self.removeEventListener("pagehide",t)}}if("undefined"!=typeof document&&void 0!==document.visibilityState){var n=!1,r=function(){"hidden"!==document.visibilityState||n||(n=!0,e("visibilitychange"))};return document.addEventListener("visibilitychange",r),function(){return document.removeEventListener("visibilitychange",r)}}var i=self,o=function(){e("beforeunload")};return i.addEventListener("beforeunload",o),function(){return i.removeEventListener("beforeunload",o)}}var $,ee=function(){function e(t,n){var r=this;u(this,e),y(this,"targetPort",void 0),y(this,"handlers",new Map),y(this,"debugCallback",void 0),y(this,"name",void 0),y(this,"initialized",!1),y(this,"handleMessage",(function(e){var t=e.data,n=t.type,i=t.payload,o=r.handlers.get(n);o&&(r.debugCallback&&r.debugCallback(b(b({},e.data),{},{type:"MODAL_PORT@"+e.data.type}),"IN"),o.forEach((function(e){e(i)})))})),this.targetPort=n,n.onmessage=this.handleMessage,this.name=t}return l(e,[{key:"setDebugCallback",value:function(e){this.debugCallback=e}},{key:"onData",value:function(e){return this.initialized||this.send("ready"),this.on("data",e)}},{key:"sendData",value:function(e){var t=this;this.initialized?this.send("data",e):this.once("ready",(function(){t.initialized=!0,t.send("data",e)}))}},{key:"onClose",value:function(e){var t=this;return new Promise((function(n,r){t.on("close",function(){var i=T(w().mark((function i(o){return w().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(o.name!==t.name){i.next=10;break}return i.prev=1,i.next=4,e(o.manual);case 4:n(),i.next=10;break;case 7:i.prev=7,i.t0=i.catch(1),r(i.t0);case 10:case"end":return i.stop()}}),i,null,[[1,7]])})));return function(e){return i.apply(this,arguments)}}())}))}},{key:"close",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.send("close",{name:this.name,manual:e}),new Promise((function(){}))}},{key:"on",value:function(e,t){var n=this;return this.handlers.has(e)||this.handlers.set(e,new Set),this.handlers.get(e).add(t),function(){n.handlers.get(e).delete(t)}}},{key:"once",value:function(e,t){var n=this,r=function r(i){try{t(i)}finally{n.off(e,r)}};return this.on(e,r),function(){n.off(e,r)}}},{key:"off",value:function(e,t){var n=this.handlers.get(e);n&&n.delete(t)}},{key:"send",value:function(e,t){var n={id:Z("modal_port_"),type:e,payload:t};this.debugCallback&&this.debugCallback(b(b({},n),{},{type:"MODAL_PORT@"+n.type}),"OUT"),this.targetPort.postMessage(n)}}]),e}(),te=function(){function e(t){u(this,e),y(this,"targetPorts",[]),y(this,"name",void 0),this.name=t}var t;return l(e,[{key:"addPort",value:function(e){var t;(t=this.targetPorts).push.apply(t,C(e))}},{key:"removePort",value:function(e){this.targetPorts=this.targetPorts.filter((function(t){return e!==t}))}},{key:"getValues",value:(t=T(w().mark((function e(t){var n,r,i=this;return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=(null==t?void 0:t.timeout)||1e4,r=X((function(){return Promise.all(i.targetPorts.map((function(e){return new Promise((function(t,n){e.postMessage({id:Math.random()+"",type:"".concat(i.name,":START_COLLECT_VALUE")}),e.onmessage=function(e){var r=e.data;if(r&&r.type){var i=r.type.split(":"),o=R(i,2),a=o[0];"SEND_ELEMENT_VALUE"===o[1]&&t(y({},a,r.payload))}else n(new Error("collect error"))}}))}))).then((function(e){return e.reduce((function(e,t){return b(b({},e),t)}),{})}))}),n),e.abrupt("return",r());case 3:case"end":return e.stop()}}),e)}))),function(e){return t.apply(this,arguments)})}]),e}(),ne=function(){function e(t,n){u(this,e),y(this,"targetPort",void 0),y(this,"name",void 0),this.targetPort=n,this.name=t}return l(e,[{key:"onSendRequest",value:function(e){this.targetPort.onmessage=function(){var t=T(w().mark((function t(n){var r,i,o;return w().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if((r=n.data)&&r.type){t.next=3;break}return t.abrupt("return");case 3:i=r.type.split(":"),o=R(i,2),o[0],"START_COLLECT_VALUE"===o[1]&&e();case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()}},{key:"send",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={id:Math.random()+"",payload:e,type:"".concat(this.name,":SEND_ELEMENT_VALUE")};this.targetPort.postMessage(t)}}]),e}(),re={HANDSHAKE:"OPENSDK@HANDSHAKE",READY_HANDSHAKE:"OPENSDK@READY_HANDSHAKE",UPDATE_CONFIG:"OPENSDK@UPDATE_CONFIG",UPDATE_CONFIG_REPLY:"OPENSDK@UPDATE_CONFIG_REPLY",SUBMIT:"OPENSDK@SUBMIT",SUBMIT_REPLY:"OPENSDK@SUBMIT_REPLY",REDIRECT:"OPENSDK@REDIRECT",OPEN_MODAL:"OPENSDK@OPEN_MODAL",OPEN_MODAL_ERROR:"OPENSDK@OPEN_MODAL_ERROR",CLOSE_MODAL:"OPENSDK@CLOSE_MODAL",ERROR:"OPENSDK@ERROR",HANDSHAKE_ACK:"OPENSDK@HANDSHAKE_ACK",TRANSFER_RECEIVE_PORT:"OPENSDK@TRANSFER_RECEIVE_PORT",MESSAGE:"OPENSDK@MESSAGE",TRANSFER_SEND_PORT:"OPENSDK@TRANSFER_SEND_PORT",TRANSFER_APP_PORT:"OPENSDK@TRANSFER_APP_PORT",TRANSFER_MODAL_PORT:"OPENSDK@TRANSFER_MODAL_PORT",TRANSFER_MODAL_APPEARANCE:"OPENSDK@TRANSFER_MODAL_APPEARANCE",TRANSFER_MODAL_INITIALDATA:"OPENSDK@TRANSFER_MODAL_INITIALDATA",HEIGHT_UPDATE:"OPENSDK@HEIGHT_UPDATE",DESTORY_ELEMENT:"OPENSDK@DESTORY_ELEMENT"},ie=n(98),oe=[re.TRANSFER_RECEIVE_PORT,re.TRANSFER_SEND_PORT,re.TRANSFER_MODAL_PORT,re.TRANSFER_MODAL_APPEARANCE,re.TRANSFER_MODAL_INITIALDATA,re.OPEN_MODAL_ERROR,re.TRANSFER_APP_PORT,re.CLOSE_MODAL,re.OPEN_MODAL,re.REDIRECT,re.MESSAGE,re.DESTORY_ELEMENT],ae="@@global",se="@@native",ue=function(){function e(t,n,r){var i,o,a=this;(u(this,e),y(this,"targetWindow",void 0),y(this,"currentWindow",void 0),y(this,"targetOrigin","*"),y(this,"scope",void 0),y(this,"handlers",new Map),y(this,"mode",void 0),y(this,"resizeObserver",void 0),y(this,"debugCallback",void 0),y(this,"receivePort",void 0),y(this,"openModalOff",void 0),y(this,"handleMessage",(function(e){var t=e.data;if(t&&t.type){var n=t.type.split(":"),r=R(n,2),i=r[0],o=r[1];if(a.scope!==se){if(!["WEBAPP","HOST"].includes(o))return;if("*"!==a.targetOrigin&&e.origin!==a.targetOrigin)return;if(a.mode===o)return}var s=a.handlers.get(t.type);a.scope!==se&&(s||t.type.endsWith(re.ERROR)||t.type.endsWith(re.MESSAGE))&&a.debugCallback&&a.scope===i&&a.debugCallback(t,"IN"),s&&new Set(s).forEach((function(n){return n(t.payload,e.ports)}))}})),this.mode=t,this.scope=n,this.currentWindow=r||window,"WEBAPP"===this.mode)&&(this.targetWindow=null===(o=this.currentWindow)||void 0===o?void 0:o.parent);null===(i=this.currentWindow)||void 0===i||i.addEventListener("message",this.handleMessage)}return l(e,[{key:"setTarget",value:function(e){this.targetWindow=e}},{key:"setOrigin",value:function(e){this.targetOrigin=e}},{key:"setDebugCallback",value:function(e){this.debugCallback=e}},{key:"destroy",value:function(){var e,t;null===(e=this.currentWindow)||void 0===e||e.removeEventListener("message",this.handleMessage),this.handlers.clear(),null===(t=this.resizeObserver)||void 0===t||t.disconnect()}},{key:"_addPort",value:function(e){var t;this._transferPort(re.TRANSFER_RECEIVE_PORT,null===(t=this.receivePort)||void 0===t?void 0:t.name,e)}},{key:"_transferReceivePort",value:function(e){this._transferPort(re.TRANSFER_RECEIVE_PORT,e.name,e.targetPorts)}},{key:"_transferSendPort",value:function(e){this._transferPort(re.TRANSFER_SEND_PORT,e.name,[e.targetPort])}},{key:"send",value:function(e,t,n){var r;if(!this.targetWindow)return console.warn("[Bridge] Target window not set. Cannot send message:",e),void(null===(r=this.debugCallback)||void 0===r||r.call(this,{id:Z("bridge"),type:"SYSTEM_".concat(re.ERROR),payload:{message:"Target window not set"}},"OUT"));var i={id:Z("bridge"),type:this.getOriginSendType(e),payload:t};this.debugCallback&&this.debugCallback(i,"OUT"),this.targetWindow.postMessage(i,this.targetOrigin,n)}},{key:"sendError",value:function(e){"WEBAPP"===this.mode&&this.send(re.ERROR,e.toJSON())}},{key:"sendSubmit",value:function(e){"WEBAPP"===this.mode&&this.send(re.SUBMIT_REPLY,e)}},{key:"sendMessage",value:function(e,t){"WEBAPP"===this.mode&&this.send(re.MESSAGE,{type:e,message:t})}},{key:"sendRedirect",value:function(e){if("WEBAPP"===this.mode){if(!e.url)throw new I("url is required","INVALID_REDIRECT_URL","SDK_INTERNAL");try{new URL(e.url)}catch(e){throw new I("Invalid URL","INVALID_REDIRECT_URL","SDK_INTERNAL")}this.send(re.REDIRECT,e)}}},{key:"redirect",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"redirect";if("WEBAPP"===this.mode){if(!e)throw new I("url is required","INVALID_REDIRECT_URL","SDK_INTERNAL");try{new URL(e)}catch(e){throw new I("Invalid URL","INVALID_REDIRECT_URL","SDK_INTERNAL")}this.send(re.REDIRECT,{url:e,mode:t})}}},{key:"sendDestroyElement",value:function(e){e||(e=this.scope),"WEBAPP"===this.mode&&this.send(re.DESTORY_ELEMENT,{elementKey:e})}},{key:"openModal",value:function(e,t){var n,r=this,i=Z("modal_");return this.send(re.OPEN_MODAL,b(b({},e),{},{scope:this.scope,initialData:t,modalId:i})),null===(n=this.openModalOff)||void 0===n||n.call(this),new Promise((function(e,t){var n=r.once(re.OPEN_MODAL_ERROR,(function(e){t(new O(e.message,e.code,e.source))})),o=r.on(re.TRANSFER_APP_PORT,(function(t,n){if(null==n||!n[0])throw new I("No ports transferred for modal communication","NO_PORTS_ERROR","SDK_INTERNAL");t===i&&(o(),e(new ee(t,n[0])))}));r.openModalOff=function(){n(),o(),r.openModalOff=void 0}}))}},{key:"closeModal",value:function(){var e;null===(e=this.openModalOff)||void 0===e||e.call(this),this.send(re.CLOSE_MODAL)}},{key:"on",value:function(e,t){var n=this,r=this.getOriginListenType(e);return this.handlers.has(r)||this.handlers.set(r,new Set),this.handlers.get(r).add(t),function(){n.handlers.get(r).delete(t)}}},{key:"once",value:function(e,t){var n=this,r=function r(i,o){try{t(i,o)}finally{n.off(e,r)}};return this.on(e,r),function(){n.off(e,r)}}},{key:"off",value:function(e,t){var n=this.getOriginListenType(e),r=this.handlers.get(n);r&&r.delete(t)}},{key:"handsShake",value:function(e,t){var n=this;if("WEBAPP"!==this.mode)throw new I("handsShake can only be called in WEBAPP mode","UNKNOWN_ERROR","SDK_INTERNAL");var r=this.on(re.HANDSHAKE,function(){var r=T(w().mark((function r(i){var o,a;return w().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:"GROUP"===(null==i?void 0:i.elementMode)?i.isMainElement?n.getReceivePort().then((function(e){t(i,e)})):n.getSendPort().then((function(e){t(i,e)})).catch((function(){t(i)})):t(i),o=0,a=ie((function(e){(Math.abs(e-o)>10||Math.abs((e-o)/o)>.01)&&(o=e,n.send(re.HEIGHT_UPDATE,e))}),400),n.resizeObserver=new ResizeObserver((function(e){var t,n=null==e||null===(t=e[0])||void 0===t?void 0:t.contentRect;n&&a(n.height)})),n.resizeObserver.observe(document.body),n.send(re.HANDSHAKE_ACK,{version:e});case 6:case"end":return r.stop()}}),r)})));return function(e){return r.apply(this,arguments)}}());return this.send(re.READY_HANDSHAKE),function(){var e;r(),null===(e=n.resizeObserver)||void 0===e||e.disconnect()}}},{key:"getOriginListenType",value:function(e){if("error"===e&&(e=re.ERROR),this.scope===se)return e;var t=oe.includes(e)?ae:this.scope;return"".concat(t,":").concat("WEBAPP"===this.mode?"HOST":"WEBAPP",":").concat(e)}},{key:"getOriginSendType",value:function(e){if("error"===e&&(e=re.ERROR),this.scope===se)return e;var t=oe.includes(e)?ae:this.scope;return"".concat(t,":").concat(this.mode,":").concat(e)}},{key:"_transferPort",value:function(e,t,n){this.targetWindow?"HOST"===this.mode&&this.targetWindow.postMessage({id:Z(),type:this.getOriginSendType(e),payload:t},this.targetOrigin,n):console.warn("[Bridge] Target window not set. Cannot send port")}},{key:"getReceivePort",value:function(){var e=this;return new Promise((function(t){e.on(re.TRANSFER_RECEIVE_PORT,(function(n,r){e.receivePort||(e.receivePort=new te(n)),r&&e.receivePort.addPort(r),t(e.receivePort)}))}))}},{key:"getSendPort",value:function(){var e=this;return new Promise((function(t,n){e.on(re.TRANSFER_SEND_PORT,(function(e,r){if(r){var i=new ne(e,r[0]);t(i)}else n(new Error("no ports transfer"))}))}))}}],[{key:"getGlobalBridge",value:function(t){return new e(t,ae)}},{key:"getNativeBridge",value:function(t){return new e("WEBAPP",se,t)}},{key:"getBridge",value:function(t,n){if(n===se||n===ae)throw new Error("Scope cannot be ".concat(se," or ").concat(ae));return new e(t,n)}}]),e}(),ce=n(306),le=function(){function e(t){u(this,e),y(this,"options",void 0),y(this,"tracker",void 0),y(this,"trackId",void 0),this.initialOptions(t)}var t;return l(e,[{key:"initialOptions",value:function(e){var t,n,r;return this.options=b(b(b({env:"DEV"},this.options),e),{},{appId:(null==e?void 0:e.appId)||(null===(t=this.options)||void 0===t?void 0:t.appId)||"180020050100012557",performance:!0===(null==e?void 0:e.performance)||!0===(null===(n=this.options)||void 0===n?void 0:n.performance),error:!0===(null==e?void 0:e.error)||!0===(null===(r=this.options)||void 0===r?void 0:r.error)}),"trackId"in this.options&&(this.trackId=this.options.trackId),this.options}},{key:"loadTacker",value:function(e){var t=this,n=(0,ce.loadScript)("https://cdn.marmot-cloud.com/tnpm-package/@antintl-opensdk-debugger/1.0.1/dist/tracker.umd.js","intlSdkTracker");return n?n.then((function(n){var r;return null===(r=n.variable)||void 0===r?void 0:r.getTrackerInstance(t.initialOptions(e))})):Promise.resolve(void 0)}},{key:"initTracker",value:(t=T(w().mark((function e(t){var n;return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.tracker||t){e.next=2;break}return e.abrupt("return",this.tracker);case 2:return e.next=4,this.loadTacker(t);case 4:return(n=e.sent)&&(this.tracker=n),e.abrupt("return",n);case 7:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"safeCall",value:function(e){return this.initTracker().then(e)}},{key:"setTrackId",value:function(e){this.trackId=e,this.set({trackId:e})}},{key:"set",value:function(e){this.safeCall((function(t){return null==t?void 0:t.set(e)}))}},{key:"pv",value:function(){this.safeCall((function(e){return null==e?void 0:e.pv()}))}},{key:"log",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.trackId&&(t[0].d18=this.trackId),this.safeCall((function(e){return null==e?void 0:e.log.apply(e,t)}))}},{key:"click",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.safeCall((function(e){return null==e?void 0:e.click.apply(e,t)}))}},{key:"expo",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.safeCall((function(e){return null==e?void 0:e.expo.apply(e,t)}))}},{key:"onSendData",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.safeCall((function(e){return null==e?void 0:e.onSendData.apply(e,t)}))}},{key:"offSendData",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.safeCall((function(e){return null==e?void 0:e.offSendData.apply(e,t)}))}},{key:"pageMonitor",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.safeCall((function(e){return null==e?void 0:e.pageMonitor.apply(e,t)}))}},{key:"reportCustomizedPerformance",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.safeCall((function(e){return null==e?void 0:e.reportCustomizedPerformance.apply(e,t)}))}}]),e}();new le;!function(e){e["ar-SA"]="ar-SA",e.kn="kn",e.as="as",e.bho="bho",e["pl-PL"]="pl-PL",e["ko-KR"]="ko-KR",e["da-DK"]="da-DK",e["de-DE"]="de-DE",e["ru-RU"]="ru-RU",e["fr-FR"]="fr-FR",e.gu="gu",e["nl-BE"]="nl-BE",e["nl-NL"]="nl-NL",e["cs-CZ"]="cs-CZ",e.ro="ro",e["lo-LA"]="lo-LA",e["my-MM"]="my-MM",e["bn-BD"]="bn-BD",e["bn-IN"]="bn-IN",e.mr="mr",e["ms-MY"]="ms-MY",e.ml="ml",e.mni="mni",e["ne-NP"]="ne-NP",e.or="or",e["pt-BR"]="pt-BR",e["pt-PT"]="pt-PT",e.pa="pa",e["sv-SE"]="sv-SE",e["ja-JP"]="ja-JP",e.sr="sr",e["si-LK"]="si-LK",e["sk-SK"]="sk-SK",e["tr-TR"]="tr-TR",e["tl-PH"]="tl-PH",e.te="te",e.ta="ta",e["th-TH"]="th-TH",e["ur-PK"]="ur-PK",e["ur-IN"]="ur-IN",e["uk-UA"]="uk-UA",e["iw-IL"]="iw-IL",e["es-ES"]="es-ES",e["es-MX"]="es-MX",e.hu="hu",e["it-IT"]="it-IT",e["in-ID"]="in-ID",e["hi-IN"]="hi-IN",e["vi-VN"]="vi-VN",e["en-PK"]="en-PK",e["en-PL"]="en-PL",e["en-FR"]="en-FR",e["en-PH"]="en-PH",e["en-CZ"]="en-CZ",e["en-CA"]="en-CA",e["en-MM"]="en-MM",e["en-US"]="en-US",e["en-BD"]="en-BD",e["en-MY"]="en-MY",e["en-NP"]="en-NP",e["en-LK"]="en-LK",e["en-TH"]="en-TH",e["en-ES"]="en-ES",e["en-SG"]="en-SG",e["en-HU"]="en-HU",e["en-ID"]="en-ID",e["en-GB"]="en-GB",e["en-VN"]="en-VN",e["en-HK"]="en-HK",e["en-KR"]="en-KR",e["zh-TW"]="zh-TW",e["zh-HK"]="zh-HK",e["zh-SG"]="zh-SG",e["zh-CN"]="zh-CN",e["ar-IQ"]="ar-IQ",e["ckb-IQ"]="ckb-IQ",e.ku="ku",e["kk-KZ"]="kk-KZ",e.af="af",e.am="am",e.az="az",e.be="be",e.bg="bg",e.bs="bs",e.ca="ca",e.cy="cy",e.el="el",e.eo="eo",e.et="et",e.eu="eu",e.fa="fa",e.fi="fi",e.gd="gd",e.gl="gl",e.ha="ha",e.haw="haw",e.hr="hr",e.ig="ig",e.is="is",e.ka="ka",e.km="km",e.ky="ky",e.lb="lb",e.ln="ln",e.lt="lt",e.lv="lv",e.mg="mg",e.mk="mk",e.mn="mn",e.mt="mt",e.om="om",e.ps="ps",e.qu="qu",e.rw="rw",e.sl="sl",e.so="so",e.sq="sq",e.sw="sw",e.tg="tg",e.ti="ti",e.ug="ug",e.uz="uz",e.yo="yo",e.zu="zu"}($||($={}));var he={};he[$["ar-SA"]]="阿拉伯语 (沙特阿拉伯)",he[$.kn]="埃纳德语",he[$.as]="阿萨姆语",he[$.bho]="博杰普尔语",he[$["pl-PL"]]="波兰语 (波兰)",he[$["ko-KR"]]="朝鲜语 (韩国)",he[$["da-DK"]]="丹麦语 (丹麦)",he[$["de-DE"]]="德语 (德国)",he[$["ru-RU"]]="俄语 (俄罗斯)",he[$["fr-FR"]]="法语 (法国)",he[$.gu]="古加拉提语",he[$["nl-BE"]]="荷兰语 (比利时)",he[$["nl-NL"]]="荷兰语 (荷兰)",he[$["cs-CZ"]]="捷克语 (捷克共和国)",he[$.ro]="罗马尼亚语",he[$["lo-LA"]]="老挝语 (老挝)",he[$["my-MM"]]="缅甸语 (缅甸)",he[$["bn-BD"]]="孟加拉语 (孟加拉)",he[$["bn-IN"]]="孟加拉语 (印度)",he[$.mr]="马拉地语",he[$["ms-MY"]]="马来语 (马来西亚)",he[$.ml]="马来亚拉姆语",he[$.mni]="曼尼普里语",he[$["ne-NP"]]="尼泊尔语 (尼泊尔)",he[$.or]="欧里亚语",he[$["pt-BR"]]="葡萄牙语 (巴西)",he[$["pt-PT"]]="葡萄牙语 (葡萄牙)",he[$.pa]="旁遮普语",he[$["sv-SE"]]="瑞典语 (瑞典)",he[$["ja-JP"]]="日语 (日本)",he[$.sr]="塞尔维亚语",he[$["si-LK"]]="僧伽罗语 (斯里兰卡)",he[$["sk-SK"]]="斯洛伐克语 (斯洛伐克)",he[$["tr-TR"]]="土耳其语 (土耳其)",he[$["tl-PH"]]="塔加路族语 (菲律宾)",he[$.te]="泰卢固语",he[$.ta]="泰米尔语",he[$["th-TH"]]="泰语 (泰国)",he[$["ur-PK"]]="乌尔都语 (巴基斯坦)",he[$["ur-IN"]]="乌尔都语 (印度)",he[$["uk-UA"]]="乌克兰语 (乌克兰)",he[$["iw-IL"]]="希伯来语 (以色列)",he[$["es-ES"]]="西班牙语 (西班牙)",he[$["es-MX"]]="西班牙语 (墨西哥)",he[$.hu]="匈牙利语",he[$["it-IT"]]="意大利语 (意大利)",he[$["in-ID"]]="印度尼西亚语 (印度尼西亚)",he[$["hi-IN"]]="印地语 (印度)",he[$["vi-VN"]]="越南语 (越南)",he[$["en-PK"]]="英语 (巴基斯坦)",he[$["en-PL"]]="英语 (波兰)",he[$["en-FR"]]="英语 (法国)",he[$["en-PH"]]="英语 (菲律宾)",he[$["en-CZ"]]="英语 (捷克共和国)",he[$["en-CA"]]="英语 (加拿大)",he[$["en-MM"]]="英语 (缅甸)",he[$["en-US"]]="英语 (美国)",he[$["en-BD"]]="英语 (孟加拉)",he[$["en-MY"]]="英语 (马来西亚)",he[$["en-NP"]]="英语 (尼泊尔)",he[$["en-LK"]]="英语 (斯里兰卡)",he[$["en-TH"]]="英语 (泰国)",he[$["en-ES"]]="英语 (西班牙)",he[$["en-SG"]]="英语 (新加坡)",he[$["en-HU"]]="英语 (匈牙利)",he[$["en-ID"]]="英语 (印度尼西亚)",he[$["en-GB"]]="英语 (英国)",he[$["en-VN"]]="英语 (越南)",he[$["en-HK"]]="英语 (中国香港)",he[$["en-KR"]]="英语 (韩国)",he[$["zh-TW"]]="繁体中文 (中国台湾)",he[$["zh-HK"]]="繁体中文 (中国香港)",he[$["zh-SG"]]="简体中文 (新加坡)",he[$["zh-CN"]]="简体中文 (中国)",he[$["ar-IQ"]]="阿拉伯语 (伊拉克)",he[$["ckb-IQ"]]="中库尔德语 (伊拉克)",he[$.ku]="库尔德语",he[$["kk-KZ"]]="哈萨克语",he[$.af]="南非语",he[$.am]="阿姆哈拉语",he[$.az]="阿塞拜疆语",he[$.be]="白俄罗斯语",he[$.bg]="保加利亚语",he[$.bs]="波斯尼亚语",he[$.ca]="加泰罗尼亚语",he[$.cy]="威尔士语",he[$.el]="现代希腊语",he[$.eo]="世界语",he[$.et]="爱沙尼亚语",he[$.eu]="巴斯克语",he[$.fa]="波斯语",he[$.fi]="芬兰语",he[$.gd]="爱尔兰语",he[$.gl]="加利西亚语",he[$.ha]="豪萨语",he[$.haw]="夏威夷语",he[$.hr]="克罗地亚语",he[$.ig]="伊博语",he[$.is]="冰岛语",he[$.ka]="格鲁吉亚语",he[$.km]="高棉语",he[$.ky]="吉尔吉斯语",he[$.lb]="卢森堡语",he[$.ln]="林格拉语",he[$.lt]="立陶宛语",he[$.lv]="拉脱维亚语",he[$.mg]="马尔加什语",he[$.mk]="马其顿语",he[$.mn]="蒙古文",he[$.mt]="马耳他语",he[$.om]="奥罗莫语",he[$.ps]="普什图语",he[$.qu]="克丘亚语",he[$.rw]="卢旺达语",he[$.sl]="斯洛文尼亚语",he[$.so]="索马里语",he[$.sq]="阿尔巴尼亚语",he[$.sw]="斯瓦希里语",he[$.tg]="塔吉克语",he[$.ti]="蒂格尼亚语",he[$.ug]="维吾尔语",he[$.uz]="乌兹别克语",he[$.yo]="约鲁巴语",he[$.zu]="祖鲁语";var fe,de={};de[$["ar-SA"]]="Arabic (Saudi Arabia)",de[$.kn]="Kannada",de[$.as]="Assamese",de[$.bho]="Bhojpuri",de[$["pl-PL"]]="Polish (Poland)",de[$["ko-KR"]]="Korean (Korean)",de[$["da-DK"]]="Danish (Denmark)",de[$["de-DE"]]="German (Germany)",de[$["ru-RU"]]="Russian (Russia)",de[$["fr-FR"]]="French (France)",de[$.gu]="Gujarati",de[$["nl-BE"]]="Dutch (Belgium)",de[$["nl-NL"]]="Dutch (Netherlands)",de[$["cs-CZ"]]="Czech (Czech Republic)",de[$.ro]="Romanian",de[$["lo-LA"]]="Lao (Laos)",de[$["my-MM"]]="Burmese (Myanmar)",de[$["bn-BD"]]="Bengali (Bangladesh)",de[$["bn-IN"]]="Bengali (India)",de[$.mr]="Marathi",de[$["ms-MY"]]="Malay (Malaysia)",de[$.ml]="Malayalam",de[$.mni]="Manipuri",de[$["ne-NP"]]="Nepalese (Nepal)",de[$.or]="Odia (Oriya)",de[$["pt-BR"]]="Portuguese (Brazil)",de[$["pt-PT"]]="Portuguese (Portugal)",de[$.pa]="Punjabi",de[$["sv-SE"]]="Swedish (Sweden)",de[$["ja-JP"]]="Japanese (Japanese)",de[$.sr]="Serbian",de[$["si-LK"]]="Sinhala (Sri Lanka)",de[$["sk-SK"]]="Slovak (Slovakia)",de[$["tr-TR"]]="Turkish (Turkish)",de[$["tl-PH"]]="Tagalog (Philippines)",de[$.te]="Telugu",de[$.ta]="Tamil",de[$["th-TH"]]="Thai (Thailand)",de[$["ur-PK"]]="Ulduwen (Pakistan)",de[$["ur-IN"]]="Urduwen (India)",de[$["uk-UA"]]="Ukrainian (Ukraine)",de[$["iw-IL"]]="Hebrew (Israel)",de[$["es-ES"]]="Spanish (Spain)",de[$["es-MX"]]="Spanish (Mexico)",de[$.hu]="Hungarian",de[$["it-IT"]]="Italian (Italian)",de[$["in-ID"]]="Indonesian (Indonesia)",de[$["hi-IN"]]="Hindi (India)",de[$["vi-VN"]]="Vietnamese (Vietnam)",de[$["en-PK"]]="English (Pakistan)",de[$["en-PL"]]="English (Poland)",de[$["en-FR"]]="English (France)",de[$["en-PH"]]="English (Philippines)",de[$["en-CZ"]]="English (Czech Republic)",de[$["en-CA"]]="English (Canada)",de[$["en-MM"]]="English (Myanmar)",de[$["en-US"]]="English (US)",de[$["en-BD"]]="English (Bangladesh)",de[$["en-MY"]]="English (Malaysia)",de[$["en-NP"]]="English (Nepal)",de[$["en-LK"]]="English (Sri Lanka)",de[$["en-TH"]]="English (Thailand)",de[$["en-ES"]]="English (Spain)",de[$["en-SG"]]="English (Singapore)",de[$["en-HU"]]="English (Hungary)",de[$["en-ID"]]="English (Indonesia)",de[$["en-GB"]]="English (UK)",de[$["en-VN"]]="English (Vietnam)",de[$["en-HK"]]="English (Hong Kong)",de[$["en-KR"]]="English (Korean)",de[$["zh-TW"]]="Chinese Traditional (Taiwan)",de[$["zh-HK"]]="Chinese Traditional (Hong Kong)",de[$["zh-SG"]]="Chinese Simplified (Singapore)",de[$["zh-CN"]]="Chinese Simplified (China)",de[$["ar-IQ"]]="Arabic (Iraq)",de[$["ckb-IQ"]]="Central Kurdish (Iraq)",de[$.ku]="Kurdish",de[$["kk-KZ"]]="Kazakh",de[$.af]="Afrikaans",de[$.am]="Amharic",de[$.az]="Azerbaijani",de[$.be]="Belarusian",de[$.bg]="Bulgarian",de[$.bs]="Bosnian",de[$.ca]="Catalan",de[$.cy]="Welsh",de[$.el]="Greek",de[$.eo]="Esperanto",de[$.et]="Estonian",de[$.eu]="Basque",de[$.fa]="Persian",de[$.fi]="Finnish",de[$.gd]="Scots Gaelic",de[$.gl]="Galician",de[$.ha]="Hausa",de[$.haw]="Hawaiian",de[$.hr]="Croatian",de[$.ig]="Igbo",de[$.is]="Icelandic",de[$.ka]="Georgian",de[$.km]="Khmer",de[$.ky]="Kyrgyz",de[$.lb]="Luxembourgish",de[$.ln]="Lingala",de[$.lt]="Lithuanian",de[$.lv]="Latvian",de[$.mg]="Malagasy",de[$.mk]="Macedonian",de[$.mn]="Mongolian",de[$.mt]="Maltese",de[$.om]="Oromo",de[$.ps]="Pashto",de[$.qu]="Quechua",de[$.rw]="Kinyarwanda",de[$.sl]="Slovenian",de[$.so]="Somali",de[$.sq]="Albanian",de[$.sw]="Swahili",de[$.tg]="Tajik",de[$.ti]="Tigrinya",de[$.ug]="Uyghur",de[$.uz]="Uzbek",de[$.yo]="Yoruba",de[$.zu]="Zulu",function(e){e["ar-SA"]="Arabic",e.kn="kannada",e.as="assamese",e.bho="bhojpuri",e["pl-PL"]="Polish",e["ko-KR"]="Korean",e["da-DK"]="danish",e["de-DE"]="German",e["ru-RU"]="Russian",e["fr-FR"]="French",e.gu="gujarati",e["nl-BE"]="Dutch(Belgium)",e["nl-NL"]="Dutch",e["cs-CZ"]="czech",e.ro="romanian",e["lo-LA"]="Lao (Laos)",e["my-MM"]="Burmese",e["bn-BD"]="Bangadesh",e["bn-IN"]="bangadeshIndia",e.mr="marathi",e["ms-MY"]="Malay",e.ml="malayalam",e.mni="manipuri",e["ne-NP"]="NepaliNepal",e.or="oriya",e["pt-BR"]="portuguese (Brazil)",e["pt-PT"]="Portuguese",e.pa="panjabi",e["sv-SE"]="swedish",e["ja-JP"]="Japanese",e.sr="Serbian",e["si-LK"]="Sinhala",e["sk-SK"]="slovak",e["tr-TR"]="Turkish",e["tl-PH"]="Filipino",e.te="telugu",e.ta="tamil",e["th-TH"]="Thai",e["ur-PK"]="Urdu",e["ur-IN"]="urduIndia",e["uk-UA"]="Ukrainian",e["iw-IL"]="Hebrew",e["es-ES"]="Spanish",e["es-MX"]="Spanish (Mexico)",e.hu="hungarian",e["it-IT"]="Italian",e["in-ID"]="Indonesian",e["hi-IN"]="Hindi",e["vi-VN"]="Vietnamese",e["en-PK"]="Pakistan English",e["en-PL"]="Poland English",e["en-FR"]="English (France)",e["en-PH"]="Philippines English",e["en-CZ"]="Czech English",e["en-CA"]="Canadian English",e["en-MM"]="Myanmar English",e["en-US"]="English",e["en-BD"]="Bangladesh English",e["en-MY"]="Malaysia English",e["en-NP"]="Nepal English",e["en-LK"]="Srilanka English",e["en-TH"]="Thai English",e["en-ES"]="English (Spain)",e["en-SG"]="singapore english",e["en-HU"]="Hungarian English",e["en-ID"]="Indonesian English",e["en-GB"]="British English",e["en-VN"]="Vietnamese English",e["en-HK"]="Hong Kong English",e["en-KR"]="Korean English",e["zh-TW"]="Traditional Chinese",e["zh-HK"]="Traditional Chinese(HK)",e["zh-SG"]="Chinese (Singapore)",e["zh-CN"]="Simplified Chinese",e["ar-IQ"]="Arabic (Iraq)",e["ckb-IQ"]="Central Kurdish (Iraq)",e.ku="Kurdish",e["kk-KZ"]="Kazakh"}(fe||(fe={}));var pe,ge,ve,me={"zh-hans":$["zh-CN"],"zh-hant":$["zh-TW"],ar:$["ar-SA"],bn:$["bn-BD"],cs:$["cs-CZ"],da:$["da-DK"],de:$["de-DE"],en:$["en-US"],es:$["es-ES"],fr:$["fr-FR"],hi:$["hi-IN"],in:$["in-ID"],it:$["it-IT"],iw:$["iw-IL"],ja:$["ja-JP"],ko:$["ko-KR"],lo:$["lo-LA"],ms:$["ms-MY"],my:$["my-MM"],ne:$["ne-NP"],nl:$["nl-NL"],pl:$["pl-PL"],pt:$["pt-PT"],ru:$["ru-RU"],si:$["si-LK"],sk:$["sk-SK"],sv:$["sv-SE"],th:$["th-TH"],tl:$["tl-PH"],tr:$["tr-TR"],uk:$["uk-UA"],ur:$["ur-PK"],vi:$["vi-VN"],zh:$["zh-CN"],kk:$["kk-KZ"]},ye={"zh-hant":$["zh-TW"],"zh-hans":$["zh-CN"]},_e=function(e){return Object.keys(e||{}).map((function(t){return e[t]}))},be=function(e,t){return-1!==e.indexOf(t)};!function(e){e.ar_EG="ar_EG",e.az_AZ="az_AZ",e.bg_BG="bg_BG",e.bn_BD="bn_BD",e.by_BY="by_BY",e.ca_ES="ca_ES",e.cs_CZ="cs_CZ",e.da_DK="da_DK",e.de_DE="de_DE",e.el_GR="el_GR",e.en_GB="en_GB",e.en_US="en_US",e.es_ES="es_ES",e.et_EE="et_EE",e.fa_IR="fa_IR",e.fi_FI="fi_FI",e.fr_BE="fr_BE",e.fr_CA="fr_CA",e.fr_FR="fr_FR",e.ga_IE="ga_IE",e.gl_ES="gl_ES",e.he_IL="he_IL",e.hi_IN="hi_IN",e.hr_HR="hr_HR",e.hu_HU="hu_HU",e.hy_AM="hy_AM",e.id_ID="id_ID",e.it_IT="it_IT",e.is_IS="is_IS",e.ja_JP="ja_JP",e.ka_GE="ka_GE",e.kmr_IQ="kmr_IQ",e.kn_IN="kn_IN",e.kk_KZ="kk_KZ",e.km_KH="km_KH",e.ko_KR="ko_KR",e.lt_LT="lt_LT",e.lv_LV="lv_LV",e.mk_MK="mk_MK",e.ml_IN="ml_IN",e.mn_MN="mn_MN",e.ms_MY="ms_MY",e.nb_NO="nb_NO",e.ne_NP="ne_NP",e.nl_BE="nl_BE",e.nl_NL="nl_NL",e.pl_PL="pl_PL",e.pt_BR="pt_BR",e.pt_PT="pt_PT",e.ro_RO="ro_RO",e.ru_RU="ru_RU",e.si_LK="si_LK",e.sk_SK="sk_SK",e.sr_RS="sr_RS",e.sl_SI="sl_SI",e.sv_SE="sv_SE",e.ta_IN="ta_IN",e.th_TH="th_TH",e.tr_TR="tr_TR",e.tk_TK="tk_TK",e.ur_PK="ur_PK",e.uk_UA="uk_UA",e.uz_UZ="uz_UZ",e.vi_VN="vi_VN",e.zh_CN="zh_CN",e.zh_HK="zh_HK",e.zh_TW="zh_TW"}(pe||(pe={})),_e(pe),function(e){e.af="af",e.am="am",e["ar-dz"]="ar-dz",e["ar-iq"]="ar-iq",e["ar-kw"]="ar-kw",e["ar-ly"]="ar-ly",e["ar-ma"]="ar-ma",e["ar-sa"]="ar-sa",e["ar-tn"]="ar-tn",e.ar="ar",e.az="az",e.be="be",e.bg="bg",e.bi="bi",e.bm="bm",e["bn-bd"]="bn-bd",e.bn="bn",e.bo="bo",e.br="br",e.bs="bs",e.ca="ca",e.cs="cs",e.cv="cv",e.cy="cy",e.da="da",e["de-at"]="de-at",e["de-ch"]="de-ch",e.de="de",e.dv="dv",e.el="el",e["en-au"]="en-au",e["en-ca"]="en-ca",e["en-gb"]="en-gb",e["en-ie"]="en-ie",e["en-il"]="en-il",e["en-in"]="en-in",e["en-nz"]="en-nz",e["en-sg"]="en-sg",e["en-tt"]="en-tt",e.en="en",e.eo="eo",e["es-do"]="es-do",e["es-mx"]="es-mx",e["es-PR"]="es-PR",e["es-us"]="es-us",e.es="es",e.et="et",e.eu="eu",e.fa="fa",e.fi="fi",e.fo="fo",e["fr-ca"]="fr-ca",e["fr-ch"]="fr-ch",e.fr="fr",e.fy="fy",e.ga="ga",e.gd="gd",e.gl="gl",e["gom-latn"]="gom-latn",e.gu="gu",e.he="he",e.hi="hi",e.hr="hr",e.ht="ht",e.hu="hu",e["hy-am"]="hy-am",e.id="id",e.is="is",e["it-ch"]="it-ch",e.it="it",e.ja="ja",e.jv="jv",e.ka="ka",e.kk="kk",e.km="km",e.kn="kn",e.ko="ko",e.ku="ku",e.ky="ky",e.lb="lb",e.lo="lo",e.lt="lt",e.lv="lv",e.me="me",e.mi="mi",e.mk="mk",e.ml="ml",e.mn="mn",e.mr="mr",e["ms-my"]="ms-my",e.ms="ms",e.mt="mt",e.my="my",e.nb="nb",e.ne="ne",e["nl-be"]="nl-be",e.nl="nl",e.nn="nn",e["oc-lnc"]="oc-lnc",e["pa-in"]="pa-in",e.pl="pl",e["pt-br"]="pt-br",e.pt="pt",e.rn="rn",e.ro="ro",e.ru="ru",e.rw="rw",e.sd="sd",e.se="se",e.si="si",e.sk="sk",e.sl="sl",e.sq="sq",e["sr-cyrl"]="sr-cyrl",e.sr="sr",e.ss="ss",e["sv-fi"]="sv-fi",e.sv="sv",e.sw="sw",e.ta="ta",e.te="te",e.tet="tet",e.tg="tg",e.th="th",e.tk="tk",e["tl-ph"]="tl-ph",e.tlh="tlh",e.tr="tr",e.tzl="tzl",e["tzm-latn"]="tzm-latn",e.tzm="tzm",e["ug-cn"]="ug-cn",e.uk="uk",e.ur="ur",e["uz-latn"]="uz-latn",e.uz="uz",e.vi="vi",e["x-pseudo"]="x-pseudo",e.yo="yo",e["zh-cn"]="zh-cn",e["zh-hk"]="zh-hk",e["zh-tw"]="zh-tw",e.zh="zh"}(ge||(ge={})),_e(ge),function(e){e.af="af",e["ar-dz"]="ar-dz",e["ar-kw"]="ar-kw",e["ar-ly"]="ar-ly",e["ar-ma"]="ar-ma",e["ar-sa"]="ar-sa",e["ar-tn"]="ar-tn",e.ar="ar",e.az="az",e.be="be",e.bg="bg",e.bm="bm",e["bn-bd"]="bn-bd",e.bn="bn",e.bo="bo",e.br="br",e.bs="bs",e.ca="ca",e.cs="cs",e.cv="cv",e.cy="cy",e.da="da",e["de-at"]="de-at",e["de-ch"]="de-ch",e.de="de",e.dv="dv",e.el="el",e["en-au"]="en-au",e["en-ca"]="en-ca",e["en-gb"]="en-gb",e["en-ie"]="en-ie",e["en-il"]="en-il",e["en-in"]="en-in",e["en-nz"]="en-nz",e["en-sg"]="en-sg",e.eo="eo",e["es-do"]="es-do",e["es-mx"]="es-mx",e["es-us"]="es-us",e.es="es",e.et="et",e.eu="eu",e.fa="fa",e.fi="fi",e.fil="fil",e.fo="fo",e["fr-ca"]="fr-ca",e["fr-ch"]="fr-ch",e.fr="fr",e.fy="fy",e.ga="ga",e.gd="gd",e.gl="gl",e["gom-deva"]="gom-deva",e["gom-latn"]="gom-latn",e.gu="gu",e.he="he",e.hi="hi",e.hr="hr",e.hu="hu",e["hy-am"]="hy-am",e.id="id",e.is="is",e["it-ch"]="it-ch",e.it="it",e.ja="ja",e.jv="jv",e.ka="ka",e.kk="kk",e.km="km",e.kn="kn",e.ko="ko",e.ku="ku",e.ky="ky",e.lb="lb",e.lo="lo",e.lt="lt",e.lv="lv",e.me="me",e.mi="mi",e.mk="mk",e.ml="ml",e.mn="mn",e.mr="mr",e["ms-my"]="ms-my",e.ms="ms",e.mt="mt",e.my="my",e.nb="nb",e.ne="ne",e["nl-be"]="nl-be",e.nl="nl",e.nn="nn",e["oc-lnc"]="oc-lnc",e["pa-in"]="pa-in",e.pl="pl",e["pt-br"]="pt-br",e.pt="pt",e.ro="ro",e.ru="ru",e.sd="sd",e.se="se",e.si="si",e.sk="sk",e.sl="sl",e.sq="sq",e["sr-cyrl"]="sr-cyrl",e.sr="sr",e.ss="ss",e.sv="sv",e.sw="sw",e.ta="ta",e.te="te",e.tet="tet",e.tg="tg",e.th="th",e.tk="tk",e["tl-ph"]="tl-ph",e.tlh="tlh",e.tr="tr",e.tzl="tzl",e["tzm-latn"]="tzm-latn",e.tzm="tzm",e["ug-cn"]="ug-cn",e.uk="uk",e.ur="ur",e["uz-latn"]="uz-latn",e.uz="uz",e.vi="vi",e["x-pseudo"]="x-pseudo",e.yo="yo",e["zh-cn"]="zh-cn",e["zh-hk"]="zh-hk",e["zh-mo"]="zh-mo",e["zh-tw"]="zh-tw"}(ve||(ve={})),_e(ve);var Ee,we,Se,Te,Ae,Re,Pe,Le,ke,Ne,Oe,Ie,Ce,Me,De,xe;$["ar-IQ"],pe.ar_EG,ve.ar,ge.ar,$["ar-SA"],pe.ar_EG,ve["ar-sa"],ge["ar-sa"],$["bn-BD"],pe.bn_BD,ve["bn-bd"],ge["bn-bd"],$["bn-IN"],pe.bn_BD,ve.bn,ge.bn,$["cs-CZ"],pe.cs_CZ,ve.cs,ge.cs,$["da-DK"],pe.da_DK,ve.da,ge.da,$["de-DE"],pe.de_DE,ve.de,ge.de,$["en-BD"],pe.en_US,ve["en-gb"],ge.en,$["en-CA"],pe.en_US,ve["en-ca"],ge["en-ca"],$["en-CZ"],pe.en_US,ve["en-gb"],ge.en,$["en-ES"],pe.en_US,ve["en-gb"],ge.en,$["en-FR"],pe.en_US,ve["en-gb"],ge.en,$["en-GB"],pe.en_GB,ve["en-gb"],ge["en-gb"],$["en-HU"],pe.en_US,ve["en-gb"],ge.en,$["en-ID"],pe.en_US,ve["en-gb"],ge.en,$["en-LK"],pe.en_US,ve["en-gb"],ge.en,$["en-MM"],pe.en_US,ve["en-gb"],ge.en,$["en-MY"],pe.en_US,ve["en-gb"],ge.en,$["en-NP"],pe.en_US,ve["en-gb"],ge.en,$["en-PH"],pe.en_US,ve["en-gb"],ge.en,$["en-PK"],pe.en_US,ve["en-gb"],ge.en,$["en-PL"],pe.en_US,ve["en-gb"],ge.en,$["en-SG"],pe.en_US,ve["en-sg"],ge.en,$["en-TH"],pe.en_US,ve["en-gb"],ge.en,$["en-US"],pe.en_US,ve["en-gb"],ge.en,$["en-VN"],pe.en_US,ve["en-gb"],ge.en,$["en-HK"],pe.en_US,ve["en-gb"],ge.en,$["en-KR"],pe.en_US,ve["en-gb"],ge.en,$["es-ES"],pe.es_ES,ve.es,ge.es,$["es-MX"],pe.es_ES,ve.es,ge.es,$["fr-FR"],pe.fr_FR,ve.fr,ge.fr,$["hi-IN"],pe.hi_IN,ve.hi,ge.hi,$.hu,pe.hu_HU,ve.hu,ge.hu,$["in-ID"],pe.id_ID,ve.id,ge.id,$["it-IT"],pe.it_IT,ve.it,ge.it,$["ja-JP"],pe.ja_JP,ve.ja,ge.ja,$.kn,pe.kn_IN,ve.kn,ge.kn,$["ko-KR"],pe.ko_KR,ve.ko,ge.ko,$.ml,pe.ml_IN,ve.ml,ge.ml,$["ms-MY"],pe.ms_MY,ve["ms-my"],ge["ms-my"],$["ne-NP"],pe.ne_NP,ve.ne,ge.ne,$["nl-BE"],pe.nl_BE,ve["nl-be"],ge["nl-be"],$["nl-NL"],pe.nl_NL,ve.nl,ge.nl,$["pl-PL"],pe.pl_PL,ve.pl,ge.pl,$["pt-BR"],pe.pt_BR,ve["pt-br"],ge["pt-br"],$["pt-PT"],pe.pt_PT,ve.pt,ge.pt,$.ro,pe.ro_RO,ve.ro,ge.ro,$["ru-RU"],pe.ru_RU,ve.ru,ge.ru,$["si-LK"],pe.si_LK,ve.si,ge.si,$["sk-SK"],pe.sk_SK,ve.sk,ge.sk,$.sr,pe.sr_RS,ve.sr,ge.sr,$["sv-SE"],pe.sv_SE,ve.sv,ge.sv,$.ta,pe.ta_IN,ve.ta,ge.ta,$["th-TH"],pe.th_TH,ve.th,ge.th,$["tr-TR"],pe.tr_TR,ve.tr,ge.tr,$["uk-UA"],pe.uk_UA,ve.uk,ge.uk,$["ur-PK"],pe.ur_PK,ve.ur,ge.ur,$["vi-VN"],pe.vi_VN,ve.vi,ge.vi,$["zh-CN"],pe.zh_CN,ve["zh-cn"],ge["zh-cn"],$["zh-HK"],pe.zh_HK,ve["zh-hk"],ge["zh-hk"],$["zh-SG"],pe.zh_HK,ve["zh-hk"],ge["zh-hk"],$["zh-TW"],pe.zh_TW,ve["zh-tw"],ge["zh-tw"],$["kk-KZ"],pe.kk_KZ,ve.kk,ge.kk;!function(e){e.ar_SA="ar_SA",e.kn="kn",e.as="as",e.bho="bho",e.pl_PL="pl_PL",e.ko_KR="ko_KR",e.da_DK="da_DK",e.de_DE="de_DE",e.ru_RU="ru_RU",e.fr_FR="fr_FR",e.gu="gu",e.nl_BE="nl_BE",e.nl_NL="nl_NL",e.cs_CZ="cs_CZ",e.ro="ro",e.lo_LA="lo_LA",e.my_MM="my_MM",e.bn_BD="bn_BD",e.bn_IN="bn_IN",e.mr="mr",e.ms_MY="ms_MY",e.ml="ml",e.mni="mni",e.ne_NP="ne_NP",e.or="or",e.pt_BR="pt_BR",e.pt_PT="pt_PT",e.pa="pa",e.sv_SE="sv_SE",e.ja_JP="ja_JP",e.sr="sr",e.si_LK="si_LK",e.sk_SK="sk_SK",e.tr_TR="tr_TR",e.tl_PH="tl_PH",e.te="te",e.ta="ta",e.th_TH="th_TH",e.ur_PK="ur_PK",e.ur_IN="ur_IN",e.uk_UA="uk_UA",e.iw_IL="iw_IL",e.es_ES="es_ES",e.es_MX="es_MX",e.hu="hu",e.it_IT="it_IT",e.in_ID="in_ID",e.hi_IN="hi_IN",e.vi_VN="vi_VN",e.en_PK="en_PK",e.en_PL="en_PL",e.en_FR="en_FR",e.en_PH="en_PH",e.en_CZ="en_CZ",e.en_CA="en_CA",e.en_MM="en_MM",e.en_US="en_US",e.en_BD="en_BD",e.en_MY="en_MY",e.en_NP="en_NP",e.en_LK="en_LK",e.en_TH="en_TH",e.en_ES="en_ES",e.en_SG="en_SG",e.en_HU="en_HU",e.en_ID="en_ID",e.en_GB="en_GB",e.en_VN="en_VN",e.en_HK="en_HK",e.en_KR="en_KR",e.zh_TW="zh_TW",e.zh_HK="zh_HK",e.zh_SG="zh_SG",e.zh_CN="zh_CN",e.ar_IQ="ar_IQ",e.ckb_IQ="ckb_IQ",e.ku="ku",e.kk_KZ="kk_KZ",e.af="af",e.am="am",e.az="az",e.be="be",e.bg="bg",e.bs="bs",e.ca="ca",e.cy="cy",e.el="el",e.eo="eo",e.et="et",e.eu="eu",e.fa="fa",e.fi="fi",e.gd="gd",e.gl="gl",e.ha="ha",e.haw="haw",e.hr="hr",e.ig="ig",e.is="is",e.ka="ka",e.km="km",e.ky="ky",e.lb="lb",e.ln="ln",e.lt="lt",e.lv="lv",e.mg="mg",e.mk="mk",e.mn="mn",e.mt="mt",e.om="om",e.ps="ps",e.qu="qu",e.rw="rw",e.sl="sl",e.so="so",e.sq="sq",e.sw="sw",e.tg="tg",e.ti="ti",e.ug="ug",e.uz="uz",e.yo="yo",e.zu="zu"}(xe||(xe={}));var Be,Ue,He=_e(xe),je={};je[xe.kn]="AiNaDeYu",je[xe.ar_SA]="ALaBoYu (ShaTeALaBo)",je[xe.ar_IQ]="ALaBoYu (YiLaKe)",je[xe.as]="ASaMuYu",je[xe.bho]="BoJiePuErYu",je[xe.pl_PL]="BoLanYu (BoLan)",je[xe.ko_KR]="ChaoXianYu (HanGuo)",je[xe.da_DK]="DanMaiYu (DanMai)",je[xe.de_DE]="DeYu (DeGuo)",je[xe.ru_RU]="EYu (ELuoSi)",je[xe.fr_FR]="FaYu (FaGuo)",je[xe.gu]="GuJiaLaTiYu",je[xe.nl_BE]="HeLanYu (BiLiShi)",je[xe.nl_NL]="HeLanYu (HeLan)",je[xe.cs_CZ]="JieKeYu (JieKeGongHeGuo)",je[xe.ku]="KuErDeYu",je[xe.lo_LA]="LaoWoYu (LaoWo)",je[xe.ro]="LuoMaNiYaYu",je[xe.mr]="MaLaDiYu",je[xe.ms_MY]="MaLaiYu (MaLaiXiYa)",je[xe.ml]="MaLaiYaLaMuYu",je[xe.mni]="ManNiPuLiYu",je[xe.bn_BD]="MengJiaLaYu (MengJiaLa)",je[xe.bn_IN]="MengJiaLaYu (YinDu)",je[xe.my_MM]="MianDianYu (MianDian)",je[xe.ne_NP]="NiBoErYu (NiBoEr)",je[xe.or]="OuLiYaYu",je[xe.pa]="PangZhePuYu",je[xe.pt_BR]="PuTaoYaYu (BaXi)",je[xe.pt_PT]="PuTaoYaYu (PuTaoYa)",je[xe.ja_JP]="RiYu (RiBen)",je[xe.sv_SE]="RuiDianYu (RuiDian)",je[xe.sr]="SaiErWeiYaYu",je[xe.si_LK]="SengJiaLuoYu (SiLiLanKa)",je[xe.sk_SK]="SiLuoFaKeYu (SiLuoFaKe)",je[xe.te]="TaiLuGuYu",je[xe.ta]="TaiMiErYu",je[xe.th_TH]="TaiYu (TaiGuo)",je[xe.tl_PH]="TaJiaLuZuYu (FeiLvBin)",je[xe.tr_TR]="TuErQiYu (TuErQi)",je[xe.ur_PK]="WuErDuYu (BaJiSiTan)",je[xe.ur_IN]="WuErDuYu (YinDu)",je[xe.uk_UA]="WuKeLanYu (WuKeLan)",je[xe.es_ES]="XiBanYaYu (XiBanYa)",je[xe.es_MX]="XiBanYaYu (MoXiGe)",je[xe.iw_IL]="XiBoLaiYu (YiSeLie)",je[xe.hu]="XiongYaLiYu",je[xe.it_IT]="YiDaLiYu (YiDaLi)",je[xe.hi_IN]="YinDiYu (YinDu)",je[xe.in_ID]="YinDuNiXiYaYu (YinDuNiXiYa)",je[xe.en_PK]="YingYu (BaJiSiTan)",je[xe.en_PL]="YingYu (BoLan)",je[xe.en_FR]="YingYu (FaGuo)",je[xe.en_PH]="YingYu (FeiLvBin)",je[xe.en_CA]="YingYu (JiaNaDa)",je[xe.en_CZ]="YingYu (JieKeGongHeGuo)",je[xe.en_MY]="YingYu (MaLaiXiYa)",je[xe.en_US]="YingYu (MeiGuo)",je[xe.en_BD]="YingYu (MengJiaLa)",je[xe.en_MM]="YingYu (MianDian)",je[xe.en_NP]="YingYu (NiBoEr)",je[xe.en_LK]="YingYu (SiLiLanKa)",je[xe.en_TH]="YingYu (TaiGuo)",je[xe.en_ES]="YingYu (XiBanYa)",je[xe.en_SG]="YingYu (XinJiaPo)",je[xe.en_HU]="YingYu (XiongYaLi)",je[xe.en_ID]="YingYu (YinDuNiXiYa)",je[xe.en_GB]="YingYu (YingGuo)",je[xe.en_VN]="YingYu (YueNan)",je[xe.en_HK]="YingYu (XiangGang)",je[xe.en_KR]="YingYu (HanGuo)",je[xe.vi_VN]="YueNanYu (YueNan)",je[xe.ckb_IQ]="ZhongKuErDeYu (YiLaKe)",je[xe.zh_TW]="ZhongWen (TaiWanDiQu)",je[xe.zh_HK]="ZhongWen (XiangGang)",je[xe.zh_SG]="ZhongWen (XinJiaPo)",je[xe.zh_CN]="ZhongWen (ZhongGuo)",je[xe.kk_KZ]="HaSaKeYu (HaSaKeSiTan)",je[xe.af]="NanFeiYu",je[xe.am]="AMuHaLaYu",je[xe.az]="ASaiBaiJiangYu",je[xe.be]="BaiErLuoSiYu",je[xe.bg]="BaoJiaLiYaYu",je[xe.bs]="BoSiNiYaYu",je[xe.ca]="JiaTaiLuoNiYaYu",je[xe.cy]="WeiErShiYu",je[xe.el]="XianDaiXiLaYu",je[xe.eo]="ShiJieYu",je[xe.et]="AiShaNiYaYu",je[xe.eu]="BaSiKeYu",je[xe.fa]="BoSiYu",je[xe.fi]="FenLanYu",je[xe.gd]="AiErLanYu",je[xe.gl]="JiaLiXiYaYu",je[xe.ha]="HaoSaYu",je[xe.haw]="XiaWeiYiYu",je[xe.hr]="KeLuoDiYaYu",je[xe.ig]="YiBoYu",je[xe.is]="BingDaoYu",je[xe.ka]="GeLuJiYaYu",je[xe.km]="GaoMianYu",je[xe.ky]="JiErJiSiYu",je[xe.lb]="LuSenBaoYu",je[xe.ln]="LinGeLaYu",je[xe.lt]="LiTaoWanYu",je[xe.lv]="LaTuoWeiYaYu",je[xe.mg]="MaErJiaShiYu",je[xe.mk]="MaQiDunYu",je[xe.mn]="MengGuWen",je[xe.mt]="MaErTaYu",je[xe.om]="AoLuoMoYu",je[xe.ps]="PuShiTuYu",je[xe.qu]="KeQiuYaYu",je[xe.rw]="LuWangDaYu",je[xe.sl]="SiLuoWeiNiYaYu",je[xe.so]="SuoMaLiYu",je[xe.sq]="AErBaNiYaYu",je[xe.sw]="SiWaXiLiYu",je[xe.tg]="TaJiKeYu",je[xe.ti]="DiGeNiYaYu",je[xe.ug]="WeiWuErYu",je[xe.uz]="WuZiBieKeYu",je[xe.yo]="YueLuBaYu",je[xe.zu]="ZuLuYu",function(e){e.AiSelected="AiSelected",e.Aliyun="Aliyun",e["ChatGPT3.5"]="ChatGPT3.5",e.Google="Google",e.Papago="Papago",e.DeepL="DeepL",e.Microsoft="Microsoft",e.Amazon="Amazon"}(Be||(Be={})),function(e){e.AiSelected="AiSelected",e.Aliyun="Aliyun",e["ChatGPT3.5"]="ChatGPT3.5",e.Google="Google",e.Papago="Papago",e.DeepL="DeepL",e.Microsoft="Microsoft",e.Amazon="Amazon"}(Ue||(Ue={})),_e(Ue);var ze=Object.assign(Object.assign({},Ue),{TranslationMemory:"TranslationMemory"}),Ge=(_e(ze),{aliyunSupportedLanguages:["ab","sq","ak","ar","an","am","as","az","ast","nch","ee","ay","ga","et","oj","oc","or","om","os","tpi","ba","eu","be","ber","bm","pag","bg","se","bem","byn","bi","bal","is","pl","bs","fa","bho","br","ch","cbk","cv","ts","tt","da","shn","tet","de","nds","sco","dv","kdx","dtp","ru","fo","fr","sa","fil","fj","fi","fur","fvr","kg","km","ngu","kl","ka","gos","gu","gn","kk","ht","ko","ha","nl","cnr","hup","gil","rn","quc","ky","gl","ca","cs","kab","kn","kr","csb","kha","kw","xh","co","mus","crh","tlh","hbs","qu","ks","ku","la","ltg","lv","lo","lt","li","ln","lg","lb","rue","rw","ro","rm","rom","jbo","mg","gv","mt","mr","ml","ms","chm","mk","mh","kek","mai","mfe","mi","mn","bn","my","hmn","umb","nv","af","ne","niu","no","pmn","pap","pa","pt","ps","ny","tw","chr","ja","sv","sm","sg","si","hsb","eo","sl","sw","so","sk","tl","tg","ty","te","ta","th","to","toi","ti","tvl","tyv","tr","tk","wa","war","cy","ve","vo","wo","udm","ur","uz","es","ie","fy","szl","he","hil","haw","el","lfn","sd","hu","sn","ceb","syr","su","hy","ace","iba","ig","io","ilo","iu","it","yi","ia","hi","id","inh","en","yo","vi","zza","jv","zh","zh-tw","yue","zu"],mapAliyunLanguage:function(e){if(e===xe.zh_HK||e===xe.zh_TW||e===xe.zh_SG)return"zh-tw";if(e===xe.in_ID)return"id";if(e===xe.iw_IL)return"he";var t=e.split("_")[0];return be(Ge.aliyunSupportedLanguages,t)?t:null},googleSupportedLanguages:["af","sq","am","ar","hy","as","ay","az","bm","eu","be","bn","bho","bs","bg","ca","ceb","zh","zh-CN","zh-TW","co","hr","cs","da","dv","doi","nl","en","eo","et","ee","fil","fi","fr","fy","gl","ka","de","el","gn","gu","ht","ha","haw","he","iw","hi","hmn","hu","is","ig","ilo","id","ga","it","ja","jv","jw","kn","kk","km","rw","gom","ko","kri","ku","ckb","ky","lo","la","lv","ln","lt","lg","lb","mk","mai","mg","ms","ml","mt","mi","mr","mni-Mtei","lus","mn","my","ne","no","ny","or","om","ps","fa","pl","pt","pa","qu","ro","ru","sm","sa","gd","nso","sr","st","sn","sd","si","sk","sl","so","es","su","sw","sv","tl","tg","ta","tt","te","th","ti","ts","tr","tk","ak","uk","ur","ug","uz","vi","cy","xh","yi","yo","zu"],mapGoogleLanguage:function(e){if(e===xe.zh_HK||e===xe.zh_TW||e===xe.zh_SG)return"zh-TW";if(e===xe.in_ID)return"id";if(e===xe.mni)return"mni-Mtei";var t=e.split("_")[0];return be(Ge.googleSupportedLanguages,t)?t:null},papagoSupportedLanguages:["ko","en","ja","zh-CN","zh-TW"],mapPapagoLanguage:function(e){if(e===xe.zh_CN)return"zh-CN";if(e===xe.zh_HK||e===xe.zh_TW||e===xe.zh_SG)return"zh-TW";var t=e.split("_")[0];return be(Ge.papagoSupportedLanguages,t)?t:null},deepLSupportedSourceLanguages:["AR","BG","CS","DA","DE","EL","EN","ES","ET","FI","FR","HU","ID","IT","JA","KO","LT","LV","NB","NL","PL","PT","RO","RU","SK","SL","SV","TR","UK","ZH"],deepLSupportedLanguages:["AR","BG","CS","DA","DE","EL","EN-GB","EN-US","ES","ET","FI","FR","HU","ID","IT","JA","KO","LT","LV","NB","NL","PL","PT-BR","PT-PT","RO","RU","SK","SL","SV","TR","UK","ZH"],mapDeepLSourceLanguage:function(e){var t=e.toUpperCase();if(e===xe.in_ID)return"ID";var n=t.split("_")[0];return be(Ge.deepLSupportedSourceLanguages,n)?n:null},mapDeepLLanguage:function(e){var t=e.toUpperCase();if(e===xe.zh_CN||e===xe.zh_SG)return"ZH";if(e===xe.zh_HK||e===xe.zh_TW)return null;if(e===xe.en_GB||e===xe.en_US||e===xe.pt_BR||e===xe.pt_PT)return t.replace("_","-");if(e===xe.in_ID)return"ID";var n=t.split("_")[0];return"EN"===n?"EN-US":be(Ge.deepLSupportedLanguages,n)?n:null},microsoftSupportedLanguages:["af","sq","am","ar","hy","as","az","bn","ba","eu","bho","brx","bs","bg","yue","ca","lzh","zh-Hans","zh-Hant","sn","hr","cs","da","prs","dv","doi","nl","en","et","fo","fj","fil","fi","fr","fr-ca","gl","ka","de","el","gu","ht","ha","he","hi","mww","hu","is","ig","id","ikt","iu","iu-Latn","ga","it","ja","kn","ks","kk","km","rw","tlh-Latn","tlh-Piqd","gom","ko","ku","kmr","ky","lo","lv","lt","ln","dsb","lug","mk","mai","mg","ms","ml","mt","mi","mr","mn-Cyrl","mn-Mong","my","ne","nb","nya","or","ps","fa","pl","pt","pt-pt","pa","otq","ro","run","ru","sm","sr-Cyrl","sr-Latn","st","nso","tn","sd","si","sk","sl","so","es","sw","sv","ty","ta","tt","te","th","bo","ti","to","tr","tk","uk","hsb","ur","ug","uz","vi","cy","xh","yo","yua","zu"],mapMicrosoftLanguage:function(e){if(e===xe.pt_PT)return"pt-pt";if(e===xe.pt_BR)return"pt";if([xe.zh_CN,xe.zh_SG].includes(e))return"zh-Hans";if([xe.zh_HK,xe.zh_TW].includes(e))return"zh-Hant";if(e===xe.iw_IL)return"he";if(e===xe.in_ID)return"id";if(e===xe.ckb_IQ)return"ku";var t=e.split("_")[0];return be(Ge.microsoftSupportedLanguages,t)?t:null},amazonSupportedLanguages:["af","sq","am","ar","hy","az","bn","bs","bg","ca","zh","zh-TW","hr","cs","da","fa-AF","nl","en","et","fa","tl","fi","fr","fr-CA","ka","de","el","gu","ht","ha","he","hi","hu","is","id","ga","it","ja","kn","kk","ko","lv","lt","mk","ms","ml","mt","mr","mn","no","ps","pl","pt","pt-PT","pa","ro","ru","sr","si","sk","sl","so","es","es-MX","sw","sv","ta","te","th","tr","uk","ur","uz","vi","cy"],mapAmazonLanguage:function(e){if(e===xe.pt_PT)return"pt-PT";if(e===xe.pt_BR)return"pt";if(e===xe.es_MX)return"es-MX";if(e===xe.in_ID)return"id";if(e===xe.zh_CN||e===xe.zh_SG)return"zh";if(e===xe.zh_HK||e===xe.zh_TW)return"zh-TW";var t=e.split("_")[0];return be(Ge.amazonSupportedLanguages,t)?t:null}}),Ke={};Ke[Ue.AiSelected]=He,Ke[Ue.Aliyun]=He.filter((function(e){return Boolean(Ge.mapAliyunLanguage(e))})),Ke[Ue["ChatGPT3.5"]]=He,Ke[Ue.Google]=He.filter((function(e){return Boolean(Ge.mapGoogleLanguage(e))})),Ke[Ue.Papago]=He.filter((function(e){return Boolean(Ge.mapPapagoLanguage(e))})),Ke[Ue.DeepL]=He.filter((function(e){return Boolean(Ge.mapDeepLLanguage(e))})),Ke[Ue.Microsoft]=He.filter((function(e){return Boolean(Ge.mapMicrosoftLanguage(e))})),Ke[Ue.Amazon]=He.filter((function(e){return Boolean(Ge.mapAmazonLanguage(e))}));var Ye={};Ye[Ue.AiSelected]=He,Ye[Ue.Aliyun]=He.filter((function(e){return Boolean(Ge.mapAliyunLanguage(e))})),Ye[Ue["ChatGPT3.5"]]=He,Ye[Ue.Google]=He.filter((function(e){return Boolean(Ge.mapGoogleLanguage(e))})),Ye[Ue.Papago]=He.filter((function(e){return Boolean(Ge.mapPapagoLanguage(e))})),Ye[Ue.DeepL]=He.filter((function(e){return Boolean(Ge.mapDeepLSourceLanguage(e))})),Ye[Ue.Microsoft]=He.filter((function(e){return Boolean(Ge.mapMicrosoftLanguage(e))})),Ye[Ue.Amazon]=He.filter((function(e){return Boolean(Ge.mapAmazonLanguage(e))})),Fe=He.map((function(e){return[e,_e(Ue).filter((function(t){return be(Ke[t],e)}))]})),We={},Object.keys(Fe||{}).forEach((function(e){var t=Fe[e],n=t[0],r=t[1];We[n]=r}));var Fe,We,Ve={};Ve[xe.ar_SA]="العربية)السعودية)",Ve[xe.kn]="ಕನ್ನಡ",Ve[xe.as]="অসমীয়া",Ve[xe.bho]="भोजपुरी",Ve[xe.pl_PL]="Polski (Polska)",Ve[xe.ko_KR]="한국어 (대한민국)",Ve[xe.da_DK]="Dansk (Danmark)",Ve[xe.de_DE]="Deutsch (Deutschland)",Ve[xe.ru_RU]="Русский (Россия)",Ve[xe.fr_FR]="Français (France)",Ve[xe.gu]="ગુજરાતી",Ve[xe.nl_BE]="Nederlands (Belgium)",Ve[xe.nl_NL]="Nederlands (Nederland)",Ve[xe.cs_CZ]="Čeština (Česká republika)",Ve[xe.ro]="Română",Ve[xe.lo_LA]="ລາວ (ລາວ)",Ve[xe.my_MM]="မြန်မာဘာသာ (မြန်မာ)",Ve[xe.bn_BD]="বাংলা (বাংলাদেশ)",Ve[xe.bn_IN]="বাংলা (ভারত)",Ve[xe.mr]="मराठी",Ve[xe.ms_MY]="Bahasa Melayu (Malaysia)",Ve[xe.ml]="മലയാളം",Ve[xe.mni]="ꯃꯩꯇꯩꯂꯣꯟ",Ve[xe.ne_NP]="नेपाली (नेपाल)\t",Ve[xe.or]="ଓଡ଼ିଆ",Ve[xe.pt_BR]="Português (Brasil)",Ve[xe.pt_PT]="Português (Portugal)",Ve[xe.pa]="پنجابی",Ve[xe.sv_SE]="Svenska (Sverige)",Ve[xe.ja_JP]="日本語",Ve[xe.sr]="Српски",Ve[xe.si_LK]="සිංහල (ශ්රී ලංකාව)",Ve[xe.sk_SK]="Slovenčina (Slovensko)",Ve[xe.tr_TR]="Türkçe (Türkiye)",Ve[xe.tl_PH]="Wikang Tagalog (Philippines)",Ve[xe.te]="తెలుగు",Ve[xe.ta]="தமிழ்",Ve[xe.th_TH]="ไทย (ประเทศไทย)",Ve[xe.ur_PK]="اردو)پاکستان)",Ve[xe.ur_IN]="اردو)بھارت)",Ve[xe.uk_UA]="Українська (Україна)",Ve[xe.iw_IL]="עִבְרִית (ישראל)",Ve[xe.es_ES]="Español (España)",Ve[xe.es_MX]="Español (México)",Ve[xe.hu]="Magyar",Ve[xe.it_IT]="Italiano (Italia)",Ve[xe.in_ID]="Bahasa Indonesia (Indonesia)",Ve[xe.hi_IN]="हिन्दी (भारत)",Ve[xe.vi_VN]="Tiếng Việt (Việt Nam)",Ve[xe.en_PK]="English (Pakistan)",Ve[xe.en_PL]="English (Poland)",Ve[xe.en_FR]="English (France)",Ve[xe.en_PH]="English (Philippines)",Ve[xe.en_CZ]="English (Czech Republic)",Ve[xe.en_CA]="English (Canada)",Ve[xe.en_MM]="English (Myanmar)",Ve[xe.en_US]="English (United States)",Ve[xe.en_BD]="English (Bangladesh)",Ve[xe.en_MY]="English (Malaysia)",Ve[xe.en_NP]="English (Nepal)",Ve[xe.en_LK]="English (Sri Lanka)",Ve[xe.en_TH]="English (Thailand)",Ve[xe.en_ES]="English (Spain)",Ve[xe.en_SG]="English (Singapore)",Ve[xe.en_HU]="English (Hungary)",Ve[xe.en_ID]="English (Indonesia)",Ve[xe.en_GB]="English (Great Britain)",Ve[xe.en_VN]="English (Vietnam)",Ve[xe.en_HK]="English (Hong Kong)",Ve[xe.en_KR]="English (Korea)",Ve[xe.zh_TW]="繁体中文 (中國台灣)",Ve[xe.zh_HK]="繁体中文 (中國香港)",Ve[xe.zh_SG]="简体中文 (新加坡)",Ve[xe.zh_CN]="简体中文",Ve[xe.ar_IQ]="العربية (العراق)",Ve[xe.ckb_IQ]="کوردیی ناوەندی (عێراق)",Ve[xe.ku]="کورمانجی",Ve[xe.kk_KZ]="قازاقشا ",Ve[xe.af]="Afrikaans",Ve[xe.am]="አማርኛ",Ve[xe.az]="Azərbaycan",Ve[xe.be]="беларуская мова",Ve[xe.bg]="Български",Ve[xe.bs]="босански",Ve[xe.ca]="Català",Ve[xe.cy]="Cymraeg",Ve[xe.el]="Ελληνικά",Ve[xe.eo]="Esperanto",Ve[xe.et]="eesti keel",Ve[xe.eu]="Euskara",Ve[xe.fa]="فارسی",Ve[xe.fi]="Suomi",Ve[xe.gd]="Gaeilge",Ve[xe.gl]="Galego",Ve[xe.ha]="هَوُسَ",Ve[xe.haw]="ʻŌlelo Hawaiʻi",Ve[xe.hr]="Hrvatski",Ve[xe.ig]="Asụsụ Igbo",Ve[xe.is]="Íslenska",Ve[xe.ka]="ქართული",Ve[xe.km]="ភាសាខ្មែរ",Ve[xe.ky]="кыргыз тили",Ve[xe.lb]="Lëtzebuergesch",Ve[xe.ln]="Lingála",Ve[xe.lt]="lietuvių kalba",Ve[xe.lv]="Latviešu valoda",Ve[xe.mg]="malagasy",Ve[xe.mk]="македонски",Ve[xe.mn]="монгол хэл",Ve[xe.mt]="Malti",Ve[xe.om]="Oromoo",Ve[xe.ps]="پښتو",Ve[xe.qu]="Quechua",Ve[xe.rw]="Ikinyarwanda",Ve[xe.sl]="slovenščina",Ve[xe.so]="Af-Soomaali",Ve[xe.sq]="Gjuha shqipe",Ve[xe.sw]="Kiswahili",Ve[xe.tg]="тоҷикӣ",Ve[xe.ti]="ትግርኛ",Ve[xe.ug]="ئۇيغۇر تىلى",Ve[xe.uz]="Ўзбек тили",Ve[xe.yo]="Èdè Yorùbá",Ve[xe.zu]="isiZulu",Ue.AiSelected,(Ee={})[xe.en_US]="AI Selected",Ee[xe.zh_CN]="AI 精选",(we={})[xe.en_US]="AI selection of translations",we[xe.zh_CN]="多渠道翻译的 AI 精选",Ye.AiSelected,Ke.AiSelected,(Se={})[xe.en_US]="Use ChatGPT 4.0 to compare and select translation results from multiple sources.\nThe translated content will undergo risk control review and may return blank, please check carefully.",Se[xe.zh_CN]="利用 ChatGPT 4.0 进行多渠道翻译结果的对比和精选;\n翻译内容会经过风控审核,可能会返回空内容,请仔细检查;",(Te={})[xe.en_US]="Use ChatGPT 4.0 to compare and select translation results from multiple sources.\nThe translated content will undergo risk control review and may return blank, please check carefully.",Te[xe.zh_CN]="利用 ChatGPT 4.0 进行多渠道翻译结果的对比和精选;\n翻译内容会经过风控审核,可能会返回空内容,请仔细检查;",Ue["ChatGPT3.5"],(Ae={})[xe.en_US]="GPT-3.5",Ae[xe.zh_CN]="GPT-3.5",(Re={})[xe.en_US]="The translated content will undergo risk control review and may return blank, please check carefully.",Re[xe.zh_CN]="翻译内容会经过风控审核,可能会返回空内容,请仔细检查",(Pe={})[xe.en_US]="The translated content will undergo risk control review and may return blank, please check carefully.",Pe[xe.zh_CN]="翻译内容会经过风控审核,可能会返回空内容,请仔细检查",Ye["ChatGPT3.5"],Ke["ChatGPT3.5"],Ue.Aliyun,(Le={})[xe.en_US]="Alibaba",Le[xe.zh_CN]="阿里云",Ye.Aliyun,Ke.Aliyun,Ue.Google,(ke={})[xe.en_US]="Google",ke[xe.zh_CN]="Google",Ye.Google,Ke.Google,Ue.DeepL,(Ne={})[xe.en_US]="DeepL",Ne[xe.zh_CN]="DeepL",Ye.DeepL,Ke.DeepL,Ue.Microsoft,(Oe={})[xe.en_US]="Azure AI",Oe[xe.zh_CN]="Azure AI",Ye.Microsoft,Ke.Microsoft,Ue.Amazon,(Ie={})[xe.en_US]="Amazon",Ie[xe.zh_CN]="Amazon",Ye.Amazon,Ke.Amazon,Ue.Papago,(Ce={})[xe.en_US]="Papago",Ce[xe.zh_CN]="Papago",(Me={})[xe.en_US]="Papago does not support translating HTML and will automatically skip HTML content during batch translation.",Me[xe.zh_CN]="Papago 不支持翻译 HTML,在批量翻译时会自动跳过 HTML 内容",(De={})[xe.en_US]="Papago does not support HTML. Available locales are Chinese, Japanese, Korean, and English. Please check the translation results carefully.",De[xe.zh_CN]="Papago 不支持翻译 HTML,仅支持翻译中、日、韩、英,请仔细检查翻译结果",Ye.Papago,Ke.Papago;var qe=Object.keys($).map((function(e){return $[e]})),Je=/^##@@@(.+?)##(.+?)@@@##(.+?)@@@##$/,Xe=function(e,t){return(Xe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function Ze(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Xe(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var Qe,$e,et,tt=function(){return(tt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function nt(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}function rt(e){return e.type===$e.literal}function it(e){return e.type===$e.argument}function ot(e){return e.type===$e.number}function at(e){return e.type===$e.date}function st(e){return e.type===$e.time}function ut(e){return e.type===$e.select}function ct(e){return e.type===$e.plural}function lt(e){return e.type===$e.pound}function ht(e){return e.type===$e.tag}function ft(e){return!(!e||"object"!=L()(e)||e.type!==et.number)}function dt(e){return!(!e||"object"!=L()(e)||e.type!==et.dateTime)}"function"==typeof SuppressedError&&SuppressedError,function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"}(Qe||(Qe={})),function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"}($e||($e={})),function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"}(et||(et={}));var pt=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,gt=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function vt(e){var t={};return e.replace(gt,(function(e){var n=e.length;switch(e[0]){case"G":t.era=4===n?"long":5===n?"narrow":"short";break;case"y":t.year=2===n?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][n-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][n-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=4===n?"short":5===n?"narrow":"short";break;case"e":if(n<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"c":if(n<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][n-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][n-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][n-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][n-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][n-1];break;case"s":t.second=["numeric","2-digit"][n-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=n<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""})),t}var mt=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,yt=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,_t=/^(@+)?(\+|#+)?[rs]?$/g,bt=/(\*)(0+)|(#+)(0+)|(0+)/g,Et=/^(0+)$/;function wt(e){var t={};return"r"===e[e.length-1]?t.roundingPriority="morePrecision":"s"===e[e.length-1]&&(t.roundingPriority="lessPrecision"),e.replace(_t,(function(e,n,r){return"string"!=typeof r?(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length):"+"===r?t.minimumSignificantDigits=n.length:"#"===n[0]?t.maximumSignificantDigits=n.length:(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length+("string"==typeof r?r.length:0)),""})),t}function St(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function Tt(e){var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var n=e.slice(0,2);if("+!"===n?(t.signDisplay="always",e=e.slice(2)):"+?"===n&&(t.signDisplay="exceptZero",e=e.slice(2)),!Et.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function At(e){return St(e)||{}}function Rt(e){for(var t={},n=0,r=e;n<r.length;n++){var i=r[n];switch(i.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=i.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=i.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=tt(tt(tt({},t),{notation:"scientific"}),i.options.reduce((function(e,t){return tt(tt({},e),At(t))}),{}));continue;case"engineering":t=tt(tt(tt({},t),{notation:"engineering"}),i.options.reduce((function(e,t){return tt(tt({},e),At(t))}),{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(i.options[0]);continue;case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(bt,(function(e,n,r,i,o,a){if(n)t.minimumIntegerDigits=r.length;else{if(i&&o)throw new Error("We currently do not support maximum integer digits");if(a)throw new Error("We currently do not support exact integer digits")}return""}));continue}if(Et.test(i.stem))t.minimumIntegerDigits=i.stem.length;else if(yt.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(yt,(function(e,n,r,i,o,a){return"*"===r?t.minimumFractionDigits=n.length:i&&"#"===i[0]?t.maximumFractionDigits=i.length:o&&a?(t.minimumFractionDigits=o.length,t.maximumFractionDigits=o.length+a.length):(t.minimumFractionDigits=n.length,t.maximumFractionDigits=n.length),""}));var o=i.options[0];"w"===o?t=tt(tt({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=tt(tt({},t),wt(o)))}else if(_t.test(i.stem))t=tt(tt({},t),wt(i.stem));else{var a=St(i.stem);a&&(t=tt(tt({},t),a));var s=Tt(i.stem);s&&(t=tt(tt({},t),s))}}return t}var Pt,Lt={"001":["H","h"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["H","h","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["H","hB","h","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["H","h","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["H","hB","h","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["H","h","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["H","h","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["H","h","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["H","h","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["H","hB","h","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["H","h","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["H","h","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["H","h","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function kt(e){var t=e.hourCycle;if(void 0===t&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var n,r=e.language;return"root"!==r&&(n=e.maximize().region),(Lt[n||""]||Lt[r||""]||Lt["".concat(r,"-001")]||Lt["001"])[0]}var Nt=new RegExp("^".concat(pt.source,"*")),Ot=new RegExp("".concat(pt.source,"*$"));function It(e,t){return{start:e,end:t}}var Ct=!!String.prototype.startsWith&&"_a".startsWith("a",1),Mt=!!String.fromCodePoint,Dt=!!Object.fromEntries,xt=!!String.prototype.codePointAt,Bt=!!String.prototype.trimStart,Ut=!!String.prototype.trimEnd,Ht=Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},jt=!0;try{jt="a"===(null===(Pt=qt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===Pt?void 0:Pt[0])}catch($){jt=!1}var zt,Gt=Ct?function(e,t,n){return e.startsWith(t,n)}:function(e,t,n){return e.slice(n,n+t.length)===t},Kt=Mt?String.fromCodePoint:function(){for(var e=arguments,t=[],n=0;n<arguments.length;n++)t[n]=e[n];for(var r,i="",o=t.length,a=0;o>a;){if((r=t[a++])>1114111)throw RangeError(r+" is not a valid code point");i+=r<65536?String.fromCharCode(r):String.fromCharCode(55296+((r-=65536)>>10),r%1024+56320)}return i},Yt=Dt?Object.fromEntries:function(e){for(var t={},n=0,r=e;n<r.length;n++){var i=r[n],o=i[0],a=i[1];t[o]=a}return t},Ft=xt?function(e,t){return e.codePointAt(t)}:function(e,t){var n=e.length;if(!(t<0||t>=n)){var r,i=e.charCodeAt(t);return i<55296||i>56319||t+1===n||(r=e.charCodeAt(t+1))<56320||r>57343?i:r-56320+(i-55296<<10)+65536}},Wt=Bt?function(e){return e.trimStart()}:function(e){return e.replace(Nt,"")},Vt=Ut?function(e){return e.trimEnd()}:function(e){return e.replace(Ot,"")};function qt(e,t){return new RegExp(e,t)}if(jt){var Jt=qt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");zt=function(e,t){var n;return Jt.lastIndex=t,null!==(n=Jt.exec(e)[1])&&void 0!==n?n:""}}else zt=function(e,t){for(var n=[];;){var r=Ft(e,t);if(void 0===r||Qt(r)||$t(r))break;n.push(r),t+=r>=65536?2:1}return Kt.apply(void 0,n)};var Xt=function(){function e(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}return e.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(e,t,n){for(var r=[];!this.isEOF();){var i=this.char();if(123===i){if((o=this.parseArgument(e,n)).err)return o;r.push(o.val)}else{if(125===i&&e>0)break;if(35!==i||"plural"!==t&&"selectordinal"!==t){if(60===i&&!this.ignoreTag&&47===this.peek()){if(n)break;return this.error(Qe.UNMATCHED_CLOSING_TAG,It(this.clonePosition(),this.clonePosition()))}if(60===i&&!this.ignoreTag&&Zt(this.peek()||0)){if((o=this.parseTag(e,t)).err)return o;r.push(o.val)}else{var o;if((o=this.parseLiteral(e,t)).err)return o;r.push(o.val)}}else{var a=this.clonePosition();this.bump(),r.push({type:$e.pound,location:It(a,this.clonePosition())})}}}return{val:r,err:null}},e.prototype.parseTag=function(e,t){var n=this.clonePosition();this.bump();var r=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:$e.literal,value:"<".concat(r,"/>"),location:It(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var i=this.parseMessage(e+1,t,!0);if(i.err)return i;var o=i.val,a=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Zt(this.char()))return this.error(Qe.INVALID_TAG,It(a,this.clonePosition()));var s=this.clonePosition();return r!==this.parseTagName()?this.error(Qe.UNMATCHED_CLOSING_TAG,It(s,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:$e.tag,value:r,children:o,location:It(n,this.clonePosition())},err:null}:this.error(Qe.INVALID_TAG,It(a,this.clonePosition())))}return this.error(Qe.UNCLOSED_TAG,It(n,this.clonePosition()))}return this.error(Qe.INVALID_TAG,It(n,this.clonePosition()))},e.prototype.parseTagName=function(){var e,t=this.offset();for(this.bump();!this.isEOF()&&(45===(e=this.char())||46===e||e>=48&&e<=57||95===e||e>=97&&e<=122||e>=65&&e<=90||183==e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039);)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(e,t){for(var n=this.clonePosition(),r="";;){var i=this.tryParseQuote(t);if(i)r+=i;else{var o=this.tryParseUnquoted(e,t);if(o)r+=o;else{var a=this.tryParseLeftAngleBracket();if(!a)break;r+=a}}}var s=It(n,this.clonePosition());return{val:{type:$e.literal,value:r,location:s},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(Zt(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},e.prototype.tryParseQuote=function(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(39===n){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(n);this.bump()}return Kt.apply(void 0,t)},e.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var n=this.char();return 60===n||123===n||35===n&&("plural"===t||"selectordinal"===t)||125===n&&e>0?null:(this.bump(),Kt(n))},e.prototype.parseArgument=function(e,t){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(Qe.EXPECT_ARGUMENT_CLOSING_BRACE,It(n,this.clonePosition()));if(125===this.char())return this.bump(),this.error(Qe.EMPTY_ARGUMENT,It(n,this.clonePosition()));var r=this.parseIdentifierIfPossible().value;if(!r)return this.error(Qe.MALFORMED_ARGUMENT,It(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(Qe.EXPECT_ARGUMENT_CLOSING_BRACE,It(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:$e.argument,value:r,location:It(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(Qe.EXPECT_ARGUMENT_CLOSING_BRACE,It(n,this.clonePosition())):this.parseArgumentOptions(e,t,r,n);default:return this.error(Qe.MALFORMED_ARGUMENT,It(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),n=zt(this.message,t),r=t+n.length;return this.bumpTo(r),{value:n,location:It(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,n,r){var i,o=this.clonePosition(),a=this.parseIdentifierIfPossible().value,s=this.clonePosition();switch(a){case"":return this.error(Qe.EXPECT_ARGUMENT_TYPE,It(o,s));case"number":case"date":case"time":this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition();if((m=this.parseSimpleArgStyleIfPossible()).err)return m;if(0===(d=Vt(m.val)).length)return this.error(Qe.EXPECT_ARGUMENT_STYLE,It(this.clonePosition(),this.clonePosition()));u={style:d,styleLocation:It(c,this.clonePosition())}}if((y=this.tryParseArgumentClose(r)).err)return y;var l=It(r,this.clonePosition());if(u&&Gt(null==u?void 0:u.style,"::",0)){var h=Wt(u.style.slice(2));if("number"===a)return(m=this.parseNumberSkeletonFromString(h,u.styleLocation)).err?m:{val:{type:$e.number,value:n,location:l,style:m.val},err:null};if(0===h.length)return this.error(Qe.EXPECT_DATE_TIME_SKELETON,l);var f=h;this.locale&&(f=function(e,t){for(var n="",r=0;r<e.length;r++){var i=e.charAt(r);if("j"===i){for(var o=0;r+1<e.length&&e.charAt(r+1)===i;)o++,r++;var a=1+(1&o),s=o<2?1:3+(o>>1),u=kt(t);for("H"!=u&&"k"!=u||(s=0);s-- >0;)n+="a";for(;a-- >0;)n=u+n}else n+="J"===i?"H":i}return n}(h,this.locale));var d={type:et.dateTime,pattern:f,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?vt(f):{}};return{val:{type:"date"===a?$e.date:$e.time,value:n,location:l,style:d},err:null}}return{val:{type:"number"===a?$e.number:"date"===a?$e.date:$e.time,value:n,location:l,style:null!==(i=null==u?void 0:u.style)&&void 0!==i?i:null},err:null};case"plural":case"selectordinal":case"select":var p=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(Qe.EXPECT_SELECT_ARGUMENT_OPTIONS,It(p,tt({},p)));this.bumpSpace();var g=this.parseIdentifierIfPossible(),v=0;if("select"!==a&&"offset"===g.value){if(!this.bumpIf(":"))return this.error(Qe.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,It(this.clonePosition(),this.clonePosition()));var m;if(this.bumpSpace(),(m=this.tryParseDecimalInteger(Qe.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Qe.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return m;this.bumpSpace(),g=this.parseIdentifierIfPossible(),v=m.val}var y,_=this.tryParsePluralOrSelectOptions(e,a,t,g);if(_.err)return _;if((y=this.tryParseArgumentClose(r)).err)return y;var b=It(r,this.clonePosition());return"select"===a?{val:{type:$e.select,value:n,options:Yt(_.val),location:b},err:null}:{val:{type:$e.plural,value:n,options:Yt(_.val),offset:v,pluralType:"plural"===a?"cardinal":"ordinal",location:b},err:null};default:return this.error(Qe.INVALID_ARGUMENT_TYPE,It(o,s))}},e.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(Qe.EXPECT_ARGUMENT_CLOSING_BRACE,It(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var n=this.clonePosition();if(!this.bumpUntil("'"))return this.error(Qe.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,It(n,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(e>0))return{val:this.message.slice(t.offset,this.offset()),err:null};e-=1;break;default:this.bump()}return{val:this.message.slice(t.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(e,t){var n=[];try{n=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=[],n=0,r=e.split(mt).filter((function(e){return e.length>0}));n<r.length;n++){var i=r[n].split("/");if(0===i.length)throw new Error("Invalid number skeleton");for(var o=i[0],a=i.slice(1),s=0,u=a;s<u.length;s++)if(0===u[s].length)throw new Error("Invalid number skeleton");t.push({stem:o,options:a})}return t}(e)}catch(e){return this.error(Qe.INVALID_NUMBER_SKELETON,t)}return{val:{type:et.number,tokens:n,location:t,parsedOptions:this.shouldParseSkeletons?Rt(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(e,t,n,r){for(var i,o=!1,a=[],s=new Set,u=r.value,c=r.location;;){if(0===u.length){var l=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var h=this.tryParseDecimalInteger(Qe.EXPECT_PLURAL_ARGUMENT_SELECTOR,Qe.INVALID_PLURAL_ARGUMENT_SELECTOR);if(h.err)return h;c=It(l,this.clonePosition()),u=this.message.slice(l.offset,this.offset())}if(s.has(u))return this.error("select"===t?Qe.DUPLICATE_SELECT_ARGUMENT_SELECTOR:Qe.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);"other"===u&&(o=!0),this.bumpSpace();var f=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?Qe.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:Qe.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,It(this.clonePosition(),this.clonePosition()));var d=this.parseMessage(e+1,t,n);if(d.err)return d;var p=this.tryParseArgumentClose(f);if(p.err)return p;a.push([u,{value:d.val,location:It(f,this.clonePosition())}]),s.add(u),this.bumpSpace(),u=(i=this.parseIdentifierIfPossible()).value,c=i.location}return 0===a.length?this.error("select"===t?Qe.EXPECT_SELECT_ARGUMENT_SELECTOR:Qe.EXPECT_PLURAL_ARGUMENT_SELECTOR,It(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(Qe.MISSING_OTHER_CLAUSE,It(this.clonePosition(),this.clonePosition())):{val:a,err:null}},e.prototype.tryParseDecimalInteger=function(e,t){var n=1,r=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var i=!1,o=0;!this.isEOF();){var a=this.char();if(!(a>=48&&a<=57))break;i=!0,o=10*o+(a-48),this.bump()}var s=It(r,this.clonePosition());return i?Ht(o*=n)?{val:o,err:null}:this.error(t,s):this.error(e,s)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=Ft(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},e.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},e.prototype.bump=function(){if(!this.isEOF()){var e=this.char();10===e?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}},e.prototype.bumpIf=function(e){if(Gt(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(e){var t=this.offset(),n=this.message.indexOf(e,t);return n>=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(t>e)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&Qt(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),n=this.message.charCodeAt(t+(e>=65536?2:1));return null!=n?n:null},e}();function Zt(e){return e>=97&&e<=122||e>=65&&e<=90}function Qt(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}function $t(e){return e>=33&&e<=35||36===e||e>=37&&e<=39||40===e||41===e||42===e||43===e||44===e||45===e||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||91===e||92===e||93===e||94===e||96===e||123===e||124===e||125===e||126===e||161===e||e>=162&&e<=165||166===e||167===e||169===e||171===e||172===e||174===e||176===e||177===e||182===e||187===e||191===e||215===e||247===e||e>=8208&&e<=8213||e>=8214&&e<=8215||8216===e||8217===e||8218===e||e>=8219&&e<=8220||8221===e||8222===e||8223===e||e>=8224&&e<=8231||e>=8240&&e<=8248||8249===e||8250===e||e>=8251&&e<=8254||e>=8257&&e<=8259||8260===e||8261===e||8262===e||e>=8263&&e<=8273||8274===e||8275===e||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||8608===e||e>=8609&&e<=8610||8611===e||e>=8612&&e<=8613||8614===e||e>=8615&&e<=8621||8622===e||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||8658===e||8659===e||8660===e||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||8968===e||8969===e||8970===e||8971===e||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||9001===e||9002===e||e>=9003&&e<=9083||9084===e||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||9655===e||e>=9656&&e<=9664||9665===e||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||9839===e||e>=9840&&e<=10087||10088===e||10089===e||10090===e||10091===e||10092===e||10093===e||10094===e||10095===e||10096===e||10097===e||10098===e||10099===e||10100===e||10101===e||e>=10132&&e<=10175||e>=10176&&e<=10180||10181===e||10182===e||e>=10183&&e<=10213||10214===e||10215===e||10216===e||10217===e||10218===e||10219===e||10220===e||10221===e||10222===e||10223===e||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||10627===e||10628===e||10629===e||10630===e||10631===e||10632===e||10633===e||10634===e||10635===e||10636===e||10637===e||10638===e||10639===e||10640===e||10641===e||10642===e||10643===e||10644===e||10645===e||10646===e||10647===e||10648===e||e>=10649&&e<=10711||10712===e||10713===e||10714===e||10715===e||e>=10716&&e<=10747||10748===e||10749===e||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||11158===e||e>=11159&&e<=11263||e>=11776&&e<=11777||11778===e||11779===e||11780===e||11781===e||e>=11782&&e<=11784||11785===e||11786===e||11787===e||11788===e||11789===e||e>=11790&&e<=11798||11799===e||e>=11800&&e<=11801||11802===e||11803===e||11804===e||11805===e||e>=11806&&e<=11807||11808===e||11809===e||11810===e||11811===e||11812===e||11813===e||11814===e||11815===e||11816===e||11817===e||e>=11818&&e<=11822||11823===e||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||11840===e||11841===e||11842===e||e>=11843&&e<=11855||e>=11856&&e<=11857||11858===e||e>=11859&&e<=11903||e>=12289&&e<=12291||12296===e||12297===e||12298===e||12299===e||12300===e||12301===e||12302===e||12303===e||12304===e||12305===e||e>=12306&&e<=12307||12308===e||12309===e||12310===e||12311===e||12312===e||12313===e||12314===e||12315===e||12316===e||12317===e||e>=12318&&e<=12319||12320===e||12336===e||64830===e||64831===e||e>=65093&&e<=65094}function en(e,t){void 0===t&&(t={}),t=tt({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new Xt(e,t).parse();if(n.err){var r=SyntaxError(Qe[n.err.kind]);throw r.location=n.err.location,r.originalMessage=n.err.message,r}return(null==t?void 0:t.captureLocation)||function e(t){t.forEach((function(t){if(delete t.location,ut(t)||ct(t))for(var n in t.options)delete t.options[n].location,e(t.options[n].value);else ot(t)&&ft(t.style)||(at(t)||st(t))&&dt(t.style)?delete t.style.location:ht(t)&&e(t.children)}))}(n.val),n.val}function tn(e,t){var n=t&&t.cache?t.cache:ln,r=t&&t.serializer?t.serializer:sn;return(t&&t.strategy?t.strategy:an)(e,{cache:n,serializer:r})}function nn(e,t,n,r){var i=function(e){return null==e||"number"==typeof e||"boolean"==typeof e}(r)?r:n(r),o=t.get(i);return void 0===o&&(o=e.call(this,r),t.set(i,o)),o}function rn(e,t,n){var r=Array.prototype.slice.call(arguments,3),i=n(r),o=t.get(i);return void 0===o&&(o=e.apply(this,r),t.set(i,o)),o}function on(e,t,n,r,i){return n.bind(t,e,r,i)}function an(e,t){return on(e,this,1===e.length?nn:rn,t.cache.create(),t.serializer)}var sn=function(){return JSON.stringify(arguments)};function un(){this.cache=Object.create(null)}un.prototype.get=function(e){return this.cache[e]},un.prototype.set=function(e,t){this.cache[e]=t};var cn,ln={create:function(){return new un}},hn={variadic:function(e,t){return on(e,this,rn,t.cache.create(),t.serializer)},monadic:function(e,t){return on(e,this,nn,t.cache.create(),t.serializer)}};!function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"}(cn||(cn={}));var fn,dn=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.code=n,i.originalMessage=r,i}return Ze(t,e),t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),pn=function(e){function t(t,n,r,i){return e.call(this,'Invalid values for "'.concat(t,'": "').concat(n,'". Options are "').concat(Object.keys(r).join('", "'),'"'),cn.INVALID_VALUE,i)||this}return Ze(t,e),t}(dn),gn=function(e){function t(t,n,r){return e.call(this,'Value for "'.concat(t,'" must be of type ').concat(n),cn.INVALID_VALUE,r)||this}return Ze(t,e),t}(dn),vn=function(e){function t(t,n){return e.call(this,'The intl string context variable "'.concat(t,'" was not provided to the string "').concat(n,'"'),cn.MISSING_VALUE,n)||this}return Ze(t,e),t}(dn);function mn(e){return"function"==typeof e}function yn(e,t,n,r,i,o,a){if(1===e.length&&rt(e[0]))return[{type:fn.literal,value:e[0].value}];for(var s=[],u=0,c=e;u<c.length;u++){var l=c[u];if(rt(l))s.push({type:fn.literal,value:l.value});else if(lt(l))"number"==typeof o&&s.push({type:fn.literal,value:n.getNumberFormat(t).format(o)});else{var h=l.value;if(!i||!(h in i))throw new vn(h,a);var f=i[h];if(it(l))f&&"string"!=typeof f&&"number"!=typeof f||(f="string"==typeof f||"number"==typeof f?String(f):""),s.push({type:"string"==typeof f?fn.literal:fn.object,value:f});else if(at(l)){var d="string"==typeof l.style?r.date[l.style]:dt(l.style)?l.style.parsedOptions:void 0;s.push({type:fn.literal,value:n.getDateTimeFormat(t,d).format(f)})}else if(st(l))d="string"==typeof l.style?r.time[l.style]:dt(l.style)?l.style.parsedOptions:r.time.medium,s.push({type:fn.literal,value:n.getDateTimeFormat(t,d).format(f)});else if(ot(l))(d="string"==typeof l.style?r.number[l.style]:ft(l.style)?l.style.parsedOptions:void 0)&&d.scale&&(f*=d.scale||1),s.push({type:fn.literal,value:n.getNumberFormat(t,d).format(f)});else{if(ht(l)){var p=l.children,g=l.value,v=i[g];if(!mn(v))throw new gn(g,"function",a);var m=v(yn(p,t,n,r,i,o).map((function(e){return e.value})));Array.isArray(m)||(m=[m]),s.push.apply(s,m.map((function(e){return{type:"string"==typeof e?fn.literal:fn.object,value:e}})))}if(ut(l)){if(!(y=l.options[f]||l.options.other))throw new pn(l.value,f,Object.keys(l.options),a);s.push.apply(s,yn(y.value,t,n,r,i))}else if(ct(l)){var y;if(!(y=l.options["=".concat(f)])){if(!Intl.PluralRules)throw new dn('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',cn.MISSING_INTL_API,a);var _=n.getPluralRules(t,{type:l.pluralType}).select(f-(l.offset||0));y=l.options[_]||l.options.other}if(!y)throw new pn(l.value,f,Object.keys(l.options),a);s.push.apply(s,yn(y.value,t,n,r,i,f-(l.offset||0)))}}}}return function(e){return e.length<2?e:e.reduce((function(e,t){var n=e[e.length-1];return n&&n.type===fn.literal&&t.type===fn.literal?n.value+=t.value:e.push(t),e}),[])}(s)}function _n(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}!function(e){e[e.literal=0]="literal",e[e.object=1]="object"}(fn||(fn={}));var bn=function(){function e(t,n,r,i){void 0===n&&(n=e.defaultLocale);var o,a=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var t=a.formatToParts(e);if(1===t.length)return t[0].value;var n=t.reduce((function(e,t){return e.length&&t.type===fn.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e}),[]);return n.length<=1?n[0]||"":n},this.formatToParts=function(e){return yn(a.ast,a.locales,a.formatters,a.formats,e,void 0,a.message)},this.resolvedOptions=function(){var e;return{locale:(null===(e=a.resolvedLocale)||void 0===e?void 0:e.toString())||Intl.NumberFormat.supportedLocalesOf(a.locales)[0]}},this.getAst=function(){return a.ast},this.locales=n,this.resolvedLocale=e.resolveLocale(n),"string"==typeof t){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var s=i||{},u=(s.formatters,function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}(s,["formatters"]));this.ast=e.__parse(t,tt(tt({},u),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=function(e,t){return t?Object.keys(e).reduce((function(n,r){var i,o;return n[r]=(i=e[r],(o=t[r])?tt(tt(tt({},i||{}),o||{}),Object.keys(i).reduce((function(e,t){return e[t]=tt(tt({},i[t]),o[t]||{}),e}),{})):i),n}),tt({},e)):e}(e.formats,r),this.formatters=i&&i.formatters||(void 0===(o=this.formatterCache)&&(o={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:tn((function(){for(var e,t=arguments,n=[],r=0;r<arguments.length;r++)n[r]=t[r];return new((e=Intl.NumberFormat).bind.apply(e,nt([void 0],n,!1)))}),{cache:_n(o.number),strategy:hn.variadic}),getDateTimeFormat:tn((function(){for(var e,t=arguments,n=[],r=0;r<arguments.length;r++)n[r]=t[r];return new((e=Intl.DateTimeFormat).bind.apply(e,nt([void 0],n,!1)))}),{cache:_n(o.dateTime),strategy:hn.variadic}),getPluralRules:tn((function(){for(var e,t=arguments,n=[],r=0;r<arguments.length;r++)n[r]=t[r];return new((e=Intl.PluralRules).bind.apply(e,nt([void 0],n,!1)))}),{cache:_n(o.pluralRules),strategy:hn.variadic})})}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(e){if(void 0!==Intl.Locale){var t=Intl.NumberFormat.supportedLocalesOf(e);return t.length>0?new Intl.Locale(t[0]):new Intl.Locale("string"==typeof e?e:e[0])}},e.__parse=en,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();function En(e){for(var t=arguments,n=1;n<arguments.length;n++){var r=t[n];for(var i in r)e[i]=r[i]}return e}var wn=function e(t,n){function r(e,r,i){if("undefined"!=typeof document){"number"==typeof(i=En({},n,i)).expires&&(i.expires=new Date(Date.now()+864e5*i.expires)),i.expires&&(i.expires=i.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var o="";for(var a in i)i[a]&&(o+="; "+a,!0!==i[a]&&(o+="="+i[a].split(";")[0]));return document.cookie=e+"="+t.write(r,e)+o}}return Object.create({set:r,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var n=document.cookie?document.cookie.split("; "):[],r={},i=0;i<n.length;i++){var o=n[i].split("="),a=o.slice(1).join("=");try{var s=decodeURIComponent(o[0]);if(r[s]=t.read(a,s),e===s)break}catch(e){}}return e?r[e]:r}},remove:function(e,t){r(e,"",En({},t,{expires:-1}))},withAttributes:function(t){return e(this.converter,En({},this.attributes,t))},withConverter:function(t){return e(En({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(n)},converter:{value:Object.freeze(t)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"}),Sn=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];console.warn.apply(console,e)},Tn=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];console.error.apply(console,e)},An=function(){return"object"==("undefined"==typeof ac?"undefined":L()(ac))&&"function"==typeof ac.call},Rn=function(){return"undefined"!=typeof my&&void 0!==my.canIUse&&!An()},Pn=function(){return"object"==("undefined"==typeof window?"undefined":L()(window))},Ln=function(){return function(){var e;return!!Pn()&&((null===(e=window.navigator)||void 0===e?void 0:e.userAgent)||"").toLowerCase().indexOf("alipayclient")>-1}()||Pn()&&"undefined"!=typeof AlipayJSBridge},kn=function(){return"undefined"!=typeof wx&&void 0!==wx.canIUse},Nn=function(){return!(void 0===n.g||Pn()||Rn()||kn()||An())},On="bailingualLocaleChange",In="bailingualDataChange",Cn="bailingualError";function Mn(e){void 0===e&&(e="");for(var t=(function(e){if("object"==("undefined"==typeof document?"undefined":L()(document)))try{return wn.get(e)||wn.get("_CHIPS-"+e)}catch(e){return Sn("[bailingual-sdk-glue] readCookie fail: "+e),""}}(e)||"").split("&"),n=0,r=t.length;n<r;n++){var i=t[n].split("="),o=i[0],a=i[1];if("lang"===o)return a}}var Dn,xn=function(e){if(void 0===e&&(e=""),e=e.replace("_","-"),Ln()||Rn()||An()){var t=ye[e.toLowerCase()];t&&(e=t)}var n=e.split("-"),r=n[0],i=n[1];return i&&(e=r.toLowerCase()+"-"+i.toUpperCase()),me[e.toLowerCase()]&&(e=me[e.toLowerCase()]),Zn(qe,e)?e:""};function Bn(e){return void 0===e&&(e=!0),xn(function(e){return void 0===e&&(e=!0),Rn()||An()?my.env&&my.env.language||my.getSystemInfoSync().language:kn()?wx.getSystemInfoSync().language:Nn()?n.g.BAILINGUAL_LOCALE:!!e&&function(){var e=Mn("x-hng")||Mn("hng");if(e)return e}()||function(){var e;if("object"==("undefined"==typeof document?"undefined":L()(document))){var t=null===(e=document.documentElement)||void 0===e?void 0:e.lang;if(t)return t}}()||function(){var e;if(Pn()){var t=(null===(e=window.navigator)||void 0===e?void 0:e.userAgent)||"",n=(/Language\/([^\s]*)/i.exec(t)||[]).pop();if(n)return n}}()||function(){var e;if(Pn()&&window.navigator){var t=window.navigator,n=(null===(e=t.languages)||void 0===e?void 0:e[0])||t.language||t.userLanguage||t.browserLanguage;if(n)return n}}()}(e)||"")}function Un(e,t,n){void 0===n&&(n={});try{"object"==("undefined"==typeof document?"undefined":L()(document))&&wn.set(e,t,n)}catch(e){Sn("[bailingual-sdk-glue] writeCookie fail: "+e)}}function Hn(e,t){void 0===t&&(t={});try{"object"==("undefined"==typeof document?"undefined":L()(document))&&wn.remove(e,t)}catch(e){Sn("[bailingual-sdk-glue] writeCookie fail: "+e)}}function jn(){"object"==("undefined"==typeof document?"undefined":L()(document))&&"object"==("undefined"==typeof location?"undefined":L()(location))&&(Hn("x-hng",{path:"/",domain:location.hostname}),Hn("x-hng",{path:"/",domain:location.hostname,SameSite:"None",Secure:!0}),Hn("_CHIPS-x-hng",{path:"/",domain:location.hostname,SameSite:"None",Secure:!0,Partitioned:!0}),Hn("x-hng",{path:"/"}),Hn("x-hng",{path:"/",SameSite:"None",Secure:!0}),Hn("_CHIPS-x-hng",{path:"/",SameSite:"None",Secure:!0,Partitioned:!0}))}!function(e){e.FORMAT_ERROR="FORMAT_ERROR",e.MISSING_PARAM="MISSING_PARAM"}(Dn||(Dn={}));var zn,Gn,Kn,Yn,Fn,Wn,Vn,qn,Jn=function(e){var t=e.code,n=e.message,r=e.err,i=e.textKey;this.code=t,this.message=n||(null==r?void 0:r.message)||"unknown error",this.stack=(null==r?void 0:r.stack)||r,this.textKey=i},Xn=function(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return t.forEach((function(t){Object.keys(t||{}).forEach((function(n){e[n]=t[n]}))})),e},Zn=function(e,t){return e.indexOf(t)>-1};function Qn(e){var t,n;try{return Gn?(null===(t=Gn.getItem)||void 0===t?void 0:t.call(Gn,e))||"":Rn()||An()?(null===(n=my.getStorageSync({key:e}))||void 0===n?void 0:n.data)||"":kn()?wx.getStorageSync(e)||"":"object"==("undefined"==typeof localStorage?"undefined":L()(localStorage))&&localStorage.getItem(e)||""}catch(e){return""}}function $n(e,t){var n;try{if(t=(t||"").toString(),Gn)return void(null===(n=Gn.setItem)||void 0===n||n.call(Gn,e,t));if(Rn()||An())return void my.setStorage({key:e,data:t});if(kn())return void wx.setStorage({key:e,data:t});"object"==("undefined"==typeof localStorage?"undefined":L()(localStorage))&&localStorage.setItem(e,t)}catch(e){}}function er(e,t){return void 0===t&&(t=3),new Promise((function(n,r){var i,o,a,s;function u(){var e=s()[0];return e++,c.bind(this,e)}function c(e){if(s=function(){return[e]},!(e<t))return[1];var i=function(e){try{return u}catch(e){return r(e)}};try{var a;return o().then((function(e){try{return(a=e)?n(a):function(){try{return u}catch(e){return r(e)}}()}catch(e){return i()}}),i)}catch(e){i()}}return i=function(e){if(e.length&&"{"!==e[0]){var t=e.indexOf("{");t>-1&&(e=e.slice(t))}return e},o=function(){return new Promise((function(t,n){var r;return function(e){return zn?zn(e):An()?new Promise((function(t,n){my.request({url:e,success:function(e){t(e.data)},fail:function(){n()}})})):Rn()?new Promise((function(t,n){my.call("httpRequest",{url:e},(function(e){!e||e.error?n():t(e.data)}))})):kn()?new Promise((function(t,n){wx.request({url:e,dataType:"text",success:function(e){t(e.data)},fail:function(e){n(e)}})})):"function"==typeof fetch?fetch(e).then((function(e){return e.text()})):"undefined"!=typeof XMLHttpRequest?new Promise((function(t,n){var r=new XMLHttpRequest;r.open("GET",e,!0),r.onreadystatechange=function(){4===r.readyState&&(200===r.status?t(r.responseText):n())},r.send()})):void 0}(e).then((function(e){try{return r=e,t(JSON.parse(i(r||"")))}catch(e){return n(e)}}),n)}))},(a=function(e){for(;e;){if(e.then)return void e.then(a,r);try{if(e.pop){if(e.length)return e.pop()?l.call(this):e;e=u}else e=e.call(this)}catch(e){return r(e)}}}.bind(this))(c.bind(this,0));function l(){return n()}}))}!function(e){e.DAILY="DAILY",e.PROD="PROD"}(Vn||(Vn={})),function(e){e.INTERNET="INTERNET",e.INTRANET="INTRANET"}(qn||(qn={}));var tr={ANTINTL:(Kn={},Kn[Vn.DAILY]="https://bailingual-daily.marmot-cloud.com/manifest/",Kn[Vn.PROD]="https://bailingual.marmot-cloud.com/manifest/",Kn),ALIPAY:(Yn={},Yn[Vn.DAILY]="https://bailingual-assets-daily.alipay.com/manifest/",Yn[Vn.PROD]="https://bailingual-assets.alipay.com/manifest/",Yn)},nr={};nr[qn.INTERNET]=((Fn={})[Vn.DAILY]=function(e,t,n){var r;return""+(n?null===(r=tr[n])||void 0===r?void 0:r[Vn.DAILY]:"")+e+"/"+e+(t?"_"+t:"")+".json"},Fn[Vn.PROD]=function(e,t,n){var r;return""+(n?null===(r=tr[n])||void 0===r?void 0:r[Vn.PROD]:"")+e+"/"+e+(t?"_"+t:"")+".json"},Fn),nr[qn.INTRANET]=((Wn={})[Vn.DAILY]=function(e,t){return"https://bailingual-assets.antgroup-inc.cn/daily/manifest/"+e+"/"+e+(t?"_"+t:"")+".json"},Wn[Vn.PROD]=function(e,t){return"https://bailingual-assets.antgroup-inc.cn/prod/manifest/"+e+"/"+e+(t?"_"+t:"")+".json"},Wn);var rr;function ir(){return"true"===Qn("__BAILINGUAL_IN_CONTEXT__")}function or(){if(!(Rn()||kn()||An())){var e=Qn("BAILINGUAL_IN_CONTEXT_CONFIG")||"{}",t=!1;try{t=JSON.parse(e).enableExtension}catch(e){Sn("[bailingual-sdk-glue] JSON.parse data fail: "+e)}rr=ir()&&t}}function ar(){return void 0===rr&&or(),rr}function sr(){$n("__BAILINGUAL_IN_CONTEXT__","true"),or(),new Promise((function(e,t){if(Rn()||kn()||An())return e();var n;if("undefined"!=typeof document&&!document.querySelector("._BAILINGUAL_IN_CONTEXT_script"))return er("https://render.alipay.com/p/yuyan/bailingual-in-context_bailingual-in-context-version/zh_CN.json").then(function(e){try{return(null==(n=e)?void 0:n.version)&&function(e){if(e&&!document.querySelector("._BAILINGUAL_IN_CONTEXT_script")){var t=document.createElement("script");t.setAttribute("class","_BAILINGUAL_IN_CONTEXT_script"),t.setAttribute("src",e),document.body.appendChild(t)}}("https://unpkg.alipay.com/@alipay/bailingual-in-context@"+n.version+"/public/dist/index.js"),r.call(this)}catch(e){return t(e)}}.bind(this),t);function r(){return e()}return r.call(this)}))}function ur(e,t,n){return"##@@@"+t+"##"+e+"@@@##"+n+"@@@##"}function cr(e){var t=[];return e.forEach((function(e){var n=e.key,r=e.count;if(n&&r){var i=-1!==n.indexOf("&")?encodeURIComponent(n):n;t.push(i+"&"+r)}})),t.join(";")}function lr(e,t){var n=function(e){switch(e){case"CN":default:return"https://collect.alipay.com/yuyan/?biztype=yuyanmonitorl";case"SG":return"https://imdap-sea.alipay.com/loggw/dwcookieLogGet.do";case"US":return"https://imdap.alipay.com/loggw/dwcookieLogGet.do"}}(e);if(An())my.request({method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},data:t,url:n});else if(Rn())my.call("httpRequest",{url:n,method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},data:t});else if(kn())wx.request({url:n,method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},data:t});else if("undefined"!=typeof navigator&&"function"==typeof navigator.sendBeacon&&"function"==typeof Blob){var r=new Blob([t],{type:"application/x-www-form-urlencoded"});navigator.sendBeacon(n,r)}else if(Pn()&&"undefined"!=typeof XMLHttpRequest){var i=new XMLHttpRequest;i.open("POST",n,!0),i.setRequestHeader("Content-type","application/x-www-form-urlencoded"),i.send(t)}else"function"==typeof fetch?fetch(n,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:t}):console.error("No supported method to send data",e,t)}!function(){if(!(Rn()||kn()||An()))try{var e=function(e){if(!e)return{};var t={};return e.slice(1).split("&").forEach((function(e){var n=e.split("="),r=n[0],i=n[1];t[r]=i})),t}("undefined"!=typeof location?location.search:"");if(ir()||e.hasOwnProperty("SML_DEV")||e.hasOwnProperty("BAILINGUAL_IN_CONTEXT")||e.hasOwnProperty("BLG_RIC"))return void sr();if("undefined"==typeof document)return;if(Ln()){var t=0,n=0;document.addEventListener("titleClick",(function(){if(!ar()){if(7==++n)return sr(),n=0,clearTimeout(t),void(t=null);clearTimeout(t),t=setTimeout((function(){n=0,t=null}),1500)}}))}document.addEventListener("__BAILINGUAL_IN_CONTEXT_DISABLE__",(function(){$n("__BAILINGUAL_IN_CONTEXT__","false"),or()}))}catch(e){Sn("[bailingual-sdk-glue] initBailingualInContext fail: "+e)}}();var hr=function(e){return e<10?"0"+e:""+e};function fr(){var e=new Date;return e.getFullYear()+"-"+hr(e.getMonth()+1)+"-"+hr(e.getDate())+" "+hr(e.getHours())+":"+hr(e.getMinutes())+":"+hr(e.getSeconds())+":"+e.getMilliseconds()}function dr(e,t){void 0===t&&(t="^");var n=[];if(e instanceof Array)n=e;else if(e instanceof Object)for(var r in e)e.hasOwnProperty(r)&&n.push(r+"="+(e[r]||""));return n.join(t)}function pr(e,t){var n,r,i;if(!t||!t.appName||!t.keyCounts.length)return"";var o=[];switch(e){case"CN":default:o=["D-AE",fr(),"","","2","","","","1000","102023","H5behavior","2","","","","","","","","","","","","","","","","","","","","","","","","",dr({code:"1000",msg:"",d1:t.appName,d3:(null===(n=t.textLocale)||void 0===n?void 0:n.replace(/-/g,"_"))||"",d4:t.sdkName||"",d5:t.sdkVersion||"",env:t.env||"PROD",c1:cr(t.keyCounts),sampleRate:"1",yuyan_id:"180020010101313281",fullURL:"-",s_c:"true"})];break;case"SG":o=["D-AE",fr(),"","","2","","","","1000","bailingualTextUsage","H5behavior","2","","","","","","","","","","","","","","","","","","","","","","","","",dr({code:"1000",msg:"",d1:t.appName,d3:(null===(r=t.textLocale)||void 0===r?void 0:r.replace(/-/g,"_"))||"",d4:t.sdkName||"",d5:t.sdkVersion||"",env:t.env||"PROD",c1:cr(t.keyCounts)})];break;case"US":o=["D-VM",fr(),"","","4","-","-","-","exposure","-","-","-","-","-","-","bailingualTextUsage","2","H5behavior","c","-","-","-",dr({appName:t.appName,textLocale:(null===(i=t.textLocale)||void 0===i?void 0:i.replace(/-/g,"_"))||"",sdkName:t.sdkName||"",sdkVersion:t.sdkVersion||"",env:t.env||"PROD",c1:cr(t.keyCounts)}),"-","-","-","-","-","-","-","-","-","1000","-","-","UNKNOWN","-","-","zh-cn","-","-","-","-","-","-","-","-",Date.now().toString()+"-"+(100*Math.random()).toFixed(0),"-","-"]}return"data="+function(e){return e?encodeURIComponent(e).replace(/'/g,"%27"):e}(o.join())+"&time="+(new Date).getTime()}var gr=function(e){var t=e.region;this.queue=[],this.region=t,this.startTimer()};gr.prototype.startTimer=function(){var e,t,n=this;this.region?(this.timer=setTimeout((function(){n._report()}),5e3),Pn()&&(null===(t=null===(e=window.document)||void 0===e?void 0:e.addEventListener)||void 0===t||t.call(e,"beforeunload",(function(){n._report()})))):clearTimeout(this.timer)},gr.prototype._report=function(){if(clearTimeout(this.timer),this.region&&this.queue.length){var e=new Map;this.queue.forEach((function(t){var n=t.appName+"-"+t.textKey+"-"+t.env,r=e.get(n);r?r.textUsedCount+=t.textUsedCount:e.set(n,t)}));var t=Array.from(e.values());!function(e,t){if(!e)throw new Error("No Region");if(0!==t.length)try{var n=new Map;t.forEach((function(e){var t=e.appName+"-"+e.textLocale+"-"+e.env;n.has(t)||n.set(t,{appName:e.appName,textLocale:e.textLocale,sdkName:e.sdkName,sdkVersion:e.sdkVersion,env:e.env,keyCounts:[]}),n.get(t).keyCounts.push({key:e.textKey,count:e.textUsedCount})})),n.forEach((function(t){for(var n=t.keyCounts,r=0;r<n.length;r+=200){var i=n.slice(r,r+200),o=pr(e,{appName:t.appName,textLocale:t.textLocale,sdkName:t.sdkName,sdkVersion:t.sdkVersion,env:t.env,keyCounts:i});lr(e,o)}}))}catch(n){console.error("reportUsageRequest error with",e,t)}else console.error("empty data")}(this.region,t),this.queue=[]}this.startTimer()},gr.prototype.getRegion=function(){return this.region},gr.prototype.setRegion=function(e){this.region=e,this.startTimer()},gr.prototype.report=function(e){this.region&&this.queue.push(e)};var vr=function(){this.originStrings={},this.availableLocales=[],this.langPkgsNoPatch={},this.i18nText={},this.eventHandler={},this.intlMessages={},this.intlPDKVMessages={},this.appName="",this.canUsePatchedData=!0,this.canStoreCurrentLocaleToCookie=!0,this.canReadLocaleFromCookie=!0},mr={usageReportRegion:{configurable:!0}};vr.setCustomizedGetSystemLocale=function(e){this.customizedGetSystemLocale=e},vr.customizeGetSystemLocale=function(e){this.customizedGetSystemLocale=e},vr.customizeStorage=function(e){return function(e){Gn=e}(e)},vr.getDataFromStorage=function(e){return Qn(e)},vr.setDataToStorage=function(e,t){return $n(e,t)},vr.customizeFetch=function(e){zn=e},mr.usageReportRegion.get=function(){var e;return null===(e=this.usageReporter)||void 0===e?void 0:e.getRegion()},mr.usageReportRegion.set=function(e){var t;this.usageReporter||(this.usageReporter=new gr({region:e})),e&&(null===(t=this.usageReporter)||void 0===t||t.setRegion(e))},vr.prototype.init=function(e,t){var n,r;this.initBailingualData(e),this.changeLocale(t||(null===(r=(n=this.constructor).customizedGetSystemLocale)||void 0===r?void 0:r.call(n))||Bn(this.canReadLocaleFromCookie))},vr.prototype.getPatchI18nKey=function(){return this.appName?this.tag?this.appName+"+"+this.tag:this.appName:""},vr.prototype.initData=function(e){var t,n;this.initBailingualData(e||this.getServerSideFallbackData()),this.changeLocale((null===(n=(t=this.constructor).customizedGetSystemLocale)||void 0===n?void 0:n.call(t))||Bn(this.canReadLocaleFromCookie))},vr.prototype.getServerSideFallbackData=function(){if(Nn()){var e=n.g.BAILINGUAL_FALLBACK;return e||(Sn("[bailingual-sdk-glue] [Server] no fallback data found."),e={}),e}},vr.prototype.initBailingualData=function(e){var t=this;this.originStrings=e,this.availableLocales=[],this.langPkgsNoPatch={},this.i18nText={},this.eventHandler={},this.intlMessages={},this.intlPDKVMessages={},this.appName=e.appName||"",this.currentLocale=void 0,this.bizEnv=e.bizEnv,this.usageReportRegion=e.usageReportRegion,this.usageReporter=new gr({region:this.usageReportRegion}),this.tag=e.tag||"",Object.keys(e).forEach((function(n){if("object"==L()(e[n])){var r=xn(n);if(!r)return void Tn("[bailingual-sdk-glue] "+n+" is not a valid locale code");t.langPkgsNoPatch[r]=Xn({},e[n]),t.i18nText[r]=Xn({},e[n])}})),this.handlePatchedData(),this.availableLocales=Object.keys(this.i18nText);var n=e.defaultLocale||this.availableLocales[0];!e.defaultLocale&&n&&Sn("[bailingual-sdk-glue] no defaultLocale specified, use first locale code '"+n+"' instead."),this.defaultLocale=this.judgeLocaleCode(n),this.defaultLocale||Tn("[bailingual-sdk-glue] defaultLocale '"+n+"' is invalid.")},vr.prototype.handlePatchedData=function(){var e,t=this,n=this.getPatchI18nKey();if(this.canUsePatchedData){var r=function(e){if(void 0===e&&(e=""),!e)return{};try{var t=Qn("BAILINGUAL_PATCH_I18N_DELETED-"+e);return t?JSON.parse(t):{}}catch(e){return Tn("[bailingual-sdk-glue] fail to get local deleted data, error detail: "+e),{}}}(n),i=function(e){if(void 0===e&&(e=""),!e)return{};try{var t=Qn("BAILINGUAL_PATCH_I18N-"+e);return t?JSON.parse(t):{}}catch(e){return Tn("[bailingual-sdk-glue] fail to get local patch data, error detail: "+e),{}}}(n);Object.keys(i).forEach((function(e){Zn(qe,e)&&(t.i18nText[e]||Sn("[bailingual-sdk-glue] locale '"+e+"' is not exist in init data, but found in patch data."),t.i18nText[e]=t.i18nText[e]||{},Xn(t.i18nText[e],i[e]))})),null===(e=r.removedLocales)||void 0===e||e.forEach((function(e){e=xn(e),Zn(qe,e)&&delete t.i18nText[e]})),Object.keys(r.removedKeys||{}).forEach((function(e){if(e=xn(e),Zn(qe,e)){var n=t.i18nText[e],i=r.removedKeys[e];n&&Array.isArray(i)&&i.forEach((function(e){delete n[e]}))}}))}else n&&function(e){if(e)try{$n("BAILINGUAL_PATCH_I18N-"+e,""),$n("BAILINGUAL_PATCH_I18N_DELETED-"+e,"")}catch(e){Tn("[bailingual-sdk-glue] fail to remove local patch data, error detail: "+e)}}(n)},vr.prototype.setLocale=function(e){this.currentLocale!==e&&(this.currentLocale=e,this.canStoreCurrentLocaleToCookie&&function(e){"object"!=("undefined"==typeof document?"undefined":L()(document))||"object"!=("undefined"==typeof location?"undefined":L()(location))||Ln()||Rn()||An()||kn()||(jn(),Un("x-hng","lang="+e,{path:"/",expires:180}),Un("_CHIPS-x-hng","lang="+e,{path:"/",expires:180,SameSite:"None",Partitioned:!0,Secure:!0}))}(e),this.emit(On,e))},vr.prototype.getIntlMessageWithPDKVFormat=function(e,t,n){var r=t.id;this.intlPDKVMessages[e]=this.intlPDKVMessages[e]||{};var i=this.intlPDKVMessages[e][r];if(!i){var o=n[r];o.match(Je)||(o=ur(this.appName,r,o)),i=this.createIntlMessageFormat(o,e),this.intlPDKVMessages[e][r]=i}return i},vr.prototype.getIntlMessageWithNormalFormat=function(e,t,n){var r=t.id,i=(null==n?void 0:n[r])||t.dm||t.defaultMessage||"";if(null==n?void 0:n[r]){this.intlMessages[e]=this.intlMessages[e]||{};var o=this.intlMessages[e][r];return o||(o=this.createIntlMessageFormat(i,e),this.intlMessages[e][r]=o),o}return this.createIntlMessageFormat(i,e)},vr.prototype.formatByLocaleCode=function(e,t,n){var r,i=this,o=this.i18nText[n];try{r=ar()&&e.id&&(null==o?void 0:o[e.id])?this.getIntlMessageWithPDKVFormat(n,e,o):this.getIntlMessageWithNormalFormat(n,e,o)}catch(t){var a=(null==o?void 0:o[e.id])||e.dm||e.defaultMessage||"",s="[bailingual-sdk-glue] fail to create IntlMessageFormat instance, return original string: "+a;return Sn(s),Sn("[bailingual-sdk-glue] error detail:",t),this.emit(Cn,new Jn({code:Dn.FORMAT_ERROR,message:s,err:t,textKey:e.id})),a}if(!r)return"";try{var u=t&&Object.keys(t)||[],c=this.normalizeIntlMessageVariable(r,t);return Object.keys(c).forEach((function(t){Zn(u,t)||i.emit(Cn,new Jn({code:Dn.MISSING_PARAM,message:"["+e.id+"] missing param: "+t,textKey:e.id}))})),r.format(c)}catch(n){var l="[bailingual-sdk-glue] format error with key: "+e.id+", value [%s], params: "+t;return Sn(l),Sn("[bailingual-sdk-glue] error detail:",n),this.emit(Cn,new Jn({code:Dn.FORMAT_ERROR,message:l,err:n,textKey:e.id})),""}},vr.prototype.format=function(e,t,n){void 0===t&&(t={});var r=n;return r&&((r=xn(r))||Tn("[bailingual-sdk-glue] "+n+" is not a valid locale code, use default locale instead.")),r||(r=this.currentLocale),r||Tn("[bailingual-sdk-glue] no locale code found!"),this.formatByLocaleCode(e,t,r)},vr.prototype.get=function(e,t,n){return"string"==typeof e?(this.reportUsageData({id:e,localeCode:n}),this.format({id:e},t,n)):(this.reportUsageData({id:e.id,localeCode:n}),this.format(e,t,n))},vr.prototype.judgeLocaleCode=function(e){if(void 0===e&&(e=""),e=xn(e),Zn(this.availableLocales,e))return e},vr.prototype.changeLocale=function(e){var t=this.judgeLocaleCode(e);t||this.currentLocale||(t=this.defaultLocale),t?this.setLocale(t):Tn("[bailingual-sdk-glue] '"+e+"' is not a vaid locale code")},vr.prototype.unsafeChangeLocale=function(e){void 0===e&&(e=""),this.setLocale(e)},vr.prototype.getAllData=function(e){var t=this;if(this.i18nText&&e&&ar()){var n={};return Object.keys(this.i18nText).forEach((function(e){n[e]=t.buildPDKVLocaleText(t.i18nText[e])})),n}return this.i18nText},vr.prototype.buildPDKVLocaleText=function(e){var t=this,n={};return Object.keys(e||{}).forEach((function(r){var i=e[r];i.match(Je)||(i=ur(t.appName,r,i)),n[r]=i})),n},vr.prototype.getDataWithLocale=function(e,t){e||Sn("[bailingual-sdk-glue] no locale code specified, use default locale ("+this.defaultLocale+") instead.");var n=this.i18nText[xn(e||this.defaultLocale)];return n&&t&&ar()?this.buildPDKVLocaleText(n):n},vr.prototype.getDataFromCurrentLocale=function(e){if(this.currentLocale)return this.getDataWithLocale(this.currentLocale,e);Tn("[bailingual-sdk-glue] error occured: no 'currentLocale' found, please check if you have called 'initData' or 'changeLocale' method before.")},vr.prototype.getCurrentLocale=function(){return this.currentLocale||""},vr.prototype.getDefaultLocale=function(){return this.defaultLocale},vr.prototype.formatLocaleCode=function(e){return xn(e)},vr.prototype.patchI18n=function(e,t){return new Promise(function(n,r){var i,o,a,s;if(!(t=t||{}).isIntranet&&!t.buIdentifier)return Tn('[bailingual-sdk-glue] no "env.buIdentifier" param, patchI18n will not work.'),this.emit(Cn,new Jn({code:Dn.MISSING_PARAM,message:'[bailingual-sdk-glue] no "env.buIdentifier" param, patchI18n will not work.'})),n();if(!Array.isArray(e)){if(!e.appName){if(!this.appName)return Tn("[bailingual-sdk-glue] no appName found, patchI18n will not work."),n();e.appName=this.appName}e.tag||(e.tag=this.tag),e=[e]}return(e=e.filter((function(e){return!!(null==e?void 0:e.appName)||(Tn("[bailingual-sdk-glue] no appName found, skip: "+e),!1)}))).length?function(e,t,n){return new Promise((function(r,i){return function(e,t){return new Promise((function(n,r){var i,o,a,s;return i=t&&"buIdentifier"in t?t.buIdentifier:void 0,(o=e.map((function(e){return er(function(e,t,n,r,i){var o,a;return null===(a=null===(o=nr[t])||void 0===o?void 0:o[e])||void 0===a?void 0:a.call(o,n,r,i)}(t.isDaily?Vn.DAILY:Vn.PROD,t.isIntranet?qn.INTRANET:qn.INTERNET,e.appName,e.tag,i)).then((function(e){return e?er(e.url):void 0})).then((function(e){return e||{}}))})),a=[],s=0,new Promise((function(e){o.forEach((function(t,n){t.then((function(t){a[n]=t,++s===o.length&&e(a)}))}))}))).then((function(e){try{return n(e)}catch(e){return r(e)}}),r)}))}(t,n).then((function(t){try{return r(function(e,t){var n={};t.forEach((function(e){e=e||{},Object.keys(e).forEach((function(t){if("object"==L()(e[t])){var r=xn(t);r&&(n[r]=n[r]||{},Xn(n[r],e[t]))}}))}));var r=Object.keys(n),i=Object.keys(e);r.sort().toString()!==i.sort().toString()&&Sn("[bailingual-sdk-glue] locales in local data '"+i+"' is different from cdn data '"+r+"'");var o={removedKeys:{},removedLocales:i.filter((function(e){return!Zn(r,e)}))},a={},s={};return r.forEach((function(t){var r=n[t]||{},i=e[t]||{};a[t]=a[t]||{};var o=a[t];Object.keys(r).forEach((function(e){Object.prototype.hasOwnProperty.call(r,e)&&r[e]!==i[e]&&(o[e]=r[e])})),s[t]=Xn({},i,r)})),i.forEach((function(t){if(!Zn(o.removedLocales,t)){var r=e[t]||{},i=n[t]||{},a=s[t]||{};Object.keys(r).forEach((function(e){Object.prototype.hasOwnProperty.call(i,e)||(delete a[e],o.removedKeys[t]=o.removedKeys[t]||[],Zn(o.removedKeys[t],e)||o.removedKeys[t].push(e))}))}})),{newI18nData:s,patchedData:a,deletedData:o}}(e,t))}catch(e){return i(e)}}),i)}))}(this.langPkgsNoPatch,e,t).then(function(e){var t;try{return i=(t=e).newI18nData,o=t.patchedData,a=t.deletedData,s=this.getPatchI18nKey(),this.updateData(i)&&s&&($n("BAILINGUAL_PATCH_I18N-"+s,JSON.stringify(o)),$n("BAILINGUAL_PATCH_I18N_DELETED-"+s,JSON.stringify(a))),n()}catch(e){return r(e)}}.bind(this),r):(Tn("[bailingual-sdk-glue] no bailingual packages found, stop patch"),n())}.bind(this))},vr.prototype.updateData=function(e){var t=Object.keys(e).filter((function(e){return Zn(qe,e)}));return this.defaultLocale&&!Zn(t,this.defaultLocale)?(Tn("[bailingual-sdk-glue] default locale "+this.defaultLocale+" is not exist in new data, can't update data."),!1):(this.i18nText=e,this.intlMessages={},this.intlPDKVMessages={},this.availableLocales=t,this.emit(In,e),this.currentLocale&&!Zn(t,this.currentLocale)&&(Sn("[bailingual-sdk-glue] current locale "+this.currentLocale+" is not available, use default locale ("+this.defaultLocale+") instead."),this.changeLocale(this.defaultLocale)),!0)},vr.prototype.on=function(e,t){this.eventHandler[e]=this.eventHandler[e]||[],this.eventHandler[e].push(t)},vr.prototype.off=function(e,t){var n,r=this;null===(n=this.eventHandler[e])||void 0===n||n.forEach((function(n,i){n===t&&(r.eventHandler[e][i]=null)}))},vr.prototype.onDataChange=function(e){this.on(In,e)},vr.prototype.offDataChange=function(e){this.off(In,e)},vr.prototype.onLocaleChange=function(e){this.on(On,e)},vr.prototype.offLocaleChange=function(e){this.off(On,e)},vr.prototype.onError=function(e){this.on(Cn,e)},vr.prototype.offError=function(e){this.off(Cn,e)},vr.prototype.emit=function(e,t){var n,r;null===(r=null===(n=this.eventHandler[e])||void 0===n?void 0:n.forEach)||void 0===r||r.call(n,(function(e){null==e||e(t)}))},vr.prototype.stopPatchI18n=function(){this.canUsePatchedData=!1},vr.prototype.setAutoStoreCurrentLocaleToCookie=function(e){this.canStoreCurrentLocaleToCookie=!!e},vr.prototype.setAutoReadLocaleFromCookie=function(e){this.canReadLocaleFromCookie=!!e},vr.prototype.getAllLocales=function(){return[].concat(this.availableLocales)},vr.prototype.changeUsageReportRegion=function(e){this.usageReportRegion=e},vr.prototype.changeBizEnv=function(e){this.bizEnv=e},vr.prototype.reportUsageData=function(e){var t=e.id,n=e.count;void 0===n&&(n=1);var r,i=e.localeCode;void 0===i&&(i=this.currentLocale),null===(r=this.usageReporter)||void 0===r||r.report({appName:this.appName,textKey:t,textLocale:i,textUsedCount:n,sdkName:"bailingual-sdk-glue",env:this.bizEnv||"PROD"})},vr.prototype.removeBailingualCookie=function(){jn()},Object.defineProperties(vr.prototype,mr),vr.customizedGetSystemLocale=void 0;var yr=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.normalizeIntlMessageVariable=function(e,t){var n=e.getAst(),r=t||{};return n.forEach((function(e){Zn([$e.argument,$e.number,$e.date,$e.time,$e.select,$e.plural],e.type)&&"value"in e&&void 0===r[e.value]&&(r[e.value]="")})),r},t.prototype.createIntlMessageFormat=function(e,t){return new bn(e,t,{},{ignoreTag:!0})},t}(vr),_r=(new yr,"antom-language-storage-key"),br="en_US",Er=new yr;function wr(e){if(e)return Sr(e);try{var t=window._amsSdkLanguage||window.sessionStorage.getItem(_r)||window.localStorage.getItem(_r);if(t)return Sr(t)}catch(e){}if(navigator.language){var n=!/[-,_]/.test(navigator.language),r=Er.getAllLocales().find((function(e){return n?e.startsWith(navigator.language):Sr(e)===Sr(navigator.language)}))||br;if(r)return r=Sr(r)}return br}function Sr(e){var t=e;t||(t=br);var n=t.split(/[-,_]/),r=R(n,2),i=r[0],o=r[1];return i||(i="en"),o?"".concat(i.toLowerCase(),"_").concat(o.toUpperCase()):i.toLowerCase()}"true"==={NODE_ENV:"production",PUBLIC_PATH:"/"}.ANTOM_CORE_UNIT_TEST&&Er.initData(window.bailingual_ckp||{});var Tr={API_MISS_PARAMS:"API_MISS_PARAMS",API_GATEWAY_TIMEOUT:"API_GATEWAY_TIMEOUT",API_SYSTEM_ERROR:"API_SYSTEM_ERROR",API_TIMEOUT:"API_TIMEOUT",API_NOT_LOGIN:"API_NOT_LOGIN",API_GATEWAY_ERROR:"API_GATEWAY_ERROR"},Ar=b(b({},{UNKNOWN_ERROR:"UNKNOWN_ERROR",NO_PORTS_ERROR:"NO_PORTS_ERROR",INVALID_REDIRECT_URL:"INVALID_REDIRECT_URL"}),Tr);O.initConfig({i18n:Er,i18nPrefix:"ANTOMSDK",getDefaultMessage:function(){return Er.get({id:"page.wrong.error.message",defaultMessage:"System error, please retry later"})}});var Rr=function(e){p(n,e);var t=v(n);function n(){var e;u(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return e=t.call.apply(t,[this].concat(i)),y(f(e),"name","AntomError"),y(f(e),"response",void 0),e}return l(n,null,[{key:"isError",value:function(e){return O.isError(e)}},{key:"unificationError",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"APP_RUNTIME";return O.unificationError(e,t)}}]),n}(O),Pr=function(e){p(n,e);var t=v(n);function n(){var e;u(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return e=t.call.apply(t,[this].concat(i)),y(f(e),"name","AntomCoreError"),e}return l(n)}(Rr),Lr=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"defaultRequestScope";return e?{success:function(n,r,i){e.log({code:"11",msg:n,d1:i||"无traceId",d2:t,d3:Math.round(r),d5:"是",m1:1})},error:function(n,r,i,o,a){e.log({code:"11",msg:n,d1:a||"无traceId",d2:t,d3:Math.round(r),d4:"".concat(o,"-").concat(i),d5:"否",m1:0})}}:{success:function(){},error:function(){}}},kr=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"defaultJsErrorScope";return function(n){e&&e.log({code:"12",msg:(null==n?void 0:n.message)||"上报未知的异常信息",d1:(null==n?void 0:n.stack)||"无stack信息",d2:t})}},Nr=(window||{}).navigator,Or=Nr.userAgent,Ir=function(){var e=/OpenHarmony/i.test(Nr.userAgent),t=/Phone/i.test(Nr.userAgent),n=/Tablet/i.test(Nr.userAgent);return e&&(t||n)},Cr=/iPhone|iPad|iPod/i.test(Or)||"MacIntel"===Nr.platform&&Nr.maxTouchPoints>1,Mr=(/Android/i.test(Or),/\bMacintosh\b/.test(Or),/Windows NT/.test(Or),function(){return/Android|iPhone|iPad|iPod|Mobile|SymbianOS|Windows Phone/.test(Or)||Ir()}),Dr=Cr,xr=!!Mr(),Br=!Mr();Ir();var Ur=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];try{if(!e){if(t)throw t;return}return JSON.parse(e)}catch(e){if(t)throw t;return}},Hr=function(e){var t=e.split("&&")[3];if(t){var n=function(e){try{if(!e)return;var t=atob(e),n=Uint8Array.from(t,(function(e){return e.codePointAt(0)}));return(new TextDecoder).decode(n)}catch(e){return}}(t);if(n)return Ur(n)}},jr=function(e){return(null==e?void 0:e.split("&&").slice(0,2).join("&&"))||"无trackId"},zr=function(e){return e.split("&&")[1]||"SG"};function Gr(e,t){return function(){return e.apply(t,arguments)}}var Kr,Yr,Fr=n(89),Wr=Object.prototype.toString,Vr=Object.getPrototypeOf,qr=Symbol.iterator,Jr=Symbol.toStringTag,Xr=(Kr=Object.prototype.hasOwnProperty,function(e,t){return Kr.call(e,t)}),Zr=function(e,t){for(var n=e,r=[];null!=n&&n!==Object.prototype;){if(-1!==r.indexOf(n))return!1;if(r.push(n),Xr(n,t))return!0;n=Vr(n)}return!1},Qr=(Yr=Object.create(null),function(e){var t=Wr.call(e);return Yr[t]||(Yr[t]=t.slice(8,-1).toLowerCase())}),$r=function(e){return e=e.toLowerCase(),function(t){return Qr(t)===e}},ei=function(e){return function(t){return P(t)===e}},ti=Array.isArray,ni=ei("undefined");function ri(e){return null!==e&&!ni(e)&&null!==e.constructor&&!ni(e.constructor)&&ai(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}var ii=$r("ArrayBuffer");var oi=ei("string"),ai=ei("function"),si=ei("number"),ui=function(e){return null!==e&&"object"===P(e)},ci=function(e){if(!ui(e))return!1;var t=Vr(e);return!(null!==t&&t!==Object.prototype&&null!==Vr(t)||Zr(e,Jr)||Zr(e,qr))},li=$r("Date"),hi=$r("File"),fi=$r("Blob"),di=$r("FileList");var pi="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},gi=void 0!==pi.FormData?pi.FormData:void 0,vi=$r("URLSearchParams"),mi=["ReadableStream","Request","Response","Headers"].map($r),yi=R(mi,4),_i=yi[0],bi=yi[1],Ei=yi[2],wi=yi[3];function Si(e,t){var n,r,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=i.allOwnKeys,a=void 0!==o&&o;if(null!=e)if("object"!==P(e)&&(e=[e]),ti(e))for(n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else{if(ri(e))return;var s,u=a?Object.getOwnPropertyNames(e):Object.keys(e),c=u.length;for(n=0;n<c;n++)s=u[n],t.call(null,e[s],s,e)}}function Ti(e,t){if(ri(e))return null;t=t.toLowerCase();for(var n,r=Object.keys(e),i=r.length;i-- >0;)if(t===(n=r[i]).toLowerCase())return n;return null}var Ai="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,Ri=function(e){return!ni(e)&&e!==Ai};var Pi,Li=(Pi="undefined"!=typeof Uint8Array&&Vr(Uint8Array),function(e){return Pi&&e instanceof Pi}),ki=$r("HTMLFormElement"),Ni=Object.prototype.propertyIsEnumerable,Oi=$r("RegExp"),Ii=function(e,t){var n=Object.getOwnPropertyDescriptors(e),r={};Si(n,(function(n,i){var o;!1!==(o=t(n,i,e))&&(r[i]=o||n)})),Object.defineProperties(e,r)};var Ci,Mi,Di,xi,Bi=$r("AsyncFunction"),Ui=(Ci="function"==typeof setImmediate,Mi=ai(Ai.postMessage),Ci?setImmediate:Mi?(Di="axios@".concat(Math.random()),xi=[],Ai.addEventListener("message",(function(e){var t=e.source,n=e.data;t===Ai&&n===Di&&xi.length&&xi.shift()()}),!1),function(e){xi.push(e),Ai.postMessage(Di,"*")}):function(e){return setTimeout(e)}),Hi="undefined"!=typeof queueMicrotask?queueMicrotask.bind(Ai):void 0!==Fr&&Fr.nextTick||Ui,ji=function(e){return null!=e&&ai(e[qr])},zi={isArray:ti,isArrayBuffer:ii,isBuffer:ri,isFormData:function(e){if(!e)return!1;if(gi&&e instanceof gi)return!0;var t=Vr(e);if(!t||t===Object.prototype)return!1;if(!ai(e.append))return!1;var n=Qr(e);return"formdata"===n||"object"===n&&ai(e.toString)&&"[object FormData]"===e.toString()},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&ii(e.buffer)},isString:oi,isNumber:si,isBoolean:function(e){return!0===e||!1===e},isObject:ui,isPlainObject:ci,isEmptyObject:function(e){if(!ui(e)||ri(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:_i,isRequest:bi,isResponse:Ei,isHeaders:wi,isUndefined:ni,isDate:li,isFile:hi,isReactNativeBlob:function(e){return!(!e||void 0===e.uri)},isReactNative:function(e){return e&&void 0!==e.getParts},isBlob:fi,isRegExp:Oi,isFunction:ai,isStream:function(e){return ui(e)&&ai(e.pipe)},isURLSearchParams:vi,isTypedArray:Li,isFileList:di,forEach:Si,merge:function e(){for(var t=Ri(this)&&this||{},n=t.caseless,r=t.skipUndefined,i={},o=function(t,o){if("__proto__"!==o&&"constructor"!==o&&"prototype"!==o){var a=n&&"string"==typeof o&&Ti(i,o)||o,s=Xr(i,a)?i[a]:void 0;ci(s)&&ci(t)?i[a]=e(s,t):ci(t)?i[a]=e({},t):ti(t)?i[a]=t.slice():r&&ni(t)||(i[a]=t)}},a=0,s=arguments.length;a<s;a++){var u=a<0||arguments.length<=a?void 0:arguments[a];if(u&&!ri(u)&&(Si(u,o),"object"===P(u)&&!ti(u)))for(var c=Object.getOwnPropertySymbols(u),l=0;l<c.length;l++){var h=c[l];Ni.call(u,h)&&o(u[h],h)}}return i},extend:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=r.allOwnKeys;return Si(t,(function(t,r){n&&ai(t)?Object.defineProperty(e,r,{__proto__:null,value:Gr(t,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,r,{__proto__:null,value:t,writable:!0,enumerable:!0,configurable:!0})}),{allOwnKeys:i}),e},trim:function(e){return e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e},inherits:function(e,t,n,r){e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:function(e,t,n,r){var i,o,a,s={};if(t=t||{},null==e)return t;do{for(o=(i=Object.getOwnPropertyNames(e)).length;o-- >0;)a=i[o],r&&!r(a,e,t)||s[a]||(t[a]=e[a],s[a]=!0);e=!1!==n&&Vr(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:Qr,kindOfTest:$r,endsWith:function(e,t,n){e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;var r=e.indexOf(t,n);return-1!==r&&r===n},toArray:function(e){if(!e)return null;if(ti(e))return e;var t=e.length;if(!si(t))return null;for(var n=new Array(t);t-- >0;)n[t]=e[t];return n},forEachEntry:function(e,t){for(var n,r=(e&&e[qr]).call(e);(n=r.next())&&!n.done;){var i=n.value;t.call(e,i[0],i[1])}},matchAll:function(e,t){for(var n,r=[];null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:ki,hasOwnProperty:Xr,hasOwnProp:Xr,hasOwnInPrototypeChain:Zr,getSafeProp:function(e,t){return null!=e&&Zr(e,t)?e[t]:void 0},reduceDescriptors:Ii,freezeMethods:function(e){Ii(e,(function(t,n){if(ai(e)&&["arguments","caller","callee"].includes(n))return!1;var r=e[n];ai(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=function(){throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:function(e,t){var n={},r=function(e){e.forEach((function(e){n[e]=!0}))};return ti(e)?r(e):r(String(e).split(t)),n},toCamelCase:function(e){return e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n}))},noop:function(){},toFiniteNumber:function(e,t){return null!=e&&Number.isFinite(e=+e)?e:t},findKey:Ti,global:Ai,isContextDefined:Ri,isSpecCompliantForm:function(e){return!!(e&&ai(e.append)&&"FormData"===e[Jr]&&e[qr])},toJSONObject:function(e){var t=new WeakSet;return function e(n){if(ui(n)){if(t.has(n))return;if(ri(n))return n;if(!("toJSON"in n)){t.add(n);var r=ti(n)?[]:{};return Si(n,(function(t,n){var i=e(t);!ni(i)&&(r[n]=i)})),t.delete(n),r}}return n}(e)},isAsyncFn:Bi,isThenable:function(e){return e&&(ui(e)||ai(e))&&ai(e.then)&&ai(e.catch)},setImmediate:Ui,asap:Hi,isIterable:ji,isSafeIterable:function(e){return null!=e&&Zr(e,qr)&&ji(e)}},Gi=zi.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);var Ki=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),Yi=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function Fi(e,t){return zi.isArray(e)?e.map((function(e){return Fi(e,t)})):function(e){for(var t=0,n=e.length;t<n;){var r=e.charCodeAt(t);if(9!==r&&32!==r)break;t+=1}for(;n>t;){var i=e.charCodeAt(n-1);if(9!==i&&32!==i)break;n-=1}return 0===t&&n===e.length?e:e.slice(t,n)}(String(e).replace(t,""))}function Wi(e){var t=Object.create(null);return zi.forEach(e.toJSON(),(function(e,n){t[n]=function(e){return Fi(e,Yi)}(e)})),t}var Vi=Symbol("internals");function qi(e){return e&&String(e).trim().toLowerCase()}function Ji(e){return!1===e||null==e?e:zi.isArray(e)?e.map(Ji):function(e){return Fi(e,Ki)}(String(e))}function Xi(e,t,n,r,i){return zi.isFunction(r)?r.call(this,t,n):(i&&(t=n),zi.isString(t)?zi.isString(r)?-1!==t.indexOf(r):zi.isRegExp(r)?r.test(t):void 0:void 0)}var Zi=function(e,t){function n(e){u(this,n),e&&this.set(e)}return l(n,[{key:"set",value:function(e,t,n){var r=this;function i(e,t,n){var i=qi(t);if(i){var o=zi.findKey(r,i);(!o||void 0===r[o]||!0===n||void 0===n&&!1!==r[o])&&(r[o||t]=Ji(e))}}var a=function(e,t){return zi.forEach(e,(function(e,n){return i(e,n,t)}))};if(zi.isPlainObject(e)||e instanceof this.constructor)a(e,t);else if(zi.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))a(function(e){var t,n,r,i={};return e&&e.split("\n").forEach((function(e){r=e.indexOf(":"),t=e.substring(0,r).trim().toLowerCase(),n=e.substring(r+1).trim(),!t||i[t]&&Gi[t]||("set-cookie"===t?i[t]?i[t].push(n):i[t]=[n]:i[t]=i[t]?i[t]+", "+n:n)})),i}(e),t);else if(zi.isObject(e)&&zi.isSafeIterable(e)){var s,u,c,l=Object.create(null),h=o(e);try{for(h.s();!(c=h.n()).done;){var f=c.value;if(!zi.isArray(f))throw new TypeError("Object iterator must return a key-value pair");u=f[0],zi.hasOwnProp(l,u)?(s=l[u],l[u]=zi.isArray(s)?[].concat(C(s),[f[1]]):[s,f[1]]):l[u]=f[1]}}catch(e){h.e(e)}finally{h.f()}a(l,t)}else null!=e&&i(t,e,n);return this}},{key:"get",value:function(e,t){if(e=qi(e)){var n=zi.findKey(this,e);if(n){var r=this[n];if(!t)return r;if(!0===t)return function(e){for(var t,n=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;t=r.exec(e);)n[t[1]]=t[2];return n}(r);if(zi.isFunction(t))return t.call(this,r,n);if(zi.isRegExp(t))return t.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}},{key:"has",value:function(e,t){if(e=qi(e)){var n=zi.findKey(this,e);return!(!n||void 0===this[n]||t&&!Xi(0,this[n],n,t))}return!1}},{key:"delete",value:function(e,t){var n=this,r=!1;function i(e){if(e=qi(e)){var i=zi.findKey(n,e);!i||t&&!Xi(0,n[i],i,t)||(delete n[i],r=!0)}}return zi.isArray(e)?e.forEach(i):i(e),r}},{key:"clear",value:function(e){for(var t=Object.keys(this),n=t.length,r=!1;n--;){var i=t[n];e&&!Xi(0,this[i],i,e,!0)||(delete this[i],r=!0)}return r}},{key:"normalize",value:function(e){var t=this,n={};return zi.forEach(this,(function(r,i){var o=zi.findKey(n,i);if(o)return t[o]=Ji(r),void delete t[i];var a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n}))}(i):String(i).trim();a!==i&&delete t[i],t[a]=Ji(r),n[a]=!0})),this}},{key:"concat",value:function(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=this.constructor).concat.apply(e,[this].concat(n))}},{key:"toJSON",value:function(e){var t=Object.create(null);return zi.forEach(this,(function(n,r){null!=n&&!1!==n&&(t[r]=e&&zi.isArray(n)?n.join(", "):n)})),t}},{key:e,value:function(){return Object.entries(this.toJSON())[Symbol.iterator]()}},{key:"toString",value:function(){return Object.entries(this.toJSON()).map((function(e){var t=R(e,2);return t[0]+": "+t[1]})).join("\n")}},{key:"getSetCookie",value:function(){return this.get("set-cookie")||[]}},{key:t,get:function(){return"AxiosHeaders"}}],[{key:"from",value:function(e){return e instanceof this?e:new this(e)}},{key:"concat",value:function(e){for(var t=new this(e),n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return r.forEach((function(e){return t.set(e)})),t}},{key:"accessor",value:function(e){var t=(this[Vi]=this[Vi]={accessors:{}}).accessors,n=this.prototype;function r(e){var r=qi(e);t[r]||(!function(e,t){var n=zi.toCamelCase(" "+t);["get","set","has"].forEach((function(r){Object.defineProperty(e,r+n,{__proto__:null,value:function(e,n,i){return this[r].call(this,t,e,n,i)},configurable:!0})}))}(n,e),t[r]=!0)}return zi.isArray(e)?e.forEach(r):r(e),this}}]),n}(Symbol.iterator,Symbol.toStringTag);Zi.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),zi.reduceDescriptors(Zi.prototype,(function(e,t){var n=e.value,r=t[0].toUpperCase()+t.slice(1);return{get:function(){return n},set:function(e){this[r]=e}}})),zi.freezeMethods(Zi);var Qi=Zi;function $i(e,t){var n=new Set(t.map((function(e){return String(e).toLowerCase()}))),r=[];return function e(t){if(null===t||"object"!==P(t))return t;if(zi.isBuffer(t))return t;if(-1===r.indexOf(t)){var i;if(t instanceof Qi&&(t=t.toJSON()),r.push(t),zi.isArray(t))i=[],t.forEach((function(t,n){var r=e(t);zi.isUndefined(r)||(i[n]=r)}));else{if(!zi.isPlainObject(t)&&function(e){if(zi.hasOwnProp(e,"toJSON"))return!0;for(var t=Object.getPrototypeOf(e);t&&t!==Object.prototype;){if(zi.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}(t))return r.pop(),t;i=Object.create(null);for(var o=0,a=Object.entries(t);o<a.length;o++){var s=R(a[o],2),u=s[0],c=s[1],l=n.has(u.toLowerCase())?"[REDACTED ****]":e(c);zi.isUndefined(l)||(i[u]=l)}}return r.pop(),i}}(e)}var eo=function(e){p(n,e);var t=v(n);function n(e,r,i,o,a){var s;return u(this,n),s=t.call(this,e),Object.defineProperty(f(s),"message",{__proto__:null,value:e,enumerable:!0,writable:!0,configurable:!0}),s.name="AxiosError",s.isAxiosError=!0,r&&(s.code=r),i&&(s.config=i),o&&(s.request=o),a&&(s.response=a,s.status=a.status),s}return l(n,[{key:"toJSON",value:function(){var e=this.config,t=e&&zi.hasOwnProp(e,"redact")?e.redact:void 0,n=zi.isArray(t)&&t.length>0?$i(e,t):zi.toJSONObject(e);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:n,code:this.code,status:this.status}}}],[{key:"from",value:function(e,t,r,i,o,a){var s=new n(e.message,t||e.code,r,i,o);return s.cause=e,s.name=e.name,null!=e.status&&null==s.status&&(s.status=e.status),a&&Object.assign(s,a),s}}]),n}(k(Error));eo.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",eo.ERR_BAD_OPTION="ERR_BAD_OPTION",eo.ECONNABORTED="ECONNABORTED",eo.ETIMEDOUT="ETIMEDOUT",eo.ECONNREFUSED="ECONNREFUSED",eo.ERR_NETWORK="ERR_NETWORK",eo.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",eo.ERR_DEPRECATED="ERR_DEPRECATED",eo.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",eo.ERR_BAD_REQUEST="ERR_BAD_REQUEST",eo.ERR_CANCELED="ERR_CANCELED",eo.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",eo.ERR_INVALID_URL="ERR_INVALID_URL",eo.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";var to=eo,no=n(207).lW;function ro(e){return zi.isPlainObject(e)||zi.isArray(e)}function io(e){return zi.endsWith(e,"[]")?e.slice(0,-2):e}function oo(e,t,n){return e?e.concat(t).map((function(e,t){return e=io(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}var ao=zi.toFlatObject(zi,{},null,(function(e){return/^is[A-Z]/.test(e)}));var so=function(e,t,n){if(!zi.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;var r=(n=zi.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!zi.isUndefined(t[e])}))).metaTokens,i=n.visitor||d,o=n.dots,a=n.indexes,s=n.Blob||"undefined"!=typeof Blob&&Blob,u=void 0===n.maxDepth?100:n.maxDepth,c=s&&zi.isSpecCompliantForm(t),l=[];if(!zi.isFunction(i))throw new TypeError("visitor must be a function");function h(e){if(null===e)return"";if(zi.isDate(e))return e.toISOString();if(zi.isBoolean(e))return e.toString();if(!c&&zi.isBlob(e))throw new to("Blob is not supported. Use a Buffer instead.");return zi.isArrayBuffer(e)||zi.isTypedArray(e)?c&&"function"==typeof Blob?new Blob([e]):no.from(e):e}function f(e){if(e>u)throw new to("Object is too deeply nested ("+e+" levels). Max depth: "+u,to.ERR_FORM_DATA_DEPTH_EXCEEDED)}function d(e,n,i){var s=e;if(zi.isReactNative(t)&&zi.isReactNativeBlob(e))return t.append(oo(i,n,o),h(e)),!1;if(e&&!i&&"object"===P(e))if(zi.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=function(e,t){if(u===1/0)return JSON.stringify(e);var n=[];return JSON.stringify(e,(function(e,r){if(!zi.isObject(r))return r;for(;n.length&&n[n.length-1]!==this;)n.pop();return n.push(r),f(t+n.length-1),r}))}(e,1);else if(zi.isArray(e)&&function(e){return zi.isArray(e)&&!e.some(ro)}(e)||(zi.isFileList(e)||zi.endsWith(n,"[]"))&&(s=zi.toArray(e)))return n=io(n),s.forEach((function(e,r){!zi.isUndefined(e)&&null!==e&&t.append(!0===a?oo([n],r,o):null===a?n:n+"[]",h(e))})),!1;return!!ro(e)||(t.append(oo(i,n,o),h(e)),!1)}var p=Object.assign(ao,{defaultVisitor:d,convertValue:h,isVisitable:ro});if(!zi.isObject(e))throw new TypeError("data must be an object");return function e(n,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(!zi.isUndefined(n)){if(f(o),-1!==l.indexOf(n))throw new Error("Circular reference detected in "+r.join("."));l.push(n),zi.forEach(n,(function(n,a){!0===(!(zi.isUndefined(n)||null===n)&&i.call(t,n,zi.isString(a)?a.trim():a,r,p))&&e(n,r?r.concat(a):[a],o+1)})),l.pop()}}(e),t};function uo(e){var t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,(function(e){return t[e]}))}function co(e,t){this._pairs=[],e&&so(e,this,t)}var lo=co.prototype;lo.append=function(e,t){this._pairs.push([e,t])},lo.toString=function(e){var t=e?function(t){return e.call(this,t,uo)}:uo;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};var ho=co;function fo(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function po(e,t,n){if(!t)return e;var r,i=zi.isFunction(n)?{serialize:n}:n,o=zi.getSafeProp(i,"encode")||fo,a=zi.getSafeProp(i,"serialize");if(r=a?a(t,i):zi.isURLSearchParams(t)?t.toString():new ho(t,i).toString(o)){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+r}return e}var go=function(){function e(){u(this,e),this.handlers=[]}return l(e,[{key:"use",value:function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}},{key:"eject",value:function(e){this.handlers[e]&&(this.handlers[e]=null)}},{key:"clear",value:function(){this.handlers&&(this.handlers=[])}},{key:"forEach",value:function(e){zi.forEach(this.handlers,(function(t){null!==t&&e(t)}))}}]),e}(),vo=go,mo={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},yo={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:ho,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},_o="undefined"!=typeof window&&"undefined"!=typeof document,bo="object"===("undefined"==typeof navigator?"undefined":P(navigator))&&navigator||void 0,Eo=_o&&(!bo||["ReactNative","NativeScript","NS"].indexOf(bo.product)<0),wo="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,So=_o&&window.location.href||"http://localhost",To=b(b({},e),yo);function Ao(e){if(e>100)throw new to("FormData field is too deeply nested ("+e+" levels). Max depth: 100",to.ERR_FORM_DATA_DEPTH_EXCEEDED)}var Ro=function(e){function t(e,n,r,i){Ao(i);var o=e[i++];if("__proto__"===o)return!0;var a=Number.isFinite(+o),s=i>=e.length;return o=!o&&zi.isArray(r)?r.length:o,s?(zi.hasOwnProp(r,o)?r[o]=zi.isArray(r[o])?r[o].concat(n):[r[o],n]:r[o]=n,!a):(zi.hasOwnProp(r,o)&&zi.isObject(r[o])||(r[o]=[]),t(e,n,r[o],i)&&zi.isArray(r[o])&&(r[o]=function(e){var t,n,r={},i=Object.keys(e),o=i.length;for(t=0;t<o;t++)r[n=i[t]]=e[n];return r}(r[o])),!a)}if(zi.isFormData(e)&&zi.isFunction(e.entries)){var n={};return zi.forEachEntry(e,(function(e,r){t(function(e){for(var t,n=[],r=/\w+|\[(\w*)]/g;null!==(t=r.exec(e));)Ao(n.length),n.push("[]"===t[0]?"":t[1]||t[0]);return n}(e),r,n,0)})),n}return null},Po=function(e,t){return null!=e&&zi.hasOwnProp(e,t)?e[t]:void 0};var Lo={transitional:mo,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){var n,r=t.getContentType()||"",i=r.indexOf("application/json")>-1,o=zi.isObject(e);if(o&&zi.isHTMLForm(e)&&(e=new FormData(e)),zi.isFormData(e))return i?JSON.stringify(Ro(e)):e;if(zi.isArrayBuffer(e)||zi.isBuffer(e)||zi.isStream(e)||zi.isFile(e)||zi.isBlob(e)||zi.isReadableStream(e))return e;if(zi.isArrayBufferView(e))return e.buffer;if(zi.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();if(o){var a=Po(this,"formSerializer");if(r.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return so(e,new To.classes.URLSearchParams,b({visitor:function(e,t,n,r){return To.isNode&&zi.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,a).toString();if((n=zi.isFileList(e))||r.indexOf("multipart/form-data")>-1){var s=Po(this,"env"),u=s&&s.FormData;return so(n?{"files[]":e}:e,u&&new u,a)}}return o||i?(t.setContentType("application/json",!1),function(e,t,n){if(zi.isString(e))try{return(t||JSON.parse)(e),zi.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=Po(this,"transitional")||Lo.transitional,n=t&&t.forcedJSONParsing,r=Po(this,"responseType"),i="json"===r;if(zi.isResponse(e)||zi.isReadableStream(e))return e;if(e&&zi.isString(e)&&(n&&!r||i)){var o=!(t&&t.silentJSONParsing)&&i;try{return JSON.parse(e,Po(this,"parseReviver"))}catch(e){if(o){if("SyntaxError"===e.name)throw to.from(e,to.ERR_BAD_RESPONSE,this,null,Po(this,"response"));throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:To.classes.FormData,Blob:To.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};zi.forEach(["delete","get","head","post","put","patch","query"],(function(e){Lo.headers[e]={}}));var ko=Lo;function No(e,t){var n=this||ko,r=t||n,i=Qi.from(r.headers),o=r.data;return zi.forEach(e,(function(e){o=e.call(n,o,i.normalize(),t?t.status:void 0)})),i.normalize(),o}function Oo(e){return!(!e||!e.__CANCEL__)}var Io=function(e){p(n,e);var t=v(n);function n(e,r,i){var o;return u(this,n),(o=t.call(this,null==e?"canceled":e,to.ERR_CANCELED,r,i)).name="CanceledError",o.__CANCEL__=!0,o}return l(n)}(to);function Co(e,t,n){var r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new to("Request failed with status code "+n.status,n.status>=400&&n.status<500?to.ERR_BAD_REQUEST:to.ERR_BAD_RESPONSE,n.config,n.request,n)):e(n)}var Mo=function(e,t){e=e||10;var n,r=new Array(e),i=new Array(e),o=0,a=0;return t=void 0!==t?t:1e3,function(s){var u=Date.now(),c=i[a];n||(n=u),r[o]=s,i[o]=u;for(var l=a,h=0;l!==o;)h+=r[l++],l%=e;if((o=(o+1)%e)===a&&(a=(a+1)%e),!(u-n<t)){var f=c&&u-c;return f?Math.round(1e3*h/f):void 0}}};var Do=function(e,t){var n,r,i=0,o=1e3/t,a=function(t){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Date.now();i=o,n=null,r&&(clearTimeout(r),r=null),e.apply(void 0,C(t))};return[function(){for(var e=Date.now(),t=e-i,s=arguments.length,u=new Array(s),c=0;c<s;c++)u[c]=arguments[c];t>=o?a(u,e):(n=u,r||(r=setTimeout((function(){r=null,a(n)}),o-t)))},function(){return n&&a(n)}]},xo=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3,r=0,i=Mo(50,250);return Do((function(n){if(n&&"number"==typeof n.loaded){var o=n.loaded,a=n.lengthComputable?n.total:void 0,s=null!=a?Math.min(o,a):o,u=Math.max(0,s-r),c=i(u);r=Math.max(r,s);var l=y({loaded:s,total:a,progress:a?s/a:void 0,bytes:u,rate:c||void 0,estimated:c&&a?(a-s)/c:void 0,event:n,lengthComputable:null!=a},t?"download":"upload",!0);e(l)}}),n)},Bo=function(e,t){var n=null!=e;return[function(r){return t[0]({lengthComputable:n,total:e,loaded:r})},t[1]]},Uo=function(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return zi.asap((function(){return e.apply(void 0,n)}))}},Ho=To.hasStandardBrowserEnv?function(e,t){return function(n){return n=new URL(n,To.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)}}(new URL(To.origin),To.navigator&&/(msie|trident)/i.test(To.navigator.userAgent)):function(){return!0},jo=To.hasStandardBrowserEnv?{write:function(e,t,n,r,i,o,a){if("undefined"!=typeof document){var s=["".concat(e,"=").concat(encodeURIComponent(t))];zi.isNumber(n)&&s.push("expires=".concat(new Date(n).toUTCString())),zi.isString(r)&&s.push("path=".concat(r)),zi.isString(i)&&s.push("domain=".concat(i)),!0===o&&s.push("secure"),zi.isString(a)&&s.push("SameSite=".concat(a)),document.cookie=s.join("; ")}},read:function(e){if("undefined"==typeof document)return null;for(var t=document.cookie.split(";"),n=0;n<t.length;n++){var r=t[n].replace(/^\s+/,""),i=r.indexOf("=");if(-1!==i&&r.slice(0,i)===e)return decodeURIComponent(r.slice(i+1))}return null},remove:function(e){this.write(e,"",Date.now()-864e5,"/")}}:{write:function(){},read:function(){return null},remove:function(){}};var zo=/^https?:(?!\/\/)/i,Go=/[\t\n\r]/g;function Ko(e,t){if("string"==typeof e&&zo.test(function(e){return function(e){for(var t=0;t<e.length&&e.charCodeAt(t)<=32;)t++;return e.slice(t)}(e).replace(Go,"")}(e)))throw new to('Invalid URL: missing "//" after protocol',to.ERR_INVALID_URL,t)}function Yo(e,t,n,r){Ko(t,r);var i,o=!("string"==typeof(i=t)&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(i));return e&&(o||!1===n)?(Ko(e,r),function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t)):t}var Fo=function(e){return e instanceof Qi?b({},e):e};function Wo(e,t){t=t||{};var n=Object.create(null);function r(e,t,n,r){return zi.isPlainObject(e)&&zi.isPlainObject(t)?zi.merge.call({caseless:r},e,t):zi.isPlainObject(t)?zi.merge({},t):zi.isArray(t)?t.slice():t}function i(e,t,n,i){return zi.isUndefined(t)?zi.isUndefined(e)?void 0:r(void 0,e,0,i):r(e,t,0,i)}function o(e,t){if(!zi.isUndefined(t))return r(void 0,t)}function a(e,t){return zi.isUndefined(t)?zi.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function s(n,i,o){return zi.hasOwnProp(t,o)?r(n,i):zi.hasOwnProp(e,o)?r(void 0,n):void 0}Object.defineProperty(n,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});var u={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,allowedSocketPaths:a,responseEncoding:a,validateStatus:s,headers:function(e,t,n){return i(Fo(e),Fo(t),0,!0)}};return zi.forEach(Object.keys(b(b({},e),t)),(function(r){if("__proto__"!==r&&"constructor"!==r&&"prototype"!==r){var o=zi.hasOwnProp(u,r)?u[r]:i,a=o(zi.hasOwnProp(e,r)?e[r]:void 0,zi.hasOwnProp(t,r)?t[r]:void 0,r);zi.isUndefined(a)&&o!==s||(n[r]=a)}})),zi.hasOwnProp(t,"validateStatus")&&zi.isUndefined(t.validateStatus)&&!1===function(n){var r=zi.hasOwnProp(t,"transitional")?t.transitional:void 0;if(!zi.isUndefined(r)){if(!zi.isPlainObject(r))return;if(zi.hasOwnProp(r,n))return r[n]}var i=zi.hasOwnProp(e,"transitional")?e.transitional:void 0;if(zi.isPlainObject(i)&&zi.hasOwnProp(i,n))return i[n]}("validateStatusUndefinedResolves")&&(zi.hasOwnProp(e,"validateStatus")?n.validateStatus=r(void 0,e.validateStatus):delete n.validateStatus),n}var Vo=["content-type","content-length"];var qo=function(e){var t=Wo({},e),n=function(e){return zi.hasOwnProp(t,e)?t[e]:void 0},r=n("data"),i=n("withXSRFToken"),o=n("xsrfHeaderName"),a=n("xsrfCookieName"),s=n("headers"),u=n("auth"),c=n("baseURL"),l=n("allowAbsoluteUrls"),h=n("url");if(t.headers=s=Qi.from(s),t.url=po(Yo(c,h,l,t),n("params"),n("paramsSerializer")),u){var f=zi.getSafeProp(u,"username")||"",d=zi.getSafeProp(u,"password")||"";s.set("Authorization","Basic "+btoa(f+":"+(d?encodeURIComponent(d).replace(/%([0-9A-F]{2})/gi,(function(e,t){return String.fromCharCode(parseInt(t,16))})):"")))}if(zi.isFormData(r)&&(To.hasStandardBrowserEnv||To.hasStandardBrowserWebWorkerEnv||zi.isReactNative(r)?s.setContentType(void 0):zi.isFunction(r.getHeaders)&&function(e,t,n){"content-only"===n?Object.entries(t).forEach((function(t){var n=R(t,2),r=n[0],i=n[1];Vo.includes(r.toLowerCase())&&e.set(r,i)})):e.set(t)}(s,r.getHeaders(),n("formDataHeaderPolicy"))),To.hasStandardBrowserEnv&&(zi.isFunction(i)&&(i=i(t)),!0===i||null==i&&Ho(t.url))){var p=o&&a&&jo.read(a);p&&s.set(o,p)}return t},Jo="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){var r,i,o,a,s,u=qo(e),c=u.data,l=Qi.from(u.headers).normalize(),h=u.responseType,f=u.onUploadProgress,d=u.onDownloadProgress;function p(){a&&a(),s&&s(),u.cancelToken&&u.cancelToken.unsubscribe(r),u.signal&&u.signal.removeEventListener("abort",r)}var g=new XMLHttpRequest;function v(){if(g){var r=Qi.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders());Co((function(e){t(e),p()}),(function(e){n(e),p()}),{data:h&&"text"!==h&&"json"!==h?g.response:g.responseText,status:g.status,statusText:g.statusText,headers:r,config:e,request:g}),g=null}}if(g.open(u.method.toUpperCase(),u.url,!0),g.timeout=u.timeout,"onloadend"in g?g.onloadend=v:g.onreadystatechange=function(){g&&4===g.readyState&&(0!==g.status||g.responseURL&&g.responseURL.startsWith("file:"))&&setTimeout(v)},g.onabort=function(){g&&(n(new to("Request aborted",to.ECONNABORTED,e,g)),p(),g=null)},g.onerror=function(t){var r=t&&t.message?t.message:"Network Error",i=new to(r,to.ERR_NETWORK,e,g);i.event=t||null,n(i),p(),g=null},g.ontimeout=function(){var t=u.timeout?"timeout of "+u.timeout+"ms exceeded":"timeout exceeded",r=u.transitional||mo;u.timeoutErrorMessage&&(t=u.timeoutErrorMessage),n(new to(t,r.clarifyTimeoutError?to.ETIMEDOUT:to.ECONNABORTED,e,g)),p(),g=null},void 0===c&&l.setContentType(null),"setRequestHeader"in g&&zi.forEach(Wi(l),(function(e,t){g.setRequestHeader(t,e)})),zi.isUndefined(u.withCredentials)||(g.withCredentials=!!u.withCredentials),h&&"json"!==h&&(g.responseType=u.responseType),d){var m=xo(d,!0),y=R(m,2);o=y[0],s=y[1],g.addEventListener("progress",o)}if(f&&g.upload){var _=xo(f),b=R(_,2);i=b[0],a=b[1],g.upload.addEventListener("progress",i),g.upload.addEventListener("loadend",a)}(u.cancelToken||u.signal)&&(r=function(t){g&&(n(!t||t.type?new Io(null,e,g):t),g.abort(),p(),g=null)},u.cancelToken&&u.cancelToken.subscribe(r),u.signal&&(u.signal.aborted?r():u.signal.addEventListener("abort",r)));var E,w,S=(E=u.url,(w=/^([-+\w]{1,25}):(?:\/\/)?/.exec(E))&&w[1]||"");!S||To.protocols.includes(S)?g.send(c||null):n(new to("Unsupported protocol "+S+":",to.ERR_BAD_REQUEST,e))}))},Xo=function(e,t){if(e=e?e.filter(Boolean):[],t||e.length){var n=new AbortController,r=!1,i=function(e){if(!r){r=!0,a();var t=e instanceof Error?e:this.reason;n.abort(t instanceof to?t:new Io(t instanceof Error?t.message:t))}},o=t&&setTimeout((function(){o=null,i(new to("timeout of ".concat(t,"ms exceeded"),to.ETIMEDOUT))}),t),a=function(){e&&(o&&clearTimeout(o),o=null,e.forEach((function(e){e.unsubscribe?e.unsubscribe(i):e.removeEventListener("abort",i)})),e=null)};e.forEach((function(e){return e.addEventListener("abort",i)}));var s=n.signal;return s.unsubscribe=function(){return zi.asap(a)},s}},Zo=n(697),Qo=n(946),$o=n(331),ea=n(193),ta=w().mark((function e(t,n){var r,i,o;return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.byteLength,n&&!(r<n)){e.next=5;break}return e.next=4,t;case 4:return e.abrupt("return");case 5:i=0;case 6:if(!(i<r)){e.next=13;break}return o=i+n,e.next=10,t.slice(i,o);case 10:i=o,e.next=6;break;case 13:case"end":return e.stop()}}),e)})),na=function(){var e=Zo(w().mark((function e(t,n){var r,i,o,a,s,u;return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=!1,i=!1,e.prev=2,a=ea(ra(t));case 4:return e.next=6,Qo(a.next());case 6:if(!(r=!(s=e.sent).done)){e.next=12;break}return u=s.value,e.delegateYield($o(ea(ta(u,n)),Qo),"t0",9);case 9:r=!1,e.next=4;break;case 12:e.next=18;break;case 14:e.prev=14,e.t1=e.catch(2),i=!0,o=e.t1;case 18:if(e.prev=18,e.prev=19,!r||null==a.return){e.next=23;break}return e.next=23,Qo(a.return());case 23:if(e.prev=23,!i){e.next=26;break}throw o;case 26:return e.finish(23);case 27:return e.finish(18);case 28:case"end":return e.stop()}}),e,null,[[2,14,18,28],[19,,23,27]])})));return function(t,n){return e.apply(this,arguments)}}(),ra=function(){var e=Zo(w().mark((function e(t){var n,r,i,o;return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t[Symbol.asyncIterator]){e.next=3;break}return e.delegateYield($o(ea(t),Qo),"t0",2);case 2:return e.abrupt("return");case 3:n=t.getReader(),e.prev=4;case 5:return e.next=7,Qo(n.read());case 7:if(r=e.sent,i=r.done,o=r.value,!i){e.next=12;break}return e.abrupt("break",16);case 12:return e.next=14,o;case 14:e.next=5;break;case 16:return e.prev=16,e.next=19,Qo(n.cancel());case 19:return e.finish(16);case 20:case"end":return e.stop()}}),e,null,[[4,,16,20]])})));return function(t){return e.apply(this,arguments)}}(),ia=function(e,t,n,r){var i,o=na(e,t),a=0,s=function(e){i||(i=!0,r&&r(e))};return new ReadableStream({pull:function(e){return T(w().mark((function t(){var r,i,u,c,l;return w().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,o.next();case 3:if(r=t.sent,i=r.done,u=r.value,!i){t.next=10;break}return s(),e.close(),t.abrupt("return");case 10:c=u.byteLength,n&&(l=a+=c,n(l)),e.enqueue(new Uint8Array(u)),t.next=19;break;case 15:throw t.prev=15,t.t0=t.catch(0),s(t.t0),t.t0;case 19:case"end":return t.stop()}}),t,null,[[0,15]])})))()},cancel:function(e){return s(e),o.return()}},{highWaterMark:2})},oa=function(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102},aa=function(e,t,n){return t+2<n&&oa(e.charCodeAt(t+1))&&oa(e.charCodeAt(t+2))};function sa(e){if(!e||"string"!=typeof e)return 0;if(!e.startsWith("data:"))return 0;var t=e.indexOf(",");if(t<0)return 0;var n=e.slice(5,t),r=e.slice(t+1);if(/;base64/i.test(n)){for(var i=r.length,o=r.length,a=0;a<o;a++)if(37===r.charCodeAt(a)&&a+2<o){var s=r.charCodeAt(a+1),u=r.charCodeAt(a+2);oa(s)&&oa(u)&&(i-=2,a+=2)}var c=0,l=o-1,h=function(e){return e>=2&&37===r.charCodeAt(e-2)&&51===r.charCodeAt(e-1)&&(68===r.charCodeAt(e)||100===r.charCodeAt(e))};l>=0&&(61===r.charCodeAt(l)?(c++,l--):h(l)&&(c++,l-=3)),1===c&&l>=0&&(61===r.charCodeAt(l)||h(l))&&c++;var f=3*Math.floor(i/4)-(c||0);return f>0?f:0}for(var d=0,p=0,g=r.length;p<g;p++){var v=r.charCodeAt(p);if(37===v&&aa(r,p,g))d+=1,p+=2;else if(v<128)d+=1;else if(v<2048)d+=2;else if(v>=55296&&v<=56319&&p+1<g){var m=r.charCodeAt(p+1);m>=56320&&m<=57343?(d+=4,p++):d+=3}else d+=3}return d}var ua="1.18.0",ca=zi.isFunction,la=function(e){if(!zi.isString(e))return e;try{return decodeURIComponent(e)}catch(t){return e}},ha=function(e){try{for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return!!e.apply(void 0,n)}catch(e){return!1}},fa=function(e){var t=e.indexOf("://"),n=e;return-1!==t&&(n=n.slice(t+3)),n.includes("@")||n.includes(":")},da=function(e){var t=void 0!==zi.global&&null!==zi.global?zi.global:globalThis,n=t.ReadableStream,r=t.TextEncoder,i=e=zi.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e),o=i.fetch,a=i.Request,s=i.Response,u=o?ca(o):"function"==typeof fetch,c=ca(a),l=ca(s);if(!u)return!1;var h,f=u&&ca(n),d=u&&("function"==typeof r?(h=new r,function(e){return h.encode(e)}):function(){var e=T(w().mark((function e(t){return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.t0=Uint8Array,e.next=3,new a(t).arrayBuffer();case 3:return e.t1=e.sent,e.abrupt("return",new e.t0(e.t1));case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),p=c&&f&&ha((function(){var e=!1,t=new a(To.origin,{body:new n,method:"POST",get duplex(){return e=!0,"half"}}),r=t.headers.has("Content-Type");return null!=t.body&&t.body.cancel(),e&&!r})),g=l&&f&&ha((function(){return zi.isReadableStream(new s("").body)})),v={stream:g&&function(e){return e.body}};u&&["text","arrayBuffer","blob","formData","stream"].forEach((function(e){!v[e]&&(v[e]=function(t,n){var r=t&&t[e];if(r)return r.call(t);throw new to("Response type '".concat(e,"' is not supported"),to.ERR_NOT_SUPPORT,n)})}));var m=function(){var e=T(w().mark((function e(t){var n;return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!=t){e.next=2;break}return e.abrupt("return",0);case 2:if(!zi.isBlob(t)){e.next=4;break}return e.abrupt("return",t.size);case 4:if(!zi.isSpecCompliantForm(t)){e.next=9;break}return n=new a(To.origin,{method:"POST",body:t}),e.next=8,n.arrayBuffer();case 8:case 15:return e.abrupt("return",e.sent.byteLength);case 9:if(!zi.isArrayBufferView(t)&&!zi.isArrayBuffer(t)){e.next=11;break}return e.abrupt("return",t.byteLength);case 11:if(zi.isURLSearchParams(t)&&(t+=""),!zi.isString(t)){e.next=16;break}return e.next=15,d(t);case 16:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),y=function(){var e=T(w().mark((function e(t,n){var r;return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=zi.toFiniteNumber(t.getContentLength()),e.abrupt("return",null==r?m(n):r);case 2:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}();return function(){var e=T(w().mark((function e(t){var n,i,u,l,h,d,_,E,S,T,A,P,L,k,N,O,I,C,M,D,x,B,U,H,j,z,G,K,Y,F,W,V,q,J,X,Z,Q,$,ee,te,ne,re,ie,oe,ae,se,ue,ce,le,he,fe,de,pe,ge,ve,me,ye,_e,be;return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=qo(t),i=n.url,u=n.method,l=n.data,h=n.signal,d=n.cancelToken,_=n.timeout,E=n.onDownloadProgress,S=n.onUploadProgress,T=n.responseType,A=n.headers,P=n.withCredentials,L=void 0===P?"same-origin":P,k=n.fetchOptions,N=n.maxContentLength,O=n.maxBodyLength,I=zi.isNumber(N)&&N>-1,C=zi.isNumber(O)&&O>-1,M=function(e){return zi.hasOwnProp(t,e)?t[e]:void 0},D=o||fetch,T=T?(T+"").toLowerCase():"text",x=Xo([h,d&&d.toAbortSignal()],_),B=null,U=x&&x.unsubscribe&&function(){x.unsubscribe()},j=null,z=function(){return new to("Request body larger than maxBodyLength limit",to.ERR_BAD_REQUEST,t,B)},e.prev=11,G=void 0,(K=M("auth"))&&(Y=zi.getSafeProp(K,"username")||"",F=zi.getSafeProp(K,"password")||"",G={username:Y,password:F}),fa(i)&&(W=new URL(i,To.origin),G||!W.username&&!W.password||(V=la(W.username),q=la(W.password),G={username:V,password:q}),(W.username||W.password)&&(W.username="",W.password="",i=W.href)),G&&(A.delete("authorization"),A.set("Authorization","Basic "+btoa((w=(G.username||"")+":"+(G.password||""),encodeURIComponent(w).replace(/%([0-9A-F]{2})/gi,(function(e,t){return String.fromCharCode(parseInt(t,16))})))))),!I||"string"!=typeof i||!i.startsWith("data:")){e.next=21;break}if(!(sa(i)>N)){e.next=21;break}throw new to("maxContentLength size of "+N+" exceeded",to.ERR_BAD_RESPONSE,t,B);case 21:if(!C||"get"===u||"head"===u){e.next=29;break}return e.next=24,m(l);case 24:if("number"!=typeof(J=e.sent)||!isFinite(J)){e.next=29;break}if(H=J,!(J>O)){e.next=29;break}throw z();case 29:if(X=C&&(zi.isReadableStream(l)||zi.isStream(l)),Z=function(e,t,n){return ia(e,65536,(function(e){if(C&&e>O)throw j=z();t&&t(e)}),n)},!p||"get"===u||"head"===u||!S&&!X){e.next=43;break}if(null!=H){e.next=38;break}return e.next=35,y(A,l);case 35:e.t0=e.sent,e.next=39;break;case 38:e.t0=H;case 39:(0!==(H=e.t0)||X)&&(Q=new a(i,{method:"POST",body:l,duplex:"half"}),zi.isFormData(l)&&($=Q.headers.get("content-type"))&&A.setContentType($),Q.body&&(ee=S&&Bo(H,xo(Uo(S)))||[],te=R(ee,2),ne=te[0],re=te[1],l=Z(Q.body,ne,re))),e.next=49;break;case 43:if(!X||c||!f||"get"===u||"head"===u){e.next=47;break}l=Z(l),e.next=49;break;case 47:if(!X||!c||p||"get"===u||"head"===u){e.next=49;break}throw new to("Stream request bodies are not supported by the current fetch implementation",to.ERR_NOT_SUPPORT,t,B);case 49:return zi.isString(L)||(L=L?"include":"omit"),ie=c&&"credentials"in a.prototype,zi.isFormData(l)&&(oe=A.getContentType())&&/^multipart\/form-data/i.test(oe)&&!/boundary=/i.test(oe)&&A.delete("content-type"),A.set("User-Agent","axios/"+ua,!1),ae=b(b({},k),{},{signal:x,method:u.toUpperCase(),headers:Wi(A.normalize()),body:l,duplex:"half",credentials:ie?L:void 0}),B=c&&new a(i,ae),e.next=57,c?D(B,k):D(i,ae);case 57:if(se=e.sent,ue=Qi.from(se.headers),!I){e.next=63;break}if(!(null!=(ce=zi.toFiniteNumber(ue.getContentLength()))&&ce>N)){e.next=63;break}throw new to("maxContentLength size of "+N+" exceeded",to.ERR_BAD_RESPONSE,t,B);case 63:return le=g&&("stream"===T||"response"===T),g&&se.body&&(E||I||le&&U)&&(he={},["status","statusText","headers"].forEach((function(e){he[e]=se[e]})),fe=zi.toFiniteNumber(ue.getContentLength()),de=E&&Bo(fe,xo(Uo(E),!0))||[],pe=R(de,2),ge=pe[0],ve=pe[1],0,me=function(e){if(I&&e>N)throw new to("maxContentLength size of "+N+" exceeded",to.ERR_BAD_RESPONSE,t,B);ge&&ge(e)},se=new s(ia(se.body,65536,me,(function(){ve&&ve(),U&&U()})),he)),T=T||"text",e.next=68,v[zi.findKey(v,T)||"text"](se,t);case 68:if(ye=e.sent,!I||g||le){e.next=73;break}if(null!=ye&&("number"==typeof ye.byteLength?_e=ye.byteLength:"number"==typeof ye.size?_e=ye.size:"string"==typeof ye&&(_e="function"==typeof r?(new r).encode(ye).byteLength:ye.length)),!("number"==typeof _e&&_e>N)){e.next=73;break}throw new to("maxContentLength size of "+N+" exceeded",to.ERR_BAD_RESPONSE,t,B);case 73:return!le&&U&&U(),e.next=76,new Promise((function(e,n){Co(e,n,{data:ye,headers:Qi.from(se.headers),status:se.status,statusText:se.statusText,config:t,request:B})}));case 76:return e.abrupt("return",e.sent);case 79:if(e.prev=79,e.t1=e.catch(11),U&&U(),!(x&&x.aborted&&x.reason instanceof to)){e.next=88;break}throw(be=x.reason).config=t,B&&(be.request=B),e.t1!==be&&(be.cause=e.t1),be;case 88:if(!j){e.next=91;break}throw B&&!j.request&&(j.request=B),j;case 91:if(!(e.t1 instanceof to)){e.next=94;break}throw B&&!e.t1.request&&(e.t1.request=B),e.t1;case 94:if(!e.t1||"TypeError"!==e.t1.name||!/Load failed|fetch/i.test(e.t1.message)){e.next=96;break}throw Object.assign(new to("Network Error",to.ERR_NETWORK,t,B,e.t1&&e.t1.response),{cause:e.t1.cause||e.t1});case 96:throw to.from(e.t1,e.t1&&e.t1.code,t,B,e.t1&&e.t1.response);case 97:case"end":return e.stop()}var w}),e,null,[[11,79]])})));return function(t){return e.apply(this,arguments)}}()},pa=new Map,ga=function(e){for(var t,n,r=e&&e.env||{},i=r.fetch,o=[r.Request,r.Response,i],a=o.length,s=pa;a--;)t=o[a],void 0===(n=s.get(t))&&s.set(t,n=a?new Map:da(r)),s=n;return n},va=(ga(),{http:null,xhr:Jo,fetch:{get:ga}});zi.forEach(va,(function(e,t){if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch(e){}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}}));var ma=function(e){return"- ".concat(e)},ya=function(e){return zi.isFunction(e)||null===e||!1===e};var _a={getAdapter:function(e,t){for(var n,r,i=(e=zi.isArray(e)?e:[e]).length,o={},a=0;a<i;a++){var s=void 0;if(r=n=e[a],!ya(n)&&void 0===(r=va[(s=String(n)).toLowerCase()]))throw new to("Unknown adapter '".concat(s,"'"));if(r&&(zi.isFunction(r)||(r=r.get(t))))break;o[s||"#"+a]=r}if(!r){var u=Object.entries(o).map((function(e){var t=R(e,2),n=t[0],r=t[1];return"adapter ".concat(n," ")+(!1===r?"is not supported by the environment":"is not available in the build")})),c=i?u.length>1?"since :\n"+u.map(ma).join("\n"):" "+ma(u[0]):"as no adapter specified";throw new to("There is no suitable adapter to dispatch the request "+c,"ERR_NOT_SUPPORT")}return r},adapters:va};function ba(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Io(null,e)}function Ea(e){return ba(e),e.headers=Qi.from(e.headers),e.data=No.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),_a.getAdapter(e.adapter||ko.adapter,e)(e).then((function(t){ba(e),e.response=t;try{t.data=No.call(e,e.transformResponse,t)}finally{delete e.response}return t.headers=Qi.from(t.headers),t}),(function(t){if(!Oo(t)&&(ba(e),t&&t.response)){e.response=t.response;try{t.response.data=No.call(e,e.transformResponse,t.response)}finally{delete e.response}t.response.headers=Qi.from(t.response.headers)}return Promise.reject(t)}))}var wa={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){wa[e]=function(n){return P(n)===e||"a"+(t<1?"n ":" ")+e}}));var Sa={};wa.transitional=function(e,t,n){function r(e,t){return"[Axios v"+ua+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,i,o){if(!1===e)throw new to(r(i," has been removed"+(t?" in "+t:"")),to.ERR_DEPRECATED);return t&&!Sa[i]&&(Sa[i]=!0,console.warn(r(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,i,o)}},wa.spelling=function(e){return function(t,n){return console.warn("".concat(n," is likely a misspelling of ").concat(e)),!0}};var Ta={assertOptions:function(e,t,n){if("object"!==P(e))throw new to("options must be an object",to.ERR_BAD_OPTION_VALUE);for(var r=Object.keys(e),i=r.length;i-- >0;){var o=r[i],a=Object.prototype.hasOwnProperty.call(t,o)?t[o]:void 0;if(a){var s=e[o],u=void 0===s||a(s,o,e);if(!0!==u)throw new to("option "+o+" must be "+u,to.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new to("Unknown option "+o,to.ERR_BAD_OPTION)}},validators:wa},Aa=Ta.validators,Ra=function(){function e(t){u(this,e),this.defaults=t||{},this.interceptors={request:new vo,response:new vo}}var t;return l(e,[{key:"request",value:(t=T(w().mark((function e(t,n){var r,i,o,a,s;return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this._request(t,n);case 3:return e.abrupt("return",e.sent);case 6:if(e.prev=6,e.t0=e.catch(0),e.t0 instanceof Error){r={},Error.captureStackTrace?Error.captureStackTrace(r):r=new Error,i=function(){if(!r.stack)return"";var e=r.stack.indexOf("\n");return-1===e?"":r.stack.slice(e+1)}();try{e.t0.stack?i&&(o=i.indexOf("\n"),a=-1===o?-1:i.indexOf("\n",o+1),s=-1===a?"":i.slice(a+1),String(e.t0.stack).endsWith(s)||(e.t0.stack+="\n"+i)):e.t0.stack=i}catch(e){}}throw e.t0;case 10:case"end":return e.stop()}}),e,this,[[0,6]])}))),function(e,n){return t.apply(this,arguments)})},{key:"_request",value:function(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{};var n=t=Wo(this.defaults,t),r=n.transitional,i=n.paramsSerializer,o=n.headers;void 0!==r&&Ta.assertOptions(r,{silentJSONParsing:Aa.transitional(Aa.boolean),forcedJSONParsing:Aa.transitional(Aa.boolean),clarifyTimeoutError:Aa.transitional(Aa.boolean),legacyInterceptorReqResOrdering:Aa.transitional(Aa.boolean),advertiseZstdAcceptEncoding:Aa.transitional(Aa.boolean),validateStatusUndefinedResolves:Aa.transitional(Aa.boolean)},!1),null!=i&&(zi.isFunction(i)?t.paramsSerializer={serialize:i}:Ta.assertOptions(i,{encode:Aa.function,serialize:Aa.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),Ta.assertOptions(t,{baseUrl:Aa.spelling("baseURL"),withXsrfToken:Aa.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();var a=o&&zi.merge(o.common,o[t.method]);o&&zi.forEach(["delete","get","head","post","put","patch","query","common"],(function(e){delete o[e]})),t.headers=Qi.concat(a,o);var s=[],u=!0;this.interceptors.request.forEach((function(e){if("function"!=typeof e.runWhen||!1!==e.runWhen(t)){u=u&&e.synchronous;var n=t.transitional||mo;n&&n.legacyInterceptorReqResOrdering?s.unshift(e.fulfilled,e.rejected):s.push(e.fulfilled,e.rejected)}}));var c,l=[];this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)}));var h,f=0;if(!u){var d=[Ea.bind(this),void 0];for(d.unshift.apply(d,s),d.push.apply(d,l),h=d.length,c=Promise.resolve(t);f<h;)c=c.then(d[f++],d[f++]);return c}h=s.length;for(var p=t;f<h;){var g=s[f++],v=s[f++];try{p=g(p)}catch(e){v.call(this,e);break}}try{c=Ea.call(this,p)}catch(e){return Promise.reject(e)}for(f=0,h=l.length;f<h;)c=c.then(l[f++],l[f++]);return c}},{key:"getUri",value:function(e){return po(Yo((e=Wo(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls,e),e.params,e.paramsSerializer)}}]),e}();zi.forEach(["delete","get","head","options"],(function(e){Ra.prototype[e]=function(t,n){return this.request(Wo(n||{},{method:e,url:t,data:n&&zi.hasOwnProp(n,"data")?n.data:void 0}))}})),zi.forEach(["post","put","patch","query"],(function(e){function t(t){return function(n,r,i){return this.request(Wo(i||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}Ra.prototype[e]=t(),"query"!==e&&(Ra.prototype[e+"Form"]=t(!0))}));var Pa=Ra,La=function(){function e(t){if(u(this,e),"function"!=typeof t)throw new TypeError("executor must be a function.");var n;this.promise=new Promise((function(e){n=e}));var r=this;this.promise.then((function(e){if(r._listeners){for(var t=r._listeners.length;t-- >0;)r._listeners[t](e);r._listeners=null}})),this.promise.then=function(e){var t,n=new Promise((function(e){r.subscribe(e),t=e})).then(e);return n.cancel=function(){r.unsubscribe(t)},n},t((function(e,t,i){r.reason||(r.reason=new Io(e,t,i),n(r.reason))}))}return l(e,[{key:"throwIfRequested",value:function(){if(this.reason)throw this.reason}},{key:"subscribe",value:function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}},{key:"unsubscribe",value:function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}}},{key:"toAbortSignal",value:function(){var e=this,t=new AbortController,n=function(e){t.abort(e)};return this.subscribe(n),t.signal.unsubscribe=function(){return e.unsubscribe(n)},t.signal}}],[{key:"source",value:function(){var t,n=new e((function(e){t=e}));return{token:n,cancel:t}}}]),e}(),ka=La;var Na={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Na).forEach((function(e){var t=R(e,2),n=t[0],r=t[1];Na[r]=n}));var Oa=Na;var Ia=function e(t){var n=new Pa(t),r=Gr(Pa.prototype.request,n);return zi.extend(r,Pa.prototype,n,{allOwnKeys:!0}),zi.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(Wo(t,n))},r}(ko);Ia.Axios=Pa,Ia.CanceledError=Io,Ia.CancelToken=ka,Ia.isCancel=Oo,Ia.VERSION=ua,Ia.toFormData=so,Ia.AxiosError=to,Ia.Cancel=Ia.CanceledError,Ia.all=function(e){return Promise.all(e)},Ia.spread=function(e){return function(t){return e.apply(null,t)}},Ia.isAxiosError=function(e){return zi.isObject(e)&&!0===e.isAxiosError},Ia.mergeConfig=Wo,Ia.AxiosHeaders=Qi,Ia.formToJSON=function(e){return Ro(zi.isHTMLForm(e)?new FormData(e):e)},Ia.getAdapter=_a.getAdapter,Ia.HttpStatusCode=Oa,Ia.default=Ia;var Ca=Ia,Ma=n(414),Da=function(){try{var e;return(null===(e=navigator)||void 0===e?void 0:e.javaEnabled())||!1}catch(e){}return!1},xa={local:"http://imgs-63.sggz00b.dev.alipay.net/mgw.htm",dev:"http://imgs-63.sggz00b.dev.alipay.net/mgw.htm",sit:"http://imgs-9.sggz00a.test.alipay.net/mgw.htm",light_sandbox:"https://imgs-sea-global.alipay.com/mgw.htm",pre:"https://imgs-sea-pre.alipay.com/mgw.htm",prod:"https://imgs-sea-global.alipay.com/mgw.htm",sandbox:"https://imgs-sea-global.alipay.com/mgw.htm"},Ba="ANTOM_PAYMENT_WEB",Ua=(function(e){var t={};(e||(e=window.location.href),"undefined"==typeof URL)?e.replace(/([^?=&#]+)(=([^&#]*))?/g,(function(e,n,r,i){return void 0===i?"":(t[n]=decodeURIComponent(i).replace(/\+/g," "),t[n])})):new URL(e).searchParams.forEach((function(e,n){t[n]=e}));return t}()||{}).instanceId;function Ha(){return new Promise((function(e){window&&window.AlipayJSBridge?e():document.addEventListener("AlipayJSBridgeReady",(function(){return e()}),!1)}))}var ja=function(){function e(t){u(this,e),y(this,"baseUrl",void 0),y(this,"headers",void 0),y(this,"method",void 0),y(this,"timeout",void 0),this.baseUrl=t.baseURL,this.headers=t.headers,this.method=t.method,this.timeout=t.timeout,this.request=this.request.bind(this)}return l(e,[{key:"request",value:function(e){var t=this;return new Promise((function(n,r){var i,o,a={url:e.url?t.baseUrl+e.url:t.baseUrl,method:null!==(i=e.method)&&void 0!==i?i:t.method,headers:b(b({},t.headers),e.headers),timeout:null!==(o=e.timeout)&&void 0!==o?o:t.timeout};e.data&&(a.data=function(e,t){try{var n=new WeakSet;return JSON.stringify(e,(function(e,t){if("object"===P(t)&&null!==t){if(n.has(t))return;n.add(t)}return t}))||t}catch(e){return t}}(e.data,"")),function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return new Promise((function(t){Ha().then((function(){var r;(r=window.AlipayJSBridge).call.apply(r,[e].concat(n,[function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t([].concat(n))}]))}))}))}("httpRequest",b({instanceId:Ua},a)).then((function(e){var t=Array.isArray(e)?e.length>0?e[0]:null:e;if(!t)return r(new Error("timeout"));if(0!==t.status)return r(new Error("timeout"));var i={status:t.httpCode,data:Ur(t.data),headers:za(t.headers)};n(i)}))}))}}]),e}();function za(e){if(!e)return e;var t={};for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];t[n]=Array.isArray(r)?r.length>0?r[0]:void 0:r}return t}var Ga=function(e){var t=Ma(e,"Result-Status")||Ma(e,"result-status","");if(!t)return null;if(2e3==+t)return{success:!1,errorCode:Tr.API_NOT_LOGIN,errorMessage:Er.get({id:"page.wrong.error.message",defaultMessage:"System error, please retry later"}),resultStatus:t};if(4001==+t)return{success:!1,errorCode:Tr.API_GATEWAY_TIMEOUT,errorMessage:Er.get({id:"page.wrong.error.message",defaultMessage:"System error, please retry later"}),resultStatus:t};if(1e3!=+t){var n=Ma(e,"Tips")||Ma(e,"tips","");return{success:!1,errorCode:Tr.API_GATEWAY_ERROR,errorMessage:n?decodeURIComponent(n):Er.get({id:"page.wrong.error.message",defaultMessage:"System error, please retry later"}),resultStatus:t}}return null},Ka={};function Ya(e,t,n){return Fa.apply(this,arguments)}function Fa(){return(Fa=T(w().mark((function e(t,n,r){var i,o,a,s,u,c,l,h,f,d,p,g,v,m,y,_,E,S,T,A,R;return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=b(b(b({},Ka),r),{},{envInfo:b(b({},Ka.envInfo),null==r?void 0:r.envInfo),headers:b(b({},Ka.headers),null==r?void 0:r.headers)}),a=Lr(o.tracker,o.scope),s=kr(o.tracker,o.scope),o.hostSign){e.next=10;break}e.next=8;break;case 8:console.warn("[Antom SDK] request hostSign is missing, please set hostSign in request options or global options.");case 9:o.hostSign="SG";case 10:return"WAP"===(u=b(b({terminalType:xr?"WAP":"WEB",browserInfo:{browserJavaScriptEnabled:!0,browserJavaEnabled:Da(),browserLanguage:navigator.language,browserUserAgent:navigator.userAgent,browserColorDepth:screen.colorDepth},deviceLanguage:navigator.language,screenWidth:screen.width,screenHeight:screen.height,timeZoneOffset:(new Date).getTimezoneOffset()},null==o?void 0:o.envInfo),{},{locale:wr((null==o?void 0:o.locale)||(null==o||null===(i=o.envInfo)||void 0===i?void 0:i.locale))})).terminalType&&(u.osType=Dr?"IOS":"ANDROID"),c=[b(b({},n),{},{envInfo:u,extParams:b(b({},null==n?void 0:n.extParams),{},{refUrl:window.location.href})})],l=performance.now(),e.prev=14,h=Wa(t,o),e.next=18,h({data:c});case 18:if(f=e.sent,d=f.data,p=f.headers,g=d||{},v=Ma(p,"Mgw-TraceId")||Ma(p,"mgw-traceid",""),g.traceId=v,!(m=Ga(p))){e.next=29;break}throw y=m.errorMessage,_=m.errorCode,new Pr(y,_,"SERVER_API","".concat(v," (").concat(t,")"));case 29:if(d.success){e.next=34;break}throw"true"!==(null===(E=d.extendInfo)||void 0===E?void 0:E.mulityLanguageMapping)&&(d.errorMessage=Er.get({id:"server.".concat(d.errorCode),defaultMessage:Er.get({id:"event.callback.code.${data.errorCode}",defaultMessage:Er.get({id:"ckp.paymentError.${data.errorCode}",defaultMessage:Er.get({id:"page.wrong.error.message",defaultMessage:"System error, please retry later"})})})})),(T=new Rr(d.errorMessage||d.resultMessage||Er.get({id:"page.wrong.error.message",defaultMessage:"System error, please retry later"}),d.errorCode||(null===(S=d.errorContext)||void 0===S||null===(S=S.errorStack)||void 0===S||null===(S=S[0])||void 0===S?void 0:S.errorName)||"API_SYSTEM_ERROR","SERVER_API","".concat(v," (").concat(t,")"))).response=g,T;case 34:return a.success(t,performance.now()-l,v),e.abrupt("return",g);case 38:if(e.prev=38,e.t0=e.catch(14),!Pr.isError(e.t0)){e.next=43;break}return a.error(t,performance.now()-l,e.t0.message,e.t0.code,e.t0.traceId),e.abrupt("return",Promise.reject(e.t0));case 43:return R=e.t0,s(R),e.abrupt("return",Promise.reject(new Pr(R.message,null!==(A=R.message)&&void 0!==A&&A.includes("timeout")?"API_TIMEOUT":"API_SYSTEM_ERROR","SYSTEM","WithoutTraceId (".concat(t,")"))));case 46:case"end":return e.stop()}}),e,null,[[14,38]])})))).apply(this,arguments)}function Wa(e,t){var n,r=new Date,i=r.getTime()+60*r.getTimezoneOffset()*1e3,o=(null==t?void 0:t.env)||"prod",a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,n={"com.ipay.iexpcashier.sdkAction.query":"com.ipay.iopensandbox.sdk.paymentSession.query"},r="SDK_MOCK_SANDBOX";if(n[e]&&"light_sandbox"===t)return{appId:r,operationType:n[e]}}(e,o),s=(null==t?void 0:t.baseURL)||function(e,t){var n;return"pre"===t||"sandbox"===t&&"pre"===(null===(n=window)||void 0===n||null===(n=n.marmotInjectInfo)||void 0===n||null===(n=n.env)||void 0===n?void 0:n.toLocaleLowerCase())?{SG:"https://imgs-sea-pre.alipay.com/mgw.htm",US:"https://imgs-pre.alipay.com/mgw.htm",DE:"https://imgs-de-pre.alipay.com/mgw.htm",QK:"https://iopengw-qkgz99p.alipay.com/mgw.htm",ID:"https://imgs-id-pre.alipay.com/mgw.htm",SA:"https://imgs-sa-pre.alipay.com/mgw.htm"}[e||"SG"]:"prod"===t||"light_sandbox"===t||"sandbox"===t?{SG:"https://imgs-sea-global.alipay.com/mgw.htm",US:"https://imgs-na-global.alipay.com/mgw.htm",DE:"https://imgs-de-global.alipay.com/mgw.htm",QK:"https://imgs-qk.alipay.com/mgw.htm",ID:"https://imgs-id.alipay.com/mgw.htm",SA:"https://imgs-sa.alipay.com/mgw.htm"}[e||"SG"]:void 0}(null==t?void 0:t.hostSign,o)||xa[o],u=b(y(y(y(y(y(y(y(y({appId:(null==t?void 0:t.appId)||(null==a?void 0:a.appId)||Ba,workspaceId:"pre"===(null==t?void 0:t.env)?"pre":"default"},"x-cors-".concat(Ba.toLowerCase(),"-default"),"1"),"version","2.0"),"sofa-group-name",null==t?void 0:t.groupId),"Operation-Type",(null==a?void 0:a.operationType)||e),"Client-Time",i),"tntInstId","ALIPW3SG"),"x-mago-timeout",(null==t?void 0:t.timeout)||15e3),"sdk-version",(null==t?void 0:t.sdkVersion)||"0.0.1779094014-dev.21"),null==t?void 0:t.headers);"dev"!==o&&delete u["sofa-group-name"],"sandbox"===o&&(u["load-test"]=!0,u.sofaPenAttrs="instMock=O&loadMode=2");var c,l=null!==(n=null==t?void 0:t.timeout)&&void 0!==n?n:15e3,h=Object.entries(u).filter((function(e){return void 0!==e[1]&&null!==e[1]&&"object"!==P(e[1])})).reduce((function(e,t){var n=R(t,2),r=n[0],i=n[1];return e[r]=String(i),e}),{}),f={baseURL:s,timeout:l,headers:u},d=null;"app"===Ka.appType?d=new ja({baseURL:s,method:"POST",timeout:l,headers:h}):d=Ca.create(b(b({},f),{},{withCredentials:null===(c=null==t?void 0:t.withCredentials)||void 0===c||c,method:(null==t?void 0:t.method)||"POST"}));return d.request}Ya.setGlobalOptions=function(e){Object.assign(Ka,e)};"".concat(window.location.origin,"/elements/src/pages");var Va=Hr,qa=function(e){var t;if(!e)return{modernWeb:!1};var n=Va(e),r=!(null==n||null===(t=n.flowSwitchTags)||void 0===t||!t.split(",").includes("elementV3"));var i=!(null==n||!n.modernWeb);return(r||i)&&console.log("isModernWeb ------------\x3e true"),{fromFrontend:i,modernWeb:r||i}};function Ja(e){if(!e)return e;var t=qa(e),n=t.fromFrontend,r=t.modernWeb;if(!n||!r)return e;var i=e.split("&&").slice(0,3),o=Va(e);return null==o||delete o.modernWeb,i.concat(function(e){try{if(!e)return;var t=(new TextEncoder).encode(e),n=Array.from(t,(function(e){return String.fromCodePoint(e)})).join("");return btoa(n)}catch(e){return}}(JSON.stringify(o))).join("&&")}var Xa=function(e){return qa(e).modernWeb},Za="ams-popup",Qa=300,$a="ams-component-popup-loading",es="\n .".concat(Za,"modal {\n /* 添加弹窗样式 */\n background-color: #fff;\n box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);\n position: fixed;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n z-index: 9999; /* 设置弹窗的层级为 9999 */\n overflow: hidden;\n }\n .").concat(Za,"modal-mobile{\n background-color: #fff;\n box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);\n position: fixed;\n bottom: 0;\n left: 0%;\n z-index: 9999; /* 设置弹窗的层级为 9999 */\n overflow: hidden;\n }\n\n .").concat(Za,"overlay {\n /* 添加蒙层样式 */\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background-color: rgba(0, 0, 0, 0.4);\n z-index: 999;\n }\n\n .").concat(Za,"fadeIn {\n /* 添加淡入动画 */\n animation: fadeIn ").concat(Qa,"ms;\n animation-fill-mode: forwards;\n }\n\n .").concat(Za,"fadeOut {\n /* 添加淡出动画 */\n animation: fadeOut ").concat(Qa,"ms;\n animation-fill-mode: forwards;\n }\n\n .").concat(Za,"-drawer-enter {\n animation: slideIn ").concat(Qa,"ms forwards;\n }\n\n @keyframes slideIn {\n from {\n transform: translateY(100%); /* 滑入时在视口底部外 */\n opacity: 0; /* 初始透明度为 0 */\n }\n to {\n transform: translateY(0); /* 滑入结束时在原位置 */\n opacity: 1; /* 结束时透明度为 1 */\n }\n }\n\n /* 抽屉从底部滑出 */\n .").concat(Za,"-drawer-exit {\n animation: slideOut ").concat(Qa,'ms forwards;\n }\n\n @keyframes slideOut {\n from {\n transform: translateY(0); /* 滑出时从当前位置开始 */\n opacity: 1; /* 初始透明度为 1 */\n }\n to {\n transform: translateY(100%); /* 滑出结束时在视口底部外 */\n opacity: 0; /* 结束时透明度为 0 */\n }\n }\n\n /* 定义淡入动画 */\n @keyframes fadeIn {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n }\n\n @-webkit-keyframes fadeIn {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n }\n\n @-moz-keyframes fadeIn {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n }\n\n /* 定义淡出动画 */\n @keyframes fadeOut {\n 0% {\n opacity: 1;\n }\n 100% {\n opacity: 0;\n }\n }\n\n @-webkit-keyframes fadeOut {\n 0% {\n opacity: 1;\n }\n 100% {\n opacity: 0;\n }\n }\n\n @-moz-keyframes fadeOut {\n 0% {\n opacity: 1;\n }\n 100% {\n opacity: 0;\n }\n }\n\n\n.ams-component-popup-loading {\n width: 0.8em;\n height:0.8em;\n border-radius: 8px;\n position: fixed;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n z-index: 1001;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n}\n\n.ams-component-popup-loading .line {\n width: 40px;\n height: 40px;\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n}\n.ams-component-popup-loading .line div {\n position: absolute;\n left: 17.67px;\n top: 0;\n width: 5.33px;\n height: 40px;\n}\n\n.ams-component-popup-loading .line div:before,\n.ams-component-popup-loading .line div:after {\n content: \'\';\n display: block;\n height: 13.33px;\n background: black;\n border-radius: 5.3px;\n}\n.ams-component-popup-loading .line div:after {\n margin-top: 13.33px;\n}\n\n.ams-component-popup-loading .line div:nth-child(2) {\n -webkit-transform: rotate(45deg);\n}\n\n.ams-component-popup-loading .line div:nth-child(3) {\n -webkit-transform: rotate(90deg);\n}\n\n.ams-component-popup-loading .line div:nth-child(4) {\n -webkit-transform: rotate(135deg);\n}\n\n/** 加载动画 **/\n@-webkit-keyframes load {\n 0% {\n opacity: 0;\n }\n\n 100% {\n opacity: 1;\n }\n}\n\n[dir="rtl"] .ams-component-popup-loading .line div:nth-child(4):before {\n -webkit-animation: load 1s linear 0s infinite;\n}\n\n[dir="rtl"] .ams-component-popup-loading .line div:nth-child(3):before {\n -webkit-animation: load 1s linear 0.125s infinite;\n}\n\n[dir="rtl"] .ams-component-popup-loading .line div:nth-child(2):before {\n -webkit-animation: load 1s linear 0.25s infinite;\n}\n\n[dir="rtl"] .ams-component-popup-loading .line div:nth-child(1):before {\n -webkit-animation: load 1s linear 0.375s infinite;\n}\n\n[dir="rtl"] .ams-component-popup-loading .line div:nth-child(4):after {\n -webkit-animation: load 1s linear 0.5s infinite;\n}\n\n[dir="rtl"] .ams-component-popup-loading .line div:nth-child(3):after {\n -webkit-animation: load 1s linear 0.675s infinite;\n}\n\n[dir="rtl"] .ams-component-popup-loading .line div:nth-child(2):after {\n -webkit-animation: load 1s linear 0.75s infinite;\n}\n\n[dir="rtl"] .ams-component-popup-loading .line div:nth-child(1):after {\n -webkit-animation: load 1s linear 0.875s infinite;\n}\n\n.ams-component-popup-loading .line div:nth-child(1):before {\n -webkit-animation: load 1s linear 0s infinite;\n}\n\n.ams-component-popup-loading .line div:nth-child(2):before {\n -webkit-animation: load 1s linear 0.125s infinite;\n}\n\n.ams-component-popup-loading .line div:nth-child(3):before {\n -webkit-animation: load 1s linear 0.25s infinite;\n}\n\n.ams-component-popup-loading .line div:nth-child(4):before {\n -webkit-animation: load 1s linear 0.375s infinite;\n}\n\n.ams-component-popup-loading .line div:nth-child(1):after {\n -webkit-animation: load 1s linear 0.5s infinite;\n}\n\n.ams-component-popup-loading .line div:nth-child(2):after {\n -webkit-animation: load 1s linear 0.675s infinite;\n}\n\n.ams-component-popup-loading .line div:nth-child(3):after {\n -webkit-animation: load 1s linear 0.75s infinite;\n}\n\n.ams-component-popup-loading .line div:nth-child(4):after {\n -webkit-animation: load 1s linear 0.875s infinite;\n}\n\n.ams-component-popup-loading-logo {\n width: 0.44em;\n height: 0.44em;\n -webkit-transform:rotate(360deg);\n transform:rotate(360deg);\n -webkit-transition:-webkit-transform 1s linear;\n transition:transform 1s linear;\n animation: ams-component-loading-logo 1s linear infinite;\n}\n'),ts=function(e,t){!function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light",t="\n .ams-component-popup-loading .line div:before,\n .ams-component-popup-loading .line div:after {\n background: ".concat("light"===e?"#000000":"#ffffff"," !important;\n }"),n=document.createElement("style");n.innerHTML=t,document.head.appendChild(n)}(e);var n=document.createElement("div");return null==n||n.classList.add($a),n.id=$a,n.innerHTML='<div class="line"><div></div><div></div><div></div><div></div></div><span id="text" style="font-size: 16px;position:absolute;bottom: 0;white-space: nowrap">'.concat(t||"","</span>"),n.style.fontSize="".concat(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:390,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:130,n=document.documentElement.clientWidth,r=Br?t:100*n/e;return Math.min(r,t)}(),"px"),n};var ns=function(e){var t=e.mode,n=e.url,r=e.loadingConfig,i=e.showClose,o=void 0===i||i,a=e.hideCloseWhenLoaded,s=void 0===a||a,u=e.onClose,c=e.textDirection,l=void 0===c?"ltr":c,h=e.showLoading,f=void 0===h||h,d=document.createElement("div");d.classList.add("".concat(Za,"overlay"),"".concat(Za,"fadeIn"));var p=document.createElement("div");"desktop"===t?(p.classList.add("".concat(Za,"modal"),"".concat(Za,"fadeIn")),p.style.width="656px",p.style.height="620px",p.style.borderRadius="12px"):(p.classList.add("".concat(Za,"modal-mobile"),"".concat(Za,"-drawer-enter")),p.style.width="100%",p.style.height="80vh",p.style.borderRadius="12px 12px 0 0"),p.setAttribute("dir",l);var g=function(e,t,n){return function(){t&&(t.classList.remove("".concat(Za,"fadeIn")),t.classList.add("".concat(Za,"fadeOut")),"desktop"===e?(n.classList.remove("".concat(Za,"fadeIn")),n.classList.add("".concat(Za,"fadeOut"))):(n.classList.remove("".concat(Za,"-drawer-enter")),n.classList.add("".concat(Za,"-drawer-exit"))),setTimeout((function(){var e,r;null===(e=t.parentNode)||void 0===e||e.removeChild(t),null===(r=n.parentNode)||void 0===r||r.removeChild(n)}),Qa))}}(t,d,p),v=document.createElement("iframe");v.src=n,v.style.border="none",v.style.width="100%",v.style.height="100%";var m,y=r||{},_=y.theme,b=void 0===_?"light":_,E=y.backgroundColor,w=void 0===E?"#ffffff":E,T=ts(b);if(v.addEventListener("load",(function e(){p.removeChild(T),v.removeEventListener("load",e)})),o){var R=function(e){var t=e.onClose,n=e.textDirection,r=document.createElement("div");r.style.position="absolute","rtl"===n?r.style.left="16px":r.style.right="16px",r.style.top="23px",r.style.cursor="pointer";var i=document.createElementNS("http://www.w3.org/2000/svg","svg");i.setAttribute("width","16"),i.setAttribute("height","16"),i.setAttribute("viewBox","0 0 16 16"),i.setAttribute("fill","none");var o=document.createElementNS("http://www.w3.org/2000/svg","path");return o.setAttribute("fill-rule","evenodd"),o.setAttribute("clip-rule","evenodd"),o.setAttribute("d","M13.0449 2.99894L12.9494 2.91165L12.8685 2.85222L12.7802 2.7996C12.3611 2.57499 11.8556 2.64328 11.5228 2.9763L7.99909 6.50088L4.48854 2.99028L4.44701 2.95034C4.0098 2.57169 3.38048 2.57202 2.99838 2.9525L2.92363 3.03297L2.85175 3.12897L2.79916 3.21735C2.57471 3.63642 2.64292 4.14198 2.9757 4.47491L6.50186 8.00046L2.95226 11.5518C2.57141 11.9917 2.57173 12.6211 2.95197 13.0033L3.0324 13.078L3.12837 13.15L3.21674 13.2026C3.63573 13.4272 4.14123 13.3589 4.47407 13.0259L7.99909 9.49935L11.5474 13.0494C11.9944 13.4368 12.6238 13.4235 13.0212 13.0259L13.0922 12.9471L13.1559 12.8595C13.4298 12.4403 13.3789 11.8852 13.0211 11.5272L9.497 8.00115L13.0052 4.4915L13.07 4.4225C13.4304 4.00477 13.4199 3.37582 13.0449 2.99894Z"),o.setAttribute("fill","#ABB9CC"),i.appendChild(o),r.appendChild(i),r.onclick=t,r}({onClose:(m=!1,A()(S()().mark((function e(){var t,n;return S()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!m){e.next=2;break}return e.abrupt("return");case 2:return null===(t=T.parentNode)||void 0===t||t.removeChild(T),p.removeChild(v),n=ts(b,Er.get({defaultMessage:"closing",id:"antom.common.closing"})),p.appendChild(n),m=!0,e.prev=7,e.next=10,null==u?void 0:u();case 10:return e.prev=10,m=!1,e.finish(10);case 13:g();case 14:case"end":return e.stop()}}),e,null,[[7,,10,13]])})))),textDirection:l});s&&v.addEventListener("load",(function e(){p.removeChild(R),v.removeEventListener("load",e)})),p.appendChild(R)}if(f){p.style.backgroundColor=w,v.style.backgroundColor=w;v.addEventListener("load",(function e(){var t;null===(t=T.parentNode)||void 0===t||t.removeChild(T),v.removeEventListener("load",e)})),p.appendChild(T)}p.appendChild(v);var P,L=document.getElementsByTagName("body")[0];return(P=document.createElement("style")).innerHTML=es,document.head.appendChild(P),L.appendChild(d),L.appendChild(p),{iframe:v,destroy:g}};var rs=n(225),is=n(242),os=n(994);function as(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return os.apply(void 0,[{},e].concat(n))}var ss=new le({appId:"180020050100012557",performance:!1,error:!1,env:"DEV"}),us="7981",cs=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return function(t){ss.log(b({code:"".concat(us).concat(e)},t))}},ls=cs(),hs=cs("event"),fs=cs("mount"),ds=cs("handshake"),ps=cs("merchant"),gs=(cs("element"),function(e,t,n,r){var i;if("ERROR"===e){var o=r||{};ls({msg:o.code||n,d1:t,d2:o.reason,d3:o.stack,d4:o.traceId,d5:o.operationType,d6:n})}else{if(n.includes(":HOST:")||n.includes(":WEBAPP:")){var a=n.split(":"),s=R(a,3),u=s[0],c=s[1],l=s[2];hs({msg:l,d1:t,d2:u,d3:c,d4:JSON.stringify(r),d5:"无",d6:e})}}null===(i=window.sdkDebugger)||void 0===i||i.log(e,t,n,r)}),vs=function(e){if(e){var t=function(e){var t=e.message,n=e.traceId,r=e.code,i=e.source,o=e.stack,a=e.reason;if("SERVER_API"===e.source){var s=(null==n?void 0:n.match(/([a-z0-9\sA-Z]*)(\s*\(([a-zA-Z0-9\.]*)\))?/))||[],u=R(s,4),c=(u[0],u[1]),l=(u[2],{code:r,source:i,message:t,operationType:u[3],traceId:(null==c?void 0:c.replace(/\s/g,""))||"无traceID",stack:o,reason:a});return JSON.parse(JSON.stringify(l))}return e}(O.isError(e)?e.toJSON():e);gs("ERROR",t.source,t.operationType||t.message||"Unknown Error",t)}},ms=function(e){p(n,e);var t=v(n);function n(){var e;u(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return e=t.call.apply(t,[this].concat(i)),y(f(e),"name","SDKInternalError"),e}return l(n)}(O),ys=function(e){p(n,e);var t=v(n);function n(e){return u(this,n),t.call(this,"HOST",e)}return l(n,[{key:"_transferReceivePort",value:function(e){rs(is(n.prototype),"_transferReceivePort",this).call(this,e)}},{key:"_addPort",value:function(e){rs(is(n.prototype),"_addPort",this).call(this,e)}},{key:"_transferSendPort",value:function(e){rs(is(n.prototype),"_transferSendPort",this).call(this,e)}},{key:"setTarget",value:function(e){rs(is(n.prototype),"setTarget",this).call(this,e)}},{key:"setDebugCallback",value:function(){for(var e,t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];(e=rs(is(n.prototype),"setDebugCallback",this)).call.apply(e,[this].concat(r))}}],[{key:"getGlobalBridge",value:function(){return ue.getGlobalBridge("HOST")}}]),n}(ue),_s=function(e){p(n,e);var t=v(n);function n(e,r,i){var o;return u(this,n),o=t.call(this,e,r,i||"SDK_USAGE"),y(f(o),"name","MountError"),o}return l(n)}(ms),bs=function(){function e(t,n){u(this,e),y(this,"name",void 0),y(this,"_elementMode",void 0),y(this,"_isMainElement",void 0),y(this,"config",void 0),y(this,"bridge",void 0),y(this,"hooks",{}),y(this,"iframe",null),y(this,"status",void 0),y(this,"cachedSend",[]),this.config=n,this._isMainElement=n.isMainElement,this._elementMode=n.elementMode,this.name=t,this.bridge=new ys(t),this.bridge.setOrigin(n.targetOrigin),this.config.debug&&this.bridge.setDebugCallback((function(e,t){var n,r;e.type.endsWith(re.UPDATE_CONFIG)||e.type.endsWith(re.HEIGHT_UPDATE)||(e.type.endsWith(re.MESSAGE)?gs(null===(n=e.payload)||void 0===n?void 0:n.type,"APP_RUNTIME",e.type,null===(r=e.payload)||void 0===r?void 0:r.message):e.type.endsWith(re.ERROR)&&"IN"===t?vs(e.payload):gs("INFO","OUT"===t?"SDK_INTERNAL":"APP_RUNTIME",e.type,e.payload))})),this.status="initialized"}var t,n,r,i;return l(e,[{key:"submit",value:function(e){throw new ms("This element not support submit","NOT_SUPPORT_SUBMIT","SDK_USAGE")}},{key:"setup",value:(i=T(w().mark((function e(){return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",void 0);case 1:case"end":return e.stop()}}),e)}))),function(){return i.apply(this,arguments)})},{key:"mount",value:(r=T(w().mark((function e(t){var n,r,i,o,a=this;return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("initialized"===this.status||"unmounted"===this.status){e.next=4;break}throw n=new _s({message:"element status is ".concat(this.status,", can not mount again"),params:{status:this.status}},"MOUNT_NOT_SUPPORT"),vs(n),n;case 4:return r=Date.now(),i=X((function(){return Promise.all([a.setup(),a._mount(t)])}),15e3,new _s("Mount timeout","MOUNT_TIMEOUT","SYSTEM")),o=Q((function(){fs({msg:a.name,d1:"用户退出页面",m1:0,m2:Math.round(Date.now()-r),m3:a.isMainElement?1:0,m4:a.isSingleMode?1:0})})),e.abrupt("return",i().then((function(e){var t=R(e,1)[0];ps({msg:a.name,d1:(null==t?void 0:t.merchantId)||"未配置的商户"}),fs({msg:a.name,d1:"挂载成功",m1:1,m2:Math.round(Date.now()-r),m3:a.isMainElement?1:0,m4:a.isSingleMode?1:0}),a.bridge.send(re.HANDSHAKE,as(a.config.appConfig,t||{}))})).catch((function(e){a.unmount();var t=ms.unificationError(e);throw fs({msg:a.name,d1:"挂载失败",d2:t.code,d3:t.reason,m1:0,m2:Math.round(Date.now()-r),m3:a.isMainElement?1:0,m4:a.isSingleMode?1:0}),vs(t),t})).finally((function(){o()})));case 8:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})},{key:"_mount",value:(n=T(w().mark((function e(t){var n=this;return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise(function(){var e=T(w().mark((function e(r,i){var o,a,s,u,c,l,h;return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n.isMainElement||!n.isSingleMode){e.next=2;break}return e.abrupt("return",i(new _s({message:"".concat(n.name," element can not be used with single mode"),params:{elementName:n.name}},"MOUNT_NOT_MAINELEMENT_WITH_SINGLE_MODE")));case 2:if(e.prev=2,t){e.next=5;break}return e.abrupt("return",i(new _s("container missing","MOUNT_MISSING_CONTAINER")));case 5:o=n.config.appUrl,a=new URL(n.config.appUrl);try{a.searchParams.set("origin",window.location.origin),a.searchParams.set("locale",n.config.locale),o=a.toString()}catch(e){s=o.includes("?")?"&":"?",o="".concat(o).concat(s,"origin=").concat(encodeURIComponent(window.location.origin)).concat(s,"locale=").concat(encodeURIComponent(n.config.locale))}(u=t.querySelector("#sdk-loading"))&&(u.style.display=""),n.status="mounting",n.iframe||(n.iframe=document.createElement("iframe"),n.iframe.src=o,n.iframe.style.width="100%",n.iframe.style.border="none",n.iframe.style.height="0",n.iframe.style.borderRadius="inherit",n.iframe.style.transition="height 0.3s ease",n.bridge.on(re.HEIGHT_UPDATE,(function(e){n.iframe&&(n.iframe.style.height="".concat(e,"px"))}))),c=Date.now(),l="*";try{"null"===(l=new URL(n.iframe.src).origin)&&(l="*")}catch(e){l="*"}n.bridge.setOrigin(l),h=function(){var e;if(u&&(u.style.display="none"),"mounted"!==n.status&&"ready"!==n.status){if(null===(e=n.iframe)||void 0===e||!e.contentWindow)return r();gs("INFO","SYSTEM","Iframe ".concat(n.name," loaded, initiating handshake...")),n.status="mounted",n.bridge.setTarget(n.iframe.contentWindow);var t=Date.now();n.bridge.once(re.HANDSHAKE_ACK,(function(e){n.status="ready",n.cachedSend.length&&(n.cachedSend.forEach((function(e){var t=e.type,r=e.payload;n.bridge.send(t,r)})),n.cachedSend=[]),ds({msg:n.name,d1:(null==e?void 0:e.version)||"未知版本",m1:Math.round(Date.now()-t),m2:1,m3:Math.round(Date.now()-c)})})),r()}},n.bridge.once(re.READY_HANDSHAKE,(function(){h()})),n.iframe.onerror=function(e){i(new _s("Iframe load error: ".concat(e),"MOUNT_IFRAME_LOAD_ERROR","SYSTEM"))},t.appendChild(n.iframe),e.next=23;break;case 20:e.prev=20,e.t0=e.catch(2),i(new _s("Initialization crashed: ".concat(e.t0.message),"MOUNT_INITIAL_FAILED","SDK_INTERNAL"));case 23:case"end":return e.stop()}}),e,null,[[2,20]])})));return function(t,n){return e.apply(this,arguments)}}()));case 1:case"end":return e.stop()}}),e)}))),function(e){return n.apply(this,arguments)})},{key:"updateConfig",value:function(e){var t=this;try{if("destroyed"===this.status)throw new ms("Element already destroyed, cannot update destroyed SDK instance","ELEMENT_INSTANCE_DESTROYED","SDK_USAGE");return this.config.appConfig=as(this.config.appConfig,e),gs("INFO","SDK_USAGE","Updating configuration via API",e),this.send(re.UPDATE_CONFIG,{merged:this.config.appConfig,updated:e}),new Promise((function(e){t.on(re.UPDATE_CONFIG_REPLY,(function(t){e(t)}))}))}catch(e){var n=ms.unificationError(e);return Promise.resolve({error:n.toJSON()})}}},{key:"unmount",value:function(){"mounted"!==this.status&&"ready"!==this.status||(this.status="unmounted",this.iframe&&this.iframe.parentNode&&(this.iframe.style.height="0",this.iframe.parentNode.removeChild(this.iframe)))}},{key:"isSingleMode",get:function(){return"SINGLE"===this._elementMode}},{key:"on",value:function(e,t){this.bridge.on(e,t)}},{key:"send",value:function(e,t){"destroyed"!==this.status?"ready"===this.status?this.bridge.send(e,t):this.cachedSend.push({type:e,payload:t}):vs(new ms("element status is ".concat(this.status,", can not send message"),"ELEMENT_INSTANCE_DESTROYED","SDK_USAGE"))}},{key:"_addPort",value:function(e){!this.isSingleMode&&this.isMainElement&&this.bridge._addPort(e)}},{key:"_transferReceivePort",value:function(e){!this.isSingleMode&&this.isMainElement&&this.bridge._transferReceivePort(e)}},{key:"_transferSendPort",value:function(e){this.isSingleMode||this.isMainElement||this.bridge._transferSendPort(e)}},{key:"_submit",value:(t=T(w().mark((function e(t){var n=this;return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("HOST"===this.bridge.mode){e.next=2;break}return e.abrupt("return",Promise.reject(new Error("submit method only available in HOST mode")));case 2:return this.send(re.SUBMIT,t),e.abrupt("return",new Promise((function(e){n.bridge.once(re.SUBMIT_REPLY,(function(t){e(t)}))})));case 4:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"destroy",value:function(){var e;null===(e=this.hooks.ondestroy)||void 0===e||e.forEach((function(e){return e()})),this.hooks={},this.bridge.destroy(),this.unmount(),this.status="destroyed"}},{key:"isMainElement",get:function(){return this._isMainElement}},{key:"_addHook",value:function(e,t){var n,r=this;return this.hooks[e]||(this.hooks[e]=[]),null===(n=this.hooks[e])||void 0===n||n.push(t),function(){var n;r.hooks[e]=null===(n=r.hooks[e])||void 0===n?void 0:n.filter((function(e){return e!==t}))}}}]),e}();y(bs,"elementType",void 0);E()(E()(E()({},Ar),{GENERATE_ELEMENT_KEY_FAILED:"GENERATE_ELEMENT_KEY_FAILED",ELEMENT_INIT_FAILED:"ELEMENT_INIT_FAILED",MOUNT_TIMEOUT:"MOUNT_TIMEOUT",MOUNT_MISSING_CONTAINER:"MOUNT_MISSING_CONTAINER",MOUNT_IFRAME_LOAD_ERROR:"MOUNT_IFRAME_LOAD_ERROR",MOUNT_NOT_MAINELEMENT_WITH_SINGLE_MODE:"MOUNT_NOT_MAINELEMENT_WITH_SINGLE_MODE",MOUNT_NOT_SUPPORT:"MOUNT_NOT_SUPPORT",MOUNT_INITIAL_FAILED:"MOUNT_INITIAL_FAILED",ELEMENT_INSTANCE_DESTROYED:"ELEMENT_INSTANCE_DESTROYED",ELEMENT_DEFINE_ERROR:"ELEMENT_DEFINE_ERROR",ELEMENT_ALREADY_REGISTERED:"ELEMENT_ALREADY_REGISTERED",CANNOT_CREATE_SAME_ELEMENT_TWICE:"CANNOT_CREATE_SAME_ELEMENT_TWICE",GROUPS_ONLY_ONE_MAIN_ELEMENT:"GROUPS_ONLY_ONE_MAIN_ELEMENT",GROUPS_NOT_FOUND_MAIN_ELEMENT:"GROUPS_NOT_FOUND_MAIN_ELEMENT",NOT_SUPPORT_ELEMENT:"NOT_SUPPORT_ELEMENT",NOT_SUPPORT_SUBMIT:"NOT_SUPPORT_SUBMIT",INVALID_MODAL_URL:"INVALID_MODAL_URL",LOAD_DEBUGGER_FAILED:"LOAD_DEBUGGER_FAILED"}),{},{NOT_FIND_MAINELEMENT:"NOT_FIND_MAINELEMENT",SESSION_DATA_INVALID:"SESSION_DATA_INVALID",SDK_LAUNCH_PAYMENT_APP_ERROR:"SDK_LAUNCH_PAYMENT_APP_ERROR",PARAM_INVALID:"PARAM_INVALID",CHANNEL_CLIENT_ID_QUERY_TIMEOUT:"CHANNEL_CLIENT_ID_QUERY_TIMEOUT",CHANNEL_CLIENT_ID_MISSING:"CHANNEL_CLIENT_ID_MISSING",CHANNEL_CLIENT_ID_QUERY_FAILED:"CHANNEL_CLIENT_ID_QUERY_FAILED",CHANNEL_CLIENT_ID_QUERY_ERROR:"CHANNEL_CLIENT_ID_QUERY_ERROR",CHECKOUT_NOT_READY:"CHECKOUT_NOT_READY",PAYMENT_IN_PROGRESS:"PAYMENT_IN_PROGRESS",AMOUNT_VALUE_EMPTY:"AMOUNT_VALUE_EMPTY",AMOUNT_VALUE_INVALID:"AMOUNT_VALUE_INVALID"});var Es=function(e){g()(n,e);var t=m()(n);function n(){var e;c()(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return e=t.call.apply(t,[this].concat(i)),_()(d()(e),"name","AntomSDKError"),e}return h()(n)}(Rr),ws={default:{theme:"light",backgroundColor:"#ffffff"},light:{theme:"light",backgroundColor:"#ffffff"},night:{theme:"dark",backgroundColor:"#141935"},agateGreen:{theme:"dark",backgroundColor:"#344343"},nostalgicGray:{theme:"light",backgroundColor:"#e8e8e8"},gamingPurple:{theme:"dark",backgroundColor:"#070b29"},cherryBlossomPink:{theme:"light",backgroundColor:"#FFFCFD"}};function Ss(e){return Ts.apply(this,arguments)}function Ts(){return(Ts=A()(S()().mark((function e(t){var n;return S()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t;case 3:return n=e.sent,e.abrupt("return",{error:void 0,data:n});case 7:return e.prev=7,e.t0=e.catch(0),e.abrupt("return",{error:Es.unificationError(e.t0).toJSON(),data:void 0});case 10:case"end":return e.stop()}}),e,null,[[0,7]])})))).apply(this,arguments)}function As(e,t){return Rs.apply(this,arguments)}function Rs(){return(Rs=A()(S()().mark((function e(t,n){return S()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Ya("com.ipay.iexpfront.one.account.query",t,n));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ps(e,t){return Ls.apply(this,arguments)}function Ls(){return(Ls=A()(S()().mark((function e(t,n){return S()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Ya("com.ipay.iexpcashier.sdkAction.query",t,n));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}}(),r}()}));
|