mazey-wechat-launch-app 1.1.4 → 2.0.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/LICENSE +1 -1
- package/README.md +23 -12
- package/examples/index.ts +1 -7
- package/lib/index.cjs.js +2 -2
- package/lib/index.d.ts +1 -0
- package/lib/index.d.ts.map +1 -1
- package/lib/index.esm.js +2 -2
- package/lib/launch-app.min.js +1 -1
- package/package.json +11 -6
- package/scripts/release.js +1 -1
package/LICENSE
CHANGED
package/README.md
CHANGED
|
@@ -8,11 +8,11 @@
|
|
|
8
8
|
[l-image]: https://img.shields.io/npm/l/mazey-wechat-launch-app
|
|
9
9
|
[l-url]: https://github.com/mazeyqian/mazey-wechat-launch-app
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
生成微信(WeChat/Weixin)跳转 App 所需要的按钮,经过灵活配置,可支持生成单/多个按钮。
|
|
12
12
|
|
|
13
13
|
## Install
|
|
14
14
|
|
|
15
|
-
使用 [NPM](https://www.npmjs.com/package/mazey-wechat-launch-app) 安装 mazey-wechat-launch-app
|
|
15
|
+
使用 [NPM](https://www.npmjs.com/package/mazey-wechat-launch-app) 安装 mazey-wechat-launch-app:
|
|
16
16
|
|
|
17
17
|
```
|
|
18
18
|
npm install mazey-wechat-launch-app --save
|
|
@@ -28,7 +28,7 @@ import LAUNCH_APP from 'mazey-wechat-launch-app';
|
|
|
28
28
|
const options = {
|
|
29
29
|
weixinJsSdkTicket: 'bxLdikRXVb',
|
|
30
30
|
launchContainerQuery: '.example-btn',
|
|
31
|
-
|
|
31
|
+
serviceAccountAppId: 'wx123',
|
|
32
32
|
openPlatformMobileAppId: 'wx456',
|
|
33
33
|
extInfo: 'example://example/example',
|
|
34
34
|
};
|
|
@@ -55,13 +55,17 @@ app.start();
|
|
|
55
55
|
</div>
|
|
56
56
|
```
|
|
57
57
|
|
|
58
|
-
注意:本项目依赖[
|
|
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/)、[mazey](https://github.com/mazeyqian/mazey),请确保已经引入,程序会在初始化的时候探测 `window.wx`、`window.sha1`、`window.$`/`window.jQuery`、`window.mazey`。
|
|
59
|
+
|
|
60
|
+
**Install Dependencies**
|
|
59
61
|
|
|
60
62
|
```
|
|
61
|
-
# Install
|
|
62
63
|
npm install js-sha1 jquery mazey --save
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
**Import Libraries**
|
|
63
67
|
|
|
64
|
-
|
|
68
|
+
```
|
|
65
69
|
import sha1 from 'js-sha1';
|
|
66
70
|
import $ from 'jquery';
|
|
67
71
|
import mazey from 'mazey';
|
|
@@ -83,7 +87,7 @@ window.mazey = mazey;
|
|
|
83
87
|
var options = {
|
|
84
88
|
weixinJsSdkTicket: 'bxLdikRXVb',
|
|
85
89
|
launchContainerQuery: '.example-btn',
|
|
86
|
-
|
|
90
|
+
serviceAccountAppId: 'wx123',
|
|
87
91
|
openPlatformMobileAppId: 'wx456',
|
|
88
92
|
extInfo: 'example://example/example',
|
|
89
93
|
};
|
|
@@ -100,8 +104,8 @@ window.mazey = mazey;
|
|
|
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
106
|
| launchContainerQuery | [selectors](https://developer.mozilla.org/zh-CN/docs/Web/CSS/CSS_Selectors) 有效的 CSS 选择器字符串,通常是填充按钮的父容器 | string | (必填)例如:'.example-btn', '#example-btn' |
|
|
103
|
-
|
|
|
104
|
-
| openPlatformMobileAppId | AppId
|
|
107
|
+
| serviceAccountAppId | 公众号的唯一标识 AppId | string | (必填)例如:'wx123' |
|
|
108
|
+
| openPlatformMobileAppId | 开放平台内所需跳转的移动应用的 AppId | string | (必填)例如:'wx456' |
|
|
105
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 | (可选)例如:'example://example/example' |
|
|
106
110
|
|
|
107
111
|
### 方法
|
|
@@ -114,14 +118,21 @@ window.mazey = mazey;
|
|
|
114
118
|
|
|
115
119
|
## Contributing
|
|
116
120
|
|
|
121
|
+
**Install Dependencies**
|
|
122
|
+
|
|
117
123
|
```
|
|
118
|
-
# Install
|
|
119
124
|
npm i
|
|
125
|
+
```
|
|
120
126
|
|
|
121
|
-
|
|
127
|
+
**Serve**
|
|
128
|
+
|
|
129
|
+
```
|
|
122
130
|
npm run dev
|
|
131
|
+
```
|
|
123
132
|
|
|
124
|
-
|
|
133
|
+
**Build**
|
|
134
|
+
|
|
135
|
+
```
|
|
125
136
|
npm run build
|
|
126
137
|
```
|
|
127
138
|
|
package/examples/index.ts
CHANGED
package/lib/index.cjs.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* mazey-wechat-launch-app
|
|
2
|
+
* mazey-wechat-launch-app v2.0.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 n(t,n){return t(n={exports:{}},n.exports),n.exports}var e,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 n=p(this,t);return!!n&&n.enumerable}:l,d={f:h},v=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}},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))},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,n){return arguments.length<2?(e=i[t],R(e)?e:void 0):i[t]&&i[t][n];var e},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=(e=z.split("."))[0]>0&&e[0]<4?1:+(e[0]+e[1])),!r&&D&&(!(e=D.match(/Edge\/(\d+)/))||e[1]>=74)&&(e=D.match(/Chrome\/(\d+)/))&&(r=+e[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 n=M("Symbol");return R(n)&&U(n.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,n){var e=t[n];return T(e)?void 0:Q(e)},Z=TypeError,tt=Object.defineProperty,nt=function(t,n){try{tt(i,t,{value:n,configurable:!0,writable:!0})}catch(e){i[t]=n}return n},et="__core-js_shared__",rt=i[et]||nt(et,{}),ot=n((function(t){(t.exports=function(t,n){return rt[t]||(rt[t]=void 0!==n?n:{})})("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,n){return ct(at(t),n)},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,n){if(!N(t)||q(t))return t;var e,r=$(t,mt);if(r){if(void 0===n&&(n="default"),e=s(r,t,n),!N(e)||q(e))return e;throw gt("Can't convert object to primitive value")}return void 0===n&&(n="number"),function(t,n){var e,r;if("string"===n&&R(e=t.toString)&&!N(r=s(e,t)))return r;if(R(e=t.valueOf)&&!N(r=s(e,t)))return r;if("string"!==n&&R(e=t.toString)&&!N(r=s(e,t)))return r;throw Z("Can't convert object to primitive value")}(t,n)},wt=function(t){var n=bt(t,"string");return q(n)?n:n+""},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,n){if(t=j(t),n=wt(n),Et)try{return Pt(t,n)}catch(t){}if(ut(t,n))return v(!s(d.f,t,n),t[n])}},_t=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?_t?function(t,n,e){if(Ct(t),n=wt(n),Ct(e),"function"==typeof t&&"prototype"===n&&"value"in e&&Mt in e&&!e[Mt]){var r=Rt(t,n);r&&r[Mt]&&(t[n]=e.value,e={configurable:Nt in e?e[Nt]:r[Nt],enumerable:kt in e?e[kt]:r[kt],writable:!1})}return It(t,n,e)}:It:function(t,n,e){if(Ct(t),n=wt(n),Ct(e),Et)try{return It(t,n,e)}catch(t){}if("get"in e||"set"in e)throw xt("Accessors not supported");return"value"in e&&(t[n]=e.value),t}},Dt=c?function(t,n,e){return Ut.f(t,n,v(1,e))}:function(t,n,e){return t[n]=e,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",tn=i.TypeError,nn=i.WeakMap;if(Jt||rt.state){var en=rt.state||(rt.state=new nn);en.get=en.get,en.has=en.has,en.set=en.set,Gt=function(t,n){if(en.has(t))throw tn(Zt);return n.facade=t,en.set(t,n),n},Vt=function(t){return en.get(t)||{}},Xt=function(t){return en.has(t)}}else{var rn=Qt("state");$t[rn]=!0,Gt=function(t,n){if(ut(t,rn))throw tn(Zt);return n.facade=t,Dt(t,rn,n),n},Vt=function(t){return ut(t,rn)?t[rn]:{}},Xt=function(t){return ut(t,rn)}}var on={set:Gt,get:Vt,has:Xt,enforce:function(t){return Xt(t)?Vt(t):Gt(t,{})},getterFor:function(t){return function(n){var e;if(!N(n)||(e=Vt(n)).type!==t)throw tn("Incompatible receiver, "+t+" required");return e}}},an=n((function(t){var n=zt.CONFIGURABLE,e=on.enforce,r=on.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")||n&&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=e(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")})),cn=function(t,n,e,r){r||(r={});var o=r.enumerable,i=void 0!==r.name?r.name:n;if(R(e)&&an(e,i,r),r.global)o?t[n]=e:nt(n,e);else{try{r.unsafe?t[n]&&(o=!0):delete t[n]}catch(t){}o?t[n]=e:Ut.f(t,n,{value:e,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return t},un=Math.ceil,fn=Math.floor,sn=Math.trunc||function(t){var n=+t;return(n>0?fn:un)(n)},ln=function(t){var n=+t;return n!=n||0===n?0:sn(n)},pn=Math.max,hn=Math.min,dn=Math.min,vn=function(t){return(n=t.length)>0?dn(ln(n),9007199254740991):0;var n},yn=function(t){return function(n,e,r){var o,i=j(n),a=vn(i),c=function(t,n){var e=ln(t);return e<0?pn(e+n,0):hn(e,n)}(r,a);if(t&&e!=e){for(;a>c;)if((o=i[c++])!=o)return!0}else for(;a>c;c++)if((t||c in i)&&i[c]===e)return t||c||0;return!t&&-1}},gn={includes:yn(!0),indexOf:yn(!1)}.indexOf,mn=b([].push),bn=function(t,n){var e,r=j(t),o=0,i=[];for(e in r)!ut($t,e)&&ut(r,e)&&mn(i,e);for(;n.length>o;)ut(r,e=n[o++])&&(~gn(i,e)||mn(i,e));return i},wn=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Sn=wn.concat("length","prototype"),An={f:Object.getOwnPropertyNames||function(t){return bn(t,Sn)}},On={f:Object.getOwnPropertySymbols},En=b([].concat),Pn=M("Reflect","ownKeys")||function(t){var n=An.f(Ct(t)),e=On.f;return e?En(n,e(t)):n},Tn=function(t,n,e){for(var r=Pn(n),o=Ut.f,i=Tt.f,a=0;a<r.length;a++){var c=r[a];ut(t,c)||e&&ut(e,c)||o(t,c,i(n,c))}},_n=/#|\.prototype\./,Ln=function(t,n){var e=Cn[jn(t)];return e==In||e!=xn&&(R(n)?a(n):!!n)},jn=Ln.normalize=function(t){return String(t).replace(_n,".").toLowerCase()},Cn=Ln.data={},xn=Ln.NATIVE="N",In=Ln.POLYFILL="P",Rn=Ln,kn=Tt.f,Nn=function(t,n){var e,r,o,a,c,u=t.target,f=t.global,s=t.stat;if(e=f?i:s?i[u]||nt(u,{}):(i[u]||{}).prototype)for(r in n){if(a=n[r],o=t.dontCallGetSet?(c=kn(e,r))&&c.value:e[r],!Rn(f?r:u+(s?".":"#")+r,t.forced)&&void 0!==o){if(typeof a==typeof o)continue;Tn(a,o)}(t.sham||o&&o.sham)&&Dt(a,"sham",!0),cn(e,r,a,t)}},Mn=Object.keys||function(t){return bn(t,wn)},Un=Object.assign,Dn=Object.defineProperty,Hn=b([].concat),Bn=!Un||a((function(){if(c&&1!==Un({b:1},Un(Dn({},"a",{enumerable:!0,get:function(){Dn(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},n={},e=Symbol(),r="abcdefghijklmnopqrst";return t[e]=7,r.split("").forEach((function(t){n[t]=t})),7!=Un({},t)[e]||Mn(Un({},n)).join("")!=r}))?function(t,n){for(var e=at(t),r=arguments.length,o=1,i=On.f,a=d.f;r>o;)for(var u,f=P(arguments[o++]),l=i?Hn(Mn(f),i(f)):Mn(f),p=l.length,h=0;p>h;)u=l[h++],c&&!s(a,f,u)||(e[u]=f[u]);return e}:Un;Nn({target:"Object",stat:!0,arity:2,forced:Object.assign!==Bn},{assign:Bn});var Wn=Array.isArray||function(t){return"Array"==A(t)},zn=TypeError,Fn=function(t){if(t>9007199254740991)throw zn("Maximum allowed index exceeded");return t},Gn=function(t,n,e){var r=wt(n);r in t?Ut.f(t,r,v(0,e)):t[r]=e},Vn={};Vn[yt("toStringTag")]="z";var Xn="[object z]"===String(Vn),qn=yt("toStringTag"),Yn=Object,Jn="Arguments"==A(function(){return arguments}()),Kn=Xn?A:function(t){var n,e,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=function(t,n){try{return t[n]}catch(t){}}(n=Yn(t),qn))?e:Jn?A(n):"Object"==(r=A(n))&&R(n.callee)?"Arguments":r},Qn=function(){},$n=[],Zn=M("Reflect","construct"),te=/^\s*(?:class|function)\b/,ne=b(te.exec),ee=!te.exec(Qn),re=function(t){if(!R(t))return!1;try{return Zn(Qn,$n,t),!0}catch(t){return!1}},oe=function(t){if(!R(t))return!1;switch(Kn(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return ee||!!ne(te,qt(t))}catch(t){return!0}};oe.sham=!0;var ie,ae=!Zn||a((function(){var t;return re(re.call)||!re(Object)||!re((function(){t=!0}))||t}))?oe:re,ce=yt("species"),ue=Array,fe=function(t,n){return new(function(t){var n;return Wn(t)&&(n=t.constructor,(ae(n)&&(n===ue||Wn(n.prototype))||N(n)&&null===(n=n[ce]))&&(n=void 0)),void 0===n?ue:n}(t))(0===n?0:n)},se=yt("species"),le=yt("isConcatSpreadable"),pe=F>=51||!a((function(){var t=[];return t[le]=!1,t.concat()[0]!==t})),he=function(t){if(!N(t))return!1;var n=t[le];return void 0!==n?!!n:Wn(t)},de=!(pe&&(ie="concat",F>=51||!a((function(){var t=[];return(t.constructor={})[se]=function(){return{foo:1}},1!==t[ie](Boolean).foo}))));Nn({target:"Array",proto:!0,arity:1,forced:de},{concat:function(t){var n,e,r,o,i,a=at(this),c=fe(a,0),u=0;for(n=-1,r=arguments.length;n<r;n++)if(he(i=-1===n?a:arguments[n]))for(o=vn(i),Fn(u+o),e=0;e<o;e++,u++)e in i&&Gn(c,u,i[e]);else Fn(u+1),Gn(c,u++,i);return c.length=u,c}});var ve,ye=c&&!_t?Object.defineProperties:function(t,n){Ct(t);for(var e,r=j(n),o=Mn(n),i=o.length,a=0;i>a;)Ut.f(t,e=o[a++],r[e]);return t},ge={f:ye},me=M("document","documentElement"),be="prototype",we="script",Se=Qt("IE_PROTO"),Ae=function(){},Oe=function(t){return"<"+we+">"+t+"</"+we+">"},Ee=function(t){t.write(Oe("")),t.close();var n=t.parentWindow.Object;return t=null,n},Pe=function(){try{ve=new ActiveXObject("htmlfile")}catch(t){}var t,n,e;Pe="undefined"!=typeof document?document.domain&&ve?Ee(ve):(n=Ot("iframe"),e="java"+we+":",n.style.display="none",me.appendChild(n),n.src=String(e),(t=n.contentWindow.document).open(),t.write(Oe("document.F=Object")),t.close(),t.F):Ee(ve);for(var r=wn.length;r--;)delete Pe[be][wn[r]];return Pe()};$t[Se]=!0;var Te=Object.create||function(t,n){var e;return null!==t?(Ae[be]=Ct(t),e=new Ae,Ae[be]=null,e[Se]=t):e=Pe(),void 0===n?e:ge.f(e,n)},_e=Ut.f,Le=yt("unscopables"),je=Array.prototype;null==je[Le]&&_e(je,Le,{configurable:!0,value:Te(null)});var Ce,xe,Ie,Re=function(t){je[Le][t]=!0},ke={},Ne=!a((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),Me=Qt("IE_PROTO"),Ue=Object,De=Ue.prototype,He=Ne?Ue.getPrototypeOf:function(t){var n=at(t);if(ut(n,Me))return n[Me];var e=n.constructor;return R(e)&&n instanceof e?e.prototype:n instanceof Ue?De:null},Be=yt("iterator"),We=!1;[].keys&&("next"in(Ie=[].keys())?(xe=He(He(Ie)))!==Object.prototype&&(Ce=xe):We=!0);var ze=!N(Ce)||a((function(){var t={};return Ce[Be].call(t)!==t}));ze&&(Ce={}),R(Ce[Be])||cn(Ce,Be,(function(){return this}));var Fe={IteratorPrototype:Ce,BUGGY_SAFARI_ITERATORS:We},Ge=Ut.f,Ve=yt("toStringTag"),Xe=function(t,n,e){t&&!e&&(t=t.prototype),t&&!ut(t,Ve)&&Ge(t,Ve,{configurable:!0,value:n})},qe=Fe.IteratorPrototype,Ye=function(){return this},Je=String,Ke=TypeError,Qe=Object.setPrototypeOf||("__proto__"in{}?function(){var t,n=!1,e={};try{t=function(t,n,e){try{return b(Q(Object.getOwnPropertyDescriptor(t,n)[e]))}catch(t){}}(Object.prototype,"__proto__","set"),t(e,[]),n=e instanceof Array}catch(t){}return function(e,r){return Ct(e),function(t){if("object"==typeof t||R(t))return t;throw Ke("Can't set "+Je(t)+" as a prototype")}(r),n?t(e,r):e.__proto__=r,e}}():void 0),$e=zt.PROPER,Ze=zt.CONFIGURABLE,tr=Fe.IteratorPrototype,nr=Fe.BUGGY_SAFARI_ITERATORS,er=yt("iterator"),rr="keys",or="values",ir="entries",ar=function(){return this},cr=function(t,n,e,r,o,i,a){!function(t,n,e,r){var o=n+" Iterator";t.prototype=Te(qe,{next:v(+!r,e)}),Xe(t,o,!1),ke[o]=Ye}(e,n,r);var c,u,f,l=function(t){if(t===o&&g)return g;if(!nr&&t in d)return d[t];switch(t){case rr:case or:case ir:return function(){return new e(this,t)}}return function(){return new e(this)}},p=n+" Iterator",h=!1,d=t.prototype,y=d[er]||d["@@iterator"]||o&&d[o],g=!nr&&y||l(o),m="Array"==n&&d.entries||y;if(m&&(c=He(m.call(new t)))!==Object.prototype&&c.next&&(He(c)!==tr&&(Qe?Qe(c,tr):R(c[er])||cn(c,er,ar)),Xe(c,p,!0)),$e&&o==or&&y&&y.name!==or&&(Ze?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)(nr||h||!(f in d))&&cn(d,f,u[f]);else Nn({target:n,proto:!0,forced:nr||h},u);return d[er]!==g&&cn(d,er,g,{name:o}),ke[n]=g,u},ur=function(t,n){return{value:t,done:n}},fr=Ut.f,sr="Array Iterator",lr=on.set,pr=on.getterFor(sr),hr=cr(Array,"Array",(function(t,n){lr(this,{type:sr,target:j(t),index:0,kind:n})}),(function(){var t=pr(this),n=t.target,e=t.kind,r=t.index++;return!n||r>=n.length?(t.target=void 0,ur(void 0,!0)):ur("keys"==e?r:"values"==e?n[r]:[r,n[r]],!1)}),"values"),dr=ke.Arguments=ke.Array;if(Re("keys"),Re("values"),Re("entries"),c&&"values"!==dr.name)try{fr(dr,"name",{value:"values"})}catch(t){}var vr=Xn?{}.toString:function(){return"[object "+Kn(this)+"]"};Xn||cn(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,n){var e,r=Ct(t).constructor;return void 0===r||T(e=Ct(r)[Er])?n:function(t){if(ae(t))return t;throw Or(J(t)+" is not a constructor")}(e)},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)}),Cr=function(t){if("Function"===A(t))return b(t)},xr=Cr(Cr.bind),Ir=function(t,n){return Q(t),void 0===n?t:u?xr(t,n):function(){return t.apply(n,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 n=Gr[t];delete Gr[t],n()}},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,n){if(t<n)throw kr("Not enough arguments")}(arguments.length,1);var n=R(t)?t:Br(t),e=Rr(arguments,1);return Gr[++Fr]=function(){jr(n,void 0,e)},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){me.appendChild(Ot("script"))[Vr]=function(){me.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 n={item:t,next:null},e=this.tail;e?e.next=n:this.head=n,this.tail=n},get:function(){var t=this.head;if(t)return null===(this.head=t.next)&&(this.tail=null),t.item}};var $r,Zr,to,no,eo,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,n;for(wr&&(t=so.domain)&&t.exit();n=vo.get();)try{n()}catch(t){throw vo.head&&$r(),t}t&&t.enter()};Nr||wr||io||!uo||!fo?!oo&&lo&&lo.resolve?((no=lo.resolve(void 0)).constructor=lo,eo=Ir(no.then,no),$r=function(){eo(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"),Co=!1,xo=R(i.PromiseRejectionEvent),Io=Rn("Promise",(function(){var t=qt(bo),n=t!==String(bo);if(!n&&66===F)return!0;if(!F||F<51||!/native code/.test(t)){var e=new bo((function(t){t(1)})),r=function(t){t((function(){}),(function(){}))};if((e.constructor={})[jo]=r,!(Co=e.then((function(){}))instanceof r))return!0}return!n&&(So||wo)&&!xo})),Ro={CONSTRUCTOR:Io,REJECTION_EVENT:xo,SUBCLASSING:Co},ko=TypeError,No=function(t){var n,e;this.promise=new t((function(t,r){if(void 0!==n||void 0!==e)throw ko("Bad Promise constructor");n=t,e=r})),this.resolve=Q(n),this.reject=Q(e)},Mo={f:function(t){return new No(t)}},Uo=Kr.set,Do="Promise",Ho=Ro.CONSTRUCTOR,Bo=Ro.REJECTION_EVENT,Wo=Ro.SUBCLASSING,zo=on.getterFor(Do),Fo=on.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 n;return!(!N(t)||!R(n=t.then))&&n},ni=function(t,n){var e,r,o,i=n.value,a=1==n.state,c=a?t.ok:t.fail,u=t.resolve,f=t.reject,l=t.domain;try{c?(a||(2===n.rejection&&ai(n),n.rejection=1),!0===c?e=i:(l&&l.enter(),e=c(i),l&&(l.exit(),o=!0)),e===t.promise?f(qo("Promise-chain cycle")):(r=ti(e))?s(r,e,u,f):u(e)):f(i)}catch(t){l&&!o&&l.exit(),f(t)}},ei=function(t,n){t.notified||(t.notified=!0,go((function(){for(var e,r=t.reactions;e=r.get();)ni(e,t);t.notified=!1,n&&!t.rejection&&oi(t)})))},ri=function(t,n,e){var r,o;$o?((r=Yo.createEvent("Event")).promise=n,r.reason=e,r.initEvent(t,!1,!0),i.dispatchEvent(r)):r={promise:n,reason:e},!Bo&&(o=i["on"+t])?o(r):t===Zo&&function(t,n){try{1==arguments.length?console.error(t):console.error(t,n)}catch(t){}}("Unhandled promise rejection",e)},oi=function(t){s(Uo,i,(function(){var n,e=t.facade,r=t.value;if(ii(t)&&(n=mo((function(){wr?Jo.emit("unhandledRejection",r,e):ri(Zo,e,r)})),t.rejection=wr||ii(t)?2:1,n.error))throw n.value}))},ii=function(t){return 1!==t.rejection&&!t.parent},ai=function(t){s(Uo,i,(function(){var n=t.facade;wr?Jo.emit("rejectionHandled",n):ri("rejectionhandled",n,t.value)}))},ci=function(t,n,e){return function(r){t(n,r,e)}},ui=function(t,n,e){t.done||(t.done=!0,e&&(t=e),t.value=n,t.state=2,ei(t,!0))},fi=function(t,n,e){if(!t.done){t.done=!0,e&&(t=e);try{if(t.facade===n)throw qo("Promise can't be resolved itself");var r=ti(n);r?go((function(){var e={done:!1};try{s(r,n,ci(fi,e,t),ci(ui,e,t))}catch(n){ui(e,n,t)}})):(t.value=n,t.state=1,ei(t,!1))}catch(n){ui({done:!1},n,t)}}};if(Ho&&(Xo=(Vo=function(t){!function(t,n){if(U(n,t))return t;throw Ar("Incorrect invocation")}(this,Xo),Q(t),s(Ao,this);var n=zo(this);try{t(ci(fi,n),ci(ui,n))}catch(t){ui(n,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=cn(Xo,"then",(function(t,n){var e=zo(this),r=Ko(Pr(this,Vo));return e.parent=!0,r.ok=!R(t)||t,r.fail=R(n)&&n,r.domain=wr?Jo.domain:void 0,0==e.state?e.reactions.add(r):go((function(){ni(r,e)})),r.promise})),Oo=function(){var t=new Ao,n=zo(t);this.promise=t,this.resolve=ci(fi,n),this.reject=ci(ui,n)},Mo.f=Ko=function(t){return t===Vo||undefined===t?new Oo(t):Qo(t)},R(bo)&&Go!==Object.prototype)){Eo=Go.then,Wo||cn(Go,"then",(function(t,n){var e=this;return new Vo((function(t,n){s(Eo,e,t,n)})).then(t,n)}),{unsafe:!0});try{delete Go.constructor}catch(t){}Qe&&Qe(Go,Xo)}Nn({global:!0,constructor:!0,wrap:!0,forced:Ho},{Promise:Vo}),Xe(Vo,Do,!1),Lo=M(Do),c&&Lo&&!Lo[Sr]&&(Po=Lo,To=Sr,(_o={configurable:!0,get:function(){return this}}).get&&an(_o.get,To,{getter:!0}),_o.set&&an(_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")||ke[Kn(t)]},di=TypeError,vi=function(t,n,e){var r,o;Ct(t);try{if(!(r=$(t,"return"))){if("throw"===n)throw e;return e}r=s(r,t)}catch(t){o=!0,r=t}if("throw"===n)throw e;if(o)throw r;return Ct(r),e},yi=TypeError,gi=function(t,n){this.stopped=t,this.result=n},mi=gi.prototype,bi=function(t,n,e){var r,o,i,a,c,u,f,l,p=e&&e.that,h=!(!e||!e.AS_ENTRIES),d=!(!e||!e.IS_RECORD),v=!(!e||!e.IS_ITERATOR),y=!(!e||!e.INTERRUPTED),g=Ir(n,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)&&(ke.Array===l||li[si]===l)){for(i=0,a=vn(t);a>i;i++)if((c=b(t[i]))&&U(mi,c))return c;return new gi(!1)}r=function(t,n){var e=arguments.length<2?hi(t):n;if(Q(e))return Ct(s(e,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,n){if(!n&&!Si)return!1;var e=!1;try{var r={};r[wi]=function(){return{next:function(){return{done:e=!0}}}},t(r)}catch(t){}return e}((function(t){bo.all(t).then(void 0,(function(){}))}));Nn({target:"Promise",stat:!0,forced:Ei},{all:function(t){var n=this,e=Mo.f(n),r=e.resolve,o=e.reject,i=mo((function(){var e=Q(n.resolve),i=[],a=0,c=1;bi(t,(function(t){var u=a++,f=!1;c++,s(e,n,t).then((function(t){f||(f=!0,i[u]=t,--c||r(i))}),o)})),--c||r(i)}));return i.error&&o(i.value),e.promise}});var Pi=Ro.CONSTRUCTOR,Ti=bo&&bo.prototype;if(Nn({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&&cn(Ti,"catch",_i,{unsafe:!0})}Nn({target:"Promise",stat:!0,forced:Ei},{race:function(t){var n=this,e=Mo.f(n),r=e.reject,o=mo((function(){var o=Q(n.resolve);bi(t,(function(t){s(o,n,t).then(e.resolve,r)}))}));return o.error&&r(o.value),e.promise}}),Nn({target:"Promise",stat:!0,forced:Ro.CONSTRUCTOR},{reject:function(t){var n=Mo.f(this);return s(n.reject,void 0,t),n.promise}});var Li=Ro.CONSTRUCTOR;M("Promise"),Nn({target:"Promise",stat:!0,forced:Li},{resolve:function(t){return function(t,n){if(Ct(t),N(n)&&n.constructor===t)return n;var e=Mo.f(t);return(0,e.resolve)(n),e.promise}(this,t)}});var ji=String,Ci=function(t){if("Symbol"===Kn(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(n,e){var r,o,i=Ci(L(n)),a=ln(e),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=on.set,Di=on.getterFor(Mi);cr(String,"String",(function(t){Ui(this,{type:Mi,string:Ci(t),index:0})}),(function(){var t,n=Di(this),e=n.string,r=n.index;return r>=e.length?ur(void 0,!0):(t=Ni(e,r),n.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,n){if(t){if(t[Fi]!==Vi)try{Dt(t,Fi,Vi)}catch(n){t[Fi]=Vi}if(t[Gi]||Dt(t,Gi,n),Hi[n])for(var e in hr)if(t[e]!==hr[e])try{Dt(t,e,hr[e])}catch(n){t[e]=hr[e]}}};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 n,e=1,r=arguments.length;e<r;e++)for(var o in n=arguments[e])Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o]);return t},Yi.apply(this,arguments)},Ji={weixinJsSdkTicket:"",launchContainerQuery:".mazey-launch-app-selector",launchShowWeixinToBrowserImgUrl:"",canShowWeixinToBrowser:!1,extInfo:"",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",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 n=Object.assign(Ji,t),e=n.weixinJsSdkTicket,r=n.launchContainerQuery,o=n.genTagPrefixStr,i=n.launchShowWeixinToBrowserImgUrl,a=n.canShowWeixinToBrowser,c=n.launchShowWeixinToBrowserClassName,u=n.launchBtnClassName,f=n.launchBtnStyle,s=n.launchBtnText,l=n.launchErrorLink,p=n.wexinServiceAccountAppId,h=n.openPlatformMobileAppId,d=n.canContinuousUpdating,v=n.onMenuShareTimelineOptions,y=n.onMenuShareAppMessageOptions,g=n.isConClosed,m=n.isWxDebug,b=n.canLaunchApp,w=n.canFireErrorLinkDirectly,S=n.launchBtnClick,A=n.launchReady,O=n.extInfo,E=window.mazey,P=window.sha1,T=window.wx,_=window.$||window.jQuery;E&&P&&T&&_||console.error("Launch App: wx or sha1 or $ or mazey is not found");var L=function(){},j=E.genCustomConsole("LaunchCon:",{isClosed:g});j.log("Launch App");var C={title:"",link:"",imgUrl:"",success:function(){},cancel:function(){}},x={title:"",desc:"",link:"",imgUrl:"",type:"",dataUrl:"",success:function(){},cancel:function(){}},I={title:document.title,link:location.href};C=Yi(Yi({},C),I),x=Yi(Yi({},x),I);var R=function(t,n,e){return void 0===t&&(t=""),void 0===n&&(n=""),void 0===e&&(e="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+n+"}</style>"+"<".concat(e,' class="').concat(u,'"')+(t&&"button"===e?' onclick="'.concat(t,'"'):"")+(t&&"a"===e?' target="_self" href="'.concat(t,'"'):"")+">"+s+"</".concat(e,">")},k=R();function N(){E.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(){_(".mazey-launch-app-mask").hide()}),0===_(".mazey-launch-app-mask").length?_("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>"):_(".mazey-launch-app-mask").show()}function M(){j.log("renderWeixinLaunchTemplate"),function(t,n){void 0===t&&(t=""),void 0===n&&(n=""),j.log("renderWXOpenLaunchApp"),Promise.all([Promise.resolve(e||window.LAUNCH_APP_WEIXIN_JS_SDK_TICKET),Promise.resolve(P)]).then((function(e){j.log("allRes",e);var i=e[0],c=e[1],u=E.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&&(j.log("onMenuShareTimelineOptions",v),T.onMenuShareTimeline(v)),window.LAUNCH_APP_SHARE_TIMELINE=function(t){t=Yi(Yi({},C),t),j.log("window LAUNCH_APP_SHARE_TIMELINE",t),T.onMenuShareTimeline(t)},y&&(j.log("onMenuShareAppMessageOptions",y),T.onMenuShareAppMessage(y)),window.LAUNCH_APP_SHARE_APP_MESSAGE=function(t){t=Yi(Yi({},x),t),j.log("window LAUNCH_APP_SHARE_APP_MESSAGE",t),T.onMenuShareAppMessage(t)},window.LAUNCH_APP_READY=!0,A&&A();var t=function(){var t=_(r);j.log("containers",r,t,t.length),t.length>0&&t.each((function(t,e){var r=_(e).attr("data-launch-app-key");if(!r){var i=_(e).parents("[data-launch-app-key]:eq(0)");i.length>0&&(r=i.attr("data-launch-app-key"),j.log("keyEle",i,r))}r||(r=t);var c="mazey-launch-app-tag-".concat(r),u=_(".".concat(c," wx-open-launch-app")),f=_(e).attr("data-launch-app-ext-info");if(!f){var s=_(e).parents("[data-launch-app-ext-info]:eq(0)");s.length>0&&(f=s.attr("data-launch-app-ext-info"),j.log("eleExtInfoEle parents",s,f))}f&&(O=f);var p=_(e).attr("data-launch-app-error-link");if(!p){var h=_(e).parents("[data-launch-app-error-link]:eq(0)");h.length>0&&(p=h.attr("data-launch-app-error-link"),j.log("eleErrorLinkEle parents",h,p))}var d=l;p&&(d=p),0===u.length&&(_(e).addClass(c),j.log("success:",c),function(t){var e=o,r=e+t,i="<wx-open-launch-app id='"+r+"' appid='"+n+"' extinfo='".concat(O)+"' style='z-index: 99; position: absolute; width: 100%; height: 100%; opacity: 1; background: transparent; overflow: hidden; left: 0;'><script type='text/wxtag-template'>"+k+"<\/script></wx-open-launch-app>";_("."+t+":eq(0)").append(i);var c=document.getElementById(r);c&&(c.addEventListener("ready",(function(t){j.log("ready event",t)})),c.addEventListener("launch",(function(t){j.log("launch event",t),t.detail&&t.detail.extInfo&&j.log("launch extInfo",t.detail.extInfo)})),c.addEventListener("error",(function(t){j.error(t.detail),_("[id^='"+e+"']").hide(),a&&N(),d&&(j.log("realErrorLink",d),location.href=d)})),c.addEventListener("click",(function(t){j.log("click event",t),S&&S()})))}(c))}))};t(),L=t})),T.error((function(t){j.error(t)})),"success:launch_app"})).catch((function(t){j.error(t)}))}(p,h)}function U(t){if(j.log("appUpdated",t),!window.LAUNCH_APP_LOAD&&b(t)&&(M(),window.LAUNCH_APP_LOAD=!0),d&&window.LAUNCH_APP_LOAD&&b(t)&&L(),w()){var n=_(r);n.length>0&&n.each((function(t,n){var e=_(n).children("."+u);if(!e||!e.length){var r=_(n).attr("data-launch-app-error-link");if(!r){var o=_(n).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=R(r,"position: absolute; left: 0; z-index: 999;","a");_(n).append(i)}}}))}}function D(){j.log("appBeforeDestroy",D),window.LAUNCH_APP_LOAD=null,window.LAUNCH_APP_HIDE_WEIXIN_BROWSER=null}return window.LAUNCH_APP_UPDATE=U,window.LAUNCH_APP_BEFORE_DESTROY=D,window.LAUNCH_APP_SHOW_WEIXIN_TO_BROWSER=N,{LAUNCH_APP_UPDATE:U,LAUNCH_APP_BEFORE_DESTROY:D,LAUNCH_APP_SHOW_WEIXIN_TO_BROWSER:N,LAUNCH_APP_SHARE_TIMELINE:function(t){j.log("opt",t)},LAUNCH_APP_SHARE_APP_MESSAGE:function(t){j.log("opt",t)},start:U,update:U,destroy:D}};
|
|
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}};
|
package/lib/index.d.ts
CHANGED
|
@@ -15,6 +15,7 @@ declare const _default: (options?: {
|
|
|
15
15
|
launchBtnText?: string | undefined;
|
|
16
16
|
launchErrorLink?: string | undefined;
|
|
17
17
|
extInfo?: string | undefined;
|
|
18
|
+
serviceAccountAppId?: string | undefined;
|
|
18
19
|
wexinServiceAccountAppId?: string | undefined;
|
|
19
20
|
openPlatformMobileAppId?: string | undefined;
|
|
20
21
|
canContinuousUpdating?: boolean | undefined;
|
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":"AA2BA;;;;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
|
|
2
|
+
* mazey-wechat-launch-app v2.0.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 n(t,n){return t(n={exports:{}},n.exports),n.exports}var e,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 n=p(this,t);return!!n&&n.enumerable}:l,d={f:h},v=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}},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))},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,n){return arguments.length<2?(e=i[t],R(e)?e:void 0):i[t]&&i[t][n];var e},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=(e=z.split("."))[0]>0&&e[0]<4?1:+(e[0]+e[1])),!r&&D&&(!(e=D.match(/Edge\/(\d+)/))||e[1]>=74)&&(e=D.match(/Chrome\/(\d+)/))&&(r=+e[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 n=M("Symbol");return R(n)&&U(n.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,n){var e=t[n];return T(e)?void 0:Q(e)},Z=TypeError,tt=Object.defineProperty,nt=function(t,n){try{tt(i,t,{value:n,configurable:!0,writable:!0})}catch(e){i[t]=n}return n},et="__core-js_shared__",rt=i[et]||nt(et,{}),ot=n((function(t){(t.exports=function(t,n){return rt[t]||(rt[t]=void 0!==n?n:{})})("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,n){return ct(at(t),n)},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,n){if(!N(t)||q(t))return t;var e,r=$(t,mt);if(r){if(void 0===n&&(n="default"),e=s(r,t,n),!N(e)||q(e))return e;throw gt("Can't convert object to primitive value")}return void 0===n&&(n="number"),function(t,n){var e,r;if("string"===n&&R(e=t.toString)&&!N(r=s(e,t)))return r;if(R(e=t.valueOf)&&!N(r=s(e,t)))return r;if("string"!==n&&R(e=t.toString)&&!N(r=s(e,t)))return r;throw Z("Can't convert object to primitive value")}(t,n)},wt=function(t){var n=bt(t,"string");return q(n)?n:n+""},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,n){if(t=j(t),n=wt(n),Et)try{return Pt(t,n)}catch(t){}if(ut(t,n))return v(!s(d.f,t,n),t[n])}},_t=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?_t?function(t,n,e){if(Ct(t),n=wt(n),Ct(e),"function"==typeof t&&"prototype"===n&&"value"in e&&Mt in e&&!e[Mt]){var r=Rt(t,n);r&&r[Mt]&&(t[n]=e.value,e={configurable:Nt in e?e[Nt]:r[Nt],enumerable:kt in e?e[kt]:r[kt],writable:!1})}return It(t,n,e)}:It:function(t,n,e){if(Ct(t),n=wt(n),Ct(e),Et)try{return It(t,n,e)}catch(t){}if("get"in e||"set"in e)throw xt("Accessors not supported");return"value"in e&&(t[n]=e.value),t}},Dt=c?function(t,n,e){return Ut.f(t,n,v(1,e))}:function(t,n,e){return t[n]=e,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",tn=i.TypeError,nn=i.WeakMap;if(Jt||rt.state){var en=rt.state||(rt.state=new nn);en.get=en.get,en.has=en.has,en.set=en.set,Gt=function(t,n){if(en.has(t))throw tn(Zt);return n.facade=t,en.set(t,n),n},Vt=function(t){return en.get(t)||{}},Xt=function(t){return en.has(t)}}else{var rn=Qt("state");$t[rn]=!0,Gt=function(t,n){if(ut(t,rn))throw tn(Zt);return n.facade=t,Dt(t,rn,n),n},Vt=function(t){return ut(t,rn)?t[rn]:{}},Xt=function(t){return ut(t,rn)}}var on={set:Gt,get:Vt,has:Xt,enforce:function(t){return Xt(t)?Vt(t):Gt(t,{})},getterFor:function(t){return function(n){var e;if(!N(n)||(e=Vt(n)).type!==t)throw tn("Incompatible receiver, "+t+" required");return e}}},an=n((function(t){var n=zt.CONFIGURABLE,e=on.enforce,r=on.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")||n&&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=e(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")})),cn=function(t,n,e,r){r||(r={});var o=r.enumerable,i=void 0!==r.name?r.name:n;if(R(e)&&an(e,i,r),r.global)o?t[n]=e:nt(n,e);else{try{r.unsafe?t[n]&&(o=!0):delete t[n]}catch(t){}o?t[n]=e:Ut.f(t,n,{value:e,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return t},un=Math.ceil,fn=Math.floor,sn=Math.trunc||function(t){var n=+t;return(n>0?fn:un)(n)},ln=function(t){var n=+t;return n!=n||0===n?0:sn(n)},pn=Math.max,hn=Math.min,dn=Math.min,vn=function(t){return(n=t.length)>0?dn(ln(n),9007199254740991):0;var n},yn=function(t){return function(n,e,r){var o,i=j(n),a=vn(i),c=function(t,n){var e=ln(t);return e<0?pn(e+n,0):hn(e,n)}(r,a);if(t&&e!=e){for(;a>c;)if((o=i[c++])!=o)return!0}else for(;a>c;c++)if((t||c in i)&&i[c]===e)return t||c||0;return!t&&-1}},gn={includes:yn(!0),indexOf:yn(!1)}.indexOf,mn=b([].push),bn=function(t,n){var e,r=j(t),o=0,i=[];for(e in r)!ut($t,e)&&ut(r,e)&&mn(i,e);for(;n.length>o;)ut(r,e=n[o++])&&(~gn(i,e)||mn(i,e));return i},wn=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Sn=wn.concat("length","prototype"),An={f:Object.getOwnPropertyNames||function(t){return bn(t,Sn)}},On={f:Object.getOwnPropertySymbols},En=b([].concat),Pn=M("Reflect","ownKeys")||function(t){var n=An.f(Ct(t)),e=On.f;return e?En(n,e(t)):n},Tn=function(t,n,e){for(var r=Pn(n),o=Ut.f,i=Tt.f,a=0;a<r.length;a++){var c=r[a];ut(t,c)||e&&ut(e,c)||o(t,c,i(n,c))}},_n=/#|\.prototype\./,Ln=function(t,n){var e=Cn[jn(t)];return e==In||e!=xn&&(R(n)?a(n):!!n)},jn=Ln.normalize=function(t){return String(t).replace(_n,".").toLowerCase()},Cn=Ln.data={},xn=Ln.NATIVE="N",In=Ln.POLYFILL="P",Rn=Ln,kn=Tt.f,Nn=function(t,n){var e,r,o,a,c,u=t.target,f=t.global,s=t.stat;if(e=f?i:s?i[u]||nt(u,{}):(i[u]||{}).prototype)for(r in n){if(a=n[r],o=t.dontCallGetSet?(c=kn(e,r))&&c.value:e[r],!Rn(f?r:u+(s?".":"#")+r,t.forced)&&void 0!==o){if(typeof a==typeof o)continue;Tn(a,o)}(t.sham||o&&o.sham)&&Dt(a,"sham",!0),cn(e,r,a,t)}},Mn=Object.keys||function(t){return bn(t,wn)},Un=Object.assign,Dn=Object.defineProperty,Hn=b([].concat),Bn=!Un||a((function(){if(c&&1!==Un({b:1},Un(Dn({},"a",{enumerable:!0,get:function(){Dn(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},n={},e=Symbol(),r="abcdefghijklmnopqrst";return t[e]=7,r.split("").forEach((function(t){n[t]=t})),7!=Un({},t)[e]||Mn(Un({},n)).join("")!=r}))?function(t,n){for(var e=at(t),r=arguments.length,o=1,i=On.f,a=d.f;r>o;)for(var u,f=P(arguments[o++]),l=i?Hn(Mn(f),i(f)):Mn(f),p=l.length,h=0;p>h;)u=l[h++],c&&!s(a,f,u)||(e[u]=f[u]);return e}:Un;Nn({target:"Object",stat:!0,arity:2,forced:Object.assign!==Bn},{assign:Bn});var Wn=Array.isArray||function(t){return"Array"==A(t)},zn=TypeError,Fn=function(t){if(t>9007199254740991)throw zn("Maximum allowed index exceeded");return t},Gn=function(t,n,e){var r=wt(n);r in t?Ut.f(t,r,v(0,e)):t[r]=e},Vn={};Vn[yt("toStringTag")]="z";var Xn="[object z]"===String(Vn),qn=yt("toStringTag"),Yn=Object,Jn="Arguments"==A(function(){return arguments}()),Kn=Xn?A:function(t){var n,e,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=function(t,n){try{return t[n]}catch(t){}}(n=Yn(t),qn))?e:Jn?A(n):"Object"==(r=A(n))&&R(n.callee)?"Arguments":r},Qn=function(){},$n=[],Zn=M("Reflect","construct"),te=/^\s*(?:class|function)\b/,ne=b(te.exec),ee=!te.exec(Qn),re=function(t){if(!R(t))return!1;try{return Zn(Qn,$n,t),!0}catch(t){return!1}},oe=function(t){if(!R(t))return!1;switch(Kn(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return ee||!!ne(te,qt(t))}catch(t){return!0}};oe.sham=!0;var ie,ae=!Zn||a((function(){var t;return re(re.call)||!re(Object)||!re((function(){t=!0}))||t}))?oe:re,ce=yt("species"),ue=Array,fe=function(t,n){return new(function(t){var n;return Wn(t)&&(n=t.constructor,(ae(n)&&(n===ue||Wn(n.prototype))||N(n)&&null===(n=n[ce]))&&(n=void 0)),void 0===n?ue:n}(t))(0===n?0:n)},se=yt("species"),le=yt("isConcatSpreadable"),pe=F>=51||!a((function(){var t=[];return t[le]=!1,t.concat()[0]!==t})),he=function(t){if(!N(t))return!1;var n=t[le];return void 0!==n?!!n:Wn(t)},de=!(pe&&(ie="concat",F>=51||!a((function(){var t=[];return(t.constructor={})[se]=function(){return{foo:1}},1!==t[ie](Boolean).foo}))));Nn({target:"Array",proto:!0,arity:1,forced:de},{concat:function(t){var n,e,r,o,i,a=at(this),c=fe(a,0),u=0;for(n=-1,r=arguments.length;n<r;n++)if(he(i=-1===n?a:arguments[n]))for(o=vn(i),Fn(u+o),e=0;e<o;e++,u++)e in i&&Gn(c,u,i[e]);else Fn(u+1),Gn(c,u++,i);return c.length=u,c}});var ve,ye=c&&!_t?Object.defineProperties:function(t,n){Ct(t);for(var e,r=j(n),o=Mn(n),i=o.length,a=0;i>a;)Ut.f(t,e=o[a++],r[e]);return t},ge={f:ye},me=M("document","documentElement"),be="prototype",we="script",Se=Qt("IE_PROTO"),Ae=function(){},Oe=function(t){return"<"+we+">"+t+"</"+we+">"},Ee=function(t){t.write(Oe("")),t.close();var n=t.parentWindow.Object;return t=null,n},Pe=function(){try{ve=new ActiveXObject("htmlfile")}catch(t){}var t,n,e;Pe="undefined"!=typeof document?document.domain&&ve?Ee(ve):(n=Ot("iframe"),e="java"+we+":",n.style.display="none",me.appendChild(n),n.src=String(e),(t=n.contentWindow.document).open(),t.write(Oe("document.F=Object")),t.close(),t.F):Ee(ve);for(var r=wn.length;r--;)delete Pe[be][wn[r]];return Pe()};$t[Se]=!0;var Te=Object.create||function(t,n){var e;return null!==t?(Ae[be]=Ct(t),e=new Ae,Ae[be]=null,e[Se]=t):e=Pe(),void 0===n?e:ge.f(e,n)},_e=Ut.f,Le=yt("unscopables"),je=Array.prototype;null==je[Le]&&_e(je,Le,{configurable:!0,value:Te(null)});var Ce,xe,Ie,Re=function(t){je[Le][t]=!0},ke={},Ne=!a((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),Me=Qt("IE_PROTO"),Ue=Object,De=Ue.prototype,He=Ne?Ue.getPrototypeOf:function(t){var n=at(t);if(ut(n,Me))return n[Me];var e=n.constructor;return R(e)&&n instanceof e?e.prototype:n instanceof Ue?De:null},Be=yt("iterator"),We=!1;[].keys&&("next"in(Ie=[].keys())?(xe=He(He(Ie)))!==Object.prototype&&(Ce=xe):We=!0);var ze=!N(Ce)||a((function(){var t={};return Ce[Be].call(t)!==t}));ze&&(Ce={}),R(Ce[Be])||cn(Ce,Be,(function(){return this}));var Fe={IteratorPrototype:Ce,BUGGY_SAFARI_ITERATORS:We},Ge=Ut.f,Ve=yt("toStringTag"),Xe=function(t,n,e){t&&!e&&(t=t.prototype),t&&!ut(t,Ve)&&Ge(t,Ve,{configurable:!0,value:n})},qe=Fe.IteratorPrototype,Ye=function(){return this},Je=String,Ke=TypeError,Qe=Object.setPrototypeOf||("__proto__"in{}?function(){var t,n=!1,e={};try{t=function(t,n,e){try{return b(Q(Object.getOwnPropertyDescriptor(t,n)[e]))}catch(t){}}(Object.prototype,"__proto__","set"),t(e,[]),n=e instanceof Array}catch(t){}return function(e,r){return Ct(e),function(t){if("object"==typeof t||R(t))return t;throw Ke("Can't set "+Je(t)+" as a prototype")}(r),n?t(e,r):e.__proto__=r,e}}():void 0),$e=zt.PROPER,Ze=zt.CONFIGURABLE,tr=Fe.IteratorPrototype,nr=Fe.BUGGY_SAFARI_ITERATORS,er=yt("iterator"),rr="keys",or="values",ir="entries",ar=function(){return this},cr=function(t,n,e,r,o,i,a){!function(t,n,e,r){var o=n+" Iterator";t.prototype=Te(qe,{next:v(+!r,e)}),Xe(t,o,!1),ke[o]=Ye}(e,n,r);var c,u,f,l=function(t){if(t===o&&g)return g;if(!nr&&t in d)return d[t];switch(t){case rr:case or:case ir:return function(){return new e(this,t)}}return function(){return new e(this)}},p=n+" Iterator",h=!1,d=t.prototype,y=d[er]||d["@@iterator"]||o&&d[o],g=!nr&&y||l(o),m="Array"==n&&d.entries||y;if(m&&(c=He(m.call(new t)))!==Object.prototype&&c.next&&(He(c)!==tr&&(Qe?Qe(c,tr):R(c[er])||cn(c,er,ar)),Xe(c,p,!0)),$e&&o==or&&y&&y.name!==or&&(Ze?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)(nr||h||!(f in d))&&cn(d,f,u[f]);else Nn({target:n,proto:!0,forced:nr||h},u);return d[er]!==g&&cn(d,er,g,{name:o}),ke[n]=g,u},ur=function(t,n){return{value:t,done:n}},fr=Ut.f,sr="Array Iterator",lr=on.set,pr=on.getterFor(sr),hr=cr(Array,"Array",(function(t,n){lr(this,{type:sr,target:j(t),index:0,kind:n})}),(function(){var t=pr(this),n=t.target,e=t.kind,r=t.index++;return!n||r>=n.length?(t.target=void 0,ur(void 0,!0)):ur("keys"==e?r:"values"==e?n[r]:[r,n[r]],!1)}),"values"),dr=ke.Arguments=ke.Array;if(Re("keys"),Re("values"),Re("entries"),c&&"values"!==dr.name)try{fr(dr,"name",{value:"values"})}catch(t){}var vr=Xn?{}.toString:function(){return"[object "+Kn(this)+"]"};Xn||cn(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,n){var e,r=Ct(t).constructor;return void 0===r||T(e=Ct(r)[Er])?n:function(t){if(ae(t))return t;throw Or(J(t)+" is not a constructor")}(e)},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)}),Cr=function(t){if("Function"===A(t))return b(t)},xr=Cr(Cr.bind),Ir=function(t,n){return Q(t),void 0===n?t:u?xr(t,n):function(){return t.apply(n,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 n=Gr[t];delete Gr[t],n()}},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,n){if(t<n)throw kr("Not enough arguments")}(arguments.length,1);var n=R(t)?t:Br(t),e=Rr(arguments,1);return Gr[++Fr]=function(){jr(n,void 0,e)},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){me.appendChild(Ot("script"))[Vr]=function(){me.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 n={item:t,next:null},e=this.tail;e?e.next=n:this.head=n,this.tail=n},get:function(){var t=this.head;if(t)return null===(this.head=t.next)&&(this.tail=null),t.item}};var $r,Zr,to,no,eo,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,n;for(wr&&(t=so.domain)&&t.exit();n=vo.get();)try{n()}catch(t){throw vo.head&&$r(),t}t&&t.enter()};Nr||wr||io||!uo||!fo?!oo&&lo&&lo.resolve?((no=lo.resolve(void 0)).constructor=lo,eo=Ir(no.then,no),$r=function(){eo(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"),Co=!1,xo=R(i.PromiseRejectionEvent),Io=Rn("Promise",(function(){var t=qt(bo),n=t!==String(bo);if(!n&&66===F)return!0;if(!F||F<51||!/native code/.test(t)){var e=new bo((function(t){t(1)})),r=function(t){t((function(){}),(function(){}))};if((e.constructor={})[jo]=r,!(Co=e.then((function(){}))instanceof r))return!0}return!n&&(So||wo)&&!xo})),Ro={CONSTRUCTOR:Io,REJECTION_EVENT:xo,SUBCLASSING:Co},ko=TypeError,No=function(t){var n,e;this.promise=new t((function(t,r){if(void 0!==n||void 0!==e)throw ko("Bad Promise constructor");n=t,e=r})),this.resolve=Q(n),this.reject=Q(e)},Mo={f:function(t){return new No(t)}},Uo=Kr.set,Do="Promise",Ho=Ro.CONSTRUCTOR,Bo=Ro.REJECTION_EVENT,Wo=Ro.SUBCLASSING,zo=on.getterFor(Do),Fo=on.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 n;return!(!N(t)||!R(n=t.then))&&n},ni=function(t,n){var e,r,o,i=n.value,a=1==n.state,c=a?t.ok:t.fail,u=t.resolve,f=t.reject,l=t.domain;try{c?(a||(2===n.rejection&&ai(n),n.rejection=1),!0===c?e=i:(l&&l.enter(),e=c(i),l&&(l.exit(),o=!0)),e===t.promise?f(qo("Promise-chain cycle")):(r=ti(e))?s(r,e,u,f):u(e)):f(i)}catch(t){l&&!o&&l.exit(),f(t)}},ei=function(t,n){t.notified||(t.notified=!0,go((function(){for(var e,r=t.reactions;e=r.get();)ni(e,t);t.notified=!1,n&&!t.rejection&&oi(t)})))},ri=function(t,n,e){var r,o;$o?((r=Yo.createEvent("Event")).promise=n,r.reason=e,r.initEvent(t,!1,!0),i.dispatchEvent(r)):r={promise:n,reason:e},!Bo&&(o=i["on"+t])?o(r):t===Zo&&function(t,n){try{1==arguments.length?console.error(t):console.error(t,n)}catch(t){}}("Unhandled promise rejection",e)},oi=function(t){s(Uo,i,(function(){var n,e=t.facade,r=t.value;if(ii(t)&&(n=mo((function(){wr?Jo.emit("unhandledRejection",r,e):ri(Zo,e,r)})),t.rejection=wr||ii(t)?2:1,n.error))throw n.value}))},ii=function(t){return 1!==t.rejection&&!t.parent},ai=function(t){s(Uo,i,(function(){var n=t.facade;wr?Jo.emit("rejectionHandled",n):ri("rejectionhandled",n,t.value)}))},ci=function(t,n,e){return function(r){t(n,r,e)}},ui=function(t,n,e){t.done||(t.done=!0,e&&(t=e),t.value=n,t.state=2,ei(t,!0))},fi=function(t,n,e){if(!t.done){t.done=!0,e&&(t=e);try{if(t.facade===n)throw qo("Promise can't be resolved itself");var r=ti(n);r?go((function(){var e={done:!1};try{s(r,n,ci(fi,e,t),ci(ui,e,t))}catch(n){ui(e,n,t)}})):(t.value=n,t.state=1,ei(t,!1))}catch(n){ui({done:!1},n,t)}}};if(Ho&&(Xo=(Vo=function(t){!function(t,n){if(U(n,t))return t;throw Ar("Incorrect invocation")}(this,Xo),Q(t),s(Ao,this);var n=zo(this);try{t(ci(fi,n),ci(ui,n))}catch(t){ui(n,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=cn(Xo,"then",(function(t,n){var e=zo(this),r=Ko(Pr(this,Vo));return e.parent=!0,r.ok=!R(t)||t,r.fail=R(n)&&n,r.domain=wr?Jo.domain:void 0,0==e.state?e.reactions.add(r):go((function(){ni(r,e)})),r.promise})),Oo=function(){var t=new Ao,n=zo(t);this.promise=t,this.resolve=ci(fi,n),this.reject=ci(ui,n)},Mo.f=Ko=function(t){return t===Vo||undefined===t?new Oo(t):Qo(t)},R(bo)&&Go!==Object.prototype)){Eo=Go.then,Wo||cn(Go,"then",(function(t,n){var e=this;return new Vo((function(t,n){s(Eo,e,t,n)})).then(t,n)}),{unsafe:!0});try{delete Go.constructor}catch(t){}Qe&&Qe(Go,Xo)}Nn({global:!0,constructor:!0,wrap:!0,forced:Ho},{Promise:Vo}),Xe(Vo,Do,!1),Lo=M(Do),c&&Lo&&!Lo[Sr]&&(Po=Lo,To=Sr,(_o={configurable:!0,get:function(){return this}}).get&&an(_o.get,To,{getter:!0}),_o.set&&an(_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")||ke[Kn(t)]},di=TypeError,vi=function(t,n,e){var r,o;Ct(t);try{if(!(r=$(t,"return"))){if("throw"===n)throw e;return e}r=s(r,t)}catch(t){o=!0,r=t}if("throw"===n)throw e;if(o)throw r;return Ct(r),e},yi=TypeError,gi=function(t,n){this.stopped=t,this.result=n},mi=gi.prototype,bi=function(t,n,e){var r,o,i,a,c,u,f,l,p=e&&e.that,h=!(!e||!e.AS_ENTRIES),d=!(!e||!e.IS_RECORD),v=!(!e||!e.IS_ITERATOR),y=!(!e||!e.INTERRUPTED),g=Ir(n,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)&&(ke.Array===l||li[si]===l)){for(i=0,a=vn(t);a>i;i++)if((c=b(t[i]))&&U(mi,c))return c;return new gi(!1)}r=function(t,n){var e=arguments.length<2?hi(t):n;if(Q(e))return Ct(s(e,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,n){if(!n&&!Si)return!1;var e=!1;try{var r={};r[wi]=function(){return{next:function(){return{done:e=!0}}}},t(r)}catch(t){}return e}((function(t){bo.all(t).then(void 0,(function(){}))}));Nn({target:"Promise",stat:!0,forced:Ei},{all:function(t){var n=this,e=Mo.f(n),r=e.resolve,o=e.reject,i=mo((function(){var e=Q(n.resolve),i=[],a=0,c=1;bi(t,(function(t){var u=a++,f=!1;c++,s(e,n,t).then((function(t){f||(f=!0,i[u]=t,--c||r(i))}),o)})),--c||r(i)}));return i.error&&o(i.value),e.promise}});var Pi=Ro.CONSTRUCTOR,Ti=bo&&bo.prototype;if(Nn({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&&cn(Ti,"catch",_i,{unsafe:!0})}Nn({target:"Promise",stat:!0,forced:Ei},{race:function(t){var n=this,e=Mo.f(n),r=e.reject,o=mo((function(){var o=Q(n.resolve);bi(t,(function(t){s(o,n,t).then(e.resolve,r)}))}));return o.error&&r(o.value),e.promise}}),Nn({target:"Promise",stat:!0,forced:Ro.CONSTRUCTOR},{reject:function(t){var n=Mo.f(this);return s(n.reject,void 0,t),n.promise}});var Li=Ro.CONSTRUCTOR;M("Promise"),Nn({target:"Promise",stat:!0,forced:Li},{resolve:function(t){return function(t,n){if(Ct(t),N(n)&&n.constructor===t)return n;var e=Mo.f(t);return(0,e.resolve)(n),e.promise}(this,t)}});var ji=String,Ci=function(t){if("Symbol"===Kn(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(n,e){var r,o,i=Ci(L(n)),a=ln(e),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=on.set,Di=on.getterFor(Mi);cr(String,"String",(function(t){Ui(this,{type:Mi,string:Ci(t),index:0})}),(function(){var t,n=Di(this),e=n.string,r=n.index;return r>=e.length?ur(void 0,!0):(t=Ni(e,r),n.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,n){if(t){if(t[Fi]!==Vi)try{Dt(t,Fi,Vi)}catch(n){t[Fi]=Vi}if(t[Gi]||Dt(t,Gi,n),Hi[n])for(var e in hr)if(t[e]!==hr[e])try{Dt(t,e,hr[e])}catch(n){t[e]=hr[e]}}};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 n,e=1,r=arguments.length;e<r;e++)for(var o in n=arguments[e])Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o]);return t},Yi.apply(this,arguments)},Ji={weixinJsSdkTicket:"",launchContainerQuery:".mazey-launch-app-selector",launchShowWeixinToBrowserImgUrl:"",canShowWeixinToBrowser:!1,extInfo:"",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",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 n=Object.assign(Ji,t),e=n.weixinJsSdkTicket,r=n.launchContainerQuery,o=n.genTagPrefixStr,i=n.launchShowWeixinToBrowserImgUrl,a=n.canShowWeixinToBrowser,c=n.launchShowWeixinToBrowserClassName,u=n.launchBtnClassName,f=n.launchBtnStyle,s=n.launchBtnText,l=n.launchErrorLink,p=n.wexinServiceAccountAppId,h=n.openPlatformMobileAppId,d=n.canContinuousUpdating,v=n.onMenuShareTimelineOptions,y=n.onMenuShareAppMessageOptions,g=n.isConClosed,m=n.isWxDebug,b=n.canLaunchApp,w=n.canFireErrorLinkDirectly,S=n.launchBtnClick,A=n.launchReady,O=n.extInfo,E=window.mazey,P=window.sha1,T=window.wx,_=window.$||window.jQuery;E&&P&&T&&_||console.error("Launch App: wx or sha1 or $ or mazey is not found");var L=function(){},j=E.genCustomConsole("LaunchCon:",{isClosed:g});j.log("Launch App");var C={title:"",link:"",imgUrl:"",success:function(){},cancel:function(){}},x={title:"",desc:"",link:"",imgUrl:"",type:"",dataUrl:"",success:function(){},cancel:function(){}},I={title:document.title,link:location.href};C=Yi(Yi({},C),I),x=Yi(Yi({},x),I);var R=function(t,n,e){return void 0===t&&(t=""),void 0===n&&(n=""),void 0===e&&(e="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+n+"}</style>"+"<".concat(e,' class="').concat(u,'"')+(t&&"button"===e?' onclick="'.concat(t,'"'):"")+(t&&"a"===e?' target="_self" href="'.concat(t,'"'):"")+">"+s+"</".concat(e,">")},k=R();function N(){E.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(){_(".mazey-launch-app-mask").hide()}),0===_(".mazey-launch-app-mask").length?_("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>"):_(".mazey-launch-app-mask").show()}function M(){j.log("renderWeixinLaunchTemplate"),function(t,n){void 0===t&&(t=""),void 0===n&&(n=""),j.log("renderWXOpenLaunchApp"),Promise.all([Promise.resolve(e||window.LAUNCH_APP_WEIXIN_JS_SDK_TICKET),Promise.resolve(P)]).then((function(e){j.log("allRes",e);var i=e[0],c=e[1],u=E.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&&(j.log("onMenuShareTimelineOptions",v),T.onMenuShareTimeline(v)),window.LAUNCH_APP_SHARE_TIMELINE=function(t){t=Yi(Yi({},C),t),j.log("window LAUNCH_APP_SHARE_TIMELINE",t),T.onMenuShareTimeline(t)},y&&(j.log("onMenuShareAppMessageOptions",y),T.onMenuShareAppMessage(y)),window.LAUNCH_APP_SHARE_APP_MESSAGE=function(t){t=Yi(Yi({},x),t),j.log("window LAUNCH_APP_SHARE_APP_MESSAGE",t),T.onMenuShareAppMessage(t)},window.LAUNCH_APP_READY=!0,A&&A();var t=function(){var t=_(r);j.log("containers",r,t,t.length),t.length>0&&t.each((function(t,e){var r=_(e).attr("data-launch-app-key");if(!r){var i=_(e).parents("[data-launch-app-key]:eq(0)");i.length>0&&(r=i.attr("data-launch-app-key"),j.log("keyEle",i,r))}r||(r=t);var c="mazey-launch-app-tag-".concat(r),u=_(".".concat(c," wx-open-launch-app")),f=_(e).attr("data-launch-app-ext-info");if(!f){var s=_(e).parents("[data-launch-app-ext-info]:eq(0)");s.length>0&&(f=s.attr("data-launch-app-ext-info"),j.log("eleExtInfoEle parents",s,f))}f&&(O=f);var p=_(e).attr("data-launch-app-error-link");if(!p){var h=_(e).parents("[data-launch-app-error-link]:eq(0)");h.length>0&&(p=h.attr("data-launch-app-error-link"),j.log("eleErrorLinkEle parents",h,p))}var d=l;p&&(d=p),0===u.length&&(_(e).addClass(c),j.log("success:",c),function(t){var e=o,r=e+t,i="<wx-open-launch-app id='"+r+"' appid='"+n+"' extinfo='".concat(O)+"' style='z-index: 99; position: absolute; width: 100%; height: 100%; opacity: 1; background: transparent; overflow: hidden; left: 0;'><script type='text/wxtag-template'>"+k+"<\/script></wx-open-launch-app>";_("."+t+":eq(0)").append(i);var c=document.getElementById(r);c&&(c.addEventListener("ready",(function(t){j.log("ready event",t)})),c.addEventListener("launch",(function(t){j.log("launch event",t),t.detail&&t.detail.extInfo&&j.log("launch extInfo",t.detail.extInfo)})),c.addEventListener("error",(function(t){j.error(t.detail),_("[id^='"+e+"']").hide(),a&&N(),d&&(j.log("realErrorLink",d),location.href=d)})),c.addEventListener("click",(function(t){j.log("click event",t),S&&S()})))}(c))}))};t(),L=t})),T.error((function(t){j.error(t)})),"success:launch_app"})).catch((function(t){j.error(t)}))}(p,h)}function U(t){if(j.log("appUpdated",t),!window.LAUNCH_APP_LOAD&&b(t)&&(M(),window.LAUNCH_APP_LOAD=!0),d&&window.LAUNCH_APP_LOAD&&b(t)&&L(),w()){var n=_(r);n.length>0&&n.each((function(t,n){var e=_(n).children("."+u);if(!e||!e.length){var r=_(n).attr("data-launch-app-error-link");if(!r){var o=_(n).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=R(r,"position: absolute; left: 0; z-index: 999;","a");_(n).append(i)}}}))}}function D(){j.log("appBeforeDestroy",D),window.LAUNCH_APP_LOAD=null,window.LAUNCH_APP_HIDE_WEIXIN_BROWSER=null}return window.LAUNCH_APP_UPDATE=U,window.LAUNCH_APP_BEFORE_DESTROY=D,window.LAUNCH_APP_SHOW_WEIXIN_TO_BROWSER=N,{LAUNCH_APP_UPDATE:U,LAUNCH_APP_BEFORE_DESTROY:D,LAUNCH_APP_SHOW_WEIXIN_TO_BROWSER:N,LAUNCH_APP_SHARE_TIMELINE:function(t){j.log("opt",t)},LAUNCH_APP_SHARE_APP_MESSAGE:function(t){j.log("opt",t)},start:U,update:U,destroy:D}};export{Ki as default};
|
|
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};
|
package/lib/launch-app.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
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 n(t,n){return t(n={exports:{}},n.exports),n.exports}var e,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 n=p(this,t);return!!n&&n.enumerable}:l,d={f:h},v=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}},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,n){return arguments.length<2?(e=i[t],R(e)?e:void 0):i[t]&&i[t][n];var e},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=(e=z.split("."))[0]>0&&e[0]<4?1:+(e[0]+e[1])),!r&&D&&(!(e=D.match(/Edge\/(\d+)/))||e[1]>=74)&&(e=D.match(/Chrome\/(\d+)/))&&(r=+e[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 n=M("Symbol");return R(n)&&U(n.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,n){var e=t[n];return _(e)?void 0:Q(e)},Z=TypeError,tt=Object.defineProperty,nt=function(t,n){try{tt(i,t,{value:n,configurable:!0,writable:!0})}catch(e){i[t]=n}return n},et="__core-js_shared__",rt=i[et]||nt(et,{}),ot=n((function(t){(t.exports=function(t,n){return rt[t]||(rt[t]=void 0!==n?n:{})})("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,n){return ct(at(t),n)},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,n){if(!N(t)||q(t))return t;var e,r=$(t,mt);if(r){if(void 0===n&&(n="default"),e=s(r,t,n),!N(e)||q(e))return e;throw gt("Can't convert object to primitive value")}return void 0===n&&(n="number"),function(t,n){var e,r;if("string"===n&&R(e=t.toString)&&!N(r=s(e,t)))return r;if(R(e=t.valueOf)&&!N(r=s(e,t)))return r;if("string"!==n&&R(e=t.toString)&&!N(r=s(e,t)))return r;throw Z("Can't convert object to primitive value")}(t,n)},wt=function(t){var n=bt(t,"string");return q(n)?n:n+""},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,n){if(t=j(t),n=wt(n),Et)try{return Pt(t,n)}catch(t){}if(ut(t,n))return v(!s(d.f,t,n),t[n])}},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,n,e){if(Ct(t),n=wt(n),Ct(e),"function"==typeof t&&"prototype"===n&&"value"in e&&Mt in e&&!e[Mt]){var r=Rt(t,n);r&&r[Mt]&&(t[n]=e.value,e={configurable:Nt in e?e[Nt]:r[Nt],enumerable:kt in e?e[kt]:r[kt],writable:!1})}return It(t,n,e)}:It:function(t,n,e){if(Ct(t),n=wt(n),Ct(e),Et)try{return It(t,n,e)}catch(t){}if("get"in e||"set"in e)throw xt("Accessors not supported");return"value"in e&&(t[n]=e.value),t}},Dt=c?function(t,n,e){return Ut.f(t,n,v(1,e))}:function(t,n,e){return t[n]=e,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",tn=i.TypeError,nn=i.WeakMap;if(Jt||rt.state){var en=rt.state||(rt.state=new nn);en.get=en.get,en.has=en.has,en.set=en.set,Gt=function(t,n){if(en.has(t))throw tn(Zt);return n.facade=t,en.set(t,n),n},Vt=function(t){return en.get(t)||{}},Xt=function(t){return en.has(t)}}else{var rn=Qt("state");$t[rn]=!0,Gt=function(t,n){if(ut(t,rn))throw tn(Zt);return n.facade=t,Dt(t,rn,n),n},Vt=function(t){return ut(t,rn)?t[rn]:{}},Xt=function(t){return ut(t,rn)}}var on={set:Gt,get:Vt,has:Xt,enforce:function(t){return Xt(t)?Vt(t):Gt(t,{})},getterFor:function(t){return function(n){var e;if(!N(n)||(e=Vt(n)).type!==t)throw tn("Incompatible receiver, "+t+" required");return e}}},an=n((function(t){var n=zt.CONFIGURABLE,e=on.enforce,r=on.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")||n&&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=e(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")})),cn=function(t,n,e,r){r||(r={});var o=r.enumerable,i=void 0!==r.name?r.name:n;if(R(e)&&an(e,i,r),r.global)o?t[n]=e:nt(n,e);else{try{r.unsafe?t[n]&&(o=!0):delete t[n]}catch(t){}o?t[n]=e:Ut.f(t,n,{value:e,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return t},un=Math.ceil,fn=Math.floor,sn=Math.trunc||function(t){var n=+t;return(n>0?fn:un)(n)},ln=function(t){var n=+t;return n!=n||0===n?0:sn(n)},pn=Math.max,hn=Math.min,dn=Math.min,vn=function(t){return(n=t.length)>0?dn(ln(n),9007199254740991):0;var n},yn=function(t){return function(n,e,r){var o,i=j(n),a=vn(i),c=function(t,n){var e=ln(t);return e<0?pn(e+n,0):hn(e,n)}(r,a);if(t&&e!=e){for(;a>c;)if((o=i[c++])!=o)return!0}else for(;a>c;c++)if((t||c in i)&&i[c]===e)return t||c||0;return!t&&-1}},gn={includes:yn(!0),indexOf:yn(!1)}.indexOf,mn=b([].push),bn=function(t,n){var e,r=j(t),o=0,i=[];for(e in r)!ut($t,e)&&ut(r,e)&&mn(i,e);for(;n.length>o;)ut(r,e=n[o++])&&(~gn(i,e)||mn(i,e));return i},wn=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Sn=wn.concat("length","prototype"),An={f:Object.getOwnPropertyNames||function(t){return bn(t,Sn)}},On={f:Object.getOwnPropertySymbols},En=b([].concat),Pn=M("Reflect","ownKeys")||function(t){var n=An.f(Ct(t)),e=On.f;return e?En(n,e(t)):n},_n=function(t,n,e){for(var r=Pn(n),o=Ut.f,i=_t.f,a=0;a<r.length;a++){var c=r[a];ut(t,c)||e&&ut(e,c)||o(t,c,i(n,c))}},Tn=/#|\.prototype\./,Ln=function(t,n){var e=Cn[jn(t)];return e==In||e!=xn&&(R(n)?a(n):!!n)},jn=Ln.normalize=function(t){return String(t).replace(Tn,".").toLowerCase()},Cn=Ln.data={},xn=Ln.NATIVE="N",In=Ln.POLYFILL="P",Rn=Ln,kn=_t.f,Nn=function(t,n){var e,r,o,a,c,u=t.target,f=t.global,s=t.stat;if(e=f?i:s?i[u]||nt(u,{}):(i[u]||{}).prototype)for(r in n){if(a=n[r],o=t.dontCallGetSet?(c=kn(e,r))&&c.value:e[r],!Rn(f?r:u+(s?".":"#")+r,t.forced)&&void 0!==o){if(typeof a==typeof o)continue;_n(a,o)}(t.sham||o&&o.sham)&&Dt(a,"sham",!0),cn(e,r,a,t)}},Mn=Object.keys||function(t){return bn(t,wn)},Un=Object.assign,Dn=Object.defineProperty,Hn=b([].concat),Bn=!Un||a((function(){if(c&&1!==Un({b:1},Un(Dn({},"a",{enumerable:!0,get:function(){Dn(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},n={},e=Symbol(),r="abcdefghijklmnopqrst";return t[e]=7,r.split("").forEach((function(t){n[t]=t})),7!=Un({},t)[e]||Mn(Un({},n)).join("")!=r}))?function(t,n){for(var e=at(t),r=arguments.length,o=1,i=On.f,a=d.f;r>o;)for(var u,f=P(arguments[o++]),l=i?Hn(Mn(f),i(f)):Mn(f),p=l.length,h=0;p>h;)u=l[h++],c&&!s(a,f,u)||(e[u]=f[u]);return e}:Un;Nn({target:"Object",stat:!0,arity:2,forced:Object.assign!==Bn},{assign:Bn});var Wn=Array.isArray||function(t){return"Array"==A(t)},zn=TypeError,Fn=function(t){if(t>9007199254740991)throw zn("Maximum allowed index exceeded");return t},Gn=function(t,n,e){var r=wt(n);r in t?Ut.f(t,r,v(0,e)):t[r]=e},Vn={};Vn[yt("toStringTag")]="z";var Xn="[object z]"===String(Vn),qn=yt("toStringTag"),Yn=Object,Jn="Arguments"==A(function(){return arguments}()),Kn=Xn?A:function(t){var n,e,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=function(t,n){try{return t[n]}catch(t){}}(n=Yn(t),qn))?e:Jn?A(n):"Object"==(r=A(n))&&R(n.callee)?"Arguments":r},Qn=function(){},$n=[],Zn=M("Reflect","construct"),te=/^\s*(?:class|function)\b/,ne=b(te.exec),ee=!te.exec(Qn),re=function(t){if(!R(t))return!1;try{return Zn(Qn,$n,t),!0}catch(t){return!1}},oe=function(t){if(!R(t))return!1;switch(Kn(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return ee||!!ne(te,qt(t))}catch(t){return!0}};oe.sham=!0;var ie,ae=!Zn||a((function(){var t;return re(re.call)||!re(Object)||!re((function(){t=!0}))||t}))?oe:re,ce=yt("species"),ue=Array,fe=function(t,n){return new(function(t){var n;return Wn(t)&&(n=t.constructor,(ae(n)&&(n===ue||Wn(n.prototype))||N(n)&&null===(n=n[ce]))&&(n=void 0)),void 0===n?ue:n}(t))(0===n?0:n)},se=yt("species"),le=yt("isConcatSpreadable"),pe=F>=51||!a((function(){var t=[];return t[le]=!1,t.concat()[0]!==t})),he=function(t){if(!N(t))return!1;var n=t[le];return void 0!==n?!!n:Wn(t)},de=!(pe&&(ie="concat",F>=51||!a((function(){var t=[];return(t.constructor={})[se]=function(){return{foo:1}},1!==t[ie](Boolean).foo}))));Nn({target:"Array",proto:!0,arity:1,forced:de},{concat:function(t){var n,e,r,o,i,a=at(this),c=fe(a,0),u=0;for(n=-1,r=arguments.length;n<r;n++)if(he(i=-1===n?a:arguments[n]))for(o=vn(i),Fn(u+o),e=0;e<o;e++,u++)e in i&&Gn(c,u,i[e]);else Fn(u+1),Gn(c,u++,i);return c.length=u,c}});var ve,ye=c&&!Tt?Object.defineProperties:function(t,n){Ct(t);for(var e,r=j(n),o=Mn(n),i=o.length,a=0;i>a;)Ut.f(t,e=o[a++],r[e]);return t},ge={f:ye},me=M("document","documentElement"),be="prototype",we="script",Se=Qt("IE_PROTO"),Ae=function(){},Oe=function(t){return"<"+we+">"+t+"</"+we+">"},Ee=function(t){t.write(Oe("")),t.close();var n=t.parentWindow.Object;return t=null,n},Pe=function(){try{ve=new ActiveXObject("htmlfile")}catch(t){}var t,n,e;Pe="undefined"!=typeof document?document.domain&&ve?Ee(ve):(n=Ot("iframe"),e="java"+we+":",n.style.display="none",me.appendChild(n),n.src=String(e),(t=n.contentWindow.document).open(),t.write(Oe("document.F=Object")),t.close(),t.F):Ee(ve);for(var r=wn.length;r--;)delete Pe[be][wn[r]];return Pe()};$t[Se]=!0;var _e=Object.create||function(t,n){var e;return null!==t?(Ae[be]=Ct(t),e=new Ae,Ae[be]=null,e[Se]=t):e=Pe(),void 0===n?e:ge.f(e,n)},Te=Ut.f,Le=yt("unscopables"),je=Array.prototype;null==je[Le]&&Te(je,Le,{configurable:!0,value:_e(null)});var Ce,xe,Ie,Re=function(t){je[Le][t]=!0},ke={},Ne=!a((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),Me=Qt("IE_PROTO"),Ue=Object,De=Ue.prototype,He=Ne?Ue.getPrototypeOf:function(t){var n=at(t);if(ut(n,Me))return n[Me];var e=n.constructor;return R(e)&&n instanceof e?e.prototype:n instanceof Ue?De:null},Be=yt("iterator"),We=!1;[].keys&&("next"in(Ie=[].keys())?(xe=He(He(Ie)))!==Object.prototype&&(Ce=xe):We=!0);var ze=!N(Ce)||a((function(){var t={};return Ce[Be].call(t)!==t}));ze&&(Ce={}),R(Ce[Be])||cn(Ce,Be,(function(){return this}));var Fe={IteratorPrototype:Ce,BUGGY_SAFARI_ITERATORS:We},Ge=Ut.f,Ve=yt("toStringTag"),Xe=function(t,n,e){t&&!e&&(t=t.prototype),t&&!ut(t,Ve)&&Ge(t,Ve,{configurable:!0,value:n})},qe=Fe.IteratorPrototype,Ye=function(){return this},Je=String,Ke=TypeError,Qe=Object.setPrototypeOf||("__proto__"in{}?function(){var t,n=!1,e={};try{t=function(t,n,e){try{return b(Q(Object.getOwnPropertyDescriptor(t,n)[e]))}catch(t){}}(Object.prototype,"__proto__","set"),t(e,[]),n=e instanceof Array}catch(t){}return function(e,r){return Ct(e),function(t){if("object"==typeof t||R(t))return t;throw Ke("Can't set "+Je(t)+" as a prototype")}(r),n?t(e,r):e.__proto__=r,e}}():void 0),$e=zt.PROPER,Ze=zt.CONFIGURABLE,tr=Fe.IteratorPrototype,nr=Fe.BUGGY_SAFARI_ITERATORS,er=yt("iterator"),rr="keys",or="values",ir="entries",ar=function(){return this},cr=function(t,n,e,r,o,i,a){!function(t,n,e,r){var o=n+" Iterator";t.prototype=_e(qe,{next:v(+!r,e)}),Xe(t,o,!1),ke[o]=Ye}(e,n,r);var c,u,f,l=function(t){if(t===o&&g)return g;if(!nr&&t in d)return d[t];switch(t){case rr:case or:case ir:return function(){return new e(this,t)}}return function(){return new e(this)}},p=n+" Iterator",h=!1,d=t.prototype,y=d[er]||d["@@iterator"]||o&&d[o],g=!nr&&y||l(o),m="Array"==n&&d.entries||y;if(m&&(c=He(m.call(new t)))!==Object.prototype&&c.next&&(He(c)!==tr&&(Qe?Qe(c,tr):R(c[er])||cn(c,er,ar)),Xe(c,p,!0)),$e&&o==or&&y&&y.name!==or&&(Ze?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)(nr||h||!(f in d))&&cn(d,f,u[f]);else Nn({target:n,proto:!0,forced:nr||h},u);return d[er]!==g&&cn(d,er,g,{name:o}),ke[n]=g,u},ur=function(t,n){return{value:t,done:n}},fr=Ut.f,sr="Array Iterator",lr=on.set,pr=on.getterFor(sr),hr=cr(Array,"Array",(function(t,n){lr(this,{type:sr,target:j(t),index:0,kind:n})}),(function(){var t=pr(this),n=t.target,e=t.kind,r=t.index++;return!n||r>=n.length?(t.target=void 0,ur(void 0,!0)):ur("keys"==e?r:"values"==e?n[r]:[r,n[r]],!1)}),"values"),dr=ke.Arguments=ke.Array;if(Re("keys"),Re("values"),Re("entries"),c&&"values"!==dr.name)try{fr(dr,"name",{value:"values"})}catch(t){}var vr=Xn?{}.toString:function(){return"[object "+Kn(this)+"]"};Xn||cn(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,n){var e,r=Ct(t).constructor;return void 0===r||_(e=Ct(r)[Er])?n:function(t){if(ae(t))return t;throw Or(J(t)+" is not a constructor")}(e)},_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,n){return Q(t),void 0===n?t:u?xr(t,n):function(){return t.apply(n,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 n=Gr[t];delete Gr[t],n()}},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,n){if(t<n)throw kr("Not enough arguments")}(arguments.length,1);var n=R(t)?t:Br(t),e=Rr(arguments,1);return Gr[++Fr]=function(){jr(n,void 0,e)},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){me.appendChild(Ot("script"))[Vr]=function(){me.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 n={item:t,next:null},e=this.tail;e?e.next=n:this.head=n,this.tail=n},get:function(){var t=this.head;if(t)return null===(this.head=t.next)&&(this.tail=null),t.item}};var $r,Zr,to,no,eo,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,n;for(wr&&(t=so.domain)&&t.exit();n=vo.get();)try{n()}catch(t){throw vo.head&&$r(),t}t&&t.enter()};Nr||wr||io||!uo||!fo?!oo&&lo&&lo.resolve?((no=lo.resolve(void 0)).constructor=lo,eo=Ir(no.then,no),$r=function(){eo(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=Rn("Promise",(function(){var t=qt(bo),n=t!==String(bo);if(!n&&66===F)return!0;if(!F||F<51||!/native code/.test(t)){var e=new bo((function(t){t(1)})),r=function(t){t((function(){}),(function(){}))};if((e.constructor={})[jo]=r,!(Co=e.then((function(){}))instanceof r))return!0}return!n&&(So||wo)&&!xo})),Ro={CONSTRUCTOR:Io,REJECTION_EVENT:xo,SUBCLASSING:Co},ko=TypeError,No=function(t){var n,e;this.promise=new t((function(t,r){if(void 0!==n||void 0!==e)throw ko("Bad Promise constructor");n=t,e=r})),this.resolve=Q(n),this.reject=Q(e)},Mo={f:function(t){return new No(t)}},Uo=Kr.set,Do="Promise",Ho=Ro.CONSTRUCTOR,Bo=Ro.REJECTION_EVENT,Wo=Ro.SUBCLASSING,zo=on.getterFor(Do),Fo=on.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 n;return!(!N(t)||!R(n=t.then))&&n},ni=function(t,n){var e,r,o,i=n.value,a=1==n.state,c=a?t.ok:t.fail,u=t.resolve,f=t.reject,l=t.domain;try{c?(a||(2===n.rejection&&ai(n),n.rejection=1),!0===c?e=i:(l&&l.enter(),e=c(i),l&&(l.exit(),o=!0)),e===t.promise?f(qo("Promise-chain cycle")):(r=ti(e))?s(r,e,u,f):u(e)):f(i)}catch(t){l&&!o&&l.exit(),f(t)}},ei=function(t,n){t.notified||(t.notified=!0,go((function(){for(var e,r=t.reactions;e=r.get();)ni(e,t);t.notified=!1,n&&!t.rejection&&oi(t)})))},ri=function(t,n,e){var r,o;$o?((r=Yo.createEvent("Event")).promise=n,r.reason=e,r.initEvent(t,!1,!0),i.dispatchEvent(r)):r={promise:n,reason:e},!Bo&&(o=i["on"+t])?o(r):t===Zo&&function(t,n){try{1==arguments.length?console.error(t):console.error(t,n)}catch(t){}}("Unhandled promise rejection",e)},oi=function(t){s(Uo,i,(function(){var n,e=t.facade,r=t.value;if(ii(t)&&(n=mo((function(){wr?Jo.emit("unhandledRejection",r,e):ri(Zo,e,r)})),t.rejection=wr||ii(t)?2:1,n.error))throw n.value}))},ii=function(t){return 1!==t.rejection&&!t.parent},ai=function(t){s(Uo,i,(function(){var n=t.facade;wr?Jo.emit("rejectionHandled",n):ri("rejectionhandled",n,t.value)}))},ci=function(t,n,e){return function(r){t(n,r,e)}},ui=function(t,n,e){t.done||(t.done=!0,e&&(t=e),t.value=n,t.state=2,ei(t,!0))},fi=function(t,n,e){if(!t.done){t.done=!0,e&&(t=e);try{if(t.facade===n)throw qo("Promise can't be resolved itself");var r=ti(n);r?go((function(){var e={done:!1};try{s(r,n,ci(fi,e,t),ci(ui,e,t))}catch(n){ui(e,n,t)}})):(t.value=n,t.state=1,ei(t,!1))}catch(n){ui({done:!1},n,t)}}};if(Ho&&(Xo=(Vo=function(t){!function(t,n){if(U(n,t))return t;throw Ar("Incorrect invocation")}(this,Xo),Q(t),s(Ao,this);var n=zo(this);try{t(ci(fi,n),ci(ui,n))}catch(t){ui(n,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=cn(Xo,"then",(function(t,n){var e=zo(this),r=Ko(Pr(this,Vo));return e.parent=!0,r.ok=!R(t)||t,r.fail=R(n)&&n,r.domain=wr?Jo.domain:void 0,0==e.state?e.reactions.add(r):go((function(){ni(r,e)})),r.promise})),Oo=function(){var t=new Ao,n=zo(t);this.promise=t,this.resolve=ci(fi,n),this.reject=ci(ui,n)},Mo.f=Ko=function(t){return t===Vo||undefined===t?new Oo(t):Qo(t)},R(bo)&&Go!==Object.prototype)){Eo=Go.then,Wo||cn(Go,"then",(function(t,n){var e=this;return new Vo((function(t,n){s(Eo,e,t,n)})).then(t,n)}),{unsafe:!0});try{delete Go.constructor}catch(t){}Qe&&Qe(Go,Xo)}Nn({global:!0,constructor:!0,wrap:!0,forced:Ho},{Promise:Vo}),Xe(Vo,Do,!1),Lo=M(Do),c&&Lo&&!Lo[Sr]&&(Po=Lo,_o=Sr,(To={configurable:!0,get:function(){return this}}).get&&an(To.get,_o,{getter:!0}),To.set&&an(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")||ke[Kn(t)]},di=TypeError,vi=function(t,n,e){var r,o;Ct(t);try{if(!(r=$(t,"return"))){if("throw"===n)throw e;return e}r=s(r,t)}catch(t){o=!0,r=t}if("throw"===n)throw e;if(o)throw r;return Ct(r),e},yi=TypeError,gi=function(t,n){this.stopped=t,this.result=n},mi=gi.prototype,bi=function(t,n,e){var r,o,i,a,c,u,f,l,p=e&&e.that,h=!(!e||!e.AS_ENTRIES),d=!(!e||!e.IS_RECORD),v=!(!e||!e.IS_ITERATOR),y=!(!e||!e.INTERRUPTED),g=Ir(n,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)&&(ke.Array===l||li[si]===l)){for(i=0,a=vn(t);a>i;i++)if((c=b(t[i]))&&U(mi,c))return c;return new gi(!1)}r=function(t,n){var e=arguments.length<2?hi(t):n;if(Q(e))return Ct(s(e,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,n){if(!n&&!Si)return!1;var e=!1;try{var r={};r[wi]=function(){return{next:function(){return{done:e=!0}}}},t(r)}catch(t){}return e}((function(t){bo.all(t).then(void 0,(function(){}))}));Nn({target:"Promise",stat:!0,forced:Ei},{all:function(t){var n=this,e=Mo.f(n),r=e.resolve,o=e.reject,i=mo((function(){var e=Q(n.resolve),i=[],a=0,c=1;bi(t,(function(t){var u=a++,f=!1;c++,s(e,n,t).then((function(t){f||(f=!0,i[u]=t,--c||r(i))}),o)})),--c||r(i)}));return i.error&&o(i.value),e.promise}});var Pi=Ro.CONSTRUCTOR,_i=bo&&bo.prototype;if(Nn({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&&cn(_i,"catch",Ti,{unsafe:!0})}Nn({target:"Promise",stat:!0,forced:Ei},{race:function(t){var n=this,e=Mo.f(n),r=e.reject,o=mo((function(){var o=Q(n.resolve);bi(t,(function(t){s(o,n,t).then(e.resolve,r)}))}));return o.error&&r(o.value),e.promise}}),Nn({target:"Promise",stat:!0,forced:Ro.CONSTRUCTOR},{reject:function(t){var n=Mo.f(this);return s(n.reject,void 0,t),n.promise}});var Li=Ro.CONSTRUCTOR;M("Promise"),Nn({target:"Promise",stat:!0,forced:Li},{resolve:function(t){return function(t,n){if(Ct(t),N(n)&&n.constructor===t)return n;var e=Mo.f(t);return(0,e.resolve)(n),e.promise}(this,t)}});var ji=String,Ci=function(t){if("Symbol"===Kn(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(n,e){var r,o,i=Ci(L(n)),a=ln(e),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=on.set,Di=on.getterFor(Mi);cr(String,"String",(function(t){Ui(this,{type:Mi,string:Ci(t),index:0})}),(function(){var t,n=Di(this),e=n.string,r=n.index;return r>=e.length?ur(void 0,!0):(t=Ni(e,r),n.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,n){if(t){if(t[Fi]!==Vi)try{Dt(t,Fi,Vi)}catch(n){t[Fi]=Vi}if(t[Gi]||Dt(t,Gi,n),Hi[n])for(var e in hr)if(t[e]!==hr[e])try{Dt(t,e,hr[e])}catch(n){t[e]=hr[e]}}};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 n,e=1,r=arguments.length;e<r;e++)for(var o in n=arguments[e])Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o]);return t},Yi.apply(this,arguments)},Ji={weixinJsSdkTicket:"",launchContainerQuery:".mazey-launch-app-selector",launchShowWeixinToBrowserImgUrl:"",canShowWeixinToBrowser:!1,extInfo:"",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",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 n=Object.assign(Ji,t),e=n.weixinJsSdkTicket,r=n.launchContainerQuery,o=n.genTagPrefixStr,i=n.launchShowWeixinToBrowserImgUrl,a=n.canShowWeixinToBrowser,c=n.launchShowWeixinToBrowserClassName,u=n.launchBtnClassName,f=n.launchBtnStyle,s=n.launchBtnText,l=n.launchErrorLink,p=n.wexinServiceAccountAppId,h=n.openPlatformMobileAppId,d=n.canContinuousUpdating,v=n.onMenuShareTimelineOptions,y=n.onMenuShareAppMessageOptions,g=n.isConClosed,m=n.isWxDebug,b=n.canLaunchApp,w=n.canFireErrorLinkDirectly,S=n.launchBtnClick,A=n.launchReady,O=n.extInfo,E=window.mazey,P=window.sha1,_=window.wx,T=window.$||window.jQuery;E&&P&&_&&T||console.error("Launch App: wx or sha1 or $ or mazey is not found");var L=function(){},j=E.genCustomConsole("LaunchCon:",{isClosed:g});j.log("Launch App");var C={title:"",link:"",imgUrl:"",success:function(){},cancel:function(){}},x={title:"",desc:"",link:"",imgUrl:"",type:"",dataUrl:"",success:function(){},cancel:function(){}},I={title:document.title,link:location.href};C=Yi(Yi({},C),I),x=Yi(Yi({},x),I);var R=function(t,n,e){return void 0===t&&(t=""),void 0===n&&(n=""),void 0===e&&(e="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+n+"}</style>"+"<".concat(e,' class="').concat(u,'"')+(t&&"button"===e?' onclick="'.concat(t,'"'):"")+(t&&"a"===e?' target="_self" href="'.concat(t,'"'):"")+">"+s+"</".concat(e,">")},k=R();function N(){E.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(){T(".mazey-launch-app-mask").hide()}),0===T(".mazey-launch-app-mask").length?T("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>"):T(".mazey-launch-app-mask").show()}function M(){j.log("renderWeixinLaunchTemplate"),function(t,n){void 0===t&&(t=""),void 0===n&&(n=""),j.log("renderWXOpenLaunchApp"),Promise.all([Promise.resolve(e||window.LAUNCH_APP_WEIXIN_JS_SDK_TICKET),Promise.resolve(P)]).then((function(e){j.log("allRes",e);var i=e[0],c=e[1],u=E.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&&(j.log("onMenuShareTimelineOptions",v),_.onMenuShareTimeline(v)),window.LAUNCH_APP_SHARE_TIMELINE=function(t){t=Yi(Yi({},C),t),j.log("window LAUNCH_APP_SHARE_TIMELINE",t),_.onMenuShareTimeline(t)},y&&(j.log("onMenuShareAppMessageOptions",y),_.onMenuShareAppMessage(y)),window.LAUNCH_APP_SHARE_APP_MESSAGE=function(t){t=Yi(Yi({},x),t),j.log("window LAUNCH_APP_SHARE_APP_MESSAGE",t),_.onMenuShareAppMessage(t)},window.LAUNCH_APP_READY=!0,A&&A();var t=function(){var t=T(r);j.log("containers",r,t,t.length),t.length>0&&t.each((function(t,e){var r=T(e).attr("data-launch-app-key");if(!r){var i=T(e).parents("[data-launch-app-key]:eq(0)");i.length>0&&(r=i.attr("data-launch-app-key"),j.log("keyEle",i,r))}r||(r=t);var c="mazey-launch-app-tag-".concat(r),u=T(".".concat(c," wx-open-launch-app")),f=T(e).attr("data-launch-app-ext-info");if(!f){var s=T(e).parents("[data-launch-app-ext-info]:eq(0)");s.length>0&&(f=s.attr("data-launch-app-ext-info"),j.log("eleExtInfoEle parents",s,f))}f&&(O=f);var p=T(e).attr("data-launch-app-error-link");if(!p){var h=T(e).parents("[data-launch-app-error-link]:eq(0)");h.length>0&&(p=h.attr("data-launch-app-error-link"),j.log("eleErrorLinkEle parents",h,p))}var d=l;p&&(d=p),0===u.length&&(T(e).addClass(c),j.log("success:",c),function(t){var e=o,r=e+t,i="<wx-open-launch-app id='"+r+"' appid='"+n+"' extinfo='".concat(O)+"' style='z-index: 99; position: absolute; width: 100%; height: 100%; opacity: 1; background: transparent; overflow: hidden; left: 0;'><script type='text/wxtag-template'>"+k+"<\/script></wx-open-launch-app>";T("."+t+":eq(0)").append(i);var c=document.getElementById(r);c&&(c.addEventListener("ready",(function(t){j.log("ready event",t)})),c.addEventListener("launch",(function(t){j.log("launch event",t),t.detail&&t.detail.extInfo&&j.log("launch extInfo",t.detail.extInfo)})),c.addEventListener("error",(function(t){j.error(t.detail),T("[id^='"+e+"']").hide(),a&&N(),d&&(j.log("realErrorLink",d),location.href=d)})),c.addEventListener("click",(function(t){j.log("click event",t),S&&S()})))}(c))}))};t(),L=t})),_.error((function(t){j.error(t)})),"success:launch_app"})).catch((function(t){j.error(t)}))}(p,h)}function U(t){if(j.log("appUpdated",t),!window.LAUNCH_APP_LOAD&&b(t)&&(M(),window.LAUNCH_APP_LOAD=!0),d&&window.LAUNCH_APP_LOAD&&b(t)&&L(),w()){var n=T(r);n.length>0&&n.each((function(t,n){var e=T(n).children("."+u);if(!e||!e.length){var r=T(n).attr("data-launch-app-error-link");if(!r){var o=T(n).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=R(r,"position: absolute; left: 0; z-index: 999;","a");T(n).append(i)}}}))}}function D(){j.log("appBeforeDestroy",D),window.LAUNCH_APP_LOAD=null,window.LAUNCH_APP_HIDE_WEIXIN_BROWSER=null}return window.LAUNCH_APP_UPDATE=U,window.LAUNCH_APP_BEFORE_DESTROY=D,window.LAUNCH_APP_SHOW_WEIXIN_TO_BROWSER=N,{LAUNCH_APP_UPDATE:U,LAUNCH_APP_BEFORE_DESTROY:D,LAUNCH_APP_SHOW_WEIXIN_TO_BROWSER:N,LAUNCH_APP_SHARE_TIMELINE:function(t){j.log("opt",t)},LAUNCH_APP_SHARE_APP_MESSAGE:function(t){j.log("opt",t)},start:U,update:U,destroy:D}}}();
|
|
1
|
+
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}}}();
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mazey-wechat-launch-app",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "Launch App in
|
|
3
|
+
"version": "2.0.0",
|
|
4
|
+
"description": "Launch App in WeChat/Weixin",
|
|
5
5
|
"main": "lib/index.cjs.js",
|
|
6
6
|
"module": "lib/index.esm.js",
|
|
7
7
|
"typings": "lib/index.d.ts",
|
|
@@ -19,11 +19,16 @@
|
|
|
19
19
|
"url": "git+https://github.com/mazeyqian/mazey-wechat-launch-app.git"
|
|
20
20
|
},
|
|
21
21
|
"keywords": [
|
|
22
|
-
"
|
|
23
|
-
"
|
|
22
|
+
"wechat",
|
|
23
|
+
"weixin",
|
|
24
24
|
"launch",
|
|
25
25
|
"app",
|
|
26
|
-
"
|
|
26
|
+
"webview",
|
|
27
|
+
"webkit",
|
|
28
|
+
"ios",
|
|
29
|
+
"android",
|
|
30
|
+
"javascript",
|
|
31
|
+
"function"
|
|
27
32
|
],
|
|
28
33
|
"author": {
|
|
29
34
|
"name": "Mazey Chu",
|
|
@@ -64,7 +69,7 @@
|
|
|
64
69
|
"jest": "^27.5.1",
|
|
65
70
|
"lint-staged": "^10.0.8",
|
|
66
71
|
"markdown-toc": "^1.2.0",
|
|
67
|
-
"mazey": "^3.
|
|
72
|
+
"mazey": "^3.9.4",
|
|
68
73
|
"prettier": "^1.19.1",
|
|
69
74
|
"prettier-eslint-cli": "^5.0.0",
|
|
70
75
|
"rollup": "^2.79.1",
|
package/scripts/release.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* eslint-disable @typescript-eslint/no-var-requires */
|
|
2
2
|
/* eslint-disable no-undef */
|
|
3
3
|
// release
|
|
4
|
-
const { release } = require('mazey/scripts/
|
|
4
|
+
const { release } = require('mazey/scripts/git-helper.js');
|
|
5
5
|
|
|
6
6
|
release(undefined, { defaultBranch: 'main' });
|