@revues/web-sdk-core 1.4.2 → 1.4.4
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/web-sdk-core.js +3 -3
- package/package.json +4 -4
package/dist/web-sdk-core.js
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
* (c) 2024-2024 Alex
|
4
4
|
* Released under the MIT License.
|
5
5
|
*/
|
6
|
-
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(require("events")):"function"==typeof define&&define.amd?define(["events"],n):n((e="undefined"!=typeof globalThis?globalThis:e||self).events)}(this,(function(e){"use strict";function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var t=n(e);!function(){function e(e,t,o){return t=d(t),function(e,n){if(n&&("object"==typeof n||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return p(e)}(e,n()?Reflect.construct(t,o||[],d(e).constructor):t.apply(e,o))}function n(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(n=function(){return!!e})()}function t(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,o)}return t}function o(e){for(var n=1;n<arguments.length;n++){var o=null!=arguments[n]?arguments[n]:{};n%2?t(Object(o),!0).forEach((function(n){s(e,n,o[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):t(Object(o)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(o,n))}))}return e}function r(e){var n=function(e,n){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var o=t.call(e,"string");if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof n?n:String(n)}function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function a(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function c(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,r(o.key),o)}}function u(e,n,t){return n&&c(e.prototype,n),t&&c(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function s(e,n,t){return(n=r(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function l(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&f(e,n)}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}function f(e,n){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},f(e,n)}function p(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function v(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var o,r,i,a,c=[],u=!0,s=!1;try{if(i=(t=t.call(e)).next,0===n){if(Object(t)!==t)return;u=!1}else for(;!(u=(o=i.call(t)).done)&&(c.push(o.value),c.length!==n);u=!0);}catch(e){s=!0,r=e}finally{try{if(!u&&null!=t.return&&(a=t.return(),Object(a)!==a))return}finally{if(s)throw r}}return c}}(e,n)||h(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(e,n){if(e){if("string"==typeof e)return g(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?g(e,n):void 0}}function g(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,o=new Array(n);t<n;t++)o[t]=e[t];return o}function m(){}var w,y=function(e){return e};function b(e){return e()}function _(){return Object.create(null)}function A(e){e.forEach(b)}function x(e){return"function"==typeof e}function k(e,n){return e!=e?n==n:e!==n||e&&"object"===i(e)||"function"==typeof e}function S(e,n){return w||(w=document.createElement("a")),w.href=n,e===w.href}function I(e){return null==e?"":e}var C="undefined"!=typeof window,T=C?function(){return window.performance.now()}:function(){return Date.now()},M=C?function(e){return requestAnimationFrame(e)}:m,P=new Set;function E(e){P.forEach((function(n){n.c(e)||(P.delete(n),n.f())})),0!==P.size&&M(E)}function B(e,n){e.appendChild(n)}function O(e){if(!e)return document;var n=e.getRootNode?e.getRootNode():e.ownerDocument;return n&&n.host?n:e.ownerDocument}function L(e){var n=D("style");return function(e,n){B(e.head||e,n),n.sheet}(O(e),n),n.sheet}function F(e,n,t){e.insertBefore(n,t||null)}function R(e){e.parentNode&&e.parentNode.removeChild(e)}function H(e,n){for(var t=0;t<e.length;t+=1)e[t]&&e[t].d(n)}function D(e){return document.createElement(e)}function j(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function N(e){return document.createTextNode(e)}function G(){return N(" ")}function W(){return N("")}function $(e,n,t,o){return e.addEventListener(n,t,o),function(){return e.removeEventListener(n,t,o)}}function V(e,n,t){null==t?e.removeAttribute(n):e.getAttribute(n)!==t&&e.setAttribute(n,t)}function q(e,n){n=""+n,e.wholeText!==n&&(e.data=n)}function K(e,n){e.value=null==n?"":n}function z(e,n,t,o){null===t?e.style.removeProperty(n):e.style.setProperty(n,t,o?"important":"")}var U,Q=new Map,J=0;function Z(e,n,t,o,r,i,a){for(var c=arguments.length>7&&void 0!==arguments[7]?arguments[7]:0,u=16.666/o,s="{\n",l=0;l<=1;l+=u){var d=n+(t-n)*i(l);s+=100*l+"%{".concat(a(d,1-d),"}\n")}var f=s+"100% {".concat(a(t,1-t),"}\n}"),p="__svelte_".concat(function(e){for(var n=5381,t=e.length;t--;)n=(n<<5)-n^e.charCodeAt(t);return n>>>0}(f),"_").concat(c),v=O(e),h=Q.get(v)||function(e,n){var t={stylesheet:L(n),rules:{}};return Q.set(e,t),t}(v,e),g=h.stylesheet,m=h.rules;m[p]||(m[p]=!0,g.insertRule("@keyframes ".concat(p," ").concat(f),g.cssRules.length));var w=e.style.animation||"";return e.style.animation="".concat(w?"".concat(w,", "):"").concat(p," ").concat(o,"ms linear ").concat(r,"ms 1 both"),J+=1,p}function X(e){U=e}var Y=[],ee=[],ne=[],te=[],oe=Promise.resolve(),re=!1;function ie(e){ne.push(e)}var ae,ce=new Set,ue=0;function se(){var e=U;do{for(;ue<Y.length;){var n=Y[ue];ue++,X(n),le(n.$$)}for(X(null),Y.length=0,ue=0;ee.length;)ee.pop()();for(var t=0;t<ne.length;t+=1){var o=ne[t];ce.has(o)||(ce.add(o),o())}ne.length=0}while(Y.length);for(;te.length;)te.pop()();re=!1,ce.clear(),X(e)}function le(e){if(null!==e.fragment){e.update(),A(e.before_update);var n=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,n),e.after_update.forEach(ie)}}function de(e,n,t){e.dispatchEvent(function(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=t.bubbles,r=void 0!==o&&o,i=t.cancelable,a=void 0!==i&&i,c=document.createEvent("CustomEvent");return c.initCustomEvent(e,r,a,n),c}("".concat(n?"intro":"outro").concat(t)))}var fe,pe=new Set;function ve(){fe={r:0,c:[],p:fe}}function he(){fe.r||A(fe.c),fe=fe.p}function ge(e,n){e&&e.i&&(pe.delete(e),e.i(n))}function me(e,n,t,o){if(e&&e.o){if(pe.has(e))return;pe.add(e),fe.c.push((function(){pe.delete(e),o&&(t&&e.d(1),o())})),e.o(n)}else o&&o()}var we={duration:0};function ye(e,n,t,o){var r={direction:"both"},i=n(e,t,r),a=o?0:1,c=null,u=null,s=null;function l(){s&&function(e,n){var t=(e.style.animation||"").split(", "),o=t.filter(n?function(e){return e.indexOf(n)<0}:function(e){return-1===e.indexOf("__svelte")}),r=t.length-o.length;r&&(e.style.animation=o.join(", "),(J-=r)||M((function(){J||(Q.forEach((function(e){var n=e.stylesheet.ownerNode;n&&R(n)})),Q.clear())})))}(e,s)}function d(e,n){var t=e.b-a;return n*=Math.abs(t),{a:a,b:e.b,d:t,duration:n,start:e.start,end:e.start+n,group:e.group}}function f(n){var t,o=i||we,r=o.delay,f=void 0===r?0:r,p=o.duration,v=void 0===p?300:p,h=o.easing,g=void 0===h?y:h,w=o.tick,b=void 0===w?m:w,_=o.css,x={start:T()+f,b:n};n||(x.group=fe,fe.r+=1),c||u?u=x:(_&&(l(),s=Z(e,a,n,v,f,g,_)),n&&b(0,1),c=d(x,v),ie((function(){return de(e,n,"start")})),t=function(n){if(u&&n>u.start&&(c=d(u,v),u=null,de(e,c.b,"start"),_&&(l(),s=Z(e,a,c.b,c.duration,0,g,i.css))),c)if(n>=c.end)b(a=c.b,1-a),de(e,c.b,"end"),u||(c.b?l():--c.group.r||A(c.group.c)),c=null;else if(n>=c.start){var t=n-c.start;a=c.a+c.d*g(t/c.duration),b(a,1-a)}return!(!c&&!u)},0===P.size&&M(E),new Promise((function(e){P.add({c:t,f:e})})))}return{run:function(e){x(i)?(ae||(ae=Promise.resolve()).then((function(){ae=null})),ae).then((function(){i=i(r),f(e)})):f(e)},end:function(){l(),c=u=null}}}function be(e){e&&e.c()}function _e(e,n,t,o){var r=e.$$,i=r.fragment,a=r.after_update;i&&i.m(n,t),o||ie((function(){var n,t=e.$$.on_mount.map(b).filter(x);e.$$.on_destroy?(n=e.$$.on_destroy).push.apply(n,function(e){return function(e){if(Array.isArray(e))return g(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||h(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(t)):A(t),e.$$.on_mount=[]})),a.forEach(ie)}function Ae(e,n){var t=e.$$;null!==t.fragment&&(A(t.on_destroy),t.fragment&&t.fragment.d(n),t.on_destroy=t.fragment=null,t.ctx=[])}function xe(e,n,t,o,r,i,a){var c=arguments.length>7&&void 0!==arguments[7]?arguments[7]:[-1],u=U;X(e);var s=e.$$={fragment:null,ctx:[],props:i,update:m,not_equal:r,bound:_(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(n.context||(u?u.$$.context:[])),callbacks:_(),dirty:c,skip_bound:!1,root:n.target||u.$$.root};a&&a(s.root);var l=!1;if(s.ctx=t?t(e,n.props||{},(function(n,t){var o=!(arguments.length<=2)&&arguments.length-2?arguments.length<=2?void 0:arguments[2]:t;return s.ctx&&r(s.ctx[n],s.ctx[n]=o)&&(!s.skip_bound&&s.bound[n]&&s.bound[n](o),l&&function(e,n){-1===e.$$.dirty[0]&&(Y.push(e),re||(re=!0,oe.then(se)),e.$$.dirty.fill(0)),e.$$.dirty[n/31|0]|=1<<n%31}(e,n)),t})):[],s.update(),l=!0,A(s.before_update),s.fragment=!!o&&o(s.ctx),n.target){if(n.hydrate){var d=function(e){return Array.from(e.childNodes)}(n.target);s.fragment&&s.fragment.l(d),d.forEach(R)}else s.fragment&&s.fragment.c();n.intro&&ge(e.$$.fragment),_e(e,n.target,n.anchor,n.customElement),se()}X(u)}var ke=function(){function e(){a(this,e)}return u(e,[{key:"$destroy",value:function(){Ae(this,1),this.$destroy=m}},{key:"$on",value:function(e,n){if(!x(n))return m;var t=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return t.push(n),function(){var e=t.indexOf(n);-1!==e&&t.splice(e,1)}}},{key:"$set",value:function(e){var n;this.$$set&&(n=e,0!==Object.keys(n).length)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}]),e}();function Se(e){var n=e-1;return n*n*n+1}function Ie(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.delay,o=void 0===t?0:t,r=n.duration,i=void 0===r?400:r,a=n.easing,c=void 0===a?y:a,u=+getComputedStyle(e).opacity;return{delay:o,duration:i,easing:c,css:function(e){return"opacity: ".concat(e*u)}}}function Ce(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.delay,o=void 0===t?0:t,r=n.duration,i=void 0===r?400:r,a=n.easing,c=void 0===a?Se:a,u=getComputedStyle(e),s=+u.opacity,l=parseFloat(u.height),d=parseFloat(u.paddingTop),f=parseFloat(u.paddingBottom),p=parseFloat(u.marginTop),v=parseFloat(u.marginBottom),h=parseFloat(u.borderTopWidth),g=parseFloat(u.borderBottomWidth);return{delay:o,duration:i,easing:c,css:function(e){return"overflow: hidden;"+"opacity: ".concat(Math.min(20*e,1)*s,";")+"height: ".concat(e*l,"px;")+"padding-top: ".concat(e*d,"px;")+"padding-bottom: ".concat(e*f,"px;")+"margin-top: ".concat(e*p,"px;")+"margin-bottom: ".concat(e*v,"px;")+"border-top-width: ".concat(e*h,"px;")+"border-bottom-width: ".concat(e*g,"px;")}}}function Te(e){var n,t,o;return{c:function(){V(n=D("div"),"class","mask svelte-1ekfzc9"),z(n,"background-color",e[0]),z(n,"z-index",e[1])},m:function(r,i){F(r,n,i),t||(o=$(n,"click",e[3]),t=!0)},p:function(e,t){var o=v(t,1)[0];1&o&&z(n,"background-color",e[0]),2&o&&z(n,"z-index",e[1])},i:m,o:m,d:function(e){e&&R(n),t=!1,o()}}}function Me(e,n,t){var o=n.bgColor,r=void 0===o?"transparent":o,i=n.zIndex,a=void 0===i?3:i,c=n.onClick;return e.$$set=function(e){"bgColor"in e&&t(0,r=e.bgColor),"zIndex"in e&&t(1,a=e.zIndex),"onClick"in e&&t(2,c=e.onClick)},[r,a,c,function(){c&&c()}]}var Pe=function(n){function t(n){var o;return a(this,t),xe(p(o=e(this,t)),n,Me,Te,k,{bgColor:0,zIndex:1,onClick:2}),o}return l(t,n),u(t)}(ke);function Ee(e,n,t){var o=e.slice();return o[8]=n[t],o[10]=t,o}function Be(e){var n,t,o,r,i,a,c,u,s,l,d,f;n=new Pe({props:{bgColor:"rgba(0, 0, 0, .1)"}});for(var p=""!=e[0]&&Oe(e),v=e[1],h=[],g=0;g<v.length;g+=1)h[g]=Le(Ee(e,v,g));return{c:function(){be(n.$$.fragment),t=G(),o=D("div"),p&&p.c(),r=G(),i=D("div");for(var e=0;e<h.length;e+=1)h[e].c();a=G(),c=D("div"),(u=D("div")).textContent="取消",V(i,"class","body svelte-1t2ya5t"),V(u,"class","button svelte-1t2ya5t"),V(c,"class","footer svelte-1t2ya5t"),V(o,"class","action-sheet svelte-1t2ya5t")},m:function(s,v){_e(n,s,v),F(s,t,v),F(s,o,v),p&&p.m(o,null),B(o,r),B(o,i);for(var g=0;g<h.length;g+=1)h[g].m(i,null);B(o,a),B(o,c),B(c,u),l=!0,d||(f=$(u,"click",e[7]),d=!0)},p:function(e,n){if(""!=e[0]?p?p.p(e,n):((p=Oe(e)).c(),p.m(o,r)):p&&(p.d(1),p=null),22&n){var t;for(v=e[1],t=0;t<v.length;t+=1){var a=Ee(e,v,t);h[t]?h[t].p(a,n):(h[t]=Le(a),h[t].c(),h[t].m(i,null))}for(;t<h.length;t+=1)h[t].d(1);h.length=v.length}},i:function(e){l||(ge(n.$$.fragment,e),ie((function(){s||(s=ye(o,Ce,{duration:300},!0)),s.run(1)})),l=!0)},o:function(e){me(n.$$.fragment,e),s||(s=ye(o,Ce,{duration:300},!1)),s.run(0),l=!1},d:function(e){Ae(n,e),e&&R(t),e&&R(o),p&&p.d(),H(h,e),e&&s&&s.end(),d=!1,f()}}}function Oe(e){var n,t,o;return{c:function(){n=D("div"),t=D("span"),o=N(e[0]),V(t,"class","title svelte-1t2ya5t"),V(n,"class","header svelte-1t2ya5t")},m:function(e,r){F(e,n,r),B(n,t),B(t,o)},p:function(e,n){1&n&&q(o,e[0])},d:function(e){e&&R(n)}}}function Le(e){var n,t,o,r,i,a,c=e[8]+"";function u(){return e[6](e[10])}return{c:function(){n=D("div"),t=D("span"),o=N(c),r=G(),V(t,"class","button-text svelte-1t2ya5t"),V(n,"class","button item svelte-1t2ya5t"),z(n,"color",e[2])},m:function(e,c){F(e,n,c),B(n,t),B(t,o),B(n,r),i||(a=$(n,"click",u),i=!0)},p:function(t,r){e=t,2&r&&c!==(c=e[8]+"")&&q(o,c),4&r&&z(n,"color",e[2])},d:function(e){e&&R(n),i=!1,a()}}}function Fe(e){var n,t,o=e[3]&&Be(e);return{c:function(){o&&o.c(),n=W()},m:function(e,r){o&&o.m(e,r),F(e,n,r),t=!0},p:function(e,t){var r=v(t,1)[0];e[3]?o?(o.p(e,r),8&r&&ge(o,1)):((o=Be(e)).c(),ge(o,1),o.m(n.parentNode,n)):o&&(ve(),me(o,1,1,(function(){o=null})),he())},i:function(e){t||(ge(o),t=!0)},o:function(e){me(o),t=!1},d:function(e){o&&o.d(e),e&&R(n)}}}function Re(e,n,t){var o=n.alertText,r=void 0===o?"":o,i=n.itemList,a=void 0===i?[]:i,c=n.itemColor,u=void 0===c?"#000":c,s=n.show,l=void 0!==s&&s,d=n.onSelect,f=n.onCancel;return e.$$set=function(e){"alertText"in e&&t(0,r=e.alertText),"itemList"in e&&t(1,a=e.itemList),"itemColor"in e&&t(2,u=e.itemColor),"show"in e&&t(3,l=e.show),"onSelect"in e&&t(4,d=e.onSelect),"onCancel"in e&&t(5,f=e.onCancel)},[r,a,u,l,d,f,function(e){d&&d(e)},function(){f&&f()}]}var He=function(n){function t(n){var o;return a(this,t),xe(p(o=e(this,t)),n,Re,Fe,k,{alertText:0,itemList:1,itemColor:2,show:3,onSelect:4,onCancel:5}),o}return l(t,n),u(t)}(ke);function De(e,n,t){var o=e.slice();return o[3]=n[t],o}function je(e){var n;return{c:function(){V(n=D("div"),"class","leaf svelte-cis7d5"),z(n,"color",e[0]),z(n,"opacity",1-e[3]/16),z(n,"transform","rotate(".concat(30*(e[3]+1),"deg)"))},m:function(e,t){F(e,n,t)},p:function(e,t){1&t&&z(n,"color",e[0])},d:function(e){e&&R(n)}}}function Ne(e){for(var n,t=e[2],o=[],r=0;r<t.length;r+=1)o[r]=je(De(e,t,r));return{c:function(){n=D("div");for(var t=0;t<o.length;t+=1)o[t].c();V(n,"class","spinner svelte-cis7d5"),z(n,"width",e[1]+"px"),z(n,"height",e[1]+"px")},m:function(e,t){F(e,n,t);for(var r=0;r<o.length;r+=1)o[r].m(n,null)},p:function(e,r){var i=v(r,1)[0];if(5&i){var a;for(t=e[2],a=0;a<t.length;a+=1){var c=De(e,t,a);o[a]?o[a].p(c,i):(o[a]=je(c),o[a].c(),o[a].m(n,null))}for(;a<o.length;a+=1)o[a].d(1);o.length=t.length}2&i&&z(n,"width",e[1]+"px"),2&i&&z(n,"height",e[1]+"px")},i:m,o:m,d:function(e){e&&R(n),H(o,e)}}}function Ge(e,n,t){var o=new Array(12).fill(Math.random()).map((function(e,n){return n})),r=n.color,i=void 0===r?"#fff":r,a=n.size,c=void 0===a?30:a;return e.$$set=function(e){"color"in e&&t(0,i=e.color),"size"in e&&t(1,c=e.size)},[i,c,o]}var We=function(n){function t(n){var o;return a(this,t),xe(p(o=e(this,t)),n,Ge,Ne,k,{color:0,size:1}),o}return l(t,n),u(t)}(ke),$e={success:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAAXNSR0IArs4c6QAAD1RJREFUeF7tnU2sJUUVx8+5d4iyYIGaiBM3YNd9C5+4cGNcGIkLEyNujHx/f6swqMOAMiDzAQMzfM3wNTB8w8AwaDSRxBg3uHWFTkycW1WPkEBITDRhgQlj5t7jq0m/8c17777b3be763T3vxMC4XWd86//qV+q+nZ3NRMOOAAHJjrA8AYOwIHJDgAQjA44sI4DAATDAw4AEIwBOFDMAcwgxXxDq444AEA6Umh0s5gDAKSYb2jVEQcASEcKjW4WcwCAFPMNrTriAADpSKHRz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I6Ofnbrrbf+Wd5iBfuTKyClfCsA6OMgdHXNvNoNRKRL2+becgckR0j0BqerTXyQlrvKFXOwaNGivrlz5+oniKcAwMYm00fEM4UQhZV/LQQQLVAcxwci4kUAoO9Vs7SmLp9JRNdnMRLG5q9Ao9GYg4inIOJHDXj7L2Y+KYqi+w3Y6tpEYYDoiEZGRqYNDAxoSI7tOsI/d3xKn6fOzLebfhmUIpYwpAcFli5dukd/f/8hzLwLAMzoYSgg4m+Y+a5Wq3Xb8PDwkl7GmuhbKCBjATcajSNrtdqeAKCP913vZ8nM/CVE1FCEPeMmZrxkG1LKHRBxV2beFQBmdv7rXyuslcy8sq+vT/9BvEsI8duywi4FkPHJNhqNWX19fRoUSpLk5b6+vpfG/v/aa689NTw8/HJZ4gS/xSiwcuXK6atWrZrZarX+d9WqVc/NmTPn1WI8T+6ldEAmDzH0CAqUp0AApDztg2cHFAiAODBJIcTyFAiAlKd98OyAAgEQByYphFieAgGQ8rQPnh1QIADiwCSFEMtTIABSnvbBswMKBEAcmKQQYnkKBEDK0z54dkCBAIgDkxRCLE+BAEh52gfPDigQAHFgkkKI5SkQAClP++DZAQUCIA5MUgixPAUCIOVpHzw7oEAAxIFJCiGWp0AApDztg2cHFPh/ZXMiMqI9WGcAAAAASUVORK5CYII="};function Ve(e){var n,t,o,r,i,a,c,u=e[2]&&qe(),s=[Ue,ze,Ke],l=[];function d(e,n){return null!=e[1]?0:"loading"===e[0]?1:null!=$e[e[0]]?2:-1}~(o=d(e))&&(r=l[o]=s[o](e));var f=""!=e[3]&&Qe(e);return{c:function(){u&&u.c(),n=G(),t=D("div"),r&&r.c(),i=G(),f&&f.c(),V(t,"class","toast svelte-adfvqi")},m:function(e,r){u&&u.m(e,r),F(e,n,r),F(e,t,r),~o&&l[o].m(t,null),B(t,i),f&&f.m(t,null),c=!0},p:function(e,a){e[2]?u?4&a&&ge(u,1):((u=qe()).c(),ge(u,1),u.m(n.parentNode,n)):u&&(ve(),me(u,1,1,(function(){u=null})),he());var c=o;(o=d(e))===c?~o&&l[o].p(e,a):(r&&(ve(),me(l[c],1,1,(function(){l[c]=null})),he()),~o?((r=l[o])?r.p(e,a):(r=l[o]=s[o](e)).c(),ge(r,1),r.m(t,i)):r=null),""!=e[3]?f?f.p(e,a):((f=Qe(e)).c(),f.m(t,null)):f&&(f.d(1),f=null)},i:function(e){c||(ge(u),ge(r),ie((function(){a||(a=ye(t,Ie,{duration:100},!0)),a.run(1)})),c=!0)},o:function(e){me(u),me(r),a||(a=ye(t,Ie,{duration:100},!1)),a.run(0),c=!1},d:function(e){u&&u.d(e),e&&R(n),e&&R(t),~o&&l[o].d(),f&&f.d(),e&&a&&a.end()}}}function qe(e){var n,t;return n=new Pe({props:{bgColor:"rgba(0, 0, 0, .1)"}}),{c:function(){be(n.$$.fragment)},m:function(e,o){_e(n,e,o),t=!0},i:function(e){t||(ge(n.$$.fragment,e),t=!0)},o:function(e){me(n.$$.fragment,e),t=!1},d:function(e){Ae(n,e)}}}function Ke(e){var n,t;return{c:function(){V(n=D("img"),"class","icon svelte-adfvqi"),V(n,"alt","img"),S(n.src,t=$e[e[0]])||V(n,"src",t)},m:function(e,t){F(e,n,t)},p:function(e,o){1&o&&!S(n.src,t=$e[e[0]])&&V(n,"src",t)},i:m,o:m,d:function(e){e&&R(n)}}}function ze(e){var n,t,o;return t=new We({}),{c:function(){n=D("div"),be(t.$$.fragment),V(n,"class","spinner-wrapper svelte-adfvqi")},m:function(e,r){F(e,n,r),_e(t,n,null),o=!0},p:m,i:function(e){o||(ge(t.$$.fragment,e),o=!0)},o:function(e){me(t.$$.fragment,e),o=!1},d:function(e){e&&R(n),Ae(t)}}}function Ue(e){var n,t;return{c:function(){V(n=D("img"),"class","icon svelte-adfvqi"),V(n,"alt","img"),S(n.src,t=e[1])||V(n,"src",t)},m:function(e,t){F(e,n,t)},p:function(e,o){2&o&&!S(n.src,t=e[1])&&V(n,"src",t)},i:m,o:m,d:function(e){e&&R(n)}}}function Qe(e){var n,t,o;return{c:function(){n=D("span"),t=N(e[3]),V(n,"class",o=I("title ".concat(e[1]||$e[e[0]]?"hasIcon":""))+" svelte-adfvqi")},m:function(e,o){F(e,n,o),B(n,t)},p:function(e,r){8&r&&q(t,e[3]),3&r&&o!==(o=I("title ".concat(e[1]||$e[e[0]]?"hasIcon":""))+" svelte-adfvqi")&&V(n,"class",o)},d:function(e){e&&R(n)}}}function Je(e){var n,t,o=e[4]&&Ve(e);return{c:function(){o&&o.c(),n=W()},m:function(e,r){o&&o.m(e,r),F(e,n,r),t=!0},p:function(e,t){var r=v(t,1)[0];e[4]?o?(o.p(e,r),16&r&&ge(o,1)):((o=Ve(e)).c(),ge(o,1),o.m(n.parentNode,n)):o&&(ve(),me(o,1,1,(function(){o=null})),he())},i:function(e){t||(ge(o),t=!0)},o:function(e){me(o),t=!1},d:function(e){o&&o.d(e),e&&R(n)}}}function Ze(e,n,t){var o=n.icon,r=void 0===o?"none":o,i=n.image,a=n.mask,c=void 0!==a&&a,u=n.title,s=void 0===u?"":u,l=n.show,d=void 0!==l&&l;return e.$$set=function(e){"icon"in e&&t(0,r=e.icon),"image"in e&&t(1,i=e.image),"mask"in e&&t(2,c=e.mask),"title"in e&&t(3,s=e.title),"show"in e&&t(4,d=e.show)},[r,i,c,s,d]}var Xe=function(n){function t(n){var o;return a(this,t),xe(p(o=e(this,t)),n,Ze,Je,k,{icon:0,image:1,mask:2,title:3,show:4}),o}return l(t,n),u(t)}(ke);function Ye(e){var n,t;return n=new Xe({props:{show:e[2],mask:e[1],title:e[0],icon:"loading"}}),{c:function(){be(n.$$.fragment)},m:function(e,o){_e(n,e,o),t=!0},p:function(e,t){var o=v(t,1)[0],r={};4&o&&(r.show=e[2]),2&o&&(r.mask=e[1]),1&o&&(r.title=e[0]),n.$set(r)},i:function(e){t||(ge(n.$$.fragment,e),t=!0)},o:function(e){me(n.$$.fragment,e),t=!1},d:function(e){Ae(n,e)}}}function en(e,n,t){var o=n.title,r=void 0===o?"":o,i=n.mask,a=void 0!==i&&i,c=n.show,u=void 0!==c&&c;return e.$$set=function(e){"title"in e&&t(0,r=e.title),"mask"in e&&t(1,a=e.mask),"show"in e&&t(2,u=e.show)},[r,a,u]}var nn=function(n){function t(n){var o;return a(this,t),xe(p(o=e(this,t)),n,en,Ye,k,{title:0,mask:1,show:2}),o}return l(t,n),u(t)}(ke);function tn(e){var n,t,o;return{c:function(){V(n=D("input"),"class","input svelte-1fikcsw"),V(n,"maxlength",e[3]),V(n,"placeholder",e[1])},m:function(r,i){F(r,n,i),K(n,e[0]),t||(o=[$(n,"input",e[7]),$(n,"input",e[8])],t=!0)},p:function(e,t){8&t&&V(n,"maxlength",e[3]),2&t&&V(n,"placeholder",e[1]),1&t&&n.value!==e[0]&&K(n,e[0])},d:function(e){e&&R(n),t=!1,A(o)}}}function on(e){var n,t,o;return{c:function(){V(n=D("textarea"),"class","input svelte-1fikcsw"),V(n,"maxlength",e[3]),V(n,"placeholder",e[1])},m:function(r,i){F(r,n,i),K(n,e[0]),t||(o=[$(n,"input",e[5]),$(n,"input",e[6])],t=!0)},p:function(e,t){8&t&&V(n,"maxlength",e[3]),2&t&&V(n,"placeholder",e[1]),1&t&&K(n,e[0])},d:function(e){e&&R(n),t=!1,A(o)}}}function rn(e){var n;function t(e,n){return e[2]?on:tn}var o=t(e),r=o(e);return{c:function(){r.c(),n=W()},m:function(e,t){r.m(e,t),F(e,n,t)},p:function(e,i){var a=v(i,1)[0];o===(o=t(e))&&r?r.p(e,a):(r.d(1),(r=o(e))&&(r.c(),r.m(n.parentNode,n)))},i:m,o:m,d:function(e){r.d(e),e&&R(n)}}}function an(e,n,t){var o=n.value,r=void 0===o?"":o,i=n.placeholderText,a=void 0===i?"":i,c=n.muti,u=void 0!==c&&c,s=n.maxLength,l=n.onInput;return e.$$set=function(e){"value"in e&&t(0,r=e.value),"placeholderText"in e&&t(1,a=e.placeholderText),"muti"in e&&t(2,u=e.muti),"maxLength"in e&&t(3,s=e.maxLength),"onInput"in e&&t(4,l=e.onInput)},[r,a,u,s,l,function(){r=this.value,t(0,r)},function(){l&&l(r)},function(){r=this.value,t(0,r)},function(){l&&l(r)}]}var cn=function(n){function t(n){var o;return a(this,t),xe(p(o=e(this,t)),n,an,rn,k,{value:0,placeholderText:1,muti:2,maxLength:3,onInput:4}),o}return l(t,n),u(t)}(ke);function un(e){var n,t,o,r,i,a,c,u,s,l,d,f,p,v,h,g,m,w,y;n=new Pe({props:{bgColor:"rgba(0, 0, 0, .1)"}});var b=[ln,sn],_=[];function A(e,n){return e[7]?0:1}s=A(e),l=_[s]=b[s](e);var x=e[2]&&dn(e);return{c:function(){be(n.$$.fragment),t=G(),o=D("div"),r=D("div"),i=D("span"),a=N(e[1]),c=G(),u=D("div"),l.c(),d=G(),f=D("div"),x&&x.c(),p=G(),v=D("div"),h=N(e[5]),V(i,"class","title svelte-lduamy"),V(r,"class","header svelte-lduamy"),V(u,"class","body svelte-lduamy"),V(v,"class","button svelte-lduamy"),z(v,"color",e[6]),V(f,"class","footer svelte-lduamy"),V(o,"class","modal svelte-lduamy")},m:function(l,g){_e(n,l,g),F(l,t,g),F(l,o,g),B(o,r),B(r,i),B(i,a),B(o,c),B(o,u),_[s].m(u,null),B(o,d),B(o,f),x&&x.m(f,null),B(f,p),B(f,v),B(v,h),m=!0,w||(y=$(v,"click",e[14]),w=!0)},p:function(e,n){(!m||2&n)&&q(a,e[1]);var t=s;(s=A(e))===t?_[s].p(e,n):(ve(),me(_[t],1,1,(function(){_[t]=null})),he(),(l=_[s])?l.p(e,n):(l=_[s]=b[s](e)).c(),ge(l,1),l.m(u,null)),e[2]?x?x.p(e,n):((x=dn(e)).c(),x.m(f,p)):x&&(x.d(1),x=null),(!m||32&n)&&q(h,e[5]),64&n&&z(v,"color",e[6])},i:function(e){m||(ge(n.$$.fragment,e),ge(l),ie((function(){g||(g=ye(o,Ie,{duration:100},!0)),g.run(1)})),m=!0)},o:function(e){me(n.$$.fragment,e),me(l),g||(g=ye(o,Ie,{duration:100},!1)),g.run(0),m=!1},d:function(e){Ae(n,e),e&&R(t),e&&R(o),_[s].d(),x&&x.d(),e&&g&&g.end(),w=!1,y()}}}function sn(e){var n,t;return{c:function(){n=D("div"),t=N(e[0]),V(n,"class","body-text svelte-lduamy")},m:function(e,o){F(e,n,o),B(n,t)},p:function(e,n){1&n&&q(t,e[0])},i:m,o:m,d:function(e){e&&R(n)}}}function ln(e){var n,t,o;return t=new cn({props:{muti:!0,value:e[0],onInput:e[12],placeholderText:e[8]}}),{c:function(){n=D("div"),be(t.$$.fragment),V(n,"class","input-wrapper svelte-lduamy")},m:function(e,r){F(e,n,r),_e(t,n,null),o=!0},p:function(e,n){var o={};1&n&&(o.value=e[0]),1&n&&(o.onInput=e[12]),256&n&&(o.placeholderText=e[8]),t.$set(o)},i:function(e){o||(ge(t.$$.fragment,e),o=!0)},o:function(e){me(t.$$.fragment,e),o=!1},d:function(e){e&&R(n),Ae(t)}}}function dn(e){var n,t,o,r;return{c:function(){n=D("div"),t=N(e[3]),V(n,"class","button cancel svelte-lduamy"),z(n,"color",e[4])},m:function(i,a){F(i,n,a),B(n,t),o||(r=$(n,"click",e[13]),o=!0)},p:function(e,o){8&o&&q(t,e[3]),16&o&&z(n,"color",e[4])},d:function(e){e&&R(n),o=!1,r()}}}function fn(e){var n,t,o=e[9]&&un(e);return{c:function(){o&&o.c(),n=W()},m:function(e,r){o&&o.m(e,r),F(e,n,r),t=!0},p:function(e,t){var r=v(t,1)[0];e[9]?o?(o.p(e,r),512&r&&ge(o,1)):((o=un(e)).c(),ge(o,1),o.m(n.parentNode,n)):o&&(ve(),me(o,1,1,(function(){o=null})),he())},i:function(e){t||(ge(o),t=!0)},o:function(e){me(o),t=!1},d:function(e){o&&o.d(e),e&&R(n)}}}function pn(e,n,t){var o=n.title,r=void 0===o?"标题":o,i=n.content,a=void 0===i?"":i,c=n.showCancel,u=void 0===c||c,s=n.cancelText,l=void 0===s?"取消":s,d=n.cancelColor,f=void 0===d?"#000":d,p=n.confirmText,v=void 0===p?"确定":p,h=n.confirmColor,g=void 0===h?"#576B95":h,m=n.editable,w=void 0===m||m,y=n.placeholderText,b=void 0===y?"":y,_=n.show,A=void 0!==_&&_,x=n.onConfirm,k=n.onCancel;return e.$$set=function(e){"title"in e&&t(1,r=e.title),"content"in e&&t(0,a=e.content),"showCancel"in e&&t(2,u=e.showCancel),"cancelText"in e&&t(3,l=e.cancelText),"cancelColor"in e&&t(4,f=e.cancelColor),"confirmText"in e&&t(5,v=e.confirmText),"confirmColor"in e&&t(6,g=e.confirmColor),"editable"in e&&t(7,w=e.editable),"placeholderText"in e&&t(8,b=e.placeholderText),"show"in e&&t(9,A=e.show),"onConfirm"in e&&t(10,x=e.onConfirm),"onCancel"in e&&t(11,k=e.onCancel)},[a,r,u,l,f,v,g,w,b,A,x,k,function(e){t(0,a=e)},function(){k&&k(a)},function(){x&&x(a)}]}var vn=function(n){function t(n){var o;return a(this,t),xe(p(o=e(this,t)),n,pn,fn,k,{title:1,content:0,showCancel:2,cancelText:3,cancelColor:4,confirmText:5,confirmColor:6,editable:7,placeholderText:8,show:9,onConfirm:10,onCancel:11}),o}return l(t,n),u(t)}(ke);function hn(e){var n,t,o,r,i;return{c:function(){n=D("div"),t=j("svg"),V(o=j("polyline"),"points","15 18 9 12 15 6"),V(t,"xmlns","http://www.w3.org/2000/svg"),V(t,"width","18px"),V(t,"height","18px"),V(t,"fill","none"),V(t,"viewBox","0 0 24 24"),V(t,"stroke","currentColor"),V(t,"stroke-width","2"),V(t,"stroke-linecap","round"),V(t,"stroke-linejoin","round"),z(t,"color",e[1]),V(n,"role","button"),V(n,"class","btn-back svelte-o95f8l")},m:function(a,c){F(a,n,c),B(n,t),B(t,o),r||(i=$(n,"click",e[2]),r=!0)},p:function(e,n){2&v(n,1)[0]&&z(t,"color",e[1])},i:m,o:m,d:function(e){e&&R(n),r=!1,i()}}}function gn(e,n,t){var o=n.onClick,r=n.color,i=void 0===r?"#000":r;return e.$$set=function(e){"onClick"in e&&t(0,o=e.onClick),"color"in e&&t(1,i=e.color)},[o,i,function(){o&&o()}]}var mn=function(n){function t(n){var o;return a(this,t),xe(p(o=e(this,t)),n,gn,hn,k,{onClick:0,color:1}),o}return l(t,n),u(t)}(ke);function wn(e){var n,t,o,r,i,a,c,u=e[4]&&yn(e),s=e[0]&&bn();return{c:function(){n=D("div"),t=D("div"),u&&u.c(),o=G(),s&&s.c(),r=G(),i=D("div"),a=N(e[1]),V(t,"class","nav-action-btns svelte-1ouzypl"),V(i,"class","nav-title svelte-1ouzypl"),z(i,"color",e[2]),V(n,"class","nav svelte-1ouzypl"),z(n,"background-color",e[3]),z(n,"transition-duration","".concat(e[6].duration,"ms")),z(n,"transition-timing-function",e[6].timingFunc)},m:function(e,l){F(e,n,l),B(n,t),u&&u.m(t,null),B(t,o),s&&s.m(t,null),B(n,r),B(n,i),B(i,a),c=!0},p:function(e,r){e[4]?u?(u.p(e,r),16&r&&ge(u,1)):((u=yn(e)).c(),ge(u,1),u.m(t,o)):u&&(ve(),me(u,1,1,(function(){u=null})),he()),e[0]?s?1&r&&ge(s,1):((s=bn()).c(),ge(s,1),s.m(t,null)):s&&(ve(),me(s,1,1,(function(){s=null})),he()),(!c||2&r)&&q(a,e[1]),4&r&&z(i,"color",e[2]),8&r&&z(n,"background-color",e[3]),64&r&&z(n,"transition-duration","".concat(e[6].duration,"ms")),64&r&&z(n,"transition-timing-function",e[6].timingFunc)},i:function(e){c||(ge(u),ge(s),c=!0)},o:function(e){me(u),me(s),c=!1},d:function(e){e&&R(n),u&&u.d(),s&&s.d()}}}function yn(e){var n,t;return n=new mn({props:{color:e[2],onClick:e[8]}}),{c:function(){be(n.$$.fragment)},m:function(e,o){_e(n,e,o),t=!0},p:function(e,t){var o={};4&t&&(o.color=e[2]),32&t&&(o.onClick=e[8]),n.$set(o)},i:function(e){t||(ge(n.$$.fragment,e),t=!0)},o:function(e){me(n.$$.fragment,e),t=!1},d:function(e){Ae(n,e)}}}function bn(e){var n,t;return n=new We({props:{color:"#000",size:16}}),{c:function(){be(n.$$.fragment)},m:function(e,o){_e(n,e,o),t=!0},i:function(e){t||(ge(n.$$.fragment,e),t=!0)},o:function(e){me(n.$$.fragment,e),t=!1},d:function(e){Ae(n,e)}}}function _n(e){var n,t,o=e[7]&&wn(e);return{c:function(){o&&o.c(),n=W()},m:function(e,r){o&&o.m(e,r),F(e,n,r),t=!0},p:function(e,t){var r=v(t,1)[0];e[7]?o?(o.p(e,r),128&r&&ge(o,1)):((o=wn(e)).c(),ge(o,1),o.m(n.parentNode,n)):o&&(ve(),me(o,1,1,(function(){o=null})),he())},i:function(e){t||(ge(o),t=!0)},o:function(e){me(o),t=!1},d:function(e){o&&o.d(e),e&&R(n)}}}function An(e,n,t){var o=n.loading,r=void 0!==o&&o,i=n.title,a=n.textColor,c=void 0===a?"#000":a,u=n.bgColor,s=void 0===u?"#fff":u,l=n.showBtns,d=void 0!==l&&l,f=n.onBack,p=n.animation,v=void 0===p?{duration:0,timingFunc:"linear"}:p,h=n.show,g=void 0===h||h;return e.$$set=function(e){"loading"in e&&t(0,r=e.loading),"title"in e&&t(1,i=e.title),"textColor"in e&&t(2,c=e.textColor),"bgColor"in e&&t(3,s=e.bgColor),"showBtns"in e&&t(4,d=e.showBtns),"onBack"in e&&t(5,f=e.onBack),"animation"in e&&t(6,v=e.animation),"show"in e&&t(7,g=e.show)},[r,i,c,s,d,f,v,g,function(){f&&f()}]}var xn=function(n){function t(n){var o;return a(this,t),xe(p(o=e(this,t)),n,An,_n,k,{loading:0,title:1,textColor:2,bgColor:3,showBtns:4,onBack:5,animation:6,show:7}),o}return l(t,n),u(t)}(ke);function kn(e){var n,t,o,r,i,a,c,u,s,l,d,f,p,h,g;return{c:function(){n=D("div"),t=D("div"),o=j("svg"),r=j("path"),i=j("path"),a=j("path"),c=G(),u=D("span"),s=G(),l=D("div"),d=j("svg"),f=j("path"),p=j("path"),V(r,"d","M512 512m-119.466667 0a119.466667 119.466667 0 1 0 238.933334 0 119.466667 119.466667 0 1 0-238.933334 0Z"),V(r,"fill",e[6]),V(r,"p-id","10643"),V(i,"d","M785.066667 529.066667m-68.266667 0a68.266667 68.266667 0 1 0 136.533333 0 68.266667 68.266667 0 1 0-136.533333 0Z"),V(i,"fill",e[6]),V(i,"p-id","10644"),V(a,"d","M238.933333 529.066667m-68.266666 0a68.266667 68.266667 0 1 0 136.533333 0 68.266667 68.266667 0 1 0-136.533333 0Z"),V(a,"fill",e[6]),V(a,"p-id","10645"),V(o,"t","1713151535527"),V(o,"class","icon"),V(o,"viewBox","0 0 1024 1024"),V(o,"version","1.1"),V(o,"xmlns","http://www.w3.org/2000/svg"),V(o,"p-id","10642"),V(o,"width","26"),V(o,"height","26"),V(u,"class","line svelte-10fi14j"),z(u,"background-color",e[4]),V(t,"role","button"),V(t,"class","tools-item svelte-10fi14j"),V(f,"d","M512 353.5872c87.4496 0 158.4128 70.9632 158.4128 158.4128S599.4496 670.4128 512 670.4128c-87.4496 0-158.4128-70.9632-158.4128-158.4128S424.5504 353.5872 512 353.5872z"),V(f,"fill",e[6]),V(f,"p-id","10253"),V(p,"d","M1018.88 512c0 279.9616-226.9184 506.88-506.88 506.88S5.12 791.9616 5.12 512 232.0384 5.12 512 5.12s506.88 226.9184 506.88 506.88zM512 132.096c-209.8176 0-379.904 170.0864-379.904 379.904s170.0864 379.904 379.904 379.904 379.904-170.0864 379.904-379.904-170.0864-379.904-379.904-379.904z"),V(p,"fill",e[6]),V(p,"p-id","10254"),V(d,"t","1713152201831"),V(d,"class","icon"),V(d,"viewBox","0 0 1024 1024"),V(d,"version","1.1"),V(d,"xmlns","http://www.w3.org/2000/svg"),V(d,"p-id","10252"),V(d,"width","20"),V(d,"height","20"),V(l,"role","button"),V(l,"class","tools-item svelte-10fi14j"),V(n,"class","nav-bar-tools portrait svelte-10fi14j"),z(n,"border-color",e[5]),z(n,"background-color",e[3]),z(n,"top",e[7]+"px"),z(n,"right",e[8]+"px")},m:function(v,m){F(v,n,m),B(n,t),B(t,o),B(o,r),B(o,i),B(o,a),B(t,c),B(t,u),B(n,s),B(n,l),B(l,d),B(d,f),B(d,p),e[11](n),h||(g=[$(t,"click",e[9]),$(l,"click",e[10])],h=!0)},p:function(e,t){var o=v(t,1)[0];64&o&&V(r,"fill",e[6]),64&o&&V(i,"fill",e[6]),64&o&&V(a,"fill",e[6]),16&o&&z(u,"background-color",e[4]),64&o&&V(f,"fill",e[6]),64&o&&V(p,"fill",e[6]),32&o&&z(n,"border-color",e[5]),8&o&&z(n,"background-color",e[3]),128&o&&z(n,"top",e[7]+"px"),256&o&&z(n,"right",e[8]+"px")},i:m,o:m,d:function(t){t&&R(n),e[11](null),h=!1,A(g)}}}function Sn(e,n,t){var o=n.onMore,r=n.onClose,i=n.el,a=n.bgColor,c=void 0===a?"rgba(255, 255, 255, .6)":a,u=n.lineColor,s=void 0===u?"rgba(255, 255, 255, .3)":u,l=n.borderColor,d=void 0===l?"rgba(0, 0, 0, .1)":l,f=n.iconColor,p=void 0===f?"#333":f,v=n.top,h=void 0===v?6:v,g=n.right,m=void 0===g?10:g;return e.$$set=function(e){"onMore"in e&&t(1,o=e.onMore),"onClose"in e&&t(2,r=e.onClose),"el"in e&&t(0,i=e.el),"bgColor"in e&&t(3,c=e.bgColor),"lineColor"in e&&t(4,s=e.lineColor),"borderColor"in e&&t(5,d=e.borderColor),"iconColor"in e&&t(6,p=e.iconColor),"top"in e&&t(7,h=e.top),"right"in e&&t(8,m=e.right)},[i,o,r,c,s,d,p,h,m,function(){o&&o()},function(){r&&r()},function(e){ee[e?"unshift":"push"]((function(){t(0,i=e)}))}]}var In=function(n){function t(n){var o;return a(this,t),xe(p(o=e(this,t)),n,Sn,kn,k,{onMore:1,onClose:2,el:0,bgColor:3,lineColor:4,borderColor:5,iconColor:6,top:7,right:8}),o}return l(t,n),u(t,[{key:"onMore",get:function(){return this.$$.ctx[1]},set:function(e){this.$$set({onMore:e}),se()}},{key:"onClose",get:function(){return this.$$.ctx[2]},set:function(e){this.$$set({onClose:e}),se()}},{key:"el",get:function(){return this.$$.ctx[0]},set:function(e){this.$$set({el:e}),se()}},{key:"bgColor",get:function(){return this.$$.ctx[3]},set:function(e){this.$$set({bgColor:e}),se()}},{key:"lineColor",get:function(){return this.$$.ctx[4]},set:function(e){this.$$set({lineColor:e}),se()}},{key:"borderColor",get:function(){return this.$$.ctx[5]},set:function(e){this.$$set({borderColor:e}),se()}},{key:"iconColor",get:function(){return this.$$.ctx[6]},set:function(e){this.$$set({iconColor:e}),se()}},{key:"top",get:function(){return this.$$.ctx[7]},set:function(e){this.$$set({top:e}),se()}},{key:"right",get:function(){return this.$$.ctx[8]},set:function(e){this.$$set({right:e}),se()}}]),t}(ke);function Cn(e){var n;return{c:function(){V(n=D("div"),"class","status-bar-holder svelte-1tsnloh"),z(n,"height",e[0]+"px")},m:function(e,t){F(e,n,t)},p:function(e,t){1&v(t,1)[0]&&z(n,"height",e[0]+"px")},i:m,o:m,d:function(e){e&&R(n)}}}function Tn(e,n,t){var o=n.height,r=void 0===o?0:o;return e.$$set=function(e){"height"in e&&t(0,r=e.height)},[r]}var Mn=function(n){function t(n){var o;return a(this,t),xe(p(o=e(this,t)),n,Tn,Cn,k,{height:0}),o}return l(t,n),u(t)}(ke);function Pn(e){var n,t,o,r=e[0].badge+"";return{c:function(){n=D("div"),t=D("span"),o=N(r),V(t,"class","badge-text svelte-18y9mkk"),V(n,"class","badge svelte-18y9mkk")},m:function(e,r){F(e,n,r),B(n,t),B(t,o)},p:function(e,n){1&n&&r!==(r=e[0].badge+"")&&q(o,r)},d:function(e){e&&R(n)}}}function En(e){var n;return{c:function(){V(n=D("div"),"class","red-dot svelte-18y9mkk")},m:function(e,t){F(e,n,t)},d:function(e){e&&R(n)}}}function Bn(e){var n,t,o,r,i,a,c,u,s,l,d,f=e[0].text+"",p=e[0].badge&&Pn(e),h=e[0].redDot&&En();return{c:function(){n=D("div"),t=D("div"),p&&p.c(),o=G(),h&&h.c(),r=G(),i=D("img"),c=G(),u=D("div"),s=N(f),V(i,"class","img svelte-18y9mkk"),S(i.src,a=e[3]?e[0].selectedIconPath:e[0].iconPath)||V(i,"src",a),V(i,"alt","img"),V(t,"class","icon svelte-18y9mkk"),V(u,"class","tab-text svelte-18y9mkk"),z(u,"color",e[3]?e[2]:e[1]),V(n,"role","button"),V(n,"class","tab-item svelte-18y9mkk")},m:function(a,f){F(a,n,f),B(n,t),p&&p.m(t,null),B(t,o),h&&h.m(t,null),B(t,r),B(t,i),B(n,c),B(n,u),B(u,s),l||(d=$(n,"click",e[5]),l=!0)},p:function(e,n){var c=v(n,1)[0];e[0].badge?p?p.p(e,c):((p=Pn(e)).c(),p.m(t,o)):p&&(p.d(1),p=null),e[0].redDot?h||((h=En()).c(),h.m(t,r)):h&&(h.d(1),h=null),9&c&&!S(i.src,a=e[3]?e[0].selectedIconPath:e[0].iconPath)&&V(i,"src",a),1&c&&f!==(f=e[0].text+"")&&q(s,f),14&c&&z(u,"color",e[3]?e[2]:e[1])},i:m,o:m,d:function(e){e&&R(n),p&&p.d(),h&&h.d(),l=!1,d()}}}function On(e,n,t){var o=n.data,r=n.color,i=n.selectedColor,a=n.active,c=void 0!==a&&a,u=n.onClick;return e.$$set=function(e){"data"in e&&t(0,o=e.data),"color"in e&&t(1,r=e.color),"selectedColor"in e&&t(2,i=e.selectedColor),"active"in e&&t(3,c=e.active),"onClick"in e&&t(4,u=e.onClick)},[o,r,i,c,u,function(e){c||u&&u(o)}]}var Ln=function(n){function t(n){var o;return a(this,t),xe(p(o=e(this,t)),n,On,Bn,k,{data:0,color:1,selectedColor:2,active:3,onClick:4}),o}return l(t,n),u(t)}(ke);function Fn(e,n,t){var o=e.slice();return o[10]=n[t],o[12]=t,o}function Rn(e){for(var n,t,o,r=e[2],i=[],a=0;a<r.length;a+=1)i[a]=Hn(Fn(e,r,a));var c=function(e){return me(i[e],1,1,(function(){i[e]=null}))};return{c:function(){n=D("div");for(var o=0;o<i.length;o+=1)i[o].c();V(n,"class","tab-list svelte-h0c4dd"),V(n,"style",t="border-color: ".concat(e[5],";background-color: ").concat(e[6],";margin-bottom:").concat(e[8],"px"))},m:function(e,t){F(e,n,t);for(var r=0;r<i.length;r+=1)i[r].m(n,null);o=!0},p:function(e,a){if(31&a){var u;for(r=e[2],u=0;u<r.length;u+=1){var s=Fn(e,r,u);i[u]?(i[u].p(s,a),ge(i[u],1)):(i[u]=Hn(s),i[u].c(),ge(i[u],1),i[u].m(n,null))}for(ve(),u=r.length;u<i.length;u+=1)c(u);he()}(!o||352&a&&t!==(t="border-color: ".concat(e[5],";background-color: ").concat(e[6],";margin-bottom:").concat(e[8],"px")))&&V(n,"style",t)},i:function(e){if(!o){for(var n=0;n<r.length;n+=1)ge(i[n]);o=!0}},o:function(e){i=i.filter(Boolean);for(var n=0;n<i.length;n+=1)me(i[n]);o=!1},d:function(e){e&&R(n),H(i,e)}}}function Hn(e){var n,t;function o(){for(var n,t=arguments.length,o=new Array(t),r=0;r<t;r++)o[r]=arguments[r];return(n=e)[9].apply(n,[e[12]].concat(o))}return n=new Ln({props:{data:e[10],active:e[3]===e[10].pagePath,selectedColor:e[1],color:e[0],onClick:o}}),{c:function(){be(n.$$.fragment)},m:function(e,o){_e(n,e,o),t=!0},p:function(t,r){e=t;var i={};4&r&&(i.data=e[10]),12&r&&(i.active=e[3]===e[10].pagePath),2&r&&(i.selectedColor=e[1]),1&r&&(i.color=e[0]),16&r&&(i.onClick=o),n.$set(i)},i:function(e){t||(ge(n.$$.fragment,e),t=!0)},o:function(e){me(n.$$.fragment,e),t=!1},d:function(e){Ae(n,e)}}}function Dn(e){var n,t,o=e[7]&&Rn(e);return{c:function(){o&&o.c(),n=W()},m:function(e,r){o&&o.m(e,r),F(e,n,r),t=!0},p:function(e,t){var r=v(t,1)[0];e[7]?o?(o.p(e,r),128&r&&ge(o,1)):((o=Rn(e)).c(),ge(o,1),o.m(n.parentNode,n)):o&&(ve(),me(o,1,1,(function(){o=null})),he())},i:function(e){t||(ge(o),t=!0)},o:function(e){me(o),t=!1},d:function(e){o&&o.d(e),e&&R(n)}}}function jn(e,n,t){var o=n.color,r=void 0===o?"#000":o,i=n.selectedColor,a=void 0===i?"#4285f4":i,c=n.configList,u=void 0===c?[]:c,s=n.value,l=n.onChange,d=n.borderColor,f=void 0===d?"#eee":d,p=n.backgroundColor,v=void 0===p?"#fff":p,h=n.show,g=void 0!==h&&h,m=n.bottomSpace,w=void 0===m?0:m;return e.$$set=function(e){"color"in e&&t(0,r=e.color),"selectedColor"in e&&t(1,a=e.selectedColor),"configList"in e&&t(2,u=e.configList),"value"in e&&t(3,s=e.value),"onChange"in e&&t(4,l=e.onChange),"borderColor"in e&&t(5,f=e.borderColor),"backgroundColor"in e&&t(6,v=e.backgroundColor),"show"in e&&t(7,g=e.show),"bottomSpace"in e&&t(8,w=e.bottomSpace)},[r,a,u,s,l,f,v,g,w,function(e,n){l&&l(n,e)}]}var Nn=function(n){function t(n){var o;return a(this,t),xe(p(o=e(this,t)),n,jn,Dn,k,{color:0,selectedColor:1,configList:2,value:3,onChange:4,borderColor:5,backgroundColor:6,show:7,bottomSpace:8}),o}return l(t,n),u(t,[{key:"color",get:function(){return this.$$.ctx[0]},set:function(e){this.$$set({color:e}),se()}},{key:"selectedColor",get:function(){return this.$$.ctx[1]},set:function(e){this.$$set({selectedColor:e}),se()}},{key:"configList",get:function(){return this.$$.ctx[2]},set:function(e){this.$$set({configList:e}),se()}},{key:"value",get:function(){return this.$$.ctx[3]},set:function(e){this.$$set({value:e}),se()}},{key:"onChange",get:function(){return this.$$.ctx[4]},set:function(e){this.$$set({onChange:e}),se()}},{key:"borderColor",get:function(){return this.$$.ctx[5]},set:function(e){this.$$set({borderColor:e}),se()}},{key:"backgroundColor",get:function(){return this.$$.ctx[6]},set:function(e){this.$$set({backgroundColor:e}),se()}},{key:"show",get:function(){return this.$$.ctx[7]},set:function(e){this.$$set({show:e}),se()}},{key:"bottomSpace",get:function(){return this.$$.ctx[8]},set:function(e){this.$$set({bottomSpace:e}),se()}}]),t}(ke);function Gn(e){var n,t,o,r,i,a,c,u,s,l,d,f,p,v=(e[9][e[5]]||"确定")+"";return(n=new Pe({props:{bgColor:"rgba(0, 0, 0, .1)"}})).$on("click",e[10]),i=new cn({props:{maxLength:e[6],muti:!!e[7],value:e[0],onInput:e[11]}}),{c:function(){be(n.$$.fragment),t=G(),o=D("div"),r=D("div"),be(i.$$.fragment),a=G(),c=D("div"),u=D("span"),s=N(v),V(u,"class","button-confirm-text svelte-1tawb6"),V(c,"class","button-confirm svelte-1tawb6"),V(r,"class","keyboard-header svelte-1tawb6"),V(o,"class","keyboard svelte-1tawb6")},m:function(l,v){_e(n,l,v),F(l,t,v),F(l,o,v),B(o,r),_e(i,r,null),B(r,a),B(r,c),B(c,u),B(u,s),d=!0,f||(p=$(c,"click",e[12]),f=!0)},p:function(e,n){var t={};64&n&&(t.maxLength=e[6]),128&n&&(t.muti=!!e[7]),1&n&&(t.value=e[0]),5&n&&(t.onInput=e[11]),i.$set(t),(!d||32&n)&&v!==(v=(e[9][e[5]]||"确定")+"")&&q(s,v)},i:function(e){d||(ge(n.$$.fragment,e),ge(i.$$.fragment,e),ie((function(){l||(l=ye(o,Ce,{duration:300},!0)),l.run(1)})),d=!0)},o:function(e){me(n.$$.fragment,e),me(i.$$.fragment,e),l||(l=ye(o,Ce,{duration:300},!1)),l.run(0),d=!1},d:function(e){Ae(n,e),e&&R(t),e&&R(o),Ae(i),e&&l&&l.end(),f=!1,p()}}}function Wn(e){var n,t,o=e[1]&&Gn(e);return{c:function(){o&&o.c(),n=W()},m:function(e,r){o&&o.m(e,r),F(e,n,r),t=!0},p:function(e,t){var r=v(t,1)[0];e[1]?o?(o.p(e,r),2&r&&ge(o,1)):((o=Gn(e)).c(),ge(o,1),o.m(n.parentNode,n)):o&&(ve(),me(o,1,1,(function(){o=null})),he())},i:function(e){t||(ge(o),t=!0)},o:function(e){me(o),t=!1},d:function(e){o&&o.d(e),e&&R(n)}}}function $n(e,n,t){var o=n.show,r=void 0!==o&&o,i=n.onChange,a=n.onMaskClick,c=n.onConfirm,u=n.confirmType,s=void 0===u?"done":u,l=n.value,d=void 0===l?"":l,f=n.maxLength,p=n.multiple,v=n.confirmHold;return e.$$set=function(e){"show"in e&&t(1,r=e.show),"onChange"in e&&t(2,i=e.onChange),"onMaskClick"in e&&t(3,a=e.onMaskClick),"onConfirm"in e&&t(4,c=e.onConfirm),"confirmType"in e&&t(5,s=e.confirmType),"value"in e&&t(0,d=e.value),"maxLength"in e&&t(6,f=e.maxLength),"multiple"in e&&t(7,p=e.multiple),"confirmHold"in e&&t(8,v=e.confirmHold)},[d,r,i,a,c,s,f,p,v,{done:"完成",next:"下一个",search:"搜索",go:"前往",send:"发送"},function(){a&&a(d)},function(e){t(0,d=e),i&&i(e)},function(){c&&c(d,v)}]}var Vn=function(n){function t(n){var o;return a(this,t),xe(p(o=e(this,t)),n,$n,Wn,k,{show:1,onChange:2,onMaskClick:3,onConfirm:4,confirmType:5,value:0,maxLength:6,multiple:7,confirmHold:8}),o}return l(t,n),u(t)}(ke),qn="serviceStart",Kn="appDataChange",zn="updateAppData",Un="tabItemChanged",Qn="showLoading",Jn="hideLoading",Zn="showToast",Xn="hideToast",Yn="showModal",et="showNavigationBarLoading",nt="hideNavigationBarLoading",tt="setNavigationBarTitle",ot="setNavigationBarColor",rt="showActionSheet",it="showTabBar",at="hideTabBar",ct="setTabBarStyle",ut="setTabBarItem",st="setTabBarBadge",lt="removeTabBarBadge",dt="hideTabBarRedDot",ft="showTabBarRedDot",pt="getMenuButtonBoundingClientRect",vt="onDeviceOrientationChange",ht="showKeyboard",gt="hideKeyboard",mt="updateKeyboard",wt="invokeCallbackHandler",yt="dispatchServiceEvent";function bt(){return document.getElementById("webview-container")}var _t=window.navigator.userAgent.toLowerCase();function At(){var e=(window.__extInfo||{}).extType;return/\_inner\_/gi.test(e)}function xt(e){var n=e.safeArea,t=e.windowHeight;return Math.max(t-n.bottom,0)}function kt(e){return"white"===e?{bgColor:"rgba(255, 255, 255, .6)",lineColor:"rgba(255, 255, 255, .3)",borderColor:"rgba(0, 0, 0, .1)",iconColor:"#333"}:{bgColor:"rgba(0, 0, 0, .15)",lineColor:"rgba(255, 255, 255, .7)",borderColor:"rgba(255, 255, 255, .25)",iconColor:"#fff"}}function St(e,n){null!=n.navigationBarTextStyle&&e.$set(kt(n.navigationBarTextStyle))}/android/.test(_t),/(iphone|ipad)/.test(_t);function It(e,n){null!=n&&(null!=n.navigationBarTitleText&&(e.title=n.navigationBarTitleText),null!=n.navigationBarTextStyle&&(e.textColor=n.navigationBarTextStyle),null!=n.navigationBarBackgroundColor&&(e.bgColor=n.navigationBarBackgroundColor),null!=n.navigationStyle?e.show="custom"!==n.navigationStyle:e.show=!0)}window.__initWebFrame=function(e,n){var t=e.wxConfig,o=e.windowInfo,r=t.window,i=t.tabBar;At()&&null!=r&&function(e,n){var t;new Mn({target:document.body,anchor:bt(),props:{height:(null===(t=e.safeArea)||void 0===t?void 0:t.top)||0}})}(o),null!=r&&function(e,n){var t=new xn({target:document.body,anchor:bt(),props:{title:e.navigationBarTitleText,textColor:e.navigationBarTextStyle,bgColor:e.navigationBarBackgroundColor,showBtns:!1,show:"custom"!==e.navigationStyle,onBack:function(){n.emit("NavigatorBar:onBack")}}});n.on(nt,(function(){t.$set({loading:!1})})),n.on(et,(function(){t.$set({loading:!0})})),n.on(tt,(function(e){t.$set({title:e.title})})),n.on(ot,(function(e){t.$set({bgColor:e.backgroundColor,textColor:e.frontColor,animation:e.animation})})),n.on(Kn,(function(e){e.ext,e.options;var n=e.windowConfig,o=e.pages,r={};It(r,n),r.showBtns=1!==o.length,t.$set(r)})),n.on(zn,(function(e){var n=e.pages,o={};It(o,e.windowConfig),o.showBtns=1!==n.length,t.$set(o)})),n.on(Un,(function(e){var n={};It(n,e.windowConfig),t.$set(n)}))}(r,n),null!=i&&function(e,n,t){var o,r=new Nn({target:document.body,props:{onChange:function(e,n){r.$set({value:e.pagePath}),t.emit("TabBar:change",{item:e,index:n})},color:e.color,selectedColor:e.selectedColor,configList:e.list,value:null===(o=e.list[0])||void 0===o?void 0:o.pagePath,bottomSpace:xt(n)}});t.on(ft,(function(e){var n=e.index,t=r.configList;if(null!=t){var o=t.slice(),i=o[n];null!=i&&(i.redDot=!0,i.badge=void 0),r.configList=o}})),t.on(dt,(function(e){var n=e.index,t=r.configList;if(null!=t){var o=t.slice(),i=o[n];null!=i&&(i.redDot=void 0),r.configList=o}})),t.on(st,(function(e){var n=e.index,t=e.text,o=r.configList;if(null!=o){var i=o.slice(),a=i[n];null!=a&&""!=t&&(a.badge=t,a.redDot=void 0),r.configList=i}})),t.on(lt,(function(e){var n=e.index,t=r.configList;if(null!=t){var o=t.slice(),i=o[n];null!=i&&(i.badge=void 0),r.configList=o}})),t.on(ct,(function(e){var n=e.color,t=e.selectedColor,o=e.backgroundColor,i=e.borderStyle;r.$set({color:n,selectedColor:t,backgroundColor:o,borderColor:i})})),t.on(ut,(function(e){var n=e.index,t=e.text,o=e.iconPath,i=e.selectedIconPath,a=r.configList;if(null!=a){var c=a.slice(),u=c[n];null!=u&&(u.text=t||u.text,u.iconPath=o||u.iconPath,u.selectedIconPath=i||u.selectedIconPath),r.configList=c}})),t.on(at,(function(){r.$set({show:!1})})),t.on(it,(function(){r.$set({show:!0})})),t.on(Kn,(function(n){n.ext;var t=n.options;n.windowConfig;var o=t.path,i={show:!1};null!=e.list.find((function(e){return e.pagePath===o}))?(i.show=!0,i.value=o):i.show=!1,r.$set(i)})),t.on(zn,(function(n){var t=n.currPage,o={show:!1};null!=e.list.find((function(e){return e.pagePath===t}))?(o.show=!0,o.value=t):o.show=!1,r.$set(o)}))}(i,o,n)},window.__initWebFrameOnContentLoad=function(e,n){var t=e.windowInfo;e.extInfo,At()&&!0!==(window.__extInfo||{}).hideNavigationBarTools&&function(e,n){var t,r=new In({target:document.body,anchor:bt(),props:o(o({onMore:function(){e.emit("NavigatorBarTools:onMore")},onClose:function(){e.emit("NavigatorBarTools:onClose")}},kt("white")),{},{top:((null===(t=n.safeArea)||void 0===t?void 0:t.top)||0)+6})});e.on(qn,(function(e){var n=e.window;St(r,n)})),e.on(vt,(function(e){var t,o=6,i=10;"landscape"===e.value?(o=6,i=xt(n)+10):(o=((null===(t=n.safeArea)||void 0===t?void 0:t.top)||0)+6,i=10),r.$set({top:o,right:i})})),e.on(ot,(function(e){var n=kt(e.frontColor);r.$set(n)})),e.on(Kn,(function(e){var n=e.windowConfig;St(r,n)})),e.on(zn,(function(e){var n=e.windowConfig;St(r,n)})),e.on(pt,(function(n,t){var o=r.el;if(null!=o){var i=o.getBoundingClientRect();e.emit(wt,{callbackId:t,data:{width:i.width,height:i.height,top:i.top,right:i.right,bottom:i.bottom,left:i.left}})}else e.emit(wt,{callbackId:t,data:{errMsg:"getMenuButtonBoundingClientRect:fail The MenuButton dom node is not found."}})}))}(n,t),function(e){var n,t=new Xe({target:document.body,props:{}});e.on(Qn,(function(e){n&&clearTimeout(n),t.$set({show:!1})})),e.on(Zn,(function(e){var o=e.title,r=void 0===o?"":o,i=e.icon,a=e.image,c=e.duration,u=void 0===c?1500:c,s=e.mask,l=void 0!==s&&s;n&&clearTimeout(n),t.$set({show:!0,title:r,icon:i,image:a,mask:l}),n=setTimeout((function(){t.$set({show:!1})}),u)})),e.on(Xn,(function(e){n&&clearTimeout(n),t.$set({show:!1})}))}(n),function(e){var n=new nn({target:document.body,props:{}});e.on(Qn,(function(e){n.$set({show:!0,title:e.title||"",mask:!!e.mask})})),e.on(Jn,(function(e){n.$set({show:!1})})),e.on(Zn,(function(e){n.$set({show:!1})}))}(n),function(e){var n={callbackId:0},t=new vn({target:document.body,props:{onConfirm:function(o){t.$set({show:!1}),e.emit(wt,{callbackId:n.callbackId,data:{confirm:!0,cancel:!1,content:o}})},onCancel:function(o){t.$set({show:!1}),e.emit(wt,{callbackId:n.callbackId,data:{confirm:!1,cancel:!0,content:o}})}}});e.on(Yn,(function(e,r){n.callbackId=r,setTimeout((function(){t.$set(o({show:!0},e))}),100)}))}(n),function(e){var n={callbackId:0},t=new He({target:document.body,props:{onSelect:function(o){t.$set({show:!1}),e.emit(wt,{callbackId:n.callbackId,data:{tapIndex:o}})},onCancel:function(){t.$set({show:!1}),e.emit(wt,{callbackId:n.callbackId,data:{errMsg:"showActionSheet:fail user cancel"}})}}});e.on(rt,(function(e,r){n.callbackId=r,setTimeout((function(){t.$set(o({show:!0},e))}),100)}))}(n),function(e){var n=new Vn({target:document.body,props:{onChange:function(n){e.emit(yt,{event:"onKeyboardInput",payload:{value:n}})},onMaskClick:function(n){e.emit(yt,{event:"onKeyboardComplete",payload:{value:n}})},onConfirm:function(t,o){o||n.$set({show:!1}),e.emit(yt,{event:"onKeyboardConfirm",payload:{value:t}})}}});e.on(ht,(function(e){var t=e.defaultValue,o=e.maxLength,r=e.multiple,i=e.confirmHold,a=e.confirmType;n.$set({value:t,maxLength:o,multiple:r,confirmHold:i,confirmType:a,show:!0})})),e.on(mt,(function(e){var t=e.value;n.$set({value:t})})),e.on(gt,(function(e){n.$set({show:!1})}))}(n)}}(),document.head.innerHTML+="<style>.mask.svelte-1ekfzc9{position:fixed;left:0;right:0;bottom:0;top:0;z-index:3}\n.action-sheet.svelte-1t2ya5t{display:flex;flex-direction:column;position:absolute;width:100%;left:0;bottom:0;z-index:5;background-color:#f7f7f7;border-top-right-radius:6px;border-top-left-radius:6px;overflow:hidden}.header.svelte-1t2ya5t{display:flex;width:100%;height:45px;align-items:center;justify-content:center;background-color:#fff}.body.svelte-1t2ya5t{display:flex;flex-direction:column;flex:1;background-color:#fff}.footer.svelte-1t2ya5t{margin-top:10px}.title.svelte-1t2ya5t{font-weight:bold;font-size:16px}.button.svelte-1t2ya5t{display:flex;width:100%;height:50px;align-items:center;justify-content:center;background-color:#fff;font-size:16px;color:#000}.item.svelte-1t2ya5t{border-top:1px solid #ddd}.button-text.svelte-1t2ya5t{max-width:220px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}\n.spinner.svelte-cis7d5{position:relative;width:30px;max-width:100%;height:30px;max-height:100%;vertical-align:middle;animation:infinite svelte-cis7d5-circle 800ms linear;animation-timing-function:steps(12)}.leaf.svelte-cis7d5{position:absolute;top:0;left:0;width:100%;height:100%;color:#fff}.leaf.svelte-cis7d5::after{display:block;width:2px;height:25%;margin:0 auto;background-color:currentColor;border-radius:40%;content:' '}@keyframes svelte-cis7d5-circle{from{transform:rotate(0)}to{transform:rotate(360deg)}}\n.toast.svelte-adfvqi{position:absolute;left:50%;top:50%;transform:translate(-50%, -50%);-webkit-transform:translate(-50%, -50%);z-index:5;display:flex;flex-direction:column;padding:10px 10px;background-color:rgba(0, 0, 0, 0.65);border-radius:6px;min-width:100px;overflow:hidden;align-items:center;justify-items:center}.icon.svelte-adfvqi{width:50px;height:50px;margin-bottom:6px}.title.svelte-adfvqi{color:#fff;font-size:14px}.hasIcon.svelte-adfvqi{max-width:80px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.spinner-wrapper.svelte-adfvqi{padding:10px 0;padding-bottom:4px;margin-bottom:6px}\n.input.svelte-1fikcsw{display:flex;flex:1;background-color:#fff;outline:none;border:none;font-size:16px;color:#000}\n.modal.svelte-lduamy{position:absolute;left:50%;top:50%;transform:translate(-50%, -50%);-webkit-transform:translate(-50%, -50%);z-index:5;display:flex;flex-direction:column;background-color:#fff;border-radius:6px;overflow:hidden;width:300px;min-height:180px;border:1px solid #eee;color:#000}.header.svelte-lduamy{display:flex;flex-direction:column;align-items:center;padding-top:25px}.title.svelte-lduamy{font-weight:bold;font-size:16px}.body.svelte-lduamy{display:flex;flex-direction:row;padding:10px 24px 24px 24px;flex:1}.input-wrapper.svelte-lduamy{display:flex;flex:1;border:1px solid #ccc;padding:5px 10px;height:100px;border-radius:4px}.body-text.svelte-lduamy{display:flex;flex:1;flex-wrap:wrap;align-items:center;justify-content:center;word-break:break-all;font-size:16px;line-height:20px}.footer.svelte-lduamy{display:flex;flex-direction:row;align-items:center;border-top:1px solid #eee}.button.svelte-lduamy{display:flex;flex:1;align-items:center;justify-content:center;height:46px;position:relative;font-size:16px}.cancel.svelte-lduamy::after{display:block;height:46px;width:1px;background-color:#eee;position:absolute;top:0;right:0;content:' '}\n.btn-back.svelte-o95f8l{cursor:pointer;width:24px;height:24px;display:flex;justify-content:center;align-items:center;border-radius:50%;pointer-events:auto}\n.nav.svelte-1ouzypl{position:relative;width:100%;height:42px;display:flex;align-items:center;justify-content:center;padding:4px;box-sizing:border-box;z-index:5;pointer-events:none;transition:all}.nav-title.svelte-1ouzypl{font-weight:700;text-align:center;font-size:14px;color:#030d1e;width:60%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.nav-action-btns.svelte-1ouzypl{position:absolute;display:flex;left:8px;justify-content:flex-start;align-items:center}\n.nav-bar-tools.svelte-10fi14j{box-sizing:border-box;pointer-events:auto;position:absolute;z-index:10;right:10px;top:6px;background-color:rgba(255, 255, 255, 0.6);border:1px solid rgba(0, 0, 0, 0.15);border-radius:3px;display:flex;flex-direction:row;width:85px;height:30px;border-radius:30px;overflow:hidden;user-select:none}.line.svelte-10fi14j{display:block;width:1px;height:18px;position:absolute;right:0px;top:5px}.tools-item.svelte-10fi14j{display:flex;flex:1;align-items:center;justify-content:center;position:relative}\n.status-bar-holder.svelte-1tsnloh{width:100%}\n.badge.svelte-18y9mkk{position:absolute;left:18px;top:-3px;display:flex;align-items:center;justify-content:center;box-sizing:content-box;border-radius:12px;background-color:red;padding:2px 2px;min-width:14px;height:14px}.badge-text.svelte-18y9mkk{color:#fff;font-size:12px;max-width:28px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.red-dot.svelte-18y9mkk{height:8px;width:8px;border-radius:100%;background-color:red;position:absolute;left:22px;top:1px}.tab-item.svelte-18y9mkk{padding-top:4px;display:flex;flex-direction:column;align-items:center;justify-items:center;flex:1;cursor:pointer;position:relative}.icon.svelte-18y9mkk{width:28px;height:28px;position:relative}.img.svelte-18y9mkk{width:100%;height:100%;display:block;background-size:100%;background-repeat:no-repeat}.tab-text.svelte-18y9mkk{font-size:10px;text-align:center}\n.tab-list.svelte-h0c4dd{width:100%;height:49px;display:flex;flex-flow:row nowrap;justify-content:space-around;border-top:1px solid transparent;z-index:5;user-select:none}\n.keyboard.svelte-1tawb6{position:absolute;left:0;bottom:0;z-index:5;width:100%;height:300px;background-color:#ccc}.keyboard-header.svelte-1tawb6{background-color:#eee;display:flex;width:100%;height:50px;flex-direction:row;padding:6px 30px;padding-right:10px}.button-confirm.svelte-1tawb6{margin-left:10px;margin-top:4px;display:flex;justify-content:center;align-items:center;border-radius:6px;background-color:#ff9600;height:30px;padding:4px 6px}.button-confirm-text.svelte-1tawb6{color:#fff;font-size:12px}\n</style>";var o="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function r(e,n,t){return e(t={path:n,exports:{},require:function(e,n){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==n&&t.path)}},t.exports),t.exports}var i=r((function(e){var n=Object.prototype.hasOwnProperty,t="~";function o(){}function r(e,n,t){this.fn=e,this.context=n,this.once=t||!1}function i(e,n,o,i,a){if("function"!=typeof o)throw new TypeError("The listener must be a function");var c=new r(o,i||e,a),u=t?t+n:n;return e._events[u]?e._events[u].fn?e._events[u]=[e._events[u],c]:e._events[u].push(c):(e._events[u]=c,e._eventsCount++),e}function a(e,n){0==--e._eventsCount?e._events=new o:delete e._events[n]}function c(){this._events=new o,this._eventsCount=0}Object.create&&(o.prototype=Object.create(null),(new o).__proto__||(t=!1)),c.prototype.eventNames=function(){var e,o,r=[];if(0===this._eventsCount)return r;for(o in e=this._events)n.call(e,o)&&r.push(t?o.slice(1):o);return Object.getOwnPropertySymbols?r.concat(Object.getOwnPropertySymbols(e)):r},c.prototype.listeners=function(e){var n=t?t+e:e,o=this._events[n];if(!o)return[];if(o.fn)return[o.fn];for(var r=0,i=o.length,a=new Array(i);r<i;r++)a[r]=o[r].fn;return a},c.prototype.listenerCount=function(e){var n=t?t+e:e,o=this._events[n];return o?o.fn?1:o.length:0},c.prototype.emit=function(e,n,o,r,i,a){var c=t?t+e:e;if(!this._events[c])return!1;var u,s,l=this._events[c],d=arguments.length;if(l.fn){switch(l.once&&this.removeListener(e,l.fn,void 0,!0),d){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,n),!0;case 3:return l.fn.call(l.context,n,o),!0;case 4:return l.fn.call(l.context,n,o,r),!0;case 5:return l.fn.call(l.context,n,o,r,i),!0;case 6:return l.fn.call(l.context,n,o,r,i,a),!0}for(s=1,u=new Array(d-1);s<d;s++)u[s-1]=arguments[s];l.fn.apply(l.context,u)}else{var f,p=l.length;for(s=0;s<p;s++)switch(l[s].once&&this.removeListener(e,l[s].fn,void 0,!0),d){case 1:l[s].fn.call(l[s].context);break;case 2:l[s].fn.call(l[s].context,n);break;case 3:l[s].fn.call(l[s].context,n,o);break;case 4:l[s].fn.call(l[s].context,n,o,r);break;default:if(!u)for(f=1,u=new Array(d-1);f<d;f++)u[f-1]=arguments[f];l[s].fn.apply(l[s].context,u)}}return!0},c.prototype.on=function(e,n,t){return i(this,e,n,t,!1)},c.prototype.once=function(e,n,t){return i(this,e,n,t,!0)},c.prototype.removeListener=function(e,n,o,r){var i=t?t+e:e;if(!this._events[i])return this;if(!n)return a(this,i),this;var c=this._events[i];if(c.fn)c.fn!==n||r&&!c.once||o&&c.context!==o||a(this,i);else{for(var u=0,s=[],l=c.length;u<l;u++)(c[u].fn!==n||r&&!c[u].once||o&&c[u].context!==o)&&s.push(c[u]);s.length?this._events[i]=1===s.length?s[0]:s:a(this,i)}return this},c.prototype.removeAllListeners=function(e){var n;return e?(n=t?t+e:e,this._events[n]&&a(this,n)):(this._events=new o,this._eventsCount=0),this},c.prototype.off=c.prototype.removeListener,c.prototype.addListener=c.prototype.on,c.prefixed=t,c.EventEmitter=c,e.exports=c})),a=function(e,n){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t])},a(e,n)};
|
6
|
+
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(require("events")):"function"==typeof define&&define.amd?define(["events"],n):n((e="undefined"!=typeof globalThis?globalThis:e||self).events)}(this,(function(e){"use strict";function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var t=n(e);!function(){function e(e,t,o){return t=d(t),function(e,n){if(n&&("object"==typeof n||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return p(e)}(e,n()?Reflect.construct(t,o||[],d(e).constructor):t.apply(e,o))}function n(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(n=function(){return!!e})()}function t(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,o)}return t}function o(e){for(var n=1;n<arguments.length;n++){var o=null!=arguments[n]?arguments[n]:{};n%2?t(Object(o),!0).forEach((function(n){s(e,n,o[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):t(Object(o)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(o,n))}))}return e}function r(e){var n=function(e,n){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var o=t.call(e,"string");if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof n?n:String(n)}function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function a(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function c(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,r(o.key),o)}}function u(e,n,t){return n&&c(e.prototype,n),t&&c(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function s(e,n,t){return(n=r(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function l(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&f(e,n)}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}function f(e,n){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},f(e,n)}function p(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function v(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var o,r,i,a,c=[],u=!0,s=!1;try{if(i=(t=t.call(e)).next,0===n){if(Object(t)!==t)return;u=!1}else for(;!(u=(o=i.call(t)).done)&&(c.push(o.value),c.length!==n);u=!0);}catch(e){s=!0,r=e}finally{try{if(!u&&null!=t.return&&(a=t.return(),Object(a)!==a))return}finally{if(s)throw r}}return c}}(e,n)||h(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(e,n){if(e){if("string"==typeof e)return g(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?g(e,n):void 0}}function g(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,o=new Array(n);t<n;t++)o[t]=e[t];return o}function m(){}var w,y=function(e){return e};function b(e){return e()}function _(){return Object.create(null)}function A(e){e.forEach(b)}function x(e){return"function"==typeof e}function k(e,n){return e!=e?n==n:e!==n||e&&"object"===i(e)||"function"==typeof e}function S(e,n){return w||(w=document.createElement("a")),w.href=n,e===w.href}function I(e){return null==e?"":e}var C="undefined"!=typeof window,T=C?function(){return window.performance.now()}:function(){return Date.now()},M=C?function(e){return requestAnimationFrame(e)}:m,P=new Set;function E(e){P.forEach((function(n){n.c(e)||(P.delete(n),n.f())})),0!==P.size&&M(E)}function B(e,n){e.appendChild(n)}function O(e){if(!e)return document;var n=e.getRootNode?e.getRootNode():e.ownerDocument;return n&&n.host?n:e.ownerDocument}function L(e){var n=D("style");return function(e,n){B(e.head||e,n),n.sheet}(O(e),n),n.sheet}function F(e,n,t){e.insertBefore(n,t||null)}function R(e){e.parentNode&&e.parentNode.removeChild(e)}function H(e,n){for(var t=0;t<e.length;t+=1)e[t]&&e[t].d(n)}function D(e){return document.createElement(e)}function j(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function N(e){return document.createTextNode(e)}function W(){return N(" ")}function G(){return N("")}function $(e,n,t,o){return e.addEventListener(n,t,o),function(){return e.removeEventListener(n,t,o)}}function V(e,n,t){null==t?e.removeAttribute(n):e.getAttribute(n)!==t&&e.setAttribute(n,t)}function q(e,n){n=""+n,e.wholeText!==n&&(e.data=n)}function z(e,n){e.value=null==n?"":n}function K(e,n,t,o){null===t?e.style.removeProperty(n):e.style.setProperty(n,t,o?"important":"")}var U,Q=new Map,J=0;function Z(e,n,t,o,r,i,a){for(var c=arguments.length>7&&void 0!==arguments[7]?arguments[7]:0,u=16.666/o,s="{\n",l=0;l<=1;l+=u){var d=n+(t-n)*i(l);s+=100*l+"%{".concat(a(d,1-d),"}\n")}var f=s+"100% {".concat(a(t,1-t),"}\n}"),p="__svelte_".concat(function(e){for(var n=5381,t=e.length;t--;)n=(n<<5)-n^e.charCodeAt(t);return n>>>0}(f),"_").concat(c),v=O(e),h=Q.get(v)||function(e,n){var t={stylesheet:L(n),rules:{}};return Q.set(e,t),t}(v,e),g=h.stylesheet,m=h.rules;m[p]||(m[p]=!0,g.insertRule("@keyframes ".concat(p," ").concat(f),g.cssRules.length));var w=e.style.animation||"";return e.style.animation="".concat(w?"".concat(w,", "):"").concat(p," ").concat(o,"ms linear ").concat(r,"ms 1 both"),J+=1,p}function X(e){U=e}var Y=[],ee=[],ne=[],te=[],oe=Promise.resolve(),re=!1;function ie(e){ne.push(e)}var ae,ce=new Set,ue=0;function se(){var e=U;do{for(;ue<Y.length;){var n=Y[ue];ue++,X(n),le(n.$$)}for(X(null),Y.length=0,ue=0;ee.length;)ee.pop()();for(var t=0;t<ne.length;t+=1){var o=ne[t];ce.has(o)||(ce.add(o),o())}ne.length=0}while(Y.length);for(;te.length;)te.pop()();re=!1,ce.clear(),X(e)}function le(e){if(null!==e.fragment){e.update(),A(e.before_update);var n=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,n),e.after_update.forEach(ie)}}function de(e,n,t){e.dispatchEvent(function(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=t.bubbles,r=void 0!==o&&o,i=t.cancelable,a=void 0!==i&&i,c=document.createEvent("CustomEvent");return c.initCustomEvent(e,r,a,n),c}("".concat(n?"intro":"outro").concat(t)))}var fe,pe=new Set;function ve(){fe={r:0,c:[],p:fe}}function he(){fe.r||A(fe.c),fe=fe.p}function ge(e,n){e&&e.i&&(pe.delete(e),e.i(n))}function me(e,n,t,o){if(e&&e.o){if(pe.has(e))return;pe.add(e),fe.c.push((function(){pe.delete(e),o&&(t&&e.d(1),o())})),e.o(n)}else o&&o()}var we={duration:0};function ye(e,n,t,o){var r={direction:"both"},i=n(e,t,r),a=o?0:1,c=null,u=null,s=null;function l(){s&&function(e,n){var t=(e.style.animation||"").split(", "),o=t.filter(n?function(e){return e.indexOf(n)<0}:function(e){return-1===e.indexOf("__svelte")}),r=t.length-o.length;r&&(e.style.animation=o.join(", "),(J-=r)||M((function(){J||(Q.forEach((function(e){var n=e.stylesheet.ownerNode;n&&R(n)})),Q.clear())})))}(e,s)}function d(e,n){var t=e.b-a;return n*=Math.abs(t),{a:a,b:e.b,d:t,duration:n,start:e.start,end:e.start+n,group:e.group}}function f(n){var t,o=i||we,r=o.delay,f=void 0===r?0:r,p=o.duration,v=void 0===p?300:p,h=o.easing,g=void 0===h?y:h,w=o.tick,b=void 0===w?m:w,_=o.css,x={start:T()+f,b:n};n||(x.group=fe,fe.r+=1),c||u?u=x:(_&&(l(),s=Z(e,a,n,v,f,g,_)),n&&b(0,1),c=d(x,v),ie((function(){return de(e,n,"start")})),t=function(n){if(u&&n>u.start&&(c=d(u,v),u=null,de(e,c.b,"start"),_&&(l(),s=Z(e,a,c.b,c.duration,0,g,i.css))),c)if(n>=c.end)b(a=c.b,1-a),de(e,c.b,"end"),u||(c.b?l():--c.group.r||A(c.group.c)),c=null;else if(n>=c.start){var t=n-c.start;a=c.a+c.d*g(t/c.duration),b(a,1-a)}return!(!c&&!u)},0===P.size&&M(E),new Promise((function(e){P.add({c:t,f:e})})))}return{run:function(e){x(i)?(ae||(ae=Promise.resolve()).then((function(){ae=null})),ae).then((function(){i=i(r),f(e)})):f(e)},end:function(){l(),c=u=null}}}function be(e){e&&e.c()}function _e(e,n,t,o){var r=e.$$,i=r.fragment,a=r.after_update;i&&i.m(n,t),o||ie((function(){var n,t=e.$$.on_mount.map(b).filter(x);e.$$.on_destroy?(n=e.$$.on_destroy).push.apply(n,function(e){return function(e){if(Array.isArray(e))return g(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||h(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(t)):A(t),e.$$.on_mount=[]})),a.forEach(ie)}function Ae(e,n){var t=e.$$;null!==t.fragment&&(A(t.on_destroy),t.fragment&&t.fragment.d(n),t.on_destroy=t.fragment=null,t.ctx=[])}function xe(e,n,t,o,r,i,a){var c=arguments.length>7&&void 0!==arguments[7]?arguments[7]:[-1],u=U;X(e);var s=e.$$={fragment:null,ctx:[],props:i,update:m,not_equal:r,bound:_(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(n.context||(u?u.$$.context:[])),callbacks:_(),dirty:c,skip_bound:!1,root:n.target||u.$$.root};a&&a(s.root);var l=!1;if(s.ctx=t?t(e,n.props||{},(function(n,t){var o=!(arguments.length<=2)&&arguments.length-2?arguments.length<=2?void 0:arguments[2]:t;return s.ctx&&r(s.ctx[n],s.ctx[n]=o)&&(!s.skip_bound&&s.bound[n]&&s.bound[n](o),l&&function(e,n){-1===e.$$.dirty[0]&&(Y.push(e),re||(re=!0,oe.then(se)),e.$$.dirty.fill(0)),e.$$.dirty[n/31|0]|=1<<n%31}(e,n)),t})):[],s.update(),l=!0,A(s.before_update),s.fragment=!!o&&o(s.ctx),n.target){if(n.hydrate){var d=function(e){return Array.from(e.childNodes)}(n.target);s.fragment&&s.fragment.l(d),d.forEach(R)}else s.fragment&&s.fragment.c();n.intro&&ge(e.$$.fragment),_e(e,n.target,n.anchor,n.customElement),se()}X(u)}var ke=function(){function e(){a(this,e)}return u(e,[{key:"$destroy",value:function(){Ae(this,1),this.$destroy=m}},{key:"$on",value:function(e,n){if(!x(n))return m;var t=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return t.push(n),function(){var e=t.indexOf(n);-1!==e&&t.splice(e,1)}}},{key:"$set",value:function(e){var n;this.$$set&&(n=e,0!==Object.keys(n).length)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}]),e}();function Se(e){var n=e-1;return n*n*n+1}function Ie(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.delay,o=void 0===t?0:t,r=n.duration,i=void 0===r?400:r,a=n.easing,c=void 0===a?y:a,u=+getComputedStyle(e).opacity;return{delay:o,duration:i,easing:c,css:function(e){return"opacity: ".concat(e*u)}}}function Ce(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.delay,o=void 0===t?0:t,r=n.duration,i=void 0===r?400:r,a=n.easing,c=void 0===a?Se:a,u=getComputedStyle(e),s=+u.opacity,l=parseFloat(u.height),d=parseFloat(u.paddingTop),f=parseFloat(u.paddingBottom),p=parseFloat(u.marginTop),v=parseFloat(u.marginBottom),h=parseFloat(u.borderTopWidth),g=parseFloat(u.borderBottomWidth);return{delay:o,duration:i,easing:c,css:function(e){return"overflow: hidden;"+"opacity: ".concat(Math.min(20*e,1)*s,";")+"height: ".concat(e*l,"px;")+"padding-top: ".concat(e*d,"px;")+"padding-bottom: ".concat(e*f,"px;")+"margin-top: ".concat(e*p,"px;")+"margin-bottom: ".concat(e*v,"px;")+"border-top-width: ".concat(e*h,"px;")+"border-bottom-width: ".concat(e*g,"px;")}}}function Te(e){var n,t,o;return{c:function(){V(n=D("div"),"class","mask svelte-1ekfzc9"),K(n,"background-color",e[0]),K(n,"z-index",e[1])},m:function(r,i){F(r,n,i),t||(o=$(n,"click",e[3]),t=!0)},p:function(e,t){var o=v(t,1)[0];1&o&&K(n,"background-color",e[0]),2&o&&K(n,"z-index",e[1])},i:m,o:m,d:function(e){e&&R(n),t=!1,o()}}}function Me(e,n,t){var o=n.bgColor,r=void 0===o?"transparent":o,i=n.zIndex,a=void 0===i?3:i,c=n.onClick;return e.$$set=function(e){"bgColor"in e&&t(0,r=e.bgColor),"zIndex"in e&&t(1,a=e.zIndex),"onClick"in e&&t(2,c=e.onClick)},[r,a,c,function(){c&&c()}]}var Pe=function(n){function t(n){var o;return a(this,t),xe(p(o=e(this,t)),n,Me,Te,k,{bgColor:0,zIndex:1,onClick:2}),o}return l(t,n),u(t)}(ke);function Ee(e,n,t){var o=e.slice();return o[8]=n[t],o[10]=t,o}function Be(e){var n,t,o,r,i,a,c,u,s,l,d,f;n=new Pe({props:{bgColor:"rgba(0, 0, 0, .1)"}});for(var p=""!=e[0]&&Oe(e),v=e[1],h=[],g=0;g<v.length;g+=1)h[g]=Le(Ee(e,v,g));return{c:function(){be(n.$$.fragment),t=W(),o=D("div"),p&&p.c(),r=W(),i=D("div");for(var e=0;e<h.length;e+=1)h[e].c();a=W(),c=D("div"),(u=D("div")).textContent="取消",V(i,"class","body svelte-1t2ya5t"),V(u,"class","button svelte-1t2ya5t"),V(c,"class","footer svelte-1t2ya5t"),V(o,"class","action-sheet svelte-1t2ya5t")},m:function(s,v){_e(n,s,v),F(s,t,v),F(s,o,v),p&&p.m(o,null),B(o,r),B(o,i);for(var g=0;g<h.length;g+=1)h[g].m(i,null);B(o,a),B(o,c),B(c,u),l=!0,d||(f=$(u,"click",e[7]),d=!0)},p:function(e,n){if(""!=e[0]?p?p.p(e,n):((p=Oe(e)).c(),p.m(o,r)):p&&(p.d(1),p=null),22&n){var t;for(v=e[1],t=0;t<v.length;t+=1){var a=Ee(e,v,t);h[t]?h[t].p(a,n):(h[t]=Le(a),h[t].c(),h[t].m(i,null))}for(;t<h.length;t+=1)h[t].d(1);h.length=v.length}},i:function(e){l||(ge(n.$$.fragment,e),ie((function(){s||(s=ye(o,Ce,{duration:300},!0)),s.run(1)})),l=!0)},o:function(e){me(n.$$.fragment,e),s||(s=ye(o,Ce,{duration:300},!1)),s.run(0),l=!1},d:function(e){Ae(n,e),e&&R(t),e&&R(o),p&&p.d(),H(h,e),e&&s&&s.end(),d=!1,f()}}}function Oe(e){var n,t,o;return{c:function(){n=D("div"),t=D("span"),o=N(e[0]),V(t,"class","title svelte-1t2ya5t"),V(n,"class","header svelte-1t2ya5t")},m:function(e,r){F(e,n,r),B(n,t),B(t,o)},p:function(e,n){1&n&&q(o,e[0])},d:function(e){e&&R(n)}}}function Le(e){var n,t,o,r,i,a,c=e[8]+"";function u(){return e[6](e[10])}return{c:function(){n=D("div"),t=D("span"),o=N(c),r=W(),V(t,"class","button-text svelte-1t2ya5t"),V(n,"class","button item svelte-1t2ya5t"),K(n,"color",e[2])},m:function(e,c){F(e,n,c),B(n,t),B(t,o),B(n,r),i||(a=$(n,"click",u),i=!0)},p:function(t,r){e=t,2&r&&c!==(c=e[8]+"")&&q(o,c),4&r&&K(n,"color",e[2])},d:function(e){e&&R(n),i=!1,a()}}}function Fe(e){var n,t,o=e[3]&&Be(e);return{c:function(){o&&o.c(),n=G()},m:function(e,r){o&&o.m(e,r),F(e,n,r),t=!0},p:function(e,t){var r=v(t,1)[0];e[3]?o?(o.p(e,r),8&r&&ge(o,1)):((o=Be(e)).c(),ge(o,1),o.m(n.parentNode,n)):o&&(ve(),me(o,1,1,(function(){o=null})),he())},i:function(e){t||(ge(o),t=!0)},o:function(e){me(o),t=!1},d:function(e){o&&o.d(e),e&&R(n)}}}function Re(e,n,t){var o=n.alertText,r=void 0===o?"":o,i=n.itemList,a=void 0===i?[]:i,c=n.itemColor,u=void 0===c?"#000":c,s=n.show,l=void 0!==s&&s,d=n.onSelect,f=n.onCancel;return e.$$set=function(e){"alertText"in e&&t(0,r=e.alertText),"itemList"in e&&t(1,a=e.itemList),"itemColor"in e&&t(2,u=e.itemColor),"show"in e&&t(3,l=e.show),"onSelect"in e&&t(4,d=e.onSelect),"onCancel"in e&&t(5,f=e.onCancel)},[r,a,u,l,d,f,function(e){d&&d(e)},function(){f&&f()}]}var He=function(n){function t(n){var o;return a(this,t),xe(p(o=e(this,t)),n,Re,Fe,k,{alertText:0,itemList:1,itemColor:2,show:3,onSelect:4,onCancel:5}),o}return l(t,n),u(t)}(ke);function De(e,n,t){var o=e.slice();return o[3]=n[t],o}function je(e){var n;return{c:function(){V(n=D("div"),"class","leaf svelte-cis7d5"),K(n,"color",e[0]),K(n,"opacity",1-e[3]/16),K(n,"transform","rotate(".concat(30*(e[3]+1),"deg)"))},m:function(e,t){F(e,n,t)},p:function(e,t){1&t&&K(n,"color",e[0])},d:function(e){e&&R(n)}}}function Ne(e){for(var n,t=e[2],o=[],r=0;r<t.length;r+=1)o[r]=je(De(e,t,r));return{c:function(){n=D("div");for(var t=0;t<o.length;t+=1)o[t].c();V(n,"class","spinner svelte-cis7d5"),K(n,"width",e[1]+"px"),K(n,"height",e[1]+"px")},m:function(e,t){F(e,n,t);for(var r=0;r<o.length;r+=1)o[r].m(n,null)},p:function(e,r){var i=v(r,1)[0];if(5&i){var a;for(t=e[2],a=0;a<t.length;a+=1){var c=De(e,t,a);o[a]?o[a].p(c,i):(o[a]=je(c),o[a].c(),o[a].m(n,null))}for(;a<o.length;a+=1)o[a].d(1);o.length=t.length}2&i&&K(n,"width",e[1]+"px"),2&i&&K(n,"height",e[1]+"px")},i:m,o:m,d:function(e){e&&R(n),H(o,e)}}}function We(e,n,t){var o=new Array(12).fill(Math.random()).map((function(e,n){return n})),r=n.color,i=void 0===r?"#fff":r,a=n.size,c=void 0===a?30:a;return e.$$set=function(e){"color"in e&&t(0,i=e.color),"size"in e&&t(1,c=e.size)},[i,c,o]}var Ge=function(n){function t(n){var o;return a(this,t),xe(p(o=e(this,t)),n,We,Ne,k,{color:0,size:1}),o}return l(t,n),u(t)}(ke),$e={success:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAAXNSR0IArs4c6QAAD1RJREFUeF7tnU2sJUUVx8+5d4iyYIGaiBM3YNd9C5+4cGNcGIkLEyNujHx/f6swqMOAMiDzAQMzfM3wNTB8w8AwaDSRxBg3uHWFTkycW1WPkEBITDRhgQlj5t7jq0m/8c17777b3be763T3vxMC4XWd86//qV+q+nZ3NRMOOAAHJjrA8AYOwIHJDgAQjA44sI4DAATDAw4AEIwBOFDMAcwgxXxDq444AEA6Umh0s5gDAKSYb2jVEQcASEcKjW4WcwCAFPMNrTriAADpSKHRzWIOAJBivqFVRxwAIB0pNLpZzAEAUsw3tOqIAwCkI4VGN4s5AECK+YZWHXEAgHSk0OhmMQcASDHf0KojDgCQjhQa3SzmAAAp5htadcQBANKRQqObxRwAIMV8Q6uOOABAOlJodLOYAwCkmG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G5q9Ao9GYg4inIOJHDXj7L2Y+KYqi+w3Y6tpEYYDoiEZGRqYNDAxoSI7tOsI/d3xKn6fOzLebfhmUIpYwpAcFli5dukd/f/8hzLwLAMzoYSgg4m+Y+a5Wq3Xb8PDwkl7GmuhbKCBjATcajSNrtdqeAKCP913vZ8nM/CVE1FCEPeMmZrxkG1LKHRBxV2beFQBmdv7rXyuslcy8sq+vT/9BvEsI8duywi4FkPHJNhqNWX19fRoUSpLk5b6+vpfG/v/aa689NTw8/HJZ4gS/xSiwcuXK6atWrZrZarX+d9WqVc/NmTPn1WI8T+6ldEAmDzH0CAqUp0AApDztg2cHFAiAODBJIcTyFAiAlKd98OyAAgEQByYphFieAgGQ8rQPnh1QIADiwCSFEMtTIABSnvbBswMKBEAcmKQQYnkKBEDK0z54dkCBAIgDkxRCLE+BAEh52gfPDigQAHFgkkKI5SkQAClP++DZAQUCIA5MUgixPAUCIOVpHzw7oEAAxIFJCiGWp0AApDztg2cHFPh/ZXMiMqI9WGcAAAAASUVORK5CYII="};function Ve(e){var n,t,o,r,i,a,c,u=e[2]&&qe(),s=[Ue,Ke,ze],l=[];function d(e,n){return null!=e[1]?0:"loading"===e[0]?1:null!=$e[e[0]]?2:-1}~(o=d(e))&&(r=l[o]=s[o](e));var f=""!=e[3]&&Qe(e);return{c:function(){u&&u.c(),n=W(),t=D("div"),r&&r.c(),i=W(),f&&f.c(),V(t,"class","toast svelte-adfvqi")},m:function(e,r){u&&u.m(e,r),F(e,n,r),F(e,t,r),~o&&l[o].m(t,null),B(t,i),f&&f.m(t,null),c=!0},p:function(e,a){e[2]?u?4&a&&ge(u,1):((u=qe()).c(),ge(u,1),u.m(n.parentNode,n)):u&&(ve(),me(u,1,1,(function(){u=null})),he());var c=o;(o=d(e))===c?~o&&l[o].p(e,a):(r&&(ve(),me(l[c],1,1,(function(){l[c]=null})),he()),~o?((r=l[o])?r.p(e,a):(r=l[o]=s[o](e)).c(),ge(r,1),r.m(t,i)):r=null),""!=e[3]?f?f.p(e,a):((f=Qe(e)).c(),f.m(t,null)):f&&(f.d(1),f=null)},i:function(e){c||(ge(u),ge(r),ie((function(){a||(a=ye(t,Ie,{duration:100},!0)),a.run(1)})),c=!0)},o:function(e){me(u),me(r),a||(a=ye(t,Ie,{duration:100},!1)),a.run(0),c=!1},d:function(e){u&&u.d(e),e&&R(n),e&&R(t),~o&&l[o].d(),f&&f.d(),e&&a&&a.end()}}}function qe(e){var n,t;return n=new Pe({props:{bgColor:"rgba(0, 0, 0, .1)"}}),{c:function(){be(n.$$.fragment)},m:function(e,o){_e(n,e,o),t=!0},i:function(e){t||(ge(n.$$.fragment,e),t=!0)},o:function(e){me(n.$$.fragment,e),t=!1},d:function(e){Ae(n,e)}}}function ze(e){var n,t;return{c:function(){V(n=D("img"),"class","icon svelte-adfvqi"),V(n,"alt","img"),S(n.src,t=$e[e[0]])||V(n,"src",t)},m:function(e,t){F(e,n,t)},p:function(e,o){1&o&&!S(n.src,t=$e[e[0]])&&V(n,"src",t)},i:m,o:m,d:function(e){e&&R(n)}}}function Ke(e){var n,t,o;return t=new Ge({}),{c:function(){n=D("div"),be(t.$$.fragment),V(n,"class","spinner-wrapper svelte-adfvqi")},m:function(e,r){F(e,n,r),_e(t,n,null),o=!0},p:m,i:function(e){o||(ge(t.$$.fragment,e),o=!0)},o:function(e){me(t.$$.fragment,e),o=!1},d:function(e){e&&R(n),Ae(t)}}}function Ue(e){var n,t;return{c:function(){V(n=D("img"),"class","icon svelte-adfvqi"),V(n,"alt","img"),S(n.src,t=e[1])||V(n,"src",t)},m:function(e,t){F(e,n,t)},p:function(e,o){2&o&&!S(n.src,t=e[1])&&V(n,"src",t)},i:m,o:m,d:function(e){e&&R(n)}}}function Qe(e){var n,t,o;return{c:function(){n=D("span"),t=N(e[3]),V(n,"class",o=I("title ".concat(e[1]||$e[e[0]]?"hasIcon":""))+" svelte-adfvqi")},m:function(e,o){F(e,n,o),B(n,t)},p:function(e,r){8&r&&q(t,e[3]),3&r&&o!==(o=I("title ".concat(e[1]||$e[e[0]]?"hasIcon":""))+" svelte-adfvqi")&&V(n,"class",o)},d:function(e){e&&R(n)}}}function Je(e){var n,t,o=e[4]&&Ve(e);return{c:function(){o&&o.c(),n=G()},m:function(e,r){o&&o.m(e,r),F(e,n,r),t=!0},p:function(e,t){var r=v(t,1)[0];e[4]?o?(o.p(e,r),16&r&&ge(o,1)):((o=Ve(e)).c(),ge(o,1),o.m(n.parentNode,n)):o&&(ve(),me(o,1,1,(function(){o=null})),he())},i:function(e){t||(ge(o),t=!0)},o:function(e){me(o),t=!1},d:function(e){o&&o.d(e),e&&R(n)}}}function Ze(e,n,t){var o=n.icon,r=void 0===o?"none":o,i=n.image,a=n.mask,c=void 0!==a&&a,u=n.title,s=void 0===u?"":u,l=n.show,d=void 0!==l&&l;return e.$$set=function(e){"icon"in e&&t(0,r=e.icon),"image"in e&&t(1,i=e.image),"mask"in e&&t(2,c=e.mask),"title"in e&&t(3,s=e.title),"show"in e&&t(4,d=e.show)},[r,i,c,s,d]}var Xe=function(n){function t(n){var o;return a(this,t),xe(p(o=e(this,t)),n,Ze,Je,k,{icon:0,image:1,mask:2,title:3,show:4}),o}return l(t,n),u(t)}(ke);function Ye(e){var n,t;return n=new Xe({props:{show:e[2],mask:e[1],title:e[0],icon:"loading"}}),{c:function(){be(n.$$.fragment)},m:function(e,o){_e(n,e,o),t=!0},p:function(e,t){var o=v(t,1)[0],r={};4&o&&(r.show=e[2]),2&o&&(r.mask=e[1]),1&o&&(r.title=e[0]),n.$set(r)},i:function(e){t||(ge(n.$$.fragment,e),t=!0)},o:function(e){me(n.$$.fragment,e),t=!1},d:function(e){Ae(n,e)}}}function en(e,n,t){var o=n.title,r=void 0===o?"":o,i=n.mask,a=void 0!==i&&i,c=n.show,u=void 0!==c&&c;return e.$$set=function(e){"title"in e&&t(0,r=e.title),"mask"in e&&t(1,a=e.mask),"show"in e&&t(2,u=e.show)},[r,a,u]}var nn=function(n){function t(n){var o;return a(this,t),xe(p(o=e(this,t)),n,en,Ye,k,{title:0,mask:1,show:2}),o}return l(t,n),u(t)}(ke);function tn(e){var n,t,o;return{c:function(){V(n=D("input"),"class","input svelte-1fikcsw"),V(n,"maxlength",e[3]),V(n,"placeholder",e[1])},m:function(r,i){F(r,n,i),z(n,e[0]),t||(o=[$(n,"input",e[7]),$(n,"input",e[8])],t=!0)},p:function(e,t){8&t&&V(n,"maxlength",e[3]),2&t&&V(n,"placeholder",e[1]),1&t&&n.value!==e[0]&&z(n,e[0])},d:function(e){e&&R(n),t=!1,A(o)}}}function on(e){var n,t,o;return{c:function(){V(n=D("textarea"),"class","input svelte-1fikcsw"),V(n,"maxlength",e[3]),V(n,"placeholder",e[1])},m:function(r,i){F(r,n,i),z(n,e[0]),t||(o=[$(n,"input",e[5]),$(n,"input",e[6])],t=!0)},p:function(e,t){8&t&&V(n,"maxlength",e[3]),2&t&&V(n,"placeholder",e[1]),1&t&&z(n,e[0])},d:function(e){e&&R(n),t=!1,A(o)}}}function rn(e){var n;function t(e,n){return e[2]?on:tn}var o=t(e),r=o(e);return{c:function(){r.c(),n=G()},m:function(e,t){r.m(e,t),F(e,n,t)},p:function(e,i){var a=v(i,1)[0];o===(o=t(e))&&r?r.p(e,a):(r.d(1),(r=o(e))&&(r.c(),r.m(n.parentNode,n)))},i:m,o:m,d:function(e){r.d(e),e&&R(n)}}}function an(e,n,t){var o=n.value,r=void 0===o?"":o,i=n.placeholderText,a=void 0===i?"":i,c=n.muti,u=void 0!==c&&c,s=n.maxLength,l=n.onInput;return e.$$set=function(e){"value"in e&&t(0,r=e.value),"placeholderText"in e&&t(1,a=e.placeholderText),"muti"in e&&t(2,u=e.muti),"maxLength"in e&&t(3,s=e.maxLength),"onInput"in e&&t(4,l=e.onInput)},[r,a,u,s,l,function(){r=this.value,t(0,r)},function(){l&&l(r)},function(){r=this.value,t(0,r)},function(){l&&l(r)}]}var cn=function(n){function t(n){var o;return a(this,t),xe(p(o=e(this,t)),n,an,rn,k,{value:0,placeholderText:1,muti:2,maxLength:3,onInput:4}),o}return l(t,n),u(t)}(ke);function un(e){var n,t,o,r,i,a,c,u,s,l,d,f,p,v,h,g,m,w,y;n=new Pe({props:{bgColor:"rgba(0, 0, 0, .1)"}});var b=[ln,sn],_=[];function A(e,n){return e[7]?0:1}s=A(e),l=_[s]=b[s](e);var x=e[2]&&dn(e);return{c:function(){be(n.$$.fragment),t=W(),o=D("div"),r=D("div"),i=D("span"),a=N(e[1]),c=W(),u=D("div"),l.c(),d=W(),f=D("div"),x&&x.c(),p=W(),v=D("div"),h=N(e[5]),V(i,"class","title svelte-lduamy"),V(r,"class","header svelte-lduamy"),V(u,"class","body svelte-lduamy"),V(v,"class","button svelte-lduamy"),K(v,"color",e[6]),V(f,"class","footer svelte-lduamy"),V(o,"class","modal svelte-lduamy")},m:function(l,g){_e(n,l,g),F(l,t,g),F(l,o,g),B(o,r),B(r,i),B(i,a),B(o,c),B(o,u),_[s].m(u,null),B(o,d),B(o,f),x&&x.m(f,null),B(f,p),B(f,v),B(v,h),m=!0,w||(y=$(v,"click",e[14]),w=!0)},p:function(e,n){(!m||2&n)&&q(a,e[1]);var t=s;(s=A(e))===t?_[s].p(e,n):(ve(),me(_[t],1,1,(function(){_[t]=null})),he(),(l=_[s])?l.p(e,n):(l=_[s]=b[s](e)).c(),ge(l,1),l.m(u,null)),e[2]?x?x.p(e,n):((x=dn(e)).c(),x.m(f,p)):x&&(x.d(1),x=null),(!m||32&n)&&q(h,e[5]),64&n&&K(v,"color",e[6])},i:function(e){m||(ge(n.$$.fragment,e),ge(l),ie((function(){g||(g=ye(o,Ie,{duration:100},!0)),g.run(1)})),m=!0)},o:function(e){me(n.$$.fragment,e),me(l),g||(g=ye(o,Ie,{duration:100},!1)),g.run(0),m=!1},d:function(e){Ae(n,e),e&&R(t),e&&R(o),_[s].d(),x&&x.d(),e&&g&&g.end(),w=!1,y()}}}function sn(e){var n,t;return{c:function(){n=D("div"),t=N(e[0]),V(n,"class","body-text svelte-lduamy")},m:function(e,o){F(e,n,o),B(n,t)},p:function(e,n){1&n&&q(t,e[0])},i:m,o:m,d:function(e){e&&R(n)}}}function ln(e){var n,t,o;return t=new cn({props:{muti:!0,value:e[0],onInput:e[12],placeholderText:e[8]}}),{c:function(){n=D("div"),be(t.$$.fragment),V(n,"class","input-wrapper svelte-lduamy")},m:function(e,r){F(e,n,r),_e(t,n,null),o=!0},p:function(e,n){var o={};1&n&&(o.value=e[0]),1&n&&(o.onInput=e[12]),256&n&&(o.placeholderText=e[8]),t.$set(o)},i:function(e){o||(ge(t.$$.fragment,e),o=!0)},o:function(e){me(t.$$.fragment,e),o=!1},d:function(e){e&&R(n),Ae(t)}}}function dn(e){var n,t,o,r;return{c:function(){n=D("div"),t=N(e[3]),V(n,"class","button cancel svelte-lduamy"),K(n,"color",e[4])},m:function(i,a){F(i,n,a),B(n,t),o||(r=$(n,"click",e[13]),o=!0)},p:function(e,o){8&o&&q(t,e[3]),16&o&&K(n,"color",e[4])},d:function(e){e&&R(n),o=!1,r()}}}function fn(e){var n,t,o=e[9]&&un(e);return{c:function(){o&&o.c(),n=G()},m:function(e,r){o&&o.m(e,r),F(e,n,r),t=!0},p:function(e,t){var r=v(t,1)[0];e[9]?o?(o.p(e,r),512&r&&ge(o,1)):((o=un(e)).c(),ge(o,1),o.m(n.parentNode,n)):o&&(ve(),me(o,1,1,(function(){o=null})),he())},i:function(e){t||(ge(o),t=!0)},o:function(e){me(o),t=!1},d:function(e){o&&o.d(e),e&&R(n)}}}function pn(e,n,t){var o=n.title,r=void 0===o?"标题":o,i=n.content,a=void 0===i?"":i,c=n.showCancel,u=void 0===c||c,s=n.cancelText,l=void 0===s?"取消":s,d=n.cancelColor,f=void 0===d?"#000":d,p=n.confirmText,v=void 0===p?"确定":p,h=n.confirmColor,g=void 0===h?"#576B95":h,m=n.editable,w=void 0===m||m,y=n.placeholderText,b=void 0===y?"":y,_=n.show,A=void 0!==_&&_,x=n.onConfirm,k=n.onCancel;return e.$$set=function(e){"title"in e&&t(1,r=e.title),"content"in e&&t(0,a=e.content),"showCancel"in e&&t(2,u=e.showCancel),"cancelText"in e&&t(3,l=e.cancelText),"cancelColor"in e&&t(4,f=e.cancelColor),"confirmText"in e&&t(5,v=e.confirmText),"confirmColor"in e&&t(6,g=e.confirmColor),"editable"in e&&t(7,w=e.editable),"placeholderText"in e&&t(8,b=e.placeholderText),"show"in e&&t(9,A=e.show),"onConfirm"in e&&t(10,x=e.onConfirm),"onCancel"in e&&t(11,k=e.onCancel)},[a,r,u,l,f,v,g,w,b,A,x,k,function(e){t(0,a=e)},function(){k&&k(a)},function(){x&&x(a)}]}var vn=function(n){function t(n){var o;return a(this,t),xe(p(o=e(this,t)),n,pn,fn,k,{title:1,content:0,showCancel:2,cancelText:3,cancelColor:4,confirmText:5,confirmColor:6,editable:7,placeholderText:8,show:9,onConfirm:10,onCancel:11}),o}return l(t,n),u(t)}(ke);function hn(e){var n,t,o,r,i;return{c:function(){n=D("div"),t=j("svg"),V(o=j("polyline"),"points","15 18 9 12 15 6"),V(t,"xmlns","http://www.w3.org/2000/svg"),V(t,"width","18px"),V(t,"height","18px"),V(t,"fill","none"),V(t,"viewBox","0 0 24 24"),V(t,"stroke","currentColor"),V(t,"stroke-width","2"),V(t,"stroke-linecap","round"),V(t,"stroke-linejoin","round"),K(t,"color",e[1]),V(n,"role","button"),V(n,"class","btn-back svelte-o95f8l")},m:function(a,c){F(a,n,c),B(n,t),B(t,o),r||(i=$(n,"click",e[2]),r=!0)},p:function(e,n){2&v(n,1)[0]&&K(t,"color",e[1])},i:m,o:m,d:function(e){e&&R(n),r=!1,i()}}}function gn(e,n,t){var o=n.onClick,r=n.color,i=void 0===r?"#000":r;return e.$$set=function(e){"onClick"in e&&t(0,o=e.onClick),"color"in e&&t(1,i=e.color)},[o,i,function(){o&&o()}]}var mn=function(n){function t(n){var o;return a(this,t),xe(p(o=e(this,t)),n,gn,hn,k,{onClick:0,color:1}),o}return l(t,n),u(t)}(ke);function wn(e){var n,t,o,r,i,a,c,u=e[4]&&yn(e),s=e[0]&&bn();return{c:function(){n=D("div"),t=D("div"),u&&u.c(),o=W(),s&&s.c(),r=W(),i=D("div"),a=N(e[1]),V(t,"class","nav-action-btns svelte-1ouzypl"),V(i,"class","nav-title svelte-1ouzypl"),K(i,"color",e[2]),V(n,"class","nav svelte-1ouzypl"),K(n,"background-color",e[3]),K(n,"transition-duration","".concat(e[6].duration,"ms")),K(n,"transition-timing-function",e[6].timingFunc)},m:function(e,l){F(e,n,l),B(n,t),u&&u.m(t,null),B(t,o),s&&s.m(t,null),B(n,r),B(n,i),B(i,a),c=!0},p:function(e,r){e[4]?u?(u.p(e,r),16&r&&ge(u,1)):((u=yn(e)).c(),ge(u,1),u.m(t,o)):u&&(ve(),me(u,1,1,(function(){u=null})),he()),e[0]?s?1&r&&ge(s,1):((s=bn()).c(),ge(s,1),s.m(t,null)):s&&(ve(),me(s,1,1,(function(){s=null})),he()),(!c||2&r)&&q(a,e[1]),4&r&&K(i,"color",e[2]),8&r&&K(n,"background-color",e[3]),64&r&&K(n,"transition-duration","".concat(e[6].duration,"ms")),64&r&&K(n,"transition-timing-function",e[6].timingFunc)},i:function(e){c||(ge(u),ge(s),c=!0)},o:function(e){me(u),me(s),c=!1},d:function(e){e&&R(n),u&&u.d(),s&&s.d()}}}function yn(e){var n,t;return n=new mn({props:{color:e[2],onClick:e[8]}}),{c:function(){be(n.$$.fragment)},m:function(e,o){_e(n,e,o),t=!0},p:function(e,t){var o={};4&t&&(o.color=e[2]),32&t&&(o.onClick=e[8]),n.$set(o)},i:function(e){t||(ge(n.$$.fragment,e),t=!0)},o:function(e){me(n.$$.fragment,e),t=!1},d:function(e){Ae(n,e)}}}function bn(e){var n,t;return n=new Ge({props:{color:"#000",size:16}}),{c:function(){be(n.$$.fragment)},m:function(e,o){_e(n,e,o),t=!0},i:function(e){t||(ge(n.$$.fragment,e),t=!0)},o:function(e){me(n.$$.fragment,e),t=!1},d:function(e){Ae(n,e)}}}function _n(e){var n,t,o=e[7]&&wn(e);return{c:function(){o&&o.c(),n=G()},m:function(e,r){o&&o.m(e,r),F(e,n,r),t=!0},p:function(e,t){var r=v(t,1)[0];e[7]?o?(o.p(e,r),128&r&&ge(o,1)):((o=wn(e)).c(),ge(o,1),o.m(n.parentNode,n)):o&&(ve(),me(o,1,1,(function(){o=null})),he())},i:function(e){t||(ge(o),t=!0)},o:function(e){me(o),t=!1},d:function(e){o&&o.d(e),e&&R(n)}}}function An(e,n,t){var o=n.loading,r=void 0!==o&&o,i=n.title,a=n.textColor,c=void 0===a?"#000":a,u=n.bgColor,s=void 0===u?"#fff":u,l=n.showBtns,d=void 0!==l&&l,f=n.onBack,p=n.animation,v=void 0===p?{duration:0,timingFunc:"linear"}:p,h=n.show,g=void 0===h||h;return e.$$set=function(e){"loading"in e&&t(0,r=e.loading),"title"in e&&t(1,i=e.title),"textColor"in e&&t(2,c=e.textColor),"bgColor"in e&&t(3,s=e.bgColor),"showBtns"in e&&t(4,d=e.showBtns),"onBack"in e&&t(5,f=e.onBack),"animation"in e&&t(6,v=e.animation),"show"in e&&t(7,g=e.show)},[r,i,c,s,d,f,v,g,function(){f&&f()}]}var xn=function(n){function t(n){var o;return a(this,t),xe(p(o=e(this,t)),n,An,_n,k,{loading:0,title:1,textColor:2,bgColor:3,showBtns:4,onBack:5,animation:6,show:7}),o}return l(t,n),u(t)}(ke);function kn(e){var n,t,o,r,i,a,c,u,s,l,d,f,p,h,g;return{c:function(){n=D("div"),t=D("div"),o=j("svg"),r=j("path"),i=j("path"),a=j("path"),c=W(),u=D("span"),s=W(),l=D("div"),d=j("svg"),f=j("path"),p=j("path"),V(r,"d","M512 512m-119.466667 0a119.466667 119.466667 0 1 0 238.933334 0 119.466667 119.466667 0 1 0-238.933334 0Z"),V(r,"fill",e[6]),V(r,"p-id","10643"),V(i,"d","M785.066667 529.066667m-68.266667 0a68.266667 68.266667 0 1 0 136.533333 0 68.266667 68.266667 0 1 0-136.533333 0Z"),V(i,"fill",e[6]),V(i,"p-id","10644"),V(a,"d","M238.933333 529.066667m-68.266666 0a68.266667 68.266667 0 1 0 136.533333 0 68.266667 68.266667 0 1 0-136.533333 0Z"),V(a,"fill",e[6]),V(a,"p-id","10645"),V(o,"t","1713151535527"),V(o,"class","icon"),V(o,"viewBox","0 0 1024 1024"),V(o,"version","1.1"),V(o,"xmlns","http://www.w3.org/2000/svg"),V(o,"p-id","10642"),V(o,"width","26"),V(o,"height","26"),V(u,"class","line svelte-10fi14j"),K(u,"background-color",e[4]),V(t,"role","button"),V(t,"class","tools-item svelte-10fi14j"),V(f,"d","M512 353.5872c87.4496 0 158.4128 70.9632 158.4128 158.4128S599.4496 670.4128 512 670.4128c-87.4496 0-158.4128-70.9632-158.4128-158.4128S424.5504 353.5872 512 353.5872z"),V(f,"fill",e[6]),V(f,"p-id","10253"),V(p,"d","M1018.88 512c0 279.9616-226.9184 506.88-506.88 506.88S5.12 791.9616 5.12 512 232.0384 5.12 512 5.12s506.88 226.9184 506.88 506.88zM512 132.096c-209.8176 0-379.904 170.0864-379.904 379.904s170.0864 379.904 379.904 379.904 379.904-170.0864 379.904-379.904-170.0864-379.904-379.904-379.904z"),V(p,"fill",e[6]),V(p,"p-id","10254"),V(d,"t","1713152201831"),V(d,"class","icon"),V(d,"viewBox","0 0 1024 1024"),V(d,"version","1.1"),V(d,"xmlns","http://www.w3.org/2000/svg"),V(d,"p-id","10252"),V(d,"width","20"),V(d,"height","20"),V(l,"role","button"),V(l,"class","tools-item svelte-10fi14j"),V(n,"class","nav-bar-tools portrait svelte-10fi14j"),K(n,"border-color",e[5]),K(n,"background-color",e[3]),K(n,"top",e[7]+"px"),K(n,"right",e[8]+"px")},m:function(v,m){F(v,n,m),B(n,t),B(t,o),B(o,r),B(o,i),B(o,a),B(t,c),B(t,u),B(n,s),B(n,l),B(l,d),B(d,f),B(d,p),e[11](n),h||(g=[$(t,"click",e[9]),$(l,"click",e[10])],h=!0)},p:function(e,t){var o=v(t,1)[0];64&o&&V(r,"fill",e[6]),64&o&&V(i,"fill",e[6]),64&o&&V(a,"fill",e[6]),16&o&&K(u,"background-color",e[4]),64&o&&V(f,"fill",e[6]),64&o&&V(p,"fill",e[6]),32&o&&K(n,"border-color",e[5]),8&o&&K(n,"background-color",e[3]),128&o&&K(n,"top",e[7]+"px"),256&o&&K(n,"right",e[8]+"px")},i:m,o:m,d:function(t){t&&R(n),e[11](null),h=!1,A(g)}}}function Sn(e,n,t){var o=n.onMore,r=n.onClose,i=n.el,a=n.bgColor,c=void 0===a?"rgba(255, 255, 255, .6)":a,u=n.lineColor,s=void 0===u?"rgba(255, 255, 255, .3)":u,l=n.borderColor,d=void 0===l?"rgba(0, 0, 0, .1)":l,f=n.iconColor,p=void 0===f?"#333":f,v=n.top,h=void 0===v?6:v,g=n.right,m=void 0===g?10:g;return e.$$set=function(e){"onMore"in e&&t(1,o=e.onMore),"onClose"in e&&t(2,r=e.onClose),"el"in e&&t(0,i=e.el),"bgColor"in e&&t(3,c=e.bgColor),"lineColor"in e&&t(4,s=e.lineColor),"borderColor"in e&&t(5,d=e.borderColor),"iconColor"in e&&t(6,p=e.iconColor),"top"in e&&t(7,h=e.top),"right"in e&&t(8,m=e.right)},[i,o,r,c,s,d,p,h,m,function(){o&&o()},function(){r&&r()},function(e){ee[e?"unshift":"push"]((function(){t(0,i=e)}))}]}var In=function(n){function t(n){var o;return a(this,t),xe(p(o=e(this,t)),n,Sn,kn,k,{onMore:1,onClose:2,el:0,bgColor:3,lineColor:4,borderColor:5,iconColor:6,top:7,right:8}),o}return l(t,n),u(t,[{key:"onMore",get:function(){return this.$$.ctx[1]},set:function(e){this.$$set({onMore:e}),se()}},{key:"onClose",get:function(){return this.$$.ctx[2]},set:function(e){this.$$set({onClose:e}),se()}},{key:"el",get:function(){return this.$$.ctx[0]},set:function(e){this.$$set({el:e}),se()}},{key:"bgColor",get:function(){return this.$$.ctx[3]},set:function(e){this.$$set({bgColor:e}),se()}},{key:"lineColor",get:function(){return this.$$.ctx[4]},set:function(e){this.$$set({lineColor:e}),se()}},{key:"borderColor",get:function(){return this.$$.ctx[5]},set:function(e){this.$$set({borderColor:e}),se()}},{key:"iconColor",get:function(){return this.$$.ctx[6]},set:function(e){this.$$set({iconColor:e}),se()}},{key:"top",get:function(){return this.$$.ctx[7]},set:function(e){this.$$set({top:e}),se()}},{key:"right",get:function(){return this.$$.ctx[8]},set:function(e){this.$$set({right:e}),se()}}]),t}(ke);function Cn(e){var n;return{c:function(){V(n=D("div"),"class","status-bar-holder svelte-1tsnloh"),K(n,"height",e[0]+"px")},m:function(e,t){F(e,n,t)},p:function(e,t){1&v(t,1)[0]&&K(n,"height",e[0]+"px")},i:m,o:m,d:function(e){e&&R(n)}}}function Tn(e,n,t){var o=n.height,r=void 0===o?0:o;return e.$$set=function(e){"height"in e&&t(0,r=e.height)},[r]}var Mn=function(n){function t(n){var o;return a(this,t),xe(p(o=e(this,t)),n,Tn,Cn,k,{height:0}),o}return l(t,n),u(t)}(ke);function Pn(e){var n,t,o,r=e[0].badge+"";return{c:function(){n=D("div"),t=D("span"),o=N(r),V(t,"class","badge-text svelte-18y9mkk"),V(n,"class","badge svelte-18y9mkk")},m:function(e,r){F(e,n,r),B(n,t),B(t,o)},p:function(e,n){1&n&&r!==(r=e[0].badge+"")&&q(o,r)},d:function(e){e&&R(n)}}}function En(e){var n;return{c:function(){V(n=D("div"),"class","red-dot svelte-18y9mkk")},m:function(e,t){F(e,n,t)},d:function(e){e&&R(n)}}}function Bn(e){var n,t,o,r,i,a,c,u,s,l,d,f=e[0].text+"",p=e[0].badge&&Pn(e),h=e[0].redDot&&En();return{c:function(){n=D("div"),t=D("div"),p&&p.c(),o=W(),h&&h.c(),r=W(),i=D("img"),c=W(),u=D("div"),s=N(f),V(i,"class","img svelte-18y9mkk"),S(i.src,a=e[3]?e[0].selectedIconPath:e[0].iconPath)||V(i,"src",a),V(i,"alt","img"),V(t,"class","icon svelte-18y9mkk"),V(u,"class","tab-text svelte-18y9mkk"),K(u,"color",e[3]?e[2]:e[1]),V(n,"role","button"),V(n,"class","tab-item svelte-18y9mkk")},m:function(a,f){F(a,n,f),B(n,t),p&&p.m(t,null),B(t,o),h&&h.m(t,null),B(t,r),B(t,i),B(n,c),B(n,u),B(u,s),l||(d=$(n,"click",e[5]),l=!0)},p:function(e,n){var c=v(n,1)[0];e[0].badge?p?p.p(e,c):((p=Pn(e)).c(),p.m(t,o)):p&&(p.d(1),p=null),e[0].redDot?h||((h=En()).c(),h.m(t,r)):h&&(h.d(1),h=null),9&c&&!S(i.src,a=e[3]?e[0].selectedIconPath:e[0].iconPath)&&V(i,"src",a),1&c&&f!==(f=e[0].text+"")&&q(s,f),14&c&&K(u,"color",e[3]?e[2]:e[1])},i:m,o:m,d:function(e){e&&R(n),p&&p.d(),h&&h.d(),l=!1,d()}}}function On(e,n,t){var o=n.data,r=n.color,i=n.selectedColor,a=n.active,c=void 0!==a&&a,u=n.onClick;return e.$$set=function(e){"data"in e&&t(0,o=e.data),"color"in e&&t(1,r=e.color),"selectedColor"in e&&t(2,i=e.selectedColor),"active"in e&&t(3,c=e.active),"onClick"in e&&t(4,u=e.onClick)},[o,r,i,c,u,function(e){c||u&&u(o)}]}var Ln=function(n){function t(n){var o;return a(this,t),xe(p(o=e(this,t)),n,On,Bn,k,{data:0,color:1,selectedColor:2,active:3,onClick:4}),o}return l(t,n),u(t)}(ke);function Fn(e,n,t){var o=e.slice();return o[10]=n[t],o[12]=t,o}function Rn(e){for(var n,t,o,r=e[2],i=[],a=0;a<r.length;a+=1)i[a]=Hn(Fn(e,r,a));var c=function(e){return me(i[e],1,1,(function(){i[e]=null}))};return{c:function(){n=D("div");for(var o=0;o<i.length;o+=1)i[o].c();V(n,"class","tab-list svelte-h0c4dd"),V(n,"style",t="border-color: ".concat(e[5],";background-color: ").concat(e[6],";margin-bottom:").concat(e[8],"px"))},m:function(e,t){F(e,n,t);for(var r=0;r<i.length;r+=1)i[r].m(n,null);o=!0},p:function(e,a){if(31&a){var u;for(r=e[2],u=0;u<r.length;u+=1){var s=Fn(e,r,u);i[u]?(i[u].p(s,a),ge(i[u],1)):(i[u]=Hn(s),i[u].c(),ge(i[u],1),i[u].m(n,null))}for(ve(),u=r.length;u<i.length;u+=1)c(u);he()}(!o||352&a&&t!==(t="border-color: ".concat(e[5],";background-color: ").concat(e[6],";margin-bottom:").concat(e[8],"px")))&&V(n,"style",t)},i:function(e){if(!o){for(var n=0;n<r.length;n+=1)ge(i[n]);o=!0}},o:function(e){i=i.filter(Boolean);for(var n=0;n<i.length;n+=1)me(i[n]);o=!1},d:function(e){e&&R(n),H(i,e)}}}function Hn(e){var n,t;function o(){for(var n,t=arguments.length,o=new Array(t),r=0;r<t;r++)o[r]=arguments[r];return(n=e)[9].apply(n,[e[12]].concat(o))}return n=new Ln({props:{data:e[10],active:e[3]===e[10].pagePath,selectedColor:e[1],color:e[0],onClick:o}}),{c:function(){be(n.$$.fragment)},m:function(e,o){_e(n,e,o),t=!0},p:function(t,r){e=t;var i={};4&r&&(i.data=e[10]),12&r&&(i.active=e[3]===e[10].pagePath),2&r&&(i.selectedColor=e[1]),1&r&&(i.color=e[0]),16&r&&(i.onClick=o),n.$set(i)},i:function(e){t||(ge(n.$$.fragment,e),t=!0)},o:function(e){me(n.$$.fragment,e),t=!1},d:function(e){Ae(n,e)}}}function Dn(e){var n,t,o=e[7]&&Rn(e);return{c:function(){o&&o.c(),n=G()},m:function(e,r){o&&o.m(e,r),F(e,n,r),t=!0},p:function(e,t){var r=v(t,1)[0];e[7]?o?(o.p(e,r),128&r&&ge(o,1)):((o=Rn(e)).c(),ge(o,1),o.m(n.parentNode,n)):o&&(ve(),me(o,1,1,(function(){o=null})),he())},i:function(e){t||(ge(o),t=!0)},o:function(e){me(o),t=!1},d:function(e){o&&o.d(e),e&&R(n)}}}function jn(e,n,t){var o=n.color,r=void 0===o?"#000":o,i=n.selectedColor,a=void 0===i?"#4285f4":i,c=n.configList,u=void 0===c?[]:c,s=n.value,l=n.onChange,d=n.borderColor,f=void 0===d?"#eee":d,p=n.backgroundColor,v=void 0===p?"#fff":p,h=n.show,g=void 0!==h&&h,m=n.bottomSpace,w=void 0===m?0:m;return e.$$set=function(e){"color"in e&&t(0,r=e.color),"selectedColor"in e&&t(1,a=e.selectedColor),"configList"in e&&t(2,u=e.configList),"value"in e&&t(3,s=e.value),"onChange"in e&&t(4,l=e.onChange),"borderColor"in e&&t(5,f=e.borderColor),"backgroundColor"in e&&t(6,v=e.backgroundColor),"show"in e&&t(7,g=e.show),"bottomSpace"in e&&t(8,w=e.bottomSpace)},[r,a,u,s,l,f,v,g,w,function(e,n){l&&l(n,e)}]}var Nn=function(n){function t(n){var o;return a(this,t),xe(p(o=e(this,t)),n,jn,Dn,k,{color:0,selectedColor:1,configList:2,value:3,onChange:4,borderColor:5,backgroundColor:6,show:7,bottomSpace:8}),o}return l(t,n),u(t,[{key:"color",get:function(){return this.$$.ctx[0]},set:function(e){this.$$set({color:e}),se()}},{key:"selectedColor",get:function(){return this.$$.ctx[1]},set:function(e){this.$$set({selectedColor:e}),se()}},{key:"configList",get:function(){return this.$$.ctx[2]},set:function(e){this.$$set({configList:e}),se()}},{key:"value",get:function(){return this.$$.ctx[3]},set:function(e){this.$$set({value:e}),se()}},{key:"onChange",get:function(){return this.$$.ctx[4]},set:function(e){this.$$set({onChange:e}),se()}},{key:"borderColor",get:function(){return this.$$.ctx[5]},set:function(e){this.$$set({borderColor:e}),se()}},{key:"backgroundColor",get:function(){return this.$$.ctx[6]},set:function(e){this.$$set({backgroundColor:e}),se()}},{key:"show",get:function(){return this.$$.ctx[7]},set:function(e){this.$$set({show:e}),se()}},{key:"bottomSpace",get:function(){return this.$$.ctx[8]},set:function(e){this.$$set({bottomSpace:e}),se()}}]),t}(ke);function Wn(e){var n,t,o,r,i,a,c,u,s,l,d,f,p,v=(e[9][e[5]]||"确定")+"";return(n=new Pe({props:{bgColor:"rgba(0, 0, 0, .1)"}})).$on("click",e[10]),i=new cn({props:{maxLength:e[6],muti:!!e[7],value:e[0],onInput:e[11]}}),{c:function(){be(n.$$.fragment),t=W(),o=D("div"),r=D("div"),be(i.$$.fragment),a=W(),c=D("div"),u=D("span"),s=N(v),V(u,"class","button-confirm-text svelte-1tawb6"),V(c,"class","button-confirm svelte-1tawb6"),V(r,"class","keyboard-header svelte-1tawb6"),V(o,"class","keyboard svelte-1tawb6")},m:function(l,v){_e(n,l,v),F(l,t,v),F(l,o,v),B(o,r),_e(i,r,null),B(r,a),B(r,c),B(c,u),B(u,s),d=!0,f||(p=$(c,"click",e[12]),f=!0)},p:function(e,n){var t={};64&n&&(t.maxLength=e[6]),128&n&&(t.muti=!!e[7]),1&n&&(t.value=e[0]),5&n&&(t.onInput=e[11]),i.$set(t),(!d||32&n)&&v!==(v=(e[9][e[5]]||"确定")+"")&&q(s,v)},i:function(e){d||(ge(n.$$.fragment,e),ge(i.$$.fragment,e),ie((function(){l||(l=ye(o,Ce,{duration:300},!0)),l.run(1)})),d=!0)},o:function(e){me(n.$$.fragment,e),me(i.$$.fragment,e),l||(l=ye(o,Ce,{duration:300},!1)),l.run(0),d=!1},d:function(e){Ae(n,e),e&&R(t),e&&R(o),Ae(i),e&&l&&l.end(),f=!1,p()}}}function Gn(e){var n,t,o=e[1]&&Wn(e);return{c:function(){o&&o.c(),n=G()},m:function(e,r){o&&o.m(e,r),F(e,n,r),t=!0},p:function(e,t){var r=v(t,1)[0];e[1]?o?(o.p(e,r),2&r&&ge(o,1)):((o=Wn(e)).c(),ge(o,1),o.m(n.parentNode,n)):o&&(ve(),me(o,1,1,(function(){o=null})),he())},i:function(e){t||(ge(o),t=!0)},o:function(e){me(o),t=!1},d:function(e){o&&o.d(e),e&&R(n)}}}function $n(e,n,t){var o=n.show,r=void 0!==o&&o,i=n.onChange,a=n.onMaskClick,c=n.onConfirm,u=n.confirmType,s=void 0===u?"done":u,l=n.value,d=void 0===l?"":l,f=n.maxLength,p=n.multiple,v=n.confirmHold;return e.$$set=function(e){"show"in e&&t(1,r=e.show),"onChange"in e&&t(2,i=e.onChange),"onMaskClick"in e&&t(3,a=e.onMaskClick),"onConfirm"in e&&t(4,c=e.onConfirm),"confirmType"in e&&t(5,s=e.confirmType),"value"in e&&t(0,d=e.value),"maxLength"in e&&t(6,f=e.maxLength),"multiple"in e&&t(7,p=e.multiple),"confirmHold"in e&&t(8,v=e.confirmHold)},[d,r,i,a,c,s,f,p,v,{done:"完成",next:"下一个",search:"搜索",go:"前往",send:"发送"},function(){a&&a(d)},function(e){t(0,d=e),i&&i(e)},function(){c&&c(d,v)}]}var Vn=function(n){function t(n){var o;return a(this,t),xe(p(o=e(this,t)),n,$n,Gn,k,{show:1,onChange:2,onMaskClick:3,onConfirm:4,confirmType:5,value:0,maxLength:6,multiple:7,confirmHold:8}),o}return l(t,n),u(t)}(ke),qn="serviceStart",zn="appDataChange",Kn="updateAppData",Un="tabItemChanged",Qn="showLoading",Jn="hideLoading",Zn="showToast",Xn="hideToast",Yn="showModal",et="showNavigationBarLoading",nt="hideNavigationBarLoading",tt="setNavigationBarTitle",ot="setNavigationBarColor",rt="showActionSheet",it="showTabBar",at="hideTabBar",ct="setTabBarStyle",ut="setTabBarItem",st="setTabBarBadge",lt="removeTabBarBadge",dt="hideTabBarRedDot",ft="showTabBarRedDot",pt="getMenuButtonBoundingClientRect",vt="onDeviceOrientationChange",ht="showKeyboard",gt="hideKeyboard",mt="updateKeyboard",wt="invokeCallbackHandler",yt="dispatchServiceEvent";function bt(){return document.getElementById("webview-container")}var _t=window.navigator.userAgent.toLowerCase();function At(){var e=(window.__extInfo||{}).extType;return/\_inner\_/gi.test(e)}function xt(e){var n=e.safeArea,t=e.windowHeight;return Math.max(t-n.bottom,0)}function kt(e){return"white"===e?{bgColor:"rgba(255, 255, 255, .6)",lineColor:"rgba(255, 255, 255, .3)",borderColor:"rgba(0, 0, 0, .1)",iconColor:"#333"}:{bgColor:"rgba(0, 0, 0, .15)",lineColor:"rgba(255, 255, 255, .7)",borderColor:"rgba(255, 255, 255, .25)",iconColor:"#fff"}}function St(e,n){null!=n.navigationBarTextStyle&&e.$set(kt(n.navigationBarTextStyle))}/android/.test(_t),/(iphone|ipad)/.test(_t);function It(e,n){null!=n&&(null!=n.navigationBarTitleText&&(e.title=n.navigationBarTitleText),null!=n.navigationBarTextStyle&&(e.textColor=n.navigationBarTextStyle),null!=n.navigationBarBackgroundColor&&(e.bgColor=n.navigationBarBackgroundColor),null!=n.navigationStyle?e.show="custom"!==n.navigationStyle:e.show=!0)}window.__initWebFrame=function(e,n){var t=e.wxConfig,o=e.windowInfo,r=t.window,i=t.tabBar;At()&&null!=r&&function(e,n){var t;new Mn({target:document.body,anchor:bt(),props:{height:(null===(t=e.safeArea)||void 0===t?void 0:t.top)||0}})}(o),null!=r&&function(e,n){var t=new xn({target:document.body,anchor:bt(),props:{title:e.navigationBarTitleText,textColor:e.navigationBarTextStyle,bgColor:e.navigationBarBackgroundColor,showBtns:!1,show:"custom"!==e.navigationStyle,onBack:function(){n.emit("NavigatorBar:onBack")}}});n.on(nt,(function(){t.$set({loading:!1})})),n.on(et,(function(){t.$set({loading:!0})})),n.on(tt,(function(e){t.$set({title:e.title})})),n.on(ot,(function(e){t.$set({bgColor:e.backgroundColor,textColor:e.frontColor,animation:e.animation})})),n.on(zn,(function(e){e.ext,e.options;var n=e.windowConfig,o=e.pages,r={};It(r,n),r.showBtns=1!==o.length,t.$set(r)})),n.on(Kn,(function(e){var n=e.pages,o={};It(o,e.windowConfig),o.showBtns=1!==n.length,t.$set(o)})),n.on(Un,(function(e){var n={};It(n,e.windowConfig),t.$set(n)}))}(r,n),null!=i&&function(e,n,t){var o,r=new Nn({target:document.body,props:{onChange:function(e,n){r.$set({value:e.pagePath}),t.emit("TabBar:change",{item:e,index:n})},color:e.color,selectedColor:e.selectedColor,configList:e.list,value:null===(o=e.list[0])||void 0===o?void 0:o.pagePath,bottomSpace:xt(n)}});t.on(ft,(function(e){var n=e.index,t=r.configList;if(null!=t){var o=t.slice(),i=o[n];null!=i&&(i.redDot=!0,i.badge=void 0),r.configList=o}})),t.on(dt,(function(e){var n=e.index,t=r.configList;if(null!=t){var o=t.slice(),i=o[n];null!=i&&(i.redDot=void 0),r.configList=o}})),t.on(st,(function(e){var n=e.index,t=e.text,o=r.configList;if(null!=o){var i=o.slice(),a=i[n];null!=a&&""!=t&&(a.badge=t,a.redDot=void 0),r.configList=i}})),t.on(lt,(function(e){var n=e.index,t=r.configList;if(null!=t){var o=t.slice(),i=o[n];null!=i&&(i.badge=void 0),r.configList=o}})),t.on(ct,(function(e){var n=e.color,t=e.selectedColor,o=e.backgroundColor,i=e.borderStyle;r.$set({color:n,selectedColor:t,backgroundColor:o,borderColor:i})})),t.on(ut,(function(e){var n=e.index,t=e.text,o=e.iconPath,i=e.selectedIconPath,a=r.configList;if(null!=a){var c=a.slice(),u=c[n];null!=u&&(u.text=t||u.text,u.iconPath=o||u.iconPath,u.selectedIconPath=i||u.selectedIconPath),r.configList=c}})),t.on(at,(function(){r.$set({show:!1})})),t.on(it,(function(){r.$set({show:!0})})),t.on(zn,(function(n){n.ext;var t=n.options;n.windowConfig;var o=t.path,i={show:!1};null!=e.list.find((function(e){return e.pagePath===o}))?(i.show=!0,i.value=o):i.show=!1,r.$set(i)})),t.on(Kn,(function(n){var t=n.currPage,o={show:!1};null!=e.list.find((function(e){return e.pagePath===t}))?(o.show=!0,o.value=t):o.show=!1,r.$set(o)}))}(i,o,n)},window.__initWebFrameOnContentLoad=function(e,n){var t=e.windowInfo;e.extInfo,At()&&!0!==(window.__extInfo||{}).hideNavigationBarTools&&function(e,n){var t,r=new In({target:document.body,anchor:bt(),props:o(o({onMore:function(){e.emit("NavigatorBarTools:onMore")},onClose:function(){e.emit("NavigatorBarTools:onClose")}},kt("white")),{},{top:((null===(t=n.safeArea)||void 0===t?void 0:t.top)||0)+6})});e.on(qn,(function(e){var n=e.window;St(r,n)})),e.on(vt,(function(e){var t,o=6,i=10;"landscape"===e.value?(o=6,i=xt(n)+10):(o=((null===(t=n.safeArea)||void 0===t?void 0:t.top)||0)+6,i=10),r.$set({top:o,right:i})})),e.on(ot,(function(e){var n=kt(e.frontColor);r.$set(n)})),e.on(zn,(function(e){var n=e.windowConfig;St(r,n)})),e.on(Kn,(function(e){var n=e.windowConfig;St(r,n)})),e.on(pt,(function(n,t){var o=r.el;if(null!=o){var i=o.getBoundingClientRect();e.emit(wt,{callbackId:t,data:{width:i.width,height:i.height,top:i.top,right:i.right,bottom:i.bottom,left:i.left}})}else e.emit(wt,{callbackId:t,data:{errMsg:"getMenuButtonBoundingClientRect:fail The MenuButton dom node is not found."}})}))}(n,t),function(e){var n,t=new Xe({target:document.body,props:{}});e.on(Qn,(function(e){n&&clearTimeout(n),t.$set({show:!1})})),e.on(Zn,(function(e){var o=e.title,r=void 0===o?"":o,i=e.icon,a=e.image,c=e.duration,u=void 0===c?1500:c,s=e.mask,l=void 0!==s&&s;n&&clearTimeout(n),t.$set({show:!0,title:r,icon:i,image:a,mask:l}),n=setTimeout((function(){t.$set({show:!1})}),u)})),e.on(Xn,(function(e){n&&clearTimeout(n),t.$set({show:!1})}))}(n),function(e){var n=new nn({target:document.body,props:{}});e.on(Qn,(function(e){n.$set({show:!0,title:e.title||"",mask:!!e.mask})})),e.on(Jn,(function(e){n.$set({show:!1})})),e.on(Zn,(function(e){n.$set({show:!1})}))}(n),function(e){var n={callbackId:0},t=new vn({target:document.body,props:{onConfirm:function(o){t.$set({show:!1}),e.emit(wt,{callbackId:n.callbackId,data:{confirm:!0,cancel:!1,content:o}})},onCancel:function(o){t.$set({show:!1}),e.emit(wt,{callbackId:n.callbackId,data:{confirm:!1,cancel:!0,content:o}})}}});e.on(Yn,(function(e,r){n.callbackId=r,setTimeout((function(){t.$set(o({show:!0},e))}),100)}))}(n),function(e){var n={callbackId:0},t=new He({target:document.body,props:{onSelect:function(o){t.$set({show:!1}),e.emit(wt,{callbackId:n.callbackId,data:{tapIndex:o}})},onCancel:function(){t.$set({show:!1}),e.emit(wt,{callbackId:n.callbackId,data:{errMsg:"showActionSheet:fail user cancel"}})}}});e.on(rt,(function(e,r){n.callbackId=r,setTimeout((function(){t.$set(o({show:!0},e))}),100)}))}(n),function(e){var n=new Vn({target:document.body,props:{onChange:function(n){e.emit(yt,{event:"onKeyboardInput",payload:{value:n}})},onMaskClick:function(n){e.emit(yt,{event:"onKeyboardComplete",payload:{value:n}})},onConfirm:function(t,o){o||n.$set({show:!1}),e.emit(yt,{event:"onKeyboardConfirm",payload:{value:t}})}}});e.on(ht,(function(e){var t=e.defaultValue,o=e.maxLength,r=e.multiple,i=e.confirmHold,a=e.confirmType;n.$set({value:t,maxLength:o,multiple:r,confirmHold:i,confirmType:a,show:!0})})),e.on(mt,(function(e){var t=e.value;n.$set({value:t})})),e.on(gt,(function(e){n.$set({show:!1})}))}(n)}}(),document.head.innerHTML+="<style>.mask.svelte-1ekfzc9{position:fixed;left:0;right:0;bottom:0;top:0;z-index:3}\n.action-sheet.svelte-1t2ya5t{display:flex;flex-direction:column;position:absolute;width:100%;left:0;bottom:0;z-index:5;background-color:#f7f7f7;border-top-right-radius:6px;border-top-left-radius:6px;overflow:hidden}.header.svelte-1t2ya5t{display:flex;width:100%;height:45px;align-items:center;justify-content:center;background-color:#fff}.body.svelte-1t2ya5t{display:flex;flex-direction:column;flex:1;background-color:#fff}.footer.svelte-1t2ya5t{margin-top:10px}.title.svelte-1t2ya5t{font-weight:bold;font-size:16px}.button.svelte-1t2ya5t{display:flex;width:100%;height:50px;align-items:center;justify-content:center;background-color:#fff;font-size:16px;color:#000}.item.svelte-1t2ya5t{border-top:1px solid #ddd}.button-text.svelte-1t2ya5t{max-width:220px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}\n.spinner.svelte-cis7d5{position:relative;width:30px;max-width:100%;height:30px;max-height:100%;vertical-align:middle;animation:infinite svelte-cis7d5-circle 800ms linear;animation-timing-function:steps(12)}.leaf.svelte-cis7d5{position:absolute;top:0;left:0;width:100%;height:100%;color:#fff}.leaf.svelte-cis7d5::after{display:block;width:2px;height:25%;margin:0 auto;background-color:currentColor;border-radius:40%;content:' '}@keyframes svelte-cis7d5-circle{from{transform:rotate(0)}to{transform:rotate(360deg)}}\n.toast.svelte-adfvqi{position:absolute;left:50%;top:50%;transform:translate(-50%, -50%);-webkit-transform:translate(-50%, -50%);z-index:5;display:flex;flex-direction:column;padding:10px 10px;background-color:rgba(0, 0, 0, 0.65);border-radius:6px;min-width:100px;overflow:hidden;align-items:center;justify-items:center}.icon.svelte-adfvqi{width:50px;height:50px;margin-bottom:6px}.title.svelte-adfvqi{color:#fff;font-size:14px}.hasIcon.svelte-adfvqi{max-width:80px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.spinner-wrapper.svelte-adfvqi{padding:10px 0;padding-bottom:4px;margin-bottom:6px}\n.input.svelte-1fikcsw{display:flex;flex:1;background-color:#fff;outline:none;border:none;font-size:16px;color:#000}\n.modal.svelte-lduamy{position:absolute;left:50%;top:50%;transform:translate(-50%, -50%);-webkit-transform:translate(-50%, -50%);z-index:5;display:flex;flex-direction:column;background-color:#fff;border-radius:6px;overflow:hidden;width:300px;min-height:180px;border:1px solid #eee;color:#000}.header.svelte-lduamy{display:flex;flex-direction:column;align-items:center;padding-top:25px}.title.svelte-lduamy{font-weight:bold;font-size:16px}.body.svelte-lduamy{display:flex;flex-direction:row;padding:10px 24px 24px 24px;flex:1}.input-wrapper.svelte-lduamy{display:flex;flex:1;border:1px solid #ccc;padding:5px 10px;height:100px;border-radius:4px}.body-text.svelte-lduamy{display:flex;flex:1;flex-wrap:wrap;align-items:center;justify-content:center;word-break:break-all;font-size:16px;line-height:20px}.footer.svelte-lduamy{display:flex;flex-direction:row;align-items:center;border-top:1px solid #eee}.button.svelte-lduamy{display:flex;flex:1;align-items:center;justify-content:center;height:46px;position:relative;font-size:16px}.cancel.svelte-lduamy::after{display:block;height:46px;width:1px;background-color:#eee;position:absolute;top:0;right:0;content:' '}\n.btn-back.svelte-o95f8l{cursor:pointer;width:24px;height:24px;display:flex;justify-content:center;align-items:center;border-radius:50%;pointer-events:auto}\n.nav.svelte-1ouzypl{position:relative;width:100%;height:42px;display:flex;align-items:center;justify-content:center;padding:4px;box-sizing:border-box;z-index:5;pointer-events:none;transition:all}.nav-title.svelte-1ouzypl{font-weight:700;text-align:center;font-size:14px;color:#030d1e;width:60%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.nav-action-btns.svelte-1ouzypl{position:absolute;display:flex;left:8px;justify-content:flex-start;align-items:center}\n.nav-bar-tools.svelte-10fi14j{box-sizing:border-box;pointer-events:auto;position:absolute;z-index:10;right:10px;top:6px;background-color:rgba(255, 255, 255, 0.6);border:1px solid rgba(0, 0, 0, 0.15);border-radius:3px;display:flex;flex-direction:row;width:85px;height:30px;border-radius:30px;overflow:hidden;user-select:none}.line.svelte-10fi14j{display:block;width:1px;height:18px;position:absolute;right:0px;top:5px}.tools-item.svelte-10fi14j{display:flex;flex:1;align-items:center;justify-content:center;position:relative}\n.status-bar-holder.svelte-1tsnloh{width:100%}\n.badge.svelte-18y9mkk{position:absolute;left:18px;top:-3px;display:flex;align-items:center;justify-content:center;box-sizing:content-box;border-radius:12px;background-color:red;padding:2px 2px;min-width:14px;height:14px}.badge-text.svelte-18y9mkk{color:#fff;font-size:12px;max-width:28px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.red-dot.svelte-18y9mkk{height:8px;width:8px;border-radius:100%;background-color:red;position:absolute;left:22px;top:1px}.tab-item.svelte-18y9mkk{padding-top:4px;display:flex;flex-direction:column;align-items:center;justify-items:center;flex:1;cursor:pointer;position:relative}.icon.svelte-18y9mkk{width:28px;height:28px;position:relative}.img.svelte-18y9mkk{width:100%;height:100%;display:block;background-size:100%;background-repeat:no-repeat}.tab-text.svelte-18y9mkk{font-size:10px;text-align:center}\n.tab-list.svelte-h0c4dd{width:100%;height:49px;display:flex;flex-flow:row nowrap;justify-content:space-around;border-top:1px solid transparent;z-index:5;user-select:none}\n.keyboard.svelte-1tawb6{position:absolute;left:0;bottom:0;z-index:5;width:100%;height:300px;background-color:#ccc}.keyboard-header.svelte-1tawb6{background-color:#eee;display:flex;width:100%;height:50px;flex-direction:row;padding:6px 30px;padding-right:10px}.button-confirm.svelte-1tawb6{margin-left:10px;margin-top:4px;display:flex;justify-content:center;align-items:center;border-radius:6px;background-color:#ff9600;height:30px;padding:4px 6px}.button-confirm-text.svelte-1tawb6{color:#fff;font-size:12px}\n</style>";var o="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function r(e,n,t){return e(t={path:n,exports:{},require:function(e,n){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==n&&t.path)}},t.exports),t.exports}var i=r((function(e){var n=Object.prototype.hasOwnProperty,t="~";function o(){}function r(e,n,t){this.fn=e,this.context=n,this.once=t||!1}function i(e,n,o,i,a){if("function"!=typeof o)throw new TypeError("The listener must be a function");var c=new r(o,i||e,a),u=t?t+n:n;return e._events[u]?e._events[u].fn?e._events[u]=[e._events[u],c]:e._events[u].push(c):(e._events[u]=c,e._eventsCount++),e}function a(e,n){0==--e._eventsCount?e._events=new o:delete e._events[n]}function c(){this._events=new o,this._eventsCount=0}Object.create&&(o.prototype=Object.create(null),(new o).__proto__||(t=!1)),c.prototype.eventNames=function(){var e,o,r=[];if(0===this._eventsCount)return r;for(o in e=this._events)n.call(e,o)&&r.push(t?o.slice(1):o);return Object.getOwnPropertySymbols?r.concat(Object.getOwnPropertySymbols(e)):r},c.prototype.listeners=function(e){var n=t?t+e:e,o=this._events[n];if(!o)return[];if(o.fn)return[o.fn];for(var r=0,i=o.length,a=new Array(i);r<i;r++)a[r]=o[r].fn;return a},c.prototype.listenerCount=function(e){var n=t?t+e:e,o=this._events[n];return o?o.fn?1:o.length:0},c.prototype.emit=function(e,n,o,r,i,a){var c=t?t+e:e;if(!this._events[c])return!1;var u,s,l=this._events[c],d=arguments.length;if(l.fn){switch(l.once&&this.removeListener(e,l.fn,void 0,!0),d){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,n),!0;case 3:return l.fn.call(l.context,n,o),!0;case 4:return l.fn.call(l.context,n,o,r),!0;case 5:return l.fn.call(l.context,n,o,r,i),!0;case 6:return l.fn.call(l.context,n,o,r,i,a),!0}for(s=1,u=new Array(d-1);s<d;s++)u[s-1]=arguments[s];l.fn.apply(l.context,u)}else{var f,p=l.length;for(s=0;s<p;s++)switch(l[s].once&&this.removeListener(e,l[s].fn,void 0,!0),d){case 1:l[s].fn.call(l[s].context);break;case 2:l[s].fn.call(l[s].context,n);break;case 3:l[s].fn.call(l[s].context,n,o);break;case 4:l[s].fn.call(l[s].context,n,o,r);break;default:if(!u)for(f=1,u=new Array(d-1);f<d;f++)u[f-1]=arguments[f];l[s].fn.apply(l[s].context,u)}}return!0},c.prototype.on=function(e,n,t){return i(this,e,n,t,!1)},c.prototype.once=function(e,n,t){return i(this,e,n,t,!0)},c.prototype.removeListener=function(e,n,o,r){var i=t?t+e:e;if(!this._events[i])return this;if(!n)return a(this,i),this;var c=this._events[i];if(c.fn)c.fn!==n||r&&!c.once||o&&c.context!==o||a(this,i);else{for(var u=0,s=[],l=c.length;u<l;u++)(c[u].fn!==n||r&&!c[u].once||o&&c[u].context!==o)&&s.push(c[u]);s.length?this._events[i]=1===s.length?s[0]:s:a(this,i)}return this},c.prototype.removeAllListeners=function(e){var n;return e?(n=t?t+e:e,this._events[n]&&a(this,n)):(this._events=new o,this._eventsCount=0),this},c.prototype.off=c.prototype.removeListener,c.prototype.addListener=c.prototype.on,c.prefixed=t,c.EventEmitter=c,e.exports=c})),a=function(e,n){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t])},a(e,n)};
|
7
7
|
/*! *****************************************************************************
|
8
8
|
Copyright (c) Microsoft Corporation.
|
9
9
|
|
@@ -17,7 +17,7 @@
|
|
17
17
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
18
18
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
19
19
|
PERFORMANCE OF THIS SOFTWARE.
|
20
|
-
***************************************************************************** */function c(e,n){function t(){this.constructor=e}a(e,n),e.prototype=null===n?Object.create(n):(t.prototype=n.prototype,new t)}var u=function(){return u=Object.assign||function(e){for(var n,t=1,o=arguments.length;t<o;t++)for(var r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},u.apply(this,arguments)};function s(e,n,t,o){return new(t||(t=Promise))((function(r,i){function a(e){try{u(o.next(e))}catch(e){i(e)}}function c(e){try{u(o.throw(e))}catch(e){i(e)}}function u(e){var n;e.done?r(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(a,c)}u((o=o.apply(e,n||[])).next())}))}function l(e,n){var t,o,r,i,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(t)throw new TypeError("Generator is already executing.");for(;a;)try{if(t=1,o&&(r=2&i[0]?o.return:i[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,i[1])).done)return r;switch(o=0,r&&(i=[2&i[0],r.value]),i[0]){case 0:case 1:r=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,o=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(r=a.trys,(r=r.length>0&&r[r.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]<r[3])){a.label=i[1];break}if(6===i[0]&&a.label<r[1]){a.label=r[1],r=i;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(i);break}r[2]&&a.ops.pop(),a.trys.pop();continue}i=n.call(e,a)}catch(e){i=[6,e],o=0}finally{t=r=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}}function d(){for(var e=0,n=0,t=arguments.length;n<t;n++)e+=arguments[n].length;var o=Array(e),r=0;for(n=0;n<t;n++)for(var i=arguments[n],a=0,c=i.length;a<c;a++,r++)o[r]=i[a];return o}function f(){var e=window.navigator.userAgent.toLowerCase();return/(iphone|ipad)/.test(e)?"IOS":/android/.test(e)?"Android":"Windows For HUYA"}function p(){var e=f();return"IOS"===e||"Android"===e}function v(e){var n=e.split("?"),t=n[0],o=n[1],r={};return null!=o&&""!==o&&o.split("&").reduce((function(e,n){var t=n.split("=");return e[t[0]]=decodeURIComponent(t[1]),e}),r),{path:t,query:r}}function h(e){for(var n="",t=new Uint8Array(e),o=t.byteLength,r=0;r<o;r++)n+=String.fromCharCode(t[r]);return window.btoa(n)}var g=function(e,n,t){var o,r=new Promise((function(n,r){o=setTimeout((function(){t&&t(e),r(new Error("Timed out in "+e+"ms."))}),e)}));return new Promise((function(e,t){Promise.race([n,r]).then((function(n){clearTimeout(o),e(n)})).catch(t)}))};var m,w=function(e){return 1===String(e).length?"0"+e:e};function y(){return window.__extInfo||{}}function b(){return y().extUuid}function _(){var e=y().extType||"";return/\_inner\_/gi.test(e)}function A(){return"web_hd_inner"===(y().extType||"")}!function(e){e[e.debug=0]="debug",e[e.log=1]="log",e[e.info=2]="info",e[e.warn=3]="warn",e[e.error=4]="error"}(m||(m={}));var x=Date.now();var k=function(){var e=localStorage.getItem("wsc_loglevel");if("string"==typeof e&&""!==e){var n=Number(e);if(!isNaN(n))return n}return null}(),S=function(e){var n=e.onBefore,t=e.onAfter,o=e.prefix,r=e.logColor,i=e.level,a=e.enableLog,c=Object.assign({info:"blue",warn:"orange",error:"red",log:"green",debug:"green"},r);function u(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];var r=e[0],c=e[1],u=e[2],l=e[3],d=s(),f={prefix:d,msg:c,data:u,desc:d+c};n&&n(f);var p=m[l]>=i;a(p)&&console.log("%c "+f.desc,"color: "+r+";",f.data),t&&t(f,p)}function s(){return"function"==typeof o?o():o||""}return{log:function(e,n){u(c.log,e,n,"log")},info:function(e,n){u(c.info,e,n,"info")},warn:function(e,n){u(c.warn,e,n,"warn")},error:function(e,n){u(c.error,e,n,"error")},debug:function(e,n){u(c.error,e,n,"debug")}}}({level:null!==k?k:m.info,onAfter:function(e,n){n&&null!=window.hyExt&&window.hyExt.logger.info(e.desc+" "+function(e){try{return JSON.stringify(e)}catch(e){return"stringify error"}}(e.data))},prefix:function(){return"web-sdk-core * date:"+(void 0===e&&(e=new Date),w(e.getHours())+":"+w(e.getMinutes())+":"+w(e.getSeconds())+" extName:")+y().extName+" extUuid:"+b()+" sessionId:"+x+" - ";var e},enableLog:function(e){return e}});var I,C,T=location.pathname.split("/"),M=T.slice(1,T.length-1),P=location.protocol+"//"+location.host+"/"+M.join("/")+"/",E=P+"view.html",B=window.__debug,O="service",L="view",F=window.__packageExtConfig,R={path:F?F.entryPagePath:"index",query:{},referrerInfo:{},scene:1001},H="onTaskProgressUpdate",D="onTaskHeadersReceived",j="miniGame",N="hyfile://",
|
20
|
+
***************************************************************************** */function c(e,n){function t(){this.constructor=e}a(e,n),e.prototype=null===n?Object.create(n):(t.prototype=n.prototype,new t)}var u=function(){return u=Object.assign||function(e){for(var n,t=1,o=arguments.length;t<o;t++)for(var r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},u.apply(this,arguments)};function s(e,n,t,o){return new(t||(t=Promise))((function(r,i){function a(e){try{u(o.next(e))}catch(e){i(e)}}function c(e){try{u(o.throw(e))}catch(e){i(e)}}function u(e){var n;e.done?r(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(a,c)}u((o=o.apply(e,n||[])).next())}))}function l(e,n){var t,o,r,i,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(t)throw new TypeError("Generator is already executing.");for(;a;)try{if(t=1,o&&(r=2&i[0]?o.return:i[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,i[1])).done)return r;switch(o=0,r&&(i=[2&i[0],r.value]),i[0]){case 0:case 1:r=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,o=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(r=a.trys,(r=r.length>0&&r[r.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]<r[3])){a.label=i[1];break}if(6===i[0]&&a.label<r[1]){a.label=r[1],r=i;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(i);break}r[2]&&a.ops.pop(),a.trys.pop();continue}i=n.call(e,a)}catch(e){i=[6,e],o=0}finally{t=r=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}}function d(){for(var e=0,n=0,t=arguments.length;n<t;n++)e+=arguments[n].length;var o=Array(e),r=0;for(n=0;n<t;n++)for(var i=arguments[n],a=0,c=i.length;a<c;a++,r++)o[r]=i[a];return o}function f(){var e=window.navigator.userAgent.toLowerCase();return/(iphone|ipad)/.test(e)?"IOS":/android/.test(e)?"Android":"Windows For HUYA"}function p(){var e=f();return"IOS"===e||"Android"===e}function v(e){var n=e.split("?"),t=n[0],o=n[1],r={};return null!=o&&""!==o&&o.split("&").reduce((function(e,n){var t=n.split("=");return e[t[0]]=decodeURIComponent(t[1]),e}),r),{path:t,query:r}}function h(e){for(var n="",t=new Uint8Array(e),o=t.byteLength,r=0;r<o;r++)n+=String.fromCharCode(t[r]);return window.btoa(n)}var g=function(e,n,t){var o,r=new Promise((function(n,r){o=setTimeout((function(){t&&t(e),r(new Error("Timed out in "+e+"ms."))}),e)}));return new Promise((function(e,t){Promise.race([n,r]).then((function(n){clearTimeout(o),e(n)})).catch(t)}))};var m,w=function(e){return 1===String(e).length?"0"+e:e};function y(){return window.__extInfo||{}}function b(){return y().extUuid}function _(){var e=y().extType||"";return/\_inner\_/gi.test(e)}function A(){return"web_hd_inner"===(y().extType||"")}!function(e){e[e.debug=0]="debug",e[e.log=1]="log",e[e.info=2]="info",e[e.warn=3]="warn",e[e.error=4]="error"}(m||(m={}));var x=Date.now();var k=function(){var e=localStorage.getItem("wsc_loglevel");if("string"==typeof e&&""!==e){var n=Number(e);if(!isNaN(n))return n}return null}(),S=function(e){var n=e.onBefore,t=e.onAfter,o=e.prefix,r=e.logColor,i=e.level,a=e.enableLog,c=Object.assign({info:"blue",warn:"orange",error:"red",log:"green",debug:"green"},r);function u(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];var r=e[0],c=e[1],u=e[2],l=e[3],d=s(),f={prefix:d,msg:c,data:u,desc:d+c};n&&n(f);var p=m[l]>=i;a(p)&&console.log("%c "+f.desc,"color: "+r+";",f.data),t&&t(f,p)}function s(){return"function"==typeof o?o():o||""}return{log:function(e,n){u(c.log,e,n,"log")},info:function(e,n){u(c.info,e,n,"info")},warn:function(e,n){u(c.warn,e,n,"warn")},error:function(e,n){u(c.error,e,n,"error")},debug:function(e,n){u(c.error,e,n,"debug")}}}({level:null!==k?k:m.info,onAfter:function(e,n){n&&null!=window.hyExt&&window.hyExt.logger.info(e.desc+" "+function(e){try{return JSON.stringify(e)}catch(e){return"stringify error"}}(e.data))},prefix:function(){return"web-sdk-core * date:"+(void 0===e&&(e=new Date),w(e.getHours())+":"+w(e.getMinutes())+":"+w(e.getSeconds())+" extName:")+y().extName+" extUuid:"+b()+" sessionId:"+x+" - ";var e},enableLog:function(e){return e}});var I,C,T=location.pathname.split("/"),M=T.slice(1,T.length-1),P=location.protocol+"//"+location.host+"/"+M.join("/")+"/",E=P+"view.html",B=window.__debug,O="service",L="view",F=window.__packageExtConfig,R={path:F?F.entryPagePath:"index",query:{},referrerInfo:{},scene:1001},H="onTaskProgressUpdate",D="onTaskHeadersReceived",j="miniGame",N="hyfile://",W="hyfile://",G=(I=v(location.href).query,C=y(),S.info("forceUsePatchApi",{fromQuery:I.forceUsePatchApi,fromLocal:C.forceUsePatchApi}),null!=I.forceUsePatchApi?"1"===I.forceUsePatchApi:null!=C.forceUsePatchApi&&C.forceUsePatchApi),$=function(){function e(e){this.sync=!1,this.events=new i,this.el=e,this.isReady=!1}return e.prototype.getWindow=function(){return this.el.contentWindow},e.prototype.getBridge=function(){},e.prototype.emitSync=function(e){for(var n,t=[],o=1;o<arguments.length;o++)t[o-1]=arguments[o];this.sync=!0,(n=this.events).emit.apply(n,d([e],t)),this.sync=!1},e}(),V={onViewDOMContentLoaded:"onViewDOMContentLoaded",onInjectHTMLCallback:"onInjectHTMLCallback"},q={};var z=function(e){function n(n){return e.call(this,n)||this}return c(n,e),n.prototype.updateSrc=function(e){this.el.src=e},n.prototype.sendToSerivce=function(e,n,t){S.debug("%c "+e,{data:n,webviewId:t}),this.getBridge().subscribeHandler(e,n,t)},n.prototype.loadSubBundle=function(e,n){return s(this,void 0,void 0,(function(){var t=this;return l(this,(function(o){return[2,new Promise((function(o){if(!0!==q[e]){var r=t.getWindow();null!=r&&(t.events.once(V.onInjectHTMLCallback,(function(){o()})),r.injectHtml(r.document.body,{content:'<script charset="utf-8" src="'+n+'"><\/script>'}),q[e]=!0)}}))]}))}))},n.prototype.invokeCallbackHandler=function(e,n,t){S.debug("%c "+(t||"API")+" call callback",{cbId:e,data:n}),this.getBridge().invokeCallbackHandler(e,n)},n.prototype.getBridge=function(){return this.getWindow().ServiceJSBridge},n}($),K="webview-service",U=new Map;function Q(e){var n=U.get(e);if(n)return n;var t=document.getElementById(e);if(null!=t){var o=new(e===K?z:Ln)(t);return U.set(e,o),o}throw new Error("获取IframeManager失败, id: "+e)}function J(){return Q("webview-first-view")}function Z(){return Q(K)}function X(e,n,t){Hn.stack.forEach((function(o){null!=o.webviewId&&function(e,n){return 1===e.length&&e[0]===n.webviewId||e.indexOf(n.webviewId)>-1}(t,o)&&(o.isReady?o.sendToView(e,n):console.error("shouldn't exctute"))}))}function Y(e,n,t){Q(K).sendToSerivce(e,n,t)}function ee(e,n){var t,o=null===(t=Hn.currPage)||void 0===t?void 0:t.children;if(Array.isArray(o)&&o.length>0){var r=o[0];r&&r.isWebView&&r.postMessageToWebView({eventName:e,type:"subscribeHandler",params:n})}}var ne=null;function te(){if(null==ne)throw new Error("AdapterTarget is not set yet.");return ne}var oe="custom_event_";var re=r((function(e,n){
|
21
21
|
/*!
|
22
22
|
* howler.js v2.2.4
|
23
23
|
* howlerjs.com
|
@@ -39,7 +39,7 @@
|
|
39
39
|
*
|
40
40
|
* MIT License
|
41
41
|
*/
|
42
|
-
function(){var e;HowlerGlobal.prototype._pos=[0,0,0],HowlerGlobal.prototype._orientation=[0,0,-1,0,1,0],HowlerGlobal.prototype.stereo=function(e){var n=this;if(!n.ctx||!n.ctx.listener)return n;for(var t=n._howls.length-1;t>=0;t--)n._howls[t].stereo(e);return n},HowlerGlobal.prototype.pos=function(e,n,t){var o=this;return o.ctx&&o.ctx.listener?(n="number"!=typeof n?o._pos[1]:n,t="number"!=typeof t?o._pos[2]:t,"number"!=typeof e?o._pos:(o._pos=[e,n,t],void 0!==o.ctx.listener.positionX?(o.ctx.listener.positionX.setTargetAtTime(o._pos[0],Howler.ctx.currentTime,.1),o.ctx.listener.positionY.setTargetAtTime(o._pos[1],Howler.ctx.currentTime,.1),o.ctx.listener.positionZ.setTargetAtTime(o._pos[2],Howler.ctx.currentTime,.1)):o.ctx.listener.setPosition(o._pos[0],o._pos[1],o._pos[2]),o)):o},HowlerGlobal.prototype.orientation=function(e,n,t,o,r,i){var a=this;if(!a.ctx||!a.ctx.listener)return a;var c=a._orientation;return n="number"!=typeof n?c[1]:n,t="number"!=typeof t?c[2]:t,o="number"!=typeof o?c[3]:o,r="number"!=typeof r?c[4]:r,i="number"!=typeof i?c[5]:i,"number"!=typeof e?c:(a._orientation=[e,n,t,o,r,i],void 0!==a.ctx.listener.forwardX?(a.ctx.listener.forwardX.setTargetAtTime(e,Howler.ctx.currentTime,.1),a.ctx.listener.forwardY.setTargetAtTime(n,Howler.ctx.currentTime,.1),a.ctx.listener.forwardZ.setTargetAtTime(t,Howler.ctx.currentTime,.1),a.ctx.listener.upX.setTargetAtTime(o,Howler.ctx.currentTime,.1),a.ctx.listener.upY.setTargetAtTime(r,Howler.ctx.currentTime,.1),a.ctx.listener.upZ.setTargetAtTime(i,Howler.ctx.currentTime,.1)):a.ctx.listener.setOrientation(e,n,t,o,r,i),a)},Howl.prototype.init=(e=Howl.prototype.init,function(n){var t=this;return t._orientation=n.orientation||[1,0,0],t._stereo=n.stereo||null,t._pos=n.pos||null,t._pannerAttr={coneInnerAngle:void 0!==n.coneInnerAngle?n.coneInnerAngle:360,coneOuterAngle:void 0!==n.coneOuterAngle?n.coneOuterAngle:360,coneOuterGain:void 0!==n.coneOuterGain?n.coneOuterGain:0,distanceModel:void 0!==n.distanceModel?n.distanceModel:"inverse",maxDistance:void 0!==n.maxDistance?n.maxDistance:1e4,panningModel:void 0!==n.panningModel?n.panningModel:"HRTF",refDistance:void 0!==n.refDistance?n.refDistance:1,rolloffFactor:void 0!==n.rolloffFactor?n.rolloffFactor:1},t._onstereo=n.onstereo?[{fn:n.onstereo}]:[],t._onpos=n.onpos?[{fn:n.onpos}]:[],t._onorientation=n.onorientation?[{fn:n.onorientation}]:[],e.call(this,n)}),Howl.prototype.stereo=function(e,t){var o=this;if(!o._webAudio)return o;if("loaded"!==o._state)return o._queue.push({event:"stereo",action:function(){o.stereo(e,t)}}),o;var r=void 0===Howler.ctx.createStereoPanner?"spatial":"stereo";if(void 0===t){if("number"!=typeof e)return o._stereo;o._stereo=e,o._pos=[e,0,0]}for(var i=o._getSoundIds(t),a=0;a<i.length;a++){var c=o._soundById(i[a]);if(c){if("number"!=typeof e)return c._stereo;c._stereo=e,c._pos=[e,0,0],c._node&&(c._pannerAttr.panningModel="equalpower",c._panner&&c._panner.pan||n(c,r),"spatial"===r?void 0!==c._panner.positionX?(c._panner.positionX.setValueAtTime(e,Howler.ctx.currentTime),c._panner.positionY.setValueAtTime(0,Howler.ctx.currentTime),c._panner.positionZ.setValueAtTime(0,Howler.ctx.currentTime)):c._panner.setPosition(e,0,0):c._panner.pan.setValueAtTime(e,Howler.ctx.currentTime)),o._emit("stereo",c._id)}}return o},Howl.prototype.pos=function(e,t,o,r){var i=this;if(!i._webAudio)return i;if("loaded"!==i._state)return i._queue.push({event:"pos",action:function(){i.pos(e,t,o,r)}}),i;if(t="number"!=typeof t?0:t,o="number"!=typeof o?-.5:o,void 0===r){if("number"!=typeof e)return i._pos;i._pos=[e,t,o]}for(var a=i._getSoundIds(r),c=0;c<a.length;c++){var u=i._soundById(a[c]);if(u){if("number"!=typeof e)return u._pos;u._pos=[e,t,o],u._node&&(u._panner&&!u._panner.pan||n(u,"spatial"),void 0!==u._panner.positionX?(u._panner.positionX.setValueAtTime(e,Howler.ctx.currentTime),u._panner.positionY.setValueAtTime(t,Howler.ctx.currentTime),u._panner.positionZ.setValueAtTime(o,Howler.ctx.currentTime)):u._panner.setPosition(e,t,o)),i._emit("pos",u._id)}}return i},Howl.prototype.orientation=function(e,t,o,r){var i=this;if(!i._webAudio)return i;if("loaded"!==i._state)return i._queue.push({event:"orientation",action:function(){i.orientation(e,t,o,r)}}),i;if(t="number"!=typeof t?i._orientation[1]:t,o="number"!=typeof o?i._orientation[2]:o,void 0===r){if("number"!=typeof e)return i._orientation;i._orientation=[e,t,o]}for(var a=i._getSoundIds(r),c=0;c<a.length;c++){var u=i._soundById(a[c]);if(u){if("number"!=typeof e)return u._orientation;u._orientation=[e,t,o],u._node&&(u._panner||(u._pos||(u._pos=i._pos||[0,0,-.5]),n(u,"spatial")),void 0!==u._panner.orientationX?(u._panner.orientationX.setValueAtTime(e,Howler.ctx.currentTime),u._panner.orientationY.setValueAtTime(t,Howler.ctx.currentTime),u._panner.orientationZ.setValueAtTime(o,Howler.ctx.currentTime)):u._panner.setOrientation(e,t,o)),i._emit("orientation",u._id)}}return i},Howl.prototype.pannerAttr=function(){var e,t,o,r=this,i=arguments;if(!r._webAudio)return r;if(0===i.length)return r._pannerAttr;if(1===i.length){if("object"!=typeof i[0])return(o=r._soundById(parseInt(i[0],10)))?o._pannerAttr:r._pannerAttr;e=i[0],void 0===t&&(e.pannerAttr||(e.pannerAttr={coneInnerAngle:e.coneInnerAngle,coneOuterAngle:e.coneOuterAngle,coneOuterGain:e.coneOuterGain,distanceModel:e.distanceModel,maxDistance:e.maxDistance,refDistance:e.refDistance,rolloffFactor:e.rolloffFactor,panningModel:e.panningModel}),r._pannerAttr={coneInnerAngle:void 0!==e.pannerAttr.coneInnerAngle?e.pannerAttr.coneInnerAngle:r._coneInnerAngle,coneOuterAngle:void 0!==e.pannerAttr.coneOuterAngle?e.pannerAttr.coneOuterAngle:r._coneOuterAngle,coneOuterGain:void 0!==e.pannerAttr.coneOuterGain?e.pannerAttr.coneOuterGain:r._coneOuterGain,distanceModel:void 0!==e.pannerAttr.distanceModel?e.pannerAttr.distanceModel:r._distanceModel,maxDistance:void 0!==e.pannerAttr.maxDistance?e.pannerAttr.maxDistance:r._maxDistance,refDistance:void 0!==e.pannerAttr.refDistance?e.pannerAttr.refDistance:r._refDistance,rolloffFactor:void 0!==e.pannerAttr.rolloffFactor?e.pannerAttr.rolloffFactor:r._rolloffFactor,panningModel:void 0!==e.pannerAttr.panningModel?e.pannerAttr.panningModel:r._panningModel})}else 2===i.length&&(e=i[0],t=parseInt(i[1],10));for(var a=r._getSoundIds(t),c=0;c<a.length;c++)if(o=r._soundById(a[c])){var u=o._pannerAttr;u={coneInnerAngle:void 0!==e.coneInnerAngle?e.coneInnerAngle:u.coneInnerAngle,coneOuterAngle:void 0!==e.coneOuterAngle?e.coneOuterAngle:u.coneOuterAngle,coneOuterGain:void 0!==e.coneOuterGain?e.coneOuterGain:u.coneOuterGain,distanceModel:void 0!==e.distanceModel?e.distanceModel:u.distanceModel,maxDistance:void 0!==e.maxDistance?e.maxDistance:u.maxDistance,refDistance:void 0!==e.refDistance?e.refDistance:u.refDistance,rolloffFactor:void 0!==e.rolloffFactor?e.rolloffFactor:u.rolloffFactor,panningModel:void 0!==e.panningModel?e.panningModel:u.panningModel};var s=o._panner;s||(o._pos||(o._pos=r._pos||[0,0,-.5]),n(o,"spatial"),s=o._panner),s.coneInnerAngle=u.coneInnerAngle,s.coneOuterAngle=u.coneOuterAngle,s.coneOuterGain=u.coneOuterGain,s.distanceModel=u.distanceModel,s.maxDistance=u.maxDistance,s.refDistance=u.refDistance,s.rolloffFactor=u.rolloffFactor,s.panningModel=u.panningModel}return r},Sound.prototype.init=function(e){return function(){var n=this,t=n._parent;n._orientation=t._orientation,n._stereo=t._stereo,n._pos=t._pos,n._pannerAttr=t._pannerAttr,e.call(this),n._stereo?t.stereo(n._stereo):n._pos&&t.pos(n._pos[0],n._pos[1],n._pos[2],n._id)}}(Sound.prototype.init),Sound.prototype.reset=function(e){return function(){var n=this,t=n._parent;return n._orientation=t._orientation,n._stereo=t._stereo,n._pos=t._pos,n._pannerAttr=t._pannerAttr,n._stereo?t.stereo(n._stereo):n._pos?t.pos(n._pos[0],n._pos[1],n._pos[2],n._id):n._panner&&(n._panner.disconnect(0),n._panner=void 0,t._refreshBuffer(n)),e.call(this)}}(Sound.prototype.reset);var n=function(e,n){"spatial"===(n=n||"spatial")?(e._panner=Howler.ctx.createPanner(),e._panner.coneInnerAngle=e._pannerAttr.coneInnerAngle,e._panner.coneOuterAngle=e._pannerAttr.coneOuterAngle,e._panner.coneOuterGain=e._pannerAttr.coneOuterGain,e._panner.distanceModel=e._pannerAttr.distanceModel,e._panner.maxDistance=e._pannerAttr.maxDistance,e._panner.refDistance=e._pannerAttr.refDistance,e._panner.rolloffFactor=e._pannerAttr.rolloffFactor,e._panner.panningModel=e._pannerAttr.panningModel,void 0!==e._panner.positionX?(e._panner.positionX.setValueAtTime(e._pos[0],Howler.ctx.currentTime),e._panner.positionY.setValueAtTime(e._pos[1],Howler.ctx.currentTime),e._panner.positionZ.setValueAtTime(e._pos[2],Howler.ctx.currentTime)):e._panner.setPosition(e._pos[0],e._pos[1],e._pos[2]),void 0!==e._panner.orientationX?(e._panner.orientationX.setValueAtTime(e._orientation[0],Howler.ctx.currentTime),e._panner.orientationY.setValueAtTime(e._orientation[1],Howler.ctx.currentTime),e._panner.orientationZ.setValueAtTime(e._orientation[2],Howler.ctx.currentTime)):e._panner.setOrientation(e._orientation[0],e._orientation[1],e._orientation[2])):(e._panner=Howler.ctx.createStereoPanner(),e._panner.pan.setValueAtTime(e._stereo,Howler.ctx.currentTime)),e._panner.connect(e._node),e._paused||e._parent.pause(e._id,!0).play(e._id,!0)}}()}));function ie(e,n,t){Q(z).invokeCallbackHandler(e,n,t)}function ae(e,n,t){var o,r=null===(o=Hn.currPage)||void 0===o?void 0:o.children;if(Array.isArray(r)&&r.length>0){var i=r[0];i&&i.isWebView&&i.postMessageToWebView({callbackId:e,type:"webInvokeCallbackHandler",params:n})}}var ce={},ue={};function se(e,n){var t=ce[e],o=ue[e];return null!=t?""!=n.src&&o!=n.src?(t.unload(),delete ce[e],delete ue[e],se(e,n)):t:(ue[e]=n.src,ce[e]=function(e,n){var t=new re.Howl({autoplay:e.autoplay,loop:e.loop,src:e.src,rate:e.playbackRate,onend:function(){Y(fe,{innerAudioContextId:n,method:de.onEnded,data:{}})},onplay:function(){Y(fe,{innerAudioContextId:n,method:de.onPlay,data:{buffered:0,currentTime:0,duration:0}})},onpause:function(e){Y(fe,{innerAudioContextId:e,method:de.onPause,data:{}})},onstop:function(){Y(fe,{innerAudioContextId:n,method:de.onStop,data:{}})},onseek:function(){Y(fe,{innerAudioContextId:n,method:de.onSeeked,data:{}})},onplayerror:function(e,n){Y(fe,{innerAudioContextId:e,method:de.onError,data:{errMsg:"播放失败 :"+n,errCode:-1}})},onloaderror:function(e,n){Y(fe,{innerAudioContextId:e,method:de.onError,data:{errMsg:"播放失败 :"+n,errCode:10002}})},onrate:function(e){console.log("audio进度改变")},onload:function(){Y(fe,{innerAudioContextId:n,method:de.onCanplay,data:{}})}});return t}(n,e))}function le(e,n,t){var o=ce[n];if(null==o){var r=e+":fail 无法找到innerAudioContextId:"+n+"对应的audio实例";throw ie(t,{errMsg:r}),new Error(r)}return o}re.Howler.autoSuspend=!1;var de={onCanplay:"onCanplay",onEnded:"onEnded",onError:"onError",onPause:"onPause",onPlay:"onPlay",onSeeked:"onSeeked",onSeeking:"onSeeking",onStop:"onStop",onTimeUpdate:"onTimeUpdate",onWaiting:"onWaiting"},fe="onInnerAudio";var pe={innerAudio:function(e,n){var t,o=e.method,r=e.data,i=e.innerAudioContextId;switch(o){case"create":break;case"play":(t=se(i,r)).loop(r.loop),t.volume(r.volume),r.isPlayMethod&&t.play();break;case"stop":le(o,i,n).stop();break;case"seek":(t=le(o,i,n)).seek(r.position);break;case"pause":le(o,i,n).pause();break;case"destroy":le(o,i,n).unload();break;default:throw new Error("无法处理音频method:"+o)}return{errMsg:"innerAudio:ok"}}};function ve(e){return/^http(s?)\:\/\//.test(e)}function he(e,n,t){var o=new XMLHttpRequest,r=!0;if(null!=n.sync&&(r=!n.sync),null!=n.responseType&&(o.responseType=n.responseType),o.open("GET",e,r),null!=n.header)for(var i in n.header)o.setRequestHeader(i,n.header[i]);o.onload=function(e){t(null,o.response,{e:e,xhr:o})},o.onerror=function(e){t(new Error("request settings failed!"),null,{e:e,xhr:o})},o.send(null)}var ge={readFileSync:function(e){var n,t=e.filePath;if(t.startsWith(N))return{data:null,errMsg:"readFileSync:fail not support local file."};t=ve(t=(n=t).endsWith(".wasm")?n+".txt":n)?t:P+t;var o=null,r=null;return he(t,{sync:!0},(function(e,n){o=n,r=e})),null!=o?{data:o,errMsg:"readFileSync:ok"}:null!=r?{data:null,errMsg:"readFileSync:fail "+r.message}:{data:null,errMsg:"readFileSync:fail"}},readFile:function(e,n){var t=e.filePath,o="base64"===e.encoding,r=ve(t)?t:P+t;t.startsWith(N)?ie(n,{errMsg:"readFile:fail not support local file: "+t}):he(r,{responseType:o?"arraybuffer":""},(function(e,t){ie(n,null==e?{data:o?h(t):t,errMsg:"readFile:ok"}:{errMsg:"readFile:fail "+e.message})}))},access:function(){return{errMsg:"access:ok"}},rename:function(){return{errMsg:"rename:ok"}},mkdirSync:function(){return{errMsg:"mkdirSync:ok"}},writeFile:function(){return{errMsg:"writeFile:ok"}},writeFileSync:function(e){return e.filePath,e.data,{errMsg:"writeFileSync:ok"}},unlink:function(e,n){return e.filePath,{errMsg:"unlink:ok"}},downloadFile:function(e,n){var t=e.url,o=e.timeout,r=void 0===o?6e3:o;e.taskId,e.header,e.filePath,g(r,function(e){var n=e.url,t=e.callbackId;return e.filePath,e.header,s(this,void 0,void 0,(function(){return l(this,(function(e){return Y(H,{cookies:[],progress:100,totalBytesExpectedToWrite:100,totalBytesWritten:100}),Y(D,{cookies:[],header:{}}),ie(t,{filePath:n,tempFilePath:n,profile:[],statusCode:200,errMsg:"downloadFile:ok"}),[2]}))}))}({url:t,callbackId:n}),(function(e){ie(n,{errMsg:"downloadFile:fail timeout in "+e+"ms."})}))},copyFile:function(e,n){return e.srcPath,e.destPath,ie(n,{errMsg:"copyFile:ok fake subpport."},"copyFile")}};function me(e){return te().invokeHandler({callbackId:e.callbackId||-1,apiName:e.apiName,params:e.params,from:"service"})}var we,ye,be,_e=W||A()?ge:(we=ge,ye={readFileSync:{onMobile:Ae},readFile:{onMobile:Ae},access:{onMobile:Ae},rename:{onCallBefore:function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var t=e.shift();return t&&t.fatNewPath&&(t.newPath=t.fatNewPath,delete t.fatNewPath),t&&e.unshift(t),e}},downloadFile:{onCallBefore:function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var t=e[0];if(null!=t){var o=t.header;if(o&&o.Referer)throw new Error("header不能设置Referer字段");t.source="miniGame"}return e}}},be=ye||{},Object.keys(we).reduce((function(e,n){var t=we[n];return e[n]=function(){for(var e,o,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var a=p(),c=be[n],u={callNativeApi:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return me({apiName:n,params:e[0],callbackId:e[1]})},callPatchApi:function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return t.apply(void 0,e)}};try{return c&&"function"==typeof c.onCallBefore&&(r=(e=c.onCallBefore).call.apply(e,d([u],r))),a?c&&"function"==typeof c.onMobile?(o=c.onMobile).call.apply(o,d([u],r)):u.callNativeApi.apply(u,r):u.callPatchApi.apply(u,r)}catch(e){return{errMsg:n+":fail error occured in polyfill api, "+e.message}}},e}),{}));function Ae(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var t=e[0],o=t.filePath||t.path,r=this;return o.startsWith(G)?r.callNativeApi.apply(r,e):r.callPatchApi.apply(r,e)}var xe=new(function(){function e(){this.reportedEventType=new Set(["ErrorType"])}return Object.defineProperty(e.prototype,"sentry",{get:function(){return window.Sentry},enumerable:!1,configurable:!0}),e.prototype.captureException=function(e,n){var t=this.sentry;if(null!=t){var o=n.event_desc;delete n.event_desc,t.captureException(function(e,n){var t=new Error,o=e.charAt(0).toUpperCase()+e.slice(1),r=function(e){try{return JSON.parse(e)}catch(n){return e}}(n);"string"==typeof r?(t.stack=r,t.message=r):(t.message=o+": "+r.msg,t.stack=r.stack);return t}(e,o))}else console.log("Sentry is not ready yet.")},e.prototype.captureLoadGameEntryError=function(e){xe.captureException("LoadGameEntryError",{event_desc:"load game entry bundle fail: \n"+e.message+"\n"+e.stack})},e}()),ke=null;function Se(){if(null==ke)throw new Error("WxConfig is not ready.");return ke}function Ie(e){var n=Se(),t=n.windows.pages;return null!=t&&t[e]?Object.assign({},n.window,t[e]):null}var Ce=new i;function Te(){Ce.on("NavigatorBarTools:onMore",(function(){Cn.showToast({title:"暂未实现该功能"})})),Ce.on("NavigatorBarTools:onClose",(function(){var e=te();null!=e&&e.invokeHandler({callbackId:-1,apiName:"exitMiniProgram",params:{},from:"service"})})),Ce.on("NavigatorBar:onBack",(function(){Ge.navigateBack({delta:1}),console.log("onBack")})),Ce.on("TabBar:change",(function(e){var n,t,o;Y("onTabItemTap",{index:e.index,pagePath:e.item.pagePath,text:e.item.text}),Ge.switchTab({url:e.item.pagePath},-1),n=e.item.pagePath,t={},null!=(o=Ie(n))&&(t.windowConfig=o),Ce.emit("tabItemChanged",t)})),Ce.on("invokeCallbackHandler",(function(e){ie(e.callbackId,e.data)})),Ce.on("dispatchServiceEvent",(function(e){Y(e.event,e.payload)}))}function Me(e){void 0!==window.__initWebFrame&&window.__initWebFrame(e,Ce)}var Pe={getGlobalVariables:function(e){return"_launchOption"===e.variable?{_launchOption:R}:null},onWindowResize:function(){},offWindowResize:function(){},reportApmMonitor:function(e){var n=e.eventName,t=e.payload,o=e.eventType;e.timestamp,xe.reportedEventType.has(o)?xe.captureException(n,t):"LogReport"===o&&t.event},addPerformance:function(e){},initReady:function(){},updateAppData:function(){},injectHtmlCallback:function(e,n,t){"service"===t&&Z().events.emit(V.onInjectHTMLCallback)},pageScrollTo:function(e,n){var t=e.scrollTop;e.duration;var o=Hn.currPage.getWindow();return null==o||o.scrollTo({top:t,behavior:"smooth"}),{errMsg:"pageScrollTo:ok"}},getMenuButtonBoundingClientRect:function(e,n){Ce.emit("getMenuButtonBoundingClientRect",e,n)},getAccountInfoSync:function(){var e=window.__extInfo;return{data:{miniProgram:u(u({},e),{appId:null==e?void 0:e.extUuid,envVersion:null==e?void 0:e.envVersion,version:"",forceUsePatchApi:W}),plugin:{appId:"",version:""}}}},jssdkConfig:function(e,n){var t=e.jsApiList,o=[];if((void 0===t?[]:t).forEach((function(e){null==Cn[e]&&o.push(e)})),!(o.length>0))return ae(n,{errMsg:"jssdkConfig:ok"});ae(n,{errMsg:"jssdkConfig:fail "+o.join(",")+" 未实现."})}},Ee={hideToast:function(e){return Ce.emit("hideToast",e),{errMsg:"hideToast:ok"}},showToast:function(e){return Ce.emit("showToast",e),{errMsg:"showToast:ok"}},showLoading:function(e){return Ce.emit("showLoading",e),{errMsg:"showLoading:ok"}},hideLoading:function(e){return Ce.emit("hideLoading",e),{errMsg:"hideLoading:ok"}},showModal:function(e,n){Ce.emit("showModal",e,n)},showActionSheet:function(e,n){Ce.emit("showActionSheet",e,n)}};function Be(){return p()&&!A()}var Oe={showGameKeyboard:function(e){return Be()?me({apiName:"showGameKeyboard",params:e}):Ce.emit("showKeyboard",e),{}},hideGameKeyboard:function(e){return Be()||Ce.emit("hideKeyboard",e),{}},updateGameKeyboard:function(e){return Be()||Ce.emit("updateKeyboard",e),{}},showKeyboard:function(e){return Be()?me({apiName:"showGameKeyboard",params:e}):Ce.emit("showKeyboard",e),{}},hideKeyboard:function(e){return Ce.emit("hideKeyboard",e),{}},updateKeyboard:function(e){return Ce.emit("updateKeyboard",e),{}}};function Le(e,n){if(e===j)return'<script charset="utf-8" src="'+n.moduleName+'game.js"><\/script>';if("miniProgram"===e)return n.content;throw Error("unsupported projectType: "+e)}var Fe=function(e){function n(n){return e.call(this,u(u({},n),{projectType:j}))||this}return c(n,e),n.prototype.injectScript=function(){var e=Q(z).getWindow();e.injectHtml(e.document.body,{content:Le(this.projectType,{moduleName:this.moduleName})})},n.prototype.getEntry=function(){return e=this.projectType,n={moduleName:this.moduleName},e===j?n.moduleName+"game.js":"";var e,n},n}(function(){function e(e){this.taskId=e.taskId,this.moduleName=e.moduleName,this.projectType=e.projectType,this.status="none"}return e.prototype.notifyProgressUpdate=function(e,n){Y("onLoadSubPackageTaskStateChange",u({moduleName:this.moduleName,state:e,taskId:this.taskId},n))},e.prototype.injectScript=function(){},e.prototype.getEntry=function(){},e.prototype.load=function(e,n){return s(this,void 0,void 0,(function(){return l(this,(function(e){return this.notifyProgressUpdate("progressUpdate",{progress:0}),this.notifyProgressUpdate("progressUpdate",{progress:50}),this.injectScript(),this.notifyProgressUpdate("progressUpdate",{progress:100}),[2]}))}))},e}()),Re=0,He={},De={createLoadSubPackageTask:function(e,n){var t=e.moduleName,o=He[t];if(o&&"success"===o.status)return{errMsg:"createLoadSubPackageTask:fail sub package already loaded."};++Re;var r=String(Re);return o=new Fe({taskId:r,moduleName:t}),Z().events.once(V.onInjectHTMLCallback,(function(){o.status="success",o.notifyProgressUpdate("success",{entryPath:o.getEntry()})})),He[t]=o,o.load(r,n),{errMsg:"createLoadSubPackageTask:ok",loadTaskId:Re}}},je={showNavigationBarLoading:function(){return Ce.emit("showNavigationBarLoading"),{errMsg:"showNavigationBarLoading:ok"}},setNavigationBarTitle:function(e){return Ce.emit("setNavigationBarTitle",e),{errMsg:"setNavigationBarTitle:ok"}},setNavigationBarColor:function(e){return Ce.emit("setNavigationBarColor",e),{errMsg:"setNavigationBarColor:ok"}},hideNavigationBarLoading:function(){return Ce.emit("hideNavigationBarLoading"),{errMsg:"hideNavigationBarLoading:ok"}},hideHomeButton:function(){}};function Ne(e,n){var t,o=function(e){e=e.replace(/\.html$/,"");var n=Se(),t=n.subpackages;if(Array.isArray(t)&&t.length>0)return t.find((function(n){return n.pageFullPath.includes(e)}));return null}(e);null==o||(t=o.root,q[t])?n():function(e,n){var t=Q(z);t.events.once(V.onInjectHTMLCallback,n),t.loadSubBundle(e.root,e.packageName+".js")}(o,n)}var Ge={navigateTo:function(e,n){var t=e.url;if(Hn.stack.length>10)return{errMsg:"navigateTo:fail 已到达页面栈上限:10。"};var o=v(t),r=o.path,i=o.query;return Ne(r,(function(){var e=Hn.go(r);Z().events.once(V.onViewDOMContentLoaded,(function(){Y("onAppRoute",{path:r,openType:"navigateTo",options:void 0,pipMode:"",query:i,webviewId:e.webviewId},e.webviewId)}))})),{errMsg:"navigateTo:ok"}},navigateBack:function(e){var n=e.delta;try{Hn.back(n)}catch(e){return{errMsg:"navigateBack:fail "+e.message}}var t=Hn.currPage;return Y("onAppRoute",{path:t.pagePath,openType:"navigateBack",options:{delta:n},pipMode:"",query:void 0,webviewId:t.webviewId},t.webviewId),{errMsg:"navigateBack:ok"}},reLaunch:function(e,n){var t=e.url,o=v(t),r=o.path,i=o.query;Ne(r,(function(){Hn.reLaunch(t);var e=Hn.currPage;Z().events.once(V.onViewDOMContentLoaded,(function(){Y("onAppRoute",{path:r,openType:"reLaunch",options:void 0,pipMode:"",query:i,webviewId:e.webviewId},e.webviewId),ie(n,{errMsg:"reLaunch:ok"})}))}))},redirectTo:function(e,n){var t=v(e.url),o=t.path,r=t.query;Ne(o,(function(){try{Hn.redirectTo(o)}catch(e){return void ie(n,{errMsg:"redirectTo:fail "+e.message})}var e=Hn.currPage;Z().events.once(V.onViewDOMContentLoaded,(function(){Y("onAppRoute",{path:o,openType:"redirectTo",options:void 0,pipMode:"",query:r,webviewId:e.webviewId},e.webviewId),ie(n,{errMsg:"redirectTo:ok"})}))}))},switchTab:function(e,n){var t=v(e.url),o=t.path,r=t.query;Ne(o,(function(){try{Hn.switch(o)}catch(e){return void ie(n,{errMsg:"switchTab:fail "+e.message})}var e=Hn.currPage;e.isReady?(Y("onAppRoute",{path:o,openType:"switchTab",options:void 0,pipMode:"",query:r,webviewId:e.webviewId},e.webviewId),ie(n,{errMsg:"switchTab:ok"})):Z().events.once(V.onViewDOMContentLoaded,(function(){Y("onAppRoute",{path:o,openType:"switchTab",options:void 0,pipMode:"",query:r,webviewId:e.webviewId},e.webviewId),ie(n,{errMsg:"switchTab:ok"})}))}))}};function We(e){setTimeout(e,16)}function $e(e){var n=b();if(null==n)throw new Error("获取 extUuid 失败 by storage api");return n+"-"+e}function Ve(e){var n=b();if(null==n)throw new Error("获取 extUuid 失败 by storage api");return e.replace(new RegExp("^"+n+"-"),"")}function qe(e){return Number((e/1024).toFixed(2))}var Ke={getStorageSync:function(e){return{data:localStorage.getItem($e(e.key))||null}},getStorage:function(e,n){We((function(){ie(n,{data:Ke.getStorageSync(e)})}))},setStorageSync:function(e){return localStorage.setItem($e(e.key),e.data),{errMsg:"setStorageSync:ok"}},setStorage:function(e,n){We((function(){localStorage.setItem(e.key,e.data),ie(n,{errMsg:"setStorage:ok"})}))},removeStorageSync:function(e){return localStorage.removeItem($e(e.key)),{errMsg:"removeStorageSync:ok"}},removeStorage:function(e,n){We((function(){localStorage.removeItem($e(e.key)),ie(n,{errMsg:"removeStorage:ok"})}))},clearStorageSync:function(){return localStorage.clear(),{errMsg:"clearStorageSync:ok"}},clearStorage:function(e,n){We((function(){localStorage.clear(),ie(n,{errMsg:"clearStorage:ok"})}))},getStorageInfoSync:function(){var e=function(){var e=0,n=[];for(var t in localStorage)Object.prototype.hasOwnProperty.call(localStorage,t)&&(e+=localStorage[t].length,n.push(Ve(t)));return{size:e,keys:n}}(),n=e.size;return{keys:e.keys,currentSize:qe(n),limitSize:qe(10485760)}},getStorageInfo:function(e,n){We((function(){ie(n,u(u({},Ke.getStorageInfoSync()),{errMsg:"getStorageInfo:ok"}))}))}};function ze(){var e=f();return("Android"===e||"IOS"===e)&&window.matchMedia("(orientation: portrait)").matches?"portrait":"landscape"}function Ue(){var e,n,t,o=null===(e=Hn.currPage)||void 0===e?void 0:e.getWindow();if(null!=o){var r=o.document;return(null===(n=r.documentElement)||void 0===n?void 0:n.scrollTop)||(null===(t=r.body)||void 0===t?void 0:t.scrollTop)||0}return 0}function Qe(){return u(u({patch:!0},(e=window.innerWidth||375,n=window.innerHeight||375,t=f().toLocaleLowerCase().includes("window")?0:50,o=window.devicePixelRatio||2,{screenWidth:e,screenHeight:n,statusBarHeight:t,devicePixelRatio:o,pixelRatio:o,windowHeight:n,windowWidth:e,safeArea:{height:n-t,widows:e,top:t,left:0,right:0}})),{scrollY:Ue()});var e,n,t,o}var Je={onMemoryWarning:function(){console.warn("The onMemoryWarning api is not implement.")},showShareMenu:function(){console.warn("The showShareMenu api is not implement.")},getSystemInfoSync:function(){var e,n=Ze(),t=ze(),o=f(),r=(e=y().extType||"").startsWith("app_")?f().toLowerCase():e.startsWith("pc_")?"pc":"web";return S.info("getSystemInfoSync",{windowInfo:n,deviceOrientation:t,system:o,platform:r}),u({deviceOrientation:t,SDKVersion:"1.0.0",appVersion:"12.1.0",batteryLevel:98,benchmarkLevel:1,bluetoothEnabled:!1,brand:"huya",cameraAuthorized:!1,deviceId:"none",enableDebug:!1,fontSizeSetting:15,frameworkVersion:"1.0.0",inHUYA:!0,language:"zh_CN",locationAuthorized:!1,locationEnabled:!1,microphoneAuthorized:!0,mode:"default",model:"none",notificationAuthorized:!0,platform:r,system:o,theme:void 0,version:"8.0.28 "},n)},getWindowInfo:function(){return Ze()},getSetting:function(){return{authSetting:{"scope.userInfo":!0},subscriptionsSetting:{},miniprogramAuthSetting:{"scope.userInfo":!0}}},getNetworkType:function(){return{networkType:"wifi",signalStrength:100,hasSystemProxy:!1}}};function Ze(){return p()&&!A()?function(e){_()?(e.screenWidth=e.windowWidth||window.innerWidth||e.screenWidth,e.screenHeight=e.windowHeight||window.innerHeight||e.screenHeight):(e.screenWidth=e.windowWidth||window.innerWidth,e.screenHeight=e.windowHeight||window.innerHeight);return e}(me({apiName:"getWindowInfo",params:{}})):Qe()}var Xe={showTabBar:function(e){return Ce.emit("showTabBar",e),{errMsg:"showTabBar:ok"}},hideTabBar:function(e){return Ce.emit("hideTabBar",e),{errMsg:"hideTabBar:ok"}},setTabBarStyle:function(e){return Ce.emit("setTabBarStyle",e),{errMsg:"setTabBarStyle:ok"}},setTabBarItem:function(e){return Ce.emit("setTabBarItem",e),{errMsg:"setTabBarItem:ok"}},setTabBarBadge:function(e){return Ce.emit("setTabBarBadge",e),{errMsg:"setTabBarBadge:ok"}},removeTabBarBadge:function(e){return Ce.emit("removeTabBarBadge",e),{errMsg:"removeTabBarBadge:ok"}},hideTabBarRedDot:function(e){return Ce.emit("hideTabBarRedDot",e),{errMsg:"hideTabBarRedDot:ok"}},showTabBarRedDot:function(e){return Ce.emit("showTabBarRedDot",e),{errMsg:"showTabBarRedDot:ok"}}},Ye="insertHTMLWebView",en="onWebviewLoad",nn={insertHTMLWebView:function(e,n,t,o){Hn.initNextWebView(Hn.currPage,e.src,e.src).el.addEventListener("load",(function(){Y(en,{webviewId:o},o),ee(oe+"pageonshow",{})})),Y(Ye,e,o)},invokeMiniProgramAPI:function(e,n){console.log(e,n);var t=e.name,o=e.arg,r=Cn[t];null!=r&&r(o,n)},postMessage:function(e,n){Y("onBindMessage",e,Hn.currPage.webviewId),ae(n,{errMsg:"postMessage:ok"})},canGoBack:function(e,n){ae(n,{errMsg:"canGoBack:fail default to fail"})},canNavigateBack:function(e,n){var t=!1;Hn.allPages.length>1&&(t=!0),ae(n,{errMsg:"canNavigateBack:"+(t?"ok":"fail")})}},tn={},on="onAd";function rn(e){var n=e.type,t=e.adUnitId,o=tn[t];if(null!=o)return o;if("rewardedVideo"===n)o=function(e){var n=e.adUnitId,t=me({apiName:"createRewardedVideoAd",params:{adUnitId:n}});return t.onLoad((function(e){Y(on,{method:"onLoad",adUnitId:n,data:e})})),t.onClose((function(e){Y(on,{method:"onClose",adUnitId:n,data:e})})),t.onError((function(e){Y(on,{method:"onError",adUnitId:n,data:e})})),t}(e);return null!=o&&(tn[t]=o),o}var an={ad:function(e,n){return s(void 0,void 0,void 0,(function(){var t,o,r,i;return l(this,(function(a){switch(a.label){case 0:if(t=e.method,e.adUnitId,o=e.type,null==(r=rn(e)))return ie(n,{errMsg:"ad:fail 获取"+o+"广告实例失败"}),[2];a.label=1;case 1:switch(a.trys.push([1,12,,13]),t){case"load":return[3,2];case"destroy":return[3,4];case"show":return[3,6];case"hide":return[3,8]}return[3,10];case 2:return[4,r.load()];case 3:return a.sent(),[3,11];case 4:return[4,r.destroy()];case 5:return a.sent(),[3,11];case 6:return[4,r.show()];case 7:return a.sent(),[3,11];case 8:return[4,r.hide()];case 9:return a.sent(),[3,11];case 10:throw new Error("unsupported method: "+t);case 11:return ie(n,{errMsg:"ad:ok"}),[3,13];case 12:return i=a.sent(),ie(n,{errMsg:"ad:fail adInstance."+t+" call fail, "+(i.mssage||"unknown")}),[3,13];case 13:return[2]}}))}))}},cn="revue_clipboard",un="";function sn(e,n){return s(this,void 0,void 0,(function(){return l(this,(function(t){try{!function(e){if(!document.hasFocus())throw new Error("Failed to execute 'writeText' on 'Clipboard': Document is not focused.");var n=document.getElementById(cn);if(null==n&&((n=document.createElement("textarea")).style.opacity="0",n.id=cn,document.body.appendChild(n)),n)try{var t=n;un=t.textContent=e,t.select(),document.execCommand("copy"),document.body.removeChild(n)}catch(e){throw document.body.removeChild(n),e}}(e.data),ie(n,{errMsg:"setClipboardData:ok"})}catch(e){ie(n,{errMsg:"setClipboardData:fail "+e.message})}return[2]}))}))}var ln={setClipboardData:function(e,n){sn(e,n)},getClipboardData:function(e,n){!function(e){s(this,void 0,void 0,(function(){return l(this,(function(n){try{ie(e,{errMsg:"getClipboardData:ok",data:un})}catch(n){ie(e,{errMsg:"getClipboardData:fail "+n.message})}return[2]}))}))}(n)}},dn={appDataChange:function(e){var n=e.params,t=e.from,o=e.webviewIds,r=e.event;e.webviewId,t===L?console.error("not implement for "+t):(!function(e){var n=u({},e.data),t=Ie(n.options.path);t&&(n.windowConfig=t),n.pages=Hn.allPages,Ce.emit("appDataChange",n)}(n),X(r,n,o))},__updateAppData:function(e){var n,t,o;n={},t=Hn.currPage.pagePath.replace(/\.html$/,""),null!=(o=Ie(t))&&(n.windowConfig=o),n.pages=Hn.allPages,n.currPage=t,Ce.emit("updateAppData",n)}};var fn={canvasInsert:function(e){var n=e.params,t=e.from;e.webviewIds;var o=e.event,r=e.webviewId;t===L?Y(o,n,r):console.error("not implement for "+t)},canvasRemove:function(e){var n=e.params,t=e.from;e.webviewIds;var o=e.event,r=e.webviewId;t===L?Y(o,n,r):console.error("not implement for "+t)},CANVAS_EVENT_V2:function(e){var n=e.params,t=e.from;e.webviewIds;var o=e.event,r=e.webviewId;t===L?Y(o,n,r):console.error("not implement for "+t)},onCanvasPreloadImage:function(e){var n=e.params,t=e.from;e.webviewIds;var o=e.event,r=e.webviewId;t===L?Y(o,n,r):console.error("not implement for "+t)},onCanvasGetImageData:function(e){var n=e.params,t=e.from;e.webviewIds;var o=e.event,r=e.webviewId;t===L?Y(o,n,r):console.error("not implement for "+t)},onCanvasPutImageData:function(e){var n=e.params,t=e.from;e.webviewIds;var o=e.event,r=e.webviewId;t===L?Y(o,n,r):console.error("not implement for "+t)},canvasActionsChanged:function(e){var n=e.params,t=e.from,o=e.webviewIds,r=e.event;e.webviewId,t===L?console.error("not implement for "+t):X(r,n,o)},invokeCanvasToDataUrl:function(e){var n=e.params,t=e.from,o=e.webviewIds,r=e.event;e.webviewId,t===L?console.error("not implement for "+t):X(r,n,o)},invokeCanvasPutImageData:function(e){var n=e.params,t=e.from,o=e.webviewIds,r=e.event;e.webviewId,t===L?console.error("not implement for "+t):X(r,n,o)},invokeCanvasGetImageData:function(e){var n=e.params,t=e.from,o=e.webviewIds,r=e.event;e.webviewId,t===L?console.error("not implement for "+t):X(r,n,o)},getImageBase64:function(e){var n=e.params;e.from,e.webviewIds;var t,o=e.event,r=e.webviewId,i=n.src;he(/^https?:\/\//.test(t=i)||/^hyfile:\/\//.test(t)?t:P+t,{responseType:"arraybuffer"},(function(e,n){if(null!=e)return"";var t=h(n),a=function(e){var n,t=e.split("/"),o=null===(n=t[t.length-1])||void 0===n?void 0:n.split("."),r=o[0],i=o[1];if(null==i||""==i)throw new Error("url:"+e+"格式错误,无法获取文件信息");return{filename:r,ext:i}}(i);X(o,{src:i,data:"data:image/"+a.ext+";base64,"+t},[r])}))}};function pn(){window.__autoRemoveFirstScreen&&window.__removeFirstScreen&&window.__removeFirstScreen()}function vn(e,n){e.message=n+" stack: "+(null==e?void 0:e.message),pn(),Cn.showToast({title:"加载游戏脚本超时"}),S.error("load game.js error",e.message),xe.captureLoadGameEntryError(e)}var hn={gameServiceReady:function(){!function(e){s(this,void 0,void 0,(function(){var n,t,o,r;return l(this,(function(i){switch(i.label){case 0:if(n=window.__deviceOrientation,t=ze(),o="string"==typeof n&&n.includes("landscape"),!("landscape"!==t&&o&&p()&&_()))return[3,5];i.label=1;case 1:return i.trys.push([1,3,,4]),[4,g(5e3,new Promise((function(e){var n=te();me({apiName:"setDeviceOrientation",params:{value:"landscape"}}),n.$events.once("onDeviceOrientationChange",(function(n){"landscape"===n.value&&e(!0)}))})))];case 2:return i.sent(),e(),[3,4];case 3:return r=i.sent(),e(r),[3,4];case 4:return[3,6];case 5:e(),i.label=6;case 6:return[2]}}))}))}((function(e){null==e?We((function(){S.log("load game.js"),function(){s(this,void 0,void 0,(function(){function e(){return s(this,void 0,void 0,(function(){return l(this,(function(e){switch(e.label){case 0:return[4,Z().loadSubBundle("","game.js")];case 1:return e.sent(),pn(),[2]}}))}))}return l(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,g(18e3,e())];case 1:return n.sent(),[3,3];case 2:return vn(n.sent(),"entry"),[3,3];case 3:return[2]}}))}))}()})):vn(e,"deviceOrientation")}))},gameConfigUpdate:function(e){var n=e.params;Me({windowInfo:Cn.getWindowInfo(),wxConfig:n})}},gn=new(function(){function e(){this.reportedFirstScreenTime=!1}return e.prototype.reportFirstScreenTime=function(e){if(!this.reportedFirstScreenTime){var n=window.performanceInfo;null!=n&&(n.firstScreenTime=e),this.reportedFirstScreenTime=!0}},e}()),mn=new(function(){function e(){var e;this.inited=!1,this.__startTime=(null===(e=null===performance||void 0===performance?void 0:performance.timing)||void 0===e?void 0:e.fetchStart)||Date.now(),this.isServiceReady=!1,this.isViewReady=!1,this.showedFirstPage=!1}return Object.defineProperty(e.prototype,"allReady",{get:function(){return this.isViewReady&&this.isServiceReady},enumerable:!1,configurable:!0}),e.prototype.init=function(e){var n=!1;if(!this.inited){this.inited=!0;try{this.initIframes()}catch(e){this.inited=!1,n=!0,S.info("initLauncher init error",e)}!n&&S.info("initLauncher "+e+" consume: "+(Date.now()-this.__startTime)+"ms")}},e.prototype.initIframes=function(){var e=Z(),n=J();e.updateSrc("./service.html"),n.updateSrc("first")},e.prototype.handleServiceStart=function(e){var n=e.params;ke=n,Me({wxConfig:n,windowInfo:Cn.getWindowInfo()}),Ce.emit("serviceStart",n)},e.prototype.handleServiceReady=function(e){var n=this,t=Z();if(!t.isReady){this.root=e.params.root,this.firstWebviewId=e.webviewIds[0],this.isServiceReady=!0;var o=this.firstWebviewId;t.events.once(V.onViewDOMContentLoaded,(function(){Y("onAppRoute",{path:n.root,openType:"appLaunch",options:void 0,pipMode:"",query:void 0,webviewId:n.firstWebviewId},n.firstWebviewId)})),Y("onServiceReadyDone",u(u({},R),{webviewId:o}),o),t.isReady=!0,this.launchPageShow()}},e.prototype.showPage=function(){var e=Hn.currPage;null!=e&&(e.isReady=!0,e.injectScript(),e.show(),this.showedFirstPage||(this.showedFirstPage=!0))},e.prototype.handleViewReady=function(){this.isViewReady=!0,this.showedFirstPage?this.showPage():this.launchPageShow()},e.prototype.handleViewDOMContentLoaded=function(e){var n=e.from,t=Z();n===L&&(Y("DOMContentLoaded",{},Hn.currPage.webviewId),t.events.emit(V.onViewDOMContentLoaded)),pn()},e.prototype.launchPageShow=function(){if(this.allReady){!function(e,n){var t=function(e){var n=e.tabBar;return null==n||0===(n.list||[]).length?[e.root]:n.list.map((function(e){return e.pagePath}))}(e);Hn.initFirstPage(t,e.root,n)}(Se(),J()),Hn.initSlotWebviewId(this.firstWebviewId),this.showPage();var e=Date.now(),n=e-this.__startTime;gn.reportFirstScreenTime(e),S.info("init page consume time: "+n+"ms")}},e}()),wn={serviceStart:function(e){mn.handleServiceStart(e)},onLaunchCalled:function(e){},serviceReady:function(e){mn.handleServiceReady(e)},DOMContentLoaded:function(e){mn.handleViewDOMContentLoaded(e)},viewReady:function(){mn.handleViewReady()},DOMReady:function(){}},yn={info:function(e){var n=e.params,t=e.from,o=e.webviewIds,r=e.event;e.webviewId,t===L?console.error("not implement for "+t):X(r,n,o)},log:function(e){var n=e.params,t=e.from,o=e.webviewIds,r=e.event;e.webviewId,t===L?console.error("not implement for "+t):X(r,n,o)},warn:function(e){var n=e.params,t=e.from,o=e.webviewIds,r=e.event;e.webviewId,t===L?console.error("not implement for "+t):X(r,n,o)},error:function(e){var n=e.params,t=e.from,o=e.webviewIds,r=e.event;e.webviewId,t===L?console.error("not implement for "+t):X(r,n,o)},initLogs:function(e){var n=e.params,t=e.from,o=e.webviewIds,r=e.event;e.webviewId,t===L?console.error("not implement for "+t):X(r,n,o)},clearLogs:function(e){var n=e.params,t=e.from,o=e.webviewIds,r=e.event;e.webviewId,t===L?console.error("not implement for "+t):X(r,n,o)},onViewLogEvent:function(e){var n=e.params,t=e.from;e.webviewIds;var o=e.event,r=e.webviewId;t===L?Y(o,n,r):console.error("not implement for "+t)}},bn={INVOKE_METHOD:function(e){var n=e.params,t=e.from,o=e.event,r=e.webviewId;t===L?Y(o,n,r):console.error("not implement for "+t)},pageonshow:function(e){var n=e.params,t=e.from,o=e.webviewIds,r=e.event;t===L?console.error("not implement for "+t):X(r,n,o)},pageonhide:function(e){var n=e.params,t=e.from,o=e.webviewIds,r=e.event;t===L?console.error("not implement for "+t):(X(r,n,o),ee(r,n))},requestLoadFontFace:function(e){var n=e.params,t=e.from,o=e.webviewIds,r=e.event;t===L?console.error("not implement for "+t):X(r,n,o)},requestLoadGlobalFontFaces:function(e){var n=e.params,t=e.from,o=e.event,r=e.webviewId;t===L?Y(o,n,r):console.error("not implement for "+t)},responseLoadGlobalFontFaces:function(e){var n=e.params,t=e.from,o=e.webviewIds,r=e.event;t===L?console.error("not implement for "+t):X(r,n,o)}};function _n(e){return"string"==typeof e?JSON.parse(e):e}function An(e){return JSON.parse(JSON.stringify(e))}var xn={SPECIAL_PAGE_EVENT:function(e){var n=e.params,t=e.from;e.webviewIds;var o=e.event,r=e.webviewId;t===L?Y(o,n,r):console.error("not implement for "+t)},setKeyboardValue:function(e){var n=e.params,t=e.from,o=e.webviewIds,r=e.event;e.webviewId,t===L?console.error("not implement for "+t):X(r,n,o)},PAGE_EVENT:function(e){var n=e.params,t=e.from;e.webviewIds;var o=e.event,r=e.webviewId;t===L?Y(o,n,r):console.error("not implement for "+t)},vdSync:function(e){var n=e.params,t=e.from,o=e.webviewIds,r=e.event,i=e.webviewId;t===L?Y(r,An(n),i):X(r,An(n),o)},vdSyncBatch:function(e){var n=e.params,t=e.from,o=e.webviewIds,r=e.event,i=e.webviewId;t===L?Y(r,An(n),i):X(r,An(n),o)}},kn={videoPlayerInsertFinish:function(e){var n=e.params,t=e.from;e.webviewIds;var o=e.event,r=e.webviewId;t===L?Y(o,n,r):console.error("not implement for "+t)},videoActionChanged:function(e){var n=e.params,t=e.from,o=e.webviewIds,r=e.event;e.webviewId,t===L?console.error("not implement for "+t):X(r,n,o)}},Sn={openTypeEvent:function(e){var n=e.event,t=e.params,o=e.from,r=e.webviewId;"view"===o&&Y(n,t,r)},openTypeEventCallback:function(e){var n=e.event,t=e.params,o=e.from,r=e.webviewIds;"service"===o&&X(n,t,r)}},In=u(u(u(u(u(u(u(u(u({},hn),wn),fn),dn),yn),bn),xn),kn),Sn),Cn=u(u(u(u(u(u(u(u(u(u(u(u(u(u({},Pe),_e),De),Ge),Ee),Ke),Je),je),Xe),nn),pe),Oe),an),ln);function Tn(e){var n,t=e.replace(oe,""),o=In[t];if(null==o){var r=/^video_(.*)_actionChanged$/.test(n=t)?"videoActionChanged":/^canvas(.*)actionsChanged$/.test(n)?"canvasActionsChanged":/^invokeCanvasToDataUrl_(.*)$/.test(n)?"invokeCanvasToDataUrl":/^onCanvasToDataUrl_(.*)$/.test(n)?"onCanvasToDataUrl":/^invokeCanvasPutImageData_(.*)$/.test(n)?"invokeCanvasPutImageData":/^onCanvasPutImageData_(.*)$/.test(n)?"onCanvasPutImageData":/^invokeCanvasGetImageData_(.*)$/.test(n)?"invokeCanvasGetImageData":/^onCanvasGetImageData_(.*)$/.test(n)?"onCanvasGetImageData":n;return{handler:In[r]||null,formatedEvent:r}}return{handler:o,formatedEvent:t}}var Mn={invokeHandler:function(e){S.debug("invokeHander",e);var n=e.C,t=e.from,o=e.paramsString,r=e.webviewId,i=e.callbackId,a=_n(o),c=Cn[n];if(null!=c){var u=c(a,i,t,r);return u&&u instanceof Promise?void 0:u}var s=te();if(null!=s)return s.invokeHandler({apiName:n,params:a,callbackId:i,from:t})},publishHandler:function(e){S.debug("publishHandler",e);var n=e.event,t=e.from,o=e.paramsString,r=e.webviewId,i=e.webviewIds,a=Tn(n),c=a.handler,u=a.formatedEvent,s=_n(o);if(null!=c)c({event:n,params:s,from:t,webviewId:r,webviewIds:O===t&&i?_n(i):void 0});else{var l=te();null!=l&&l.publishHandler({formatedEvent:u,event:n,params:s,from:t})}},webInvokeHandler:function(e){B&&console.log("webInvokeHander",e),ae(e.callbackId,_n(e.paramsString))},webPublishHandler:function(e){B&&console.log("webPublishHandler",e),ee(e.event,_n(e.paramsString))}};var Pn=[],En=function(e){Pn.push(e.el.src)},Bn=function(e){Pn.pop()},On=function(){function e(){this.block=!1,this.queue=[]}return e.prototype.collect=function(e){var n=this;this.block?this.queue.push(e):(this.block=!0,this.queue.push(e),this.timer=setTimeout((function(){n.block=!1,clearTimeout(n.timer),n.comsume()})))},e.prototype.comsume=function(){var e=this.queue;if(this.queue=[],1===e.length)e[0]();else for(var n=0;n<e.length;n++)e[n]()},e}();var Ln=function(e){function n(n){var t=e.call(this,n)||this;return t.webviewId=null,t.pagePath="",t.wrapper=null,t.isDestoryed=!1,t.active=!1,t.__isWebView=!1,t.tickQueue=new On,t}return c(n,e),Object.defineProperty(n.prototype,"isWebView",{get:function(){return this.__isWebView},set:function(e){this.__isWebView=e,e?En(this):Bn(this)},enumerable:!1,configurable:!0}),n.prototype.appendContainer=function(){var e=this.el;e.className="webview",e.setAttribute("frameborder","0"),this.hide();var n=document.getElementById("webview-container");this.wrapper=n,null!=n&&n.appendChild(e)},n.prototype.show=function(){var e=this.el;e.style.zIndex="2",e.style.opacity="1",this.active=!0,Fn(this,"show")},n.prototype.hide=function(){var e=this.el;e.style.zIndex="1",e.style.opacity="0",this.active=!1,Fn(this,"hide")},n.prototype.updateWebviewId=function(e){this.webviewId=e,this.updateId()},n.prototype.updateId=function(){this.el.id="webview-"+this.webviewId},n.prototype.updateSrc=function(e,n){void 0===n&&(n=E),this.el.src=n,this.pagePath=e},n.prototype.updatePagePath=function(e){this.pagePath=e},n.prototype.injectScript=function(){var e=this.getWindow();if(null!=e&&""!=this.pagePath){var n=this.pagePath.replace(/\.html$/g,""),t=function(e){var n=e.pagePath;return"\n <script>\n var __path__ = '"+e.path+"';\n document.title = __path__;\n document.dispatchEvent(new CustomEvent(\"generateFuncReady\", {\n detail: {\n generateFunc: $gfc('"+n+".wxml') || $gfc('"+n+".hyml')\n }\n }))\n <\/script> \n "}({pagePath:"./"+n,path:n});e.injectHtml(e.document.body,{content:t})}},n.prototype.getBridge=function(){return this.getWindow().FinChatJSBridge},n.prototype.sendToView=function(e,n){var t=this;this.sync?(S.debug("%c "+e,{data:n,webviewId:this.webviewId}),this.getBridge().subscribeHandler(e,n,this.webviewId)):this.tickQueue.collect((function(){S.debug("%c "+e,{data:n,webviewId:t.webviewId}),t.getBridge().subscribeHandler(e,n,t.webviewId)}))},n.prototype.postMessageToWebView=function(e){var n;S.debug("%c postMessageToWebView",e),null===(n=this.el.contentWindow)||void 0===n||n.postMessage(e,"*")},n.prototype.destory=function(){null!==this.wrapper&&this.wrapper.removeChild(this.el),this.el=null,this.wrapper=null,this.isDestoryed=!0,this.active=!1,this.isWebView=!1,Fn(this,"destory")},n}($);function Fn(e,n){e.isVHost&&e.children&&e.children.length>0&&e.children.forEach((function(e){e[n]()}))}function Rn(e,n){return e._slots.findIndex((function(e){return e===n.replace(/\.html$/,"")}))}var Hn=new(function(){function e(){this._slotStack=[],this._extraStack=[],this._slots=[],this._webviewId=0,this.rootIndex=0}return Object.defineProperty(e.prototype,"pagePath",{get:function(){var e;return(null===(e=this.currPage)||void 0===e?void 0:e.pagePath)||null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currPage",{get:function(){return this.stack[this.stack.length-2]||null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"top",{get:function(){return this.stack[this.stack.length-1]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"stack",{get:function(){var e=this._slotStack[this.rootIndex];return null==e?[]:d([e],this._extraStack)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"allPages",{get:function(){var e=this._slotStack[this.rootIndex];return null==e?[]:d([e],this._extraStack.slice(0,this._extraStack.length-1))},enumerable:!1,configurable:!0}),e.prototype.popExtraStack=function(){var e=this._extraStack,n=e.pop(),t=e.pop();return n&&e.push(n),t},e.prototype.resetExtraStack=function(){if(0!==this._extraStack.length){var e=this.top;this._extraStack.slice(0,this._extraStack.length-1).forEach((function(e){e.destory()})),this._extraStack=[e]}},e.prototype.initFirstPage=function(e,n,t){if(!Array.isArray(e)||0===e.length)throw new Error("slots must exist.");var o=Rn(this,n);o>-1&&(this.rootIndex=o),this._slots=e;for(var r=0;r<e.length;r++){var i=void 0;if(t&&r===this.rootIndex)i=t;else{var a=document.createElement("iframe");(i=new Ln(a)).appendContainer()}i&&this._slotStack.push(i)}var c=this._slotStack[this.rootIndex];t?c.updatePagePath(n):c.updateSrc(n),this.initEmptyPage()},e.prototype.initEmptyPage=function(){var e=document.createElement("iframe"),n=new Ln(e);n.appendContainer(),this._extraStack.push(n)},e.prototype.initNextPage=function(e,n){var t=this.currPage,o=this.top;return t.hide(),o.updateSrc(e,n),o.updateWebviewId(this._webviewId++),this.initEmptyPage(),o},e.prototype.initNextWebView=function(e,n,t){var o=this.initNextPage(n,t),r=this._extraStack.findIndex((function(e){return e.pagePath===n}));return r>-1&&this._extraStack.splice(r,1),e.children=[o],e.isVHost=!0,o.el.setAttribute("sandbox","allow-same-origin allow-scripts"),o.isWebView=!0,o.show(),o},e.prototype.initSlotWebviewId=function(e){this._webviewId=e,this._slotStack[this.rootIndex].updateWebviewId(this._webviewId++)},e.prototype.reinitPages=function(e){var n=this._slotStack,t=this._extraStack;n.forEach((function(e){e.destory()})),t.forEach((function(e){e.destory()})),this._slotStack=[],this._extraStack=[],this.initFirstPage(this._slots,e),this.currPage.updateWebviewId(this._webviewId++)},e.prototype.reLaunch=function(e){this.reinitPages(e)},e.prototype.redirectTo=function(e){if(Rn(this,e)>-1)throw new Error("不允许跳转到 tabbar 页面:"+e);var n=this._extraStack;if(n.length>1){var t=n.pop();n.pop().destory(),t.updateSrc(e),t.updateWebviewId(this._webviewId++),n.push(t),this.initEmptyPage()}else{null==(t=n.pop())||t.destory(),this._slotStack.forEach((function(e){e.destory()})),this.reinitPages(e)}},e.prototype.switch=function(e,n){n=null!=n?n:Rn(this,e);var t=this._slotStack,o=t[n];if(null==o)throw new Error("switchTab url is invalid: "+e);return this.resetExtraStack(),t.forEach((function(e){e.isReady&&e.hide()})),this.rootIndex=n,o.isReady?o.show():(o.updateWebviewId(this._webviewId++),o.updateSrc(e)),o},e.prototype.go=function(e){var n=Rn(this,e);return n>-1?this.switch(e,n):this.initNextPage(e)},e.prototype.back=function(e){var n,t=this._extraStack.slice(),o=t.pop(),r=t.length;if(e<=0)throw new Error("delta 不能 <= 0");if(r<e)throw new Error("delta 不能超过总栈长度:"+(r+1));var i=r-e,a=t.slice(0,i);(t.slice(i,r).forEach((function(e){e.destory()})),a.length>0)?a[a.length-1].show():null===(n=this._slotStack[this.rootIndex])||void 0===n||n.show();o&&a.push(o),this._extraStack=a},e}()),Dn=function(){function e(){this._invokeServiceCallbackHandler=ie,this._dispatchViewEvent=X,this._dispatchServiceEvent=Y,this.$events=new i,this._getCurrentPage=function(){return Hn.currPage},this._getAllPages=function(){return Hn.allPages}}return e.prototype.init=function(){ne=this},e}(),jn=r((function(e,n){
|
42
|
+
function(){var e;HowlerGlobal.prototype._pos=[0,0,0],HowlerGlobal.prototype._orientation=[0,0,-1,0,1,0],HowlerGlobal.prototype.stereo=function(e){var n=this;if(!n.ctx||!n.ctx.listener)return n;for(var t=n._howls.length-1;t>=0;t--)n._howls[t].stereo(e);return n},HowlerGlobal.prototype.pos=function(e,n,t){var o=this;return o.ctx&&o.ctx.listener?(n="number"!=typeof n?o._pos[1]:n,t="number"!=typeof t?o._pos[2]:t,"number"!=typeof e?o._pos:(o._pos=[e,n,t],void 0!==o.ctx.listener.positionX?(o.ctx.listener.positionX.setTargetAtTime(o._pos[0],Howler.ctx.currentTime,.1),o.ctx.listener.positionY.setTargetAtTime(o._pos[1],Howler.ctx.currentTime,.1),o.ctx.listener.positionZ.setTargetAtTime(o._pos[2],Howler.ctx.currentTime,.1)):o.ctx.listener.setPosition(o._pos[0],o._pos[1],o._pos[2]),o)):o},HowlerGlobal.prototype.orientation=function(e,n,t,o,r,i){var a=this;if(!a.ctx||!a.ctx.listener)return a;var c=a._orientation;return n="number"!=typeof n?c[1]:n,t="number"!=typeof t?c[2]:t,o="number"!=typeof o?c[3]:o,r="number"!=typeof r?c[4]:r,i="number"!=typeof i?c[5]:i,"number"!=typeof e?c:(a._orientation=[e,n,t,o,r,i],void 0!==a.ctx.listener.forwardX?(a.ctx.listener.forwardX.setTargetAtTime(e,Howler.ctx.currentTime,.1),a.ctx.listener.forwardY.setTargetAtTime(n,Howler.ctx.currentTime,.1),a.ctx.listener.forwardZ.setTargetAtTime(t,Howler.ctx.currentTime,.1),a.ctx.listener.upX.setTargetAtTime(o,Howler.ctx.currentTime,.1),a.ctx.listener.upY.setTargetAtTime(r,Howler.ctx.currentTime,.1),a.ctx.listener.upZ.setTargetAtTime(i,Howler.ctx.currentTime,.1)):a.ctx.listener.setOrientation(e,n,t,o,r,i),a)},Howl.prototype.init=(e=Howl.prototype.init,function(n){var t=this;return t._orientation=n.orientation||[1,0,0],t._stereo=n.stereo||null,t._pos=n.pos||null,t._pannerAttr={coneInnerAngle:void 0!==n.coneInnerAngle?n.coneInnerAngle:360,coneOuterAngle:void 0!==n.coneOuterAngle?n.coneOuterAngle:360,coneOuterGain:void 0!==n.coneOuterGain?n.coneOuterGain:0,distanceModel:void 0!==n.distanceModel?n.distanceModel:"inverse",maxDistance:void 0!==n.maxDistance?n.maxDistance:1e4,panningModel:void 0!==n.panningModel?n.panningModel:"HRTF",refDistance:void 0!==n.refDistance?n.refDistance:1,rolloffFactor:void 0!==n.rolloffFactor?n.rolloffFactor:1},t._onstereo=n.onstereo?[{fn:n.onstereo}]:[],t._onpos=n.onpos?[{fn:n.onpos}]:[],t._onorientation=n.onorientation?[{fn:n.onorientation}]:[],e.call(this,n)}),Howl.prototype.stereo=function(e,t){var o=this;if(!o._webAudio)return o;if("loaded"!==o._state)return o._queue.push({event:"stereo",action:function(){o.stereo(e,t)}}),o;var r=void 0===Howler.ctx.createStereoPanner?"spatial":"stereo";if(void 0===t){if("number"!=typeof e)return o._stereo;o._stereo=e,o._pos=[e,0,0]}for(var i=o._getSoundIds(t),a=0;a<i.length;a++){var c=o._soundById(i[a]);if(c){if("number"!=typeof e)return c._stereo;c._stereo=e,c._pos=[e,0,0],c._node&&(c._pannerAttr.panningModel="equalpower",c._panner&&c._panner.pan||n(c,r),"spatial"===r?void 0!==c._panner.positionX?(c._panner.positionX.setValueAtTime(e,Howler.ctx.currentTime),c._panner.positionY.setValueAtTime(0,Howler.ctx.currentTime),c._panner.positionZ.setValueAtTime(0,Howler.ctx.currentTime)):c._panner.setPosition(e,0,0):c._panner.pan.setValueAtTime(e,Howler.ctx.currentTime)),o._emit("stereo",c._id)}}return o},Howl.prototype.pos=function(e,t,o,r){var i=this;if(!i._webAudio)return i;if("loaded"!==i._state)return i._queue.push({event:"pos",action:function(){i.pos(e,t,o,r)}}),i;if(t="number"!=typeof t?0:t,o="number"!=typeof o?-.5:o,void 0===r){if("number"!=typeof e)return i._pos;i._pos=[e,t,o]}for(var a=i._getSoundIds(r),c=0;c<a.length;c++){var u=i._soundById(a[c]);if(u){if("number"!=typeof e)return u._pos;u._pos=[e,t,o],u._node&&(u._panner&&!u._panner.pan||n(u,"spatial"),void 0!==u._panner.positionX?(u._panner.positionX.setValueAtTime(e,Howler.ctx.currentTime),u._panner.positionY.setValueAtTime(t,Howler.ctx.currentTime),u._panner.positionZ.setValueAtTime(o,Howler.ctx.currentTime)):u._panner.setPosition(e,t,o)),i._emit("pos",u._id)}}return i},Howl.prototype.orientation=function(e,t,o,r){var i=this;if(!i._webAudio)return i;if("loaded"!==i._state)return i._queue.push({event:"orientation",action:function(){i.orientation(e,t,o,r)}}),i;if(t="number"!=typeof t?i._orientation[1]:t,o="number"!=typeof o?i._orientation[2]:o,void 0===r){if("number"!=typeof e)return i._orientation;i._orientation=[e,t,o]}for(var a=i._getSoundIds(r),c=0;c<a.length;c++){var u=i._soundById(a[c]);if(u){if("number"!=typeof e)return u._orientation;u._orientation=[e,t,o],u._node&&(u._panner||(u._pos||(u._pos=i._pos||[0,0,-.5]),n(u,"spatial")),void 0!==u._panner.orientationX?(u._panner.orientationX.setValueAtTime(e,Howler.ctx.currentTime),u._panner.orientationY.setValueAtTime(t,Howler.ctx.currentTime),u._panner.orientationZ.setValueAtTime(o,Howler.ctx.currentTime)):u._panner.setOrientation(e,t,o)),i._emit("orientation",u._id)}}return i},Howl.prototype.pannerAttr=function(){var e,t,o,r=this,i=arguments;if(!r._webAudio)return r;if(0===i.length)return r._pannerAttr;if(1===i.length){if("object"!=typeof i[0])return(o=r._soundById(parseInt(i[0],10)))?o._pannerAttr:r._pannerAttr;e=i[0],void 0===t&&(e.pannerAttr||(e.pannerAttr={coneInnerAngle:e.coneInnerAngle,coneOuterAngle:e.coneOuterAngle,coneOuterGain:e.coneOuterGain,distanceModel:e.distanceModel,maxDistance:e.maxDistance,refDistance:e.refDistance,rolloffFactor:e.rolloffFactor,panningModel:e.panningModel}),r._pannerAttr={coneInnerAngle:void 0!==e.pannerAttr.coneInnerAngle?e.pannerAttr.coneInnerAngle:r._coneInnerAngle,coneOuterAngle:void 0!==e.pannerAttr.coneOuterAngle?e.pannerAttr.coneOuterAngle:r._coneOuterAngle,coneOuterGain:void 0!==e.pannerAttr.coneOuterGain?e.pannerAttr.coneOuterGain:r._coneOuterGain,distanceModel:void 0!==e.pannerAttr.distanceModel?e.pannerAttr.distanceModel:r._distanceModel,maxDistance:void 0!==e.pannerAttr.maxDistance?e.pannerAttr.maxDistance:r._maxDistance,refDistance:void 0!==e.pannerAttr.refDistance?e.pannerAttr.refDistance:r._refDistance,rolloffFactor:void 0!==e.pannerAttr.rolloffFactor?e.pannerAttr.rolloffFactor:r._rolloffFactor,panningModel:void 0!==e.pannerAttr.panningModel?e.pannerAttr.panningModel:r._panningModel})}else 2===i.length&&(e=i[0],t=parseInt(i[1],10));for(var a=r._getSoundIds(t),c=0;c<a.length;c++)if(o=r._soundById(a[c])){var u=o._pannerAttr;u={coneInnerAngle:void 0!==e.coneInnerAngle?e.coneInnerAngle:u.coneInnerAngle,coneOuterAngle:void 0!==e.coneOuterAngle?e.coneOuterAngle:u.coneOuterAngle,coneOuterGain:void 0!==e.coneOuterGain?e.coneOuterGain:u.coneOuterGain,distanceModel:void 0!==e.distanceModel?e.distanceModel:u.distanceModel,maxDistance:void 0!==e.maxDistance?e.maxDistance:u.maxDistance,refDistance:void 0!==e.refDistance?e.refDistance:u.refDistance,rolloffFactor:void 0!==e.rolloffFactor?e.rolloffFactor:u.rolloffFactor,panningModel:void 0!==e.panningModel?e.panningModel:u.panningModel};var s=o._panner;s||(o._pos||(o._pos=r._pos||[0,0,-.5]),n(o,"spatial"),s=o._panner),s.coneInnerAngle=u.coneInnerAngle,s.coneOuterAngle=u.coneOuterAngle,s.coneOuterGain=u.coneOuterGain,s.distanceModel=u.distanceModel,s.maxDistance=u.maxDistance,s.refDistance=u.refDistance,s.rolloffFactor=u.rolloffFactor,s.panningModel=u.panningModel}return r},Sound.prototype.init=function(e){return function(){var n=this,t=n._parent;n._orientation=t._orientation,n._stereo=t._stereo,n._pos=t._pos,n._pannerAttr=t._pannerAttr,e.call(this),n._stereo?t.stereo(n._stereo):n._pos&&t.pos(n._pos[0],n._pos[1],n._pos[2],n._id)}}(Sound.prototype.init),Sound.prototype.reset=function(e){return function(){var n=this,t=n._parent;return n._orientation=t._orientation,n._stereo=t._stereo,n._pos=t._pos,n._pannerAttr=t._pannerAttr,n._stereo?t.stereo(n._stereo):n._pos?t.pos(n._pos[0],n._pos[1],n._pos[2],n._id):n._panner&&(n._panner.disconnect(0),n._panner=void 0,t._refreshBuffer(n)),e.call(this)}}(Sound.prototype.reset);var n=function(e,n){"spatial"===(n=n||"spatial")?(e._panner=Howler.ctx.createPanner(),e._panner.coneInnerAngle=e._pannerAttr.coneInnerAngle,e._panner.coneOuterAngle=e._pannerAttr.coneOuterAngle,e._panner.coneOuterGain=e._pannerAttr.coneOuterGain,e._panner.distanceModel=e._pannerAttr.distanceModel,e._panner.maxDistance=e._pannerAttr.maxDistance,e._panner.refDistance=e._pannerAttr.refDistance,e._panner.rolloffFactor=e._pannerAttr.rolloffFactor,e._panner.panningModel=e._pannerAttr.panningModel,void 0!==e._panner.positionX?(e._panner.positionX.setValueAtTime(e._pos[0],Howler.ctx.currentTime),e._panner.positionY.setValueAtTime(e._pos[1],Howler.ctx.currentTime),e._panner.positionZ.setValueAtTime(e._pos[2],Howler.ctx.currentTime)):e._panner.setPosition(e._pos[0],e._pos[1],e._pos[2]),void 0!==e._panner.orientationX?(e._panner.orientationX.setValueAtTime(e._orientation[0],Howler.ctx.currentTime),e._panner.orientationY.setValueAtTime(e._orientation[1],Howler.ctx.currentTime),e._panner.orientationZ.setValueAtTime(e._orientation[2],Howler.ctx.currentTime)):e._panner.setOrientation(e._orientation[0],e._orientation[1],e._orientation[2])):(e._panner=Howler.ctx.createStereoPanner(),e._panner.pan.setValueAtTime(e._stereo,Howler.ctx.currentTime)),e._panner.connect(e._node),e._paused||e._parent.pause(e._id,!0).play(e._id,!0)}}()}));function ie(e,n,t){Q(K).invokeCallbackHandler(e,n,t)}function ae(e,n,t){var o,r=null===(o=Hn.currPage)||void 0===o?void 0:o.children;if(Array.isArray(r)&&r.length>0){var i=r[0];i&&i.isWebView&&i.postMessageToWebView({callbackId:e,type:"webInvokeCallbackHandler",params:n})}}var ce={},ue={};function se(e,n){var t=ce[e],o=ue[e];return null!=t?""!=n.src&&o!=n.src?(t.unload(),delete ce[e],delete ue[e],se(e,n)):t:(ue[e]=n.src,ce[e]=function(e,n){var t=new re.Howl({autoplay:e.autoplay,loop:e.loop,src:e.src,rate:e.playbackRate,onend:function(){Y(fe,{innerAudioContextId:n,method:de.onEnded,data:{}})},onplay:function(){Y(fe,{innerAudioContextId:n,method:de.onPlay,data:{buffered:0,currentTime:0,duration:0}})},onpause:function(e){Y(fe,{innerAudioContextId:e,method:de.onPause,data:{}})},onstop:function(){Y(fe,{innerAudioContextId:n,method:de.onStop,data:{}})},onseek:function(){Y(fe,{innerAudioContextId:n,method:de.onSeeked,data:{}})},onplayerror:function(e,n){Y(fe,{innerAudioContextId:e,method:de.onError,data:{errMsg:"播放失败 :"+n,errCode:-1}})},onloaderror:function(e,n){Y(fe,{innerAudioContextId:e,method:de.onError,data:{errMsg:"播放失败 :"+n,errCode:10002}})},onrate:function(e){console.log("audio进度改变")},onload:function(){Y(fe,{innerAudioContextId:n,method:de.onCanplay,data:{}})}});return t}(n,e))}function le(e,n,t){var o=ce[n];if(null==o){var r=e+":fail 无法找到innerAudioContextId:"+n+"对应的audio实例";throw ie(t,{errMsg:r}),new Error(r)}return o}re.Howler.autoSuspend=!1;var de={onCanplay:"onCanplay",onEnded:"onEnded",onError:"onError",onPause:"onPause",onPlay:"onPlay",onSeeked:"onSeeked",onSeeking:"onSeeking",onStop:"onStop",onTimeUpdate:"onTimeUpdate",onWaiting:"onWaiting"},fe="onInnerAudio";var pe={innerAudio:function(e,n){var t,o=e.method,r=e.data,i=e.innerAudioContextId;switch(o){case"create":break;case"play":(t=se(i,r)).loop(r.loop),t.volume(r.volume),r.isPlayMethod&&t.play();break;case"stop":le(o,i,n).stop();break;case"seek":(t=le(o,i,n)).seek(r.position);break;case"pause":le(o,i,n).pause();break;case"destroy":le(o,i,n).unload();break;default:throw new Error("无法处理音频method:"+o)}return{errMsg:"innerAudio:ok"}}};function ve(e){return/^http(s?)\:\/\//.test(e)}function he(e,n,t){var o=new XMLHttpRequest,r=!0;if(null!=n.sync&&(r=!n.sync),null!=n.responseType&&(o.responseType=n.responseType),o.open("GET",e,r),null!=n.header)for(var i in n.header)o.setRequestHeader(i,n.header[i]);o.onload=function(e){t(null,o.response,{e:e,xhr:o})},o.onerror=function(e){t(new Error("request settings failed!"),null,{e:e,xhr:o})},o.send(null)}var ge={readFileSync:function(e){var n,t=e.filePath;if(t.startsWith(N))return{data:null,errMsg:"readFileSync:fail not support local file."};t=ve(t=(n=t).endsWith(".wasm")?n+".txt":n)?t:P+t;var o=null,r=null;return he(t,{sync:!0},(function(e,n){o=n,r=e})),null!=o?{data:o,errMsg:"readFileSync:ok"}:null!=r?{data:null,errMsg:"readFileSync:fail "+r.message}:{data:null,errMsg:"readFileSync:fail"}},readFile:function(e,n){var t=e.filePath,o="base64"===e.encoding,r=ve(t)?t:P+t;t.startsWith(N)?ie(n,{errMsg:"readFile:fail not support local file: "+t}):he(r,{responseType:o?"arraybuffer":""},(function(e,t){ie(n,null==e?{data:o?h(t):t,errMsg:"readFile:ok"}:{errMsg:"readFile:fail "+e.message})}))},access:function(){return{errMsg:"access:ok"}},rename:function(){return{errMsg:"rename:ok"}},mkdirSync:function(){return{errMsg:"mkdirSync:ok"}},writeFile:function(){return{errMsg:"writeFile:ok"}},writeFileSync:function(e){return e.filePath,e.data,{errMsg:"writeFileSync:ok"}},unlink:function(e,n){return e.filePath,{errMsg:"unlink:ok"}},downloadFile:function(e,n){var t=e.url,o=e.timeout,r=void 0===o?6e3:o;e.taskId,e.header,e.filePath,g(r,function(e){var n=e.url,t=e.callbackId;return e.filePath,e.header,s(this,void 0,void 0,(function(){return l(this,(function(e){return Y(H,{cookies:[],progress:100,totalBytesExpectedToWrite:100,totalBytesWritten:100}),Y(D,{cookies:[],header:{}}),ie(t,{filePath:n,tempFilePath:n,profile:[],statusCode:200,errMsg:"downloadFile:ok"}),[2]}))}))}({url:t,callbackId:n}),(function(e){ie(n,{errMsg:"downloadFile:fail timeout in "+e+"ms."})}))},copyFile:function(e,n){return e.srcPath,e.destPath,ie(n,{errMsg:"copyFile:ok fake subpport."},"copyFile")}};function me(e){return te().invokeHandler({callbackId:e.callbackId||-1,apiName:e.apiName,params:e.params,from:"service"})}var we,ye,be,_e=G||A()?ge:(we=ge,ye={readFileSync:{onMobile:Ae},readFile:{onMobile:Ae},access:{onMobile:Ae},rename:{onCallBefore:function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var t=e.shift();return t&&t.fatNewPath&&(t.newPath=t.fatNewPath,delete t.fatNewPath),t&&e.unshift(t),e}},downloadFile:{onCallBefore:function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var t=e[0];if(null!=t){var o=t.header;if(o&&o.Referer)throw new Error("header不能设置Referer字段");t.source="miniGame"}return e}}},be=ye||{},Object.keys(we).reduce((function(e,n){var t=we[n];return e[n]=function(){for(var e,o,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var a=p(),c=be[n],u={callNativeApi:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return me({apiName:n,params:e[0],callbackId:e[1]})},callPatchApi:function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return t.apply(void 0,e)}};try{return c&&"function"==typeof c.onCallBefore&&(r=(e=c.onCallBefore).call.apply(e,d([u],r))),a?c&&"function"==typeof c.onMobile?(o=c.onMobile).call.apply(o,d([u],r)):u.callNativeApi.apply(u,r):u.callPatchApi.apply(u,r)}catch(e){return{errMsg:n+":fail error occured in polyfill api, "+e.message}}},e}),{}));function Ae(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var t=e[0],o=t.filePath||t.path,r=this;return o.startsWith(W)?r.callNativeApi.apply(r,e):r.callPatchApi.apply(r,e)}var xe=new(function(){function e(){this.reportedEventType=new Set(["ErrorType"])}return Object.defineProperty(e.prototype,"sentry",{get:function(){return window.Sentry},enumerable:!1,configurable:!0}),e.prototype.captureException=function(e,n){var t=this.sentry;if(null!=t){var o=n.event_desc;delete n.event_desc,t.captureException(function(e,n){var t=new Error,o=e.charAt(0).toUpperCase()+e.slice(1),r=function(e){try{return JSON.parse(e)}catch(n){return e}}(n);"string"==typeof r?(t.stack=r,t.message=r):(t.message=o+": "+r.msg,t.stack=r.stack);return t}(e,o))}else console.log("Sentry is not ready yet.")},e.prototype.captureLoadGameEntryError=function(e){xe.captureException("LoadGameEntryError",{event_desc:"load game entry bundle fail: \n"+e.message+"\n"+e.stack})},e}()),ke=null;function Se(){if(null==ke)throw new Error("WxConfig is not ready.");return ke}function Ie(e){var n=Se(),t=n.windows.pages;return null!=t&&t[e]?Object.assign({},n.window,t[e]):null}var Ce=new i;function Te(){Ce.on("NavigatorBarTools:onMore",(function(){Cn.showToast({title:"暂未实现该功能"})})),Ce.on("NavigatorBarTools:onClose",(function(){var e=te();null!=e&&e.invokeHandler({callbackId:-1,apiName:"exitMiniProgram",params:{},from:"service"})})),Ce.on("NavigatorBar:onBack",(function(){We.navigateBack({delta:1}),console.log("onBack")})),Ce.on("TabBar:change",(function(e){var n,t,o;Y("onTabItemTap",{index:e.index,pagePath:e.item.pagePath,text:e.item.text}),We.switchTab({url:e.item.pagePath},-1),n=e.item.pagePath,t={},null!=(o=Ie(n))&&(t.windowConfig=o),Ce.emit("tabItemChanged",t)})),Ce.on("invokeCallbackHandler",(function(e){ie(e.callbackId,e.data)})),Ce.on("dispatchServiceEvent",(function(e){Y(e.event,e.payload)}))}function Me(e){void 0!==window.__initWebFrame&&window.__initWebFrame(e,Ce)}var Pe={getGlobalVariables:function(e){return"_launchOption"===e.variable?{_launchOption:R}:null},onWindowResize:function(){},offWindowResize:function(){},reportApmMonitor:function(e){var n=e.eventName,t=e.payload,o=e.eventType;e.timestamp,xe.reportedEventType.has(o)?xe.captureException(n,t):"LogReport"===o&&t.event},addPerformance:function(e){},initReady:function(){},updateAppData:function(){},injectHtmlCallback:function(e,n,t){"service"===t&&Z().events.emit(V.onInjectHTMLCallback)},pageScrollTo:function(e,n){var t=e.scrollTop;e.duration;var o=Hn.currPage.getWindow();return null==o||o.scrollTo({top:t,behavior:"smooth"}),{errMsg:"pageScrollTo:ok"}},getMenuButtonBoundingClientRect:function(e,n){Ce.emit("getMenuButtonBoundingClientRect",e,n)},getAccountInfoSync:function(){var e,n,t,o,r,i,a,c,s,l,d=window.__extInfo;return{data:{miniProgram:u(u(u({},d),{appId:null==d?void 0:d.extUuid,envVersion:null==d?void 0:d.envVersion,version:"",forceUsePatchApi:G}),(e=d.extType||"",n=!1,t=!1,o=!1,r=!1,i=!1,a=!1,c=!1,s=!1,l=!1,e.includes("popup")?o=!0:e.includes("inner")?n=!0:(e.includes("penel")||"web_video_com"===e)&&(t=!0),e.startsWith("web")?r=!0:e.startsWith("pc")?c=!0:e.startsWith("zs")?i=!0:e.startsWith("app")&&(a=!0),i||c&&e.includes("anchor")?l=!0:s=!0,{inner:n,panel:t,popup:o,streamer:l,viewer:s,app:a,zs:i,pc:c,web:r})),plugin:{appId:"",version:""}}}},jssdkConfig:function(e,n){var t=e.jsApiList,o=[];if((void 0===t?[]:t).forEach((function(e){null==Cn[e]&&o.push(e)})),!(o.length>0))return ae(n,{errMsg:"jssdkConfig:ok"});ae(n,{errMsg:"jssdkConfig:fail "+o.join(",")+" 未实现."})}},Ee={hideToast:function(e){return Ce.emit("hideToast",e),{errMsg:"hideToast:ok"}},showToast:function(e){return Ce.emit("showToast",e),{errMsg:"showToast:ok"}},showLoading:function(e){return Ce.emit("showLoading",e),{errMsg:"showLoading:ok"}},hideLoading:function(e){return Ce.emit("hideLoading",e),{errMsg:"hideLoading:ok"}},showModal:function(e,n){Ce.emit("showModal",e,n)},showActionSheet:function(e,n){Ce.emit("showActionSheet",e,n)}};function Be(){return p()&&!A()}var Oe={showGameKeyboard:function(e){return Be()?me({apiName:"showGameKeyboard",params:e}):Ce.emit("showKeyboard",e),{}},hideGameKeyboard:function(e){return Be()||Ce.emit("hideKeyboard",e),{}},updateGameKeyboard:function(e){return Be()||Ce.emit("updateKeyboard",e),{}},showKeyboard:function(e){return Be()?me({apiName:"showGameKeyboard",params:e}):Ce.emit("showKeyboard",e),{}},hideKeyboard:function(e){return Ce.emit("hideKeyboard",e),{}},updateKeyboard:function(e){return Ce.emit("updateKeyboard",e),{}}};function Le(e,n){if(e===j)return'<script charset="utf-8" src="'+n.moduleName+'game.js"><\/script>';if("miniProgram"===e)return n.content;throw Error("unsupported projectType: "+e)}var Fe=function(e){function n(n){return e.call(this,u(u({},n),{projectType:j}))||this}return c(n,e),n.prototype.injectScript=function(){var e=Q(K).getWindow();e.injectHtml(e.document.body,{content:Le(this.projectType,{moduleName:this.moduleName})})},n.prototype.getEntry=function(){return e=this.projectType,n={moduleName:this.moduleName},e===j?n.moduleName+"game.js":"";var e,n},n}(function(){function e(e){this.taskId=e.taskId,this.moduleName=e.moduleName,this.projectType=e.projectType,this.status="none"}return e.prototype.notifyProgressUpdate=function(e,n){Y("onLoadSubPackageTaskStateChange",u({moduleName:this.moduleName,state:e,taskId:this.taskId},n))},e.prototype.injectScript=function(){},e.prototype.getEntry=function(){},e.prototype.load=function(e,n){return s(this,void 0,void 0,(function(){return l(this,(function(e){return this.notifyProgressUpdate("progressUpdate",{progress:0}),this.notifyProgressUpdate("progressUpdate",{progress:50}),this.injectScript(),this.notifyProgressUpdate("progressUpdate",{progress:100}),[2]}))}))},e}()),Re=0,He={},De={createLoadSubPackageTask:function(e,n){var t=e.moduleName,o=He[t];if(o&&"success"===o.status)return{errMsg:"createLoadSubPackageTask:fail sub package already loaded."};++Re;var r=String(Re);return o=new Fe({taskId:r,moduleName:t}),Z().events.once(V.onInjectHTMLCallback,(function(){o.status="success",o.notifyProgressUpdate("success",{entryPath:o.getEntry()})})),He[t]=o,o.load(r,n),{errMsg:"createLoadSubPackageTask:ok",loadTaskId:Re}}},je={showNavigationBarLoading:function(){return Ce.emit("showNavigationBarLoading"),{errMsg:"showNavigationBarLoading:ok"}},setNavigationBarTitle:function(e){return Ce.emit("setNavigationBarTitle",e),{errMsg:"setNavigationBarTitle:ok"}},setNavigationBarColor:function(e){return Ce.emit("setNavigationBarColor",e),{errMsg:"setNavigationBarColor:ok"}},hideNavigationBarLoading:function(){return Ce.emit("hideNavigationBarLoading"),{errMsg:"hideNavigationBarLoading:ok"}},hideHomeButton:function(){}};function Ne(e,n){var t,o=function(e){e=e.replace(/\.html$/,"");var n=Se(),t=n.subpackages;if(Array.isArray(t)&&t.length>0)return t.find((function(n){return n.pageFullPath.includes(e)}));return null}(e);null==o||(t=o.root,q[t])?n():function(e,n){var t=Q(K);t.events.once(V.onInjectHTMLCallback,n),t.loadSubBundle(e.root,e.packageName+".js")}(o,n)}var We={navigateTo:function(e,n){var t=e.url;if(Hn.stack.length>10)return{errMsg:"navigateTo:fail 已到达页面栈上限:10。"};var o=v(t),r=o.path,i=o.query;return Ne(r,(function(){var e=Hn.go(r);Z().events.once(V.onViewDOMContentLoaded,(function(){Y("onAppRoute",{path:r,openType:"navigateTo",options:void 0,pipMode:"",query:i,webviewId:e.webviewId},e.webviewId)}))})),{errMsg:"navigateTo:ok"}},navigateBack:function(e){var n=e.delta;try{Hn.back(n)}catch(e){return{errMsg:"navigateBack:fail "+e.message}}var t=Hn.currPage;return Y("onAppRoute",{path:t.pagePath,openType:"navigateBack",options:{delta:n},pipMode:"",query:void 0,webviewId:t.webviewId},t.webviewId),{errMsg:"navigateBack:ok"}},reLaunch:function(e,n){var t=e.url,o=v(t),r=o.path,i=o.query;Ne(r,(function(){Hn.reLaunch(t);var e=Hn.currPage;Z().events.once(V.onViewDOMContentLoaded,(function(){Y("onAppRoute",{path:r,openType:"reLaunch",options:void 0,pipMode:"",query:i,webviewId:e.webviewId},e.webviewId),ie(n,{errMsg:"reLaunch:ok"})}))}))},redirectTo:function(e,n){var t=v(e.url),o=t.path,r=t.query;Ne(o,(function(){try{Hn.redirectTo(o)}catch(e){return void ie(n,{errMsg:"redirectTo:fail "+e.message})}var e=Hn.currPage;Z().events.once(V.onViewDOMContentLoaded,(function(){Y("onAppRoute",{path:o,openType:"redirectTo",options:void 0,pipMode:"",query:r,webviewId:e.webviewId},e.webviewId),ie(n,{errMsg:"redirectTo:ok"})}))}))},switchTab:function(e,n){var t=v(e.url),o=t.path,r=t.query;Ne(o,(function(){try{Hn.switch(o)}catch(e){return void ie(n,{errMsg:"switchTab:fail "+e.message})}var e=Hn.currPage;e.isReady?(Y("onAppRoute",{path:o,openType:"switchTab",options:void 0,pipMode:"",query:r,webviewId:e.webviewId},e.webviewId),ie(n,{errMsg:"switchTab:ok"})):Z().events.once(V.onViewDOMContentLoaded,(function(){Y("onAppRoute",{path:o,openType:"switchTab",options:void 0,pipMode:"",query:r,webviewId:e.webviewId},e.webviewId),ie(n,{errMsg:"switchTab:ok"})}))}))}};function Ge(e){setTimeout(e,16)}function $e(e){var n=b();if(null==n)throw new Error("获取 extUuid 失败 by storage api");return n+"-"+e}function Ve(e){var n=b();if(null==n)throw new Error("获取 extUuid 失败 by storage api");return e.replace(new RegExp("^"+n+"-"),"")}function qe(e){return Number((e/1024).toFixed(2))}var ze={getStorageSync:function(e){return{data:localStorage.getItem($e(e.key))||null}},getStorage:function(e,n){Ge((function(){ie(n,{data:ze.getStorageSync(e)})}))},setStorageSync:function(e){return localStorage.setItem($e(e.key),e.data),{errMsg:"setStorageSync:ok"}},setStorage:function(e,n){Ge((function(){localStorage.setItem(e.key,e.data),ie(n,{errMsg:"setStorage:ok"})}))},removeStorageSync:function(e){return localStorage.removeItem($e(e.key)),{errMsg:"removeStorageSync:ok"}},removeStorage:function(e,n){Ge((function(){localStorage.removeItem($e(e.key)),ie(n,{errMsg:"removeStorage:ok"})}))},clearStorageSync:function(){return localStorage.clear(),{errMsg:"clearStorageSync:ok"}},clearStorage:function(e,n){Ge((function(){localStorage.clear(),ie(n,{errMsg:"clearStorage:ok"})}))},getStorageInfoSync:function(){var e=function(){var e=0,n=[];for(var t in localStorage)Object.prototype.hasOwnProperty.call(localStorage,t)&&(e+=localStorage[t].length,n.push(Ve(t)));return{size:e,keys:n}}(),n=e.size;return{keys:e.keys,currentSize:qe(n),limitSize:qe(10485760)}},getStorageInfo:function(e,n){Ge((function(){ie(n,u(u({},ze.getStorageInfoSync()),{errMsg:"getStorageInfo:ok"}))}))}};function Ke(){var e=f();return("Android"===e||"IOS"===e)&&window.matchMedia("(orientation: portrait)").matches?"portrait":"landscape"}function Ue(){var e,n,t,o=null===(e=Hn.currPage)||void 0===e?void 0:e.getWindow();if(null!=o){var r=o.document;return(null===(n=r.documentElement)||void 0===n?void 0:n.scrollTop)||(null===(t=r.body)||void 0===t?void 0:t.scrollTop)||0}return 0}function Qe(){return u(u({patch:!0},(e=window.innerWidth||375,n=window.innerHeight||375,t=f().toLocaleLowerCase().includes("window")?0:50,o=window.devicePixelRatio||2,{screenWidth:e,screenHeight:n,statusBarHeight:t,devicePixelRatio:o,pixelRatio:o,windowHeight:n,windowWidth:e,safeArea:{height:n-t,widows:e,top:t,left:0,right:0}})),{scrollY:Ue()});var e,n,t,o}var Je={onMemoryWarning:function(){console.warn("The onMemoryWarning api is not implement.")},showShareMenu:function(){console.warn("The showShareMenu api is not implement.")},getSystemInfoSync:function(){var e,n=Ze(),t=Ke(),o=f(),r=(e=y().extType||"").startsWith("app_")?f().toLowerCase():e.startsWith("pc_")?"pc":"web";return S.info("getSystemInfoSync",{windowInfo:n,deviceOrientation:t,system:o,platform:r}),u({deviceOrientation:t,SDKVersion:"1.0.0",appVersion:"12.1.0",batteryLevel:98,benchmarkLevel:1,bluetoothEnabled:!1,brand:"huya",cameraAuthorized:!1,deviceId:"none",enableDebug:!1,fontSizeSetting:15,frameworkVersion:"1.0.0",inHUYA:!0,language:"zh_CN",locationAuthorized:!1,locationEnabled:!1,microphoneAuthorized:!0,mode:"default",model:"none",notificationAuthorized:!0,platform:r,system:o,theme:void 0,version:"8.0.28 "},n)},getWindowInfo:function(){return Ze()},getSetting:function(){return{authSetting:{"scope.userInfo":!0},subscriptionsSetting:{},miniprogramAuthSetting:{"scope.userInfo":!0}}},getNetworkType:function(){return{networkType:"wifi",signalStrength:100,hasSystemProxy:!1}}};function Ze(){return p()&&!A()?function(e){_()?(e.screenWidth=e.windowWidth||window.innerWidth||e.screenWidth,e.screenHeight=e.windowHeight||window.innerHeight||e.screenHeight):(e.screenWidth=e.windowWidth||window.innerWidth,e.screenHeight=e.windowHeight||window.innerHeight);return e}(me({apiName:"getWindowInfo",params:{}})):Qe()}var Xe={showTabBar:function(e){return Ce.emit("showTabBar",e),{errMsg:"showTabBar:ok"}},hideTabBar:function(e){return Ce.emit("hideTabBar",e),{errMsg:"hideTabBar:ok"}},setTabBarStyle:function(e){return Ce.emit("setTabBarStyle",e),{errMsg:"setTabBarStyle:ok"}},setTabBarItem:function(e){return Ce.emit("setTabBarItem",e),{errMsg:"setTabBarItem:ok"}},setTabBarBadge:function(e){return Ce.emit("setTabBarBadge",e),{errMsg:"setTabBarBadge:ok"}},removeTabBarBadge:function(e){return Ce.emit("removeTabBarBadge",e),{errMsg:"removeTabBarBadge:ok"}},hideTabBarRedDot:function(e){return Ce.emit("hideTabBarRedDot",e),{errMsg:"hideTabBarRedDot:ok"}},showTabBarRedDot:function(e){return Ce.emit("showTabBarRedDot",e),{errMsg:"showTabBarRedDot:ok"}}},Ye="insertHTMLWebView",en="onWebviewLoad",nn={insertHTMLWebView:function(e,n,t,o){Hn.initNextWebView(Hn.currPage,e.src,e.src).el.addEventListener("load",(function(){Y(en,{webviewId:o},o),ee(oe+"pageonshow",{})})),Y(Ye,e,o)},invokeMiniProgramAPI:function(e,n){console.log(e,n);var t=e.name,o=e.arg,r=Cn[t];null!=r&&r(o,n)},postMessage:function(e,n){Y("onBindMessage",e,Hn.currPage.webviewId),ae(n,{errMsg:"postMessage:ok"})},canGoBack:function(e,n){ae(n,{errMsg:"canGoBack:fail default to fail"})},canNavigateBack:function(e,n){var t=!1;Hn.allPages.length>1&&(t=!0),ae(n,{errMsg:"canNavigateBack:"+(t?"ok":"fail")})}},tn={},on="onAd";function rn(e){var n=e.type,t=e.adUnitId,o=tn[t];if(null!=o)return o;if("rewardedVideo"===n)o=function(e){var n=e.adUnitId,t=me({apiName:"createRewardedVideoAd",params:{adUnitId:n}});return t.onLoad((function(e){Y(on,{method:"onLoad",adUnitId:n,data:e})})),t.onClose((function(e){Y(on,{method:"onClose",adUnitId:n,data:e})})),t.onError((function(e){Y(on,{method:"onError",adUnitId:n,data:e})})),t}(e);return null!=o&&(tn[t]=o),o}var an={ad:function(e,n){return s(void 0,void 0,void 0,(function(){var t,o,r,i;return l(this,(function(a){switch(a.label){case 0:if(t=e.method,e.adUnitId,o=e.type,null==(r=rn(e)))return ie(n,{errMsg:"ad:fail 获取"+o+"广告实例失败"}),[2];a.label=1;case 1:switch(a.trys.push([1,12,,13]),t){case"load":return[3,2];case"destroy":return[3,4];case"show":return[3,6];case"hide":return[3,8]}return[3,10];case 2:return[4,r.load()];case 3:return a.sent(),[3,11];case 4:return[4,r.destroy()];case 5:return a.sent(),[3,11];case 6:return[4,r.show()];case 7:return a.sent(),[3,11];case 8:return[4,r.hide()];case 9:return a.sent(),[3,11];case 10:throw new Error("unsupported method: "+t);case 11:return ie(n,{errMsg:"ad:ok"}),[3,13];case 12:return i=a.sent(),ie(n,{errMsg:"ad:fail adInstance."+t+" call fail, "+(i.mssage||"unknown")}),[3,13];case 13:return[2]}}))}))}},cn="revue_clipboard",un="";function sn(e,n){return s(this,void 0,void 0,(function(){return l(this,(function(t){try{!function(e){if(!document.hasFocus())throw new Error("Failed to execute 'writeText' on 'Clipboard': Document is not focused.");var n=document.getElementById(cn);if(null==n&&((n=document.createElement("textarea")).style.opacity="0",n.id=cn,document.body.appendChild(n)),n)try{var t=n;un=t.textContent=e,t.select(),document.execCommand("copy"),document.body.removeChild(n)}catch(e){throw document.body.removeChild(n),e}}(e.data),ie(n,{errMsg:"setClipboardData:ok"})}catch(e){ie(n,{errMsg:"setClipboardData:fail "+e.message})}return[2]}))}))}var ln={setClipboardData:function(e,n){sn(e,n)},getClipboardData:function(e,n){!function(e){s(this,void 0,void 0,(function(){return l(this,(function(n){try{ie(e,{errMsg:"getClipboardData:ok",data:un})}catch(n){ie(e,{errMsg:"getClipboardData:fail "+n.message})}return[2]}))}))}(n)}},dn={appDataChange:function(e){var n=e.params,t=e.from,o=e.webviewIds,r=e.event;e.webviewId,t===L?console.error("not implement for "+t):(!function(e){var n=u({},e.data),t=Ie(n.options.path);t&&(n.windowConfig=t),n.pages=Hn.allPages,Ce.emit("appDataChange",n)}(n),X(r,n,o))},__updateAppData:function(e){var n,t,o;n={},t=Hn.currPage.pagePath.replace(/\.html$/,""),null!=(o=Ie(t))&&(n.windowConfig=o),n.pages=Hn.allPages,n.currPage=t,Ce.emit("updateAppData",n)}};var fn={canvasInsert:function(e){var n=e.params,t=e.from;e.webviewIds;var o=e.event,r=e.webviewId;t===L?Y(o,n,r):console.error("not implement for "+t)},canvasRemove:function(e){var n=e.params,t=e.from;e.webviewIds;var o=e.event,r=e.webviewId;t===L?Y(o,n,r):console.error("not implement for "+t)},CANVAS_EVENT_V2:function(e){var n=e.params,t=e.from;e.webviewIds;var o=e.event,r=e.webviewId;t===L?Y(o,n,r):console.error("not implement for "+t)},onCanvasPreloadImage:function(e){var n=e.params,t=e.from;e.webviewIds;var o=e.event,r=e.webviewId;t===L?Y(o,n,r):console.error("not implement for "+t)},onCanvasGetImageData:function(e){var n=e.params,t=e.from;e.webviewIds;var o=e.event,r=e.webviewId;t===L?Y(o,n,r):console.error("not implement for "+t)},onCanvasPutImageData:function(e){var n=e.params,t=e.from;e.webviewIds;var o=e.event,r=e.webviewId;t===L?Y(o,n,r):console.error("not implement for "+t)},canvasActionsChanged:function(e){var n=e.params,t=e.from,o=e.webviewIds,r=e.event;e.webviewId,t===L?console.error("not implement for "+t):X(r,n,o)},invokeCanvasToDataUrl:function(e){var n=e.params,t=e.from,o=e.webviewIds,r=e.event;e.webviewId,t===L?console.error("not implement for "+t):X(r,n,o)},invokeCanvasPutImageData:function(e){var n=e.params,t=e.from,o=e.webviewIds,r=e.event;e.webviewId,t===L?console.error("not implement for "+t):X(r,n,o)},invokeCanvasGetImageData:function(e){var n=e.params,t=e.from,o=e.webviewIds,r=e.event;e.webviewId,t===L?console.error("not implement for "+t):X(r,n,o)},getImageBase64:function(e){var n=e.params;e.from,e.webviewIds;var t,o=e.event,r=e.webviewId,i=n.src;he(/^https?:\/\//.test(t=i)||/^hyfile:\/\//.test(t)?t:P+t,{responseType:"arraybuffer"},(function(e,n){if(null!=e)return"";var t=h(n),a=function(e){var n,t=e.split("/"),o=null===(n=t[t.length-1])||void 0===n?void 0:n.split("."),r=o[0],i=o[1];if(null==i||""==i)throw new Error("url:"+e+"格式错误,无法获取文件信息");return{filename:r,ext:i}}(i);X(o,{src:i,data:"data:image/"+a.ext+";base64,"+t},[r])}))}};function pn(){window.__autoRemoveFirstScreen&&window.__removeFirstScreen&&window.__removeFirstScreen()}function vn(e,n){e.message=n+" stack: "+(null==e?void 0:e.message),pn(),Cn.showToast({title:"加载游戏脚本超时"}),S.error("load game.js error",e.message),xe.captureLoadGameEntryError(e)}var hn={gameServiceReady:function(){!function(e){s(this,void 0,void 0,(function(){var n,t,o,r;return l(this,(function(i){switch(i.label){case 0:if(n=window.__deviceOrientation,t=Ke(),o="string"==typeof n&&n.includes("landscape"),!("landscape"!==t&&o&&p()&&_()))return[3,5];i.label=1;case 1:return i.trys.push([1,3,,4]),[4,g(5e3,new Promise((function(e){var n=te();me({apiName:"setDeviceOrientation",params:{value:"landscape"}}),n.$events.once("onDeviceOrientationChange",(function(n){"landscape"===n.value&&e(!0)}))})))];case 2:return i.sent(),e(),[3,4];case 3:return r=i.sent(),e(r),[3,4];case 4:return[3,6];case 5:e(),i.label=6;case 6:return[2]}}))}))}((function(e){null==e?Ge((function(){S.log("load game.js"),function(){s(this,void 0,void 0,(function(){function e(){return s(this,void 0,void 0,(function(){return l(this,(function(e){switch(e.label){case 0:return[4,Z().loadSubBundle("","game.js")];case 1:return e.sent(),pn(),[2]}}))}))}return l(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,g(18e3,e())];case 1:return n.sent(),[3,3];case 2:return vn(n.sent(),"entry"),[3,3];case 3:return[2]}}))}))}()})):vn(e,"deviceOrientation")}))},gameConfigUpdate:function(e){var n=e.params;Me({windowInfo:Cn.getWindowInfo(),wxConfig:n})}},gn=new(function(){function e(){this.reportedFirstScreenTime=!1}return e.prototype.reportFirstScreenTime=function(e){if(!this.reportedFirstScreenTime){var n=window.performanceInfo;null!=n&&(n.firstScreenTime=e),this.reportedFirstScreenTime=!0}},e}()),mn=new(function(){function e(){var e;this.inited=!1,this.__startTime=(null===(e=null===performance||void 0===performance?void 0:performance.timing)||void 0===e?void 0:e.fetchStart)||Date.now(),this.isServiceReady=!1,this.isViewReady=!1,this.showedFirstPage=!1}return Object.defineProperty(e.prototype,"allReady",{get:function(){return this.isViewReady&&this.isServiceReady},enumerable:!1,configurable:!0}),e.prototype.init=function(e){var n=!1;if(!this.inited){this.inited=!0;try{this.initIframes()}catch(e){this.inited=!1,n=!0,S.info("initLauncher init error",e)}!n&&S.info("initLauncher "+e+" consume: "+(Date.now()-this.__startTime)+"ms")}},e.prototype.initIframes=function(){var e=Z(),n=J();e.updateSrc("./service.html"),n.updateSrc("first")},e.prototype.handleServiceStart=function(e){var n=e.params;ke=n,Me({wxConfig:n,windowInfo:Cn.getWindowInfo()}),Ce.emit("serviceStart",n)},e.prototype.handleServiceReady=function(e){var n=this,t=Z();if(!t.isReady){this.root=e.params.root,this.firstWebviewId=e.webviewIds[0],this.isServiceReady=!0;var o=this.firstWebviewId;t.events.once(V.onViewDOMContentLoaded,(function(){Y("onAppRoute",{path:n.root,openType:"appLaunch",options:void 0,pipMode:"",query:void 0,webviewId:n.firstWebviewId},n.firstWebviewId)})),Y("onServiceReadyDone",u(u({},R),{webviewId:o}),o),t.isReady=!0,this.launchPageShow()}},e.prototype.showPage=function(){var e=Hn.currPage;null!=e&&(e.isReady=!0,e.injectScript(),e.show(),this.showedFirstPage||(this.showedFirstPage=!0))},e.prototype.handleViewReady=function(){this.isViewReady=!0,this.showedFirstPage?this.showPage():this.launchPageShow()},e.prototype.handleViewDOMContentLoaded=function(e){var n=e.from,t=Z();n===L&&(Y("DOMContentLoaded",{},Hn.currPage.webviewId),t.events.emit(V.onViewDOMContentLoaded)),pn()},e.prototype.launchPageShow=function(){if(this.allReady){!function(e,n){var t=function(e){var n=e.tabBar;return null==n||0===(n.list||[]).length?[e.root]:n.list.map((function(e){return e.pagePath}))}(e);Hn.initFirstPage(t,e.root,n)}(Se(),J()),Hn.initSlotWebviewId(this.firstWebviewId),this.showPage();var e=Date.now(),n=e-this.__startTime;gn.reportFirstScreenTime(e),S.info("init page consume time: "+n+"ms")}},e}()),wn={serviceStart:function(e){mn.handleServiceStart(e)},onLaunchCalled:function(e){},serviceReady:function(e){mn.handleServiceReady(e)},DOMContentLoaded:function(e){mn.handleViewDOMContentLoaded(e)},viewReady:function(){mn.handleViewReady()},DOMReady:function(){}},yn={info:function(e){var n=e.params,t=e.from,o=e.webviewIds,r=e.event;e.webviewId,t===L?console.error("not implement for "+t):X(r,n,o)},log:function(e){var n=e.params,t=e.from,o=e.webviewIds,r=e.event;e.webviewId,t===L?console.error("not implement for "+t):X(r,n,o)},warn:function(e){var n=e.params,t=e.from,o=e.webviewIds,r=e.event;e.webviewId,t===L?console.error("not implement for "+t):X(r,n,o)},error:function(e){var n=e.params,t=e.from,o=e.webviewIds,r=e.event;e.webviewId,t===L?console.error("not implement for "+t):X(r,n,o)},initLogs:function(e){var n=e.params,t=e.from,o=e.webviewIds,r=e.event;e.webviewId,t===L?console.error("not implement for "+t):X(r,n,o)},clearLogs:function(e){var n=e.params,t=e.from,o=e.webviewIds,r=e.event;e.webviewId,t===L?console.error("not implement for "+t):X(r,n,o)},onViewLogEvent:function(e){var n=e.params,t=e.from;e.webviewIds;var o=e.event,r=e.webviewId;t===L?Y(o,n,r):console.error("not implement for "+t)}},bn={INVOKE_METHOD:function(e){var n=e.params,t=e.from,o=e.event,r=e.webviewId;t===L?Y(o,n,r):console.error("not implement for "+t)},pageonshow:function(e){var n=e.params,t=e.from,o=e.webviewIds,r=e.event;t===L?console.error("not implement for "+t):X(r,n,o)},pageonhide:function(e){var n=e.params,t=e.from,o=e.webviewIds,r=e.event;t===L?console.error("not implement for "+t):(X(r,n,o),ee(r,n))},requestLoadFontFace:function(e){var n=e.params,t=e.from,o=e.webviewIds,r=e.event;t===L?console.error("not implement for "+t):X(r,n,o)},requestLoadGlobalFontFaces:function(e){var n=e.params,t=e.from,o=e.event,r=e.webviewId;t===L?Y(o,n,r):console.error("not implement for "+t)},responseLoadGlobalFontFaces:function(e){var n=e.params,t=e.from,o=e.webviewIds,r=e.event;t===L?console.error("not implement for "+t):X(r,n,o)}};function _n(e){return"string"==typeof e?JSON.parse(e):e}function An(e){return JSON.parse(JSON.stringify(e))}var xn={SPECIAL_PAGE_EVENT:function(e){var n=e.params,t=e.from;e.webviewIds;var o=e.event,r=e.webviewId;t===L?Y(o,n,r):console.error("not implement for "+t)},setKeyboardValue:function(e){var n=e.params,t=e.from,o=e.webviewIds,r=e.event;e.webviewId,t===L?console.error("not implement for "+t):X(r,n,o)},PAGE_EVENT:function(e){var n=e.params,t=e.from;e.webviewIds;var o=e.event,r=e.webviewId;t===L?Y(o,n,r):console.error("not implement for "+t)},vdSync:function(e){var n=e.params,t=e.from,o=e.webviewIds,r=e.event,i=e.webviewId;t===L?Y(r,An(n),i):X(r,An(n),o)},vdSyncBatch:function(e){var n=e.params,t=e.from,o=e.webviewIds,r=e.event,i=e.webviewId;t===L?Y(r,An(n),i):X(r,An(n),o)}},kn={videoPlayerInsertFinish:function(e){var n=e.params,t=e.from;e.webviewIds;var o=e.event,r=e.webviewId;t===L?Y(o,n,r):console.error("not implement for "+t)},videoActionChanged:function(e){var n=e.params,t=e.from,o=e.webviewIds,r=e.event;e.webviewId,t===L?console.error("not implement for "+t):X(r,n,o)}},Sn={openTypeEvent:function(e){var n=e.event,t=e.params,o=e.from,r=e.webviewId;"view"===o&&Y(n,t,r)},openTypeEventCallback:function(e){var n=e.event,t=e.params,o=e.from,r=e.webviewIds;"service"===o&&X(n,t,r)}},In=u(u(u(u(u(u(u(u(u({},hn),wn),fn),dn),yn),bn),xn),kn),Sn),Cn=u(u(u(u(u(u(u(u(u(u(u(u(u(u({},Pe),_e),De),We),Ee),ze),Je),je),Xe),nn),pe),Oe),an),ln);function Tn(e){var n,t=e.replace(oe,""),o=In[t];if(null==o){var r=/^video_(.*)_actionChanged$/.test(n=t)?"videoActionChanged":/^canvas(.*)actionsChanged$/.test(n)?"canvasActionsChanged":/^invokeCanvasToDataUrl_(.*)$/.test(n)?"invokeCanvasToDataUrl":/^onCanvasToDataUrl_(.*)$/.test(n)?"onCanvasToDataUrl":/^invokeCanvasPutImageData_(.*)$/.test(n)?"invokeCanvasPutImageData":/^onCanvasPutImageData_(.*)$/.test(n)?"onCanvasPutImageData":/^invokeCanvasGetImageData_(.*)$/.test(n)?"invokeCanvasGetImageData":/^onCanvasGetImageData_(.*)$/.test(n)?"onCanvasGetImageData":n;return{handler:In[r]||null,formatedEvent:r}}return{handler:o,formatedEvent:t}}var Mn={invokeHandler:function(e){S.debug("invokeHander",e);var n=e.C,t=e.from,o=e.paramsString,r=e.webviewId,i=e.callbackId,a=_n(o),c=Cn[n];if(null!=c){var u=c(a,i,t,r);return u&&u instanceof Promise?void 0:u}var s=te();if(null!=s)return s.invokeHandler({apiName:n,params:a,callbackId:i,from:t})},publishHandler:function(e){S.debug("publishHandler",e);var n=e.event,t=e.from,o=e.paramsString,r=e.webviewId,i=e.webviewIds,a=Tn(n),c=a.handler,u=a.formatedEvent,s=_n(o);if(null!=c)c({event:n,params:s,from:t,webviewId:r,webviewIds:O===t&&i?_n(i):void 0});else{var l=te();null!=l&&l.publishHandler({formatedEvent:u,event:n,params:s,from:t})}},webInvokeHandler:function(e){B&&console.log("webInvokeHander",e),ae(e.callbackId,_n(e.paramsString))},webPublishHandler:function(e){B&&console.log("webPublishHandler",e),ee(e.event,_n(e.paramsString))}};var Pn=[],En=function(e){Pn.push(e.el.src)},Bn=function(e){Pn.pop()},On=function(){function e(){this.block=!1,this.queue=[]}return e.prototype.collect=function(e){var n=this;this.block?this.queue.push(e):(this.block=!0,this.queue.push(e),this.timer=setTimeout((function(){n.block=!1,clearTimeout(n.timer),n.comsume()})))},e.prototype.comsume=function(){var e=this.queue;if(this.queue=[],1===e.length)e[0]();else for(var n=0;n<e.length;n++)e[n]()},e}();var Ln=function(e){function n(n){var t=e.call(this,n)||this;return t.webviewId=null,t.pagePath="",t.wrapper=null,t.isDestoryed=!1,t.active=!1,t.__isWebView=!1,t.tickQueue=new On,t}return c(n,e),Object.defineProperty(n.prototype,"isWebView",{get:function(){return this.__isWebView},set:function(e){this.__isWebView=e,e?En(this):Bn(this)},enumerable:!1,configurable:!0}),n.prototype.appendContainer=function(){var e=this.el;e.className="webview",e.setAttribute("frameborder","0"),this.hide();var n=document.getElementById("webview-container");this.wrapper=n,null!=n&&n.appendChild(e)},n.prototype.show=function(){var e=this.el;e.style.zIndex="2",e.style.opacity="1",this.active=!0,Fn(this,"show")},n.prototype.hide=function(){var e=this.el;e.style.zIndex="1",e.style.opacity="0",this.active=!1,Fn(this,"hide")},n.prototype.updateWebviewId=function(e){this.webviewId=e,this.updateId()},n.prototype.updateId=function(){this.el.id="webview-"+this.webviewId},n.prototype.updateSrc=function(e,n){void 0===n&&(n=E),this.el.src=n,this.pagePath=e},n.prototype.updatePagePath=function(e){this.pagePath=e},n.prototype.injectScript=function(){var e=this.getWindow();if(null!=e&&""!=this.pagePath){var n=this.pagePath.replace(/\.html$/g,""),t=function(e){var n=e.pagePath;return"\n <script>\n var __path__ = '"+e.path+"';\n document.title = __path__;\n document.dispatchEvent(new CustomEvent(\"generateFuncReady\", {\n detail: {\n generateFunc: $gfc('"+n+".wxml') || $gfc('"+n+".hyml')\n }\n }))\n <\/script> \n "}({pagePath:"./"+n,path:n});e.injectHtml(e.document.body,{content:t})}},n.prototype.getBridge=function(){return this.getWindow().FinChatJSBridge},n.prototype.sendToView=function(e,n){var t=this;this.sync?(S.debug("%c "+e,{data:n,webviewId:this.webviewId}),this.getBridge().subscribeHandler(e,n,this.webviewId)):this.tickQueue.collect((function(){S.debug("%c "+e,{data:n,webviewId:t.webviewId}),t.getBridge().subscribeHandler(e,n,t.webviewId)}))},n.prototype.postMessageToWebView=function(e){var n;S.debug("%c postMessageToWebView",e),null===(n=this.el.contentWindow)||void 0===n||n.postMessage(e,"*")},n.prototype.destory=function(){null!==this.wrapper&&this.wrapper.removeChild(this.el),this.el=null,this.wrapper=null,this.isDestoryed=!0,this.active=!1,this.isWebView=!1,Fn(this,"destory")},n}($);function Fn(e,n){e.isVHost&&e.children&&e.children.length>0&&e.children.forEach((function(e){e[n]()}))}function Rn(e,n){return e._slots.findIndex((function(e){return e===n.replace(/\.html$/,"")}))}var Hn=new(function(){function e(){this._slotStack=[],this._extraStack=[],this._slots=[],this._webviewId=0,this.rootIndex=0}return Object.defineProperty(e.prototype,"pagePath",{get:function(){var e;return(null===(e=this.currPage)||void 0===e?void 0:e.pagePath)||null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currPage",{get:function(){return this.stack[this.stack.length-2]||null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"top",{get:function(){return this.stack[this.stack.length-1]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"stack",{get:function(){var e=this._slotStack[this.rootIndex];return null==e?[]:d([e],this._extraStack)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"allPages",{get:function(){var e=this._slotStack[this.rootIndex];return null==e?[]:d([e],this._extraStack.slice(0,this._extraStack.length-1))},enumerable:!1,configurable:!0}),e.prototype.popExtraStack=function(){var e=this._extraStack,n=e.pop(),t=e.pop();return n&&e.push(n),t},e.prototype.resetExtraStack=function(){if(0!==this._extraStack.length){var e=this.top;this._extraStack.slice(0,this._extraStack.length-1).forEach((function(e){e.destory()})),this._extraStack=[e]}},e.prototype.initFirstPage=function(e,n,t){if(!Array.isArray(e)||0===e.length)throw new Error("slots must exist.");var o=Rn(this,n);o>-1&&(this.rootIndex=o),this._slots=e;for(var r=0;r<e.length;r++){var i=void 0;if(t&&r===this.rootIndex)i=t;else{var a=document.createElement("iframe");(i=new Ln(a)).appendContainer()}i&&this._slotStack.push(i)}var c=this._slotStack[this.rootIndex];t?c.updatePagePath(n):c.updateSrc(n),this.initEmptyPage()},e.prototype.initEmptyPage=function(){var e=document.createElement("iframe"),n=new Ln(e);n.appendContainer(),this._extraStack.push(n)},e.prototype.initNextPage=function(e,n){var t=this.currPage,o=this.top;return t.hide(),o.updateSrc(e,n),o.updateWebviewId(this._webviewId++),this.initEmptyPage(),o},e.prototype.initNextWebView=function(e,n,t){var o=this.initNextPage(n,t),r=this._extraStack.findIndex((function(e){return e.pagePath===n}));return r>-1&&this._extraStack.splice(r,1),e.children=[o],e.isVHost=!0,o.el.setAttribute("sandbox","allow-same-origin allow-scripts"),o.isWebView=!0,o.show(),o},e.prototype.initSlotWebviewId=function(e){this._webviewId=e,this._slotStack[this.rootIndex].updateWebviewId(this._webviewId++)},e.prototype.reinitPages=function(e){var n=this._slotStack,t=this._extraStack;n.forEach((function(e){e.destory()})),t.forEach((function(e){e.destory()})),this._slotStack=[],this._extraStack=[],this.initFirstPage(this._slots,e),this.currPage.updateWebviewId(this._webviewId++)},e.prototype.reLaunch=function(e){this.reinitPages(e)},e.prototype.redirectTo=function(e){if(Rn(this,e)>-1)throw new Error("不允许跳转到 tabbar 页面:"+e);var n=this._extraStack;if(n.length>1){var t=n.pop();n.pop().destory(),t.updateSrc(e),t.updateWebviewId(this._webviewId++),n.push(t),this.initEmptyPage()}else{null==(t=n.pop())||t.destory(),this._slotStack.forEach((function(e){e.destory()})),this.reinitPages(e)}},e.prototype.switch=function(e,n){n=null!=n?n:Rn(this,e);var t=this._slotStack,o=t[n];if(null==o)throw new Error("switchTab url is invalid: "+e);return this.resetExtraStack(),t.forEach((function(e){e.isReady&&e.hide()})),this.rootIndex=n,o.isReady?o.show():(o.updateWebviewId(this._webviewId++),o.updateSrc(e)),o},e.prototype.go=function(e){var n=Rn(this,e);return n>-1?this.switch(e,n):this.initNextPage(e)},e.prototype.back=function(e){var n,t=this._extraStack.slice(),o=t.pop(),r=t.length;if(e<=0)throw new Error("delta 不能 <= 0");if(r<e)throw new Error("delta 不能超过总栈长度:"+(r+1));var i=r-e,a=t.slice(0,i);(t.slice(i,r).forEach((function(e){e.destory()})),a.length>0)?a[a.length-1].show():null===(n=this._slotStack[this.rootIndex])||void 0===n||n.show();o&&a.push(o),this._extraStack=a},e}()),Dn=function(){function e(){this._invokeServiceCallbackHandler=ie,this._dispatchViewEvent=X,this._dispatchServiceEvent=Y,this.$events=new i,this._getCurrentPage=function(){return Hn.currPage},this._getAllPages=function(){return Hn.allPages}}return e.prototype.init=function(){ne=this},e}(),jn=r((function(e,n){
|
43
43
|
/*!
|
44
44
|
* @revues/hyext-adapter
|
45
45
|
* (c) 2024-2024 Alex
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@revues/web-sdk-core",
|
3
|
-
"version": "1.4.
|
3
|
+
"version": "1.4.4",
|
4
4
|
"description": "> TODO: description",
|
5
5
|
"author": "loler",
|
6
6
|
"homepage": "",
|
@@ -23,13 +23,13 @@
|
|
23
23
|
"test": "echo \"Error: run tests from root\" && exit 1"
|
24
24
|
},
|
25
25
|
"dependencies": {
|
26
|
-
"@revues/hyext-adapter": "1.4.
|
27
|
-
"@revues/web-frame": "1.4.
|
26
|
+
"@revues/hyext-adapter": "1.4.4",
|
27
|
+
"@revues/web-frame": "1.4.4",
|
28
28
|
"eventemitter3": "^5.0.1",
|
29
29
|
"howler": "^2.2.4"
|
30
30
|
},
|
31
31
|
"devDependencies": {
|
32
32
|
"@types/howler": "^2.2.11"
|
33
33
|
},
|
34
|
-
"gitHead": "
|
34
|
+
"gitHead": "c365e7a94b5980b5e1fc5886f45ca8be24111d71"
|
35
35
|
}
|