mazey-wechat-launch-app 2.2.5 → 2.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +34 -10
- package/lib/index.cjs.js +3 -3
- package/lib/index.d.ts +1 -0
- package/lib/index.d.ts.map +1 -1
- package/lib/index.esm.js +3 -3
- package/lib/launch-app.min.js +3 -3
- package/package.json +6 -3
package/README.md
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
<!-- omit from toc -->
|
|
1
2
|
# mazey-wechat-launch-app
|
|
2
3
|
|
|
3
4
|
[![NPM version][npm-image]][npm-url]
|
|
@@ -10,17 +11,32 @@
|
|
|
10
11
|
|
|
11
12
|
生成微信(WeChat/Weixin)跳转 App 所需要的按钮,经过灵活配置,可支持生成单/多个按钮。
|
|
12
13
|
|
|
14
|
+
**Table of Contents**
|
|
15
|
+
|
|
16
|
+
- [Install](#install)
|
|
17
|
+
- [Usage](#usage)
|
|
18
|
+
- [使用 npm](#使用-npm)
|
|
19
|
+
- [使用 CDN](#使用-cdn)
|
|
20
|
+
- [API](#api)
|
|
21
|
+
- [参数](#参数)
|
|
22
|
+
- [方法](#方法)
|
|
23
|
+
- [FAQ](#faq)
|
|
24
|
+
- [Contributing](#contributing)
|
|
25
|
+
- [Development Environment](#development-environment)
|
|
26
|
+
- [Scripts](#scripts)
|
|
27
|
+
- [License](#license)
|
|
28
|
+
|
|
13
29
|
## Install
|
|
14
30
|
|
|
15
|
-
使用 [
|
|
31
|
+
使用 [npm](https://www.npmjs.com/package/mazey-wechat-launch-app) 安装 mazey-wechat-launch-app:
|
|
16
32
|
|
|
17
|
-
```
|
|
33
|
+
```bash
|
|
18
34
|
npm install mazey-wechat-launch-app --save
|
|
19
35
|
```
|
|
20
36
|
|
|
21
37
|
## Usage
|
|
22
38
|
|
|
23
|
-
###
|
|
39
|
+
### 使用 npm
|
|
24
40
|
|
|
25
41
|
```javascript
|
|
26
42
|
import LAUNCH_APP from 'mazey-wechat-launch-app';
|
|
@@ -57,11 +73,11 @@ app.start();
|
|
|
57
73
|
|
|
58
74
|
注意:本项目依赖 [WeChat JS-SDK](https://developers.weixin.qq.com/doc/offiaccount/OA_Web_Apps/JS-SDK.html#3),请确保已经引入,程序会在初始化的时候探测 `window.wx`。
|
|
59
75
|
|
|
60
|
-
###
|
|
76
|
+
### 使用 CDN
|
|
61
77
|
|
|
62
78
|
```html
|
|
63
79
|
<script type="text/javascript" src="//res.wx.qq.com/open/js/jweixin-1.6.0.js"></script>
|
|
64
|
-
<script type="text/javascript" src="lib/launch-app.min.js"></script>
|
|
80
|
+
<script type="text/javascript" src="//cdn.jsdelivr.net/npm/mazey-wechat-launch-app@latest/lib/launch-app.min.js"></script>
|
|
65
81
|
<script>
|
|
66
82
|
var options = {
|
|
67
83
|
weixinJsSdkTicket: 'bxLdikRXVb',
|
|
@@ -75,7 +91,7 @@ app.start();
|
|
|
75
91
|
</script>
|
|
76
92
|
```
|
|
77
93
|
|
|
78
|
-
提示:如果项目里面已经使用了 jQuery、js-sha1、mazey 依赖库,可以使用体积更小的版本 [`v2.1.4`](https://
|
|
94
|
+
提示:如果项目里面已经使用了 jQuery、js-sha1、mazey 依赖库,可以使用体积更小的版本 [`v2.1.4`](https://cdn.jsdelivr.net/npm/mazey-wechat-launch-app@2.1.4/lib/launch-app.min.js)。
|
|
79
95
|
|
|
80
96
|
## API
|
|
81
97
|
|
|
@@ -86,7 +102,7 @@ app.start();
|
|
|
86
102
|
| `weixinJsSdkTicket` | [jsapi_ticket](https://developers.weixin.qq.com/doc/offiaccount/OA_Web_Apps/JS-SDK.html#62) 公众号用于调用微信 JS 接口的临时票据 | string | (必填)例如:`bxLdikRXVb` |
|
|
87
103
|
| `launchContainerQuery` | [selectors](https://developer.mozilla.org/zh-CN/docs/Web/CSS/CSS_Selectors) 有效的 CSS 选择器字符串,通常是填充按钮的父容器 | string | (必填)例如:`.example-btn`, `#example-btn` |
|
|
88
104
|
| `serviceAccountAppId` | 公众号的唯一标识 AppId | string | (必填)例如:`wx123` |
|
|
89
|
-
| `openPlatformMobileAppId` | 开放平台内所需跳转的移动应用的 AppId | string |
|
|
105
|
+
| `openPlatformMobileAppId` | 开放平台内所需跳转的移动应用的 AppId | string | (可选)例如:`wx456` |
|
|
90
106
|
| `extInfo` | [extinfo](https://developers.weixin.qq.com/doc/offiaccount/OA_Web_Apps/Wechat_Open_Tag.html#%E8%B7%B3%E8%BD%ACAPP%EF%BC%9Awx-open-launch-app) 跳转所需额外信息 | string | (可选)例如:`example://example/example` |
|
|
91
107
|
| `launchBtnStyle` | 按钮内联样式 | string | (可选)例如:`top:0;right:0;bottom:0;left:0;` |
|
|
92
108
|
| `launchBtnText` | 按钮文字 | string | (可选)例如:`打开 App` |
|
|
@@ -127,21 +143,29 @@ app.start();
|
|
|
127
143
|
|
|
128
144
|
## Contributing
|
|
129
145
|
|
|
146
|
+
### Development Environment
|
|
147
|
+
|
|
148
|
+
| Dependencies | Version |
|
|
149
|
+
|------------|----------|
|
|
150
|
+
| Node.js | v14.21.3 |
|
|
151
|
+
|
|
152
|
+
### Scripts
|
|
153
|
+
|
|
130
154
|
Install Dependencies:
|
|
131
155
|
|
|
132
|
-
```
|
|
156
|
+
```bash
|
|
133
157
|
npm i
|
|
134
158
|
```
|
|
135
159
|
|
|
136
160
|
Development:
|
|
137
161
|
|
|
138
|
-
```
|
|
162
|
+
```bash
|
|
139
163
|
npm run dev
|
|
140
164
|
```
|
|
141
165
|
|
|
142
166
|
Build:
|
|
143
167
|
|
|
144
|
-
```
|
|
168
|
+
```bash
|
|
145
169
|
npm run build
|
|
146
170
|
```
|
|
147
171
|
|
package/lib/index.cjs.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* mazey-wechat-launch-app v2.
|
|
3
|
-
* (c) 2018-
|
|
2
|
+
* mazey-wechat-launch-app v2.3.0 https://www.npmjs.com/package/mazey-wechat-launch-app
|
|
3
|
+
* (c) 2018-2025 Cheng
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
|
-
"use strict";var t=require("mazey"),e=require("jquery"),n=require("js-sha1");function r(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var o=r(e),i=r(n),a="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function c(t,e){return t(e={exports:{}},e.exports),e.exports}var u,f,l=function(t){return t&&t.Math==Math&&t},s=l("object"==typeof globalThis&&globalThis)||l("object"==typeof window&&window)||l("object"==typeof self&&self)||l("object"==typeof a&&a)||function(){return this}()||Function("return this")(),p=function(t){try{return!!t()}catch(t){return!0}},d=!p((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),h=!p((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),v=Function.prototype.call,y=h?v.bind(v):function(){return v.apply(v,arguments)},g={}.propertyIsEnumerable,m=Object.getOwnPropertyDescriptor,b=m&&!g.call({1:2},1)?function(t){var e=m(this,t);return!!e&&e.enumerable}:g,w={f:b},S=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},A=Function.prototype,O=A.call,E=h&&A.bind.bind(O,O),P=h?E:function(t){return function(){return O.apply(t,arguments)}},T=P({}.toString),_=P("".slice),j=function(t){return _(T(t),8,-1)},L=Object,x=P("".split),C=p((function(){return!L("z").propertyIsEnumerable(0)}))?function(t){return"String"==j(t)?x(t,""):L(t)}:L,I=function(t){return null==t},R=TypeError,k=function(t){if(I(t))throw R("Can't call method on "+t);return t},N=function(t){return C(k(t))},M="object"==typeof document&&document.all,U={all:M,IS_HTMLDDA:void 0===M&&void 0!==M},D=U.all,H=U.IS_HTMLDDA?function(t){return"function"==typeof t||t===D}:function(t){return"function"==typeof t},B=U.all,W=U.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:H(t)||t===B}:function(t){return"object"==typeof t?null!==t:H(t)},F=function(t,e){return arguments.length<2?(n=s[t],H(n)?n:void 0):s[t]&&s[t][e];var n},z=P({}.isPrototypeOf),G="undefined"!=typeof navigator&&String(navigator.userAgent)||"",q=s.process,V=s.Deno,X=q&&q.versions||V&&V.version,Y=X&&X.v8;Y&&(f=(u=Y.split("."))[0]>0&&u[0]<4?1:+(u[0]+u[1])),!f&&G&&(!(u=G.match(/Edge\/(\d+)/))||u[1]>=74)&&(u=G.match(/Chrome\/(\d+)/))&&(f=+u[1]);var J=f,K=!!Object.getOwnPropertySymbols&&!p((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&J&&J<41})),Q=K&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,$=Object,Z=Q?function(t){return"symbol"==typeof t}:function(t){var e=F("Symbol");return H(e)&&z(e.prototype,$(t))},tt=String,et=function(t){try{return tt(t)}catch(t){return"Object"}},nt=TypeError,rt=function(t){if(H(t))return t;throw nt(et(t)+" is not a function")},ot=function(t,e){var n=t[e];return I(n)?void 0:rt(n)},it=TypeError,at=Object.defineProperty,ct=function(t,e){try{at(s,t,{value:e,configurable:!0,writable:!0})}catch(n){s[t]=e}return e},ut="__core-js_shared__",ft=s[ut]||ct(ut,{}),lt=c((function(t){(t.exports=function(t,e){return ft[t]||(ft[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"})})),st=Object,pt=function(t){return st(k(t))},dt=P({}.hasOwnProperty),ht=Object.hasOwn||function(t,e){return dt(pt(t),e)},vt=0,yt=Math.random(),gt=P(1..toString),mt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+gt(++vt+yt,36)},bt=s.Symbol,wt=lt("wks"),St=Q?bt.for||bt:bt&&bt.withoutSetter||mt,At=function(t){return ht(wt,t)||(wt[t]=K&&ht(bt,t)?bt[t]:St("Symbol."+t)),wt[t]},Ot=TypeError,Et=At("toPrimitive"),Pt=function(t,e){if(!W(t)||Z(t))return t;var n,r=ot(t,Et);if(r){if(void 0===e&&(e="default"),n=y(r,t,e),!W(n)||Z(n))return n;throw Ot("Can't convert object to primitive value")}return void 0===e&&(e="number"),function(t,e){var n,r;if("string"===e&&H(n=t.toString)&&!W(r=y(n,t)))return r;if(H(n=t.valueOf)&&!W(r=y(n,t)))return r;if("string"!==e&&H(n=t.toString)&&!W(r=y(n,t)))return r;throw it("Can't convert object to primitive value")}(t,e)},Tt=function(t){var e=Pt(t,"string");return Z(e)?e:e+""},_t=s.document,jt=W(_t)&&W(_t.createElement),Lt=function(t){return jt?_t.createElement(t):{}},xt=!d&&!p((function(){return 7!=Object.defineProperty(Lt("div"),"a",{get:function(){return 7}}).a})),Ct=Object.getOwnPropertyDescriptor,It={f:d?Ct:function(t,e){if(t=N(t),e=Tt(e),xt)try{return Ct(t,e)}catch(t){}if(ht(t,e))return S(!y(w.f,t,e),t[e])}},Rt=d&&p((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),kt=String,Nt=TypeError,Mt=function(t){if(W(t))return t;throw Nt(kt(t)+" is not an object")},Ut=TypeError,Dt=Object.defineProperty,Ht=Object.getOwnPropertyDescriptor,Bt="enumerable",Wt="configurable",Ft="writable",zt={f:d?Rt?function(t,e,n){if(Mt(t),e=Tt(e),Mt(n),"function"==typeof t&&"prototype"===e&&"value"in n&&Ft in n&&!n[Ft]){var r=Ht(t,e);r&&r[Ft]&&(t[e]=n.value,n={configurable:Wt in n?n[Wt]:r[Wt],enumerable:Bt in n?n[Bt]:r[Bt],writable:!1})}return Dt(t,e,n)}:Dt:function(t,e,n){if(Mt(t),e=Tt(e),Mt(n),xt)try{return Dt(t,e,n)}catch(t){}if("get"in n||"set"in n)throw Ut("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},Gt=d?function(t,e,n){return zt.f(t,e,S(1,n))}:function(t,e,n){return t[e]=n,t},qt=Function.prototype,Vt=d&&Object.getOwnPropertyDescriptor,Xt=ht(qt,"name"),Yt={EXISTS:Xt,PROPER:Xt&&"something"===function(){}.name,CONFIGURABLE:Xt&&(!d||d&&Vt(qt,"name").configurable)},Jt=P(Function.toString);H(ft.inspectSource)||(ft.inspectSource=function(t){return Jt(t)});var Kt,Qt,$t,Zt=ft.inspectSource,te=s.WeakMap,ee=H(te)&&/native code/.test(String(te)),ne=lt("keys"),re=function(t){return ne[t]||(ne[t]=mt(t))},oe={},ie="Object already initialized",ae=s.TypeError,ce=s.WeakMap;if(ee||ft.state){var ue=ft.state||(ft.state=new ce);ue.get=ue.get,ue.has=ue.has,ue.set=ue.set,Kt=function(t,e){if(ue.has(t))throw ae(ie);return e.facade=t,ue.set(t,e),e},Qt=function(t){return ue.get(t)||{}},$t=function(t){return ue.has(t)}}else{var fe=re("state");oe[fe]=!0,Kt=function(t,e){if(ht(t,fe))throw ae(ie);return e.facade=t,Gt(t,fe,e),e},Qt=function(t){return ht(t,fe)?t[fe]:{}},$t=function(t){return ht(t,fe)}}var le={set:Kt,get:Qt,has:$t,enforce:function(t){return $t(t)?Qt(t):Kt(t,{})},getterFor:function(t){return function(e){var n;if(!W(e)||(n=Qt(e)).type!==t)throw ae("Incompatible receiver, "+t+" required");return n}}},se=c((function(t){var e=Yt.CONFIGURABLE,n=le.enforce,r=le.get,o=String,i=Object.defineProperty,a=P("".slice),c=P("".replace),u=P([].join),f=d&&!p((function(){return 8!==i((function(){}),"length",{value:8}).length})),l=String(String).split("String"),s=t.exports=function(t,r,s){"Symbol("===a(o(r),0,7)&&(r="["+c(o(r),/^Symbol\(([^)]*)\)/,"$1")+"]"),s&&s.getter&&(r="get "+r),s&&s.setter&&(r="set "+r),(!ht(t,"name")||e&&t.name!==r)&&(d?i(t,"name",{value:r,configurable:!0}):t.name=r),f&&s&&ht(s,"arity")&&t.length!==s.arity&&i(t,"length",{value:s.arity});try{s&&ht(s,"constructor")&&s.constructor?d&&i(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var p=n(t);return ht(p,"source")||(p.source=u(l,"string"==typeof r?r:"")),t};Function.prototype.toString=s((function(){return H(this)&&r(this).source||Zt(this)}),"toString")})),pe=function(t,e,n,r){r||(r={});var o=r.enumerable,i=void 0!==r.name?r.name:e;if(H(n)&&se(n,i,r),r.global)o?t[e]=n:ct(e,n);else{try{r.unsafe?t[e]&&(o=!0):delete t[e]}catch(t){}o?t[e]=n:zt.f(t,e,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return t},de=Math.ceil,he=Math.floor,ve=Math.trunc||function(t){var e=+t;return(e>0?he:de)(e)},ye=function(t){var e=+t;return e!=e||0===e?0:ve(e)},ge=Math.max,me=Math.min,be=Math.min,we=function(t){return(e=t.length)>0?be(ye(e),9007199254740991):0;var e},Se=function(t){return function(e,n,r){var o,i=N(e),a=we(i),c=function(t,e){var n=ye(t);return n<0?ge(n+e,0):me(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}},Ae={includes:Se(!0),indexOf:Se(!1)}.indexOf,Oe=P([].push),Ee=function(t,e){var n,r=N(t),o=0,i=[];for(n in r)!ht(oe,n)&&ht(r,n)&&Oe(i,n);for(;e.length>o;)ht(r,n=e[o++])&&(~Ae(i,n)||Oe(i,n));return i},Pe=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Te=Pe.concat("length","prototype"),_e={f:Object.getOwnPropertyNames||function(t){return Ee(t,Te)}},je={f:Object.getOwnPropertySymbols},Le=P([].concat),xe=F("Reflect","ownKeys")||function(t){var e=_e.f(Mt(t)),n=je.f;return n?Le(e,n(t)):e},Ce=function(t,e,n){for(var r=xe(e),o=zt.f,i=It.f,a=0;a<r.length;a++){var c=r[a];ht(t,c)||n&&ht(n,c)||o(t,c,i(e,c))}},Ie=/#|\.prototype\./,Re=function(t,e){var n=Ne[ke(t)];return n==Ue||n!=Me&&(H(e)?p(e):!!e)},ke=Re.normalize=function(t){return String(t).replace(Ie,".").toLowerCase()},Ne=Re.data={},Me=Re.NATIVE="N",Ue=Re.POLYFILL="P",De=Re,He=It.f,Be=function(t,e){var n,r,o,i,a,c=t.target,u=t.global,f=t.stat;if(n=u?s:f?s[c]||ct(c,{}):(s[c]||{}).prototype)for(r in e){if(i=e[r],o=t.dontCallGetSet?(a=He(n,r))&&a.value:n[r],!De(u?r:c+(f?".":"#")+r,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;Ce(i,o)}(t.sham||o&&o.sham)&&Gt(i,"sham",!0),pe(n,r,i,t)}},We=Object.keys||function(t){return Ee(t,Pe)},Fe=Object.assign,ze=Object.defineProperty,Ge=P([].concat),qe=!Fe||p((function(){if(d&&1!==Fe({b:1},Fe(ze({},"a",{enumerable:!0,get:function(){ze(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach((function(t){e[t]=t})),7!=Fe({},t)[n]||We(Fe({},e)).join("")!=r}))?function(t,e){for(var n=pt(t),r=arguments.length,o=1,i=je.f,a=w.f;r>o;)for(var c,u=C(arguments[o++]),f=i?Ge(We(u),i(u)):We(u),l=f.length,s=0;l>s;)c=f[s++],d&&!y(a,u,c)||(n[c]=u[c]);return n}:Fe;Be({target:"Object",stat:!0,arity:2,forced:Object.assign!==qe},{assign:qe});var Ve=Array.isArray||function(t){return"Array"==j(t)},Xe=TypeError,Ye=function(t){if(t>9007199254740991)throw Xe("Maximum allowed index exceeded");return t},Je=function(t,e,n){var r=Tt(e);r in t?zt.f(t,r,S(0,n)):t[r]=n},Ke={};Ke[At("toStringTag")]="z";var Qe="[object z]"===String(Ke),$e=At("toStringTag"),Ze=Object,tn="Arguments"==j(function(){return arguments}()),en=Qe?j: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=Ze(t),$e))?n:tn?j(e):"Object"==(r=j(e))&&H(e.callee)?"Arguments":r},nn=function(){},rn=[],on=F("Reflect","construct"),an=/^\s*(?:class|function)\b/,cn=P(an.exec),un=!an.exec(nn),fn=function(t){if(!H(t))return!1;try{return on(nn,rn,t),!0}catch(t){return!1}},ln=function(t){if(!H(t))return!1;switch(en(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return un||!!cn(an,Zt(t))}catch(t){return!0}};ln.sham=!0;var sn,pn=!on||p((function(){var t;return fn(fn.call)||!fn(Object)||!fn((function(){t=!0}))||t}))?ln:fn,dn=At("species"),hn=Array,vn=function(t,e){return new(function(t){var e;return Ve(t)&&(e=t.constructor,(pn(e)&&(e===hn||Ve(e.prototype))||W(e)&&null===(e=e[dn]))&&(e=void 0)),void 0===e?hn:e}(t))(0===e?0:e)},yn=At("species"),gn=At("isConcatSpreadable"),mn=J>=51||!p((function(){var t=[];return t[gn]=!1,t.concat()[0]!==t})),bn=function(t){if(!W(t))return!1;var e=t[gn];return void 0!==e?!!e:Ve(t)},wn=!(mn&&(sn="concat",J>=51||!p((function(){var t=[];return(t.constructor={})[yn]=function(){return{foo:1}},1!==t[sn](Boolean).foo}))));Be({target:"Array",proto:!0,arity:1,forced:wn},{concat:function(t){var e,n,r,o,i,a=pt(this),c=vn(a,0),u=0;for(e=-1,r=arguments.length;e<r;e++)if(bn(i=-1===e?a:arguments[e]))for(o=we(i),Ye(u+o),n=0;n<o;n++,u++)n in i&&Je(c,u,i[n]);else Ye(u+1),Je(c,u++,i);return c.length=u,c}});var Sn,An=d&&!Rt?Object.defineProperties:function(t,e){Mt(t);for(var n,r=N(e),o=We(e),i=o.length,a=0;i>a;)zt.f(t,n=o[a++],r[n]);return t},On={f:An},En=F("document","documentElement"),Pn="prototype",Tn="script",_n=re("IE_PROTO"),jn=function(){},Ln=function(t){return"<"+Tn+">"+t+"</"+Tn+">"},xn=function(t){t.write(Ln("")),t.close();var e=t.parentWindow.Object;return t=null,e},Cn=function(){try{Sn=new ActiveXObject("htmlfile")}catch(t){}var t,e,n;Cn="undefined"!=typeof document?document.domain&&Sn?xn(Sn):(e=Lt("iframe"),n="java"+Tn+":",e.style.display="none",En.appendChild(e),e.src=String(n),(t=e.contentWindow.document).open(),t.write(Ln("document.F=Object")),t.close(),t.F):xn(Sn);for(var r=Pe.length;r--;)delete Cn[Pn][Pe[r]];return Cn()};oe[_n]=!0;var In=Object.create||function(t,e){var n;return null!==t?(jn[Pn]=Mt(t),n=new jn,jn[Pn]=null,n[_n]=t):n=Cn(),void 0===e?n:On.f(n,e)},Rn=zt.f,kn=At("unscopables"),Nn=Array.prototype;null==Nn[kn]&&Rn(Nn,kn,{configurable:!0,value:In(null)});var Mn,Un,Dn,Hn=function(t){Nn[kn][t]=!0},Bn={},Wn=!p((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),Fn=re("IE_PROTO"),zn=Object,Gn=zn.prototype,qn=Wn?zn.getPrototypeOf:function(t){var e=pt(t);if(ht(e,Fn))return e[Fn];var n=e.constructor;return H(n)&&e instanceof n?n.prototype:e instanceof zn?Gn:null},Vn=At("iterator"),Xn=!1;[].keys&&("next"in(Dn=[].keys())?(Un=qn(qn(Dn)))!==Object.prototype&&(Mn=Un):Xn=!0);var Yn=!W(Mn)||p((function(){var t={};return Mn[Vn].call(t)!==t}));Yn&&(Mn={}),H(Mn[Vn])||pe(Mn,Vn,(function(){return this}));var Jn={IteratorPrototype:Mn,BUGGY_SAFARI_ITERATORS:Xn},Kn=zt.f,Qn=At("toStringTag"),$n=function(t,e,n){t&&!n&&(t=t.prototype),t&&!ht(t,Qn)&&Kn(t,Qn,{configurable:!0,value:e})},Zn=Jn.IteratorPrototype,tr=function(){return this},er=String,nr=TypeError,rr=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{t=function(t,e,n){try{return P(rt(Object.getOwnPropertyDescriptor(t,e)[n]))}catch(t){}}(Object.prototype,"__proto__","set"),t(n,[]),e=n instanceof Array}catch(t){}return function(n,r){return Mt(n),function(t){if("object"==typeof t||H(t))return t;throw nr("Can't set "+er(t)+" as a prototype")}(r),e?t(n,r):n.__proto__=r,n}}():void 0),or=Yt.PROPER,ir=Yt.CONFIGURABLE,ar=Jn.IteratorPrototype,cr=Jn.BUGGY_SAFARI_ITERATORS,ur=At("iterator"),fr="keys",lr="values",sr="entries",pr=function(){return this},dr=function(t,e,n,r,o,i,a){!function(t,e,n,r){var o=e+" Iterator";t.prototype=In(Zn,{next:S(+!r,n)}),$n(t,o,!1),Bn[o]=tr}(n,e,r);var c,u,f,l=function(t){if(t===o&&v)return v;if(!cr&&t in d)return d[t];switch(t){case fr:case lr:case sr:return function(){return new n(this,t)}}return function(){return new n(this)}},s=e+" Iterator",p=!1,d=t.prototype,h=d[ur]||d["@@iterator"]||o&&d[o],v=!cr&&h||l(o),g="Array"==e&&d.entries||h;if(g&&(c=qn(g.call(new t)))!==Object.prototype&&c.next&&(qn(c)!==ar&&(rr?rr(c,ar):H(c[ur])||pe(c,ur,pr)),$n(c,s,!0)),or&&o==lr&&h&&h.name!==lr&&(ir?Gt(d,"name",lr):(p=!0,v=function(){return y(h,this)})),o)if(u={values:l(lr),keys:i?v:l(fr),entries:l(sr)},a)for(f in u)(cr||p||!(f in d))&&pe(d,f,u[f]);else Be({target:e,proto:!0,forced:cr||p},u);return d[ur]!==v&&pe(d,ur,v,{name:o}),Bn[e]=v,u},hr=function(t,e){return{value:t,done:e}},vr=zt.f,yr="Array Iterator",gr=le.set,mr=le.getterFor(yr),br=dr(Array,"Array",(function(t,e){gr(this,{type:yr,target:N(t),index:0,kind:e})}),(function(){var t=mr(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,hr(void 0,!0)):hr("keys"==n?r:"values"==n?e[r]:[r,e[r]],!1)}),"values"),wr=Bn.Arguments=Bn.Array;if(Hn("keys"),Hn("values"),Hn("entries"),d&&"values"!==wr.name)try{vr(wr,"name",{value:"values"})}catch(t){}var Sr=Qe?{}.toString:function(){return"[object "+en(this)+"]"};Qe||pe(Object.prototype,"toString",Sr,{unsafe:!0});var Ar,Or,Er,Pr,Tr="undefined"!=typeof process&&"process"==j(process),_r=At("species"),jr=TypeError,Lr=TypeError,xr=At("species"),Cr=function(t,e){var n,r=Mt(t).constructor;return void 0===r||I(n=Mt(r)[xr])?e:function(t){if(pn(t))return t;throw Lr(et(t)+" is not a constructor")}(n)},Ir=Function.prototype,Rr=Ir.apply,kr=Ir.call,Nr="object"==typeof Reflect&&Reflect.apply||(h?kr.bind(Rr):function(){return kr.apply(Rr,arguments)}),Mr=function(t){if("Function"===j(t))return P(t)},Ur=Mr(Mr.bind),Dr=function(t,e){return rt(t),void 0===e?t:h?Ur(t,e):function(){return t.apply(e,arguments)}},Hr=P([].slice),Br=TypeError,Wr=/(?:ipad|iphone|ipod).*applewebkit/i.test(G),Fr=s.setImmediate,zr=s.clearImmediate,Gr=s.process,qr=s.Dispatch,Vr=s.Function,Xr=s.MessageChannel,Yr=s.String,Jr=0,Kr={},Qr="onreadystatechange";p((function(){Ar=s.location}));var $r=function(t){if(ht(Kr,t)){var e=Kr[t];delete Kr[t],e()}},Zr=function(t){return function(){$r(t)}},to=function(t){$r(t.data)},eo=function(t){s.postMessage(Yr(t),Ar.protocol+"//"+Ar.host)};Fr&&zr||(Fr=function(t){!function(t,e){if(t<e)throw Br("Not enough arguments")}(arguments.length,1);var e=H(t)?t:Vr(t),n=Hr(arguments,1);return Kr[++Jr]=function(){Nr(e,void 0,n)},Or(Jr),Jr},zr=function(t){delete Kr[t]},Tr?Or=function(t){Gr.nextTick(Zr(t))}:qr&&qr.now?Or=function(t){qr.now(Zr(t))}:Xr&&!Wr?(Pr=(Er=new Xr).port2,Er.port1.onmessage=to,Or=Dr(Pr.postMessage,Pr)):s.addEventListener&&H(s.postMessage)&&!s.importScripts&&Ar&&"file:"!==Ar.protocol&&!p(eo)?(Or=eo,s.addEventListener("message",to,!1)):Or=Qr in Lt("script")?function(t){En.appendChild(Lt("script"))[Qr]=function(){En.removeChild(this),$r(t)}}:function(t){setTimeout(Zr(t),0)});var no={set:Fr,clear:zr},ro=function(){this.head=null,this.tail=null};ro.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 oo,io,ao,co,uo,fo=ro,lo=/ipad|iphone|ipod/i.test(G)&&"undefined"!=typeof Pebble,so=/web0s(?!.*chrome)/i.test(G),po=It.f,ho=no.set,vo=s.MutationObserver||s.WebKitMutationObserver,yo=s.document,go=s.process,mo=s.Promise,bo=po(s,"queueMicrotask"),wo=bo&&bo.value;if(!wo){var So=new fo,Ao=function(){var t,e;for(Tr&&(t=go.domain)&&t.exit();e=So.get();)try{e()}catch(t){throw So.head&&oo(),t}t&&t.enter()};Wr||Tr||so||!vo||!yo?!lo&&mo&&mo.resolve?((co=mo.resolve(void 0)).constructor=mo,uo=Dr(co.then,co),oo=function(){uo(Ao)}):Tr?oo=function(){go.nextTick(Ao)}:(ho=Dr(ho,s),oo=function(){ho(Ao)}):(io=!0,ao=yo.createTextNode(""),new vo(Ao).observe(ao,{characterData:!0}),oo=function(){ao.data=io=!io}),wo=function(t){So.head||oo(),So.add(t)}}var Oo=wo,Eo=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},Po=s.Promise,To="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,_o=!To&&!Tr&&"object"==typeof window&&"object"==typeof document;Po&&Po.prototype;var jo,Lo,xo,Co,Io,Ro,ko,No=At("species"),Mo=!1,Uo=H(s.PromiseRejectionEvent),Do=De("Promise",(function(){var t=Zt(Po),e=t!==String(Po);if(!e&&66===J)return!0;if(!J||J<51||!/native code/.test(t)){var n=new Po((function(t){t(1)})),r=function(t){t((function(){}),(function(){}))};if((n.constructor={})[No]=r,!(Mo=n.then((function(){}))instanceof r))return!0}return!e&&(_o||To)&&!Uo})),Ho={CONSTRUCTOR:Do,REJECTION_EVENT:Uo,SUBCLASSING:Mo},Bo=TypeError,Wo=function(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw Bo("Bad Promise constructor");e=t,n=r})),this.resolve=rt(e),this.reject=rt(n)},Fo={f:function(t){return new Wo(t)}},zo=no.set,Go="Promise",qo=Ho.CONSTRUCTOR,Vo=Ho.REJECTION_EVENT,Xo=Ho.SUBCLASSING,Yo=le.getterFor(Go),Jo=le.set,Ko=Po&&Po.prototype,Qo=Po,$o=Ko,Zo=s.TypeError,ti=s.document,ei=s.process,ni=Fo.f,ri=ni,oi=!!(ti&&ti.createEvent&&s.dispatchEvent),ii="unhandledrejection",ai=function(t){var e;return!(!W(t)||!H(e=t.then))&&e},ci=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&&pi(e),e.rejection=1),!0===c?n=i:(l&&l.enter(),n=c(i),l&&(l.exit(),o=!0)),n===t.promise?f(Zo("Promise-chain cycle")):(r=ai(n))?y(r,n,u,f):u(n)):f(i)}catch(t){l&&!o&&l.exit(),f(t)}},ui=function(t,e){t.notified||(t.notified=!0,Oo((function(){for(var n,r=t.reactions;n=r.get();)ci(n,t);t.notified=!1,e&&!t.rejection&&li(t)})))},fi=function(t,e,n){var r,o;oi?((r=ti.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),s.dispatchEvent(r)):r={promise:e,reason:n},!Vo&&(o=s["on"+t])?o(r):t===ii&&function(t,e){try{1==arguments.length?console.error(t):console.error(t,e)}catch(t){}}("Unhandled promise rejection",n)},li=function(t){y(zo,s,(function(){var e,n=t.facade,r=t.value;if(si(t)&&(e=Eo((function(){Tr?ei.emit("unhandledRejection",r,n):fi(ii,n,r)})),t.rejection=Tr||si(t)?2:1,e.error))throw e.value}))},si=function(t){return 1!==t.rejection&&!t.parent},pi=function(t){y(zo,s,(function(){var e=t.facade;Tr?ei.emit("rejectionHandled",e):fi("rejectionhandled",e,t.value)}))},di=function(t,e,n){return function(r){t(e,r,n)}},hi=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,ui(t,!0))},vi=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw Zo("Promise can't be resolved itself");var r=ai(e);r?Oo((function(){var n={done:!1};try{y(r,e,di(vi,n,t),di(hi,n,t))}catch(e){hi(n,e,t)}})):(t.value=e,t.state=1,ui(t,!1))}catch(e){hi({done:!1},e,t)}}};if(qo&&($o=(Qo=function(t){!function(t,e){if(z(e,t))return t;throw jr("Incorrect invocation")}(this,$o),rt(t),y(jo,this);var e=Yo(this);try{t(di(vi,e),di(hi,e))}catch(t){hi(e,t)}}).prototype,(jo=function(t){Jo(this,{type:Go,done:!1,notified:!1,parent:!1,reactions:new fo,rejection:!1,state:0,value:void 0})}).prototype=pe($o,"then",(function(t,e){var n=Yo(this),r=ni(Cr(this,Qo));return n.parent=!0,r.ok=!H(t)||t,r.fail=H(e)&&e,r.domain=Tr?ei.domain:void 0,0==n.state?n.reactions.add(r):Oo((function(){ci(r,n)})),r.promise})),Lo=function(){var t=new jo,e=Yo(t);this.promise=t,this.resolve=di(vi,e),this.reject=di(hi,e)},Fo.f=ni=function(t){return t===Qo||undefined===t?new Lo(t):ri(t)},H(Po)&&Ko!==Object.prototype)){xo=Ko.then,Xo||pe(Ko,"then",(function(t,e){var n=this;return new Qo((function(t,e){y(xo,n,t,e)})).then(t,e)}),{unsafe:!0});try{delete Ko.constructor}catch(t){}rr&&rr(Ko,$o)}Be({global:!0,constructor:!0,wrap:!0,forced:qo},{Promise:Qo}),$n(Qo,Go,!1),ko=F(Go),d&&ko&&!ko[_r]&&(Co=ko,Io=_r,(Ro={configurable:!0,get:function(){return this}}).get&&se(Ro.get,Io,{getter:!0}),Ro.set&&se(Ro.set,Io,{setter:!0}),zt.f(Co,Io,Ro));var yi=At("iterator"),gi=Array.prototype,mi=At("iterator"),bi=function(t){if(!I(t))return ot(t,mi)||ot(t,"@@iterator")||Bn[en(t)]},wi=TypeError,Si=function(t,e,n){var r,o;Mt(t);try{if(!(r=ot(t,"return"))){if("throw"===e)throw n;return n}r=y(r,t)}catch(t){o=!0,r=t}if("throw"===e)throw n;if(o)throw r;return Mt(r),n},Ai=TypeError,Oi=function(t,e){this.stopped=t,this.result=e},Ei=Oi.prototype,Pi=function(t,e,n){var r,o,i,a,c,u,f,l,s=n&&n.that,p=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_RECORD),h=!(!n||!n.IS_ITERATOR),v=!(!n||!n.INTERRUPTED),g=Dr(e,s),m=function(t){return r&&Si(r,"normal",t),new Oi(!0,t)},b=function(t){return p?(Mt(t),v?g(t[0],t[1],m):g(t[0],t[1])):v?g(t,m):g(t)};if(d)r=t.iterator;else if(h)r=t;else{if(!(o=bi(t)))throw Ai(et(t)+" is not iterable");if(void 0!==(l=o)&&(Bn.Array===l||gi[yi]===l)){for(i=0,a=we(t);a>i;i++)if((c=b(t[i]))&&z(Ei,c))return c;return new Oi(!1)}r=function(t,e){var n=arguments.length<2?bi(t):e;if(rt(n))return Mt(y(n,t));throw wi(et(t)+" is not iterable")}(t,o)}for(u=d?t.next:r.next;!(f=y(u,r)).done;){try{c=b(f.value)}catch(t){Si(r,"throw",t)}if("object"==typeof c&&c&&z(Ei,c))return c}return new Oi(!1)},Ti=At("iterator"),_i=!1;try{var ji=0,Li={next:function(){return{done:!!ji++}},return:function(){_i=!0}};Li[Ti]=function(){return this},Array.from(Li,(function(){throw 2}))}catch(t){}var xi=Ho.CONSTRUCTOR||!function(t,e){if(!e&&!_i)return!1;var n=!1;try{var r={};r[Ti]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(t){}return n}((function(t){Po.all(t).then(void 0,(function(){}))}));Be({target:"Promise",stat:!0,forced:xi},{all:function(t){var e=this,n=Fo.f(e),r=n.resolve,o=n.reject,i=Eo((function(){var n=rt(e.resolve),i=[],a=0,c=1;Pi(t,(function(t){var u=a++,f=!1;c++,y(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 Ci=Ho.CONSTRUCTOR,Ii=Po&&Po.prototype;if(Be({target:"Promise",proto:!0,forced:Ci,real:!0},{catch:function(t){return this.then(void 0,t)}}),H(Po)){var Ri=F("Promise").prototype.catch;Ii.catch!==Ri&&pe(Ii,"catch",Ri,{unsafe:!0})}Be({target:"Promise",stat:!0,forced:xi},{race:function(t){var e=this,n=Fo.f(e),r=n.reject,o=Eo((function(){var o=rt(e.resolve);Pi(t,(function(t){y(o,e,t).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}}),Be({target:"Promise",stat:!0,forced:Ho.CONSTRUCTOR},{reject:function(t){var e=Fo.f(this);return y(e.reject,void 0,t),e.promise}});var ki=Ho.CONSTRUCTOR;F("Promise"),Be({target:"Promise",stat:!0,forced:ki},{resolve:function(t){return function(t,e){if(Mt(t),W(e)&&e.constructor===t)return e;var n=Fo.f(t);return(0,n.resolve)(e),n.promise}(this,t)}});var Ni=String,Mi=function(t){if("Symbol"===en(t))throw TypeError("Cannot convert a Symbol value to a string");return Ni(t)},Ui=P("".charAt),Di=P("".charCodeAt),Hi=P("".slice),Bi=function(t){return function(e,n){var r,o,i=Mi(k(e)),a=ye(n),c=i.length;return a<0||a>=c?t?"":void 0:(r=Di(i,a))<55296||r>56319||a+1===c||(o=Di(i,a+1))<56320||o>57343?t?Ui(i,a):r:t?Hi(i,a,a+2):o-56320+(r-55296<<10)+65536}},Wi={codeAt:Bi(!1),charAt:Bi(!0)}.charAt,Fi="String Iterator",zi=le.set,Gi=le.getterFor(Fi);dr(String,"String",(function(t){zi(this,{type:Fi,string:Mi(t),index:0})}),(function(){var t,e=Gi(this),n=e.string,r=e.index;return r>=n.length?hr(void 0,!0):(t=Wi(n,r),e.index+=t.length,hr(t,!1))}));var qi={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},Vi=Lt("span").classList,Xi=Vi&&Vi.constructor&&Vi.constructor.prototype,Yi=Xi===Object.prototype?void 0:Xi,Ji=At("iterator"),Ki=At("toStringTag"),Qi=br.values,$i=function(t,e){if(t){if(t[Ji]!==Qi)try{Gt(t,Ji,Qi)}catch(e){t[Ji]=Qi}if(t[Ki]||Gt(t,Ki,e),qi[e])for(var n in br)if(t[n]!==br[n])try{Gt(t,n,br[n])}catch(e){t[n]=br[n]}}};for(var Zi in qi)$i(s[Zi]&&s[Zi].prototype,Zi);$i(Yi,"DOMTokenList");var ta=function(){return ta=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},ta.apply(this,arguments)},ea={weixinJsSdkTicket:"",launchContainerQuery:".mazey-launch-app-selector",launchShowWeixinToBrowserImgUrl:"",canShowWeixinToBrowser:!1,extInfo:"",serviceAccountAppId:"",wexinServiceAccountAppId:"",openPlatformMobileAppId:"",genTagPrefixStr:"mazey-launch-app-btn-prefix-",launchShowWeixinToBrowserClassName:"mazey-launch-app-wx-to-browser",launchBtnClassName:"mazey-launch-app-inner-btn",launchBtnStyle:"",launchBtnText:"Launch App <br /><br /><br />",launchErrorLink:"",canContinuousUpdating:!1,onMenuShareTimelineOptions:void 0,onMenuShareAppMessageOptions:void 0,isConClosed:!0,isWxDebug:!1,canLaunchApp:function(){return!0},canFireErrorLinkDirectly:function(){return!1},launchBtnClick:function(){},launchReady:function(){}};module.exports=function(e){void 0===e&&(e=ea);var n=Object.assign(ea,e),r=n.weixinJsSdkTicket,a=n.launchContainerQuery,c=n.genTagPrefixStr,u=n.launchShowWeixinToBrowserImgUrl,f=n.canShowWeixinToBrowser,l=n.launchShowWeixinToBrowserClassName,s=n.launchBtnClassName,p=n.launchBtnStyle,d=n.launchBtnText,h=n.launchErrorLink,v=n.wexinServiceAccountAppId,y=n.openPlatformMobileAppId,g=n.canContinuousUpdating,m=n.onMenuShareTimelineOptions,b=n.onMenuShareAppMessageOptions,w=n.isConClosed,S=n.isWxDebug,A=n.canLaunchApp,O=n.canFireErrorLinkDirectly,E=n.launchBtnClick,P=n.launchReady,T=n.serviceAccountAppId,_=n.extInfo,j=window.wx;j||console.error("Launch App: wx is not found");var L=function(){},x=t.genCustomConsole("LaunchCon:",{isClosed:w});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=ta(ta({},C),R),I=ta(ta({},I),R);var k=function(t,e,n){return void 0===t&&(t=""),void 0===e&&(e=""),void 0===n&&(n="button"),"<style>.".concat(s,"{")+"opacity: 0;width: 100%;height: 100%;backgroud: transparent;color: #300f54;border: none;box-sizing: border-box;text-align: center;vertical-align: middle;"+p+e+"}</style>"+"<".concat(n,' class="').concat(s,'"')+(t&&"button"===n?' onclick="'.concat(t,'"'):"")+(t&&"a"===n?' target="_self" href="'.concat(t,'"'):"")+">"+d+"</".concat(n,">")},N=k();function M(){t.addStyle('.mazey-launch-app-mask{position:fixed;top:0;right:0;bottom:0;left:0;background-color:rgba(0, 0, 0, .5);text-align:right;font-size:0;white-space:nowrap;overflow:auto;z-index:999;}.mazey-launch-app-img{display:inline-block;vertical-align:middle;text-align:left;font-size:14px;white-space:normal;width:50vw;margin:0.5rem 0.5rem 0 0;}.mazey-launch-app-img:after{content:"";display:inline-block;height:100%;vertical-align:middle;}',{id:"mazey-launch-app-mask-style"}),window.LAUNCH_APP_HIDE_WEIXIN_BROWSER||(window.LAUNCH_APP_HIDE_WEIXIN_BROWSER=function(){o.default(".mazey-launch-app-mask").hide()}),0===o.default(".mazey-launch-app-mask").length?o.default("body").append("<div class='mazey-launch-app-mask' onclick='window.LAUNCH_APP_HIDE_WEIXIN_BROWSER()'><img "+"class='mazey-launch-app-img ".concat(l,"' ")+"src='".concat(u,"' ")+"alt='Launch App' /></div>"):o.default(".mazey-launch-app-mask").show()}function U(){x.log("renderWeixinLaunchTemplate"),!T&&v&&(console.warn("wexinServiceAccountAppId will be deprecated, use serviceAccountAppId instead."),T=v),function(e,n){void 0===e&&(e=""),void 0===n&&(n=""),x.log("renderWXOpenLaunchApp"),Promise.all([Promise.resolve(r||window.LAUNCH_APP_WEIXIN_JS_SDK_TICKET),Promise.resolve(i.default)]).then((function(r){x.log("allRes",r);var i=r[0],u=r[1],l=t.generateRndNum(7),s=i,p=(new Date).getTime(),d=u("jsapi_ticket="+s+"&noncestr="+l+"×tamp="+p+"&url="+location.href);return j.config({debug:S,appId:e,timestamp:p,nonceStr:l,signature:d,jsApiList:["showOptionMenu","onMenuShareTimeline","onMenuShareAppMessage"],openTagList:["wx-open-launch-app"]}),j.ready((function(){m&&(x.log("onMenuShareTimelineOptions",m),j.onMenuShareTimeline(m)),window.LAUNCH_APP_SHARE_TIMELINE=function(t){t=ta(ta({},C),t),x.log("window LAUNCH_APP_SHARE_TIMELINE",t),j.onMenuShareTimeline(t)},b&&(x.log("onMenuShareAppMessageOptions",b),j.onMenuShareAppMessage(b)),window.LAUNCH_APP_SHARE_APP_MESSAGE=function(t){t=ta(ta({},I),t),x.log("window LAUNCH_APP_SHARE_APP_MESSAGE",t),j.onMenuShareAppMessage(t)},window.LAUNCH_APP_READY=!0,P&&P();var t=function(){var t=o.default(a);x.log("containers",a,t,t.length),t.length>0&&t.each((function(t,e){var r=o.default(e).attr("data-launch-app-key");if(!r){var i=o.default(e).parents("[data-launch-app-key]:eq(0)");i.length>0&&(r=i.attr("data-launch-app-key"),x.log("keyEle",i,r))}r||(r=String(t));var a="mazey-launch-app-tag-".concat(r),u=o.default(".".concat(a," wx-open-launch-app")),l=o.default(e).attr("data-launch-app-ext-info");if(!l){var s=o.default(e).parents("[data-launch-app-ext-info]:eq(0)");s.length>0&&(l=s.attr("data-launch-app-ext-info"),x.log("eleExtInfoEle parents",s,l))}l&&(_=l);var p=o.default(e).attr("data-launch-app-error-link");if(!p){var d=o.default(e).parents("[data-launch-app-error-link]:eq(0)");d.length>0&&(p=d.attr("data-launch-app-error-link"),x.log("eleErrorLinkEle parents",d,p))}var v=h;p&&(v=p),0===u.length&&(o.default(e).addClass(a),x.log("success:",a),function(t){var e=c,r=e+t,i="<wx-open-launch-app id='"+r+"' appid='"+n+"' extinfo='".concat(_)+"' style='z-index:99;position:absolute;width:100%;height:100%;opacity:1;background:transparent;overflow:hidden;left:0;'><script type='text/wxtag-template'>"+N+"<\/script></wx-open-launch-app>";o.default("."+t+":eq(0)").append(i);var a=document.getElementById(r);a&&(a.addEventListener("ready",(function(t){x.log("ready event",t)})),a.addEventListener("launch",(function(t){x.log("launch event",t),t.detail&&t.detail.extInfo&&x.log("launch extInfo",t.detail.extInfo)})),a.addEventListener("error",(function(t){x.error(t.detail),o.default("[id^='"+e+"']").hide(),f&&M(),v&&(x.log("realErrorLink",v),location.href=v)})),a.addEventListener("click",(function(t){x.log("click event",t),E&&E()})))}(a))}))};t(),L=t})),j.error((function(t){x.error(t)})),"success:launch_app"})).catch((function(t){x.error(t)}))}(T,y)}function D(t){if(x.log("appUpdated",t),!window.LAUNCH_APP_LOAD&&A(t)&&(U(),window.LAUNCH_APP_LOAD=!0),g&&window.LAUNCH_APP_LOAD&&A(t)&&L(),O()){var e=o.default(a);e.length>0&&e.each((function(t,e){var n=o.default(e).children("."+s);if(!n||!n.length){var r=o.default(e).attr("data-launch-app-error-link");if(!r){var i=o.default(e).parents("[data-launch-app-error-link]:eq(0)");i.length>0&&(r=i.attr("data-launch-app-error-link"))}if(r&&"string"==typeof r&&r.length){var a=k(r,"position:absolute;left:0;z-index:999;","a");o.default(e).append(a)}}}))}}function H(){x.log("appBeforeDestroy",H),window.LAUNCH_APP_LOAD=null,window.LAUNCH_APP_HIDE_WEIXIN_BROWSER=null}return window.LAUNCH_APP_UPDATE=D,window.LAUNCH_APP_BEFORE_DESTROY=H,window.LAUNCH_APP_SHOW_WEIXIN_TO_BROWSER=M,{LAUNCH_APP_UPDATE:D,LAUNCH_APP_BEFORE_DESTROY:H,LAUNCH_APP_SHOW_WEIXIN_TO_BROWSER:M,LAUNCH_APP_SHARE_TIMELINE:function(t){x.log("opt",t)},LAUNCH_APP_SHARE_APP_MESSAGE:function(t){x.log("opt",t)},start:D,update:D,destroy:H}};
|
|
6
|
+
"use strict";var t=require("mazey"),e=require("jquery"),n=require("js-sha1");function r(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var o=r(e),i=r(n),a="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function c(t,e){return t(e={exports:{}},e.exports),e.exports}var u,f,l=function(t){return t&&t.Math==Math&&t},s=l("object"==typeof globalThis&&globalThis)||l("object"==typeof window&&window)||l("object"==typeof self&&self)||l("object"==typeof a&&a)||function(){return this}()||Function("return this")(),p=function(t){try{return!!t()}catch(t){return!0}},d=!p((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),h=!p((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),v=Function.prototype.call,y=h?v.bind(v):function(){return v.apply(v,arguments)},g={}.propertyIsEnumerable,m=Object.getOwnPropertyDescriptor,b=m&&!g.call({1:2},1)?function(t){var e=m(this,t);return!!e&&e.enumerable}:g,w={f:b},S=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},A=Function.prototype,O=A.call,E=h&&A.bind.bind(O,O),P=h?E:function(t){return function(){return O.apply(t,arguments)}},T=P({}.toString),_=P("".slice),L=function(t){return _(T(t),8,-1)},j=Object,x=P("".split),C=p((function(){return!j("z").propertyIsEnumerable(0)}))?function(t){return"String"==L(t)?x(t,""):j(t)}:j,I=function(t){return null==t},R=TypeError,k=function(t){if(I(t))throw R("Can't call method on "+t);return t},N=function(t){return C(k(t))},M="object"==typeof document&&document.all,U={all:M,IS_HTMLDDA:void 0===M&&void 0!==M},D=U.all,H=U.IS_HTMLDDA?function(t){return"function"==typeof t||t===D}:function(t){return"function"==typeof t},B=U.all,W=U.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:H(t)||t===B}:function(t){return"object"==typeof t?null!==t:H(t)},F=function(t,e){return arguments.length<2?(n=s[t],H(n)?n:void 0):s[t]&&s[t][e];var n},z=P({}.isPrototypeOf),G="undefined"!=typeof navigator&&String(navigator.userAgent)||"",q=s.process,V=s.Deno,X=q&&q.versions||V&&V.version,J=X&&X.v8;J&&(f=(u=J.split("."))[0]>0&&u[0]<4?1:+(u[0]+u[1])),!f&&G&&(!(u=G.match(/Edge\/(\d+)/))||u[1]>=74)&&(u=G.match(/Chrome\/(\d+)/))&&(f=+u[1]);var Y=f,K=!!Object.getOwnPropertySymbols&&!p((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&Y&&Y<41})),Q=K&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,$=Object,Z=Q?function(t){return"symbol"==typeof t}:function(t){var e=F("Symbol");return H(e)&&z(e.prototype,$(t))},tt=String,et=function(t){try{return tt(t)}catch(t){return"Object"}},nt=TypeError,rt=function(t){if(H(t))return t;throw nt(et(t)+" is not a function")},ot=function(t,e){var n=t[e];return I(n)?void 0:rt(n)},it=TypeError,at=Object.defineProperty,ct=function(t,e){try{at(s,t,{value:e,configurable:!0,writable:!0})}catch(n){s[t]=e}return e},ut="__core-js_shared__",ft=s[ut]||ct(ut,{}),lt=c((function(t){(t.exports=function(t,e){return ft[t]||(ft[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"})})),st=Object,pt=function(t){return st(k(t))},dt=P({}.hasOwnProperty),ht=Object.hasOwn||function(t,e){return dt(pt(t),e)},vt=0,yt=Math.random(),gt=P(1..toString),mt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+gt(++vt+yt,36)},bt=s.Symbol,wt=lt("wks"),St=Q?bt.for||bt:bt&&bt.withoutSetter||mt,At=function(t){return ht(wt,t)||(wt[t]=K&&ht(bt,t)?bt[t]:St("Symbol."+t)),wt[t]},Ot=TypeError,Et=At("toPrimitive"),Pt=function(t,e){if(!W(t)||Z(t))return t;var n,r=ot(t,Et);if(r){if(void 0===e&&(e="default"),n=y(r,t,e),!W(n)||Z(n))return n;throw Ot("Can't convert object to primitive value")}return void 0===e&&(e="number"),function(t,e){var n,r;if("string"===e&&H(n=t.toString)&&!W(r=y(n,t)))return r;if(H(n=t.valueOf)&&!W(r=y(n,t)))return r;if("string"!==e&&H(n=t.toString)&&!W(r=y(n,t)))return r;throw it("Can't convert object to primitive value")}(t,e)},Tt=function(t){var e=Pt(t,"string");return Z(e)?e:e+""},_t=s.document,Lt=W(_t)&&W(_t.createElement),jt=function(t){return Lt?_t.createElement(t):{}},xt=!d&&!p((function(){return 7!=Object.defineProperty(jt("div"),"a",{get:function(){return 7}}).a})),Ct=Object.getOwnPropertyDescriptor,It={f:d?Ct:function(t,e){if(t=N(t),e=Tt(e),xt)try{return Ct(t,e)}catch(t){}if(ht(t,e))return S(!y(w.f,t,e),t[e])}},Rt=d&&p((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),kt=String,Nt=TypeError,Mt=function(t){if(W(t))return t;throw Nt(kt(t)+" is not an object")},Ut=TypeError,Dt=Object.defineProperty,Ht=Object.getOwnPropertyDescriptor,Bt="enumerable",Wt="configurable",Ft="writable",zt={f:d?Rt?function(t,e,n){if(Mt(t),e=Tt(e),Mt(n),"function"==typeof t&&"prototype"===e&&"value"in n&&Ft in n&&!n[Ft]){var r=Ht(t,e);r&&r[Ft]&&(t[e]=n.value,n={configurable:Wt in n?n[Wt]:r[Wt],enumerable:Bt in n?n[Bt]:r[Bt],writable:!1})}return Dt(t,e,n)}:Dt:function(t,e,n){if(Mt(t),e=Tt(e),Mt(n),xt)try{return Dt(t,e,n)}catch(t){}if("get"in n||"set"in n)throw Ut("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},Gt=d?function(t,e,n){return zt.f(t,e,S(1,n))}:function(t,e,n){return t[e]=n,t},qt=Function.prototype,Vt=d&&Object.getOwnPropertyDescriptor,Xt=ht(qt,"name"),Jt={EXISTS:Xt,PROPER:Xt&&"something"===function(){}.name,CONFIGURABLE:Xt&&(!d||d&&Vt(qt,"name").configurable)},Yt=P(Function.toString);H(ft.inspectSource)||(ft.inspectSource=function(t){return Yt(t)});var Kt,Qt,$t,Zt=ft.inspectSource,te=s.WeakMap,ee=H(te)&&/native code/.test(String(te)),ne=lt("keys"),re=function(t){return ne[t]||(ne[t]=mt(t))},oe={},ie="Object already initialized",ae=s.TypeError,ce=s.WeakMap;if(ee||ft.state){var ue=ft.state||(ft.state=new ce);ue.get=ue.get,ue.has=ue.has,ue.set=ue.set,Kt=function(t,e){if(ue.has(t))throw ae(ie);return e.facade=t,ue.set(t,e),e},Qt=function(t){return ue.get(t)||{}},$t=function(t){return ue.has(t)}}else{var fe=re("state");oe[fe]=!0,Kt=function(t,e){if(ht(t,fe))throw ae(ie);return e.facade=t,Gt(t,fe,e),e},Qt=function(t){return ht(t,fe)?t[fe]:{}},$t=function(t){return ht(t,fe)}}var le={set:Kt,get:Qt,has:$t,enforce:function(t){return $t(t)?Qt(t):Kt(t,{})},getterFor:function(t){return function(e){var n;if(!W(e)||(n=Qt(e)).type!==t)throw ae("Incompatible receiver, "+t+" required");return n}}},se=c((function(t){var e=Jt.CONFIGURABLE,n=le.enforce,r=le.get,o=String,i=Object.defineProperty,a=P("".slice),c=P("".replace),u=P([].join),f=d&&!p((function(){return 8!==i((function(){}),"length",{value:8}).length})),l=String(String).split("String"),s=t.exports=function(t,r,s){"Symbol("===a(o(r),0,7)&&(r="["+c(o(r),/^Symbol\(([^)]*)\)/,"$1")+"]"),s&&s.getter&&(r="get "+r),s&&s.setter&&(r="set "+r),(!ht(t,"name")||e&&t.name!==r)&&(d?i(t,"name",{value:r,configurable:!0}):t.name=r),f&&s&&ht(s,"arity")&&t.length!==s.arity&&i(t,"length",{value:s.arity});try{s&&ht(s,"constructor")&&s.constructor?d&&i(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var p=n(t);return ht(p,"source")||(p.source=u(l,"string"==typeof r?r:"")),t};Function.prototype.toString=s((function(){return H(this)&&r(this).source||Zt(this)}),"toString")})),pe=function(t,e,n,r){r||(r={});var o=r.enumerable,i=void 0!==r.name?r.name:e;if(H(n)&&se(n,i,r),r.global)o?t[e]=n:ct(e,n);else{try{r.unsafe?t[e]&&(o=!0):delete t[e]}catch(t){}o?t[e]=n:zt.f(t,e,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return t},de=Math.ceil,he=Math.floor,ve=Math.trunc||function(t){var e=+t;return(e>0?he:de)(e)},ye=function(t){var e=+t;return e!=e||0===e?0:ve(e)},ge=Math.max,me=Math.min,be=Math.min,we=function(t){return(e=t.length)>0?be(ye(e),9007199254740991):0;var e},Se=function(t){return function(e,n,r){var o,i=N(e),a=we(i),c=function(t,e){var n=ye(t);return n<0?ge(n+e,0):me(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}},Ae={includes:Se(!0),indexOf:Se(!1)}.indexOf,Oe=P([].push),Ee=function(t,e){var n,r=N(t),o=0,i=[];for(n in r)!ht(oe,n)&&ht(r,n)&&Oe(i,n);for(;e.length>o;)ht(r,n=e[o++])&&(~Ae(i,n)||Oe(i,n));return i},Pe=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Te=Pe.concat("length","prototype"),_e={f:Object.getOwnPropertyNames||function(t){return Ee(t,Te)}},Le={f:Object.getOwnPropertySymbols},je=P([].concat),xe=F("Reflect","ownKeys")||function(t){var e=_e.f(Mt(t)),n=Le.f;return n?je(e,n(t)):e},Ce=function(t,e,n){for(var r=xe(e),o=zt.f,i=It.f,a=0;a<r.length;a++){var c=r[a];ht(t,c)||n&&ht(n,c)||o(t,c,i(e,c))}},Ie=/#|\.prototype\./,Re=function(t,e){var n=Ne[ke(t)];return n==Ue||n!=Me&&(H(e)?p(e):!!e)},ke=Re.normalize=function(t){return String(t).replace(Ie,".").toLowerCase()},Ne=Re.data={},Me=Re.NATIVE="N",Ue=Re.POLYFILL="P",De=Re,He=It.f,Be=function(t,e){var n,r,o,i,a,c=t.target,u=t.global,f=t.stat;if(n=u?s:f?s[c]||ct(c,{}):(s[c]||{}).prototype)for(r in e){if(i=e[r],o=t.dontCallGetSet?(a=He(n,r))&&a.value:n[r],!De(u?r:c+(f?".":"#")+r,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;Ce(i,o)}(t.sham||o&&o.sham)&&Gt(i,"sham",!0),pe(n,r,i,t)}},We=Object.keys||function(t){return Ee(t,Pe)},Fe=Object.assign,ze=Object.defineProperty,Ge=P([].concat),qe=!Fe||p((function(){if(d&&1!==Fe({b:1},Fe(ze({},"a",{enumerable:!0,get:function(){ze(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach((function(t){e[t]=t})),7!=Fe({},t)[n]||We(Fe({},e)).join("")!=r}))?function(t,e){for(var n=pt(t),r=arguments.length,o=1,i=Le.f,a=w.f;r>o;)for(var c,u=C(arguments[o++]),f=i?Ge(We(u),i(u)):We(u),l=f.length,s=0;l>s;)c=f[s++],d&&!y(a,u,c)||(n[c]=u[c]);return n}:Fe;Be({target:"Object",stat:!0,arity:2,forced:Object.assign!==qe},{assign:qe});var Ve=Array.isArray||function(t){return"Array"==L(t)},Xe=TypeError,Je=function(t){if(t>9007199254740991)throw Xe("Maximum allowed index exceeded");return t},Ye=function(t,e,n){var r=Tt(e);r in t?zt.f(t,r,S(0,n)):t[r]=n},Ke={};Ke[At("toStringTag")]="z";var Qe="[object z]"===String(Ke),$e=At("toStringTag"),Ze=Object,tn="Arguments"==L(function(){return arguments}()),en=Qe?L: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=Ze(t),$e))?n:tn?L(e):"Object"==(r=L(e))&&H(e.callee)?"Arguments":r},nn=function(){},rn=[],on=F("Reflect","construct"),an=/^\s*(?:class|function)\b/,cn=P(an.exec),un=!an.exec(nn),fn=function(t){if(!H(t))return!1;try{return on(nn,rn,t),!0}catch(t){return!1}},ln=function(t){if(!H(t))return!1;switch(en(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return un||!!cn(an,Zt(t))}catch(t){return!0}};ln.sham=!0;var sn,pn=!on||p((function(){var t;return fn(fn.call)||!fn(Object)||!fn((function(){t=!0}))||t}))?ln:fn,dn=At("species"),hn=Array,vn=function(t,e){return new(function(t){var e;return Ve(t)&&(e=t.constructor,(pn(e)&&(e===hn||Ve(e.prototype))||W(e)&&null===(e=e[dn]))&&(e=void 0)),void 0===e?hn:e}(t))(0===e?0:e)},yn=At("species"),gn=At("isConcatSpreadable"),mn=Y>=51||!p((function(){var t=[];return t[gn]=!1,t.concat()[0]!==t})),bn=function(t){if(!W(t))return!1;var e=t[gn];return void 0!==e?!!e:Ve(t)},wn=!(mn&&(sn="concat",Y>=51||!p((function(){var t=[];return(t.constructor={})[yn]=function(){return{foo:1}},1!==t[sn](Boolean).foo}))));Be({target:"Array",proto:!0,arity:1,forced:wn},{concat:function(t){var e,n,r,o,i,a=pt(this),c=vn(a,0),u=0;for(e=-1,r=arguments.length;e<r;e++)if(bn(i=-1===e?a:arguments[e]))for(o=we(i),Je(u+o),n=0;n<o;n++,u++)n in i&&Ye(c,u,i[n]);else Je(u+1),Ye(c,u++,i);return c.length=u,c}});var Sn,An=d&&!Rt?Object.defineProperties:function(t,e){Mt(t);for(var n,r=N(e),o=We(e),i=o.length,a=0;i>a;)zt.f(t,n=o[a++],r[n]);return t},On={f:An},En=F("document","documentElement"),Pn="prototype",Tn="script",_n=re("IE_PROTO"),Ln=function(){},jn=function(t){return"<"+Tn+">"+t+"</"+Tn+">"},xn=function(t){t.write(jn("")),t.close();var e=t.parentWindow.Object;return t=null,e},Cn=function(){try{Sn=new ActiveXObject("htmlfile")}catch(t){}var t,e,n;Cn="undefined"!=typeof document?document.domain&&Sn?xn(Sn):(e=jt("iframe"),n="java"+Tn+":",e.style.display="none",En.appendChild(e),e.src=String(n),(t=e.contentWindow.document).open(),t.write(jn("document.F=Object")),t.close(),t.F):xn(Sn);for(var r=Pe.length;r--;)delete Cn[Pn][Pe[r]];return Cn()};oe[_n]=!0;var In=Object.create||function(t,e){var n;return null!==t?(Ln[Pn]=Mt(t),n=new Ln,Ln[Pn]=null,n[_n]=t):n=Cn(),void 0===e?n:On.f(n,e)},Rn=zt.f,kn=At("unscopables"),Nn=Array.prototype;null==Nn[kn]&&Rn(Nn,kn,{configurable:!0,value:In(null)});var Mn,Un,Dn,Hn=function(t){Nn[kn][t]=!0},Bn={},Wn=!p((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),Fn=re("IE_PROTO"),zn=Object,Gn=zn.prototype,qn=Wn?zn.getPrototypeOf:function(t){var e=pt(t);if(ht(e,Fn))return e[Fn];var n=e.constructor;return H(n)&&e instanceof n?n.prototype:e instanceof zn?Gn:null},Vn=At("iterator"),Xn=!1;[].keys&&("next"in(Dn=[].keys())?(Un=qn(qn(Dn)))!==Object.prototype&&(Mn=Un):Xn=!0);var Jn=!W(Mn)||p((function(){var t={};return Mn[Vn].call(t)!==t}));Jn&&(Mn={}),H(Mn[Vn])||pe(Mn,Vn,(function(){return this}));var Yn={IteratorPrototype:Mn,BUGGY_SAFARI_ITERATORS:Xn},Kn=zt.f,Qn=At("toStringTag"),$n=function(t,e,n){t&&!n&&(t=t.prototype),t&&!ht(t,Qn)&&Kn(t,Qn,{configurable:!0,value:e})},Zn=Yn.IteratorPrototype,tr=function(){return this},er=String,nr=TypeError,rr=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{t=function(t,e,n){try{return P(rt(Object.getOwnPropertyDescriptor(t,e)[n]))}catch(t){}}(Object.prototype,"__proto__","set"),t(n,[]),e=n instanceof Array}catch(t){}return function(n,r){return Mt(n),function(t){if("object"==typeof t||H(t))return t;throw nr("Can't set "+er(t)+" as a prototype")}(r),e?t(n,r):n.__proto__=r,n}}():void 0),or=Jt.PROPER,ir=Jt.CONFIGURABLE,ar=Yn.IteratorPrototype,cr=Yn.BUGGY_SAFARI_ITERATORS,ur=At("iterator"),fr="keys",lr="values",sr="entries",pr=function(){return this},dr=function(t,e,n,r,o,i,a){!function(t,e,n,r){var o=e+" Iterator";t.prototype=In(Zn,{next:S(+!r,n)}),$n(t,o,!1),Bn[o]=tr}(n,e,r);var c,u,f,l=function(t){if(t===o&&v)return v;if(!cr&&t in d)return d[t];switch(t){case fr:case lr:case sr:return function(){return new n(this,t)}}return function(){return new n(this)}},s=e+" Iterator",p=!1,d=t.prototype,h=d[ur]||d["@@iterator"]||o&&d[o],v=!cr&&h||l(o),g="Array"==e&&d.entries||h;if(g&&(c=qn(g.call(new t)))!==Object.prototype&&c.next&&(qn(c)!==ar&&(rr?rr(c,ar):H(c[ur])||pe(c,ur,pr)),$n(c,s,!0)),or&&o==lr&&h&&h.name!==lr&&(ir?Gt(d,"name",lr):(p=!0,v=function(){return y(h,this)})),o)if(u={values:l(lr),keys:i?v:l(fr),entries:l(sr)},a)for(f in u)(cr||p||!(f in d))&&pe(d,f,u[f]);else Be({target:e,proto:!0,forced:cr||p},u);return d[ur]!==v&&pe(d,ur,v,{name:o}),Bn[e]=v,u},hr=function(t,e){return{value:t,done:e}},vr=zt.f,yr="Array Iterator",gr=le.set,mr=le.getterFor(yr),br=dr(Array,"Array",(function(t,e){gr(this,{type:yr,target:N(t),index:0,kind:e})}),(function(){var t=mr(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,hr(void 0,!0)):hr("keys"==n?r:"values"==n?e[r]:[r,e[r]],!1)}),"values"),wr=Bn.Arguments=Bn.Array;if(Hn("keys"),Hn("values"),Hn("entries"),d&&"values"!==wr.name)try{vr(wr,"name",{value:"values"})}catch(t){}var Sr=Qe?{}.toString:function(){return"[object "+en(this)+"]"};Qe||pe(Object.prototype,"toString",Sr,{unsafe:!0});var Ar,Or,Er,Pr,Tr="undefined"!=typeof process&&"process"==L(process),_r=At("species"),Lr=TypeError,jr=TypeError,xr=At("species"),Cr=function(t,e){var n,r=Mt(t).constructor;return void 0===r||I(n=Mt(r)[xr])?e:function(t){if(pn(t))return t;throw jr(et(t)+" is not a constructor")}(n)},Ir=Function.prototype,Rr=Ir.apply,kr=Ir.call,Nr="object"==typeof Reflect&&Reflect.apply||(h?kr.bind(Rr):function(){return kr.apply(Rr,arguments)}),Mr=function(t){if("Function"===L(t))return P(t)},Ur=Mr(Mr.bind),Dr=function(t,e){return rt(t),void 0===e?t:h?Ur(t,e):function(){return t.apply(e,arguments)}},Hr=P([].slice),Br=TypeError,Wr=/(?:ipad|iphone|ipod).*applewebkit/i.test(G),Fr=s.setImmediate,zr=s.clearImmediate,Gr=s.process,qr=s.Dispatch,Vr=s.Function,Xr=s.MessageChannel,Jr=s.String,Yr=0,Kr={},Qr="onreadystatechange";p((function(){Ar=s.location}));var $r=function(t){if(ht(Kr,t)){var e=Kr[t];delete Kr[t],e()}},Zr=function(t){return function(){$r(t)}},to=function(t){$r(t.data)},eo=function(t){s.postMessage(Jr(t),Ar.protocol+"//"+Ar.host)};Fr&&zr||(Fr=function(t){!function(t,e){if(t<e)throw Br("Not enough arguments")}(arguments.length,1);var e=H(t)?t:Vr(t),n=Hr(arguments,1);return Kr[++Yr]=function(){Nr(e,void 0,n)},Or(Yr),Yr},zr=function(t){delete Kr[t]},Tr?Or=function(t){Gr.nextTick(Zr(t))}:qr&&qr.now?Or=function(t){qr.now(Zr(t))}:Xr&&!Wr?(Pr=(Er=new Xr).port2,Er.port1.onmessage=to,Or=Dr(Pr.postMessage,Pr)):s.addEventListener&&H(s.postMessage)&&!s.importScripts&&Ar&&"file:"!==Ar.protocol&&!p(eo)?(Or=eo,s.addEventListener("message",to,!1)):Or=Qr in jt("script")?function(t){En.appendChild(jt("script"))[Qr]=function(){En.removeChild(this),$r(t)}}:function(t){setTimeout(Zr(t),0)});var no={set:Fr,clear:zr},ro=function(){this.head=null,this.tail=null};ro.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 oo,io,ao,co,uo,fo=ro,lo=/ipad|iphone|ipod/i.test(G)&&"undefined"!=typeof Pebble,so=/web0s(?!.*chrome)/i.test(G),po=It.f,ho=no.set,vo=s.MutationObserver||s.WebKitMutationObserver,yo=s.document,go=s.process,mo=s.Promise,bo=po(s,"queueMicrotask"),wo=bo&&bo.value;if(!wo){var So=new fo,Ao=function(){var t,e;for(Tr&&(t=go.domain)&&t.exit();e=So.get();)try{e()}catch(t){throw So.head&&oo(),t}t&&t.enter()};Wr||Tr||so||!vo||!yo?!lo&&mo&&mo.resolve?((co=mo.resolve(void 0)).constructor=mo,uo=Dr(co.then,co),oo=function(){uo(Ao)}):Tr?oo=function(){go.nextTick(Ao)}:(ho=Dr(ho,s),oo=function(){ho(Ao)}):(io=!0,ao=yo.createTextNode(""),new vo(Ao).observe(ao,{characterData:!0}),oo=function(){ao.data=io=!io}),wo=function(t){So.head||oo(),So.add(t)}}var Oo=wo,Eo=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},Po=s.Promise,To="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,_o=!To&&!Tr&&"object"==typeof window&&"object"==typeof document;Po&&Po.prototype;var Lo,jo,xo,Co,Io,Ro,ko,No=At("species"),Mo=!1,Uo=H(s.PromiseRejectionEvent),Do=De("Promise",(function(){var t=Zt(Po),e=t!==String(Po);if(!e&&66===Y)return!0;if(!Y||Y<51||!/native code/.test(t)){var n=new Po((function(t){t(1)})),r=function(t){t((function(){}),(function(){}))};if((n.constructor={})[No]=r,!(Mo=n.then((function(){}))instanceof r))return!0}return!e&&(_o||To)&&!Uo})),Ho={CONSTRUCTOR:Do,REJECTION_EVENT:Uo,SUBCLASSING:Mo},Bo=TypeError,Wo=function(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw Bo("Bad Promise constructor");e=t,n=r})),this.resolve=rt(e),this.reject=rt(n)},Fo={f:function(t){return new Wo(t)}},zo=no.set,Go="Promise",qo=Ho.CONSTRUCTOR,Vo=Ho.REJECTION_EVENT,Xo=Ho.SUBCLASSING,Jo=le.getterFor(Go),Yo=le.set,Ko=Po&&Po.prototype,Qo=Po,$o=Ko,Zo=s.TypeError,ti=s.document,ei=s.process,ni=Fo.f,ri=ni,oi=!!(ti&&ti.createEvent&&s.dispatchEvent),ii="unhandledrejection",ai=function(t){var e;return!(!W(t)||!H(e=t.then))&&e},ci=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&&pi(e),e.rejection=1),!0===c?n=i:(l&&l.enter(),n=c(i),l&&(l.exit(),o=!0)),n===t.promise?f(Zo("Promise-chain cycle")):(r=ai(n))?y(r,n,u,f):u(n)):f(i)}catch(t){l&&!o&&l.exit(),f(t)}},ui=function(t,e){t.notified||(t.notified=!0,Oo((function(){for(var n,r=t.reactions;n=r.get();)ci(n,t);t.notified=!1,e&&!t.rejection&&li(t)})))},fi=function(t,e,n){var r,o;oi?((r=ti.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),s.dispatchEvent(r)):r={promise:e,reason:n},!Vo&&(o=s["on"+t])?o(r):t===ii&&function(t,e){try{1==arguments.length?console.error(t):console.error(t,e)}catch(t){}}("Unhandled promise rejection",n)},li=function(t){y(zo,s,(function(){var e,n=t.facade,r=t.value;if(si(t)&&(e=Eo((function(){Tr?ei.emit("unhandledRejection",r,n):fi(ii,n,r)})),t.rejection=Tr||si(t)?2:1,e.error))throw e.value}))},si=function(t){return 1!==t.rejection&&!t.parent},pi=function(t){y(zo,s,(function(){var e=t.facade;Tr?ei.emit("rejectionHandled",e):fi("rejectionhandled",e,t.value)}))},di=function(t,e,n){return function(r){t(e,r,n)}},hi=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,ui(t,!0))},vi=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw Zo("Promise can't be resolved itself");var r=ai(e);r?Oo((function(){var n={done:!1};try{y(r,e,di(vi,n,t),di(hi,n,t))}catch(e){hi(n,e,t)}})):(t.value=e,t.state=1,ui(t,!1))}catch(e){hi({done:!1},e,t)}}};if(qo&&($o=(Qo=function(t){!function(t,e){if(z(e,t))return t;throw Lr("Incorrect invocation")}(this,$o),rt(t),y(Lo,this);var e=Jo(this);try{t(di(vi,e),di(hi,e))}catch(t){hi(e,t)}}).prototype,(Lo=function(t){Yo(this,{type:Go,done:!1,notified:!1,parent:!1,reactions:new fo,rejection:!1,state:0,value:void 0})}).prototype=pe($o,"then",(function(t,e){var n=Jo(this),r=ni(Cr(this,Qo));return n.parent=!0,r.ok=!H(t)||t,r.fail=H(e)&&e,r.domain=Tr?ei.domain:void 0,0==n.state?n.reactions.add(r):Oo((function(){ci(r,n)})),r.promise})),jo=function(){var t=new Lo,e=Jo(t);this.promise=t,this.resolve=di(vi,e),this.reject=di(hi,e)},Fo.f=ni=function(t){return t===Qo||undefined===t?new jo(t):ri(t)},H(Po)&&Ko!==Object.prototype)){xo=Ko.then,Xo||pe(Ko,"then",(function(t,e){var n=this;return new Qo((function(t,e){y(xo,n,t,e)})).then(t,e)}),{unsafe:!0});try{delete Ko.constructor}catch(t){}rr&&rr(Ko,$o)}Be({global:!0,constructor:!0,wrap:!0,forced:qo},{Promise:Qo}),$n(Qo,Go,!1),ko=F(Go),d&&ko&&!ko[_r]&&(Co=ko,Io=_r,(Ro={configurable:!0,get:function(){return this}}).get&&se(Ro.get,Io,{getter:!0}),Ro.set&&se(Ro.set,Io,{setter:!0}),zt.f(Co,Io,Ro));var yi=At("iterator"),gi=Array.prototype,mi=At("iterator"),bi=function(t){if(!I(t))return ot(t,mi)||ot(t,"@@iterator")||Bn[en(t)]},wi=TypeError,Si=function(t,e,n){var r,o;Mt(t);try{if(!(r=ot(t,"return"))){if("throw"===e)throw n;return n}r=y(r,t)}catch(t){o=!0,r=t}if("throw"===e)throw n;if(o)throw r;return Mt(r),n},Ai=TypeError,Oi=function(t,e){this.stopped=t,this.result=e},Ei=Oi.prototype,Pi=function(t,e,n){var r,o,i,a,c,u,f,l,s=n&&n.that,p=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_RECORD),h=!(!n||!n.IS_ITERATOR),v=!(!n||!n.INTERRUPTED),g=Dr(e,s),m=function(t){return r&&Si(r,"normal",t),new Oi(!0,t)},b=function(t){return p?(Mt(t),v?g(t[0],t[1],m):g(t[0],t[1])):v?g(t,m):g(t)};if(d)r=t.iterator;else if(h)r=t;else{if(!(o=bi(t)))throw Ai(et(t)+" is not iterable");if(void 0!==(l=o)&&(Bn.Array===l||gi[yi]===l)){for(i=0,a=we(t);a>i;i++)if((c=b(t[i]))&&z(Ei,c))return c;return new Oi(!1)}r=function(t,e){var n=arguments.length<2?bi(t):e;if(rt(n))return Mt(y(n,t));throw wi(et(t)+" is not iterable")}(t,o)}for(u=d?t.next:r.next;!(f=y(u,r)).done;){try{c=b(f.value)}catch(t){Si(r,"throw",t)}if("object"==typeof c&&c&&z(Ei,c))return c}return new Oi(!1)},Ti=At("iterator"),_i=!1;try{var Li=0,ji={next:function(){return{done:!!Li++}},return:function(){_i=!0}};ji[Ti]=function(){return this},Array.from(ji,(function(){throw 2}))}catch(t){}var xi=Ho.CONSTRUCTOR||!function(t,e){if(!e&&!_i)return!1;var n=!1;try{var r={};r[Ti]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(t){}return n}((function(t){Po.all(t).then(void 0,(function(){}))}));Be({target:"Promise",stat:!0,forced:xi},{all:function(t){var e=this,n=Fo.f(e),r=n.resolve,o=n.reject,i=Eo((function(){var n=rt(e.resolve),i=[],a=0,c=1;Pi(t,(function(t){var u=a++,f=!1;c++,y(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 Ci=Ho.CONSTRUCTOR,Ii=Po&&Po.prototype;if(Be({target:"Promise",proto:!0,forced:Ci,real:!0},{catch:function(t){return this.then(void 0,t)}}),H(Po)){var Ri=F("Promise").prototype.catch;Ii.catch!==Ri&&pe(Ii,"catch",Ri,{unsafe:!0})}Be({target:"Promise",stat:!0,forced:xi},{race:function(t){var e=this,n=Fo.f(e),r=n.reject,o=Eo((function(){var o=rt(e.resolve);Pi(t,(function(t){y(o,e,t).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}}),Be({target:"Promise",stat:!0,forced:Ho.CONSTRUCTOR},{reject:function(t){var e=Fo.f(this);return y(e.reject,void 0,t),e.promise}});var ki=Ho.CONSTRUCTOR;F("Promise"),Be({target:"Promise",stat:!0,forced:ki},{resolve:function(t){return function(t,e){if(Mt(t),W(e)&&e.constructor===t)return e;var n=Fo.f(t);return(0,n.resolve)(e),n.promise}(this,t)}});var Ni=String,Mi=function(t){if("Symbol"===en(t))throw TypeError("Cannot convert a Symbol value to a string");return Ni(t)},Ui=P("".charAt),Di=P("".charCodeAt),Hi=P("".slice),Bi=function(t){return function(e,n){var r,o,i=Mi(k(e)),a=ye(n),c=i.length;return a<0||a>=c?t?"":void 0:(r=Di(i,a))<55296||r>56319||a+1===c||(o=Di(i,a+1))<56320||o>57343?t?Ui(i,a):r:t?Hi(i,a,a+2):o-56320+(r-55296<<10)+65536}},Wi={codeAt:Bi(!1),charAt:Bi(!0)}.charAt,Fi="String Iterator",zi=le.set,Gi=le.getterFor(Fi);dr(String,"String",(function(t){zi(this,{type:Fi,string:Mi(t),index:0})}),(function(){var t,e=Gi(this),n=e.string,r=e.index;return r>=n.length?hr(void 0,!0):(t=Wi(n,r),e.index+=t.length,hr(t,!1))}));var qi={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},Vi=jt("span").classList,Xi=Vi&&Vi.constructor&&Vi.constructor.prototype,Ji=Xi===Object.prototype?void 0:Xi,Yi=At("iterator"),Ki=At("toStringTag"),Qi=br.values,$i=function(t,e){if(t){if(t[Yi]!==Qi)try{Gt(t,Yi,Qi)}catch(e){t[Yi]=Qi}if(t[Ki]||Gt(t,Ki,e),qi[e])for(var n in br)if(t[n]!==br[n])try{Gt(t,n,br[n])}catch(e){t[n]=br[n]}}};for(var Zi in qi)$i(s[Zi]&&s[Zi].prototype,Zi);$i(Ji,"DOMTokenList");var ta=function(){return ta=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},ta.apply(this,arguments)},ea={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,openTagList:["wx-open-launch-app"],canLaunchApp:function(){return!0},canFireErrorLinkDirectly:function(){return!1},launchBtnClick:function(){},launchReady:function(){}};module.exports=function(e){void 0===e&&(e=ea);var n=Object.assign(ea,e),r=n.weixinJsSdkTicket,a=n.launchContainerQuery,c=n.genTagPrefixStr,u=n.launchShowWeixinToBrowserImgUrl,f=n.canShowWeixinToBrowser,l=n.launchShowWeixinToBrowserClassName,s=n.launchBtnClassName,p=n.launchBtnStyle,d=n.launchBtnText,h=n.launchErrorLink,v=n.wexinServiceAccountAppId,y=n.openPlatformMobileAppId,g=n.canContinuousUpdating,m=n.onMenuShareTimelineOptions,b=n.onMenuShareAppMessageOptions,w=n.isConClosed,S=n.isWxDebug,A=n.openTagList,O=n.canLaunchApp,E=n.canFireErrorLinkDirectly,P=n.launchBtnClick,T=n.launchReady,_=n.serviceAccountAppId,L=n.extInfo,j=window.wx;j||console.error("Launch App: wx is not found");var x=function(){},C=t.genCustomConsole("LaunchCon:",{isClosed:w});C.log("Launch App");var I={title:"",link:"",imgUrl:"",success:function(){},cancel:function(){}},R={title:"",desc:"",link:"",imgUrl:"",type:"",dataUrl:"",success:function(){},cancel:function(){}},k={title:document.title,link:location.href};I=ta(ta({},I),k),R=ta(ta({},R),k);var N=function(t,e,n){return void 0===t&&(t=""),void 0===e&&(e=""),void 0===n&&(n="button"),"<style>.".concat(s,"{")+"opacity: 0;width: 100%;height: 100%;backgroud: transparent;color: #300f54;border: none;box-sizing: border-box;text-align: center;vertical-align: middle;"+p+e+"}</style>"+"<".concat(n,' class="').concat(s,'"')+(t&&"button"===n?' onclick="'.concat(t,'"'):"")+(t&&"a"===n?' target="_self" href="'.concat(t,'"'):"")+">"+d+"</".concat(n,">")},M=N();function U(){t.addStyle('.mazey-launch-app-mask{position:fixed;top:0;right:0;bottom:0;left:0;background-color:rgba(0, 0, 0, .5);text-align:right;font-size:0;white-space:nowrap;overflow:auto;z-index:999;}.mazey-launch-app-img{display:inline-block;vertical-align:middle;text-align:left;font-size:14px;white-space:normal;width:50vw;margin:0.5rem 0.5rem 0 0;}.mazey-launch-app-img:after{content:"";display:inline-block;height:100%;vertical-align:middle;}',{id:"mazey-launch-app-mask-style"}),window.LAUNCH_APP_HIDE_WEIXIN_BROWSER||(window.LAUNCH_APP_HIDE_WEIXIN_BROWSER=function(){o.default(".mazey-launch-app-mask").hide()}),0===o.default(".mazey-launch-app-mask").length?o.default("body").append("<div class='mazey-launch-app-mask' onclick='window.LAUNCH_APP_HIDE_WEIXIN_BROWSER()'><img "+"class='mazey-launch-app-img ".concat(l,"' ")+"src='".concat(u,"' ")+"alt='Launch App' /></div>"):o.default(".mazey-launch-app-mask").show()}function D(){C.log("renderWeixinLaunchTemplate"),!_&&v&&(console.warn("wexinServiceAccountAppId will be deprecated, use serviceAccountAppId instead."),_=v),function(e,n){void 0===e&&(e=""),void 0===n&&(n=""),C.log("renderWXOpenLaunchApp"),Promise.all([Promise.resolve(r||window.LAUNCH_APP_WEIXIN_JS_SDK_TICKET||t.getQueryParam("weixinJsSdkTicket")||""),Promise.resolve(i.default)]).then((function(r){C.log("allRes",r);var i=r[0],u=r[1],l=t.generateRndNum(7),s=i,p=(new Date).getTime(),d=u("jsapi_ticket="+s+"&noncestr="+l+"×tamp="+p+"&url="+location.href);return j.config({debug:S,appId:e,timestamp:p,nonceStr:l,signature:d,jsApiList:["showOptionMenu","onMenuShareTimeline","onMenuShareAppMessage"],openTagList:A}),j.ready((function(){if(b&&(C.log("onMenuShareAppMessageOptions",b),j.onMenuShareAppMessage(b)),window.LAUNCH_APP_SHARE_APP_MESSAGE=function(t){t=ta(ta({},R),t),C.log("window LAUNCH_APP_SHARE_APP_MESSAGE",t),j.onMenuShareAppMessage(t)},m&&(C.log("onMenuShareTimelineOptions",m),j.onMenuShareTimeline(m)),window.LAUNCH_APP_SHARE_TIMELINE=function(t){t=ta(ta({},I),t),C.log("window LAUNCH_APP_SHARE_TIMELINE",t),j.onMenuShareTimeline(t)},n){window.LAUNCH_APP_READY=!0,T&&T();var t=function(){var t=o.default(a);C.log("containers",a,t,t.length),t.length>0&&t.each((function(t,e){var r=o.default(e).attr("data-launch-app-key");if(!r){var i=o.default(e).parents("[data-launch-app-key]:eq(0)");i.length>0&&(r=i.attr("data-launch-app-key"),C.log("keyEle",i,r))}r||(r=String(t));var a="mazey-launch-app-tag-".concat(r),u=o.default(".".concat(a," wx-open-launch-app")),l=o.default(e).attr("data-launch-app-ext-info");if(!l){var s=o.default(e).parents("[data-launch-app-ext-info]:eq(0)");s.length>0&&(l=s.attr("data-launch-app-ext-info"),C.log("eleExtInfoEle parents",s,l))}l&&(L=l);var p=o.default(e).attr("data-launch-app-error-link");if(!p){var d=o.default(e).parents("[data-launch-app-error-link]:eq(0)");d.length>0&&(p=d.attr("data-launch-app-error-link"),C.log("eleErrorLinkEle parents",d,p))}var v=h;p&&(v=p),0===u.length&&(o.default(e).addClass(a),C.log("success:",a),function(t){var e=c,r=e+t,i="<wx-open-launch-app id='"+r+"' appid='"+n+"' extinfo='".concat(L)+"' style='z-index:99;position:absolute;width:100%;height:100%;opacity:1;background:transparent;overflow:hidden;left:0;'><script type='text/wxtag-template'>"+M+"<\/script></wx-open-launch-app>";o.default("."+t+":eq(0)").append(i);var a=document.getElementById(r);a&&(a.addEventListener("ready",(function(t){C.log("ready event",t)})),a.addEventListener("launch",(function(t){C.log("launch event",t),t.detail&&t.detail.extInfo&&C.log("launch extInfo",t.detail.extInfo)})),a.addEventListener("error",(function(t){C.error(t.detail),o.default("[id^='"+e+"']").hide(),f&&U(),v&&(C.log("realErrorLink",v),location.href=v)})),a.addEventListener("click",(function(t){C.log("click event",t),P&&P()})))}(a))}))};t(),x=t}else C.log("openPlatformMobileAppId is required for weixin launch app")})),j.error((function(t){C.error(t)})),"success:launch_app"})).catch((function(t){C.error(t)}))}(_,y)}function H(t){if(C.log("appUpdated",t),!window.LAUNCH_APP_LOAD&&O(t)&&(D(),window.LAUNCH_APP_LOAD=!0),g&&window.LAUNCH_APP_LOAD&&O(t)&&x(),E()){var e=o.default(a);e.length>0&&e.each((function(t,e){var n=o.default(e).children("."+s);if(!n||!n.length){var r=o.default(e).attr("data-launch-app-error-link");if(!r){var i=o.default(e).parents("[data-launch-app-error-link]:eq(0)");i.length>0&&(r=i.attr("data-launch-app-error-link"))}if(r&&"string"==typeof r&&r.length){var a=N(r,"position:absolute;left:0;z-index:999;","a");o.default(e).append(a)}}}))}}function B(){C.log("appBeforeDestroy",B),window.LAUNCH_APP_LOAD=null,window.LAUNCH_APP_HIDE_WEIXIN_BROWSER=null}return window.LAUNCH_APP_UPDATE=H,window.LAUNCH_APP_BEFORE_DESTROY=B,window.LAUNCH_APP_SHOW_WEIXIN_TO_BROWSER=U,{LAUNCH_APP_UPDATE:H,LAUNCH_APP_BEFORE_DESTROY:B,LAUNCH_APP_SHOW_WEIXIN_TO_BROWSER:U,LAUNCH_APP_SHARE_TIMELINE:function(t){C.log("opt",t)},LAUNCH_APP_SHARE_APP_MESSAGE:function(t){C.log("opt",t)},start:H,update:H,destroy:B}};
|
package/lib/index.d.ts
CHANGED
|
@@ -23,6 +23,7 @@ declare const _default: (options?: {
|
|
|
23
23
|
onMenuShareAppMessageOptions?: MenuShareAppMessageOptions | undefined;
|
|
24
24
|
isConClosed?: boolean | undefined;
|
|
25
25
|
isWxDebug?: boolean | undefined;
|
|
26
|
+
openTagList?: string[] | undefined;
|
|
26
27
|
canLaunchApp?: ((data: any) => boolean) | undefined;
|
|
27
28
|
canFireErrorLinkDirectly?: (() => boolean) | undefined;
|
|
28
29
|
launchBtnClick?: (() => void) | 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":"AAqCA;;;;GAIG;;;;;;;;;;;;;;;;;;;;;;2BAuBuB,GAAG,KAAK,OAAO;sCACJ,OAAO;4BACjB,IAAI;yBACP,IAAI;MAEzB,MAAM;AA3BT,wBA4eE"}
|
package/lib/index.esm.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* mazey-wechat-launch-app v2.
|
|
3
|
-
* (c) 2018-
|
|
2
|
+
* mazey-wechat-launch-app v2.3.0 https://www.npmjs.com/package/mazey-wechat-launch-app
|
|
3
|
+
* (c) 2018-2025 Cheng
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
|
-
import{genCustomConsole as t,addStyle as e,generateRndNum as n}from"mazey";import r from"jquery";import o from"js-sha1";var i="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function a(t,e){return t(e={exports:{}},e.exports),e.exports}var c,u,f=function(t){return t&&t.Math==Math&&t},s=f("object"==typeof globalThis&&globalThis)||f("object"==typeof window&&window)||f("object"==typeof self&&self)||f("object"==typeof i&&i)||function(){return this}()||Function("return this")(),l=function(t){try{return!!t()}catch(t){return!0}},p=!l((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),h=!l((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),d=Function.prototype.call,v=h?d.bind(d):function(){return d.apply(d,arguments)},y={}.propertyIsEnumerable,g=Object.getOwnPropertyDescriptor,m=g&&!y.call({1:2},1)?function(t){var e=g(this,t);return!!e&&e.enumerable}:y,b={f:m},w=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},S=Function.prototype,A=S.call,O=h&&S.bind.bind(A,A),E=h?O:function(t){return function(){return A.apply(t,arguments)}},P=E({}.toString),T=E("".slice),_=function(t){return T(P(t),8,-1)},j=Object,L=E("".split),x=l((function(){return!j("z").propertyIsEnumerable(0)}))?function(t){return"String"==_(t)?L(t,""):j(t)}:j,C=function(t){return null==t},I=TypeError,R=function(t){if(C(t))throw I("Can't call method on "+t);return t},k=function(t){return x(R(t))},N="object"==typeof document&&document.all,M={all:N,IS_HTMLDDA:void 0===N&&void 0!==N},U=M.all,D=M.IS_HTMLDDA?function(t){return"function"==typeof t||t===U}:function(t){return"function"==typeof t},H=M.all,B=M.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:D(t)||t===H}:function(t){return"object"==typeof t?null!==t:D(t)},W=function(t,e){return arguments.length<2?(n=s[t],D(n)?n:void 0):s[t]&&s[t][e];var n},F=E({}.isPrototypeOf),z="undefined"!=typeof navigator&&String(navigator.userAgent)||"",G=s.process,q=s.Deno,V=G&&G.versions||q&&q.version,X=V&&V.v8;X&&(u=(c=X.split("."))[0]>0&&c[0]<4?1:+(c[0]+c[1])),!u&&z&&(!(c=z.match(/Edge\/(\d+)/))||c[1]>=74)&&(c=z.match(/Chrome\/(\d+)/))&&(u=+c[1]);var Y=u,J=!!Object.getOwnPropertySymbols&&!l((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&Y&&Y<41})),K=J&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Q=Object,$=K?function(t){return"symbol"==typeof t}:function(t){var e=W("Symbol");return D(e)&&F(e.prototype,Q(t))},Z=String,tt=function(t){try{return Z(t)}catch(t){return"Object"}},et=TypeError,nt=function(t){if(D(t))return t;throw et(tt(t)+" is not a function")},rt=function(t,e){var n=t[e];return C(n)?void 0:nt(n)},ot=TypeError,it=Object.defineProperty,at=function(t,e){try{it(s,t,{value:e,configurable:!0,writable:!0})}catch(n){s[t]=e}return e},ct="__core-js_shared__",ut=s[ct]||at(ct,{}),ft=a((function(t){(t.exports=function(t,e){return ut[t]||(ut[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"})})),st=Object,lt=function(t){return st(R(t))},pt=E({}.hasOwnProperty),ht=Object.hasOwn||function(t,e){return pt(lt(t),e)},dt=0,vt=Math.random(),yt=E(1..toString),gt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+yt(++dt+vt,36)},mt=s.Symbol,bt=ft("wks"),wt=K?mt.for||mt:mt&&mt.withoutSetter||gt,St=function(t){return ht(bt,t)||(bt[t]=J&&ht(mt,t)?mt[t]:wt("Symbol."+t)),bt[t]},At=TypeError,Ot=St("toPrimitive"),Et=function(t,e){if(!B(t)||$(t))return t;var n,r=rt(t,Ot);if(r){if(void 0===e&&(e="default"),n=v(r,t,e),!B(n)||$(n))return n;throw At("Can't convert object to primitive value")}return void 0===e&&(e="number"),function(t,e){var n,r;if("string"===e&&D(n=t.toString)&&!B(r=v(n,t)))return r;if(D(n=t.valueOf)&&!B(r=v(n,t)))return r;if("string"!==e&&D(n=t.toString)&&!B(r=v(n,t)))return r;throw ot("Can't convert object to primitive value")}(t,e)},Pt=function(t){var e=Et(t,"string");return $(e)?e:e+""},Tt=s.document,_t=B(Tt)&&B(Tt.createElement),jt=function(t){return _t?Tt.createElement(t):{}},Lt=!p&&!l((function(){return 7!=Object.defineProperty(jt("div"),"a",{get:function(){return 7}}).a})),xt=Object.getOwnPropertyDescriptor,Ct={f:p?xt:function(t,e){if(t=k(t),e=Pt(e),Lt)try{return xt(t,e)}catch(t){}if(ht(t,e))return w(!v(b.f,t,e),t[e])}},It=p&&l((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Rt=String,kt=TypeError,Nt=function(t){if(B(t))return t;throw kt(Rt(t)+" is not an object")},Mt=TypeError,Ut=Object.defineProperty,Dt=Object.getOwnPropertyDescriptor,Ht="enumerable",Bt="configurable",Wt="writable",Ft={f:p?It?function(t,e,n){if(Nt(t),e=Pt(e),Nt(n),"function"==typeof t&&"prototype"===e&&"value"in n&&Wt in n&&!n[Wt]){var r=Dt(t,e);r&&r[Wt]&&(t[e]=n.value,n={configurable:Bt in n?n[Bt]:r[Bt],enumerable:Ht in n?n[Ht]:r[Ht],writable:!1})}return Ut(t,e,n)}:Ut:function(t,e,n){if(Nt(t),e=Pt(e),Nt(n),Lt)try{return Ut(t,e,n)}catch(t){}if("get"in n||"set"in n)throw Mt("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},zt=p?function(t,e,n){return Ft.f(t,e,w(1,n))}:function(t,e,n){return t[e]=n,t},Gt=Function.prototype,qt=p&&Object.getOwnPropertyDescriptor,Vt=ht(Gt,"name"),Xt={EXISTS:Vt,PROPER:Vt&&"something"===function(){}.name,CONFIGURABLE:Vt&&(!p||p&&qt(Gt,"name").configurable)},Yt=E(Function.toString);D(ut.inspectSource)||(ut.inspectSource=function(t){return Yt(t)});var Jt,Kt,Qt,$t=ut.inspectSource,Zt=s.WeakMap,te=D(Zt)&&/native code/.test(String(Zt)),ee=ft("keys"),ne=function(t){return ee[t]||(ee[t]=gt(t))},re={},oe="Object already initialized",ie=s.TypeError,ae=s.WeakMap;if(te||ut.state){var ce=ut.state||(ut.state=new ae);ce.get=ce.get,ce.has=ce.has,ce.set=ce.set,Jt=function(t,e){if(ce.has(t))throw ie(oe);return e.facade=t,ce.set(t,e),e},Kt=function(t){return ce.get(t)||{}},Qt=function(t){return ce.has(t)}}else{var ue=ne("state");re[ue]=!0,Jt=function(t,e){if(ht(t,ue))throw ie(oe);return e.facade=t,zt(t,ue,e),e},Kt=function(t){return ht(t,ue)?t[ue]:{}},Qt=function(t){return ht(t,ue)}}var fe={set:Jt,get:Kt,has:Qt,enforce:function(t){return Qt(t)?Kt(t):Jt(t,{})},getterFor:function(t){return function(e){var n;if(!B(e)||(n=Kt(e)).type!==t)throw ie("Incompatible receiver, "+t+" required");return n}}},se=a((function(t){var e=Xt.CONFIGURABLE,n=fe.enforce,r=fe.get,o=String,i=Object.defineProperty,a=E("".slice),c=E("".replace),u=E([].join),f=p&&!l((function(){return 8!==i((function(){}),"length",{value:8}).length})),s=String(String).split("String"),h=t.exports=function(t,r,l){"Symbol("===a(o(r),0,7)&&(r="["+c(o(r),/^Symbol\(([^)]*)\)/,"$1")+"]"),l&&l.getter&&(r="get "+r),l&&l.setter&&(r="set "+r),(!ht(t,"name")||e&&t.name!==r)&&(p?i(t,"name",{value:r,configurable:!0}):t.name=r),f&&l&&ht(l,"arity")&&t.length!==l.arity&&i(t,"length",{value:l.arity});try{l&&ht(l,"constructor")&&l.constructor?p&&i(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var h=n(t);return ht(h,"source")||(h.source=u(s,"string"==typeof r?r:"")),t};Function.prototype.toString=h((function(){return D(this)&&r(this).source||$t(this)}),"toString")})),le=function(t,e,n,r){r||(r={});var o=r.enumerable,i=void 0!==r.name?r.name:e;if(D(n)&&se(n,i,r),r.global)o?t[e]=n:at(e,n);else{try{r.unsafe?t[e]&&(o=!0):delete t[e]}catch(t){}o?t[e]=n:Ft.f(t,e,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return t},pe=Math.ceil,he=Math.floor,de=Math.trunc||function(t){var e=+t;return(e>0?he:pe)(e)},ve=function(t){var e=+t;return e!=e||0===e?0:de(e)},ye=Math.max,ge=Math.min,me=Math.min,be=function(t){return(e=t.length)>0?me(ve(e),9007199254740991):0;var e},we=function(t){return function(e,n,r){var o,i=k(e),a=be(i),c=function(t,e){var n=ve(t);return n<0?ye(n+e,0):ge(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}},Se={includes:we(!0),indexOf:we(!1)}.indexOf,Ae=E([].push),Oe=function(t,e){var n,r=k(t),o=0,i=[];for(n in r)!ht(re,n)&&ht(r,n)&&Ae(i,n);for(;e.length>o;)ht(r,n=e[o++])&&(~Se(i,n)||Ae(i,n));return i},Ee=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Pe=Ee.concat("length","prototype"),Te={f:Object.getOwnPropertyNames||function(t){return Oe(t,Pe)}},_e={f:Object.getOwnPropertySymbols},je=E([].concat),Le=W("Reflect","ownKeys")||function(t){var e=Te.f(Nt(t)),n=_e.f;return n?je(e,n(t)):e},xe=function(t,e,n){for(var r=Le(e),o=Ft.f,i=Ct.f,a=0;a<r.length;a++){var c=r[a];ht(t,c)||n&&ht(n,c)||o(t,c,i(e,c))}},Ce=/#|\.prototype\./,Ie=function(t,e){var n=ke[Re(t)];return n==Me||n!=Ne&&(D(e)?l(e):!!e)},Re=Ie.normalize=function(t){return String(t).replace(Ce,".").toLowerCase()},ke=Ie.data={},Ne=Ie.NATIVE="N",Me=Ie.POLYFILL="P",Ue=Ie,De=Ct.f,He=function(t,e){var n,r,o,i,a,c=t.target,u=t.global,f=t.stat;if(n=u?s:f?s[c]||at(c,{}):(s[c]||{}).prototype)for(r in e){if(i=e[r],o=t.dontCallGetSet?(a=De(n,r))&&a.value:n[r],!Ue(u?r:c+(f?".":"#")+r,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;xe(i,o)}(t.sham||o&&o.sham)&&zt(i,"sham",!0),le(n,r,i,t)}},Be=Object.keys||function(t){return Oe(t,Ee)},We=Object.assign,Fe=Object.defineProperty,ze=E([].concat),Ge=!We||l((function(){if(p&&1!==We({b:1},We(Fe({},"a",{enumerable:!0,get:function(){Fe(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!=We({},t)[n]||Be(We({},e)).join("")!=r}))?function(t,e){for(var n=lt(t),r=arguments.length,o=1,i=_e.f,a=b.f;r>o;)for(var c,u=x(arguments[o++]),f=i?ze(Be(u),i(u)):Be(u),s=f.length,l=0;s>l;)c=f[l++],p&&!v(a,u,c)||(n[c]=u[c]);return n}:We;He({target:"Object",stat:!0,arity:2,forced:Object.assign!==Ge},{assign:Ge});var qe=Array.isArray||function(t){return"Array"==_(t)},Ve=TypeError,Xe=function(t){if(t>9007199254740991)throw Ve("Maximum allowed index exceeded");return t},Ye=function(t,e,n){var r=Pt(e);r in t?Ft.f(t,r,w(0,n)):t[r]=n},Je={};Je[St("toStringTag")]="z";var Ke="[object z]"===String(Je),Qe=St("toStringTag"),$e=Object,Ze="Arguments"==_(function(){return arguments}()),tn=Ke?_: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=$e(t),Qe))?n:Ze?_(e):"Object"==(r=_(e))&&D(e.callee)?"Arguments":r},en=function(){},nn=[],rn=W("Reflect","construct"),on=/^\s*(?:class|function)\b/,an=E(on.exec),cn=!on.exec(en),un=function(t){if(!D(t))return!1;try{return rn(en,nn,t),!0}catch(t){return!1}},fn=function(t){if(!D(t))return!1;switch(tn(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return cn||!!an(on,$t(t))}catch(t){return!0}};fn.sham=!0;var sn,ln=!rn||l((function(){var t;return un(un.call)||!un(Object)||!un((function(){t=!0}))||t}))?fn:un,pn=St("species"),hn=Array,dn=function(t,e){return new(function(t){var e;return qe(t)&&(e=t.constructor,(ln(e)&&(e===hn||qe(e.prototype))||B(e)&&null===(e=e[pn]))&&(e=void 0)),void 0===e?hn:e}(t))(0===e?0:e)},vn=St("species"),yn=St("isConcatSpreadable"),gn=Y>=51||!l((function(){var t=[];return t[yn]=!1,t.concat()[0]!==t})),mn=function(t){if(!B(t))return!1;var e=t[yn];return void 0!==e?!!e:qe(t)},bn=!(gn&&(sn="concat",Y>=51||!l((function(){var t=[];return(t.constructor={})[vn]=function(){return{foo:1}},1!==t[sn](Boolean).foo}))));He({target:"Array",proto:!0,arity:1,forced:bn},{concat:function(t){var e,n,r,o,i,a=lt(this),c=dn(a,0),u=0;for(e=-1,r=arguments.length;e<r;e++)if(mn(i=-1===e?a:arguments[e]))for(o=be(i),Xe(u+o),n=0;n<o;n++,u++)n in i&&Ye(c,u,i[n]);else Xe(u+1),Ye(c,u++,i);return c.length=u,c}});var wn,Sn=p&&!It?Object.defineProperties:function(t,e){Nt(t);for(var n,r=k(e),o=Be(e),i=o.length,a=0;i>a;)Ft.f(t,n=o[a++],r[n]);return t},An={f:Sn},On=W("document","documentElement"),En="prototype",Pn="script",Tn=ne("IE_PROTO"),_n=function(){},jn=function(t){return"<"+Pn+">"+t+"</"+Pn+">"},Ln=function(t){t.write(jn("")),t.close();var e=t.parentWindow.Object;return t=null,e},xn=function(){try{wn=new ActiveXObject("htmlfile")}catch(t){}var t,e,n;xn="undefined"!=typeof document?document.domain&&wn?Ln(wn):(e=jt("iframe"),n="java"+Pn+":",e.style.display="none",On.appendChild(e),e.src=String(n),(t=e.contentWindow.document).open(),t.write(jn("document.F=Object")),t.close(),t.F):Ln(wn);for(var r=Ee.length;r--;)delete xn[En][Ee[r]];return xn()};re[Tn]=!0;var Cn=Object.create||function(t,e){var n;return null!==t?(_n[En]=Nt(t),n=new _n,_n[En]=null,n[Tn]=t):n=xn(),void 0===e?n:An.f(n,e)},In=Ft.f,Rn=St("unscopables"),kn=Array.prototype;null==kn[Rn]&&In(kn,Rn,{configurable:!0,value:Cn(null)});var Nn,Mn,Un,Dn=function(t){kn[Rn][t]=!0},Hn={},Bn=!l((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),Wn=ne("IE_PROTO"),Fn=Object,zn=Fn.prototype,Gn=Bn?Fn.getPrototypeOf:function(t){var e=lt(t);if(ht(e,Wn))return e[Wn];var n=e.constructor;return D(n)&&e instanceof n?n.prototype:e instanceof Fn?zn:null},qn=St("iterator"),Vn=!1;[].keys&&("next"in(Un=[].keys())?(Mn=Gn(Gn(Un)))!==Object.prototype&&(Nn=Mn):Vn=!0);var Xn=!B(Nn)||l((function(){var t={};return Nn[qn].call(t)!==t}));Xn&&(Nn={}),D(Nn[qn])||le(Nn,qn,(function(){return this}));var Yn={IteratorPrototype:Nn,BUGGY_SAFARI_ITERATORS:Vn},Jn=Ft.f,Kn=St("toStringTag"),Qn=function(t,e,n){t&&!n&&(t=t.prototype),t&&!ht(t,Kn)&&Jn(t,Kn,{configurable:!0,value:e})},$n=Yn.IteratorPrototype,Zn=function(){return this},tr=String,er=TypeError,nr=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{t=function(t,e,n){try{return E(nt(Object.getOwnPropertyDescriptor(t,e)[n]))}catch(t){}}(Object.prototype,"__proto__","set"),t(n,[]),e=n instanceof Array}catch(t){}return function(n,r){return Nt(n),function(t){if("object"==typeof t||D(t))return t;throw er("Can't set "+tr(t)+" as a prototype")}(r),e?t(n,r):n.__proto__=r,n}}():void 0),rr=Xt.PROPER,or=Xt.CONFIGURABLE,ir=Yn.IteratorPrototype,ar=Yn.BUGGY_SAFARI_ITERATORS,cr=St("iterator"),ur="keys",fr="values",sr="entries",lr=function(){return this},pr=function(t,e,n,r,o,i,a){!function(t,e,n,r){var o=e+" Iterator";t.prototype=Cn($n,{next:w(+!r,n)}),Qn(t,o,!1),Hn[o]=Zn}(n,e,r);var c,u,f,s=function(t){if(t===o&&y)return y;if(!ar&&t in h)return h[t];switch(t){case ur:case fr:case sr:return function(){return new n(this,t)}}return function(){return new n(this)}},l=e+" Iterator",p=!1,h=t.prototype,d=h[cr]||h["@@iterator"]||o&&h[o],y=!ar&&d||s(o),g="Array"==e&&h.entries||d;if(g&&(c=Gn(g.call(new t)))!==Object.prototype&&c.next&&(Gn(c)!==ir&&(nr?nr(c,ir):D(c[cr])||le(c,cr,lr)),Qn(c,l,!0)),rr&&o==fr&&d&&d.name!==fr&&(or?zt(h,"name",fr):(p=!0,y=function(){return v(d,this)})),o)if(u={values:s(fr),keys:i?y:s(ur),entries:s(sr)},a)for(f in u)(ar||p||!(f in h))&&le(h,f,u[f]);else He({target:e,proto:!0,forced:ar||p},u);return h[cr]!==y&&le(h,cr,y,{name:o}),Hn[e]=y,u},hr=function(t,e){return{value:t,done:e}},dr=Ft.f,vr="Array Iterator",yr=fe.set,gr=fe.getterFor(vr),mr=pr(Array,"Array",(function(t,e){yr(this,{type:vr,target:k(t),index:0,kind:e})}),(function(){var t=gr(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,hr(void 0,!0)):hr("keys"==n?r:"values"==n?e[r]:[r,e[r]],!1)}),"values"),br=Hn.Arguments=Hn.Array;if(Dn("keys"),Dn("values"),Dn("entries"),p&&"values"!==br.name)try{dr(br,"name",{value:"values"})}catch(t){}var wr=Ke?{}.toString:function(){return"[object "+tn(this)+"]"};Ke||le(Object.prototype,"toString",wr,{unsafe:!0});var Sr,Ar,Or,Er,Pr="undefined"!=typeof process&&"process"==_(process),Tr=St("species"),_r=TypeError,jr=TypeError,Lr=St("species"),xr=function(t,e){var n,r=Nt(t).constructor;return void 0===r||C(n=Nt(r)[Lr])?e:function(t){if(ln(t))return t;throw jr(tt(t)+" is not a constructor")}(n)},Cr=Function.prototype,Ir=Cr.apply,Rr=Cr.call,kr="object"==typeof Reflect&&Reflect.apply||(h?Rr.bind(Ir):function(){return Rr.apply(Ir,arguments)}),Nr=function(t){if("Function"===_(t))return E(t)},Mr=Nr(Nr.bind),Ur=function(t,e){return nt(t),void 0===e?t:h?Mr(t,e):function(){return t.apply(e,arguments)}},Dr=E([].slice),Hr=TypeError,Br=/(?:ipad|iphone|ipod).*applewebkit/i.test(z),Wr=s.setImmediate,Fr=s.clearImmediate,zr=s.process,Gr=s.Dispatch,qr=s.Function,Vr=s.MessageChannel,Xr=s.String,Yr=0,Jr={},Kr="onreadystatechange";l((function(){Sr=s.location}));var Qr=function(t){if(ht(Jr,t)){var e=Jr[t];delete Jr[t],e()}},$r=function(t){return function(){Qr(t)}},Zr=function(t){Qr(t.data)},to=function(t){s.postMessage(Xr(t),Sr.protocol+"//"+Sr.host)};Wr&&Fr||(Wr=function(t){!function(t,e){if(t<e)throw Hr("Not enough arguments")}(arguments.length,1);var e=D(t)?t:qr(t),n=Dr(arguments,1);return Jr[++Yr]=function(){kr(e,void 0,n)},Ar(Yr),Yr},Fr=function(t){delete Jr[t]},Pr?Ar=function(t){zr.nextTick($r(t))}:Gr&&Gr.now?Ar=function(t){Gr.now($r(t))}:Vr&&!Br?(Er=(Or=new Vr).port2,Or.port1.onmessage=Zr,Ar=Ur(Er.postMessage,Er)):s.addEventListener&&D(s.postMessage)&&!s.importScripts&&Sr&&"file:"!==Sr.protocol&&!l(to)?(Ar=to,s.addEventListener("message",Zr,!1)):Ar=Kr in jt("script")?function(t){On.appendChild(jt("script"))[Kr]=function(){On.removeChild(this),Qr(t)}}:function(t){setTimeout($r(t),0)});var eo={set:Wr,clear:Fr},no=function(){this.head=null,this.tail=null};no.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 ro,oo,io,ao,co,uo=no,fo=/ipad|iphone|ipod/i.test(z)&&"undefined"!=typeof Pebble,so=/web0s(?!.*chrome)/i.test(z),lo=Ct.f,po=eo.set,ho=s.MutationObserver||s.WebKitMutationObserver,vo=s.document,yo=s.process,go=s.Promise,mo=lo(s,"queueMicrotask"),bo=mo&&mo.value;if(!bo){var wo=new uo,So=function(){var t,e;for(Pr&&(t=yo.domain)&&t.exit();e=wo.get();)try{e()}catch(t){throw wo.head&&ro(),t}t&&t.enter()};Br||Pr||so||!ho||!vo?!fo&&go&&go.resolve?((ao=go.resolve(void 0)).constructor=go,co=Ur(ao.then,ao),ro=function(){co(So)}):Pr?ro=function(){yo.nextTick(So)}:(po=Ur(po,s),ro=function(){po(So)}):(oo=!0,io=vo.createTextNode(""),new ho(So).observe(io,{characterData:!0}),ro=function(){io.data=oo=!oo}),bo=function(t){wo.head||ro(),wo.add(t)}}var Ao=bo,Oo=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},Eo=s.Promise,Po="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,To=!Po&&!Pr&&"object"==typeof window&&"object"==typeof document;Eo&&Eo.prototype;var _o,jo,Lo,xo,Co,Io,Ro,ko=St("species"),No=!1,Mo=D(s.PromiseRejectionEvent),Uo=Ue("Promise",(function(){var t=$t(Eo),e=t!==String(Eo);if(!e&&66===Y)return!0;if(!Y||Y<51||!/native code/.test(t)){var n=new Eo((function(t){t(1)})),r=function(t){t((function(){}),(function(){}))};if((n.constructor={})[ko]=r,!(No=n.then((function(){}))instanceof r))return!0}return!e&&(To||Po)&&!Mo})),Do={CONSTRUCTOR:Uo,REJECTION_EVENT:Mo,SUBCLASSING:No},Ho=TypeError,Bo=function(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw Ho("Bad Promise constructor");e=t,n=r})),this.resolve=nt(e),this.reject=nt(n)},Wo={f:function(t){return new Bo(t)}},Fo=eo.set,zo="Promise",Go=Do.CONSTRUCTOR,qo=Do.REJECTION_EVENT,Vo=Do.SUBCLASSING,Xo=fe.getterFor(zo),Yo=fe.set,Jo=Eo&&Eo.prototype,Ko=Eo,Qo=Jo,$o=s.TypeError,Zo=s.document,ti=s.process,ei=Wo.f,ni=ei,ri=!!(Zo&&Zo.createEvent&&s.dispatchEvent),oi="unhandledrejection",ii=function(t){var e;return!(!B(t)||!D(e=t.then))&&e},ai=function(t,e){var n,r,o,i=e.value,a=1==e.state,c=a?t.ok:t.fail,u=t.resolve,f=t.reject,s=t.domain;try{c?(a||(2===e.rejection&&li(e),e.rejection=1),!0===c?n=i:(s&&s.enter(),n=c(i),s&&(s.exit(),o=!0)),n===t.promise?f($o("Promise-chain cycle")):(r=ii(n))?v(r,n,u,f):u(n)):f(i)}catch(t){s&&!o&&s.exit(),f(t)}},ci=function(t,e){t.notified||(t.notified=!0,Ao((function(){for(var n,r=t.reactions;n=r.get();)ai(n,t);t.notified=!1,e&&!t.rejection&&fi(t)})))},ui=function(t,e,n){var r,o;ri?((r=Zo.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),s.dispatchEvent(r)):r={promise:e,reason:n},!qo&&(o=s["on"+t])?o(r):t===oi&&function(t,e){try{1==arguments.length?console.error(t):console.error(t,e)}catch(t){}}("Unhandled promise rejection",n)},fi=function(t){v(Fo,s,(function(){var e,n=t.facade,r=t.value;if(si(t)&&(e=Oo((function(){Pr?ti.emit("unhandledRejection",r,n):ui(oi,n,r)})),t.rejection=Pr||si(t)?2:1,e.error))throw e.value}))},si=function(t){return 1!==t.rejection&&!t.parent},li=function(t){v(Fo,s,(function(){var e=t.facade;Pr?ti.emit("rejectionHandled",e):ui("rejectionhandled",e,t.value)}))},pi=function(t,e,n){return function(r){t(e,r,n)}},hi=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,ci(t,!0))},di=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw $o("Promise can't be resolved itself");var r=ii(e);r?Ao((function(){var n={done:!1};try{v(r,e,pi(di,n,t),pi(hi,n,t))}catch(e){hi(n,e,t)}})):(t.value=e,t.state=1,ci(t,!1))}catch(e){hi({done:!1},e,t)}}};if(Go&&(Qo=(Ko=function(t){!function(t,e){if(F(e,t))return t;throw _r("Incorrect invocation")}(this,Qo),nt(t),v(_o,this);var e=Xo(this);try{t(pi(di,e),pi(hi,e))}catch(t){hi(e,t)}}).prototype,(_o=function(t){Yo(this,{type:zo,done:!1,notified:!1,parent:!1,reactions:new uo,rejection:!1,state:0,value:void 0})}).prototype=le(Qo,"then",(function(t,e){var n=Xo(this),r=ei(xr(this,Ko));return n.parent=!0,r.ok=!D(t)||t,r.fail=D(e)&&e,r.domain=Pr?ti.domain:void 0,0==n.state?n.reactions.add(r):Ao((function(){ai(r,n)})),r.promise})),jo=function(){var t=new _o,e=Xo(t);this.promise=t,this.resolve=pi(di,e),this.reject=pi(hi,e)},Wo.f=ei=function(t){return t===Ko||undefined===t?new jo(t):ni(t)},D(Eo)&&Jo!==Object.prototype)){Lo=Jo.then,Vo||le(Jo,"then",(function(t,e){var n=this;return new Ko((function(t,e){v(Lo,n,t,e)})).then(t,e)}),{unsafe:!0});try{delete Jo.constructor}catch(t){}nr&&nr(Jo,Qo)}He({global:!0,constructor:!0,wrap:!0,forced:Go},{Promise:Ko}),Qn(Ko,zo,!1),Ro=W(zo),p&&Ro&&!Ro[Tr]&&(xo=Ro,Co=Tr,(Io={configurable:!0,get:function(){return this}}).get&&se(Io.get,Co,{getter:!0}),Io.set&&se(Io.set,Co,{setter:!0}),Ft.f(xo,Co,Io));var vi=St("iterator"),yi=Array.prototype,gi=St("iterator"),mi=function(t){if(!C(t))return rt(t,gi)||rt(t,"@@iterator")||Hn[tn(t)]},bi=TypeError,wi=function(t,e,n){var r,o;Nt(t);try{if(!(r=rt(t,"return"))){if("throw"===e)throw n;return n}r=v(r,t)}catch(t){o=!0,r=t}if("throw"===e)throw n;if(o)throw r;return Nt(r),n},Si=TypeError,Ai=function(t,e){this.stopped=t,this.result=e},Oi=Ai.prototype,Ei=function(t,e,n){var r,o,i,a,c,u,f,s,l=n&&n.that,p=!(!n||!n.AS_ENTRIES),h=!(!n||!n.IS_RECORD),d=!(!n||!n.IS_ITERATOR),y=!(!n||!n.INTERRUPTED),g=Ur(e,l),m=function(t){return r&&wi(r,"normal",t),new Ai(!0,t)},b=function(t){return p?(Nt(t),y?g(t[0],t[1],m):g(t[0],t[1])):y?g(t,m):g(t)};if(h)r=t.iterator;else if(d)r=t;else{if(!(o=mi(t)))throw Si(tt(t)+" is not iterable");if(void 0!==(s=o)&&(Hn.Array===s||yi[vi]===s)){for(i=0,a=be(t);a>i;i++)if((c=b(t[i]))&&F(Oi,c))return c;return new Ai(!1)}r=function(t,e){var n=arguments.length<2?mi(t):e;if(nt(n))return Nt(v(n,t));throw bi(tt(t)+" is not iterable")}(t,o)}for(u=h?t.next:r.next;!(f=v(u,r)).done;){try{c=b(f.value)}catch(t){wi(r,"throw",t)}if("object"==typeof c&&c&&F(Oi,c))return c}return new Ai(!1)},Pi=St("iterator"),Ti=!1;try{var _i=0,ji={next:function(){return{done:!!_i++}},return:function(){Ti=!0}};ji[Pi]=function(){return this},Array.from(ji,(function(){throw 2}))}catch(t){}var Li=Do.CONSTRUCTOR||!function(t,e){if(!e&&!Ti)return!1;var n=!1;try{var r={};r[Pi]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(t){}return n}((function(t){Eo.all(t).then(void 0,(function(){}))}));He({target:"Promise",stat:!0,forced:Li},{all:function(t){var e=this,n=Wo.f(e),r=n.resolve,o=n.reject,i=Oo((function(){var n=nt(e.resolve),i=[],a=0,c=1;Ei(t,(function(t){var u=a++,f=!1;c++,v(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 xi=Do.CONSTRUCTOR,Ci=Eo&&Eo.prototype;if(He({target:"Promise",proto:!0,forced:xi,real:!0},{catch:function(t){return this.then(void 0,t)}}),D(Eo)){var Ii=W("Promise").prototype.catch;Ci.catch!==Ii&&le(Ci,"catch",Ii,{unsafe:!0})}He({target:"Promise",stat:!0,forced:Li},{race:function(t){var e=this,n=Wo.f(e),r=n.reject,o=Oo((function(){var o=nt(e.resolve);Ei(t,(function(t){v(o,e,t).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}}),He({target:"Promise",stat:!0,forced:Do.CONSTRUCTOR},{reject:function(t){var e=Wo.f(this);return v(e.reject,void 0,t),e.promise}});var Ri=Do.CONSTRUCTOR;W("Promise"),He({target:"Promise",stat:!0,forced:Ri},{resolve:function(t){return function(t,e){if(Nt(t),B(e)&&e.constructor===t)return e;var n=Wo.f(t);return(0,n.resolve)(e),n.promise}(this,t)}});var ki=String,Ni=function(t){if("Symbol"===tn(t))throw TypeError("Cannot convert a Symbol value to a string");return ki(t)},Mi=E("".charAt),Ui=E("".charCodeAt),Di=E("".slice),Hi=function(t){return function(e,n){var r,o,i=Ni(R(e)),a=ve(n),c=i.length;return a<0||a>=c?t?"":void 0:(r=Ui(i,a))<55296||r>56319||a+1===c||(o=Ui(i,a+1))<56320||o>57343?t?Mi(i,a):r:t?Di(i,a,a+2):o-56320+(r-55296<<10)+65536}},Bi={codeAt:Hi(!1),charAt:Hi(!0)}.charAt,Wi="String Iterator",Fi=fe.set,zi=fe.getterFor(Wi);pr(String,"String",(function(t){Fi(this,{type:Wi,string:Ni(t),index:0})}),(function(){var t,e=zi(this),n=e.string,r=e.index;return r>=n.length?hr(void 0,!0):(t=Bi(n,r),e.index+=t.length,hr(t,!1))}));var Gi={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},qi=jt("span").classList,Vi=qi&&qi.constructor&&qi.constructor.prototype,Xi=Vi===Object.prototype?void 0:Vi,Yi=St("iterator"),Ji=St("toStringTag"),Ki=mr.values,Qi=function(t,e){if(t){if(t[Yi]!==Ki)try{zt(t,Yi,Ki)}catch(e){t[Yi]=Ki}if(t[Ji]||zt(t,Ji,e),Gi[e])for(var n in mr)if(t[n]!==mr[n])try{zt(t,n,mr[n])}catch(e){t[n]=mr[n]}}};for(var $i in Gi)Qi(s[$i]&&s[$i].prototype,$i);Qi(Xi,"DOMTokenList");var Zi=function(){return Zi=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},Zi.apply(this,arguments)},ta={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(){}},ea=function(i){void 0===i&&(i=ta);var a=Object.assign(ta,i),c=a.weixinJsSdkTicket,u=a.launchContainerQuery,f=a.genTagPrefixStr,s=a.launchShowWeixinToBrowserImgUrl,l=a.canShowWeixinToBrowser,p=a.launchShowWeixinToBrowserClassName,h=a.launchBtnClassName,d=a.launchBtnStyle,v=a.launchBtnText,y=a.launchErrorLink,g=a.wexinServiceAccountAppId,m=a.openPlatformMobileAppId,b=a.canContinuousUpdating,w=a.onMenuShareTimelineOptions,S=a.onMenuShareAppMessageOptions,A=a.isConClosed,O=a.isWxDebug,E=a.canLaunchApp,P=a.canFireErrorLinkDirectly,T=a.launchBtnClick,_=a.launchReady,j=a.serviceAccountAppId,L=a.extInfo,x=window.wx;x||console.error("Launch App: wx is not found");var C=function(){},I=t("LaunchCon:",{isClosed:A});I.log("Launch App");var R={title:"",link:"",imgUrl:"",success:function(){},cancel:function(){}},k={title:"",desc:"",link:"",imgUrl:"",type:"",dataUrl:"",success:function(){},cancel:function(){}},N={title:document.title,link:location.href};R=Zi(Zi({},R),N),k=Zi(Zi({},k),N);var M=function(t,e,n){return void 0===t&&(t=""),void 0===e&&(e=""),void 0===n&&(n="button"),"<style>.".concat(h,"{")+"opacity: 0;width: 100%;height: 100%;backgroud: transparent;color: #300f54;border: none;box-sizing: border-box;text-align: center;vertical-align: middle;"+d+e+"}</style>"+"<".concat(n,' class="').concat(h,'"')+(t&&"button"===n?' onclick="'.concat(t,'"'):"")+(t&&"a"===n?' target="_self" href="'.concat(t,'"'):"")+">"+v+"</".concat(n,">")},U=M();function D(){e('.mazey-launch-app-mask{position:fixed;top:0;right:0;bottom:0;left:0;background-color:rgba(0, 0, 0, .5);text-align:right;font-size:0;white-space:nowrap;overflow:auto;z-index:999;}.mazey-launch-app-img{display:inline-block;vertical-align:middle;text-align:left;font-size:14px;white-space:normal;width:50vw;margin:0.5rem 0.5rem 0 0;}.mazey-launch-app-img:after{content:"";display:inline-block;height:100%;vertical-align:middle;}',{id:"mazey-launch-app-mask-style"}),window.LAUNCH_APP_HIDE_WEIXIN_BROWSER||(window.LAUNCH_APP_HIDE_WEIXIN_BROWSER=function(){r(".mazey-launch-app-mask").hide()}),0===r(".mazey-launch-app-mask").length?r("body").append("<div class='mazey-launch-app-mask' onclick='window.LAUNCH_APP_HIDE_WEIXIN_BROWSER()'><img "+"class='mazey-launch-app-img ".concat(p,"' ")+"src='".concat(s,"' ")+"alt='Launch App' /></div>"):r(".mazey-launch-app-mask").show()}function H(){I.log("renderWeixinLaunchTemplate"),!j&&g&&(console.warn("wexinServiceAccountAppId will be deprecated, use serviceAccountAppId instead."),j=g),function(t,e){void 0===t&&(t=""),void 0===e&&(e=""),I.log("renderWXOpenLaunchApp"),Promise.all([Promise.resolve(c||window.LAUNCH_APP_WEIXIN_JS_SDK_TICKET),Promise.resolve(o)]).then((function(o){I.log("allRes",o);var i=o[0],a=o[1],c=n(7),s=i,p=(new Date).getTime(),h=a("jsapi_ticket="+s+"&noncestr="+c+"×tamp="+p+"&url="+location.href);return x.config({debug:O,appId:t,timestamp:p,nonceStr:c,signature:h,jsApiList:["showOptionMenu","onMenuShareTimeline","onMenuShareAppMessage"],openTagList:["wx-open-launch-app"]}),x.ready((function(){w&&(I.log("onMenuShareTimelineOptions",w),x.onMenuShareTimeline(w)),window.LAUNCH_APP_SHARE_TIMELINE=function(t){t=Zi(Zi({},R),t),I.log("window LAUNCH_APP_SHARE_TIMELINE",t),x.onMenuShareTimeline(t)},S&&(I.log("onMenuShareAppMessageOptions",S),x.onMenuShareAppMessage(S)),window.LAUNCH_APP_SHARE_APP_MESSAGE=function(t){t=Zi(Zi({},k),t),I.log("window LAUNCH_APP_SHARE_APP_MESSAGE",t),x.onMenuShareAppMessage(t)},window.LAUNCH_APP_READY=!0,_&&_();var t=function(){var t=r(u);I.log("containers",u,t,t.length),t.length>0&&t.each((function(t,n){var o=r(n).attr("data-launch-app-key");if(!o){var i=r(n).parents("[data-launch-app-key]:eq(0)");i.length>0&&(o=i.attr("data-launch-app-key"),I.log("keyEle",i,o))}o||(o=String(t));var a="mazey-launch-app-tag-".concat(o),c=r(".".concat(a," wx-open-launch-app")),u=r(n).attr("data-launch-app-ext-info");if(!u){var s=r(n).parents("[data-launch-app-ext-info]:eq(0)");s.length>0&&(u=s.attr("data-launch-app-ext-info"),I.log("eleExtInfoEle parents",s,u))}u&&(L=u);var p=r(n).attr("data-launch-app-error-link");if(!p){var h=r(n).parents("[data-launch-app-error-link]:eq(0)");h.length>0&&(p=h.attr("data-launch-app-error-link"),I.log("eleErrorLinkEle parents",h,p))}var d=y;p&&(d=p),0===c.length&&(r(n).addClass(a),I.log("success:",a),function(t){var n=f,o=n+t,i="<wx-open-launch-app id='"+o+"' appid='"+e+"' extinfo='".concat(L)+"' style='z-index:99;position:absolute;width:100%;height:100%;opacity:1;background:transparent;overflow:hidden;left:0;'><script type='text/wxtag-template'>"+U+"<\/script></wx-open-launch-app>";r("."+t+":eq(0)").append(i);var a=document.getElementById(o);a&&(a.addEventListener("ready",(function(t){I.log("ready event",t)})),a.addEventListener("launch",(function(t){I.log("launch event",t),t.detail&&t.detail.extInfo&&I.log("launch extInfo",t.detail.extInfo)})),a.addEventListener("error",(function(t){I.error(t.detail),r("[id^='"+n+"']").hide(),l&&D(),d&&(I.log("realErrorLink",d),location.href=d)})),a.addEventListener("click",(function(t){I.log("click event",t),T&&T()})))}(a))}))};t(),C=t})),x.error((function(t){I.error(t)})),"success:launch_app"})).catch((function(t){I.error(t)}))}(j,m)}function B(t){if(I.log("appUpdated",t),!window.LAUNCH_APP_LOAD&&E(t)&&(H(),window.LAUNCH_APP_LOAD=!0),b&&window.LAUNCH_APP_LOAD&&E(t)&&C(),P()){var e=r(u);e.length>0&&e.each((function(t,e){var n=r(e).children("."+h);if(!n||!n.length){var o=r(e).attr("data-launch-app-error-link");if(!o){var i=r(e).parents("[data-launch-app-error-link]:eq(0)");i.length>0&&(o=i.attr("data-launch-app-error-link"))}if(o&&"string"==typeof o&&o.length){var a=M(o,"position:absolute;left:0;z-index:999;","a");r(e).append(a)}}}))}}function W(){I.log("appBeforeDestroy",W),window.LAUNCH_APP_LOAD=null,window.LAUNCH_APP_HIDE_WEIXIN_BROWSER=null}return window.LAUNCH_APP_UPDATE=B,window.LAUNCH_APP_BEFORE_DESTROY=W,window.LAUNCH_APP_SHOW_WEIXIN_TO_BROWSER=D,{LAUNCH_APP_UPDATE:B,LAUNCH_APP_BEFORE_DESTROY:W,LAUNCH_APP_SHOW_WEIXIN_TO_BROWSER:D,LAUNCH_APP_SHARE_TIMELINE:function(t){I.log("opt",t)},LAUNCH_APP_SHARE_APP_MESSAGE:function(t){I.log("opt",t)},start:B,update:B,destroy:W}};export{ea as default};
|
|
6
|
+
import{genCustomConsole as t,addStyle as e,generateRndNum as n,getQueryParam as r}from"mazey";import o from"jquery";import i from"js-sha1";var a="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function c(t,e){return t(e={exports:{}},e.exports),e.exports}var u,f,s=function(t){return t&&t.Math==Math&&t},l=s("object"==typeof globalThis&&globalThis)||s("object"==typeof window&&window)||s("object"==typeof self&&self)||s("object"==typeof a&&a)||function(){return this}()||Function("return this")(),p=function(t){try{return!!t()}catch(t){return!0}},h=!p((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),d=!p((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),v=Function.prototype.call,y=d?v.bind(v):function(){return v.apply(v,arguments)},g={}.propertyIsEnumerable,m=Object.getOwnPropertyDescriptor,b=m&&!g.call({1:2},1)?function(t){var e=m(this,t);return!!e&&e.enumerable}:g,w={f:b},S=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},A=Function.prototype,O=A.call,E=d&&A.bind.bind(O,O),P=d?E:function(t){return function(){return O.apply(t,arguments)}},T=P({}.toString),_=P("".slice),L=function(t){return _(T(t),8,-1)},j=Object,x=P("".split),I=p((function(){return!j("z").propertyIsEnumerable(0)}))?function(t){return"String"==L(t)?x(t,""):j(t)}:j,C=function(t){return null==t},R=TypeError,k=function(t){if(C(t))throw R("Can't call method on "+t);return t},N=function(t){return I(k(t))},M="object"==typeof document&&document.all,U={all:M,IS_HTMLDDA:void 0===M&&void 0!==M},D=U.all,H=U.IS_HTMLDDA?function(t){return"function"==typeof t||t===D}:function(t){return"function"==typeof t},B=U.all,W=U.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:H(t)||t===B}:function(t){return"object"==typeof t?null!==t:H(t)},F=function(t,e){return arguments.length<2?(n=l[t],H(n)?n:void 0):l[t]&&l[t][e];var n},z=P({}.isPrototypeOf),G="undefined"!=typeof navigator&&String(navigator.userAgent)||"",q=l.process,V=l.Deno,X=q&&q.versions||V&&V.version,J=X&&X.v8;J&&(f=(u=J.split("."))[0]>0&&u[0]<4?1:+(u[0]+u[1])),!f&&G&&(!(u=G.match(/Edge\/(\d+)/))||u[1]>=74)&&(u=G.match(/Chrome\/(\d+)/))&&(f=+u[1]);var Y=f,K=!!Object.getOwnPropertySymbols&&!p((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&Y&&Y<41})),Q=K&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,$=Object,Z=Q?function(t){return"symbol"==typeof t}:function(t){var e=F("Symbol");return H(e)&&z(e.prototype,$(t))},tt=String,et=function(t){try{return tt(t)}catch(t){return"Object"}},nt=TypeError,rt=function(t){if(H(t))return t;throw nt(et(t)+" is not a function")},ot=function(t,e){var n=t[e];return C(n)?void 0:rt(n)},it=TypeError,at=Object.defineProperty,ct=function(t,e){try{at(l,t,{value:e,configurable:!0,writable:!0})}catch(n){l[t]=e}return e},ut="__core-js_shared__",ft=l[ut]||ct(ut,{}),st=c((function(t){(t.exports=function(t,e){return ft[t]||(ft[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"})})),lt=Object,pt=function(t){return lt(k(t))},ht=P({}.hasOwnProperty),dt=Object.hasOwn||function(t,e){return ht(pt(t),e)},vt=0,yt=Math.random(),gt=P(1..toString),mt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+gt(++vt+yt,36)},bt=l.Symbol,wt=st("wks"),St=Q?bt.for||bt:bt&&bt.withoutSetter||mt,At=function(t){return dt(wt,t)||(wt[t]=K&&dt(bt,t)?bt[t]:St("Symbol."+t)),wt[t]},Ot=TypeError,Et=At("toPrimitive"),Pt=function(t,e){if(!W(t)||Z(t))return t;var n,r=ot(t,Et);if(r){if(void 0===e&&(e="default"),n=y(r,t,e),!W(n)||Z(n))return n;throw Ot("Can't convert object to primitive value")}return void 0===e&&(e="number"),function(t,e){var n,r;if("string"===e&&H(n=t.toString)&&!W(r=y(n,t)))return r;if(H(n=t.valueOf)&&!W(r=y(n,t)))return r;if("string"!==e&&H(n=t.toString)&&!W(r=y(n,t)))return r;throw it("Can't convert object to primitive value")}(t,e)},Tt=function(t){var e=Pt(t,"string");return Z(e)?e:e+""},_t=l.document,Lt=W(_t)&&W(_t.createElement),jt=function(t){return Lt?_t.createElement(t):{}},xt=!h&&!p((function(){return 7!=Object.defineProperty(jt("div"),"a",{get:function(){return 7}}).a})),It=Object.getOwnPropertyDescriptor,Ct={f:h?It:function(t,e){if(t=N(t),e=Tt(e),xt)try{return It(t,e)}catch(t){}if(dt(t,e))return S(!y(w.f,t,e),t[e])}},Rt=h&&p((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),kt=String,Nt=TypeError,Mt=function(t){if(W(t))return t;throw Nt(kt(t)+" is not an object")},Ut=TypeError,Dt=Object.defineProperty,Ht=Object.getOwnPropertyDescriptor,Bt="enumerable",Wt="configurable",Ft="writable",zt={f:h?Rt?function(t,e,n){if(Mt(t),e=Tt(e),Mt(n),"function"==typeof t&&"prototype"===e&&"value"in n&&Ft in n&&!n[Ft]){var r=Ht(t,e);r&&r[Ft]&&(t[e]=n.value,n={configurable:Wt in n?n[Wt]:r[Wt],enumerable:Bt in n?n[Bt]:r[Bt],writable:!1})}return Dt(t,e,n)}:Dt:function(t,e,n){if(Mt(t),e=Tt(e),Mt(n),xt)try{return Dt(t,e,n)}catch(t){}if("get"in n||"set"in n)throw Ut("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},Gt=h?function(t,e,n){return zt.f(t,e,S(1,n))}:function(t,e,n){return t[e]=n,t},qt=Function.prototype,Vt=h&&Object.getOwnPropertyDescriptor,Xt=dt(qt,"name"),Jt={EXISTS:Xt,PROPER:Xt&&"something"===function(){}.name,CONFIGURABLE:Xt&&(!h||h&&Vt(qt,"name").configurable)},Yt=P(Function.toString);H(ft.inspectSource)||(ft.inspectSource=function(t){return Yt(t)});var Kt,Qt,$t,Zt=ft.inspectSource,te=l.WeakMap,ee=H(te)&&/native code/.test(String(te)),ne=st("keys"),re=function(t){return ne[t]||(ne[t]=mt(t))},oe={},ie="Object already initialized",ae=l.TypeError,ce=l.WeakMap;if(ee||ft.state){var ue=ft.state||(ft.state=new ce);ue.get=ue.get,ue.has=ue.has,ue.set=ue.set,Kt=function(t,e){if(ue.has(t))throw ae(ie);return e.facade=t,ue.set(t,e),e},Qt=function(t){return ue.get(t)||{}},$t=function(t){return ue.has(t)}}else{var fe=re("state");oe[fe]=!0,Kt=function(t,e){if(dt(t,fe))throw ae(ie);return e.facade=t,Gt(t,fe,e),e},Qt=function(t){return dt(t,fe)?t[fe]:{}},$t=function(t){return dt(t,fe)}}var se={set:Kt,get:Qt,has:$t,enforce:function(t){return $t(t)?Qt(t):Kt(t,{})},getterFor:function(t){return function(e){var n;if(!W(e)||(n=Qt(e)).type!==t)throw ae("Incompatible receiver, "+t+" required");return n}}},le=c((function(t){var e=Jt.CONFIGURABLE,n=se.enforce,r=se.get,o=String,i=Object.defineProperty,a=P("".slice),c=P("".replace),u=P([].join),f=h&&!p((function(){return 8!==i((function(){}),"length",{value:8}).length})),s=String(String).split("String"),l=t.exports=function(t,r,l){"Symbol("===a(o(r),0,7)&&(r="["+c(o(r),/^Symbol\(([^)]*)\)/,"$1")+"]"),l&&l.getter&&(r="get "+r),l&&l.setter&&(r="set "+r),(!dt(t,"name")||e&&t.name!==r)&&(h?i(t,"name",{value:r,configurable:!0}):t.name=r),f&&l&&dt(l,"arity")&&t.length!==l.arity&&i(t,"length",{value:l.arity});try{l&&dt(l,"constructor")&&l.constructor?h&&i(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var p=n(t);return dt(p,"source")||(p.source=u(s,"string"==typeof r?r:"")),t};Function.prototype.toString=l((function(){return H(this)&&r(this).source||Zt(this)}),"toString")})),pe=function(t,e,n,r){r||(r={});var o=r.enumerable,i=void 0!==r.name?r.name:e;if(H(n)&&le(n,i,r),r.global)o?t[e]=n:ct(e,n);else{try{r.unsafe?t[e]&&(o=!0):delete t[e]}catch(t){}o?t[e]=n:zt.f(t,e,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return t},he=Math.ceil,de=Math.floor,ve=Math.trunc||function(t){var e=+t;return(e>0?de:he)(e)},ye=function(t){var e=+t;return e!=e||0===e?0:ve(e)},ge=Math.max,me=Math.min,be=Math.min,we=function(t){return(e=t.length)>0?be(ye(e),9007199254740991):0;var e},Se=function(t){return function(e,n,r){var o,i=N(e),a=we(i),c=function(t,e){var n=ye(t);return n<0?ge(n+e,0):me(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}},Ae={includes:Se(!0),indexOf:Se(!1)}.indexOf,Oe=P([].push),Ee=function(t,e){var n,r=N(t),o=0,i=[];for(n in r)!dt(oe,n)&&dt(r,n)&&Oe(i,n);for(;e.length>o;)dt(r,n=e[o++])&&(~Ae(i,n)||Oe(i,n));return i},Pe=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Te=Pe.concat("length","prototype"),_e={f:Object.getOwnPropertyNames||function(t){return Ee(t,Te)}},Le={f:Object.getOwnPropertySymbols},je=P([].concat),xe=F("Reflect","ownKeys")||function(t){var e=_e.f(Mt(t)),n=Le.f;return n?je(e,n(t)):e},Ie=function(t,e,n){for(var r=xe(e),o=zt.f,i=Ct.f,a=0;a<r.length;a++){var c=r[a];dt(t,c)||n&&dt(n,c)||o(t,c,i(e,c))}},Ce=/#|\.prototype\./,Re=function(t,e){var n=Ne[ke(t)];return n==Ue||n!=Me&&(H(e)?p(e):!!e)},ke=Re.normalize=function(t){return String(t).replace(Ce,".").toLowerCase()},Ne=Re.data={},Me=Re.NATIVE="N",Ue=Re.POLYFILL="P",De=Re,He=Ct.f,Be=function(t,e){var n,r,o,i,a,c=t.target,u=t.global,f=t.stat;if(n=u?l:f?l[c]||ct(c,{}):(l[c]||{}).prototype)for(r in e){if(i=e[r],o=t.dontCallGetSet?(a=He(n,r))&&a.value:n[r],!De(u?r:c+(f?".":"#")+r,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;Ie(i,o)}(t.sham||o&&o.sham)&&Gt(i,"sham",!0),pe(n,r,i,t)}},We=Object.keys||function(t){return Ee(t,Pe)},Fe=Object.assign,ze=Object.defineProperty,Ge=P([].concat),qe=!Fe||p((function(){if(h&&1!==Fe({b:1},Fe(ze({},"a",{enumerable:!0,get:function(){ze(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach((function(t){e[t]=t})),7!=Fe({},t)[n]||We(Fe({},e)).join("")!=r}))?function(t,e){for(var n=pt(t),r=arguments.length,o=1,i=Le.f,a=w.f;r>o;)for(var c,u=I(arguments[o++]),f=i?Ge(We(u),i(u)):We(u),s=f.length,l=0;s>l;)c=f[l++],h&&!y(a,u,c)||(n[c]=u[c]);return n}:Fe;Be({target:"Object",stat:!0,arity:2,forced:Object.assign!==qe},{assign:qe});var Ve=Array.isArray||function(t){return"Array"==L(t)},Xe=TypeError,Je=function(t){if(t>9007199254740991)throw Xe("Maximum allowed index exceeded");return t},Ye=function(t,e,n){var r=Tt(e);r in t?zt.f(t,r,S(0,n)):t[r]=n},Ke={};Ke[At("toStringTag")]="z";var Qe="[object z]"===String(Ke),$e=At("toStringTag"),Ze=Object,tn="Arguments"==L(function(){return arguments}()),en=Qe?L: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=Ze(t),$e))?n:tn?L(e):"Object"==(r=L(e))&&H(e.callee)?"Arguments":r},nn=function(){},rn=[],on=F("Reflect","construct"),an=/^\s*(?:class|function)\b/,cn=P(an.exec),un=!an.exec(nn),fn=function(t){if(!H(t))return!1;try{return on(nn,rn,t),!0}catch(t){return!1}},sn=function(t){if(!H(t))return!1;switch(en(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return un||!!cn(an,Zt(t))}catch(t){return!0}};sn.sham=!0;var ln,pn=!on||p((function(){var t;return fn(fn.call)||!fn(Object)||!fn((function(){t=!0}))||t}))?sn:fn,hn=At("species"),dn=Array,vn=function(t,e){return new(function(t){var e;return Ve(t)&&(e=t.constructor,(pn(e)&&(e===dn||Ve(e.prototype))||W(e)&&null===(e=e[hn]))&&(e=void 0)),void 0===e?dn:e}(t))(0===e?0:e)},yn=At("species"),gn=At("isConcatSpreadable"),mn=Y>=51||!p((function(){var t=[];return t[gn]=!1,t.concat()[0]!==t})),bn=function(t){if(!W(t))return!1;var e=t[gn];return void 0!==e?!!e:Ve(t)},wn=!(mn&&(ln="concat",Y>=51||!p((function(){var t=[];return(t.constructor={})[yn]=function(){return{foo:1}},1!==t[ln](Boolean).foo}))));Be({target:"Array",proto:!0,arity:1,forced:wn},{concat:function(t){var e,n,r,o,i,a=pt(this),c=vn(a,0),u=0;for(e=-1,r=arguments.length;e<r;e++)if(bn(i=-1===e?a:arguments[e]))for(o=we(i),Je(u+o),n=0;n<o;n++,u++)n in i&&Ye(c,u,i[n]);else Je(u+1),Ye(c,u++,i);return c.length=u,c}});var Sn,An=h&&!Rt?Object.defineProperties:function(t,e){Mt(t);for(var n,r=N(e),o=We(e),i=o.length,a=0;i>a;)zt.f(t,n=o[a++],r[n]);return t},On={f:An},En=F("document","documentElement"),Pn="prototype",Tn="script",_n=re("IE_PROTO"),Ln=function(){},jn=function(t){return"<"+Tn+">"+t+"</"+Tn+">"},xn=function(t){t.write(jn("")),t.close();var e=t.parentWindow.Object;return t=null,e},In=function(){try{Sn=new ActiveXObject("htmlfile")}catch(t){}var t,e,n;In="undefined"!=typeof document?document.domain&&Sn?xn(Sn):(e=jt("iframe"),n="java"+Tn+":",e.style.display="none",En.appendChild(e),e.src=String(n),(t=e.contentWindow.document).open(),t.write(jn("document.F=Object")),t.close(),t.F):xn(Sn);for(var r=Pe.length;r--;)delete In[Pn][Pe[r]];return In()};oe[_n]=!0;var Cn=Object.create||function(t,e){var n;return null!==t?(Ln[Pn]=Mt(t),n=new Ln,Ln[Pn]=null,n[_n]=t):n=In(),void 0===e?n:On.f(n,e)},Rn=zt.f,kn=At("unscopables"),Nn=Array.prototype;null==Nn[kn]&&Rn(Nn,kn,{configurable:!0,value:Cn(null)});var Mn,Un,Dn,Hn=function(t){Nn[kn][t]=!0},Bn={},Wn=!p((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),Fn=re("IE_PROTO"),zn=Object,Gn=zn.prototype,qn=Wn?zn.getPrototypeOf:function(t){var e=pt(t);if(dt(e,Fn))return e[Fn];var n=e.constructor;return H(n)&&e instanceof n?n.prototype:e instanceof zn?Gn:null},Vn=At("iterator"),Xn=!1;[].keys&&("next"in(Dn=[].keys())?(Un=qn(qn(Dn)))!==Object.prototype&&(Mn=Un):Xn=!0);var Jn=!W(Mn)||p((function(){var t={};return Mn[Vn].call(t)!==t}));Jn&&(Mn={}),H(Mn[Vn])||pe(Mn,Vn,(function(){return this}));var Yn={IteratorPrototype:Mn,BUGGY_SAFARI_ITERATORS:Xn},Kn=zt.f,Qn=At("toStringTag"),$n=function(t,e,n){t&&!n&&(t=t.prototype),t&&!dt(t,Qn)&&Kn(t,Qn,{configurable:!0,value:e})},Zn=Yn.IteratorPrototype,tr=function(){return this},er=String,nr=TypeError,rr=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{t=function(t,e,n){try{return P(rt(Object.getOwnPropertyDescriptor(t,e)[n]))}catch(t){}}(Object.prototype,"__proto__","set"),t(n,[]),e=n instanceof Array}catch(t){}return function(n,r){return Mt(n),function(t){if("object"==typeof t||H(t))return t;throw nr("Can't set "+er(t)+" as a prototype")}(r),e?t(n,r):n.__proto__=r,n}}():void 0),or=Jt.PROPER,ir=Jt.CONFIGURABLE,ar=Yn.IteratorPrototype,cr=Yn.BUGGY_SAFARI_ITERATORS,ur=At("iterator"),fr="keys",sr="values",lr="entries",pr=function(){return this},hr=function(t,e,n,r,o,i,a){!function(t,e,n,r){var o=e+" Iterator";t.prototype=Cn(Zn,{next:S(+!r,n)}),$n(t,o,!1),Bn[o]=tr}(n,e,r);var c,u,f,s=function(t){if(t===o&&v)return v;if(!cr&&t in h)return h[t];switch(t){case fr:case sr:case lr:return function(){return new n(this,t)}}return function(){return new n(this)}},l=e+" Iterator",p=!1,h=t.prototype,d=h[ur]||h["@@iterator"]||o&&h[o],v=!cr&&d||s(o),g="Array"==e&&h.entries||d;if(g&&(c=qn(g.call(new t)))!==Object.prototype&&c.next&&(qn(c)!==ar&&(rr?rr(c,ar):H(c[ur])||pe(c,ur,pr)),$n(c,l,!0)),or&&o==sr&&d&&d.name!==sr&&(ir?Gt(h,"name",sr):(p=!0,v=function(){return y(d,this)})),o)if(u={values:s(sr),keys:i?v:s(fr),entries:s(lr)},a)for(f in u)(cr||p||!(f in h))&&pe(h,f,u[f]);else Be({target:e,proto:!0,forced:cr||p},u);return h[ur]!==v&&pe(h,ur,v,{name:o}),Bn[e]=v,u},dr=function(t,e){return{value:t,done:e}},vr=zt.f,yr="Array Iterator",gr=se.set,mr=se.getterFor(yr),br=hr(Array,"Array",(function(t,e){gr(this,{type:yr,target:N(t),index:0,kind:e})}),(function(){var t=mr(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,dr(void 0,!0)):dr("keys"==n?r:"values"==n?e[r]:[r,e[r]],!1)}),"values"),wr=Bn.Arguments=Bn.Array;if(Hn("keys"),Hn("values"),Hn("entries"),h&&"values"!==wr.name)try{vr(wr,"name",{value:"values"})}catch(t){}var Sr=Qe?{}.toString:function(){return"[object "+en(this)+"]"};Qe||pe(Object.prototype,"toString",Sr,{unsafe:!0});var Ar,Or,Er,Pr,Tr="undefined"!=typeof process&&"process"==L(process),_r=At("species"),Lr=TypeError,jr=TypeError,xr=At("species"),Ir=function(t,e){var n,r=Mt(t).constructor;return void 0===r||C(n=Mt(r)[xr])?e:function(t){if(pn(t))return t;throw jr(et(t)+" is not a constructor")}(n)},Cr=Function.prototype,Rr=Cr.apply,kr=Cr.call,Nr="object"==typeof Reflect&&Reflect.apply||(d?kr.bind(Rr):function(){return kr.apply(Rr,arguments)}),Mr=function(t){if("Function"===L(t))return P(t)},Ur=Mr(Mr.bind),Dr=function(t,e){return rt(t),void 0===e?t:d?Ur(t,e):function(){return t.apply(e,arguments)}},Hr=P([].slice),Br=TypeError,Wr=/(?:ipad|iphone|ipod).*applewebkit/i.test(G),Fr=l.setImmediate,zr=l.clearImmediate,Gr=l.process,qr=l.Dispatch,Vr=l.Function,Xr=l.MessageChannel,Jr=l.String,Yr=0,Kr={},Qr="onreadystatechange";p((function(){Ar=l.location}));var $r=function(t){if(dt(Kr,t)){var e=Kr[t];delete Kr[t],e()}},Zr=function(t){return function(){$r(t)}},to=function(t){$r(t.data)},eo=function(t){l.postMessage(Jr(t),Ar.protocol+"//"+Ar.host)};Fr&&zr||(Fr=function(t){!function(t,e){if(t<e)throw Br("Not enough arguments")}(arguments.length,1);var e=H(t)?t:Vr(t),n=Hr(arguments,1);return Kr[++Yr]=function(){Nr(e,void 0,n)},Or(Yr),Yr},zr=function(t){delete Kr[t]},Tr?Or=function(t){Gr.nextTick(Zr(t))}:qr&&qr.now?Or=function(t){qr.now(Zr(t))}:Xr&&!Wr?(Pr=(Er=new Xr).port2,Er.port1.onmessage=to,Or=Dr(Pr.postMessage,Pr)):l.addEventListener&&H(l.postMessage)&&!l.importScripts&&Ar&&"file:"!==Ar.protocol&&!p(eo)?(Or=eo,l.addEventListener("message",to,!1)):Or=Qr in jt("script")?function(t){En.appendChild(jt("script"))[Qr]=function(){En.removeChild(this),$r(t)}}:function(t){setTimeout(Zr(t),0)});var no={set:Fr,clear:zr},ro=function(){this.head=null,this.tail=null};ro.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 oo,io,ao,co,uo,fo=ro,so=/ipad|iphone|ipod/i.test(G)&&"undefined"!=typeof Pebble,lo=/web0s(?!.*chrome)/i.test(G),po=Ct.f,ho=no.set,vo=l.MutationObserver||l.WebKitMutationObserver,yo=l.document,go=l.process,mo=l.Promise,bo=po(l,"queueMicrotask"),wo=bo&&bo.value;if(!wo){var So=new fo,Ao=function(){var t,e;for(Tr&&(t=go.domain)&&t.exit();e=So.get();)try{e()}catch(t){throw So.head&&oo(),t}t&&t.enter()};Wr||Tr||lo||!vo||!yo?!so&&mo&&mo.resolve?((co=mo.resolve(void 0)).constructor=mo,uo=Dr(co.then,co),oo=function(){uo(Ao)}):Tr?oo=function(){go.nextTick(Ao)}:(ho=Dr(ho,l),oo=function(){ho(Ao)}):(io=!0,ao=yo.createTextNode(""),new vo(Ao).observe(ao,{characterData:!0}),oo=function(){ao.data=io=!io}),wo=function(t){So.head||oo(),So.add(t)}}var Oo=wo,Eo=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},Po=l.Promise,To="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,_o=!To&&!Tr&&"object"==typeof window&&"object"==typeof document;Po&&Po.prototype;var Lo,jo,xo,Io,Co,Ro,ko,No=At("species"),Mo=!1,Uo=H(l.PromiseRejectionEvent),Do=De("Promise",(function(){var t=Zt(Po),e=t!==String(Po);if(!e&&66===Y)return!0;if(!Y||Y<51||!/native code/.test(t)){var n=new Po((function(t){t(1)})),r=function(t){t((function(){}),(function(){}))};if((n.constructor={})[No]=r,!(Mo=n.then((function(){}))instanceof r))return!0}return!e&&(_o||To)&&!Uo})),Ho={CONSTRUCTOR:Do,REJECTION_EVENT:Uo,SUBCLASSING:Mo},Bo=TypeError,Wo=function(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw Bo("Bad Promise constructor");e=t,n=r})),this.resolve=rt(e),this.reject=rt(n)},Fo={f:function(t){return new Wo(t)}},zo=no.set,Go="Promise",qo=Ho.CONSTRUCTOR,Vo=Ho.REJECTION_EVENT,Xo=Ho.SUBCLASSING,Jo=se.getterFor(Go),Yo=se.set,Ko=Po&&Po.prototype,Qo=Po,$o=Ko,Zo=l.TypeError,ti=l.document,ei=l.process,ni=Fo.f,ri=ni,oi=!!(ti&&ti.createEvent&&l.dispatchEvent),ii="unhandledrejection",ai=function(t){var e;return!(!W(t)||!H(e=t.then))&&e},ci=function(t,e){var n,r,o,i=e.value,a=1==e.state,c=a?t.ok:t.fail,u=t.resolve,f=t.reject,s=t.domain;try{c?(a||(2===e.rejection&&pi(e),e.rejection=1),!0===c?n=i:(s&&s.enter(),n=c(i),s&&(s.exit(),o=!0)),n===t.promise?f(Zo("Promise-chain cycle")):(r=ai(n))?y(r,n,u,f):u(n)):f(i)}catch(t){s&&!o&&s.exit(),f(t)}},ui=function(t,e){t.notified||(t.notified=!0,Oo((function(){for(var n,r=t.reactions;n=r.get();)ci(n,t);t.notified=!1,e&&!t.rejection&&si(t)})))},fi=function(t,e,n){var r,o;oi?((r=ti.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),l.dispatchEvent(r)):r={promise:e,reason:n},!Vo&&(o=l["on"+t])?o(r):t===ii&&function(t,e){try{1==arguments.length?console.error(t):console.error(t,e)}catch(t){}}("Unhandled promise rejection",n)},si=function(t){y(zo,l,(function(){var e,n=t.facade,r=t.value;if(li(t)&&(e=Eo((function(){Tr?ei.emit("unhandledRejection",r,n):fi(ii,n,r)})),t.rejection=Tr||li(t)?2:1,e.error))throw e.value}))},li=function(t){return 1!==t.rejection&&!t.parent},pi=function(t){y(zo,l,(function(){var e=t.facade;Tr?ei.emit("rejectionHandled",e):fi("rejectionhandled",e,t.value)}))},hi=function(t,e,n){return function(r){t(e,r,n)}},di=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,ui(t,!0))},vi=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw Zo("Promise can't be resolved itself");var r=ai(e);r?Oo((function(){var n={done:!1};try{y(r,e,hi(vi,n,t),hi(di,n,t))}catch(e){di(n,e,t)}})):(t.value=e,t.state=1,ui(t,!1))}catch(e){di({done:!1},e,t)}}};if(qo&&($o=(Qo=function(t){!function(t,e){if(z(e,t))return t;throw Lr("Incorrect invocation")}(this,$o),rt(t),y(Lo,this);var e=Jo(this);try{t(hi(vi,e),hi(di,e))}catch(t){di(e,t)}}).prototype,(Lo=function(t){Yo(this,{type:Go,done:!1,notified:!1,parent:!1,reactions:new fo,rejection:!1,state:0,value:void 0})}).prototype=pe($o,"then",(function(t,e){var n=Jo(this),r=ni(Ir(this,Qo));return n.parent=!0,r.ok=!H(t)||t,r.fail=H(e)&&e,r.domain=Tr?ei.domain:void 0,0==n.state?n.reactions.add(r):Oo((function(){ci(r,n)})),r.promise})),jo=function(){var t=new Lo,e=Jo(t);this.promise=t,this.resolve=hi(vi,e),this.reject=hi(di,e)},Fo.f=ni=function(t){return t===Qo||undefined===t?new jo(t):ri(t)},H(Po)&&Ko!==Object.prototype)){xo=Ko.then,Xo||pe(Ko,"then",(function(t,e){var n=this;return new Qo((function(t,e){y(xo,n,t,e)})).then(t,e)}),{unsafe:!0});try{delete Ko.constructor}catch(t){}rr&&rr(Ko,$o)}Be({global:!0,constructor:!0,wrap:!0,forced:qo},{Promise:Qo}),$n(Qo,Go,!1),ko=F(Go),h&&ko&&!ko[_r]&&(Io=ko,Co=_r,(Ro={configurable:!0,get:function(){return this}}).get&&le(Ro.get,Co,{getter:!0}),Ro.set&&le(Ro.set,Co,{setter:!0}),zt.f(Io,Co,Ro));var yi=At("iterator"),gi=Array.prototype,mi=At("iterator"),bi=function(t){if(!C(t))return ot(t,mi)||ot(t,"@@iterator")||Bn[en(t)]},wi=TypeError,Si=function(t,e,n){var r,o;Mt(t);try{if(!(r=ot(t,"return"))){if("throw"===e)throw n;return n}r=y(r,t)}catch(t){o=!0,r=t}if("throw"===e)throw n;if(o)throw r;return Mt(r),n},Ai=TypeError,Oi=function(t,e){this.stopped=t,this.result=e},Ei=Oi.prototype,Pi=function(t,e,n){var r,o,i,a,c,u,f,s,l=n&&n.that,p=!(!n||!n.AS_ENTRIES),h=!(!n||!n.IS_RECORD),d=!(!n||!n.IS_ITERATOR),v=!(!n||!n.INTERRUPTED),g=Dr(e,l),m=function(t){return r&&Si(r,"normal",t),new Oi(!0,t)},b=function(t){return p?(Mt(t),v?g(t[0],t[1],m):g(t[0],t[1])):v?g(t,m):g(t)};if(h)r=t.iterator;else if(d)r=t;else{if(!(o=bi(t)))throw Ai(et(t)+" is not iterable");if(void 0!==(s=o)&&(Bn.Array===s||gi[yi]===s)){for(i=0,a=we(t);a>i;i++)if((c=b(t[i]))&&z(Ei,c))return c;return new Oi(!1)}r=function(t,e){var n=arguments.length<2?bi(t):e;if(rt(n))return Mt(y(n,t));throw wi(et(t)+" is not iterable")}(t,o)}for(u=h?t.next:r.next;!(f=y(u,r)).done;){try{c=b(f.value)}catch(t){Si(r,"throw",t)}if("object"==typeof c&&c&&z(Ei,c))return c}return new Oi(!1)},Ti=At("iterator"),_i=!1;try{var Li=0,ji={next:function(){return{done:!!Li++}},return:function(){_i=!0}};ji[Ti]=function(){return this},Array.from(ji,(function(){throw 2}))}catch(t){}var xi=Ho.CONSTRUCTOR||!function(t,e){if(!e&&!_i)return!1;var n=!1;try{var r={};r[Ti]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(t){}return n}((function(t){Po.all(t).then(void 0,(function(){}))}));Be({target:"Promise",stat:!0,forced:xi},{all:function(t){var e=this,n=Fo.f(e),r=n.resolve,o=n.reject,i=Eo((function(){var n=rt(e.resolve),i=[],a=0,c=1;Pi(t,(function(t){var u=a++,f=!1;c++,y(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 Ii=Ho.CONSTRUCTOR,Ci=Po&&Po.prototype;if(Be({target:"Promise",proto:!0,forced:Ii,real:!0},{catch:function(t){return this.then(void 0,t)}}),H(Po)){var Ri=F("Promise").prototype.catch;Ci.catch!==Ri&&pe(Ci,"catch",Ri,{unsafe:!0})}Be({target:"Promise",stat:!0,forced:xi},{race:function(t){var e=this,n=Fo.f(e),r=n.reject,o=Eo((function(){var o=rt(e.resolve);Pi(t,(function(t){y(o,e,t).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}}),Be({target:"Promise",stat:!0,forced:Ho.CONSTRUCTOR},{reject:function(t){var e=Fo.f(this);return y(e.reject,void 0,t),e.promise}});var ki=Ho.CONSTRUCTOR;F("Promise"),Be({target:"Promise",stat:!0,forced:ki},{resolve:function(t){return function(t,e){if(Mt(t),W(e)&&e.constructor===t)return e;var n=Fo.f(t);return(0,n.resolve)(e),n.promise}(this,t)}});var Ni=String,Mi=function(t){if("Symbol"===en(t))throw TypeError("Cannot convert a Symbol value to a string");return Ni(t)},Ui=P("".charAt),Di=P("".charCodeAt),Hi=P("".slice),Bi=function(t){return function(e,n){var r,o,i=Mi(k(e)),a=ye(n),c=i.length;return a<0||a>=c?t?"":void 0:(r=Di(i,a))<55296||r>56319||a+1===c||(o=Di(i,a+1))<56320||o>57343?t?Ui(i,a):r:t?Hi(i,a,a+2):o-56320+(r-55296<<10)+65536}},Wi={codeAt:Bi(!1),charAt:Bi(!0)}.charAt,Fi="String Iterator",zi=se.set,Gi=se.getterFor(Fi);hr(String,"String",(function(t){zi(this,{type:Fi,string:Mi(t),index:0})}),(function(){var t,e=Gi(this),n=e.string,r=e.index;return r>=n.length?dr(void 0,!0):(t=Wi(n,r),e.index+=t.length,dr(t,!1))}));var qi={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},Vi=jt("span").classList,Xi=Vi&&Vi.constructor&&Vi.constructor.prototype,Ji=Xi===Object.prototype?void 0:Xi,Yi=At("iterator"),Ki=At("toStringTag"),Qi=br.values,$i=function(t,e){if(t){if(t[Yi]!==Qi)try{Gt(t,Yi,Qi)}catch(e){t[Yi]=Qi}if(t[Ki]||Gt(t,Ki,e),qi[e])for(var n in br)if(t[n]!==br[n])try{Gt(t,n,br[n])}catch(e){t[n]=br[n]}}};for(var Zi in qi)$i(l[Zi]&&l[Zi].prototype,Zi);$i(Ji,"DOMTokenList");var ta=function(){return ta=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},ta.apply(this,arguments)},ea={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,openTagList:["wx-open-launch-app"],canLaunchApp:function(){return!0},canFireErrorLinkDirectly:function(){return!1},launchBtnClick:function(){},launchReady:function(){}},na=function(a){void 0===a&&(a=ea);var c=Object.assign(ea,a),u=c.weixinJsSdkTicket,f=c.launchContainerQuery,s=c.genTagPrefixStr,l=c.launchShowWeixinToBrowserImgUrl,p=c.canShowWeixinToBrowser,h=c.launchShowWeixinToBrowserClassName,d=c.launchBtnClassName,v=c.launchBtnStyle,y=c.launchBtnText,g=c.launchErrorLink,m=c.wexinServiceAccountAppId,b=c.openPlatformMobileAppId,w=c.canContinuousUpdating,S=c.onMenuShareTimelineOptions,A=c.onMenuShareAppMessageOptions,O=c.isConClosed,E=c.isWxDebug,P=c.openTagList,T=c.canLaunchApp,_=c.canFireErrorLinkDirectly,L=c.launchBtnClick,j=c.launchReady,x=c.serviceAccountAppId,I=c.extInfo,C=window.wx;C||console.error("Launch App: wx is not found");var R=function(){},k=t("LaunchCon:",{isClosed:O});k.log("Launch App");var N={title:"",link:"",imgUrl:"",success:function(){},cancel:function(){}},M={title:"",desc:"",link:"",imgUrl:"",type:"",dataUrl:"",success:function(){},cancel:function(){}},U={title:document.title,link:location.href};N=ta(ta({},N),U),M=ta(ta({},M),U);var D=function(t,e,n){return void 0===t&&(t=""),void 0===e&&(e=""),void 0===n&&(n="button"),"<style>.".concat(d,"{")+"opacity: 0;width: 100%;height: 100%;backgroud: transparent;color: #300f54;border: none;box-sizing: border-box;text-align: center;vertical-align: middle;"+v+e+"}</style>"+"<".concat(n,' class="').concat(d,'"')+(t&&"button"===n?' onclick="'.concat(t,'"'):"")+(t&&"a"===n?' target="_self" href="'.concat(t,'"'):"")+">"+y+"</".concat(n,">")},H=D();function B(){e('.mazey-launch-app-mask{position:fixed;top:0;right:0;bottom:0;left:0;background-color:rgba(0, 0, 0, .5);text-align:right;font-size:0;white-space:nowrap;overflow:auto;z-index:999;}.mazey-launch-app-img{display:inline-block;vertical-align:middle;text-align:left;font-size:14px;white-space:normal;width:50vw;margin:0.5rem 0.5rem 0 0;}.mazey-launch-app-img:after{content:"";display:inline-block;height:100%;vertical-align:middle;}',{id:"mazey-launch-app-mask-style"}),window.LAUNCH_APP_HIDE_WEIXIN_BROWSER||(window.LAUNCH_APP_HIDE_WEIXIN_BROWSER=function(){o(".mazey-launch-app-mask").hide()}),0===o(".mazey-launch-app-mask").length?o("body").append("<div class='mazey-launch-app-mask' onclick='window.LAUNCH_APP_HIDE_WEIXIN_BROWSER()'><img "+"class='mazey-launch-app-img ".concat(h,"' ")+"src='".concat(l,"' ")+"alt='Launch App' /></div>"):o(".mazey-launch-app-mask").show()}function W(){k.log("renderWeixinLaunchTemplate"),!x&&m&&(console.warn("wexinServiceAccountAppId will be deprecated, use serviceAccountAppId instead."),x=m),function(t,e){void 0===t&&(t=""),void 0===e&&(e=""),k.log("renderWXOpenLaunchApp"),Promise.all([Promise.resolve(u||window.LAUNCH_APP_WEIXIN_JS_SDK_TICKET||r("weixinJsSdkTicket")||""),Promise.resolve(i)]).then((function(r){k.log("allRes",r);var i=r[0],a=r[1],c=n(7),u=i,l=(new Date).getTime(),h=a("jsapi_ticket="+u+"&noncestr="+c+"×tamp="+l+"&url="+location.href);return C.config({debug:E,appId:t,timestamp:l,nonceStr:c,signature:h,jsApiList:["showOptionMenu","onMenuShareTimeline","onMenuShareAppMessage"],openTagList:P}),C.ready((function(){if(A&&(k.log("onMenuShareAppMessageOptions",A),C.onMenuShareAppMessage(A)),window.LAUNCH_APP_SHARE_APP_MESSAGE=function(t){t=ta(ta({},M),t),k.log("window LAUNCH_APP_SHARE_APP_MESSAGE",t),C.onMenuShareAppMessage(t)},S&&(k.log("onMenuShareTimelineOptions",S),C.onMenuShareTimeline(S)),window.LAUNCH_APP_SHARE_TIMELINE=function(t){t=ta(ta({},N),t),k.log("window LAUNCH_APP_SHARE_TIMELINE",t),C.onMenuShareTimeline(t)},e){window.LAUNCH_APP_READY=!0,j&&j();var t=function(){var t=o(f);k.log("containers",f,t,t.length),t.length>0&&t.each((function(t,n){var r=o(n).attr("data-launch-app-key");if(!r){var i=o(n).parents("[data-launch-app-key]:eq(0)");i.length>0&&(r=i.attr("data-launch-app-key"),k.log("keyEle",i,r))}r||(r=String(t));var a="mazey-launch-app-tag-".concat(r),c=o(".".concat(a," wx-open-launch-app")),u=o(n).attr("data-launch-app-ext-info");if(!u){var f=o(n).parents("[data-launch-app-ext-info]:eq(0)");f.length>0&&(u=f.attr("data-launch-app-ext-info"),k.log("eleExtInfoEle parents",f,u))}u&&(I=u);var l=o(n).attr("data-launch-app-error-link");if(!l){var h=o(n).parents("[data-launch-app-error-link]:eq(0)");h.length>0&&(l=h.attr("data-launch-app-error-link"),k.log("eleErrorLinkEle parents",h,l))}var d=g;l&&(d=l),0===c.length&&(o(n).addClass(a),k.log("success:",a),function(t){var n=s,r=n+t,i="<wx-open-launch-app id='"+r+"' appid='"+e+"' extinfo='".concat(I)+"' style='z-index:99;position:absolute;width:100%;height:100%;opacity:1;background:transparent;overflow:hidden;left:0;'><script type='text/wxtag-template'>"+H+"<\/script></wx-open-launch-app>";o("."+t+":eq(0)").append(i);var a=document.getElementById(r);a&&(a.addEventListener("ready",(function(t){k.log("ready event",t)})),a.addEventListener("launch",(function(t){k.log("launch event",t),t.detail&&t.detail.extInfo&&k.log("launch extInfo",t.detail.extInfo)})),a.addEventListener("error",(function(t){k.error(t.detail),o("[id^='"+n+"']").hide(),p&&B(),d&&(k.log("realErrorLink",d),location.href=d)})),a.addEventListener("click",(function(t){k.log("click event",t),L&&L()})))}(a))}))};t(),R=t}else k.log("openPlatformMobileAppId is required for weixin launch app")})),C.error((function(t){k.error(t)})),"success:launch_app"})).catch((function(t){k.error(t)}))}(x,b)}function F(t){if(k.log("appUpdated",t),!window.LAUNCH_APP_LOAD&&T(t)&&(W(),window.LAUNCH_APP_LOAD=!0),w&&window.LAUNCH_APP_LOAD&&T(t)&&R(),_()){var e=o(f);e.length>0&&e.each((function(t,e){var n=o(e).children("."+d);if(!n||!n.length){var r=o(e).attr("data-launch-app-error-link");if(!r){var i=o(e).parents("[data-launch-app-error-link]:eq(0)");i.length>0&&(r=i.attr("data-launch-app-error-link"))}if(r&&"string"==typeof r&&r.length){var a=D(r,"position:absolute;left:0;z-index:999;","a");o(e).append(a)}}}))}}function z(){k.log("appBeforeDestroy",z),window.LAUNCH_APP_LOAD=null,window.LAUNCH_APP_HIDE_WEIXIN_BROWSER=null}return window.LAUNCH_APP_UPDATE=F,window.LAUNCH_APP_BEFORE_DESTROY=z,window.LAUNCH_APP_SHOW_WEIXIN_TO_BROWSER=B,{LAUNCH_APP_UPDATE:F,LAUNCH_APP_BEFORE_DESTROY:z,LAUNCH_APP_SHOW_WEIXIN_TO_BROWSER:B,LAUNCH_APP_SHARE_TIMELINE:function(t){k.log("opt",t)},LAUNCH_APP_SHARE_APP_MESSAGE:function(t){k.log("opt",t)},start:F,update:F,destroy:z}};export{na as default};
|