mazey-wechat-launch-app 2.1.2 → 2.2.0
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/README.md +7 -10
- package/lib/index.cjs.js +2 -2
- package/lib/index.d.ts.map +1 -1
- package/lib/index.esm.js +2 -2
- package/lib/launch-app.min.js +2 -2
- package/package.json +5 -2
- package/examples/index.html +0 -20
- package/examples/index.ts +0 -1
- package/scripts/env.sh +0 -2
- package/scripts/release.js +0 -6
- package/scripts/webpack.config.dev.js +0 -40
package/README.md
CHANGED
|
@@ -55,12 +55,12 @@ app.start();
|
|
|
55
55
|
</div>
|
|
56
56
|
```
|
|
57
57
|
|
|
58
|
-
注意:本项目依赖 [WeChat JS-SDK](https://developers.weixin.qq.com/doc/offiaccount/OA_Web_Apps/JS-SDK.html#3)、[js-sha1](https://github.com/emn178/js-sha1)、[jQuery](https://jquery.com/)
|
|
58
|
+
注意:本项目依赖 [WeChat JS-SDK](https://developers.weixin.qq.com/doc/offiaccount/OA_Web_Apps/JS-SDK.html#3)、[js-sha1](https://github.com/emn178/js-sha1)、[jQuery](https://jquery.com/),请确保已经引入,程序会在初始化的时候探测 `window.wx`、`window.sha1`、`window.$`/`window.jQuery`。
|
|
59
59
|
|
|
60
60
|
**Install Dependencies**
|
|
61
61
|
|
|
62
62
|
```
|
|
63
|
-
npm install js-sha1 jquery
|
|
63
|
+
npm install js-sha1 jquery --save
|
|
64
64
|
```
|
|
65
65
|
|
|
66
66
|
**Import Libraries**
|
|
@@ -68,11 +68,9 @@ npm install js-sha1 jquery mazey --save
|
|
|
68
68
|
```
|
|
69
69
|
import sha1 from 'js-sha1';
|
|
70
70
|
import $ from 'jquery';
|
|
71
|
-
import * as mazey from 'mazey';
|
|
72
71
|
|
|
73
72
|
window.sha1 = sha1;
|
|
74
73
|
window.$ = $;
|
|
75
|
-
window.mazey = mazey;
|
|
76
74
|
```
|
|
77
75
|
|
|
78
76
|
### 2. CDN
|
|
@@ -81,7 +79,6 @@ window.mazey = mazey;
|
|
|
81
79
|
<script type="text/javascript" src="//res.wx.qq.com/open/js/jweixin-1.6.0.js"></script>
|
|
82
80
|
<script type="text/javascript" src="//i.mazey.net/lib/jquery/2.1.1/jquery.min.js"></script>
|
|
83
81
|
<script type="text/javascript" src="//i.mazey.net/lib/encode/js-sha1/0.6.0/sha1.min.js"></script>
|
|
84
|
-
<script type="text/javascript" src="//i.mazey.net/lib/mazey/3.9.5/mazey.min.js"></script>
|
|
85
82
|
<script type="text/javascript" src="//i.mazey.net/lib/mazey-wechat-launch-app/1.1.2/launch-app.min.js"></script>
|
|
86
83
|
<script>
|
|
87
84
|
var options = {
|
|
@@ -102,11 +99,11 @@ window.mazey = mazey;
|
|
|
102
99
|
|
|
103
100
|
| 参数 | 说明 | 类型 | 值 |
|
|
104
101
|
| :------------ | :------------ | :------------ | :------------ |
|
|
105
|
-
| `weixinJsSdkTicket` | [jsapi_ticket](https://developers.weixin.qq.com/doc/offiaccount/OA_Web_Apps/JS-SDK.html#62) 公众号用于调用微信JS接口的临时票据 | string | (必填)例如:`bxLdikRXVb` |
|
|
102
|
+
| `weixinJsSdkTicket` | [jsapi_ticket](https://developers.weixin.qq.com/doc/offiaccount/OA_Web_Apps/JS-SDK.html#62) 公众号用于调用微信 JS 接口的临时票据 | string | (必填)例如:`bxLdikRXVb` |
|
|
106
103
|
| `launchContainerQuery` | [selectors](https://developer.mozilla.org/zh-CN/docs/Web/CSS/CSS_Selectors) 有效的 CSS 选择器字符串,通常是填充按钮的父容器 | string | (必填)例如:`.example-btn`, `#example-btn` |
|
|
107
104
|
| `serviceAccountAppId` | 公众号的唯一标识 AppId | string | (必填)例如:`wx123` |
|
|
108
105
|
| `openPlatformMobileAppId` | 开放平台内所需跳转的移动应用的 AppId | string | (必填)例如:`wx456` |
|
|
109
|
-
| `extInfo` | [extinfo](https://developers.weixin.qq.com/doc/offiaccount/OA_Web_Apps/Wechat_Open_Tag.html#%E8%B7%B3%E8%BD%ACAPP%EF%BC%9Awx-open-launch-app) 跳转所需额外信息 | string |
|
|
106
|
+
| `extInfo` | [extinfo](https://developers.weixin.qq.com/doc/offiaccount/OA_Web_Apps/Wechat_Open_Tag.html#%E8%B7%B3%E8%BD%ACAPP%EF%BC%9Awx-open-launch-app) 跳转所需额外信息 | string | (可选)例如:`example://example/example` |
|
|
110
107
|
| `launchBtnStyle` | 按钮内联样式 | string | (可选)例如:`top:0;right:0;bottom:0;left:0;` |
|
|
111
108
|
| `launchBtnText` | 按钮文字 | string | (可选)例如:`打开 App` |
|
|
112
109
|
|
|
@@ -114,9 +111,9 @@ window.mazey = mazey;
|
|
|
114
111
|
|
|
115
112
|
| 方法 | 说明 | 类型 |
|
|
116
113
|
| :------------ | :------------ | :------------ |
|
|
117
|
-
| start | 生成 | function |
|
|
118
|
-
| update | 更新 | function |
|
|
119
|
-
| destroy | 销毁 | function |
|
|
114
|
+
| `start` | 生成 | function |
|
|
115
|
+
| `update` | 更新 | function |
|
|
116
|
+
| `destroy` | 销毁 | function |
|
|
120
117
|
|
|
121
118
|
## FAQ
|
|
122
119
|
|
package/lib/index.cjs.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* mazey-wechat-launch-app v2.
|
|
2
|
+
* mazey-wechat-launch-app v2.2.0 https://www.npmjs.com/package/mazey-wechat-launch-app
|
|
3
3
|
* (c) 2018-2023 Mazey Chu
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
|
-
"use strict";var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function e(t,e){return t(e={exports:{}},e.exports),e.exports}var n,r,o=function(t){return t&&t.Math==Math&&t},i=o("object"==typeof globalThis&&globalThis)||o("object"==typeof window&&window)||o("object"==typeof self&&self)||o("object"==typeof t&&t)||function(){return this}()||Function("return this")(),a=function(t){try{return!!t()}catch(t){return!0}},c=!a((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),u=!a((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),f=Function.prototype.call,s=u?f.bind(f):function(){return f.apply(f,arguments)},l={}.propertyIsEnumerable,p=Object.getOwnPropertyDescriptor,h=p&&!l.call({1:2},1)?function(t){var e=p(this,t);return!!e&&e.enumerable}:l,d={f:h},v=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},y=Function.prototype,g=y.call,m=u&&y.bind.bind(g,g),b=u?m:function(t){return function(){return g.apply(t,arguments)}},w=b({}.toString),S=b("".slice),A=function(t){return S(w(t),8,-1)},O=Object,E=b("".split),P=a((function(){return!O("z").propertyIsEnumerable(0)}))?function(t){return"String"==A(t)?E(t,""):O(t)}:O,T=function(t){return null==t},_=TypeError,L=function(t){if(T(t))throw _("Can't call method on "+t);return t},j=function(t){return P(L(t))},x="object"==typeof document&&document.all,C={all:x,IS_HTMLDDA:void 0===x&&void 0!==x},I=C.all,R=C.IS_HTMLDDA?function(t){return"function"==typeof t||t===I}:function(t){return"function"==typeof t},k=C.all,N=C.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:R(t)||t===k}:function(t){return"object"==typeof t?null!==t:R(t)},M=function(t,e){return arguments.length<2?(n=i[t],R(n)?n:void 0):i[t]&&i[t][e];var n},U=b({}.isPrototypeOf),D="undefined"!=typeof navigator&&String(navigator.userAgent)||"",H=i.process,B=i.Deno,W=H&&H.versions||B&&B.version,z=W&&W.v8;z&&(r=(n=z.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!r&&D&&(!(n=D.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=D.match(/Chrome\/(\d+)/))&&(r=+n[1]);var F=r,G=!!Object.getOwnPropertySymbols&&!a((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&F&&F<41})),V=G&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,X=Object,q=V?function(t){return"symbol"==typeof t}:function(t){var e=M("Symbol");return R(e)&&U(e.prototype,X(t))},Y=String,J=function(t){try{return Y(t)}catch(t){return"Object"}},K=TypeError,Q=function(t){if(R(t))return t;throw K(J(t)+" is not a function")},$=function(t,e){var n=t[e];return T(n)?void 0:Q(n)},Z=TypeError,tt=Object.defineProperty,et=function(t,e){try{tt(i,t,{value:e,configurable:!0,writable:!0})}catch(n){i[t]=e}return e},nt="__core-js_shared__",rt=i[nt]||et(nt,{}),ot=e((function(t){(t.exports=function(t,e){return rt[t]||(rt[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.30.1",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.30.1/LICENSE",source:"https://github.com/zloirock/core-js"})})),it=Object,at=function(t){return it(L(t))},ct=b({}.hasOwnProperty),ut=Object.hasOwn||function(t,e){return ct(at(t),e)},ft=0,st=Math.random(),lt=b(1..toString),pt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+lt(++ft+st,36)},ht=i.Symbol,dt=ot("wks"),vt=V?ht.for||ht:ht&&ht.withoutSetter||pt,yt=function(t){return ut(dt,t)||(dt[t]=G&&ut(ht,t)?ht[t]:vt("Symbol."+t)),dt[t]},gt=TypeError,mt=yt("toPrimitive"),bt=function(t,e){if(!N(t)||q(t))return t;var n,r=$(t,mt);if(r){if(void 0===e&&(e="default"),n=s(r,t,e),!N(n)||q(n))return n;throw gt("Can't convert object to primitive value")}return void 0===e&&(e="number"),function(t,e){var n,r;if("string"===e&&R(n=t.toString)&&!N(r=s(n,t)))return r;if(R(n=t.valueOf)&&!N(r=s(n,t)))return r;if("string"!==e&&R(n=t.toString)&&!N(r=s(n,t)))return r;throw Z("Can't convert object to primitive value")}(t,e)},wt=function(t){var e=bt(t,"string");return q(e)?e:e+""},St=i.document,At=N(St)&&N(St.createElement),Ot=function(t){return At?St.createElement(t):{}},Et=!c&&!a((function(){return 7!=Object.defineProperty(Ot("div"),"a",{get:function(){return 7}}).a})),Pt=Object.getOwnPropertyDescriptor,Tt={f:c?Pt:function(t,e){if(t=j(t),e=wt(e),Et)try{return Pt(t,e)}catch(t){}if(ut(t,e))return v(!s(d.f,t,e),t[e])}},_t=c&&a((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Lt=String,jt=TypeError,xt=function(t){if(N(t))return t;throw jt(Lt(t)+" is not an object")},Ct=TypeError,It=Object.defineProperty,Rt=Object.getOwnPropertyDescriptor,kt="enumerable",Nt="configurable",Mt="writable",Ut={f:c?_t?function(t,e,n){if(xt(t),e=wt(e),xt(n),"function"==typeof t&&"prototype"===e&&"value"in n&&Mt in n&&!n[Mt]){var r=Rt(t,e);r&&r[Mt]&&(t[e]=n.value,n={configurable:Nt in n?n[Nt]:r[Nt],enumerable:kt in n?n[kt]:r[kt],writable:!1})}return It(t,e,n)}:It:function(t,e,n){if(xt(t),e=wt(e),xt(n),Et)try{return It(t,e,n)}catch(t){}if("get"in n||"set"in n)throw Ct("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},Dt=c?function(t,e,n){return Ut.f(t,e,v(1,n))}:function(t,e,n){return t[e]=n,t},Ht=Function.prototype,Bt=c&&Object.getOwnPropertyDescriptor,Wt=ut(Ht,"name"),zt={EXISTS:Wt,PROPER:Wt&&"something"===function(){}.name,CONFIGURABLE:Wt&&(!c||c&&Bt(Ht,"name").configurable)},Ft=b(Function.toString);R(rt.inspectSource)||(rt.inspectSource=function(t){return Ft(t)});var Gt,Vt,Xt,qt=rt.inspectSource,Yt=i.WeakMap,Jt=R(Yt)&&/native code/.test(String(Yt)),Kt=ot("keys"),Qt=function(t){return Kt[t]||(Kt[t]=pt(t))},$t={},Zt="Object already initialized",te=i.TypeError,ee=i.WeakMap;if(Jt||rt.state){var ne=rt.state||(rt.state=new ee);ne.get=ne.get,ne.has=ne.has,ne.set=ne.set,Gt=function(t,e){if(ne.has(t))throw te(Zt);return e.facade=t,ne.set(t,e),e},Vt=function(t){return ne.get(t)||{}},Xt=function(t){return ne.has(t)}}else{var re=Qt("state");$t[re]=!0,Gt=function(t,e){if(ut(t,re))throw te(Zt);return e.facade=t,Dt(t,re,e),e},Vt=function(t){return ut(t,re)?t[re]:{}},Xt=function(t){return ut(t,re)}}var oe={set:Gt,get:Vt,has:Xt,enforce:function(t){return Xt(t)?Vt(t):Gt(t,{})},getterFor:function(t){return function(e){var n;if(!N(e)||(n=Vt(e)).type!==t)throw te("Incompatible receiver, "+t+" required");return n}}},ie=e((function(t){var e=zt.CONFIGURABLE,n=oe.enforce,r=oe.get,o=String,i=Object.defineProperty,u=b("".slice),f=b("".replace),s=b([].join),l=c&&!a((function(){return 8!==i((function(){}),"length",{value:8}).length})),p=String(String).split("String"),h=t.exports=function(t,r,a){"Symbol("===u(o(r),0,7)&&(r="["+f(o(r),/^Symbol\(([^)]*)\)/,"$1")+"]"),a&&a.getter&&(r="get "+r),a&&a.setter&&(r="set "+r),(!ut(t,"name")||e&&t.name!==r)&&(c?i(t,"name",{value:r,configurable:!0}):t.name=r),l&&a&&ut(a,"arity")&&t.length!==a.arity&&i(t,"length",{value:a.arity});try{a&&ut(a,"constructor")&&a.constructor?c&&i(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var h=n(t);return ut(h,"source")||(h.source=s(p,"string"==typeof r?r:"")),t};Function.prototype.toString=h((function(){return R(this)&&r(this).source||qt(this)}),"toString")})),ae=function(t,e,n,r){r||(r={});var o=r.enumerable,i=void 0!==r.name?r.name:e;if(R(n)&&ie(n,i,r),r.global)o?t[e]=n:et(e,n);else{try{r.unsafe?t[e]&&(o=!0):delete t[e]}catch(t){}o?t[e]=n:Ut.f(t,e,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return t},ce=Math.ceil,ue=Math.floor,fe=Math.trunc||function(t){var e=+t;return(e>0?ue:ce)(e)},se=function(t){var e=+t;return e!=e||0===e?0:fe(e)},le=Math.max,pe=Math.min,he=Math.min,de=function(t){return(e=t.length)>0?he(se(e),9007199254740991):0;var e},ve=function(t){return function(e,n,r){var o,i=j(e),a=de(i),c=function(t,e){var n=se(t);return n<0?le(n+e,0):pe(n,e)}(r,a);if(t&&n!=n){for(;a>c;)if((o=i[c++])!=o)return!0}else for(;a>c;c++)if((t||c in i)&&i[c]===n)return t||c||0;return!t&&-1}},ye={includes:ve(!0),indexOf:ve(!1)}.indexOf,ge=b([].push),me=function(t,e){var n,r=j(t),o=0,i=[];for(n in r)!ut($t,n)&&ut(r,n)&&ge(i,n);for(;e.length>o;)ut(r,n=e[o++])&&(~ye(i,n)||ge(i,n));return i},be=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],we=be.concat("length","prototype"),Se={f:Object.getOwnPropertyNames||function(t){return me(t,we)}},Ae={f:Object.getOwnPropertySymbols},Oe=b([].concat),Ee=M("Reflect","ownKeys")||function(t){var e=Se.f(xt(t)),n=Ae.f;return n?Oe(e,n(t)):e},Pe=function(t,e,n){for(var r=Ee(e),o=Ut.f,i=Tt.f,a=0;a<r.length;a++){var c=r[a];ut(t,c)||n&&ut(n,c)||o(t,c,i(e,c))}},Te=/#|\.prototype\./,_e=function(t,e){var n=je[Le(t)];return n==Ce||n!=xe&&(R(e)?a(e):!!e)},Le=_e.normalize=function(t){return String(t).replace(Te,".").toLowerCase()},je=_e.data={},xe=_e.NATIVE="N",Ce=_e.POLYFILL="P",Ie=_e,Re=Tt.f,ke=function(t,e){var n,r,o,a,c,u=t.target,f=t.global,s=t.stat;if(n=f?i:s?i[u]||et(u,{}):(i[u]||{}).prototype)for(r in e){if(a=e[r],o=t.dontCallGetSet?(c=Re(n,r))&&c.value:n[r],!Ie(f?r:u+(s?".":"#")+r,t.forced)&&void 0!==o){if(typeof a==typeof o)continue;Pe(a,o)}(t.sham||o&&o.sham)&&Dt(a,"sham",!0),ae(n,r,a,t)}},Ne=Object.keys||function(t){return me(t,be)},Me=Object.assign,Ue=Object.defineProperty,De=b([].concat),He=!Me||a((function(){if(c&&1!==Me({b:1},Me(Ue({},"a",{enumerable:!0,get:function(){Ue(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach((function(t){e[t]=t})),7!=Me({},t)[n]||Ne(Me({},e)).join("")!=r}))?function(t,e){for(var n=at(t),r=arguments.length,o=1,i=Ae.f,a=d.f;r>o;)for(var u,f=P(arguments[o++]),l=i?De(Ne(f),i(f)):Ne(f),p=l.length,h=0;p>h;)u=l[h++],c&&!s(a,f,u)||(n[u]=f[u]);return n}:Me;ke({target:"Object",stat:!0,arity:2,forced:Object.assign!==He},{assign:He});var Be=Array.isArray||function(t){return"Array"==A(t)},We=TypeError,ze=function(t){if(t>9007199254740991)throw We("Maximum allowed index exceeded");return t},Fe=function(t,e,n){var r=wt(e);r in t?Ut.f(t,r,v(0,n)):t[r]=n},Ge={};Ge[yt("toStringTag")]="z";var Ve="[object z]"===String(Ge),Xe=yt("toStringTag"),qe=Object,Ye="Arguments"==A(function(){return arguments}()),Je=Ve?A:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=qe(t),Xe))?n:Ye?A(e):"Object"==(r=A(e))&&R(e.callee)?"Arguments":r},Ke=function(){},Qe=[],$e=M("Reflect","construct"),Ze=/^\s*(?:class|function)\b/,tn=b(Ze.exec),en=!Ze.exec(Ke),nn=function(t){if(!R(t))return!1;try{return $e(Ke,Qe,t),!0}catch(t){return!1}},rn=function(t){if(!R(t))return!1;switch(Je(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return en||!!tn(Ze,qt(t))}catch(t){return!0}};rn.sham=!0;var on,an=!$e||a((function(){var t;return nn(nn.call)||!nn(Object)||!nn((function(){t=!0}))||t}))?rn:nn,cn=yt("species"),un=Array,fn=function(t,e){return new(function(t){var e;return Be(t)&&(e=t.constructor,(an(e)&&(e===un||Be(e.prototype))||N(e)&&null===(e=e[cn]))&&(e=void 0)),void 0===e?un:e}(t))(0===e?0:e)},sn=yt("species"),ln=yt("isConcatSpreadable"),pn=F>=51||!a((function(){var t=[];return t[ln]=!1,t.concat()[0]!==t})),hn=function(t){if(!N(t))return!1;var e=t[ln];return void 0!==e?!!e:Be(t)},dn=!(pn&&(on="concat",F>=51||!a((function(){var t=[];return(t.constructor={})[sn]=function(){return{foo:1}},1!==t[on](Boolean).foo}))));ke({target:"Array",proto:!0,arity:1,forced:dn},{concat:function(t){var e,n,r,o,i,a=at(this),c=fn(a,0),u=0;for(e=-1,r=arguments.length;e<r;e++)if(hn(i=-1===e?a:arguments[e]))for(o=de(i),ze(u+o),n=0;n<o;n++,u++)n in i&&Fe(c,u,i[n]);else ze(u+1),Fe(c,u++,i);return c.length=u,c}});var vn,yn=c&&!_t?Object.defineProperties:function(t,e){xt(t);for(var n,r=j(e),o=Ne(e),i=o.length,a=0;i>a;)Ut.f(t,n=o[a++],r[n]);return t},gn={f:yn},mn=M("document","documentElement"),bn="prototype",wn="script",Sn=Qt("IE_PROTO"),An=function(){},On=function(t){return"<"+wn+">"+t+"</"+wn+">"},En=function(t){t.write(On("")),t.close();var e=t.parentWindow.Object;return t=null,e},Pn=function(){try{vn=new ActiveXObject("htmlfile")}catch(t){}var t,e,n;Pn="undefined"!=typeof document?document.domain&&vn?En(vn):(e=Ot("iframe"),n="java"+wn+":",e.style.display="none",mn.appendChild(e),e.src=String(n),(t=e.contentWindow.document).open(),t.write(On("document.F=Object")),t.close(),t.F):En(vn);for(var r=be.length;r--;)delete Pn[bn][be[r]];return Pn()};$t[Sn]=!0;var Tn=Object.create||function(t,e){var n;return null!==t?(An[bn]=xt(t),n=new An,An[bn]=null,n[Sn]=t):n=Pn(),void 0===e?n:gn.f(n,e)},_n=Ut.f,Ln=yt("unscopables"),jn=Array.prototype;null==jn[Ln]&&_n(jn,Ln,{configurable:!0,value:Tn(null)});var xn,Cn,In,Rn=function(t){jn[Ln][t]=!0},kn={},Nn=!a((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),Mn=Qt("IE_PROTO"),Un=Object,Dn=Un.prototype,Hn=Nn?Un.getPrototypeOf:function(t){var e=at(t);if(ut(e,Mn))return e[Mn];var n=e.constructor;return R(n)&&e instanceof n?n.prototype:e instanceof Un?Dn:null},Bn=yt("iterator"),Wn=!1;[].keys&&("next"in(In=[].keys())?(Cn=Hn(Hn(In)))!==Object.prototype&&(xn=Cn):Wn=!0);var zn=!N(xn)||a((function(){var t={};return xn[Bn].call(t)!==t}));zn&&(xn={}),R(xn[Bn])||ae(xn,Bn,(function(){return this}));var Fn={IteratorPrototype:xn,BUGGY_SAFARI_ITERATORS:Wn},Gn=Ut.f,Vn=yt("toStringTag"),Xn=function(t,e,n){t&&!n&&(t=t.prototype),t&&!ut(t,Vn)&&Gn(t,Vn,{configurable:!0,value:e})},qn=Fn.IteratorPrototype,Yn=function(){return this},Jn=String,Kn=TypeError,Qn=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{t=function(t,e,n){try{return b(Q(Object.getOwnPropertyDescriptor(t,e)[n]))}catch(t){}}(Object.prototype,"__proto__","set"),t(n,[]),e=n instanceof Array}catch(t){}return function(n,r){return xt(n),function(t){if("object"==typeof t||R(t))return t;throw Kn("Can't set "+Jn(t)+" as a prototype")}(r),e?t(n,r):n.__proto__=r,n}}():void 0),$n=zt.PROPER,Zn=zt.CONFIGURABLE,tr=Fn.IteratorPrototype,er=Fn.BUGGY_SAFARI_ITERATORS,nr=yt("iterator"),rr="keys",or="values",ir="entries",ar=function(){return this},cr=function(t,e,n,r,o,i,a){!function(t,e,n,r){var o=e+" Iterator";t.prototype=Tn(qn,{next:v(+!r,n)}),Xn(t,o,!1),kn[o]=Yn}(n,e,r);var c,u,f,l=function(t){if(t===o&&g)return g;if(!er&&t in d)return d[t];switch(t){case rr:case or:case ir:return function(){return new n(this,t)}}return function(){return new n(this)}},p=e+" Iterator",h=!1,d=t.prototype,y=d[nr]||d["@@iterator"]||o&&d[o],g=!er&&y||l(o),m="Array"==e&&d.entries||y;if(m&&(c=Hn(m.call(new t)))!==Object.prototype&&c.next&&(Hn(c)!==tr&&(Qn?Qn(c,tr):R(c[nr])||ae(c,nr,ar)),Xn(c,p,!0)),$n&&o==or&&y&&y.name!==or&&(Zn?Dt(d,"name",or):(h=!0,g=function(){return s(y,this)})),o)if(u={values:l(or),keys:i?g:l(rr),entries:l(ir)},a)for(f in u)(er||h||!(f in d))&&ae(d,f,u[f]);else ke({target:e,proto:!0,forced:er||h},u);return d[nr]!==g&&ae(d,nr,g,{name:o}),kn[e]=g,u},ur=function(t,e){return{value:t,done:e}},fr=Ut.f,sr="Array Iterator",lr=oe.set,pr=oe.getterFor(sr),hr=cr(Array,"Array",(function(t,e){lr(this,{type:sr,target:j(t),index:0,kind:e})}),(function(){var t=pr(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,ur(void 0,!0)):ur("keys"==n?r:"values"==n?e[r]:[r,e[r]],!1)}),"values"),dr=kn.Arguments=kn.Array;if(Rn("keys"),Rn("values"),Rn("entries"),c&&"values"!==dr.name)try{fr(dr,"name",{value:"values"})}catch(t){}var vr=Ve?{}.toString:function(){return"[object "+Je(this)+"]"};Ve||ae(Object.prototype,"toString",vr,{unsafe:!0});var yr,gr,mr,br,wr="undefined"!=typeof process&&"process"==A(process),Sr=yt("species"),Ar=TypeError,Or=TypeError,Er=yt("species"),Pr=function(t,e){var n,r=xt(t).constructor;return void 0===r||T(n=xt(r)[Er])?e:function(t){if(an(t))return t;throw Or(J(t)+" is not a constructor")}(n)},Tr=Function.prototype,_r=Tr.apply,Lr=Tr.call,jr="object"==typeof Reflect&&Reflect.apply||(u?Lr.bind(_r):function(){return Lr.apply(_r,arguments)}),xr=function(t){if("Function"===A(t))return b(t)},Cr=xr(xr.bind),Ir=function(t,e){return Q(t),void 0===e?t:u?Cr(t,e):function(){return t.apply(e,arguments)}},Rr=b([].slice),kr=TypeError,Nr=/(?:ipad|iphone|ipod).*applewebkit/i.test(D),Mr=i.setImmediate,Ur=i.clearImmediate,Dr=i.process,Hr=i.Dispatch,Br=i.Function,Wr=i.MessageChannel,zr=i.String,Fr=0,Gr={},Vr="onreadystatechange";a((function(){yr=i.location}));var Xr=function(t){if(ut(Gr,t)){var e=Gr[t];delete Gr[t],e()}},qr=function(t){return function(){Xr(t)}},Yr=function(t){Xr(t.data)},Jr=function(t){i.postMessage(zr(t),yr.protocol+"//"+yr.host)};Mr&&Ur||(Mr=function(t){!function(t,e){if(t<e)throw kr("Not enough arguments")}(arguments.length,1);var e=R(t)?t:Br(t),n=Rr(arguments,1);return Gr[++Fr]=function(){jr(e,void 0,n)},gr(Fr),Fr},Ur=function(t){delete Gr[t]},wr?gr=function(t){Dr.nextTick(qr(t))}:Hr&&Hr.now?gr=function(t){Hr.now(qr(t))}:Wr&&!Nr?(br=(mr=new Wr).port2,mr.port1.onmessage=Yr,gr=Ir(br.postMessage,br)):i.addEventListener&&R(i.postMessage)&&!i.importScripts&&yr&&"file:"!==yr.protocol&&!a(Jr)?(gr=Jr,i.addEventListener("message",Yr,!1)):gr=Vr in Ot("script")?function(t){mn.appendChild(Ot("script"))[Vr]=function(){mn.removeChild(this),Xr(t)}}:function(t){setTimeout(qr(t),0)});var Kr={set:Mr,clear:Ur},Qr=function(){this.head=null,this.tail=null};Qr.prototype={add:function(t){var e={item:t,next:null},n=this.tail;n?n.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return null===(this.head=t.next)&&(this.tail=null),t.item}};var $r,Zr,to,eo,no,ro=Qr,oo=/ipad|iphone|ipod/i.test(D)&&"undefined"!=typeof Pebble,io=/web0s(?!.*chrome)/i.test(D),ao=Tt.f,co=Kr.set,uo=i.MutationObserver||i.WebKitMutationObserver,fo=i.document,so=i.process,lo=i.Promise,po=ao(i,"queueMicrotask"),ho=po&&po.value;if(!ho){var vo=new ro,yo=function(){var t,e;for(wr&&(t=so.domain)&&t.exit();e=vo.get();)try{e()}catch(t){throw vo.head&&$r(),t}t&&t.enter()};Nr||wr||io||!uo||!fo?!oo&&lo&&lo.resolve?((eo=lo.resolve(void 0)).constructor=lo,no=Ir(eo.then,eo),$r=function(){no(yo)}):wr?$r=function(){so.nextTick(yo)}:(co=Ir(co,i),$r=function(){co(yo)}):(Zr=!0,to=fo.createTextNode(""),new uo(yo).observe(to,{characterData:!0}),$r=function(){to.data=Zr=!Zr}),ho=function(t){vo.head||$r(),vo.add(t)}}var go=ho,mo=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},bo=i.Promise,wo="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,So=!wo&&!wr&&"object"==typeof window&&"object"==typeof document;bo&&bo.prototype;var Ao,Oo,Eo,Po,To,_o,Lo,jo=yt("species"),xo=!1,Co=R(i.PromiseRejectionEvent),Io=Ie("Promise",(function(){var t=qt(bo),e=t!==String(bo);if(!e&&66===F)return!0;if(!F||F<51||!/native code/.test(t)){var n=new bo((function(t){t(1)})),r=function(t){t((function(){}),(function(){}))};if((n.constructor={})[jo]=r,!(xo=n.then((function(){}))instanceof r))return!0}return!e&&(So||wo)&&!Co})),Ro={CONSTRUCTOR:Io,REJECTION_EVENT:Co,SUBCLASSING:xo},ko=TypeError,No=function(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw ko("Bad Promise constructor");e=t,n=r})),this.resolve=Q(e),this.reject=Q(n)},Mo={f:function(t){return new No(t)}},Uo=Kr.set,Do="Promise",Ho=Ro.CONSTRUCTOR,Bo=Ro.REJECTION_EVENT,Wo=Ro.SUBCLASSING,zo=oe.getterFor(Do),Fo=oe.set,Go=bo&&bo.prototype,Vo=bo,Xo=Go,qo=i.TypeError,Yo=i.document,Jo=i.process,Ko=Mo.f,Qo=Ko,$o=!!(Yo&&Yo.createEvent&&i.dispatchEvent),Zo="unhandledrejection",ti=function(t){var e;return!(!N(t)||!R(e=t.then))&&e},ei=function(t,e){var n,r,o,i=e.value,a=1==e.state,c=a?t.ok:t.fail,u=t.resolve,f=t.reject,l=t.domain;try{c?(a||(2===e.rejection&&ai(e),e.rejection=1),!0===c?n=i:(l&&l.enter(),n=c(i),l&&(l.exit(),o=!0)),n===t.promise?f(qo("Promise-chain cycle")):(r=ti(n))?s(r,n,u,f):u(n)):f(i)}catch(t){l&&!o&&l.exit(),f(t)}},ni=function(t,e){t.notified||(t.notified=!0,go((function(){for(var n,r=t.reactions;n=r.get();)ei(n,t);t.notified=!1,e&&!t.rejection&&oi(t)})))},ri=function(t,e,n){var r,o;$o?((r=Yo.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),i.dispatchEvent(r)):r={promise:e,reason:n},!Bo&&(o=i["on"+t])?o(r):t===Zo&&function(t,e){try{1==arguments.length?console.error(t):console.error(t,e)}catch(t){}}("Unhandled promise rejection",n)},oi=function(t){s(Uo,i,(function(){var e,n=t.facade,r=t.value;if(ii(t)&&(e=mo((function(){wr?Jo.emit("unhandledRejection",r,n):ri(Zo,n,r)})),t.rejection=wr||ii(t)?2:1,e.error))throw e.value}))},ii=function(t){return 1!==t.rejection&&!t.parent},ai=function(t){s(Uo,i,(function(){var e=t.facade;wr?Jo.emit("rejectionHandled",e):ri("rejectionhandled",e,t.value)}))},ci=function(t,e,n){return function(r){t(e,r,n)}},ui=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,ni(t,!0))},fi=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw qo("Promise can't be resolved itself");var r=ti(e);r?go((function(){var n={done:!1};try{s(r,e,ci(fi,n,t),ci(ui,n,t))}catch(e){ui(n,e,t)}})):(t.value=e,t.state=1,ni(t,!1))}catch(e){ui({done:!1},e,t)}}};if(Ho&&(Xo=(Vo=function(t){!function(t,e){if(U(e,t))return t;throw Ar("Incorrect invocation")}(this,Xo),Q(t),s(Ao,this);var e=zo(this);try{t(ci(fi,e),ci(ui,e))}catch(t){ui(e,t)}}).prototype,(Ao=function(t){Fo(this,{type:Do,done:!1,notified:!1,parent:!1,reactions:new ro,rejection:!1,state:0,value:void 0})}).prototype=ae(Xo,"then",(function(t,e){var n=zo(this),r=Ko(Pr(this,Vo));return n.parent=!0,r.ok=!R(t)||t,r.fail=R(e)&&e,r.domain=wr?Jo.domain:void 0,0==n.state?n.reactions.add(r):go((function(){ei(r,n)})),r.promise})),Oo=function(){var t=new Ao,e=zo(t);this.promise=t,this.resolve=ci(fi,e),this.reject=ci(ui,e)},Mo.f=Ko=function(t){return t===Vo||undefined===t?new Oo(t):Qo(t)},R(bo)&&Go!==Object.prototype)){Eo=Go.then,Wo||ae(Go,"then",(function(t,e){var n=this;return new Vo((function(t,e){s(Eo,n,t,e)})).then(t,e)}),{unsafe:!0});try{delete Go.constructor}catch(t){}Qn&&Qn(Go,Xo)}ke({global:!0,constructor:!0,wrap:!0,forced:Ho},{Promise:Vo}),Xn(Vo,Do,!1),Lo=M(Do),c&&Lo&&!Lo[Sr]&&(Po=Lo,To=Sr,(_o={configurable:!0,get:function(){return this}}).get&&ie(_o.get,To,{getter:!0}),_o.set&&ie(_o.set,To,{setter:!0}),Ut.f(Po,To,_o));var si=yt("iterator"),li=Array.prototype,pi=yt("iterator"),hi=function(t){if(!T(t))return $(t,pi)||$(t,"@@iterator")||kn[Je(t)]},di=TypeError,vi=function(t,e,n){var r,o;xt(t);try{if(!(r=$(t,"return"))){if("throw"===e)throw n;return n}r=s(r,t)}catch(t){o=!0,r=t}if("throw"===e)throw n;if(o)throw r;return xt(r),n},yi=TypeError,gi=function(t,e){this.stopped=t,this.result=e},mi=gi.prototype,bi=function(t,e,n){var r,o,i,a,c,u,f,l,p=n&&n.that,h=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_RECORD),v=!(!n||!n.IS_ITERATOR),y=!(!n||!n.INTERRUPTED),g=Ir(e,p),m=function(t){return r&&vi(r,"normal",t),new gi(!0,t)},b=function(t){return h?(xt(t),y?g(t[0],t[1],m):g(t[0],t[1])):y?g(t,m):g(t)};if(d)r=t.iterator;else if(v)r=t;else{if(!(o=hi(t)))throw yi(J(t)+" is not iterable");if(void 0!==(l=o)&&(kn.Array===l||li[si]===l)){for(i=0,a=de(t);a>i;i++)if((c=b(t[i]))&&U(mi,c))return c;return new gi(!1)}r=function(t,e){var n=arguments.length<2?hi(t):e;if(Q(n))return xt(s(n,t));throw di(J(t)+" is not iterable")}(t,o)}for(u=d?t.next:r.next;!(f=s(u,r)).done;){try{c=b(f.value)}catch(t){vi(r,"throw",t)}if("object"==typeof c&&c&&U(mi,c))return c}return new gi(!1)},wi=yt("iterator"),Si=!1;try{var Ai=0,Oi={next:function(){return{done:!!Ai++}},return:function(){Si=!0}};Oi[wi]=function(){return this},Array.from(Oi,(function(){throw 2}))}catch(t){}var Ei=Ro.CONSTRUCTOR||!function(t,e){if(!e&&!Si)return!1;var n=!1;try{var r={};r[wi]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(t){}return n}((function(t){bo.all(t).then(void 0,(function(){}))}));ke({target:"Promise",stat:!0,forced:Ei},{all:function(t){var e=this,n=Mo.f(e),r=n.resolve,o=n.reject,i=mo((function(){var n=Q(e.resolve),i=[],a=0,c=1;bi(t,(function(t){var u=a++,f=!1;c++,s(n,e,t).then((function(t){f||(f=!0,i[u]=t,--c||r(i))}),o)})),--c||r(i)}));return i.error&&o(i.value),n.promise}});var Pi=Ro.CONSTRUCTOR,Ti=bo&&bo.prototype;if(ke({target:"Promise",proto:!0,forced:Pi,real:!0},{catch:function(t){return this.then(void 0,t)}}),R(bo)){var _i=M("Promise").prototype.catch;Ti.catch!==_i&&ae(Ti,"catch",_i,{unsafe:!0})}ke({target:"Promise",stat:!0,forced:Ei},{race:function(t){var e=this,n=Mo.f(e),r=n.reject,o=mo((function(){var o=Q(e.resolve);bi(t,(function(t){s(o,e,t).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}}),ke({target:"Promise",stat:!0,forced:Ro.CONSTRUCTOR},{reject:function(t){var e=Mo.f(this);return s(e.reject,void 0,t),e.promise}});var Li=Ro.CONSTRUCTOR;M("Promise"),ke({target:"Promise",stat:!0,forced:Li},{resolve:function(t){return function(t,e){if(xt(t),N(e)&&e.constructor===t)return e;var n=Mo.f(t);return(0,n.resolve)(e),n.promise}(this,t)}});var ji=String,xi=function(t){if("Symbol"===Je(t))throw TypeError("Cannot convert a Symbol value to a string");return ji(t)},Ci=b("".charAt),Ii=b("".charCodeAt),Ri=b("".slice),ki=function(t){return function(e,n){var r,o,i=xi(L(e)),a=se(n),c=i.length;return a<0||a>=c?t?"":void 0:(r=Ii(i,a))<55296||r>56319||a+1===c||(o=Ii(i,a+1))<56320||o>57343?t?Ci(i,a):r:t?Ri(i,a,a+2):o-56320+(r-55296<<10)+65536}},Ni={codeAt:ki(!1),charAt:ki(!0)}.charAt,Mi="String Iterator",Ui=oe.set,Di=oe.getterFor(Mi);cr(String,"String",(function(t){Ui(this,{type:Mi,string:xi(t),index:0})}),(function(){var t,e=Di(this),n=e.string,r=e.index;return r>=n.length?ur(void 0,!0):(t=Ni(n,r),e.index+=t.length,ur(t,!1))}));var Hi={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},Bi=Ot("span").classList,Wi=Bi&&Bi.constructor&&Bi.constructor.prototype,zi=Wi===Object.prototype?void 0:Wi,Fi=yt("iterator"),Gi=yt("toStringTag"),Vi=hr.values,Xi=function(t,e){if(t){if(t[Fi]!==Vi)try{Dt(t,Fi,Vi)}catch(e){t[Fi]=Vi}if(t[Gi]||Dt(t,Gi,e),Hi[e])for(var n in hr)if(t[n]!==hr[n])try{Dt(t,n,hr[n])}catch(e){t[n]=hr[n]}}};for(var qi in Hi)Xi(i[qi]&&i[qi].prototype,qi);Xi(zi,"DOMTokenList");var Yi=function(){return Yi=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Yi.apply(this,arguments)},Ji={weixinJsSdkTicket:"",launchContainerQuery:".mazey-launch-app-selector",launchShowWeixinToBrowserImgUrl:"",canShowWeixinToBrowser:!1,extInfo:"",serviceAccountAppId:"",wexinServiceAccountAppId:"",openPlatformMobileAppId:"",genTagPrefixStr:"mazey-launch-app-btn-prefix-",launchShowWeixinToBrowserClassName:"mazey-launch-app-wx-to-browser",launchBtnClassName:"mazey-launch-app-inner-btn",launchBtnStyle:"",launchBtnText:"Launch App <br /><br /><br />",launchErrorLink:"",canContinuousUpdating:!1,onMenuShareTimelineOptions:void 0,onMenuShareAppMessageOptions:void 0,isConClosed:!0,isWxDebug:!1,canLaunchApp:function(){return!0},canFireErrorLinkDirectly:function(){return!1},launchBtnClick:function(){},launchReady:function(){}};module.exports=function(t){void 0===t&&(t=Ji);var e=Object.assign(Ji,t),n=e.weixinJsSdkTicket,r=e.launchContainerQuery,o=e.genTagPrefixStr,i=e.launchShowWeixinToBrowserImgUrl,a=e.canShowWeixinToBrowser,c=e.launchShowWeixinToBrowserClassName,u=e.launchBtnClassName,f=e.launchBtnStyle,s=e.launchBtnText,l=e.launchErrorLink,p=e.wexinServiceAccountAppId,h=e.openPlatformMobileAppId,d=e.canContinuousUpdating,v=e.onMenuShareTimelineOptions,y=e.onMenuShareAppMessageOptions,g=e.isConClosed,m=e.isWxDebug,b=e.canLaunchApp,w=e.canFireErrorLinkDirectly,S=e.launchBtnClick,A=e.launchReady,O=e.serviceAccountAppId,E=e.extInfo,P=window.mazey,T=window.sha1,_=window.wx,L=window.$||window.jQuery;P&&T&&_&&L||console.error("Launch App: wx or sha1 or $ or mazey is not found");var j=function(){},x=P.genCustomConsole("LaunchCon:",{isClosed:g});x.log("Launch App");var C={title:"",link:"",imgUrl:"",success:function(){},cancel:function(){}},I={title:"",desc:"",link:"",imgUrl:"",type:"",dataUrl:"",success:function(){},cancel:function(){}},R={title:document.title,link:location.href};C=Yi(Yi({},C),R),I=Yi(Yi({},I),R);var k=function(t,e,n){return void 0===t&&(t=""),void 0===e&&(e=""),void 0===n&&(n="button"),"<style>.".concat(u,"{")+"opacity: 0;width: 100%;height: 100%;backgroud: transparent;color: #300f54;border: none;box-sizing: border-box;text-align: center;vertical-align: middle;"+f+e+"}</style>"+"<".concat(n,' class="').concat(u,'"')+(t&&"button"===n?' onclick="'.concat(t,'"'):"")+(t&&"a"===n?' target="_self" href="'.concat(t,'"'):"")+">"+s+"</".concat(n,">")},N=k();function M(){P.addStyle('.mazey-launch-app-mask{position:fixed;top:0;right:0;bottom:0;left:0;background-color:rgba(0, 0, 0, .5);text-align:right;font-size:0;white-space:nowrap;overflow:auto;z-index:999;}.mazey-launch-app-img{display:inline-block;vertical-align:middle;text-align:left;font-size:14px;white-space:normal;width:50vw;margin:0.5rem 0.5rem 0 0;}.mazey-launch-app-img:after{content:"";display:inline-block;height:100%;vertical-align:middle;}',{id:"mazey-launch-app-mask-style"}),window.LAUNCH_APP_HIDE_WEIXIN_BROWSER||(window.LAUNCH_APP_HIDE_WEIXIN_BROWSER=function(){L(".mazey-launch-app-mask").hide()}),0===L(".mazey-launch-app-mask").length?L("body").append("<div class='mazey-launch-app-mask' onclick='window.LAUNCH_APP_HIDE_WEIXIN_BROWSER()'><img "+"class='mazey-launch-app-img ".concat(c,"' ")+"src='".concat(i,"' ")+"alt='Launch App' /></div>"):L(".mazey-launch-app-mask").show()}function U(){x.log("renderWeixinLaunchTemplate"),!O&&p&&(console.warn("wexinServiceAccountAppId will be deprecated, use serviceAccountAppId instead."),O=p),function(t,e){void 0===t&&(t=""),void 0===e&&(e=""),x.log("renderWXOpenLaunchApp"),Promise.all([Promise.resolve(n||window.LAUNCH_APP_WEIXIN_JS_SDK_TICKET),Promise.resolve(T)]).then((function(n){x.log("allRes",n);var i=n[0],c=n[1],u=P.generateRndNum(7),f=i,s=(new Date).getTime(),p=c("jsapi_ticket="+f+"&noncestr="+u+"×tamp="+s+"&url="+location.href);return _.config({debug:m,appId:t,timestamp:s,nonceStr:u,signature:p,jsApiList:["showOptionMenu","onMenuShareTimeline","onMenuShareAppMessage"],openTagList:["wx-open-launch-app"]}),_.ready((function(){v&&(x.log("onMenuShareTimelineOptions",v),_.onMenuShareTimeline(v)),window.LAUNCH_APP_SHARE_TIMELINE=function(t){t=Yi(Yi({},C),t),x.log("window LAUNCH_APP_SHARE_TIMELINE",t),_.onMenuShareTimeline(t)},y&&(x.log("onMenuShareAppMessageOptions",y),_.onMenuShareAppMessage(y)),window.LAUNCH_APP_SHARE_APP_MESSAGE=function(t){t=Yi(Yi({},I),t),x.log("window LAUNCH_APP_SHARE_APP_MESSAGE",t),_.onMenuShareAppMessage(t)},window.LAUNCH_APP_READY=!0,A&&A();var t=function(){var t=L(r);x.log("containers",r,t,t.length),t.length>0&&t.each((function(t,n){var r=L(n).attr("data-launch-app-key");if(!r){var i=L(n).parents("[data-launch-app-key]:eq(0)");i.length>0&&(r=i.attr("data-launch-app-key"),x.log("keyEle",i,r))}r||(r=t);var c="mazey-launch-app-tag-".concat(r),u=L(".".concat(c," wx-open-launch-app")),f=L(n).attr("data-launch-app-ext-info");if(!f){var s=L(n).parents("[data-launch-app-ext-info]:eq(0)");s.length>0&&(f=s.attr("data-launch-app-ext-info"),x.log("eleExtInfoEle parents",s,f))}f&&(E=f);var p=L(n).attr("data-launch-app-error-link");if(!p){var h=L(n).parents("[data-launch-app-error-link]:eq(0)");h.length>0&&(p=h.attr("data-launch-app-error-link"),x.log("eleErrorLinkEle parents",h,p))}var d=l;p&&(d=p),0===u.length&&(L(n).addClass(c),x.log("success:",c),function(t){var n=o,r=n+t,i="<wx-open-launch-app id='"+r+"' appid='"+e+"' extinfo='".concat(E)+"' style='z-index:99;position:absolute;width:100%;height:100%;opacity:1;background:transparent;overflow:hidden;left:0;'><script type='text/wxtag-template'>"+N+"<\/script></wx-open-launch-app>";L("."+t+":eq(0)").append(i);var c=document.getElementById(r);c&&(c.addEventListener("ready",(function(t){x.log("ready event",t)})),c.addEventListener("launch",(function(t){x.log("launch event",t),t.detail&&t.detail.extInfo&&x.log("launch extInfo",t.detail.extInfo)})),c.addEventListener("error",(function(t){x.error(t.detail),L("[id^='"+n+"']").hide(),a&&M(),d&&(x.log("realErrorLink",d),location.href=d)})),c.addEventListener("click",(function(t){x.log("click event",t),S&&S()})))}(c))}))};t(),j=t})),_.error((function(t){x.error(t)})),"success:launch_app"})).catch((function(t){x.error(t)}))}(O,h)}function D(t){if(x.log("appUpdated",t),!window.LAUNCH_APP_LOAD&&b(t)&&(U(),window.LAUNCH_APP_LOAD=!0),d&&window.LAUNCH_APP_LOAD&&b(t)&&j(),w()){var e=L(r);e.length>0&&e.each((function(t,e){var n=L(e).children("."+u);if(!n||!n.length){var r=L(e).attr("data-launch-app-error-link");if(!r){var o=L(e).parents("[data-launch-app-error-link]:eq(0)");o.length>0&&(r=o.attr("data-launch-app-error-link"))}if(r&&"string"==typeof r&&r.length){var i=k(r,"position:absolute;left:0;z-index:999;","a");L(e).append(i)}}}))}}function H(){x.log("appBeforeDestroy",H),window.LAUNCH_APP_LOAD=null,window.LAUNCH_APP_HIDE_WEIXIN_BROWSER=null}return window.LAUNCH_APP_UPDATE=D,window.LAUNCH_APP_BEFORE_DESTROY=H,window.LAUNCH_APP_SHOW_WEIXIN_TO_BROWSER=M,{LAUNCH_APP_UPDATE:D,LAUNCH_APP_BEFORE_DESTROY:H,LAUNCH_APP_SHOW_WEIXIN_TO_BROWSER:M,LAUNCH_APP_SHARE_TIMELINE:function(t){x.log("opt",t)},LAUNCH_APP_SHARE_APP_MESSAGE:function(t){x.log("opt",t)},start:D,update:D,destroy:H}};
|
|
6
|
+
"use strict";var t=require("mazey"),e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(t,e){return t(e={exports:{}},e.exports),e.exports}var r,o,i=function(t){return t&&t.Math==Math&&t},a=i("object"==typeof globalThis&&globalThis)||i("object"==typeof window&&window)||i("object"==typeof self&&self)||i("object"==typeof e&&e)||function(){return this}()||Function("return this")(),c=function(t){try{return!!t()}catch(t){return!0}},u=!c((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),f=!c((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),s=Function.prototype.call,l=f?s.bind(s):function(){return s.apply(s,arguments)},p={}.propertyIsEnumerable,h=Object.getOwnPropertyDescriptor,d=h&&!p.call({1:2},1)?function(t){var e=h(this,t);return!!e&&e.enumerable}:p,v={f:d},y=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},g=Function.prototype,m=g.call,b=f&&g.bind.bind(m,m),w=f?b:function(t){return function(){return m.apply(t,arguments)}},S=w({}.toString),A=w("".slice),O=function(t){return A(S(t),8,-1)},E=Object,P=w("".split),T=c((function(){return!E("z").propertyIsEnumerable(0)}))?function(t){return"String"==O(t)?P(t,""):E(t)}:E,_=function(t){return null==t},L=TypeError,j=function(t){if(_(t))throw L("Can't call method on "+t);return t},x=function(t){return T(j(t))},C="object"==typeof document&&document.all,I={all:C,IS_HTMLDDA:void 0===C&&void 0!==C},R=I.all,k=I.IS_HTMLDDA?function(t){return"function"==typeof t||t===R}:function(t){return"function"==typeof t},N=I.all,M=I.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:k(t)||t===N}:function(t){return"object"==typeof t?null!==t:k(t)},U=function(t,e){return arguments.length<2?(n=a[t],k(n)?n:void 0):a[t]&&a[t][e];var n},D=w({}.isPrototypeOf),H="undefined"!=typeof navigator&&String(navigator.userAgent)||"",B=a.process,W=a.Deno,F=B&&B.versions||W&&W.version,z=F&&F.v8;z&&(o=(r=z.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!o&&H&&(!(r=H.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=H.match(/Chrome\/(\d+)/))&&(o=+r[1]);var G=o,q=!!Object.getOwnPropertySymbols&&!c((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&G&&G<41})),V=q&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,X=Object,Y=V?function(t){return"symbol"==typeof t}:function(t){var e=U("Symbol");return k(e)&&D(e.prototype,X(t))},J=String,K=function(t){try{return J(t)}catch(t){return"Object"}},Q=TypeError,$=function(t){if(k(t))return t;throw Q(K(t)+" is not a function")},Z=function(t,e){var n=t[e];return _(n)?void 0:$(n)},tt=TypeError,et=Object.defineProperty,nt=function(t,e){try{et(a,t,{value:e,configurable:!0,writable:!0})}catch(n){a[t]=e}return e},rt="__core-js_shared__",ot=a[rt]||nt(rt,{}),it=n((function(t){(t.exports=function(t,e){return ot[t]||(ot[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.30.1",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.30.1/LICENSE",source:"https://github.com/zloirock/core-js"})})),at=Object,ct=function(t){return at(j(t))},ut=w({}.hasOwnProperty),ft=Object.hasOwn||function(t,e){return ut(ct(t),e)},st=0,lt=Math.random(),pt=w(1..toString),ht=function(t){return"Symbol("+(void 0===t?"":t)+")_"+pt(++st+lt,36)},dt=a.Symbol,vt=it("wks"),yt=V?dt.for||dt:dt&&dt.withoutSetter||ht,gt=function(t){return ft(vt,t)||(vt[t]=q&&ft(dt,t)?dt[t]:yt("Symbol."+t)),vt[t]},mt=TypeError,bt=gt("toPrimitive"),wt=function(t,e){if(!M(t)||Y(t))return t;var n,r=Z(t,bt);if(r){if(void 0===e&&(e="default"),n=l(r,t,e),!M(n)||Y(n))return n;throw mt("Can't convert object to primitive value")}return void 0===e&&(e="number"),function(t,e){var n,r;if("string"===e&&k(n=t.toString)&&!M(r=l(n,t)))return r;if(k(n=t.valueOf)&&!M(r=l(n,t)))return r;if("string"!==e&&k(n=t.toString)&&!M(r=l(n,t)))return r;throw tt("Can't convert object to primitive value")}(t,e)},St=function(t){var e=wt(t,"string");return Y(e)?e:e+""},At=a.document,Ot=M(At)&&M(At.createElement),Et=function(t){return Ot?At.createElement(t):{}},Pt=!u&&!c((function(){return 7!=Object.defineProperty(Et("div"),"a",{get:function(){return 7}}).a})),Tt=Object.getOwnPropertyDescriptor,_t={f:u?Tt:function(t,e){if(t=x(t),e=St(e),Pt)try{return Tt(t,e)}catch(t){}if(ft(t,e))return y(!l(v.f,t,e),t[e])}},Lt=u&&c((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),jt=String,xt=TypeError,Ct=function(t){if(M(t))return t;throw xt(jt(t)+" is not an object")},It=TypeError,Rt=Object.defineProperty,kt=Object.getOwnPropertyDescriptor,Nt="enumerable",Mt="configurable",Ut="writable",Dt={f:u?Lt?function(t,e,n){if(Ct(t),e=St(e),Ct(n),"function"==typeof t&&"prototype"===e&&"value"in n&&Ut in n&&!n[Ut]){var r=kt(t,e);r&&r[Ut]&&(t[e]=n.value,n={configurable:Mt in n?n[Mt]:r[Mt],enumerable:Nt in n?n[Nt]:r[Nt],writable:!1})}return Rt(t,e,n)}:Rt:function(t,e,n){if(Ct(t),e=St(e),Ct(n),Pt)try{return Rt(t,e,n)}catch(t){}if("get"in n||"set"in n)throw It("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},Ht=u?function(t,e,n){return Dt.f(t,e,y(1,n))}:function(t,e,n){return t[e]=n,t},Bt=Function.prototype,Wt=u&&Object.getOwnPropertyDescriptor,Ft=ft(Bt,"name"),zt={EXISTS:Ft,PROPER:Ft&&"something"===function(){}.name,CONFIGURABLE:Ft&&(!u||u&&Wt(Bt,"name").configurable)},Gt=w(Function.toString);k(ot.inspectSource)||(ot.inspectSource=function(t){return Gt(t)});var qt,Vt,Xt,Yt=ot.inspectSource,Jt=a.WeakMap,Kt=k(Jt)&&/native code/.test(String(Jt)),Qt=it("keys"),$t=function(t){return Qt[t]||(Qt[t]=ht(t))},Zt={},te="Object already initialized",ee=a.TypeError,ne=a.WeakMap;if(Kt||ot.state){var re=ot.state||(ot.state=new ne);re.get=re.get,re.has=re.has,re.set=re.set,qt=function(t,e){if(re.has(t))throw ee(te);return e.facade=t,re.set(t,e),e},Vt=function(t){return re.get(t)||{}},Xt=function(t){return re.has(t)}}else{var oe=$t("state");Zt[oe]=!0,qt=function(t,e){if(ft(t,oe))throw ee(te);return e.facade=t,Ht(t,oe,e),e},Vt=function(t){return ft(t,oe)?t[oe]:{}},Xt=function(t){return ft(t,oe)}}var ie={set:qt,get:Vt,has:Xt,enforce:function(t){return Xt(t)?Vt(t):qt(t,{})},getterFor:function(t){return function(e){var n;if(!M(e)||(n=Vt(e)).type!==t)throw ee("Incompatible receiver, "+t+" required");return n}}},ae=n((function(t){var e=zt.CONFIGURABLE,n=ie.enforce,r=ie.get,o=String,i=Object.defineProperty,a=w("".slice),f=w("".replace),s=w([].join),l=u&&!c((function(){return 8!==i((function(){}),"length",{value:8}).length})),p=String(String).split("String"),h=t.exports=function(t,r,c){"Symbol("===a(o(r),0,7)&&(r="["+f(o(r),/^Symbol\(([^)]*)\)/,"$1")+"]"),c&&c.getter&&(r="get "+r),c&&c.setter&&(r="set "+r),(!ft(t,"name")||e&&t.name!==r)&&(u?i(t,"name",{value:r,configurable:!0}):t.name=r),l&&c&&ft(c,"arity")&&t.length!==c.arity&&i(t,"length",{value:c.arity});try{c&&ft(c,"constructor")&&c.constructor?u&&i(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var h=n(t);return ft(h,"source")||(h.source=s(p,"string"==typeof r?r:"")),t};Function.prototype.toString=h((function(){return k(this)&&r(this).source||Yt(this)}),"toString")})),ce=function(t,e,n,r){r||(r={});var o=r.enumerable,i=void 0!==r.name?r.name:e;if(k(n)&&ae(n,i,r),r.global)o?t[e]=n:nt(e,n);else{try{r.unsafe?t[e]&&(o=!0):delete t[e]}catch(t){}o?t[e]=n:Dt.f(t,e,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return t},ue=Math.ceil,fe=Math.floor,se=Math.trunc||function(t){var e=+t;return(e>0?fe:ue)(e)},le=function(t){var e=+t;return e!=e||0===e?0:se(e)},pe=Math.max,he=Math.min,de=Math.min,ve=function(t){return(e=t.length)>0?de(le(e),9007199254740991):0;var e},ye=function(t){return function(e,n,r){var o,i=x(e),a=ve(i),c=function(t,e){var n=le(t);return n<0?pe(n+e,0):he(n,e)}(r,a);if(t&&n!=n){for(;a>c;)if((o=i[c++])!=o)return!0}else for(;a>c;c++)if((t||c in i)&&i[c]===n)return t||c||0;return!t&&-1}},ge={includes:ye(!0),indexOf:ye(!1)}.indexOf,me=w([].push),be=function(t,e){var n,r=x(t),o=0,i=[];for(n in r)!ft(Zt,n)&&ft(r,n)&&me(i,n);for(;e.length>o;)ft(r,n=e[o++])&&(~ge(i,n)||me(i,n));return i},we=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Se=we.concat("length","prototype"),Ae={f:Object.getOwnPropertyNames||function(t){return be(t,Se)}},Oe={f:Object.getOwnPropertySymbols},Ee=w([].concat),Pe=U("Reflect","ownKeys")||function(t){var e=Ae.f(Ct(t)),n=Oe.f;return n?Ee(e,n(t)):e},Te=function(t,e,n){for(var r=Pe(e),o=Dt.f,i=_t.f,a=0;a<r.length;a++){var c=r[a];ft(t,c)||n&&ft(n,c)||o(t,c,i(e,c))}},_e=/#|\.prototype\./,Le=function(t,e){var n=xe[je(t)];return n==Ie||n!=Ce&&(k(e)?c(e):!!e)},je=Le.normalize=function(t){return String(t).replace(_e,".").toLowerCase()},xe=Le.data={},Ce=Le.NATIVE="N",Ie=Le.POLYFILL="P",Re=Le,ke=_t.f,Ne=function(t,e){var n,r,o,i,c,u=t.target,f=t.global,s=t.stat;if(n=f?a:s?a[u]||nt(u,{}):(a[u]||{}).prototype)for(r in e){if(i=e[r],o=t.dontCallGetSet?(c=ke(n,r))&&c.value:n[r],!Re(f?r:u+(s?".":"#")+r,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;Te(i,o)}(t.sham||o&&o.sham)&&Ht(i,"sham",!0),ce(n,r,i,t)}},Me=Object.keys||function(t){return be(t,we)},Ue=Object.assign,De=Object.defineProperty,He=w([].concat),Be=!Ue||c((function(){if(u&&1!==Ue({b:1},Ue(De({},"a",{enumerable:!0,get:function(){De(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach((function(t){e[t]=t})),7!=Ue({},t)[n]||Me(Ue({},e)).join("")!=r}))?function(t,e){for(var n=ct(t),r=arguments.length,o=1,i=Oe.f,a=v.f;r>o;)for(var c,f=T(arguments[o++]),s=i?He(Me(f),i(f)):Me(f),p=s.length,h=0;p>h;)c=s[h++],u&&!l(a,f,c)||(n[c]=f[c]);return n}:Ue;Ne({target:"Object",stat:!0,arity:2,forced:Object.assign!==Be},{assign:Be});var We=Array.isArray||function(t){return"Array"==O(t)},Fe=TypeError,ze=function(t){if(t>9007199254740991)throw Fe("Maximum allowed index exceeded");return t},Ge=function(t,e,n){var r=St(e);r in t?Dt.f(t,r,y(0,n)):t[r]=n},qe={};qe[gt("toStringTag")]="z";var Ve="[object z]"===String(qe),Xe=gt("toStringTag"),Ye=Object,Je="Arguments"==O(function(){return arguments}()),Ke=Ve?O:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Ye(t),Xe))?n:Je?O(e):"Object"==(r=O(e))&&k(e.callee)?"Arguments":r},Qe=function(){},$e=[],Ze=U("Reflect","construct"),tn=/^\s*(?:class|function)\b/,en=w(tn.exec),nn=!tn.exec(Qe),rn=function(t){if(!k(t))return!1;try{return Ze(Qe,$e,t),!0}catch(t){return!1}},on=function(t){if(!k(t))return!1;switch(Ke(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return nn||!!en(tn,Yt(t))}catch(t){return!0}};on.sham=!0;var an,cn=!Ze||c((function(){var t;return rn(rn.call)||!rn(Object)||!rn((function(){t=!0}))||t}))?on:rn,un=gt("species"),fn=Array,sn=function(t,e){return new(function(t){var e;return We(t)&&(e=t.constructor,(cn(e)&&(e===fn||We(e.prototype))||M(e)&&null===(e=e[un]))&&(e=void 0)),void 0===e?fn:e}(t))(0===e?0:e)},ln=gt("species"),pn=gt("isConcatSpreadable"),hn=G>=51||!c((function(){var t=[];return t[pn]=!1,t.concat()[0]!==t})),dn=function(t){if(!M(t))return!1;var e=t[pn];return void 0!==e?!!e:We(t)},vn=!(hn&&(an="concat",G>=51||!c((function(){var t=[];return(t.constructor={})[ln]=function(){return{foo:1}},1!==t[an](Boolean).foo}))));Ne({target:"Array",proto:!0,arity:1,forced:vn},{concat:function(t){var e,n,r,o,i,a=ct(this),c=sn(a,0),u=0;for(e=-1,r=arguments.length;e<r;e++)if(dn(i=-1===e?a:arguments[e]))for(o=ve(i),ze(u+o),n=0;n<o;n++,u++)n in i&&Ge(c,u,i[n]);else ze(u+1),Ge(c,u++,i);return c.length=u,c}});var yn,gn=u&&!Lt?Object.defineProperties:function(t,e){Ct(t);for(var n,r=x(e),o=Me(e),i=o.length,a=0;i>a;)Dt.f(t,n=o[a++],r[n]);return t},mn={f:gn},bn=U("document","documentElement"),wn="prototype",Sn="script",An=$t("IE_PROTO"),On=function(){},En=function(t){return"<"+Sn+">"+t+"</"+Sn+">"},Pn=function(t){t.write(En("")),t.close();var e=t.parentWindow.Object;return t=null,e},Tn=function(){try{yn=new ActiveXObject("htmlfile")}catch(t){}var t,e,n;Tn="undefined"!=typeof document?document.domain&&yn?Pn(yn):(e=Et("iframe"),n="java"+Sn+":",e.style.display="none",bn.appendChild(e),e.src=String(n),(t=e.contentWindow.document).open(),t.write(En("document.F=Object")),t.close(),t.F):Pn(yn);for(var r=we.length;r--;)delete Tn[wn][we[r]];return Tn()};Zt[An]=!0;var _n=Object.create||function(t,e){var n;return null!==t?(On[wn]=Ct(t),n=new On,On[wn]=null,n[An]=t):n=Tn(),void 0===e?n:mn.f(n,e)},Ln=Dt.f,jn=gt("unscopables"),xn=Array.prototype;null==xn[jn]&&Ln(xn,jn,{configurable:!0,value:_n(null)});var Cn,In,Rn,kn=function(t){xn[jn][t]=!0},Nn={},Mn=!c((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),Un=$t("IE_PROTO"),Dn=Object,Hn=Dn.prototype,Bn=Mn?Dn.getPrototypeOf:function(t){var e=ct(t);if(ft(e,Un))return e[Un];var n=e.constructor;return k(n)&&e instanceof n?n.prototype:e instanceof Dn?Hn:null},Wn=gt("iterator"),Fn=!1;[].keys&&("next"in(Rn=[].keys())?(In=Bn(Bn(Rn)))!==Object.prototype&&(Cn=In):Fn=!0);var zn=!M(Cn)||c((function(){var t={};return Cn[Wn].call(t)!==t}));zn&&(Cn={}),k(Cn[Wn])||ce(Cn,Wn,(function(){return this}));var Gn={IteratorPrototype:Cn,BUGGY_SAFARI_ITERATORS:Fn},qn=Dt.f,Vn=gt("toStringTag"),Xn=function(t,e,n){t&&!n&&(t=t.prototype),t&&!ft(t,Vn)&&qn(t,Vn,{configurable:!0,value:e})},Yn=Gn.IteratorPrototype,Jn=function(){return this},Kn=String,Qn=TypeError,$n=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{t=function(t,e,n){try{return w($(Object.getOwnPropertyDescriptor(t,e)[n]))}catch(t){}}(Object.prototype,"__proto__","set"),t(n,[]),e=n instanceof Array}catch(t){}return function(n,r){return Ct(n),function(t){if("object"==typeof t||k(t))return t;throw Qn("Can't set "+Kn(t)+" as a prototype")}(r),e?t(n,r):n.__proto__=r,n}}():void 0),Zn=zt.PROPER,tr=zt.CONFIGURABLE,er=Gn.IteratorPrototype,nr=Gn.BUGGY_SAFARI_ITERATORS,rr=gt("iterator"),or="keys",ir="values",ar="entries",cr=function(){return this},ur=function(t,e,n,r,o,i,a){!function(t,e,n,r){var o=e+" Iterator";t.prototype=_n(Yn,{next:y(+!r,n)}),Xn(t,o,!1),Nn[o]=Jn}(n,e,r);var c,u,f,s=function(t){if(t===o&&g)return g;if(!nr&&t in d)return d[t];switch(t){case or:case ir:case ar:return function(){return new n(this,t)}}return function(){return new n(this)}},p=e+" Iterator",h=!1,d=t.prototype,v=d[rr]||d["@@iterator"]||o&&d[o],g=!nr&&v||s(o),m="Array"==e&&d.entries||v;if(m&&(c=Bn(m.call(new t)))!==Object.prototype&&c.next&&(Bn(c)!==er&&($n?$n(c,er):k(c[rr])||ce(c,rr,cr)),Xn(c,p,!0)),Zn&&o==ir&&v&&v.name!==ir&&(tr?Ht(d,"name",ir):(h=!0,g=function(){return l(v,this)})),o)if(u={values:s(ir),keys:i?g:s(or),entries:s(ar)},a)for(f in u)(nr||h||!(f in d))&&ce(d,f,u[f]);else Ne({target:e,proto:!0,forced:nr||h},u);return d[rr]!==g&&ce(d,rr,g,{name:o}),Nn[e]=g,u},fr=function(t,e){return{value:t,done:e}},sr=Dt.f,lr="Array Iterator",pr=ie.set,hr=ie.getterFor(lr),dr=ur(Array,"Array",(function(t,e){pr(this,{type:lr,target:x(t),index:0,kind:e})}),(function(){var t=hr(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,fr(void 0,!0)):fr("keys"==n?r:"values"==n?e[r]:[r,e[r]],!1)}),"values"),vr=Nn.Arguments=Nn.Array;if(kn("keys"),kn("values"),kn("entries"),u&&"values"!==vr.name)try{sr(vr,"name",{value:"values"})}catch(t){}var yr=Ve?{}.toString:function(){return"[object "+Ke(this)+"]"};Ve||ce(Object.prototype,"toString",yr,{unsafe:!0});var gr,mr,br,wr,Sr="undefined"!=typeof process&&"process"==O(process),Ar=gt("species"),Or=TypeError,Er=TypeError,Pr=gt("species"),Tr=function(t,e){var n,r=Ct(t).constructor;return void 0===r||_(n=Ct(r)[Pr])?e:function(t){if(cn(t))return t;throw Er(K(t)+" is not a constructor")}(n)},_r=Function.prototype,Lr=_r.apply,jr=_r.call,xr="object"==typeof Reflect&&Reflect.apply||(f?jr.bind(Lr):function(){return jr.apply(Lr,arguments)}),Cr=function(t){if("Function"===O(t))return w(t)},Ir=Cr(Cr.bind),Rr=function(t,e){return $(t),void 0===e?t:f?Ir(t,e):function(){return t.apply(e,arguments)}},kr=w([].slice),Nr=TypeError,Mr=/(?:ipad|iphone|ipod).*applewebkit/i.test(H),Ur=a.setImmediate,Dr=a.clearImmediate,Hr=a.process,Br=a.Dispatch,Wr=a.Function,Fr=a.MessageChannel,zr=a.String,Gr=0,qr={},Vr="onreadystatechange";c((function(){gr=a.location}));var Xr=function(t){if(ft(qr,t)){var e=qr[t];delete qr[t],e()}},Yr=function(t){return function(){Xr(t)}},Jr=function(t){Xr(t.data)},Kr=function(t){a.postMessage(zr(t),gr.protocol+"//"+gr.host)};Ur&&Dr||(Ur=function(t){!function(t,e){if(t<e)throw Nr("Not enough arguments")}(arguments.length,1);var e=k(t)?t:Wr(t),n=kr(arguments,1);return qr[++Gr]=function(){xr(e,void 0,n)},mr(Gr),Gr},Dr=function(t){delete qr[t]},Sr?mr=function(t){Hr.nextTick(Yr(t))}:Br&&Br.now?mr=function(t){Br.now(Yr(t))}:Fr&&!Mr?(wr=(br=new Fr).port2,br.port1.onmessage=Jr,mr=Rr(wr.postMessage,wr)):a.addEventListener&&k(a.postMessage)&&!a.importScripts&&gr&&"file:"!==gr.protocol&&!c(Kr)?(mr=Kr,a.addEventListener("message",Jr,!1)):mr=Vr in Et("script")?function(t){bn.appendChild(Et("script"))[Vr]=function(){bn.removeChild(this),Xr(t)}}:function(t){setTimeout(Yr(t),0)});var Qr={set:Ur,clear:Dr},$r=function(){this.head=null,this.tail=null};$r.prototype={add:function(t){var e={item:t,next:null},n=this.tail;n?n.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return null===(this.head=t.next)&&(this.tail=null),t.item}};var Zr,to,eo,no,ro,oo=$r,io=/ipad|iphone|ipod/i.test(H)&&"undefined"!=typeof Pebble,ao=/web0s(?!.*chrome)/i.test(H),co=_t.f,uo=Qr.set,fo=a.MutationObserver||a.WebKitMutationObserver,so=a.document,lo=a.process,po=a.Promise,ho=co(a,"queueMicrotask"),vo=ho&&ho.value;if(!vo){var yo=new oo,go=function(){var t,e;for(Sr&&(t=lo.domain)&&t.exit();e=yo.get();)try{e()}catch(t){throw yo.head&&Zr(),t}t&&t.enter()};Mr||Sr||ao||!fo||!so?!io&&po&&po.resolve?((no=po.resolve(void 0)).constructor=po,ro=Rr(no.then,no),Zr=function(){ro(go)}):Sr?Zr=function(){lo.nextTick(go)}:(uo=Rr(uo,a),Zr=function(){uo(go)}):(to=!0,eo=so.createTextNode(""),new fo(go).observe(eo,{characterData:!0}),Zr=function(){eo.data=to=!to}),vo=function(t){yo.head||Zr(),yo.add(t)}}var mo=vo,bo=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},wo=a.Promise,So="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,Ao=!So&&!Sr&&"object"==typeof window&&"object"==typeof document;wo&&wo.prototype;var Oo,Eo,Po,To,_o,Lo,jo,xo=gt("species"),Co=!1,Io=k(a.PromiseRejectionEvent),Ro=Re("Promise",(function(){var t=Yt(wo),e=t!==String(wo);if(!e&&66===G)return!0;if(!G||G<51||!/native code/.test(t)){var n=new wo((function(t){t(1)})),r=function(t){t((function(){}),(function(){}))};if((n.constructor={})[xo]=r,!(Co=n.then((function(){}))instanceof r))return!0}return!e&&(Ao||So)&&!Io})),ko={CONSTRUCTOR:Ro,REJECTION_EVENT:Io,SUBCLASSING:Co},No=TypeError,Mo=function(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw No("Bad Promise constructor");e=t,n=r})),this.resolve=$(e),this.reject=$(n)},Uo={f:function(t){return new Mo(t)}},Do=Qr.set,Ho="Promise",Bo=ko.CONSTRUCTOR,Wo=ko.REJECTION_EVENT,Fo=ko.SUBCLASSING,zo=ie.getterFor(Ho),Go=ie.set,qo=wo&&wo.prototype,Vo=wo,Xo=qo,Yo=a.TypeError,Jo=a.document,Ko=a.process,Qo=Uo.f,$o=Qo,Zo=!!(Jo&&Jo.createEvent&&a.dispatchEvent),ti="unhandledrejection",ei=function(t){var e;return!(!M(t)||!k(e=t.then))&&e},ni=function(t,e){var n,r,o,i=e.value,a=1==e.state,c=a?t.ok:t.fail,u=t.resolve,f=t.reject,s=t.domain;try{c?(a||(2===e.rejection&&ci(e),e.rejection=1),!0===c?n=i:(s&&s.enter(),n=c(i),s&&(s.exit(),o=!0)),n===t.promise?f(Yo("Promise-chain cycle")):(r=ei(n))?l(r,n,u,f):u(n)):f(i)}catch(t){s&&!o&&s.exit(),f(t)}},ri=function(t,e){t.notified||(t.notified=!0,mo((function(){for(var n,r=t.reactions;n=r.get();)ni(n,t);t.notified=!1,e&&!t.rejection&&ii(t)})))},oi=function(t,e,n){var r,o;Zo?((r=Jo.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),a.dispatchEvent(r)):r={promise:e,reason:n},!Wo&&(o=a["on"+t])?o(r):t===ti&&function(t,e){try{1==arguments.length?console.error(t):console.error(t,e)}catch(t){}}("Unhandled promise rejection",n)},ii=function(t){l(Do,a,(function(){var e,n=t.facade,r=t.value;if(ai(t)&&(e=bo((function(){Sr?Ko.emit("unhandledRejection",r,n):oi(ti,n,r)})),t.rejection=Sr||ai(t)?2:1,e.error))throw e.value}))},ai=function(t){return 1!==t.rejection&&!t.parent},ci=function(t){l(Do,a,(function(){var e=t.facade;Sr?Ko.emit("rejectionHandled",e):oi("rejectionhandled",e,t.value)}))},ui=function(t,e,n){return function(r){t(e,r,n)}},fi=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,ri(t,!0))},si=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw Yo("Promise can't be resolved itself");var r=ei(e);r?mo((function(){var n={done:!1};try{l(r,e,ui(si,n,t),ui(fi,n,t))}catch(e){fi(n,e,t)}})):(t.value=e,t.state=1,ri(t,!1))}catch(e){fi({done:!1},e,t)}}};if(Bo&&(Xo=(Vo=function(t){!function(t,e){if(D(e,t))return t;throw Or("Incorrect invocation")}(this,Xo),$(t),l(Oo,this);var e=zo(this);try{t(ui(si,e),ui(fi,e))}catch(t){fi(e,t)}}).prototype,(Oo=function(t){Go(this,{type:Ho,done:!1,notified:!1,parent:!1,reactions:new oo,rejection:!1,state:0,value:void 0})}).prototype=ce(Xo,"then",(function(t,e){var n=zo(this),r=Qo(Tr(this,Vo));return n.parent=!0,r.ok=!k(t)||t,r.fail=k(e)&&e,r.domain=Sr?Ko.domain:void 0,0==n.state?n.reactions.add(r):mo((function(){ni(r,n)})),r.promise})),Eo=function(){var t=new Oo,e=zo(t);this.promise=t,this.resolve=ui(si,e),this.reject=ui(fi,e)},Uo.f=Qo=function(t){return t===Vo||undefined===t?new Eo(t):$o(t)},k(wo)&&qo!==Object.prototype)){Po=qo.then,Fo||ce(qo,"then",(function(t,e){var n=this;return new Vo((function(t,e){l(Po,n,t,e)})).then(t,e)}),{unsafe:!0});try{delete qo.constructor}catch(t){}$n&&$n(qo,Xo)}Ne({global:!0,constructor:!0,wrap:!0,forced:Bo},{Promise:Vo}),Xn(Vo,Ho,!1),jo=U(Ho),u&&jo&&!jo[Ar]&&(To=jo,_o=Ar,(Lo={configurable:!0,get:function(){return this}}).get&&ae(Lo.get,_o,{getter:!0}),Lo.set&&ae(Lo.set,_o,{setter:!0}),Dt.f(To,_o,Lo));var li=gt("iterator"),pi=Array.prototype,hi=gt("iterator"),di=function(t){if(!_(t))return Z(t,hi)||Z(t,"@@iterator")||Nn[Ke(t)]},vi=TypeError,yi=function(t,e,n){var r,o;Ct(t);try{if(!(r=Z(t,"return"))){if("throw"===e)throw n;return n}r=l(r,t)}catch(t){o=!0,r=t}if("throw"===e)throw n;if(o)throw r;return Ct(r),n},gi=TypeError,mi=function(t,e){this.stopped=t,this.result=e},bi=mi.prototype,wi=function(t,e,n){var r,o,i,a,c,u,f,s,p=n&&n.that,h=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_RECORD),v=!(!n||!n.IS_ITERATOR),y=!(!n||!n.INTERRUPTED),g=Rr(e,p),m=function(t){return r&&yi(r,"normal",t),new mi(!0,t)},b=function(t){return h?(Ct(t),y?g(t[0],t[1],m):g(t[0],t[1])):y?g(t,m):g(t)};if(d)r=t.iterator;else if(v)r=t;else{if(!(o=di(t)))throw gi(K(t)+" is not iterable");if(void 0!==(s=o)&&(Nn.Array===s||pi[li]===s)){for(i=0,a=ve(t);a>i;i++)if((c=b(t[i]))&&D(bi,c))return c;return new mi(!1)}r=function(t,e){var n=arguments.length<2?di(t):e;if($(n))return Ct(l(n,t));throw vi(K(t)+" is not iterable")}(t,o)}for(u=d?t.next:r.next;!(f=l(u,r)).done;){try{c=b(f.value)}catch(t){yi(r,"throw",t)}if("object"==typeof c&&c&&D(bi,c))return c}return new mi(!1)},Si=gt("iterator"),Ai=!1;try{var Oi=0,Ei={next:function(){return{done:!!Oi++}},return:function(){Ai=!0}};Ei[Si]=function(){return this},Array.from(Ei,(function(){throw 2}))}catch(t){}var Pi=ko.CONSTRUCTOR||!function(t,e){if(!e&&!Ai)return!1;var n=!1;try{var r={};r[Si]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(t){}return n}((function(t){wo.all(t).then(void 0,(function(){}))}));Ne({target:"Promise",stat:!0,forced:Pi},{all:function(t){var e=this,n=Uo.f(e),r=n.resolve,o=n.reject,i=bo((function(){var n=$(e.resolve),i=[],a=0,c=1;wi(t,(function(t){var u=a++,f=!1;c++,l(n,e,t).then((function(t){f||(f=!0,i[u]=t,--c||r(i))}),o)})),--c||r(i)}));return i.error&&o(i.value),n.promise}});var Ti=ko.CONSTRUCTOR,_i=wo&&wo.prototype;if(Ne({target:"Promise",proto:!0,forced:Ti,real:!0},{catch:function(t){return this.then(void 0,t)}}),k(wo)){var Li=U("Promise").prototype.catch;_i.catch!==Li&&ce(_i,"catch",Li,{unsafe:!0})}Ne({target:"Promise",stat:!0,forced:Pi},{race:function(t){var e=this,n=Uo.f(e),r=n.reject,o=bo((function(){var o=$(e.resolve);wi(t,(function(t){l(o,e,t).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}}),Ne({target:"Promise",stat:!0,forced:ko.CONSTRUCTOR},{reject:function(t){var e=Uo.f(this);return l(e.reject,void 0,t),e.promise}});var ji=ko.CONSTRUCTOR;U("Promise"),Ne({target:"Promise",stat:!0,forced:ji},{resolve:function(t){return function(t,e){if(Ct(t),M(e)&&e.constructor===t)return e;var n=Uo.f(t);return(0,n.resolve)(e),n.promise}(this,t)}});var xi=String,Ci=function(t){if("Symbol"===Ke(t))throw TypeError("Cannot convert a Symbol value to a string");return xi(t)},Ii=w("".charAt),Ri=w("".charCodeAt),ki=w("".slice),Ni=function(t){return function(e,n){var r,o,i=Ci(j(e)),a=le(n),c=i.length;return a<0||a>=c?t?"":void 0:(r=Ri(i,a))<55296||r>56319||a+1===c||(o=Ri(i,a+1))<56320||o>57343?t?Ii(i,a):r:t?ki(i,a,a+2):o-56320+(r-55296<<10)+65536}},Mi={codeAt:Ni(!1),charAt:Ni(!0)}.charAt,Ui="String Iterator",Di=ie.set,Hi=ie.getterFor(Ui);ur(String,"String",(function(t){Di(this,{type:Ui,string:Ci(t),index:0})}),(function(){var t,e=Hi(this),n=e.string,r=e.index;return r>=n.length?fr(void 0,!0):(t=Mi(n,r),e.index+=t.length,fr(t,!1))}));var Bi={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},Wi=Et("span").classList,Fi=Wi&&Wi.constructor&&Wi.constructor.prototype,zi=Fi===Object.prototype?void 0:Fi,Gi=gt("iterator"),qi=gt("toStringTag"),Vi=dr.values,Xi=function(t,e){if(t){if(t[Gi]!==Vi)try{Ht(t,Gi,Vi)}catch(e){t[Gi]=Vi}if(t[qi]||Ht(t,qi,e),Bi[e])for(var n in dr)if(t[n]!==dr[n])try{Ht(t,n,dr[n])}catch(e){t[n]=dr[n]}}};for(var Yi in Bi)Xi(a[Yi]&&a[Yi].prototype,Yi);Xi(zi,"DOMTokenList");var Ji=function(){return Ji=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Ji.apply(this,arguments)},Ki={weixinJsSdkTicket:"",launchContainerQuery:".mazey-launch-app-selector",launchShowWeixinToBrowserImgUrl:"",canShowWeixinToBrowser:!1,extInfo:"",serviceAccountAppId:"",wexinServiceAccountAppId:"",openPlatformMobileAppId:"",genTagPrefixStr:"mazey-launch-app-btn-prefix-",launchShowWeixinToBrowserClassName:"mazey-launch-app-wx-to-browser",launchBtnClassName:"mazey-launch-app-inner-btn",launchBtnStyle:"",launchBtnText:"Launch App <br /><br /><br />",launchErrorLink:"",canContinuousUpdating:!1,onMenuShareTimelineOptions:void 0,onMenuShareAppMessageOptions:void 0,isConClosed:!0,isWxDebug:!1,canLaunchApp:function(){return!0},canFireErrorLinkDirectly:function(){return!1},launchBtnClick:function(){},launchReady:function(){}};module.exports=function(e){void 0===e&&(e=Ki);var n=Object.assign(Ki,e),r=n.weixinJsSdkTicket,o=n.launchContainerQuery,i=n.genTagPrefixStr,a=n.launchShowWeixinToBrowserImgUrl,c=n.canShowWeixinToBrowser,u=n.launchShowWeixinToBrowserClassName,f=n.launchBtnClassName,s=n.launchBtnStyle,l=n.launchBtnText,p=n.launchErrorLink,h=n.wexinServiceAccountAppId,d=n.openPlatformMobileAppId,v=n.canContinuousUpdating,y=n.onMenuShareTimelineOptions,g=n.onMenuShareAppMessageOptions,m=n.isConClosed,b=n.isWxDebug,w=n.canLaunchApp,S=n.canFireErrorLinkDirectly,A=n.launchBtnClick,O=n.launchReady,E=n.serviceAccountAppId,P=n.extInfo,T=window.sha1,_=window.wx,L=window.$||window.jQuery;T&&_&&L||console.error("Launch App: wx or sha1 or $ is not found");var j=function(){},x=t.genCustomConsole("LaunchCon:",{isClosed:m});x.log("Launch App");var C={title:"",link:"",imgUrl:"",success:function(){},cancel:function(){}},I={title:"",desc:"",link:"",imgUrl:"",type:"",dataUrl:"",success:function(){},cancel:function(){}},R={title:document.title,link:location.href};C=Ji(Ji({},C),R),I=Ji(Ji({},I),R);var k=function(t,e,n){return void 0===t&&(t=""),void 0===e&&(e=""),void 0===n&&(n="button"),"<style>.".concat(f,"{")+"opacity: 0;width: 100%;height: 100%;backgroud: transparent;color: #300f54;border: none;box-sizing: border-box;text-align: center;vertical-align: middle;"+s+e+"}</style>"+"<".concat(n,' class="').concat(f,'"')+(t&&"button"===n?' onclick="'.concat(t,'"'):"")+(t&&"a"===n?' target="_self" href="'.concat(t,'"'):"")+">"+l+"</".concat(n,">")},N=k();function M(){t.addStyle('.mazey-launch-app-mask{position:fixed;top:0;right:0;bottom:0;left:0;background-color:rgba(0, 0, 0, .5);text-align:right;font-size:0;white-space:nowrap;overflow:auto;z-index:999;}.mazey-launch-app-img{display:inline-block;vertical-align:middle;text-align:left;font-size:14px;white-space:normal;width:50vw;margin:0.5rem 0.5rem 0 0;}.mazey-launch-app-img:after{content:"";display:inline-block;height:100%;vertical-align:middle;}',{id:"mazey-launch-app-mask-style"}),window.LAUNCH_APP_HIDE_WEIXIN_BROWSER||(window.LAUNCH_APP_HIDE_WEIXIN_BROWSER=function(){L(".mazey-launch-app-mask").hide()}),0===L(".mazey-launch-app-mask").length?L("body").append("<div class='mazey-launch-app-mask' onclick='window.LAUNCH_APP_HIDE_WEIXIN_BROWSER()'><img "+"class='mazey-launch-app-img ".concat(u,"' ")+"src='".concat(a,"' ")+"alt='Launch App' /></div>"):L(".mazey-launch-app-mask").show()}function U(){x.log("renderWeixinLaunchTemplate"),!E&&h&&(console.warn("wexinServiceAccountAppId will be deprecated, use serviceAccountAppId instead."),E=h),function(e,n){void 0===e&&(e=""),void 0===n&&(n=""),x.log("renderWXOpenLaunchApp"),Promise.all([Promise.resolve(r||window.LAUNCH_APP_WEIXIN_JS_SDK_TICKET),Promise.resolve(T)]).then((function(r){x.log("allRes",r);var a=r[0],u=r[1],f=t.generateRndNum(7),s=a,l=(new Date).getTime(),h=u("jsapi_ticket="+s+"&noncestr="+f+"×tamp="+l+"&url="+location.href);return _.config({debug:b,appId:e,timestamp:l,nonceStr:f,signature:h,jsApiList:["showOptionMenu","onMenuShareTimeline","onMenuShareAppMessage"],openTagList:["wx-open-launch-app"]}),_.ready((function(){y&&(x.log("onMenuShareTimelineOptions",y),_.onMenuShareTimeline(y)),window.LAUNCH_APP_SHARE_TIMELINE=function(t){t=Ji(Ji({},C),t),x.log("window LAUNCH_APP_SHARE_TIMELINE",t),_.onMenuShareTimeline(t)},g&&(x.log("onMenuShareAppMessageOptions",g),_.onMenuShareAppMessage(g)),window.LAUNCH_APP_SHARE_APP_MESSAGE=function(t){t=Ji(Ji({},I),t),x.log("window LAUNCH_APP_SHARE_APP_MESSAGE",t),_.onMenuShareAppMessage(t)},window.LAUNCH_APP_READY=!0,O&&O();var t=function(){var t=L(o);x.log("containers",o,t,t.length),t.length>0&&t.each((function(t,e){var r=L(e).attr("data-launch-app-key");if(!r){var o=L(e).parents("[data-launch-app-key]:eq(0)");o.length>0&&(r=o.attr("data-launch-app-key"),x.log("keyEle",o,r))}r||(r=t);var a="mazey-launch-app-tag-".concat(r),u=L(".".concat(a," wx-open-launch-app")),f=L(e).attr("data-launch-app-ext-info");if(!f){var s=L(e).parents("[data-launch-app-ext-info]:eq(0)");s.length>0&&(f=s.attr("data-launch-app-ext-info"),x.log("eleExtInfoEle parents",s,f))}f&&(P=f);var l=L(e).attr("data-launch-app-error-link");if(!l){var h=L(e).parents("[data-launch-app-error-link]:eq(0)");h.length>0&&(l=h.attr("data-launch-app-error-link"),x.log("eleErrorLinkEle parents",h,l))}var d=p;l&&(d=l),0===u.length&&(L(e).addClass(a),x.log("success:",a),function(t){var e=i,r=e+t,o="<wx-open-launch-app id='"+r+"' appid='"+n+"' extinfo='".concat(P)+"' style='z-index:99;position:absolute;width:100%;height:100%;opacity:1;background:transparent;overflow:hidden;left:0;'><script type='text/wxtag-template'>"+N+"<\/script></wx-open-launch-app>";L("."+t+":eq(0)").append(o);var a=document.getElementById(r);a&&(a.addEventListener("ready",(function(t){x.log("ready event",t)})),a.addEventListener("launch",(function(t){x.log("launch event",t),t.detail&&t.detail.extInfo&&x.log("launch extInfo",t.detail.extInfo)})),a.addEventListener("error",(function(t){x.error(t.detail),L("[id^='"+e+"']").hide(),c&&M(),d&&(x.log("realErrorLink",d),location.href=d)})),a.addEventListener("click",(function(t){x.log("click event",t),A&&A()})))}(a))}))};t(),j=t})),_.error((function(t){x.error(t)})),"success:launch_app"})).catch((function(t){x.error(t)}))}(E,d)}function D(t){if(x.log("appUpdated",t),!window.LAUNCH_APP_LOAD&&w(t)&&(U(),window.LAUNCH_APP_LOAD=!0),v&&window.LAUNCH_APP_LOAD&&w(t)&&j(),S()){var e=L(o);e.length>0&&e.each((function(t,e){var n=L(e).children("."+f);if(!n||!n.length){var r=L(e).attr("data-launch-app-error-link");if(!r){var o=L(e).parents("[data-launch-app-error-link]:eq(0)");o.length>0&&(r=o.attr("data-launch-app-error-link"))}if(r&&"string"==typeof r&&r.length){var i=k(r,"position:absolute;left:0;z-index:999;","a");L(e).append(i)}}}))}}function H(){x.log("appBeforeDestroy",H),window.LAUNCH_APP_LOAD=null,window.LAUNCH_APP_HIDE_WEIXIN_BROWSER=null}return window.LAUNCH_APP_UPDATE=D,window.LAUNCH_APP_BEFORE_DESTROY=H,window.LAUNCH_APP_SHOW_WEIXIN_TO_BROWSER=M,{LAUNCH_APP_UPDATE:D,LAUNCH_APP_BEFORE_DESTROY:H,LAUNCH_APP_SHOW_WEIXIN_TO_BROWSER:M,LAUNCH_APP_SHARE_TIMELINE:function(t){x.log("opt",t)},LAUNCH_APP_SHARE_APP_MESSAGE:function(t){x.log("opt",t)},start:D,update:D,destroy:H}};
|
package/lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AA6BA;;;;GAIG;;;;;;;;;;;;;;;;;;;;;2BAsBuB,GAAG,KAAK,OAAO;sCACJ,OAAO;4BACjB,IAAI;yBACP,IAAI;MAEzB,MAAM;AA1BT,wBAmeE"}
|
package/lib/index.esm.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* mazey-wechat-launch-app v2.
|
|
2
|
+
* mazey-wechat-launch-app v2.2.0 https://www.npmjs.com/package/mazey-wechat-launch-app
|
|
3
3
|
* (c) 2018-2023 Mazey Chu
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
|
-
var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function e(t,e){return t(e={exports:{}},e.exports),e.exports}var n,r,o=function(t){return t&&t.Math==Math&&t},i=o("object"==typeof globalThis&&globalThis)||o("object"==typeof window&&window)||o("object"==typeof self&&self)||o("object"==typeof t&&t)||function(){return this}()||Function("return this")(),a=function(t){try{return!!t()}catch(t){return!0}},c=!a((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),u=!a((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),f=Function.prototype.call,s=u?f.bind(f):function(){return f.apply(f,arguments)},l={}.propertyIsEnumerable,p=Object.getOwnPropertyDescriptor,h=p&&!l.call({1:2},1)?function(t){var e=p(this,t);return!!e&&e.enumerable}:l,d={f:h},v=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},y=Function.prototype,g=y.call,m=u&&y.bind.bind(g,g),b=u?m:function(t){return function(){return g.apply(t,arguments)}},w=b({}.toString),S=b("".slice),A=function(t){return S(w(t),8,-1)},O=Object,E=b("".split),P=a((function(){return!O("z").propertyIsEnumerable(0)}))?function(t){return"String"==A(t)?E(t,""):O(t)}:O,T=function(t){return null==t},_=TypeError,L=function(t){if(T(t))throw _("Can't call method on "+t);return t},j=function(t){return P(L(t))},x="object"==typeof document&&document.all,C={all:x,IS_HTMLDDA:void 0===x&&void 0!==x},I=C.all,R=C.IS_HTMLDDA?function(t){return"function"==typeof t||t===I}:function(t){return"function"==typeof t},k=C.all,N=C.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:R(t)||t===k}:function(t){return"object"==typeof t?null!==t:R(t)},M=function(t,e){return arguments.length<2?(n=i[t],R(n)?n:void 0):i[t]&&i[t][e];var n},U=b({}.isPrototypeOf),D="undefined"!=typeof navigator&&String(navigator.userAgent)||"",H=i.process,B=i.Deno,W=H&&H.versions||B&&B.version,z=W&&W.v8;z&&(r=(n=z.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!r&&D&&(!(n=D.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=D.match(/Chrome\/(\d+)/))&&(r=+n[1]);var F=r,G=!!Object.getOwnPropertySymbols&&!a((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&F&&F<41})),V=G&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,X=Object,q=V?function(t){return"symbol"==typeof t}:function(t){var e=M("Symbol");return R(e)&&U(e.prototype,X(t))},Y=String,J=function(t){try{return Y(t)}catch(t){return"Object"}},K=TypeError,Q=function(t){if(R(t))return t;throw K(J(t)+" is not a function")},$=function(t,e){var n=t[e];return T(n)?void 0:Q(n)},Z=TypeError,tt=Object.defineProperty,et=function(t,e){try{tt(i,t,{value:e,configurable:!0,writable:!0})}catch(n){i[t]=e}return e},nt="__core-js_shared__",rt=i[nt]||et(nt,{}),ot=e((function(t){(t.exports=function(t,e){return rt[t]||(rt[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.30.1",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.30.1/LICENSE",source:"https://github.com/zloirock/core-js"})})),it=Object,at=function(t){return it(L(t))},ct=b({}.hasOwnProperty),ut=Object.hasOwn||function(t,e){return ct(at(t),e)},ft=0,st=Math.random(),lt=b(1..toString),pt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+lt(++ft+st,36)},ht=i.Symbol,dt=ot("wks"),vt=V?ht.for||ht:ht&&ht.withoutSetter||pt,yt=function(t){return ut(dt,t)||(dt[t]=G&&ut(ht,t)?ht[t]:vt("Symbol."+t)),dt[t]},gt=TypeError,mt=yt("toPrimitive"),bt=function(t,e){if(!N(t)||q(t))return t;var n,r=$(t,mt);if(r){if(void 0===e&&(e="default"),n=s(r,t,e),!N(n)||q(n))return n;throw gt("Can't convert object to primitive value")}return void 0===e&&(e="number"),function(t,e){var n,r;if("string"===e&&R(n=t.toString)&&!N(r=s(n,t)))return r;if(R(n=t.valueOf)&&!N(r=s(n,t)))return r;if("string"!==e&&R(n=t.toString)&&!N(r=s(n,t)))return r;throw Z("Can't convert object to primitive value")}(t,e)},wt=function(t){var e=bt(t,"string");return q(e)?e:e+""},St=i.document,At=N(St)&&N(St.createElement),Ot=function(t){return At?St.createElement(t):{}},Et=!c&&!a((function(){return 7!=Object.defineProperty(Ot("div"),"a",{get:function(){return 7}}).a})),Pt=Object.getOwnPropertyDescriptor,Tt={f:c?Pt:function(t,e){if(t=j(t),e=wt(e),Et)try{return Pt(t,e)}catch(t){}if(ut(t,e))return v(!s(d.f,t,e),t[e])}},_t=c&&a((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Lt=String,jt=TypeError,xt=function(t){if(N(t))return t;throw jt(Lt(t)+" is not an object")},Ct=TypeError,It=Object.defineProperty,Rt=Object.getOwnPropertyDescriptor,kt="enumerable",Nt="configurable",Mt="writable",Ut={f:c?_t?function(t,e,n){if(xt(t),e=wt(e),xt(n),"function"==typeof t&&"prototype"===e&&"value"in n&&Mt in n&&!n[Mt]){var r=Rt(t,e);r&&r[Mt]&&(t[e]=n.value,n={configurable:Nt in n?n[Nt]:r[Nt],enumerable:kt in n?n[kt]:r[kt],writable:!1})}return It(t,e,n)}:It:function(t,e,n){if(xt(t),e=wt(e),xt(n),Et)try{return It(t,e,n)}catch(t){}if("get"in n||"set"in n)throw Ct("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},Dt=c?function(t,e,n){return Ut.f(t,e,v(1,n))}:function(t,e,n){return t[e]=n,t},Ht=Function.prototype,Bt=c&&Object.getOwnPropertyDescriptor,Wt=ut(Ht,"name"),zt={EXISTS:Wt,PROPER:Wt&&"something"===function(){}.name,CONFIGURABLE:Wt&&(!c||c&&Bt(Ht,"name").configurable)},Ft=b(Function.toString);R(rt.inspectSource)||(rt.inspectSource=function(t){return Ft(t)});var Gt,Vt,Xt,qt=rt.inspectSource,Yt=i.WeakMap,Jt=R(Yt)&&/native code/.test(String(Yt)),Kt=ot("keys"),Qt=function(t){return Kt[t]||(Kt[t]=pt(t))},$t={},Zt="Object already initialized",te=i.TypeError,ee=i.WeakMap;if(Jt||rt.state){var ne=rt.state||(rt.state=new ee);ne.get=ne.get,ne.has=ne.has,ne.set=ne.set,Gt=function(t,e){if(ne.has(t))throw te(Zt);return e.facade=t,ne.set(t,e),e},Vt=function(t){return ne.get(t)||{}},Xt=function(t){return ne.has(t)}}else{var re=Qt("state");$t[re]=!0,Gt=function(t,e){if(ut(t,re))throw te(Zt);return e.facade=t,Dt(t,re,e),e},Vt=function(t){return ut(t,re)?t[re]:{}},Xt=function(t){return ut(t,re)}}var oe={set:Gt,get:Vt,has:Xt,enforce:function(t){return Xt(t)?Vt(t):Gt(t,{})},getterFor:function(t){return function(e){var n;if(!N(e)||(n=Vt(e)).type!==t)throw te("Incompatible receiver, "+t+" required");return n}}},ie=e((function(t){var e=zt.CONFIGURABLE,n=oe.enforce,r=oe.get,o=String,i=Object.defineProperty,u=b("".slice),f=b("".replace),s=b([].join),l=c&&!a((function(){return 8!==i((function(){}),"length",{value:8}).length})),p=String(String).split("String"),h=t.exports=function(t,r,a){"Symbol("===u(o(r),0,7)&&(r="["+f(o(r),/^Symbol\(([^)]*)\)/,"$1")+"]"),a&&a.getter&&(r="get "+r),a&&a.setter&&(r="set "+r),(!ut(t,"name")||e&&t.name!==r)&&(c?i(t,"name",{value:r,configurable:!0}):t.name=r),l&&a&&ut(a,"arity")&&t.length!==a.arity&&i(t,"length",{value:a.arity});try{a&&ut(a,"constructor")&&a.constructor?c&&i(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var h=n(t);return ut(h,"source")||(h.source=s(p,"string"==typeof r?r:"")),t};Function.prototype.toString=h((function(){return R(this)&&r(this).source||qt(this)}),"toString")})),ae=function(t,e,n,r){r||(r={});var o=r.enumerable,i=void 0!==r.name?r.name:e;if(R(n)&&ie(n,i,r),r.global)o?t[e]=n:et(e,n);else{try{r.unsafe?t[e]&&(o=!0):delete t[e]}catch(t){}o?t[e]=n:Ut.f(t,e,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return t},ce=Math.ceil,ue=Math.floor,fe=Math.trunc||function(t){var e=+t;return(e>0?ue:ce)(e)},se=function(t){var e=+t;return e!=e||0===e?0:fe(e)},le=Math.max,pe=Math.min,he=Math.min,de=function(t){return(e=t.length)>0?he(se(e),9007199254740991):0;var e},ve=function(t){return function(e,n,r){var o,i=j(e),a=de(i),c=function(t,e){var n=se(t);return n<0?le(n+e,0):pe(n,e)}(r,a);if(t&&n!=n){for(;a>c;)if((o=i[c++])!=o)return!0}else for(;a>c;c++)if((t||c in i)&&i[c]===n)return t||c||0;return!t&&-1}},ye={includes:ve(!0),indexOf:ve(!1)}.indexOf,ge=b([].push),me=function(t,e){var n,r=j(t),o=0,i=[];for(n in r)!ut($t,n)&&ut(r,n)&&ge(i,n);for(;e.length>o;)ut(r,n=e[o++])&&(~ye(i,n)||ge(i,n));return i},be=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],we=be.concat("length","prototype"),Se={f:Object.getOwnPropertyNames||function(t){return me(t,we)}},Ae={f:Object.getOwnPropertySymbols},Oe=b([].concat),Ee=M("Reflect","ownKeys")||function(t){var e=Se.f(xt(t)),n=Ae.f;return n?Oe(e,n(t)):e},Pe=function(t,e,n){for(var r=Ee(e),o=Ut.f,i=Tt.f,a=0;a<r.length;a++){var c=r[a];ut(t,c)||n&&ut(n,c)||o(t,c,i(e,c))}},Te=/#|\.prototype\./,_e=function(t,e){var n=je[Le(t)];return n==Ce||n!=xe&&(R(e)?a(e):!!e)},Le=_e.normalize=function(t){return String(t).replace(Te,".").toLowerCase()},je=_e.data={},xe=_e.NATIVE="N",Ce=_e.POLYFILL="P",Ie=_e,Re=Tt.f,ke=function(t,e){var n,r,o,a,c,u=t.target,f=t.global,s=t.stat;if(n=f?i:s?i[u]||et(u,{}):(i[u]||{}).prototype)for(r in e){if(a=e[r],o=t.dontCallGetSet?(c=Re(n,r))&&c.value:n[r],!Ie(f?r:u+(s?".":"#")+r,t.forced)&&void 0!==o){if(typeof a==typeof o)continue;Pe(a,o)}(t.sham||o&&o.sham)&&Dt(a,"sham",!0),ae(n,r,a,t)}},Ne=Object.keys||function(t){return me(t,be)},Me=Object.assign,Ue=Object.defineProperty,De=b([].concat),He=!Me||a((function(){if(c&&1!==Me({b:1},Me(Ue({},"a",{enumerable:!0,get:function(){Ue(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach((function(t){e[t]=t})),7!=Me({},t)[n]||Ne(Me({},e)).join("")!=r}))?function(t,e){for(var n=at(t),r=arguments.length,o=1,i=Ae.f,a=d.f;r>o;)for(var u,f=P(arguments[o++]),l=i?De(Ne(f),i(f)):Ne(f),p=l.length,h=0;p>h;)u=l[h++],c&&!s(a,f,u)||(n[u]=f[u]);return n}:Me;ke({target:"Object",stat:!0,arity:2,forced:Object.assign!==He},{assign:He});var Be=Array.isArray||function(t){return"Array"==A(t)},We=TypeError,ze=function(t){if(t>9007199254740991)throw We("Maximum allowed index exceeded");return t},Fe=function(t,e,n){var r=wt(e);r in t?Ut.f(t,r,v(0,n)):t[r]=n},Ge={};Ge[yt("toStringTag")]="z";var Ve="[object z]"===String(Ge),Xe=yt("toStringTag"),qe=Object,Ye="Arguments"==A(function(){return arguments}()),Je=Ve?A:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=qe(t),Xe))?n:Ye?A(e):"Object"==(r=A(e))&&R(e.callee)?"Arguments":r},Ke=function(){},Qe=[],$e=M("Reflect","construct"),Ze=/^\s*(?:class|function)\b/,tn=b(Ze.exec),en=!Ze.exec(Ke),nn=function(t){if(!R(t))return!1;try{return $e(Ke,Qe,t),!0}catch(t){return!1}},rn=function(t){if(!R(t))return!1;switch(Je(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return en||!!tn(Ze,qt(t))}catch(t){return!0}};rn.sham=!0;var on,an=!$e||a((function(){var t;return nn(nn.call)||!nn(Object)||!nn((function(){t=!0}))||t}))?rn:nn,cn=yt("species"),un=Array,fn=function(t,e){return new(function(t){var e;return Be(t)&&(e=t.constructor,(an(e)&&(e===un||Be(e.prototype))||N(e)&&null===(e=e[cn]))&&(e=void 0)),void 0===e?un:e}(t))(0===e?0:e)},sn=yt("species"),ln=yt("isConcatSpreadable"),pn=F>=51||!a((function(){var t=[];return t[ln]=!1,t.concat()[0]!==t})),hn=function(t){if(!N(t))return!1;var e=t[ln];return void 0!==e?!!e:Be(t)},dn=!(pn&&(on="concat",F>=51||!a((function(){var t=[];return(t.constructor={})[sn]=function(){return{foo:1}},1!==t[on](Boolean).foo}))));ke({target:"Array",proto:!0,arity:1,forced:dn},{concat:function(t){var e,n,r,o,i,a=at(this),c=fn(a,0),u=0;for(e=-1,r=arguments.length;e<r;e++)if(hn(i=-1===e?a:arguments[e]))for(o=de(i),ze(u+o),n=0;n<o;n++,u++)n in i&&Fe(c,u,i[n]);else ze(u+1),Fe(c,u++,i);return c.length=u,c}});var vn,yn=c&&!_t?Object.defineProperties:function(t,e){xt(t);for(var n,r=j(e),o=Ne(e),i=o.length,a=0;i>a;)Ut.f(t,n=o[a++],r[n]);return t},gn={f:yn},mn=M("document","documentElement"),bn="prototype",wn="script",Sn=Qt("IE_PROTO"),An=function(){},On=function(t){return"<"+wn+">"+t+"</"+wn+">"},En=function(t){t.write(On("")),t.close();var e=t.parentWindow.Object;return t=null,e},Pn=function(){try{vn=new ActiveXObject("htmlfile")}catch(t){}var t,e,n;Pn="undefined"!=typeof document?document.domain&&vn?En(vn):(e=Ot("iframe"),n="java"+wn+":",e.style.display="none",mn.appendChild(e),e.src=String(n),(t=e.contentWindow.document).open(),t.write(On("document.F=Object")),t.close(),t.F):En(vn);for(var r=be.length;r--;)delete Pn[bn][be[r]];return Pn()};$t[Sn]=!0;var Tn=Object.create||function(t,e){var n;return null!==t?(An[bn]=xt(t),n=new An,An[bn]=null,n[Sn]=t):n=Pn(),void 0===e?n:gn.f(n,e)},_n=Ut.f,Ln=yt("unscopables"),jn=Array.prototype;null==jn[Ln]&&_n(jn,Ln,{configurable:!0,value:Tn(null)});var xn,Cn,In,Rn=function(t){jn[Ln][t]=!0},kn={},Nn=!a((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),Mn=Qt("IE_PROTO"),Un=Object,Dn=Un.prototype,Hn=Nn?Un.getPrototypeOf:function(t){var e=at(t);if(ut(e,Mn))return e[Mn];var n=e.constructor;return R(n)&&e instanceof n?n.prototype:e instanceof Un?Dn:null},Bn=yt("iterator"),Wn=!1;[].keys&&("next"in(In=[].keys())?(Cn=Hn(Hn(In)))!==Object.prototype&&(xn=Cn):Wn=!0);var zn=!N(xn)||a((function(){var t={};return xn[Bn].call(t)!==t}));zn&&(xn={}),R(xn[Bn])||ae(xn,Bn,(function(){return this}));var Fn={IteratorPrototype:xn,BUGGY_SAFARI_ITERATORS:Wn},Gn=Ut.f,Vn=yt("toStringTag"),Xn=function(t,e,n){t&&!n&&(t=t.prototype),t&&!ut(t,Vn)&&Gn(t,Vn,{configurable:!0,value:e})},qn=Fn.IteratorPrototype,Yn=function(){return this},Jn=String,Kn=TypeError,Qn=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{t=function(t,e,n){try{return b(Q(Object.getOwnPropertyDescriptor(t,e)[n]))}catch(t){}}(Object.prototype,"__proto__","set"),t(n,[]),e=n instanceof Array}catch(t){}return function(n,r){return xt(n),function(t){if("object"==typeof t||R(t))return t;throw Kn("Can't set "+Jn(t)+" as a prototype")}(r),e?t(n,r):n.__proto__=r,n}}():void 0),$n=zt.PROPER,Zn=zt.CONFIGURABLE,tr=Fn.IteratorPrototype,er=Fn.BUGGY_SAFARI_ITERATORS,nr=yt("iterator"),rr="keys",or="values",ir="entries",ar=function(){return this},cr=function(t,e,n,r,o,i,a){!function(t,e,n,r){var o=e+" Iterator";t.prototype=Tn(qn,{next:v(+!r,n)}),Xn(t,o,!1),kn[o]=Yn}(n,e,r);var c,u,f,l=function(t){if(t===o&&g)return g;if(!er&&t in d)return d[t];switch(t){case rr:case or:case ir:return function(){return new n(this,t)}}return function(){return new n(this)}},p=e+" Iterator",h=!1,d=t.prototype,y=d[nr]||d["@@iterator"]||o&&d[o],g=!er&&y||l(o),m="Array"==e&&d.entries||y;if(m&&(c=Hn(m.call(new t)))!==Object.prototype&&c.next&&(Hn(c)!==tr&&(Qn?Qn(c,tr):R(c[nr])||ae(c,nr,ar)),Xn(c,p,!0)),$n&&o==or&&y&&y.name!==or&&(Zn?Dt(d,"name",or):(h=!0,g=function(){return s(y,this)})),o)if(u={values:l(or),keys:i?g:l(rr),entries:l(ir)},a)for(f in u)(er||h||!(f in d))&&ae(d,f,u[f]);else ke({target:e,proto:!0,forced:er||h},u);return d[nr]!==g&&ae(d,nr,g,{name:o}),kn[e]=g,u},ur=function(t,e){return{value:t,done:e}},fr=Ut.f,sr="Array Iterator",lr=oe.set,pr=oe.getterFor(sr),hr=cr(Array,"Array",(function(t,e){lr(this,{type:sr,target:j(t),index:0,kind:e})}),(function(){var t=pr(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,ur(void 0,!0)):ur("keys"==n?r:"values"==n?e[r]:[r,e[r]],!1)}),"values"),dr=kn.Arguments=kn.Array;if(Rn("keys"),Rn("values"),Rn("entries"),c&&"values"!==dr.name)try{fr(dr,"name",{value:"values"})}catch(t){}var vr=Ve?{}.toString:function(){return"[object "+Je(this)+"]"};Ve||ae(Object.prototype,"toString",vr,{unsafe:!0});var yr,gr,mr,br,wr="undefined"!=typeof process&&"process"==A(process),Sr=yt("species"),Ar=TypeError,Or=TypeError,Er=yt("species"),Pr=function(t,e){var n,r=xt(t).constructor;return void 0===r||T(n=xt(r)[Er])?e:function(t){if(an(t))return t;throw Or(J(t)+" is not a constructor")}(n)},Tr=Function.prototype,_r=Tr.apply,Lr=Tr.call,jr="object"==typeof Reflect&&Reflect.apply||(u?Lr.bind(_r):function(){return Lr.apply(_r,arguments)}),xr=function(t){if("Function"===A(t))return b(t)},Cr=xr(xr.bind),Ir=function(t,e){return Q(t),void 0===e?t:u?Cr(t,e):function(){return t.apply(e,arguments)}},Rr=b([].slice),kr=TypeError,Nr=/(?:ipad|iphone|ipod).*applewebkit/i.test(D),Mr=i.setImmediate,Ur=i.clearImmediate,Dr=i.process,Hr=i.Dispatch,Br=i.Function,Wr=i.MessageChannel,zr=i.String,Fr=0,Gr={},Vr="onreadystatechange";a((function(){yr=i.location}));var Xr=function(t){if(ut(Gr,t)){var e=Gr[t];delete Gr[t],e()}},qr=function(t){return function(){Xr(t)}},Yr=function(t){Xr(t.data)},Jr=function(t){i.postMessage(zr(t),yr.protocol+"//"+yr.host)};Mr&&Ur||(Mr=function(t){!function(t,e){if(t<e)throw kr("Not enough arguments")}(arguments.length,1);var e=R(t)?t:Br(t),n=Rr(arguments,1);return Gr[++Fr]=function(){jr(e,void 0,n)},gr(Fr),Fr},Ur=function(t){delete Gr[t]},wr?gr=function(t){Dr.nextTick(qr(t))}:Hr&&Hr.now?gr=function(t){Hr.now(qr(t))}:Wr&&!Nr?(br=(mr=new Wr).port2,mr.port1.onmessage=Yr,gr=Ir(br.postMessage,br)):i.addEventListener&&R(i.postMessage)&&!i.importScripts&&yr&&"file:"!==yr.protocol&&!a(Jr)?(gr=Jr,i.addEventListener("message",Yr,!1)):gr=Vr in Ot("script")?function(t){mn.appendChild(Ot("script"))[Vr]=function(){mn.removeChild(this),Xr(t)}}:function(t){setTimeout(qr(t),0)});var Kr={set:Mr,clear:Ur},Qr=function(){this.head=null,this.tail=null};Qr.prototype={add:function(t){var e={item:t,next:null},n=this.tail;n?n.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return null===(this.head=t.next)&&(this.tail=null),t.item}};var $r,Zr,to,eo,no,ro=Qr,oo=/ipad|iphone|ipod/i.test(D)&&"undefined"!=typeof Pebble,io=/web0s(?!.*chrome)/i.test(D),ao=Tt.f,co=Kr.set,uo=i.MutationObserver||i.WebKitMutationObserver,fo=i.document,so=i.process,lo=i.Promise,po=ao(i,"queueMicrotask"),ho=po&&po.value;if(!ho){var vo=new ro,yo=function(){var t,e;for(wr&&(t=so.domain)&&t.exit();e=vo.get();)try{e()}catch(t){throw vo.head&&$r(),t}t&&t.enter()};Nr||wr||io||!uo||!fo?!oo&&lo&&lo.resolve?((eo=lo.resolve(void 0)).constructor=lo,no=Ir(eo.then,eo),$r=function(){no(yo)}):wr?$r=function(){so.nextTick(yo)}:(co=Ir(co,i),$r=function(){co(yo)}):(Zr=!0,to=fo.createTextNode(""),new uo(yo).observe(to,{characterData:!0}),$r=function(){to.data=Zr=!Zr}),ho=function(t){vo.head||$r(),vo.add(t)}}var go=ho,mo=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},bo=i.Promise,wo="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,So=!wo&&!wr&&"object"==typeof window&&"object"==typeof document;bo&&bo.prototype;var Ao,Oo,Eo,Po,To,_o,Lo,jo=yt("species"),xo=!1,Co=R(i.PromiseRejectionEvent),Io=Ie("Promise",(function(){var t=qt(bo),e=t!==String(bo);if(!e&&66===F)return!0;if(!F||F<51||!/native code/.test(t)){var n=new bo((function(t){t(1)})),r=function(t){t((function(){}),(function(){}))};if((n.constructor={})[jo]=r,!(xo=n.then((function(){}))instanceof r))return!0}return!e&&(So||wo)&&!Co})),Ro={CONSTRUCTOR:Io,REJECTION_EVENT:Co,SUBCLASSING:xo},ko=TypeError,No=function(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw ko("Bad Promise constructor");e=t,n=r})),this.resolve=Q(e),this.reject=Q(n)},Mo={f:function(t){return new No(t)}},Uo=Kr.set,Do="Promise",Ho=Ro.CONSTRUCTOR,Bo=Ro.REJECTION_EVENT,Wo=Ro.SUBCLASSING,zo=oe.getterFor(Do),Fo=oe.set,Go=bo&&bo.prototype,Vo=bo,Xo=Go,qo=i.TypeError,Yo=i.document,Jo=i.process,Ko=Mo.f,Qo=Ko,$o=!!(Yo&&Yo.createEvent&&i.dispatchEvent),Zo="unhandledrejection",ti=function(t){var e;return!(!N(t)||!R(e=t.then))&&e},ei=function(t,e){var n,r,o,i=e.value,a=1==e.state,c=a?t.ok:t.fail,u=t.resolve,f=t.reject,l=t.domain;try{c?(a||(2===e.rejection&&ai(e),e.rejection=1),!0===c?n=i:(l&&l.enter(),n=c(i),l&&(l.exit(),o=!0)),n===t.promise?f(qo("Promise-chain cycle")):(r=ti(n))?s(r,n,u,f):u(n)):f(i)}catch(t){l&&!o&&l.exit(),f(t)}},ni=function(t,e){t.notified||(t.notified=!0,go((function(){for(var n,r=t.reactions;n=r.get();)ei(n,t);t.notified=!1,e&&!t.rejection&&oi(t)})))},ri=function(t,e,n){var r,o;$o?((r=Yo.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),i.dispatchEvent(r)):r={promise:e,reason:n},!Bo&&(o=i["on"+t])?o(r):t===Zo&&function(t,e){try{1==arguments.length?console.error(t):console.error(t,e)}catch(t){}}("Unhandled promise rejection",n)},oi=function(t){s(Uo,i,(function(){var e,n=t.facade,r=t.value;if(ii(t)&&(e=mo((function(){wr?Jo.emit("unhandledRejection",r,n):ri(Zo,n,r)})),t.rejection=wr||ii(t)?2:1,e.error))throw e.value}))},ii=function(t){return 1!==t.rejection&&!t.parent},ai=function(t){s(Uo,i,(function(){var e=t.facade;wr?Jo.emit("rejectionHandled",e):ri("rejectionhandled",e,t.value)}))},ci=function(t,e,n){return function(r){t(e,r,n)}},ui=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,ni(t,!0))},fi=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw qo("Promise can't be resolved itself");var r=ti(e);r?go((function(){var n={done:!1};try{s(r,e,ci(fi,n,t),ci(ui,n,t))}catch(e){ui(n,e,t)}})):(t.value=e,t.state=1,ni(t,!1))}catch(e){ui({done:!1},e,t)}}};if(Ho&&(Xo=(Vo=function(t){!function(t,e){if(U(e,t))return t;throw Ar("Incorrect invocation")}(this,Xo),Q(t),s(Ao,this);var e=zo(this);try{t(ci(fi,e),ci(ui,e))}catch(t){ui(e,t)}}).prototype,(Ao=function(t){Fo(this,{type:Do,done:!1,notified:!1,parent:!1,reactions:new ro,rejection:!1,state:0,value:void 0})}).prototype=ae(Xo,"then",(function(t,e){var n=zo(this),r=Ko(Pr(this,Vo));return n.parent=!0,r.ok=!R(t)||t,r.fail=R(e)&&e,r.domain=wr?Jo.domain:void 0,0==n.state?n.reactions.add(r):go((function(){ei(r,n)})),r.promise})),Oo=function(){var t=new Ao,e=zo(t);this.promise=t,this.resolve=ci(fi,e),this.reject=ci(ui,e)},Mo.f=Ko=function(t){return t===Vo||undefined===t?new Oo(t):Qo(t)},R(bo)&&Go!==Object.prototype)){Eo=Go.then,Wo||ae(Go,"then",(function(t,e){var n=this;return new Vo((function(t,e){s(Eo,n,t,e)})).then(t,e)}),{unsafe:!0});try{delete Go.constructor}catch(t){}Qn&&Qn(Go,Xo)}ke({global:!0,constructor:!0,wrap:!0,forced:Ho},{Promise:Vo}),Xn(Vo,Do,!1),Lo=M(Do),c&&Lo&&!Lo[Sr]&&(Po=Lo,To=Sr,(_o={configurable:!0,get:function(){return this}}).get&&ie(_o.get,To,{getter:!0}),_o.set&&ie(_o.set,To,{setter:!0}),Ut.f(Po,To,_o));var si=yt("iterator"),li=Array.prototype,pi=yt("iterator"),hi=function(t){if(!T(t))return $(t,pi)||$(t,"@@iterator")||kn[Je(t)]},di=TypeError,vi=function(t,e,n){var r,o;xt(t);try{if(!(r=$(t,"return"))){if("throw"===e)throw n;return n}r=s(r,t)}catch(t){o=!0,r=t}if("throw"===e)throw n;if(o)throw r;return xt(r),n},yi=TypeError,gi=function(t,e){this.stopped=t,this.result=e},mi=gi.prototype,bi=function(t,e,n){var r,o,i,a,c,u,f,l,p=n&&n.that,h=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_RECORD),v=!(!n||!n.IS_ITERATOR),y=!(!n||!n.INTERRUPTED),g=Ir(e,p),m=function(t){return r&&vi(r,"normal",t),new gi(!0,t)},b=function(t){return h?(xt(t),y?g(t[0],t[1],m):g(t[0],t[1])):y?g(t,m):g(t)};if(d)r=t.iterator;else if(v)r=t;else{if(!(o=hi(t)))throw yi(J(t)+" is not iterable");if(void 0!==(l=o)&&(kn.Array===l||li[si]===l)){for(i=0,a=de(t);a>i;i++)if((c=b(t[i]))&&U(mi,c))return c;return new gi(!1)}r=function(t,e){var n=arguments.length<2?hi(t):e;if(Q(n))return xt(s(n,t));throw di(J(t)+" is not iterable")}(t,o)}for(u=d?t.next:r.next;!(f=s(u,r)).done;){try{c=b(f.value)}catch(t){vi(r,"throw",t)}if("object"==typeof c&&c&&U(mi,c))return c}return new gi(!1)},wi=yt("iterator"),Si=!1;try{var Ai=0,Oi={next:function(){return{done:!!Ai++}},return:function(){Si=!0}};Oi[wi]=function(){return this},Array.from(Oi,(function(){throw 2}))}catch(t){}var Ei=Ro.CONSTRUCTOR||!function(t,e){if(!e&&!Si)return!1;var n=!1;try{var r={};r[wi]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(t){}return n}((function(t){bo.all(t).then(void 0,(function(){}))}));ke({target:"Promise",stat:!0,forced:Ei},{all:function(t){var e=this,n=Mo.f(e),r=n.resolve,o=n.reject,i=mo((function(){var n=Q(e.resolve),i=[],a=0,c=1;bi(t,(function(t){var u=a++,f=!1;c++,s(n,e,t).then((function(t){f||(f=!0,i[u]=t,--c||r(i))}),o)})),--c||r(i)}));return i.error&&o(i.value),n.promise}});var Pi=Ro.CONSTRUCTOR,Ti=bo&&bo.prototype;if(ke({target:"Promise",proto:!0,forced:Pi,real:!0},{catch:function(t){return this.then(void 0,t)}}),R(bo)){var _i=M("Promise").prototype.catch;Ti.catch!==_i&&ae(Ti,"catch",_i,{unsafe:!0})}ke({target:"Promise",stat:!0,forced:Ei},{race:function(t){var e=this,n=Mo.f(e),r=n.reject,o=mo((function(){var o=Q(e.resolve);bi(t,(function(t){s(o,e,t).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}}),ke({target:"Promise",stat:!0,forced:Ro.CONSTRUCTOR},{reject:function(t){var e=Mo.f(this);return s(e.reject,void 0,t),e.promise}});var Li=Ro.CONSTRUCTOR;M("Promise"),ke({target:"Promise",stat:!0,forced:Li},{resolve:function(t){return function(t,e){if(xt(t),N(e)&&e.constructor===t)return e;var n=Mo.f(t);return(0,n.resolve)(e),n.promise}(this,t)}});var ji=String,xi=function(t){if("Symbol"===Je(t))throw TypeError("Cannot convert a Symbol value to a string");return ji(t)},Ci=b("".charAt),Ii=b("".charCodeAt),Ri=b("".slice),ki=function(t){return function(e,n){var r,o,i=xi(L(e)),a=se(n),c=i.length;return a<0||a>=c?t?"":void 0:(r=Ii(i,a))<55296||r>56319||a+1===c||(o=Ii(i,a+1))<56320||o>57343?t?Ci(i,a):r:t?Ri(i,a,a+2):o-56320+(r-55296<<10)+65536}},Ni={codeAt:ki(!1),charAt:ki(!0)}.charAt,Mi="String Iterator",Ui=oe.set,Di=oe.getterFor(Mi);cr(String,"String",(function(t){Ui(this,{type:Mi,string:xi(t),index:0})}),(function(){var t,e=Di(this),n=e.string,r=e.index;return r>=n.length?ur(void 0,!0):(t=Ni(n,r),e.index+=t.length,ur(t,!1))}));var Hi={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},Bi=Ot("span").classList,Wi=Bi&&Bi.constructor&&Bi.constructor.prototype,zi=Wi===Object.prototype?void 0:Wi,Fi=yt("iterator"),Gi=yt("toStringTag"),Vi=hr.values,Xi=function(t,e){if(t){if(t[Fi]!==Vi)try{Dt(t,Fi,Vi)}catch(e){t[Fi]=Vi}if(t[Gi]||Dt(t,Gi,e),Hi[e])for(var n in hr)if(t[n]!==hr[n])try{Dt(t,n,hr[n])}catch(e){t[n]=hr[n]}}};for(var qi in Hi)Xi(i[qi]&&i[qi].prototype,qi);Xi(zi,"DOMTokenList");var Yi=function(){return Yi=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Yi.apply(this,arguments)},Ji={weixinJsSdkTicket:"",launchContainerQuery:".mazey-launch-app-selector",launchShowWeixinToBrowserImgUrl:"",canShowWeixinToBrowser:!1,extInfo:"",serviceAccountAppId:"",wexinServiceAccountAppId:"",openPlatformMobileAppId:"",genTagPrefixStr:"mazey-launch-app-btn-prefix-",launchShowWeixinToBrowserClassName:"mazey-launch-app-wx-to-browser",launchBtnClassName:"mazey-launch-app-inner-btn",launchBtnStyle:"",launchBtnText:"Launch App <br /><br /><br />",launchErrorLink:"",canContinuousUpdating:!1,onMenuShareTimelineOptions:void 0,onMenuShareAppMessageOptions:void 0,isConClosed:!0,isWxDebug:!1,canLaunchApp:function(){return!0},canFireErrorLinkDirectly:function(){return!1},launchBtnClick:function(){},launchReady:function(){}},Ki=function(t){void 0===t&&(t=Ji);var e=Object.assign(Ji,t),n=e.weixinJsSdkTicket,r=e.launchContainerQuery,o=e.genTagPrefixStr,i=e.launchShowWeixinToBrowserImgUrl,a=e.canShowWeixinToBrowser,c=e.launchShowWeixinToBrowserClassName,u=e.launchBtnClassName,f=e.launchBtnStyle,s=e.launchBtnText,l=e.launchErrorLink,p=e.wexinServiceAccountAppId,h=e.openPlatformMobileAppId,d=e.canContinuousUpdating,v=e.onMenuShareTimelineOptions,y=e.onMenuShareAppMessageOptions,g=e.isConClosed,m=e.isWxDebug,b=e.canLaunchApp,w=e.canFireErrorLinkDirectly,S=e.launchBtnClick,A=e.launchReady,O=e.serviceAccountAppId,E=e.extInfo,P=window.mazey,T=window.sha1,_=window.wx,L=window.$||window.jQuery;P&&T&&_&&L||console.error("Launch App: wx or sha1 or $ or mazey is not found");var j=function(){},x=P.genCustomConsole("LaunchCon:",{isClosed:g});x.log("Launch App");var C={title:"",link:"",imgUrl:"",success:function(){},cancel:function(){}},I={title:"",desc:"",link:"",imgUrl:"",type:"",dataUrl:"",success:function(){},cancel:function(){}},R={title:document.title,link:location.href};C=Yi(Yi({},C),R),I=Yi(Yi({},I),R);var k=function(t,e,n){return void 0===t&&(t=""),void 0===e&&(e=""),void 0===n&&(n="button"),"<style>.".concat(u,"{")+"opacity: 0;width: 100%;height: 100%;backgroud: transparent;color: #300f54;border: none;box-sizing: border-box;text-align: center;vertical-align: middle;"+f+e+"}</style>"+"<".concat(n,' class="').concat(u,'"')+(t&&"button"===n?' onclick="'.concat(t,'"'):"")+(t&&"a"===n?' target="_self" href="'.concat(t,'"'):"")+">"+s+"</".concat(n,">")},N=k();function M(){P.addStyle('.mazey-launch-app-mask{position:fixed;top:0;right:0;bottom:0;left:0;background-color:rgba(0, 0, 0, .5);text-align:right;font-size:0;white-space:nowrap;overflow:auto;z-index:999;}.mazey-launch-app-img{display:inline-block;vertical-align:middle;text-align:left;font-size:14px;white-space:normal;width:50vw;margin:0.5rem 0.5rem 0 0;}.mazey-launch-app-img:after{content:"";display:inline-block;height:100%;vertical-align:middle;}',{id:"mazey-launch-app-mask-style"}),window.LAUNCH_APP_HIDE_WEIXIN_BROWSER||(window.LAUNCH_APP_HIDE_WEIXIN_BROWSER=function(){L(".mazey-launch-app-mask").hide()}),0===L(".mazey-launch-app-mask").length?L("body").append("<div class='mazey-launch-app-mask' onclick='window.LAUNCH_APP_HIDE_WEIXIN_BROWSER()'><img "+"class='mazey-launch-app-img ".concat(c,"' ")+"src='".concat(i,"' ")+"alt='Launch App' /></div>"):L(".mazey-launch-app-mask").show()}function U(){x.log("renderWeixinLaunchTemplate"),!O&&p&&(console.warn("wexinServiceAccountAppId will be deprecated, use serviceAccountAppId instead."),O=p),function(t,e){void 0===t&&(t=""),void 0===e&&(e=""),x.log("renderWXOpenLaunchApp"),Promise.all([Promise.resolve(n||window.LAUNCH_APP_WEIXIN_JS_SDK_TICKET),Promise.resolve(T)]).then((function(n){x.log("allRes",n);var i=n[0],c=n[1],u=P.generateRndNum(7),f=i,s=(new Date).getTime(),p=c("jsapi_ticket="+f+"&noncestr="+u+"×tamp="+s+"&url="+location.href);return _.config({debug:m,appId:t,timestamp:s,nonceStr:u,signature:p,jsApiList:["showOptionMenu","onMenuShareTimeline","onMenuShareAppMessage"],openTagList:["wx-open-launch-app"]}),_.ready((function(){v&&(x.log("onMenuShareTimelineOptions",v),_.onMenuShareTimeline(v)),window.LAUNCH_APP_SHARE_TIMELINE=function(t){t=Yi(Yi({},C),t),x.log("window LAUNCH_APP_SHARE_TIMELINE",t),_.onMenuShareTimeline(t)},y&&(x.log("onMenuShareAppMessageOptions",y),_.onMenuShareAppMessage(y)),window.LAUNCH_APP_SHARE_APP_MESSAGE=function(t){t=Yi(Yi({},I),t),x.log("window LAUNCH_APP_SHARE_APP_MESSAGE",t),_.onMenuShareAppMessage(t)},window.LAUNCH_APP_READY=!0,A&&A();var t=function(){var t=L(r);x.log("containers",r,t,t.length),t.length>0&&t.each((function(t,n){var r=L(n).attr("data-launch-app-key");if(!r){var i=L(n).parents("[data-launch-app-key]:eq(0)");i.length>0&&(r=i.attr("data-launch-app-key"),x.log("keyEle",i,r))}r||(r=t);var c="mazey-launch-app-tag-".concat(r),u=L(".".concat(c," wx-open-launch-app")),f=L(n).attr("data-launch-app-ext-info");if(!f){var s=L(n).parents("[data-launch-app-ext-info]:eq(0)");s.length>0&&(f=s.attr("data-launch-app-ext-info"),x.log("eleExtInfoEle parents",s,f))}f&&(E=f);var p=L(n).attr("data-launch-app-error-link");if(!p){var h=L(n).parents("[data-launch-app-error-link]:eq(0)");h.length>0&&(p=h.attr("data-launch-app-error-link"),x.log("eleErrorLinkEle parents",h,p))}var d=l;p&&(d=p),0===u.length&&(L(n).addClass(c),x.log("success:",c),function(t){var n=o,r=n+t,i="<wx-open-launch-app id='"+r+"' appid='"+e+"' extinfo='".concat(E)+"' style='z-index:99;position:absolute;width:100%;height:100%;opacity:1;background:transparent;overflow:hidden;left:0;'><script type='text/wxtag-template'>"+N+"<\/script></wx-open-launch-app>";L("."+t+":eq(0)").append(i);var c=document.getElementById(r);c&&(c.addEventListener("ready",(function(t){x.log("ready event",t)})),c.addEventListener("launch",(function(t){x.log("launch event",t),t.detail&&t.detail.extInfo&&x.log("launch extInfo",t.detail.extInfo)})),c.addEventListener("error",(function(t){x.error(t.detail),L("[id^='"+n+"']").hide(),a&&M(),d&&(x.log("realErrorLink",d),location.href=d)})),c.addEventListener("click",(function(t){x.log("click event",t),S&&S()})))}(c))}))};t(),j=t})),_.error((function(t){x.error(t)})),"success:launch_app"})).catch((function(t){x.error(t)}))}(O,h)}function D(t){if(x.log("appUpdated",t),!window.LAUNCH_APP_LOAD&&b(t)&&(U(),window.LAUNCH_APP_LOAD=!0),d&&window.LAUNCH_APP_LOAD&&b(t)&&j(),w()){var e=L(r);e.length>0&&e.each((function(t,e){var n=L(e).children("."+u);if(!n||!n.length){var r=L(e).attr("data-launch-app-error-link");if(!r){var o=L(e).parents("[data-launch-app-error-link]:eq(0)");o.length>0&&(r=o.attr("data-launch-app-error-link"))}if(r&&"string"==typeof r&&r.length){var i=k(r,"position:absolute;left:0;z-index:999;","a");L(e).append(i)}}}))}}function H(){x.log("appBeforeDestroy",H),window.LAUNCH_APP_LOAD=null,window.LAUNCH_APP_HIDE_WEIXIN_BROWSER=null}return window.LAUNCH_APP_UPDATE=D,window.LAUNCH_APP_BEFORE_DESTROY=H,window.LAUNCH_APP_SHOW_WEIXIN_TO_BROWSER=M,{LAUNCH_APP_UPDATE:D,LAUNCH_APP_BEFORE_DESTROY:H,LAUNCH_APP_SHOW_WEIXIN_TO_BROWSER:M,LAUNCH_APP_SHARE_TIMELINE:function(t){x.log("opt",t)},LAUNCH_APP_SHARE_APP_MESSAGE:function(t){x.log("opt",t)},start:D,update:D,destroy:H}};export{Ki as default};
|
|
6
|
+
import{genCustomConsole as t,addStyle as e,generateRndNum as n}from"mazey";var r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function o(t,e){return t(e={exports:{}},e.exports),e.exports}var i,a,c=function(t){return t&&t.Math==Math&&t},u=c("object"==typeof globalThis&&globalThis)||c("object"==typeof window&&window)||c("object"==typeof self&&self)||c("object"==typeof r&&r)||function(){return this}()||Function("return this")(),f=function(t){try{return!!t()}catch(t){return!0}},s=!f((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),l=!f((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),p=Function.prototype.call,h=l?p.bind(p):function(){return p.apply(p,arguments)},d={}.propertyIsEnumerable,v=Object.getOwnPropertyDescriptor,y=v&&!d.call({1:2},1)?function(t){var e=v(this,t);return!!e&&e.enumerable}:d,g={f:y},m=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},b=Function.prototype,w=b.call,S=l&&b.bind.bind(w,w),A=l?S:function(t){return function(){return w.apply(t,arguments)}},O=A({}.toString),E=A("".slice),P=function(t){return E(O(t),8,-1)},T=Object,_=A("".split),L=f((function(){return!T("z").propertyIsEnumerable(0)}))?function(t){return"String"==P(t)?_(t,""):T(t)}:T,j=function(t){return null==t},x=TypeError,C=function(t){if(j(t))throw x("Can't call method on "+t);return t},I=function(t){return L(C(t))},R="object"==typeof document&&document.all,k={all:R,IS_HTMLDDA:void 0===R&&void 0!==R},N=k.all,M=k.IS_HTMLDDA?function(t){return"function"==typeof t||t===N}:function(t){return"function"==typeof t},U=k.all,D=k.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:M(t)||t===U}:function(t){return"object"==typeof t?null!==t:M(t)},H=function(t,e){return arguments.length<2?(n=u[t],M(n)?n:void 0):u[t]&&u[t][e];var n},B=A({}.isPrototypeOf),W="undefined"!=typeof navigator&&String(navigator.userAgent)||"",F=u.process,z=u.Deno,G=F&&F.versions||z&&z.version,V=G&&G.v8;V&&(a=(i=V.split("."))[0]>0&&i[0]<4?1:+(i[0]+i[1])),!a&&W&&(!(i=W.match(/Edge\/(\d+)/))||i[1]>=74)&&(i=W.match(/Chrome\/(\d+)/))&&(a=+i[1]);var X=a,q=!!Object.getOwnPropertySymbols&&!f((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&X&&X<41})),Y=q&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,J=Object,K=Y?function(t){return"symbol"==typeof t}:function(t){var e=H("Symbol");return M(e)&&B(e.prototype,J(t))},Q=String,$=function(t){try{return Q(t)}catch(t){return"Object"}},Z=TypeError,tt=function(t){if(M(t))return t;throw Z($(t)+" is not a function")},et=function(t,e){var n=t[e];return j(n)?void 0:tt(n)},nt=TypeError,rt=Object.defineProperty,ot=function(t,e){try{rt(u,t,{value:e,configurable:!0,writable:!0})}catch(n){u[t]=e}return e},it="__core-js_shared__",at=u[it]||ot(it,{}),ct=o((function(t){(t.exports=function(t,e){return at[t]||(at[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.30.1",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.30.1/LICENSE",source:"https://github.com/zloirock/core-js"})})),ut=Object,ft=function(t){return ut(C(t))},st=A({}.hasOwnProperty),lt=Object.hasOwn||function(t,e){return st(ft(t),e)},pt=0,ht=Math.random(),dt=A(1..toString),vt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+dt(++pt+ht,36)},yt=u.Symbol,gt=ct("wks"),mt=Y?yt.for||yt:yt&&yt.withoutSetter||vt,bt=function(t){return lt(gt,t)||(gt[t]=q&<(yt,t)?yt[t]:mt("Symbol."+t)),gt[t]},wt=TypeError,St=bt("toPrimitive"),At=function(t,e){if(!D(t)||K(t))return t;var n,r=et(t,St);if(r){if(void 0===e&&(e="default"),n=h(r,t,e),!D(n)||K(n))return n;throw wt("Can't convert object to primitive value")}return void 0===e&&(e="number"),function(t,e){var n,r;if("string"===e&&M(n=t.toString)&&!D(r=h(n,t)))return r;if(M(n=t.valueOf)&&!D(r=h(n,t)))return r;if("string"!==e&&M(n=t.toString)&&!D(r=h(n,t)))return r;throw nt("Can't convert object to primitive value")}(t,e)},Ot=function(t){var e=At(t,"string");return K(e)?e:e+""},Et=u.document,Pt=D(Et)&&D(Et.createElement),Tt=function(t){return Pt?Et.createElement(t):{}},_t=!s&&!f((function(){return 7!=Object.defineProperty(Tt("div"),"a",{get:function(){return 7}}).a})),Lt=Object.getOwnPropertyDescriptor,jt={f:s?Lt:function(t,e){if(t=I(t),e=Ot(e),_t)try{return Lt(t,e)}catch(t){}if(lt(t,e))return m(!h(g.f,t,e),t[e])}},xt=s&&f((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Ct=String,It=TypeError,Rt=function(t){if(D(t))return t;throw It(Ct(t)+" is not an object")},kt=TypeError,Nt=Object.defineProperty,Mt=Object.getOwnPropertyDescriptor,Ut="enumerable",Dt="configurable",Ht="writable",Bt={f:s?xt?function(t,e,n){if(Rt(t),e=Ot(e),Rt(n),"function"==typeof t&&"prototype"===e&&"value"in n&&Ht in n&&!n[Ht]){var r=Mt(t,e);r&&r[Ht]&&(t[e]=n.value,n={configurable:Dt in n?n[Dt]:r[Dt],enumerable:Ut in n?n[Ut]:r[Ut],writable:!1})}return Nt(t,e,n)}:Nt:function(t,e,n){if(Rt(t),e=Ot(e),Rt(n),_t)try{return Nt(t,e,n)}catch(t){}if("get"in n||"set"in n)throw kt("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},Wt=s?function(t,e,n){return Bt.f(t,e,m(1,n))}:function(t,e,n){return t[e]=n,t},Ft=Function.prototype,zt=s&&Object.getOwnPropertyDescriptor,Gt=lt(Ft,"name"),Vt={EXISTS:Gt,PROPER:Gt&&"something"===function(){}.name,CONFIGURABLE:Gt&&(!s||s&&zt(Ft,"name").configurable)},Xt=A(Function.toString);M(at.inspectSource)||(at.inspectSource=function(t){return Xt(t)});var qt,Yt,Jt,Kt=at.inspectSource,Qt=u.WeakMap,$t=M(Qt)&&/native code/.test(String(Qt)),Zt=ct("keys"),te=function(t){return Zt[t]||(Zt[t]=vt(t))},ee={},ne="Object already initialized",re=u.TypeError,oe=u.WeakMap;if($t||at.state){var ie=at.state||(at.state=new oe);ie.get=ie.get,ie.has=ie.has,ie.set=ie.set,qt=function(t,e){if(ie.has(t))throw re(ne);return e.facade=t,ie.set(t,e),e},Yt=function(t){return ie.get(t)||{}},Jt=function(t){return ie.has(t)}}else{var ae=te("state");ee[ae]=!0,qt=function(t,e){if(lt(t,ae))throw re(ne);return e.facade=t,Wt(t,ae,e),e},Yt=function(t){return lt(t,ae)?t[ae]:{}},Jt=function(t){return lt(t,ae)}}var ce={set:qt,get:Yt,has:Jt,enforce:function(t){return Jt(t)?Yt(t):qt(t,{})},getterFor:function(t){return function(e){var n;if(!D(e)||(n=Yt(e)).type!==t)throw re("Incompatible receiver, "+t+" required");return n}}},ue=o((function(t){var e=Vt.CONFIGURABLE,n=ce.enforce,r=ce.get,o=String,i=Object.defineProperty,a=A("".slice),c=A("".replace),u=A([].join),l=s&&!f((function(){return 8!==i((function(){}),"length",{value:8}).length})),p=String(String).split("String"),h=t.exports=function(t,r,f){"Symbol("===a(o(r),0,7)&&(r="["+c(o(r),/^Symbol\(([^)]*)\)/,"$1")+"]"),f&&f.getter&&(r="get "+r),f&&f.setter&&(r="set "+r),(!lt(t,"name")||e&&t.name!==r)&&(s?i(t,"name",{value:r,configurable:!0}):t.name=r),l&&f&<(f,"arity")&&t.length!==f.arity&&i(t,"length",{value:f.arity});try{f&<(f,"constructor")&&f.constructor?s&&i(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var h=n(t);return lt(h,"source")||(h.source=u(p,"string"==typeof r?r:"")),t};Function.prototype.toString=h((function(){return M(this)&&r(this).source||Kt(this)}),"toString")})),fe=function(t,e,n,r){r||(r={});var o=r.enumerable,i=void 0!==r.name?r.name:e;if(M(n)&&ue(n,i,r),r.global)o?t[e]=n:ot(e,n);else{try{r.unsafe?t[e]&&(o=!0):delete t[e]}catch(t){}o?t[e]=n:Bt.f(t,e,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return t},se=Math.ceil,le=Math.floor,pe=Math.trunc||function(t){var e=+t;return(e>0?le:se)(e)},he=function(t){var e=+t;return e!=e||0===e?0:pe(e)},de=Math.max,ve=Math.min,ye=Math.min,ge=function(t){return(e=t.length)>0?ye(he(e),9007199254740991):0;var e},me=function(t){return function(e,n,r){var o,i=I(e),a=ge(i),c=function(t,e){var n=he(t);return n<0?de(n+e,0):ve(n,e)}(r,a);if(t&&n!=n){for(;a>c;)if((o=i[c++])!=o)return!0}else for(;a>c;c++)if((t||c in i)&&i[c]===n)return t||c||0;return!t&&-1}},be={includes:me(!0),indexOf:me(!1)}.indexOf,we=A([].push),Se=function(t,e){var n,r=I(t),o=0,i=[];for(n in r)!lt(ee,n)&<(r,n)&&we(i,n);for(;e.length>o;)lt(r,n=e[o++])&&(~be(i,n)||we(i,n));return i},Ae=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Oe=Ae.concat("length","prototype"),Ee={f:Object.getOwnPropertyNames||function(t){return Se(t,Oe)}},Pe={f:Object.getOwnPropertySymbols},Te=A([].concat),_e=H("Reflect","ownKeys")||function(t){var e=Ee.f(Rt(t)),n=Pe.f;return n?Te(e,n(t)):e},Le=function(t,e,n){for(var r=_e(e),o=Bt.f,i=jt.f,a=0;a<r.length;a++){var c=r[a];lt(t,c)||n&<(n,c)||o(t,c,i(e,c))}},je=/#|\.prototype\./,xe=function(t,e){var n=Ie[Ce(t)];return n==ke||n!=Re&&(M(e)?f(e):!!e)},Ce=xe.normalize=function(t){return String(t).replace(je,".").toLowerCase()},Ie=xe.data={},Re=xe.NATIVE="N",ke=xe.POLYFILL="P",Ne=xe,Me=jt.f,Ue=function(t,e){var n,r,o,i,a,c=t.target,f=t.global,s=t.stat;if(n=f?u:s?u[c]||ot(c,{}):(u[c]||{}).prototype)for(r in e){if(i=e[r],o=t.dontCallGetSet?(a=Me(n,r))&&a.value:n[r],!Ne(f?r:c+(s?".":"#")+r,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;Le(i,o)}(t.sham||o&&o.sham)&&Wt(i,"sham",!0),fe(n,r,i,t)}},De=Object.keys||function(t){return Se(t,Ae)},He=Object.assign,Be=Object.defineProperty,We=A([].concat),Fe=!He||f((function(){if(s&&1!==He({b:1},He(Be({},"a",{enumerable:!0,get:function(){Be(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach((function(t){e[t]=t})),7!=He({},t)[n]||De(He({},e)).join("")!=r}))?function(t,e){for(var n=ft(t),r=arguments.length,o=1,i=Pe.f,a=g.f;r>o;)for(var c,u=L(arguments[o++]),f=i?We(De(u),i(u)):De(u),l=f.length,p=0;l>p;)c=f[p++],s&&!h(a,u,c)||(n[c]=u[c]);return n}:He;Ue({target:"Object",stat:!0,arity:2,forced:Object.assign!==Fe},{assign:Fe});var ze=Array.isArray||function(t){return"Array"==P(t)},Ge=TypeError,Ve=function(t){if(t>9007199254740991)throw Ge("Maximum allowed index exceeded");return t},Xe=function(t,e,n){var r=Ot(e);r in t?Bt.f(t,r,m(0,n)):t[r]=n},qe={};qe[bt("toStringTag")]="z";var Ye="[object z]"===String(qe),Je=bt("toStringTag"),Ke=Object,Qe="Arguments"==P(function(){return arguments}()),$e=Ye?P:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Ke(t),Je))?n:Qe?P(e):"Object"==(r=P(e))&&M(e.callee)?"Arguments":r},Ze=function(){},tn=[],en=H("Reflect","construct"),nn=/^\s*(?:class|function)\b/,rn=A(nn.exec),on=!nn.exec(Ze),an=function(t){if(!M(t))return!1;try{return en(Ze,tn,t),!0}catch(t){return!1}},cn=function(t){if(!M(t))return!1;switch($e(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return on||!!rn(nn,Kt(t))}catch(t){return!0}};cn.sham=!0;var un,fn=!en||f((function(){var t;return an(an.call)||!an(Object)||!an((function(){t=!0}))||t}))?cn:an,sn=bt("species"),ln=Array,pn=function(t,e){return new(function(t){var e;return ze(t)&&(e=t.constructor,(fn(e)&&(e===ln||ze(e.prototype))||D(e)&&null===(e=e[sn]))&&(e=void 0)),void 0===e?ln:e}(t))(0===e?0:e)},hn=bt("species"),dn=bt("isConcatSpreadable"),vn=X>=51||!f((function(){var t=[];return t[dn]=!1,t.concat()[0]!==t})),yn=function(t){if(!D(t))return!1;var e=t[dn];return void 0!==e?!!e:ze(t)},gn=!(vn&&(un="concat",X>=51||!f((function(){var t=[];return(t.constructor={})[hn]=function(){return{foo:1}},1!==t[un](Boolean).foo}))));Ue({target:"Array",proto:!0,arity:1,forced:gn},{concat:function(t){var e,n,r,o,i,a=ft(this),c=pn(a,0),u=0;for(e=-1,r=arguments.length;e<r;e++)if(yn(i=-1===e?a:arguments[e]))for(o=ge(i),Ve(u+o),n=0;n<o;n++,u++)n in i&&Xe(c,u,i[n]);else Ve(u+1),Xe(c,u++,i);return c.length=u,c}});var mn,bn=s&&!xt?Object.defineProperties:function(t,e){Rt(t);for(var n,r=I(e),o=De(e),i=o.length,a=0;i>a;)Bt.f(t,n=o[a++],r[n]);return t},wn={f:bn},Sn=H("document","documentElement"),An="prototype",On="script",En=te("IE_PROTO"),Pn=function(){},Tn=function(t){return"<"+On+">"+t+"</"+On+">"},_n=function(t){t.write(Tn("")),t.close();var e=t.parentWindow.Object;return t=null,e},Ln=function(){try{mn=new ActiveXObject("htmlfile")}catch(t){}var t,e,n;Ln="undefined"!=typeof document?document.domain&&mn?_n(mn):(e=Tt("iframe"),n="java"+On+":",e.style.display="none",Sn.appendChild(e),e.src=String(n),(t=e.contentWindow.document).open(),t.write(Tn("document.F=Object")),t.close(),t.F):_n(mn);for(var r=Ae.length;r--;)delete Ln[An][Ae[r]];return Ln()};ee[En]=!0;var jn=Object.create||function(t,e){var n;return null!==t?(Pn[An]=Rt(t),n=new Pn,Pn[An]=null,n[En]=t):n=Ln(),void 0===e?n:wn.f(n,e)},xn=Bt.f,Cn=bt("unscopables"),In=Array.prototype;null==In[Cn]&&xn(In,Cn,{configurable:!0,value:jn(null)});var Rn,kn,Nn,Mn=function(t){In[Cn][t]=!0},Un={},Dn=!f((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),Hn=te("IE_PROTO"),Bn=Object,Wn=Bn.prototype,Fn=Dn?Bn.getPrototypeOf:function(t){var e=ft(t);if(lt(e,Hn))return e[Hn];var n=e.constructor;return M(n)&&e instanceof n?n.prototype:e instanceof Bn?Wn:null},zn=bt("iterator"),Gn=!1;[].keys&&("next"in(Nn=[].keys())?(kn=Fn(Fn(Nn)))!==Object.prototype&&(Rn=kn):Gn=!0);var Vn=!D(Rn)||f((function(){var t={};return Rn[zn].call(t)!==t}));Vn&&(Rn={}),M(Rn[zn])||fe(Rn,zn,(function(){return this}));var Xn={IteratorPrototype:Rn,BUGGY_SAFARI_ITERATORS:Gn},qn=Bt.f,Yn=bt("toStringTag"),Jn=function(t,e,n){t&&!n&&(t=t.prototype),t&&!lt(t,Yn)&&qn(t,Yn,{configurable:!0,value:e})},Kn=Xn.IteratorPrototype,Qn=function(){return this},$n=String,Zn=TypeError,tr=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{t=function(t,e,n){try{return A(tt(Object.getOwnPropertyDescriptor(t,e)[n]))}catch(t){}}(Object.prototype,"__proto__","set"),t(n,[]),e=n instanceof Array}catch(t){}return function(n,r){return Rt(n),function(t){if("object"==typeof t||M(t))return t;throw Zn("Can't set "+$n(t)+" as a prototype")}(r),e?t(n,r):n.__proto__=r,n}}():void 0),er=Vt.PROPER,nr=Vt.CONFIGURABLE,rr=Xn.IteratorPrototype,or=Xn.BUGGY_SAFARI_ITERATORS,ir=bt("iterator"),ar="keys",cr="values",ur="entries",fr=function(){return this},sr=function(t,e,n,r,o,i,a){!function(t,e,n,r){var o=e+" Iterator";t.prototype=jn(Kn,{next:m(+!r,n)}),Jn(t,o,!1),Un[o]=Qn}(n,e,r);var c,u,f,s=function(t){if(t===o&&y)return y;if(!or&&t in d)return d[t];switch(t){case ar:case cr:case ur:return function(){return new n(this,t)}}return function(){return new n(this)}},l=e+" Iterator",p=!1,d=t.prototype,v=d[ir]||d["@@iterator"]||o&&d[o],y=!or&&v||s(o),g="Array"==e&&d.entries||v;if(g&&(c=Fn(g.call(new t)))!==Object.prototype&&c.next&&(Fn(c)!==rr&&(tr?tr(c,rr):M(c[ir])||fe(c,ir,fr)),Jn(c,l,!0)),er&&o==cr&&v&&v.name!==cr&&(nr?Wt(d,"name",cr):(p=!0,y=function(){return h(v,this)})),o)if(u={values:s(cr),keys:i?y:s(ar),entries:s(ur)},a)for(f in u)(or||p||!(f in d))&&fe(d,f,u[f]);else Ue({target:e,proto:!0,forced:or||p},u);return d[ir]!==y&&fe(d,ir,y,{name:o}),Un[e]=y,u},lr=function(t,e){return{value:t,done:e}},pr=Bt.f,hr="Array Iterator",dr=ce.set,vr=ce.getterFor(hr),yr=sr(Array,"Array",(function(t,e){dr(this,{type:hr,target:I(t),index:0,kind:e})}),(function(){var t=vr(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,lr(void 0,!0)):lr("keys"==n?r:"values"==n?e[r]:[r,e[r]],!1)}),"values"),gr=Un.Arguments=Un.Array;if(Mn("keys"),Mn("values"),Mn("entries"),s&&"values"!==gr.name)try{pr(gr,"name",{value:"values"})}catch(t){}var mr=Ye?{}.toString:function(){return"[object "+$e(this)+"]"};Ye||fe(Object.prototype,"toString",mr,{unsafe:!0});var br,wr,Sr,Ar,Or="undefined"!=typeof process&&"process"==P(process),Er=bt("species"),Pr=TypeError,Tr=TypeError,_r=bt("species"),Lr=function(t,e){var n,r=Rt(t).constructor;return void 0===r||j(n=Rt(r)[_r])?e:function(t){if(fn(t))return t;throw Tr($(t)+" is not a constructor")}(n)},jr=Function.prototype,xr=jr.apply,Cr=jr.call,Ir="object"==typeof Reflect&&Reflect.apply||(l?Cr.bind(xr):function(){return Cr.apply(xr,arguments)}),Rr=function(t){if("Function"===P(t))return A(t)},kr=Rr(Rr.bind),Nr=function(t,e){return tt(t),void 0===e?t:l?kr(t,e):function(){return t.apply(e,arguments)}},Mr=A([].slice),Ur=TypeError,Dr=/(?:ipad|iphone|ipod).*applewebkit/i.test(W),Hr=u.setImmediate,Br=u.clearImmediate,Wr=u.process,Fr=u.Dispatch,zr=u.Function,Gr=u.MessageChannel,Vr=u.String,Xr=0,qr={},Yr="onreadystatechange";f((function(){br=u.location}));var Jr=function(t){if(lt(qr,t)){var e=qr[t];delete qr[t],e()}},Kr=function(t){return function(){Jr(t)}},Qr=function(t){Jr(t.data)},$r=function(t){u.postMessage(Vr(t),br.protocol+"//"+br.host)};Hr&&Br||(Hr=function(t){!function(t,e){if(t<e)throw Ur("Not enough arguments")}(arguments.length,1);var e=M(t)?t:zr(t),n=Mr(arguments,1);return qr[++Xr]=function(){Ir(e,void 0,n)},wr(Xr),Xr},Br=function(t){delete qr[t]},Or?wr=function(t){Wr.nextTick(Kr(t))}:Fr&&Fr.now?wr=function(t){Fr.now(Kr(t))}:Gr&&!Dr?(Ar=(Sr=new Gr).port2,Sr.port1.onmessage=Qr,wr=Nr(Ar.postMessage,Ar)):u.addEventListener&&M(u.postMessage)&&!u.importScripts&&br&&"file:"!==br.protocol&&!f($r)?(wr=$r,u.addEventListener("message",Qr,!1)):wr=Yr in Tt("script")?function(t){Sn.appendChild(Tt("script"))[Yr]=function(){Sn.removeChild(this),Jr(t)}}:function(t){setTimeout(Kr(t),0)});var Zr={set:Hr,clear:Br},to=function(){this.head=null,this.tail=null};to.prototype={add:function(t){var e={item:t,next:null},n=this.tail;n?n.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return null===(this.head=t.next)&&(this.tail=null),t.item}};var eo,no,ro,oo,io,ao=to,co=/ipad|iphone|ipod/i.test(W)&&"undefined"!=typeof Pebble,uo=/web0s(?!.*chrome)/i.test(W),fo=jt.f,so=Zr.set,lo=u.MutationObserver||u.WebKitMutationObserver,po=u.document,ho=u.process,vo=u.Promise,yo=fo(u,"queueMicrotask"),go=yo&&yo.value;if(!go){var mo=new ao,bo=function(){var t,e;for(Or&&(t=ho.domain)&&t.exit();e=mo.get();)try{e()}catch(t){throw mo.head&&eo(),t}t&&t.enter()};Dr||Or||uo||!lo||!po?!co&&vo&&vo.resolve?((oo=vo.resolve(void 0)).constructor=vo,io=Nr(oo.then,oo),eo=function(){io(bo)}):Or?eo=function(){ho.nextTick(bo)}:(so=Nr(so,u),eo=function(){so(bo)}):(no=!0,ro=po.createTextNode(""),new lo(bo).observe(ro,{characterData:!0}),eo=function(){ro.data=no=!no}),go=function(t){mo.head||eo(),mo.add(t)}}var wo=go,So=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},Ao=u.Promise,Oo="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,Eo=!Oo&&!Or&&"object"==typeof window&&"object"==typeof document;Ao&&Ao.prototype;var Po,To,_o,Lo,jo,xo,Co,Io=bt("species"),Ro=!1,ko=M(u.PromiseRejectionEvent),No=Ne("Promise",(function(){var t=Kt(Ao),e=t!==String(Ao);if(!e&&66===X)return!0;if(!X||X<51||!/native code/.test(t)){var n=new Ao((function(t){t(1)})),r=function(t){t((function(){}),(function(){}))};if((n.constructor={})[Io]=r,!(Ro=n.then((function(){}))instanceof r))return!0}return!e&&(Eo||Oo)&&!ko})),Mo={CONSTRUCTOR:No,REJECTION_EVENT:ko,SUBCLASSING:Ro},Uo=TypeError,Do=function(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw Uo("Bad Promise constructor");e=t,n=r})),this.resolve=tt(e),this.reject=tt(n)},Ho={f:function(t){return new Do(t)}},Bo=Zr.set,Wo="Promise",Fo=Mo.CONSTRUCTOR,zo=Mo.REJECTION_EVENT,Go=Mo.SUBCLASSING,Vo=ce.getterFor(Wo),Xo=ce.set,qo=Ao&&Ao.prototype,Yo=Ao,Jo=qo,Ko=u.TypeError,Qo=u.document,$o=u.process,Zo=Ho.f,ti=Zo,ei=!!(Qo&&Qo.createEvent&&u.dispatchEvent),ni="unhandledrejection",ri=function(t){var e;return!(!D(t)||!M(e=t.then))&&e},oi=function(t,e){var n,r,o,i=e.value,a=1==e.state,c=a?t.ok:t.fail,u=t.resolve,f=t.reject,s=t.domain;try{c?(a||(2===e.rejection&&fi(e),e.rejection=1),!0===c?n=i:(s&&s.enter(),n=c(i),s&&(s.exit(),o=!0)),n===t.promise?f(Ko("Promise-chain cycle")):(r=ri(n))?h(r,n,u,f):u(n)):f(i)}catch(t){s&&!o&&s.exit(),f(t)}},ii=function(t,e){t.notified||(t.notified=!0,wo((function(){for(var n,r=t.reactions;n=r.get();)oi(n,t);t.notified=!1,e&&!t.rejection&&ci(t)})))},ai=function(t,e,n){var r,o;ei?((r=Qo.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),u.dispatchEvent(r)):r={promise:e,reason:n},!zo&&(o=u["on"+t])?o(r):t===ni&&function(t,e){try{1==arguments.length?console.error(t):console.error(t,e)}catch(t){}}("Unhandled promise rejection",n)},ci=function(t){h(Bo,u,(function(){var e,n=t.facade,r=t.value;if(ui(t)&&(e=So((function(){Or?$o.emit("unhandledRejection",r,n):ai(ni,n,r)})),t.rejection=Or||ui(t)?2:1,e.error))throw e.value}))},ui=function(t){return 1!==t.rejection&&!t.parent},fi=function(t){h(Bo,u,(function(){var e=t.facade;Or?$o.emit("rejectionHandled",e):ai("rejectionhandled",e,t.value)}))},si=function(t,e,n){return function(r){t(e,r,n)}},li=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,ii(t,!0))},pi=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw Ko("Promise can't be resolved itself");var r=ri(e);r?wo((function(){var n={done:!1};try{h(r,e,si(pi,n,t),si(li,n,t))}catch(e){li(n,e,t)}})):(t.value=e,t.state=1,ii(t,!1))}catch(e){li({done:!1},e,t)}}};if(Fo&&(Jo=(Yo=function(t){!function(t,e){if(B(e,t))return t;throw Pr("Incorrect invocation")}(this,Jo),tt(t),h(Po,this);var e=Vo(this);try{t(si(pi,e),si(li,e))}catch(t){li(e,t)}}).prototype,(Po=function(t){Xo(this,{type:Wo,done:!1,notified:!1,parent:!1,reactions:new ao,rejection:!1,state:0,value:void 0})}).prototype=fe(Jo,"then",(function(t,e){var n=Vo(this),r=Zo(Lr(this,Yo));return n.parent=!0,r.ok=!M(t)||t,r.fail=M(e)&&e,r.domain=Or?$o.domain:void 0,0==n.state?n.reactions.add(r):wo((function(){oi(r,n)})),r.promise})),To=function(){var t=new Po,e=Vo(t);this.promise=t,this.resolve=si(pi,e),this.reject=si(li,e)},Ho.f=Zo=function(t){return t===Yo||undefined===t?new To(t):ti(t)},M(Ao)&&qo!==Object.prototype)){_o=qo.then,Go||fe(qo,"then",(function(t,e){var n=this;return new Yo((function(t,e){h(_o,n,t,e)})).then(t,e)}),{unsafe:!0});try{delete qo.constructor}catch(t){}tr&&tr(qo,Jo)}Ue({global:!0,constructor:!0,wrap:!0,forced:Fo},{Promise:Yo}),Jn(Yo,Wo,!1),Co=H(Wo),s&&Co&&!Co[Er]&&(Lo=Co,jo=Er,(xo={configurable:!0,get:function(){return this}}).get&&ue(xo.get,jo,{getter:!0}),xo.set&&ue(xo.set,jo,{setter:!0}),Bt.f(Lo,jo,xo));var hi=bt("iterator"),di=Array.prototype,vi=bt("iterator"),yi=function(t){if(!j(t))return et(t,vi)||et(t,"@@iterator")||Un[$e(t)]},gi=TypeError,mi=function(t,e,n){var r,o;Rt(t);try{if(!(r=et(t,"return"))){if("throw"===e)throw n;return n}r=h(r,t)}catch(t){o=!0,r=t}if("throw"===e)throw n;if(o)throw r;return Rt(r),n},bi=TypeError,wi=function(t,e){this.stopped=t,this.result=e},Si=wi.prototype,Ai=function(t,e,n){var r,o,i,a,c,u,f,s,l=n&&n.that,p=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_RECORD),v=!(!n||!n.IS_ITERATOR),y=!(!n||!n.INTERRUPTED),g=Nr(e,l),m=function(t){return r&&mi(r,"normal",t),new wi(!0,t)},b=function(t){return p?(Rt(t),y?g(t[0],t[1],m):g(t[0],t[1])):y?g(t,m):g(t)};if(d)r=t.iterator;else if(v)r=t;else{if(!(o=yi(t)))throw bi($(t)+" is not iterable");if(void 0!==(s=o)&&(Un.Array===s||di[hi]===s)){for(i=0,a=ge(t);a>i;i++)if((c=b(t[i]))&&B(Si,c))return c;return new wi(!1)}r=function(t,e){var n=arguments.length<2?yi(t):e;if(tt(n))return Rt(h(n,t));throw gi($(t)+" is not iterable")}(t,o)}for(u=d?t.next:r.next;!(f=h(u,r)).done;){try{c=b(f.value)}catch(t){mi(r,"throw",t)}if("object"==typeof c&&c&&B(Si,c))return c}return new wi(!1)},Oi=bt("iterator"),Ei=!1;try{var Pi=0,Ti={next:function(){return{done:!!Pi++}},return:function(){Ei=!0}};Ti[Oi]=function(){return this},Array.from(Ti,(function(){throw 2}))}catch(t){}var _i=Mo.CONSTRUCTOR||!function(t,e){if(!e&&!Ei)return!1;var n=!1;try{var r={};r[Oi]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(t){}return n}((function(t){Ao.all(t).then(void 0,(function(){}))}));Ue({target:"Promise",stat:!0,forced:_i},{all:function(t){var e=this,n=Ho.f(e),r=n.resolve,o=n.reject,i=So((function(){var n=tt(e.resolve),i=[],a=0,c=1;Ai(t,(function(t){var u=a++,f=!1;c++,h(n,e,t).then((function(t){f||(f=!0,i[u]=t,--c||r(i))}),o)})),--c||r(i)}));return i.error&&o(i.value),n.promise}});var Li=Mo.CONSTRUCTOR,ji=Ao&&Ao.prototype;if(Ue({target:"Promise",proto:!0,forced:Li,real:!0},{catch:function(t){return this.then(void 0,t)}}),M(Ao)){var xi=H("Promise").prototype.catch;ji.catch!==xi&&fe(ji,"catch",xi,{unsafe:!0})}Ue({target:"Promise",stat:!0,forced:_i},{race:function(t){var e=this,n=Ho.f(e),r=n.reject,o=So((function(){var o=tt(e.resolve);Ai(t,(function(t){h(o,e,t).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}}),Ue({target:"Promise",stat:!0,forced:Mo.CONSTRUCTOR},{reject:function(t){var e=Ho.f(this);return h(e.reject,void 0,t),e.promise}});var Ci=Mo.CONSTRUCTOR;H("Promise"),Ue({target:"Promise",stat:!0,forced:Ci},{resolve:function(t){return function(t,e){if(Rt(t),D(e)&&e.constructor===t)return e;var n=Ho.f(t);return(0,n.resolve)(e),n.promise}(this,t)}});var Ii=String,Ri=function(t){if("Symbol"===$e(t))throw TypeError("Cannot convert a Symbol value to a string");return Ii(t)},ki=A("".charAt),Ni=A("".charCodeAt),Mi=A("".slice),Ui=function(t){return function(e,n){var r,o,i=Ri(C(e)),a=he(n),c=i.length;return a<0||a>=c?t?"":void 0:(r=Ni(i,a))<55296||r>56319||a+1===c||(o=Ni(i,a+1))<56320||o>57343?t?ki(i,a):r:t?Mi(i,a,a+2):o-56320+(r-55296<<10)+65536}},Di={codeAt:Ui(!1),charAt:Ui(!0)}.charAt,Hi="String Iterator",Bi=ce.set,Wi=ce.getterFor(Hi);sr(String,"String",(function(t){Bi(this,{type:Hi,string:Ri(t),index:0})}),(function(){var t,e=Wi(this),n=e.string,r=e.index;return r>=n.length?lr(void 0,!0):(t=Di(n,r),e.index+=t.length,lr(t,!1))}));var Fi={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},zi=Tt("span").classList,Gi=zi&&zi.constructor&&zi.constructor.prototype,Vi=Gi===Object.prototype?void 0:Gi,Xi=bt("iterator"),qi=bt("toStringTag"),Yi=yr.values,Ji=function(t,e){if(t){if(t[Xi]!==Yi)try{Wt(t,Xi,Yi)}catch(e){t[Xi]=Yi}if(t[qi]||Wt(t,qi,e),Fi[e])for(var n in yr)if(t[n]!==yr[n])try{Wt(t,n,yr[n])}catch(e){t[n]=yr[n]}}};for(var Ki in Fi)Ji(u[Ki]&&u[Ki].prototype,Ki);Ji(Vi,"DOMTokenList");var Qi=function(){return Qi=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Qi.apply(this,arguments)},$i={weixinJsSdkTicket:"",launchContainerQuery:".mazey-launch-app-selector",launchShowWeixinToBrowserImgUrl:"",canShowWeixinToBrowser:!1,extInfo:"",serviceAccountAppId:"",wexinServiceAccountAppId:"",openPlatformMobileAppId:"",genTagPrefixStr:"mazey-launch-app-btn-prefix-",launchShowWeixinToBrowserClassName:"mazey-launch-app-wx-to-browser",launchBtnClassName:"mazey-launch-app-inner-btn",launchBtnStyle:"",launchBtnText:"Launch App <br /><br /><br />",launchErrorLink:"",canContinuousUpdating:!1,onMenuShareTimelineOptions:void 0,onMenuShareAppMessageOptions:void 0,isConClosed:!0,isWxDebug:!1,canLaunchApp:function(){return!0},canFireErrorLinkDirectly:function(){return!1},launchBtnClick:function(){},launchReady:function(){}},Zi=function(r){void 0===r&&(r=$i);var o=Object.assign($i,r),i=o.weixinJsSdkTicket,a=o.launchContainerQuery,c=o.genTagPrefixStr,u=o.launchShowWeixinToBrowserImgUrl,f=o.canShowWeixinToBrowser,s=o.launchShowWeixinToBrowserClassName,l=o.launchBtnClassName,p=o.launchBtnStyle,h=o.launchBtnText,d=o.launchErrorLink,v=o.wexinServiceAccountAppId,y=o.openPlatformMobileAppId,g=o.canContinuousUpdating,m=o.onMenuShareTimelineOptions,b=o.onMenuShareAppMessageOptions,w=o.isConClosed,S=o.isWxDebug,A=o.canLaunchApp,O=o.canFireErrorLinkDirectly,E=o.launchBtnClick,P=o.launchReady,T=o.serviceAccountAppId,_=o.extInfo,L=window.sha1,j=window.wx,x=window.$||window.jQuery;L&&j&&x||console.error("Launch App: wx or sha1 or $ is not found");var C=function(){},I=t("LaunchCon:",{isClosed:w});I.log("Launch App");var R={title:"",link:"",imgUrl:"",success:function(){},cancel:function(){}},k={title:"",desc:"",link:"",imgUrl:"",type:"",dataUrl:"",success:function(){},cancel:function(){}},N={title:document.title,link:location.href};R=Qi(Qi({},R),N),k=Qi(Qi({},k),N);var M=function(t,e,n){return void 0===t&&(t=""),void 0===e&&(e=""),void 0===n&&(n="button"),"<style>.".concat(l,"{")+"opacity: 0;width: 100%;height: 100%;backgroud: transparent;color: #300f54;border: none;box-sizing: border-box;text-align: center;vertical-align: middle;"+p+e+"}</style>"+"<".concat(n,' class="').concat(l,'"')+(t&&"button"===n?' onclick="'.concat(t,'"'):"")+(t&&"a"===n?' target="_self" href="'.concat(t,'"'):"")+">"+h+"</".concat(n,">")},U=M();function D(){e('.mazey-launch-app-mask{position:fixed;top:0;right:0;bottom:0;left:0;background-color:rgba(0, 0, 0, .5);text-align:right;font-size:0;white-space:nowrap;overflow:auto;z-index:999;}.mazey-launch-app-img{display:inline-block;vertical-align:middle;text-align:left;font-size:14px;white-space:normal;width:50vw;margin:0.5rem 0.5rem 0 0;}.mazey-launch-app-img:after{content:"";display:inline-block;height:100%;vertical-align:middle;}',{id:"mazey-launch-app-mask-style"}),window.LAUNCH_APP_HIDE_WEIXIN_BROWSER||(window.LAUNCH_APP_HIDE_WEIXIN_BROWSER=function(){x(".mazey-launch-app-mask").hide()}),0===x(".mazey-launch-app-mask").length?x("body").append("<div class='mazey-launch-app-mask' onclick='window.LAUNCH_APP_HIDE_WEIXIN_BROWSER()'><img "+"class='mazey-launch-app-img ".concat(s,"' ")+"src='".concat(u,"' ")+"alt='Launch App' /></div>"):x(".mazey-launch-app-mask").show()}function H(){I.log("renderWeixinLaunchTemplate"),!T&&v&&(console.warn("wexinServiceAccountAppId will be deprecated, use serviceAccountAppId instead."),T=v),function(t,e){void 0===t&&(t=""),void 0===e&&(e=""),I.log("renderWXOpenLaunchApp"),Promise.all([Promise.resolve(i||window.LAUNCH_APP_WEIXIN_JS_SDK_TICKET),Promise.resolve(L)]).then((function(r){I.log("allRes",r);var o=r[0],i=r[1],u=n(7),s=o,l=(new Date).getTime(),p=i("jsapi_ticket="+s+"&noncestr="+u+"×tamp="+l+"&url="+location.href);return j.config({debug:S,appId:t,timestamp:l,nonceStr:u,signature:p,jsApiList:["showOptionMenu","onMenuShareTimeline","onMenuShareAppMessage"],openTagList:["wx-open-launch-app"]}),j.ready((function(){m&&(I.log("onMenuShareTimelineOptions",m),j.onMenuShareTimeline(m)),window.LAUNCH_APP_SHARE_TIMELINE=function(t){t=Qi(Qi({},R),t),I.log("window LAUNCH_APP_SHARE_TIMELINE",t),j.onMenuShareTimeline(t)},b&&(I.log("onMenuShareAppMessageOptions",b),j.onMenuShareAppMessage(b)),window.LAUNCH_APP_SHARE_APP_MESSAGE=function(t){t=Qi(Qi({},k),t),I.log("window LAUNCH_APP_SHARE_APP_MESSAGE",t),j.onMenuShareAppMessage(t)},window.LAUNCH_APP_READY=!0,P&&P();var t=function(){var t=x(a);I.log("containers",a,t,t.length),t.length>0&&t.each((function(t,n){var r=x(n).attr("data-launch-app-key");if(!r){var o=x(n).parents("[data-launch-app-key]:eq(0)");o.length>0&&(r=o.attr("data-launch-app-key"),I.log("keyEle",o,r))}r||(r=t);var i="mazey-launch-app-tag-".concat(r),a=x(".".concat(i," wx-open-launch-app")),u=x(n).attr("data-launch-app-ext-info");if(!u){var s=x(n).parents("[data-launch-app-ext-info]:eq(0)");s.length>0&&(u=s.attr("data-launch-app-ext-info"),I.log("eleExtInfoEle parents",s,u))}u&&(_=u);var l=x(n).attr("data-launch-app-error-link");if(!l){var p=x(n).parents("[data-launch-app-error-link]:eq(0)");p.length>0&&(l=p.attr("data-launch-app-error-link"),I.log("eleErrorLinkEle parents",p,l))}var h=d;l&&(h=l),0===a.length&&(x(n).addClass(i),I.log("success:",i),function(t){var n=c,r=n+t,o="<wx-open-launch-app id='"+r+"' appid='"+e+"' extinfo='".concat(_)+"' style='z-index:99;position:absolute;width:100%;height:100%;opacity:1;background:transparent;overflow:hidden;left:0;'><script type='text/wxtag-template'>"+U+"<\/script></wx-open-launch-app>";x("."+t+":eq(0)").append(o);var i=document.getElementById(r);i&&(i.addEventListener("ready",(function(t){I.log("ready event",t)})),i.addEventListener("launch",(function(t){I.log("launch event",t),t.detail&&t.detail.extInfo&&I.log("launch extInfo",t.detail.extInfo)})),i.addEventListener("error",(function(t){I.error(t.detail),x("[id^='"+n+"']").hide(),f&&D(),h&&(I.log("realErrorLink",h),location.href=h)})),i.addEventListener("click",(function(t){I.log("click event",t),E&&E()})))}(i))}))};t(),C=t})),j.error((function(t){I.error(t)})),"success:launch_app"})).catch((function(t){I.error(t)}))}(T,y)}function B(t){if(I.log("appUpdated",t),!window.LAUNCH_APP_LOAD&&A(t)&&(H(),window.LAUNCH_APP_LOAD=!0),g&&window.LAUNCH_APP_LOAD&&A(t)&&C(),O()){var e=x(a);e.length>0&&e.each((function(t,e){var n=x(e).children("."+l);if(!n||!n.length){var r=x(e).attr("data-launch-app-error-link");if(!r){var o=x(e).parents("[data-launch-app-error-link]:eq(0)");o.length>0&&(r=o.attr("data-launch-app-error-link"))}if(r&&"string"==typeof r&&r.length){var i=M(r,"position:absolute;left:0;z-index:999;","a");x(e).append(i)}}}))}}function W(){I.log("appBeforeDestroy",W),window.LAUNCH_APP_LOAD=null,window.LAUNCH_APP_HIDE_WEIXIN_BROWSER=null}return window.LAUNCH_APP_UPDATE=B,window.LAUNCH_APP_BEFORE_DESTROY=W,window.LAUNCH_APP_SHOW_WEIXIN_TO_BROWSER=D,{LAUNCH_APP_UPDATE:B,LAUNCH_APP_BEFORE_DESTROY:W,LAUNCH_APP_SHOW_WEIXIN_TO_BROWSER:D,LAUNCH_APP_SHARE_TIMELINE:function(t){I.log("opt",t)},LAUNCH_APP_SHARE_APP_MESSAGE:function(t){I.log("opt",t)},start:B,update:B,destroy:W}};export{Zi as default};
|
package/lib/launch-app.min.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* mazey-wechat-launch-app v2.
|
|
2
|
+
* mazey-wechat-launch-app v2.2.0 https://www.npmjs.com/package/mazey-wechat-launch-app
|
|
3
3
|
* (c) 2018-2023 Mazey Chu
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
|
-
var LAUNCH_APP=function(){"use strict";var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function e(t,e){return t(e={exports:{}},e.exports),e.exports}var n,r,o=function(t){return t&&t.Math==Math&&t},i=o("object"==typeof globalThis&&globalThis)||o("object"==typeof window&&window)||o("object"==typeof self&&self)||o("object"==typeof t&&t)||function(){return this}()||Function("return this")(),a=function(t){try{return!!t()}catch(t){return!0}},c=!a((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),u=!a((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),f=Function.prototype.call,s=u?f.bind(f):function(){return f.apply(f,arguments)},l={}.propertyIsEnumerable,p=Object.getOwnPropertyDescriptor,h=p&&!l.call({1:2},1)?function(t){var e=p(this,t);return!!e&&e.enumerable}:l,d={f:h},v=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},y=Function.prototype,g=y.call,m=u&&y.bind.bind(g,g),b=u?m:function(t){return function(){return g.apply(t,arguments)}},w=b({}.toString),S=b("".slice),A=function(t){return S(w(t),8,-1)},O=Object,E=b("".split),P=a((function(){return!O("z").propertyIsEnumerable(0)}))?function(t){return"String"==A(t)?E(t,""):O(t)}:O,_=function(t){return null==t},T=TypeError,L=function(t){if(_(t))throw T("Can't call method on "+t);return t},j=function(t){return P(L(t))},C="object"==typeof document&&document.all,x={all:C,IS_HTMLDDA:void 0===C&&void 0!==C},I=x.all,R=x.IS_HTMLDDA?function(t){return"function"==typeof t||t===I}:function(t){return"function"==typeof t},k=x.all,N=x.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:R(t)||t===k}:function(t){return"object"==typeof t?null!==t:R(t)},M=function(t,e){return arguments.length<2?(n=i[t],R(n)?n:void 0):i[t]&&i[t][e];var n},U=b({}.isPrototypeOf),D="undefined"!=typeof navigator&&String(navigator.userAgent)||"",H=i.process,B=i.Deno,W=H&&H.versions||B&&B.version,z=W&&W.v8;z&&(r=(n=z.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!r&&D&&(!(n=D.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=D.match(/Chrome\/(\d+)/))&&(r=+n[1]);var F=r,G=!!Object.getOwnPropertySymbols&&!a((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&F&&F<41})),V=G&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,X=Object,q=V?function(t){return"symbol"==typeof t}:function(t){var e=M("Symbol");return R(e)&&U(e.prototype,X(t))},Y=String,J=function(t){try{return Y(t)}catch(t){return"Object"}},K=TypeError,Q=function(t){if(R(t))return t;throw K(J(t)+" is not a function")},$=function(t,e){var n=t[e];return _(n)?void 0:Q(n)},Z=TypeError,tt=Object.defineProperty,et=function(t,e){try{tt(i,t,{value:e,configurable:!0,writable:!0})}catch(n){i[t]=e}return e},nt="__core-js_shared__",rt=i[nt]||et(nt,{}),ot=e((function(t){(t.exports=function(t,e){return rt[t]||(rt[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.30.1",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.30.1/LICENSE",source:"https://github.com/zloirock/core-js"})})),it=Object,at=function(t){return it(L(t))},ct=b({}.hasOwnProperty),ut=Object.hasOwn||function(t,e){return ct(at(t),e)},ft=0,st=Math.random(),lt=b(1..toString),pt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+lt(++ft+st,36)},ht=i.Symbol,dt=ot("wks"),vt=V?ht.for||ht:ht&&ht.withoutSetter||pt,yt=function(t){return ut(dt,t)||(dt[t]=G&&ut(ht,t)?ht[t]:vt("Symbol."+t)),dt[t]},gt=TypeError,mt=yt("toPrimitive"),bt=function(t,e){if(!N(t)||q(t))return t;var n,r=$(t,mt);if(r){if(void 0===e&&(e="default"),n=s(r,t,e),!N(n)||q(n))return n;throw gt("Can't convert object to primitive value")}return void 0===e&&(e="number"),function(t,e){var n,r;if("string"===e&&R(n=t.toString)&&!N(r=s(n,t)))return r;if(R(n=t.valueOf)&&!N(r=s(n,t)))return r;if("string"!==e&&R(n=t.toString)&&!N(r=s(n,t)))return r;throw Z("Can't convert object to primitive value")}(t,e)},wt=function(t){var e=bt(t,"string");return q(e)?e:e+""},St=i.document,At=N(St)&&N(St.createElement),Ot=function(t){return At?St.createElement(t):{}},Et=!c&&!a((function(){return 7!=Object.defineProperty(Ot("div"),"a",{get:function(){return 7}}).a})),Pt=Object.getOwnPropertyDescriptor,_t={f:c?Pt:function(t,e){if(t=j(t),e=wt(e),Et)try{return Pt(t,e)}catch(t){}if(ut(t,e))return v(!s(d.f,t,e),t[e])}},Tt=c&&a((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Lt=String,jt=TypeError,Ct=function(t){if(N(t))return t;throw jt(Lt(t)+" is not an object")},xt=TypeError,It=Object.defineProperty,Rt=Object.getOwnPropertyDescriptor,kt="enumerable",Nt="configurable",Mt="writable",Ut={f:c?Tt?function(t,e,n){if(Ct(t),e=wt(e),Ct(n),"function"==typeof t&&"prototype"===e&&"value"in n&&Mt in n&&!n[Mt]){var r=Rt(t,e);r&&r[Mt]&&(t[e]=n.value,n={configurable:Nt in n?n[Nt]:r[Nt],enumerable:kt in n?n[kt]:r[kt],writable:!1})}return It(t,e,n)}:It:function(t,e,n){if(Ct(t),e=wt(e),Ct(n),Et)try{return It(t,e,n)}catch(t){}if("get"in n||"set"in n)throw xt("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},Dt=c?function(t,e,n){return Ut.f(t,e,v(1,n))}:function(t,e,n){return t[e]=n,t},Ht=Function.prototype,Bt=c&&Object.getOwnPropertyDescriptor,Wt=ut(Ht,"name"),zt={EXISTS:Wt,PROPER:Wt&&"something"===function(){}.name,CONFIGURABLE:Wt&&(!c||c&&Bt(Ht,"name").configurable)},Ft=b(Function.toString);R(rt.inspectSource)||(rt.inspectSource=function(t){return Ft(t)});var Gt,Vt,Xt,qt=rt.inspectSource,Yt=i.WeakMap,Jt=R(Yt)&&/native code/.test(String(Yt)),Kt=ot("keys"),Qt=function(t){return Kt[t]||(Kt[t]=pt(t))},$t={},Zt="Object already initialized",te=i.TypeError,ee=i.WeakMap;if(Jt||rt.state){var ne=rt.state||(rt.state=new ee);ne.get=ne.get,ne.has=ne.has,ne.set=ne.set,Gt=function(t,e){if(ne.has(t))throw te(Zt);return e.facade=t,ne.set(t,e),e},Vt=function(t){return ne.get(t)||{}},Xt=function(t){return ne.has(t)}}else{var re=Qt("state");$t[re]=!0,Gt=function(t,e){if(ut(t,re))throw te(Zt);return e.facade=t,Dt(t,re,e),e},Vt=function(t){return ut(t,re)?t[re]:{}},Xt=function(t){return ut(t,re)}}var oe={set:Gt,get:Vt,has:Xt,enforce:function(t){return Xt(t)?Vt(t):Gt(t,{})},getterFor:function(t){return function(e){var n;if(!N(e)||(n=Vt(e)).type!==t)throw te("Incompatible receiver, "+t+" required");return n}}},ie=e((function(t){var e=zt.CONFIGURABLE,n=oe.enforce,r=oe.get,o=String,i=Object.defineProperty,u=b("".slice),f=b("".replace),s=b([].join),l=c&&!a((function(){return 8!==i((function(){}),"length",{value:8}).length})),p=String(String).split("String"),h=t.exports=function(t,r,a){"Symbol("===u(o(r),0,7)&&(r="["+f(o(r),/^Symbol\(([^)]*)\)/,"$1")+"]"),a&&a.getter&&(r="get "+r),a&&a.setter&&(r="set "+r),(!ut(t,"name")||e&&t.name!==r)&&(c?i(t,"name",{value:r,configurable:!0}):t.name=r),l&&a&&ut(a,"arity")&&t.length!==a.arity&&i(t,"length",{value:a.arity});try{a&&ut(a,"constructor")&&a.constructor?c&&i(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var h=n(t);return ut(h,"source")||(h.source=s(p,"string"==typeof r?r:"")),t};Function.prototype.toString=h((function(){return R(this)&&r(this).source||qt(this)}),"toString")})),ae=function(t,e,n,r){r||(r={});var o=r.enumerable,i=void 0!==r.name?r.name:e;if(R(n)&&ie(n,i,r),r.global)o?t[e]=n:et(e,n);else{try{r.unsafe?t[e]&&(o=!0):delete t[e]}catch(t){}o?t[e]=n:Ut.f(t,e,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return t},ce=Math.ceil,ue=Math.floor,fe=Math.trunc||function(t){var e=+t;return(e>0?ue:ce)(e)},se=function(t){var e=+t;return e!=e||0===e?0:fe(e)},le=Math.max,pe=Math.min,he=Math.min,de=function(t){return(e=t.length)>0?he(se(e),9007199254740991):0;var e},ve=function(t){return function(e,n,r){var o,i=j(e),a=de(i),c=function(t,e){var n=se(t);return n<0?le(n+e,0):pe(n,e)}(r,a);if(t&&n!=n){for(;a>c;)if((o=i[c++])!=o)return!0}else for(;a>c;c++)if((t||c in i)&&i[c]===n)return t||c||0;return!t&&-1}},ye={includes:ve(!0),indexOf:ve(!1)}.indexOf,ge=b([].push),me=function(t,e){var n,r=j(t),o=0,i=[];for(n in r)!ut($t,n)&&ut(r,n)&&ge(i,n);for(;e.length>o;)ut(r,n=e[o++])&&(~ye(i,n)||ge(i,n));return i},be=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],we=be.concat("length","prototype"),Se={f:Object.getOwnPropertyNames||function(t){return me(t,we)}},Ae={f:Object.getOwnPropertySymbols},Oe=b([].concat),Ee=M("Reflect","ownKeys")||function(t){var e=Se.f(Ct(t)),n=Ae.f;return n?Oe(e,n(t)):e},Pe=function(t,e,n){for(var r=Ee(e),o=Ut.f,i=_t.f,a=0;a<r.length;a++){var c=r[a];ut(t,c)||n&&ut(n,c)||o(t,c,i(e,c))}},_e=/#|\.prototype\./,Te=function(t,e){var n=je[Le(t)];return n==xe||n!=Ce&&(R(e)?a(e):!!e)},Le=Te.normalize=function(t){return String(t).replace(_e,".").toLowerCase()},je=Te.data={},Ce=Te.NATIVE="N",xe=Te.POLYFILL="P",Ie=Te,Re=_t.f,ke=function(t,e){var n,r,o,a,c,u=t.target,f=t.global,s=t.stat;if(n=f?i:s?i[u]||et(u,{}):(i[u]||{}).prototype)for(r in e){if(a=e[r],o=t.dontCallGetSet?(c=Re(n,r))&&c.value:n[r],!Ie(f?r:u+(s?".":"#")+r,t.forced)&&void 0!==o){if(typeof a==typeof o)continue;Pe(a,o)}(t.sham||o&&o.sham)&&Dt(a,"sham",!0),ae(n,r,a,t)}},Ne=Object.keys||function(t){return me(t,be)},Me=Object.assign,Ue=Object.defineProperty,De=b([].concat),He=!Me||a((function(){if(c&&1!==Me({b:1},Me(Ue({},"a",{enumerable:!0,get:function(){Ue(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach((function(t){e[t]=t})),7!=Me({},t)[n]||Ne(Me({},e)).join("")!=r}))?function(t,e){for(var n=at(t),r=arguments.length,o=1,i=Ae.f,a=d.f;r>o;)for(var u,f=P(arguments[o++]),l=i?De(Ne(f),i(f)):Ne(f),p=l.length,h=0;p>h;)u=l[h++],c&&!s(a,f,u)||(n[u]=f[u]);return n}:Me;ke({target:"Object",stat:!0,arity:2,forced:Object.assign!==He},{assign:He});var Be=Array.isArray||function(t){return"Array"==A(t)},We=TypeError,ze=function(t){if(t>9007199254740991)throw We("Maximum allowed index exceeded");return t},Fe=function(t,e,n){var r=wt(e);r in t?Ut.f(t,r,v(0,n)):t[r]=n},Ge={};Ge[yt("toStringTag")]="z";var Ve="[object z]"===String(Ge),Xe=yt("toStringTag"),qe=Object,Ye="Arguments"==A(function(){return arguments}()),Je=Ve?A:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=qe(t),Xe))?n:Ye?A(e):"Object"==(r=A(e))&&R(e.callee)?"Arguments":r},Ke=function(){},Qe=[],$e=M("Reflect","construct"),Ze=/^\s*(?:class|function)\b/,tn=b(Ze.exec),en=!Ze.exec(Ke),nn=function(t){if(!R(t))return!1;try{return $e(Ke,Qe,t),!0}catch(t){return!1}},rn=function(t){if(!R(t))return!1;switch(Je(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return en||!!tn(Ze,qt(t))}catch(t){return!0}};rn.sham=!0;var on,an=!$e||a((function(){var t;return nn(nn.call)||!nn(Object)||!nn((function(){t=!0}))||t}))?rn:nn,cn=yt("species"),un=Array,fn=function(t,e){return new(function(t){var e;return Be(t)&&(e=t.constructor,(an(e)&&(e===un||Be(e.prototype))||N(e)&&null===(e=e[cn]))&&(e=void 0)),void 0===e?un:e}(t))(0===e?0:e)},sn=yt("species"),ln=yt("isConcatSpreadable"),pn=F>=51||!a((function(){var t=[];return t[ln]=!1,t.concat()[0]!==t})),hn=function(t){if(!N(t))return!1;var e=t[ln];return void 0!==e?!!e:Be(t)},dn=!(pn&&(on="concat",F>=51||!a((function(){var t=[];return(t.constructor={})[sn]=function(){return{foo:1}},1!==t[on](Boolean).foo}))));ke({target:"Array",proto:!0,arity:1,forced:dn},{concat:function(t){var e,n,r,o,i,a=at(this),c=fn(a,0),u=0;for(e=-1,r=arguments.length;e<r;e++)if(hn(i=-1===e?a:arguments[e]))for(o=de(i),ze(u+o),n=0;n<o;n++,u++)n in i&&Fe(c,u,i[n]);else ze(u+1),Fe(c,u++,i);return c.length=u,c}});var vn,yn=c&&!Tt?Object.defineProperties:function(t,e){Ct(t);for(var n,r=j(e),o=Ne(e),i=o.length,a=0;i>a;)Ut.f(t,n=o[a++],r[n]);return t},gn={f:yn},mn=M("document","documentElement"),bn="prototype",wn="script",Sn=Qt("IE_PROTO"),An=function(){},On=function(t){return"<"+wn+">"+t+"</"+wn+">"},En=function(t){t.write(On("")),t.close();var e=t.parentWindow.Object;return t=null,e},Pn=function(){try{vn=new ActiveXObject("htmlfile")}catch(t){}var t,e,n;Pn="undefined"!=typeof document?document.domain&&vn?En(vn):(e=Ot("iframe"),n="java"+wn+":",e.style.display="none",mn.appendChild(e),e.src=String(n),(t=e.contentWindow.document).open(),t.write(On("document.F=Object")),t.close(),t.F):En(vn);for(var r=be.length;r--;)delete Pn[bn][be[r]];return Pn()};$t[Sn]=!0;var _n=Object.create||function(t,e){var n;return null!==t?(An[bn]=Ct(t),n=new An,An[bn]=null,n[Sn]=t):n=Pn(),void 0===e?n:gn.f(n,e)},Tn=Ut.f,Ln=yt("unscopables"),jn=Array.prototype;null==jn[Ln]&&Tn(jn,Ln,{configurable:!0,value:_n(null)});var Cn,xn,In,Rn=function(t){jn[Ln][t]=!0},kn={},Nn=!a((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),Mn=Qt("IE_PROTO"),Un=Object,Dn=Un.prototype,Hn=Nn?Un.getPrototypeOf:function(t){var e=at(t);if(ut(e,Mn))return e[Mn];var n=e.constructor;return R(n)&&e instanceof n?n.prototype:e instanceof Un?Dn:null},Bn=yt("iterator"),Wn=!1;[].keys&&("next"in(In=[].keys())?(xn=Hn(Hn(In)))!==Object.prototype&&(Cn=xn):Wn=!0);var zn=!N(Cn)||a((function(){var t={};return Cn[Bn].call(t)!==t}));zn&&(Cn={}),R(Cn[Bn])||ae(Cn,Bn,(function(){return this}));var Fn={IteratorPrototype:Cn,BUGGY_SAFARI_ITERATORS:Wn},Gn=Ut.f,Vn=yt("toStringTag"),Xn=function(t,e,n){t&&!n&&(t=t.prototype),t&&!ut(t,Vn)&&Gn(t,Vn,{configurable:!0,value:e})},qn=Fn.IteratorPrototype,Yn=function(){return this},Jn=String,Kn=TypeError,Qn=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{t=function(t,e,n){try{return b(Q(Object.getOwnPropertyDescriptor(t,e)[n]))}catch(t){}}(Object.prototype,"__proto__","set"),t(n,[]),e=n instanceof Array}catch(t){}return function(n,r){return Ct(n),function(t){if("object"==typeof t||R(t))return t;throw Kn("Can't set "+Jn(t)+" as a prototype")}(r),e?t(n,r):n.__proto__=r,n}}():void 0),$n=zt.PROPER,Zn=zt.CONFIGURABLE,tr=Fn.IteratorPrototype,er=Fn.BUGGY_SAFARI_ITERATORS,nr=yt("iterator"),rr="keys",or="values",ir="entries",ar=function(){return this},cr=function(t,e,n,r,o,i,a){!function(t,e,n,r){var o=e+" Iterator";t.prototype=_n(qn,{next:v(+!r,n)}),Xn(t,o,!1),kn[o]=Yn}(n,e,r);var c,u,f,l=function(t){if(t===o&&g)return g;if(!er&&t in d)return d[t];switch(t){case rr:case or:case ir:return function(){return new n(this,t)}}return function(){return new n(this)}},p=e+" Iterator",h=!1,d=t.prototype,y=d[nr]||d["@@iterator"]||o&&d[o],g=!er&&y||l(o),m="Array"==e&&d.entries||y;if(m&&(c=Hn(m.call(new t)))!==Object.prototype&&c.next&&(Hn(c)!==tr&&(Qn?Qn(c,tr):R(c[nr])||ae(c,nr,ar)),Xn(c,p,!0)),$n&&o==or&&y&&y.name!==or&&(Zn?Dt(d,"name",or):(h=!0,g=function(){return s(y,this)})),o)if(u={values:l(or),keys:i?g:l(rr),entries:l(ir)},a)for(f in u)(er||h||!(f in d))&&ae(d,f,u[f]);else ke({target:e,proto:!0,forced:er||h},u);return d[nr]!==g&&ae(d,nr,g,{name:o}),kn[e]=g,u},ur=function(t,e){return{value:t,done:e}},fr=Ut.f,sr="Array Iterator",lr=oe.set,pr=oe.getterFor(sr),hr=cr(Array,"Array",(function(t,e){lr(this,{type:sr,target:j(t),index:0,kind:e})}),(function(){var t=pr(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,ur(void 0,!0)):ur("keys"==n?r:"values"==n?e[r]:[r,e[r]],!1)}),"values"),dr=kn.Arguments=kn.Array;if(Rn("keys"),Rn("values"),Rn("entries"),c&&"values"!==dr.name)try{fr(dr,"name",{value:"values"})}catch(t){}var vr=Ve?{}.toString:function(){return"[object "+Je(this)+"]"};Ve||ae(Object.prototype,"toString",vr,{unsafe:!0});var yr,gr,mr,br,wr="undefined"!=typeof process&&"process"==A(process),Sr=yt("species"),Ar=TypeError,Or=TypeError,Er=yt("species"),Pr=function(t,e){var n,r=Ct(t).constructor;return void 0===r||_(n=Ct(r)[Er])?e:function(t){if(an(t))return t;throw Or(J(t)+" is not a constructor")}(n)},_r=Function.prototype,Tr=_r.apply,Lr=_r.call,jr="object"==typeof Reflect&&Reflect.apply||(u?Lr.bind(Tr):function(){return Lr.apply(Tr,arguments)}),Cr=function(t){if("Function"===A(t))return b(t)},xr=Cr(Cr.bind),Ir=function(t,e){return Q(t),void 0===e?t:u?xr(t,e):function(){return t.apply(e,arguments)}},Rr=b([].slice),kr=TypeError,Nr=/(?:ipad|iphone|ipod).*applewebkit/i.test(D),Mr=i.setImmediate,Ur=i.clearImmediate,Dr=i.process,Hr=i.Dispatch,Br=i.Function,Wr=i.MessageChannel,zr=i.String,Fr=0,Gr={},Vr="onreadystatechange";a((function(){yr=i.location}));var Xr=function(t){if(ut(Gr,t)){var e=Gr[t];delete Gr[t],e()}},qr=function(t){return function(){Xr(t)}},Yr=function(t){Xr(t.data)},Jr=function(t){i.postMessage(zr(t),yr.protocol+"//"+yr.host)};Mr&&Ur||(Mr=function(t){!function(t,e){if(t<e)throw kr("Not enough arguments")}(arguments.length,1);var e=R(t)?t:Br(t),n=Rr(arguments,1);return Gr[++Fr]=function(){jr(e,void 0,n)},gr(Fr),Fr},Ur=function(t){delete Gr[t]},wr?gr=function(t){Dr.nextTick(qr(t))}:Hr&&Hr.now?gr=function(t){Hr.now(qr(t))}:Wr&&!Nr?(br=(mr=new Wr).port2,mr.port1.onmessage=Yr,gr=Ir(br.postMessage,br)):i.addEventListener&&R(i.postMessage)&&!i.importScripts&&yr&&"file:"!==yr.protocol&&!a(Jr)?(gr=Jr,i.addEventListener("message",Yr,!1)):gr=Vr in Ot("script")?function(t){mn.appendChild(Ot("script"))[Vr]=function(){mn.removeChild(this),Xr(t)}}:function(t){setTimeout(qr(t),0)});var Kr={set:Mr,clear:Ur},Qr=function(){this.head=null,this.tail=null};Qr.prototype={add:function(t){var e={item:t,next:null},n=this.tail;n?n.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return null===(this.head=t.next)&&(this.tail=null),t.item}};var $r,Zr,to,eo,no,ro=Qr,oo=/ipad|iphone|ipod/i.test(D)&&"undefined"!=typeof Pebble,io=/web0s(?!.*chrome)/i.test(D),ao=_t.f,co=Kr.set,uo=i.MutationObserver||i.WebKitMutationObserver,fo=i.document,so=i.process,lo=i.Promise,po=ao(i,"queueMicrotask"),ho=po&&po.value;if(!ho){var vo=new ro,yo=function(){var t,e;for(wr&&(t=so.domain)&&t.exit();e=vo.get();)try{e()}catch(t){throw vo.head&&$r(),t}t&&t.enter()};Nr||wr||io||!uo||!fo?!oo&&lo&&lo.resolve?((eo=lo.resolve(void 0)).constructor=lo,no=Ir(eo.then,eo),$r=function(){no(yo)}):wr?$r=function(){so.nextTick(yo)}:(co=Ir(co,i),$r=function(){co(yo)}):(Zr=!0,to=fo.createTextNode(""),new uo(yo).observe(to,{characterData:!0}),$r=function(){to.data=Zr=!Zr}),ho=function(t){vo.head||$r(),vo.add(t)}}var go=ho,mo=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},bo=i.Promise,wo="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,So=!wo&&!wr&&"object"==typeof window&&"object"==typeof document;bo&&bo.prototype;var Ao,Oo,Eo,Po,_o,To,Lo,jo=yt("species"),Co=!1,xo=R(i.PromiseRejectionEvent),Io=Ie("Promise",(function(){var t=qt(bo),e=t!==String(bo);if(!e&&66===F)return!0;if(!F||F<51||!/native code/.test(t)){var n=new bo((function(t){t(1)})),r=function(t){t((function(){}),(function(){}))};if((n.constructor={})[jo]=r,!(Co=n.then((function(){}))instanceof r))return!0}return!e&&(So||wo)&&!xo})),Ro={CONSTRUCTOR:Io,REJECTION_EVENT:xo,SUBCLASSING:Co},ko=TypeError,No=function(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw ko("Bad Promise constructor");e=t,n=r})),this.resolve=Q(e),this.reject=Q(n)},Mo={f:function(t){return new No(t)}},Uo=Kr.set,Do="Promise",Ho=Ro.CONSTRUCTOR,Bo=Ro.REJECTION_EVENT,Wo=Ro.SUBCLASSING,zo=oe.getterFor(Do),Fo=oe.set,Go=bo&&bo.prototype,Vo=bo,Xo=Go,qo=i.TypeError,Yo=i.document,Jo=i.process,Ko=Mo.f,Qo=Ko,$o=!!(Yo&&Yo.createEvent&&i.dispatchEvent),Zo="unhandledrejection",ti=function(t){var e;return!(!N(t)||!R(e=t.then))&&e},ei=function(t,e){var n,r,o,i=e.value,a=1==e.state,c=a?t.ok:t.fail,u=t.resolve,f=t.reject,l=t.domain;try{c?(a||(2===e.rejection&&ai(e),e.rejection=1),!0===c?n=i:(l&&l.enter(),n=c(i),l&&(l.exit(),o=!0)),n===t.promise?f(qo("Promise-chain cycle")):(r=ti(n))?s(r,n,u,f):u(n)):f(i)}catch(t){l&&!o&&l.exit(),f(t)}},ni=function(t,e){t.notified||(t.notified=!0,go((function(){for(var n,r=t.reactions;n=r.get();)ei(n,t);t.notified=!1,e&&!t.rejection&&oi(t)})))},ri=function(t,e,n){var r,o;$o?((r=Yo.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),i.dispatchEvent(r)):r={promise:e,reason:n},!Bo&&(o=i["on"+t])?o(r):t===Zo&&function(t,e){try{1==arguments.length?console.error(t):console.error(t,e)}catch(t){}}("Unhandled promise rejection",n)},oi=function(t){s(Uo,i,(function(){var e,n=t.facade,r=t.value;if(ii(t)&&(e=mo((function(){wr?Jo.emit("unhandledRejection",r,n):ri(Zo,n,r)})),t.rejection=wr||ii(t)?2:1,e.error))throw e.value}))},ii=function(t){return 1!==t.rejection&&!t.parent},ai=function(t){s(Uo,i,(function(){var e=t.facade;wr?Jo.emit("rejectionHandled",e):ri("rejectionhandled",e,t.value)}))},ci=function(t,e,n){return function(r){t(e,r,n)}},ui=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,ni(t,!0))},fi=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw qo("Promise can't be resolved itself");var r=ti(e);r?go((function(){var n={done:!1};try{s(r,e,ci(fi,n,t),ci(ui,n,t))}catch(e){ui(n,e,t)}})):(t.value=e,t.state=1,ni(t,!1))}catch(e){ui({done:!1},e,t)}}};if(Ho&&(Xo=(Vo=function(t){!function(t,e){if(U(e,t))return t;throw Ar("Incorrect invocation")}(this,Xo),Q(t),s(Ao,this);var e=zo(this);try{t(ci(fi,e),ci(ui,e))}catch(t){ui(e,t)}}).prototype,(Ao=function(t){Fo(this,{type:Do,done:!1,notified:!1,parent:!1,reactions:new ro,rejection:!1,state:0,value:void 0})}).prototype=ae(Xo,"then",(function(t,e){var n=zo(this),r=Ko(Pr(this,Vo));return n.parent=!0,r.ok=!R(t)||t,r.fail=R(e)&&e,r.domain=wr?Jo.domain:void 0,0==n.state?n.reactions.add(r):go((function(){ei(r,n)})),r.promise})),Oo=function(){var t=new Ao,e=zo(t);this.promise=t,this.resolve=ci(fi,e),this.reject=ci(ui,e)},Mo.f=Ko=function(t){return t===Vo||undefined===t?new Oo(t):Qo(t)},R(bo)&&Go!==Object.prototype)){Eo=Go.then,Wo||ae(Go,"then",(function(t,e){var n=this;return new Vo((function(t,e){s(Eo,n,t,e)})).then(t,e)}),{unsafe:!0});try{delete Go.constructor}catch(t){}Qn&&Qn(Go,Xo)}ke({global:!0,constructor:!0,wrap:!0,forced:Ho},{Promise:Vo}),Xn(Vo,Do,!1),Lo=M(Do),c&&Lo&&!Lo[Sr]&&(Po=Lo,_o=Sr,(To={configurable:!0,get:function(){return this}}).get&&ie(To.get,_o,{getter:!0}),To.set&&ie(To.set,_o,{setter:!0}),Ut.f(Po,_o,To));var si=yt("iterator"),li=Array.prototype,pi=yt("iterator"),hi=function(t){if(!_(t))return $(t,pi)||$(t,"@@iterator")||kn[Je(t)]},di=TypeError,vi=function(t,e,n){var r,o;Ct(t);try{if(!(r=$(t,"return"))){if("throw"===e)throw n;return n}r=s(r,t)}catch(t){o=!0,r=t}if("throw"===e)throw n;if(o)throw r;return Ct(r),n},yi=TypeError,gi=function(t,e){this.stopped=t,this.result=e},mi=gi.prototype,bi=function(t,e,n){var r,o,i,a,c,u,f,l,p=n&&n.that,h=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_RECORD),v=!(!n||!n.IS_ITERATOR),y=!(!n||!n.INTERRUPTED),g=Ir(e,p),m=function(t){return r&&vi(r,"normal",t),new gi(!0,t)},b=function(t){return h?(Ct(t),y?g(t[0],t[1],m):g(t[0],t[1])):y?g(t,m):g(t)};if(d)r=t.iterator;else if(v)r=t;else{if(!(o=hi(t)))throw yi(J(t)+" is not iterable");if(void 0!==(l=o)&&(kn.Array===l||li[si]===l)){for(i=0,a=de(t);a>i;i++)if((c=b(t[i]))&&U(mi,c))return c;return new gi(!1)}r=function(t,e){var n=arguments.length<2?hi(t):e;if(Q(n))return Ct(s(n,t));throw di(J(t)+" is not iterable")}(t,o)}for(u=d?t.next:r.next;!(f=s(u,r)).done;){try{c=b(f.value)}catch(t){vi(r,"throw",t)}if("object"==typeof c&&c&&U(mi,c))return c}return new gi(!1)},wi=yt("iterator"),Si=!1;try{var Ai=0,Oi={next:function(){return{done:!!Ai++}},return:function(){Si=!0}};Oi[wi]=function(){return this},Array.from(Oi,(function(){throw 2}))}catch(t){}var Ei=Ro.CONSTRUCTOR||!function(t,e){if(!e&&!Si)return!1;var n=!1;try{var r={};r[wi]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(t){}return n}((function(t){bo.all(t).then(void 0,(function(){}))}));ke({target:"Promise",stat:!0,forced:Ei},{all:function(t){var e=this,n=Mo.f(e),r=n.resolve,o=n.reject,i=mo((function(){var n=Q(e.resolve),i=[],a=0,c=1;bi(t,(function(t){var u=a++,f=!1;c++,s(n,e,t).then((function(t){f||(f=!0,i[u]=t,--c||r(i))}),o)})),--c||r(i)}));return i.error&&o(i.value),n.promise}});var Pi=Ro.CONSTRUCTOR,_i=bo&&bo.prototype;if(ke({target:"Promise",proto:!0,forced:Pi,real:!0},{catch:function(t){return this.then(void 0,t)}}),R(bo)){var Ti=M("Promise").prototype.catch;_i.catch!==Ti&&ae(_i,"catch",Ti,{unsafe:!0})}ke({target:"Promise",stat:!0,forced:Ei},{race:function(t){var e=this,n=Mo.f(e),r=n.reject,o=mo((function(){var o=Q(e.resolve);bi(t,(function(t){s(o,e,t).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}}),ke({target:"Promise",stat:!0,forced:Ro.CONSTRUCTOR},{reject:function(t){var e=Mo.f(this);return s(e.reject,void 0,t),e.promise}});var Li=Ro.CONSTRUCTOR;M("Promise"),ke({target:"Promise",stat:!0,forced:Li},{resolve:function(t){return function(t,e){if(Ct(t),N(e)&&e.constructor===t)return e;var n=Mo.f(t);return(0,n.resolve)(e),n.promise}(this,t)}});var ji=String,Ci=function(t){if("Symbol"===Je(t))throw TypeError("Cannot convert a Symbol value to a string");return ji(t)},xi=b("".charAt),Ii=b("".charCodeAt),Ri=b("".slice),ki=function(t){return function(e,n){var r,o,i=Ci(L(e)),a=se(n),c=i.length;return a<0||a>=c?t?"":void 0:(r=Ii(i,a))<55296||r>56319||a+1===c||(o=Ii(i,a+1))<56320||o>57343?t?xi(i,a):r:t?Ri(i,a,a+2):o-56320+(r-55296<<10)+65536}},Ni={codeAt:ki(!1),charAt:ki(!0)}.charAt,Mi="String Iterator",Ui=oe.set,Di=oe.getterFor(Mi);cr(String,"String",(function(t){Ui(this,{type:Mi,string:Ci(t),index:0})}),(function(){var t,e=Di(this),n=e.string,r=e.index;return r>=n.length?ur(void 0,!0):(t=Ni(n,r),e.index+=t.length,ur(t,!1))}));var Hi={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},Bi=Ot("span").classList,Wi=Bi&&Bi.constructor&&Bi.constructor.prototype,zi=Wi===Object.prototype?void 0:Wi,Fi=yt("iterator"),Gi=yt("toStringTag"),Vi=hr.values,Xi=function(t,e){if(t){if(t[Fi]!==Vi)try{Dt(t,Fi,Vi)}catch(e){t[Fi]=Vi}if(t[Gi]||Dt(t,Gi,e),Hi[e])for(var n in hr)if(t[n]!==hr[n])try{Dt(t,n,hr[n])}catch(e){t[n]=hr[n]}}};for(var qi in Hi)Xi(i[qi]&&i[qi].prototype,qi);Xi(zi,"DOMTokenList");var Yi=function(){return Yi=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Yi.apply(this,arguments)},Ji={weixinJsSdkTicket:"",launchContainerQuery:".mazey-launch-app-selector",launchShowWeixinToBrowserImgUrl:"",canShowWeixinToBrowser:!1,extInfo:"",serviceAccountAppId:"",wexinServiceAccountAppId:"",openPlatformMobileAppId:"",genTagPrefixStr:"mazey-launch-app-btn-prefix-",launchShowWeixinToBrowserClassName:"mazey-launch-app-wx-to-browser",launchBtnClassName:"mazey-launch-app-inner-btn",launchBtnStyle:"",launchBtnText:"Launch App <br /><br /><br />",launchErrorLink:"",canContinuousUpdating:!1,onMenuShareTimelineOptions:void 0,onMenuShareAppMessageOptions:void 0,isConClosed:!0,isWxDebug:!1,canLaunchApp:function(){return!0},canFireErrorLinkDirectly:function(){return!1},launchBtnClick:function(){},launchReady:function(){}};return function(t){void 0===t&&(t=Ji);var e=Object.assign(Ji,t),n=e.weixinJsSdkTicket,r=e.launchContainerQuery,o=e.genTagPrefixStr,i=e.launchShowWeixinToBrowserImgUrl,a=e.canShowWeixinToBrowser,c=e.launchShowWeixinToBrowserClassName,u=e.launchBtnClassName,f=e.launchBtnStyle,s=e.launchBtnText,l=e.launchErrorLink,p=e.wexinServiceAccountAppId,h=e.openPlatformMobileAppId,d=e.canContinuousUpdating,v=e.onMenuShareTimelineOptions,y=e.onMenuShareAppMessageOptions,g=e.isConClosed,m=e.isWxDebug,b=e.canLaunchApp,w=e.canFireErrorLinkDirectly,S=e.launchBtnClick,A=e.launchReady,O=e.serviceAccountAppId,E=e.extInfo,P=window.mazey,_=window.sha1,T=window.wx,L=window.$||window.jQuery;P&&_&&T&&L||console.error("Launch App: wx or sha1 or $ or mazey is not found");var j=function(){},C=P.genCustomConsole("LaunchCon:",{isClosed:g});C.log("Launch App");var x={title:"",link:"",imgUrl:"",success:function(){},cancel:function(){}},I={title:"",desc:"",link:"",imgUrl:"",type:"",dataUrl:"",success:function(){},cancel:function(){}},R={title:document.title,link:location.href};x=Yi(Yi({},x),R),I=Yi(Yi({},I),R);var k=function(t,e,n){return void 0===t&&(t=""),void 0===e&&(e=""),void 0===n&&(n="button"),"<style>.".concat(u,"{")+"opacity: 0;width: 100%;height: 100%;backgroud: transparent;color: #300f54;border: none;box-sizing: border-box;text-align: center;vertical-align: middle;"+f+e+"}</style>"+"<".concat(n,' class="').concat(u,'"')+(t&&"button"===n?' onclick="'.concat(t,'"'):"")+(t&&"a"===n?' target="_self" href="'.concat(t,'"'):"")+">"+s+"</".concat(n,">")},N=k();function M(){P.addStyle('.mazey-launch-app-mask{position:fixed;top:0;right:0;bottom:0;left:0;background-color:rgba(0, 0, 0, .5);text-align:right;font-size:0;white-space:nowrap;overflow:auto;z-index:999;}.mazey-launch-app-img{display:inline-block;vertical-align:middle;text-align:left;font-size:14px;white-space:normal;width:50vw;margin:0.5rem 0.5rem 0 0;}.mazey-launch-app-img:after{content:"";display:inline-block;height:100%;vertical-align:middle;}',{id:"mazey-launch-app-mask-style"}),window.LAUNCH_APP_HIDE_WEIXIN_BROWSER||(window.LAUNCH_APP_HIDE_WEIXIN_BROWSER=function(){L(".mazey-launch-app-mask").hide()}),0===L(".mazey-launch-app-mask").length?L("body").append("<div class='mazey-launch-app-mask' onclick='window.LAUNCH_APP_HIDE_WEIXIN_BROWSER()'><img "+"class='mazey-launch-app-img ".concat(c,"' ")+"src='".concat(i,"' ")+"alt='Launch App' /></div>"):L(".mazey-launch-app-mask").show()}function U(){C.log("renderWeixinLaunchTemplate"),!O&&p&&(console.warn("wexinServiceAccountAppId will be deprecated, use serviceAccountAppId instead."),O=p),function(t,e){void 0===t&&(t=""),void 0===e&&(e=""),C.log("renderWXOpenLaunchApp"),Promise.all([Promise.resolve(n||window.LAUNCH_APP_WEIXIN_JS_SDK_TICKET),Promise.resolve(_)]).then((function(n){C.log("allRes",n);var i=n[0],c=n[1],u=P.generateRndNum(7),f=i,s=(new Date).getTime(),p=c("jsapi_ticket="+f+"&noncestr="+u+"×tamp="+s+"&url="+location.href);return T.config({debug:m,appId:t,timestamp:s,nonceStr:u,signature:p,jsApiList:["showOptionMenu","onMenuShareTimeline","onMenuShareAppMessage"],openTagList:["wx-open-launch-app"]}),T.ready((function(){v&&(C.log("onMenuShareTimelineOptions",v),T.onMenuShareTimeline(v)),window.LAUNCH_APP_SHARE_TIMELINE=function(t){t=Yi(Yi({},x),t),C.log("window LAUNCH_APP_SHARE_TIMELINE",t),T.onMenuShareTimeline(t)},y&&(C.log("onMenuShareAppMessageOptions",y),T.onMenuShareAppMessage(y)),window.LAUNCH_APP_SHARE_APP_MESSAGE=function(t){t=Yi(Yi({},I),t),C.log("window LAUNCH_APP_SHARE_APP_MESSAGE",t),T.onMenuShareAppMessage(t)},window.LAUNCH_APP_READY=!0,A&&A();var t=function(){var t=L(r);C.log("containers",r,t,t.length),t.length>0&&t.each((function(t,n){var r=L(n).attr("data-launch-app-key");if(!r){var i=L(n).parents("[data-launch-app-key]:eq(0)");i.length>0&&(r=i.attr("data-launch-app-key"),C.log("keyEle",i,r))}r||(r=t);var c="mazey-launch-app-tag-".concat(r),u=L(".".concat(c," wx-open-launch-app")),f=L(n).attr("data-launch-app-ext-info");if(!f){var s=L(n).parents("[data-launch-app-ext-info]:eq(0)");s.length>0&&(f=s.attr("data-launch-app-ext-info"),C.log("eleExtInfoEle parents",s,f))}f&&(E=f);var p=L(n).attr("data-launch-app-error-link");if(!p){var h=L(n).parents("[data-launch-app-error-link]:eq(0)");h.length>0&&(p=h.attr("data-launch-app-error-link"),C.log("eleErrorLinkEle parents",h,p))}var d=l;p&&(d=p),0===u.length&&(L(n).addClass(c),C.log("success:",c),function(t){var n=o,r=n+t,i="<wx-open-launch-app id='"+r+"' appid='"+e+"' extinfo='".concat(E)+"' style='z-index:99;position:absolute;width:100%;height:100%;opacity:1;background:transparent;overflow:hidden;left:0;'><script type='text/wxtag-template'>"+N+"<\/script></wx-open-launch-app>";L("."+t+":eq(0)").append(i);var c=document.getElementById(r);c&&(c.addEventListener("ready",(function(t){C.log("ready event",t)})),c.addEventListener("launch",(function(t){C.log("launch event",t),t.detail&&t.detail.extInfo&&C.log("launch extInfo",t.detail.extInfo)})),c.addEventListener("error",(function(t){C.error(t.detail),L("[id^='"+n+"']").hide(),a&&M(),d&&(C.log("realErrorLink",d),location.href=d)})),c.addEventListener("click",(function(t){C.log("click event",t),S&&S()})))}(c))}))};t(),j=t})),T.error((function(t){C.error(t)})),"success:launch_app"})).catch((function(t){C.error(t)}))}(O,h)}function D(t){if(C.log("appUpdated",t),!window.LAUNCH_APP_LOAD&&b(t)&&(U(),window.LAUNCH_APP_LOAD=!0),d&&window.LAUNCH_APP_LOAD&&b(t)&&j(),w()){var e=L(r);e.length>0&&e.each((function(t,e){var n=L(e).children("."+u);if(!n||!n.length){var r=L(e).attr("data-launch-app-error-link");if(!r){var o=L(e).parents("[data-launch-app-error-link]:eq(0)");o.length>0&&(r=o.attr("data-launch-app-error-link"))}if(r&&"string"==typeof r&&r.length){var i=k(r,"position:absolute;left:0;z-index:999;","a");L(e).append(i)}}}))}}function H(){C.log("appBeforeDestroy",H),window.LAUNCH_APP_LOAD=null,window.LAUNCH_APP_HIDE_WEIXIN_BROWSER=null}return window.LAUNCH_APP_UPDATE=D,window.LAUNCH_APP_BEFORE_DESTROY=H,window.LAUNCH_APP_SHOW_WEIXIN_TO_BROWSER=M,{LAUNCH_APP_UPDATE:D,LAUNCH_APP_BEFORE_DESTROY:H,LAUNCH_APP_SHOW_WEIXIN_TO_BROWSER:M,LAUNCH_APP_SHARE_TIMELINE:function(t){C.log("opt",t)},LAUNCH_APP_SHARE_APP_MESSAGE:function(t){C.log("opt",t)},start:D,update:D,destroy:H}}}();
|
|
6
|
+
var LAUNCH_APP=function(){"use strict";var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function e(t,e){return t(e={exports:{}},e.exports),e.exports}var n,r,o=function(t){return t&&t.Math==Math&&t},i=o("object"==typeof globalThis&&globalThis)||o("object"==typeof window&&window)||o("object"==typeof self&&self)||o("object"==typeof t&&t)||function(){return this}()||Function("return this")(),c=function(t){try{return!!t()}catch(t){return!0}},a=!c((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),u=!c((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),f=Function.prototype.call,s=u?f.bind(f):function(){return f.apply(f,arguments)},l={}.propertyIsEnumerable,p=Object.getOwnPropertyDescriptor,h=p&&!l.call({1:2},1)?function(t){var e=p(this,t);return!!e&&e.enumerable}:l,d={f:h},v=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},g=Function.prototype,y=g.call,m=u&&g.bind.bind(y,y),b=u?m:function(t){return function(){return y.apply(t,arguments)}},w=b({}.toString),S=b("".slice),O=function(t){return S(w(t),8,-1)},E=Object,x=b("".split),A=c((function(){return!E("z").propertyIsEnumerable(0)}))?function(t){return"String"==O(t)?x(t,""):E(t)}:E,T=function(t){return null==t},j=TypeError,P=function(t){if(T(t))throw j("Can't call method on "+t);return t},I=function(t){return A(P(t))},_="object"==typeof document&&document.all,R={all:_,IS_HTMLDDA:void 0===_&&void 0!==_},L=R.all,C=R.IS_HTMLDDA?function(t){return"function"==typeof t||t===L}:function(t){return"function"==typeof t},N=R.all,M=R.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:C(t)||t===N}:function(t){return"object"==typeof t?null!==t:C(t)},k=function(t,e){return arguments.length<2?(n=i[t],C(n)?n:void 0):i[t]&&i[t][e];var n},D=b({}.isPrototypeOf),U="undefined"!=typeof navigator&&String(navigator.userAgent)||"",F=i.process,H=i.Deno,B=F&&F.versions||H&&H.version,W=B&&B.v8;W&&(r=(n=W.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!r&&U&&(!(n=U.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=U.match(/Chrome\/(\d+)/))&&(r=+n[1]);var G=r,z=!!Object.getOwnPropertySymbols&&!c((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&G&&G<41})),V=z&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,$=Object,Y=V?function(t){return"symbol"==typeof t}:function(t){var e=k("Symbol");return C(e)&&D(e.prototype,$(t))},X=String,q=function(t){try{return X(t)}catch(t){return"Object"}},K=TypeError,J=function(t){if(C(t))return t;throw K(q(t)+" is not a function")},Q=function(t,e){var n=t[e];return T(n)?void 0:J(n)},Z=TypeError,tt=Object.defineProperty,et=function(t,e){try{tt(i,t,{value:e,configurable:!0,writable:!0})}catch(n){i[t]=e}return e},nt="__core-js_shared__",rt=i[nt]||et(nt,{}),ot=e((function(t){(t.exports=function(t,e){return rt[t]||(rt[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.30.1",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.30.1/LICENSE",source:"https://github.com/zloirock/core-js"})})),it=Object,ct=function(t){return it(P(t))},at=b({}.hasOwnProperty),ut=Object.hasOwn||function(t,e){return at(ct(t),e)},ft=0,st=Math.random(),lt=b(1..toString),pt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+lt(++ft+st,36)},ht=i.Symbol,dt=ot("wks"),vt=V?ht.for||ht:ht&&ht.withoutSetter||pt,gt=function(t){return ut(dt,t)||(dt[t]=z&&ut(ht,t)?ht[t]:vt("Symbol."+t)),dt[t]},yt=TypeError,mt=gt("toPrimitive"),bt=function(t,e){if(!M(t)||Y(t))return t;var n,r=Q(t,mt);if(r){if(void 0===e&&(e="default"),n=s(r,t,e),!M(n)||Y(n))return n;throw yt("Can't convert object to primitive value")}return void 0===e&&(e="number"),function(t,e){var n,r;if("string"===e&&C(n=t.toString)&&!M(r=s(n,t)))return r;if(C(n=t.valueOf)&&!M(r=s(n,t)))return r;if("string"!==e&&C(n=t.toString)&&!M(r=s(n,t)))return r;throw Z("Can't convert object to primitive value")}(t,e)},wt=function(t){var e=bt(t,"string");return Y(e)?e:e+""},St=i.document,Ot=M(St)&&M(St.createElement),Et=function(t){return Ot?St.createElement(t):{}},xt=!a&&!c((function(){return 7!=Object.defineProperty(Et("div"),"a",{get:function(){return 7}}).a})),At=Object.getOwnPropertyDescriptor,Tt=a?At:function(t,e){if(t=I(t),e=wt(e),xt)try{return At(t,e)}catch(t){}if(ut(t,e))return v(!s(d.f,t,e),t[e])},jt={f:Tt},Pt=a&&c((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),It=String,_t=TypeError,Rt=function(t){if(M(t))return t;throw _t(It(t)+" is not an object")},Lt=TypeError,Ct=Object.defineProperty,Nt=Object.getOwnPropertyDescriptor,Mt="enumerable",kt="configurable",Dt="writable",Ut=a?Pt?function(t,e,n){if(Rt(t),e=wt(e),Rt(n),"function"==typeof t&&"prototype"===e&&"value"in n&&Dt in n&&!n[Dt]){var r=Nt(t,e);r&&r[Dt]&&(t[e]=n.value,n={configurable:kt in n?n[kt]:r[kt],enumerable:Mt in n?n[Mt]:r[Mt],writable:!1})}return Ct(t,e,n)}:Ct:function(t,e,n){if(Rt(t),e=wt(e),Rt(n),xt)try{return Ct(t,e,n)}catch(t){}if("get"in n||"set"in n)throw Lt("Accessors not supported");return"value"in n&&(t[e]=n.value),t},Ft={f:Ut},Ht=a?function(t,e,n){return Ft.f(t,e,v(1,n))}:function(t,e,n){return t[e]=n,t},Bt=Function.prototype,Wt=a&&Object.getOwnPropertyDescriptor,Gt=ut(Bt,"name"),zt={EXISTS:Gt,PROPER:Gt&&"something"===function(){}.name,CONFIGURABLE:Gt&&(!a||a&&Wt(Bt,"name").configurable)},Vt=b(Function.toString);C(rt.inspectSource)||(rt.inspectSource=function(t){return Vt(t)});var $t,Yt,Xt,qt=rt.inspectSource,Kt=i.WeakMap,Jt=C(Kt)&&/native code/.test(String(Kt)),Qt=ot("keys"),Zt=function(t){return Qt[t]||(Qt[t]=pt(t))},te={},ee="Object already initialized",ne=i.TypeError,re=i.WeakMap;if(Jt||rt.state){var oe=rt.state||(rt.state=new re);oe.get=oe.get,oe.has=oe.has,oe.set=oe.set,$t=function(t,e){if(oe.has(t))throw ne(ee);return e.facade=t,oe.set(t,e),e},Yt=function(t){return oe.get(t)||{}},Xt=function(t){return oe.has(t)}}else{var ie=Zt("state");te[ie]=!0,$t=function(t,e){if(ut(t,ie))throw ne(ee);return e.facade=t,Ht(t,ie,e),e},Yt=function(t){return ut(t,ie)?t[ie]:{}},Xt=function(t){return ut(t,ie)}}var ce={set:$t,get:Yt,has:Xt,enforce:function(t){return Xt(t)?Yt(t):$t(t,{})},getterFor:function(t){return function(e){var n;if(!M(e)||(n=Yt(e)).type!==t)throw ne("Incompatible receiver, "+t+" required");return n}}},ae=e((function(t){var e=zt.CONFIGURABLE,n=ce.enforce,r=ce.get,o=String,i=Object.defineProperty,u=b("".slice),f=b("".replace),s=b([].join),l=a&&!c((function(){return 8!==i((function(){}),"length",{value:8}).length})),p=String(String).split("String"),h=t.exports=function(t,r,c){"Symbol("===u(o(r),0,7)&&(r="["+f(o(r),/^Symbol\(([^)]*)\)/,"$1")+"]"),c&&c.getter&&(r="get "+r),c&&c.setter&&(r="set "+r),(!ut(t,"name")||e&&t.name!==r)&&(a?i(t,"name",{value:r,configurable:!0}):t.name=r),l&&c&&ut(c,"arity")&&t.length!==c.arity&&i(t,"length",{value:c.arity});try{c&&ut(c,"constructor")&&c.constructor?a&&i(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var h=n(t);return ut(h,"source")||(h.source=s(p,"string"==typeof r?r:"")),t};Function.prototype.toString=h((function(){return C(this)&&r(this).source||qt(this)}),"toString")})),ue=function(t,e,n,r){r||(r={});var o=r.enumerable,i=void 0!==r.name?r.name:e;if(C(n)&&ae(n,i,r),r.global)o?t[e]=n:et(e,n);else{try{r.unsafe?t[e]&&(o=!0):delete t[e]}catch(t){}o?t[e]=n:Ft.f(t,e,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return t},fe=Math.ceil,se=Math.floor,le=Math.trunc||function(t){var e=+t;return(e>0?se:fe)(e)},pe=function(t){var e=+t;return e!=e||0===e?0:le(e)},he=Math.max,de=Math.min,ve=Math.min,ge=function(t){return(e=t.length)>0?ve(pe(e),9007199254740991):0;var e},ye=function(t){return function(e,n,r){var o,i=I(e),c=ge(i),a=function(t,e){var n=pe(t);return n<0?he(n+e,0):de(n,e)}(r,c);if(t&&n!=n){for(;c>a;)if((o=i[a++])!=o)return!0}else for(;c>a;a++)if((t||a in i)&&i[a]===n)return t||a||0;return!t&&-1}},me={includes:ye(!0),indexOf:ye(!1)}.indexOf,be=b([].push),we=function(t,e){var n,r=I(t),o=0,i=[];for(n in r)!ut(te,n)&&ut(r,n)&&be(i,n);for(;e.length>o;)ut(r,n=e[o++])&&(~me(i,n)||be(i,n));return i},Se=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Oe=Se.concat("length","prototype"),Ee=Object.getOwnPropertyNames||function(t){return we(t,Oe)},xe={f:Ee},Ae={f:Object.getOwnPropertySymbols},Te=b([].concat),je=k("Reflect","ownKeys")||function(t){var e=xe.f(Rt(t)),n=Ae.f;return n?Te(e,n(t)):e},Pe=function(t,e,n){for(var r=je(e),o=Ft.f,i=jt.f,c=0;c<r.length;c++){var a=r[c];ut(t,a)||n&&ut(n,a)||o(t,a,i(e,a))}},Ie=/#|\.prototype\./,_e=function(t,e){var n=Le[Re(t)];return n==Ne||n!=Ce&&(C(e)?c(e):!!e)},Re=_e.normalize=function(t){return String(t).replace(Ie,".").toLowerCase()},Le=_e.data={},Ce=_e.NATIVE="N",Ne=_e.POLYFILL="P",Me=_e,ke=jt.f,De=function(t,e){var n,r,o,c,a,u=t.target,f=t.global,s=t.stat;if(n=f?i:s?i[u]||et(u,{}):(i[u]||{}).prototype)for(r in e){if(c=e[r],o=t.dontCallGetSet?(a=ke(n,r))&&a.value:n[r],!Me(f?r:u+(s?".":"#")+r,t.forced)&&void 0!==o){if(typeof c==typeof o)continue;Pe(c,o)}(t.sham||o&&o.sham)&&Ht(c,"sham",!0),ue(n,r,c,t)}},Ue=Object.keys||function(t){return we(t,Se)},Fe=Object.assign,He=Object.defineProperty,Be=b([].concat),We=!Fe||c((function(){if(a&&1!==Fe({b:1},Fe(He({},"a",{enumerable:!0,get:function(){He(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach((function(t){e[t]=t})),7!=Fe({},t)[n]||Ue(Fe({},e)).join("")!=r}))?function(t,e){for(var n=ct(t),r=arguments.length,o=1,i=Ae.f,c=d.f;r>o;)for(var u,f=A(arguments[o++]),l=i?Be(Ue(f),i(f)):Ue(f),p=l.length,h=0;p>h;)u=l[h++],a&&!s(c,f,u)||(n[u]=f[u]);return n}:Fe;De({target:"Object",stat:!0,arity:2,forced:Object.assign!==We},{assign:We});var Ge=Array.isArray||function(t){return"Array"==O(t)},ze=TypeError,Ve=function(t){if(t>9007199254740991)throw ze("Maximum allowed index exceeded");return t},$e=function(t,e,n){var r=wt(e);r in t?Ft.f(t,r,v(0,n)):t[r]=n},Ye={};Ye[gt("toStringTag")]="z";var Xe="[object z]"===String(Ye),qe=gt("toStringTag"),Ke=Object,Je="Arguments"==O(function(){return arguments}()),Qe=Xe?O:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Ke(t),qe))?n:Je?O(e):"Object"==(r=O(e))&&C(e.callee)?"Arguments":r},Ze=function(){},tn=[],en=k("Reflect","construct"),nn=/^\s*(?:class|function)\b/,rn=b(nn.exec),on=!nn.exec(Ze),cn=function(t){if(!C(t))return!1;try{return en(Ze,tn,t),!0}catch(t){return!1}},an=function(t){if(!C(t))return!1;switch(Qe(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return on||!!rn(nn,qt(t))}catch(t){return!0}};an.sham=!0;var un,fn=!en||c((function(){var t;return cn(cn.call)||!cn(Object)||!cn((function(){t=!0}))||t}))?an:cn,sn=gt("species"),ln=Array,pn=function(t,e){return new(function(t){var e;return Ge(t)&&(e=t.constructor,(fn(e)&&(e===ln||Ge(e.prototype))||M(e)&&null===(e=e[sn]))&&(e=void 0)),void 0===e?ln:e}(t))(0===e?0:e)},hn=gt("species"),dn=gt("isConcatSpreadable"),vn=G>=51||!c((function(){var t=[];return t[dn]=!1,t.concat()[0]!==t})),gn=function(t){if(!M(t))return!1;var e=t[dn];return void 0!==e?!!e:Ge(t)},yn=!(vn&&(un="concat",G>=51||!c((function(){var t=[];return(t.constructor={})[hn]=function(){return{foo:1}},1!==t[un](Boolean).foo}))));De({target:"Array",proto:!0,arity:1,forced:yn},{concat:function(t){var e,n,r,o,i,c=ct(this),a=pn(c,0),u=0;for(e=-1,r=arguments.length;e<r;e++)if(gn(i=-1===e?c:arguments[e]))for(o=ge(i),Ve(u+o),n=0;n<o;n++,u++)n in i&&$e(a,u,i[n]);else Ve(u+1),$e(a,u++,i);return a.length=u,a}});var mn,bn=a&&!Pt?Object.defineProperties:function(t,e){Rt(t);for(var n,r=I(e),o=Ue(e),i=o.length,c=0;i>c;)Ft.f(t,n=o[c++],r[n]);return t},wn={f:bn},Sn=k("document","documentElement"),On="prototype",En="script",xn=Zt("IE_PROTO"),An=function(){},Tn=function(t){return"<"+En+">"+t+"</"+En+">"},jn=function(t){t.write(Tn("")),t.close();var e=t.parentWindow.Object;return t=null,e},Pn=function(){try{mn=new ActiveXObject("htmlfile")}catch(t){}var t,e,n;Pn="undefined"!=typeof document?document.domain&&mn?jn(mn):(e=Et("iframe"),n="java"+En+":",e.style.display="none",Sn.appendChild(e),e.src=String(n),(t=e.contentWindow.document).open(),t.write(Tn("document.F=Object")),t.close(),t.F):jn(mn);for(var r=Se.length;r--;)delete Pn[On][Se[r]];return Pn()};te[xn]=!0;var In=Object.create||function(t,e){var n;return null!==t?(An[On]=Rt(t),n=new An,An[On]=null,n[xn]=t):n=Pn(),void 0===e?n:wn.f(n,e)},_n=Ft.f,Rn=gt("unscopables"),Ln=Array.prototype;null==Ln[Rn]&&_n(Ln,Rn,{configurable:!0,value:In(null)});var Cn,Nn,Mn,kn=function(t){Ln[Rn][t]=!0},Dn={},Un=!c((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),Fn=Zt("IE_PROTO"),Hn=Object,Bn=Hn.prototype,Wn=Un?Hn.getPrototypeOf:function(t){var e=ct(t);if(ut(e,Fn))return e[Fn];var n=e.constructor;return C(n)&&e instanceof n?n.prototype:e instanceof Hn?Bn:null},Gn=gt("iterator"),zn=!1;[].keys&&("next"in(Mn=[].keys())?(Nn=Wn(Wn(Mn)))!==Object.prototype&&(Cn=Nn):zn=!0);var Vn=!M(Cn)||c((function(){var t={};return Cn[Gn].call(t)!==t}));Vn&&(Cn={}),C(Cn[Gn])||ue(Cn,Gn,(function(){return this}));var $n={IteratorPrototype:Cn,BUGGY_SAFARI_ITERATORS:zn},Yn=Ft.f,Xn=gt("toStringTag"),qn=function(t,e,n){t&&!n&&(t=t.prototype),t&&!ut(t,Xn)&&Yn(t,Xn,{configurable:!0,value:e})},Kn=$n.IteratorPrototype,Jn=function(){return this},Qn=String,Zn=TypeError,tr=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{t=function(t,e,n){try{return b(J(Object.getOwnPropertyDescriptor(t,e)[n]))}catch(t){}}(Object.prototype,"__proto__","set"),t(n,[]),e=n instanceof Array}catch(t){}return function(n,r){return Rt(n),function(t){if("object"==typeof t||C(t))return t;throw Zn("Can't set "+Qn(t)+" as a prototype")}(r),e?t(n,r):n.__proto__=r,n}}():void 0),er=zt.PROPER,nr=zt.CONFIGURABLE,rr=$n.IteratorPrototype,or=$n.BUGGY_SAFARI_ITERATORS,ir=gt("iterator"),cr="keys",ar="values",ur="entries",fr=function(){return this},sr=function(t,e,n,r,o,i,c){!function(t,e,n,r){var o=e+" Iterator";t.prototype=In(Kn,{next:v(+!r,n)}),qn(t,o,!1),Dn[o]=Jn}(n,e,r);var a,u,f,l=function(t){if(t===o&&y)return y;if(!or&&t in d)return d[t];switch(t){case cr:case ar:case ur:return function(){return new n(this,t)}}return function(){return new n(this)}},p=e+" Iterator",h=!1,d=t.prototype,g=d[ir]||d["@@iterator"]||o&&d[o],y=!or&&g||l(o),m="Array"==e&&d.entries||g;if(m&&(a=Wn(m.call(new t)))!==Object.prototype&&a.next&&(Wn(a)!==rr&&(tr?tr(a,rr):C(a[ir])||ue(a,ir,fr)),qn(a,p,!0)),er&&o==ar&&g&&g.name!==ar&&(nr?Ht(d,"name",ar):(h=!0,y=function(){return s(g,this)})),o)if(u={values:l(ar),keys:i?y:l(cr),entries:l(ur)},c)for(f in u)(or||h||!(f in d))&&ue(d,f,u[f]);else De({target:e,proto:!0,forced:or||h},u);return d[ir]!==y&&ue(d,ir,y,{name:o}),Dn[e]=y,u},lr=function(t,e){return{value:t,done:e}},pr=Ft.f,hr="Array Iterator",dr=ce.set,vr=ce.getterFor(hr),gr=sr(Array,"Array",(function(t,e){dr(this,{type:hr,target:I(t),index:0,kind:e})}),(function(){var t=vr(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,lr(void 0,!0)):lr("keys"==n?r:"values"==n?e[r]:[r,e[r]],!1)}),"values"),yr=Dn.Arguments=Dn.Array;if(kn("keys"),kn("values"),kn("entries"),a&&"values"!==yr.name)try{pr(yr,"name",{value:"values"})}catch(t){}var mr=Xe?{}.toString:function(){return"[object "+Qe(this)+"]"};Xe||ue(Object.prototype,"toString",mr,{unsafe:!0});var br,wr,Sr,Or,Er="undefined"!=typeof process&&"process"==O(process),xr=gt("species"),Ar=TypeError,Tr=TypeError,jr=gt("species"),Pr=function(t,e){var n,r=Rt(t).constructor;return void 0===r||T(n=Rt(r)[jr])?e:function(t){if(fn(t))return t;throw Tr(q(t)+" is not a constructor")}(n)},Ir=Function.prototype,_r=Ir.apply,Rr=Ir.call,Lr="object"==typeof Reflect&&Reflect.apply||(u?Rr.bind(_r):function(){return Rr.apply(_r,arguments)}),Cr=function(t){if("Function"===O(t))return b(t)},Nr=Cr(Cr.bind),Mr=function(t,e){return J(t),void 0===e?t:u?Nr(t,e):function(){return t.apply(e,arguments)}},kr=b([].slice),Dr=TypeError,Ur=/(?:ipad|iphone|ipod).*applewebkit/i.test(U),Fr=i.setImmediate,Hr=i.clearImmediate,Br=i.process,Wr=i.Dispatch,Gr=i.Function,zr=i.MessageChannel,Vr=i.String,$r=0,Yr={},Xr="onreadystatechange";c((function(){br=i.location}));var qr=function(t){if(ut(Yr,t)){var e=Yr[t];delete Yr[t],e()}},Kr=function(t){return function(){qr(t)}},Jr=function(t){qr(t.data)},Qr=function(t){i.postMessage(Vr(t),br.protocol+"//"+br.host)};Fr&&Hr||(Fr=function(t){!function(t,e){if(t<e)throw Dr("Not enough arguments")}(arguments.length,1);var e=C(t)?t:Gr(t),n=kr(arguments,1);return Yr[++$r]=function(){Lr(e,void 0,n)},wr($r),$r},Hr=function(t){delete Yr[t]},Er?wr=function(t){Br.nextTick(Kr(t))}:Wr&&Wr.now?wr=function(t){Wr.now(Kr(t))}:zr&&!Ur?(Or=(Sr=new zr).port2,Sr.port1.onmessage=Jr,wr=Mr(Or.postMessage,Or)):i.addEventListener&&C(i.postMessage)&&!i.importScripts&&br&&"file:"!==br.protocol&&!c(Qr)?(wr=Qr,i.addEventListener("message",Jr,!1)):wr=Xr in Et("script")?function(t){Sn.appendChild(Et("script"))[Xr]=function(){Sn.removeChild(this),qr(t)}}:function(t){setTimeout(Kr(t),0)});var Zr={set:Fr,clear:Hr},to=function(){this.head=null,this.tail=null};to.prototype={add:function(t){var e={item:t,next:null},n=this.tail;n?n.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return null===(this.head=t.next)&&(this.tail=null),t.item}};var eo,no,ro,oo,io,co=to,ao=/ipad|iphone|ipod/i.test(U)&&"undefined"!=typeof Pebble,uo=/web0s(?!.*chrome)/i.test(U),fo=jt.f,so=Zr.set,lo=i.MutationObserver||i.WebKitMutationObserver,po=i.document,ho=i.process,vo=i.Promise,go=fo(i,"queueMicrotask"),yo=go&&go.value;if(!yo){var mo=new co,bo=function(){var t,e;for(Er&&(t=ho.domain)&&t.exit();e=mo.get();)try{e()}catch(t){throw mo.head&&eo(),t}t&&t.enter()};Ur||Er||uo||!lo||!po?!ao&&vo&&vo.resolve?((oo=vo.resolve(void 0)).constructor=vo,io=Mr(oo.then,oo),eo=function(){io(bo)}):Er?eo=function(){ho.nextTick(bo)}:(so=Mr(so,i),eo=function(){so(bo)}):(no=!0,ro=po.createTextNode(""),new lo(bo).observe(ro,{characterData:!0}),eo=function(){ro.data=no=!no}),yo=function(t){mo.head||eo(),mo.add(t)}}var wo=yo,So=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},Oo=i.Promise,Eo="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,xo=!Eo&&!Er&&"object"==typeof window&&"object"==typeof document;Oo&&Oo.prototype;var Ao,To,jo,Po,Io,_o,Ro,Lo=gt("species"),Co=!1,No=C(i.PromiseRejectionEvent),Mo=Me("Promise",(function(){var t=qt(Oo),e=t!==String(Oo);if(!e&&66===G)return!0;if(!G||G<51||!/native code/.test(t)){var n=new Oo((function(t){t(1)})),r=function(t){t((function(){}),(function(){}))};if((n.constructor={})[Lo]=r,!(Co=n.then((function(){}))instanceof r))return!0}return!e&&(xo||Eo)&&!No})),ko={CONSTRUCTOR:Mo,REJECTION_EVENT:No,SUBCLASSING:Co},Do=TypeError,Uo=function(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw Do("Bad Promise constructor");e=t,n=r})),this.resolve=J(e),this.reject=J(n)},Fo={f:function(t){return new Uo(t)}},Ho=Zr.set,Bo="Promise",Wo=ko.CONSTRUCTOR,Go=ko.REJECTION_EVENT,zo=ko.SUBCLASSING,Vo=ce.getterFor(Bo),$o=ce.set,Yo=Oo&&Oo.prototype,Xo=Oo,qo=Yo,Ko=i.TypeError,Jo=i.document,Qo=i.process,Zo=Fo.f,ti=Zo,ei=!!(Jo&&Jo.createEvent&&i.dispatchEvent),ni="unhandledrejection",ri=function(t){var e;return!(!M(t)||!C(e=t.then))&&e},oi=function(t,e){var n,r,o,i=e.value,c=1==e.state,a=c?t.ok:t.fail,u=t.resolve,f=t.reject,l=t.domain;try{a?(c||(2===e.rejection&&fi(e),e.rejection=1),!0===a?n=i:(l&&l.enter(),n=a(i),l&&(l.exit(),o=!0)),n===t.promise?f(Ko("Promise-chain cycle")):(r=ri(n))?s(r,n,u,f):u(n)):f(i)}catch(t){l&&!o&&l.exit(),f(t)}},ii=function(t,e){t.notified||(t.notified=!0,wo((function(){for(var n,r=t.reactions;n=r.get();)oi(n,t);t.notified=!1,e&&!t.rejection&&ai(t)})))},ci=function(t,e,n){var r,o;ei?((r=Jo.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),i.dispatchEvent(r)):r={promise:e,reason:n},!Go&&(o=i["on"+t])?o(r):t===ni&&function(t,e){try{1==arguments.length?console.error(t):console.error(t,e)}catch(t){}}("Unhandled promise rejection",n)},ai=function(t){s(Ho,i,(function(){var e,n=t.facade,r=t.value;if(ui(t)&&(e=So((function(){Er?Qo.emit("unhandledRejection",r,n):ci(ni,n,r)})),t.rejection=Er||ui(t)?2:1,e.error))throw e.value}))},ui=function(t){return 1!==t.rejection&&!t.parent},fi=function(t){s(Ho,i,(function(){var e=t.facade;Er?Qo.emit("rejectionHandled",e):ci("rejectionhandled",e,t.value)}))},si=function(t,e,n){return function(r){t(e,r,n)}},li=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,ii(t,!0))},pi=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw Ko("Promise can't be resolved itself");var r=ri(e);r?wo((function(){var n={done:!1};try{s(r,e,si(pi,n,t),si(li,n,t))}catch(e){li(n,e,t)}})):(t.value=e,t.state=1,ii(t,!1))}catch(e){li({done:!1},e,t)}}};if(Wo&&(Xo=function(t){!function(t,e){if(D(e,t))return t;throw Ar("Incorrect invocation")}(this,qo),J(t),s(Ao,this);var e=Vo(this);try{t(si(pi,e),si(li,e))}catch(t){li(e,t)}},qo=Xo.prototype,(Ao=function(t){$o(this,{type:Bo,done:!1,notified:!1,parent:!1,reactions:new co,rejection:!1,state:0,value:void 0})}).prototype=ue(qo,"then",(function(t,e){var n=Vo(this),r=Zo(Pr(this,Xo));return n.parent=!0,r.ok=!C(t)||t,r.fail=C(e)&&e,r.domain=Er?Qo.domain:void 0,0==n.state?n.reactions.add(r):wo((function(){oi(r,n)})),r.promise})),To=function(){var t=new Ao,e=Vo(t);this.promise=t,this.resolve=si(pi,e),this.reject=si(li,e)},Fo.f=Zo=function(t){return t===Xo||undefined===t?new To(t):ti(t)},C(Oo)&&Yo!==Object.prototype)){jo=Yo.then,zo||ue(Yo,"then",(function(t,e){var n=this;return new Xo((function(t,e){s(jo,n,t,e)})).then(t,e)}),{unsafe:!0});try{delete Yo.constructor}catch(t){}tr&&tr(Yo,qo)}De({global:!0,constructor:!0,wrap:!0,forced:Wo},{Promise:Xo}),qn(Xo,Bo,!1),Ro=k(Bo),a&&Ro&&!Ro[xr]&&(Po=Ro,Io=xr,(_o={configurable:!0,get:function(){return this}}).get&&ae(_o.get,Io,{getter:!0}),_o.set&&ae(_o.set,Io,{setter:!0}),Ft.f(Po,Io,_o));var hi=gt("iterator"),di=Array.prototype,vi=gt("iterator"),gi=function(t){if(!T(t))return Q(t,vi)||Q(t,"@@iterator")||Dn[Qe(t)]},yi=TypeError,mi=function(t,e,n){var r,o;Rt(t);try{if(!(r=Q(t,"return"))){if("throw"===e)throw n;return n}r=s(r,t)}catch(t){o=!0,r=t}if("throw"===e)throw n;if(o)throw r;return Rt(r),n},bi=TypeError,wi=function(t,e){this.stopped=t,this.result=e},Si=wi.prototype,Oi=function(t,e,n){var r,o,i,c,a,u,f,l=n&&n.that,p=!(!n||!n.AS_ENTRIES),h=!(!n||!n.IS_RECORD),d=!(!n||!n.IS_ITERATOR),v=!(!n||!n.INTERRUPTED),g=Mr(e,l),y=function(t){return r&&mi(r,"normal",t),new wi(!0,t)},m=function(t){return p?(Rt(t),v?g(t[0],t[1],y):g(t[0],t[1])):v?g(t,y):g(t)};if(h)r=t.iterator;else if(d)r=t;else{if(!(o=gi(t)))throw bi(q(t)+" is not iterable");if(function(t){return void 0!==t&&(Dn.Array===t||di[hi]===t)}(o)){for(i=0,c=ge(t);c>i;i++)if((a=m(t[i]))&&D(Si,a))return a;return new wi(!1)}r=function(t,e){var n=arguments.length<2?gi(t):e;if(J(n))return Rt(s(n,t));throw yi(q(t)+" is not iterable")}(t,o)}for(u=h?t.next:r.next;!(f=s(u,r)).done;){try{a=m(f.value)}catch(t){mi(r,"throw",t)}if("object"==typeof a&&a&&D(Si,a))return a}return new wi(!1)},Ei=gt("iterator"),xi=!1;try{var Ai=0,Ti={next:function(){return{done:!!Ai++}},return:function(){xi=!0}};Ti[Ei]=function(){return this},Array.from(Ti,(function(){throw 2}))}catch(t){}var ji=ko.CONSTRUCTOR||!function(t,e){if(!e&&!xi)return!1;var n=!1;try{var r={};r[Ei]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(t){}return n}((function(t){Oo.all(t).then(void 0,(function(){}))}));De({target:"Promise",stat:!0,forced:ji},{all:function(t){var e=this,n=Fo.f(e),r=n.resolve,o=n.reject,i=So((function(){var n=J(e.resolve),i=[],c=0,a=1;Oi(t,(function(t){var u=c++,f=!1;a++,s(n,e,t).then((function(t){f||(f=!0,i[u]=t,--a||r(i))}),o)})),--a||r(i)}));return i.error&&o(i.value),n.promise}});var Pi=ko.CONSTRUCTOR,Ii=Oo&&Oo.prototype;if(De({target:"Promise",proto:!0,forced:Pi,real:!0},{catch:function(t){return this.then(void 0,t)}}),C(Oo)){var _i=k("Promise").prototype.catch;Ii.catch!==_i&&ue(Ii,"catch",_i,{unsafe:!0})}De({target:"Promise",stat:!0,forced:ji},{race:function(t){var e=this,n=Fo.f(e),r=n.reject,o=So((function(){var o=J(e.resolve);Oi(t,(function(t){s(o,e,t).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}}),De({target:"Promise",stat:!0,forced:ko.CONSTRUCTOR},{reject:function(t){var e=Fo.f(this);return s(e.reject,void 0,t),e.promise}});var Ri=ko.CONSTRUCTOR;k("Promise"),De({target:"Promise",stat:!0,forced:Ri},{resolve:function(t){return function(t,e){if(Rt(t),M(e)&&e.constructor===t)return e;var n=Fo.f(t);return(0,n.resolve)(e),n.promise}(this,t)}});var Li=String,Ci=function(t){if("Symbol"===Qe(t))throw TypeError("Cannot convert a Symbol value to a string");return Li(t)},Ni=b("".charAt),Mi=b("".charCodeAt),ki=b("".slice),Di=function(t){return function(e,n){var r,o,i=Ci(P(e)),c=pe(n),a=i.length;return c<0||c>=a?t?"":void 0:(r=Mi(i,c))<55296||r>56319||c+1===a||(o=Mi(i,c+1))<56320||o>57343?t?Ni(i,c):r:t?ki(i,c,c+2):o-56320+(r-55296<<10)+65536}},Ui={codeAt:Di(!1),charAt:Di(!0)}.charAt,Fi="String Iterator",Hi=ce.set,Bi=ce.getterFor(Fi);sr(String,"String",(function(t){Hi(this,{type:Fi,string:Ci(t),index:0})}),(function(){var t,e=Bi(this),n=e.string,r=e.index;return r>=n.length?lr(void 0,!0):(t=Ui(n,r),e.index+=t.length,lr(t,!1))}));var Wi={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},Gi=Et("span").classList,zi=Gi&&Gi.constructor&&Gi.constructor.prototype,Vi=zi===Object.prototype?void 0:zi,$i=gt("iterator"),Yi=gt("toStringTag"),Xi=gr.values,qi=function(t,e){if(t){if(t[$i]!==Xi)try{Ht(t,$i,Xi)}catch(e){t[$i]=Xi}if(t[Yi]||Ht(t,Yi,e),Wi[e])for(var n in gr)if(t[n]!==gr[n])try{Ht(t,n,gr[n])}catch(e){t[n]=gr[n]}}};for(var Ki in Wi)qi(i[Ki]&&i[Ki].prototype,Ki);qi(Vi,"DOMTokenList");var Ji=function(){return Ji=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Ji.apply(this,arguments)},Qi="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Zi(t,e){return t(e={exports:{}},e.exports),e.exports}var tc,ec,nc,rc=Zi((function(t){function e(n){return t.exports=e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,e(n)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports}));(tc=rc)&&tc.__esModule&&Object.prototype.hasOwnProperty.call(tc,"default")&&tc.default;var oc=function(t){return t&&t.Math==Math&&t},ic=oc("object"==typeof globalThis&&globalThis)||oc("object"==typeof window&&window)||oc("object"==typeof self&&self)||oc("object"==typeof Qi&&Qi)||function(){return this}()||Function("return this")(),cc=function(t){try{return!!t()}catch(t){return!0}},ac=!cc((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),uc=!cc((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),fc=Function.prototype.call,sc=uc?fc.bind(fc):function(){return fc.apply(fc,arguments)},lc={}.propertyIsEnumerable,pc=Object.getOwnPropertyDescriptor,hc=pc&&!lc.call({1:2},1)?function(t){var e=pc(this,t);return!!e&&e.enumerable}:lc,dc={f:hc},vc=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},gc=Function.prototype,yc=gc.call,mc=uc&&gc.bind.bind(yc,yc),bc=uc?mc:function(t){return function(){return yc.apply(t,arguments)}},wc=bc({}.toString),Sc=bc("".slice),Oc=function(t){return Sc(wc(t),8,-1)},Ec=Object,xc=bc("".split),Ac=cc((function(){return!Ec("z").propertyIsEnumerable(0)}))?function(t){return"String"==Oc(t)?xc(t,""):Ec(t)}:Ec,Tc=function(t){return null==t},jc=TypeError,Pc=function(t){if(Tc(t))throw jc("Can't call method on "+t);return t},Ic=function(t){return Ac(Pc(t))},_c="object"==typeof document&&document.all,Rc={all:_c,IS_HTMLDDA:void 0===_c&&void 0!==_c},Lc=Rc.all,Cc=Rc.IS_HTMLDDA?function(t){return"function"==typeof t||t===Lc}:function(t){return"function"==typeof t},Nc=Rc.all,Mc=Rc.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:Cc(t)||t===Nc}:function(t){return"object"==typeof t?null!==t:Cc(t)},kc=function(t,e){return arguments.length<2?(n=ic[t],Cc(n)?n:void 0):ic[t]&&ic[t][e];var n},Dc=bc({}.isPrototypeOf),Uc="undefined"!=typeof navigator&&String(navigator.userAgent)||"",Fc=ic.process,Hc=ic.Deno,Bc=Fc&&Fc.versions||Hc&&Hc.version,Wc=Bc&&Bc.v8;Wc&&(nc=(ec=Wc.split("."))[0]>0&&ec[0]<4?1:+(ec[0]+ec[1])),!nc&&Uc&&(!(ec=Uc.match(/Edge\/(\d+)/))||ec[1]>=74)&&(ec=Uc.match(/Chrome\/(\d+)/))&&(nc=+ec[1]);var Gc=nc,zc=!!Object.getOwnPropertySymbols&&!cc((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&Gc&&Gc<41})),Vc=zc&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,$c=Object,Yc=Vc?function(t){return"symbol"==typeof t}:function(t){var e=kc("Symbol");return Cc(e)&&Dc(e.prototype,$c(t))},Xc=String,qc=function(t){try{return Xc(t)}catch(t){return"Object"}},Kc=TypeError,Jc=function(t){if(Cc(t))return t;throw Kc(qc(t)+" is not a function")},Qc=function(t,e){var n=t[e];return Tc(n)?void 0:Jc(n)},Zc=TypeError,ta=Object.defineProperty,ea=function(t,e){try{ta(ic,t,{value:e,configurable:!0,writable:!0})}catch(n){ic[t]=e}return e},na="__core-js_shared__",ra=ic[na]||ea(na,{}),oa=Zi((function(t){(t.exports=function(t,e){return ra[t]||(ra[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.29.1",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.29.1/LICENSE",source:"https://github.com/zloirock/core-js"})})),ia=Object,ca=function(t){return ia(Pc(t))},aa=bc({}.hasOwnProperty),ua=Object.hasOwn||function(t,e){return aa(ca(t),e)},fa=0,sa=Math.random(),la=bc(1..toString),pa=function(t){return"Symbol("+(void 0===t?"":t)+")_"+la(++fa+sa,36)},ha=ic.Symbol,da=oa("wks"),va=Vc?ha.for||ha:ha&&ha.withoutSetter||pa,ga=function(t){return ua(da,t)||(da[t]=zc&&ua(ha,t)?ha[t]:va("Symbol."+t)),da[t]},ya=TypeError,ma=ga("toPrimitive"),ba=function(t,e){if(!Mc(t)||Yc(t))return t;var n,r=Qc(t,ma);if(r){if(void 0===e&&(e="default"),n=sc(r,t,e),!Mc(n)||Yc(n))return n;throw ya("Can't convert object to primitive value")}return void 0===e&&(e="number"),function(t,e){var n,r;if("string"===e&&Cc(n=t.toString)&&!Mc(r=sc(n,t)))return r;if(Cc(n=t.valueOf)&&!Mc(r=sc(n,t)))return r;if("string"!==e&&Cc(n=t.toString)&&!Mc(r=sc(n,t)))return r;throw Zc("Can't convert object to primitive value")}(t,e)},wa=function(t){var e=ba(t,"string");return Yc(e)?e:e+""},Sa=ic.document,Oa=Mc(Sa)&&Mc(Sa.createElement),Ea=function(t){return Oa?Sa.createElement(t):{}},xa=!ac&&!cc((function(){return 7!=Object.defineProperty(Ea("div"),"a",{get:function(){return 7}}).a})),Aa=Object.getOwnPropertyDescriptor,Ta={f:ac?Aa:function(t,e){if(t=Ic(t),e=wa(e),xa)try{return Aa(t,e)}catch(t){}if(ua(t,e))return vc(!sc(dc.f,t,e),t[e])}},ja=ac&&cc((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Pa=String,Ia=TypeError,_a=function(t){if(Mc(t))return t;throw Ia(Pa(t)+" is not an object")},Ra=TypeError,La=Object.defineProperty,Ca=Object.getOwnPropertyDescriptor,Na="enumerable",Ma="configurable",ka="writable",Da={f:ac?ja?function(t,e,n){if(_a(t),e=wa(e),_a(n),"function"==typeof t&&"prototype"===e&&"value"in n&&ka in n&&!n[ka]){var r=Ca(t,e);r&&r[ka]&&(t[e]=n.value,n={configurable:Ma in n?n[Ma]:r[Ma],enumerable:Na in n?n[Na]:r[Na],writable:!1})}return La(t,e,n)}:La:function(t,e,n){if(_a(t),e=wa(e),_a(n),xa)try{return La(t,e,n)}catch(t){}if("get"in n||"set"in n)throw Ra("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},Ua=ac?function(t,e,n){return Da.f(t,e,vc(1,n))}:function(t,e,n){return t[e]=n,t},Fa=Function.prototype,Ha=ac&&Object.getOwnPropertyDescriptor,Ba=ua(Fa,"name"),Wa={EXISTS:Ba,PROPER:Ba&&"something"===function(){}.name,CONFIGURABLE:Ba&&(!ac||ac&&Ha(Fa,"name").configurable)},Ga=bc(Function.toString);Cc(ra.inspectSource)||(ra.inspectSource=function(t){return Ga(t)});var za,Va,$a,Ya=ra.inspectSource,Xa=ic.WeakMap,qa=Cc(Xa)&&/native code/.test(String(Xa)),Ka=oa("keys"),Ja=function(t){return Ka[t]||(Ka[t]=pa(t))},Qa={},Za="Object already initialized",tu=ic.TypeError,eu=ic.WeakMap;if(qa||ra.state){var nu=ra.state||(ra.state=new eu);nu.get=nu.get,nu.has=nu.has,nu.set=nu.set,za=function(t,e){if(nu.has(t))throw tu(Za);return e.facade=t,nu.set(t,e),e},Va=function(t){return nu.get(t)||{}},$a=function(t){return nu.has(t)}}else{var ru=Ja("state");Qa[ru]=!0,za=function(t,e){if(ua(t,ru))throw tu(Za);return e.facade=t,Ua(t,ru,e),e},Va=function(t){return ua(t,ru)?t[ru]:{}},$a=function(t){return ua(t,ru)}}var ou,iu={set:za,get:Va,has:$a,enforce:function(t){return $a(t)?Va(t):za(t,{})},getterFor:function(t){return function(e){var n;if(!Mc(e)||(n=Va(e)).type!==t)throw tu("Incompatible receiver, "+t+" required");return n}}},cu=Zi((function(t){var e=Wa.CONFIGURABLE,n=iu.enforce,r=iu.get,o=String,i=Object.defineProperty,c=bc("".slice),a=bc("".replace),u=bc([].join),f=ac&&!cc((function(){return 8!==i((function(){}),"length",{value:8}).length})),s=String(String).split("String"),l=t.exports=function(t,r,l){"Symbol("===c(o(r),0,7)&&(r="["+a(o(r),/^Symbol\(([^)]*)\)/,"$1")+"]"),l&&l.getter&&(r="get "+r),l&&l.setter&&(r="set "+r),(!ua(t,"name")||e&&t.name!==r)&&(ac?i(t,"name",{value:r,configurable:!0}):t.name=r),f&&l&&ua(l,"arity")&&t.length!==l.arity&&i(t,"length",{value:l.arity});try{l&&ua(l,"constructor")&&l.constructor?ac&&i(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var p=n(t);return ua(p,"source")||(p.source=u(s,"string"==typeof r?r:"")),t};Function.prototype.toString=l((function(){return Cc(this)&&r(this).source||Ya(this)}),"toString")})),au=function(t,e,n,r){r||(r={});var o=r.enumerable,i=void 0!==r.name?r.name:e;if(Cc(n)&&cu(n,i,r),r.global)o?t[e]=n:ea(e,n);else{try{r.unsafe?t[e]&&(o=!0):delete t[e]}catch(t){}o?t[e]=n:Da.f(t,e,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return t},uu=Math.ceil,fu=Math.floor,su=Math.trunc||function(t){var e=+t;return(e>0?fu:uu)(e)},lu=function(t){var e=+t;return e!=e||0===e?0:su(e)},pu=Math.max,hu=Math.min,du=function(t,e){var n=lu(t);return n<0?pu(n+e,0):hu(n,e)},vu=Math.min,gu=function(t){return t>0?vu(lu(t),9007199254740991):0},yu=function(t){return gu(t.length)},mu=function(t){return function(e,n,r){var o,i=Ic(e),c=yu(i),a=du(r,c);if(t&&n!=n){for(;c>a;)if((o=i[a++])!=o)return!0}else for(;c>a;a++)if((t||a in i)&&i[a]===n)return t||a||0;return!t&&-1}},bu={includes:mu(!0),indexOf:mu(!1)},wu=bu.indexOf,Su=bc([].push),Ou=function(t,e){var n,r=Ic(t),o=0,i=[];for(n in r)!ua(Qa,n)&&ua(r,n)&&Su(i,n);for(;e.length>o;)ua(r,n=e[o++])&&(~wu(i,n)||Su(i,n));return i},Eu=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],xu=Eu.concat("length","prototype"),Au={f:Object.getOwnPropertyNames||function(t){return Ou(t,xu)}},Tu={f:Object.getOwnPropertySymbols},ju=bc([].concat),Pu=kc("Reflect","ownKeys")||function(t){var e=Au.f(_a(t)),n=Tu.f;return n?ju(e,n(t)):e},Iu=function(t,e,n){for(var r=Pu(e),o=Da.f,i=Ta.f,c=0;c<r.length;c++){var a=r[c];ua(t,a)||n&&ua(n,a)||o(t,a,i(e,a))}},_u=/#|\.prototype\./,Ru=function(t,e){var n=Cu[Lu(t)];return n==Mu||n!=Nu&&(Cc(e)?cc(e):!!e)},Lu=Ru.normalize=function(t){return String(t).replace(_u,".").toLowerCase()},Cu=Ru.data={},Nu=Ru.NATIVE="N",Mu=Ru.POLYFILL="P",ku=Ru,Du=Ta.f,Uu=function(t,e){var n,r,o,i,c,a=t.target,u=t.global,f=t.stat;if(n=u?ic:f?ic[a]||ea(a,{}):(ic[a]||{}).prototype)for(r in e){if(i=e[r],o=t.dontCallGetSet?(c=Du(n,r))&&c.value:n[r],!ku(u?r:a+(f?".":"#")+r,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;Iu(i,o)}(t.sham||o&&o.sham)&&Ua(i,"sham",!0),au(n,r,i,t)}},Fu=Object.keys||function(t){return Ou(t,Eu)},Hu=ac&&!ja?Object.defineProperties:function(t,e){_a(t);for(var n,r=Ic(e),o=Fu(e),i=o.length,c=0;i>c;)Da.f(t,n=o[c++],r[n]);return t},Bu={f:Hu},Wu=kc("document","documentElement"),Gu="prototype",zu="script",Vu=Ja("IE_PROTO"),$u=function(){},Yu=function(t){return"<"+zu+">"+t+"</"+zu+">"},Xu=function(t){t.write(Yu("")),t.close();var e=t.parentWindow.Object;return t=null,e},qu=function(){try{ou=new ActiveXObject("htmlfile")}catch(t){}var t,e,n;qu="undefined"!=typeof document?document.domain&&ou?Xu(ou):(e=Ea("iframe"),n="java"+zu+":",e.style.display="none",Wu.appendChild(e),e.src=String(n),(t=e.contentWindow.document).open(),t.write(Yu("document.F=Object")),t.close(),t.F):Xu(ou);for(var r=Eu.length;r--;)delete qu[Gu][Eu[r]];return qu()};Qa[Vu]=!0;var Ku=Object.create||function(t,e){var n;return null!==t?($u[Gu]=_a(t),n=new $u,$u[Gu]=null,n[Vu]=t):n=qu(),void 0===e?n:Bu.f(n,e)},Ju=Da.f,Qu=ga("unscopables"),Zu=Array.prototype;null==Zu[Qu]&&Ju(Zu,Qu,{configurable:!0,value:Ku(null)});var tf=function(t){Zu[Qu][t]=!0};Uu({target:"Array",proto:!0},{fill:function(t){for(var e=ca(this),n=yu(e),r=arguments.length,o=du(r>1?arguments[1]:void 0,n),i=r>2?arguments[2]:void 0,c=void 0===i?n:du(i,n);c>o;)e[o++]=t;return e}}),tf("fill");var ef=Array.isArray||function(t){return"Array"==Oc(t)},nf=TypeError,rf=function(t){if(t>9007199254740991)throw nf("Maximum allowed index exceeded");return t},of=function(t,e,n){var r=wa(e);r in t?Da.f(t,r,vc(0,n)):t[r]=n},cf={};cf[ga("toStringTag")]="z";var af="[object z]"===String(cf),uf=ga("toStringTag"),ff=Object,sf="Arguments"==Oc(function(){return arguments}()),lf=af?Oc:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=ff(t),uf))?n:sf?Oc(e):"Object"==(r=Oc(e))&&Cc(e.callee)?"Arguments":r},pf=function(){},hf=[],df=kc("Reflect","construct"),vf=/^\s*(?:class|function)\b/,gf=bc(vf.exec),yf=!vf.exec(pf),mf=function(t){if(!Cc(t))return!1;try{return df(pf,hf,t),!0}catch(t){return!1}},bf=function(t){if(!Cc(t))return!1;switch(lf(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return yf||!!gf(vf,Ya(t))}catch(t){return!0}};bf.sham=!0;var wf=!df||cc((function(){var t;return mf(mf.call)||!mf(Object)||!mf((function(){t=!0}))||t}))?bf:mf,Sf=ga("species"),Of=Array,Ef=function(t,e){return new(function(t){var e;return ef(t)&&(e=t.constructor,(wf(e)&&(e===Of||ef(e.prototype))||Mc(e)&&null===(e=e[Sf]))&&(e=void 0)),void 0===e?Of:e}(t))(0===e?0:e)},xf=ga("species"),Af=function(t){return Gc>=51||!cc((function(){var e=[];return(e.constructor={})[xf]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},Tf=ga("isConcatSpreadable"),jf=Gc>=51||!cc((function(){var t=[];return t[Tf]=!1,t.concat()[0]!==t})),Pf=function(t){if(!Mc(t))return!1;var e=t[Tf];return void 0!==e?!!e:ef(t)},If=!jf||!Af("concat");Uu({target:"Array",proto:!0,arity:1,forced:If},{concat:function(t){var e,n,r,o,i,c=ca(this),a=Ef(c,0),u=0;for(e=-1,r=arguments.length;e<r;e++)if(Pf(i=-1===e?c:arguments[e]))for(o=yu(i),rf(u+o),n=0;n<o;n++,u++)n in i&&of(a,u,i[n]);else rf(u+1),of(a,u++,i);return a.length=u,a}});var _f=String,Rf=TypeError,Lf=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=function(t,e,n){try{return bc(Jc(Object.getOwnPropertyDescriptor(t,"__proto__").set))}catch(t){}}(Object.prototype))(n,[]),e=n instanceof Array}catch(t){}return function(n,r){return _a(n),function(t){if("object"==typeof t||Cc(t))return t;throw Rf("Can't set "+_f(t)+" as a prototype")}(r),e?t(n,r):n.__proto__=r,n}}():void 0),Cf=function(t,e,n){var r,o;return Lf&&Cc(r=e.constructor)&&r!==n&&Mc(o=r.prototype)&&o!==n.prototype&&Lf(t,o),t},Nf=ga("match"),Mf=function(t){var e;return Mc(t)&&(void 0!==(e=t[Nf])?!!e:"RegExp"==Oc(t))},kf=String,Df=function(t){if("Symbol"===lf(t))throw TypeError("Cannot convert a Symbol value to a string");return kf(t)},Uf=function(){var t=_a(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e},Ff=RegExp.prototype,Hf=function(t){var e=t.flags;return void 0!==e||"flags"in Ff||ua(t,"flags")||!Dc(Ff,t)?e:sc(Uf,t)},Bf=ic.RegExp,Wf=cc((function(){var t=Bf("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),Gf=Wf||cc((function(){return!Bf("a","y").sticky})),zf={BROKEN_CARET:Wf||cc((function(){var t=Bf("^r","gy");return t.lastIndex=2,null!=t.exec("str")})),MISSED_STICKY:Gf,UNSUPPORTED_Y:Wf},Vf=Da.f,$f=function(t,e,n){n in t||Vf(t,n,{configurable:!0,get:function(){return e[n]},set:function(t){e[n]=t}})},Yf=function(t,e,n){return n.get&&cu(n.get,e,{getter:!0}),n.set&&cu(n.set,e,{setter:!0}),Da.f(t,e,n)},Xf=ga("species"),qf=function(t){var e=kc(t);ac&&e&&!e[Xf]&&Yf(e,Xf,{configurable:!0,get:function(){return this}})},Kf=ic.RegExp,Jf=cc((function(){var t=Kf(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)})),Qf=ic.RegExp,Zf=cc((function(){var t=Qf("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})),ts=Au.f,es=iu.enforce,ns=ga("match"),rs=ic.RegExp,os=rs.prototype,is=ic.SyntaxError,cs=bc(os.exec),as=bc("".charAt),us=bc("".replace),fs=bc("".indexOf),ss=bc("".slice),ls=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,ps=/a/g,hs=/a/g,ds=new rs(ps)!==ps,vs=zf.MISSED_STICKY,gs=zf.UNSUPPORTED_Y,ys=ac&&(!ds||vs||Jf||Zf||cc((function(){return hs[ns]=!1,rs(ps)!=ps||rs(hs)==hs||"/a/i"!=rs(ps,"i")})));if(ku("RegExp",ys)){for(var ms=function(t,e){var n,r,o,i,c,a,u=Dc(os,this),f=Mf(t),s=void 0===e,l=[],p=t;if(!u&&f&&s&&t.constructor===ms)return t;if((f||Dc(os,t))&&(t=t.source,s&&(e=Hf(p))),t=void 0===t?"":Df(t),e=void 0===e?"":Df(e),p=t,Jf&&"dotAll"in ps&&(r=!!e&&fs(e,"s")>-1)&&(e=us(e,/s/g,"")),n=e,vs&&"sticky"in ps&&(o=!!e&&fs(e,"y")>-1)&&gs&&(e=us(e,/y/g,"")),Zf&&(i=function(t){for(var e,n=t.length,r=0,o="",i=[],c={},a=!1,u=!1,f=0,s="";r<=n;r++){if("\\"===(e=as(t,r)))e+=as(t,++r);else if("]"===e)a=!1;else if(!a)switch(!0){case"["===e:a=!0;break;case"("===e:cs(ls,ss(t,r+1))&&(r+=2,u=!0),o+=e,f++;continue;case">"===e&&u:if(""===s||ua(c,s))throw new is("Invalid capture group name");c[s]=!0,i[i.length]=[s,f],u=!1,s="";continue}u?s+=e:o+=e}return[o,i]}(t),t=i[0],l=i[1]),c=Cf(rs(t,e),u?this:os,ms),(r||o||l.length)&&(a=es(c),r&&(a.dotAll=!0,a.raw=ms(function(t){for(var e,n=t.length,r=0,o="",i=!1;r<=n;r++)"\\"!==(e=as(t,r))?i||"."!==e?("["===e?i=!0:"]"===e&&(i=!1),o+=e):o+="[\\s\\S]":o+=e+as(t,++r);return o}(t),n)),o&&(a.sticky=!0),l.length&&(a.groups=l)),t!==p)try{Ua(c,"source",""===p?"(?:)":p)}catch(t){}return c},bs=ts(rs),ws=0;bs.length>ws;)$f(ms,rs,bs[ws++]);os.constructor=ms,ms.prototype=os,au(ic,"RegExp",ms,{constructor:!0})}qf("RegExp");var Ss=iu.get,Os=oa("native-string-replace",String.prototype.replace),Es=RegExp.prototype.exec,xs=Es,As=bc("".charAt),Ts=bc("".indexOf),js=bc("".replace),Ps=bc("".slice),Is=function(){var t=/a/,e=/b*/g;return sc(Es,t,"a"),sc(Es,e,"a"),0!==t.lastIndex||0!==e.lastIndex}(),_s=zf.BROKEN_CARET,Rs=void 0!==/()??/.exec("")[1];(Is||Rs||_s||Jf||Zf)&&(xs=function(t){var e,n,r,o,i,c,a,u=this,f=Ss(u),s=Df(t),l=f.raw;if(l)return l.lastIndex=u.lastIndex,e=sc(xs,l,s),u.lastIndex=l.lastIndex,e;var p=f.groups,h=_s&&u.sticky,d=sc(Uf,u),v=u.source,g=0,y=s;if(h&&(d=js(d,"y",""),-1===Ts(d,"g")&&(d+="g"),y=Ps(s,u.lastIndex),u.lastIndex>0&&(!u.multiline||u.multiline&&"\n"!==As(s,u.lastIndex-1))&&(v="(?: "+v+")",y=" "+y,g++),n=new RegExp("^(?:"+v+")",d)),Rs&&(n=new RegExp("^"+v+"$(?!\\s)",d)),Is&&(r=u.lastIndex),o=sc(Es,h?n:u,y),h?o?(o.input=Ps(o.input,g),o[0]=Ps(o[0],g),o.index=u.lastIndex,u.lastIndex+=o[0].length):u.lastIndex=0:Is&&o&&(u.lastIndex=u.global?o.index+o[0].length:r),Rs&&o&&o.length>1&&sc(Os,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&p)for(o.groups=c=Ku(null),i=0;i<p.length;i++)c[(a=p[i])[0]]=o[a[1]];return o});var Ls=xs;Uu({target:"RegExp",proto:!0,forced:/./.exec!==Ls},{exec:Ls});var Cs=Wa.PROPER,Ns="toString",Ms=RegExp.prototype[Ns],ks=cc((function(){return"/a/b"!=Ms.call({source:"a",flags:"b"})})),Ds=Cs&&Ms.name!=Ns;(ks||Ds)&&au(RegExp.prototype,Ns,(function(){var t=_a(this);return"/"+Df(t.source)+"/"+Df(Hf(t))}),{unsafe:!0});var Us=function(t){if("Function"===Oc(t))return bc(t)},Fs=ga("species"),Hs=RegExp.prototype,Bs=function(t,e,n,r){var o=ga(t),i=!cc((function(){var e={};return e[o]=function(){return 7},7!=""[t](e)})),c=i&&!cc((function(){var e=!1,n=/a/;return"split"===t&&((n={}).constructor={},n.constructor[Fs]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return e=!0,null},n[o](""),!e}));if(!i||!c||n){var a=Us(/./[o]),u=e(o,""[t],(function(t,e,n,r,o){var c=Us(t),u=e.exec;return u===Ls||u===Hs.exec?i&&!o?{done:!0,value:a(e,n,r)}:{done:!0,value:c(n,e,r)}:{done:!1}}));au(String.prototype,t,u[0]),au(Hs,o,u[1])}r&&Ua(Hs[o],"sham",!0)},Ws=bc("".charAt),Gs=bc("".charCodeAt),zs=bc("".slice),Vs=function(t){return function(e,n){var r,o,i=Df(Pc(e)),c=lu(n),a=i.length;return c<0||c>=a?t?"":void 0:(r=Gs(i,c))<55296||r>56319||c+1===a||(o=Gs(i,c+1))<56320||o>57343?t?Ws(i,c):r:t?zs(i,c,c+2):o-56320+(r-55296<<10)+65536}},$s={codeAt:Vs(!1),charAt:Vs(!0)},Ys=$s.charAt,Xs=function(t,e,n){return e+(n?Ys(t,e).length:1)},qs=TypeError,Ks=function(t,e){var n=t.exec;if(Cc(n)){var r=sc(n,t,e);return null!==r&&_a(r),r}if("RegExp"===Oc(t))return sc(Ls,t,e);throw qs("RegExp#exec called on incompatible receiver")};Bs("match",(function(t,e,n){return[function(e){var n=Pc(this),r=Tc(e)?void 0:Qc(e,t);return r?sc(r,e,n):new RegExp(e)[t](Df(n))},function(t){var r=_a(this),o=Df(t),i=n(e,r,o);if(i.done)return i.value;if(!r.global)return Ks(r,o);var c=r.unicode;r.lastIndex=0;for(var a,u=[],f=0;null!==(a=Ks(r,o));){var s=Df(a[0]);u[f]=s,""===s&&(r.lastIndex=Xs(o,gu(r.lastIndex),c)),f++}return 0===f?null:u}]}));var Js=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e};Bs("search",(function(t,e,n){return[function(e){var n=Pc(this),r=Tc(e)?void 0:Qc(e,t);return r?sc(r,e,n):new RegExp(e)[t](Df(n))},function(t){var r=_a(this),o=Df(t),i=n(e,r,o);if(i.done)return i.value;var c=r.lastIndex;Js(c,0)||(r.lastIndex=0);var a=Ks(r,o);return Js(r.lastIndex,c)||(r.lastIndex=c),null===a?-1:a.index}]}));var Qs=Function.prototype,Zs=Qs.apply,tl=Qs.call,el="object"==typeof Reflect&&Reflect.apply||(uc?tl.bind(Zs):function(){return tl.apply(Zs,arguments)}),nl=Math.floor,rl=bc("".charAt),ol=bc("".replace),il=bc("".slice),cl=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,al=/\$([$&'`]|\d{1,2})/g,ul=function(t,e,n,r,o,i){var c=n+t.length,a=r.length,u=al;return void 0!==o&&(o=ca(o),u=cl),ol(i,u,(function(i,u){var f;switch(rl(u,0)){case"$":return"$";case"&":return t;case"`":return il(e,0,n);case"'":return il(e,c);case"<":f=o[il(u,1,-1)];break;default:var s=+u;if(0===s)return i;if(s>a){var l=nl(s/10);return 0===l?i:l<=a?void 0===r[l-1]?rl(u,1):r[l-1]+rl(u,1):i}f=r[s-1]}return void 0===f?"":f}))},fl=ga("replace"),sl=Math.max,ll=Math.min,pl=bc([].concat),hl=bc([].push),dl=bc("".indexOf),vl=bc("".slice),gl="$0"==="a".replace(/./,"$0"),yl=!!/./[fl]&&""===/./[fl]("a","$0");Bs("replace",(function(t,e,n){var r=yl?"$":"$0";return[function(t,n){var r=Pc(this),o=Tc(t)?void 0:Qc(t,fl);return o?sc(o,t,r,n):sc(e,Df(r),t,n)},function(t,o){var i=_a(this),c=Df(t);if("string"==typeof o&&-1===dl(o,r)&&-1===dl(o,"$<")){var a=n(e,i,c,o);if(a.done)return a.value}var u=Cc(o);u||(o=Df(o));var f=i.global;if(f){var s=i.unicode;i.lastIndex=0}for(var l=[];;){var p=Ks(i,c);if(null===p)break;if(hl(l,p),!f)break;""===Df(p[0])&&(i.lastIndex=Xs(c,gu(i.lastIndex),s))}for(var h,d="",v=0,g=0;g<l.length;g++){for(var y=Df((p=l[g])[0]),m=sl(ll(lu(p.index),c.length),0),b=[],w=1;w<p.length;w++)hl(b,void 0===(h=p[w])?h:String(h));var S=p.groups;if(u){var O=pl([y],b,m,c);void 0!==S&&hl(O,S);var E=Df(el(o,void 0,O))}else E=ul(y,c,m,b,S,o);m>=v&&(d+=vl(c,v,m)+E,v=m+y.length)}return d+vl(c,v)}]}),!!cc((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}))||!gl||yl);var ml=function(t,e){var n=[][t];return!!n&&cc((function(){n.call(null,e||function(){return 1},1)}))},bl=bu.indexOf,wl=Us([].indexOf),Sl=!!wl&&1/wl([1],1,-0)<0,Ol=Sl||!ml("indexOf");Uu({target:"Array",proto:!0,forced:Ol},{indexOf:function(t){var e=arguments.length>1?arguments[1]:void 0;return Sl?wl(this,t,e)||0:bl(this,t,e)}});var El=TypeError,xl=function(t){return function(e,n,r,o){Jc(n);var i=ca(e),c=Ac(i),a=yu(i),u=t?a-1:0,f=t?-1:1;if(r<2)for(;;){if(u in c){o=c[u],u+=f;break}if(u+=f,t?u<0:a<=u)throw El("Reduce of empty array with no initial value")}for(;t?u>=0:a>u;u+=f)u in c&&(o=n(o,c[u],u,i));return o}},Al={left:xl(!1),right:xl(!0)},Tl="undefined"!=typeof process&&"process"==Oc(process),jl=Al.left,Pl=!Tl&&Gc>79&&Gc<83||!ml("reduce");Uu({target:"Array",proto:!0,forced:Pl},{reduce:function(t){var e=arguments.length;return jl(this,t,e,e>1?arguments[1]:void 0)}});var Il=af?{}.toString:function(){return"[object "+lf(this)+"]"};af||au(Object.prototype,"toString",Il,{unsafe:!0});var _l=bc([].slice),Rl=Af("slice"),Ll=ga("species"),Cl=Array,Nl=Math.max;Uu({target:"Array",proto:!0,forced:!Rl},{slice:function(t,e){var n,r,o,i=Ic(this),c=yu(i),a=du(t,c),u=du(void 0===e?c:e,c);if(ef(i)&&(n=i.constructor,(wf(n)&&(n===Cl||ef(n.prototype))||Mc(n)&&null===(n=n[Ll]))&&(n=void 0),n===Cl||void 0===n))return _l(i,a,u);for(r=new(void 0===n?Cl:n)(Nl(u-a,0)),o=0;a<u;a++,o++)a in i&&of(r,o,i[a]);return r.length=o,r}});var Ml=bc(dc.f),kl=bc([].push),Dl=function(t){return function(e){for(var n,r=Ic(e),o=Fu(r),i=o.length,c=0,a=[];i>c;)n=o[c++],ac&&!Ml(r,n)||kl(a,t?[n,r[n]]:r[n]);return a}},Ul=(Dl(!0),Dl(!1));Uu({target:"Object",stat:!0},{values:function(t){return Ul(t)}});var Fl=Us(Us.bind),Hl=function(t,e){return Jc(t),void 0===e?t:uc?Fl(t,e):function(){return t.apply(e,arguments)}},Bl=bc([].push),Wl=function(t){var e=1==t,n=2==t,r=3==t,o=4==t,i=6==t,c=7==t,a=5==t||i;return function(u,f,s,l){for(var p,h,d=ca(u),v=Ac(d),g=Hl(f,s),y=yu(v),m=0,b=l||Ef,w=e?b(u,y):n||c?b(u,0):void 0;y>m;m++)if((a||m in v)&&(h=g(p=v[m],m,d),t))if(e)w[m]=h;else if(h)switch(t){case 3:return!0;case 5:return p;case 6:return m;case 2:Bl(w,p)}else switch(t){case 4:return!1;case 7:Bl(w,p)}return i?-1:r||o?o:w}},Gl={forEach:Wl(0),map:Wl(1),filter:Wl(2),some:Wl(3),every:Wl(4),find:Wl(5),findIndex:Wl(6),filterReject:Wl(7)},zl=Gl.every,Vl=ml("every");Uu({target:"Array",proto:!0,forced:!Vl},{every:function(t){return zl(this,t,arguments.length>1?arguments[1]:void 0)}});var $l=bu.includes,Yl=cc((function(){return!Array(1).includes()}));Uu({target:"Array",proto:!0,forced:Yl},{includes:function(t){return $l(this,t,arguments.length>1?arguments[1]:void 0)}}),tf("includes");var Xl=bc(1..valueOf),ql=RangeError,Kl=RangeError,Jl=String,Ql=Math.floor,Zl=bc((function(t){var e=Df(Pc(this)),n="",r=lu(t);if(r<0||r==1/0)throw ql("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(e+=e))1&r&&(n+=e);return n})),tp=bc("".slice),ep=bc(1..toFixed),np=function(t,e,n){return 0===e?n:e%2==1?np(t,e-1,n*t):np(t*t,e/2,n)},rp=function(t,e,n){for(var r=-1,o=n;++r<6;)o+=e*t[r],t[r]=o%1e7,o=Ql(o/1e7)},op=function(t,e){for(var n=6,r=0;--n>=0;)r+=t[n],t[n]=Ql(r/e),r=r%e*1e7},ip=function(t){for(var e=6,n="";--e>=0;)if(""!==n||0===e||0!==t[e]){var r=Jl(t[e]);n=""===n?r:n+Zl("0",7-r.length)+r}return n},cp=cc((function(){return"0.000"!==ep(8e-5,3)||"1"!==ep(.9,0)||"1.25"!==ep(1.255,2)||"1000000000000000128"!==ep(0xde0b6b3a7640080,0)}))||!cc((function(){ep({})}));Uu({target:"Number",proto:!0,forced:cp},{toFixed:function(t){var e,n,r,o,i=Xl(this),c=lu(t),a=[0,0,0,0,0,0],u="",f="0";if(c<0||c>20)throw Kl("Incorrect fraction digits");if(i!=i)return"NaN";if(i<=-1e21||i>=1e21)return Jl(i);if(i<0&&(u="-",i=-i),i>1e-21)if(e=function(t){for(var e=0,n=t;n>=4096;)e+=12,n/=4096;for(;n>=2;)e+=1,n/=2;return e}(i*np(2,69,1))-69,n=e<0?i*np(2,-e,1):i/np(2,e,1),n*=4503599627370496,(e=52-e)>0){for(rp(a,0,n),r=c;r>=7;)rp(a,1e7,0),r-=7;for(rp(a,np(10,r,1),0),r=e-1;r>=23;)op(a,1<<23),r-=23;op(a,1<<r),rp(a,1,1),op(a,2),f=ip(a)}else rp(a,0,n),rp(a,1<<-e,0),f=ip(a)+Zl("0",c);return c>0?u+((o=f.length)<=c?"0."+Zl("0",c-o)+f:tp(f,0,o-c)+"."+tp(f,o-c)):u+f}});var ap="\t\n\v\f\r \u2028\u2029\ufeff",up=bc("".replace),fp=RegExp("^["+ap+"]+"),sp=RegExp("(^|[^"+ap+"])["+ap+"]+$"),lp=function(t){return function(e){var n=Df(Pc(e));return 1&t&&(n=up(n,fp,"")),2&t&&(n=up(n,sp,"$1")),n}},pp={start:lp(1),end:lp(2),trim:lp(3)},hp=pp.trim,dp=bc("".charAt),vp=ic.parseFloat,gp=ic.Symbol,yp=gp&&gp.iterator,mp=1/vp(ap+"-0")!=-1/0||yp&&!cc((function(){vp(Object(yp))}))?function(t){var e=hp(Df(t)),n=vp(e);return 0===n&&"-"==dp(e,0)?-0:n}:vp;Uu({global:!0,forced:parseFloat!=mp},{parseFloat:mp});var bp=TypeError,wp=ga("species"),Sp=function(t,e){var n,r=_a(t).constructor;return void 0===r||Tc(n=_a(r)[wp])?e:function(t){if(wf(t))return t;throw bp(qc(t)+" is not a constructor")}(n)},Op=Array,Ep=Math.max,xp=function(t,e,n){for(var r=yu(t),o=du(e,r),i=du(void 0===n?r:n,r),c=Op(Ep(i-o,0)),a=0;o<i;o++,a++)of(c,a,t[o]);return c.length=a,c},Ap=zf.UNSUPPORTED_Y,Tp=4294967295,jp=Math.min,Pp=[].push,Ip=bc(/./.exec),_p=bc(Pp),Rp=bc("".slice);Bs("split",(function(t,e,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,n){var r=Df(Pc(this)),o=void 0===n?Tp:n>>>0;if(0===o)return[];if(void 0===t)return[r];if(!Mf(t))return sc(e,r,t,o);for(var i,c,a,u=[],f=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),s=0,l=new RegExp(t.source,f+"g");(i=sc(Ls,l,r))&&!((c=l.lastIndex)>s&&(_p(u,Rp(r,s,i.index)),i.length>1&&i.index<r.length&&el(Pp,u,xp(i,1)),a=i[0].length,s=c,u.length>=o));)l.lastIndex===i.index&&l.lastIndex++;return s===r.length?!a&&Ip(l,"")||_p(u,""):_p(u,Rp(r,s)),u.length>o?xp(u,0,o):u}:"0".split(void 0,0).length?function(t,n){return void 0===t&&0===n?[]:sc(e,this,t,n)}:e,[function(e,n){var o=Pc(this),i=Tc(e)?void 0:Qc(e,t);return i?sc(i,e,o,n):sc(r,Df(o),e,n)},function(t,o){var i=_a(this),c=Df(t),a=n(r,i,c,o,r!==e);if(a.done)return a.value;var u=Sp(i,RegExp),f=i.unicode,s=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(Ap?"g":"y"),l=new u(Ap?"^(?:"+i.source+")":i,s),p=void 0===o?Tp:o>>>0;if(0===p)return[];if(0===c.length)return null===Ks(l,c)?[c]:[];for(var h=0,d=0,v=[];d<c.length;){l.lastIndex=Ap?0:d;var g,y=Ks(l,Ap?Rp(c,d):c);if(null===y||(g=jp(gu(l.lastIndex+(Ap?d:0)),c.length))===h)d=Xs(c,d,f);else{if(_p(v,Rp(c,h,d)),v.length===p)return v;for(var m=1;m<=y.length-1;m++)if(_p(v,y[m]),v.length===p)return v;d=h=g}}return _p(v,Rp(c,h)),v}]}),!!cc((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),Ap);var Lp=Object.assign,Cp=Object.defineProperty,Np=bc([].concat),Mp=!Lp||cc((function(){if(ac&&1!==Lp({b:1},Lp(Cp({},"a",{enumerable:!0,get:function(){Cp(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach((function(t){e[t]=t})),7!=Lp({},t)[n]||Fu(Lp({},e)).join("")!=r}))?function(t,e){for(var n=ca(t),r=arguments.length,o=1,i=Tu.f,c=dc.f;r>o;)for(var a,u=Ac(arguments[o++]),f=i?Np(Fu(u),i(u)):Fu(u),s=f.length,l=0;s>l;)a=f[l++],ac&&!sc(c,u,a)||(n[a]=u[a]);return n}:Lp;Uu({target:"Object",stat:!0,arity:2,forced:Object.assign!==Mp},{assign:Mp});var kp=ic,Dp=Au.f,Up=Ta.f,Fp=Da.f,Hp=pp.trim,Bp="Number",Wp=ic[Bp];kp[Bp];var Gp=Wp.prototype,zp=ic.TypeError,Vp=bc("".slice),$p=bc("".charCodeAt),Yp=ku(Bp,!Wp(" 0o1")||!Wp("0b1")||Wp("+0x1")),Xp=function(t){var e,n=arguments.length<1?0:Wp(function(t){var e=ba(t,"number");return"bigint"==typeof e?e:function(t){var e,n,r,o,i,c,a,u,f=ba(t,"number");if(Yc(f))throw zp("Cannot convert a Symbol value to a number");if("string"==typeof f&&f.length>2)if(f=Hp(f),43===(e=$p(f,0))||45===e){if(88===(n=$p(f,2))||120===n)return NaN}else if(48===e){switch($p(f,1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+f}for(c=(i=Vp(f,2)).length,a=0;a<c;a++)if((u=$p(i,a))<48||u>o)return NaN;return parseInt(i,r)}return+f}(e)}(t));return Dc(Gp,e=this)&&cc((function(){Xl(e)}))?Cf(Object(n),this,Xp):n};Xp.prototype=Gp,Yp&&(Gp.constructor=Xp),Uu({global:!0,constructor:!0,wrap:!0,forced:Yp},{Number:Xp}),Yp&&function(t,e){for(var n,r=ac?Dp(e):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),o=0;r.length>o;o++)ua(e,n=r[o])&&!ua(t,n)&&Fp(t,n,Up(e,n))}(kp[Bp],Wp);var qp,Kp,Jp,Qp,Zp=Da.f,th=ga("toStringTag"),eh=function(t,e,n){t&&!n&&(t=t.prototype),t&&!ua(t,th)&&Zp(t,th,{configurable:!0,value:e})},nh=TypeError,rh=TypeError,oh=/(?:ipad|iphone|ipod).*applewebkit/i.test(Uc),ih=ic.setImmediate,ch=ic.clearImmediate,ah=ic.process,uh=ic.Dispatch,fh=ic.Function,sh=ic.MessageChannel,lh=ic.String,ph=0,hh={},dh="onreadystatechange";cc((function(){qp=ic.location}));var vh=function(t){if(ua(hh,t)){var e=hh[t];delete hh[t],e()}},gh=function(t){return function(){vh(t)}},yh=function(t){vh(t.data)},mh=function(t){ic.postMessage(lh(t),qp.protocol+"//"+qp.host)};ih&&ch||(ih=function(t){!function(t,e){if(t<1)throw rh("Not enough arguments")}(arguments.length);var e=Cc(t)?t:fh(t),n=_l(arguments,1);return hh[++ph]=function(){el(e,void 0,n)},Kp(ph),ph},ch=function(t){delete hh[t]},Tl?Kp=function(t){ah.nextTick(gh(t))}:uh&&uh.now?Kp=function(t){uh.now(gh(t))}:sh&&!oh?(Qp=(Jp=new sh).port2,Jp.port1.onmessage=yh,Kp=Hl(Qp.postMessage,Qp)):ic.addEventListener&&Cc(ic.postMessage)&&!ic.importScripts&&qp&&"file:"!==qp.protocol&&!cc(mh)?(Kp=mh,ic.addEventListener("message",yh,!1)):Kp=dh in Ea("script")?function(t){Wu.appendChild(Ea("script"))[dh]=function(){Wu.removeChild(this),vh(t)}}:function(t){setTimeout(gh(t),0)});var bh={set:ih,clear:ch},wh=function(){this.head=null,this.tail=null};wh.prototype={add:function(t){var e={item:t,next:null},n=this.tail;n?n.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return null===(this.head=t.next)&&(this.tail=null),t.item}};var Sh,Oh,Eh,xh,Ah,Th=wh,jh=/ipad|iphone|ipod/i.test(Uc)&&"undefined"!=typeof Pebble,Ph=/web0s(?!.*chrome)/i.test(Uc),Ih=Ta.f,_h=bh.set,Rh=ic.MutationObserver||ic.WebKitMutationObserver,Lh=ic.document,Ch=ic.process,Nh=ic.Promise,Mh=Ih(ic,"queueMicrotask"),kh=Mh&&Mh.value;if(!kh){var Dh=new Th,Uh=function(){var t,e;for(Tl&&(t=Ch.domain)&&t.exit();e=Dh.get();)try{e()}catch(t){throw Dh.head&&Sh(),t}t&&t.enter()};oh||Tl||Ph||!Rh||!Lh?!jh&&Nh&&Nh.resolve?((xh=Nh.resolve(void 0)).constructor=Nh,Ah=Hl(xh.then,xh),Sh=function(){Ah(Uh)}):Tl?Sh=function(){Ch.nextTick(Uh)}:(_h=Hl(_h,ic),Sh=function(){_h(Uh)}):(Oh=!0,Eh=Lh.createTextNode(""),new Rh(Uh).observe(Eh,{characterData:!0}),Sh=function(){Eh.data=Oh=!Oh}),kh=function(t){Dh.head||Sh(),Dh.add(t)}}var Fh=kh,Hh=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},Bh=ic.Promise,Wh="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,Gh=!Wh&&!Tl&&"object"==typeof window&&"object"==typeof document;Bh&&Bh.prototype;var zh,Vh,$h,Yh=ga("species"),Xh=!1,qh=Cc(ic.PromiseRejectionEvent),Kh=ku("Promise",(function(){var t=Ya(Bh),e=t!==String(Bh);if(!e&&66===Gc)return!0;if(!Gc||Gc<51||!/native code/.test(t)){var n=new Bh((function(t){t(1)})),r=function(t){t((function(){}),(function(){}))};if((n.constructor={})[Yh]=r,!(Xh=n.then((function(){}))instanceof r))return!0}return!e&&(Gh||Wh)&&!qh})),Jh={CONSTRUCTOR:Kh,REJECTION_EVENT:qh,SUBCLASSING:Xh},Qh=TypeError,Zh=function(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw Qh("Bad Promise constructor");e=t,n=r})),this.resolve=Jc(e),this.reject=Jc(n)},td={f:function(t){return new Zh(t)}},ed=bh.set,nd="Promise",rd=Jh.CONSTRUCTOR,od=Jh.REJECTION_EVENT,id=Jh.SUBCLASSING,cd=iu.getterFor(nd),ad=iu.set,ud=Bh&&Bh.prototype,fd=Bh,sd=ud,ld=ic.TypeError,pd=ic.document,hd=ic.process,dd=td.f,vd=dd,gd=!!(pd&&pd.createEvent&&ic.dispatchEvent),yd="unhandledrejection",md=function(t){var e;return!(!Mc(t)||!Cc(e=t.then))&&e},bd=function(t,e){var n,r,o,i=e.value,c=1==e.state,a=c?t.ok:t.fail,u=t.resolve,f=t.reject,s=t.domain;try{a?(c||(2===e.rejection&&xd(e),e.rejection=1),!0===a?n=i:(s&&s.enter(),n=a(i),s&&(s.exit(),o=!0)),n===t.promise?f(ld("Promise-chain cycle")):(r=md(n))?sc(r,n,u,f):u(n)):f(i)}catch(t){s&&!o&&s.exit(),f(t)}},wd=function(t,e){t.notified||(t.notified=!0,Fh((function(){for(var n,r=t.reactions;n=r.get();)bd(n,t);t.notified=!1,e&&!t.rejection&&Od(t)})))},Sd=function(t,e,n){var r,o;gd?((r=pd.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),ic.dispatchEvent(r)):r={promise:e,reason:n},!od&&(o=ic["on"+t])?o(r):t===yd&&function(t,e){try{1==arguments.length?console.error(t):console.error(t,e)}catch(t){}}("Unhandled promise rejection",n)},Od=function(t){sc(ed,ic,(function(){var e,n=t.facade,r=t.value;if(Ed(t)&&(e=Hh((function(){Tl?hd.emit("unhandledRejection",r,n):Sd(yd,n,r)})),t.rejection=Tl||Ed(t)?2:1,e.error))throw e.value}))},Ed=function(t){return 1!==t.rejection&&!t.parent},xd=function(t){sc(ed,ic,(function(){var e=t.facade;Tl?hd.emit("rejectionHandled",e):Sd("rejectionhandled",e,t.value)}))},Ad=function(t,e,n){return function(r){t(e,r,n)}},Td=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,wd(t,!0))},jd=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw ld("Promise can't be resolved itself");var r=md(e);r?Fh((function(){var n={done:!1};try{sc(r,e,Ad(jd,n,t),Ad(Td,n,t))}catch(e){Td(n,e,t)}})):(t.value=e,t.state=1,wd(t,!1))}catch(e){Td({done:!1},e,t)}}};if(rd&&(sd=(fd=function(t){!function(t,e){if(Dc(e,t))return t;throw nh("Incorrect invocation")}(this,sd),Jc(t),sc(zh,this);var e=cd(this);try{t(Ad(jd,e),Ad(Td,e))}catch(t){Td(e,t)}}).prototype,(zh=function(t){ad(this,{type:nd,done:!1,notified:!1,parent:!1,reactions:new Th,rejection:!1,state:0,value:void 0})}).prototype=au(sd,"then",(function(t,e){var n=cd(this),r=dd(Sp(this,fd));return n.parent=!0,r.ok=!Cc(t)||t,r.fail=Cc(e)&&e,r.domain=Tl?hd.domain:void 0,0==n.state?n.reactions.add(r):Fh((function(){bd(r,n)})),r.promise})),Vh=function(){var t=new zh,e=cd(t);this.promise=t,this.resolve=Ad(jd,e),this.reject=Ad(Td,e)},td.f=dd=function(t){return t===fd||void 0===t?new Vh(t):vd(t)},Cc(Bh)&&ud!==Object.prototype)){$h=ud.then,id||au(ud,"then",(function(t,e){var n=this;return new fd((function(t,e){sc($h,n,t,e)})).then(t,e)}),{unsafe:!0});try{delete ud.constructor}catch(Qi){}Lf&&Lf(ud,sd)}Uu({global:!0,constructor:!0,wrap:!0,forced:rd},{Promise:fd}),eh(fd,nd,!1),qf(nd);var Pd={},Id=ga("iterator"),_d=Array.prototype,Rd=function(t){return void 0!==t&&(Pd.Array===t||_d[Id]===t)},Ld=ga("iterator"),Cd=function(t){if(!Tc(t))return Qc(t,Ld)||Qc(t,"@@iterator")||Pd[lf(t)]},Nd=TypeError,Md=function(t,e){var n=arguments.length<2?Cd(t):e;if(Jc(n))return _a(sc(n,t));throw Nd(qc(t)+" is not iterable")},kd=function(t,e,n){var r,o;_a(t);try{if(!(r=Qc(t,"return"))){if("throw"===e)throw n;return n}r=sc(r,t)}catch(t){o=!0,r=t}if("throw"===e)throw n;if(o)throw r;return _a(r),n},Dd=TypeError,Ud=function(t,e){this.stopped=t,this.result=e},Fd=Ud.prototype,Hd=function(t,e,n){var r,o,i,c,a,u,f,s=n&&n.that,l=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_RECORD),h=!(!n||!n.IS_ITERATOR),d=!(!n||!n.INTERRUPTED),v=Hl(e,s),g=function(t){return r&&kd(r,"normal",t),new Ud(!0,t)},y=function(t){return l?(_a(t),d?v(t[0],t[1],g):v(t[0],t[1])):d?v(t,g):v(t)};if(p)r=t.iterator;else if(h)r=t;else{if(!(o=Cd(t)))throw Dd(qc(t)+" is not iterable");if(Rd(o)){for(i=0,c=yu(t);c>i;i++)if((a=y(t[i]))&&Dc(Fd,a))return a;return new Ud(!1)}r=Md(t,o)}for(u=p?t.next:r.next;!(f=sc(u,r)).done;){try{a=y(f.value)}catch(t){kd(r,"throw",t)}if("object"==typeof a&&a&&Dc(Fd,a))return a}return new Ud(!1)},Bd=ga("iterator"),Wd=!1;try{var Gd=0,zd={next:function(){return{done:!!Gd++}},return:function(){Wd=!0}};zd[Bd]=function(){return this},Array.from(zd,(function(){throw 2}))}catch(Qi){}var Vd=function(t,e){if(!e&&!Wd)return!1;var n=!1;try{var r={};r[Bd]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(t){}return n},$d=Jh.CONSTRUCTOR||!Vd((function(t){Bh.all(t).then(void 0,(function(){}))}));Uu({target:"Promise",stat:!0,forced:$d},{all:function(t){var e=this,n=td.f(e),r=n.resolve,o=n.reject,i=Hh((function(){var n=Jc(e.resolve),i=[],c=0,a=1;Hd(t,(function(t){var u=c++,f=!1;a++,sc(n,e,t).then((function(t){f||(f=!0,i[u]=t,--a||r(i))}),o)})),--a||r(i)}));return i.error&&o(i.value),n.promise}});var Yd=Jh.CONSTRUCTOR,Xd=Bh&&Bh.prototype;if(Uu({target:"Promise",proto:!0,forced:Yd,real:!0},{catch:function(t){return this.then(void 0,t)}}),Cc(Bh)){var qd=kc("Promise").prototype.catch;Xd.catch!==qd&&au(Xd,"catch",qd,{unsafe:!0})}Uu({target:"Promise",stat:!0,forced:$d},{race:function(t){var e=this,n=td.f(e),r=n.reject,o=Hh((function(){var o=Jc(e.resolve);Hd(t,(function(t){sc(o,e,t).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}}),Uu({target:"Promise",stat:!0,forced:Jh.CONSTRUCTOR},{reject:function(t){var e=td.f(this);return sc(e.reject,void 0,t),e.promise}});var Kd=Jh.CONSTRUCTOR;kc("Promise"),Uu({target:"Promise",stat:!0,forced:Kd},{resolve:function(t){return function(t,e){if(_a(t),Mc(e)&&e.constructor===t)return e;var n=td.f(t);return(0,n.resolve)(e),n.promise}(this,t)}});var Jd=Wa.EXISTS,Qd=Function.prototype,Zd=bc(Qd.toString),tv=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,ev=bc(tv.exec);ac&&!Jd&&Yf(Qd,"name",{configurable:!0,get:function(){try{return ev(tv,Zd(this))[1]}catch(t){return""}}});var nv=bc([].join),rv=Ac!=Object||!ml("join",",");Uu({target:"Array",proto:!0,forced:rv},{join:function(t){return nv(Ic(this),void 0===t?",":t)}});var ov,iv=Wa.PROPER,cv=pp.trim;Uu({target:"String",proto:!0,forced:(ov="trim",cc((function(){return!!ap[ov]()||"
"!=="
"[ov]()||iv&&ap[ov].name!==ov})))},{trim:function(){return cv(this)}});var av,uv=TypeError,fv=function(t){if(Mf(t))throw uv("The method doesn't accept regular expressions");return t},sv=ga("match"),lv=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[sv]=!1,"/./"[t](e)}catch(t){}}return!1},pv=Ta.f,hv=Us("".startsWith),dv=Us("".slice),vv=Math.min,gv=lv("startsWith"),yv=!(gv||(av=pv(String.prototype,"startsWith"),!av||av.writable));Uu({target:"String",proto:!0,forced:!yv&&!gv},{startsWith:function(t){var e=Df(Pc(this));fv(t);var n=gu(vv(arguments.length>1?arguments[1]:void 0,e.length)),r=Df(t);return hv?hv(e,r,n):dv(e,n,n+r.length)===r}});var mv=bc("".indexOf);Uu({target:"String",proto:!0,forced:!lv("includes")},{includes:function(t){return!!~mv(Df(Pc(this)),Df(fv(t)),arguments.length>1?arguments[1]:void 0)}});var bv=Gl.find,wv="find",Sv=!0;wv in[]&&Array(1)[wv]((function(){Sv=!1})),Uu({target:"Array",proto:!0,forced:Sv},{find:function(t){return bv(this,t,arguments.length>1?arguments[1]:void 0)}}),tf(wv);var Ov=Gl.forEach,Ev=ml("forEach")?[].forEach:function(t){return Ov(this,t,arguments.length>1?arguments[1]:void 0)};Uu({target:"Array",proto:!0,forced:[].forEach!=Ev},{forEach:Ev});var xv={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},Av=Ea("span").classList,Tv=Av&&Av.constructor&&Av.constructor.prototype,jv=Tv===Object.prototype?void 0:Tv,Pv=function(t){if(t&&t.forEach!==Ev)try{Ua(t,"forEach",Ev)}catch(e){t.forEach=Ev}};for(var Iv in xv)xv[Iv]&&Pv(ic[Iv]&&ic[Iv].prototype);Pv(jv);var _v=cc((function(){Fu(1)}));Uu({target:"Object",stat:!0,forced:_v},{keys:function(t){return Fu(ca(t))}});var Rv=!cc((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),Lv=Ja("IE_PROTO"),Cv=Object,Nv=Cv.prototype,Mv=Rv?Cv.getPrototypeOf:function(t){var e=ca(t);if(ua(e,Lv))return e[Lv];var n=e.constructor;return Cc(n)&&e instanceof n?n.prototype:e instanceof Cv?Nv:null},kv=cc((function(){Mv(1)}));Uu({target:"Object",stat:!0,forced:kv,sham:!Rv},{getPrototypeOf:function(t){return Mv(ca(t))}});var Dv=TypeError,Uv=Object.getOwnPropertyDescriptor,Fv=ac&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}()?function(t,e){if(ef(t)&&!Uv(t,"length").writable)throw Dv("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e},Hv=TypeError,Bv=function(t,e){if(!delete t[e])throw Hv("Cannot delete property "+qc(e)+" of "+qc(t))},Wv=Af("splice"),Gv=Math.max,zv=Math.min;Uu({target:"Array",proto:!0,forced:!Wv},{splice:function(t,e){var n,r,o,i,c,a,u=ca(this),f=yu(u),s=du(t,f),l=arguments.length;for(0===l?n=r=0:1===l?(n=0,r=f-s):(n=l-2,r=zv(Gv(lu(e),0),f-s)),rf(f+n-r),o=Ef(u,r),i=0;i<r;i++)(c=s+i)in u&&of(o,i,u[c]);if(o.length=r,n<r){for(i=s;i<f-r;i++)a=i+n,(c=i+r)in u?u[a]=u[c]:Bv(u,a);for(i=f;i>f-r+n;i--)Bv(u,i-1)}else if(n>r)for(i=f-r;i>s;i--)a=i+n-1,(c=i+r-1)in u?u[a]=u[c]:Bv(u,a);for(i=0;i<n;i++)u[i+s]=arguments[i+2];return Fv(u,f-r+n),o}});var Vv=function(t,e,n,r){try{return r?e(_a(n)[0],n[1]):e(n)}catch(e){kd(t,"throw",e)}},$v=Array,Yv=!Vd((function(t){Array.from(t)}));Uu({target:"Array",stat:!0,forced:Yv},{from:function(t){var e=ca(t),n=wf(this),r=arguments.length,o=r>1?arguments[1]:void 0,i=void 0!==o;i&&(o=Hl(o,r>2?arguments[2]:void 0));var c,a,u,f,s,l,p=Cd(e),h=0;if(!p||this===$v&&Rd(p))for(c=yu(e),a=n?new this(c):$v(c);c>h;h++)l=i?o(e[h],h):e[h],of(a,h,l);else for(s=(f=Md(e,p)).next,a=n?new this:[];!(u=sc(s,f)).done;h++)l=i?Vv(f,o,[u.value,h],!0):u.value,of(a,h,l);return a.length=h,a}});var Xv,qv,Kv,Jv=ga("iterator"),Qv=!1;[].keys&&("next"in(Kv=[].keys())?(qv=Mv(Mv(Kv)))!==Object.prototype&&(Xv=qv):Qv=!0);var Zv=!Mc(Xv)||cc((function(){var t={};return Xv[Jv].call(t)!==t}));Zv&&(Xv={}),Cc(Xv[Jv])||au(Xv,Jv,(function(){return this}));var tg={IteratorPrototype:Xv,BUGGY_SAFARI_ITERATORS:Qv},eg=tg.IteratorPrototype,ng=function(){return this},rg=tg.IteratorPrototype,og=tg.BUGGY_SAFARI_ITERATORS,ig=ga("iterator"),cg="keys",ag="values",ug="entries",fg=function(){return this},sg=function(t,e){return{value:t,done:e}},lg=$s.charAt,pg="String Iterator",hg=iu.set,dg=iu.getterFor(pg);function vg(t){return void 0===t&&(t=5),function(t){void 0===t&&(t=5);for(var e="";t--;)e+=Math.floor(10*Math.random());return e}(t)}!function(t,e,n,r,o,i,c){!function(t,e,n,r){var o=e+" Iterator";t.prototype=Ku(eg,{next:vc(1,n)}),eh(t,o,!1),Pd[o]=ng}(n,e,(function(){var t,e=dg(this),n=e.string,r=e.index;return r>=n.length?sg(void 0,!0):(t=lg(n,r),e.index+=t.length,sg(t,!1))}));var a,u=function(t){if(t===o&&p)return p;if(!og&&t in s)return s[t];switch(t){case cg:case ag:case ug:return function(){return new n(this,t)}}return function(){return new n(this)}},f=e+" Iterator",s=t.prototype,l=s[ig]||s["@@iterator"]||o,p=!og&&l||u(o);l&&(a=Mv(l.call(new t)))!==Object.prototype&&a.next&&(Mv(a)!==rg&&(Lf?Lf(a,rg):Cc(a[ig])||au(a,ig,fg)),eh(a,f,!0)),s[ig]!==p&&au(s,ig,p,{name:o}),Pd[e]=p}(String,"String",(function(t){hg(this,{type:pg,string:Df(t),index:0})}));var gg={weixinJsSdkTicket:"",launchContainerQuery:".mazey-launch-app-selector",launchShowWeixinToBrowserImgUrl:"",canShowWeixinToBrowser:!1,extInfo:"",serviceAccountAppId:"",wexinServiceAccountAppId:"",openPlatformMobileAppId:"",genTagPrefixStr:"mazey-launch-app-btn-prefix-",launchShowWeixinToBrowserClassName:"mazey-launch-app-wx-to-browser",launchBtnClassName:"mazey-launch-app-inner-btn",launchBtnStyle:"",launchBtnText:"Launch App <br /><br /><br />",launchErrorLink:"",canContinuousUpdating:!1,onMenuShareTimelineOptions:void 0,onMenuShareAppMessageOptions:void 0,isConClosed:!0,isWxDebug:!1,canLaunchApp:function(){return!0},canFireErrorLinkDirectly:function(){return!1},launchBtnClick:function(){},launchReady:function(){}};return function(t){void 0===t&&(t=gg);var e=Object.assign(gg,t),n=e.weixinJsSdkTicket,r=e.launchContainerQuery,o=e.genTagPrefixStr,i=e.launchShowWeixinToBrowserImgUrl,c=e.canShowWeixinToBrowser,a=e.launchShowWeixinToBrowserClassName,u=e.launchBtnClassName,f=e.launchBtnStyle,s=e.launchBtnText,l=e.launchErrorLink,p=e.wexinServiceAccountAppId,h=e.openPlatformMobileAppId,d=e.canContinuousUpdating,v=e.onMenuShareTimelineOptions,g=e.onMenuShareAppMessageOptions,y=e.isConClosed,m=e.isWxDebug,b=e.canLaunchApp,w=e.canFireErrorLinkDirectly,S=e.launchBtnClick,O=e.launchReady,E=e.serviceAccountAppId,x=e.extInfo,A=window.sha1,T=window.wx,j=window.$||window.jQuery;A&&T&&j||console.error("Launch App: wx or sha1 or $ is not found");var P=function(){},I=function(t,e){void 0===t&&(t=""),void 0===e&&(e={isClosed:!1,showWrap:!1,showDate:!1,locales:"en-US",logFn:function(){},errorFn:function(){}});var n=Object.assign({isClosed:!1,showWrap:!1,showDate:!1,locales:"en-US",logFn:function(){},errorFn:function(){}},e),r=n.isClosed,o=n.showWrap,i=n.showDate,c=n.locales,a=n.logFn,u=n.errorFn,f=Object.create(null),s=function(){return(new Date).toLocaleDateString(c,{weekday:"short",year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"})};return["log","info","warn","error"].forEach((function(e){f[e]=function(){for(var n,c,f=[],l=0;l<arguments.length;l++)f[l]=arguments[l];if(r)return!1;var p=t,h=t;if("string"==typeof t&&t.length>=2){var d=t.length;p=":"===t[d-1]?t.substring(0,d-1):t}o&&console.log("--- ".concat(p," - begin ---")),i&&(h=t?"".concat(s()," ").concat(t):"".concat(s())),t||i?(n=console)[e].apply(n,function(t,e){for(var n=0,r=e.length,o=t.length;n<r;n++,o++)t[o]=e[n];return t}([h],f)):(c=console)[e].apply(c,f),"log"===e&&a(),"error"===e&&u(),o&&console.log("--- ".concat(p," - end ---"))}})),f}("LaunchCon:",{isClosed:y});I.log("Launch App");var _={title:"",link:"",imgUrl:"",success:function(){},cancel:function(){}},R={title:"",desc:"",link:"",imgUrl:"",type:"",dataUrl:"",success:function(){},cancel:function(){}},L={title:document.title,link:location.href};_=Ji(Ji({},_),L),R=Ji(Ji({},R),L);var C=function(t,e,n){return void 0===t&&(t=""),void 0===e&&(e=""),void 0===n&&(n="button"),"<style>.".concat(u,"{")+"opacity: 0;width: 100%;height: 100%;backgroud: transparent;color: #300f54;border: none;box-sizing: border-box;text-align: center;vertical-align: middle;"+f+e+"}</style>"+"<".concat(n,' class="').concat(u,'"')+(t&&"button"===n?' onclick="'.concat(t,'"'):"")+(t&&"a"===n?' target="_self" href="'.concat(t,'"'):"")+">"+s+"</".concat(n,">")},N=C();function M(){!function(t,e){if(void 0===e&&(e={id:""}),!t)return!1;var n=document.createDocumentFragment(),r=null,o="",i=document.createElement("style");e.id?(o="".concat(e.id),(r=document.getElementById(o))?r.innerHTML=t:(i.setAttribute("id",e.id),i.innerHTML=t,n.appendChild(i),document.head.appendChild(n))):(i.innerHTML=t,n.appendChild(i),document.head.appendChild(n))}('.mazey-launch-app-mask{position:fixed;top:0;right:0;bottom:0;left:0;background-color:rgba(0, 0, 0, .5);text-align:right;font-size:0;white-space:nowrap;overflow:auto;z-index:999;}.mazey-launch-app-img{display:inline-block;vertical-align:middle;text-align:left;font-size:14px;white-space:normal;width:50vw;margin:0.5rem 0.5rem 0 0;}.mazey-launch-app-img:after{content:"";display:inline-block;height:100%;vertical-align:middle;}',{id:"mazey-launch-app-mask-style"}),window.LAUNCH_APP_HIDE_WEIXIN_BROWSER||(window.LAUNCH_APP_HIDE_WEIXIN_BROWSER=function(){j(".mazey-launch-app-mask").hide()}),0===j(".mazey-launch-app-mask").length?j("body").append("<div class='mazey-launch-app-mask' onclick='window.LAUNCH_APP_HIDE_WEIXIN_BROWSER()'><img "+"class='mazey-launch-app-img ".concat(a,"' ")+"src='".concat(i,"' ")+"alt='Launch App' /></div>"):j(".mazey-launch-app-mask").show()}function k(){I.log("renderWeixinLaunchTemplate"),!E&&p&&(console.warn("wexinServiceAccountAppId will be deprecated, use serviceAccountAppId instead."),E=p),function(t,e){void 0===t&&(t=""),void 0===e&&(e=""),I.log("renderWXOpenLaunchApp"),Promise.all([Promise.resolve(n||window.LAUNCH_APP_WEIXIN_JS_SDK_TICKET),Promise.resolve(A)]).then((function(n){I.log("allRes",n);var i=n[0],a=n[1],u=vg(7),f=i,s=(new Date).getTime(),p=a("jsapi_ticket="+f+"&noncestr="+u+"×tamp="+s+"&url="+location.href);return T.config({debug:m,appId:t,timestamp:s,nonceStr:u,signature:p,jsApiList:["showOptionMenu","onMenuShareTimeline","onMenuShareAppMessage"],openTagList:["wx-open-launch-app"]}),T.ready((function(){v&&(I.log("onMenuShareTimelineOptions",v),T.onMenuShareTimeline(v)),window.LAUNCH_APP_SHARE_TIMELINE=function(t){t=Ji(Ji({},_),t),I.log("window LAUNCH_APP_SHARE_TIMELINE",t),T.onMenuShareTimeline(t)},g&&(I.log("onMenuShareAppMessageOptions",g),T.onMenuShareAppMessage(g)),window.LAUNCH_APP_SHARE_APP_MESSAGE=function(t){t=Ji(Ji({},R),t),I.log("window LAUNCH_APP_SHARE_APP_MESSAGE",t),T.onMenuShareAppMessage(t)},window.LAUNCH_APP_READY=!0,O&&O();var t=function(){var t=j(r);I.log("containers",r,t,t.length),t.length>0&&t.each((function(t,n){var r=j(n).attr("data-launch-app-key");if(!r){var i=j(n).parents("[data-launch-app-key]:eq(0)");i.length>0&&(r=i.attr("data-launch-app-key"),I.log("keyEle",i,r))}r||(r=t);var a="mazey-launch-app-tag-".concat(r),u=j(".".concat(a," wx-open-launch-app")),f=j(n).attr("data-launch-app-ext-info");if(!f){var s=j(n).parents("[data-launch-app-ext-info]:eq(0)");s.length>0&&(f=s.attr("data-launch-app-ext-info"),I.log("eleExtInfoEle parents",s,f))}f&&(x=f);var p=j(n).attr("data-launch-app-error-link");if(!p){var h=j(n).parents("[data-launch-app-error-link]:eq(0)");h.length>0&&(p=h.attr("data-launch-app-error-link"),I.log("eleErrorLinkEle parents",h,p))}var d=l;p&&(d=p),0===u.length&&(j(n).addClass(a),I.log("success:",a),function(t){var n=o,r=n+t,i="<wx-open-launch-app id='"+r+"' appid='"+e+"' extinfo='".concat(x)+"' style='z-index:99;position:absolute;width:100%;height:100%;opacity:1;background:transparent;overflow:hidden;left:0;'><script type='text/wxtag-template'>"+N+"<\/script></wx-open-launch-app>";j("."+t+":eq(0)").append(i);var a=document.getElementById(r);a&&(a.addEventListener("ready",(function(t){I.log("ready event",t)})),a.addEventListener("launch",(function(t){I.log("launch event",t),t.detail&&t.detail.extInfo&&I.log("launch extInfo",t.detail.extInfo)})),a.addEventListener("error",(function(t){I.error(t.detail),j("[id^='"+n+"']").hide(),c&&M(),d&&(I.log("realErrorLink",d),location.href=d)})),a.addEventListener("click",(function(t){I.log("click event",t),S&&S()})))}(a))}))};t(),P=t})),T.error((function(t){I.error(t)})),"success:launch_app"})).catch((function(t){I.error(t)}))}(E,h)}function D(t){if(I.log("appUpdated",t),!window.LAUNCH_APP_LOAD&&b(t)&&(k(),window.LAUNCH_APP_LOAD=!0),d&&window.LAUNCH_APP_LOAD&&b(t)&&P(),w()){var e=j(r);e.length>0&&e.each((function(t,e){var n=j(e).children("."+u);if(!n||!n.length){var r=j(e).attr("data-launch-app-error-link");if(!r){var o=j(e).parents("[data-launch-app-error-link]:eq(0)");o.length>0&&(r=o.attr("data-launch-app-error-link"))}if(r&&"string"==typeof r&&r.length){var i=C(r,"position:absolute;left:0;z-index:999;","a");j(e).append(i)}}}))}}function U(){I.log("appBeforeDestroy",U),window.LAUNCH_APP_LOAD=null,window.LAUNCH_APP_HIDE_WEIXIN_BROWSER=null}return window.LAUNCH_APP_UPDATE=D,window.LAUNCH_APP_BEFORE_DESTROY=U,window.LAUNCH_APP_SHOW_WEIXIN_TO_BROWSER=M,{LAUNCH_APP_UPDATE:D,LAUNCH_APP_BEFORE_DESTROY:U,LAUNCH_APP_SHOW_WEIXIN_TO_BROWSER:M,LAUNCH_APP_SHARE_TIMELINE:function(t){I.log("opt",t)},LAUNCH_APP_SHARE_APP_MESSAGE:function(t){I.log("opt",t)},start:D,update:D,destroy:U}}}();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mazey-wechat-launch-app",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.2.0",
|
|
4
4
|
"description": "Launch App in WeChat/Weixin",
|
|
5
5
|
"main": "lib/index.cjs.js",
|
|
6
6
|
"module": "lib/index.esm.js",
|
|
@@ -69,13 +69,13 @@
|
|
|
69
69
|
"jest": "^27.5.1",
|
|
70
70
|
"lint-staged": "^10.0.8",
|
|
71
71
|
"markdown-toc": "^1.2.0",
|
|
72
|
-
"mazey": "^3.9.4",
|
|
73
72
|
"prettier": "^1.19.1",
|
|
74
73
|
"prettier-eslint-cli": "^5.0.0",
|
|
75
74
|
"rollup": "^2.79.1",
|
|
76
75
|
"rollup-plugin-babel": "^4.3.3",
|
|
77
76
|
"rollup-plugin-cleaner": "^1.0.0",
|
|
78
77
|
"rollup-plugin-commonjs": "^10.1.0",
|
|
78
|
+
"rollup-plugin-node-resolve": "^5.2.0",
|
|
79
79
|
"rollup-plugin-terser": "^7.0.2",
|
|
80
80
|
"rollup-plugin-typescript2": "^0.30.0",
|
|
81
81
|
"ts-loader": "^8.0.2",
|
|
@@ -91,5 +91,8 @@
|
|
|
91
91
|
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
|
|
92
92
|
"pre-commit": "lint-staged"
|
|
93
93
|
}
|
|
94
|
+
},
|
|
95
|
+
"dependencies": {
|
|
96
|
+
"mazey": "^3.9.7"
|
|
94
97
|
}
|
|
95
98
|
}
|
package/examples/index.html
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="UTF-8">
|
|
5
|
-
<title>Test Page: mazey-wechat-launch-app</title>
|
|
6
|
-
<link rel="shortcut icon" type="image/png" href="https://mazey.cn/fav/logo-dark-circle-transparent-144x144.png">
|
|
7
|
-
<style>
|
|
8
|
-
.box {
|
|
9
|
-
color: #333;
|
|
10
|
-
}
|
|
11
|
-
</style>
|
|
12
|
-
</head>
|
|
13
|
-
<body>
|
|
14
|
-
<div class="container">
|
|
15
|
-
<div class="box">
|
|
16
|
-
<span>Content: mazey-wechat-launch-app </span>
|
|
17
|
-
</div>
|
|
18
|
-
</div>
|
|
19
|
-
</body>
|
|
20
|
-
</html>
|
package/examples/index.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
console.log('dev: mazey-wechat-launch-app');
|
package/scripts/env.sh
DELETED
package/scripts/release.js
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
/* eslint-disable @typescript-eslint/no-var-requires */
|
|
2
|
-
/* eslint-disable no-undef */
|
|
3
|
-
const HtmlWebpackPlugin = require('html-webpack-plugin');
|
|
4
|
-
const CleanWebpackPlugin = require('clean-webpack-plugin');
|
|
5
|
-
const path = require('path');
|
|
6
|
-
const _resolve = (_path) => path.resolve(__dirname, _path);
|
|
7
|
-
|
|
8
|
-
module.exports = {
|
|
9
|
-
entry: {
|
|
10
|
-
index: _resolve('../examples/index.ts'),
|
|
11
|
-
},
|
|
12
|
-
output: {
|
|
13
|
-
filename: '[name].js',
|
|
14
|
-
path: _resolve('../dist'),
|
|
15
|
-
},
|
|
16
|
-
devServer: {
|
|
17
|
-
contentBase: _resolve('../dist'),
|
|
18
|
-
},
|
|
19
|
-
module: {
|
|
20
|
-
rules: [
|
|
21
|
-
{
|
|
22
|
-
test: /\.tsx?$/,
|
|
23
|
-
use: 'ts-loader',
|
|
24
|
-
exclude: /node_modules/,
|
|
25
|
-
},
|
|
26
|
-
],
|
|
27
|
-
},
|
|
28
|
-
plugins: [
|
|
29
|
-
new HtmlWebpackPlugin({
|
|
30
|
-
filename: _resolve('../dist/index.html'),
|
|
31
|
-
template: _resolve('../examples/index.html'),
|
|
32
|
-
inject: true,
|
|
33
|
-
chunksSortMode: 'dependency',
|
|
34
|
-
}),
|
|
35
|
-
new CleanWebpackPlugin([_resolve('../dist')]),
|
|
36
|
-
],
|
|
37
|
-
resolve: {
|
|
38
|
-
extensions: ['.tsx', '.ts', '.js'],
|
|
39
|
-
},
|
|
40
|
-
};
|