@quicktvui/web-cli 3.1.6 → 3.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! For license information please see web-runtime.
|
|
2
|
-
(()=>{var e,t,n,r,i={11(e){var t=function(e){"use strict";var t,n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var o=t&&t.prototype instanceof m?t:m,a=Object.create(o.prototype),s=new O(r||[]);return i(a,"_invoke",{value:x(e,n,s)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var h="suspendedStart",f="suspendedYield",p="executing",v="completed",y={};function m(){}function g(){}function _(){}var b={};l(b,a,function(){return this});var w=Object.getPrototypeOf,k=w&&w(w(P([])));k&&k!==n&&r.call(k,a)&&(b=k);var E=_.prototype=m.prototype=Object.create(b);function S(e){["next","throw","return"].forEach(function(t){l(e,t,function(e){return this._invoke(t,e)})})}function A(e,t){function n(i,o,a,s){var u=d(e[i],e,o);if("throw"!==u.type){var l=u.arg,c=l.value;return c&&"object"==typeof c&&r.call(c,"__await")?t.resolve(c.__await).then(function(e){n("next",e,a,s)},function(e){n("throw",e,a,s)}):t.resolve(c).then(function(e){l.value=e,a(l)},function(e){return n("throw",e,a,s)})}s(u.arg)}var o;i(this,"_invoke",{value:function(e,r){function i(){return new t(function(t,i){n(e,r,t,i)})}return o=o?o.then(i,i):i()}})}function x(e,n,r){var i=h;return function(o,a){if(i===p)throw new Error("Generator is already running");if(i===v){if("throw"===o)throw a;return{value:t,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var u=C(s,r);if(u){if(u===y)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===h)throw i=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=p;var l=d(e,n,r);if("normal"===l.type){if(i=r.done?v:f,l.arg===y)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(i=v,r.method="throw",r.arg=l.arg)}}}function C(e,n){var r=n.method,i=e.iterator[r];if(i===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,C(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var o=d(i,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,y;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,y):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function L(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function O(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function P(e){if(null!=e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function n(){for(;++i<e.length;)if(r.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return o.next=o}}throw new TypeError(typeof e+" is not iterable")}return g.prototype=_,i(E,"constructor",{value:_,configurable:!0}),i(_,"constructor",{value:g,configurable:!0}),g.displayName=l(_,u,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,l(e,u,"GeneratorFunction")),e.prototype=Object.create(E),e},e.awrap=function(e){return{__await:e}},S(A.prototype),l(A.prototype,s,function(){return this}),e.AsyncIterator=A,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new A(c(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then(function(e){return e.done?e.value:a.next()})},S(E),l(E,u,"Generator"),l(E,a,function(){return this}),l(E,"toString",function(){return"[object Generator]"}),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=P,O.prototype={constructor:O,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(r,i){return s.type="throw",s.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var u=r.call(a,"catchLoc"),l=r.call(a,"finallyLoc");if(u&&l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,y):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),L(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;L(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:P(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),y}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}},515(e,t,n){"use strict";function r(e){if(Array.isArray(e))return e}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function o(e,t){if(e){if("string"==typeof e)return i(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}function a(){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 s(e,t){return r(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,i=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(e,t)||o(e,t)||a()}function u(e,t,n,r,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,i)}function l(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function a(e){u(o,r,i,a,s,"next",e)}function s(e){u(o,r,i,a,s,"throw",e)}a(void 0)})}}var c=n(715),d=n.n(c),h=null,f=new Map,p=new Map;function v(){return h}function y(e,t){f.set(e,t)}function m(e,t){e&&"string"==typeof e&&p.set(e,t)}function g(e){p.has(e)&&p.delete(e)}function _(e){if("string"==typeof e)return t=e,p.has(t)?p.get(t):null;var t;if(f.has(e))return f.get(e);if(!h)return null;try{var n,r,i=null===(n=h.context)||void 0===n||null===(r=n.getModuleByName)||void 0===r?void 0:r.call(n,"UIManagerModule");if(i&&i.findViewById){var o=i.findViewById(e);if(o)return o}}catch(e){}return null}var b=n(298);function w(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function k(e){return function(e){if(Array.isArray(e))return i(e)}(e)||w(e)||o(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.")}()}var E=1920,S=1080,A="EsApp";function x(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var C=n(517);function T(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(0,C.A)(r.key),r)}}function L(e,t,n){return t&&T(e.prototype,t),n&&T(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function O(e,t){var n=e&&e.length?e[e.length-1]:null;return n&&"function"==typeof n.resolve&&n.resolve(t),t}function P(e){var t=e&&e.length?e[e.length-1]:null;return t&&"function"==typeof t.resolve&&t.resolve(!0),Promise.resolve(!0)}var I=function(){return L(function e(){x(this,e),this.name="AndroidDeviceModule"},[{key:"getAndroidDevice",value:(w=l(c.mark(function e(){var t,n,r,i,o,a,s,u,l,d,h,f,p=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=this._getScreenInfo(),n=this._generateDeviceId(),r="web",i=this._getBrowserInfo(),e.next=1,this._getLocalIP();case 1:for(o=e.sent,a=this._generateMAC(),s=this._estimateTotalMemoryMB(),u=this._estimateAvailMemoryMB(),l={deviceId:n,deviceType:r,ipAddress:o,ethMac:"",wifiMac:a,totalMemory:s,availableMemory:u,screenWidth:t.width,screenHeight:t.height,resolution:"".concat(t.width,"x").concat(t.height),density:String(t.density),densityDpi:String(t.densityDpi),scaledDensity:String(t.scaledDensity),buildModel:i,buildBrand:"Web",buildDevice:"Browser",buildBoard:"Web",buildProduct:"quicktvui-web",buildHardware:"Web",buildManufacturer:"quicktvui",buildSerial:"",buildTags:"",buildId:"",buildTime:"",buildType:"",buildUser:"",buildBootloader:"",buildDisplay:"",buildFingerPrint:"",buildVersionIncremental:"",buildVersionBaseOS:"",buildVersionCodeName:"",buildVersionSecurityPatch:"",buildVersionPreviewSDKInt:0,buildVersionSDKInt:0,buildVersionRelease:"Web"},d=p.length,h=new Array(d),f=0;f<d;f++)h[f]=p[f];return e.abrupt("return",O(h,l));case 2:case"end":return e.stop()}},e,this)})),function(){return w.apply(this,arguments)})},{key:"getEthMac",value:(b=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",O(n,""));case 1:case"end":return e.stop()}},e)})),function(){return b.apply(this,arguments)})},{key:"getWifiMac",value:(_=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",O(n,this._generateMAC()));case 1:case"end":return e.stop()}},e,this)})),function(){return _.apply(this,arguments)})},{key:"getTotalMemory",value:(g=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",O(n,this._estimateTotalMemoryMB()));case 1:case"end":return e.stop()}},e,this)})),function(){return g.apply(this,arguments)})},{key:"getAvailableMemory",value:(m=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",O(n,this._estimateAvailMemoryMB()));case 1:case"end":return e.stop()}},e,this)})),function(){return m.apply(this,arguments)})},{key:"getScreenWidth",value:(y=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",O(n,this._getScreenInfo().width));case 1:case"end":return e.stop()}},e,this)})),function(){return y.apply(this,arguments)})},{key:"getScreenHeight",value:(v=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",O(n,this._getScreenInfo().height));case 1:case"end":return e.stop()}},e,this)})),function(){return v.apply(this,arguments)})},{key:"getResolution",value:(p=l(c.mark(function e(){var t,n,r,i,o=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=this._getScreenInfo(),n=o.length,r=new Array(n),i=0;i<n;i++)r[i]=o[i];return e.abrupt("return",O(r,"".concat(t.width,"x").concat(t.height)));case 1:case"end":return e.stop()}},e,this)})),function(){return p.apply(this,arguments)})},{key:"getDensity",value:(f=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",O(n,this._getScreenInfo().density));case 1:case"end":return e.stop()}},e,this)})),function(){return f.apply(this,arguments)})},{key:"getDensityDpi",value:(h=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",O(n,this._getScreenInfo().densityDpi));case 1:case"end":return e.stop()}},e,this)})),function(){return h.apply(this,arguments)})},{key:"getScaledDensity",value:(d=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",O(n,this._getScreenInfo().scaledDensity));case 1:case"end":return e.stop()}},e,this)})),function(){return d.apply(this,arguments)})},{key:"getBuildVersionRelease",value:(u=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",O(n,"Web"));case 1:case"end":return e.stop()}},e)})),function(){return u.apply(this,arguments)})},{key:"getBuildModel",value:(s=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",O(n,this._getBrowserInfo()));case 1:case"end":return e.stop()}},e,this)})),function(){return s.apply(this,arguments)})},{key:"getBuildBrand",value:(a=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",O(n,"Web"));case 1:case"end":return e.stop()}},e)})),function(){return a.apply(this,arguments)})},{key:"getBuildDevice",value:(o=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",O(n,"Browser"));case 1:case"end":return e.stop()}},e)})),function(){return o.apply(this,arguments)})},{key:"getBuildBoard",value:(i=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",O(n,"Web"));case 1:case"end":return e.stop()}},e)})),function(){return i.apply(this,arguments)})},{key:"getBuildProduct",value:(r=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",O(n,"quicktvui-web"));case 1:case"end":return e.stop()}},e)})),function(){return r.apply(this,arguments)})},{key:"getBuildHardware",value:(n=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",O(n,"Web"));case 1:case"end":return e.stop()}},e)})),function(){return n.apply(this,arguments)})},{key:"getBuildManufacturer",value:(t=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",O(n,"quicktvui"));case 1:case"end":return e.stop()}},e)})),function(){return t.apply(this,arguments)})},{key:"_getScreenInfo",value:function(){if("undefined"==typeof window)return{width:1920,height:1080,density:1,densityDpi:160,scaledDensity:1};var e=window.devicePixelRatio||1;return{width:1920,height:1080,density:e,densityDpi:Math.round(160*e),scaledDensity:e}}},{key:"_generateDeviceId",value:function(){if("undefined"!=typeof localStorage){var e=localStorage.getItem("__ES_DEVICE_ID__");return e||(e="web-"+Math.random().toString(36).substring(2,15),localStorage.setItem("__ES_DEVICE_ID__",e)),e}return"web-"+Math.random().toString(36).substring(2,15)}},{key:"_generateMAC",value:function(){for(var e="0123456789ABCDEF",t="",n=0;n<6;n++)n>0&&(t+=":"),t+=e.charAt(Math.floor(16*Math.random())),t+=e.charAt(Math.floor(16*Math.random()));return t}},{key:"_getLocalIP",value:(e=l(c.mark(function e(){return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return","");case 1:case"end":return e.stop()}},e)})),function(){return e.apply(this,arguments)})},{key:"_estimateTotalMemory",value:function(){return"undefined"!=typeof performance&&performance.memory&&performance.memory.jsHeapSizeLimit||1073741824}},{key:"_estimateTotalMemoryMB",value:function(){return 4096}},{key:"_estimateAvailMemory",value:function(){if("undefined"!=typeof performance&&performance.memory){var e=performance.memory.jsHeapSizeLimit||1073741824,t=performance.memory.usedJSHeapSize||0;return Math.max(0,e-t)}return 536870912}},{key:"_estimateAvailMemoryMB",value:function(){return 2048}},{key:"_getBrowserInfo",value:function(){if("undefined"==typeof navigator)return"Unknown Browser";var e=navigator.userAgent,t="Unknown Browser";e.indexOf("Firefox")>-1?t="Firefox":e.indexOf("Edg")>-1?t="Edge":e.indexOf("Chrome")>-1?t="Chrome":e.indexOf("Safari")>-1?t="Safari":(e.indexOf("Opera")>-1||e.indexOf("OPR")>-1)&&(t="Opera");var n=e.match(/(Firefox|Chrome|Safari|Edg|OPR)\/(\d+)/);return n?"".concat(n[1]," ").concat(n[2]):t}}]);var e,t,n,r,i,o,a,s,u,d,h,f,p,v,y,m,g,_,b,w}(),N=new I,R=0,D=1,M=9,F=1,B=3;function j(){if("undefined"==typeof navigator||!navigator.connection)return M;var e=navigator.connection,t=e.type||e.effectiveType;return"wifi"===t?D:"cellular"===t||"2g"===t||"3g"===t||"4g"===t?R:"ethernet"===t?M:e.effectiveType&&["4g","3g","2g","slow-2g"].includes(e.effectiveType)?R:M}function V(){return"undefined"==typeof navigator||navigator.onLine}function W(){if("undefined"==typeof navigator||!navigator.connection)return{downlink:10,effectiveType:"4g",rtt:50,saveData:!1};var e=navigator.connection;return{downlink:e.downlink||10,effectiveType:e.effectiveType||"4g",rtt:e.rtt||50,saveData:e.saveData||!1}}var H=function(){return L(function e(t){x(this,e),this.context=t,this.name="",this.mode="normal"},[{key:"getActiveNetworkInfo",value:(n=l(c.mark(function e(){var t,n,r,i,o,a,s,u=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=V(),n=j(),r=W(),i={type:n,typeName:this._getTypeName(n),subtype:0,state:t?B:F,extraInfo:"",isAvailable:t,isConnected:t,isConnectedOrConnecting:t,isFailover:!1,isRoaming:!1,detailedState:t?1:0,describeContents:0,downlink:r.downlink,effectiveType:r.effectiveType,rtt:r.rtt,saveData:r.saveData},o=u.length,a=new Array(o),s=0;s<o;s++)a[s]=u[s];return e.abrupt("return",O(a,i));case 1:case"end":return e.stop()}},e,this)})),function(){return n.apply(this,arguments)})},{key:"getWifiInfo",value:(t=l(c.mark(function e(){var t,n,r,i,o,a,s=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=j(),n=W(),r={ssid:"",strength:t===D?Math.round(n.downlink/10*100):0},i=s.length,o=new Array(i),a=0;a<i;a++)o[a]=s[a];return e.abrupt("return",O(o,r));case 1:case"end":return e.stop()}},e)})),function(){return t.apply(this,arguments)})},{key:"_getTypeName",value:function(e){switch(e){case D:return"WIFI";case R:return"MOBILE";case M:return"ETHERNET";default:return"UNKNOWN"}}},{key:"destroy",value:function(){}},{key:"init",value:(e=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",P(n));case 1:case"end":return e.stop()}},e)})),function(){return e.apply(this,arguments)})}]);var e,t,n}(),U=new H,G="quicktvui_device_id";function z(){return"undefined"!=typeof crypto&&"function"==typeof crypto.randomUUID?crypto.randomUUID():"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})}function Y(){return q.apply(this,arguments)}function q(){return(q=l(c.mark(function e(){var t,n;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=1,localStorage.getItem(G);case 1:if(!(t=e.sent)){e.next=2;break}return e.abrupt("return",t);case 2:e.next=4;break;case 3:e.prev=3,e.catch(0);case 4:n=z();try{localStorage.setItem(G,n)}catch(e){}return e.abrupt("return",n);case 5:case"end":return e.stop()}},e,null,[[0,3]])}))).apply(this,arguments)}function X(){var e=navigator.userAgent,t="unknown",n="unknown",r="";if(/Windows/i.test(e)){n="windows";var i=e.match(/Windows NT (\d+\.?\d*)/);r=i?i[1]:""}else if(/Mac/i.test(e)){n="mac";var o=e.match(/Mac OS X (\d+[._]\d+[._]?\d*)/);r=o?o[1].replace(/_/g,"."):""}else if(/Linux/i.test(e))n="linux";else if(/Android/i.test(e)){n="android";var a=e.match(/Android (\d+\.?\d*\.?\d*)/);r=a?a[1]:""}else if(/iOS|iPhone|iPad/i.test(e)){n="ios";var s=e.match(/OS (\d+_\d+_?\d*)/);r=s?s[1].replace(/_/g,"."):""}return/Chrome/i.test(e)&&!/Edge|Edg/i.test(e)?t="chrome":/Safari/i.test(e)&&!/Chrome/i.test(e)?t="safari":/Firefox/i.test(e)?t="firefox":/Edge|Edg/i.test(e)&&(t="edge"),{browser:t,os:n,osVersion:r}}var K=function(){return L(function e(t){x(this,e),this.context=t,this.name="",this.mode="normal",this._deviceId=null},[{key:"_getDeviceId",value:(i=l(c.mark(function e(){return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(this._deviceId){e.next=2;break}return e.next=1,Y();case 1:this._deviceId=e.sent;case 2:return e.abrupt("return",this._deviceId);case 3:case"end":return e.stop()}},e,this)})),function(){return i.apply(this,arguments)})},{key:"getRuntimeDeviceId",value:(r=l(c.mark(function e(){var t,n,r,i,o=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,this._getDeviceId();case 1:for(t=e.sent,n=o.length,r=new Array(n),i=0;i<n;i++)r[i]=o[i];return e.abrupt("return",O(r,t));case 2:case"end":return e.stop()}},e,this)})),function(){return r.apply(this,arguments)})},{key:"getRuntimeDeviceType",value:(n=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",O(n,"web"));case 1:case"end":return e.stop()}},e)})),function(){return n.apply(this,arguments)})},{key:"getRuntimeDeviceInfo",value:(t=l(c.mark(function e(){var t,n,r,i,o,a,s,u,l,d=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=X(),n=t.browser,r=t.os,i=t.osVersion,e.next=1,this._getDeviceId();case 1:for(o=e.sent,a={deviceId:o,deviceSerial:o,deviceType:"web",deviceModel:n,deviceBrand:"web",osName:r,osVersion:i,osApiLevel:"",screenWidth:window.screen.width||0,screenHeight:window.screen.height||0,screenDensity:window.devicePixelRatio||1,appVersion:"",appVersionCode:0,networkType:"unknown",platform:"web"},s=d.length,u=new Array(s),l=0;l<s;l++)u[l]=d[l];return e.abrupt("return",O(u,a));case 2:case"end":return e.stop()}},e,this)})),function(){return t.apply(this,arguments)})},{key:"destroy",value:function(){}},{key:"init",value:(e=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",P(n));case 1:case"end":return e.stop()}},e)})),function(){return e.apply(this,arguments)})}]);var e,t,n,r,i}(),$=new K;function Z(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function J(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Z(Object(n),!0).forEach(function(t){(0,b.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Z(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Q(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return ee(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ee(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function ee(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function te(){try{var e,t=null===(e=n.g.__GLOBAL__)||void 0===e?void 0:e.jsModuleList;return t&&t.EventDispatcher?t.EventDispatcher:null}catch(e){return null}}function ne(e){if("string"!=typeof e||0===e.length)return"";if(!e.startsWith("on"))return e;var t=e.slice(2);return t?"".concat(t.charAt(0).toLowerCase()).concat(t.slice(1)):e}var re=new Set(["onLoadPageData","onPageChanged"]),ie=new Map;function oe(e,t){var n=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return re.has(t)?JSON.stringify({targetNodeId:e,eventName:t,pageIndex:null==n?void 0:n.pageIndex,itemCount:null==n?void 0:n.itemCount,useDiff:null==n?void 0:n.useDiff}):null}(e,t,arguments.length>2&&void 0!==arguments[2]?arguments[2]:{});if(!n)return!1;var r=Date.now(),i=ie.get(n);if(ie.set(n,r),i&&r-i<=32)return!0;var o,a=Q(ie.entries());try{for(a.s();!(o=a.n()).done;){var u=s(o.value,2),l=u[0];r-u[1]>128&&ie.delete(l)}}catch(e){a.e(e)}finally{a.f()}return!1}function ae(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=te();if(!n)return!1;try{return n.receiveNativeEvent([e,t]),!0}catch(e){return!1}}function se(){return ae("hardwareBackPress",null)}function ue(e){return ae("DispatchKeyEvent",e)}function le(e){return ue(J(J({},e),{},{action:0}))}function ce(e){return ue(J(J({},e),{},{action:1}))}function de(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=te();if(!r||"function"!=typeof r.receiveNativeGesture)return!1;if("number"!=typeof e||!t)return!1;try{return r.receiveNativeGesture(J({id:e,name:t},n)),!0}catch(e){return!1}}function he(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=te();return!(!r||"number"!=typeof e||!t)&&("function"==typeof r.receiveNativeGesture?de(e,t,n):ae(t,J({id:e,currentId:e},n)))}function fe(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=te();if(!r)return!1;if("number"!=typeof e||!t)return!1;if(oe(e,t,n))return!0;try{return"function"==typeof r.receiveUIComponentEvent?(r.receiveUIComponentEvent([e,t,n]),!0):"function"==typeof r.receiveComponentEvent&&(r.receiveComponentEvent(function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return{id:e,currentId:e,nativeName:t,originalName:ne(t),params:n,eventPhase:2}}(e,t,n),{stopPropagation(){}}),!0)}catch(e){return!1}}var pe=0,ve=1,ye=2,me=3,ge=4,_e=5,be=6,we=7,ke=8,Ee=9,Se=10,Ae=11,xe=12,Ce=13,Te=26,Le=29,Oe=new(function(){return L(function e(){x(this,e),this.instances=new Map,this.defaultPlayRate=1,this.defaultVolume=1},[{key:"getInstance",value:function(e){if(!this.instances.has(e)){var t=new Audio;t.defaultPlaybackRate=this.defaultPlayRate,t.volume=this.defaultVolume,this._bindAudioEvents(t,e),this.instances.set(e,t)}return this.instances.get(e)}},{key:"_bindAudioEvents",value:function(e,t){var n=!1,r=pe;e.addEventListener("play",function(){r!==_e&&(r=_e,ae("onESAudioPlayerStatusChanged",{playerStatus:_e,playerState:_e}))}),e.addEventListener("playing",function(){r!==_e&&(r=_e,ae("onESAudioPlayerStatusChanged",{playerStatus:_e,playerState:_e}))}),e.addEventListener("pause",function(){r=ke,ae("onESAudioPlayerStatusChanged",{playerStatus:ke,playerState:ke})}),e.addEventListener("ended",function(){r=xe,n=!0,ae("onESAudioPlayerStatusChanged",{playerStatus:xe,playerState:xe})}),e.addEventListener("error",function(e){var t,n;r=Ce,ae("onESAudioPlayerError",{errorCode:(null===(t=e.target.error)||void 0===t?void 0:t.code)||-1,errorMessage:(null===(n=e.target.error)||void 0===n?void 0:n.message)||"Audio error"})}),e.addEventListener("loadstart",function(){n=!1,r=ve,ae("onESAudioPlayerStatusChanged",{playerStatus:ve,playerState:ve})}),e.addEventListener("canplay",function(){n||(n=!0,r=ye,ae("onESAudioPlayerStatusChanged",{playerStatus:ye,playerState:ye}))}),e.addEventListener("waiting",function(){ae("onESAudioPlayerStatusChanged",{playerStatus:me,playerState:me})}),e.addEventListener("canplaythrough",function(){ae("onESAudioPlayerStatusChanged",{playerStatus:ge,playerState:ge})}),e.addEventListener("durationchange",function(){e.duration&&!isNaN(e.duration)&&ae("onESAudioPlayerInfo",{what:1,extra:Math.floor(1e3*e.duration)})}),e.addEventListener("ratechange",function(){ae("onESAudioPlayRateChanged",{playRate:e.playbackRate})}),e.addEventListener("seeking",function(){ae("onESAudioPlayerStatusChanged",{playerStatus:be,playerState:be})}),e.addEventListener("seeked",function(){ae("onESAudioPlayerStatusChanged",{playerStatus:we,playerState:we})}),e.addEventListener("volumechange",function(){ae("onESAudioPlayerInfo",{what:2,extra:Math.floor(100*e.volume)})})}},{key:"removeInstance",value:function(e){var t=this.instances.get(e);t&&(t.pause(),t.src="",this.instances.delete(e))}},{key:"clearAll",value:function(){this.instances.forEach(function(e,t){e.pause(),e.src=""}),this.instances.clear()}}])}()),Pe=function(){return L(function e(t){x(this,e),this.context=t,this.name="",this.mode="normal"},[{key:"init",value:(u=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(ae("onESAudioPlayerStatusChanged",{playerStatus:Te,playerState:Te}),ae("onESAudioPlayerStatusChanged",{playerStatus:Le,playerState:Le}),t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",P(n));case 1:case"end":return e.stop()}},e)})),function(){return u.apply(this,arguments)})},{key:"initMediaPlayer",value:function(){ae("onESAudioPlayerStatusChanged",{playerStatus:Te,playerState:Te}),ae("onESAudioPlayerStatusChanged",{playerStatus:Le,playerState:Le});for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return O(t,null)}},{key:"play",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i,o=Oe.getInstance(e),a=n||[],s="",u=!0;if(a.length>0){var l=a[0];"string"==typeof l?s=l:Array.isArray(l)&&"string"==typeof l[0]?s=l[0]:"object"!=typeof l||null===l||Array.isArray(l)||(s=l.url||l.src||l.uri||"",u=!1!==l.autoplay)}if(s){var c=function(e){var t;if("string"!=typeof e||!e.startsWith("/"))return null;if(!/^\/(?:audio|assets)\/.+\.(mp3|wav|ogg|m4a|aac|webm)$/i.test(e))return null;if("undefined"==typeof window||null===(t=window.location)||void 0===t||!t.origin)return null;var n=window.__VIRTUAL_FS__;if(n&&n.has){var r=e.replace(/^\//,""),i=n.baseDir?n.baseDir+"/"+r:r;if(n.has(i)||n.has(e))return null}return"".concat(window.location.origin).concat(e)}(s="string"!=typeof(i=s)?i:i.startsWith("/data:")?i.slice(1):i.startsWith("file://")?i.slice(7)||"/":i.startsWith("//")?i.replace(/^\/+/,"/"):i);c&&(s=c),o.src=s,o.load()}return u&&o.src&&o.play().catch(function(e){ae("onESAudioPlayerError",{errorCode:-1,errorMessage:e.message||"Play error"})}),O(a,null)}},{key:"start",value:function(e){var t=Oe.getInstance(e);t.src&&t.play().catch(function(e){});for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return O(r,null)}},{key:"pause",value:function(e){Oe.getInstance(e).pause();for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return O(n,null)}},{key:"resume",value:function(e){Oe.getInstance(e).play().catch(function(e){}),ae("onESAudioPlayerStatusChanged",{playerStatus:Ee,playerState:Ee});for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return O(n,null)}},{key:"seekTo",value:function(e,t){var n=Oe.getInstance(e);n.duration&&t>=0&&(n.currentTime=Math.min(t/1e3,n.duration));for(var r=arguments.length,i=new Array(r>2?r-2:0),o=2;o<r;o++)i[o-2]=arguments[o];return O(i,null)}},{key:"stop",value:function(e){var t=Oe.getInstance(e);ae("onESAudioPlayerStatusChanged",{playerStatus:Se,playerState:Se}),t.pause(),t.currentTime=0,ae("onESAudioPlayerStatusChanged",{playerStatus:Ae,playerState:Ae});for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return O(r,null)}},{key:"setPlayRate",value:function(e,t){var n=Oe.getInstance(e);n.playbackRate=Number(t)||1,ae("onESAudioPlayRateChanged",{playRate:n.playbackRate});for(var r=arguments.length,i=new Array(r>2?r-2:0),o=2;o<r;o++)i[o-2]=arguments[o];return O(i,null)}},{key:"setVolume",value:function(e,t){Oe.getInstance(e).volume=Math.max(0,Math.min(1,Number(t)||0));for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return O(r,null)}},{key:"setLeftRightVolume",value:function(e,t,n){var r=Oe.getInstance(e),i=(Number(t)+Number(n))/2;r.volume=Math.max(0,Math.min(1,i||0));for(var o=arguments.length,a=new Array(o>3?o-3:0),s=3;s<o;s++)a[s-3]=arguments[s];return O(a,null)}},{key:"reset",value:function(e){var t=Oe.getInstance(e);t.pause(),t.currentTime=0,t.src="";for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return O(r,null)}},{key:"release",value:function(e){Oe.removeInstance(e);for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return O(n,null)}},{key:"isPlaying",value:(s=l(c.mark(function e(t){var n,r,i,o,a,s=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(n=Oe.getInstance(t),r=!n.paused&&n.currentTime>0,i=s.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=s[a];return e.abrupt("return",O(o,r));case 1:case"end":return e.stop()}},e)})),function(e){return s.apply(this,arguments)})},{key:"isPaused",value:(a=l(c.mark(function e(t){var n,r,i,o,a,s=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(n=Oe.getInstance(t),r=n.paused,i=s.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=s[a];return e.abrupt("return",O(o,r));case 1:case"end":return e.stop()}},e)})),function(e){return a.apply(this,arguments)})},{key:"getDuration",value:(o=l(c.mark(function e(t){var n,r,i,o,a,s=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(n=Oe.getInstance(t),r=n.duration&&!isNaN(n.duration)?1e3*n.duration:-1,i=s.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=s[a];return e.abrupt("return",O(o,r));case 1:case"end":return e.stop()}},e)})),function(e){return o.apply(this,arguments)})},{key:"getCurrentPosition",value:(i=l(c.mark(function e(t){var n,r,i,o,a,s=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(n=Oe.getInstance(t),r=n.currentTime&&!isNaN(n.currentTime)?1e3*n.currentTime:0,i=s.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=s[a];return e.abrupt("return",O(o,r));case 1:case"end":return e.stop()}},e)})),function(e){return i.apply(this,arguments)})},{key:"getBufferPercentage",value:(r=l(c.mark(function e(t){var n,r,i,o,a,s,u=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(n=Oe.getInstance(t),r=u.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=u[o];if(!(n.buffered.length>0&&n.duration>0)){e.next=1;break}return a=n.buffered.end(n.buffered.length-1),s=Math.round(a/n.duration*100),e.abrupt("return",O(i,s));case 1:return e.abrupt("return",O(i,0));case 2:case"end":return e.stop()}},e)})),function(e){return r.apply(this,arguments)})},{key:"getCurrentPlayRate",value:(n=l(c.mark(function e(t){var n,r,i,o,a=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(n=Oe.getInstance(t),r=a.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=a[o];return e.abrupt("return",O(i,n.playbackRate||1));case 1:case"end":return e.stop()}},e)})),function(e){return n.apply(this,arguments)})},{key:"getLeftVolume",value:(t=l(c.mark(function e(t){var n,r,i,o,a=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(n=Oe.getInstance(t),r=a.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=a[o];return e.abrupt("return",O(i,n.volume));case 1:case"end":return e.stop()}},e)})),function(e){return t.apply(this,arguments)})},{key:"getRightVolume",value:(e=l(c.mark(function e(t){var n,r,i,o,a=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(n=Oe.getInstance(t),r=a.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=a[o];return e.abrupt("return",O(i,n.volume));case 1:case"end":return e.stop()}},e)})),function(t){return e.apply(this,arguments)})},{key:"destroy",value:function(){Oe.clearAll()}}]);var e,t,n,r,i,o,a,s,u}(),Ie="files",Ne=null;function Re(){return new Promise(function(e,t){if(Ne)e(Ne);else{var n=indexedDB.open("es_vfs_db",1);n.onerror=function(){t(n.error)},n.onsuccess=function(){Ne=n.result,e(Ne)},n.onupgradeneeded=function(e){var t=e.target.result;t.objectStoreNames.contains(Ie)||t.createObjectStore(Ie,{keyPath:"path"})}}})}function De(e){return Me.apply(this,arguments)}function Me(){return(Me=l(c.mark(function e(t){var n;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=1,Re();case 1:return n=e.sent,e.abrupt("return",new Promise(function(e,r){var i=n.transaction([Ie],"readonly").objectStore(Ie).get(t);i.onsuccess=function(){i.result?e(i.result.data):e(null)},i.onerror=function(){r(i.error)}}));case 2:return e.prev=2,e.catch(0),e.abrupt("return",null);case 3:case"end":return e.stop()}},e,null,[[0,2]])}))).apply(this,arguments)}function Fe(e){var t;if("string"!=typeof e||!e.startsWith("/"))return null;if(!/^\/(?:audio|assets)\/.+\.(mp3|wav|ogg|m4a|aac|webm)$/i.test(e))return null;if("undefined"==typeof window||null===(t=window.location)||void 0===t||!t.origin)return null;var n=window.__VIRTUAL_FS__;if(n&&n.has){var r=e.replace(/^\//,""),i=n.baseDir?n.baseDir+"/"+r:r;if(n.has(i)||n.has(e))return null}return"".concat(window.location.origin).concat(e)}function Be(e){return"string"!=typeof e?e:e.startsWith("/data:")?e.slice(1):e.startsWith("file://")?e.slice(7)||"/":e.startsWith("//")?e.replace(/^\/+/,"/"):e}function je(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=function(){try{var e,t=null===(e=n.g.__GLOBAL__)||void 0===e?void 0:e.jsModuleList;return t&&t.EventDispatcher?t.EventDispatcher:null}catch(e){return null}}();if(!r)return!1;try{return r.receiveNativeEvent([e,t]),!0}catch(e){return!1}}var Ve=function(){return L(function e(){x(this,e),this.sounds=new Map,this.streams=new Map,this.nextSoundID=1,this.nextStreamID=1,this.maxStreams=10,this.config={usage:1,contentType:2,maxStreams:10,streamType:3,enableCache:!0}},[{key:"init",value:function(e,t,n,r,i){this.config={usage:e||1,contentType:t||2,maxStreams:n||10,streamType:r||3,enableCache:void 0===i||i},this.maxStreams=this.config.maxStreams}},{key:"load",value:(t=l(c.mark(function e(t){var n,r,i,o=this;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=this.nextSoundID++,r=t,t&&t.startsWith("/")&&t.includes("data:")&&(r=t.substring(t.indexOf("data:"))),(i=new Audio).preload="auto",e.abrupt("return",new Promise(function(e,t){var a=function(){i.removeEventListener("canplaythrough",a),i.removeEventListener("error",s),o.sounds.set(n,{url:r,audio:i}),e(n),setTimeout(function(){je("onESSoundPoolLoadComplete",{status:0,sampleId:n})},0)},s=function(e){var r,o;i.removeEventListener("canplaythrough",a),i.removeEventListener("error",s),je("onESSoundPoolLoadError",{soundID:n,errorCode:(null===(r=e.target)||void 0===r||null===(r=r.error)||void 0===r?void 0:r.code)||-1,errorMessage:(null===(o=e.target)||void 0===o||null===(o=o.error)||void 0===o?void 0:o.message)||"Load error"}),t(e)};i.addEventListener("canplaythrough",a),i.addEventListener("error",s),i.src=r,i.load()}));case 1:case"end":return e.stop()}},e,this)})),function(e){return t.apply(this,arguments)})},{key:"unload",value:function(e){var t=this.sounds.get(e);t&&(t.audio.pause(),t.audio.src="",this.sounds.delete(e))}},{key:"play",value:(e=l(c.mark(function e(t,n,r,i,o,a){var s,u,l,d,h,f=this;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(s=this.sounds.get(t)){e.next=1;break}return e.abrupt("return",Promise.reject(new Error("Sound not found")));case 1:return u=this.nextStreamID++,(l=new Audio).src=s.url,l.preload="auto",d=((n||1)+(r||1))/2,l.volume=Math.max(0,Math.min(1,d)),l.playbackRate=a||1,l.loop=-1===o||!0===o,this.streams.set(u,{soundID:t,audio:l}),l.addEventListener("ended",function(){f.streams.delete(u),je("onESSoundPoolPlayComplete",{streamID:u,soundID:t})}),l.addEventListener("error",function(e){var n,r;f.streams.delete(u),je("onESSoundPoolPlayError",{streamID:u,soundID:t,errorCode:(null===(n=e.target)||void 0===n||null===(n=n.error)||void 0===n?void 0:n.code)||-1,errorMessage:(null===(r=e.target)||void 0===r||null===(r=r.error)||void 0===r?void 0:r.message)||"Play error"})}),e.prev=2,e.next=3,l.play();case 3:return e.abrupt("return",u);case 4:throw e.prev=4,h=e.catch(2),this.streams.delete(u),h;case 5:case"end":return e.stop()}},e,this,[[2,4]])})),function(t,n,r,i,o,a){return e.apply(this,arguments)})},{key:"pause",value:function(e){var t=this.streams.get(e);t&&t.audio.pause()}},{key:"autoPause",value:function(){this.streams.forEach(function(e){e.audio.pause()})}},{key:"resume",value:function(e){var t=this.streams.get(e);t&&t.audio.paused&&t.audio.play().catch(function(e){})}},{key:"autoResume",value:function(){this.streams.forEach(function(e){e.audio.paused&&e.audio.play().catch(function(e){})})}},{key:"stop",value:function(e){var t=this.streams.get(e);t&&(t.audio.pause(),t.audio.currentTime=0,this.streams.delete(e))}},{key:"setVolume",value:function(e,t,n){var r=this.streams.get(e);if(r){var i=((t||1)+(n||1))/2;r.audio.volume=Math.max(0,Math.min(1,i))}}},{key:"setRate",value:function(e,t){var n=this.streams.get(e);n&&(n.audio.playbackRate=t||1)}},{key:"setPriority",value:function(e,t){}},{key:"setLoop",value:function(e,t){var n=this.streams.get(e);n&&(n.audio.loop=-1===t||!0===t)}},{key:"release",value:function(){this.streams.forEach(function(e){e.audio.pause(),e.audio.src=""}),this.streams.clear(),this.sounds.forEach(function(e){e.audio.pause(),e.audio.src=""}),this.sounds.clear(),this.nextSoundID=1,this.nextStreamID=1}}]);var e,t}(),We=new Ve,He=function(){return L(function e(t){x(this,e),this.context=t},[{key:"init",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t&&t.length?t[t.length-1]:null;return r&&"function"==typeof r.resolve&&r.resolve(!0),Promise.resolve(!0)}},{key:"initSoundPool",value:function(e,t,n,r,i){We.init(e,t,n,r,i);for(var o=arguments.length,a=new Array(o>5?o-5:0),s=5;s<o;s++)a[s-5]=arguments[s];return O(a,!0)}},{key:"load",value:(i=l(c.mark(function e(t){var r,i,o,a,s,u,l,d,h,f,p,v,y,m,g,_,b,w,k,E,S,A=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(r=A.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=A[o];if(e.prev=1,!(a=Be(t))||!a.startsWith("data:")){e.next=3;break}return e.next=2,We.load(a);case 2:return s=e.sent,e.abrupt("return",O(i,s));case 3:if(!a||!a.startsWith("http://")&&!a.startsWith("https://")){e.next=5;break}return e.next=4,We.load(a);case 4:return u=e.sent,e.abrupt("return",O(i,u));case 5:if(!n.g.__WEB_FILE_URL_MAP__||!n.g.__WEB_FILE_URL_MAP__.has(a)){e.next=7;break}return l=n.g.__WEB_FILE_URL_MAP__.get(a),e.next=6,We.load(l);case 6:return d=e.sent,e.abrupt("return",O(i,d));case 7:if(!(h=Fe(a))){e.next=9;break}return e.next=8,We.load(h);case 8:return f=e.sent,e.abrupt("return",O(i,f));case 9:if(!(p=window.__VIRTUAL_FS__)||!p.get){e.next=11;break}if(v=a.replace(/^\//,""),y=p.baseDir?p.baseDir+"/"+v:v,(m=p.get(y))||(m=p.get(a)),m||(m=p.get(v)),!m){e.next=11;break}return g=new Blob([m],{type:"audio/mpeg"}),_=URL.createObjectURL(g),e.next=10,We.load(_);case 10:return b=e.sent,e.abrupt("return",O(i,b));case 11:return e.next=12,De(a);case 12:if(w=e.sent){e.next=13;break}return e.abrupt("return",O(i,-1));case 13:return k=new Blob([w]),E=URL.createObjectURL(k),e.next=14,We.load(E);case 14:return S=e.sent,e.abrupt("return",O(i,S));case 15:return e.prev=15,e.catch(1),e.abrupt("return",O(i,-1));case 16:case"end":return e.stop()}},e,null,[[1,15]])})),function(e){return i.apply(this,arguments)})},{key:"unload",value:function(e){We.unload(e);for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return O(n,null)}},{key:"play",value:(r=l(c.mark(function e(t,n,r,i,o,a){var s,u,l,d,h=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(s=h.length,u=new Array(s>6?s-6:0),l=6;l<s;l++)u[l-6]=h[l];return e.prev=1,e.next=2,We.play(t,n,r,i,o,a);case 2:return d=e.sent,e.abrupt("return",O(u,d));case 3:return e.prev=3,e.catch(1),e.abrupt("return",O(u,-1));case 4:case"end":return e.stop()}},e,null,[[1,3]])})),function(e,t,n,i,o,a){return r.apply(this,arguments)})},{key:"pause",value:function(e){We.pause(e);for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return O(n,null)}},{key:"autoPause",value:function(){We.autoPause();for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return O(t,null)}},{key:"resume",value:function(e){We.resume(e);for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return O(n,null)}},{key:"autoResume",value:function(){We.autoResume();for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return O(t,null)}},{key:"stop",value:function(e){We.stop(e);for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return O(n,null)}},{key:"setVolume",value:function(e,t,n){We.setVolume(e,t,n);for(var r=arguments.length,i=new Array(r>3?r-3:0),o=3;o<r;o++)i[o-3]=arguments[o];return O(i,null)}},{key:"setRate",value:function(e,t){We.setRate(e,t);for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return O(r,null)}},{key:"setPriority",value:function(e,t){We.setPriority(e,t);for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return O(r,null)}},{key:"setLoop",value:function(e,t){We.setLoop(e,t);for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return O(r,null)}},{key:"release",value:function(){We.release();for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return O(t,null)}},{key:"playLocalFile",value:(t=l(c.mark(function e(t){var r,i,o,a,s,u,l,d,h,f,p,v,y,m,g,_,b,w,k,E,S,A,x,C,T,L,P,I=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(r=I.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=I[o];if(e.prev=1,!(a=Be(t))||!a.startsWith("data:")){e.next=4;break}return e.next=2,We.load(a);case 2:return s=e.sent,e.next=3,We.play(s,1,1,0,0,1);case 3:return u=e.sent,e.abrupt("return",O(i,u));case 4:if(!a||!a.startsWith("http://")&&!a.startsWith("https://")){e.next=7;break}return e.next=5,We.load(a);case 5:return l=e.sent,e.next=6,We.play(l,1,1,0,0,1);case 6:return d=e.sent,e.abrupt("return",O(i,d));case 7:if(!n.g.__WEB_FILE_URL_MAP__||!n.g.__WEB_FILE_URL_MAP__.has(a)){e.next=10;break}return h=n.g.__WEB_FILE_URL_MAP__.get(a),e.next=8,We.load(h);case 8:return f=e.sent,e.next=9,We.play(f,1,1,0,0,1);case 9:return p=e.sent,e.abrupt("return",O(i,p));case 10:if(!(v=Fe(a))){e.next=13;break}return e.next=11,We.load(v);case 11:return y=e.sent,e.next=12,We.play(y,1,1,0,0,1);case 12:return m=e.sent,e.abrupt("return",O(i,m));case 13:if(!(g=window.__VIRTUAL_FS__)||!g.get){e.next=16;break}if(_=a.replace(/^\//,""),b=g.baseDir?g.baseDir+"/"+_:_,(w=g.get(b))||(w=g.get(a)),w||(w=g.get(_)),!w){e.next=16;break}return k=new Blob([w],{type:"audio/mpeg"}),E=URL.createObjectURL(k),e.next=14,We.load(E);case 14:return S=e.sent,e.next=15,We.play(S,1,1,0,0,1);case 15:return A=e.sent,e.abrupt("return",O(i,A));case 16:return e.next=17,De(a);case 17:if(x=e.sent){e.next=18;break}return e.abrupt("return",O(i,-1));case 18:return C=new Blob([x]),T=URL.createObjectURL(C),e.next=19,We.load(T);case 19:return L=e.sent,e.next=20,We.play(L,1,1,0,0,1);case 20:return P=e.sent,e.abrupt("return",O(i,P));case 21:return e.prev=21,e.catch(1),e.abrupt("return",O(i,-1));case 22:case"end":return e.stop()}},e,null,[[1,21]])})),function(e){return t.apply(this,arguments)})},{key:"playNetworkFile",value:(e=l(c.mark(function e(t){var n,r,i,o,a=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(n=t,t&&"object"==typeof t&&(n=t.fileUrl||t.url||t.fileName),r=a.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=a[o];if(n){e.next=1;break}return e.abrupt("return",O(i,-1));case 1:return e.abrupt("return",this.playLocalFile.apply(this,[n].concat(i)));case 2:case"end":return e.stop()}},e,this)})),function(t){return e.apply(this,arguments)})},{key:"destroy",value:function(){We.release()}}]);var e,t,r,i}(),Ue="files",Ge=null;function ze(){return window.__VIRTUAL_FS__||null}function Ye(e){if(n.g.__WEB_FILE_URL_MAP__&&n.g.__WEB_FILE_URL_MAP__.has(e))return n.g.__WEB_FILE_URL_MAP__.get(e)||null;var t=function(e){var t;if("string"!=typeof e||!e.startsWith("/"))return null;if(!/^\/(?:audio|assets)\/.+\.(mp3|wav|ogg|m4a|aac|webm)$/i.test(e))return null;if("undefined"==typeof window||null===(t=window.location)||void 0===t||!t.origin)return null;var n=window.__VIRTUAL_FS__;if(n&&n.has){var r=e.replace(/^\//,""),i=n.baseDir?n.baseDir+"/"+r:r;if(n.has(i)||n.has(e))return null}return"".concat(window.location.origin).concat(e)}(e);return t?(n.g.__WEB_FILE_URL_MAP__||(n.g.__WEB_FILE_URL_MAP__=new Map),n.g.__WEB_FILE_URL_MAP__.set(e,t),t):null}function qe(e){return null==e?0:"string"==typeof e?e.length:"number"==typeof e.byteLength?e.byteLength:"number"==typeof e.length?e.length:0}function Xe(){return new Promise(function(e,t){if(Ge)e(Ge);else{var n=indexedDB.open("es_vfs_db",1);n.onerror=function(){t(n.error)},n.onsuccess=function(){Ge=n.result,e(Ge)},n.onupgradeneeded=function(e){var t=e.target.result;t.objectStoreNames.contains(Ue)||t.createObjectStore(Ue,{keyPath:"path"})}}})}function Ke(e){return $e.apply(this,arguments)}function $e(){return($e=l(c.mark(function e(t){var n;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=1,Xe();case 1:return n=e.sent,e.next=2,new Promise(function(e,r){var i=n.transaction([Ue],"readonly").objectStore(Ue).get(t);i.onsuccess=function(){e(i.result||null)},i.onerror=function(){r(i.error)}});case 2:return e.abrupt("return",e.sent);case 3:return e.prev=3,e.catch(0),e.abrupt("return",null);case 4:case"end":return e.stop()}},e,null,[[0,3]])}))).apply(this,arguments)}function Ze(e){return Je.apply(this,arguments)}function Je(){return(Je=l(c.mark(function e(t){var n,r,i,o;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n=Ye(t))){e.next=1;break}return e.abrupt("return",{exists:!0,length:n.length,source:"map"});case 1:if(!(r=ze())||!r.has(t)){e.next=2;break}return i=r.get(t),e.abrupt("return",{exists:!0,length:qe(i),source:"virtual-fs"});case 2:return e.next=3,Ke(t);case 3:if(!(o=e.sent)){e.next=4;break}return e.abrupt("return",{exists:!0,length:qe(o.data),source:"indexeddb"});case 4:return e.abrupt("return",{exists:!1,length:0,source:null});case 5:case"end":return e.stop()}},e)}))).apply(this,arguments)}function Qe(e){return"string"==typeof e&&e.startsWith("data:")}var et=new Map,tt=function(){return L(function e(t){x(this,e),(0,b.A)(this,"name","AndroidFileModule"),this.context=t},[{key:"init",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t&&t.length?t[t.length-1]:null;return r&&"function"==typeof r.resolve&&r.resolve(!0),Promise.resolve(!0)}},{key:"newESFile",value:(j=l(c.mark(function e(t){var n,r,i,o,a,s,u,l=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n=String((null==t?void 0:t.pathname)||(null==t?void 0:t.id)||""),r=Qe(n),i={id:n,path:n,exists:r,isDirectory:!1,isFile:r,length:r?n.length:0,lastModified:Date.now()},r){e.next=2;break}return e.next=1,Ze(n);case 1:o=e.sent,i.exists=o.exists,i.isFile=o.exists,i.length=o.length;case 2:for(et.set(n,i),a=l.length,s=new Array(a>1?a-1:0),u=1;u<a;u++)s[u-1]=l[u];return e.abrupt("return",O(s,n));case 3:case"end":return e.stop()}},e)})),function(e){return j.apply(this,arguments)})},{key:"newFile",value:(B=l(c.mark(function e(t){var n,r,i,o,a,s,u,l=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n="",n=String("object"==typeof t&&null!==t?t.pathname||t.path||"":t||""),r=Qe(n),i={id:n,path:n,exists:r,isDirectory:!1,isFile:r,length:r?n.length:0,lastModified:Date.now()},r){e.next=2;break}return e.next=1,Ze(n);case 1:o=e.sent,i.exists=o.exists,i.isFile=o.exists,i.length=o.length,o.source;case 2:for(et.set(n,i),a=l.length,s=new Array(a>1?a-1:0),u=1;u<a;u++)s[u-1]=l[u];return e.abrupt("return",O(s,n));case 3:case"end":return e.stop()}},e)})),function(e){return B.apply(this,arguments)})},{key:"newAbsolutePathFile",value:(F=l(c.mark(function e(t){var n,r,i,o,a=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(n=String(t||""),r=a.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=a[o];return e.abrupt("return",this.newFile.apply(this,[n].concat(i)));case 1:case"end":return e.stop()}},e,this)})),function(e){return F.apply(this,arguments)})},{key:"getPath",value:(M=l(c.mark(function e(t){var n,r,i,o,a=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(n="","object"==typeof t&&null!==t?n=String(t.id||t.path||""):null!=t&&(n=String(t)),r=a.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=a[o];return e.abrupt("return",O(i,n));case 1:case"end":return e.stop()}},e)})),function(e){return M.apply(this,arguments)})},{key:"isAbsolute",value:(D=l(c.mark(function e(t){var n,r,i,o,a=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(n="","object"==typeof t&&null!==t?n=String(t.id||""):null!=t&&(n=String(t)),r=a.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=a[o];if(!Qe(n)){e.next=1;break}return e.abrupt("return",O(i,!0));case 1:return e.abrupt("return",O(i,n.startsWith("/")));case 2:case"end":return e.stop()}},e)})),function(e){return D.apply(this,arguments)})},{key:"isDirectory",value:(R=l(c.mark(function e(t){var n,r,i,o,a,s=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(n=(null==t?void 0:t.id)||"",r=et.get(n),i=s.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=s[a];return e.abrupt("return",O(o,(null==r?void 0:r.isDirectory)||!1));case 1:case"end":return e.stop()}},e)})),function(e){return R.apply(this,arguments)})},{key:"canRead",value:(N=l(c.mark(function e(t){var n,r,i,o,a,s=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=(null==t?void 0:t.id)||"",e.next=1,Ze(n);case 1:for(r=e.sent,i=s.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=s[a];return e.abrupt("return",O(o,r.exists));case 2:case"end":return e.stop()}},e)})),function(e){return N.apply(this,arguments)})},{key:"canWrite",value:(I=l(c.mark(function e(t){var n,r,i,o=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(null==t||t.id,n=o.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=o[i];return e.abrupt("return",O(r,!0));case 1:case"end":return e.stop()}},e)})),function(e){return I.apply(this,arguments)})},{key:"exists",value:(P=l(c.mark(function e(t){var n,r,i,o,a,s,u=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(n="","object"==typeof t&&null!==t?n=String(t.id||t.path||""):null!=t&&(n=String(t)),n=n.replace(/^\/+/g,"/"),r=u.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=u[o];if(!Qe(n)){e.next=1;break}return e.abrupt("return",O(i,!0));case 1:if(!Ye(n)){e.next=2;break}return e.abrupt("return",O(i,!0));case 2:if(!(a=et.get(n))){e.next=3;break}return e.abrupt("return",O(i,a.exists));case 3:return e.next=4,Ze(n);case 4:return(s=e.sent).exists&&et.set(n,{id:n,path:n,exists:!0,isDirectory:!1,isFile:!0,length:s.length,lastModified:Date.now()}),e.abrupt("return",O(i,s.exists));case 5:case"end":return e.stop()}},e)})),function(e){return P.apply(this,arguments)})},{key:"length",value:(T=l(c.mark(function e(t){var n,r,i,o,a,s=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=(null==t?void 0:t.id)||"",e.next=1,Ze(n);case 1:for(r=e.sent,i=s.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=s[a];return e.abrupt("return",O(o,r.length));case 2:case"end":return e.stop()}},e)})),function(e){return T.apply(this,arguments)})},{key:"createNewFile",value:(C=l(c.mark(function e(t){var n,r,i,o,a,s=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(n=(null==t?void 0:t.id)||"",r=ze(),i=s.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=s[a];if(!r){e.next=1;break}return r.set(n,new Uint8Array(0)),e.abrupt("return",O(o,!0));case 1:return e.abrupt("return",O(o,!1));case 2:case"end":return e.stop()}},e)})),function(e){return C.apply(this,arguments)})},{key:"deleteOnExit",value:(A=l(c.mark(function e(t){var n,r,i,o=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(null==t||t.id,n=o.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=o[i];return e.abrupt("return",O(r,!0));case 1:case"end":return e.stop()}},e)})),function(e){return A.apply(this,arguments)})},{key:"delete",value:(S=l(c.mark(function e(t){var n,r,i,o,a,s=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(n=(null==t?void 0:t.id)||"",r=ze(),i=s.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=s[a];if(!r||!r.has(n)){e.next=1;break}return r.files.delete(n),r.files.delete("/"+n),et.delete(n),e.abrupt("return",O(o,!0));case 1:return e.abrupt("return",O(o,!1));case 2:case"end":return e.stop()}},e)})),function(e){return S.apply(this,arguments)})},{key:"list",value:(E=l(c.mark(function e(t){var n,r,i,o,a,s,u,l=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(n=(null==t?void 0:t.id)||"",r=ze(),i=l.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=l[a];if(!r){e.next=1;break}return s=r.list(),u=s.filter(function(e){return e.startsWith(n)}),e.abrupt("return",O(o,u));case 1:return e.abrupt("return",O(o,[]));case 2:case"end":return e.stop()}},e)})),function(e){return E.apply(this,arguments)})},{key:"mkdir",value:(k=l(c.mark(function e(t){var n,r,i,o=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(null==t||t.id,n=o.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=o[i];return e.abrupt("return",O(r,!0));case 1:case"end":return e.stop()}},e)})),function(e){return k.apply(this,arguments)})},{key:"mkdirs",value:(w=l(c.mark(function e(t){var n,r,i,o=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(null==t||t.id,n=o.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=o[i];return e.abrupt("return",O(r,!0));case 1:case"end":return e.stop()}},e)})),function(e){return w.apply(this,arguments)})},{key:"renameTo",value:(_=l(c.mark(function e(t){var n,r,i,o,a,s,u,l=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(n=(null==t?void 0:t.id)||"",r=(null==t?void 0:t.destPath)||"",i=ze(),o=l.length,a=new Array(o>1?o-1:0),s=1;s<o;s++)a[s-1]=l[s];if(!i){e.next=1;break}if(!(u=i.get(n))){e.next=1;break}return i.set(r,u),i.files.delete(n),i.files.delete("/"+n),e.abrupt("return",O(a,!0));case 1:return e.abrupt("return",O(a,!1));case 2:case"end":return e.stop()}},e)})),function(e){return _.apply(this,arguments)})},{key:"setLastModified",value:(g=l(c.mark(function e(t){var n,r,i,o=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(null==t||t.id,n=o.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=o[i];return e.abrupt("return",O(r,!0));case 1:case"end":return e.stop()}},e)})),function(e){return g.apply(this,arguments)})},{key:"setReadOnly",value:(m=l(c.mark(function e(t){var n,r,i,o=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(null==t||t.id,n=o.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=o[i];return e.abrupt("return",O(r,!0));case 1:case"end":return e.stop()}},e)})),function(e){return m.apply(this,arguments)})},{key:"setWritable",value:(y=l(c.mark(function e(t){var n,r,i,o=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(null==t||t.id,n=o.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=o[i];return e.abrupt("return",O(r,!0));case 1:case"end":return e.stop()}},e)})),function(e){return y.apply(this,arguments)})},{key:"lastModified",value:(v=l(c.mark(function e(t){var n,r,i,o=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(null==t||t.id,n=o.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=o[i];return e.abrupt("return",O(r,Date.now()));case 1:case"end":return e.stop()}},e)})),function(e){return v.apply(this,arguments)})},{key:"getName",value:(p=l(c.mark(function e(t){var n,r,i,o,a,s=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(n=(null==t?void 0:t.id)||"",r=n.split("/"),i=s.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=s[a];return e.abrupt("return",O(o,r[r.length-1]||""));case 1:case"end":return e.stop()}},e)})),function(e){return p.apply(this,arguments)})},{key:"getParent",value:(f=l(c.mark(function e(t){var n,r,i,o,a,s=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(n=(null==t?void 0:t.id)||"",r=n.lastIndexOf("/"),i=s.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=s[a];if(!(r>0)){e.next=1;break}return e.abrupt("return",O(o,n.substring(0,r)));case 1:return e.abrupt("return",O(o,""));case 2:case"end":return e.stop()}},e)})),function(e){return f.apply(this,arguments)})},{key:"getParentFile",value:(h=l(c.mark(function e(t){var n,r,i,o,a=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return null==t||t.id,e.next=1,this.getParent(t);case 1:if(!(n=e.sent)){e.next=2;break}return e.abrupt("return",this.newESFile({id:n}));case 2:for(r=a.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=a[o];return e.abrupt("return",O(i,null));case 3:case"end":return e.stop()}},e,this)})),function(e){return h.apply(this,arguments)})},{key:"getAbsolutePath",value:(d=l(c.mark(function e(t){var n,r,i,o,a=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(n=(null==t?void 0:t.id)||"",r=a.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=a[o];return e.abrupt("return",O(i,n));case 1:case"end":return e.stop()}},e)})),function(e){return d.apply(this,arguments)})},{key:"getAbsoluteFile",value:(u=l(c.mark(function e(t){var n;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=(null==t?void 0:t.id)||"",e.abrupt("return",this.newESFile({id:n}));case 1:case"end":return e.stop()}},e,this)})),function(e){return u.apply(this,arguments)})},{key:"getCanonicalPath",value:(s=l(c.mark(function e(t){var n,r,i,o,a=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(n=(null==t?void 0:t.id)||"",r=a.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=a[o];return e.abrupt("return",O(i,n));case 1:case"end":return e.stop()}},e)})),function(e){return s.apply(this,arguments)})},{key:"getCanonicalFile",value:(a=l(c.mark(function e(t){var n;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=(null==t?void 0:t.id)||"",e.abrupt("return",this.newESFile({id:n}));case 1:case"end":return e.stop()}},e,this)})),function(e){return a.apply(this,arguments)})},{key:"toURL",value:(o=l(c.mark(function e(t){var n,r,i,o,a=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(n=(null==t?void 0:t.id)||"",r=a.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=a[o];return e.abrupt("return",O(i,"file://"+n));case 1:case"end":return e.stop()}},e)})),function(e){return o.apply(this,arguments)})},{key:"toURI",value:(i=l(c.mark(function e(t){var n,r,i,o,a=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(n=(null==t?void 0:t.id)||"",r=a.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=a[o];return e.abrupt("return",O(i,"file://"+n));case 1:case"end":return e.stop()}},e)})),function(e){return i.apply(this,arguments)})},{key:"getFreeSpace",value:(r=l(c.mark(function e(t){var n,r,i,o=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(null==t||t.id,n=o.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=o[i];return e.abrupt("return",O(r,1073741824));case 1:case"end":return e.stop()}},e)})),function(e){return r.apply(this,arguments)})},{key:"getTotalSpace",value:(n=l(c.mark(function e(t){var n,r,i,o=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(null==t||t.id,n=o.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=o[i];return e.abrupt("return",O(r,10737418240));case 1:case"end":return e.stop()}},e)})),function(e){return n.apply(this,arguments)})},{key:"getUsableSpace",value:(t=l(c.mark(function e(t){var n,r,i,o=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(null==t||t.id,n=o.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=o[i];return e.abrupt("return",O(r,5368709120));case 1:case"end":return e.stop()}},e)})),function(e){return t.apply(this,arguments)})},{key:"compareTo",value:(e=l(c.mark(function e(t){var n,r,i,o,a,s=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(n=(null==t?void 0:t.id)||"",r=(null==t?void 0:t.otherPath)||"",i=s.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=s[a];return e.abrupt("return",O(o,n.localeCompare(r)));case 1:case"end":return e.stop()}},e)})),function(t){return e.apply(this,arguments)})},{key:"destroy",value:function(){et.clear()}}]);var e,t,n,r,i,o,a,s,u,d,h,f,p,v,y,m,g,_,w,k,E,S,A,C,T,P,I,N,R,D,M,F,B,j}(),nt=null,rt=!1;function it(){var e;ae("NetSpeed",{speedKbps:e=Math.floor(5e3*Math.random())+100,speedMbps:(e/1024).toFixed(2)})}var ot=new(function(){return L(function e(t){x(this,e),this.context=t,this.name="ESNetworkSpeedModule"},[{key:"showNetSpeed",value:function(){rt||(rt=!0,it(),nt=setInterval(function(){it()},500))}},{key:"stopNetSpeed",value:function(){rt&&(nt&&(clearInterval(nt),nt=null),rt=!1)}},{key:"isShowing",value:function(){return rt}},{key:"destroy",value:function(){this.stopNetSpeed()}},{key:"init",value:function(){return Promise.resolve(!0)}}])}());function at(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return st(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?st(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function st(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ut(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function lt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ut(Object(n),!0).forEach(function(t){(0,b.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ut(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}n.g.__WEB_FILE_URL_MAP__||(n.g.__WEB_FILE_URL_MAP__=new Map);var ct=function(){return L(function e(t){x(this,e),this.context=t,this._downloads=new Map,this._listeners=new Map,this._downloadCacheDir="/vfs",this._progressThrottleInterval=500},[{key:"initDownload",value:function(e,t){e&&(this._downloadCacheDir=e),t&&(this._progressThrottleInterval=t);for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return O(r,!0)}},{key:"initDownloadPath",value:function(e,t){this._downloadCacheDir=e||"/vfs",this._progressThrottleInterval=t||500;for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return O(r,!0)}},{key:"download",value:(t=l(c.mark(function e(t){var n,r,i,o=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(n=o.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=o[i];if(!(this._listeners.size>0)){e.next=1;break}return this._notifyListener("onDownloadInit",t),e.abrupt("return",O(r,!0));case 1:return e.abrupt("return",this.start.apply(this,[t].concat(r)));case 2:case"end":return e.stop()}},e,this)})),function(e){return t.apply(this,arguments)})},{key:"start",value:(e=l(c.mark(function e(t){var r,i,o,a,s,u,l,d,h=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(r=null==t?void 0:t.id,i=null==t?void 0:t.fileUrl,o=h.length,a=new Array(o>1?o-1:0),s=1;s<o;s++)a[s-1]=h[s];if(null!=r&&i){e.next=1;break}return e.abrupt("return",O(a,!1));case 1:return u=(null==t?void 0:t.fileName)||this._extractFileName(i),l=this._downloadCacheDir+"/"+u,d=lt({id:r,url:i,fileName:u,filePath:l,fileLength:0,downloadLength:0,status:"pending"},t),this._downloads.set(r,d),n.g.__WEB_FILE_URL_MAP__.set(l,i),this._notifyListener("onDownloadStart",d),d.status="completed",this._notifyListener("onDownloadSuccess",d),e.abrupt("return",O(a,!0));case 2:case"end":return e.stop()}},e,this)})),function(t){return e.apply(this,arguments)})},{key:"stop",value:function(e){var t=null==e?void 0:e.id,n=this._downloads.get(t);n&&(n.status="stopped",this._notifyListener("onDownloadStop",n));for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];return O(i,!0)}},{key:"cancel",value:function(e){var t=null==e?void 0:e.id,n=this._downloads.get(t);n&&(n.status="cancelled",this._notifyListener("onDownloadCancel",n),this._downloads.delete(t));for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];return O(i,!0)}},{key:"registerDownloadListener",value:function(e,t){this._listeners.set(e,t)}},{key:"unregisterDownloadListener",value:function(e){this._listeners.delete(e)}},{key:"addListener",value:function(e,t){return this._listeners.set(e,t),!0}},{key:"removeListener",value:function(e){if(this._listeners.has(e))return this._listeners.delete(e),!0;var t,n=at(this._listeners.entries());try{for(n.s();!(t=n.n()).done;){var r=s(t.value,2),i=r[0];if(r[1]===e)return this._listeners.delete(i),!0}}catch(e){n.e(e)}finally{n.f()}return!1}},{key:"_notifyListener",value:function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];this._listeners.forEach(function(n){if("function"==typeof n[e])try{n[e].apply(n,[t].concat(r))}catch(e){}})}},{key:"_extractFileName",value:function(e){try{var t=new URL(e).pathname.split("/");return t[t.length-1]||"download"}catch(e){return"download"}}},{key:"init",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return P(t)}},{key:"destroy",value:function(){this._downloads.clear(),this._listeners.clear()}}]);var e,t}(),dt=n(824);function ht(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}var ft=new Pe(null),pt=new He(null),vt=new tt(null),yt=new ct(null);n.g.__WEB_MODULES__||(n.g.__WEB_MODULES__={}),n.g.__WEB_MODULES__.ESIJKAudioPlayerModule=ft,n.g.__WEB_MODULES__.ESSoundPoolAudioPlayerModule=pt,n.g.__WEB_MODULES__.ESSoundPoolPlayerModule=pt,n.g.__WEB_MODULES__.AndroidFileModule=vt,n.g.__WEB_MODULES__.ESNetworkSpeedModule=ot,n.g.__WEB_MODULES__.ESDownloadModule=yt;var mt=null,gt=!1,_t=!1;function bt(){void 0!==n.g.Hippy&&n.g.Hippy.device?(n.g.Hippy.device.window={width:E,height:S,scale:1,fontScale:1,statusBarHeight:0,navigatorBarHeight:0},n.g.Hippy.device.screen={width:E,height:S,scale:1,fontScale:1,statusBarHeight:0,navigatorBarHeight:0},n.g.Hippy.device.pixelRatio=1):setTimeout(bt,10)}function wt(){var e=document.getElementById("app");e?(e.style.width=E+"px",e.style.height=S+"px",new MutationObserver(function(){e.style.width===E+"px"&&e.style.height===S+"px"||(e.style.width=E+"px",e.style.height=S+"px")}).observe(e,{attributes:!0,attributeFilter:["style"]})):setTimeout(wt,10)}var kt=["focusColor","focusBackgroundColor","focusTextColor","focusBorderColor","focusBorderWidth","focusBorderRadius","focusOpacity","focusScale","selectColor","selectBackgroundColor"],Et=["focusBorderWidth","focusBorderRadius","focusOpacity","focusScale"];function St(e){if("number"!=typeof e)return e;var t=(e>>24&255)/255,n=e>>8&255,r=255&e;return"rgba(".concat(e>>16&255,", ").concat(n,", ").concat(r,", ").concat(t,")")}var At={0:"to bottom",1:"to bottom left",2:"to left",3:"to top left",4:"to top",5:"to top right",6:"to right",7:"to bottom right"};function xt(e){var t,n;if(!e||!e.colors||0===e.colors.length)return null;var r=e.colors.map(function(e){return function(e){if("string"!=typeof e)return e;if(/^#[0-9A-Fa-f]{8}$/.test(e)){var t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9),o=parseInt(t,16)/255,a=parseInt(n,16),s=parseInt(r,16),u=parseInt(i,16);return"rgba(".concat(a,", ").concat(s,", ").concat(u,", ").concat(o,")")}if(/^#[0-9A-Fa-f]{4}$/.test(e)){var l=e.substring(1,2)+e.substring(1,2),c=e.substring(2,3)+e.substring(2,3),d=e.substring(3,4)+e.substring(3,4),h=e.substring(4,5)+e.substring(4,5),f=parseInt(l,16)/255,p=parseInt(c,16),v=parseInt(d,16),y=parseInt(h,16);return"rgba(".concat(p,", ").concat(v,", ").concat(y,", ").concat(f,")")}return e}(e)}),i=null!==(t=e.orientation)&&void 0!==t?t:6,o=null!==(n=e.type)&&void 0!==n?n:0,a=e.cornerRadius,s=e.cornerRadii4,u=e.cornerRadii8,l="";if(1===o){var c=e.gradientRadius||"farthest-corner";l="radial-gradient(circle ".concat(c,", ").concat(r.join(", "),")")}else{l="linear-gradient(".concat(At[i]||"to right",", ").concat(r.join(", "),")")}var d="";return u&&8===u.length?d="".concat(u[0],"px ").concat(u[2],"px ").concat(u[4],"px ").concat(u[6],"px / ").concat(u[1],"px ").concat(u[3],"px ").concat(u[5],"px ").concat(u[7],"px"):s&&4===s.length?d="".concat(s[0],"px ").concat(s[1],"px ").concat(s[2],"px ").concat(s[3],"px"):null!=a&&(d="".concat(a,"px")),{background:l,borderRadius:d}}function Ct(e,t){if(!t||"object"!=typeof t)return t;if(!e||!e.setAttribute)return t;var n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ht(Object(n),!0).forEach(function(t){(0,b.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ht(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},t);["gap","rowGap","columnGap"].forEach(function(e){delete n[e]});var r=t.gradientBackground;if(r){var i=xt(r);i&&(n.background=i.background,i.borderRadius&&(n.borderRadius=i.borderRadius)),delete n.gradientBackground}return kt.forEach(function(r){var i,o=r.replace(/([A-Z])/g,"-$1").toLowerCase(),a=t[r]||t[o];void 0!==a&&(i=Et.includes(r)?a:"number"==typeof a?St(a):a,e.setAttribute("data-"+o,String(i)),delete n[r],delete n[o])}),n}function Tt(){var e=["focus-color","focus-background-color","focus-background","focus-text-color","focus-border-color","focus-border-width","focus-border-radius","focus-opacity","focus-scale","select-color","select-background-color"],t=function(n){n&&Array.from(n).forEach(function(n){if(n){var r,i=n.type;i===CSSRule.STYLE_RULE?(r=n.style)&&e.forEach(function(e){var t=r.getPropertyValue(e);if(t){var n="--"+e;r.getPropertyValue(n)||r.setProperty(n,t.trim())}}):i!==CSSRule.MEDIA_RULE&&i!==CSSRule.SUPPORTS_RULE&&i!==CSSRule.DOCUMENT_RULE||t(n.cssRules)}})};Array.from(document.styleSheets||[]).forEach(function(e){try{t(e.cssRules)}catch(e){}})}var Lt=null;function Ot(e){var t,n,r=null===(t=e.context)||void 0===t||null===(n=t.getModuleByName)||void 0===n?void 0:n.call(t,"UIManagerModule");if(r&&!r._addEventListenerPatched){r.addEventListener.bind(r);r.addEventListener=function(e,t,n){var i=r.findViewById(e);i&&i.addEventListener&&i.addEventListener(t,n)};var i=r.defaultUpdateViewProps.bind(r);return r.defaultUpdateViewProps=function(t,n){if(t.dom){null!=n&&n.style&&("ESPageRootView"!==t._originalComponentName&&"ESPageRouterView"!==t._originalComponentName||n.style.backgroundColor&&"transparent"!==n.style.backgroundColor||n.isDialogMode||(n.style.backgroundColor="#000000"),n.style=(0,dt.Zd)(Ct(t.dom,n.style)));var o=function(e){return e?"string"==typeof e?e:Array.isArray(e)?e.map(o).filter(Boolean).join(" "):"object"==typeof e?Object.keys(e).filter(function(t){return e[t]}).join(" "):String(e):""},a=function(e,t){var n=o(t);n&&n.split(/\s+/).filter(Boolean).forEach(function(t){return e.classList.add(t)})},s=function(e,t){e&&e.setAttribute&&t&&kt.forEach(function(n){var r,i=n.replace(/([A-Z])/g,"-$1").toLowerCase(),o=null!==(r=t[n])&&void 0!==r?r:t[i];if(null!=o){var a=Et.includes(n)?o:"number"==typeof o?St(o):o;e.setAttribute("data-"+i,String(a))}})};a(t.dom,(null==n?void 0:n.className)||(null==n?void 0:n.class)),s(t.dom,n);var u=r.findViewById(t.pId);if(u&&u.dom){if(i(t,n),a(t.dom,(null==n?void 0:n.className)||(null==n?void 0:n.class)),s(t.dom,n),null!=n&&n.gradientBackground){var l=xt(n.gradientBackground);l&&(t.dom.style.background=l.background,l.borderRadius&&(t.dom.style.borderRadius=l.borderRadius))}}else{Object.keys(n);if(n.style){var c=e.context.getModuleByName("HippyWeb");null!=c&&c.setElementStyle?c.setElementStyle(t.dom,n.style):Object.assign(t.dom.style,(0,dt.Zd)(n.style))}}}},r._addEventListenerPatched=!0,!0}return!1}function Pt(e){var t,n=null==e?void 0:e.key,r=null!==(t=null==e?void 0:e.keyCode)&&void 0!==t?t:null==e?void 0:e.which;switch(n){case"ArrowUp":r=19;break;case"ArrowDown":r=20;break;case"ArrowLeft":r=21;break;case"ArrowRight":r=22;break;case"Enter":r=23;break;case"Escape":r=4}return{keyCode:r,key:n,code:null==e?void 0:e.code,repeat:null==e?void 0:e.repeat,altKey:null==e?void 0:e.altKey,ctrlKey:null==e?void 0:e.ctrlKey,shiftKey:null==e?void 0:e.shiftKey,metaKey:null==e?void 0:e.metaKey,nativeEvent:e}}function It(e){switch(e){case 17:return"left";case 33:return"up";case 66:return"right";case 130:return"down";case 2:return"forward";case 1:return"backward";default:return null}}function Nt(e,t){if(!e||!t)return 1/0;if(e===t)return 0;for(var n=new Set,r=e.parentElement,i=0;r&&r!==document.body;)n.add(r),r._tempDepth=++i,r=r.parentElement;for(r=t.parentElement;r&&r!==document.body;){if(n.has(r)){for(var o=r._tempDepth||0,a=e.parentElement;a&&a!==document.body;)delete a._tempDepth,a=a.parentElement;return o}r=r.parentElement}for(var s=e.parentElement;s&&s!==document.body;)delete s._tempDepth,s=s.parentElement;return 1/0}function Rt(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Dt(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Dt(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function Dt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Mt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ft(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Mt(Object(n),!0).forEach(function(t){(0,b.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mt(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Bt=function(){return L(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};x(this,e),this.options=Ft({useDistanceBasedNavigation:!0,crossDistanceWeight:.5,directionalAngleThreshold:60,blockedDirectionalAngleThreshold:40,directionalAngleOffset:20},t)},[{key:"setOptions",value:function(e){this.options=Ft(Ft({},this.options),e)}},{key:"findBestCandidate",value:function(e,t,n){return this.options.useDistanceBasedNavigation?this._findBestCandidateByDistance(e,t,n):this._findBestCandidateSequential(e,t,n)}},{key:"_findBestCandidateByDistance",value:function(e,t,n){var r=this,i=e.getBoundingClientRect(),o={x:i.left+i.width/2,y:i.top+i.height/2},a=null,s=1/0,u=(this.options.crossDistanceWeight,function(e,t){for(var n=e.parentElement;n&&n!==document.body;){var r=n.getAttribute("blockFocusDirections")||n.getAttribute("blockfocusdirections");if(r){var i=[];try{i=JSON.parse(r.replace(/'/g,'"')),Array.isArray(i)||(i=[])}catch(e){i=r.split(",").map(function(e){return e.trim().toLowerCase()}).filter(function(e){return e})}if(i.some(function(e){return e.toLowerCase()===t.toLowerCase()}))return!0}n=n.parentElement}return!1}(e,t)),l=new Set;return n.forEach(function(c){if(c!==e&&c&&document.body.contains(c)){var d=window.getComputedStyle(c);if("none"!==d.display&&"hidden"!==d.visibility){var h=r._findParentList(c);if(!h||h===e||l.has(h)){if(!h||!l.has(h)){var f=c.getBoundingClientRect();if(0!==f.width||0!==f.height){var p=f.left+f.width/2,v=f.top+f.height/2,y=p-o.x,m=v-o.y,g=!1,_=0,b=0;switch(t){case"up":if(m>=0)return;g=!0,_=Math.max(0,i.top-f.bottom),b=Math.abs(y);break;case"down":if(m<=0)return;g=!0,_=Math.max(0,f.top-i.bottom),b=Math.abs(y);break;case"left":if(y>=0)return;g=!0,_=Math.max(0,i.left-f.right),b=Math.abs(m);break;case"right":if(y<=0)return;g=!0,_=Math.max(0,f.left-i.right),b=Math.abs(m)}var w=c.getAttribute("selected"),k=c.hasAttribute("selected")&&"false"!==w,E=null!==c.querySelector('[selected="true"]'),S=k||E;if(g&&!S&&r._exceedsDirectionalAngle(t,y,m,u)){u?r.options.blockedDirectionalAngleThreshold:r.options.directionalAngleThreshold;g=!1}if(g){for(var A=!1,x=e.parentElement;x&&x!==document.body;){var C=x.getAttribute("blockFocusDirections")||x.getAttribute("blockfocusdirections");if(C){var T=[];try{T=JSON.parse(C.replace(/'/g,'"')),Array.isArray(T)||(T=[])}catch(e){T=C.split(",").map(function(e){return e.trim().toLowerCase()}).filter(function(e){return e})}if(T.some(function(e){return e.toLowerCase()===t.toLowerCase()})&&!x.contains(c)){A=!0;break}}x=x.parentElement}if(A)return;var L=!1,O=0;if("left"===t||"right"===t){var P=Math.max(0,Math.min(f.bottom,i.bottom)-Math.max(f.top,i.top));L=P>0,O=P/Math.min(f.height,i.height),b*=L?1-.9*O:50}else if("up"===t||"down"===t){var I=Math.max(0,Math.min(f.right,i.right)-Math.max(f.left,i.left));L=I>0,O=I/Math.min(f.width,i.width),b*=L?1-.9*O:50}var N=Nt(e,c),R=_+b+(L?0:1e4)+(N<=1?-500:N<=2?-200:N<=3?-50:0)+(S?-1e3:0);R<s&&(s=R,a=c)}}}}else{l.add(h);var D=r._evaluateListCandidate(h,e,i,o,t,u,n);D&&D.distance<s&&(s=D.distance,a=D.targetElement,!0)}}}}),a}},{key:"_findBestCandidateSequential",value:function(e,t,n){var r=n.indexOf(e);if(-1===r)return null;if("down"===t||"right"===t)for(var i=r+1;i<n.length;i++){var o=n[i];if(o&&document.body.contains(o))return o}else if("up"===t||"left"===t)for(var a=r-1;a>=0;a--){var s=n[a];if(s&&document.body.contains(s))return s}return null}},{key:"_exceedsDirectionalAngle",value:function(e,t,n,r){var i=Math.abs(t),o=Math.abs(n),a=r?this.options.blockedDirectionalAngleThreshold:this.options.directionalAngleThreshold,s=Math.tan(a*Math.PI/180),u=this.options.directionalAngleOffset;return"left"===e||"right"===e?o>i*s+u:i>o*s+u}},{key:"isDirectionBlocked",value:function(e,t){for(var n,r=this,i=e,o=function(){var n=i.getAttribute("blockFocusDirections")||i.getAttribute("blockfocusdirections");if(n){var o=t;if("number"==typeof t&&(!(o=r._directionNumberToName(t))||"forward"===o||"backward"===o))return{v:!1};var a=[];try{var s=n.replace(/'/g,'"');a=JSON.parse(s),Array.isArray(a)||(a=[])}catch(e){a=n.split(",").map(function(e){return e.trim().toLowerCase()}).filter(function(e){return e})}var u=String(o).toLowerCase();if(a.some(function(e){return e.toLowerCase()===u})&&i===e)return{v:!0}}i=i.parentElement};i&&i!==document.body;)if(n=o())return n.v;return!1}},{key:"getNextFocusByName",value:function(e,t,n,r){if(!e||!e.getAttribute)return null;var i=e.getAttribute("nextFocusName")||e.getAttribute("nextfocusname");if(!i)for(var o=e.parentElement;o&&o!==document.body&&!(i=o.getAttribute("nextFocusName")||o.getAttribute("nextfocusname"));)o=o.parentElement;if(!i)return null;var a=null;try{if("string"==typeof i){var s=i.replace(/'/g,'"');a=JSON.parse(s)}else"object"==typeof i&&(a=i)}catch(e){return null}if(!a||"object"!=typeof a)return null;var u=a[t];if(!u)return null;var l=this._findElementByName(u,n);return l&&(n.includes(l)||r(),n.includes(l))?l:null}},{key:"_findElementByName",value:function(e,t){if(!e)return null;var n=document.querySelectorAll('[name="'.concat(e,'"]'));if(n.length>0){var r,i=Rt(n);try{for(i.s();!(r=i.n()).done;){var o=r.value,a=window.getComputedStyle(o),s="none"!==a.display&&"hidden"!==a.visibility&&parseFloat(a.opacity)>0,u=o.getBoundingClientRect(),l=u.width>0&&u.height>0;if(s&&l){var c=this._findFocusableChild(o,t);if(c)return c;if(t.includes(o))return o}}}catch(e){i.e(e)}finally{i.f()}}return null}},{key:"_findFocusableChild",value:function(e,t){if(!e||!e.querySelectorAll)return null;var n=e.querySelector('[autofocus="true"], [autofocus]');if(n&&t.includes(n))return n;var r=e.querySelector('[selected="true"], [selected=""], .selected, .focused');if(r){var i,o=Rt(t);try{for(o.s();!(i=o.n()).done;){var a=i.value;if(r===a||r.contains(a))return a}}catch(e){o.e(e)}finally{o.f()}}var s,u=Rt(t);try{for(u.s();!(s=u.n()).done;){var l=s.value;if(e.contains(l))return l}}catch(e){u.e(e)}finally{u.f()}return null}},{key:"_isListContainer",value:function(e){if(!e||!e.getAttribute)return!1;var t=e.getAttribute("data-component-name");return"FastListView"===t||"ListView"===t||"QtFlexView"===t||"RecyclerView"===t||e.classList.contains("fast-list-item-container")||e.classList.contains("flex-view-item-container")}},{key:"_getListTargetElement",value:function(e,t,n){var r,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;if(!e)return null;var o=e.querySelector('[selected="true"]');if(o){var a=this._findFocusableInElement(o,n);if(a)return a}if(i){var s=this._findNearestElementInList(e,i,t,n);if(s)return s}var u=e.querySelector(".fast-list-item-container")||e.querySelector(".flex-view-item-container")||e,l=null==u||null===(r=u.children)||void 0===r?void 0:r[0];if(l){var c=this._findFocusableInElement(l,n);if(c)return c}var d,h=Rt(n);try{for(h.s();!(d=h.n()).done;){var f=d.value;if(e.contains(f)&&f!==e)return f}}catch(e){h.e(e)}finally{h.f()}return null}},{key:"_findNearestElementInList",value:function(e,t,n,r){var i,o=t.getBoundingClientRect(),a=o.left+o.width/2,s=o.top+o.height/2,u=null,l=1/0,c=Rt(r);try{for(c.s();!(i=c.n()).done;){var d=i.value;if(d!==t&&e.contains(d)){var h=d.getBoundingClientRect();if(0!==h.width||0!==h.height){var f={x:h.left+h.width/2,y:h.top+h.height/2},p=0;switch(n){case"up":if(f.y>=s)continue;p=Math.abs(f.x-a)+(s-f.y);break;case"down":if(f.y<=s)continue;p=Math.abs(f.x-a)+(f.y-s);break;case"left":if(f.x>=a)continue;p=Math.abs(f.y-s)+(a-f.x);break;case"right":if(f.x<=a)continue;p=Math.abs(f.y-s)+(f.x-a);break;default:p=Math.abs(f.x-a)+Math.abs(f.y-s)}p<l&&(l=p,u=d)}}}}catch(e){c.e(e)}finally{c.f()}return u}},{key:"_findFocusableInElement",value:function(e,t){if(!e)return null;if(t.includes(e))return e;var n,r=Rt(t);try{for(r.s();!(n=r.n()).done;){var i=n.value;if(e.contains(i))return i}}catch(e){r.e(e)}finally{r.f()}return null}},{key:"_findParentList",value:function(e){for(var t=e;t&&t!==document.body;){if(this._isListContainer(t))return t;t=t.parentElement}return null}},{key:"_evaluateListCandidate",value:function(e,t,n,r,i,o,a){var s=e.getBoundingClientRect();if(0===s.width&&0===s.height)return null;var u=s.left+s.width/2,l=s.top+s.height/2,c=u-r.x,d=l-r.y,h=!1,f=0,p=0;switch(i){case"up":if(s.top>=n.bottom)return null;h=!0,f=Math.max(0,n.top-s.bottom),p=Math.abs(c);break;case"down":if(s.bottom<=n.top)return null;h=!0,f=Math.max(0,s.top-n.bottom),p=Math.abs(c);break;case"left":if(s.left>=n.right)return null;h=!0,f=Math.max(0,n.left-s.right),p=Math.abs(d);break;case"right":if(s.right<=n.left)return null;h=!0,f=Math.max(0,s.left-n.right),p=Math.abs(d)}var v=e.getAttribute("selected"),y=e.hasAttribute("selected")&&"false"!==v,m=null!==e.querySelector('[selected="true"]'),g=y||m;if(h&&!g&&this._exceedsDirectionalAngle(i,c,d,o)){o?this.options.blockedDirectionalAngleThreshold:this.options.directionalAngleThreshold;return null}var _=!1,b=0;if("left"===i||"right"===i){var w=Math.max(0,Math.min(s.bottom,n.bottom)-Math.max(s.top,n.top));_=w>0,b=w/Math.min(s.height,n.height),p*=_?1-.9*b:50}else if("up"===i||"down"===i){var k=Math.max(0,Math.min(s.right,n.right)-Math.max(s.left,n.left));_=k>0,b=k/Math.min(s.width,n.width),p*=_?1-.9*b:50}var E=Nt(t,e),S=f+p+(_?0:1e4)+(E<=1?-500:E<=2?-200:E<=3?-50:0)+(g?-1e3:0),A=this._getListTargetElement(e,i,a,t);return A?A===t?null:{distance:S,targetElement:A}:null}},{key:"_directionNumberToName",value:function(e){switch(e){case 17:return"left";case 33:return"up";case 66:return"right";case 130:return"down";case 2:return"forward";case 1:return"backward";default:return null}}}])}(),jt=n(814);function Vt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Wt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vt(Object(n),!0).forEach(function(t){(0,b.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vt(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Ht=function(){return L(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};x(this,e),this.defaultFocusStyle={border:{enabled:!0,color:"#FFFFFF",width:3,innerColor:"#000000",innerWidth:2,cornerRadius:0},scale:1,transition:"transform 0.15s ease-out, outline 0.15s ease-out"},this.focusedElementOriginalStyles=new Map,this.showOnStateManager=null,t.defaultFocusStyle&&(this.defaultFocusStyle=Wt(Wt({},this.defaultFocusStyle),t.defaultFocusStyle))},[{key:"setShowOnStateManager",value:function(e){this.showOnStateManager=e}},{key:"updateConfig",value:function(e){e&&(e.borderColorEnabled&&(this.defaultFocusStyle.border.color=e.borderColor),e.borderWidthEnabled&&(this.defaultFocusStyle.border.width=e.borderWidth),e.cornerEnabled&&(this.defaultFocusStyle.border.cornerRadius=e.cornerRadius),e.borderInsetEnabled&&(this.defaultFocusStyle.border.inset=e.borderInset),this.defaultFocusStyle.border.innerEnabled=e.innerBorderEnabled,e.focusScale&&(this.defaultFocusStyle.scale=e.focusScale))}},{key:"getFocusProps",value:function(e){var t,n,r,i,o,a,s,u,l=window.getComputedStyle(e),c=l.borderRadius,d=this.defaultFocusStyle.border.cornerRadius||8;if(c&&"none"!==c&&"0px"!==c){var h=c.match(/^(\d+(?:\.\d+)?)(px)?/);h&&(d=parseFloat(h[1]))}var f={enableBorder:!1,borderColor:this.defaultFocusStyle.border.color,borderWidth:this.defaultFocusStyle.border.width,borderRadius:d,innerBorderColor:this.defaultFocusStyle.border.innerColor,innerBorderWidth:this.defaultFocusStyle.border.innerWidth,innerBorderEnabled:!1!==this.defaultFocusStyle.border.innerEnabled,scale:this.defaultFocusStyle.scale,focusBackgroundColor:null,focusColor:null},p=e.getAttribute("enablefocusborder");"true"!==p&&"1"!==p&&""!==p||(f.enableBorder=!0);var v=e.getAttribute("focusscale")||e.getAttribute("data-focus-scale")||(null===(t=l.getPropertyValue("--focus-scale"))||void 0===t?void 0:t.trim());if(v){var y=parseFloat(v);!isNaN(y)&&y>0&&(f.scale=y)}var m=e.getAttribute("focusborderradius")||e.getAttribute("data-focus-border-radius")||(null===(n=l.getPropertyValue("--focus-border-radius"))||void 0===n?void 0:n.trim());if(m){var g=parseFloat(m);!isNaN(g)&&g>=0&&(f.borderRadius=g)}var _=e.getAttribute("focusborderwidth")||e.getAttribute("data-focus-border-width")||(null===(r=l.getPropertyValue("--focus-border-width"))||void 0===r?void 0:r.trim());if(_){var b=parseFloat(_);!isNaN(b)&&b>=0&&(f.borderWidth=b)}var w=e.getAttribute("focusbordercolor")||e.getAttribute("data-focus-border-color")||(null===(i=l.getPropertyValue("--focus-border-color"))||void 0===i?void 0:i.trim());w&&(f.borderColor=w);var k=e.getAttribute("data-focus-border");k&&(f.enableBorder="true"===k);var E=e.getAttribute("data-focus-background-color")||(null===(o=l.getPropertyValue("--focus-background-color"))||void 0===o?void 0:o.trim())||(null===(a=l.getPropertyValue("--focus-background"))||void 0===a?void 0:a.trim());E&&(f.focusBackgroundColor=E);var S=e.getAttribute("data-focus-color")||(null===(s=l.getPropertyValue("--focus-color"))||void 0===s?void 0:s.trim());S&&(f.focusColor=S);var A=e.getAttribute("data-select-color")||(null===(u=l.getPropertyValue("--select-color"))||void 0===u?void 0:u.trim());return A&&(f.selectColor=A),f}},{key:"applyFocusStyle",value:function(e){var t=this.getFocusProps(e),n={transform:e.style.transform,outline:e.style.outline,outlineOffset:e.style.outlineOffset,boxShadow:e.style.boxShadow,transition:e.style.transition,zIndex:e.style.zIndex,borderRadius:e.style.borderRadius,backgroundColor:e.style.backgroundColor,color:e.style.color,display:e.style.display,visibility:e.style.visibility};if(this.focusedElementOriginalStyles.set(e,n),e.style.transition=this.defaultFocusStyle.transition,1!==t.scale&&(e.style.transform="scale(".concat(t.scale,")"),e.style.zIndex="10"),t.enableBorder){e.style.borderRadius=t.borderRadius+"px";var r=t.borderWidth,i=t.innerBorderWidth,o=t.innerBorderEnabled?"inset 0 0 0 ".concat(i,"px ").concat(t.innerBorderColor):"";e.style.outline="".concat(r,"px solid ").concat(t.borderColor),e.style.outlineOffset="0px",e.style.boxShadow="0 0 0 ".concat(r,"px ").concat(t.borderColor,", ").concat(o,", 0 4px 12px rgba(0,0,0,0.3)")}t.focusBackgroundColor&&(e.style.backgroundColor=t.focusBackgroundColor),t.focusColor&&(e.style.color=t.focusColor),this._applyDuplicateParentStateStyles(e,!0),this.showOnStateManager&&this.showOnStateManager.updateShowOnStateVisibility(e,"focused"),requestAnimationFrame(function(){return(0,jt.u6)(e)})}},{key:"removeFocusStyle",value:function(e){var t=this.focusedElementOriginalStyles.get(e);if(t?(e.style.transform=t.transform,e.style.outline=t.outline,e.style.outlineOffset=t.outlineOffset,e.style.boxShadow=t.boxShadow,e.style.transition=t.transition,e.style.zIndex=t.zIndex,e.style.borderRadius=t.borderRadius,void 0!==t.backgroundColor&&(e.style.backgroundColor=t.backgroundColor),void 0!==t.color&&(e.style.color=t.color)):(e.style.transform="",e.style.outline="",e.style.outlineOffset="",e.style.boxShadow="",e.style.zIndex=""),e.classList.remove("focused"),this._removeDuplicateParentStateStyles(e),e.hasAttribute("selected")&&"false"!==e.getAttribute("selected")){var n,r=window.getComputedStyle(e),i=e.getAttribute("selectBackgroundColor")||e.getAttribute("select-background-color")||e.getAttribute("data-select-background-color")||(null===(n=r.getPropertyValue("--select-background-color"))||void 0===n?void 0:n.trim());i&&(e.style.backgroundColor=i)}this.showOnStateManager&&this.showOnStateManager.updateShowOnStateVisibility(e,"normal"),requestAnimationFrame(function(){return(0,jt.u6)(e)})}},{key:"_applyDuplicateParentStateStyles",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e.querySelectorAll("[duplicateparentstate]").forEach(function(r){var i=r.getAttribute("duplicateparentstate");if("false"!==i&&"0"!==i){var o=window.getComputedStyle(r),a=function(e){var t;return r.getAttribute("data-"+e)||(null===(t=o.getPropertyValue("--"+e))||void 0===t?void 0:t.trim())},s=a("focus-color")||a("focus-text-color"),u=a("focus-background-color"),l=a("focus-border-radius"),c=a("focus-scale"),d=a("focus-border-width"),h=a("focus-border-color"),f=a("select-color"),p=a("select-background-color"),v=e.hasAttribute("select")&&"false"!==e.getAttribute("select")||e.hasAttribute("selected")&&"false"!==e.getAttribute("selected");if(v);var y=n?s:v&&f?f:null,m=n?u:v&&p?p:null,g=r.getAttribute("enablefocusborder"),_="true"===g||"1"===g||""===g;if(n&&!t.focusedElementOriginalStyles.has(r)){var b=window.getComputedStyle(r),w={backgroundColor:r.style.backgroundColor||b.backgroundColor,color:r.style.color||b.color,borderRadius:r.style.borderRadius,transform:r.style.transform,zIndex:r.style.zIndex,transition:r.style.transition,outline:r.style.outline,outlineOffset:r.style.outlineOffset};t.focusedElementOriginalStyles.set(r,w)}if(!n&&v&&!t.focusedElementOriginalStyles.has(r)){var k=window.getComputedStyle(r),E={backgroundColor:r.style.backgroundColor||k.backgroundColor,color:r.style.color||k.color};t.focusedElementOriginalStyles.set(r,E)}if(r.style.transition=t.defaultFocusStyle.transition,m&&(r.style.backgroundColor=m),y)r.style.color=y;else if(n){var S=t.focusedElementOriginalStyles.get(r);S&&void 0!==S.color&&(r.style.color=S.color)}if(l){var A=parseFloat(l);!isNaN(A)&&A>=0&&(r.style.borderRadius=A+"px")}if(c){var x=parseFloat(c);!isNaN(x)&&x>0&&1!==x&&(r.style.transform="scale(".concat(x,")"),r.style.zIndex="10")}if(_&&n){var C=d?parseFloat(d):3,T=h||"#FFFFFF",L=l?parseFloat(l):8;r.style.outline="".concat(C,"px solid ").concat(T),r.style.outlineOffset="0px",r.style.borderRadius=L+"px"}if(r.classList.add("focused-child"),t.showOnStateManager){var O=t.showOnStateManager.shouldShowOnState(r,"focused");if(null!==O){var P=r.style.display;if(t.focusedElementOriginalStyles.has(r))t.focusedElementOriginalStyles.get(r).display=P;else t.focusedElementOriginalStyles.set(r,{display:P});r.style.display=O?"":"none"}}}})}},{key:"_removeDuplicateParentStateStyles",value:function(e){var t=this;e.querySelectorAll("[duplicateparentstate]").forEach(function(n){var r=n.getAttribute("duplicateparentstate");if("false"!==r&&"0"!==r){var i=t.focusedElementOriginalStyles.get(n);if(i&&(n.style.backgroundColor=i.backgroundColor,n.style.color=i.color,n.style.borderRadius=i.borderRadius,n.style.transform=i.transform,n.style.zIndex=i.zIndex,n.style.transition=i.transition,n.style.outline=i.outline,n.style.outlineOffset=i.outlineOffset),n.classList.remove("focused-child"),t.showOnStateManager){var o=t.showOnStateManager.shouldShowOnState(n,"normal");null!==o&&(n.style.display=o?"":"none")}if(e.hasAttribute("select")&&"false"!==e.getAttribute("select")||e.hasAttribute("selected")&&"false"!==e.getAttribute("selected")){var a,s,u=window.getComputedStyle(n),l=n.getAttribute("selectColor")||n.getAttribute("select-color")||n.getAttribute("data-select-color")||(null===(a=u.getPropertyValue("--select-color"))||void 0===a?void 0:a.trim()),c=n.getAttribute("selectBackgroundColor")||n.getAttribute("select-background-color")||n.getAttribute("data-select-background-color")||(null===(s=u.getPropertyValue("--select-background-color"))||void 0===s?void 0:s.trim());c&&(n.style.backgroundColor=c),l&&(n.style.color=l)}}})}},{key:"clearOriginalStyles",value:function(){this.focusedElementOriginalStyles.clear()}},{key:"deleteOriginalStyles",value:function(e){this.focusedElementOriginalStyles.delete(e)}}])}(),Ut=function(){return L(function e(){x(this,e),this.focusedElement=null},[{key:"setFocusedElement",value:function(e){this.focusedElement=e}},{key:"parseShowOnState",value:function(e){if(!e)return null;try{var t=JSON.parse(e);if(Array.isArray(t))return t.map(function(e){return String(e).toLowerCase()})}catch(e){}return[String(e).toLowerCase()]}},{key:"getShowOnStateAttr",value:function(e){return e&&e.getAttribute?e.getAttribute("showOnState")||e.getAttribute("showonstate"):null}},{key:"getShowOnStateElements",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!e||!e.querySelectorAll)return[];var r=Array.from(e.querySelectorAll("[showOnState], [showonstate]"));return n&&null!==(t=e.matches)&&void 0!==t&&t.call(e,"[showOnState], [showonstate]")&&r.unshift(e),r}},{key:"resolveShowOnStateState",value:function(e){return e?this.focusedElement&&(e===this.focusedElement||this.focusedElement.contains(e))||e.closest(".focused")?"focused":e.closest('[selected="true"], [selected=""]')?"selected":"normal":"normal"}},{key:"shouldShowOnState",value:function(e,t){var n=this.getShowOnStateAttr(e);if(!n)return null;var r=this.parseShowOnState(n);return r&&0!==r.length?r.includes(t.toLowerCase()):null}},{key:"updateShowOnStateVisibility",value:function(e,t){var n=this,r=this.shouldShowOnState(e,t);null!==r&&(r?(e.style.display="",e.style.visibility=""):e.style.display="none"),this.getShowOnStateElements(e).forEach(function(e){var r=n.shouldShowOnState(e,t);null!==r&&(r?(e.style.display="",e.style.visibility=""):e.style.display="none")})}},{key:"initShowOnStateVisibility",value:function(){var e=this;document.querySelectorAll("[showOnState], [showonstate]").forEach(function(t){var n=e.resolveShowOnStateState(t);e._updateShowOnStateVisibilityForElement(t,n)})}},{key:"_updateShowOnStateVisibilityForElement",value:function(e,t){var n=this.shouldShowOnState(e,t);null!==n&&(n?(e.style.display="",e.style.visibility=""):e.style.display="none")}},{key:"initShowOnStateForElement",value:function(e){var t=this;e&&this.getShowOnStateElements(e,!0).forEach(function(e){var n=t.resolveShowOnStateState(e);t._updateShowOnStateVisibilityForElement(e,n)})}}])}(),Gt=function(){return L(function e(){x(this,e),this.focusHistory=[],this.currentRouteName=null,this.focusedElement=null},[{key:"setFocusedElement",value:function(e){this.focusedElement=e}},{key:"isGoingBack",value:function(e,t){return this.focusHistory.findIndex(function(e){return e.routeName===t.name})>=0}},{key:"saveFocusState",value:function(e,t,n){if(t){var r=n(t),i={routeName:e,focusSelector:r},o=this.focusHistory.findIndex(function(t){return t.routeName===e});o>=0?this.focusHistory[o]=i:this.focusHistory.push(i)}}},{key:"restoreFocusState",value:function(e,t,n,r){var i=this.focusHistory.find(function(t){return t.routeName===e});t(),n(),i&&i.focusSelector&&setTimeout(function(){var e=document.querySelector(i.focusSelector);e&&r(e)},200)}},{key:"generateElementSelector",value:function(e,t){if(!e)return null;var n=e.getAttribute("data-component-name"),r=e.id;if(n&&r)return'[data-component-name="'.concat(n,'"][id="').concat(r,'"]');if(n)return'[data-component-name="'.concat(n,'"]');if(r)return'[id="'.concat(r,'"]');var i=e.getAttribute("data-position"),o=e.getAttribute("data-index");if(null!==i){var a=t?t(e):null;if(a){var s=a.id;if(s)return'[id="'.concat(s,'"] [data-position="').concat(i,'"]')}return'[data-position="'.concat(i,'"]')}if(null!==o){var u=t?t(e):null;if(u){var l=u.id;if(l)return'[id="'.concat(l,'"] [data-index="').concat(o,'"]')}return'[data-index="'.concat(o,'"]')}for(var c=[],d=e;d&&d!==document.body;){var h=d.tagName.toLowerCase();if(d.id){h='[id="'.concat(d.id,'"]'),c.unshift(h);break}var f=d.getAttribute("data-position"),p=d.getAttribute("data-index");if(null!==f){h='[data-position="'.concat(f,'"]'),c.unshift(h);break}if(null!==p){h='[data-index="'.concat(p,'"]'),c.unshift(h);break}if(d.className&&"string"==typeof d.className){var v=d.className.split(" ").filter(function(e){return e&&!e.includes(":")});v.length>0&&(h+=".".concat(v[0]))}var y=d.parentElement;if(y){var m=Array.from(y.children).filter(function(e){return e.tagName===d.tagName});if(m.length>1){var g=m.indexOf(d)+1;h+=":nth-child(".concat(g,")")}}c.unshift(h),d=d.parentElement}return c.join(" > ")}},{key:"findPageRootView",value:function(e){if(!e)return null;for(var t=e;t&&t!==document.body;){if("ESPageRootView"===t.getAttribute("data-component-name"))return t;t=t.parentElement}return null}},{key:"getFastListViewFocusInfo",value:function(e){if(!e)return null;for(var t=e,n=null,r=null;t&&t!==document.body;){var i=t.getAttribute("data-position"),o=t.getAttribute("data-index");if(null!==i?n=parseInt(i):null!==o&&(n=parseInt(o)),"FastListView"===t.getAttribute("data-component-name")){r=t;break}t=t.parentElement}return r&&null!==n?{containerId:r.id,position:n}:null}},{key:"saveCurrentPageFocus",value:function(e,t,n,r){if(e){var i=n(e);if(i){var o=r(e);o?(i.setAttribute("data-last-fastlist-id",o.containerId),i.setAttribute("data-last-fastlist-position",o.position)):(i.removeAttribute("data-last-fastlist-id"),i.removeAttribute("data-last-fastlist-position"));var a=t(e);i.setAttribute("data-last-focus-selector",a)}}}},{key:"restoreFocusFromPageRootView",value:function(e,t,n,r){var i=e();if(!i)return!1;var o=i.getAttribute("data-last-fastlist-id"),a=i.getAttribute("data-last-fastlist-position");if(o&&null!==a){var s=document.getElementById(o);if(s&&s.__fastListViewInstance){var u=s.__fastListViewInstance,l=parseInt(a);return setTimeout(function(){u.requestChildFocus(l)},100),!0}}var c=i.getAttribute("data-last-focus-selector");if(!c)return!1;t();var d=document.querySelector(c);if(d&&r.includes(d))return n(d),!0;var h=c.match(/\[data-position="(\d+)"\]/),f=c.match(/\[data-index="(\d+)"\]/),p=c.match(/\[id="([^"]+)"\]/);if((h||f)&&p){var v=h?parseInt(h[1]):parseInt(f[1]),y=p[1],m=document.getElementById(y);if(m&&m.__fastListViewInstance){var g=m.__fastListViewInstance;return setTimeout(function(){g.requestChildFocus(v)},100),!0}}return!1}},{key:"clearHistory",value:function(){this.focusHistory=[]}}])}(),zt=function(){return L(function e(){x(this,e),this.focusedElement=null},[{key:"setFocusedElement",value:function(e){this.focusedElement=e}},{key:"findFastListViewContainer",value:function(e){if(!e)return null;for(var t=e;t&&t!==document.body;){if("FastListView"===t.getAttribute("data-component-name"))return t;t=t.parentElement}return null}},{key:"tryFastListViewNavigation",value:function(e,t,n){for(var r=e.parentElement,i=null;r;){if(r.__fastListViewInstance){i=r.__fastListViewInstance;break}r=r.parentElement}if(!i)return null;var o=i.handleFocusNavigation(e,t);return o||null}},{key:"triggerBoundaryScrollOnExitIfNeeded",value:function(e,t,n){if(e&&t)for(var r=e.parentElement;r&&r!==document.body;){if(r.__fastListViewInstance&&!r.contains(t)){var i=r.__fastListViewInstance;i&&"function"==typeof i._scrollToBoundary&&i._scrollToBoundary(n,e)}r=r.parentElement}}},{key:"triggerBoundaryScrollIfNeeded",value:function(e,t){for(var n=e.parentElement;n&&n!==document.body;){if(n.__fastListViewInstance){var r=n.__fastListViewInstance;"function"==typeof r._scrollToBoundary&&r._scrollToBoundary(t,e)}n=n.parentElement}}},{key:"maybeNotifyFastListItemFocusChanged",value:function(e,t){if(e){if(e.__fastListViewInstance){var n=e.__fastListViewInstance;if(n&&"function"==typeof n.notifyItemFocusChanged)return void n.notifyItemFocusChanged(e,t)}var r=e.parentElement;if(r&&r.__fastListViewInstance){var i=r.__fastListViewInstance;if(i&&"function"==typeof i.notifyItemFocusChanged)return void i.notifyItemFocusChanged(r,t)}for(var o=null;r;){if(r.__fastListViewInstance){var a,s,u,l=(o=r.__fastListViewInstance)._itemContainer;if(l&&(l===e||l.contains(e)))break;var c=null!==(a=null===(s=e.getAttribute)||void 0===s?void 0:s.call(e,"data-position"))&&void 0!==a?a:null===(u=e.getAttribute)||void 0===u?void 0:u.call(e,"data-index");if(null!=c){var d,h=Number(c),f=null==l||null===(d=l.children)||void 0===d?void 0:d[h];if(f&&(f===e||f.contains(e)))break}o=null}r=r.parentElement}o&&"function"==typeof o.notifyItemFocusChanged&&o.notifyItemFocusChanged(e,t)}}},{key:"maybeUpdateFastListBlockFocusDirections",value:function(e){if(e){for(var t=e.parentElement,n=null;t;){if(t.__fastListViewInstance){n=t.__fastListViewInstance;break}t=t.parentElement}n&&"function"==typeof n.updateBlockFocusDirections&&n.updateBlockFocusDirections(e)}}},{key:"maybeScrollFastListToStart",value:function(e){var t;if(e&&e.closest){var n=e.closest("[data-position]")||e.closest("[data-index]");if(n){var r=null!==(t=n.getAttribute("data-position"))&&void 0!==t?t:n.getAttribute("data-index");if(null!=r){var i=Number(r);if(Number.isFinite(i)&&0===i){var o=e.closest(".fast-list-item-container");if(o){var a=window.getComputedStyle(o);if("row"===a.flexDirection||"auto"===a.overflowX||"scroll"===a.overflowX){if(o.scrollLeft>0)try{o.scrollTo({left:0,behavior:"smooth"})}catch(e){o.scrollLeft=0}var s=o.parentElement;if(s&&s.scrollLeft>0)try{s.scrollTo({left:0,behavior:"smooth"})}catch(e){s.scrollLeft=0}}}}}}}}},{key:"getFastListViewFocusInfo",value:function(e){if(!e)return null;for(var t=e,n=null,r=null;t&&t!==document.body;){var i=t.getAttribute("data-position"),o=t.getAttribute("data-index");if(null!==i?n=parseInt(i):null!==o&&(n=parseInt(o)),"FastListView"===t.getAttribute("data-component-name")){r=t;break}t=t.parentElement}return r&&null!==n?{containerId:r.id,position:n}:null}}])}();function Yt(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return qt(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?qt(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function qt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Xt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Kt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xt(Object(n),!0).forEach(function(t){(0,b.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xt(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var $t=function(){return L(function e(){x(this,e),this.focusableElements=[],this.focusedElement=null,this.options={useDistanceBasedNavigation:!0,crossDistanceWeight:.5},this._initModules(),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleKeyUp=this.handleKeyUp.bind(this),this.updateFocusableElements=this.updateFocusableElements.bind(this),this.init()},[{key:"_initModules",value:function(){this.navigator=new Bt(this.options),this.styler=new Ht,this.showOnStateManager=new Ut,this.stateManager=new Gt,this.fastListHandler=new zt,this.styler.setShowOnStateManager(this.showOnStateManager)}},{key:"setOptions",value:function(e){this.options=Kt(Kt({},this.options),e),this.navigator.setOptions(this.options)}},{key:"updateFocusConfig",value:function(e){this.styler.updateConfig(e),this.focusedElement&&this._applyFocusStyle(this.focusedElement)}},{key:"_log",value:function(){}},{key:"init",value:function(){var e=this;document.addEventListener("keydown",this.handleKeyDown),document.addEventListener("keyup",this.handleKeyUp),document.addEventListener("click",this.handleClick.bind(this),!0),new MutationObserver(function(t){e.updateFocusableElements();var n,r=Yt(t);try{var i=function(){var t=n.value;"childList"===t.type&&t.addedNodes.length>0&&setTimeout(function(){var n,r=Yt(t.addedNodes);try{for(r.s();!(n=r.n()).done;){var i=n.value;e._checkAndFocusAutofocusElement(i)}}catch(e){r.e(e)}finally{r.f()}},50)};for(r.s();!(n=r.n()).done;)i()}catch(e){r.e(e)}finally{r.f()}}).observe(document.body,{childList:!0,subtree:!0}),setTimeout(function(){e.updateFocusableElements()},1e3),this._log("Focus manager initialized")}},{key:"_isGoingBack",value:function(e,t){return this.stateManager.isGoingBack(e,t)}},{key:"_saveFocusState",value:function(e){var t=this;this.focusedElement&&this.stateManager.saveFocusState(e,this.focusedElement,function(e){return t._generateElementSelector(e)})}},{key:"_restoreFocusState",value:function(e){var t=this;this.stateManager.restoreFocusState(e,function(){return t.clearFocus()},function(){return t.updateFocusableElements()},function(e){return t._doFocusElement(e)})}},{key:"_generateElementSelector",value:function(e){var t=this;return this.stateManager.generateElementSelector(e,function(e){return t.fastListHandler.findFastListViewContainer(e)})}},{key:"resetForNewPage",value:function(){var e=this;this.clearFocus();var t=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5;if(e.updateFocusableElements(),e.focusableElements.length>0){var i=e.focusableElements.find(function(e){var t=e.getAttribute("autofocus");return"true"===t||""===t||"1"===t});i&&e._doFocusElement(i)}else if(n<r){setTimeout(function(){return t(n+1,r)},100+100*n)}};setTimeout(function(){return t(0)},150)}},{key:"_checkAndFocusAutofocusElement",value:function(e){if(e&&1===e.nodeType){var t=e.getAttribute&&e.getAttribute("autofocus"),n="true"===t||""===t||"1"===t,r=e.hasAttribute&&e.hasAttribute("focusable");if(n&&r&&(this.updateFocusableElements(),this.focusableElements.includes(e)))this._doFocusElement(e);else if(e.querySelector){var i=e.querySelector('[autofocus="true"], [autofocus=""], [autofocus="1"]');i&&i.hasAttribute&&i.hasAttribute("focusable")&&(this.updateFocusableElements(),this.focusableElements.includes(i)&&this._doFocusElement(i))}}}},{key:"_getCurrentPage",value:function(){for(var e=0,t=['[data-component-name="ESPageRouterView"]','[data-component-name="ESRouterView"]',"es-page-router-view","es-router-view","[data-router-view]",".es-router-view"];e<t.length;e++){var n=t[e],r=document.querySelector(n);if(r&&r.children.length>0){for(var i=r.children.length-1;i>=0;i--){var o=r.children[i],a=window.getComputedStyle(o);if("none"!==a.display&&"hidden"!==a.visibility&&parseFloat(a.opacity)>0)return o}return r.children[r.children.length-1]}}for(var s=document.querySelectorAll('[data-component-name="ESPageRootView"], es-page-root-view, [data-page]'),u=s.length-1;u>=0;u--){var l=s[u],c=window.getComputedStyle(l);if("none"!==c.display&&"hidden"!==c.visibility)return l}return document.body}},{key:"updateFocusableElements",value:function(){var e=new Set;['[focusable="true"]','[focusable="1"]',"[focusable]",'[data-focusable="true"]',"[data-focusable]",'[canfocus="true"]','[canFocus="true"]',".focusable",'[tabindex="0"]',"[tabindex]"].forEach(function(t){try{document.querySelectorAll(t).forEach(function(t){return e.add(t)})}catch(e){}});var t=Array.from(e),n=this._getCurrentPage(),r=Array.from(t).filter(function(e){var t=e.getAttribute("focusable");if("false"===t||"0"===t)return!1;var r=e.getAttribute("duplicateParentState");if("true"===r||""===r||e.hasAttribute("duplicateparentstate"))return!1;if(n!==document.body&&!n.contains(e))return!1;var i=window.getComputedStyle(e);if(!("none"!==i.display&&"hidden"!==i.visibility&&parseFloat(i.opacity)>0&&!e.hasAttribute("data-template")))return!1;var o=e.getBoundingClientRect(),a=o.width>0&&o.height>0,s=3*window.innerHeight,u=2*window.innerWidth,l=o.top<s&&o.bottom>-s&&o.left<u&&o.right>-u;return a&&l});this.focusableElements=r,this._initShowOnStateVisibility()}},{key:"handleKeyDown",value:function(e){if(this._dispatchPageKeyDown(e),this.focusedElement){var t=this._getCurrentPage(),n=t&&t.contains(this.focusedElement),r=document.body.contains(this.focusedElement);n&&r||this.clearFocus()}if(!this.focusedElement&&"Escape"!==e.key){if(this._restoreFocusFromPageRootView())return void e.preventDefault();if(this.updateFocusableElements(),this.focusableElements.length>0)return this._doFocusElement(this.focusableElements[0]),void e.preventDefault()}if(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight","Enter","Escape"].includes(e.key))switch(e.preventDefault(),e.key){case"ArrowUp":this.moveFocus("up");break;case"ArrowDown":this.moveFocus("down");break;case"ArrowLeft":this.moveFocus("left");break;case"ArrowRight":this.moveFocus("right");break;case"Enter":this.clickFocused();break;case"Escape":this.dispatchBackPressed(e)}}},{key:"handleKeyUp",value:function(e){this._dispatchPageKeyUp(e),["ArrowUp","ArrowDown","ArrowLeft","ArrowRight","Enter","Escape"].includes(e.key)&&e.preventDefault()}},{key:"_dispatchPageKeyDown",value:function(e){var t=Pt(e);le(t)||this._callCurrentPageMethod("onKeyDown",t)}},{key:"_dispatchPageKeyUp",value:function(e){var t=Pt(e);ce(t)||this._callCurrentPageMethod("onKeyUp",t)}},{key:"_getCurrentPageVueInstance",value:function(){var e=n.g.__ES_PAGE_STACK__;if(e&&e.length>0){var t=e[e.length-1];if(t&&(t.exposed||t.proxy||t.setupState))return t}var r=this._getCurrentPage();return r?this._findVueInstanceInSubtree(r):null}},{key:"_findVueInstanceInSubtree",value:function(e){for(var t=[e],n=new Set,r=0;t.length>0&&r<200;){var i=t.shift();if(i&&!n.has(i)){n.add(i),r+=1;var o=i.__vueParentComponent||i.__vue__;if(o&&(o.exposed||o.proxy))return o;var a=i.children;if(a&&a.length>0)for(var s=0;s<a.length;s++)t.push(a[s])}}return null}},{key:"_callCurrentPageMethod",value:function(e,t){var n,r,i,o=this._getCurrentPageVueInstance();if(!o)return!1;var a=(null==o||null===(n=o.setupState)||void 0===n?void 0:n[e])||(null==o||null===(r=o.exposed)||void 0===r?void 0:r[e])||(null==o||null===(i=o.proxy)||void 0===i?void 0:i[e]);if("function"!=typeof a)return!1;try{var s=a(t);s&&"function"==typeof s.then&&s.catch(function(e){})}catch(e){}return!0}},{key:"moveFocus",value:function(e){var t=this;if(0!==this.focusableElements.length||(this.updateFocusableElements(),0!==this.focusableElements.length))if(this.focusedElement){var n=this.focusedElement;if(this.navigator.isDirectionBlocked(n,e))this._log("[TVFocus] Direction",e,"is blocked for current element");else{var r=this.navigator.getNextFocusByName(n,e,this.focusableElements,function(){return t.updateFocusableElements()});if(r)return this._log("[TVFocus] Found nextFocusName target for direction",e),void this._doFocusElement(r);if(!document.body.contains(n))return this.updateFocusableElements(),void(this.focusableElements.length>0&&this._doFocusElement(this.focusableElements[0]));var i=this.fastListHandler.tryFastListViewNavigation(n,e,this.options.useDistanceBasedNavigation);if(i)this._doFocusElement(i);else{var o=this.navigator.findBestCandidate(n,e,this.focusableElements);o?(this.options.useDistanceBasedNavigation&&this.fastListHandler.triggerBoundaryScrollOnExitIfNeeded(n,o,e),this._doFocusElement(o)):this.options.useDistanceBasedNavigation&&this.fastListHandler.triggerBoundaryScrollIfNeeded(n,e)}}}else this._doFocusElement(this.focusableElements[0])}},{key:"_doFocusElement",value:function(e){if(e){this.focusableElements.includes(e)||this.focusableElements.push(e);var t=this.focusedElement;t&&(t!==e&&this._dispatchFocusChange(t,!1),this.fastListHandler.maybeNotifyFastListItemFocusChanged(t,!1),this._removeFocusStyle(t)),this.focusedElement=e,this._applyFocusStyle(this.focusedElement),this.focusedElement.classList.add("focused"),this._dispatchFocusChange(this.focusedElement,!0),this._scrollToCenter(e),this.fastListHandler.maybeScrollFastListToStart(this.focusedElement),this.fastListHandler.maybeUpdateFastListBlockFocusDirections(this.focusedElement),this.fastListHandler.maybeNotifyFastListItemFocusChanged(this.focusedElement,!0),this.showOnStateManager.setFocusedElement(this.focusedElement),this.stateManager.setFocusedElement(this.focusedElement),this.fastListHandler.setFocusedElement(this.focusedElement)}}},{key:"_dispatchFocusChange",value:function(e,t){if(!e)return!1;for(var n=e;n&&n!==document.body;){var r=void 0!==n.id&&null!==n.id&&""!==n.id?Number(n.id):NaN;if(!Number.isNaN(r)){var i=_(r);if(i&&"function"==typeof i.dispatchEvent)return i.dispatchEvent("onFocus",{isFocused:t,currentTarget:{index:this._resolveElementIndex(e)},target:{attributes:{name:e.getAttribute("name")}}})}n=n.parentElement}return!1}},{key:"_resolveElementIndex",value:function(e){var t,n=null==e||null===(t=e.getAttribute)||void 0===t?void 0:t.call(e,"index");if(null!=n&&""!==n){var r=Number(n);return Number.isNaN(r)?n:r}}},{key:"_scrollToCenter",value:function(e){if(e){var t=this._findScrollContainer(e);if(t){e.getBoundingClientRect(),t.getBoundingClientRect();for(var n=0,r=0,i=e;i&&i!==t;)n+=i.offsetTop,r+=i.offsetLeft,i=i.offsetParent;var o=t.scrollHeight>t.clientHeight,a=t.scrollWidth>t.clientWidth;if(o){var s=n,u=e.offsetHeight,l=t.clientHeight,c=s-(l-u)/2,d=t.scrollHeight-l,h=Math.max(0,Math.min(c,d)),f=t.scrollTop;if(Math.abs(h-f)>1){var p=performance.now(),v=function(){var e=performance.now()-p,n=Math.min(e/250,1),r=1-Math.pow(1-n,3);t.scrollTop=f+(h-f)*r,n<1&&requestAnimationFrame(v)};requestAnimationFrame(v)}else t.scrollTop=h}if(a){var y=r,m=e.offsetWidth,g=t.clientWidth,_=y-(g-m)/2,b=t.scrollWidth-g,w=Math.max(0,Math.min(_,b));t.scrollTo({left:w,behavior:"smooth"})}}else e.scrollIntoView({behavior:"smooth",block:"center",inline:"center"})}}},{key:"_findScrollContainer",value:function(e){for(var t=e.parentElement,n=null,r=null;t&&t!==document.body;){var i=t.getAttribute("data-component-name");if("FastListView"!==i&&"ListView"!==i&&"QtFlexView"!==i||n||(n=t),!r){var o=window.getComputedStyle(t),a=o.overflowY,s=o.overflowX;(("auto"===a||"scroll"===a)&&t.scrollHeight>t.clientHeight||("auto"===s||"scroll"===s)&&t.scrollWidth>t.clientWidth)&&(r=t)}t=t.parentElement}if(n){var u=n.querySelector(".fast-list-item-container");if(u){var l=window.getComputedStyle(u),c=l.overflowY,d=l.overflowX,h=("auto"===c||"scroll"===c)&&u.scrollHeight>u.clientHeight,f=("auto"===d||"scroll"===d)&&u.scrollWidth>u.clientWidth;if(h||f)return u}var p=window.getComputedStyle(n),v=p.overflowY,y=p.overflowX,m=("auto"===v||"scroll"===v)&&n.scrollHeight>n.clientHeight,g=("auto"===y||"scroll"===y)&&n.scrollWidth>n.clientWidth;if(m||g)return n}return r}},{key:"saveCurrentPageFocus",value:function(){var e=this;this.stateManager.saveCurrentPageFocus(this.focusedElement,function(t){return e._generateElementSelector(t)},function(t){return e.stateManager.findPageRootView(t)},function(t){return e.fastListHandler.getFastListViewFocusInfo(t)})}},{key:"_restoreFocusFromPageRootView",value:function(){var e=this;return this.stateManager.restoreFocusFromPageRootView(function(){return e._getCurrentPage()},function(){return e.updateFocusableElements()},function(t){return e._doFocusElement(t)},this.focusableElements)}},{key:"restorePreviousPageFocus",value:function(){this.clearFocus(),this.updateFocusableElements(),this._restoreFocusFromPageRootView()||this.focusableElements.length>0&&this._doFocusElement(this.focusableElements[0])}},{key:"_initShowOnStateVisibility",value:function(){this.showOnStateManager.initShowOnStateVisibility()}},{key:"initShowOnStateForElement",value:function(e){this.showOnStateManager.initShowOnStateForElement(e)}},{key:"_getFocusProps",value:function(e){return this.styler.getFocusProps(e)}},{key:"_applyFocusStyle",value:function(e){this.styler.applyFocusStyle(e)}},{key:"_removeFocusStyle",value:function(e){this.styler.removeFocusStyle(e)}},{key:"_removeDuplicateParentStateStyles",value:function(e){this.styler._removeDuplicateParentStateStyles(e)}},{key:"clearFocus",value:function(){this.focusedElement&&this._removeFocusStyle(this.focusedElement),this.focusedElement=null,this.showOnStateManager.setFocusedElement(null),this.stateManager.setFocusedElement(null),this.fastListHandler.setFocusedElement(null)}},{key:"_dispatchComponentClickFromElement",value:function(e,t){for(var n=e;n&&n!==document.body;){if(void 0!==n._itemData||void 0!==n._itemPosition)return!1;if(n.classList&&n.classList.contains("fast-list-item-container"))return!1;n=n.parentElement}for(n=e;n&&n!==document.body;){var r=void 0!==n.id&&null!==n.id&&""!==n.id?Number(n.id):NaN;if(!Number.isNaN(r)){var i=_(r);return i&&"function"==typeof i.markClickHandled&&i.markClickHandled(),he(r,"onClick",{nativeEvent:t||{target:e,currentTarget:n}}),!0}n=n.parentElement}return!1}},{key:"clickFocused",value:function(){if(this.focusedElement){var e=this.focusedElement,t=this._dispatchComponentClickFromElement(e);if(!t&&e._emitter&&"function"==typeof e._emitter.emit){var n={type:"click",bubbles:!0,cancelable:!0,target:e,currentTarget:e};e._emitter.emit(n),t=!0}t||e.click()}}},{key:"handleClick",value:function(e){for(var t=e.target;t&&t!==document.body;){if(t.hasAttribute&&t.hasAttribute("focusable")){this.focusableElements.includes(t)&&this._doFocusElement(t),this._dispatchComponentClickFromElement(t,e);break}t=t.parentElement}}},{key:"dispatchBackPressed",value:function(e){se()}},{key:"_directionNumberToName",value:function(e){return It(e)}},{key:"setFocus",value:function(e){e<0||e>=this.focusableElements.length||this._doFocusElement(this.focusableElements[e])}},{key:"focusElement",value:function(e){return!!e&&(this.focusableElements.includes(e)||this.updateFocusableElements(),!!this.focusableElements.includes(e)&&(this._doFocusElement(e),!0))}},{key:"moveFocusFromElement",value:function(e,t){if(!e)return!1;var n=t;if("number"==typeof t&&(n=It(t)),!n)return this.focusElement(e);if("forward"===n||"backward"===n){this.focusableElements.includes(e)||this.updateFocusableElements();var r,i=this.focusableElements.indexOf(e);return i<0?this.focusElement(e):(r="forward"===n?(i+1)%this.focusableElements.length:(i-1+this.focusableElements.length)%this.focusableElements.length,this._doFocusElement(this.focusableElements[r]),!0)}return this.focusableElements.includes(e)||this.updateFocusableElements(),!!this.focusableElements.includes(e)&&(this.navigator.isDirectionBlocked(e,n)?(this._log("[TVFocus] Direction",n,"is blocked for element"),!1):(this._doFocusElement(e),this.moveFocus(n),!0))}},{key:"clearFocusFromElement",value:function(e){return this.focusedElement===e&&(this.clearFocus(),!0)}}])}();function Zt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Jt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zt(Object(n),!0).forEach(function(t){(0,b.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zt(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}(0,b.A)($t,"FOCUS_DIRECTION",{BACKWARD:1,FORWARD:2,LEFT:17,UP:33,RIGHT:66,DOWN:130});var Qt="undefined"!=typeof window&&window.__BUNDLE_CONFIG__&&!0===window.__BUNDLE_CONFIG__.watch,en="undefined"!=typeof window&&window.__BUNDLE_CONFIG__&&!0===window.__BUNDLE_CONFIG__.watch;function tn(e){return{js:"application/javascript",json:"application/json",css:"text/css",html:"text/html",png:"image/png",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",webp:"image/webp",svg:"image/svg+xml",woff:"font/woff",woff2:"font/woff2",ttf:"font/ttf",mp3:"audio/mpeg",mp4:"video/mp4"}[e.split(".").pop().toLowerCase()]||"application/octet-stream"}var nn=({NODE_ENV:"production"}.VUE_APP_PROXY_DOMAINS||"").split(",").map(function(e){return e.trim()}).filter(Boolean),rn=[/api\./i,/-api\./i,/\.api\./i,/qcloudimg\./i,/cdnott\./i,/baidu\./i].concat(k(nn.map(function(e){return new RegExp(e.replace(/\./g,"\\."),"i")})));function on(e){if(!e)return!1;if("string"==typeof e&&e.startsWith("data:"))return!1;if("string"==typeof e&&e.startsWith("blob:"))return!1;if("string"==typeof e&&e.startsWith("file:"))return!1;try{var t=new URL(e,window.location.origin);return t.origin!==window.location.origin&&(!!en||rn.some(function(e){return e.test(t.hostname)}))}catch(e){return!1}}function an(e){if(!e)return e;try{var t=String(e).trim().replace(/^['"`\s]+|['"`\s]+$/g,""),n=new URL(t,window.location.origin),r="/proxy?url=".concat(encodeURIComponent(n.toString()));return"".concat(window.location.origin).concat(r)}catch(t){return e}}function sn(e){return Qt&&on(e)?an(e):e}function un(){if(Qt){var e=window.fetch;window.fetch=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r="string"==typeof t?t:t.url;if("string"==typeof r&&r.startsWith("hpfile://")){var i=r.replace(/^hpfile:\/\/\.?\//,"/").replace(/^hpfile:\/\//,"/");if(window.__VIRTUAL_FS__&&window.__VIRTUAL_FS__.has(i)){var o=window.__VIRTUAL_FS__.get(i),a=new Blob([o],{type:tn(i)});return Promise.resolve(new Response(a,{status:200,headers:{"Content-Type":tn(i)}}))}"string"==typeof t?t=i:t instanceof Request&&(t=new Request(i,n))}if(on(r)){var s=an(r);"string"==typeof t?t=s:t instanceof Request&&(t=new Request(s,{method:t.method,headers:t.headers,body:t.body,mode:"cors",credentials:t.credentials,cache:t.cache,redirect:t.redirect,referrer:t.referrer,integrity:t.integrity}))}return e.call(this,t,n)};var t=XMLHttpRequest.prototype.open;XMLHttpRequest.prototype.open=function(e,n,r,i,o){return on(n)&&(n=an(n)),t.call(this,e,n,!1!==r,i,o)};var n=Object.getOwnPropertyDescriptor(HTMLImageElement.prototype,"src");n&&n.set&&Object.defineProperty(HTMLImageElement.prototype,"src",Jt(Jt({},n),{},{set(e){if("string"==typeof e&&e.startsWith("hpfile://")){var t=e.replace(/^hpfile:\/\/\.?\//,"/").replace(/^hpfile:\/\//,"/");if(window.__VIRTUAL_FS__&&window.__VIRTUAL_FS__.has(t)){var r=window.__VIRTUAL_FS__.get(t),i=new Blob([r],{type:tn(t)}),o=URL.createObjectURL(i);return n.set.call(this,o)}return n.set.call(this,t)}if(/https?:\/\/[^/:]+:38989\//.test(e)){var a=e.replace(/https?:\/\/[^/:]+:38989\//,"./");return n.set.call(this,a)}var s=on(e)?an(e):e;return n.set.call(this,s)}}))}}var ln=window.localStorage,cn=new Map,dn={getItem:e=>new Promise(function(t){setTimeout(function(){try{var n=ln.getItem(e);t(n)}catch(e){t(null)}},0)}),setItem:(e,t)=>new Promise(function(n,r){setTimeout(function(){try{var i=ln.getItem(e);ln.setItem(e,t),hn(e,i,t),n()}catch(e){r(e)}},0)}),removeItem:e=>new Promise(function(t){setTimeout(function(){try{var n=ln.getItem(e);ln.removeItem(e),hn(e,n,null),t()}catch(e){t()}},0)}),clear:()=>new Promise(function(e){setTimeout(function(){try{ln.clear(),e()}catch(t){e()}},0)}),key:e=>new Promise(function(t){setTimeout(function(){try{t(ln.key(e))}catch(e){t(null)}},0)}),multiGet:e=>new Promise(function(t){setTimeout(function(){try{var n=e.map(function(e){return[e,ln.getItem(e)]});t(n)}catch(n){t(e.map(function(e){return[e,null]}))}},0)}),multiSet:e=>new Promise(function(t,n){setTimeout(function(){try{e.forEach(function(e){var t=s(e,2),n=t[0],r=t[1],i=ln.getItem(n);ln.setItem(n,r),hn(n,i,r)}),t()}catch(e){n(e)}},0)}),multiRemove:e=>new Promise(function(t){setTimeout(function(){try{e.forEach(function(e){var t=ln.getItem(e);ln.removeItem(e),hn(e,t,null)}),t()}catch(e){t()}},0)}),get length(){return ln.length},addChangeListener(e){var t=Date.now()+Math.random();return cn.set(t,e),function(){return cn.delete(t)}}};function hn(e,t,n){cn.forEach(function(r){try{r(e,n,t)}catch(e){}})}var fn=n(553);function pn(e,t){if(t&&("object"==(0,fn.A)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function vn(e){return vn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},vn(e)}function yn(){return yn="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=function(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=vn(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}},yn.apply(null,arguments)}function mn(e,t){return mn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},mn(e,t)}function gn(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&mn(e,t)}function _n(e,t,n,r){var i=yn(vn(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof i?function(e){return i.apply(n,e)}:i}function bn(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return wn(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?wn(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function wn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function kn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function En(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kn(Object(n),!0).forEach(function(t){(0,b.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kn(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Sn(e,t,n){return t=vn(t),pn(e,An()?Reflect.construct(t,n||[],vn(e).constructor):t.apply(e,n))}function An(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(An=function(){return!!e})()}var xn=function(){return"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{}},Cn=xn(),Tn={initiallistready:"initialListReady",momentumscrollbegin:"onMomentumScrollBegin",momentumscrollend:"onMomentumScrollEnd",scrollbegindrag:"onScrollBeginDrag",scrollenddrag:"onScrollEndDrag",willappear:"willAppear",willdisappear:"willDisappear",endreached:"onEndReached",loadstart:"onLoadStart",loadend:"onLoadEnd",requestclose:"onRequestClose",headerreleased:"onHeaderReleased",headerpulling:"onHeaderPulling",footerreleased:"onFooterReleased",footerpulling:"onFooterPulling",getrefresh:"onGetRefresh"},Ln={click:"onClick",longclick:"onLongClick",pressin:"onPressIn",pressout:"onPressOut",touchstart:"onTouchDown",touchend:"onTouchEnd",touchmove:"onTouchMove",touchcancel:"onTouchCancel"},On={changetext:"onChangeText",keyboardwillhide:"onKeyboardWillHide",keyboardwillshow:"onKeyboardWillShow",contentsizechange:"onContentSizeChange",endediting:"onEndEditing"},Pn={pageselected:"onPageSelected",pagescroll:"onPageScroll",statechanged:"onStateChanged",pagescrollstatechanged:"onPageScrollStateChanged"};function In(e){return Tn[e]?Tn[e]:function(e){return!!Ln[e]}(e)?Ln[e]:function(e){return!!On[e]}(e)?On[e]:function(e){return!!Pn[e]}(e)?Pn[e]:function(e){return e.startsWith("on")?e:"on".concat(e.charAt(0).toUpperCase()).concat(e.slice(1))}(e)}var Nn=function(){return L(function e(t){x(this,e),this.rootViewId=t},[{key:"create",value:function(e){Hippy.bridge.callNative("UIManagerModule","createNode",this.rootViewId,e)}},{key:"update",value:function(e){Hippy.bridge.callNative("UIManagerModule","updateNode",this.rootViewId,e)}},{key:"delete",value:function(e){Hippy.bridge.callNative("UIManagerModule","deleteNode",this.rootViewId,e)}},{key:"move",value:function(e){Hippy.bridge.callNative("UIManagerModule","moveNode",this.rootViewId,e)}},{key:"build",value:function(){}},{key:"addEventListener",value:function(e,t,n){Hippy.bridge.callNativeWithoutDelete("UIManagerModule","addEventListener",e,In(t),n)}},{key:"removeEventListener",value:function(e,t,n){Hippy.bridge.callNative("UIManagerModule","removeEventListener",e,In(t),n)}}])}(),Rn="AnimationModule",Dn=function(){return L(function e(t){x(this,e),this.id=t},[{key:"getId",value:function(){return this.id}},{key:"start",value:function(){Hippy.bridge.callNative(Rn,"startAnimation",this.id)}},{key:"pause",value:function(){Hippy.bridge.callNative(Rn,"pauseAnimation",this.id)}},{key:"resume",value:function(){Hippy.bridge.callNative(Rn,"resumeAnimation",this.id)}},{key:"destroy",value:function(){Hippy.bridge.callNative(Rn,"destroyAnimation",this.id)}},{key:"updateAnimation",value:function(e){Hippy.bridge.callNative(Rn,"destroyAnimation",this.id,e)}},{key:"addEventListener",value:function(e,t){Hippy.bridge.callNative(Rn,"addEventListener",this.id,e,t)}},{key:"removeEventListener",value:function(e,t){Hippy.bridge.callNative(Rn,"removeEventListener",this.id,e,t)}}])}(),Mn=function(e){function t(e){return x(this,t),Sn(this,t,[Hippy.bridge.callNativeWithCallbackId(Rn,"createAnimation",!0,e.mode,e)])}return gn(t,e),L(t)}(Dn),Fn=function(e){function t(e){var n=e.children,r=e.repeatCount;return x(this,t),Sn(this,t,[Hippy.bridge.callNativeWithCallbackId(Rn,"createAnimationSet",!0,{children:n,repeatCount:r})])}return gn(t,e),L(t)}(Dn),Bn={get:e=>(Hippy.device||{})[e],set(e){if(e){var t=e.windowPhysicalPixels,n=void 0===t?null:t,r=e.screenPhysicalPixels,i=void 0===r?null:r;n&&(Hippy.device.window={width:n.width,height:n.height,scale:n.scale,fontScale:n.fontScale,statusBarHeight:n.statusBarHeight,navigatorBarHeight:n.navigationBarHeight}),i&&(Hippy.device.screen={width:i.width,height:i.height,scale:i.scale,fontScale:i.fontScale,statusBarHeight:i.statusBarHeight,navigatorBarHeight:i.navigationBarHeight}),Hippy.device.pixelRatio=Hippy.device.window.scale}},init(){var e=__HIPPYNATIVEGLOBAL__.Dimensions,t=e.windowPhysicalPixels,n=e.screenPhysicalPixels;this.set({windowPhysicalPixels:t,screenPhysicalPixels:n})}};var jn={OS:"web",Platform:{OS:"android",Localization:void 0},Dimensions:En({window:{scale:window.devicePixelRatio||1,height:window.innerHeight,width:window.innerWidth}},function(){var e={width:0,height:0,scale:1,fontScale:1,statusBarHeight:0,navigationBarHeight:0},t=e;t.width=window.innerWidth,t.height=window.innerHeight,t.scale=window.devicePixelRatio,t.fontScale=window.devicePixelRatio,t.statusBarHeight=0,t.navigationBarHeight=0;var n=e;return n.width=window.innerWidth,n.height=window.innerHeight,n.scale=window.devicePixelRatio,n.fontScale=window.devicePixelRatio,n.statusBarHeight=0,n.navigationBarHeight=0,{windowPhysicalPixels:t,screenPhysicalPixels:n}}())},Vn=function(){return L(function e(t){var n=this;x(this,e),this._headers={},"object"==typeof t&&Object.keys(t).forEach(function(e){var r=t[e];r instanceof Array?r.forEach(function(t){n.append(e,t)}):n.set(e,r)})},[{key:"append",value:function(e,t){if("string"==typeof e&&"string"==typeof t)if(this.has(e)){var n=this._headers[e];n.push(t),this._headers[e]=n}else this._headers[e]=[t]}},{key:"set",value:function(e,t){"string"==typeof e&&"string"==typeof t&&(this._headers[e]=[t])}},{key:"getAll",value:function(){return this._headers["Content-Type"]||this._headers["content-type"]||(this._headers["content-type"]=["text/plain;charset=UTF-8"]),Object.assign({},this._headers)}},{key:"delete",value:function(e){"string"==typeof e&&void 0!==this._headers[e]&&delete this._headers.name}},{key:"get",value:function(e){if("string"==typeof e)return this._headers[e]}},{key:"has",value:function(e){return"string"==typeof e&&void 0!==this._headers[e]}}])}(),Wn=function(){return L(function e(t){x(this,e);var n=t||{};this.status=n.statusCode||404,this.statusText=n.statusLine||"Not Found",this.headers=n.respHeaders||{},this.body=n.respBody||"",this.ok=this.status>=200&&this.status<=299},[{key:"json",value:function(){var e=this;return new Promise(function(t,n){try{t(JSON.parse(e.body))}catch(e){n(new Error("error parsing object"))}})}},{key:"text",value:function(){return Promise.resolve(this.body)}}])}();var Hn,Un=function(e,t){if("string"!=typeof e||"function"!=typeof t)throw new TypeError("Hippy.on() only accept a string as event name and a function as listener");var n=__GLOBAL__.globalEventHandle[e];return n instanceof Set||(__GLOBAL__.globalEventHandle[e]=new Set,n=__GLOBAL__.globalEventHandle[e]),n.add(t),n},Gn=function(e,t){if("string"!=typeof e)throw new TypeError("Hippy.off() only accept a string as event name");var n=__GLOBAL__.globalEventHandle[e];return n instanceof Set?t?(n.delete(t),n):(n.clear(),null):null},zn=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if("string"!=typeof e)throw new TypeError("Hippy.emit() only accept a string as event name");var i=__GLOBAL__.globalEventHandle[e];if(i)try{i.forEach(function(e){return e.apply(void 0,n)})}catch(e){}else"uncaughtException"===e&&n[0]},Yn=function(e){return e?((t=Array.isArray(e)?e:[e])&&t.map(function(e){return function(e){if(!e)return null;var t=new Error(e.message);return t.key=e.key,t}(e)}),t):null;var t},qn={getAllKeys:()=>Hippy.bridge.callNativeWithPromise("StorageModule","getAllKeys"),setItem(e,t){var n=t;if("string"!=typeof n)try{n=n.toString()}catch(e){throw e}return Hippy.bridge.callNativeWithPromise("StorageModule","multiSet",[[e,n]])},getItem:e=>Hippy.bridge.callNativeWithPromise("StorageModule","multiGet",[e]).then(function(e){return e&&e[0]&&e[0][1]?e[0][1]:null}).catch(function(e){return Yn(e)}),removeItem:e=>Hippy.bridge.callNativeWithPromise("StorageModule","multiRemove",[e]),multiGet:e=>Hippy.bridge.callNativeWithPromise("StorageModule","multiGet",e),multiSet:e=>Hippy.bridge.callNativeWithPromise("StorageModule","multiSet",e),multiRemove:e=>Hippy.bridge.callNativeWithPromise("StorageModule","multiRemove",e)},Xn=["measureInWindow","measureInAppWindow","getBoundingClientRect"],Kn={createNode(e,t){Hippy.bridge.callNative("UIManagerModule","createNode",e,t)},updateNode(e,t){Hippy.bridge.callNative("UIManagerModule","updateNode",e,t)},deleteNode(e,t){Hippy.bridge.callNative("UIManagerModule","deleteNode",e,t)},flushBatch(e,t){Hippy.bridge.callNative("UIManagerModule","flushBatch",e,t)},startBatch(){Hippy.bridge.callNative("UIManagerModule","startBatch")},endBatch(){Hippy.bridge.callNative("UIManagerModule","endBatch"),"function"==typeof flushQueueImmediate&&flushQueueImmediate()},sendRenderError(e){if(e)throw e},callUIFunction(e,t,n,r){Xn.includes(t)?Hippy.bridge.callNative("UIManagerModule",t,[e,n],r):Hippy.bridge.callNative("UIManagerModule","callUIFunction",[e,t,n],r)}},$n={country:"",language:"",direction:0},Zn={callNative:function(){if("undefined"==typeof hippyCallNatives)throw new ReferenceError("hippyCallNatives not defined");for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(t.length<2)throw new TypeError("Arguments length must be larger than 2");var r=__GLOBAL__.moduleCallId;__GLOBAL__.moduleCallId+=1;for(var i=[],o=0,a=2;a<t.length;a+=1)"function"==typeof t[a]&&0===o?(o+=1,__GLOBAL__.moduleCallList[r]={cb:t[a],type:0}):i.push(t[a]);var s=-1;o>0&&(s=r),hippyCallNatives(t[0],t[1],s.toString(),i)},callNativeWithCallbackId:function(){if("undefined"==typeof hippyCallNatives)throw new ReferenceError("hippyCallNatives not defined");for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(t.length<3)throw new TypeError("Arguments length must be larger than 3");var r=t[0],i=t[1],o=t[2];if("string"!=typeof r||"string"!=typeof i||"boolean"!=typeof o)throw new TypeError("Invalid arguments");var a=__GLOBAL__.moduleCallId;__GLOBAL__.moduleCallId+=1;var s=[];"AnimationModule"!==r||"createAnimation"!==i&&"createAnimationSet"!==i||s.push(a);for(var u=0,l=3;l<t.length;l+=1)"function"==typeof t[l]&&0===u?(u+=1,__GLOBAL__.moduleCallList[a]={cb:t[l],type:o?1:2}):s.push(t[l]);return"TimerModule"!==r&&"AnimationFrameModule"!==r||s.push(a.toString()),hippyCallNatives(r,i,a.toString(),s),a},callNativeWithPromise:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"undefined"==typeof hippyCallNatives?Promise.reject(new ReferenceError("hippyCallNatives not defined")):t.length<2?Promise.reject(new TypeError("Arguments length must be larger than 2")):new Promise(function(e,n){var r=__GLOBAL__.moduleCallId;__GLOBAL__.moduleCallId+=1;for(var i=[],o=0,a=2;a<t.length;a+=1)"function"==typeof t[a]&&0===o?(o+=1,__GLOBAL__.moduleCallList[r]={cb:t[a],reject:n,type:0}):i.push(t[a]);0===o&&(__GLOBAL__.moduleCallList[r]={cb:e,reject:n,type:0}),hippyCallNatives(t[0],t[1],r.toString(),i)})},callNativeWithoutDelete:function(){if("undefined"==typeof hippyCallNatives)throw new ReferenceError("hippyCallNatives not defined");for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(t.length<2)throw new TypeError("Arguments length must be larger than 2");var r=__GLOBAL__.moduleCallId;__GLOBAL__.moduleCallId+=1;for(var i=[],o=0,a=2;a<t.length;a+=1)"function"==typeof t[a]&&0===o?(o+=1,__GLOBAL__.moduleCallList[r]={cb:t[a],type:2}):i.push(t[a]);var s=-1;o>0&&(s=r),hippyCallNatives(t[0],t[1],s.toString(),i)},removeNativeCallback:function(e){if("number"!=typeof e||e<0)throw new TypeError("Invalid arguments");if("object"!=typeof __GLOBAL__||"object"!=typeof __GLOBAL__.moduleCallList)throw new ReferenceError("moduleCallList not defined");var t=__GLOBAL__.moduleCallList[e];!t||1!==t.type&&2!==t.type||delete __GLOBAL__.moduleCallList[e]}},Jn=xn();"undefined"!=typeof window&&(window.global=Jn),Jn.Hippy={},Jn.__GLOBAL__={},Jn.hippyBridge=function(e,t){var r="success",i=e,o=t;switch("pauseInstance"===i&&(i="callJsModule",o={methodName:"receiveNativeEvent",moduleName:"EventDispatcher",params:["@hippy:pauseInstance",null]}),"resumeInstance"===i&&(i="callJsModule",o={methodName:"receiveNativeEvent",moduleName:"EventDispatcher",params:["@hippy:resumeInstance",null]}),i){case"loadInstance":if(!__GLOBAL__.appRegister[o.name])throw r="error: ".concat(o.name," is not regist in js"),Error(r);Object.assign(o.params,{__instanceName__:o.name,__instanceId__:o.id}),Object.assign(__GLOBAL__.appRegister[o.name],{id:o.id,superProps:o.params});var a=__GLOBAL__.jsModuleList.EventDispatcher;if(a&&"function"==typeof a.receiveNativeEvent){var s=["@hp:loadInstance",o.params];a.receiveNativeEvent(s)}__GLOBAL__.appRegister[o.name].run(o.params);break;case"callBack":if(1===o.result)r="error: native no modules";else if(o.callId&&"AnimationFrameModule"===o.moduleName&&"requestAnimationFrame"===o.moduleFunc)__GLOBAL__.canRequestAnimationFrame=!0,__GLOBAL__.requestAnimationFrameQueue[o.callId]&&(__GLOBAL__.requestAnimationFrameQueue[o.callId].forEach(function(e){"function"==typeof e&&e(o.params)}),delete __GLOBAL__.requestAnimationFrameQueue[o.callId]);else if(o.callId&&__GLOBAL__.moduleCallList[o.callId]){var u=__GLOBAL__.moduleCallList[o.callId];0!==o.result&&"function"==typeof u.reject?u.reject(o.params):u.cb(o.params),0!==u.type&&1!==u.type||delete __GLOBAL__.moduleCallList[o.callId]}else r="error: calljs id is not regist in js";break;case"callJsModule":if(o&&o.moduleName&&o.methodName){var l=__GLOBAL__.jsModuleList[o.moduleName];l&&"function"==typeof l[o.methodName]?l[o.methodName](o.params,o.secondParams):r="error: callJsModule targetting an undefined module or method"}else r="error: callJsModule param invalid";break;case"destroyInstance":n.g.Hippy.emit("destroyInstance",o);var c=Date.now().toString();Hippy.bridge.callNative("UIManagerModule","startBatch",c),Hippy.bridge.callNative("UIManagerModule","deleteNode",o,[[{id:o}]]),Hippy.bridge.callNative("UIManagerModule","endBatch",c),delete __GLOBAL__.nodeIdCache[o],delete __GLOBAL__.nodeTreeCache[o],__GLOBAL__.destroyInstanceList[o]=!0;break;default:r="error: action not define"}return r},Jn.__ISHIPPY__=!0,Jn.__GLOBAL__.globalEventHandle={},Jn.__GLOBAL__.jsModuleList={Dimensions:Bn},Jn.__HIPPYNATIVEGLOBAL__=jn,Jn.HippyDealloc=function(){Hippy&&Hippy.emit("dealloc")},Jn.__Headers=Jn.Headers,Jn.Headers=Vn,Jn.__Response=Jn.Response,Jn.Response=Wn,Jn.__fetch=Jn.fetch,Jn.fetch=function(e,t){if("string"!=typeof e)return Promise.reject(new Error("only String url supported"));var n=t||{},r={};if(n.headers)if(n.headers instanceof Vn)r=n.headers.getAll();else{if(n.headers.constructor!==Object)return Promise.reject(new Error("Only Headers instance or a pure object is acceptable for headers option"));r=new Vn(n.headers).getAll()}var i={method:n.method||"GET",url:e,headers:r||{},body:n.body||""};return new Promise(function(e,t){Hippy.bridge.callNativeWithPromise("network","fetch",i).then(function(n){if("object"==typeof n){var r=new Wn(n);e(r)}else t(n)}).catch(function(e){t(e)})})},Jn.__WebSocket=Jn.WebSocket,Jn.getTurboModule=function(e){var t=Hippy.web.engine.modules[e];return t},Jn.dynamicLoad=function(e,t,n){var r=document.createElement("script");r.async=!0,r.setAttribute("src",e),"function"==typeof n&&(r.onload=function(){n()},r.onerror=function(){n('load script "'.concat(e,'" error'))}),document.head.appendChild(r)},__GLOBAL__.appRegister={},__GLOBAL__.nodeIdCache={},__GLOBAL__.nodeTreeCache={},__GLOBAL__.nodeParamCache={},__GLOBAL__.moduleCallId=0,__GLOBAL__.moduleCallList={},__GLOBAL__.canRequestAnimationFrame=!0,__GLOBAL__.requestAnimationFrameId=0,__GLOBAL__.requestAnimationFrameQueue={},__GLOBAL__.destroyInstanceList={},Hippy.bridge=Zn,Hippy.device={vibrate:function(){},cancelVibrate:function(){}},Hippy.register={regist:function(e,t){"ios"===__HIPPYNATIVEGLOBAL__.OS&&Hippy.bridge.callNative("JSCExecutor","setContextName","HippyContext: ".concat(e)),__GLOBAL__.appRegister[e]={run:t}}},Hippy.on=Un,Hippy.off=Gn,Hippy.emit=zn,Hippy.asyncStorage=qn,Hippy.turboPromise=function(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return new Promise(function(t,r){var i={resolve:t,reject:r};e.apply(null,[].concat(n,[i]))})}},Hippy.document=Kn,Hippy.device.platform={OS:__HIPPYNATIVEGLOBAL__.Platform.OS,Localization:__HIPPYNATIVEGLOBAL__.Platform.Localization||$n},Hippy.SceneBuilder=Nn,Hippy.Animation=Mn,Hippy.AnimationSet=Fn,Jn.__localStorage=Jn.localStorage,Object.defineProperty(Jn,"localStorage",{value:Hippy.asyncStorage}),Jn.turboPromise=Hippy.turboPromise,Object.defineProperty(Jn.console,"reportUncaughtException",{value:function(e){if(e&&e instanceof Error)throw e}}),Jn.addEventListener("unhandledrejection",function(e){Jn.Hippy.emit("unhandledRejection",null==e?void 0:e.reason,null==e?void 0:e.promise)}),Bn.init(),function(e){e.VIEW="View",e.TEXT="Text",e.IMAGE="Image",e.LIST_ITEM="ListViewItem",e.LIST="ListView",e.REFRESH="RefreshWrapper",e.REFRESH_ITEM="RefreshWrapperItemView",e.SCROLL_VIEW="ScrollView",e.VIEW_PAGER="ViewPager",e.VIEW_PAGER_ITEM="ViewPagerItem",e.TEXT_INPUT="TextInput",e.MODAL="Modal",e.WEB_VIEW="WebView"}(Hn||(Hn={}));var Qn,er,tr,nr,rr,ir,or,ar,sr=2;!function(e){e.HEAD="head",e.clip="clip",e.MIDDLE="middle",e.TAIL="tail"}(Qn||(Qn={})),function(e){e.COVER="cover",e.CONTAIN="contain",e.STRETCH="stretch",e.REPEAT="repeat",e.CENTER="center"}(er||(er={})),function(e){e.ELLIPSIZE_MODE="ellipsizeMode",e.TINY_COLOR="tinyColor",e.ON_LOAD="onLoad",e.ON_LOAD_START="onLoadStart",e.ON_LOAD_END="onLoadEnd",e.RESIZE_MODE="resizeMode",e.SOURCE="source",e.DEFAULT_SOURCE="defaultSource",e.ON_ERROR="onError",e.ON_PROGRESS="onProgress",e.CAP_INSETS="capInsets",e.HORIZONTAL="horizontal",e.STYLE="style",e.METHOD="method",e.USER_AGENT="userAgent",e.INITIAL_LIST_SIZE="initialListSize",e.INITIAL_CONTENT_OFFSET="initialContentOffset",e.BOUNCES="bounces",e.CONTENT_CONTAINER_STYLE="contentContainerStyle",e.SCROLL_INDICATOR_INSETS="scrollIndicatorInsets",e.OVER_SCROLL_ENABLED="overScrollEnabled",e.PRELOAD_ITEM_NUMBER="preloadItemNumber",e.ON_APPEAR="onAppear",e.ON_DISAPPEAR="onDisappear",e.ON_WILL_APPEAR="onWillAppear",e.ON_WILL_DISAPPEAR="onWillDisappear",e.ON_END_REACHED="onEndReached",e.ON_LOAD_MORE="onLoadMore",e.ON_MOMENTUM_SCROLL_BEGIN="onMomentumScrollBegin",e.ON_MOMENTUM_SCROLL_END="onMomentumScrollEnd",e.ON_SCROLL="onScroll",e.ON_SCROLL_BEGIN_DRAG="onScrollBeginDrag",e.ON_SCROLL_END_DRAG="onScrollEndDrag",e.ROW_SHOULD_STICKY="rowShouldSticky",e.STICKY="sticky",e.ON_HEADER_PULLING="onHeaderPulling",e.ON_HEADER_RELEASED="onHeaderReleased",e.SCROLL_EVENT_THROTTLE="scrollEventThrottle",e.INITIAL_LIST_READY="initialListReady",e.SCROLL_TO_CONTENT_OFFSET="scrollToContentOffset",e.SCROLL_TO_INDEX="scrollToIndex",e.COLLAPSE_PULL_HEADER="collapsePullHeader",e.ANIMATED="animated",e.ANIMATION_TYPE="animationType",e.SUPPORTED_ORIENTATIONS="supportedOrientations",e.IMMERSION_STATUS_BAR="immersionStatusBar",e.DARK_STATUS_BAR_TEXT="darkStatusBarText",e.ON_SHOW="onShow",e.ON_ORIENTATION_CHANGE="onOrientationChange",e.ON_REQUEST_CLOSE="onRequestClose",e.TRANSPARENT="transparent",e.VISIBLE="visible",e.ON_REFRESH="onRefresh",e.GET_REFRESH="getRefresh",e.BOUNCE_TIME="bounceTime",e.REFRESH_COMPLETED="refreshComplected",e.START_REFRESH="startRefresh",e.PAGING_ENABLED="pagingEnabled",e.SCROLL_ENABLED="scrollEnabled",e.SHOW_HORIZONTAL_SCROLL_INDICATOR="showsHorizontalScrollIndicator",e.SHOW_VERTICAL_SCROLL_INDICATOR="showsVerticalScrollIndicator",e.SHOW_SCROLL_INDICATOR="showScrollIndicator",e.DEFAULT_VALUE="defaultValue",e.EDITABLE="editable",e.KEY_BOARD_TYPE="keyboardType",e.MAX_LENGTH="maxLength",e.MULTILINE="multiline",e.NUMBER_OF_LINES="numberOfLines",e.ON_BLUR="onBlur",e.ON_CHANGE_TEXT="onChangeText",e.ON_KEYBOARD_WILL_SHOW="onKeyboardWillShow",e.ON_END_EDITING="onEndEditing",e.ON_SELECTION_CHANGE="onSelectionChange",e.PLACEHOLDER="placeholder",e.PLACEHOLDER_TEXT_COLOR="placeholderTextColor",e.PLACEHOLDER_TEXT_COLORS="placeholderTextColors",e.RETURN_KEY_TYPE="returnKeyType",e.VALUE="value",e.AUTO_FOCUS="autoFocus",e.BLUR_TEXT_INPUT="blurTextInput",e.CLEAR="clear",e.FOCUS_TEXT_INPUT="focusTextInput",e.IS_FOCUSED="isFocused",e.GET_VALUE="getValue",e.HIDE_INPUT_METHOD="hideInputMethod",e.SET_VALUE="setValue",e.SHOW_INPUT_METHOD="showInputMethod",e.ON_LAYOUT="onLayout",e.ACCESSIBLE="accessible",e.ACCESSIBILITY_LABEL="accessibilityLabel",e.OPACITY="opacity",e.OVERFLOW="overflow",e.ON_ATTACHED_TO_WINDOW="onAttachedToWindow",e.ON_TOUCH_DOWN="onTouchDown",e.ON_TOUCH_MOVE="onTouchMove",e.ON_TOUCH_END="onTouchEnd",e.ON_TOUCH_CANCEL="onTouchCancel",e.HIPPY_VIEW_PAGER_ITEM_PROPS="hippyViewPagerItemProps",e.INITIAL_PAGE="initialPage",e.ON_PAGE_SELECTED="onPageSelected",e.ON_PAGE_SCROLL="onPageScroll",e.ON_PAGE_SCROLL_STATE_CHANGED="onPageScrollStateChanged",e.DIRECTION="direction",e.SET_PAGE="setPage",e.SET_PAGE_WITHOUT_ANIMATION="setPageWithoutAnimation",e.ON_CLICK="onClick",e.ON_LONG_CLICK="onLongClick"}(tr||(tr={})),function(e){e.default="default",e.numeric="numeric",e.password="password",e.email="email",e.phonePad="phone-pad"}(nr||(nr={})),function(e){e.done="done",e.go="go",e.next="next",e.search="search",e.send="send"}(rr||(rr={})),function(e){e.Slide="slide",e.Fade="fade",e.SlideFade="slide_fade",e.None="none"}(ir||(ir={})),function(e){e.Portrait="portrait",e.PortraitUpsideDown="portrait-upside-down",e.Landscape="landscape",e.LandscapeLeft="landscape-left",e.LandscapeRight="landscape-right"}(or||(or={})),function(e){e.IDLE="idle",e.DRAG="dragging",e.SETTL="settling"}(ar||(ar={}));var ur="marginVertical",lr="marginHorizontal",cr="paddingVertical",dr="paddingHorizontal";function hr(e,t){return e&&Object.prototype.hasOwnProperty.call(e,t)}function fr(e,t,n){if(null!==t){for(var r,i,o,a,s={},u={},l={},c=0,d=Object.keys(t);c<d.length;c++){var h=d[c];if(hr(t,h))if(-1===h.indexOf("shadow"))if(-1===h.indexOf("textShadow"))if(!mr(h)||isNaN(t[h]))if(pr(h,t[h])&&n)n(h,t[h],e);else if(kr(h)&&"span"===e.tagName){var f=wr(t[h]);vr(e,h,f),vr(e,"line-height",f)}else{if(gr(h,t[h]))vr(e,h,wr(t[h]));else _r(h)?vr(e,h,parseInt(t[h],10)):(br(h)&&(l[h]=t[h]),vr(e,h,t[h]))}else vr(e,h,yr(t[h]));else u[h]=t[h];else s[h]=t[h]}!function(e,t){t.borderStyle||Er(e,t);!t.borderStyle||t.borderWidth||t.borderTopWidth||t.borderLeftWidth||t.borderRightWidth||t.borderBottomWidth?!t.borderStyle&&t.borderWidth?vr(e,"borderStyle","solid"):t.borderStyle&&!t.borderWidth&&(t.borderTopWidth||t.borderLeftWidth||t.borderRightWidth||t.borderBottomWidth)&&(vr(e,"borderStyle","none"),Er(e,t)):vr(e,"borderStyle","none");void 0!==t[ur]&&(vr(e,"marginTop",wr(t[ur])),vr(e,"marginBottom",wr(t[ur])));void 0!==t[lr]&&(vr(e,"marginLeft",wr(t[lr])),vr(e,"marginRight",wr(t[lr])));void 0!==t[cr]&&(vr(e,"paddingTop",wr(t[cr])),vr(e,"paddingBottom",wr(t[cr])));void 0!==t[dr]&&(vr(e,"paddingLeft",wr(t[dr])),vr(e,"paddingRight",wr(t[dr])))}(e,t),s.shadowRadius&&vr(e,"box-shadow","".concat(null!==(i=(r=s).shadowOffsetX)&&void 0!==i?i:0,"px ").concat(null!==(o=r.shadowOffsetY)&&void 0!==o?o:0,"px ").concat(null!==(a=r.shadowRadius)&&void 0!==a?a:0,"px ").concat(yr(r.shadowColor))),(u.textShadowColor||u.textShadowOffset||u.textShadowOffsetX||u.textShadowOffsetY)&&vr(e,"text-shadow",function(e){var t,n,r,i,o,a,s;return"".concat(null!==(r=null!==(t=null==e?void 0:e.textShadowOffsetX)&&void 0!==t?t:null===(n=null==e?void 0:e.textShadowOffset)||void 0===n?void 0:n.width)&&void 0!==r?r:0,"px ").concat(null!==(a=null!==(i=null==e?void 0:e.textShadowOffsetY)&&void 0!==i?i:null===(o=null==e?void 0:e.textShadowOffset)||void 0===o?void 0:o.height)&&void 0!==a?a:0,"px\n ").concat(null!==(s=e.textShadowRadius)&&void 0!==s?s:0,"px ").concat(yr(e.textShadowColor))}(u)),function(e,t){for(var n,r=function(){var r=o[i];if("backgroundImage"===r)return vr(t,r,"url(".concat(e.backgroundImage,")")),1;if("backgroundSize"===r&&"contain"===e.backgroundSize?vr(t,r,"100% 100%"):"backgroundSize"===r&&vr(t,r,e.backgroundSize),"linearGradient"===r){var a="".concat(null!==(n=e.linearGradient.angle)&&void 0!==n?n:"0","deg"),s="".concat(a," ");e.linearGradient.colorStopList.forEach(function(e){s+=",".concat(yr(e.color)).concat(e.ratio>=0?" ".concat(100*e.ratio,"%"):"")}),vr(t,"background","linear-gradient(".concat(s,")"))}},i=0,o=Object.keys(e);i<o.length;i++)r();Object.keys(e).length>0&&vr(t,"backgroundRepeat","no-repeat")}(l,e)}}function pr(e,t){return!!hr(t,"animationId")||(!("transform"!==e||!Array.isArray(t))||void 0)}function vr(e,t,n){var r;null!==e.style[t]&&void 0!==e.style[t]&&""!==e.style[t]&&e.style[t]===(null===(r=null==n?void 0:n.trim)||void 0===r?void 0:r.call(n))||(e.style[t]=n)}function yr(e){var t=e>>24&255,n=e>>8&255,r=255&e;return"rgba(".concat(e>>16&255,", ").concat(n,", ").concat(r,", ").concat((t/256).toFixed(3),")")}function mr(e){return e.endsWith("Color")||e.endsWith("color")}function gr(e,t){return!(isNaN(t)||e.startsWith("flex")||e.startsWith("zIndex")||e.startsWith("-webkit")||e.startsWith("z-index")||e.startsWith("opacity"))}function _r(e){return e.startsWith("zIndex")||e.startsWith("z-index")}function br(e){return e.startsWith("background")||e.startsWith("linearGradient")}function wr(e){return isNaN(e)?e:"".concat(e,"px")}function kr(e){return e.startsWith("fontSize")}function Er(e,t){t.borderTopWidth&&vr(e,"borderTopStyle","solid"),t.borderLeftWidth&&vr(e,"borderLeftStyle","solid"),t.borderRightWidth&&vr(e,"borderRightStyle","solid"),t.borderBottomWidth&&vr(e,"borderBottomStyle","solid")}function Sr(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n]}var Ar=function(){},xr=function(){return L(function e(t){x(this,e),this.engine=t},[{key:"sendEvent",value:function(e,t){hippyBridge("callJsModule",{moduleName:"EventDispatcher",methodName:"receiveNativeEvent",params:[e,t]})}},{key:"sendUiEvent",value:function(e,t,n){hippyBridge("callJsModule",{moduleName:"EventDispatcher",methodName:"receiveUIComponentEvent",params:[e,t,n]})}},{key:"sendGestureEvent",value:function(e){hippyBridge("callJsModule",{moduleName:"EventDispatcher",methodName:"receiveNativeGesture",params:e})}},{key:"subscribe",value:function(e,t){this.engine.eventBus.subscribe(e,t)}},{key:"getModuleByName",value:function(e){return this.engine.modules[e]}}])}(),Cr=function(){return L(function e(){x(this,e),this.subscriptions=Object.create(null)},[{key:"subscribe",value:function(e,t){if("function"!=typeof t)throw"Subscribers must be functions";var n=this.subscriptions[e]||[];n.push(t),this.subscriptions[e]=n}},{key:"publish",value:function(e){for(var t=this.subscriptions[e]||[],n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];for(var o=0;o<t.length;o++)t[o].apply(null,r)}},{key:"unsubscribe",value:function(e,t){var n=(this.subscriptions[e]||[]).filter(function(e){return e!==t});this.subscriptions[e]=n}},{key:"cancel",value:function(e){delete this.subscriptions[e]}}])}();function Tr(e){return new Promise(function(t){var n=e.length;function r(e){var r=document.createElement("script");r.setAttribute("src",e),r.onload=function(){(n-=1)<1&&t()},document.body.appendChild(r)}var i,o=bn(e);try{for(o.s();!(i=o.n()).done;){r(i.value)}}catch(e){o.e(e)}finally{o.f()}})}var Lr=function(){function e(t){x(this,e),this.modules={},this.components={},this.eventBus=new Cr,this.pendingQueue={},this.pendingModules={},this.context=new xr(this);var n=t||{},r=n.modules,i=n.components;this.registerCore(),this.registerModules(r),this.registerComponents(i),Cn.hippyCallNatives=function(e){return function(t,n,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];e.invokeModuleMethod(t,n,r,i)}}(this),this.eventBus.publish("ready")}return L(e,[{key:"registerCore",value:function(){this.registerModules(e.coreModules),this.registerComponents(e.coreComponents)}},{key:"registerModules",value:function(e){var t=this;Object.keys(e||{}).forEach(function(n){var r=new(0,e[n])(t.context),i=""===r.name?n:r.name;t.modules[i]=r})}},{key:"registerComponents",value:function(e){var t=this;if(void 0!==e)if(Array.isArray(e))e.forEach(function(e){t.components[e.name]=e});else for(var n=0,r=Object.keys(e);n<r.length;n++){var i=r[n];this.registerComponent(i,e[i])}}},{key:"registerComponent",value:function(e,t){this.components[e]=t}},{key:"start",value:function(e){var t=this,n=e;n.params||(n.params={}),this.instance=n,Object.keys(this.modules).forEach(function(e){var n;null===(n=t.modules[e])||void 0===n||n.init()}),hippyBridge("loadInstance",n),this.eventBus.publish("loaded")}},{key:"stop",value:function(){this.eventBus.publish("beforeDestroy"),this.instance&&hippyBridge("destroyInstance",this.instance.id)}},{key:"pause",value:function(){hippyBridge("pauseInstance")}},{key:"resume",value:function(){hippyBridge("resumeInstance")}},{key:"load",value:function(e){return Tr(e)}},{key:"invokeModuleMethod",value:(n=l(d().mark(function e(t,n,r){var i,o,a,s,u=arguments;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(i=u.length>3&&void 0!==u[3]?u[3]:[],!(null==(o=this.modules[t])?void 0:o[n])){e.next=5;break}if("sequential"!==o.mode){e.next=4;break}if(this.pendingQueue[t]||(this.pendingQueue[t]=[]),(a=this.pendingQueue[t]).push([t,n,r,i]),!0!==this.pendingModules[t]){e.next=1;break}return e.abrupt("return");case 1:if(!(a.length>0)){e.next=3;break}return this.pendingModules[t]=!0,s=a[0],e.next=2,this.invokeModuleMethodImmediately(s[0],s[1],s[2],s[3]);case 2:a.shift(),e.next=1;break;case 3:this.pendingModules[t]=!1,e.next=5;break;case 4:return e.next=5,this.invokeModuleMethodImmediately(t,n,r,i);case 5:case"end":return e.stop()}},e,this)})),function(e,t,r){return n.apply(this,arguments)})},{key:"invokeModuleMethodImmediately",value:(t=l(d().mark(function e(t,n,r){var i,o,a,s,u,l=arguments;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return i=l.length>3&&void 0!==l[3]?l[3]:[],o=this.modules[t],a=null!=r?Or(t,n,r):void 0,s=[].concat(k(i),[a]),u=o[n],e.prev=1,e.next=2,u.apply(o,s);case 2:e.next=4;break;case 3:e.prev=3,e.catch(1);case 4:case"end":return e.stop()}},e,this,[[1,3]])})),function(e,n,r){return t.apply(this,arguments)})}],[{key:"create",value:function(t){if(void 0===Hippy.web.engine){var n=new e(t);Hippy.web.engine=n}return Hippy.web.engine}}]);var t,n}();Lr.coreModules={};var Or=function(e,t,n){return{resolve:function(r){hippyBridge("callBack",{callId:n,methodName:t,moduleName:e,params:r,result:0})},reject:function(r){hippyBridge("callBack",{callId:n,methodName:t,moduleName:e,params:r,result:-1})}}},Pr=L(function e(){x(this,e),this.name=""}),Ir=function(e){function t(e){var n;return x(this,t),(n=Sn(this,t)).mode="normal",n.context=e,n}return gn(t,e),L(t,[{key:"init",value:function(){}}])}(Pr),Nr=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some(function(e,r){return e[0]===t&&(n=r,!0)}),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var i=r[n];e.call(t,i[1],i[0])}},t}()}(),Rr="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,Dr=void 0!==n.g&&n.g.Math===Math?n.g:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),Mr="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(Dr):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)};var Fr=["top","right","bottom","left","width","height","size","weight"],Br="undefined"!=typeof MutationObserver,jr=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,r=!1,i=0;function o(){n&&(n=!1,e()),r&&s()}function a(){Mr(o)}function s(){var e=Date.now();if(n){if(e-i<2)return;r=!0}else n=!0,r=!1,setTimeout(a,t);i=e}return s}(this.refresh.bind(this),20)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter(function(e){return e.gatherActive(),e.hasActive()});return e.forEach(function(e){return e.broadcastActive()}),e.length>0},e.prototype.connect_=function(){Rr&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Br?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){Rr&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;Fr.some(function(e){return!!~n.indexOf(e)})&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),Vr=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var i=r[n];Object.defineProperty(e,i,{value:t[i],enumerable:!1,writable:!1,configurable:!0})}return e},Wr=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||Dr},Hr=Xr(0,0,0,0);function Ur(e){return parseFloat(e)||0}function Gr(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(t,n){return t+Ur(e["border-"+n+"-width"])},0)}function zr(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return Hr;var r=Wr(e).getComputedStyle(e),i=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var i=r[n],o=e["padding-"+i];t[i]=Ur(o)}return t}(r),o=i.left+i.right,a=i.top+i.bottom,s=Ur(r.width),u=Ur(r.height);if("border-box"===r.boxSizing&&(Math.round(s+o)!==t&&(s-=Gr(r,"left","right")+o),Math.round(u+a)!==n&&(u-=Gr(r,"top","bottom")+a)),!function(e){return e===Wr(e).document.documentElement}(e)){var l=Math.round(s+o)-t,c=Math.round(u+a)-n;1!==Math.abs(l)&&(s-=l),1!==Math.abs(c)&&(u-=c)}return Xr(i.left,i.top,s,u)}var Yr="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof Wr(e).SVGGraphicsElement}:function(e){return e instanceof Wr(e).SVGElement&&"function"==typeof e.getBBox};function qr(e){return Rr?Yr(e)?function(e){var t=e.getBBox();return Xr(0,0,t.width,t.height)}(e):zr(e):Hr}function Xr(e,t,n,r){return{x:e,y:t,width:n,height:r}}var Kr=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Xr(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=qr(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),$r=function(e,t){var n,r,i,o,a,s,u,l=(r=(n=t).x,i=n.y,o=n.width,a=n.height,s="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,u=Object.create(s.prototype),Vr(u,{x:r,y:i,width:o,height:a,top:i,right:r+o,bottom:a+i,left:r}),u);Vr(this,{target:e,contentRect:l})},Zr=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new Nr,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof Wr(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new Kr(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof Wr(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach(function(t){t.isActive()&&e.activeObservations_.push(t)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map(function(e){return new $r(e.target,e.broadcastRect())});this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),Jr="undefined"!=typeof WeakMap?new WeakMap:new Nr,Qr=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=jr.getInstance(),r=new Zr(t,n,this);Jr.set(this,r)};["observe","unobserve","disconnect"].forEach(function(e){Qr.prototype[e]=function(){var t;return(t=Jr.get(this))[e].apply(t,arguments)}});var ei=void 0!==Dr.ResizeObserver?Dr.ResizeObserver:Qr;function ti(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ni,ri={exports:{}};ni=ri,function(e,t,n,r){var i,o=["","webkit","Moz","MS","ms","o"],a=t.createElement("div"),s=Math.round,u=Math.abs,l=Date.now;function c(e,t,n){return setTimeout(m(e,n),t)}function d(e,t,n){return!!Array.isArray(e)&&(h(e,n[t],n),!0)}function h(e,t,n){var i;if(e)if(e.forEach)e.forEach(t,n);else if(e.length!==r)for(i=0;i<e.length;)t.call(n,e[i],i,e),i++;else for(i in e)e.hasOwnProperty(i)&&t.call(n,e[i],i,e)}function f(t,n,r){var i="DEPRECATED METHOD: "+n+"\n"+r+" AT \n";return function(){var n=new Error("get-stack-trace"),r=n&&n.stack?n.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",o=e.console&&(e.console.warn||e.console.log);return o&&o.call(e.console,i,r),t.apply(this,arguments)}}i="function"!=typeof Object.assign?function(e){if(e===r||null===e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),n=1;n<arguments.length;n++){var i=arguments[n];if(i!==r&&null!==i)for(var o in i)i.hasOwnProperty(o)&&(t[o]=i[o])}return t}:Object.assign;var p=f(function(e,t,n){for(var i=Object.keys(t),o=0;o<i.length;)(!n||n&&e[i[o]]===r)&&(e[i[o]]=t[i[o]]),o++;return e},"extend","Use `assign`."),v=f(function(e,t){return p(e,t,!0)},"merge","Use `assign`.");function y(e,t,n){var r,o=t.prototype;(r=e.prototype=Object.create(o)).constructor=e,r._super=o,n&&i(r,n)}function m(e,t){return function(){return e.apply(t,arguments)}}function g(e,t){return"function"==typeof e?e.apply(t&&t[0]||r,t):e}function _(e,t){return e===r?t:e}function b(e,t,n){h(S(t),function(t){e.addEventListener(t,n,!1)})}function w(e,t,n){h(S(t),function(t){e.removeEventListener(t,n,!1)})}function k(e,t){for(;e;){if(e==t)return!0;e=e.parentNode}return!1}function E(e,t){return e.indexOf(t)>-1}function S(e){return e.trim().split(/\s+/g)}function A(e,t,n){if(e.indexOf&&!n)return e.indexOf(t);for(var r=0;r<e.length;){if(n&&e[r][n]==t||!n&&e[r]===t)return r;r++}return-1}function x(e){return Array.prototype.slice.call(e,0)}function C(e,t,n){for(var r=[],i=[],o=0;o<e.length;){var a=t?e[o][t]:e[o];A(i,a)<0&&r.push(e[o]),i[o]=a,o++}return n&&(r=t?r.sort(function(e,n){return e[t]>n[t]}):r.sort()),r}function T(e,t){for(var n,i,a=t[0].toUpperCase()+t.slice(1),s=0;s<o.length;){if((i=(n=o[s])?n+a:t)in e)return i;s++}return r}var L=1;function O(t){var n=t.ownerDocument||t;return n.defaultView||n.parentWindow||e}var P="ontouchstart"in e,I=T(e,"PointerEvent")!==r,N=P&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),R="touch",D="mouse",M=24,F=["x","y"],B=["clientX","clientY"];function j(e,t){var n=this;this.manager=e,this.callback=t,this.element=e.element,this.target=e.options.inputTarget,this.domHandler=function(t){g(e.options.enable,[e])&&n.handler(t)},this.init()}function V(e,t,n){var i=n.pointers.length,o=n.changedPointers.length,a=1&t&&i-o===0,s=12&t&&i-o===0;n.isFirst=!!a,n.isFinal=!!s,a&&(e.session={}),n.eventType=t,function(e,t){var n=e.session,i=t.pointers,o=i.length;n.firstInput||(n.firstInput=W(t)),o>1&&!n.firstMultiple?n.firstMultiple=W(t):1===o&&(n.firstMultiple=!1);var a=n.firstInput,s=n.firstMultiple,c=s?s.center:a.center,d=t.center=H(i);t.timeStamp=l(),t.deltaTime=t.timeStamp-a.timeStamp,t.angle=Y(c,d),t.distance=z(c,d),function(e,t){var n=t.center,r=e.offsetDelta||{},i=e.prevDelta||{},o=e.prevInput||{};1!==t.eventType&&4!==o.eventType||(i=e.prevDelta={x:o.deltaX||0,y:o.deltaY||0},r=e.offsetDelta={x:n.x,y:n.y}),t.deltaX=i.x+(n.x-r.x),t.deltaY=i.y+(n.y-r.y)}(n,t),t.offsetDirection=G(t.deltaX,t.deltaY);var h,f,p=U(t.deltaTime,t.deltaX,t.deltaY);t.overallVelocityX=p.x,t.overallVelocityY=p.y,t.overallVelocity=u(p.x)>u(p.y)?p.x:p.y,t.scale=s?(h=s.pointers,z((f=i)[0],f[1],B)/z(h[0],h[1],B)):1,t.rotation=s?function(e,t){return Y(t[1],t[0],B)+Y(e[1],e[0],B)}(s.pointers,i):0,t.maxPointers=n.prevInput?t.pointers.length>n.prevInput.maxPointers?t.pointers.length:n.prevInput.maxPointers:t.pointers.length,function(e,t){var n,i,o,a,s=e.lastInterval||t,l=t.timeStamp-s.timeStamp;if(8!=t.eventType&&(l>25||s.velocity===r)){var c=t.deltaX-s.deltaX,d=t.deltaY-s.deltaY,h=U(l,c,d);i=h.x,o=h.y,n=u(h.x)>u(h.y)?h.x:h.y,a=G(c,d),e.lastInterval=t}else n=s.velocity,i=s.velocityX,o=s.velocityY,a=s.direction;t.velocity=n,t.velocityX=i,t.velocityY=o,t.direction=a}(n,t);var v=e.element;k(t.srcEvent.target,v)&&(v=t.srcEvent.target),t.target=v}(e,n),e.emit("hammer.input",n),e.recognize(n),e.session.prevInput=n}function W(e){for(var t=[],n=0;n<e.pointers.length;)t[n]={clientX:s(e.pointers[n].clientX),clientY:s(e.pointers[n].clientY)},n++;return{timeStamp:l(),pointers:t,center:H(t),deltaX:e.deltaX,deltaY:e.deltaY}}function H(e){var t=e.length;if(1===t)return{x:s(e[0].clientX),y:s(e[0].clientY)};for(var n=0,r=0,i=0;i<t;)n+=e[i].clientX,r+=e[i].clientY,i++;return{x:s(n/t),y:s(r/t)}}function U(e,t,n){return{x:t/e||0,y:n/e||0}}function G(e,t){return e===t?1:u(e)>=u(t)?e<0?2:4:t<0?8:16}function z(e,t,n){n||(n=F);var r=t[n[0]]-e[n[0]],i=t[n[1]]-e[n[1]];return Math.sqrt(r*r+i*i)}function Y(e,t,n){n||(n=F);var r=t[n[0]]-e[n[0]],i=t[n[1]]-e[n[1]];return 180*Math.atan2(i,r)/Math.PI}j.prototype={handler:function(){},init:function(){this.evEl&&b(this.element,this.evEl,this.domHandler),this.evTarget&&b(this.target,this.evTarget,this.domHandler),this.evWin&&b(O(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&w(this.element,this.evEl,this.domHandler),this.evTarget&&w(this.target,this.evTarget,this.domHandler),this.evWin&&w(O(this.element),this.evWin,this.domHandler)}};var q={mousedown:1,mousemove:2,mouseup:4},X="mousedown",K="mousemove mouseup";function $(){this.evEl=X,this.evWin=K,this.pressed=!1,j.apply(this,arguments)}y($,j,{handler:function(e){var t=q[e.type];1&t&&0===e.button&&(this.pressed=!0),2&t&&1!==e.which&&(t=4),this.pressed&&(4&t&&(this.pressed=!1),this.callback(this.manager,t,{pointers:[e],changedPointers:[e],pointerType:D,srcEvent:e}))}});var Z={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},J={2:R,3:"pen",4:D,5:"kinect"},Q="pointerdown",ee="pointermove pointerup pointercancel";function te(){this.evEl=Q,this.evWin=ee,j.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}e.MSPointerEvent&&!e.PointerEvent&&(Q="MSPointerDown",ee="MSPointerMove MSPointerUp MSPointerCancel"),y(te,j,{handler:function(e){var t=this.store,n=!1,r=e.type.toLowerCase().replace("ms",""),i=Z[r],o=J[e.pointerType]||e.pointerType,a=o==R,s=A(t,e.pointerId,"pointerId");1&i&&(0===e.button||a)?s<0&&(t.push(e),s=t.length-1):12&i&&(n=!0),s<0||(t[s]=e,this.callback(this.manager,i,{pointers:t,changedPointers:[e],pointerType:o,srcEvent:e}),n&&t.splice(s,1))}});var ne={touchstart:1,touchmove:2,touchend:4,touchcancel:8};function re(){this.evTarget="touchstart",this.evWin="touchstart touchmove touchend touchcancel",this.started=!1,j.apply(this,arguments)}function ie(e,t){var n=x(e.touches),r=x(e.changedTouches);return 12&t&&(n=C(n.concat(r),"identifier",!0)),[n,r]}y(re,j,{handler:function(e){var t=ne[e.type];if(1===t&&(this.started=!0),this.started){var n=ie.call(this,e,t);12&t&&n[0].length-n[1].length===0&&(this.started=!1),this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:R,srcEvent:e})}}});var oe={touchstart:1,touchmove:2,touchend:4,touchcancel:8},ae="touchstart touchmove touchend touchcancel";function se(){this.evTarget=ae,this.targetIds={},j.apply(this,arguments)}function ue(e,t){var n=x(e.touches),r=this.targetIds;if(3&t&&1===n.length)return r[n[0].identifier]=!0,[n,n];var i,o,a=x(e.changedTouches),s=[],u=this.target;if(o=n.filter(function(e){return k(e.target,u)}),1===t)for(i=0;i<o.length;)r[o[i].identifier]=!0,i++;for(i=0;i<a.length;)r[a[i].identifier]&&s.push(a[i]),12&t&&delete r[a[i].identifier],i++;return s.length?[C(o.concat(s),"identifier",!0),s]:void 0}function le(){j.apply(this,arguments);var e=m(this.handler,this);this.touch=new se(this.manager,e),this.mouse=new $(this.manager,e),this.primaryTouch=null,this.lastTouches=[]}function ce(e,t){1&e?(this.primaryTouch=t.changedPointers[0].identifier,de.call(this,t)):12&e&&de.call(this,t)}function de(e){var t=e.changedPointers[0];if(t.identifier===this.primaryTouch){var n={x:t.clientX,y:t.clientY};this.lastTouches.push(n);var r=this.lastTouches;setTimeout(function(){var e=r.indexOf(n);e>-1&&r.splice(e,1)},2500)}}function he(e){for(var t=e.srcEvent.clientX,n=e.srcEvent.clientY,r=0;r<this.lastTouches.length;r++){var i=this.lastTouches[r],o=Math.abs(t-i.x),a=Math.abs(n-i.y);if(o<=25&&a<=25)return!0}return!1}y(se,j,{handler:function(e){var t=oe[e.type],n=ue.call(this,e,t);n&&this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:R,srcEvent:e})}}),y(le,j,{handler:function(e,t,n){var r=n.pointerType==R,i=n.pointerType==D;if(!(i&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if(r)ce.call(this,t,n);else if(i&&he.call(this,n))return;this.callback(e,t,n)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var fe=T(a.style,"touchAction"),pe=fe!==r,ve="compute",ye="auto",me="manipulation",ge="none",_e="pan-x",be="pan-y",we=function(){if(!pe)return!1;var t={},n=e.CSS&&e.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(r){t[r]=!n||e.CSS.supports("touch-action",r)}),t}();function ke(e,t){this.manager=e,this.set(t)}ke.prototype={set:function(e){e==ve&&(e=this.compute()),pe&&this.manager.element.style&&we[e]&&(this.manager.element.style[fe]=e),this.actions=e.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var e=[];return h(this.manager.recognizers,function(t){g(t.options.enable,[t])&&(e=e.concat(t.getTouchAction()))}),function(e){if(E(e,ge))return ge;var t=E(e,_e),n=E(e,be);return t&&n?ge:t||n?t?_e:be:E(e,me)?me:ye}(e.join(" "))},preventDefaults:function(e){var t=e.srcEvent,n=e.offsetDirection;if(this.manager.session.prevented)t.preventDefault();else{var r=this.actions,i=E(r,ge)&&!we[ge],o=E(r,be)&&!we[be],a=E(r,_e)&&!we[_e];if(i){var s=1===e.pointers.length,u=e.distance<2,l=e.deltaTime<250;if(s&&u&&l)return}if(!a||!o)return i||o&&6&n||a&&n&M?this.preventSrc(t):void 0}},preventSrc:function(e){this.manager.session.prevented=!0,e.preventDefault()}};var Ee=32;function Se(e){this.options=i({},this.defaults,e||{}),this.id=L++,this.manager=null,this.options.enable=_(this.options.enable,!0),this.state=1,this.simultaneous={},this.requireFail=[]}function Ae(e){return 16&e?"cancel":8&e?"end":4&e?"move":2&e?"start":""}function xe(e){return 16==e?"down":8==e?"up":2==e?"left":4==e?"right":""}function Ce(e,t){var n=t.manager;return n?n.get(e):e}function Te(){Se.apply(this,arguments)}function Le(){Te.apply(this,arguments),this.pX=null,this.pY=null}function Oe(){Te.apply(this,arguments)}function Pe(){Se.apply(this,arguments),this._timer=null,this._input=null}function Ie(){Te.apply(this,arguments)}function Ne(){Te.apply(this,arguments)}function Re(){Se.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function De(e,t){return(t=t||{}).recognizers=_(t.recognizers,De.defaults.preset),new Me(e,t)}function Me(e,t){var n;this.options=i({},De.defaults,t||{}),this.options.inputTarget=this.options.inputTarget||e,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=e,this.input=new((n=this).options.inputClass||(I?te:N?se:P?le:$))(n,V),this.touchAction=new ke(this,this.options.touchAction),Fe(this,!0),h(this.options.recognizers,function(e){var t=this.add(new e[0](e[1]));e[2]&&t.recognizeWith(e[2]),e[3]&&t.requireFailure(e[3])},this)}function Fe(e,t){var n,r=e.element;r.style&&(h(e.options.cssProps,function(i,o){n=T(r.style,o),t?(e.oldCssProps[n]=r.style[n],r.style[n]=i):r.style[n]=e.oldCssProps[n]||""}),t||(e.oldCssProps={}))}Se.prototype={defaults:{},set:function(e){return i(this.options,e),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(e){if(d(e,"recognizeWith",this))return this;var t=this.simultaneous;return t[(e=Ce(e,this)).id]||(t[e.id]=e,e.recognizeWith(this)),this},dropRecognizeWith:function(e){return d(e,"dropRecognizeWith",this)||(e=Ce(e,this),delete this.simultaneous[e.id]),this},requireFailure:function(e){if(d(e,"requireFailure",this))return this;var t=this.requireFail;return-1===A(t,e=Ce(e,this))&&(t.push(e),e.requireFailure(this)),this},dropRequireFailure:function(e){if(d(e,"dropRequireFailure",this))return this;e=Ce(e,this);var t=A(this.requireFail,e);return t>-1&&this.requireFail.splice(t,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(e){return!!this.simultaneous[e.id]},emit:function(e){var t=this,n=this.state;function r(n){t.manager.emit(n,e)}n<8&&r(t.options.event+Ae(n)),r(t.options.event),e.additionalEvent&&r(e.additionalEvent),n>=8&&r(t.options.event+Ae(n))},tryEmit:function(e){if(this.canEmit())return this.emit(e);this.state=Ee},canEmit:function(){for(var e=0;e<this.requireFail.length;){if(!(33&this.requireFail[e].state))return!1;e++}return!0},recognize:function(e){var t=i({},e);if(!g(this.options.enable,[this,t]))return this.reset(),void(this.state=Ee);56&this.state&&(this.state=1),this.state=this.process(t),30&this.state&&this.tryEmit(t)},process:function(e){},getTouchAction:function(){},reset:function(){}},y(Te,Se,{defaults:{pointers:1},attrTest:function(e){var t=this.options.pointers;return 0===t||e.pointers.length===t},process:function(e){var t=this.state,n=e.eventType,r=6&t,i=this.attrTest(e);return r&&(8&n||!i)?16|t:r||i?4&n?8|t:2&t?4|t:2:Ee}}),y(Le,Te,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var e=this.options.direction,t=[];return 6&e&&t.push(be),e&M&&t.push(_e),t},directionTest:function(e){var t=this.options,n=!0,r=e.distance,i=e.direction,o=e.deltaX,a=e.deltaY;return i&t.direction||(6&t.direction?(i=0===o?1:o<0?2:4,n=o!=this.pX,r=Math.abs(e.deltaX)):(i=0===a?1:a<0?8:16,n=a!=this.pY,r=Math.abs(e.deltaY))),e.direction=i,n&&r>t.threshold&&i&t.direction},attrTest:function(e){return Te.prototype.attrTest.call(this,e)&&(2&this.state||!(2&this.state)&&this.directionTest(e))},emit:function(e){this.pX=e.deltaX,this.pY=e.deltaY;var t=xe(e.direction);t&&(e.additionalEvent=this.options.event+t),this._super.emit.call(this,e)}}),y(Oe,Te,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[ge]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.scale-1)>this.options.threshold||2&this.state)},emit:function(e){if(1!==e.scale){var t=e.scale<1?"in":"out";e.additionalEvent=this.options.event+t}this._super.emit.call(this,e)}}),y(Pe,Se,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[ye]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,r=e.distance<t.threshold,i=e.deltaTime>t.time;if(this._input=e,!r||!n||12&e.eventType&&!i)this.reset();else if(1&e.eventType)this.reset(),this._timer=c(function(){this.state=8,this.tryEmit()},t.time,this);else if(4&e.eventType)return 8;return Ee},reset:function(){clearTimeout(this._timer)},emit:function(e){8===this.state&&(e&&4&e.eventType?this.manager.emit(this.options.event+"up",e):(this._input.timeStamp=l(),this.manager.emit(this.options.event,this._input)))}}),y(Ie,Te,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[ge]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.rotation)>this.options.threshold||2&this.state)}}),y(Ne,Te,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:30,pointers:1},getTouchAction:function(){return Le.prototype.getTouchAction.call(this)},attrTest:function(e){var t,n=this.options.direction;return 30&n?t=e.overallVelocity:6&n?t=e.overallVelocityX:n&M&&(t=e.overallVelocityY),this._super.attrTest.call(this,e)&&n&e.offsetDirection&&e.distance>this.options.threshold&&e.maxPointers==this.options.pointers&&u(t)>this.options.velocity&&4&e.eventType},emit:function(e){var t=xe(e.offsetDirection);t&&this.manager.emit(this.options.event+t,e),this.manager.emit(this.options.event,e)}}),y(Re,Se,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[me]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,r=e.distance<t.threshold,i=e.deltaTime<t.time;if(this.reset(),1&e.eventType&&0===this.count)return this.failTimeout();if(r&&i&&n){if(4!=e.eventType)return this.failTimeout();var o=!this.pTime||e.timeStamp-this.pTime<t.interval,a=!this.pCenter||z(this.pCenter,e.center)<t.posThreshold;if(this.pTime=e.timeStamp,this.pCenter=e.center,a&&o?this.count+=1:this.count=1,this._input=e,0===this.count%t.taps)return this.hasRequireFailures()?(this._timer=c(function(){this.state=8,this.tryEmit()},t.interval,this),2):8}return Ee},failTimeout:function(){return this._timer=c(function(){this.state=Ee},this.options.interval,this),Ee},reset:function(){clearTimeout(this._timer)},emit:function(){8==this.state&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),De.VERSION="2.0.7",De.defaults={domEvents:!1,touchAction:ve,enable:!0,inputTarget:null,inputClass:null,preset:[[Ie,{enable:!1}],[Oe,{enable:!1},["rotate"]],[Ne,{direction:6}],[Le,{direction:6},["swipe"]],[Re],[Re,{event:"doubletap",taps:2},["tap"]],[Pe]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},Me.prototype={set:function(e){return i(this.options,e),e.touchAction&&this.touchAction.update(),e.inputTarget&&(this.input.destroy(),this.input.target=e.inputTarget,this.input.init()),this},stop:function(e){this.session.stopped=e?2:1},recognize:function(e){var t=this.session;if(!t.stopped){var n;this.touchAction.preventDefaults(e);var r=this.recognizers,i=t.curRecognizer;(!i||i&&8&i.state)&&(i=t.curRecognizer=null);for(var o=0;o<r.length;)n=r[o],2===t.stopped||i&&n!=i&&!n.canRecognizeWith(i)?n.reset():n.recognize(e),!i&&14&n.state&&(i=t.curRecognizer=n),o++}},get:function(e){if(e instanceof Se)return e;for(var t=this.recognizers,n=0;n<t.length;n++)if(t[n].options.event==e)return t[n];return null},add:function(e){if(d(e,"add",this))return this;var t=this.get(e.options.event);return t&&this.remove(t),this.recognizers.push(e),e.manager=this,this.touchAction.update(),e},remove:function(e){if(d(e,"remove",this))return this;if(e=this.get(e)){var t=this.recognizers,n=A(t,e);-1!==n&&(t.splice(n,1),this.touchAction.update())}return this},on:function(e,t){if(e!==r&&t!==r){var n=this.handlers;return h(S(e),function(e){n[e]=n[e]||[],n[e].push(t)}),this}},off:function(e,t){if(e!==r){var n=this.handlers;return h(S(e),function(e){t?n[e]&&n[e].splice(A(n[e],t),1):delete n[e]}),this}},emit:function(e,n){this.options.domEvents&&function(e,n){var r=t.createEvent("Event");r.initEvent(e,!0,!0),r.gesture=n,n.target.dispatchEvent(r)}(e,n);var r=this.handlers[e]&&this.handlers[e].slice();if(r&&r.length){n.type=e,n.preventDefault=function(){n.srcEvent.preventDefault()};for(var i=0;i<r.length;)r[i](n),i++}},destroy:function(){this.element&&Fe(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},i(De,{INPUT_START:1,INPUT_MOVE:2,INPUT_END:4,INPUT_CANCEL:8,STATE_POSSIBLE:1,STATE_BEGAN:2,STATE_CHANGED:4,STATE_ENDED:8,STATE_RECOGNIZED:8,STATE_CANCELLED:16,STATE_FAILED:Ee,DIRECTION_NONE:1,DIRECTION_LEFT:2,DIRECTION_RIGHT:4,DIRECTION_UP:8,DIRECTION_DOWN:16,DIRECTION_HORIZONTAL:6,DIRECTION_VERTICAL:M,DIRECTION_ALL:30,Manager:Me,Input:j,TouchAction:ke,TouchInput:se,MouseInput:$,PointerEventInput:te,TouchMouseInput:le,SingleTouchInput:re,Recognizer:Se,AttrRecognizer:Te,Tap:Re,Pan:Le,Swipe:Ne,Pinch:Oe,Rotate:Ie,Press:Pe,on:b,off:w,each:h,merge:v,extend:p,assign:i,inherit:y,bindFn:m,prefixed:T}),(void 0!==e?e:"undefined"!=typeof self?self:{}).Hammer=De,ni.exports?ni.exports=De:e.Hammer=De}(window,document);var ii=function(){return L(function e(t,n,r){x(this,e),this.props={},this.firstUpdateStyle=!0,this.layoutCache=null,this.exitChildrenStackContext=!1,this.events={},this.mountedLayoutDispatch=!1,this.updatedZIndex=!1,this.id=n,this.pId=r,this.context=t,this.handleOnTouchStart=this.handleOnTouchStart.bind(this),this.handleOnClick=this.handleOnClick.bind(this),this.handleOnTouchCancel=this.handleOnTouchCancel.bind(this),this.handleOnTouchEnd=this.handleOnTouchEnd.bind(this),this.handleOnTouchMove=this.handleOnTouchMove.bind(this),this.handleOnLongClick=this.handleOnLongClick.bind(this)},[{key:"updateProperty",value:function(e,t){"function"!=typeof this[e]&&"style"!==e&&e in this&&this[e]!==t?this[e]=t:this.props[e]=t}},{key:"initHammer",value:function(){this.hammer||(this.hammer=new ri.exports.Manager(this.dom,{inputClass:ri.exports.TouchInput}))}},{key:"onClick",get:function(){return!!this.props[tr.ON_CLICK]},set:function(e){if(this.props[tr.ON_CLICK]=e,this.initHammer(),this.hammer.remove("tap"),this.hammer.off("tap",this.handleOnClick),e){var t=new ri.exports.Tap({time:200});this.hammer.add(t),this.hammer.on("tap",this.handleOnClick)}}},{key:"onLongClick",get:function(){return!!this.props[tr.ON_LONG_CLICK]},set:function(e){if(this.props[tr.ON_LONG_CLICK]=e,this.initHammer(),this.hammer.remove("press"),this.hammer.off("press",this.handleOnLongClick),e){var t=new ri.exports.Press({time:200});this.hammer.add(t),this.hammer.on("press",this.handleOnLongClick)}}},{key:"onTouchDown",get:function(){return this.props[tr.ON_TOUCH_DOWN]},set:function(e){this.props[tr.ON_TOUCH_DOWN]=e,e?this.dom.addEventListener("touchstart",this.handleOnTouchStart):this.dom.removeEventListener("touchstart",this.handleOnTouchStart)}},{key:"onTouchMove",get:function(){return this.props[tr.ON_TOUCH_MOVE]},set:function(e){this.props[tr.ON_TOUCH_MOVE]=e,e?this.dom.addEventListener("touchmove",this.handleOnTouchMove):this.dom.removeEventListener("touchmove",this.handleOnTouchMove)}},{key:"onTouchEnd",get:function(){return this.props[tr.ON_TOUCH_END]},set:function(e){this.props[tr.ON_TOUCH_END]=e,e?this.dom.addEventListener("touchend",this.handleOnTouchEnd):this.dom.removeEventListener("touchend",this.handleOnTouchEnd)}},{key:"onTouchCancel",get:function(){return this.props[tr.ON_TOUCH_CANCEL]},set:function(e){this.props[tr.ON_TOUCH_CANCEL]=e,e?this.dom.addEventListener("touchcancel",this.handleOnTouchCancel):this.dom.removeEventListener("touchcancel",this.handleOnTouchCancel)}},{key:"onLayout",get:function(){return this.props[tr.ON_LAYOUT]},set:function(e){var t;this.props[tr.ON_LAYOUT]=e,e?(this.resizeObserver||(this.resizeObserver=new ei(this.handleReLayout.bind(this))),this.resizeObserver.observe(this.dom)):null===(t=this.resizeObserver)||void 0===t||t.disconnect()}},{key:"changeStackContext",value:function(e){var t;if(!e&&this.exitChildrenStackContext){var n=!1;null===(t=this.dom)||void 0===t||t.childNodes.forEach(function(e){"absolute"!==e.style.position&&"relative"!==e.style.position||(n=!0)}),n||(this.exitChildrenStackContext=!1,this.updateChildzIndex())}else e&&!this.exitChildrenStackContext&&(this.exitChildrenStackContext=!0,this.updateChildzIndex())}},{key:"updateChildzIndex",value:function(){var e,t=this;null===(e=this.dom)||void 0===e||e.childNodes.forEach(function(e){var n=t.context.getModuleByName("UIManagerModule").findViewById(e.id);t.exitChildrenStackContext&&void 0!==!n.props.style.zIndex&&n.updateSelfStackContext(),!t.exitChildrenStackContext&&n.updatedZIndex&&n.updateSelfStackContext(!1)})}},{key:"updateSelfStackContext",value:function(){if(!(arguments.length>0&&void 0!==arguments[0])||arguments[0])return this.props.style.zIndex=0,fr(this.dom,{zIndex:0}),void(this.updatedZIndex=!0);delete this.props.style.zIndex,fr(this.dom,{zIndex:"auto"}),this.updatedZIndex=!1}},{key:"updateProps",value:function(e,t){this.firstUpdateStyle&&(t(this,{style:this.defaultStyle()}),this.firstUpdateStyle=!1),t(this,e)}},{key:"defaultStyle",value:function(){return{display:"flex",flexDirection:"column",overflow:"hidden",flexShrink:0,boxSizing:"border-box"}}},{key:"onAttachedToWindow",value:function(){this.props[tr.ON_ATTACHED_TO_WINDOW]&&this.dispatchEvent("onAttachedToWindow",null)}},{key:"beforeMount",value:(n=l(d().mark(function e(t,n){return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:this.index=n;case 1:case"end":return e.stop()}},e,this)})),function(e,t){return n.apply(this,arguments)})},{key:"beforeChildMount",value:(t=l(d().mark(function e(t,n){return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}},e)})),function(e,n){return t.apply(this,arguments)})},{key:"mounted",value:function(){var e=this;this.onAttachedToWindow(),this.onLayout?this.context.getModuleByName("UIManagerModule").addAfterCreateAction(function(){e.mountedLayoutDispatch=!0;var t=e.dom.getBoundingClientRect(),n={x:t.x,y:t.y,width:t.width,height:t.height};t.width===e.dom.clientWidth&&t.height===e.dom.clientHeight||(n={x:e.dom.offsetLeft,y:e.dom.offsetTop,width:e.dom.clientWidth,height:e.dom.clientHeight}),e.dispatchEvent("onLayout",{layout:n,target:e.id})}):this.mountedLayoutDispatch=!0}},{key:"beforeChildRemove",value:function(e){}},{key:"beforeRemove",value:(e=l(d().mark(function e(){var t;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:null===(t=this.resizeObserver)||void 0===t||t.disconnect();case 1:case"end":return e.stop()}},e,this)})),function(){return e.apply(this,arguments)})},{key:"destroy",value:function(){this.dom=null,this.events={}}},{key:"handleReLayout",value:function(e){var t=s(e,1)[0];if(t&&this.mountedLayoutDispatch){var n=t.contentRect,r=n.left,i=n.top,o=n.width,a=n.height;(!this.layoutCache||this.layoutCache.width!==o||this.layoutCache.height!==a)&&this.dom&&this.dom.parentNode&&this.id&&document.getElementById(String(this.id))&&(this.layoutCache={x:r,y:i,width:o,height:a},this.dispatchEvent("onLayout",{layout:this.layoutCache,target:this.id}))}}},{key:"addEventListener",value:function(e,t){this.updateProperty(e,!0),this.events[e]=t}},{key:"removeEventListener",value:function(e){this.updateProperty(e,!1),this.events[e]=null}},{key:"dispatchEvent",value:function(e,t){var n=this.events[e];n&&n.resolve({id:this.id,currentId:this.id,type:e,params:t,eventPhase:sr,stopPropagation:function(){}})}},{key:"handleOnLongClick",value:function(e){this.onLongClick&&(this.dispatchEvent(tr.ON_LONG_CLICK,e),e.srcEvent.stopPropagation())}},{key:"handleOnClick",value:function(e){this.onClick&&(this.dispatchEvent(tr.ON_CLICK,e),e.srcEvent.stopPropagation())}},{key:"handleOnTouchStart",value:function(e){this.onTouchDown&&(this.dispatchEvent("onTouchDown",oi(e,"onTouchDown",this.id)),e.stopPropagation())}},{key:"handleOnTouchMove",value:function(e){this.onTouchMove&&(this.dispatchEvent("onTouchMove",oi(e,"onTouchMove",this.id)),e.stopPropagation(),e.preventDefault())}},{key:"handleOnTouchCancel",value:function(e){this.onTouchCancel&&(this.dispatchEvent("onTouchCancel",oi(e,"onTouchCancel",this.id)),e.stopPropagation())}},{key:"handleOnTouchEnd",value:function(e){this.onTouchEnd&&(this.dispatchEvent("onTouchEnd",oi(e,"onTouchEnd",this.id)),e.stopPropagation())}}]);var e,t,n}();function oi(e,t,n){var r=e.changedTouches[0];return{name:t,id:n,page_x:Number(r.pageX),page_y:Number(r.pageY)}}var ai,si=function(e){function t(e,n,r){var i;return x(this,t),(i=Sn(this,t,[e,n,r])).isLoadSuccess=!1,i.tintModeContainerDom=null,i.renderImgDom=null,i.tagName=Hn.IMAGE,i.dom=document.createElement("img"),i.renderImgDom=i.dom,i.handleLoad=i.handleLoad.bind(i),i.init(),i}return gn(t,e),L(t,[{key:"updateProps",value:function(e,t){if(this.firstUpdateStyle&&(t(this,{style:this.defaultStyle()}),this.firstUpdateStyle=!1),void 0!==e.style.tintColor){var n=En({},e);return n.tintColor=e.style.tintColor,delete n.style.tintColor,void t(this,n)}t(this,e)}},{key:"defaultStyle",value:function(){return{boxSizing:"border-box",zIndex:0}}},{key:"tintColor",get:function(){return this.props[tr.TINY_COLOR]},set:function(e){var t,n;if(this.props[tr.TINY_COLOR]=e,void 0!==e&&0!==e){if(null===this.tintModeContainerDom)return this.buildTintDomContainer(),void((null===(t=this.dom)||void 0===t?void 0:t.parentNode)&&this.imgDomChangeContainer(null===(n=this.dom)||void 0===n?void 0:n.parentNode,this.tintModeContainerDom));this.updateTintColor()}else fr(this.dom,{filter:""})}},{key:"capInsets",get:function(){return this.props[tr.CAP_INSETS]},set:function(e){this.props[tr.CAP_INSETS]=e}},{key:"resizeMode",get:function(){return this.props[tr.RESIZE_MODE]},set:function(e){e||(this.props[tr.RESIZE_MODE]=er.CONTAIN),this.props[tr.RESIZE_MODE]=e,this.renderImgDom&&e&&fr(this.renderImgDom,{objectFit:ui[e]})}},{key:"src",get:function(){var e=this.props[tr.SOURCE];return e&&/^(hpfile):\/\//.test(e)&&e.indexOf("assets")>-1?e.replace("hpfile://./",""):null!=e?e:""},set:function(e){var t=this;if(!e||this.src!==e){if(this.props[tr.SOURCE]=null!=e?e:"",e&&e!==this.props[tr.DEFAULT_SOURCE]&&(this.isLoadSuccess=!1),this.renderImgDom&&!this.defaultSource)return this.renderImgDom.src=null!=e?e:"",void this.onLoadStart(null);if(e){var n=document.createElement("img");n.addEventListener("load",function(n){t.src===e&&t.handleLoad(n,e)}),n.src=e,this.onLoadStart(null)}}}},{key:"defaultSource",get:function(){return this.props[tr.DEFAULT_SOURCE]},set:function(e){this.props[tr.DEFAULT_SOURCE]=e,this.isLoadSuccess||(this.renderImgDom.src=e)}},{key:"onLoad",value:function(e){this.props[tr.ON_LOAD]&&this.dispatchEvent(tr.ON_LOAD,e)}},{key:"onLoadStart",value:function(e){this.props[tr.ON_LOAD_START]&&this.dispatchEvent(tr.ON_LOAD_START,e)}},{key:"onLoadEnd",value:function(e){this.props[tr.ON_LOAD_END]&&this.dispatchEvent(tr.ON_LOAD_END,e)}},{key:"onError",value:function(e){this.props[tr.ON_ERROR]&&this.dispatchEvent(tr.ON_ERROR,e)}},{key:"onProgress",value:function(e){this.props[tr.ON_PROGRESS]&&this.dispatchEvent(tr.ON_PROGRESS,e)}},{key:"mounted",value:function(){if(this.tintModeContainerDom&&this.dom!==this.tintModeContainerDom){var e=this.dom.parentNode;this.imgDomChangeContainer(e,this.tintModeContainerDom),this.updateTintColor()}}},{key:"init",value:function(){this.dom.addEventListener("load",this.handleLoad)}},{key:"handleLoad",value:function(e,t){var n,r,i;this.isLoadSuccess=!1;var o={width:0,height:0,url:null!=t?t:""},a=e.currentTarget;a&&(i=a,o.width=i.width,o.height=i.height),(!t&&(null===(n=this.renderImgDom)||void 0===n?void 0:n.src)===this.src||t===this.src)&&(o.url=this.src,this.onLoad(o),(null===(r=this.renderImgDom)||void 0===r?void 0:r.src)!==this.src&&(this.renderImgDom.src=this.src)),this.onLoadEnd(o)}},{key:"buildTintDomContainer",value:function(){this.tintModeContainerDom=document.createElement("div"),this.tintModeContainerDom.style.overflow="hidden",this.tintModeContainerDom.style.lineHeight="100%"}},{key:"imgDomChangeContainer",value:function(e,t){var n,r=this.findDomIndex();e.removeChild(this.dom),this.dom=this.tintModeContainerDom,t.appendChild(this.renderImgDom),e.insertBefore(this.dom,null!==(n=e.childNodes[r])&&void 0!==n?n:null),this.context.getModuleByName("UIManagerModule").defaultUpdateViewProps(this,this.props),this.imgDomFilterNoUseStyle()}},{key:"imgDomFilterNoUseStyle",value:function(){var e=this.props.style;if(e)for(var t=0,n=Object.keys(e);t<n.length;t++){var r=n[t];if(!hr(e,r))return;-1===r.indexOf("width")&&-1===r.indexOf("height")&&(this.renderImgDom.style[r]="",this.clearBorder())}}},{key:"clearBorder",value:function(){this.renderImgDom.style.borderStyle="",this.renderImgDom.style.borderTopStyle="",this.renderImgDom.style.borderLeftStyle="",this.renderImgDom.style.borderRightStyle="",this.renderImgDom.style.borderBottomStyle=""}},{key:"findDomIndex",value:function(){var e,t=this,n=0;return null===(e=this.dom)||void 0===e||e.parentNode.childNodes.forEach(function(e,r){e===t.dom&&(n=r)}),n}},{key:"updateTintColor",value:function(){var e=yr(this.tintColor);fr(this.renderImgDom,{transform:"translateX(-100%)",filter:"drop-shadow(".concat(this.props.style.width,"px 0 ").concat(e,")")})}}])}(ii),ui=((ai={})[er.CENTER]="none",ai[er.CONTAIN]="contain",ai[er.STRETCH]="fill",ai[er.REPEAT]="none",ai[er.COVER]="cover",ai),li={exports:{}},ci={exports:{}},di={exports:{}};!function(e){function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(di);var hi={exports:{}};!function(e){var t=di.exports.default;e.exports=function(e,n){if("object"!==t(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==t(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports}(hi),function(e){var t=di.exports.default,n=hi.exports;e.exports=function(e){var r=n(e,"string");return"symbol"===t(r)?r:String(r)},e.exports.__esModule=!0,e.exports.default=e.exports}(ci),function(e){var t=ci.exports;e.exports=function(e,n,r){return(n=t(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e},e.exports.__esModule=!0,e.exports.default=e.exports}(li);var fi,pi=ti(li.exports);var vi="undefined"==typeof document?void 0:document,yi=!!vi&&"content"in vi.createElement("template"),mi=!!vi&&vi.createRange&&"createContextualFragment"in vi.createRange();function gi(e){return e=e.trim(),yi?function(e){var t=vi.createElement("template");return t.innerHTML=e,t.content.childNodes[0]}(e):mi?function(e){return fi||(fi=vi.createRange()).selectNode(vi.body),fi.createContextualFragment(e).childNodes[0]}(e):function(e){var t=vi.createElement("body");return t.innerHTML=e,t.childNodes[0]}(e)}function _i(e,t){var n,r,i=e.nodeName,o=t.nodeName;return i===o||(n=i.charCodeAt(0),r=o.charCodeAt(0),n<=90&&r>=97?i===o.toUpperCase():r<=90&&n>=97&&o===i.toUpperCase())}function bi(e,t,n){e[n]!==t[n]&&(e[n]=t[n],e[n]?e.setAttribute(n,""):e.removeAttribute(n))}var wi={OPTION:function(e,t){var n=e.parentNode;if(n){var r=n.nodeName.toUpperCase();"OPTGROUP"===r&&(r=(n=n.parentNode)&&n.nodeName.toUpperCase()),"SELECT"!==r||n.hasAttribute("multiple")||(e.hasAttribute("selected")&&!t.selected&&(e.setAttribute("selected","selected"),e.removeAttribute("selected")),n.selectedIndex=-1)}bi(e,t,"selected")},INPUT:function(e,t){bi(e,t,"checked"),bi(e,t,"disabled"),e.value!==t.value&&(e.value=t.value),t.hasAttribute("value")||e.removeAttribute("value")},TEXTAREA:function(e,t){var n=t.value;e.value!==n&&(e.value=n);var r=e.firstChild;if(r){var i=r.nodeValue;if(i==n||!n&&i==e.placeholder)return;r.nodeValue=n}},SELECT:function(e,t){if(!t.hasAttribute("multiple")){for(var n,r,i=-1,o=0,a=e.firstChild;a;)if("OPTGROUP"===(r=a.nodeName&&a.nodeName.toUpperCase()))a=(n=a).firstChild;else{if("OPTION"===r){if(a.hasAttribute("selected")){i=o;break}o++}!(a=a.nextSibling)&&n&&(a=n.nextSibling,n=null)}e.selectedIndex=i}}};function ki(){}function Ei(e){if(e)return e.getAttribute&&e.getAttribute("id")||e.id}var Si,Ai=function(e){return function(t,n,r){if(r||(r={}),"string"==typeof n)if("#document"===t.nodeName||"HTML"===t.nodeName||"BODY"===t.nodeName){var i=n;(n=vi.createElement("html")).innerHTML=i}else n=gi(n);var o=r.getNodeKey||Ei,a=r.onBeforeNodeAdded||ki,s=r.onNodeAdded||ki,u=r.onBeforeElUpdated||ki,l=r.onElUpdated||ki,c=r.onBeforeNodeDiscarded||ki,d=r.onNodeDiscarded||ki,h=r.onBeforeElChildrenUpdated||ki,f=!0===r.childrenOnly,p=Object.create(null),v=[];function y(e){v.push(e)}function m(e,t){if(1===e.nodeType)for(var n=e.firstChild;n;){var r=void 0;t&&(r=o(n))?y(r):(d(n),n.firstChild&&m(n,t)),n=n.nextSibling}}function g(e,t,n){!1!==c(e)&&(t&&t.removeChild(e),d(e),m(e,n))}function _(e){s(e);for(var t=e.firstChild;t;){var n=t.nextSibling,r=o(t);if(r){var i=p[r];i&&_i(t,i)?(t.parentNode.replaceChild(i,t),b(i,t)):_(t)}else _(t);t=n}}function b(t,n,r){var i=o(n);if(i&&delete p[i],!r){if(!1===u(t,n))return;if(e(t,n),l(t),!1===h(t,n))return}"TEXTAREA"!==t.nodeName?function(e,t){var n,r,i,s,u,l=t.firstChild,c=e.firstChild;e:for(;l;){for(s=l.nextSibling,n=o(l);c;){if(i=c.nextSibling,l.isSameNode&&l.isSameNode(c)){l=s,c=i;continue e}r=o(c);var d=c.nodeType,h=void 0;if(d===l.nodeType&&(1===d?(n?n!==r&&((u=p[n])?i===u?h=!1:(e.insertBefore(u,c),r?y(r):g(c,e,!0),c=u):h=!1):r&&(h=!1),(h=!1!==h&&_i(c,l))&&b(c,l)):3!==d&&8!=d||(h=!0,c.nodeValue!==l.nodeValue&&(c.nodeValue=l.nodeValue))),h){l=s,c=i;continue e}r?y(r):g(c,e,!0),c=i}if(n&&(u=p[n])&&_i(u,l))e.appendChild(u),b(u,l);else{var f=a(l);!1!==f&&(f&&(l=f),l.actualize&&(l=l.actualize(e.ownerDocument||vi)),e.appendChild(l),_(l))}l=s,c=i}!function(e,t,n){for(;t;){var r=t.nextSibling;(n=o(t))?y(n):g(t,e,!0),t=r}}(e,c,r);var v=wi[e.nodeName];v&&v(e,t)}(t,n):wi.TEXTAREA(t,n)}!function e(t){if(1===t.nodeType||11===t.nodeType)for(var n=t.firstChild;n;){var r=o(n);r&&(p[r]=n),e(n),n=n.nextSibling}}(t);var w,k,E=t,S=E.nodeType,A=n.nodeType;if(!f)if(1===S)1===A?_i(t,n)||(d(t),E=function(e,t){for(var n=e.firstChild;n;){var r=n.nextSibling;t.appendChild(n),n=r}return t}(t,(w=n.nodeName,(k=n.namespaceURI)&&"http://www.w3.org/1999/xhtml"!==k?vi.createElementNS(k,w):vi.createElement(w)))):E=n;else if(3===S||8===S){if(A===S)return E.nodeValue!==n.nodeValue&&(E.nodeValue=n.nodeValue),E;E=n}if(E===n)d(t);else{if(n.isSameNode&&n.isSameNode(E))return;if(b(E,n,f),v)for(var x=0,C=v.length;x<C;x++){var T=p[v[x]];T&&g(T,T.parentNode,!1)}}return!f&&E!==t&&t.parentNode&&(E.actualize&&(E=E.actualize(t.ownerDocument||vi)),t.parentNode.replaceChild(E,t)),E}}(function(e,t){var n,r,i,o,a=t.attributes;if(11!==t.nodeType&&11!==e.nodeType){for(var s=a.length-1;s>=0;s--)r=(n=a[s]).name,i=n.namespaceURI,o=n.value,i?(r=n.localName||r,e.getAttributeNS(i,r)!==o&&("xmlns"===n.prefix&&(r=n.name),e.setAttributeNS(i,r,o))):e.getAttribute(r)!==o&&e.setAttribute(r,o);for(var u=e.attributes,l=u.length-1;l>=0;l--)r=(n=u[l]).name,(i=n.namespaceURI)?(r=n.localName||r,t.hasAttributeNS(i,r)||e.removeAttributeNS(i,r)):t.hasAttribute(r)||e.removeAttribute(r)}}),xi=function(){return L(function e(t){var n=t.itemCount,r=t.itemSizeGetter,i=t.estimatedItemSize;x(this,e),this._itemSizeGetter=r,this._itemCount=n,this._estimatedItemSize=i,this._itemSizeAndPositionData={},this._lastMeasuredIndex=-1},[{key:"getLastMeasuredIndex",value:function(){return this._lastMeasuredIndex}},{key:"getSizeAndPositionForIndex",value:function(e){if(e<0||e>=this._itemCount)throw Error("Requested index ".concat(e," is outside of range 0..").concat(this._itemCount));if(e>this._lastMeasuredIndex){for(var t=this.getSizeAndPositionOfLastMeasuredItem(),n=t.offset+t.size,r=this._lastMeasuredIndex+1;r<=e;r++){var i=this._itemSizeGetter({index:r});if(null==i||isNaN(i))throw Error("Invalid size returned for index ".concat(r," of value ").concat(i));this._itemSizeAndPositionData[r]={offset:n,size:i},n+=i}this._lastMeasuredIndex=e}return this._itemSizeAndPositionData[e]}},{key:"getSizeAndPositionOfLastMeasuredItem",value:function(){return this._lastMeasuredIndex>=0?this._itemSizeAndPositionData[this._lastMeasuredIndex]:{offset:0,size:0}}},{key:"getTotalSize",value:function(){var e=this.getSizeAndPositionOfLastMeasuredItem();return e.offset+e.size+(this._itemCount-this._lastMeasuredIndex-1)*this._estimatedItemSize}},{key:"getUpdatedOffsetForIndex",value:function(e){var t=e.align,n=void 0===t?"start":t,r=e.containerSize,i=e.targetIndex;if(r<=0)return 0;var o,a=this.getSizeAndPositionForIndex(i),s=a.offset,u=s-r+a.size;switch(n){case"end":o=u;break;case"center":o=s-(r-a.size)/2;break;default:o=s}var l=this.getTotalSize();return Math.max(0,Math.min(l-r,o))}},{key:"getVisibleRange",value:function(e){var t=e.containerSize,n=e.offset,r=e.overscanCount;if(0===this.getTotalSize())return{};var i=n+t,o=this._findNearestItem(n),a=o,s=this.getSizeAndPositionForIndex(o);for(n=s.offset+s.size;n<i&&a<this._itemCount-1;)a++,n+=this.getSizeAndPositionForIndex(a).size;return r&&(o=Math.max(0,o-r),a=Math.min(a+r,this._itemCount)),{start:o,stop:a}}},{key:"resetItem",value:function(e){this._lastMeasuredIndex=Math.min(this._lastMeasuredIndex,e-1)}},{key:"_binarySearch",value:function(e){for(var t,n,r=e.low,i=e.high,o=e.offset;r<=i;){if(t=r+Math.floor((i-r)/2),(n=this.getSizeAndPositionForIndex(t).offset)===o)return t;n<o?r=t+1:n>o&&(i=t-1)}if(r>0)return r-1}},{key:"_exponentialSearch",value:function(e){for(var t=e.index,n=e.offset,r=1;t<this._itemCount&&this.getSizeAndPositionForIndex(t).offset<n;)t+=r,r*=2;return this._binarySearch({high:Math.min(t,this._itemCount-1),low:Math.floor(t/2),offset:n})}},{key:"_findNearestItem",value:function(e){if(isNaN(e))throw Error("Invalid offset ".concat(e," specified"));e=Math.max(0,e);var t=this.getSizeAndPositionOfLastMeasuredItem(),n=Math.max(0,this._lastMeasuredIndex);return t.offset>=e?this._binarySearch({high:n,low:0,offset:e}):this._exponentialSearch({index:n,offset:e})}}])}(),Ci=function(){return L(function e(t,n){var r=this;x(this,e),pi(this,"getRowHeight",function(e){var t=e.index,n=r.options.rowHeight;return"function"==typeof n?n(t):Array.isArray(n)?n[t]:n}),this.container=t,this.options=n,this.state={},this._initializeSizeAndPositionManager(n.rowCount),this.render=this.render.bind(this),this.handleScroll=this.handleScroll.bind(this),this.componentDidMount()},[{key:"componentDidMount",value:function(){var e=this,t=this.options,n=t.onMount,r=t.initialScrollTop,i=(t.initialIndex,t.height),o=r||0,a=this.inner=document.createElement("div"),s=this.content=document.createElement("div");a.setAttribute("style","position:relative; overflow:visible; width:100%; min-height:100%; will-change: transform;flex-shrink:0"),s.setAttribute("style","position:absolute; top:0; left:0;width:100%; overflow:visible;"),a.appendChild(s),this.container.appendChild(a),this.setState({offset:o,height:i},function(){o&&(e.container.scrollTop=o),e.container.addEventListener("scroll",e.handleScroll),"function"==typeof n&&n()})}},{key:"_initializeSizeAndPositionManager",value:function(e){this._sizeAndPositionManager=new xi({itemCount:e,itemSizeGetter:this.getRowHeight,estimatedItemSize:this.options.estimatedRowHeight||100})}},{key:"setState",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;this.state=Object.assign(this.state,t),requestAnimationFrame(function(){e.render(),"function"==typeof n&&n()})}},{key:"resize",value:function(e,t){this.setState({height:e},t)}},{key:"handleScroll",value:function(e){var t=this.options.onScroll,n=this.container.scrollTop;this.setState({offset:n}),"function"==typeof t&&t(n,e)}},{key:"getRowOffset",value:function(e){return this._sizeAndPositionManager.getSizeAndPositionForIndex(e).offset}},{key:"getOffset",value:function(){var e;return null!==(e=this.state.offset)&&void 0!==e?e:0}},{key:"scrollToIndex",value:function(e,t,n){var r=this.state.height,i=this._sizeAndPositionManager.getUpdatedOffsetForIndex({align:n,containerSize:r,targetIndex:e});this.container.scrollTo({top:i,behavior:t?"smooth":"none"})}},{key:"scrollTo",value:function(e,t){e<0||e>this._sizeAndPositionManager.getTotalSize()||this.container.scrollTo({top:e,behavior:t?"smooth":"none"})}},{key:"setRowCount",value:function(e){this._initializeSizeAndPositionManager(e),this.render()}},{key:"onRowsRendered",value:function(e){var t=this.options.onRowsRendered;"function"==typeof t&&t(e)}},{key:"destroy",value:function(){this.container.removeEventListener("scroll",this.handleScroll),this.container.innerHTML=""}},{key:"render",value:function(){for(var e=this.options,t=e.overScanCount,n=e.renderRow,r=this.state,i=r.height,o=r.offset,a=void 0===o?0:o,s=this._sizeAndPositionManager.getVisibleRange({containerSize:i,offset:a,overScanCount:t}),u=s.start,l=s.stop,c=document.createDocumentFragment(),d=u;d<=l;d++)c.appendChild(n(d));Ai(this.content,c,{childrenOnly:!0,getNodeKey:function(e){return e.id}}),this.onRowsRendered({startIndex:u,stopIndex:l}),this.inner.style.height="".concat(this._sizeAndPositionManager.getTotalSize(),"px"),this.content.style.top="".concat(this.getRowOffset(u),"px")}}])}();function Ti(e,t){var n=!1,r=!1,i=-1,o=null,a=function(){n=!1},s=function(){var e;n&&!r&&(null===(e=null==t?void 0:t.onEndSliding)||void 0===e||e.call(t),a())},u=function(){i=function(e,t,n,r,i,o,a,s){clearTimeout(r),!n&&t&&(null==a||a(o));return null==s||s(),setTimeout(i,100)}(0,r,n,i,s,t.getPosition(),null==t?void 0:t.onBeginDrag,null==t?void 0:t.onScroll),n=!0},l=function(e){r=!0,o=e},c=function(r){var i;if(!Si||Si===e){var a=t.scrollEnable(o,r);if(a&&t.needSimulatedScrolling){var s=function(e,t,n,r,i){var o=t.changedTouches[0],a=n.changedTouches[0],s=0,u=e.clientWidth-e.scrollWidth,l=0,c=e.clientHeight-e.scrollHeight,d=[r[0],r[1]];if(Math.abs(d[0]-(r[0]+o.pageX-a.pageX))<.6&&Math.abs(d[1]-(r[1]+o.pageY-a.pageY))<.6)return r;var h=k(r);h[0]+=o.pageX-a.pageX,h[1]+=o.pageY-a.pageY,h[0]>s&&(h[0]=s);h[0]<u&&(h[0]=u);h[1]>l&&(h[1]=l);h[1]<c&&(h[1]=c);return Ii(e,h),null==i||i(o,a),h}(e,r,o,t.getPosition(),null==t?void 0:t.onTouchMove);t.updatePosition(s),n||(n=!0,null===(i=t.onBeginDrag)||void 0===i||i.call(t,s))}a&&(r.stopPropagation(),Si=e,o=r)}},d=function(){Si=null,Li(e,r,n,t.scrollEnable(o),t.getPosition()),r=!1,t.needSimulatedScrolling&&a()},h=function(){Si=null,Li(e,r,n,t.scrollEnable(o),t.getPosition(),null==t?void 0:t.onEndDrag,null==t?void 0:t.onBeginSliding),r=!1,t.needSimulatedScrolling&&a()};return e.addEventListener("scroll",u),e.addEventListener("touchstart",l),e.addEventListener("touchmove",c),e.addEventListener("touchcancel",d),e.addEventListener("touchend",h),function(){e.removeEventListener("scroll",u),e.removeEventListener("touchstart",l),e.removeEventListener("touchmove",c),e.removeEventListener("touchcancel",d),e.removeEventListener("touchend",h)}}function Li(e,t,n,r,i,o,a){t&&r&&(null==o||o(i)),t&&n&&r&&(null==a||a())}function Oi(e,t){var n=e.changedTouches[0],r=t.changedTouches[0],i=[0,0];return i[0]+=n.pageX-r.pageX,i[1]+=n.pageY-r.pageY,i}function Pi(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:100;fr(e,{transition:"transform ".concat(n/1e3,"s")}),setTimeout(function(){Ii(e,t)},16),setTimeout(function(){fr(e,{transition:""})},n+16)}function Ii(e,t){fr(e,{transform:"translate(".concat(t[0],"px,").concat(t[1],"px)")})}function Ni(e,t,n){var r=1e3/t,i=Date.now()-e>=r;return i&&(null==n||n()),i}function Ri(e,t,n){var r=Math.round(n/e),i=e-t,o=Math.ceil(t/e),a=t-parseInt(String(t/e),10)*e;a=0!==a?a:e;var s=Math.abs(n)+e>(o-1)*e+a/2,u=r*e;return(u<i||n===i||s)&&(u=i),{newPageIndex:Math.abs(Math.round(u/e)),fromOffset:n,toOffset:u}}function Di(e,t,n,r,i,o,a){return function(e,t,n,r,i){return new Promise(function(o){n.then(function(n){e&&(n!==r[0]&&Pi(e,r,0),t(r,i),o(null))}).catch(function(e){throw e})})}(e,t,function(e,t,n,r,i,o){var a=o;return new Promise(function(s){(!o||o<=0)&&(a=1);var u=n[0]-r[0],l=Date.now(),c=k(n);Pi(e,[r[0],0],a);var d=function(){var e=Date.now()-l;if(e>a)s(c[0]);else{window.requestAnimationFrame(d);var r=u*(e/a),o=[n[0]-r,n[1]];c=o,t(o,i)}};window.requestAnimationFrame(d)})}(e,t,n,r,o,i),r,a)}var Mi=function(e){function t(e,n,r){var i;return x(this,t),(i=Sn(this,t,[e,n,r])).destroying=!1,i.initialListReadyFlag=!1,i.dirtyListItems=[],i.lastPosition=[0,0],i.renderChildrenTuple=[0,0],i.lastTimestamp=0,i.scrollCaptureState=!1,i.childData=[],i.checkTimer=null,i.stickyListViewItem=null,i.stickyContainer=null,i.tagName=Hn.LIST,i.dom=document.createElement("div"),i.init(),i}return gn(t,e),L(t,[{key:"root",get:function(){return this.rootElement||(this.rootElement=document.getElementsByTagName("body")[0]),this.rootElement}},{key:"defaultStyle",value:function(){return{display:"flex",flexDirection:"column",flexShrink:0,boxSizing:"border-box",overflow:"scroll"}}},{key:"overScrollEnabled",get:function(){return this.props[tr.OVER_SCROLL_ENABLED]},set:function(e){this.props[tr.OVER_SCROLL_ENABLED]=e}},{key:"initialListSize",get:function(){var e;return null!==(e=this.props[tr.INITIAL_LIST_SIZE])&&void 0!==e?e:10},set:function(e){this.props[tr.INITIAL_LIST_SIZE]=e}},{key:"initialContentOffset",get:function(){return this.props[tr.INITIAL_CONTENT_OFFSET]},set:function(e){this.props[tr.INITIAL_CONTENT_OFFSET]=e}},{key:"preloadItemNumber",get:function(){return this.props[tr.OVER_SCROLL_ENABLED]},set:function(e){this.props[tr.PRELOAD_ITEM_NUMBER]=e}},{key:"rowShouldSticky",get:function(){return this.props[tr.ROW_SHOULD_STICKY]},set:function(e){this.props[tr.ROW_SHOULD_STICKY]=e}},{key:"scrollEventThrottle",get:function(){return this.props[tr.SCROLL_EVENT_THROTTLE]},set:function(e){this.props[tr.SCROLL_EVENT_THROTTLE]=e}},{key:"scrollEnabled",get:function(){return this.props[tr.SCROLL_ENABLED]},set:function(e){this.props[tr.SCROLL_ENABLED]=e,fr(this.dom,{overflow:this.scrollEnabled?"scroll":"hidden"})}},{key:"showScrollIndicator",get:function(){return this.props[tr.SHOW_SCROLL_INDICATOR]},set:function(e){this.props[tr.SHOW_SCROLL_INDICATOR]=e}},{key:"initialListReady",get:function(){return this.props[tr.INITIAL_LIST_READY]},set:function(e){this.props[tr.INITIAL_LIST_READY]=e}},{key:"onMomentumScrollBegin",value:function(e){this.props[tr.ON_MOMENTUM_SCROLL_BEGIN]&&this.dispatchEvent(tr.ON_MOMENTUM_SCROLL_BEGIN,e)}},{key:"onMomentumScrollEnd",value:function(e){this.props[tr.ON_MOMENTUM_SCROLL_END]&&this.dispatchEvent(tr.ON_MOMENTUM_SCROLL_END,e)}},{key:"onScroll",value:function(e){this.props[tr.ON_SCROLL]&&this.dispatchEvent(tr.ON_SCROLL,e)}},{key:"onScrollBeginDrag",value:function(e){this.props[tr.ON_SCROLL_BEGIN_DRAG]&&this.dispatchEvent(tr.ON_SCROLL_BEGIN_DRAG,e)}},{key:"onScrollEndDrag",value:function(e){this.props[tr.ON_SCROLL_END_DRAG]&&this.dispatchEvent(tr.ON_SCROLL_END_DRAG,e)}},{key:"onInitialListReady",value:function(){this.dispatchEvent(tr.INITIAL_LIST_READY,null)}},{key:"onAppear",value:function(e){this.props[tr.ON_APPEAR]&&this.dispatchEvent(tr.ON_APPEAR,e)}},{key:"onDisappear",value:function(e){this.props[tr.ON_DISAPPEAR]&&this.dispatchEvent(tr.ON_DISAPPEAR,e)}},{key:"onWillAppear",value:function(e){this.props[tr.ON_WILL_APPEAR]&&this.dispatchEvent(tr.ON_WILL_APPEAR,e)}},{key:"onWillDisappear",value:function(e){this.props[tr.ON_WILL_DISAPPEAR]&&this.dispatchEvent(tr.ON_WILL_DISAPPEAR,e)}},{key:"onLoadMore",value:function(){this.props[tr.ON_LOAD_MORE]&&this.dispatchEvent(tr.ON_LOAD_MORE,null),this.props[tr.ON_LOAD_MORE]&&this.dispatchEvent(tr.ON_END_REACHED,null)}},{key:"scrollToContentOffset",value:function(e,t,n){this.virtualList.scrollTo(t,n)}},{key:"scrollToIndex",value:function(e,t,n){this.virtualList.scrollToIndex(t,n)}},{key:"beforeRemove",value:(i=l(d().mark(function e(){var n,r,i,o,a,s,u;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,_n(t,"beforeRemove",this,3)([]);case 1:this.destroying=!0,null===(n=this.touchListenerRelease)||void 0===n||n.call(this),r=this.context.getModuleByName("UIManagerModule"),i=k(this.childData),o=bn(i),e.prev=2,o.s();case 3:if((a=o.n()).done){e.next=6;break}if(s=a.value,r.findViewById(s.id)){e.next=4;break}return e.abrupt("continue",5);case 4:return e.next=5,r.viewDelete(s);case 5:e.next=3;break;case 6:e.next=8;break;case 7:e.prev=7,u=e.catch(2),o.e(u);case 8:return e.prev=8,o.f(),e.finish(8);case 9:case"end":return e.stop()}},e,this,[[2,7,8,9]])})),function(){return i.apply(this,arguments)})},{key:"destroy",value:function(){_n(t,"destroy",this,3)([])}},{key:"insertChild",value:function(e){(null==e?void 0:e.props.sticky)&&(this.stickyListViewItem=e),this.childData.push(e),e.addDirtyListener(this.handleListItemDirty.bind(this))}},{key:"removeChild",value:(r=l(d().mark(function e(t){var n,r,i=this;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=this.childData.findIndex(function(e){return e===t}),r=this.context.getModuleByName("UIManagerModule"),e.next=1,r.removeChild(this,t.id);case 1:this.childData.splice(n,1),this.destroying||requestAnimationFrame(function(){i.notifyDataSetChange()});case 2:case"end":return e.stop()}},e,this)})),function(e){return r.apply(this,arguments)})},{key:"mounted",value:function(){_n(t,"mounted",this,3)([])}},{key:"endBatch",value:function(){var e=this;setTimeout(function(){var t,n;e.dom&&(e.virtualList||(e.virtualList=new Ci(e.dom,{height:null===(t=e.dom)||void 0===t?void 0:t.clientHeight,rowCount:e.childData.length,rowHeight:e.getChildHeight.bind(e),renderRow:e.getChildDom.bind(e),onRowsRendered:e.handleOnRowsRendered.bind(e),onScroll:e.handleScroll.bind(e),initialScrollTop:null!==(n=e.initialContentOffset)&&void 0!==n?n:0,overScanCount:2})),e.needCheckAllDataHeight(),e.notifyDataSetChange())},0)}},{key:"getChildHeight",value:function(e){var t,n,r;return this.childData[e]&&!(null===(t=this.childData[e])||void 0===t?void 0:t.height)&&(this.childData[e].height=this.getListItemNewHeight(this.childData[e])),null!==(r=null===(n=this.childData[e])||void 0===n?void 0:n.height)&&void 0!==r?r:0}},{key:"getChildDom",value:function(e){var t,n;return null!==(n=null===(t=this.childData[e])||void 0===t?void 0:t.dom)&&void 0!==n?n:null}},{key:"handleListItemDirty",value:function(e){this.dirtyListItems.push(e),this.whenFinishCheckDirtyChild()}},{key:"whenFinishCheckDirtyChild",value:function(){this.checkTimer&&clearTimeout(this.checkTimer),this.checkTimer=setTimeout(this.checkDirtyChild.bind(this),64)}},{key:"handleOnRowsRendered",value:function(e){var t=e.startIndex,n=e.stopIndex;this.needCheckChildVisible({startIndex:t,stopIndex:n})}},{key:"notifyDataSetChange",value:function(){this.virtualList.setRowCount(this.childData.length)}},{key:"init",value:function(){var e=this;this.props[tr.OVER_SCROLL_ENABLED]=!0,this.props[tr.INITIAL_LIST_SIZE]=10,this.props[tr.INITIAL_LIST_READY]=!0,this.props[tr.PRELOAD_ITEM_NUMBER]=1,this.props[tr.SCROLL_EVENT_THROTTLE]=30,this.props[tr.ON_LOAD_MORE]=!0,this.touchListenerRelease=Ti(this.dom,{getPosition:function(){return e.lastPosition},updatePosition:this.updatePositionInfo.bind(this),scrollEnable:this.checkScrollEnable.bind(this),onBeginDrag:this.handleBeginDrag.bind(this),onEndDrag:this.handleEndDrag.bind(this),onBeginSliding:this.handleBeginSliding.bind(this),onEndSliding:this.handleEndSliding.bind(this)})}},{key:"moveStickyRowToContainer",value:function(){var e,t,n;if(0!==this.stickyListViewItem.dom.childNodes.length){if(null===this.stickyContainer){this.stickyContainer=document.createElement("div");var r=null!==(t=null===(e=this.dom)||void 0===e?void 0:e.getBoundingClientRect())&&void 0!==t?t:{y:0,x:0,width:0};fr(this.stickyContainer,{position:"sticky",top:0,left:r.x,width:r.width,zIndex:0}),this.virtualList.inner.appendChild(this.stickyContainer)}var i=this.stickyListViewItem.dom.childNodes;fr(this.stickyListViewItem.dom,{height:null===(n=this.stickyListViewItem)||void 0===n?void 0:n.height});var o,a=bn(i);try{for(a.s();!(o=a.n()).done;){var s=o.value;this.stickyListViewItem.dom.removeChild(s),this.stickyContainer.appendChild(s)}}catch(e){a.e(e)}finally{a.f()}}}},{key:"removeStickyRowToContainer",value:function(){var e;if(0!==this.stickyContainer.childNodes.length){var t=this.stickyContainer.childNodes;fr(this.stickyListViewItem.dom,{height:null===(e=this.stickyListViewItem)||void 0===e?void 0:e.height});var n,r=bn(t);try{for(r.s();!(n=r.n()).done;){var i=n.value;this.stickyContainer.removeChild(i),this.stickyListViewItem.dom.appendChild(i),fr(this.stickyListViewItem.dom,{height:"auto"})}}catch(e){r.e(e)}finally{r.f()}}}},{key:"needCheckChildVisible",value:function(e){var t=e.startIndex,n=e.stopIndex;t===this.renderChildrenTuple[0]&&n===this.renderChildrenTuple[1]||this.notifyVisibleChildrenChange(this.renderChildrenTuple,[t,n]),!this.initialListReadyFlag&&n>=this.initialListSize-1&&(this.onInitialListReady(),this.initialListReadyFlag=!0),this.renderChildrenTuple=[t,n]}},{key:"needCheckAllDataHeight",value:function(){for(var e=0;e<this.childData.length;e++){var t=this.childData[e];t.height||(t.height=this.getListItemNewHeight(t))}}},{key:"checkDirtyChild",value:function(){for(var e=0;e<this.dirtyListItems.length;e++){this.dirtyListItems[e].isDirty=!1}this.dirtyListItems=[],this.notifyDataSetChange(),clearTimeout(this.checkTimer),this.checkTimer=null}},{key:"getListItemNewHeight",value:function(e){return e.dom.parentNode?e.getItemHeight():this.measureListViewItemSize(e)}},{key:"notifyVisibleChildrenChange",value:function(e,t){for(var n=this,r=new Array(e[1]-e[0]+1),i=new Array(t[1]-t[0]+1),o=e[0];o<=e[1]&&0!==e[1];o++)r[o]=o;for(var a=t[0];a<=t[1];a++)i[a]=a;var s=r.filter(function(e){return i.indexOf(e)>-1}),u=r.filter(function(e){return-1===s.indexOf(e)}),l=i.filter(function(e){return-1===s.indexOf(e)});u.forEach(function(e){n.childVisibleChange(e,!1)}),l.forEach(function(e){n.childVisibleChange(e,!0,Object.keys(n.childData).length)})}},{key:"updatePositionInfo",value:function(e){this.lastPosition=e}},{key:"checkScrollEnable",value:function(e,t){return t&&e?(this.scrollCaptureState&&t||(this.scrollCaptureState=this.needCaptureTouch(e,t)),this.scrollCaptureState):this.scrollCaptureState}},{key:"needCaptureTouch",value:function(e,t){var n=Oi(t,e);return Math.abs(n[1])>5}},{key:"handleBeginDrag",value:function(){this.dom&&this.onScrollBeginDrag(this.buildScrollEvent())}},{key:"handleEndDrag",value:(n=l(d().mark(function e(){return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:this.scrollCaptureState=!1,this.dom&&this.onScrollEndDrag(this.buildScrollEvent());case 1:case"end":return e.stop()}},e,this)})),function(){return n.apply(this,arguments)})},{key:"handleScroll",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];window.requestAnimationFrame(this.listStickyCheck.bind(this)),this.dom&&(!t&&Ni(this.lastTimestamp,this.scrollEventThrottle,function(){e.onScroll(e.buildScrollEvent()),e.lastTimestamp=Date.now()}),t&&this.onScroll(this.buildScrollEvent()))}},{key:"handleBeginSliding",value:function(){this.dom&&this.onMomentumScrollBegin(this.buildScrollEvent())}},{key:"handleEndSliding",value:function(){var e=this;this.dirtyListItems.length>0&&requestAnimationFrame(function(){e.checkDirtyChild()}),this.handleScroll(!0),this.dom&&this.onMomentumScrollEnd(this.buildScrollEvent())}},{key:"childVisibleChange",value:function(e,t,n){t&&(this.onAppear(e),this.handleEndReached(e,n)),t||this.onDisappear(e)}},{key:"handleEndReached",value:function(e,t){(this.preloadItemNumber&&e>=t-this.preloadItemNumber||e===t-1)&&this.onLoadMore()}},{key:"measureListViewItemSize",value:function(e){var t,n,r;fr(e.dom,{visibility:"hidden",position:"absolute",zIndex:-99999}),null===(t=this.dom)||void 0===t||t.insertBefore(e.dom,null);var i=null!==(n=e.getItemHeight())&&void 0!==n?n:0;return null===(r=this.dom)||void 0===r||r.removeChild(e.dom),fr(e.dom,{visibility:"visible",position:"static",zIndex:0}),i}},{key:"buildScrollEvent",value:function(){return{contentOffset:{x:0,y:this.virtualList.getOffset()}}}},{key:"listStickyCheck",value:function(){var e=this;if(this.stickyListViewItem){var t=this.childData.findIndex(function(t){return t===e.stickyListViewItem});if(-1!==t){var n=this.virtualList.getRowOffset(t);this.virtualList.getOffset()>n?this.moveStickyRowToContainer():this.stickyContainer&&this.stickyContainer.childNodes.length>0&&this.removeStickyRowToContainer()}}}}],[{key:"intersectionObserverElement",value:function(e,t){return new IntersectionObserver(t,{root:e,threshold:0})}}]);var n,r,i}(ii),Fi=function(e){function t(e,n,r){var i;return x(this,t),(i=Sn(this,t,[e,n,r])).height=0,i.isDirty=!1,i.dirtyListener=null,i.tagName=Hn.LIST_ITEM,i.dom=document.createElement("div"),i.onLayout=!0,i}return gn(t,e),L(t,[{key:"sticky",get:function(){return this.props[tr.STICKY]},set:function(e){this.props[tr.STICKY]=e}},{key:"addDirtyListener",value:function(e){this.dirtyListener=e}},{key:"mounted",value:function(){_n(t,"mounted",this,3)([])}},{key:"getItemHeight",value:function(){var e,t;return null!==(t=null===(e=this.dom)||void 0===e?void 0:e.clientHeight)&&void 0!==t?t:0}},{key:"handleReLayout",value:function(e){var t,n,r=s(e,1)[0].contentRect.height;Math.round(r)===this.height&&Math.round(r)===(null===(t=this.dom)||void 0===t?void 0:t.clientHeight)||(this.height=Math.round(r),this.isDirty=!0,null===(n=this.dirtyListener)||void 0===n||n.call(this,this))}}])}(ii);var Bi,ji=200;!function(e){e[e.ENTRY=0]="ENTRY",e[e.LEAVE=1]="LEAVE"}(Bi||(Bi={}));var Vi={fade:{animation:{opacity:1},newState:{opacity:0,transition:"opacity ".concat(.2,"s")}},slide:{animation:{transform:"translate(0vw,0vh)"},newState:{transform:"translate(0vw,100vh)",transition:"transform ".concat(.2,"s")}},slide_fade:{animation:{transform:"translate(0vw,0vh)",opacity:1},newState:{transform:"translate(0vw,100vh)",opacity:0,transition:"transform ".concat(.2,"s, opacity ").concat(.2,"s")}},none:{animation:{},newState:{}}},Wi={fade:{animation:{opacity:0}},slide:{animation:{transform:"translate(0vw,100vh)"}},slide_fade:{animation:{transform:"translate(0vw,100vh)",opacity:0}},none:{animation:{},newState:{}}},Hi=function(e){function t(e,n,r){var i;return x(this,t),(i=Sn(this,t,[e,n,r])).tagName=Hn.MODAL,i.dom=document.createElement("div"),i.props[tr.ANIMATED]=!0,i.onBackListener=function(){i.onOrientationChange(null)},i}return gn(t,e),L(t,[{key:"defaultStyle",value:function(){return{display:"flex",flexDirection:"column",overflow:" hidden",width:"100vw",height:"100vh",top:"0%",position:"fixed",boxSizing:"border-box"}}},{key:"updateProps",value:function(e,t){var n;this.firstUpdateStyle&&t(this,{style:this.defaultStyle()});var r=En({},e);(null===(n=e.style)||void 0===n?void 0:n.position)&&delete r.style.position,t(this,r)}},{key:"animated",get:function(){return this.props[tr.ANIMATED]},set:function(e){this.props[tr.ANIMATED]=e}},{key:"animationType",get:function(){return this.props[tr.ANIMATION_TYPE]},set:function(e){this.props[tr.ANIMATION_TYPE]=e}},{key:"supportedOrientations",get:function(){return this.props[tr.SUPPORTED_ORIENTATIONS]},set:function(e){this.props[tr.SUPPORTED_ORIENTATIONS]=e}},{key:"immersionStatusBar",get:function(){return this.props[tr.IMMERSION_STATUS_BAR]},set:function(e){this.props[tr.IMMERSION_STATUS_BAR]=e}},{key:"darkStatusBarText",get:function(){return this.props[tr.DARK_STATUS_BAR_TEXT]},set:function(e){this.props[tr.DARK_STATUS_BAR_TEXT]=e}},{key:"transparent",get:function(){return this.props[tr.TRANSPARENT]},set:function(e){this.props[tr.TRANSPARENT]=e,fr(this.dom,{backgroundColor:this.props[tr.TRANSPARENT]?"#ffffff00":"#fff"})}},{key:"onShow",value:function(e){this.props[tr.ON_SHOW]&&this.dispatchEvent(tr.ON_SHOW,e)}},{key:"onOrientationChange",value:function(e){this.props[tr.ON_ORIENTATION_CHANGE]&&this.dispatchEvent(tr.ON_ORIENTATION_CHANGE,e)}},{key:"onRequestClose",value:function(e){this.props[tr.ON_ORIENTATION_CHANGE]&&this.dispatchEvent(tr.ON_REQUEST_CLOSE,e)}},{key:"beforeChildMount",value:(i=l(d().mark(function e(n,r){return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,_n(t,"beforeChildMount",this,3)([n,r]);case 1:0===r&&n.dom&&(fr(n.dom,{flex:"1",position:"static"}),delete n.dom.style.top,delete n.dom.style.left);case 2:case"end":return e.stop()}},e,this)})),function(e,t){return i.apply(this,arguments)})},{key:"beforeMount",value:(r=l(d().mark(function e(n,r){return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,_n(t,"beforeMount",this,3)([n,r]);case 1:this.entryAnimationAction=this.runAnimation(Bi.ENTRY,r),this.context.getModuleByName("DeviceEventModule").setModuleListener(this.onBackListener);case 2:case"end":return e.stop()}},e,this)})),function(e,t){return r.apply(this,arguments)})},{key:"mounted",value:function(){var e;_n(t,"mounted",this,3)([]),null===(e=this.entryAnimationAction)||void 0===e||e.call(this),this.onShow()}},{key:"beforeRemove",value:(n=l(d().mark(function e(){var n=this;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,_n(t,"beforeRemove",this,3)([]);case 1:if(this.leaveAnimationAction=this.runAnimation(Bi.LEAVE,this.index),this.leaveAnimationAction){e.next=2;break}return e.abrupt("return");case 2:return e.next=3,new Promise(function(e){var t;null===(t=n.leaveAnimationAction)||void 0===t||t.call(n),setTimeout(function(){e(null)},ji)});case 3:this.context.getModuleByName("DeviceEventModule").removeModuleListener(this.onBackListener);case 4:case"end":return e.stop()}},e,this)})),function(){return n.apply(this,arguments)})},{key:"runAnimation",value:function(e,n){var r=this;if(this.animated&&this.animationType!==ir.None&&this.dom){var i=e===Bi.ENTRY?t.buildModalEntryAnimation(this.animationType):t.buildModalLeaveAnimation(this.animationType),o=i.animation,a=i.newState;return fr(this.dom,En({zIndex:n},a)),function(){r.dom&&fr(r.dom,o)}}}}],[{key:"buildModalEntryAnimation",value:function(e){return Vi[e]}},{key:"buildModalLeaveAnimation",value:function(e){return Wi[e]}}]);var n,r,i}(ii),Ui=200,Gi="cubic-bezier(0.645, 0.045, 0.355, 1)",zi=[{threshold:[0,50],damp:1},{threshold:[50,100],damp:.6},{threshold:[100,Number.MAX_SAFE_INTEGER],damp:.2}],Yi=function(e){function t(e,n,r){var i;return x(this,t),(i=Sn(this,t,[e,n,r])).tagName=Hn.REFRESH,i.dom=document.createElement("div"),i}return gn(t,e),L(t,[{key:"defaultStyle",value:function(){return{display:"flex",flexDirection:"column",overflow:" hidden",boxSizing:"border-box",position:"relative"}}},{key:"bounceTime",get:function(){return this.props[tr.BOUNCE_TIME]},set:function(e){this.props[tr.BOUNCE_TIME]=e}},{key:"onRefresh",value:function(){this.props[tr.ON_REFRESH]&&this.dispatchEvent(tr.ON_REFRESH,null)}},{key:"refreshComplected",value:function(){var e;null===(e=this.pullRefresh)||void 0===e||e.finish()}},{key:"startRefresh",value:function(){var e;null===(e=this.pullRefresh)||void 0===e||e.start()}},{key:"beforeChildMount",value:(r=l(d().mark(function e(n,r){return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,_n(t,"beforeChildMount",this,3)([n,r]);case 1:n.tagName===Hn.LIST&&(fr(n.dom,{position:"relative",zIndex:2}),this.pullRefresh=new Xi(n.dom,this.dom.childNodes[0],this.handlePull.bind(this)),this.pullRefresh.init());case 2:case"end":return e.stop()}},e,this)})),function(e,t){return r.apply(this,arguments)})},{key:"beforeRemove",value:(n=l(d().mark(function e(){var n;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,_n(t,"beforeRemove",this,3)([]);case 1:null===(n=this.pullRefresh)||void 0===n||n.destroy();case 2:case"end":return e.stop()}},e,this)})),function(){return n.apply(this,arguments)})},{key:"handlePull",value:function(){var e=this;this.props[tr.ON_REFRESH]?this.onRefresh():setTimeout(function(){var t;null===(t=e.pullRefresh)||void 0===t||t.finish()},500)}}]);var n,r}(ii),qi=function(e){function t(e,n,r){var i;return x(this,t),(i=Sn(this,t,[e,n,r])).tagName=Hn.REFRESH_ITEM,i.dom=document.createElement("div"),i}return gn(t,e),L(t)}(ii),Xi=function(){return L(function e(t,n,r){x(this,e),this.lastPosition=0,this.lastRefreshTime=Date.now(),this.startPosition=0,this.touchMove=0,this.moveLengthRecord=0,this.refreshStatus=!1,this.refreshHeadHeight=0,this.isPullFirst=!1,this.refreshContent=n,this.scrollContent=t,this.contentStyleCache=t.style,this.refreshStatus=!1,this.handleCallBack=r,this.handleTouchStart=this.handleTouchStart.bind(this),this.handlerTouchMove=this.handlerTouchMove.bind(this),this.handlerTouchEnd=this.handlerTouchEnd.bind(this)},[{key:"overScrollThreshold",get:function(){return this.refreshHeadHeight>55?this.refreshHeadHeight:55}},{key:"endYOffset",get:function(){var e;return 0-(null===(e=this.refreshContent)||void 0===e?void 0:e.clientHeight)}},{key:"init",value:function(){this.contentStyleCache=this.scrollContent.style,this.scrollContent.addEventListener("touchstart",this.handleTouchStart),this.scrollContent.addEventListener("touchmove",this.handlerTouchMove),this.scrollContent.addEventListener("touchend",this.handlerTouchEnd),this.resetRefreshContentTop()}},{key:"resetRefreshContentTop",value:function(){var e;Zi([this.refreshContent],{transform:Ki(0,"".concat(null!==(e=-this.refreshContent.clientHeight)&&void 0!==e?e:0,"px"))})}},{key:"finish",value:function(){Zi([this.refreshContent],{transform:Ki(0,"".concat(this.endYOffset,"px")),transition:$i("transform","".concat(.2),Gi)}),Zi([this.scrollContent],{transform:Ki(0,0),transition:$i("transform","".concat(.2),Gi)})}},{key:"start",value:function(){var e=this;this.isPullFirst||this.handlePull(0),Zi([this.scrollContent,this.refreshContent],{transform:Ki(0,"".concat(this.overScrollThreshold,"px")),transition:$i("transform","".concat(.2),Gi)}),this.moveLengthRecord=this.overScrollThreshold,this.refreshStatus=!0,setTimeout(function(){var t;null===(t=e.handleCallBack)||void 0===t||t.call(e)},Ui)}},{key:"destroy",value:function(){this.scrollContent.removeEventListener("touchstart",this.handleTouchStart),this.scrollContent.removeEventListener("touchmove",this.handlerTouchMove),this.scrollContent.removeEventListener("touchend",this.handlerTouchEnd)}},{key:"handlePull",value:function(e){var t,n=function(e){for(var t=0,n=0;n<zi.length;n++){var r=zi[n];e<r.threshold[1]&&e>=r.threshold[0]&&(t+=(e-r.threshold[0])*r.damp),e>=r.threshold[1]&&(t+=(r.threshold[1]-r.threshold[0])*r.damp)}return t}(e);return this.moveLengthRecord>=0&&(this.isPullFirst=!0,fr(this.scrollContent,{transform:Ki(0,"".concat(n,"px"))}),!this.refreshContent||this.refreshContent.tagName!==Hn.REFRESH_ITEM||void 0!==this.refreshContent.style.top&&""!==this.refreshContent.style.top||(this.refreshHeadHeight=this.refreshContent.clientHeight,fr(this.refreshContent,{top:-this.refreshContent.clientHeight})),fr(this.refreshContent,{transform:Ki(0,"".concat(null!==(t=n-this.refreshContent.clientHeight)&&void 0!==t?t:0,"px"))}),this.refreshStatus=this.moveLengthRecord>=this.overScrollThreshold),n}},{key:"handleTouchStart",value:function(e){this.startPosition=e.touches[0].pageY,Zi([this.scrollContent,this.refreshContent],{transition:$i("transform",0)})}},{key:"handlerTouchMove",value:function(e){this.scrollContent&&this.scrollContent.scrollTop>0||(this.lastPosition||(this.lastPosition=e.touches[0].pageY),Math.abs(e.touches[0].pageY-this.lastPosition)<1||Date.now()-this.lastRefreshTime<16||(this.lastRefreshTime=Date.now(),this.touchMove+=e.touches[0].pageY-this.lastPosition,this.lastPosition=e.touches[0].pageY,this.moveLengthRecord=this.handlePull(this.touchMove)))}},{key:"handlerTouchEnd",value:function(){var e,t,n=this;if(this.moveLengthRecord>0){if(Zi([this.scrollContent,this.refreshContent],{transition:$i("transform","".concat(.2),Gi)}),!this.refreshStatus)return this.finish(),void setTimeout(function(){n.moveLengthRecord=0,n.touchMove=0},Ui);null===(e=this.handleCallBack)||void 0===e||e.call(this),Zi([this.scrollContent],{transform:Ki(0,"".concat(this.overScrollThreshold,"px"))}),Zi([this.refreshContent],{transform:Ki(0,"".concat(null!==(t=this.overScrollThreshold-this.refreshContent.clientHeight)&&void 0!==t?t:0,"px"))})}this.moveLengthRecord=0,this.touchMove=0,this.lastPosition=0}}])}();function Ki(e,t){return"translate(".concat(e,", ").concat(t,")")}function $i(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"ease-out";return"".concat(e," ").concat(t,"s ").concat(n)}function Zi(e,t){e.forEach(function(e){fr(e,t)})}var Ji=function(e){function t(e,n,r){var i;return x(this,t),(i=Sn(this,t,[e,n,r])).lastPosition=[0,0],i.lastTimestamp=0,i.scrollCaptureState=!1,i.tagName=Hn.SCROLL_VIEW,i.dom=document.createElement("div"),i[tr.SCROLL_EVENT_THROTTLE]=30,i[tr.SCROLL_ENABLED]=!0,i}return gn(t,e),L(t,[{key:"defaultStyle",value:function(){return{display:"flex",flexDirection:"column",overflowX:"hidden",overflowY:"scroll"}}},{key:"updateProps",value:function(e,t){this.firstUpdateStyle&&t(this,{style:this.defaultStyle()});var n=En({},e);e.style&&1===e.style.flexShrink&&1===e.style.flexGrow&&!e.style.flexBasis&&(delete n.style.flexShrink,delete n.style.flexGrow),t(this,n)}},{key:"scrollStyle",value:function(){var e=this.defaultStyle(),t=this.pagingEnabled?"visible":"scroll";return this.horizontal&&(e.flexDirection="row",Object.assign(e,{flexDirection:"row",overflowX:t,overflowY:"hidden"})),this.pagingEnabled&&Object.assign(e,{overflowY:t,overflowX:t}),this.scrollEnabled||Object.assign(e,{overflowY:"hidden",overflowX:"hidden"}),e}},{key:"bounces",get:function(){return this.props[tr.BOUNCES]},set:function(e){this.props[tr.BOUNCES]=e}},{key:"horizontal",get:function(){return this.props[tr.HORIZONTAL]},set:function(e){this.props[tr.HORIZONTAL]=e,fr(this.dom,this.scrollStyle())}},{key:"pagingEnabled",get:function(){return this.props[tr.PAGING_ENABLED]&&this.horizontal},set:function(e){this.props[tr.PAGING_ENABLED]=e,fr(this.dom,this.scrollStyle())}},{key:"scrollEventThrottle",get:function(){var e;return null!==(e=this.props[tr.SCROLL_EVENT_THROTTLE])&&void 0!==e?e:30},set:function(e){this.props[tr.SCROLL_EVENT_THROTTLE]=e}},{key:"scrollIndicatorInsets",get:function(){return this.props[tr.SCROLL_INDICATOR_INSETS]},set:function(e){this.props[tr.SCROLL_INDICATOR_INSETS]=e}},{key:"contentContainerStyle",get:function(){return this.props[tr.CONTENT_CONTAINER_STYLE]},set:function(e){var t,n;this.props[tr.CONTENT_CONTAINER_STYLE]=e,1===(null===(t=this.dom)||void 0===t?void 0:t.childNodes.length)&&fr(null===(n=this.dom)||void 0===n?void 0:n.childNodes[0],this.contentContainerStyle)}},{key:"scrollEnabled",get:function(){return this.props[tr.SCROLL_ENABLED]},set:function(e){this.props[tr.SCROLL_ENABLED]=e,fr(this.dom,this.scrollStyle())}},{key:"onMomentumScrollBegin",value:function(e){this.props[tr.ON_MOMENTUM_SCROLL_BEGIN]&&this.dispatchEvent(tr.ON_MOMENTUM_SCROLL_BEGIN,e)}},{key:"onMomentumScrollEnd",value:function(e){this.props[tr.ON_MOMENTUM_SCROLL_END]&&this.dispatchEvent(tr.ON_MOMENTUM_SCROLL_END,e)}},{key:"onScroll",value:function(e){this.props[tr.ON_SCROLL]&&this.dispatchEvent(tr.ON_SCROLL,e)}},{key:"onScrollBeginDrag",value:function(e){this.props[tr.ON_SCROLL_BEGIN_DRAG]&&this.dispatchEvent(tr.ON_SCROLL_BEGIN_DRAG,e)}},{key:"onScrollEndDrag",value:function(e){this.props[tr.ON_SCROLL_END_DRAG]&&this.dispatchEvent(tr.ON_SCROLL_END_DRAG,e)}},{key:"beforeMount",value:(o=l(d().mark(function e(n,r){return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,_n(t,"beforeMount",this,3)([n,r]);case 1:this.init();case 2:case"end":return e.stop()}},e,this)})),function(e,t){return o.apply(this,arguments)})},{key:"beforeChildMount",value:(i=l(d().mark(function e(t,n){return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:0===n&&this.contentContainerStyle&&fr(t.dom,this.contentContainerStyle);case 1:case"end":return e.stop()}},e,this)})),function(e,t){return i.apply(this,arguments)})},{key:"beforeRemove",value:(r=l(d().mark(function e(){var n;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,_n(t,"beforeRemove",this,3)([]);case 1:null===(n=this.touchListenerRelease)||void 0===n||n.call(this);case 2:case"end":return e.stop()}},e,this)})),function(){return r.apply(this,arguments)})},{key:"scrollTo",value:function(e,t,n){var r;this.pagingEnabled?this.pagingModeScroll(e,n?100:1):null===(r=this.dom)||void 0===r||r.scrollTo({top:this.horizontal?0:t,left:this.horizontal?e:0,behavior:n?"smooth":"auto"})}},{key:"scrollToWithOptions",value:function(e){var t=e.x,n=e.y,r=e.duration;this.pagingEnabled?this.pagingModeScroll(t,r):this.scrollTo(t,n,!0)}},{key:"init",value:function(){var e=this;this.touchListenerRelease=Ti(this.dom,{onBeginDrag:this.handleBeginDrag.bind(this),onEndDrag:this.handleEndDrag.bind(this),onScroll:this.handleScroll.bind(this),onTouchMove:this.handleTouchMove.bind(this),onBeginSliding:this.handleBeginSliding.bind(this),onEndSliding:this.handleEndSliding.bind(this),updatePosition:this.updatePositionInfo.bind(this),getPosition:function(){return e.lastPosition},needSimulatedScrolling:this.pagingEnabled,scrollEnable:this.checkScrollEnable.bind(this)})}},{key:"pagingModeScroll",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100;this.onMomentumScrollBegin(this.buildScrollEvent(this.dom));var r=[-1*e,0];Di(this.dom,function(e){t.updatePositionInfo(e),t.onScroll(t.buildScrollEvent(t.dom))},this.lastPosition,r,n),this.onMomentumScrollEnd(this.buildScrollEvent(this.dom))}},{key:"checkScrollEnable",value:function(e,t){return t?this.scrollCaptureState&&t?(this.pagingEnabled&&t.preventDefault(),this.scrollCaptureState):(this.scrollCaptureState=this.needCaptureTouch(e,t),this.scrollCaptureState&&this.pagingEnabled&&t.preventDefault(),this.scrollCaptureState):this.scrollCaptureState}},{key:"needCaptureTouch",value:function(e,t){var n=Oi(t,e);return!(!(Math.abs(n[0])>5&&this.horizontal||Math.abs(n[1])>5&&!this.horizontal)||!this.scrollEnabled)}},{key:"handleBeginDrag",value:function(){this.onScrollBeginDrag(this.buildScrollEvent(this.dom))}},{key:"handleEndDrag",value:(n=l(d().mark(function e(t){var n,r,i,o,a=this;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(this.scrollCaptureState=!1,this.onScrollEndDrag(this.buildScrollEvent(this.dom)),!this.pagingEnabled){e.next=2;break}return this.onMomentumScrollBegin(this.buildScrollEvent(this.dom)),n=this.scrollEndCalculate(t),r=n.toOffset,i=[r,t[1]],o=function(e){a.updatePositionInfo(e),a.onScroll(a.buildScrollEvent(a.dom))},e.next=1,Di(this.dom,o,t,i,100);case 1:this.onMomentumScrollEnd(this.buildScrollEvent(this.dom));case 2:case"end":return e.stop()}},e,this)})),function(e){return n.apply(this,arguments)})},{key:"updatePositionInfo",value:function(e){this.lastPosition=e}},{key:"scrollEndCalculate",value:function(e){return Ri(this.dom.clientWidth,this.dom.scrollWidth,e[0])}},{key:"handleTouchMove",value:function(){this.handleScroll()}},{key:"handleScroll",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.dom&&(!t&&Ni(this.lastTimestamp,this.scrollEventThrottle,function(){e.onScroll(e.buildScrollEvent(e.dom)),e.lastTimestamp=Date.now()}),t&&this.onScroll(this.buildScrollEvent(this.dom)))}},{key:"handleBeginSliding",value:function(){this.onMomentumScrollBegin(this.buildScrollEvent(this.dom))}},{key:"handleEndSliding",value:function(){this.pagingEnabled||(this.handleScroll(),this.onMomentumScrollEnd(this.buildScrollEvent(this.dom)))}},{key:"buildScrollEvent",value:function(e){var t={contentInset:{right:0,top:0,left:0,bottom:0},contentOffset:{x:null==e?void 0:e.scrollLeft,y:null==e?void 0:e.scrollTop},contentSize:{width:null==e?void 0:e.clientWidth,height:null==e?void 0:e.clientHeight},layoutMeasurement:{width:null==e?void 0:e.clientWidth,height:null==e?void 0:e.clientHeight},zoomScale:1};return this.pagingEnabled&&(t.contentOffset={x:Math.abs(this.lastPosition[0]),y:Math.abs(this.lastPosition[1])}),t}}]);var n,r,i,o}(ii),Qi=function(e){function t(e,n,r){var i;return x(this,t),(i=Sn(this,t,[e,n,r])).tagName=Hn.TEXT_INPUT,i.dom=document.createElement("input"),i.init(),i}return gn(t,e),L(t,[{key:"defaultStyle",value:function(){return En(En({},_n(t,"defaultStyle",this,3)([])),{},{outline:"none",fontFamily:""})}},{key:"updateProps",value:function(e,t){var n;this.firstUpdateStyle&&t(this,{style:this.defaultStyle()});var r=En({},e);(null===(n=null==e?void 0:e.style)||void 0===n?void 0:n.placeholderTextColor)&&(r.placeholderTextColor=yr(r.style.placeholderTextColor),delete r.style.placeholderTextColor),e.style&&Object.assign(r.style,this.borderStyleSupport(e.style)),t(this,r)}},{key:"borderStyleSupport",value:function(e){var t={};return e.borderTopWidth||e.borderBottomWidth||e.borderLeftWidth||e.borderRightWidth||(t={backgroundColor:"#ffffff00",border:"0px solid #000000",padding:"0px"}),t}},{key:"defaultValue",get:function(){var e;return null!==(e=this.props[tr.DEFAULT_VALUE])&&void 0!==e?e:""},set:function(e){this.props[tr.DEFAULT_VALUE]=e,this.value&&0!==this.value.length||!this.dom||(this.dom.value=e,this.onChangeText({text:this.dom.value}))}},{key:"editable",get:function(){return this.props[tr.EDITABLE]},set:function(e){var t,n;this.props[tr.EDITABLE]=e,e?null===(t=this.dom)||void 0===t||t.removeAttribute("disabled"):null===(n=this.dom)||void 0===n||n.setAttribute("disabled","disabled")}},{key:"keyboardType",get:function(){return this.props[tr.KEY_BOARD_TYPE]},set:function(e){var t,n;switch(this.props[tr.KEY_BOARD_TYPE]=e,e){case nr.numeric:n="number";break;case nr.password:n="password";break;case nr.email:n="email";break;case nr.phonePad:n="tel";break;default:n="text"}null===(t=this.dom)||void 0===t||t.setAttribute("type",n)}},{key:"maxLength",get:function(){return this.props[tr.MAX_LENGTH]},set:function(e){var t;this.props[tr.MAX_LENGTH]=e,null===(t=this.dom)||void 0===t||t.setAttribute("maxlength",String(e))}},{key:"multiline",get:function(){return this.props[tr.MULTILINE]},set:function(e){var t,n;e&&"TEXTAREA"===(null===(t=this.dom)||void 0===t?void 0:t.tagName)||!e&&"INPUT"===(null===(n=this.dom)||void 0===n?void 0:n.tagName)||(this.props[tr.MULTILINE]=e,this.changeToDomMode(e))}},{key:"numberOfLines",get:function(){return this.props[tr.NUMBER_OF_LINES]},set:function(e){var t;this.props[tr.NUMBER_OF_LINES]=e,null===(t=this.dom)||void 0===t||t.setAttribute("rows",String(e))}},{key:"placeholder",get:function(){return this.props[tr.PLACEHOLDER]},set:function(e){var t;this.props[tr.PLACEHOLDER]=e,null===(t=this.dom)||void 0===t||t.setAttribute("placeholder",e)}},{key:"placeholderTextColor",get:function(){return this.props[tr.PLACEHOLDER_TEXT_COLOR]},set:function(e){var t,n;this.placeholderTextColorStyle||(this.placeholderTextColorStyle=(n=document.createElement("style"),document.head.appendChild(n),n),null===(t=this.dom)||void 0===t||t.setAttribute("class","k".concat(this.id))),this.props[tr.PLACEHOLDER_TEXT_COLOR]=e;var r=this.placeholderTextColorStyle;!function(e,t){t.childNodes.length>0&&t.removeChild(t.childNodes[0]);t.appendChild(document.createTextNode(e))}(".k".concat(this.id,"::placeholder { color: ").concat(e," }"),r)}},{key:"returnKeyType",get:function(){return this.props[tr.RETURN_KEY_TYPE]},set:function(e){var t;this.props[tr.RETURN_KEY_TYPE]=e,null===(t=this.dom)||void 0===t||t.setAttribute("enterkeyhint",e)}},{key:"value",get:function(){return this.props[tr.VALUE]},set:function(e){var t;this.props[tr.VALUE]=e,null===(t=this.dom)||void 0===t||t.setAttribute("value",e)}},{key:"autoFocus",get:function(){return this.props[tr.AUTO_FOCUS]},set:function(e){var t,n;this.props[tr.AUTO_FOCUS]=e,this.props[tr.AUTO_FOCUS]&&(null===(t=this.dom)||void 0===t||t.setAttribute("autofocus","true")),this.props[tr.AUTO_FOCUS]&&(null===(n=this.dom)||void 0===n||n.removeAttribute("autofocus"))}},{key:"onBlur",value:function(e){this.props[tr.ON_BLUR]&&this.dispatchEvent(tr.ON_BLUR,e)}},{key:"onChangeText",value:function(e){this.props[tr.ON_CHANGE_TEXT]&&this.dispatchEvent(tr.ON_CHANGE_TEXT,e)}},{key:"onEndEditing",value:function(e){this.props[tr.ON_END_EDITING]&&this.dispatchEvent(tr.ON_END_EDITING,e)}},{key:"onSelectionChange",value:function(e){this.props[tr.ON_SELECTION_CHANGE]&&this.dispatchEvent(tr.ON_SELECTION_CHANGE,e)}},{key:"blurTextInput",value:function(){var e;null===(e=this.dom)||void 0===e||e.blur(),this.props[tr.IS_FOCUSED]=!1}},{key:"focusTextInput",value:function(){var e;null===(e=this.dom)||void 0===e||e.focus(),this.props[tr.IS_FOCUSED]=!0}},{key:"clear",value:function(){this.dom&&(this.dom.value="")}},{key:"getValue",value:function(e){var t,n;e.resolve({text:null!==(n=null===(t=this.dom)||void 0===t?void 0:t.value)&&void 0!==n?n:""})}},{key:"hideInputMethod",value:function(){var e;null===(e=this.dom)||void 0===e||e.blur(),this.props[tr.IS_FOCUSED]=!1}},{key:"setValue",value:function(e){this.dom&&(this.dom.value=e)}},{key:"showInputMethod",value:function(){var e;null===(e=this.dom)||void 0===e||e.focus(),this.props[tr.IS_FOCUSED]=!0}},{key:"isFocused",value:function(e){e.resolve({value:Boolean(this.props[tr.IS_FOCUSED])})}},{key:"init",value:function(){document.addEventListener("selectionchange",this.handleSelection.bind(this)),this.dom.addEventListener("input",this.handleInput.bind(this)),this.dom.addEventListener("blur",this.handleBlur.bind(this)),this.dom.addEventListener("keypress",this.handleKeyPress.bind(this))}},{key:"changeToDomMode",value:(n=l(d().mark(function e(t){var n,r,i;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:r=this.context.getModuleByName("UIManagerModule"),i=!1,(null===(n=this.dom)||void 0===n?void 0:n.parentNode)&&(i=!0),i&&r.viewDelete(this),this.dom=t?document.createElement("textarea"):document.createElement("input"),this.init(),i?r.viewInit(this,this.props,this.index):r.updateViewProps(this,this.props);case 1:case"end":return e.stop()}},e,this)})),function(e){return n.apply(this,arguments)})},{key:"handleKeyPress",value:function(e){"Enter"!==e.code||this.multiline||this.onEndEditing(null)}},{key:"handleSelection",value:function(){var e,t,n=[0,0],r=window.getSelection();if(document.activeElement===this.dom&&this.dom&&r){var i=this.dom.value.indexOf(r.toString());if(i===n[0]&&n[1]===i+r.toString().length)return;n[0]=i,n[1]=i+r.toString().length,this.onSelectionChange((e=i,t=i+r.toString().length,{nativeEvent:{selection:{start:e,end:t}}}))}}},{key:"handleInput",value:function(){var e,t,n;0===(null===(e=this.value)||void 0===e?void 0:e.length)&&this.defaultValue&&(this.onChangeText({text:null===(t=this.dom)||void 0===t?void 0:t.value}),this.setValue(this.defaultValue)),this.onChangeText({text:null===(n=this.dom)||void 0===n?void 0:n.value})}},{key:"handleBlur",value:function(){this.onBlur(null)}}]);var n}(ii);var eo=function(e){function t(e,n,r){var i;return x(this,t),(i=Sn(this,t,[e,n,r])).tagName=Hn.VIEW,i.dom=document.createElement("div"),i}return gn(t,e),L(t)}(ii),to=function(e){function t(e,n,r){var i;return x(this,t),(i=Sn(this,t,[e,n,r])).pageIndex=0,i.scrollCaptureState=!1,i.lastPosition=[0,0],i.children=[],i.swipeRecognize=null,i.tagName=Hn.VIEW_PAGER,i.dom=document.createElement("div"),i.init(),i}return gn(t,e),L(t,[{key:"defaultStyle",value:function(){return{display:"flex",flexDirection:"row",overflowX:"visible",overflowY:"visible",maxHeight:"100%",boxSizing:"border-box"}}},{key:"initialPage",get:function(){return this.props[tr.INITIAL_PAGE]},set:function(e){this.props[tr.INITIAL_PAGE]=e}},{key:"scrollEnabled",get:function(){return this.props[tr.SCROLL_ENABLED]},set:function(e){this.props[tr.SCROLL_ENABLED]=e}},{key:"onPageSelected",value:function(e){this.props[tr.ON_PAGE_SELECTED]&&this.dispatchEvent(tr.ON_PAGE_SELECTED,e)}},{key:"onPageScroll",value:function(e){this.props[tr.ON_PAGE_SCROLL]&&this.dispatchEvent(tr.ON_PAGE_SCROLL,e)}},{key:"onPageScrollStateChanged",value:function(e){this.props[tr.ON_PAGE_SCROLL_STATE_CHANGED]&&this.dispatchEvent(tr.ON_PAGE_SCROLL_STATE_CHANGED,e)}},{key:"setPage",value:function(e){this.scrollPage(e,!0)}},{key:"setPageWithoutAnimation",value:function(e){this.scrollPage(e,!1)}},{key:"beforeChildMount",value:(o=l(d().mark(function e(n,r){return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,_n(t,"beforeChildMount",this,3)([n,r]);case 1:n instanceof ro&&this.children.push(n);case 2:case"end":return e.stop()}},e,this)})),function(e,t){return o.apply(this,arguments)})},{key:"beforeChildRemove",value:function(e){_n(t,"beforeChildRemove",this,3)([e]),e instanceof ro&&(this.children=this.children.filter(function(t){return t!==e}))}},{key:"beforeRemove",value:(i=l(d().mark(function e(){var n;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,_n(t,"beforeRemove",this,3)([]);case 1:this.hammer.destroy(),null===(n=this.touchListenerRelease)||void 0===n||n.call(this);case 2:case"end":return e.stop()}},e,this)})),function(){return i.apply(this,arguments)})},{key:"endBatch",value:function(){0!==this.initialPage&&this.initialPage!==this.pageIndex&&this.scrollToPageByIndex(this.initialPage,!1)}},{key:"init",value:function(){var e=this;this.props[tr.INITIAL_PAGE]=0,this.props[tr.SCROLL_ENABLED]=!0,this.hammer=new ri.exports.Manager(this.dom,{inputClass:ri.exports.TouchInput,touchAction:"auto"});var t=new ri.exports.Swipe;this.hammer.add(t),this.hammer.on("swipe",function(t){e.swipeRecognize=t,t.srcEvent.stopPropagation()}),this.touchListenerRelease=Ti(this.dom,{onTouchMove:this.handleScroll.bind(this),onBeginDrag:this.handleBeginDrag.bind(this),onEndDrag:this.handleEndDrag.bind(this),updatePosition:this.updatePositionInfo.bind(this),getPosition:function(){return e.lastPosition},scrollEnable:this.checkScrollEnable.bind(this),needSimulatedScrolling:!0})}},{key:"checkScrollEnable",value:function(e,t){return t?this.scrollCaptureState&&t?(t.preventDefault(),this.scrollCaptureState):(this.scrollCaptureState=this.needCaptureTouch(e,t),this.scrollCaptureState&&t.preventDefault(),this.scrollCaptureState):this.scrollCaptureState}},{key:"needCaptureTouch",value:function(e,t){var n=Oi(t,e);return!!(Math.abs(n[0])>5&&this.scrollEnabled)}},{key:"handleScroll",value:function(){this.dom&&this.onPageScroll(function(e,t,n){var r=parseInt(String(Math.abs(n[0])/e),10),i=Math.abs(n[0])%e/e,o=t;r<t&&(o-=1);return{offset:Number(i.toFixed(3)),position:o}}(this.dom.clientWidth,this.pageIndex,this.lastPosition))}},{key:"handleBeginDrag",value:function(){this.swipeRecognize=null,this.onPageScrollStateChanged(no(ar.DRAG))}},{key:"handleEndDrag",value:(r=l(d().mark(function e(t){var n,r,i,o,a,s,u=this;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(this.scrollCaptureState=!1,this.onPageScrollStateChanged(no(ar.SETTL)),!this.swipeRecognize){e.next=1;break}return n=this.pageIndex,this.swipeRecognize.offsetDirection===ri.exports.DIRECTION_RIGHT&&this.pageIndex>0?n-=1:this.swipeRecognize.offsetDirection===ri.exports.DIRECTION_LEFT&&this.pageIndex<this.children.length-1&&(n+=1),this.scrollPage(n,!0),this.swipeRecognize=null,e.abrupt("return");case 1:return r=Ri(this.dom.clientWidth,this.dom.scrollWidth,t[0]),i=r.toOffset,o=r.newPageIndex,a=[i,t[1]],s=function(e,t){u.updatePositionInfo(e,t),u.handleScroll()},e.next=2,Di(this.dom,s,t,a,200,this.pageIndex,o);case 2:this.onPageSelected({position:o}),this.onPageScrollStateChanged(no(ar.IDLE));case 3:case"end":return e.stop()}},e,this)})),function(e){return r.apply(this,arguments)})},{key:"updatePositionInfo",value:function(e,t){void 0!==t&&(this.pageIndex=t),this.lastPosition=e}},{key:"scrollToPageByIndex",value:(n=l(d().mark(function e(t,n){var r,i,o,a,s=this;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=this.dom.clientWidth,i=k(this.lastPosition),o=[t*r*-1,this.lastPosition[1]],this.onPageScrollStateChanged(no(ar.SETTL)),a=function(e,t){s.updatePositionInfo(e,t),s.handleScroll()},e.next=1,Di(this.dom,a,i,o,n?200:0,this.pageIndex,t);case 1:this.onPageSelected({position:t}),this.onPageScrollStateChanged(no(ar.IDLE));case 2:case"end":return e.stop()}},e,this)})),function(e,t){return n.apply(this,arguments)})},{key:"scrollPage",value:function(e,t){this.dom&&this.scrollToPageByIndex(e,t)}}]);var n,r,i,o}(ii);function no(e){return{pageScrollState:e}}var ro=function(e){function t(e,n,r){var i;return x(this,t),(i=Sn(this,t,[e,n,r])).tagName=Hn.VIEW_PAGER_ITEM,i.dom=document.createElement("div"),i}return gn(t,e),L(t,[{key:"defaultStyle",value:function(){return{flexShrink:0,display:"flex",boxSizing:"border-box",position:"static"}}},{key:"updateProps",value:function(e,t){var n=En({},e);e.style&&"absolute"===e.style.position&&delete n.style.position,Object.assign(n.style,this.defaultStyle()),t(this,n)}},{key:"beforeMount",value:(n=l(d().mark(function e(n,r){return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,_n(t,"beforeMount",this,3)([n,r]);case 1:fr(this.dom,{width:"".concat(n.dom.clientWidth,"px")});case 2:case"end":return e.stop()}},e,this)})),function(e,t){return n.apply(this,arguments)})}]);var n}(ii),io=function(e){function t(e,n,r){var i;return x(this,t),(i=Sn(this,t,[e,n,r])).isMounted=!1,i.dom=document.createElement("iframe"),i.tagName=Hn.WEB_VIEW,i.dom.onload=i.onLoadEnd.bind(i),i}return gn(t,e),L(t,[{key:"source",get:function(){return this.props[tr.SOURCE]},set:function(e){var t;this.props[tr.SOURCE]=e,this.isMounted&&(this.onLoadStart(this.props[tr.SOURCE]),this.dom.src=null!==(t=e.uri)&&void 0!==t?t:"",this.onLoad(this.props[tr.SOURCE]))}},{key:"userAgent",get:function(){return this.props[tr.USER_AGENT]},set:function(e){this.props[tr.USER_AGENT]=e}},{key:"method",get:function(){return this.props[tr.METHOD]},set:function(e){this.props[tr.METHOD]=e}},{key:"onLoadStart",value:function(e){this.props[tr.ON_LOAD_START]&&this.dispatchEvent(tr.ON_LOAD_START,e)}},{key:"onLoad",value:function(e){this.props[tr.ON_LOAD]&&this.dispatchEvent(tr.ON_LOAD,e)}},{key:"onLoadEnd",value:function(){this.props[tr.ON_LOAD_END]&&this.dispatchEvent(tr.ON_LOAD_END,this.props[tr.SOURCE])}},{key:"beforeMount",value:(n=l(d().mark(function e(n,r){var i;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,_n(t,"beforeMount",this,3)([n,r]);case 1:this.props[tr.SOURCE].uri&&(this.dom.src=null!==(i=this.props[tr.SOURCE].uri)&&void 0!==i?i:""),this.dom.src&&this.onLoadStart(this.props[tr.SOURCE]);case 2:case"end":return e.stop()}},e,this)})),function(e,t){return n.apply(this,arguments)})},{key:"mounted",value:function(){this.isMounted=!0,this.dom.src&&this.onLoad(this.props[tr.SOURCE])}},{key:"style",get:function(){return this.props[tr.STYLE]},set:function(e){this.props[tr.STYLE]=e}}]);var n}(ii),oo={head:{"text-overflow":"ellipsis",direction:"rtl"},clip:{"text-overflow":"clip"},middle:{"text-overflow":"ellipsis"},tail:{"text-overflow":"ellipsis"}},ao=function(e){function t(e,n,r){var i;return x(this,t),(i=Sn(this,t,[e,n,r])).tagName=Hn.TEXT,i.dom=document.createElement("span"),i.props[tr.ELLIPSIZE_MODE]=Qn.TAIL,i}return gn(t,e),L(t,[{key:"defaultStyle",value:function(){return En({boxSizing:"border-box",zIndex:0},oo[this.ellipsizeMode])}},{key:"numberOfLines",get:function(){return this.props[tr.NUMBER_OF_LINES]},set:function(e){this.props[tr.NUMBER_OF_LINES]=e,1===e?this.dom&&fr(this.dom,{"white-space":"nowrap","word-break":"keep-all",display:"initial","-webkit-box-orient":"","-webkit-line-clamp":"",overflow:""}):this.dom&&fr(this.dom,{"white-space":"normal","word-break":"break-all",display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":"".concat(e),overflow:"hidden"})}},{key:"ellipsizeMode",get:function(){return this.props[tr.ELLIPSIZE_MODE]},set:function(e){this.props[tr.ELLIPSIZE_MODE]=e,this.dom&&e&&fr(this.dom,En(En({},oo[e]),{},{overflow:"hidden","white-space":"nowrap"}))}},{key:"text",get:function(){return this.props[tr.VALUE]},set:function(e){if(this.props[tr.VALUE]=e,this.dom.childNodes.length>0){var t=null;return this.dom.childNodes.forEach(function(e){e instanceof Text&&(t=e)}),void(t&&t.textContent!==e&&(t.textContent=e))}var n=document.createTextNode(e);this.dom.childNodes.length>0&&this.dom.removeChild(this.dom.childNodes[0]),this.dom.appendChild(n)}}])}(ii),so=Object.freeze({__proto__:null,Image:si,ListView:Mi,Modal:Hi,RefreshWrapper:Yi,ScrollView:Ji,TextInput:Qi,View:eo,ViewPager:to,WebView:io,Text:ao,ListViewItem:Fi,ViewPagerItem:ro,RefreshWrapperItemView:qi,HippyWebView:ii});Hippy.web={},Hippy.web.Engine=Lr;var uo,lo=function(e){function t(){var e;return x(this,t),(e=Sn(this,t,arguments)).name="AnimationModule",e.animationPool={},e.animationSetPool={},e}return gn(t,e),L(t,[{key:"createAnimation",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"timing",n=arguments.length>2?arguments[2]:void 0;this.animationPool[e]||(t||(this.animationPool[e]=null),"timing"===t&&(this.animationPool[e]=new po(this.context,e,n,t)))}},{key:"createAnimationSet",value:function(e,t){this.animationSetPool[e]||(this.animationSetPool[e]=new vo(this.context,e,t))}},{key:"updateAnimation",value:function(e,t){var n;this.isValidAnimationId(e)?null===(n=this.animationPool[e])||void 0===n||n.update(t):Sr("hippy","animation update failed, animationId not find animation object",e)}},{key:"startAnimation",value:function(e){var t,n;this.isValidAnimationId(e)?(null===(t=this.animationSetPool[e])||void 0===t||t.start(),null===(n=this.animationPool[e])||void 0===n||n.start()):Sr("hippy","animation start failed, animationId not find animation object",e)}},{key:"pauseAnimation",value:function(e){var t,n;this.isValidAnimationId(e)?(null===(t=this.animationSetPool[e])||void 0===t||t.stop(),null===(n=this.animationPool[e])||void 0===n||n.stop()):Sr("hippy","animation stop failed, animationId not find animation object",e)}},{key:"resumeAnimation",value:function(e){var t,n;this.isValidAnimationId(e)?(null===(t=this.animationSetPool[e])||void 0===t||t.resume(),null===(n=this.animationPool[e])||void 0===n||n.resume()):Sr("hippy","animation resume failed, animationId not find animation object",e)}},{key:"destroyAnimation",value:function(e){var t,n;this.isValidAnimationId(e)?(null===(t=this.animationSetPool[e])||void 0===t||t.destroy(),null===(n=this.animationPool[e])||void 0===n||n.destroy()):Sr("hippy","animation destroy failed, animationId not find animation object",e)}},{key:"linkInitAnimation2Element",value:function(e,t,n){this.linkAnimation2Element(e,t,n)||this.animationPool[e].initAnimation(t.dom)}},{key:"linkAnimation2Element",value:function(e,t,n){return!this.animationPool[e]&&!this.animationSetPool[e]||(this.animationSetPool[e]?(this.linkAnimationSet2Element(e,t,n),!0):(this.linkAnimationCheck(t,n),this.animationPool[e].nodeId=t.id,this.animationPool[e].animationProperty=n,!1))}},{key:"linkAnimationSet2Element",value:function(e,t,n){this.animationSetPool[e]&&(this.animationSetPool[e].nodeId=t.id,this.animationSetPool[e].initAnimationSet(e,t,n))}},{key:"getAnimationStartValue",value:function(e){return this.animationPool[e]?this.animationPool[e].animationBeginValue:null}},{key:"findAnimation",value:function(e){return this.animationPool[e]}},{key:"addEventListener",value:function(e,t,n){var r,i;this.animationPool[e]&&(null===(r=this.animationPool[e])||void 0===r||r.addAnimationEventListener(t,n)),this.animationSetPool[e]&&(null===(i=this.animationSetPool[e])||void 0===i||i.addAnimationEventListener(t,n))}},{key:"removeEventListener",value:function(e,t,n){var r,i;this.animationPool[e]&&(null===(r=this.animationPool[e])||void 0===r||r.removeAnimationEventListener(t,n)),this.animationSetPool[e]&&(null===(i=this.animationSetPool[e])||void 0===i||i.removeAnimationEventListener(t,n))}},{key:"isValidAnimationId",value:function(e){return this.animationPool[e]||this.animationSetPool[e]}},{key:"linkAnimationCheck",value:function(e,t){for(var n=0,r=Object.keys(this.animationPool);n<r.length;n++){var i=r[n],o=this.animationPool[i];(null==o?void 0:o.hasLinkedView(e.id))&&o.refCssProperty===t&&"end"!==o.state&&!this.isAnimationSetChild(null==o?void 0:o.id)&&o.clearLinkNode()}}},{key:"isAnimationSetChild",value:function(e){for(var t=0,n=Object.keys(this.animationSetPool);t<n.length;t++){var r=n[t],i=this.animationSetPool[r],o=null==i?void 0:i.containAnimationId(e);if(o)return o}return!1}}])}(Ir);!function(e){e.START="onHippyAnimationStart",e.END="onHippyAnimationEnd",e.CANCEL="onHippyAnimationCancel",e.REPEAT="onHippyAnimationRepeat"}(uo||(uo={}));var co={perspective:1,rotate:1,rotateX:1,rotateY:1,rotateZ:1,scale:1,scaleX:1,scaleY:1,translateX:1,translateY:1,skewX:1};function ho(e){switch(e){case"animationstart":return uo.START;case"animationend":return uo.END;case"animationrepeat":return uo.REPEAT;case"animationcancel":return uo.CANCEL;default:return e}}var fo=function(){return L(function e(){x(this,e),this.events={}},[{key:"addAnimationEventListener",value:function(e,t){var n=ho(e),r=this.events[n];(null==r?void 0:r.length)?r.push(t):this.events[n]=[t]}},{key:"removeAnimationEventListener",value:function(e,t){var n=ho(e);if(t){var r=this.events[n];if(r){var i=[];r.forEach(function(e,n){e===t&&i.push(n)}),i&&i.forEach(function(e){delete r[e]})}else this.events[n]=[]}else this.events[n]=[]}},{key:"dispatchEvent",value:function(e){var t=this.events[e];(null==t?void 0:t.length)&&t.forEach(function(e){e.resolve(null)})}}])}(),po=function(e){function t(e,n,r,i){var o;return x(this,t),(o=Sn(this,t)).refCssProperty=null,o.animationStamp=Date.now(),o.refNodeIds=new Set,o.domes={},o.animationState="wait",o.beginListener=[],o.endListener=[],o.cleared=!1,o.animationInfo=r,o.timeMode=i,o.id=n,o.context=e,o.handleAnimationEnd=o.handleAnimationEnd.bind(o),o.handleAnimationStart=o.handleAnimationStart.bind(o),o}return gn(t,e),L(t,[{key:"state",get:function(){return this.animationState}},{key:"nodeId",set:function(e){this.refNodeIds.add(e)}},{key:"animationBeginValue",get:function(){return this.buildAnimationValue(this.animationInfo.startValue)}},{key:"animationEndValue",get:function(){return this.buildAnimationValue(this.animationInfo.toValue)}},{key:"animationTime",get:function(){return"".concat(this.animationInfo.duration/1e3,"s")}},{key:"delayTime",get:function(){return this.animationInfo.delay?"".concat(this.animationInfo.delay/1e3,"s"):"0s"}},{key:"animationUseTime",get:function(){return this.animationInfo.duration+(void 0!==this.animationInfo.delay?this.animationInfo.delay:0)}},{key:"animationName",get:function(){return"".concat(this.animationNamePrefix,"-").concat(this.animationStamp)}},{key:"animationNamePrefix",get:function(){return"hippy-keyframe-".concat(this.id)}},{key:"iteration",get:function(){return void 0!==this.animationInfo.repeatCount&&this.animationInfo.repeatCount<0?"infinite":this.animationInfo&&this.animationInfo.repeatCount?String(this.animationInfo.repeatCount):"1"}},{key:"animationProperty",set:function(e){if("string"!=typeof e){var t=s(Object.keys(e),1)[0];co[t]&&(this.refCssProperty=t)}else this.refCssProperty=e}},{key:"useForSetProperty",get:function(){return this.refCssProperty?co[this.refCssProperty]?"transform":this.refCssProperty.replace(/[A-Z]/g,function(e){return"-".concat(e.toLowerCase())}):""}},{key:"hasLinkedView",value:function(e){return this.refNodeIds.has(e)}},{key:"getDomByNodeId",value:function(e){if(this.domes[e])return this.domes[e];var t=document.getElementById(String(e));return t&&(this.domes[e]=t),t}},{key:"initAnimation",value:function(e){if(!this.cleared){var t=this.createAnimationKeyFrame(this.createAnimationBeginAndEndValue());"end"!==this.animationState&&"play"!==this.animationState||(t=this.createAnimationKeyFrame(this.createAnimationEndAndEndValue())),this.updateAnimationInfoToPageStyle(t);var n=go(this.animationTime,this.animationName,this.animationInfo.timingFunction,this.delayTime,"paused",this.iteration,"both");this.animationUpdate2Css(n,e)}}},{key:"start",value:function(){var e,t,n=this;if(!this.cleared){var r=this.createAnimationKeyFrame(this.createAnimationBeginAndEndValue());this.updateAnimationInfoToPageStyle(r),this.changeAnimationStatus("running"),this.animationState="play",setTimeout(function(){n.handleAnimationStart({animationName:n.animationName,elapsedTime:0,pseudoElement:""})},null!==(e=this.animationInfo.delay)&&void 0!==e?e:0),setTimeout(function(){n.handleAnimationEnd({animationName:n.animationName,elapsedTime:0,pseudoElement:""}),n.animationState="end"},(null!==(t=this.animationInfo.delay)&&void 0!==t?t:0)+this.animationInfo.duration)}}},{key:"stop",value:function(){this.changeAnimationStatus("paused")}},{key:"resume",value:function(){this.changeAnimationStatus("running")}},{key:"destroy",value:function(){this.changeAnimationStatus("paused"),this.batchUpdateCss(null)}},{key:"update",value:function(e){this.cleared=!1,this.animationState="wait",this.animationInfo=e,this.animationStamp=Date.now(),this.updateAnimationInfoToPageStyle(this.createAnimationKeyFrame(this.createAnimationBeginAndEndValue()));var t=go(this.animationTime,this.animationName,this.animationInfo.timingFunction,this.delayTime,"paused",this.iteration,"both");this.batchUpdateCss(t)}},{key:"addEventListener",value:function(e,t){switch(e){case"begin":this.beginListener.push(t);break;case"end":this.endListener.push(t)}}},{key:"clearLinkNode",value:function(){this.cleared=!0,this.batchUpdateCss(null)}},{key:"createAnimationBeginAndEndValue",value:function(){var e=this.buildCssValue(this.animationBeginValue),t=this.buildCssValue(this.animationEndValue),n={},r={};return n[this.useForSetProperty]=e,r[this.useForSetProperty]=t,{beginFrame:n,endFrame:r}}},{key:"createAnimationEndAndEndValue",value:function(){var e=this.buildCssValue(this.animationEndValue),t=e,n={},r={};return n[this.useForSetProperty]=e,r[this.useForSetProperty]=t,{beginFrame:n,endFrame:r}}},{key:"createAnimationKeyFrame",value:function(e){var t,n,r,i=e.beginFrame,o=e.endFrame,a=(t=i,n=o,r=this.animationName," @keyframes ".concat(r,"{\n from {").concat(yo(t),"}\n to {").concat(yo(n),"}\n }"));return{keyFrame:mo(this.animationName),keyFrameData:a}}},{key:"updateAnimationInfoToPageStyle",value:function(e){var t,n,r,i=e.keyFrame,o=e.keyFrameData;i.cssRule?(t=this.animationName,n=o,(r=mo(t)).styleSheet.rules.length&&r.styleSheet.deleteRule(0),r.styleSheet.insertRule(n)):function(e){var t=document.createElement("style");t.type="text/css",t.innerHTML=e,document.getElementsByTagName("head")[0].appendChild(t)}(o)}},{key:"changeAnimationStatus",value:function(e){if(mo(this.animationName).cssRule){var t=go(this.animationTime,this.animationName,this.animationInfo.timingFunction,this.delayTime,e,this.iteration,"both");this.batchUpdateCss(t)}}},{key:"batchUpdateCss",value:function(e){var t=this;this.refNodeIds.forEach(function(n){var r=t.getDomByNodeId(n);r&&t.animationUpdate2Css(e,r)})}},{key:"animationUpdate2Css",value:function(e,t){var n,r=this,i=t;if(i){var o=i.style.animation?i.style.animation.split(","):[];if(o||null===e){var a=null!==(n=o.findIndex(function(e){return-1!==e.indexOf(r.animationNamePrefix)}))&&void 0!==n?n:-1;-1===a&&e&&o.push(e),-1!==a&&null!==e&&(o[a]=e),-1!==a&&null===e&&o.splice(a,1)}else(o=[]).push(e);fr(i,{animation:o.join(",")})}}},{key:"buildCssValue",value:function(e){return"transform"===this.useForSetProperty?"".concat(this.refCssProperty,"(").concat(e,")"):e}},{key:"buildAnimationValue",value:function(e){var t="px";return this.animationInfo.valueType&&(t=this.animationInfo.valueType),"scale"!==this.refCssProperty&&"opacity"!==this.refCssProperty&&"color"!==this.refCssProperty&&"backgroundColor"!==this.refCssProperty||(t=""),"color"===this.refCssProperty||"backgroundColor"===this.refCssProperty?"".concat(yr(e)):"".concat(e).concat(t)}},{key:"handleAnimationStart",value:function(e){e.animationName===this.animationName&&this.dispatchEvent(uo.START),this.beginListener.forEach(function(e){e()})}},{key:"handleAnimationEnd",value:function(e){e.animationName===this.animationName&&this.dispatchEvent(uo.END),this.changeAnimationStatus("paused"),this.endListener.forEach(function(e){e()})}}])}(fo),vo=function(e){function t(e,n,r){var i;return x(this,t),(i=Sn(this,t)).refNodeIds=new Set,i.id=n,i.context=e,i.setOption=r,i.handleAnimationStart=i.handleAnimationStart.bind(i),i.handleAnimationEnd=i.handleAnimationEnd.bind(i),i}return gn(t,e),L(t,[{key:"nodeId",set:function(e){this.refNodeIds.add(e)}},{key:"hasLinkedView",value:function(e){return this.refNodeIds.has(e)}},{key:"start",value:function(){for(var e=this,t=this.calculateAnimationTime(),n=function(){var t=e.setOption.children[r],n=e.context.getModuleByName("AnimationModule").findAnimation(t.animationId);if(0===r)return window.requestAnimationFrame(function(){n.start()}),1;var i=e.setOption.children[r-1],o=e.context.getModuleByName("AnimationModule").findAnimation(i.animationId);null==o||o.addEventListener("end",function(){o.destroy(),null==n||n.start()})},r=0;r<this.setOption.children.length;r++)n();var i=Math.max.apply(null,t);setTimeout(this.handleAnimationStart,0),setTimeout(this.handleAnimationEnd,i)}},{key:"stop",value:function(){}},{key:"resume",value:function(){}},{key:"destroy",value:function(){}},{key:"findFirstAnimation",value:function(){var e=s(this.setOption.children,1)[0];return this.context.getModuleByName("AnimationModule").findAnimation(e.animationId)}},{key:"initAnimationSet",value:function(e,t,n){var r=this.context.getModuleByName("AnimationModule");this.setOption.children.forEach(function(e,i){0!==i?r.linkAnimation2Element(e.animationId,t,n):r.linkInitAnimation2Element(e.animationId,t,n)})}},{key:"containAnimationId",value:function(e){return-1!==this.setOption.children.findIndex(function(t){return t.animationId===e})}},{key:"calculateAnimationTime",value:function(){for(var e,t,n=[],r=this.context.getModuleByName("AnimationModule"),i=0;i<this.setOption.children.length;i++){var o=this.setOption.children[i];0!==i?n[i]=n[i-1]+(null!==(t=null===(e=r.findAnimation(o.animationId))||void 0===e?void 0:e.animationUseTime)&&void 0!==t?t:0):n[i]=r.findAnimation(o.animationId).animationUseTime}return n}},{key:"handleAnimationStart",value:function(){this.dispatchEvent(uo.START)}},{key:"handleAnimationEnd",value:function(){this.dispatchEvent(uo.END)}}])}(fo);function yo(e){for(var t="",n=0,r=Object.keys(e);n<r.length;n++){var i=r[n];t+="".concat(i,":").concat(e[i])}return t}function mo(e){for(var t,n={},r=document.styleSheets,i=0;i<r.length;++i){var o=r[i];if((null===(t=o.cssRules[0])||void 0===t?void 0:t.name)===e){var a=s(o.cssRules,1)[0];n.cssRule=a,n.styleSheet=r[i],n.index=0}}return n}function go(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"linear",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"0s",i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"running",o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"1",a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"forwards";return"".concat(e," ").concat(n," ").concat(r," ").concat(o," normal ").concat(a," ").concat(i," ").concat(t)}var _o=function(e){function t(){var e;return x(this,t),(e=Sn(this,t,arguments)).name="ClipboardModule",e}return gn(t,e),L(t,[{key:"getString",value:function(e){var t,n="";(null===(t=null===window||void 0===window?void 0:window.navigator)||void 0===t?void 0:t.clipboard)&&window.navigator.clipboard.readText().then(function(e){n=e},function(){Sr("get clipboard failed")}).finally(function(){e.resolve(n)})}},{key:"setString",value:function(e){var t;if(null===(t=null===window||void 0===window?void 0:window.navigator)||void 0===t?void 0:t.clipboard)window.navigator.clipboard.writeText(e).then(null,function(){Sr("set clipboard failed")});else if((null===document||void 0===document?void 0:document.queryCommandSupported)&&(null===document||void 0===document?void 0:document.queryCommandSupported("copy"))){var n=document.createElement("textarea");n.value=e,n.style.position="fixed",document.body.appendChild(n),n.select();try{document.execCommand("copy")}catch(e){Sr("set clipboard failed")}finally{document.body.removeChild(n)}}}}])}(Ir),bo=function(e){function t(){var e;return x(this,t),(e=Sn(this,t,arguments)).name="DeviceEventModule",e.listen=!1,e.moduleListener=[],e}return gn(t,e),L(t,[{key:"invokeDefaultBackPressHandler",value:function(){var e=this;setTimeout(function(){var t,n;e.listen=!1,n=(null===(t=null===history||void 0===history?void 0:history.state)||void 0===t?void 0:t.target)===wo?-3:-2,history.go(n)},0)}},{key:"init",value:function(){}},{key:"setListenBackPress",value:function(e){this.moduleListener.length>0&&!e||(this.listen=e)}},{key:"setModuleListener",value:function(e){this.moduleListener.push(e),this.listen=!0}},{key:"removeModuleListener",value:function(e){this.moduleListener=this.moduleListener.filter(function(t){return t!==e})}},{key:"handleBack",value:function(){return!!this.listen&&(this.moduleListener.length>0?(this.moduleListener.reverse()[0](),!0):!!this.listen&&(this.context.sendEvent("hardwareBackPress",null),!0))}}])}(Ir),wo="puppet";var ko=function(e){function t(){var e;return x(this,t),(e=Sn(this,t,arguments)).name="ImageLoaderModule",e}return gn(t,e),L(t,[{key:"getSize",value:function(e,t){if(e){var n=new Image;n.onload=function(){t.resolve({width:n.width,height:n.height})},n.src=e}else t.reject("image url not support ".concat(e))}},{key:"prefetch",value:function(e){e&&((new Image).src=e)}},{key:"initialize",value:function(){}},{key:"destroy",value:function(){}}])}(Ir),Eo=function(e){function t(e){var n;return x(this,t),(n=Sn(this,t,[e])).name="NetInfo",n.handleOnlineChange=n.handleOnlineChange.bind(n),n}return gn(t,e),L(t,[{key:"state",get:function(){var e="WIFI";return navigator.onLine||(e="NONE"),e}},{key:"getCurrentConnectivity",value:function(e){e.resolve({network_info:this.state})}},{key:"addListener",value:function(e){"networkStatusDidChange"===e&&(window.addEventListener("online",this.handleOnlineChange),window.addEventListener("offline",this.handleOnlineChange))}},{key:"removeListener",value:function(e){"networkStatusDidChange"===e&&(window.removeEventListener("online",this.handleOnlineChange),window.removeEventListener("offline",this.handleOnlineChange))}},{key:"destroy",value:function(){this.removeListener("change")}},{key:"handleOnlineChange",value:function(){this.context.sendEvent("networkStatusDidChange",{network_info:this.state})}}])}(Ir),So=function(e){function t(){var e;return x(this,t),(e=Sn(this,t,arguments)).name="network",e}return gn(t,e),L(t,[{key:"fetch",value:function(e,t){e||t.reject("invalid request param");var r=e.url,i=e.method;r&&i||t.reject("no valid url for request");var o=e.redirect,a=e.body,s={redirect:o,headers:e.headers,method:i};"get"!==i.toLowerCase()&&(s.body=a),n.g.__fetch(r,s).then(function(){var e=l(d().mark(function e(n){var r,i,o,a,s,u;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!n){e.next=2;break}return e.next=1,n.text();case 1:r=e.sent,i={},o=bn(n.headers.keys());try{for(o.s();!(a=o.n()).done;)s=a.value,i[s]=n.headers.get(s)}catch(e){o.e(e)}finally{o.f()}return(u={statusCode:n.status,statusLine:n.statusText,respBody:r,respHeaders:i}).statusCode=n.status,t.resolve(u),e.abrupt("return");case 2:t.resolve("response null");case 3:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),function(e){t.reject(e.toString())}).catch(function(e){t.reject(e.toString())})}},{key:"setCookie",value:function(e,t,n,r){n.split(";").forEach(function(e){document.cookie="".concat(e,"; expires=").concat(r,";domain=").concat(t)})}},{key:"getCookies",value:function(e){e.resolve(document.cookie)}},{key:"initialize",value:function(){}},{key:"destroy",value:function(){}}])}(Ir),Ao=function(e){function t(){var e;return x(this,t),(e=Sn(this,t,arguments)).moduleName="StorageModule",e.STORE_PRX_KEY="hippy-storage-",e}return gn(t,e),L(t,[{key:"getAllKeys",value:function(e){if(t.preCheck()){var n=window.__localStorage.getItem("".concat(this.STORE_PRX_KEY,"ALL-KEY"));try{n=JSON.stringify(n)}catch(e){throw"deserialize failed , getAllKeys()"}e.resolve(n)}else e.resolve("not support")}},{key:"multiGet",value:function(e,n){if(t.preCheck())if(!e||e.length<=0)n.reject("Invalid Key");else{var r=[];e.forEach(function(e){var t=window.__localStorage.getItem(e);if(t){try{t=JSON.stringify(t)}catch(e){throw"deserialize failed , getAllKeys()"}r.push([e,t])}}),n.resolve(r)}else n.reject("not support")}},{key:"multiSet",value:function(e,n){if(t.preCheck())if(!e||e.length<=0)n.reject("Invalid Key");else{for(var r=0;r<e.length;r++){var i=e[r];if(!i||2!==i.length||!i[0]||!i[1])return void n.reject("Invalid key or value");try{__localStorage.setItem(i[0],JSON.stringify(i[1]))}catch(e){return void n.reject("cant storage for key ${dataItem[0]} ")}}n.resolve("success")}else n.reject("not support")}},{key:"multiRemove",value:function(e,n){if(t.preCheck())if(!e||e.length<=0)n.reject("Invalid Key");else{for(var r=0;r<e.length;r++)window.__localStorage.removeItem(e[r]);n.resolve("success")}else n.reject("not support")}},{key:"initialize",value:function(){}},{key:"destroy",value:function(){}}],[{key:"preCheck",value:function(){return!!window.__localStorage||(Sr("not support localStorage"),!1)}}])}(Ir),xo=!1,Co=function(e){function t(e){var n;return x(this,t),(n=Sn(this,t,[e])).name="UIManagerModule",n.viewDictionary={},n.afterCreateAction=[],n.mode="sequential",n}return gn(t,e),L(t,[{key:"init",value:function(){var e;!xo&&((e=document.createElement("style")).type="text/css",e.innerHTML='*::-webkit-scrollbar {\n display: none;\n} img[src=""],img:not([src]){\n opacity: 0;\n visibility: hidden;\n }',document.getElementsByTagName("head")[0].appendChild(e)),xo=!0}},{key:"createNode",value:(u=l(d().mark(function e(t,n){var r,i,o,a,u,l,c,h,f,p,v,y,m,g,_;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:this.createNodePreCheck(t),i=new Set,o=0;case 1:if(!(o<n.length)){e.next=9;break}if(a=s(n[o],1),u=a[0],l=u.id,c=u.pId,h=u.index,f=u.props,p=u.name){e.next=2;break}return Sr("create component failed, tagName is ".concat(p)),e.abrupt("continue",8);case 2:if(v=To(this.context,p,l,c)){e.next=3;break}return Sr("create component failed, not support the component ".concat(p)),e.abrupt("continue",8);case 3:return e.prev=3,e.next=4,this.viewInit(v,f,h);case 4:e.next=6;break;case 5:e.prev=5,e.catch(3),Ar();case 6:if(!i.has(l)){e.next=7;break}return e.abrupt("continue",8);case 7:p!==Hn.LIST&&p!==Hn.VIEW_PAGER||i.add(l),(null===(r=this.findViewById(c))||void 0===r?void 0:r.tagName)===Hn.LIST&&i.add(c);case 8:o++,e.next=1;break;case 9:y=bn(i);try{for(y.s();!(m=y.n()).done;)g=m.value,null==(_=this.findViewById(g))||_.endBatch()}catch(e){y.e(e)}finally{y.f()}this.afterCreateAction.forEach(function(e){return e()}),this.afterCreateAction=[];case 10:case"end":return e.stop()}},e,this,[[3,5]])})),function(e,t){return u.apply(this,arguments)})},{key:"deleteNode",value:(a=l(d().mark(function e(t,n){var r,i,o,a;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:r=0;case 1:if(!(r<n.length)){e.next=3;break}return i=s(n[r],1),o=i[0],a=this.findViewById(o.id),e.next=2,this.viewDelete(a);case 2:r++,e.next=1;break;case 3:case"end":return e.stop()}},e,this)})),function(e,t){return a.apply(this,arguments)})},{key:"updateNode",value:function(e,t){for(var n=0;n<t.length;n++){var r=s(t[n],1)[0],i=this.findViewById(r.id);(null==r?void 0:r.props)&&this.viewUpdate(i,r.props)}}},{key:"moveNode",value:(o=l(d().mark(function e(t,n){var r,i,o,a;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:r=0;case 1:if(!(r<n.length)){e.next=4;break}if(i=s(n[r],1),o=i[0],!(a=this.findViewById(o.id))){e.next=2;break}if(!this.findViewById(o.pId)||(null==a?void 0:a.pId)===o.pId){e.next=2;break}return e.next=2,this.viewDelete(a);case 2:return e.next=3,this.createNode(t,[n[r]]);case 3:r++,e.next=1;break;case 4:case"end":return e.stop()}},e,this)})),function(e,t){return o.apply(this,arguments)})},{key:"addEventListener",value:function(e,t,n){var r=this.findViewById(e);(null==r?void 0:r.addEventListener)&&r.addEventListener(t,n)}},{key:"removeEventListener",value:function(e,t){var n=this.findViewById(e);(null==n?void 0:n.removeEventListener)&&n.removeEventListener(t)}},{key:"callUIFunction",value:function(e,t){if(e&&!(e.length<3)){var n=s(e,3),r=n[0],i=n[1],o=n[2];r&&this.findViewById(r)&&function(e,t,n,r){var i=null!=n?n:[];if(t&&(null==e?void 0:e[t]))return void(null==e||e[t].apply(e,k(i).concat([r])));throw"call ui function failed,".concat(null==e?void 0:e.tagName," component not implement ").concat(t,"()")}(this.findViewById(r),i,o,t)}}},{key:"measureInWindow",value:function(e,t){var n,r=s(e,1)[0];if(r&&(null===(n=this.findViewById(r))||void 0===n?void 0:n.dom)){var i=this.findViewById(r);if(i.dom){var o=i.dom.getBoundingClientRect(),a=o.x,u=o.y,l=o.width,c=o.height,d=o.top,h=o.left,f=o.right,p=o.bottom;t.resolve({statusBarHeight:0,x:a,y:u,width:l,height:c,top:d,left:h,right:f,bottom:p})}}}},{key:"measureInAppWindow",value:function(e,t){this.measureInWindow(e,t)}},{key:"getBoundingClientRect",value:function(e,t){this.measureInWindow(e,t)}},{key:"findViewById",value:function(e){return this.viewDictionary[e]?this.viewDictionary[e]:null}},{key:"appendChild",value:function(e,t,n){var r;e.dom&&t.dom&&e.dom.insertBefore(t.dom,null!==(r=e.dom.childNodes[n])&&void 0!==r?r:null),this.viewDictionary[t.id]=t}},{key:"removeChild",value:(i=l(d().mark(function e(t,n){var r,i,o,a,s,u,l,c,h,f,p,v,y,m;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(u=this.findViewById(n),l=[],c=u.dom,h=document.createTreeWalker(u.dom,NodeFilter.SHOW_ALL,null);c;)c.id&&l.push(c.id),c=h.nextNode();f=bn(l.reverse()),e.prev=1,f.s();case 2:if((p=f.n()).done){e.next=7;break}if((v=p.value)!==n){e.next=3;break}return e.abrupt("continue",6);case 3:if((y=this.findViewById(v))&&y!==u){e.next=4;break}return e.abrupt("continue",6);case 4:return e.next=5,null===(r=y.beforeRemove)||void 0===r?void 0:r.call(y);case 5:null===(o=null===(i=this.findViewById(y.pId))||void 0===i?void 0:i.beforeChildRemove)||void 0===o||o.call(i,y),null===(a=y.destroy)||void 0===a||a.call(y),delete this.viewDictionary[y.id];case 6:e.next=2;break;case 7:e.next=9;break;case 8:e.prev=8,m=e.catch(1),f.e(m);case 9:return e.prev=9,f.f(),e.finish(9);case 10:(null==u?void 0:u.dom)&&t.dom&&!t.removeChild&&(null===(s=t.dom)||void 0===s||s.removeChild(u.dom)),delete this.viewDictionary[n];case 11:case"end":return e.stop()}},e,this,[[1,8,9,10]])})),function(e,t){return i.apply(this,arguments)})},{key:"defaultUpdateViewProps",value:function(e,t){var n,r,i,o,a,u=this;e.dom||"component update props process failed ,component's dom must be exited ".concat(null!==(n=e.tagName)&&void 0!==n?n:"");var l=Object.keys(t),c=function(e,t){var n={},r=0;return Object.keys(e).forEach(function(i){t[i]&&t[i]===e[i]||(n[i]=e[i],r+=1)}),Object.keys(e).concat(Object.keys(t)).filter(function(e){return!Object.keys(t).includes(e)}).forEach(function(i){e[i]||void 0===t[i]||(n[i]=null,r+=1)}),[n,r]}(t.style,null!==(i=null===(r=e.props)||void 0===r?void 0:r.style)&&void 0!==i?i:{}),d=s(c,2),h=d[0],f=d[1];if(t.style&&f>0){fr(e.dom,h,function(t,n){u.animationProcess(t,n,e)});var p=this.findViewById(e.pId);!function(e,t,n){var r,i;"absolute"!==e.position||(null===(i=null===(r=null==n?void 0:n.props)||void 0===r?void 0:r.style)||void 0===i?void 0:i.position)||(null==n?void 0:n.defaultStyle().position)||fr(n.dom,{position:"relative"}),"absolute"!==e.position||e.width||e.height||e.overflow||fr(t.dom,{overflow:"visible"})}(h,e,p);var v={};Object.assign(v,t.style),null===(o=e.updateProperty)||void 0===o||o.call(e,"style",v),function(e,t,n){"absolute"===e.position||"relative"===e.position?(null==n||n.changeStackContext(!0),t.updateSelfStackContext(!0)):null===e.position?(null==n||n.changeStackContext(!1),t.updateSelfStackContext(!1)):(null==n?void 0:n.exitChildrenStackContext)&&null===e.zIndex&&t.updateSelfStackContext(!0)}(h,e,p)}for(var y=0,m=l;y<m.length;y++){var g=m[y];"style"!==g&&"attributes"!==g&&-1===g.indexOf("__bind__")&&(null===(a=e.updateProperty)||void 0===a||a.call(e,g,t[g]))}}},{key:"addAfterCreateAction",value:function(e){this.afterCreateAction.push(e)}},{key:"viewInit",value:(r=l(d().mark(function e(t,n,r){var i,o,a,s,u,l,c,h,f,p,v,y,m;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t.dom){e.next=1;break}throw Error("component init process failed ,component's dom must be exit after component create ".concat(null!==(i=t.tagName)&&void 0!==i?i:""));case 1:if(t.dom.id=String(t.id),this.updateViewProps(t,n),(y=this.findViewById(t.pId))&&y.dom){e.next=2;break}return Sr("component init process failed ,component's parent not exist or dom not exist, pid: ".concat(t.pId)),e.abrupt("return");case 2:return m=r,!y.insertChild&&void 0!==(null===(a=null===(o=y.dom)||void 0===o?void 0:o.childNodes)||void 0===a?void 0:a.length)&&r>(null===(u=null===(s=y.dom)||void 0===s?void 0:s.childNodes)||void 0===u?void 0:u.length)&&(m=null!==(h=null===(c=null===(l=y.dom)||void 0===l?void 0:l.childNodes)||void 0===c?void 0:c.length)&&void 0!==h?h:r),e.next=3,null===(f=t.beforeMount)||void 0===f?void 0:f.call(t,y,m);case 3:return e.next=4,null===(p=y.beforeChildMount)||void 0===p?void 0:p.call(y,t,m);case 4:y.insertChild?(y.insertChild(t,r),this.viewDictionary[t.id]=t):this.appendChild(y,t,m),null===(v=t.mounted)||void 0===v||v.call(t);case 5:case"end":return e.stop()}},e,this)})),function(e,t,n){return r.apply(this,arguments)})},{key:"viewDelete",value:(n=l(d().mark(function e(t){var n,r,i,o,a,s;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(s=t?this.findViewById(t.pId):null){e.next=1;break}return e.abrupt("return");case 1:return e.next=2,null===(r=(n=t).beforeRemove)||void 0===r?void 0:r.call(n);case 2:return e.next=3,null===(i=s.beforeChildRemove)||void 0===i?void 0:i.call(s,t);case 3:if(!s.removeChild){e.next=5;break}return e.next=4,s.removeChild(t);case 4:e.next=6;break;case 5:return e.next=6,this.removeChild(s,t.id);case 6:null===(a=(o=t).destroy)||void 0===a||a.call(o),delete this.viewDictionary[t.id];case 7:case"end":return e.stop()}},e,this)})),function(e){return n.apply(this,arguments)})},{key:"viewUpdate",value:function(e,t){e&&this.updateViewProps(e,t)}},{key:"updateViewProps",value:function(e,t){e.updateProps?e.updateProps(t,this.defaultUpdateViewProps.bind(this)):this.defaultUpdateViewProps(e,t)}},{key:"createNodePreCheck",value:function(e){var t,n,r=this;if(!this.rootDom){var i=s(document.getElementsByTagName("body"),1);this.rootDom=i[0]}if(!this.contentDom){var o=0;window.document.getElementById(null!=e?e:"")?this.contentDom=window.document.getElementById(e):(this.contentDom=(t=e,(n=window.document.createElement("div")).setAttribute("id",t),n.id=t,n),this.rootDom.appendChild(this.contentDom),o=this.rootDom.childNodes.length-1),this.contentDom.parentNode.childNodes.forEach(function(e,t){e===r.contentDom&&(o=t)}),fr(this.contentDom,{height:"".concat(window.innerHeight,"px"),overflow:"hidden",display:"flex",width:"100vw",flexDirection:"column",position:"relative"}),this.viewDictionary[e]={id:e,pId:-1,index:o,props:{},dom:this.contentDom,tagName:"View"}}}},{key:"animationProcess",value:function(e,t,n){var r=this.context.getModuleByName("AnimationModule");if(r)if(t.animationId)r.linkInitAnimation2Element(t.animationId,n,e);else if("transform"===e){var i,o={},a="",s=bn(t);try{for(s.s();!(i=s.n()).done;)for(var u=i.value,l=0,c=Object.keys(u);l<c.length;l++){var d=c[l];u[d].animationId?r.linkInitAnimation2Element(u[d].animationId,n,d):a+="".concat(d,"(").concat(u[d]).concat(isNaN(u[d])||d.startsWith("scale")?"":"px",") ")}}catch(e){s.e(e)}finally{s.f()}a&&(o.transform=a,fr(n.dom,o))}}}]);var n,r,i,o,a,u}(Ir);function To(e,t,n,r){if(e.engine.components[t])return new e.engine.components[t](e,n,r)}var Lo=function(e){function t(){var e;return x(this,t),(e=Sn(this,t,arguments)).name="websocket",e.webSocketConnections={},e.connections=0,e}return gn(t,e),L(t,[{key:"connect",value:function(e,t){var n,r={code:-1,reason:""};if(!e)return r.reason="invalid connect param",void t.resolve(r);if(!e.url)return r.reason="no valid url for websocket",void t.resolve(r);var i=[];(null===(n=e.headers)||void 0===n?void 0:n["Sec-WebSocket-Protocol"])&&(i=null==e?void 0:e.headers["Sec-WebSocket-Protocol"].split(",")),this.connections+=1;var o=this.connections;this.webSocketConnections[o]=new Oo(o,e.url,i),this.webSocketConnections[o].connect(this.dispatchEvent.bind(this)),t.resolve({code:0,id:o})}},{key:"send",value:function(e){if(e&&e.id){var t=this.webSocketConnections[e.id];t&&(t.disconnected||e.data&&"string"==typeof e.data&&this.webSocketConnections[e.id].send(e.data))}}},{key:"close",value:function(e){e&&e.id&&this.webSocketConnections[e.id]&&!this.webSocketConnections[e.id].disconnected&&this.webSocketConnections[e.id].close(e.code,e.reason)}},{key:"dispatchEvent",value:function(e,t,n){this.context.sendEvent("hippyWebsocketEvents",En(En({},n),{},{id:e,type:t}))}},{key:"initialize",value:function(){}},{key:"destroy",value:function(){}}])}(Ir),Oo=function(){return L(function e(t,n,r){x(this,e),this.id=t,this.protocols=r,this.url=n,this.handleSocketOpen=this.handleSocketOpen.bind(this),this.handleSocketMessage=this.handleSocketMessage.bind(this),this.handleSocketClose=this.handleSocketClose.bind(this),this.handleSocketError=this.handleSocketError.bind(this)},[{key:"disconnected",get:function(){return 1!==this.state}},{key:"connect",value:function(e){var t;this.connection||(this.connection=new window.__WebSocket(this.url,null!==(t=this.protocols)&&void 0!==t?t:[])),this.dispatchEvent=e,this.state=0,this.connection.addEventListener("open",this.handleSocketOpen),this.connection.addEventListener("message",this.handleSocketMessage),this.connection.addEventListener("close",this.handleSocketClose),this.connection.addEventListener("error",this.handleSocketError)}},{key:"handleSocketOpen",value:function(){this.state=1,this.dispatchEvent(this.id,"onOpen")}},{key:"handleSocketClose",value:function(){this.state=3,this.dispatchEvent(this.id,"onClose")}},{key:"handleSocketMessage",value:function(e){this.dispatchEvent(this.id,"onMessage",{data:e})}},{key:"handleSocketError",value:function(e){this.dispatchEvent(this.id,"onError",{reason:e.toString()})}},{key:"send",value:function(e){var t;null===(t=this.connection)||void 0===t||t.send(e)}},{key:"close",value:function(e,t){var n;null===(n=this.connection)||void 0===n||n.close(e,t),this.state=2,this.destroy()}},{key:"destroy",value:function(){var e,t,n,r;null===(e=this.connection)||void 0===e||e.removeEventListener("open",this.handleSocketOpen),null===(t=this.connection)||void 0===t||t.removeEventListener("message",this.handleSocketMessage),null===(n=this.connection)||void 0===n||n.removeEventListener("close",this.handleSocketClose),null===(r=this.connection)||void 0===r||r.removeEventListener("error",this.handleSocketError)}}])}(),Po={AnimationModule:lo,ClipboardModule:_o,DeviceEventModule:bo,ImageLoadModule:ko,NetInfoModule:Eo,NetworkModule:So,StorageModule:Ao,UIManagerModule:Co,WebSocketModule:Lo};function Io(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function No(e,t,n){return t=vn(t),pn(e,Ro()?Reflect.construct(t,n||[],vn(e).constructor):t.apply(e,n))}function Ro(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Ro=function(){return!!e})()}function Do(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Mo(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Mo(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function Mo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Fo(e,t){var n,r=(null==e?void 0:e.events)||{},i=function(e){if(!e||"string"!=typeof e)return[];var t=new Set([e]),n=e.startsWith("on")?e.slice(2):e;if(!n)return Array.from(t);var r=n.charAt(0).toLowerCase()+n.slice(1),i=n.toLowerCase(),o="on".concat(n.charAt(0).toUpperCase()).concat(n.slice(1).toLowerCase());return t.add(r),t.add(i),t.add(o),t.add(o.toLowerCase()),t.add("on".concat(r)),t.add("on".concat(i)),Array.from(t)}(t),o=Do(i);try{for(o.s();!(n=o.n()).done;){var a=n.value;if(r[a])return{listener:r[a],matchedEventName:a}}}catch(e){o.e(e)}finally{o.f()}return{listener:null,matchedEventName:t}}Lr.coreModules=Po,Lr.coreComponents=so;var Bo=function(e){function t(e,n,r){var i;return x(this,t),(i=No(this,t,[e,n,r]))._originalDisplay=void 0,i}return gn(t,e),L(t,[{key:"dispatchEvent",value:function(e,t){var n=Fo(this,e),r=n.listener,i=n.matchedEventName;if(r){var o={id:this.id,currentId:this.id,type:i,params:t,eventPhase:2,stopPropagation:function(){}};if("function"==typeof r.resolve)r.resolve(o);else if("function"==typeof r){var a=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Io(Object(n),!0).forEach(function(t){(0,b.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Io(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},o);t&&"object"==typeof t&&Object.assign(a,t),r(a)}return!0}return fe(this.id,e,t||{})}},{key:"updateProperty",value:function(e,n){if("type"===e&&this.dom)if(null!=n&&""!==n){var r=String(n);this.dom.setAttribute("type",r),this.dom.setAttribute("data-template-type",r)}else this.dom.removeAttribute("type"),this.dom.removeAttribute("data-template-type");var i,o,a,s,u;this._handleCommonProperty(e,n)||(i=t,o="updateProperty",a=this,u=yn(vn(1&(s=3)?i.prototype:i),o,a),2&s&&"function"==typeof u?function(e){return u.apply(a,e)}:u)([e,n])}},{key:"_handleCommonProperty",value:function(e,t){switch(e){case"visible":return this._setVisible(t),!0;case"visibility":return this._setVisibility(t),!0;case"autofocus":return!0===t||"true"===t||1===t||"1"===t?this.dom.setAttribute("autofocus","true"):this.dom.removeAttribute("autofocus"),!0;case"name":return this.props=this.props||{},this.props.name=t,t?this.dom.setAttribute("name",String(t)):this.dom.removeAttribute("name"),!0;case"showOnState":return null!=t?Array.isArray(t)?this.dom.setAttribute("showOnState",JSON.stringify(t)):this.dom.setAttribute("showOnState",String(t)):(this.dom.removeAttribute("showOnState"),this.dom.removeAttribute("showonstate")),!0;default:return!1}}},{key:"_setVisible",value:function(e){if(!0===e)if(void 0!==this._originalDisplay)this.dom.style.display=this._originalDisplay;else{var t=this.dom.style;t.flexDirection||t.justifyContent||t.alignItems||t.flexWrap||t.flexGrow||t.flexShrink;t.display&&"none"!==t.display||(t.display="flex")}else{if(void 0===this._originalDisplay){var n=this.dom.style.display;n&&"none"!==n&&(this._originalDisplay=n)}this.dom.style.display="none"}}},{key:"_setVisibility",value:function(e){switch(e){case"visible":if(void 0!==this._originalDisplay)this.dom.style.display=this._originalDisplay;else{var t=this.dom.style;t.display&&"none"!==t.display||(t.display="flex")}this.dom.style.visibility="";break;case"invisible":this.dom.style.visibility="hidden";break;case"gone":if(void 0===this._originalDisplay){var n=this.dom.style.display;n&&"none"!==n&&(this._originalDisplay=n)}this.dom.style.display="none"}}},{key:"setVisible",value:function(e){this._setVisible(e)}},{key:"setVisibility",value:function(e){this._setVisibility(e)}}])}(ii);function jo(e,t,n){return t=vn(t),pn(e,Vo()?Reflect.construct(t,n||[],vn(e).constructor):t.apply(e,n))}function Vo(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Vo=function(){return!!e})()}function Wo(e,t,n,r){var i=yn(vn(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof i?function(e){return i.apply(n,e)}:i}var Ho=function(e){function t(e,n,r){var i;return x(this,t),(i=jo(this,t,[e,n,r])).tagName="div",i.dom=document.createElement("div"),i._currentSid=null,i._bindDOMEvents(),i}return gn(t,e),L(t,[{key:"onClick",get:function(){var e;return null===(e=this.props)||void 0===e?void 0:e.onClick},set:function(e){this.props=this.props||{},this.props.onClick=e}},{key:"_bindDOMEvents",value:function(){var e=this;this.dom.addEventListener("click",function(t){if(e.events&&e.events.onClick){if(e._clickHandled)return void(e._clickHandled=!1);e.dispatchEvent("onClick",{nativeEvent:t})}}),this.dom.addEventListener("focus",function(t){e.events&&e.events.onFocus&&e.dispatchEvent("onFocus",{isFocused:!0,nativeEvent:t})}),this.dom.addEventListener("blur",function(t){e.events&&e.events.onFocus&&e.dispatchEvent("onFocus",{isFocused:!1,nativeEvent:t})})}},{key:"markClickHandled",value:function(){this._clickHandled=!0}},{key:"updateProperty",value:function(e,n){if("sid"===e)return this._currentSid&&g(this._currentSid),this._currentSid=n,void(n?(m(n,this),this.dom.setAttribute("sid",String(n))):this.dom.removeAttribute("sid"));if("autoWidth"!==e&&"auto_width"!==e)if("flexStyle"!==e&&"flexstyle"!==e)if("layout"!==e)if("size"!==e)if("decoration"!==e)if("showIf"!==e&&"showif"!==e){if(["clipChildren","clipPadding"].includes(e))"clipChildren"===e&&(this.dom.style.overflow=!1===n?"visible":"hidden");else{var r=function(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()};if(["focusable","enableFocusBorder","canFocus","requestFocus","duplicateParentState","blockFocusDirections","blockfocusdirections","selected","nextFocusName","nextfocusname"].includes(e))null!=n?"showOnState"===e&&Array.isArray(n)?this.dom.setAttribute(e,JSON.stringify(n)):"nextFocusName"===e||"nextfocusname"===e?"object"==typeof n?this.dom.setAttribute("nextFocusName",JSON.stringify(n)):this.dom.setAttribute("nextFocusName",String(n)):this.dom.setAttribute(e.toLowerCase(),String(n)):this.dom.removeAttribute(e.toLowerCase());else if(["focusScale","focusBorderWidth","focusBorderColor","focusBorderRadius","focusBackgroundColor","focusColor"].includes(e))if(null!=n){var i="data-"+r(e);this.dom.setAttribute(i,String(n))}else{var o="data-"+r(e);this.dom.removeAttribute(o)}else{["focus-scale","focus-border-color","focus-border-width","focus-border-radius","focus-background-color","focus-color"].includes(e)?null!=n?this.dom.setAttribute("data-"+e,String(n)):this.dom.removeAttribute("data-"+e):("string"==typeof n&&n.startsWith("${")&&this.dom.setAttribute(e,n),Wo(t,"updateProperty",this,3)([e,n]))}}}else null!=n?this.dom.setAttribute("showIf",String(n)):(this.dom.removeAttribute("showIf"),this.dom.removeAttribute("showif"));else"string"==typeof n&&n.startsWith("${")?this.dom.setAttribute(e,n):this._applyDecoration(n);else"string"==typeof n&&n.startsWith("${")?this.dom.setAttribute(e,n):this._applySize(n);else"string"==typeof n&&n.startsWith("${")?this.dom.setAttribute(e,n):this._applyLayout(n);else"object"==typeof n&&null!==n?this._applyFlexStyle(n):"string"==typeof n&&n.startsWith("${")&&this.dom.setAttribute(e,n);else""===n||!!n?this.dom.setAttribute("autowidth",""):this.dom.removeAttribute("autowidth")}},{key:"_applyFlexStyle",value:function(e){var t=this;if(e&&"object"==typeof e){var n=["gap","rowGap","columnGap"],r=["flexDirection","justifyContent","alignItems","alignContent","flexWrap","flexGrow","flexShrink","flexBasis","order","alignSelf"];Object.keys(e).some(function(e){return r.includes(e)})&&!Object.keys(e).includes("display")&&(this.dom.style.display="flex"),Object.keys(e).forEach(function(r){if(!n.includes(r)){var i=e[r];if("backgroundImage"===r||"background"===r){var o=(0,dt.yf)(r,i);o!==i&&(i=o)}if("number"==typeof i)["width","height","minWidth","minHeight","maxWidth","maxHeight","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","margin","marginTop","marginRight","marginBottom","marginLeft","top","left","right","bottom","borderRadius","borderWidth","fontSize","lineHeight","letterSpacing"].includes(r)&&(i+="px");try{"x"!==r&&"y"!==r&&(t.dom.style[r]=i)}catch(e){try{if("x"!==r&&"y"!==r){var a=r.replace(/([A-Z])/g,"-$1").toLowerCase();t.dom.style.setProperty(a,i)}}catch(e){}}}})}}},{key:"_applyLayout",value:function(e){if(e){if(Array.isArray(e)){var t=e[0],n=e[1],r=e[2],i=e[3];return null!=t&&(this.dom.style.left="number"==typeof t?"".concat(t,"px"):t),null!=n&&(this.dom.style.top="number"==typeof n?"".concat(n,"px"):n),null!=r&&(this.dom.style.width="number"==typeof r?"".concat(r,"px"):r),null!=i&&(this.dom.style.height="number"==typeof i?"".concat(i,"px"):i),void(void 0===t&&void 0===n||this.dom.style.position&&"relative"!==this.dom.style.position||(this.dom.style.position="absolute"))}if("object"==typeof e){var o=e.x,a=e.y,s=e.width,u=e.height;null!=o&&(this.dom.style.left="number"==typeof o?"".concat(o,"px"):o),null!=a&&(this.dom.style.top="number"==typeof a?"".concat(a,"px"):a),null!=s&&(this.dom.style.width="number"==typeof s?"".concat(s,"px"):s),null!=u&&(this.dom.style.height="number"==typeof u?"".concat(u,"px"):u),void 0===o&&void 0===a||this.dom.style.position&&"relative"!==this.dom.style.position||(this.dom.style.position="absolute")}}}},{key:"_applySize",value:function(e){if(e){if(Array.isArray(e)){var t=e[0],n=e[1];return null!=t&&(this.dom.style.width="number"==typeof t?"".concat(t,"px"):t),void(null!=n&&(this.dom.style.height="number"==typeof n?"".concat(n,"px"):n))}if("object"==typeof e){var r=e.width,i=e.height;null!=r&&(this.dom.style.width="number"==typeof r?"".concat(r,"px"):r),null!=i&&(this.dom.style.height="number"==typeof i?"".concat(i,"px"):i)}}}},{key:"_applyDecoration",value:function(e){if(e&&"object"==typeof e){var t=e.left,n=e.top,r=e.right,i=e.bottom;null!=t&&(this.dom.style.marginLeft="number"==typeof t?"".concat(t,"px"):t),null!=n&&(this.dom.style.marginTop="number"==typeof n?"".concat(n,"px"):n),null!=r&&(this.dom.style.marginRight="number"==typeof r?"".concat(r,"px"):r),null!=i&&(this.dom.style.marginBottom="number"==typeof i?"".concat(i,"px"):i)}}},{key:"requestFocus",value:function(e){var t=n.g.__TV_FOCUS_MANAGER__;t&&(null!=e?t.moveFocusFromElement(this.dom,e):t.focusElement(this.dom))}},{key:"requestFocusDirectly",value:function(e){var t=n.g.__TV_FOCUS_MANAGER__;t&&(null!=e?t.moveFocusFromElement(this.dom,e):t.focusElement(this.dom))}},{key:"requestChildFocus",value:function(e,t){var r=n.g.__TV_FOCUS_MANAGER__;if(r){var i=this.dom.children;if(e>=0&&e<i.length){var o=i[e];o&&(null!=t?r.moveFocusFromElement(o,t):r.focusElement(o))}}}},{key:"clearFocus",value:function(){var e=n.g.__TV_FOCUS_MANAGER__;e&&e.clearFocusFromElement(this.dom)}},{key:"setBlockFocusDirections",value:function(e){Array.isArray(e)&&this.dom.setAttribute("blockFocusDirections",JSON.stringify(e))}},{key:"setBlockFocusDirectionsOnFail",value:function(e){Array.isArray(e)&&this.dom.setAttribute("blockFocusDirectionsOnFail",JSON.stringify(e))}},{key:"changeAlpha",value:function(e){var t=Math.max(0,Math.min(1,Number(e)||1));this.dom.style.opacity=t}},{key:"setScale",value:function(e){var t=Number(e)||1;this.dom.style.transform=this.dom.style.transform?this.dom.style.transform.replace(/scale\([^)]*\)/,"scale(".concat(t,")")):"scale(".concat(t,")")}},{key:"setPosition",value:function(e,t){var n=Number(e)||0,r=Number(t)||0;this.dom.style.left="".concat(n,"px"),this.dom.style.top="".concat(r,"px")}},{key:"updateLayout",value:function(e){e&&"object"==typeof e&&(void 0!==e.width&&(this.dom.style.width="number"==typeof e.width?"".concat(e.width,"px"):e.width),void 0!==e.height&&(this.dom.style.height="number"==typeof e.height?"".concat(e.height,"px"):e.height),void 0!==e.x&&(this.dom.style.left="number"==typeof e.x?"".concat(e.x,"px"):e.x),void 0!==e.y&&(this.dom.style.top="number"==typeof e.y?"".concat(e.y,"px"):e.y))}},{key:"setBackGroundColor",value:function(e){var t=e;if("number"==typeof e){var n=(e>>24&255)/255,r=e>>8&255,i=255&e;t="rgba(".concat(e>>16&255,", ").concat(r,", ").concat(i,", ").concat(n,")")}this.dom.style.backgroundColor=t}},{key:"setBackgroundImage",value:function(e){if(e){var t=(0,dt.pb)(e);this.dom.style.backgroundImage="url(".concat(t,")")}else this.dom.style.backgroundImage=""}},{key:"setSize",value:function(e,t){void 0!==e&&(this.dom.style.width="number"==typeof e?"".concat(e,"px"):e),void 0!==t&&(this.dom.style.height="number"==typeof t?"".concat(t,"px"):t)}},{key:"setTranslation",value:function(e,t){var n=Number(e)||0,r=Number(t)||0;this.dom.style.transform=this.dom.style.transform?this.dom.style.transform.replace(/translate\([^)]*\)/,"translate(".concat(n,"px, ").concat(r,"px)")):"translate(".concat(n,"px, ").concat(r,"px)")}},{key:"setInitFocus",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=n.g.__TV_FOCUS_MANAGER__;if(i){var o=function(){i.updateFocusableElements(),i.focusElement(t.dom)};r>0?setTimeout(o,r):requestAnimationFrame(o)}}},{key:"setAutoFocus",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this.setInitFocus(e,t)}},{key:"mounted",value:function(){var e,r=this;null===(e=Wo(t,"mounted",this,3))||void 0===e||e([]);var i=this.dom.getAttribute("requestFocus");"true"!==i&&"1"!==i&&""!==i||requestAnimationFrame(function(){var e=n.g.__TV_FOCUS_MANAGER__;e&&(e.updateFocusableElements(),e.focusElement(r.dom))})}},{key:"beforeUnmount",value:function(){this._currentSid&&(g(this._currentSid),this._currentSid=null)}},{key:"destroy",value:function(){var e;null===(e=this.beforeUnmount)||void 0===e||e.call(this)}}])}(Bo);function Uo(e,t){var n;return n=function(e){function n(e,r,i){var o;return x(this,n),(o=jo(this,n,[e,r,i])).dom&&(o.dom.setAttribute("data-component-name",t),o._originalComponentName=t),o}return gn(n,e),L(n)}(e),(0,b.A)(n,"componentName",t),n}function Go(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function zo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Go(Object(n),!0).forEach(function(t){(0,b.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Go(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Yo(e,t,n){return t=vn(t),pn(e,qo()?Reflect.construct(t,n||[],vn(e).constructor):t.apply(e,n))}function qo(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(qo=function(){return!!e})()}function Xo(e,t,n,r){var i=yn(vn(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof i?function(e){return i.apply(n,e)}:i}var Ko=function(e){function t(e,n,r){var i;return x(this,t),(i=Yo(this,t,[e,n,r])).dom.setAttribute("data-component-name","ESPageRootView"),i._originalComponentName="ESPageRootView",i}return gn(t,e),L(t,[{key:"defaultStyle",value:function(){return zo(zo({},Xo(t,"defaultStyle",this,1)?Xo(t,"defaultStyle",this,3)([]):{}),{},{backgroundColor:"#000000"})}}])}(Ho);function $o(e,t,n){return t=vn(t),pn(e,Zo()?Reflect.construct(t,n||[],vn(e).constructor):t.apply(e,n))}function Zo(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Zo=function(){return!!e})()}(0,b.A)(Ko,"componentName","ESPageRootView"),window.__HIPPY_COMPONENT_REGISTRY__=window.__HIPPY_COMPONENT_REGISTRY__||new Map;var Jo=function(e){function t(e,n,r){var i;return x(this,t),(i=$o(this,t,[e,n,r])).tagName="Text",i.dom=document.createElement("span"),i._textValue="",i._gravity=null,i._innerSpan=document.createElement("span"),i._innerSpan.className="qt-text-inner",i._innerSpan.style.cssText="\n font-size: inherit;\n line-height: inherit;\n letter-spacing: inherit;\n color: inherit;\n ",i.dom.appendChild(i._innerSpan),window.__HIPPY_COMPONENT_REGISTRY__.set(i.dom,i),i.dom.style.color="black",i._autoWidthObserver=null,i._autoWidthSyncRaf=0,i._autoWidthRetryCount=0,i._textAlignObserver=new MutationObserver(function(e){i.dom&&e.forEach(function(e){"attributes"===e.type&&"style"===e.attributeName&&i.dom&&i.dom.style&&i.dom.style.textAlign&&(i.dom.style.textAlign="")})}),i._textAlignObserver.observe(i.dom,{attributes:!0,attributeFilter:["style"]}),i}return gn(t,e),L(t,[{key:"defaultStyle",value:function(){return{boxSizing:"border-box",zIndex:0,display:"inline-block",color:"black"}}},{key:"updateProperty",value:function(e,n){if("textAlign"!==e&&"text-align"!==e)if("autoWidth"!==e&&"auto_width"!==e)if("autoHeight"!==e&&"auto_height"!==e)if("fontSize"!==e)if("textSize"!==e&&"textsize"!==e)if("flexStyle"!==e&&"flexstyle"!==e)if("ellipsizeMode"!==e)if("lines"!==e)if("gravity"!==e)if("typeface"!==e)if("textAlignVertical"!==e&&"text-align-vertical"!==e){var r,i,o,a,s;if(["duplicateParentState","focusable","showOnState","select"].includes(e))null!=n?"showOnState"===e&&Array.isArray(n)?this.dom.setAttribute(e,JSON.stringify(n)):this.dom.setAttribute(e,String(n)):this.dom.removeAttribute(e);else if("textColor"!==e&&"text-color"!==e)if(["textColor","focusColor","selectColor"].includes(e))if(null!=n){var u="data-"+e.replace(/([A-Z])/g,"-$1").toLowerCase();this.dom.setAttribute(u,String(n))}else{var l="data-"+e.replace(/([A-Z])/g,"-$1").toLowerCase();this.dom.removeAttribute(l)}else if(["text-color","focus-color","select-color"].includes(e))null!=n?this.dom.setAttribute("data-"+e,String(n)):this.dom.removeAttribute("data-"+e);else"string"==typeof n&&n.startsWith("${")&&this.dom.setAttribute(e,n),(r=t,i="updateProperty",o=this,s=yn(vn(1&(a=3)?r.prototype:r),i,o),2&a&&"function"==typeof s?function(e){return s.apply(o,e)}:s)([e,n]);else this.setTextColor(n)}else this.setTextAlignVertical(n);else this.setTypeface(n);else this.setGravity(n);else this.setLines(n);else this.setEllipsizeMode(n);else"object"==typeof n&&null!==n?this._applyFlexStyle(n):"string"==typeof n&&n.startsWith("${")&&this.dom.setAttribute(e,n);else this.setTextSize(n);else this.setTextSize(n);else this.setAutoHeight(n);else this.setAutoWidth(n)}},{key:"text",get:function(){return this._textValue},set:function(e){this._textValue=e,this._updateTextNode(e)}},{key:"_updateTextNode",value:function(e){this._innerSpan&&(this._isSupportedRichText(e)?this._renderRichText(e):this._innerSpan.textContent=e||""),this._autoWidth&&this._scheduleAutoWidthSync(!0)}},{key:"_isSupportedRichText",value:function(e){return"string"==typeof e&&/<\/?(font|br)\b/i.test(e)}},{key:"_renderRichText",value:function(e){var t=this;if(this._innerSpan)try{var n=document.createElement("template");n.innerHTML=e||"";var r=document.createDocumentFragment();Array.from(n.content.childNodes).forEach(function(e){t._appendRichTextNode(e,r)}),this._innerSpan.replaceChildren(r)}catch(t){this._innerSpan.textContent=e||""}}},{key:"_appendRichTextNode",value:function(e,t){var n=this;if(e&&t)if(e.nodeType!==Node.TEXT_NODE){if(e.nodeType===Node.ELEMENT_NODE){var r=e.tagName.toLowerCase();if("br"!==r){var i=document.createElement("span");if("font"===r){var o=e.getAttribute("color");o&&(i.style.color=o)}Array.from(e.childNodes).forEach(function(e){n._appendRichTextNode(e,i)}),t.appendChild(i)}else t.appendChild(document.createElement("br"))}}else t.appendChild(document.createTextNode(e.textContent||""))}},{key:"setText",value:function(e){this.text=e}},{key:"setAutoWidth",value:function(e){this._autoWidth=""===e||!!e,this._autoWidth?(this._ensureAutoWidthObserver(),this.dom.setAttribute("autowidth",""),this.dom.style.width="auto",this.dom.style.minWidth="0",this.dom.style.display="inline-block",this._innerSpan&&(this._innerSpan.style.whiteSpace="nowrap"),this._scheduleAutoWidthSync(!0)):(this._teardownAutoWidthObserver(),this.dom.removeAttribute("autowidth"),this._autoWidthSyncRaf&&(cancelAnimationFrame(this._autoWidthSyncRaf),this._autoWidthSyncRaf=0),this.dom.style.width="",this.dom.style.display="")}},{key:"_ensureAutoWidthObserver",value:function(){var e=this;this._innerSpan&&(this._autoWidthObserver||(this._autoWidthObserver=new MutationObserver(function(){e._autoWidth&&e._scheduleAutoWidthSync(!0)}),this._autoWidthObserver.observe(this._innerSpan,{characterData:!0,childList:!0,subtree:!0})))}},{key:"_teardownAutoWidthObserver",value:function(){this._autoWidthObserver&&(this._autoWidthObserver.disconnect(),this._autoWidthObserver=null)}},{key:"_scheduleAutoWidthSync",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this._autoWidth&&(t&&(this._autoWidthRetryCount=0),this._autoWidthSyncRaf&&cancelAnimationFrame(this._autoWidthSyncRaf),this._autoWidthSyncRaf=requestAnimationFrame(function(){e._autoWidthSyncRaf=0,e._syncWidthToParent()}))}},{key:"_syncWidthToParent",value:function(){var e=this;if(this._autoWidth){var t=this._innerSpan;if(t){var n=t.scrollWidth||t.offsetWidth;if(n<=0)this.dom&&this.dom.isConnected&&this._autoWidthRetryCount<5&&(this._autoWidthRetryCount++,this._scheduleAutoWidthSync(!1));else{this._autoWidthRetryCount=0,this.dom.style.width=n+"px",this.dom.style.minWidth=n+"px";for(var r=this.dom.parentElement;r;){if(r.hasAttribute&&(r.hasAttribute("autoWidth")||r.hasAttribute("autowidth"))){var i=window.getComputedStyle(r),o=n+(parseInt(i.paddingLeft)||0)+(parseInt(i.paddingRight)||0);r.style.width=o+"px",r.style.minWidth=o+"px",r.querySelectorAll("[autoWidth], [autowidth]").forEach(function(t){t!==e.dom&&(t.tagName&&"qt-text"===t.tagName.toLowerCase()||"absolute"===window.getComputedStyle(t).position&&(t.style.left="0",t.style.right="0",t.style.width="auto"))});break}r=r.parentElement}}}}}},{key:"setAutoHeight",value:function(e){this._autoHeight=""===e||!!e,this._autoHeight?(this.dom.style.height="auto",this.dom.style.minHeight="0"):this.dom.style.height=""}},{key:"setTextSize",value:function(e){var t=this._innerSpan||this.dom;if(t&&e){if("string"==typeof e&&e.startsWith("${")&&e.endsWith("}"))return void this.dom.setAttribute("fontSize",e);t.style.fontSize="number"==typeof e?e+"px":e,this._autoWidth&&this._scheduleAutoWidthSync(!0)}}},{key:"setFontSize",value:function(e){var t=this._innerSpan||this.dom;if(t&&e){if("string"==typeof e&&e.startsWith("${")&&e.endsWith("}"))return void this.dom.setAttribute("fontSize",e);t.style.fontSize="number"==typeof e?e+"px":e,this._autoWidth&&this._scheduleAutoWidthSync(!0)}}},{key:"setTextColor",value:function(e){var t=this._innerSpan||this.dom;if(t&&e)if("number"==typeof e){var n=e>>24&255,r=e>>16&255,i=e>>8&255,o=255&e;t.style.color="rgba(".concat(r,", ").concat(i,", ").concat(o,", ").concat(n/255,")")}else t.style.color=e}},{key:"setTypeface",value:function(e){var t=this._innerSpan||this.dom;if(t)if("string"==typeof e&&e.startsWith("${")&&e.endsWith("}"))this.dom.setAttribute("typeface",e);else switch(e){case"bold":t.style.fontWeight="bold";break;case"italic":t.style.fontStyle="italic";break;case"normal":t.style.fontWeight="normal",t.style.fontStyle="normal"}}},{key:"setGravity",value:function(e){if(this.dom&&e){this._gravity=e;var t=String(e).split("|").map(function(e){return e.trim()});this.dom.style.display="flex",this.dom.style.alignItems="stretch",this.dom.style.justifyContent="flex-start",this._innerSpan&&(this._innerSpan.style.display="inline",this._innerSpan.style.whiteSpace=""),t.includes("centerVertical")||t.includes("center")?this.dom.style.alignItems="center":t.includes("top")?this.dom.style.alignItems="flex-start":t.includes("bottom")&&(this.dom.style.alignItems="flex-end"),t.includes("centerHorizontal")||t.includes("center")?this.dom.style.justifyContent="center":t.includes("left")?this.dom.style.justifyContent="flex-start":t.includes("right")&&(this.dom.style.justifyContent="flex-end")}}},{key:"setTextAlignVertical",value:function(e){if(this.dom&&e)switch(this.dom.style.display="flex",this._textAlignVertical=e,String(e).toLowerCase()){case"center":default:this.dom.style.alignItems="center";break;case"top":this.dom.style.alignItems="flex-start";break;case"bottom":this.dom.style.alignItems="flex-end"}}},{key:"setEllipsizeMode",value:function(e){if(this.dom&&(this._ellipsizeMode=e,!(this._lines&&this._lines>1))){var t=this._innerSpan||this.dom;switch(t.style.overflow="hidden",t.style.whiteSpace="nowrap",t.style.webkitLineClamp="",t.style.display="inline-block",t.style.maxWidth="100%",this._gravity||this._textAlignVertical?(this.dom.style.display="flex",this.dom.style.overflow="hidden",this._textAlignVertical&&this.setTextAlignVertical(this._textAlignVertical)):(this.dom.style.display="inline-block",this.dom.style.overflow="hidden"),e){case 0:t.style.textOverflow="ellipsis",t.style.direction="rtl",t.style.textAlign="left";break;case 1:case 2:default:t.style.textOverflow="ellipsis",t.style.direction="ltr";break;case 3:this._enableMarquee()}}}},{key:"_enableMarquee",value:function(){var e=this;if(this.dom){var t=this._innerSpan||this.dom;t.style.textOverflow="clip",t.style.whiteSpace="nowrap",t.style.direction="ltr",t.style.overflow="visible",this.dom.style.display="flex",this.dom.style.overflow="hidden",this.dom.style.justifyContent="flex-start",this._textAlignVertical&&this.setTextAlignVertical(this._textAlignVertical);if(!document.querySelector("#qttext-marquee-style")){var n=document.createElement("style");n.id="qttext-marquee-style",n.textContent="\n @keyframes qttext-marquee {\n 0% { transform: translateX(0); }\n 100% { transform: translateX(-100%); }\n }\n ",document.head.appendChild(n)}t.style.display="inline-block",t.style.whiteSpace="nowrap",t.style.width="max-content",requestAnimationFrame(function(){var n=t.scrollWidth-e.dom.offsetWidth;if(n>0){var r=Math.max(n/50,3);t.style.animation="qttext-marquee ".concat(r,"s linear infinite")}else t.style.animation=""})}}},{key:"_wrapTextForMarquee",value:function(){}},{key:"setLines",value:function(e){if(this.dom){this._lines=e;var t=this._innerSpan||this.dom;e&&e>1?(t.style.display="-webkit-box",t.style.webkitLineClamp=String(e),t.style.webkitBoxOrient="vertical",t.style.overflow="hidden",t.style.whiteSpace="normal",t.style.textOverflow="ellipsis",t.style.maxWidth="100%",(this._gravity||this._textAlignVertical)&&(this.dom.style.display="flex",this._textAlignVertical&&this.setTextAlignVertical(this._textAlignVertical))):1===e&&(t.style.display="inline-block",t.style.whiteSpace="nowrap",t.style.overflow="hidden",t.style.webkitLineClamp="",(this._gravity||this._textAlignVertical)&&(this.dom.style.display="flex",this.dom.style.overflow="hidden",this._textAlignVertical&&this.setTextAlignVertical(this._textAlignVertical)),void 0!==this._ellipsizeMode&&this.setEllipsizeMode(this._ellipsizeMode))}}},{key:"_applyFlexStyle",value:function(e){var t=this;if(e&&"object"==typeof e){var n=this._innerSpan||this.dom;Object.keys(e).forEach(function(r){var i=e[r];"number"==typeof i&&(["width","height","minWidth","minHeight","maxWidth","maxHeight","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","margin","marginTop","marginRight","marginBottom","marginLeft","top","left","right","bottom","borderRadius","borderWidth","fontSize","lineHeight","letterSpacing"].includes(r)&&(i+="px"));if("fontSize"!==r)if("textColor"!==r&&"color"!==r)try{t.dom.style[r]=i}catch(e){try{var o=r.replace(/([A-Z])/g,"-$1").toLowerCase();t.dom.style.setProperty(o,i)}catch(e){}}else t.setTextColor(i);else n.style.fontSize=i})}}},{key:"destroy",value:function(){this._textAlignObserver&&(this._textAlignObserver.disconnect(),this._textAlignObserver=null),this._teardownAutoWidthObserver(),this.dom=null}}])}(Bo);function Qo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ea(e,t,n){return t=vn(t),pn(e,ta()?Reflect.construct(t,n||[],vn(e).constructor):t.apply(e,n))}function ta(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(ta=function(){return!!e})()}function na(e,t,n,r){var i=yn(vn(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof i?function(e){return i.apply(n,e)}:i}var ra=function(e){function t(e,n,r){var i;return x(this,t),(i=ea(this,t,[e,n,r])).tagName="img",i.dom=document.createElement("img"),i._resizeMode="fill",i._currentSrc="",i.dom.style.objectFit="fill",i.dom.style.display="block",i.dom.style.pointerEvents="none",i._layoutObserver=null,i._boundLoadHandler=null,i._boundErrorHandler=null,i._bindImageEvents(),y(n,i),i}return gn(t,e),L(t,[{key:"_bindImageEvents",value:function(){var e=this;this._boundLoadHandler=function(t){e._emitLayout(),e._emitLoadEnd(!0,t)},this._boundErrorHandler=function(t){e._emitLoadEnd(!1,t)},this.dom.addEventListener("load",this._boundLoadHandler),this.dom.addEventListener("error",this._boundErrorHandler)}},{key:"src",get:function(){return this.dom.src},set:function(e){this._setSrc(e)}},{key:"source",set:function(e){this._setSrc(e)}},{key:"resizeMode",set:function(e){this._setResizeMode(e)}},{key:"updateProperty",value:function(e,n){switch(e){case"src":case"source":this._setSrc(n);break;case"resizeMode":this._setResizeMode(n);break;case"tintColor":this.dom.style.filter="drop-shadow(0 0 0 ".concat(n,")");break;case"style":if(n&&"object"==typeof n&&n.resizeMode){this._setResizeMode(n.resizeMode);var r=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qo(Object(n),!0).forEach(function(t){(0,b.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qo(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},n);delete r.resizeMode,Object.keys(r).length>0&&na(t,"updateProperty",this,3)([e,r])}else na(t,"updateProperty",this,3)([e,n]);break;default:"string"==typeof n&&n.startsWith("${")&&this.dom.setAttribute(e,n),na(t,"updateProperty",this,3)([e,n])}}},{key:"_setSrc",value:function(e){if(!e)return this.dom.src="",void(this.dom.style.backgroundImage="");var t="";if("string"==typeof e)if(e.startsWith("file://")){var n=e.slice(7);(n=n.replace(/^\/+/,"")).startsWith("./")&&(n=n.slice(2)),t="./"+n}else t=e.startsWith("assets/")?"./"+e:(e.startsWith("data:")||e.startsWith("http")||e.startsWith("/")||e.startsWith("."),e);else if("object"==typeof e&&e.uri)if((t=e.uri).startsWith("file://")){var r=t.slice(7);(r=r.replace(/^\/+/,"")).startsWith("./")&&(r=r.slice(2)),t="./"+r}else t.startsWith("assets/")&&(t="./"+t);t=(0,dt.pb)(t),this._currentSrc=t,"repeat"===this._resizeMode?(this.dom.style.backgroundImage="url(".concat(t,")"),this.dom.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"):(this.dom.src=t,this.dom.style.backgroundImage=""),this._scheduleLayoutEmit()}},{key:"_setResizeMode",value:function(e){switch(this._resizeMode=e,this.dom.style.objectFit="",this.dom.style.objectPosition="",this.dom.style.backgroundSize="",this.dom.style.backgroundPosition="",this.dom.style.backgroundRepeat="",e){case"contain":this.dom.style.objectFit="contain";break;case"cover":default:this.dom.style.objectFit="cover";break;case"center":this.dom.style.objectFit="contain",this.dom.style.objectPosition="center center";break;case"origin":this.dom.style.objectFit="none",this.dom.style.objectPosition="left top";break;case"fitxy":case"stretch":this.dom.style.objectFit="fill";break;case"repeat":this._currentSrc&&(this.dom.style.backgroundImage="url(".concat(this._currentSrc,")"),this.dom.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"),this.dom.style.objectFit="none",this.dom.style.backgroundSize="auto",this.dom.style.backgroundPosition="left top",this.dom.style.backgroundRepeat="repeat"}}},{key:"_scheduleLayoutEmit",value:function(){var e=this;requestAnimationFrame(function(){return e._emitLayout()})}},{key:"_emitLayout",value:function(){if(this.dom){var e=this.dom.getBoundingClientRect(),t=Math.round(e.width||this.dom.offsetWidth||0),n=Math.round(e.height||this.dom.offsetHeight||0);if(!(t<=0&&n<=0)){var r={x:Math.round(e.left||0),y:Math.round(e.top||0),width:t,height:n};fe(this.id,"onLayout",{layout:r})||this._dispatchCompatibleEvent(["layout","onLayout"],r)}}}},{key:"_emitLoadEnd",value:function(e,t){if(this.dom){var n={success:e,nativeEvent:t,width:this.dom.naturalWidth||this.dom.offsetWidth||0,height:this.dom.naturalHeight||this.dom.offsetHeight||0};fe(this.id,"onLoadEnd",n)||this._dispatchCompatibleEvent(["loadEnd","loadend","onLoadEnd"],n)}}},{key:"_dispatchCompatibleEvent",value:function(e,t){var n=this;this.events&&e.forEach(function(e){n.events[e]&&n.dispatchEvent(e,t)})}},{key:"mounted",value:function(){var e,n=this;null===(e=na(t,"mounted",this,3))||void 0===e||e([]),this._scheduleLayoutEmit(),"undefined"!=typeof ResizeObserver&&(this._layoutObserver=new ResizeObserver(function(){n._emitLayout()}),this._layoutObserver.observe(this.dom))}},{key:"destroy",value:function(){var e;this._layoutObserver&&(this._layoutObserver.disconnect(),this._layoutObserver=null),this.dom&&this._boundLoadHandler&&(this.dom.removeEventListener("load",this._boundLoadHandler),this._boundLoadHandler=null),this.dom&&this._boundErrorHandler&&(this.dom.removeEventListener("error",this._boundErrorHandler),this._boundErrorHandler=null),null===(e=na(t,"destroy",this,3))||void 0===e||e([])}}])}(Bo);function ia(e,t,n){return t=vn(t),pn(e,oa()?Reflect.construct(t,n||[],vn(e).constructor):t.apply(e,n))}function oa(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(oa=function(){return!!e})()}window.__HIPPY_COMPONENT_REGISTRY__=window.__HIPPY_COMPONENT_REGISTRY__||new Map;var aa=function(e){function t(e,n,r){var i;return x(this,t),(i=ia(this,t,[e,n,r])).tagName="FastFlexView",i.dom=document.createElement("div"),i.dom.setAttribute("data-component-name","QtFlexView"),i._listData=[],i._templateChildren=[],i._itemContainer=document.createElement("div"),i._itemContainer.className="flex-view-item-container",i._itemContainer.style.cssText="display: flex; flex-direction: row; flex-wrap: wrap; align-content: flex-start;",i.dom.style.cssText="\n display: flex;\n flex-direction: column;\n position: relative;\n box-sizing: border-box;\n ",y(n,i),window.__HIPPY_COMPONENT_REGISTRY__.set(i.dom,i),i._observer=new MutationObserver(function(e){e.forEach(function(e){"childList"===e.type&&e.addedNodes.forEach(function(e){e.nodeType===Node.ELEMENT_NODE&&i._processTemplateNode(e)})})}),i._observer.observe(i.dom,{childList:!0,subtree:!1}),i}return gn(t,e),L(t,[{key:"defaultStyle",value:function(){return{display:"flex",flexDirection:"column",position:"relative",boxSizing:"border-box"}}},{key:"updateProperty",value:function(e,n){var r,i,o,a,s,u=this;switch(e){case"list":if(this._pendingListValue=n,Array.isArray(n))this.dom.removeAttribute("list");else if("string"==typeof n){var l=e;this.dom.setAttribute(l,n)}Array.isArray(n)?this.setListData(n):requestAnimationFrame(function(){u.dom._qtListData&&Array.isArray(u.dom._qtListData)&&u.setListData(u.dom._qtListData)});break;case"flexStyle":"object"==typeof n&&null!==n?this._applyFlexStyle(n):"string"==typeof n&&n.startsWith("${")&&this.dom.setAttribute(e,n);break;case"layout":"string"==typeof n&&n.startsWith("${")?this.dom.setAttribute(e,n):this._updateLayout(n);break;case"clipChildren":!1===n&&(this.dom.style.overflow="visible");break;case"clipPadding":break;default:"string"==typeof n&&n.startsWith("${")&&this.dom.setAttribute(e,n),(r=t,i="updateProperty",o=this,s=yn(vn(1&(a=3)?r.prototype:r),i,o),2&a&&"function"==typeof s?function(e){return s.apply(o,e)}:s)([e,n])}}},{key:"_processTemplateNode",value:function(e){var t=this,n=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;if(!t._templateChildren.some(function(t){return t.dom===e})){var i=sa(e),o={dom:e,tagName:e.tagName,component:n,id:r,type:i};t._templateChildren.push(o),e.setAttribute("data-template","true"),null!==o.type&&e.setAttribute("data-template-type",String(o.type)),e.style.display="none"}};if(null===sa(e)&&e.querySelectorAll){var r=Array.from(e.querySelectorAll("[type], [data-template-type]"));if(r.length>0)return e.style.display="none",void r.forEach(function(e){return n(e)})}n(e)}},{key:"insertChild",value:function(e,t){var n=this;if(e&&e.dom){var r=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;if(!n._templateChildren.some(function(t){return t.dom===e})){var i=sa(e),o={dom:e,tagName:e.tagName,id:r,component:t,type:i};n._templateChildren.push(o),e.setAttribute("data-template","true"),null!=i&&e.setAttribute("data-template-type",String(i)),e.style.display="none"}};if(null===sa(e.dom)&&e.dom.querySelectorAll){var i=Array.from(e.dom.querySelectorAll("[type], [data-template-type]"));i.length>0?(e.dom.style.display="none",i.forEach(function(e){return r(e)})):r(e.dom,e,e.id)}else r(e.dom,e,e.id);this.dom.contains(e.dom)||(this._itemContainer&&this.dom.contains(this._itemContainer)?this.dom.insertBefore(e.dom,this._itemContainer):this.dom.appendChild(e.dom))}}},{key:"setListData",value:function(e){var t=this;if(Array.isArray(e)&&1===e.length&&Array.isArray(e[0])&&(e=e[0]),Array.isArray(e)){this._listData=e,this._renderTimeout&&clearTimeout(this._renderTimeout);var n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;t._templateChildren.length>0||e>=10?t._renderItems():t._renderTimeout=setTimeout(function(){return n(e+1)},50)};this._renderTimeout=setTimeout(function(){return n()},0)}}},{key:"_renderItems",value:function(){var e=this;this.dom.contains(this._itemContainer)||this.dom.appendChild(this._itemContainer),this._itemContainer.innerHTML="",0!==this._listData.length&&(this._templateChildren.forEach(function(e){e.dom&&(e.dom.style.display="none")}),0!==this._templateChildren.length?this._listData.forEach(function(t,n){var r=e._createItemFromData(t,n);r&&e._itemContainer.appendChild(r)}):this._listData.forEach(function(t,n){var r=document.createElement("div");r.setAttribute("data-index",n),r.style.cssText="width: 200px; height: 200px; margin: 10px; background: #444; display: flex; align-items: center; justify-content: center; border-radius: 8px;";var i=document.createElement("span");i.style.cssText="color: white; font-size: 14px;",i.textContent=t.text||t.title||t.name||"Item ".concat(n),r.appendChild(i),e._itemContainer.appendChild(r)}))}},{key:"_createItemFromData",value:function(e,t){var n=this,r=document.createElement("div");if(r.setAttribute("data-index",t),r.setAttribute("data-position",t),e&&e.decoration&&"object"==typeof e.decoration){var i=e.decoration;void 0!==i.top&&(r.style.marginTop=i.top+"px"),void 0!==i.left&&(r.style.marginLeft=i.left+"px"),void 0!==i.right&&(r.style.marginRight=i.right+"px"),void 0!==i.bottom&&(r.style.marginBottom=i.bottom+"px")}var o=void 0!==e.type?e.type:null,a=this._templateChildren.find(function(e){return e.type===o}),s=window.__QT_SHARED_TEMPLATES__,u=s&&null!=o?s.get(o):null;if(!a&&u&&u.dom&&(a=u),a||(a=this._templateChildren.find(function(e){return null===e.type})),!a&&s&&s.size>0){var l=s.values().next().value;l&&l.dom&&(a=l)}if(!a&&this._templateChildren.length>0&&(a=this._templateChildren[0]),a&&a.dom){var c=a.dom.cloneNode(!0);c.removeAttribute("data-template"),c.removeAttribute("id"),c.style.display="",c.style.position="relative",ua(c),a.component&&a.component.props&&this._bindComponentPropsToNode(c,a.component.props,e),this._bindDataToNode(c,e),la(c),"absolute"===c.style.position&&(c.style.width&&(r.style.width=c.style.width),c.style.height&&(r.style.height=c.style.height)),r.appendChild(c)}return r._itemData=e,r._itemPosition=t,r.addEventListener("click",function(){n._dispatchItemClick(t,e)}),r}},{key:"_bindComponentPropsToNode",value:function(e,t,n){var r=this;t&&n&&Object.keys(t).forEach(function(i){var o=t[i];if("string"==typeof o&&o.startsWith("${")&&o.endsWith("}")){var a=(0,jt.Hd)(o,n),s=i.toLowerCase();if("flexstyle"!==s&&"flexstyletemplate"!==s||!a||"object"!=typeof a||r._applyFlexStyleToElement(e,a),"textsize"===s&&void 0!==a){var u="number"==typeof a?a+"px":a;e.style.fontSize=u}"src"===s&&(a&&"object"==typeof a&&(void 0!==a.url?a=a.url:void 0!==a.uri?a=a.uri:void 0!==a.src&&(a=a.src)),"IMG"===e.tagName&&"string"==typeof a&&(e.src=a))}})}},{key:"_bindDataToNode",value:function(e,t){(0,jt.bindTemplateDataToNode)(e,t)}},{key:"_applyFlexStyleToElement",value:function(e,t){if(t&&"object"==typeof t){var n=["gap","rowGap","columnGap"];Object.keys(t).forEach(function(r){if(!n.includes(r)){var i=t[r];if("number"==typeof i)["width","height","minWidth","minHeight","maxWidth","maxHeight","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","margin","marginTop","marginRight","marginBottom","marginLeft","top","left","right","bottom","borderRadius","borderWidth","fontSize","lineHeight","letterSpacing"].includes(r)&&(i+="px");try{e.style[r]=i}catch(t){try{var o=r.replace(/([A-Z])/g,"-$1").toLowerCase();e.style.setProperty(o,i)}catch(e){}}}})}}},{key:"_dispatchItemClick",value:function(e,t){this.dispatchEvent("onItemClick",{position:e,index:e,item:t})}},{key:"_updateLayout",value:function(e){if(Array.isArray(e)){var t=e[0],n=e[1],r=e[2],i=e[3];null!=t&&(this.dom.style.left="number"==typeof t?"".concat(t,"px"):t),null!=n&&(this.dom.style.top="number"==typeof n?"".concat(n,"px"):n),null!=r&&r>0&&(this.dom.style.width="number"==typeof r?"".concat(r,"px"):r),null!=i&&i>0&&(this.dom.style.height="number"==typeof i?"".concat(i,"px"):i),void 0===t&&void 0===n||this.dom.style.position&&"relative"!==this.dom.style.position||(this.dom.style.position="absolute")}else if("object"==typeof e&&null!==e){var o=e.x,a=e.y,s=e.width,u=e.height;null!=o&&(this.dom.style.left="number"==typeof o?"".concat(o,"px"):o),null!=a&&(this.dom.style.top="number"==typeof a?"".concat(a,"px"):a),null!=s&&s>0&&(this.dom.style.width="number"==typeof s?"".concat(s,"px"):s),null!=u&&u>0&&(this.dom.style.height="number"==typeof u?"".concat(u,"px"):u),void 0===o&&void 0===a||this.dom.style.position&&"relative"!==this.dom.style.position||(this.dom.style.position="absolute")}"H"===e||"H"===(null==e?void 0:e.direction)?this._itemContainer.style.flexDirection="row":Array.isArray(e)?(this._itemContainer.style.flexDirection="column",this._itemContainer.style.flexWrap="wrap"):(this._itemContainer.style.flexDirection="column",this._itemContainer.style.flexWrap="nowrap")}},{key:"_applyFlexStyle",value:function(e){var t=this;if(e&&"object"==typeof e){var n=["gap","rowGap","columnGap"];Object.keys(e).forEach(function(r){if(!n.includes(r)){var i=e[r];if("number"==typeof i)["width","height","minWidth","minHeight","maxWidth","maxHeight","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","margin","marginTop","marginRight","marginBottom","marginLeft","top","left","right","bottom","borderRadius","borderWidth","fontSize","lineHeight","letterSpacing"].includes(r)&&(i+="px");try{"x"!==r&&"y"!==r&&(t.dom.style[r]=i)}catch(e){try{if("x"!==r&&"y"!==r){var o=r.replace(/([A-Z])/g,"-$1").toLowerCase();t.dom.style.setProperty(o,i)}}catch(e){}}}})}}},{key:"addListData",value:function(e){var t=this;if(Array.isArray(e)){var n=this._listData.length;this._listData=this._listData.concat(e),e.forEach(function(e,r){var i=n+r,o=t._createItemFromData(e,i);o&&t._itemContainer.appendChild(o)})}}},{key:"clearData",value:function(){this._listData=[],this._itemContainer.innerHTML=""}}])}(Bo);function sa(e){var t,n=null!==(t=e.getAttribute("data-template-type"))&&void 0!==t?t:e.getAttribute("type");return null==n?null:isNaN(Number(n))?n:Number(n)}function ua(e){e&&e.nodeType===Node.ELEMENT_NODE&&("DIV"!==e.tagName||e.style.display||(e.style.display="flex"),e.style.boxSizing||(e.style.boxSizing="border-box"))}function la(e){if(e&&e.nodeType===Node.ELEMENT_NODE&&!e.style.width&&!e.style.height){for(var t=0,n=0,r=0;r<e.children.length;r++){var i=e.children[r];if("absolute"===(i.style.position||(i.getAttribute("style")||"").includes("absolute")?"absolute":"")){var o=parseFloat(i.style.width)||0,a=parseFloat(i.style.height)||0;o>t&&(t=o),a>n&&(n=a)}}t>0&&(e.style.width=t+"px"),n>0&&(e.style.height=n+"px")}}function ca(e,t){if(e&&(Array.isArray(t)&&1===t.length&&Array.isArray(t[0])&&(t=t[0]),Array.isArray(t))){for(var n=null,r=0,i=Array.from(e.children||[]);r<i.length;r++){var o=i[r];if(o.classList&&o.classList.contains("flex-view-item-container")){n=o;break}}n||((n=document.createElement("div")).className="flex-view-item-container",n.style.cssText="display: flex; flex-direction: row; flex-wrap: wrap; align-content: flex-start;",e.appendChild(n));var a=Array.from(e.children||[]).filter(function(e){return e!==n}),s=[];if(a.forEach(function(e){var t=sa(e);if(null!==t)return e.setAttribute("data-template","true"),e.style.display="none",e.setAttribute("data-template-type",String(t)),void s.push({dom:e,type:t});var n=e.querySelectorAll?Array.from(e.querySelectorAll("[type], [data-template-type]")):[];if(n.length>0)return e.style.display="none",void n.forEach(function(e){var t=sa(e);e.setAttribute("data-template","true"),e.style.display="none",null!==t&&e.setAttribute("data-template-type",String(t)),s.push({dom:e,type:t})});e.setAttribute("data-template","true"),e.style.display="none",s.push({dom:e,type:null})}),n.innerHTML="",0!==t.length){if(0===s.length){var u=window.__QT_SHARED_TEMPLATES__;if(u&&u.size>0){var l=Array.from(u.values()).filter(function(e){return e&&e.dom});l.length>0&&l.forEach(function(e){e.dom.setAttribute("data-template","true"),e.dom.style.display="none";var t=sa(e.dom);null!==t&&e.dom.setAttribute("data-template-type",String(t)),s.push({dom:e.dom,type:t})})}}0!==s.length&&(t.forEach(function(e,t){var r=document.createElement("div");if(r.setAttribute("data-index",t),r.setAttribute("data-position",t),r._itemData=e,r._itemPosition=t,e&&e.decoration&&"object"==typeof e.decoration){var i=e.decoration;void 0!==i.top&&(r.style.marginTop=i.top+"px"),void 0!==i.left&&(r.style.marginLeft=i.left+"px"),void 0!==i.right&&(r.style.marginRight=i.right+"px"),void 0!==i.bottom&&(r.style.marginBottom=i.bottom+"px")}var o=e&&void 0!==e.type?e.type:null,a=s.find(function(e){return e.type===o});a||(a=s.find(function(e){return null===e.type})),a||(a=s[0]);var u,l,c=a.dom.cloneNode(!0);c.removeAttribute("data-template"),c.removeAttribute("id"),c.style.display="",c.style.position="relative",ua(c),u=c,l=e,(0,jt.bindTemplateDataToNode)(u,l),la(c),"absolute"===c.style.position&&(c.style.width&&(r.style.width=c.style.width),c.style.height&&(r.style.height=c.style.height)),r.appendChild(c),n.appendChild(r)}),requestAnimationFrame(function(){return(0,jt.u6)(n)}))}}}function da(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}var ha={enabled:!1,duration:300},fa=new Set;function pa(){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?da(Object(n),!0).forEach(function(t){(0,b.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):da(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},ha)}var va=function(){return L(function e(t){x(this,e),this.context=t,this.name="",this.mode="normal"},[{key:"setFadeEnabled",value:function(e){ha.enabled=!0===e,fa.forEach(function(e){e&&"function"==typeof e.updateFadeConfig&&e.updateFadeConfig(ha)});for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return O(n,null)}},{key:"setFadeDuration",value:function(e){ha.duration="number"==typeof e?e:300,fa.forEach(function(e){e&&"function"==typeof e.updateFadeConfig&&e.updateFadeConfig(ha)});for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return O(n,null)}},{key:"getFadeConfig",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return O(t,ha)}},{key:"init",value:(e=l(c.mark(function e(){var t,n,r,i,o=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=o.length,n=new Array(t),r=0;r<t;r++)n[r]=o[r];return(i=n&&n.length?n[n.length-1]:null)&&"function"==typeof i.resolve&&i.resolve(!0),e.abrupt("return",Promise.resolve(!0));case 1:case"end":return e.stop()}},e)})),function(){return e.apply(this,arguments)})},{key:"destroy",value:function(){}}]);var e}();new va;function ya(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return ma(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ma(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function ma(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ga(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function _a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ga(Object(n),!0).forEach(function(t){(0,b.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ga(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ba(e,t,n){return t=vn(t),pn(e,wa()?Reflect.construct(t,n||[],vn(e).constructor):t.apply(e,n))}function wa(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(wa=function(){return!!e})()}function ka(e,t,n,r){var i=yn(vn(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof i?function(e){return i.apply(n,e)}:i}var Ea=function(e){function t(e,n,r){var i,o;return x(this,t),(i=ba(this,t,[e,n,r])).tagName="FastListView",i.dom=document.createElement("div"),i.dom.setAttribute("data-component-name","FastListView"),i._listData=[],i._templateChildren=[],i._singletonTemplates=[],i._horizontal=!1,i._spanCount=0,i._fadeConfig=pa(),i._focusedIndex=-1,i._itemContainer=document.createElement("div"),i._itemContainer.className="fast-list-item-container",i._itemContainer.style.cssText="display: flex; flex-direction: column; align-content: flex-start;",i.dom.appendChild(i._itemContainer),i.dom.style.cssText="overflow: auto; display: block;",i.dom.__fastListViewInstance=i,i._itemContainer.__fastListViewInstance=i,i._templateCaptured=!1,y(n,i),o=i,fa.add(o),i._observer=new MutationObserver(function(e){e.forEach(function(e){"childList"===e.type&&e.addedNodes.forEach(function(e){e!==i._itemContainer&&e.nodeType===Node.ELEMENT_NODE&&i._processTemplateNode(e)})})}),i._observer.observe(i.dom,{childList:!0,subtree:!1}),i}return gn(t,e),L(t,[{key:"updateFadeConfig",value:function(e){this._fadeConfig=_a({},e)}},{key:"defaultStyle",value:function(){return{display:"block",overflow:"auto",boxSizing:"border-box"}}},{key:"_processTemplateNode",value:function(e){var t=this;if(e&&e!==this._itemContainer&&e.nodeType===Node.ELEMENT_NODE){var n=function(e){var t,n=null!==(t=e.getAttribute("data-template-type"))&&void 0!==t?t:e.getAttribute("type");return null==n||""===n?null:isNaN(Number(n))?n:Number(n)},r=function(e){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=n(e);if(r)return t._singletonTemplates.some(function(t){return t.dom===e})||(t._singletonTemplates.push({dom:e,tagName:e.tagName,component:null,type:i}),e.setAttribute("data-singleton","true")),void(e.style.display="none");t._templateChildren.some(function(t){return t.dom===e})||(t._templateChildren.push({dom:e,tagName:e.tagName,component:null,type:i}),e.setAttribute("data-template","true"),null!==i&&e.setAttribute("data-template-type",String(i))),e.style.display="none"},i=e.hasAttribute&&e.hasAttribute("singleton"),o=n(e);if(!i&&null===o&&e.querySelectorAll){var a=Array.from(e.querySelectorAll("[type], [data-template-type], [singleton]"));if(a.length>0)return e.style.display="none",void a.forEach(function(e){r(e,e.hasAttribute("singleton"))})}i?r(e,!0):r(e)}}},{key:"_shouldDebugTailTemplate",value:function(e){return 1004===e||1002===e}},{key:"_isTailTemplate",value:function(e){return 1004===e||1002===e}},{key:"updateProperty",value:function(e,n){switch(e){case"clipChildren":this._clipChildren=!0===n||"true"===n||""===n,this._clipChildren?this.dom.style.overflow="auto":this.dom.style.overflow="visible",this._updateLayoutDirection();break;case"horizontal":this._horizontal=!0===n||"true"===n||""===n,this._horizontal?this.dom.setAttribute("horizontal",""):this.dom.removeAttribute("horizontal"),this._updateLayoutDirection();break;case"spanCount":case"span-count":this._spanCount=n>0?n:0,this._spanCount>0?this.dom.setAttribute("span-count",String(this._spanCount)):this.dom.removeAttribute("span-count"),this._updateLayoutDirection();break;case"listData":case"list-data":this.setListData(n);break;case"list":Array.isArray(n)?this.setListData(n):"string"==typeof n&&n.startsWith("${")?(this.dom.setAttribute("list",n),this._pendingListValue=n):this.setListData(n);break;default:"string"==typeof n&&n.startsWith("${")&&this.dom.setAttribute(e,n),ka(t,"updateProperty",this,3)([e,n])}}},{key:"_updateLayoutDirection",value:function(){var e=!1===this._clipChildren?"visible":"auto",t=!1===this._clipChildren?"visible":"hidden";this._spanCount>0?(this._itemContainer.style.display="grid",this._itemContainer.style.gridTemplateColumns="repeat(".concat(this._spanCount,", 1fr)"),this._itemContainer.style.flexDirection="",this._itemContainer.style.flexWrap="",this._itemContainer.style.overflowX=t,this._itemContainer.style.overflowY=e):this._horizontal?(this._itemContainer.style.display="flex",this._itemContainer.style.flexDirection="row",this._itemContainer.style.flexWrap="nowrap",this._itemContainer.style.gridTemplateColumns="",this._itemContainer.style.overflowX=e,this._itemContainer.style.overflowY=t):(this._itemContainer.style.display="flex",this._itemContainer.style.flexDirection="column",this._itemContainer.style.flexWrap="nowrap",this._itemContainer.style.gridTemplateColumns="",this._itemContainer.style.overflowX=t,this._itemContainer.style.overflowY=e)}},{key:"_isSingleton",value:function(e){return!(!e.props||!e.props.singleton)||!!(e.dom&&e.dom.hasAttribute&&e.dom.hasAttribute("singleton"))}},{key:"insertChild",value:function(e,t){var n=this;if(e&&e.dom){if(e.pId&&e.pId!==this.id){var r=this._singletonTemplates.find(function(t){return t.component&&t.component.id===e.pId})||this._templateChildren.find(function(t){return t.component&&t.component.id===e.pId});if(r)return void(r.component&&r.component.insertChild&&r.component.insertChild(e,t))}if(this._isSingleton(e)){if(!this._singletonTemplates.some(function(t){return t.dom===e.dom})){var i=null;if(e.props&&void 0!==e.props.type)i=e.props.type;else if(e.dom.hasAttribute("type")){var o=e.dom.getAttribute("type");i=null!==o?isNaN(Number(o))?o:Number(o):null}this._singletonTemplates.push({dom:e.dom,tagName:e.tagName,id:e.id,component:e,type:i}),this._shouldDebugTailTemplate(i),e.dom.setAttribute("data-singleton","true")}e.dom.style.display="none"}else{if(!this._templateChildren.some(function(t){return t.dom===e.dom})){var a=null;if(e.props&&void 0!==e.props.type)a=e.props.type;else if(e.dom.hasAttribute("type")){var s=e.dom.getAttribute("type");a=null!==s?isNaN(Number(s))?s:Number(s):null}var u={dom:e.dom,tagName:e.tagName,id:e.id,component:e,type:a};this._templateChildren.push(u),this._shouldDebugTailTemplate(a),e.dom.setAttribute("data-template","true")}e.dom.style.display="none"}this.dom.contains(e.dom)||(this._itemContainer&&this.dom.contains(this._itemContainer)?this.dom.insertBefore(e.dom,this._itemContainer):this.dom.appendChild(e.dom)),this._listData.length>0&&!this._rerenderScheduled&&(this._rerenderScheduled=!0,requestAnimationFrame(function(){n._rerenderScheduled=!1,n._renderItems()}))}}},{key:"beforeChildMount",value:(r=l(c.mark(function e(n,r){var i,o,a,s,u,l;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!n||!n.dom){e.next=4;break}if(!n.pId||n.pId===this.id){e.next=3;break}if(!(i=this._singletonTemplates.find(function(e){return e.component&&e.component.id===n.pId})||this._templateChildren.find(function(e){return e.component&&e.component.id===n.pId}))){e.next=3;break}if(!i.component||!i.component.beforeChildMount){e.next=1;break}return e.next=1,i.component.beforeChildMount(n,r);case 1:return e.next=2,ka(t,"beforeChildMount",this,3)([n,r]);case 2:return e.abrupt("return");case 3:this._isSingleton(n)?(this._singletonTemplates.some(function(e){return e.dom===n.dom})||(o=null,n.props&&void 0!==n.props.type?o=n.props.type:n.dom.hasAttribute("type")&&(a=n.dom.getAttribute("type"),o=null!==a?isNaN(Number(a))?a:Number(a):null),this._singletonTemplates.push({dom:n.dom,tagName:n.tagName,id:n.id,component:n,type:o}),this._shouldDebugTailTemplate(o),n.dom.setAttribute("data-singleton","true")),n.dom.style.display="none"):(this._templateChildren.some(function(e){return e.dom===n.dom})||(s=null,n.props&&void 0!==n.props.type?s=n.props.type:n.dom.hasAttribute("type")&&(u=n.dom.getAttribute("type"),s=null!==u?isNaN(Number(u))?u:Number(u):null),l={dom:n.dom,tagName:n.tagName,id:n.id,component:n,type:s},this._templateChildren.push(l),this._shouldDebugTailTemplate(s),n.dom.setAttribute("data-template","true")),n.dom.style.display="none"),this.dom.contains(n.dom)||(this._itemContainer&&this.dom.contains(this._itemContainer)?this.dom.insertBefore(n.dom,this._itemContainer):this.dom.appendChild(n.dom));case 4:return e.next=5,ka(t,"beforeChildMount",this,3)([n,r]);case 5:case"end":return e.stop()}},e,this)})),function(e,t){return r.apply(this,arguments)})},{key:"_captureTemplatesFromDOM",value:function(){this._templateCaptured=!0}},{key:"setListData",value:function(e){var t=this;if(Array.isArray(e)&&1===e.length&&Array.isArray(e[0])&&(e=e[0]),Array.isArray(e)){this._listData=e;var n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;t._templateChildren.length>0||t._singletonTemplates.length>0||e>=10?t._renderItems():setTimeout(function(){return n(e+1)},50)};setTimeout(function(){return n()},0)}}},{key:"setListDataWithParams",value:function(e,t,n){if(Array.isArray(e)&&1===arguments.length){var r=s(e,3);e=r[0],t=r[1],n=r[2]}this.setListData(e)}},{key:"addListDataWithParams",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(Array.isArray(e)&&1===arguments.length){var n=s(e,2);e=n[0],t=n[1]}if(t>0&&this._listData.length>0){var r=Math.max(this._listData.length-t,0);this.deleteItem(r,this._listData.length-r)}this.addListData(e)}},{key:"deleteItemRange",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;if(Array.isArray(e)&&1===arguments.length){var n=s(e,2);e=n[0],t=n[1]}this.deleteItem(Number(e)||0,Number(t)||0)}},{key:"updateItemRange",value:function(e,t,n){var r;if(Array.isArray(e)&&1===arguments.length){var i=s(e,3);e=i[0],t=i[1],n=i[2]}var o=Number(e)||0,a=Number(t)||0,u=Array.isArray(n)?n:[];(r=this._listData).splice.apply(r,[o,a].concat(k(u))),this._renderItems()}},{key:"insertItemRange",value:function(e,t){var n;if(Array.isArray(e)&&1===arguments.length){var r=s(e,2);e=r[0],t=r[1]}var i=Number(e)||0,o=Array.isArray(t)?t:[];(n=this._listData).splice.apply(n,[i,0].concat(k(o))),this._renderItems()}},{key:"_renderItems",value:function(){var e=this;this._itemContainer.innerHTML="",this._templateChildren.forEach(function(e){e.dom&&(e.dom.style.display="none")});var t=new Set,r=[],i=[];if(this._singletonTemplates.forEach(function(n){var o=e._createSingletonItem(n,t);o&&(o.isTailTemplate?i.push(o.element):r.push(o.element))}),r.forEach(function(t){e._itemContainer.appendChild(t)}),0!==this._listData.length){if(this._listData.forEach(function(n,r){if(!t.has(n.type)){var i=e._createItemFromData(n,r);i&&e._itemContainer.appendChild(i)}}),i.forEach(function(t){e._itemContainer.appendChild(t)}),void 0!==this._selectedPosition&&this._selectedPosition>=0){var o=this._itemContainer.children;if(this._selectedPosition<o.length){var a=o[this._selectedPosition];if(a&&!a.hasAttribute("selected")){a.setAttribute("selected","true");for(var s=a.children,u=0;u<s.length;u++)s[u].setAttribute("selected","true");a.querySelectorAll("[duplicateparentstate]").forEach(function(e){e.setAttribute("selected","true")})}}}requestAnimationFrame(function(){var t=n.g.__TV_FOCUS_MANAGER__;t&&t.initShowOnStateForElement&&t.initShowOnStateForElement(e._itemContainer)})}}},{key:"_createSingletonItem",value:function(e,t){var n=this;if(null==e||!e.dom)return null;var r=null,i=-1;if(null!==e.type&&void 0!==e.type&&(i=this._listData.findIndex(function(t){return(null==t?void 0:t.type)===e.type}),r=i>=0?this._listData[i]:null),!r)return e.dom.style.display="none",null;e.dom.style.display="",null!==r.type&&void 0!==r.type?t.add(r.type):null!==e.type&&void 0!==e.type&&t.add(e.type),r.style&&this._applyStyleToElement(e.dom,r.style);var o=document.createElement("div");o.setAttribute("data-index",i),o.setAttribute("data-position",i),o._itemData=r,o._itemPosition=i,this._applyDecorationToElement(o,r.decoration||null);var a=this._isTailTemplate(e.type);if(this._spanCount>0&&a&&(o.style.gridColumn="1 / -1"),a);return o.appendChild(e.dom),o.addEventListener("click",function(e){var t=n._findNestedItemMeta(null==e?void 0:e.target,o);t&&t.itemData!==r&&r&&"object"==typeof r&&Array.isArray(r.itemList)?n._dispatchItemClick(t.position,t.itemData,i):n._dispatchItemClick(i,r)}),e.component&&"function"==typeof e.component.dispatchEvent&&requestAnimationFrame(function(){var t,n,o;e.component.dispatchEvent("bindItem",{pageIndex:null!==(t=r.pageIndex)&&void 0!==t?t:0,position:null!==(n=r.position)&&void 0!==n?n:i,index:null!==(o=r.position)&&void 0!==o?o:i,item:r})}),{element:o,isTailTemplate:a}}},{key:"_applyStyleToElement",value:function(e,t){t&&"object"==typeof t&&Object.keys(t).forEach(function(n){var r=t[n];"number"==typeof r&&(["width","height","minWidth","minHeight","maxWidth","maxHeight","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","margin","marginTop","marginRight","marginBottom","marginLeft","top","left","right","bottom","borderRadius","borderWidth"].includes(n)&&(r+="px"));e.style[n]=r})}},{key:"_applyDecorationToElement",value:function(e,t){e&&e.style&&(e.style.marginTop="",e.style.marginLeft="",e.style.marginRight="",e.style.marginBottom="",t&&"object"==typeof t&&(void 0!==t.top&&(e.style.marginTop=t.top+"px"),void 0!==t.left&&(e.style.marginLeft=t.left+"px"),void 0!==t.right&&(e.style.marginRight=t.right+"px"),void 0!==t.bottom&&(e.style.marginBottom=t.bottom+"px")))}},{key:"_createItemFromData",value:function(e,t){var n,r,i=this,o=document.createElement("div");o.setAttribute("data-index",t),o.setAttribute("data-position",t),o.__fastListViewInstance=this;var a=void 0!==e.type?e.type:null,s=this._templateChildren.find(function(e){return e.type===a}),u=window.__QT_SHARED_TEMPLATES__,l=u&&null!=a?u.get(a):null;if(!s&&l&&l.dom&&(s=l),s||(s=this._templateChildren.find(function(e){return null===e.type})),!s&&u&&u.size>0){var c=u.values().next().value;c&&c.dom&&(s=c)}if(!s&&this._templateChildren.length>0&&(s=this._templateChildren[0]),s&&s.dom){var d=s.dom.cloneNode(!0);d.removeAttribute("data-template"),d.removeAttribute("id"),d.style.position="relative",d.style.left="auto",d.style.top="auto",d.style.display="",s.component&&s.component.props&&this._bindComponentPropsToNode(d,s.component.props,e,{itemList:this._listData}),this._bindDataToNode(d,e,{itemList:this._listData}),o.appendChild(d),requestAnimationFrame(function(){i._processChildListData(o),(0,jt.u6)(o)})}if(0===this._templateChildren.length){var h=e.text||e.title||e.name||"Item ".concat(t),f=document.createElement("span");f.textContent=h,f.style.cssText="color: white; font-size: 14px; padding: 5px; background: #333; margin: 5px; border-radius: 4px;",o.appendChild(f)}if(e.decoration){var p=e.decoration;void 0!==p.top&&(o.style.marginTop=p.top+"px"),void 0!==p.left&&(o.style.marginLeft=p.left+"px"),void 0!==p.right&&(o.style.marginRight=p.right+"px"),void 0!==p.bottom&&(o.style.marginBottom=p.bottom+"px")}var v=this._isTailTemplate(null!==(n=null===(r=s)||void 0===r?void 0:r.type)&&void 0!==n?n:a);return this._spanCount>0&&v&&(o.style.gridColumn="1 / -1"),o._itemData=e,o._itemPosition=t,o.addEventListener("click",function(n){var r=i._findNestedItemMeta(null==n?void 0:n.target,o);r&&r.itemData!==e&&e&&"object"==typeof e&&Array.isArray(e.itemList)?i._dispatchItemClick(r.position,r.itemData,t):i._dispatchItemClick(t,e)}),this._fadeConfig.enabled&&(o.style.opacity="0",o.style.transition="opacity ".concat(this._fadeConfig.duration,"ms ease-in-out"),requestAnimationFrame(function(){requestAnimationFrame(function(){o.style.opacity="1"})})),o}},{key:"_bindComponentPropsToNode",value:function(e,t,n){var r=this;if(t&&n){var i=_a(_a({},arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}),n);Object.keys(t).forEach(function(n){var o=t[n];if("string"==typeof o&&o.startsWith("${")&&o.endsWith("}")){var a=(0,jt.Hd)(o,i),s=n.toLowerCase();if("list"===s||"listdata"===s){if(void 0!==a&&Array.isArray(a)||(a=(0,jt.Hd)(o,i)),Array.isArray(a)){var u=window.__HIPPY_COMPONENT_REGISTRY__;if(u){var l=u.get(e);l&&"function"==typeof l.setListData?l.setListData(a):e._qtListData=a}else e._qtListData=a}return}if(("flexstyle"===s||"flexstyletemplate"===s)&&a&&"object"==typeof a){var c=window.__HIPPY_COMPONENT_REGISTRY__,d=c?c.get(e):null;d&&"function"==typeof d.updateProperty?d.updateProperty(n,a):r._applyFlexStyleToElement(e,a)}if(("textsize"===s||"fontsize"===s)&&void 0!==a){var h=window.__HIPPY_COMPONENT_REGISTRY__,f=h?h.get(e):null;if(f&&"function"==typeof f.updateProperty)f.updateProperty(n,a);else{var p="number"==typeof a?a+"px":a;e.style.fontSize=p}}if("src"===s){a&&"object"==typeof a&&(void 0!==a.url?a=a.url:void 0!==a.uri?a=a.uri:void 0!==a.src&&(a=a.src));var v=window.__HIPPY_COMPONENT_REGISTRY__,y=v?v.get(e):null;y&&"function"==typeof y.updateProperty?y.updateProperty(n,a):"IMG"===e.tagName&&"string"==typeof a&&(e.src=a)}}})}}},{key:"_bindDataToNode",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};(0,jt.bindTemplateDataToNode)(e,t,{scope:n,onListData:function(e,t){e._qtListData=t,e.setAttribute("data-has-list","true")}})}},{key:"_replacePlaceholders",value:function(e,t){return(0,jt.vy)(e,t)}},{key:"_processChildListData",value:function(e){var t=function(e){if(e._qtListData){var n=window.__HIPPY_COMPONENT_REGISTRY__;if(n){var r=n.get(e);if(r&&"function"==typeof r.setListData)r.setListData(e._qtListData);else{var i,o,a,s=null===(i=e.getAttribute)||void 0===i?void 0:i.call(e,"data-component-name"),u=!(null===(o=e.querySelector)||void 0===o||!o.call(e,"[type], [data-template-type], [data-template], [data-singleton]"));"QtFlexView"===s?ca(e,e._qtListData):("FastListView"===s||"ListView"===s||null!==(a=e.hasAttribute)&&void 0!==a&&a.call(e,"data-has-list")&&u)&&function(e,t){if(!e)return;Array.isArray(t)&&1===t.length&&Array.isArray(t[0])&&(t=t[0]);if(!Array.isArray(t))return;"none"===e.style.display&&(e.style.display="");var n=Array.from(e.children||[]).find(function(e){return e.classList&&e.classList.contains("fast-list-item-container")});n||((n=document.createElement("div")).className="fast-list-item-container",e.appendChild(n));!function(e,t){var n=e.hasAttribute("horizontal")||""===e.getAttribute("horizontal"),r=e.getAttribute("spanCount")||e.getAttribute("span-count")||"0",i=Number(r)||0;if(i>0)return t.style.display="grid",t.style.gridTemplateColumns="repeat(".concat(i,", 1fr)"),t.style.flexDirection="",t.style.flexWrap="",t.style.overflowX="hidden",void(t.style.overflowY="auto");if(t.style.display="flex",t.style.gridTemplateColumns="",n)return t.style.flexDirection="row",t.style.flexWrap="nowrap",t.style.overflowX="auto",void(t.style.overflowY="hidden");t.style.flexDirection="column",t.style.flexWrap="nowrap",t.style.overflowX="hidden",t.style.overflowY="auto"}(e,n);var r=function(e,t){if(e&&t&&t.decoration&&"object"==typeof t.decoration){var n=t.decoration;void 0!==n.top&&(e.style.marginTop=n.top+"px"),void 0!==n.left&&(e.style.marginLeft=n.left+"px"),void 0!==n.right&&(e.style.marginRight=n.right+"px"),void 0!==n.bottom&&(e.style.marginBottom=n.bottom+"px")}},i=function(e,t){var n=[],r=Array.from(e.children||[]).filter(function(e){return e!==t});return r.forEach(function(e){var t,r,i=Sa(e),o=(null===(t=e.hasAttribute)||void 0===t?void 0:t.call(e,"singleton"))||(null===(r=e.hasAttribute)||void 0===r?void 0:r.call(e,"data-singleton"));if(null!==i||o)return e.setAttribute(o?"data-singleton":"data-template","true"),null!==i&&e.setAttribute("data-template-type",String(i)),e.style.display="none",void n.push({dom:e,type:i,singleton:o});var a=e.querySelectorAll?Array.from(e.querySelectorAll("[type], [data-template-type], [singleton], [data-singleton]")):[];if(a.length>0)return e.style.display="none",void a.forEach(function(e){var t,r,i=Sa(e),o=(null===(t=e.hasAttribute)||void 0===t?void 0:t.call(e,"singleton"))||(null===(r=e.hasAttribute)||void 0===r?void 0:r.call(e,"data-singleton"));e.setAttribute(o?"data-singleton":"data-template","true"),null!==i&&e.setAttribute("data-template-type",String(i)),e.style.display="none",n.push({dom:e,type:i,singleton:o})});e.setAttribute("data-template","true"),e.style.display="none",n.push({dom:e,type:null,singleton:!1})}),n}(e,n),o=window.__QT_SHARED_TEMPLATES__;if(n.innerHTML="",0===t.length)return;var a=new Set,s=i.filter(function(e){return e.singleton}),u=i.filter(function(e){return!e.singleton}),l=[],c=[];s.forEach(function(e){var n=null,i=-1;if(null!==e.type&&void 0!==e.type?n=(i=t.findIndex(function(t){return(null==t?void 0:t.type)===e.type}))>=0?t[i]:null:(i=0,n=t[0]||null),n){var o=document.createElement("div");o.setAttribute("data-index",i),o.setAttribute("data-position",i),o._itemData=n,o._itemPosition=i,r(o,n);var s=1004===e.type||1002===e.type;spanCount>0&&s&&(o.style.gridColumn="1 / -1"),e.dom.style.display="",Aa(e.dom,n,t),ua(e.dom),o.appendChild(e.dom),null!==n.type&&void 0!==n.type&&a.add(n.type),s?c.push(o):l.push(o)}else e.dom.style.display="none"}),l.forEach(function(e){n.appendChild(e)});var d=u.length>0?u:i;t.forEach(function(e,i){var s;if(!a.has(null==e?void 0:e.type)){var u=d.find(function(t){return t.type===(null==e?void 0:e.type)});if(!u&&o&&null!==(null==e?void 0:e.type)&&void 0!==(null==e?void 0:e.type)){var l=o.get(e.type);null!=l&&l.dom&&(u=l)}if(u||(u=d.find(function(e){return null===e.type})),!u&&o&&o.size>0){var c=o.values().next().value;null!=c&&c.dom&&(u=c)}if(u||(u=d[0]),null!==(s=u)&&void 0!==s&&s.dom){var h=document.createElement("div");h.setAttribute("data-index",i),h.setAttribute("data-position",i),h._itemData=e,h._itemPosition=i,r(h,e);var f=u.dom.cloneNode(!0);f.removeAttribute("data-template"),f.removeAttribute("data-singleton"),f.removeAttribute("id"),f.style.display="",f.style.position="relative",Aa(f,e,t),ua(f),h.appendChild(f),n.appendChild(h)}}}),c.forEach(function(e){n.appendChild(e)}),requestAnimationFrame(function(){return(0,jt.u6)(n)})}(e,e._qtListData)}}delete e._qtListData}e.children&&Array.from(e.children).forEach(function(e){return t(e)})};t(e)}},{key:"_findNestedItemMeta",value:function(e,t){var n=e;for(n&&n.nodeType===Node.TEXT_NODE&&(n=n.parentElement);n&&n!==t;){if(void 0!==n._itemData&&void 0!==n._itemPosition)return{position:n._itemPosition,itemData:n._itemData};n=n.parentElement}return null}},{key:"_dispatchItemClick",value:function(e,t,n){var r={position:e,index:e,item:t};null!=n&&(r.parentPosition=n),this.dispatchEvent("onItemClick",r)}},{key:"_dispatchItemFocused",value:function(e,t,n){var r={position:e,index:e,item:t,hasFocus:!!n,isFocused:!!n};this.dispatchEvent("onItemFocused",r)}},{key:"notifyItemFocusChanged",value:function(e,t){if(e&&this._itemContainer){var n=this._itemContainer.children,r=n.length;if(0!==r){for(var i=-1,o=null,a=0;a<r;a++)if(n[a]===e||n[a].contains(e)){i=a,o=n[a];break}if(-1!==i){var s=this._listData[i];if(o&&s&&"object"==typeof s&&Array.isArray(s.itemList)){var u=this._findNestedItemMeta(e,o);if(u&&u.itemData){var l={position:u.position,index:u.position,item:u.itemData,hasFocus:!!t,isFocused:!!t,parentPosition:i};return void this.dispatchEvent("onItemfocused",l)}}if(t){if(this._focusedIndex===i)return;this._focusedIndex=i,this._selectedPosition!==i&&this.setSelectChildPosition(i,!1)}else{if(this._focusedIndex!==i)return;this._focusedIndex=-1}this._dispatchItemFocused(i,s,t)}}}}},{key:"addListData",value:function(e){var t=this;if(Array.isArray(e)){var n=this._listData.length;this._listData=this._listData.concat(e),e.forEach(function(e,r){var i=n+r,o=t._createItemFromData(e,i);o&&t._itemContainer.appendChild(o)})}}},{key:"updateItem",value:function(e,t){if(!(e<0||e>=this._listData.length)){this._listData[e]=_a(_a({},this._listData[e]),t);var n=this._itemContainer.children[e];if(n){var r=this._createItemFromData(this._listData[e],e);this._itemContainer.replaceChild(r,n)}}}},{key:"deleteItem",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this._listData.splice(e,t);for(var n=0;n<t;n++){var r=this._itemContainer.children[e];r&&this._itemContainer.removeChild(r)}Array.from(this._itemContainer.children).forEach(function(e,t){e.setAttribute("data-index",t),e.setAttribute("data-position",t),e._itemPosition=t})}},{key:"clearData",value:function(){this._listData=[],this._itemContainer.innerHTML=""}},{key:"scrollToPosition",value:function(e,t){var n=this._itemContainer.children[e];n&&n.scrollIntoView({behavior:"smooth",block:"start"})}},{key:"requestFocus",value:function(e){var t=this._itemContainer.children;if(!(e<0||e>=t.length)){var r=t[e];if(r){var i=r.querySelector('[focusable="true"], [focusable="1"], [focusable]')||r,o=n.g.__TV_FOCUS_MANAGER__;o?(o.updateFocusableElements(),o._doFocusElement(i)):i.focus()}}}},{key:"setItemFocused",value:function(e){Array.isArray(e)&&1===arguments.length&&(e=e[0]),e=Number(e),Number.isFinite(e)&&(this._focusedIndex=e,this.setSelectChildPosition(e,!1),this.requestChildFocus(e))}},{key:"clearFocus",value:function(){this._focusedIndex=-1}},{key:"scrollToFocused",value:function(e){Array.isArray(e)&&1===arguments.length&&(e=e[0]),this.scrollToPosition(e),this.setItemFocused(e)}},{key:"scrollToTop",value:function(){this.dom&&(this.dom.scrollTop=0,this._itemContainer&&(this._itemContainer.scrollTop=0))}},{key:"pausePostTask",value:function(){}},{key:"resumePostTask",value:function(){}},{key:"clearPostTask",value:function(){}},{key:"requestChildFocus",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;Array.isArray(e)&&(e=e[0]);var i=this._itemContainer.children;if(e<0||e>=i.length)return r<10&&0===i.length?void setTimeout(function(){return t.requestChildFocus(e,r+1)},100):void 0;var o=i[e];if(o){var a=o.querySelector('[focusable="true"], [focusable="1"], [focusable]')||o,s=n.g.__TV_FOCUS_MANAGER__;s?(s.updateFocusableElements(),s._doFocusElement(a)):a.focus()}}},{key:"setSelectChildPosition",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=n.g.__TV_FOCUS_MANAGER__,i=function(e,t,n){var r;return e.getAttribute(t)||e.getAttribute("data-"+t)||(null===(r=window.getComputedStyle(e).getPropertyValue(n))||void 0===r?void 0:r.trim())};void 0!==this._selectedPosition&&this._selectedPosition>=0&&this._itemContainer.querySelectorAll('[selected="true"], [selected=""]').forEach(function(e){if(e.removeAttribute("selected"),!(e.classList.contains("focused")||r&&r.focusedElement===e)&&r){var t,n=null===(t=r.focusedElementOriginalStyles)||void 0===t?void 0:t.get(e),o=i(e,"select-background-color","--select-background-color");if(n&&void 0!==n.backgroundColor){var a=n.backgroundColor,s=a===o||a===(null==o?void 0:o.replace(/\s/g,""))||a===(null==o?void 0:o.replace("rgba","rgb").replace(/,([^,]+)\)$/,"$1)"))?"":a;e.style.backgroundColor=s}else e.style.backgroundColor="";r._removeDuplicateParentStateStyles(e)}});if(this._selectedPosition=e,e>=0){var o=this._itemContainer.children;if(e<o.length){var a=o[e];if(a){a.setAttribute("selected","true");for(var s=a.children,u=0;u<s.length;u++){s[u].setAttribute("selected","true")}if(a.querySelectorAll("[duplicateparentstate]").forEach(function(e){e.setAttribute("selected","true")}),r){r.focusedElement&&(a.contains(r.focusedElement)||r.focusedElement);for(var l=0;l<s.length;l++){var c=s[l];if(!(c.classList.contains("focused")||r.focusedElement===c)){var d=i(c,"select-background-color","--select-background-color");if(d){if(r.focusedElementOriginalStyles||(r.focusedElementOriginalStyles=new Map),!r.focusedElementOriginalStyles.has(c)){var h=c.style.backgroundColor,f=h===d||h===d.replace(/\s/g,"")||h===d.replace("rgba","rgb").replace(/,([^,]+)\)$/,"$1)")?"":h;r.focusedElementOriginalStyles.set(c,{backgroundColor:f})}c.style.backgroundColor=d}r.styler._applyDuplicateParentStateStyles(c,!1)}}}}}}t&&this.requestChildFocus(e)}},{key:"setSpanCount",value:function(e){e>0&&this._itemContainer.style.setProperty("--span-count",e)}},{key:"destroy",value:function(){var e;e=this,fa.delete(e),ka(t,"destroy",this,1)&&ka(t,"destroy",this,3)([])}},{key:"handleFocusNavigation",value:function(e,t){var n=this._itemContainer.children,r=n.length;if(0===r)return null;for(var i=null,o=-1,a=0;a<r;a++)if(n[a]===e||n[a].contains(e)){i=n[a],o=a;break}if(-1===o)return null;if(!this._isAtItemBoundary(i,e,t)){var s=this._handleInternalNavigation(i,e,t);if(s){var u=s.getAttribute("focusable");if("true"===u||"1"===u||""===u)return s}}var l=null,c=this._handleSpatialNavigation(e,t,n,r);if(c.element)return l=c.element,c.index,l;if(0===o&&("up"===t||"left"===t))return this._scrollToBoundary(t,e),null;if(o===r-1&&("down"===t||"right"===t))return this._scrollToBoundary(t,e),null;if(this._spanCount>0){var d=this._handleGridNavigation(o,t,n,r);l=d.element,d.index}else{var h=this._handleListNavigation(o,t,n,r);l=h.element,h.index}return l}},{key:"_isAtItemBoundary",value:function(e,t,n){var r=e.getBoundingClientRect(),i=t.getBoundingClientRect(),o=i.top-r.top,a=r.bottom-i.bottom,s=i.left-r.left,u=r.right-i.right;switch(n){case"up":return o<=10;case"down":return a<=10;case"left":return s<=10;case"right":return u<=10;default:return!1}}},{key:"updateBlockFocusDirections",value:function(e){if(e&&this._itemContainer&&(!e.hasAttribute||!e.hasAttribute("blockFocusDirections")&&!e.hasAttribute("blockfocusdirections"))){var t=this._itemContainer.children,n=t.length;if(0!==n)for(var r=0;r<n;r++)if(t[r]===e||t[r].contains(e)){0;break}}}},{key:"_scrollToBoundary",value:function(e,t){if(this.dom){var n=this._itemContainer?Array.from(this._itemContainer.children):[];if(0!==n.length&&t){for(var r=null,i=-1,o=0;o<n.length;o++)if(n[o]===t||n[o].contains(t)){r=n[o],i=o;break}if(-1!==i){var a=n.map(function(e){return{el:e,rect:e.getBoundingClientRect()}}).filter(function(e){return e.rect.width>0&&e.rect.height>0});if(0!==a.length){var s=r.getBoundingClientRect();if(this._horizontal){if("left"===e){var u=Math.min.apply(Math,k(a.map(function(e){return e.rect.left})));s.left<=u+20&&(this.dom.scrollLeft=0)}else if("right"===e){var l=Math.max.apply(Math,k(a.map(function(e){return e.rect.right})));s.right>=l-20&&(this.dom.scrollLeft=this.dom.scrollWidth)}}else if("up"===e){var c=Math.min.apply(Math,k(a.map(function(e){return e.rect.top})));s.top<=c+20&&(this.dom.scrollTop=0,this.dom.parentElement&&this.dom.parentElement.scrollTop>0&&(this.dom.parentElement.scrollTop=0))}else if("down"===e){var d=Math.max.apply(Math,k(a.map(function(e){return e.rect.bottom})));s.bottom>=d-20&&(this.dom.scrollTop=this.dom.scrollHeight)}}}}}}},{key:"_handleInternalNavigation",value:function(e,t,n){var r=e.querySelectorAll('[focusable="true"], [focusable="1"], [focusable], [data-focusable="true"], [data-focusable], [canfocus="true"], [canFocus="true"], .focusable, [tabindex="0"], [tabindex]');if(r.length<=1)return null;var i=Array.from(r).filter(function(e){var t=e.getAttribute("focusable");if("false"===t||"0"===t)return!1;var n=e.getAttribute("duplicateParentState");return"true"!==n&&""!==n&&!e.hasAttribute("duplicateparentstate")});if(i.length<=1)return null;for(var o=-1,a=0;a<i.length;a++)if(i[a]===t||i[a].contains(t)){o=a;break}if(-1===o)return null;var s=i.map(function(e){return{el:e,rect:e.getBoundingClientRect()}}),u=s[o].rect,l=null,c=1/0;return s.forEach(function(e,t){if(t!==o){var r=e.rect,i=1/0,a=!1;switch(n){case"up":r.bottom<=u.top&&(i=Math.abs(r.left-u.left)+(u.top-r.bottom),a=!0);break;case"down":r.top>=u.bottom&&(i=Math.abs(r.left-u.left)+(r.top-u.bottom),a=!0);break;case"left":r.right<=u.left&&(i=Math.abs(r.top-u.top)+(u.left-r.right),a=!0);break;case"right":r.left>=u.right&&(i=Math.abs(r.top-u.top)+(r.left-u.right),a=!0)}a&&i<c&&(c=i,l=e.el)}}),l}},{key:"_getFocusableInItem",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("true"===e.getAttribute("focusable"))return e;var n=e.querySelectorAll('[focusable="true"]');if(0===n.length)return e;if(1===n.length||!t)return n[0];var r=Array.from(n).map(function(e){return{el:e,rect:e.getBoundingClientRect()}}),i=r[0].el,o=null;return r.forEach(function(e){var n,r=e.rect;switch(t){case"up":n=r.bottom,(null===o||n>o)&&(o=n,i=e.el);break;case"down":n=r.top,(null===o||n<o)&&(o=n,i=e.el);break;case"left":n=r.right,(null===o||n>o)&&(o=n,i=e.el);break;case"right":n=r.left,(null===o||n<o)&&(o=n,i=e.el)}}),i}},{key:"_handleSpatialNavigation",value:function(e,t,n,r){if(!e)return{element:null,index:-1};for(var i=e.getBoundingClientRect(),o=i.left+i.width/2,a=i.top+i.height/2,s=null,u=-1,l=1/0,c=void 0!==this._selectedPosition&&this._selectedPosition>=0,d=0;d<r;d++){var h=n[d];if("none"!==h.style.display)if(c){var f=this._getFocusableInItem(h,t);if(!f||f===e)continue;if(f===h&&"true"!==h.getAttribute("focusable"))continue;var p=f.getBoundingClientRect();if(0===p.width&&0===p.height)continue;var v={x:p.left+p.width/2,y:p.top+p.height/2},y=v.x-o,m=v.y-a,g=!1,_=0,b=0;switch(t){case"up":g=m<-5,_=Math.abs(m),b=Math.abs(y);break;case"down":g=m>5,_=Math.abs(m),b=Math.abs(y);break;case"left":g=y<-5,_=Math.abs(y),b=Math.abs(m);break;case"right":g=y>5,_=Math.abs(y),b=Math.abs(m)}if(g){var w=d===this._selectedPosition;("left"===t||"right"===t)&&Math.abs(m)>p.height/2&&(b*=5),("up"===t||"down"===t)&&Math.abs(y)>p.width/2&&(b*=5);var k=_+.5*b;w&&(k-=1e3),k<l&&(l=k,s=f,u=d)}}else{var E=h.querySelectorAll('[focusable="true"]');0===E.length&&"true"===h.getAttribute("focusable")&&h!==e&&E.push(h);var S,A=ya(E);try{for(A.s();!(S=A.n()).done;){var x=S.value;if(x!==e){var C=x.getBoundingClientRect();if(0!==C.width||0!==C.height){var T={x:C.left+C.width/2,y:C.top+C.height/2},L=T.x-o,O=T.y-a,P=!1;switch(t){case"up":P=O<-5;break;case"down":P=O>5;break;case"left":P=L<-5;break;case"right":P=L>5}if(P){var I=Math.sqrt(L*L+O*O);I<l&&(l=I,s=x,u=d)}}}}}catch(e){A.e(e)}finally{A.f()}}}return{element:s,index:u}}},{key:"_handleGridNavigation",value:function(e,t,n,r){for(var i=this._spanCount,o=Math.floor(e/i),a=e%i,s=e;;){switch(t){case"up":o>0?(s-=i,o--):s=-1;break;case"down":o++,(s+=i)>=r&&(s=-1);break;case"left":a>0?(s-=1,a--):s=-1;break;case"right":a<i-1&&s+1<r?(s+=1,a++):s=-1}if(!(s>=0&&s<r))break;var u=this._getFocusableInItem(n[s],t);if(u!==n[s]||"true"===n[s].getAttribute("focusable"))return{element:u,index:s}}return{element:null,index:-1}}},{key:"_handleListNavigation",value:function(e,t,n,r){for(var i=e;;){if(this._horizontal)switch(t){case"left":i>0?i-=1:i=-1;break;case"right":i<r-1?i+=1:i=-1;break;default:i=-1}else switch(t){case"up":i>0?i-=1:i=-1;break;case"down":i<r-1?i+=1:i=-1;break;default:i=-1}if(!(i>=0&&i<r))break;var o=this._getFocusableInItem(n[i],t);if(o!==n[i]||"true"===n[i].getAttribute("focusable"))return{element:o,index:i}}return{element:null,index:-1}}},{key:"_extractValue",value:function(e,t){return(0,jt.Hd)(e,t)}},{key:"_applyFlexStyleToElement",value:function(e,t){t&&"object"==typeof t&&Object.keys(t).forEach(function(n){var r=t[n];"number"==typeof r&&(["width","height","minWidth","minHeight","maxWidth","maxHeight","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","margin","marginTop","marginRight","marginBottom","marginLeft","top","left","right","bottom","borderRadius","borderWidth","fontSize","lineHeight","letterSpacing","gap","rowGap","columnGap"].includes(n)&&(r+="px"));try{e.style[n]=r}catch(t){try{var i=n.replace(/([A-Z])/g,"-$1").toLowerCase();e.style.setProperty(i,r)}catch(e){}}})}},{key:"updateChildzIndex",value:function(){var e=this;if(this.dom){var t=this.context.getModuleByName("UIManagerModule");this.dom.childNodes.forEach(function(n){var r,i=t.findViewById(n.id);i&&(e.exitChildrenStackContext&&void 0!==(null===(r=i.props)||void 0===r||null===(r=r.style)||void 0===r?void 0:r.zIndex)&&i.updateSelfStackContext(),!e.exitChildrenStackContext&&i.updatedZIndex&&i.updateSelfStackContext(!1))})}}}]);var r}(Bo);function Sa(e){var t;if(!e||e.nodeType!==Node.ELEMENT_NODE)return null;var n=null!==(t=e.getAttribute("data-template-type"))&&void 0!==t?t:e.getAttribute("type");return null==n||""===n?null:isNaN(Number(n))?n:Number(n)}function Aa(e,t,n){(0,jt.bindTemplateDataToNode)(e,t,{scope:{itemList:n},onListData:function(e,t){e._qtListData=t,e.setAttribute("data-has-list","true")}})}function xa(e,t,n){return t=vn(t),pn(e,Ca()?Reflect.construct(t,n||[],vn(e).constructor):t.apply(e,n))}function Ca(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Ca=function(){return!!e})()}var Ta=function(e){function t(e,n,r){var i;return x(this,t),(i=xa(this,t,[e,n,r])).tagName="div",i.dom=document.createElement("div"),i.spinner=document.createElement("div"),i.spinner.className="qt-loading-spinner",i.dom.appendChild(i.spinner),i._injectStyles(),i}return gn(t,e),L(t,[{key:"_injectStyles",value:function(){var e="qt-loading-view-styles";if(!document.getElementById(e)){var t=document.createElement("style");t.id=e,t.textContent="\n .qt-loading-spinner {\n width: 100%;\n height: 100%;\n border: 5px solid rgba(200, 200, 200, 0.3);\n border-top-color: #409eff;\n border-radius: 50%;\n animation: qt-loading-spin 0.8s linear infinite;\n box-sizing: border-box;\n }\n @keyframes qt-loading-spin {\n to {\n transform: rotate(360deg);\n }\n }\n ",document.head.appendChild(t)}}},{key:"updateProperty",value:function(e,n){var r,i,o,a,s;"color"===e?n&&(this.spinner.style.borderTopColor=n):(r=t,i="updateProperty",o=this,s=yn(vn(1&(a=3)?r.prototype:r),i,o),2&a&&"function"==typeof s?function(e){return s.apply(o,e)}:s)([e,n])}}])}(Bo);function La(e,t,n){return t=vn(t),pn(e,Oa()?Reflect.construct(t,n||[],vn(e).constructor):t.apply(e,n))}function Oa(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Oa=function(){return!!e})()}var Pa={alpha:"opacity",rotation:"rotate",rotationX:"rotateX",rotationY:"rotateY",rotationZ:"rotateZ",scaleX:"scaleX",scaleY:"scaleY",scaleZ:"scaleZ",translationX:"translateX",translationY:"translateY",translationZ:"translateZ"},Ia={1:"ease",2:"ease-in",3:"cubic-bezier(0.36, 0, 0.66, -0.56)",4:"cubic-bezier(0.68, -0.6, 0.32, 1.6)",5:"cubic-bezier(0.68, -0.55, 0.27, 1.55)",6:"ease-in-out",7:"ease-out",8:"linear",9:"cubic-bezier(0.34, 1.56, 0.64, 1)",10:"cubic-bezier(0.4, 0, 1, 1)",11:"cubic-bezier(0.4, 0, 0.2, 1)",12:"linear"},Na=function(e){function t(e,n,r){var i;return x(this,t),(i=La(this,t,[e,n,r])).tagName="AnimationViewComponent",i.dom=document.createElement("div"),i._animators=new Map,i._animatorSets=new Map,i._runningAnimations=new Map,i._pivotX=null,i._pivotY=null,i}return gn(t,e),L(t,[{key:"defaultStyle",value:function(){return{boxSizing:"border-box",zIndex:0,display:"block",position:"relative"}}},{key:"_getAnimationTarget",value:function(){return this.dom&&this.dom.children.length>0?this.dom.children[0]:this.dom}},{key:"setPivotX",value:function(e){var t=e[0];this._pivotX=t,this._updateTransformOrigin()}},{key:"setPivotY",value:function(e){var t=e[0];this._pivotY=t,this._updateTransformOrigin()}},{key:"resetPivot",value:function(e){this._pivotX=null,this._pivotY=null,this._updateTransformOrigin()}},{key:"_updateTransformOrigin",value:function(){var e=this._getAnimationTarget();null!==this._pivotX&&null!==this._pivotY?e.style.transformOrigin="".concat(this._pivotX,"px ").concat(this._pivotY,"px"):e.style.transformOrigin=""}},{key:"resetAnimators",value:function(e){this._animators.clear(),this._animatorSets.clear(),this.cancelAllAnimations()}},{key:"reset",value:function(e){this.resetAnimators(e)}},{key:"cancelAllAnimations",value:function(){this._runningAnimations.forEach(function(e){try{e.cancel()}catch(e){}}),this._runningAnimations.clear();var e=this._getAnimationTarget();e.style.transform="",e.style.opacity=""}},{key:"animator",value:function(e){var t,n=r(t=e)||w(t)||o(t)||a(),i=n[0],u=(n[1],n[2]),l=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}(n).slice(3),c=l.slice(0,-6),d=s(l.slice(-6),6),h=d[0],f=d[1],p=d[2],v=(d[3],d[4],{id:i,propertyName:u,values:c,duration:h,repeatMode:f,repeatCount:p,interpolator:d[5]});this._animators.set(i,v)}},{key:"animatorSet",value:function(e){var t=s(e,3),n=t[0],r=t[1],i=t[2];this._animatorSets.set(n,{id:n,duration:r,listenAnimator:i,animators:[],relationType:"together"})}},{key:"play",value:function(e){var t=s(e,2),n=t[0],r=t[1],i=this._animatorSets.get(n);i&&(i.animators=[{id:r,type:"play"}])}},{key:"playWith",value:function(e){var t=s(e,2),n=t[0],r=t[1],i=this._animatorSets.get(n);i&&i.animators.length>0&&i.animators.push({id:r,type:"with"})}},{key:"playBefore",value:function(e){var t=s(e,2),n=t[0],r=t[1],i=this._animatorSets.get(n);i&&i.animators.length>0&&i.animators.push({id:r,type:"before"})}},{key:"playAfter",value:function(e){var t=s(e,2),n=t[0],r=t[1],i=this._animatorSets.get(n);i&&i.animators.length>0&&i.animators.push({id:r,type:"after"})}},{key:"playSequentially",value:function(e){var t=e[0],n=e.slice(1),r=this._animatorSets.get(t);r&&(r.animators=n.map(function(e){return{id:e,type:"sequence"}}),r.relationType="sequence")}},{key:"playSequentially1",value:function(e){this.playSequentially([e[0],e[1]])}},{key:"playSequentially2",value:function(e){this.playSequentially([e[0],e[1],e[2]])}},{key:"playSequentially3",value:function(e){this.playSequentially([e[0],e[1],e[2],e[3]])}},{key:"playSequentially4",value:function(e){this.playSequentially([e[0],e[1],e[2],e[3],e[4]])}},{key:"playSequentially5",value:function(e){this.playSequentially([e[0],e[1],e[2],e[3],e[4],e[5]])}},{key:"playTogether",value:function(e){var t=e[0],n=e.slice(1),r=this._animatorSets.get(t);r&&(r.animators=n.map(function(e){return{id:e,type:"together"}}),r.relationType="together")}},{key:"playTogether1",value:function(e){this.playTogether([e[0],e[1]])}},{key:"playTogether2",value:function(e){this.playTogether([e[0],e[1],e[2]])}},{key:"playTogether3",value:function(e){this.playTogether([e[0],e[1],e[2],e[3]])}},{key:"playTogether4",value:function(e){this.playTogether([e[0],e[1],e[2],e[3],e[4]])}},{key:"playTogether5",value:function(e){this.playTogether([e[0],e[1],e[2],e[3],e[4],e[5]])}},{key:"start",value:function(e){var t=Array.isArray(e)?e[0]:e;this._startAnimation(t)}},{key:"startDelay",value:function(e){var t=this,n=e[0],r=e[1];setTimeout(function(){t._startAnimation(n)},r)}},{key:"pause",value:function(e){var t=e[0],n=this._runningAnimations.get(t);n&&n.pause()}},{key:"resume",value:function(e){var t=e[0],n=this._runningAnimations.get(t);n&&n.play()}},{key:"cancel",value:function(e){var t=e[0],n=this._runningAnimations.get(t);n&&(n.cancel(),this._runningAnimations.delete(t))}},{key:"reverse",value:function(e){var t=e[0],n=this._runningAnimations.get(t);n&&n.reverse()}},{key:"_startAnimation",value:function(e){var t=this._animatorSets.get(e);if(t)this._runAnimatorSet(t);else{var n=this._animators.get(e);n&&this._runAnimator(n)}}},{key:"_runAnimator",value:function(e){var t=this,n=this._getAnimationTarget(),r=e.propertyName,i=e.values,o=e.duration,a=e.repeatCount,s=e.interpolator,u=Ia[null==s?void 0:s.type]||"linear",l=-1===a?1/0:a||1,c=2===e.repeatMode?"alternate":"normal",d=this._buildKeyframes(r,i),h=n.animate(d,{duration:o,easing:u,iterations:l,direction:c,fill:"forwards"});this._runningAnimations.set(e.id,h),h.onfinish=function(){t._runningAnimations.delete(e.id)}}},{key:"_runAnimatorSet",value:function(e){var t=this,n=e.animators,r=e.relationType;"together"===r?n.forEach(function(e){var n=t._animators.get(e.id);n&&t._runAnimator(n)}):"sequence"===r&&this._runSequentially(n,0)}},{key:"_runSequentially",value:function(e,t){var n=this;if(!(t>=e.length)){var r=e[t],i=this._animators.get(r.id);if(i){var o=this._getAnimationTarget(),a=i.propertyName,s=i.values,u=i.duration,l=i.repeatCount,c=i.interpolator,d=Ia[null==c?void 0:c.type]||"linear",h=-1===l?1/0:l||1,f=2===i.repeatMode?"alternate":"normal",p=this._buildKeyframes(a,s),v=o.animate(p,{duration:u,easing:d,iterations:h,direction:f,fill:"forwards"});this._runningAnimations.set(i.id,v),v.onfinish=function(){n._runningAnimations.delete(i.id),n._runSequentially(e,t+1)}}else this._runSequentially(e,t+1)}}},{key:"_buildKeyframes",value:function(e,t){var n=Pa[e]||e;if(0===t.length)return[];return["rotate","rotateX","rotateY","rotateZ","scaleX","scaleY","translateX","translateY"].includes(n)?t.map(function(e,r){1===t.length||t.length;var i={};switch(n){case"rotate":i.transform="rotate(".concat(e,"deg)");break;case"rotateX":i.transform="rotateX(".concat(e,"deg)");break;case"rotateY":i.transform="rotateY(".concat(e,"deg)");break;case"rotateZ":i.transform="rotateZ(".concat(e,"deg)");break;case"scaleX":i.transform="scaleX(".concat(e,")");break;case"scaleY":i.transform="scaleY(".concat(e,")");break;case"translateX":i.transform="translateX(".concat(e,"px)");break;case"translateY":i.transform="translateY(".concat(e,"px)")}return i}):"opacity"===n?t.map(function(e){return{opacity:e}}):t.map(function(e){return{[n]:e}})}},{key:"startAnimator",value:function(e){var t=Array.isArray(e)?e[0]:e;this._startAnimation(t)}},{key:"startAnimatorDelay",value:function(e){var t=this,n=Array.isArray(e)?e[0]:e,r=Array.isArray(e)?e[1]:0;setTimeout(function(){t._startAnimation(n)},r)}},{key:"pauseAnimator",value:function(e){var t=Array.isArray(e)?e[0]:e,n=this._runningAnimations.get(t);n&&n.pause()}},{key:"resumeAnimator",value:function(e){var t=Array.isArray(e)?e[0]:e,n=this._runningAnimations.get(t);n&&n.play()}},{key:"cancelAnimator",value:function(e){var t=Array.isArray(e)?e[0]:e,n=this._runningAnimations.get(t);n&&(n.cancel(),this._runningAnimations.delete(t))}},{key:"reverseAnimator",value:function(e){var t=Array.isArray(e)?e[0]:e,n=this._runningAnimations.get(t);n&&n.reverse()}},{key:"objectAnimator1",value:function(e){var t=s(e,10),n=t[0],r=(t[1],t[2]),i=t[3],o=t[4],a=t[5],u=t[6],l=(t[7],t[8],{id:n,propertyName:r,values:[i],duration:o,repeatMode:a,repeatCount:u,interpolator:t[9]});this._animators.set(n,l)}},{key:"objectAnimator2",value:function(e){var t=s(e,11),n=t[0],r=(t[1],t[2]),i=t[3],o=t[4],a=t[5],u=t[6],l=t[7],c=(t[8],t[9],{id:n,propertyName:r,values:[i,o],duration:a,repeatMode:u,repeatCount:l,interpolator:t[10]});this._animators.set(n,c)}},{key:"objectAnimator3",value:function(e){var t=s(e,12),n=t[0],r=(t[1],t[2]),i=t[3],o=t[4],a=t[5],u=t[6],l=t[7],c=t[8],d=(t[9],t[10],{id:n,propertyName:r,values:[i,o,a],duration:u,repeatMode:l,repeatCount:c,interpolator:t[11]});this._animators.set(n,d)}},{key:"objectAnimator4",value:function(e){var t=s(e,13),n=t[0],r=(t[1],t[2]),i=t[3],o=t[4],a=t[5],u=t[6],l=t[7],c=t[8],d=t[9],h=(t[10],t[11],{id:n,propertyName:r,values:[i,o,a,u],duration:l,repeatMode:c,repeatCount:d,interpolator:t[12]});this._animators.set(n,h)}},{key:"objectAnimator5",value:function(e){var t=s(e,14),n=t[0],r=(t[1],t[2]),i=t[3],o=t[4],a=t[5],u=t[6],l=t[7],c=t[8],d=t[9],h=t[10],f=(t[11],t[12],{id:n,propertyName:r,values:[i,o,a,u,l],duration:c,repeatMode:d,repeatCount:h,interpolator:t[13]});this._animators.set(n,f)}}])}(Bo);function Ra(e,t,n){return t=vn(t),pn(e,Da()?Reflect.construct(t,n||[],vn(e).constructor):t.apply(e,n))}function Da(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Da=function(){return!!e})()}var Ma=function(e){function t(e,n,r){var i;return x(this,t),(i=Ra(this,t,[e,n,r])).tagName="ESWebViewComponent",i.dom=document.createElement("div"),i._iframe=null,i._url=null,i._userAgent=null,i.dom.style.position="relative",i.dom.style.overflow="hidden",i.dom.setAttribute("data-component-name","QtWebView"),i}return gn(t,e),L(t,[{key:"defaultStyle",value:function(){return{boxSizing:"border-box",zIndex:0,display:"block",position:"relative",overflow:"hidden"}}},{key:"_getOrCreateIframe",value:function(){var e=this;return this._iframe||(this._iframe=document.createElement("iframe"),this._iframe.style.width="100%",this._iframe.style.height="100%",this._iframe.style.border="none",this._iframe.style.position="absolute",this._iframe.style.top="0",this._iframe.style.left="0",this._iframe.allow="autoplay; fullscreen; clipboard-write",this._iframe.setAttribute("sandbox","allow-scripts allow-same-origin allow-forms allow-popups allow-popups-to-escape-sandbox"),this.dom.appendChild(this._iframe),this._iframe.addEventListener("error",function(t){e._handleLoadError()}),this._iframe.addEventListener("load",function(){e._detectBlockedContent()}),this._iframe.setAttribute("tabindex","-1"),this._iframe.addEventListener("focus",function(t){setTimeout(function(){e._iframe&&(e._iframe.blur(),document.body.focus())},0)})),this._iframe}},{key:"_detectBlockedContent",value:function(){var e=this;this._iframe&&setTimeout(function(){if(e._iframe)try{var t,n=e._iframe.contentDocument||e._iframe.contentWindow.document,r=(null==n||null===(t=n.body)||void 0===t?void 0:t.innerHTML)||"",i=r.includes("ERR_CONNECTION")||r.includes("ERR_NAME_NOT_RESOLVED")||r.includes("拒绝了我们的连接请求")||r.includes("无法访问此网站"),o=r.includes("X-Frame-Options")||r.includes("refused to connect")||r.includes("blocked by")||r.includes("拒绝连接"),a=!n||!n.body||""===r||"<br>"===r||r.length<50;i?e._handleLoadError("无法连接到服务器,请检查网络或地址是否正确"):o?e._handleLoadError("该网站设置了安全策略,禁止在页面内嵌入显示"):a&&e._handleLoadError("页面内容为空")}catch(e){}},500)}},{key:"_handleLoadError",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"该网站设置了安全策略,禁止在页面内嵌入显示";this.dom.innerHTML='\n <div style="display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; height: 100%; background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%); color: #fff; font-family: -apple-system, BlinkMacSystemFont, \'Segoe UI\', Roboto, sans-serif;">\n <div style="width: 120px; height: 120px; border-radius: 50%; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; margin-bottom: 30px;">\n <svg width="60" height="60" viewBox="0 0 24 24" fill="none" stroke="#ff6b6b" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">\n <circle cx="12" cy="12" r="10"></circle>\n <line x1="15" y1="9" x2="9" y2="15"></line>\n <line x1="9" y1="9" x2="15" y2="15"></line>\n </svg>\n </div>\n <div style="font-size: 28px; font-weight: 600; margin-bottom: 12px; color: #fff;">无法加载页面</div>\n <div style="font-size: 16px; color: #888; margin-bottom: 8px; text-align: center; max-width: 400px; line-height: 1.6;">\n '.concat(t,'\n </div>\n <div style="font-size: 14px; color: #666; margin-bottom: 30px; word-break: break-all; max-width: 500px; text-align: center;">\n ').concat(this._url||"",'\n </div>\n <div style="display: flex; gap: 16px;">\n <button id="webview-open-external" style="padding: 14px 28px; font-size: 16px; cursor: pointer; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; border: none; border-radius: 8px; transition: transform 0.2s, box-shadow 0.2s; box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);">\n 在新窗口打开\n </button>\n <button id="webview-go-back" style="padding: 14px 28px; font-size: 16px; cursor: pointer; background: rgba(255,255,255,0.1); color: #fff; border: 1px solid rgba(255,255,255,0.2); border-radius: 8px; transition: transform 0.2s, background 0.2s;">\n 返回上一页\n </button>\n </div>\n </div>\n ');var r=this.dom.querySelector("#webview-open-external");r&&this._url&&(r.addEventListener("mouseenter",function(){r.style.transform="translateY(-2px)",r.style.boxShadow="0 6px 20px rgba(102, 126, 234, 0.5)"}),r.addEventListener("mouseleave",function(){r.style.transform="translateY(0)",r.style.boxShadow="0 4px 15px rgba(102, 126, 234, 0.4)"}),r.addEventListener("click",function(){window.open(e._url,"_blank")}));var i=this.dom.querySelector("#webview-go-back");i&&(i.addEventListener("mouseenter",function(){i.style.background="rgba(255,255,255,0.15)"}),i.addEventListener("mouseleave",function(){i.style.background="rgba(255,255,255,0.1)"}),i.addEventListener("click",function(){var e=n.g.__ES_ROUTER__;e&&"function"==typeof e.back?e.back():window.history.back()}))}},{key:"updateProperty",value:function(e,n){var r,i,o,a,s;"url"!==e&&"source"!==e?"userAgent"!==e?(r=t,i="updateProperty",o=this,s=yn(vn(1&(a=3)?r.prototype:r),i,o),2&a&&"function"==typeof s?function(e){return s.apply(o,e)}:s)([e,n]):this.setUserAgent([n]):"string"==typeof n?this.loadUrl([n]):n&&n.uri&&this.loadUrl([n.uri])}},{key:"_checkUrlReachable",value:(r=l(c.mark(function e(t){return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise(function(e){try{new URL(t),e(!0)}catch(t){e(!1)}}));case 1:case"end":return e.stop()}},e)})),function(e){return r.apply(this,arguments)})},{key:"loadUrl",value:function(e){var t=Array.isArray(e)?e[0]:e;this._url=t,this._loadTimeout&&(clearTimeout(this._loadTimeout),this._loadTimeout=null),this.dom.innerHTML="";try{new URL(t)}catch(e){return void this._handleLoadError("URL 格式无效")}this._showLoading(),this._getOrCreateIframe().src=t}},{key:"_showLoading",value:function(){this.dom.innerHTML='\n <div style="display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; height: 100%; background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%); color: #fff; font-family: -apple-system, BlinkMacSystemFont, \'Segoe UI\', Roboto, sans-serif;">\n <div style="width: 60px; height: 60px; border: 4px solid rgba(255,255,255,0.1); border-top-color: #667eea; border-radius: 50%; animation: spin 1s linear infinite;"></div>\n <div style="margin-top: 20px; font-size: 16px; color: #888;">正在加载...</div>\n <style>\n @keyframes spin {\n to { transform: rotate(360deg); }\n }\n </style>\n </div>\n '}},{key:"reload",value:function(e){this._iframe&&(this._iframe.src=this._iframe.src)}},{key:"clearCache",value:function(e){}},{key:"getUrl",value:function(){var e;return Promise.resolve((null===(e=this._iframe)||void 0===e?void 0:e.src)||this._url)}},{key:"getOriginalUrl",value:function(){return Promise.resolve(this._url)}},{key:"setLayerType",value:function(e){}},{key:"setIgnoreCA",value:function(e){}},{key:"getBackForwardList",value:function(){return Promise.resolve([])}},{key:"getCurrentIndexWithBackForwardList",value:function(){return Promise.resolve(0)}},{key:"getScreenStatus",value:function(){return Promise.resolve(0)}},{key:"autoClickPosition",value:function(e){var t=s(Array.isArray(e)?e:[e,0],2);t[0],t[1]}},{key:"disableImageDisplay",value:function(){}},{key:"enableImageDisplay",value:function(){}},{key:"stopLoading",value:function(){if(this._iframe){var e=this._iframe.src;this._iframe.removeAttribute("src"),this._iframe.src=e}}},{key:"clearView",value:function(){this._iframe&&(this._iframe.src="about:blank")}},{key:"setListenEvents",value:function(e){}},{key:"setIgnoreAllKeyEvent",value:function(e){}},{key:"evaluateJavascript",value:function(e){var t=Array.isArray(e)?e[0]:e;if(this._iframe&&this._iframe.contentWindow)try{var n=this._iframe.contentWindow.eval(t);return Promise.resolve(n)}catch(e){return Promise.resolve(null)}return Promise.resolve(null)}},{key:"setSniffingEnabled",value:function(e){}},{key:"setSniffingRule",value:function(e){}},{key:"resetSniffingRule",value:function(){}},{key:"setInterceptEnabled",value:function(e){}},{key:"setInterceptRule",value:function(e){}},{key:"resetInterceptRule",value:function(){}},{key:"shouldOverrideUrlLoading",value:function(e){}},{key:"setUserAgent",value:function(e){var t=Array.isArray(e)?e[0]:e;this._userAgent=t}},{key:"canGoBack",value:function(){return Promise.resolve(!1)}},{key:"goBack",value:function(){if(this._iframe)try{this._iframe.contentWindow.history.back()}catch(e){}}},{key:"canGoForward",value:function(){return Promise.resolve(!1)}},{key:"goForward",value:function(){if(this._iframe)try{this._iframe.contentWindow.history.forward()}catch(e){}}},{key:"canGoBackOrForward",value:function(e){return Promise.resolve(!1)}},{key:"goBackOrForward",value:function(e){var t=Array.isArray(e)?e[0]:e;if(this._iframe)try{this._iframe.contentWindow.history.go(t)}catch(e){}}},{key:"onResume",value:function(){}},{key:"onPause",value:function(){}},{key:"pauseTimers",value:function(){}},{key:"resumeTimers",value:function(){}},{key:"destroy",value:function(){this._loadTimeout&&(clearTimeout(this._loadTimeout),this._loadTimeout=null),this._iframe&&(this._iframe.src="about:blank",this._iframe.remove(),this._iframe=null)}},{key:"setJavaScriptEnabled",value:function(e){}},{key:"setPluginState",value:function(e){}},{key:"setJavaScriptCanOpenWindowsAutomatically",value:function(e){}},{key:"setUseWideViewPort",value:function(e){}},{key:"setLoadWithOverviewMode",value:function(e){}},{key:"setSupportZoom",value:function(e){}},{key:"setBuiltInZoomControls",value:function(e){}},{key:"setDisplayZoomControls",value:function(e){}},{key:"setAllowFileAccess",value:function(e){}},{key:"setDomStorageEnabled",value:function(e){}},{key:"setDatabaseEnabled",value:function(e){}},{key:"setAppCacheEnabled",value:function(e){}},{key:"setAppCachePath",value:function(e){}},{key:"setMediaPlaybackRequiresUserGesture",value:function(e){}},{key:"initJavaScriptInterface",value:function(){}},{key:"removeJavaScriptInterface",value:function(){}},{key:"initWebViewFocus",value:function(e){}}]);var r}(Bo);function Fa(e,t,n){return t=vn(t),pn(e,Ba()?Reflect.construct(t,n||[],vn(e).constructor):t.apply(e,n))}function Ba(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Ba=function(){return!!e})()}function ja(e,t,n,r){var i=yn(vn(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof i?function(e){return i.apply(n,e)}:i}window.__HIPPY_COMPONENT_REGISTRY__=window.__HIPPY_COMPONENT_REGISTRY__||new Map;var Va=null,Wa=function(e){function t(e,n,r){var i;return x(this,t),(i=Fa(this,t,[e,n,r])).tagName="QrCodeComponent",i.dom=document.createElement("div"),i.dom.style.display="block",window.__HIPPY_COMPONENT_REGISTRY__.set(i.dom,i),i._content="",i}return gn(t,e),L(t,[{key:"_render",value:(r=l(c.mark(function e(){var t,r,i=this;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(this._content&&this.dom){e.next=1;break}return e.abrupt("return");case 1:if(Va){e.next=5;break}return e.prev=2,e.next=3,n.e(659).then(n.t.bind(n,659,19)).then(function(e){return e.default||e});case 3:Va=e.sent,e.next=5;break;case 4:return e.prev=4,e.catch(2),e.abrupt("return");case 5:t=this.dom.getBoundingClientRect(),r=Math.max(t.width||200,t.height||200),Va.toDataURL(this._content,{width:r,margin:2,color:{dark:"#000000",light:"#FFFFFF"}},function(e,t){if(!e){i.dom.innerHTML="";var n=document.createElement("img");n.src=t,n.style.width="100%",n.style.height="100%",n.style.display="block",i.dom.appendChild(n)}});case 6:case"end":return e.stop()}},e,this,[[2,4]])})),function(){return r.apply(this,arguments)})},{key:"updateProperty",value:function(e,n){"content"===e?(this._content=n||"",this._render()):ja(t,"updateProperty",this,3)([e,n])}},{key:"init",value:function(e){ja(t,"init",this,3)([e]),this._content=e.content||"",this._render()}}]);var r}(Bo);function Ha(e,t,n){return t=vn(t),pn(e,Ua()?Reflect.construct(t,n||[],vn(e).constructor):t.apply(e,n))}function Ua(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Ua=function(){return!!e})()}function Ga(e,t,n,r){var i=yn(vn(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof i?function(e){return i.apply(n,e)}:i}window.__HIPPY_COMPONENT_REGISTRY__=window.__HIPPY_COMPONENT_REGISTRY__||new Map;var za=function(e){function t(e,n,r){var i;return x(this,t),(i=Ha(this,t,[e,n,r])).tagName="TVProgressBarViewComponent",i.dom=document.createElement("div"),i.dom.style.display="block",i.dom.style.position="relative",i.dom.style.overflow="hidden",window.__HIPPY_COMPONENT_REGISTRY__.set(i.dom,i),i._maxProgress=100,i._progress=0,i._secondaryProgress=0,i._cornerRadius=0,i._backgroundColor="#CCCCCC",i._progressColor="#FF0000",i._bgEl=null,i._secondaryEl=null,i._progressEl=null,i._initDOM(),i}return gn(t,e),L(t,[{key:"_initDOM",value:function(){this._bgEl=document.createElement("div"),this._bgEl.style.position="absolute",this._bgEl.style.top="0",this._bgEl.style.left="0",this._bgEl.style.width="100%",this._bgEl.style.height="100%",this._bgEl.style.boxSizing="border-box",this.dom.appendChild(this._bgEl),this._secondaryEl=document.createElement("div"),this._secondaryEl.style.position="absolute",this._secondaryEl.style.top="0",this._secondaryEl.style.left="0",this._secondaryEl.style.height="100%",this._secondaryEl.style.boxSizing="border-box",this.dom.appendChild(this._secondaryEl),this._progressEl=document.createElement("div"),this._progressEl.style.position="absolute",this._progressEl.style.top="0",this._progressEl.style.left="0",this._progressEl.style.height="100%",this._progressEl.style.boxSizing="border-box",this.dom.appendChild(this._progressEl)}},{key:"_updateStyles",value:function(){var e=this._cornerRadius+"px";this._bgEl.style.backgroundColor=this._backgroundColor,this._bgEl.style.borderRadius=e;var t=this._secondaryProgress/this._maxProgress*100+"%";this._secondaryEl.style.width=t,this._secondaryEl.style.backgroundColor=this._parseColor(this._progressColor,.3),this._secondaryEl.style.borderRadius=e;var n=this._progress/this._maxProgress*100+"%";this._progressEl.style.width=n,this._applyProgressColor(),this._progressEl.style.borderRadius=e}},{key:"_parseColor",value:function(e,t){if("string"==typeof e){if(e.startsWith("#")){var n=e.slice(1),r=parseInt(n.substr(0,2),16),i=parseInt(n.substr(2,2),16),o=parseInt(n.substr(4,2),16);return"rgba(".concat(r,", ").concat(i,", ").concat(o,", ").concat(t,")")}return e}return e}},{key:"_applyProgressColor",value:function(){var e=this._progressColor;if(e&&"object"==typeof e&&e.startColor&&e.endColor){var t=e.type||0,n=(e.shape,e.startColor),r=e.endColor;this._progressEl.style.background=0===t?"linear-gradient(to right, ".concat(n,", ").concat(r,")"):"radial-gradient(circle, ".concat(n,", ").concat(r,")")}else if("string"==typeof e)this._progressEl.style.backgroundColor=e;else if("number"==typeof e){var i=(e>>24&255)/255,o=e>>16&255,a=e>>8&255,s=255&e;this._progressEl.style.backgroundColor="rgba(".concat(o,", ").concat(a,", ").concat(s,", ").concat(i,")")}}},{key:"updateProperty",value:function(e,n){switch(e){case"maxProgress":case"max-progress":this._maxProgress=n||100,this._updateStyles();break;case"progress":this._progress=n||0,this._updateStyles();break;case"secondaryProgress":case"secondary-progress":this._secondaryProgress=n||0,this._updateStyles();break;case"cornerRadius":case"corner-radius":this._cornerRadius=n||0,this._updateStyles();break;case"backgroundColor":case"background-color":this._backgroundColor=n||"#CCCCCC",this._updateStyles();break;case"color":this._progressColor=n,this._updateStyles();break;default:Ga(t,"updateProperty",this,3)([e,n])}}},{key:"setMaxProgress",value:function(e){this._maxProgress=e[0]||100,this._updateStyles()}},{key:"setProgress",value:function(e){this._progress=e[0]||0,this._updateStyles()}},{key:"setSecondaryProgress",value:function(e){this._secondaryProgress=e[0]||0,this._updateStyles()}},{key:"setProgressColor",value:function(e){this._progressColor=e[0],this._updateStyles()}},{key:"setProgressDefaultColor",value:function(e){this._backgroundColor=e[0],this._updateStyles()}},{key:"init",value:function(e){Ga(t,"init",this,3)([e]),void 0!==e.maxProgress&&(this._maxProgress=e.maxProgress),void 0!==e.progress&&(this._progress=e.progress),void 0!==e.secondaryProgress&&(this._secondaryProgress=e.secondaryProgress),void 0!==e.cornerRadius&&(this._cornerRadius=e.cornerRadius),void 0!==e.backgroundColor&&(this._backgroundColor=e.backgroundColor),void 0!==e.color&&(this._progressColor=e.color),this._updateStyles()}}])}(Bo);function Ya(e,t,n){return t=vn(t),pn(e,qa()?Reflect.construct(t,n||[],vn(e).constructor):t.apply(e,n))}function qa(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(qa=function(){return!!e})()}function Xa(e,t,n,r){var i=yn(vn(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof i?function(e){return i.apply(n,e)}:i}window.__HIPPY_COMPONENT_REGISTRY__=window.__HIPPY_COMPONENT_REGISTRY__||new Map;var Ka=function(e){function t(e,n,r){var i;return x(this,t),(i=Ya(this,t,[e,n,r])).tagName="TVSeekBarViewComponent",i.dom=document.createElement("div"),i.dom.style.display="block",i.dom.style.position="relative",i.dom.style.cursor="pointer",window.__HIPPY_COMPONENT_REGISTRY__.set(i.dom,i),i._progress=0,i._maxProgress=100,i._minProgress=0,i._progressHeight=10,i._progressRadius=5,i._progressColor="#FF0000",i._progressDefaultColor="#CCCCCC",i._seekBarMode=0,i._gravity=1,i._leftProgress=0,i._rightProgress=100,i._thumbWidth=30,i._thumbHeight=30,i._thumbColor="#FFFFFF",i._trackEl=null,i._progressEl=null,i._thumbEl=null,i._leftThumbEl=null,i._rightThumbEl=null,i._isDragging=!1,i._draggingThumb=null,i._initDOM(),i._bindEvents(),i}return gn(t,e),L(t,[{key:"_initDOM",value:function(){this._trackEl=document.createElement("div"),this._trackEl.style.position="absolute",this._trackEl.style.left="0",this._trackEl.style.width="100%",this._trackEl.style.boxSizing="border-box",this._trackEl.style.pointerEvents="none",this.dom.appendChild(this._trackEl),this._progressEl=document.createElement("div"),this._progressEl.style.position="absolute",this._progressEl.style.left="0",this._progressEl.style.boxSizing="border-box",this._progressEl.style.pointerEvents="none",this.dom.appendChild(this._progressEl),this._thumbEl=document.createElement("div"),this._thumbEl.style.position="absolute",this._thumbEl.style.boxSizing="border-box",this._thumbEl.style.borderRadius="50%",this._thumbEl.style.display="none",this._thumbEl.style.zIndex="10",this._thumbEl.style.pointerEvents="none",this.dom.appendChild(this._thumbEl),this._leftThumbEl=document.createElement("div"),this._leftThumbEl.style.position="absolute",this._leftThumbEl.style.boxSizing="border-box",this._leftThumbEl.style.borderRadius="50%",this._leftThumbEl.style.display="none",this._leftThumbEl.style.zIndex="10",this._leftThumbEl.style.pointerEvents="none",this.dom.appendChild(this._leftThumbEl),this._rightThumbEl=document.createElement("div"),this._rightThumbEl.style.position="absolute",this._rightThumbEl.style.boxSizing="border-box",this._rightThumbEl.style.borderRadius="50%",this._rightThumbEl.style.display="none",this._rightThumbEl.style.zIndex="10",this._rightThumbEl.style.pointerEvents="none",this.dom.appendChild(this._rightThumbEl)}},{key:"_bindEvents",value:function(){var e=this,t=function(t){e._isDragging&&e._handlePointerEvent(t)},n=function(){e._isDragging=!1,e._draggingThumb=null,document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",n)};this.dom.addEventListener("pointerdown",function(r){e._isDragging=!0,e._handlePointerEvent(r),document.addEventListener("pointermove",t),document.addEventListener("pointerup",n)})}},{key:"_handlePointerEvent",value:function(e){var t=this.dom.getBoundingClientRect(),n=e.clientX-t.left,r=Math.max(0,Math.min(1,n/t.width));if(1===this._seekBarMode){var i=this._leftProgress/this._maxProgress,o=this._rightProgress/this._maxProgress;if(!this._draggingThumb){var a=Math.abs(r-i),s=Math.abs(r-o);this._draggingThumb=a<s?"left":"right"}"left"===this._draggingThumb?this._leftProgress=Math.min(r*this._maxProgress,this._rightProgress-1):this._rightProgress=Math.max(r*this._maxProgress,this._leftProgress+1)}else this._progress=r*this._maxProgress;this._updateStyles(),this._dispatchChangeEvent()}},{key:"_dispatchChangeEvent",value:function(){var e=new CustomEvent("onSeekBarChange",{detail:{progress:this._progress,leftProgress:this._leftProgress,rightProgress:this._rightProgress,fromUser:!0}});this.dom.dispatchEvent(e)}},{key:"_updateStyles",value:function(){if(this._trackEl&&this._progressEl){var e,t=this._progressHeight,n=this._progressRadius+"px",r=this.dom.getBoundingClientRect().height||200;if(e=0===this._gravity?0:2===this._gravity?r-t:(r-t)/2,this._trackEl.style.top=e+"px",this._trackEl.style.height=t+"px",this._trackEl.style.borderRadius=n,this._trackEl.style.backgroundColor=this._progressDefaultColor,this._progressEl.style.top=e+"px",this._progressEl.style.height=t+"px",this._progressEl.style.borderRadius=n,this._progressEl.style.backgroundColor=this._progressColor,1===this._seekBarMode){var i=this._leftProgress/this._maxProgress*100,o=this._rightProgress/this._maxProgress*100;this._progressEl.style.left=i+"%",this._progressEl.style.width=o-i+"%",this._thumbEl.style.display="none",this._leftThumbEl.style.display="block",this._leftThumbEl.style.width=this._thumbWidth+"px",this._leftThumbEl.style.height=this._thumbHeight+"px",this._leftThumbEl.style.backgroundColor=this._thumbColor,this._leftThumbEl.style.left="calc(".concat(i,"% - ").concat(this._thumbWidth/2,"px)"),this._leftThumbEl.style.top=e+t/2-this._thumbHeight/2+"px",this._rightThumbEl.style.display="block",this._rightThumbEl.style.width=this._thumbWidth+"px",this._rightThumbEl.style.height=this._thumbHeight+"px",this._rightThumbEl.style.backgroundColor=this._thumbColor,this._rightThumbEl.style.left="calc(".concat(o,"% - ").concat(this._thumbWidth/2,"px)"),this._rightThumbEl.style.top=e+t/2-this._thumbHeight/2+"px"}else{var a=Math.min(100,this._progress/this._maxProgress*100);this._progressEl.style.left="0",this._progressEl.style.width=a+"%",this._thumbEl.style.display="block",this._thumbEl.style.width=this._thumbWidth+"px",this._thumbEl.style.height=this._thumbHeight+"px",this._thumbEl.style.backgroundColor=this._thumbColor,this._thumbEl.style.left="calc(".concat(a,"% - ").concat(this._thumbWidth/2,"px)"),this._thumbEl.style.top=e+t/2-this._thumbHeight/2+"px",this._leftThumbEl.style.display="none",this._rightThumbEl.style.display="none"}}}},{key:"updateProperty",value:function(e,n){switch(e){case"progress":this._progress=n||0,this._updateStyles();break;case"maxProgress":case"max-progress":this._maxProgress=n||100,this._updateStyles();break;case"progressHeight":case"progress-height":this._progressHeight=n||10,this._updateStyles();break;case"progressRadius":case"progress-radius":this._progressRadius=n||5,this._updateStyles();break;case"progressColor":case"progress-color":this._progressColor=n||"#FF0000",this._updateStyles();break;case"progressDefaultColor":case"progress-default-color":this._progressDefaultColor=n||"#CCCCCC",this._updateStyles();break;case"seekBarMode":case"seek-bar-mode":this._seekBarMode=n||0,this._updateStyles();break;case"gravity":this._gravity=n||1,this._updateStyles();break;case"thumbWidth":case"thumb-width":this._thumbWidth=n||30,this._updateStyles();break;case"thumbHeight":case"thumb-height":this._thumbHeight=n||30,this._updateStyles();break;default:Xa(t,"updateProperty",this,3)([e,n])}}},{key:"setProgress",value:function(e){var t=e[0];this._progress=t||0,1===this._seekBarMode&&(this._rightProgress=this._progress),this._updateStyles()}},{key:"setMaxProgress",value:function(e){this._maxProgress=e[0]||100,this._updateStyles()}},{key:"setProgressHeight",value:function(e){this._progressHeight=e[0]||10,this._updateStyles()}},{key:"setProgressRadius",value:function(e){this._progressRadius=e[0]||5,this._updateStyles()}},{key:"setProgressColor",value:function(e){this._progressColor=e[0]||"#FF0000",this._updateStyles()}},{key:"setProgressDefaultColor",value:function(e){this._progressDefaultColor=e[0]||"#CCCCCC",this._updateStyles()}},{key:"setSeekBarMode",value:function(e){this._seekBarMode=e[0]||0,this._updateStyles()}},{key:"setGravity",value:function(e){this._gravity=e[0]||1,this._updateStyles()}},{key:"setRangeProgress",value:function(e){this._leftProgress=e[0]||0,this._rightProgress=e[1]||100,this._updateStyles()}},{key:"setRange",value:function(e){this._minProgress=e[0]||0,this._maxProgress=e[1]||100,this._updateStyles()}},{key:"resetSeekbar",value:function(){this._progress=0,this._leftProgress=0,this._rightProgress=this._maxProgress,this._updateStyles()}},{key:"init",value:function(e){var n=this;Xa(t,"init",this,3)([e]),void 0!==e.progress&&(this._progress=e.progress),void 0!==e.maxProgress&&(this._maxProgress=e.maxProgress),void 0!==e.progressHeight&&(this._progressHeight=e.progressHeight),void 0!==e.progressRadius&&(this._progressRadius=e.progressRadius),void 0!==e.progressColor&&(this._progressColor=e.progressColor),void 0!==e.progressDefaultColor&&(this._progressDefaultColor=e.progressDefaultColor),void 0!==e.seekBarMode&&(this._seekBarMode=e.seekBarMode),void 0!==e.gravity&&(this._gravity=e.gravity),requestAnimationFrame(function(){return n._updateStyles()})}}])}(Bo);function $a(e,t,n){return t=vn(t),pn(e,Za()?Reflect.construct(t,n||[],vn(e).constructor):t.apply(e,n))}function Za(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Za=function(){return!!e})()}var Ja=function(e){function t(e,n,r){var i;return x(this,t),(i=$a(this,t,[e,n,r])).tagName="ItemFrameComponent",i.dom=document.createElement("div"),i.dom.setAttribute("data-component-name","QtItemFrame"),i.dom.style.display="block",i.dom.style.position="relative",i.dom.style.boxSizing="border-box",y(n,i),i}return gn(t,e),L(t,[{key:"defaultStyle",value:function(){return{display:"block",position:"relative",boxSizing:"border-box"}}},{key:"updateProperty",value:function(e,n){if("focusable"!==e){if("focusScale"===e||"focusscale"===e)return this._focusScale="number"==typeof n?n:parseFloat(n)||1.1,this.dom.setAttribute("data-focus-scale",String(this._focusScale)),void(this._focusListenerAdded||this._setupFocusAnimation());var r,i,o,a,s;if("itemShowShimmer"!==e&&"itemshowshimmer"!==e)if("hideShadow"!==e&&"hideshadow"!==e)if("shimmerSize"!==e&&"shimmersize"!==e)if("flexStyle"!==e&&"flexstyle"!==e)if("layout"!==e)"string"==typeof n&&n.startsWith("${")&&this.dom.setAttribute(e,n),(r=t,i="updateProperty",o=this,s=yn(vn(1&(a=3)?r.prototype:r),i,o),2&a&&"function"==typeof s?function(e){return s.apply(o,e)}:s)([e,n]);else"string"==typeof n&&n.startsWith("${")?this.dom.setAttribute(e,n):this._applyLayout(n);else"object"==typeof n&&null!==n?this._applyFlexStyle(n):"string"==typeof n&&n.startsWith("${")&&this.dom.setAttribute(e,n);else this.dom.setAttribute("data-shimmer-size",String(n));else this.dom.setAttribute("data-hide-shadow",String(n));else this.dom.setAttribute("data-show-shimmer",String(n))}else!0===n||"true"===n?(this.dom.setAttribute("tabindex","0"),this.dom.setAttribute("focusable","true"),this._focusable=!0):(this.dom.removeAttribute("tabindex"),this.dom.setAttribute("focusable","false"),this._focusable=!1)}},{key:"_setupFocusAnimation",value:function(){var e=this;this._focusListenerAdded=!0,this.dom.addEventListener("focus",function(){e._focusScale&&1!==e._focusScale&&(e.dom.style.transform="scale(".concat(e._focusScale,")"),e.dom.style.transition="transform 0.2s ease-out",e.dom.style.zIndex="10")}),this.dom.addEventListener("blur",function(){e.dom.style.transform="scale(1)",e.dom.style.zIndex=""})}},{key:"flexStyle",get:function(){return this.props.flexStyle},set:function(e){this.props.flexStyle=e,this._applyFlexStyle(e)}},{key:"_applyFlexStyle",value:function(e){var t=this;e&&"object"==typeof e&&Object.keys(e).forEach(function(n){var r=e[n];"number"==typeof r&&(["width","height","minWidth","minHeight","maxWidth","maxHeight","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","margin","marginTop","marginRight","marginBottom","marginLeft","top","left","right","bottom","borderRadius","borderWidth","fontSize","lineHeight","letterSpacing","gap","rowGap","columnGap"].includes(n)&&(r+="px"));try{"x"!==n&&"y"!==n&&(t.dom.style[n]=r)}catch(e){try{if("x"!==n&&"y"!==n){var i=n.replace(/([A-Z])/g,"-$1").toLowerCase();t.dom.style.setProperty(i,r)}}catch(e){}}})}},{key:"_applyLayout",value:function(e){if(e){if(Array.isArray(e)){var t=e[0],n=e[1],r=e[2],i=e[3];return null!=t&&(this.dom.style.left="number"==typeof t?"".concat(t,"px"):t),null!=n&&(this.dom.style.top="number"==typeof n?"".concat(n,"px"):n),null!=r&&(this.dom.style.width="number"==typeof r?"".concat(r,"px"):r),null!=i&&(this.dom.style.height="number"==typeof i?"".concat(i,"px"):i),void 0===t&&void 0===n||this.dom.style.position||(this.dom.style.position="absolute"),void(void 0===t&&void 0===n||"relative"!==this.dom.style.position||(this.dom.style.position="absolute"))}if("object"==typeof e){var o=e.x,a=e.y,s=e.width,u=e.height;null!=o&&(this.dom.style.left="number"==typeof o?"".concat(o,"px"):o),null!=a&&(this.dom.style.top="number"==typeof a?"".concat(a,"px"):a),null!=s&&(this.dom.style.width="number"==typeof s?"".concat(s,"px"):s),null!=u&&(this.dom.style.height="number"==typeof u?"".concat(u,"px"):u),void 0===o&&void 0===a||this.dom.style.position||(this.dom.style.position="absolute"),void 0===o&&void 0===a||"relative"!==this.dom.style.position||(this.dom.style.position="absolute")}}}}])}(Bo);function Qa(e,t,n){return t=vn(t),pn(e,es()?Reflect.construct(t,n||[],vn(e).constructor):t.apply(e,n))}function es(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(es=function(){return!!e})()}function ts(e,t,n,r){var i=yn(vn(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof i?function(e){return i.apply(n,e)}:i}var ns=function(e){function t(e,n,r){var i;return x(this,t),(i=Qa(this,t,[e,n,r])).tagName="ItemStoreView",i.dom=document.createElement("div"),i.dom.setAttribute("data-component-name","QtItemStoreView"),i.dom.style.display="none",i.dom.style.position="relative",i.dom.style.boxSizing="border-box",i._templateChildren=[],y(n,i),i}return gn(t,e),L(t,[{key:"defaultStyle",value:function(){return{display:"none",position:"relative",boxSizing:"border-box"}}},{key:"getTemplateChildren",value:function(){return this._templateChildren}},{key:"addTemplateChild",value:function(e){if(e&&e.dom&&!this._templateChildren.some(function(t){return t.dom===e.dom})){var t=null;if(e.props&&void 0!==e.props.type)t=e.props.type;else if(e.dom.hasAttribute("type")){var n=e.dom.getAttribute("type");t=null!==n?isNaN(Number(n))?n:Number(n):null}if(this._templateChildren.push({dom:e.dom,tagName:e.tagName,component:e,type:t}),null!=t)((r=window).__QT_SHARED_TEMPLATES__||(r.__QT_SHARED_TEMPLATES__=new Map),r.__QT_SHARED_TEMPLATES__).set(t,{dom:e.dom,tagName:e.tagName,component:e,type:t});e.dom.setAttribute("data-template","true"),e.dom.setAttribute("data-shared-template","true"),e.dom.style.display="none"}var r}},{key:"beforeChildMount",value:(n=l(c.mark(function e(n,r){return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n&&n.dom&&this.addTemplateChild(n),e.next=1,ts(t,"beforeChildMount",this,3)([n,r]);case 1:case"end":return e.stop()}},e,this)})),function(e,t){return n.apply(this,arguments)})},{key:"updateProperty",value:function(e,n){"string"==typeof n&&n.startsWith("${")&&this.dom.setAttribute(e,n),ts(t,"updateProperty",this,3)([e,n])}}]);var n}(Bo);function rs(e,t,n){return t=vn(t),pn(e,is()?Reflect.construct(t,n||[],vn(e).constructor):t.apply(e,n))}function is(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(is=function(){return!!e})()}function os(e,t,n,r){var i=yn(vn(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof i?function(e){return i.apply(n,e)}:i}var as=function(e){function t(e,n,r){var i;return x(this,t),(i=rs(this,t,[e,n,r])).tagName="RippleViewComponent",i.dom=document.createElement("div"),i.dom.setAttribute("data-component-name","QtRippleView"),i.dom.style.cssText="\n display: block;\n position: relative;\n box-sizing: border-box;\n overflow: hidden;\n ",i._isShowRipple=!1,i._rippleVisible="visible",i._color="#FF4E46",i._animationFrame=null,y(n,i),i}return gn(t,e),L(t,[{key:"defaultStyle",value:function(){return{display:"block",position:"relative",boxSizing:"border-box",overflow:"hidden"}}},{key:"updateProperty",value:function(e,n){var r=this;switch(e){case"isShowRipple":case"isshowripple":this._isShowRipple=!0===n||"true"===n,this._updateRippleAnimation();break;case"rippleVisible":case"ripplevisible":this._rippleVisible=n||"visible",this.dom.style.visibility=this._rippleVisible;break;case"color":this._color=n||"#FF4E46",this._updateRippleColor();break;case"delayLoad":case"delayload":n>0?setTimeout(function(){r._startRippleAnimation()},n):this._startRippleAnimation();break;default:os(t,"updateProperty",this,3)([e,n])}}},{key:"_updateRippleAnimation",value:function(){this._isShowRipple?this._startRippleAnimation():this._stopRippleAnimation()}},{key:"_updateRippleColor",value:function(){var e=this;this.dom.querySelectorAll(".ripple-circle").forEach(function(t){t.style.backgroundColor=e._color})}},{key:"_startRippleAnimation",value:function(){var e=this;if(this._isShowRipple){this._clearRipples();for(var t=this.dom.getBoundingClientRect(),n=Math.max(t.width,t.height),r=t.width/2,i=t.height/2,o=function(t){setTimeout(function(){e._isShowRipple&&e._createRippleCircle(r,i,n,t)},300*t)},a=0;a<3;a++)o(a)}}},{key:"_createRippleCircle",value:function(e,t,n,r){var i=this,o=document.createElement("div");o.className="ripple-circle",o.style.cssText="\n position: absolute;\n left: ".concat(e,"px;\n top: ").concat(t,"px;\n width: 0;\n height: 0;\n border-radius: 50%;\n background-color: ").concat(this._color,";\n opacity: 0.6;\n transform: translate(-50%, -50%);\n pointer-events: none;\n "),this.dom.appendChild(o);var a=0,s=1.5*n,u=1500+200*r,l=function(){if(i._isShowRipple)if((a+=s/u*16)<s){var e=.6*(1-a/s);o.style.width="".concat(a,"px"),o.style.height="".concat(a,"px"),o.style.opacity=e.toString(),i._animationFrame=requestAnimationFrame(l)}else o.style.width="0",o.style.height="0",o.style.opacity="0.6",a=0,i._animationFrame=requestAnimationFrame(l);else o.remove()};l()}},{key:"_stopRippleAnimation",value:function(){this._animationFrame&&(cancelAnimationFrame(this._animationFrame),this._animationFrame=null),this._clearRipples()}},{key:"_clearRipples",value:function(){this.dom.querySelectorAll(".ripple-circle").forEach(function(e){return e.remove()})}},{key:"destroy",value:function(){this._stopRippleAnimation(),os(t,"destroy",this,3)([])}}])}(Bo);function ss(e,t,n){return t=vn(t),pn(e,us()?Reflect.construct(t,n||[],vn(e).constructor):t.apply(e,n))}function us(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(us=function(){return!!e})()}function ls(e,t,n,r){var i=yn(vn(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof i?function(e){return i.apply(n,e)}:i}var cs=function(e){function t(e,n,r){var i;return x(this,t),(i=ss(this,t,[e,n,r])).tagName="FastItemView",i.dom=document.createElement("div"),i.dom.setAttribute("data-component-name","QtItemView"),i.dom.style.cssText="\n display: block;\n position: relative;\n box-sizing: border-box;\n ",i.props={},y(n,i),i}return gn(t,e),L(t,[{key:"defaultStyle",value:function(){return{display:"block",position:"relative",boxSizing:"border-box"}}},{key:"insertChild",value:function(e,t){e&&e.dom&&!this.dom.contains(e.dom)&&this.dom.appendChild(e.dom)}},{key:"beforeChildMount",value:(n=l(c.mark(function e(n,r){return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n&&n.dom&&!this.dom.contains(n.dom)&&this.dom.appendChild(n.dom),e.next=1,ls(t,"beforeChildMount",this,3)([n,r]);case 1:case"end":return e.stop()}},e,this)})),function(e,t){return n.apply(this,arguments)})},{key:"updateProperty",value:function(e,n){switch(e){case"singleton":this.props=this.props||{},this.props.singleton=!0,this.dom.setAttribute("singleton","true");break;case"type":this.props=this.props||{},this.props.type=n,this.dom.setAttribute("type",n);break;case"flexStyle":case"flexstyle":"object"==typeof n&&null!==n&&this._applyFlexStyle(n);break;default:ls(t,"updateProperty",this,3)([e,n])}}},{key:"_applyFlexStyle",value:function(e){var t=this;e&&"object"==typeof e&&Object.keys(e).forEach(function(n){var r=e[n];"number"==typeof r&&(["width","height","minWidth","minHeight","maxWidth","maxHeight","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","margin","marginTop","marginRight","marginBottom","marginLeft","top","left","right","bottom","borderRadius","borderWidth","fontSize","lineHeight","letterSpacing","gap","rowGap","columnGap"].includes(n)&&(r+="px"));try{t.dom.style[n]=r}catch(e){try{var i=n.replace(/([A-Z])/g,"-$1").toLowerCase();t.dom.style.setProperty(i,r)}catch(e){}}})}}]);var n}(Bo);function ds(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function hs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ds(Object(n),!0).forEach(function(t){(0,b.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ds(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function fs(e,t,n){return t=vn(t),pn(e,ps()?Reflect.construct(t,n||[],vn(e).constructor):t.apply(e,n))}function ps(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(ps=function(){return!!e})()}var vs=function(e){function t(e,n,r){var i;return x(this,t),(i=fs(this,t,[e,n,r])).tagName="TabsView",i.dom=document.createElement("div"),i.dom.setAttribute("data-component-name","TabsView"),y(n,i),i._instanceId=++t._instanceCount,i._tabData=null,i._currentPageIndex=0,i._pages=new Map,i._tabItems=[],i._loadedPageIndices=new Set,i._lastPageChangedIndex=-1,i._initialFocusToken=0,i._childrenByName=new Map,i._childrenContainer=i.dom,i}return gn(t,e),L(t,[{key:"defaultStyle",value:function(){return{boxSizing:"border-box",display:"flex",flexDirection:"column",width:"100%",height:"100%",position:"relative"}}},{key:"insertChild",value:function(e,t){if(e&&e.dom){var n,r=(null===(n=e.props)||void 0===n?void 0:n.name)||e.dom.getAttribute("name");r&&(this._childrenByName.set(r,e),"tabList"===r&&this._setupTabListListeners(e)),this._childrenContainer.appendChild(e.dom)}}},{key:"_setupTabListListeners",value:function(e){var t=this;if(e){var n=e.dispatchEvent.bind(e);e.dispatchEvent=function(e,r){if(n(e,r),("onItemFocused"===e||"onItemfocused"===e)&&r&&!0===r.hasFocus){var i=r.position;void 0!==i&&i!==t._currentPageIndex&&(t._currentPageIndex=i,t._focusIndex=i,t._syncTabSelectionState(i),t._syncContentCurrentPage(i),t._dispatchPageChanged(i),t._dispatchLoadPageData(i,!1))}if("onItemClick"===e){var o=null==r?void 0:r.position;void 0!==o&&o!==t._currentPageIndex&&(t._currentPageIndex=o,t._focusIndex=o,t._syncTabSelectionState(o),t._syncContentCurrentPage(o),t._dispatchPageChanged(o),t._dispatchLoadPageData(o,!1))}},this._boundHandleTabFocusIn=this._handleTabFocusIn.bind(this),e.dom.addEventListener("focusin",this._boundHandleTabFocusIn)}}},{key:"_handleTabFocusIn",value:function(e){var t=this.getChildByName("tabList");if(t){var n=t._itemContainer;if(n||(n=t.dom.querySelector(".flex-view-item-container")),n){for(var r=n.children,i=-1,o=0;o<r.length;o++)if(r[o]===e.target||r[o].contains(e.target)){i=o;break}-1!==i&&i!==this._currentPageIndex&&(this._currentPageIndex=i,this._focusIndex=i,this._syncTabSelectionState(i),this._syncContentCurrentPage(i),this._dispatchPageChanged(i),this._dispatchLoadPageData(i,!1))}}}},{key:"_syncContentCurrentPage",value:function(e){var t=this.getChildByName("content");t&&"function"==typeof t.setCurrentPage&&t.setCurrentPage(e)}},{key:"_getTabItemContainer",value:function(){var e=this.getChildByName("tabList");return e&&e.dom?e._itemContainer||e.dom.querySelector(".flex-view-item-container"):null}},{key:"_syncTabSelectionState",value:function(e){var t=this.getChildByName("tabList"),n=this._getTabItemContainer();if(!t||!n)return null;"function"==typeof t.setSelectChildPosition&&t.setSelectChildPosition(e,!1);var r=n.children;if(!r||e<0||e>=r.length)return null;Array.from(n.querySelectorAll('[autofocus="true"], [autofocus]')).forEach(function(e){e.removeAttribute("autofocus")});var i=r[e],o=i.querySelector('[focusable="true"], [focusable="1"], [focusable]')||i;return o.setAttribute("autofocus","true"),o}},{key:"removeChild",value:function(e){if(e&&e.dom){var t,n=(null===(t=e.props)||void 0===t?void 0:t.name)||e.dom.getAttribute("name");n&&this._childrenByName.delete(n),e.dom.parentNode===this._childrenContainer&&this._childrenContainer.removeChild(e.dom)}}},{key:"getChildByName",value:function(e){return this._childrenByName.get(e)}},{key:"updateProperty",value:function(e,n){switch(e){case"offscreenPageLimit":this._offscreenPageLimit=n;break;case"dataStrategy":this._dataStrategy=n;break;case"hideOnSingleTab":this._hideOnSingleTab=n,this._applyHideOnSingleTab();break;case"pageSwitchDelay":this._pageSwitchDelay=n;break;case"suspension":this._suspension=n;break;case"useSuspensionBg":this._useSuspensionBg=n;break;default:(r=t,i="updateProperty",o=this,s=yn(vn(1&(a=3)?r.prototype:r),i,o),2&a&&"function"==typeof s?function(e){return s.apply(o,e)}:s)([e,n])}var r,i,o,a,s}},{key:"_applyHideOnSingleTab",value:function(){var e=this.getChildByName("tabList");if(e&&e.dom){var t=!0===this._hideOnSingleTab&&1===this._tabItems.length;e.dom.style.display=t?"none":""}}},{key:"setTabsData",value:function(){for(var e,t,n,r=this,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];var s=(o=Array.isArray(o[0])&&1===o.length?o[0]:o)[0]||{},u=o[1]||[];this._tabData=hs(hs({},s),{},{data:u}),this._tabItems=Array.isArray(u)?u:[],this._currentPageIndex=null!==(e=s.defaultIndex)&&void 0!==e?e:0;var l=null!==(t=null!==(n=s.defaultFocusIndex)&&void 0!==n?n:s.focusIndex)&&void 0!==t?t:this._currentPageIndex;this._focusIndex=Number.isFinite(l)&&l>=0?l:this._currentPageIndex;var c=this.getChildByName("tabList");c&&c.setListData&&c.setListData(u),this._applyHideOnSingleTab(),requestAnimationFrame(function(){var e=r.getChildByName("content");e&&"function"==typeof e.setCurrentPage&&e.setCurrentPage(r._currentPageIndex),r._dispatchPageChanged(r._currentPageIndex),r._dispatchLoadPageData(r._currentPageIndex,!1);var t=++r._initialFocusToken;setTimeout(function(){t===r._initialFocusToken&&r._setInitialTabFocus()},100)})}},{key:"_setInitialTabFocus",value:function(){var e=this.getChildByName("tabList");if(e&&e.dom){var t=this._focusIndex,r=this._getTabItemContainer();if(r){var i=r.children;if(i.length>0&&t>=0&&t<i.length){var o=this._syncTabSelectionState(t);return o.setAttribute("autofocus","true"),e.setSelectChildPosition&&e.setSelectChildPosition(t,!1),void(n.g.__TV_FOCUS_MANAGER__&&(n.g.__TV_FOCUS_MANAGER__.updateFocusableElements(),n.g.__TV_FOCUS_MANAGER__._doFocusElement(o)))}}var a=e.dom.querySelectorAll('[focusable="true"], [focusable="1"], [focusable]'),s=Array.from(a).filter(function(e){return"true"!==e.getAttribute("data-template")&&"none"!==e.style.display&&!e.closest('[data-template="true"]')});if(s.length>0&&t>=0&&t<s.length){var u=s[t];u.setAttribute("autofocus","true"),n.g.__TV_FOCUS_MANAGER__&&(n.g.__TV_FOCUS_MANAGER__.updateFocusableElements(),n.g.__TV_FOCUS_MANAGER__._doFocusElement(u))}}}},{key:"setPageData",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=(t=Array.isArray(t[0])&&1===t.length?t[0]:t)[0],i=t[1]||{},o=t[2]||[],a=hs(hs({},i),{},{data:o});this._pages.set(r,a);var s=this.getChildByName("content");s&&s.setListData&&s.setListData(r,i,o)}},{key:"addPageData",value:function(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=(n=Array.isArray(n[0])&&1===n.length?n[0]:n)[0],o=n[1]||{},a=n[2]||[],s=null!==(e=o.deleteCount)&&void 0!==e?e:0,u=this._pages.get(i)||{data:[]},l=Array.isArray(u.data)?u.data:[];s>0&&l.splice(0,s),Array.isArray(a)?u.data=l.concat(a):u.data=l,this._pages.set(i,u);var c=this.getChildByName("content");c&&c.addListData&&c.addListData(i,o,a)}},{key:"updatePageData",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=(t=Array.isArray(t[0])&&1===t.length?t[0]:t)[0],i=t[1]||[],o=t[2]||{};this.setPageData(r,o,i)}},{key:"_updatePageContent",value:function(e,t){}},{key:"setCurrentPage",value:function(e){if(Array.isArray(e)&&(e=e[0]),!(e<0||e>=this._tabItems.length)){this._currentPageIndex;this._currentPageIndex=e,this._focusIndex=e,this._initialFocusToken+=1,this._syncTabSelectionState(e);var t=this.getChildByName("content");t&&"function"==typeof t.setCurrentPage&&t.setCurrentPage(e),this._dispatchPageChanged(e),this._dispatchLoadPageData(e,!1)}}},{key:"getCurrentPage",value:function(){return Promise.resolve(this._currentPageIndex)}},{key:"requestTabFocus",value:function(e){Array.isArray(e)&&(e=e[0]),this._focusIndex=e,this.setCurrentPage(e);var t=this._syncTabSelectionState(e);t&&n.g.__TV_FOCUS_MANAGER__&&(n.g.__TV_FOCUS_MANAGER__.updateFocusableElements(),n.g.__TV_FOCUS_MANAGER__._doFocusElement(t))}},{key:"focusBackToTop",value:function(){}},{key:"requestNodeFocus",value:function(e){}},{key:"reloadAll",value:function(){this._dispatchLoadPageData(this._currentPageIndex,!1,!0)}},{key:"reloadPage",value:function(e){this._dispatchLoadPageData(e,!1,!0)}},{key:"invokeContentFunction",value:function(e,t,n){}},{key:"invokeContentFunctionDirect",value:function(e,t){}},{key:"contentScrollToFocus",value:function(e){}},{key:"updateChildNode",value:function(e,t,n,r){}},{key:"updateRootNode",value:function(e,t,n){}},{key:"updateItemMatched",value:function(e,t,n){}},{key:"blockRootFocus",value:function(){}},{key:"unBlockRootFocus",value:function(){}},{key:"translationLeft",value:function(){this._currentPageIndex>0&&this.setCurrentPage(this._currentPageIndex-1)}},{key:"translationRight",value:function(){this._currentPageIndex<this._tabItems.length-1&&this.setCurrentPage(this._currentPageIndex+1)}},{key:"destroy",value:function(){this._pages.clear(),this._tabItems=[],this._childrenByName.clear()}},{key:"cancelAll",value:function(){}},{key:"getRootNodeViewState",value:function(e,t,n){n&&n({viewState:{}})}},{key:"getChildNodeViewState",value:function(e,t,n,r,i){i&&i({viewState:{}})}},{key:"dispatchUIFunctionOnChildNode",value:function(e,t,n,r,i){}},{key:"_dispatchPageChanged",value:function(e){if(!(e<0||e>=this._tabItems.length)&&this._lastPageChangedIndex!==e){this._lastPageChangedIndex=e;var t={pageIndex:e,data:this._tabItems[e]||null};this.dispatchEvent("onPageChanged",t)}}},{key:"_dispatchLoadPageData",value:function(e,t){if(arguments.length>2&&void 0!==arguments[2]&&arguments[2]||!this._loadedPageIndices.has(e)){var n={pageIndex:e,itemCount:0,data:this._tabItems[e]||null,useDiff:!!t};this._loadedPageIndices.add(e),this.dispatchEvent("onLoadPageData",n)}}}])}(Bo);function ys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ms(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ys(Object(n),!0).forEach(function(t){(0,b.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ys(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function gs(e,t,n){return t=vn(t),pn(e,_s()?Reflect.construct(t,n||[],vn(e).constructor):t.apply(e,n))}function _s(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(_s=function(){return!!e})()}(0,b.A)(vs,"_instanceCount",0);var bs=function(e){function t(e,n,r){var i;return x(this,t),(i=gs(this,t,[e,n,r])).tagName="RecyclerViewPager",i.dom=document.createElement("div"),i.dom.setAttribute("data-component-name","RecyclerViewPager"),y(n,i),i._pages=new Map,i._currentIndex=0,i._direction="horizontal",i._contentView=null,i._childrenContainer=i.dom,i}return gn(t,e),L(t,[{key:"defaultStyle",value:function(){return{boxSizing:"border-box",display:"block",width:"100%",flex:"1",overflow:"hidden",position:"relative"}}},{key:"insertChild",value:function(e,t){e&&e.dom&&(this._contentView||(this._contentView=e,this._applyCurrentPageData()),this._childrenContainer.appendChild(e.dom))}},{key:"removeChild",value:function(e){e&&e.dom&&e.dom.parentNode===this._childrenContainer&&this._childrenContainer.removeChild(e.dom)}},{key:"updateProperty",value:function(e,n){switch(e){case"direction":this._direction=n||"horizontal";break;case"loadingItemType":this._loadingItemType=n;break;case"enableTransform":this._enableTransform=n;break;case"slidingEnable":this._slidingEnable=n;break;case"slidingMode":this._slidingMode=n;break;case"initTranslation":this._initTranslation=n;break;case"duration":this._duration=n;break;default:(r=t,i="updateProperty",o=this,s=yn(vn(1&(a=3)?r.prototype:r),i,o),2&a&&"function"==typeof s?function(e){return s.apply(o,e)}:s)([e,n])}var r,i,o,a,s}},{key:"setCurrentPage",value:function(e){if(Array.isArray(e)&&1===e.length&&(e=e[0]),!(e<0)){this._currentIndex;this._currentIndex=e,this._applyCurrentPageData()}}},{key:"_applyCurrentPageData",value:function(){var e,t,r=this;if(this._contentView){var i=this._pages.get(this._currentIndex),o=i&&Array.isArray(i.data)?i.data:[],a=null===(e=this._contentView.dom)||void 0===e||null===(t=e.getAttribute)||void 0===t?void 0:t.call(e,"list");if(a&&a.includes("${")){var s=a.match(/^\$\{([^}]+)\}$/);if(s){var u=s[1],l={[u]:o};return void Promise.resolve().then(n.bind(n,814)).then(function(e){(0,e.bindTemplateDataToNode)(r._contentView.dom,l,{onListData:function(e,t){e._qtListData=t,r._contentView&&"function"==typeof r._contentView.setListData&&r._contentView.setListData(t)}})})}}"function"!=typeof this._contentView.setListData?"function"==typeof this._contentView.updateProperty&&this._contentView.updateProperty("listData",o):this._contentView.setListData(o)}}},{key:"setListData",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=(t=Array.isArray(t[0])&&1===t.length?t[0]:t)[0],i=t[1]||{},o=t[2]||[];this._pages.set(r,ms(ms({},i),{},{data:o})),r===this._currentIndex&&this._applyCurrentPageData()}},{key:"addListData",value:function(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=(n=Array.isArray(n[0])&&1===n.length?n[0]:n)[0],o=n[1]||{},a=n[2]||[],s=null!==(e=o.deleteCount)&&void 0!==e?e:0,u=this._pages.get(i)||{data:[]},l=Array.isArray(u.data)?u.data:[];s>0&&l.splice(0,s),Array.isArray(a)?u.data=l.concat(a):u.data=l,this._pages.set(i,u),i===this._currentIndex&&this._applyCurrentPageData()}},{key:"setPageData",value:function(e,t){var n;this.setListData(e,{},null!==(n=null==t?void 0:t.data)&&void 0!==n?n:t)}},{key:"addPageData",value:function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;this.addListData(e,{deleteCount:r},null!==(n=null==t?void 0:t.data)&&void 0!==n?n:t)}},{key:"updatePageData",value:function(e,t){this.setPageData(e,t)}},{key:"insertPageData",value:function(e,t,n){}},{key:"updateChildNode",value:function(e,t,n,r){}},{key:"updateRootNode",value:function(e,t,n){}},{key:"deleteItemRange",value:function(e,t){}},{key:"destroy",value:function(){this._pages.clear(),this._contentView=null}}])}(Bo);function ws(e,t,n){return t=vn(t),pn(e,ks()?Reflect.construct(t,n||[],vn(e).constructor):t.apply(e,n))}function ks(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(ks=function(){return!!e})()}function Es(e,t,n,r){var i=yn(vn(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof i?function(e){return i.apply(n,e)}:i}var Ss=function(e){function t(e,n,r){var i;return x(this,t),(i=ws(this,t,[e,n,r])).tagName="Modal",i.dom=document.createElement("div"),i.dom.setAttribute("data-component-name","Modal"),i.dom.style.cssText="\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n z-index: 9999;\n ",y(n,i),i._visible=!0,i._transparent=!0,i}return gn(t,e),L(t,[{key:"defaultStyle",value:function(){return{position:"fixed",top:0,left:0,width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center",zIndex:9999}}},{key:"updateProperty",value:function(e,n){switch(e){case"transparent":this._transparent=n,this.dom.style.backgroundColor=n?"transparent":"rgba(0, 0, 0, 0.5)";break;case"immersionStatusBar":this._immersionStatusBar=n;break;case"visible":case"visibility":this._setVisible(n);break;default:Es(t,"updateProperty",this,3)([e,n])}}},{key:"_setVisible",value:function(e){this._visible=e,e?(this.dom.style.display="flex",this.dispatchEvent("show",{})):this.dom.style.display="none"}},{key:"mounted",value:function(){var e,n=this;null===(e=Es(t,"mounted",this,3))||void 0===e||e([]),!1!==this._visible&&requestAnimationFrame(function(){n.dispatchEvent("show",{})})}},{key:"_handleClickOutside",value:function(e){e.target===this.dom&&this.dispatchEvent("requestclose",{})}},{key:"show",value:function(){this._setVisible(!0)}},{key:"hide",value:function(){this._setVisible(!1)}},{key:"close",value:function(){this.dispatchEvent("requestclose",{})}}])}(Bo);function As(e,t,n){return t=vn(t),pn(e,xs()?Reflect.construct(t,n||[],vn(e).constructor):t.apply(e,n))}function xs(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(xs=function(){return!!e})()}function Cs(e,t,n,r){var i=yn(vn(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof i?function(e){return i.apply(n,e)}:i}var Ts=function(e){function t(e,n,r){var i;return x(this,t),(i=As(this,t,[e,n,r])).tagName="ListView",i.dom=document.createElement("div"),i.dom.setAttribute("data-component-name","ListView"),i.dom.__listViewInstance=i,y(n,i),i._horizontal=!1,i._horizontalExplicitlySet=!1,i._fadingEdgeLength=0,i._horizontalFadingEdgeEnabled=!1,i._verticalFadingEdgeEnabled=!1,i._clipChildren=!0,i._scrollEnabled=!0,i._listenBoundEvent=!1,i._selectedPosition=-1,i._styleFlexDirection="column",i._children=[],i._startGradient=null,i._endGradient=null,i}return gn(t,e),L(t,[{key:"defaultStyle",value:function(){return{display:"flex",flexDirection:this._horizontal?"row":"column",flexShrink:0,boxSizing:"border-box",overflow:"hidden",position:"relative"}}},{key:"mounted",value:function(){var e=this;Cs(t,"mounted",this,3)([]),this._refreshRuntimeStyles(),requestAnimationFrame(function(){return e._refreshRuntimeStyles()})}},{key:"updateProperty",value:function(e,n){switch(e){case"horizontal":this._horizontalExplicitlySet=!0,this._horizontal=!0===n||"true"===n||1===n||"1"===n,this._reconcileLayoutDirection();break;case"flexDirection":this._styleFlexDirection=n||"",Cs(t,"updateProperty",this,3)([e,n]),this._reconcileLayoutDirection();break;case"fadingEdgeLength":this._fadingEdgeLength=n||0,this._updateFadingEdge();break;case"horizontalFadingEdgeEnabled":this._horizontalFadingEdgeEnabled=!!n,this._updateFadingEdge();break;case"verticalFadingEdgeEnabled":this._verticalFadingEdgeEnabled=!!n,this._updateFadingEdge();break;case"clipChildren":this._clipChildren=!1!==n,this._updateClipChildren();break;case"scrollEnabled":case"onScrollEnable":this._scrollEnabled=!1!==n,this._updateScrollEnabled();break;case"listenBoundEvent":this._listenBoundEvent=!0===n||"true"===n||1===n||"1"===n;break;default:"string"==typeof n&&n.startsWith("${")&&this.dom.setAttribute(e,n),Cs(t,"updateProperty",this,3)([e,n])}}},{key:"_updateLayoutDirection",value:function(){this._reconcileLayoutDirection(),this._updateFadingEdge()}},{key:"_reconcileLayoutDirection",value:function(){this.dom&&(this._styleFlexDirection?this.dom.style.flexDirection=this._styleFlexDirection:this._horizontalExplicitlySet&&(this.dom.style.flexDirection=this._horizontal?"row":"column"))}},{key:"_refreshRuntimeStyles",value:function(){this.dom&&(this._reconcileLayoutDirection(),this._updateFadingEdge(),this._updateClipChildren(),this._updateScrollEnabled())}},{key:"_updateClipChildren",value:function(){this.dom&&(this.dom.style.overflow=this._clipChildren?"hidden":"visible")}},{key:"_updateScrollEnabled",value:function(){this.dom&&(this.dom.style.overflow=this._scrollEnabled?"auto":"hidden")}},{key:"_updateFadingEdge",value:function(){if(this.dom&&(this._startGradient&&(this._startGradient.remove(),this._startGradient=null),this._endGradient&&(this._endGradient.remove(),this._endGradient=null),(this._horizontal?this._horizontalFadingEdgeEnabled:this._verticalFadingEdgeEnabled)&&!(this._fadingEdgeLength<=0))){var e=this._fadingEdgeLength;this._horizontal?(this._startGradient=document.createElement("div"),this._startGradient.style.cssText="\n position: absolute;\n left: 0;\n top: 0;\n bottom: 0;\n width: ".concat(e,"px;\n background: linear-gradient(to right, rgba(0,0,0,0.3), transparent);\n pointer-events: none;\n z-index: 10;\n "),this.dom.appendChild(this._startGradient),this._endGradient=document.createElement("div"),this._endGradient.style.cssText="\n position: absolute;\n right: 0;\n top: 0;\n bottom: 0;\n width: ".concat(e,"px;\n background: linear-gradient(to left, rgba(0,0,0,0.3), transparent);\n pointer-events: none;\n z-index: 10;\n "),this.dom.appendChild(this._endGradient)):(this._startGradient=document.createElement("div"),this._startGradient.style.cssText="\n position: absolute;\n left: 0;\n top: 0;\n right: 0;\n height: ".concat(e,"px;\n background: linear-gradient(to bottom, rgba(0,0,0,0.3), transparent);\n pointer-events: none;\n z-index: 10;\n "),this.dom.appendChild(this._startGradient),this._endGradient=document.createElement("div"),this._endGradient.style.cssText="\n position: absolute;\n left: 0;\n bottom: 0;\n right: 0;\n height: ".concat(e,"px;\n background: linear-gradient(to top, rgba(0,0,0,0.3), transparent);\n pointer-events: none;\n z-index: 10;\n "),this.dom.appendChild(this._endGradient))}}},{key:"insertChild",value:function(e,t){if(e&&e.dom){var n="number"==typeof t&&t>=0&&t<this._children.length?this._children[t]:null;n&&n.dom&&n.dom.parentNode===this.dom?(this.dom.insertBefore(e.dom,n.dom),this._children.splice(t,0,e)):this._endGradient?(this.dom.insertBefore(e.dom,this._endGradient),this._children.push(e)):this._startGradient?(this.dom.insertBefore(e.dom,this._startGradient),this._children.push(e)):(this.dom.appendChild(e.dom),this._children.push(e)),this._syncChildPositions(),this._emitBoundEvent("bindItem",e)}}},{key:"removeChild",value:function(e){if(e&&e.dom&&e.dom.parentNode===this.dom){this._emitBoundEvent("unbindItem",e),this.dom.removeChild(e.dom);var t=this._children.indexOf(e);t>-1&&this._children.splice(t,1),this._syncChildPositions()}}},{key:"scrollToIndex",value:function(){var e=0,t=!0,n=0;arguments.length>=2&&"number"==typeof(arguments.length<=1?void 0:arguments[1])?(e=arguments.length<=1?void 0:arguments[1],t=!1!==(arguments.length<=2?void 0:arguments[2]),n=Number((arguments.length<=4?void 0:arguments[4])||0)):(e=Number((arguments.length<=0?void 0:arguments[0])||0),t=!1!==(arguments.length<=1?void 0:arguments[1]),n=Number((arguments.length<=2?void 0:arguments[2])||0));var r=this._children[e];if(r&&r.dom){var i=this._horizontal?r.dom.offsetLeft:r.dom.offsetTop;this.scrollToPosition(i,n,t)}}},{key:"scrollToPosition",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];this._horizontal?this.dom.scrollTo({left:e+t,behavior:n?"smooth":"auto"}):this.dom.scrollTo({top:e+t,behavior:n?"smooth":"auto"})}},{key:"requestFocus",value:function(e){return this.requestChildFocus(e)}},{key:"requestChildFocus",value:function(e){Array.isArray(e)&&(e=e[0]);var t=this._children[e];if(t&&t.dom){var r=this._findFocusableTarget(t.dom);if(r){this.scrollToIndex(e,!0);var i=n.g.__TV_FOCUS_MANAGER__;i&&"function"==typeof i._doFocusElement?i._doFocusElement(r):"function"==typeof r.focus&&r.focus()}}}},{key:"setSelectChildPosition",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];Array.isArray(e)&&(t=!0===e[1],e=e[0]);var n=Number(e);if(Number.isFinite(n)){this._clearSelectedState(),this._selectedPosition=n;var r=this._children[n];r&&r.dom&&(this._applySelectedState(r.dom),this.dispatchEvent("childSelect",{position:n,index:n,child:{index:n}})),t&&this.requestChildFocus(n)}}},{key:"_syncChildPositions",value:function(){this._children.forEach(function(e,t){e&&e.dom&&(e.dom.setAttribute("data-position",String(t)),e.dom.setAttribute("data-index",String(t)))})}},{key:"_emitBoundEvent",value:function(e,t){var n=this;if(this._listenBoundEvent&&t&&t.dom){var r=function(){var r=n._children.indexOf(t);r<0||n.dispatchEvent(e,{position:r,index:r})};"bindItem"!==e?r():requestAnimationFrame(r)}}},{key:"_findFocusableTarget",value:function(e){if(!e)return null;var t,n,r;return""===(r=null==(t=e)||null===(n=t.getAttribute)||void 0===n?void 0:n.call(t,"focusable"))||"true"===r||"1"===r?e:e.querySelector('[autofocus="true"]')||e.querySelector('[focusable="true"], [focusable=""], [focusable="1"]')}},{key:"_clearSelectedState",value:function(){var e=this.dom.querySelectorAll('[selected="true"], [selected=""]'),t=n.g.__TV_FOCUS_MANAGER__;e.forEach(function(e){e.removeAttribute("selected")}),t&&"function"==typeof t._removeDuplicateParentStateStyles&&this._children.forEach(function(e){null!=e&&e.dom&&t._removeDuplicateParentStateStyles(e.dom)})}},{key:"_applySelectedState",value:function(e){e.setAttribute("selected","true"),Array.from(e.children||[]).forEach(function(e){e.setAttribute("selected","true")}),e.querySelectorAll("[duplicateparentstate], [duplicateParentState]").forEach(function(e){e.setAttribute("selected","true")})}},{key:"endBatch",value:function(){this._refreshRuntimeStyles()}},{key:"destroy",value:function(){this._startGradient&&(this._startGradient.remove(),this._startGradient=null),this._endGradient&&(this._endGradient.remove(),this._endGradient=null),this._children=[],Cs(t,"destroy",this,3)([])}}])}(Bo),Ls=function(e){function t(e,n,r){var i;return x(this,t),(i=As(this,t,[e,n,r])).tagName="ListViewItem",i.dom=document.createElement("div"),i.dom.setAttribute("data-component-name","ListViewItem"),y(n,i),i.height=0,i.isDirty=!1,i.dirtyListener=null,i}return gn(t,e),L(t,[{key:"defaultStyle",value:function(){return{display:"flex",flexShrink:0,boxSizing:"border-box"}}},{key:"updateProperty",value:function(e,n){switch(e){case"sticky":this._sticky=!!n,this._updateSticky();break;case"type":this._type=n;break;default:"string"==typeof n&&n.startsWith("${")&&this.dom.setAttribute(e,n),Cs(t,"updateProperty",this,3)([e,n])}}},{key:"_updateSticky",value:function(){this.dom&&(this._sticky?(this.dom.style.position="sticky",this.dom.style.top="0",this.dom.style.zIndex="100"):(this.dom.style.position="",this.dom.style.top="",this.dom.style.zIndex=""))}},{key:"addDirtyListener",value:function(e){this.dirtyListener=e}},{key:"getItemHeight",value:function(){var e;return(null===(e=this.dom)||void 0===e?void 0:e.clientHeight)||0}},{key:"endBatch",value:function(){}},{key:"mounted",value:function(){var e=this;Cs(t,"mounted",this,3)([]),requestAnimationFrame(function(){e.height=e.getItemHeight()})}},{key:"destroy",value:function(){this.dirtyListener=null,Cs(t,"destroy",this,3)([])}}])}(Bo);function Os(e,t,n){return t=vn(t),pn(e,Ps()?Reflect.construct(t,n||[],vn(e).constructor):t.apply(e,n))}function Ps(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Ps=function(){return!!e})()}function Is(e,t,n,r){var i=yn(vn(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof i?function(e){return i.apply(n,e)}:i}var Ns=function(e){function t(e,n,r){var i;return x(this,t),(i=Os(this,t,[e,n,r])).tagName="ESPlayMarkViewComponent",i.dom=document.createElement("div"),i.dom.setAttribute("data-component-name","QtPlayMark"),i.dom.style.cssText="\n display: block;\n position: relative;\n box-sizing: border-box;\n overflow: hidden;\n ",i._markColor="#FF4E46",i._gap=2,i._showType=0,i._roundCorner=0,i._startColor=null,i._endColor=null,i._isSupportGradient=!1,i._animationFrame=null,i._bars=[],i._createBars(),y(n,i),i}return gn(t,e),L(t,[{key:"defaultStyle",value:function(){return{display:"block",position:"relative",boxSizing:"border-box",overflow:"hidden"}}},{key:"_createBars",value:function(){for(var e=0;e<4;e++){var t=document.createElement("div");t.className="play-mark-bar",t.style.cssText="\n position: absolute;\n bottom: 0;\n background-color: ".concat(this._markColor,";\n border-radius: ").concat(this._roundCorner,"px;\n "),this.dom.appendChild(t),this._bars.push(t)}this._startAnimation()}},{key:"updateProperty",value:function(e,n){var r=this;switch(e){case"markColor":case"markcolor":this._markColor=n||"#FF4E46",this._updateMarkColor();break;case"gap":this._gap=void 0!==n?Number(n):2;break;case"showType":case"showtype":this._showType=void 0!==n?Number(n):0;break;case"roundCorner":case"roundcorner":this._roundCorner=void 0!==n?Number(n):0,this._bars.forEach(function(e){e.style.borderRadius="".concat(r._roundCorner,"px")});break;case"startColor":case"startcolor":this._startColor=n,this._updateMarkColor();break;case"endColor":case"endcolor":this._endColor=n,this._updateMarkColor();break;case"isSupportGradient":case"issupportgradient":this._isSupportGradient=!0===n||"true"===n,this._updateMarkColor();break;default:Is(t,"updateProperty",this,3)([e,n])}}},{key:"_getBarColor",value:function(){return this._isSupportGradient&&this._startColor&&this._endColor?this._startColor:this._markColor}},{key:"_updateMarkColor",value:function(){var e=this._getBarColor();this._bars.forEach(function(t){t.style.backgroundColor=e})}},{key:"_startAnimation",value:function(){var e=this,t=0,n=function(){var r=e.dom.getBoundingClientRect(),i=r.width||26,o=r.height||30,a=e._bars.length,s=e._gap*(a-1),u=Math.floor((i-s)/a),l=(t=(t+1)%60)/60*Math.PI*2;e._bars.forEach(function(t,n){var r=n/a*Math.PI*2,i=.2+.375*(Math.sin(2*l+r)+1),s=Math.max(4,o*i);t.style.width="".concat(u,"px"),t.style.height="".concat(s,"px"),t.style.left="".concat(n*(u+e._gap),"px")}),e._animationFrame=requestAnimationFrame(n)};n()}},{key:"destroy",value:function(){this._animationFrame&&(cancelAnimationFrame(this._animationFrame),this._animationFrame=null),this._bars=[],Is(t,"destroy",this,3)([])}}])}(Bo);var Rs=["#000000","#ffffff","#ff0000","#00ff00","#0000ff","#ffff00","#ff00ff","#00ffff","#e74c3c","#f1c40f","#3498db","#2ecc71","#2c3e50","#bdc3c7","#ecf0f1","#95a5a6","#1abc9c","#e67e22","#9b59b6","#34495e","#27ae60","#c0392b","#f39c12","#2980b9"],Ds=["left","center","right","start","end"],Ms=["top","hanging","middle","alphabetic","ideographic","bottom"],Fs=["butt","round","square"],Bs=["round","bevel","miter"],js=["source-over","source-atop","source-in","source-out","destination-over","destination-atop","destination-in","destination-out","lighter","copy","xor"],Vs="undefined"!=typeof TextDecoder?new TextDecoder("utf-8"):null;function Ws(e,t){var n=e.getUint16(t.offset,!0);t.offset+=2;var r=function(e,t,n){var r=e.subarray?e.subarray(t,t+n):new Uint8Array(e.slice(t,t+n));if(Vs)return Vs.decode(r);for(var i="",o=t+n;t<o;){var a=e[t++];if(a<128)i+=String.fromCharCode(a);else if(a<224)i+=String.fromCharCode((31&a)<<6|63&e[t++]);else if(a<240)i+=String.fromCharCode((15&a)<<12|(63&e[t++])<<6|63&e[t++]);else{var s=(7&a)<<18|(63&e[t++])<<12|(63&e[t++])<<6|63&e[t++];s-=65536,i+=String.fromCharCode(55296|s>>10,56320|1023&s)}}return i}(new Uint8Array(e.buffer),t.offset,n);return t.offset+=n,r}function Hs(e,t){var n=e.getUint8(t.offset);return t.offset++,255===n?Ws(e,t):n<Rs.length?Rs[n]:"#000000"}function Us(e,t,n){var r=e.getUint8(t.offset);t.offset++;for(var i=0;i<r;i++){var o=e.getInt16(t.offset,!0);t.offset+=2;var a=e.getInt16(t.offset,!0);t.offset+=2,n.push({method:"lineTo",params:[o,a]})}}function Gs(e,t,n,r){switch(n){case 1:r.push({method:"beginPath",params:[]});break;case 2:r.push({method:"closePath",params:[]});break;case 3:var i=e.getInt16(t.offset,!0);t.offset+=2;var o=e.getInt16(t.offset,!0);t.offset+=2,r.push({method:"moveTo",params:[i,o]});break;case 4:i=e.getInt16(t.offset,!0);t.offset+=2;o=e.getInt16(t.offset,!0);t.offset+=2,r.push({method:"lineTo",params:[i,o]});break;case 5:i=e.getInt16(t.offset,!0);t.offset+=2;o=e.getInt16(t.offset,!0);t.offset+=2;var a=e.getInt16(t.offset,!0);t.offset+=2;var s=e.getInt16(t.offset,!0);t.offset+=2,r.push({method:"fillRect",params:[i,o,a,s]});break;case 6:i=e.getInt16(t.offset,!0);t.offset+=2;o=e.getInt16(t.offset,!0);t.offset+=2;a=e.getInt16(t.offset,!0);t.offset+=2;s=e.getInt16(t.offset,!0);t.offset+=2,r.push({method:"strokeRect",params:[i,o,a,s]});break;case 7:i=e.getInt16(t.offset,!0);t.offset+=2;o=e.getInt16(t.offset,!0);t.offset+=2;a=e.getInt16(t.offset,!0);t.offset+=2;s=e.getInt16(t.offset,!0);t.offset+=2,r.push({method:"clearRect",params:[i,o,a,s]});break;case 8:var u=Ws(e,t);i=e.getInt16(t.offset,!0);t.offset+=2;o=e.getInt16(t.offset,!0);t.offset+=2;var l=e.getInt16(t.offset,!0);t.offset+=2,l>=0?r.push({method:"fillText",params:[u,i,o,l]}):r.push({method:"fillText",params:[u,i,o]});break;case 9:u=Ws(e,t),i=e.getInt16(t.offset,!0);t.offset+=2;o=e.getInt16(t.offset,!0);t.offset+=2;l=e.getInt16(t.offset,!0);t.offset+=2,l>=0?r.push({method:"strokeText",params:[u,i,o,l]}):r.push({method:"strokeText",params:[u,i,o]});break;case 10:r.push({method:"fill",params:[]});break;case 11:r.push({method:"stroke",params:[]});break;case 12:r.push({method:"setFillStyle",params:[Hs(e,t)]});break;case 13:r.push({method:"setStrokeStyle",params:[Hs(e,t)]});break;case 14:var c=e.getUint8(t.offset)/255;t.offset++,r.push({method:"setGlobalAlpha",params:[c]});break;case 15:var d=e.getUint16(t.offset,!0)/100;t.offset+=2,r.push({method:"setLineWidth",params:[d]});break;case 16:r.push({method:"setFont",params:[Ws(e,t)]});break;case 17:var h=e.getFloat32(t.offset,!0);t.offset+=4;var f=e.getFloat32(t.offset,!0);t.offset+=4;var p=e.getFloat32(t.offset,!0);t.offset+=4;var v=e.getFloat32(t.offset,!0);t.offset+=4;var y=e.getFloat32(t.offset,!0);t.offset+=4;var m=e.getUint8(t.offset);t.offset++,r.push({method:"arc",params:[h,f,p,v,y,1===m]});break;case 18:var g=e.getFloat32(t.offset,!0);t.offset+=4;var _=e.getFloat32(t.offset,!0);t.offset+=4;var b=e.getFloat32(t.offset,!0);t.offset+=4;var w=e.getFloat32(t.offset,!0);t.offset+=4;var k=e.getFloat32(t.offset,!0);t.offset+=4,r.push({method:"arcTo",params:[g,_,b,w,k]});break;case 19:var E=e.getFloat32(t.offset,!0);t.offset+=4;var S=e.getFloat32(t.offset,!0);t.offset+=4;i=e.getFloat32(t.offset,!0);t.offset+=4;o=e.getFloat32(t.offset,!0);t.offset+=4,r.push({method:"quadraticCurveTo",params:[E,S,i,o]});break;case 20:var A=e.getFloat32(t.offset,!0);t.offset+=4;var x=e.getFloat32(t.offset,!0);t.offset+=4;var C=e.getFloat32(t.offset,!0);t.offset+=4;var T=e.getFloat32(t.offset,!0);t.offset+=4;i=e.getFloat32(t.offset,!0);t.offset+=4;o=e.getFloat32(t.offset,!0);t.offset+=4,r.push({method:"bezierCurveTo",params:[A,x,C,T,i,o]});break;case 21:i=e.getInt16(t.offset,!0);t.offset+=2;o=e.getInt16(t.offset,!0);t.offset+=2;a=e.getInt16(t.offset,!0);t.offset+=2;s=e.getInt16(t.offset,!0);t.offset+=2,r.push({method:"rect",params:[i,o,a,s]});break;case 22:r.push({method:"save",params:[]});break;case 23:r.push({method:"restore",params:[]});break;case 24:var L=e.getFloat32(t.offset,!0);t.offset+=4;var O=e.getFloat32(t.offset,!0);t.offset+=4,r.push({method:"translate",params:[L,O]});break;case 25:var P=e.getFloat32(t.offset,!0);t.offset+=4,r.push({method:"rotate",params:[P]});break;case 26:var I=e.getFloat32(t.offset,!0);t.offset+=4;var N=e.getFloat32(t.offset,!0);t.offset+=4,r.push({method:"scale",params:[I,N]});break;case 27:var R=e.getFloat32(t.offset,!0);t.offset+=4;var D=e.getFloat32(t.offset,!0);t.offset+=4;var M=e.getFloat32(t.offset,!0);t.offset+=4;var F=e.getFloat32(t.offset,!0);t.offset+=4;var B=e.getFloat32(t.offset,!0);t.offset+=4;var j=e.getFloat32(t.offset,!0);t.offset+=4,r.push({method:"setTransform",params:[R,D,M,F,B,j]});break;case 28:R=e.getFloat32(t.offset,!0);t.offset+=4;D=e.getFloat32(t.offset,!0);t.offset+=4;M=e.getFloat32(t.offset,!0);t.offset+=4;F=e.getFloat32(t.offset,!0);t.offset+=4;B=e.getFloat32(t.offset,!0);t.offset+=4;j=e.getFloat32(t.offset,!0);t.offset+=4,r.push({method:"transform",params:[R,D,M,F,B,j]});break;case 29:var V=Ws(e,t),W=e.getUint8(t.offset);if(t.offset++,3===W){I=e.getFloat32(t.offset,!0);t.offset+=4;N=e.getFloat32(t.offset,!0);t.offset+=4;var H=e.getFloat32(t.offset,!0);t.offset+=4;var U=e.getFloat32(t.offset,!0);t.offset+=4;var G=e.getFloat32(t.offset,!0);t.offset+=4;var z=e.getFloat32(t.offset,!0);t.offset+=4;var Y=e.getFloat32(t.offset,!0);t.offset+=4;var q=e.getFloat32(t.offset,!0);t.offset+=4,r.push({method:"drawImage",params:[V,I,N,H,U,G,z,Y,q]})}else if(2===W){G=e.getFloat32(t.offset,!0);t.offset+=4;z=e.getFloat32(t.offset,!0);t.offset+=4;Y=e.getFloat32(t.offset,!0);t.offset+=4;q=e.getFloat32(t.offset,!0);t.offset+=4,r.push({method:"drawImage",params:[V,G,z,Y,q]})}else{G=e.getFloat32(t.offset,!0);t.offset+=4;z=e.getFloat32(t.offset,!0);t.offset+=4,r.push({method:"drawImage",params:[V,G,z]})}break;case 30:var X=e.getUint8(t.offset);t.offset++,r.push({method:"setTextAlign",params:[Ds[X]||"start"]});break;case 31:X=e.getUint8(t.offset);t.offset++,r.push({method:"setTextBaseline",params:[Ms[X]||"alphabetic"]});break;case 32:r.push({method:"clip",params:[]});break;case 33:X=e.getUint8(t.offset);t.offset++,r.push({method:"lineCap",params:[Fs[X]||"butt"]});break;case 34:X=e.getUint8(t.offset);t.offset++,r.push({method:"lineJoin",params:[Bs[X]||"miter"]});break;case 35:var K=e.getUint8(t.offset);t.offset++;for(var $=[],Z=0;Z<K;Z++)$.push(e.getUint16(t.offset,!0)/100),t.offset+=2;r.push({method:"setLineDash",params:[$]});break;case 36:var J=e.getFloat32(t.offset,!0);t.offset+=4,r.push({method:"lineDashOffset",params:[J]});break;case 37:J=e.getFloat32(t.offset,!0);t.offset+=4,r.push({method:"setShadowBlur",params:[J]});break;case 38:r.push({method:"setShadowColor",params:[Hs(e,t)]});break;case 39:J=e.getFloat32(t.offset,!0);t.offset+=4,r.push({method:"setShadowOffsetX",params:[J]});break;case 40:J=e.getFloat32(t.offset,!0);t.offset+=4,r.push({method:"setShadowOffsetY",params:[J]});break;case 41:X=e.getUint8(t.offset);t.offset++,r.push({method:"setGlobalCompositeOperation",params:[js[X]||"source-over"]})}}function zs(e){return e>=48&&e<=57?e-48:e-55}function Ys(e){var t=new DataView(e);if(t.byteLength<5)return[];if(80!==t.getUint8(0)||72!==t.getUint8(1)||1!==t.getUint8(2))return[];for(var n=t.getUint16(3,!0),r={offset:5},i=[],o=0;o<n&&!(r.offset>=t.byteLength);o++){var a=t.getUint8(r.offset);r.offset++,48===a?Us(t,r,i):Gs(t,r,a,i)}return i}function qs(e){if(!e||0===e.length)return[];var t=e[0];if(t instanceof ArrayBuffer)return Ys(t);if(t instanceof Uint8Array)return Ys(t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength));if("string"==typeof t){if(t.length>=6&&t.length%2==0&&91!==t.charCodeAt(0)&&function(e){for(var t=0;t<e.length;t++){var n=e.charCodeAt(t);if(!(n>=48&&n<=57||n>=65&&n<=70))return!1}return!0}(t))return Ys(function(e){for(var t=e.length/2,n=new Uint8Array(t),r=0;r<t;r++)n[r]=zs(e.charCodeAt(2*r))<<4|zs(e.charCodeAt(2*r+1));return n.buffer}(t));if(80===t.charCodeAt(0)&&72===t.charCodeAt(1))return Ys(function(e){for(var t=atob(e),n=new Uint8Array(t.length),r=0;r<t.length;r++)n[r]=t.charCodeAt(r);return n.buffer}(t));try{return JSON.parse(t)}catch(e){return[]}}return[]}function Xs(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Ks(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ks(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function Ks(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function $s(e,t,n){return t=vn(t),pn(e,Zs()?Reflect.construct(t,n||[],vn(e).constructor):t.apply(e,n))}function Zs(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Zs=function(){return!!e})()}function Js(e,t,n,r){var i=yn(vn(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof i?function(e){return i.apply(n,e)}:i}var Qs={};var eu=function(e){function t(e,n,r){var i;return x(this,t),(i=$s(this,t,[e,n,r])).tagName="CanvasView2D",i.dom=document.createElement("canvas"),i.ctx=null,i._imageCache={},i._gradientCache={},i._pendingActions=[],i._readyEmitted=!1,function(e,t){Qs[e]=t}(n,i),i}return gn(t,e),L(t,[{key:"mounted",value:function(){Js(t,"mounted",this,3)([]),this.dom.width&&this.dom.height&&(this.ctx=this.dom.getContext("2d")),this._checkReady()}},{key:"_ensureContext",value:function(){return this.ctx||(this.ctx=this.dom.getContext("2d")),this.ctx}},{key:"updateProperty",value:function(e,n){return"width"===e?(this.dom.width=n,this._ensureContext(),void this._checkReady()):"height"===e?(this.dom.height=n,this._ensureContext(),void this._checkReady()):void Js(t,"updateProperty",this,3)([e,n])}},{key:"_checkReady",value:function(){var e=this;if(!this._readyEmitted&&this.dom.width>0&&this.dom.height>0){var t,n;this._readyEmitted=!0;var r=function(){e.dispatchEvent("onReady",{})},i=null===(t=this.context)||void 0===t||null===(n=t.getModuleByName)||void 0===n?void 0:n.call(t,"UIManagerModule");i&&"function"==typeof i.addAfterCreateAction?i.addAfterCreateAction(r):requestAnimationFrame(r)}}},{key:"fillStyle",value:function(e){var t=this._ensureContext();if(t){var n=Array.isArray(e)?e[0]:e;"string"==typeof n&&(n.startsWith("AC")?t.fillStyle=this._parseLinearGradient(n):n.startsWith("AD")?t.fillStyle=this._parseRadialGradient(n):t.fillStyle=n)}}},{key:"strokeStyle",value:function(e){var t=this._ensureContext();if(t){var n=Array.isArray(e)?e[0]:e;if("string"==typeof n)if(n.startsWith("NC")||n.startsWith("AC")){var r=n.startsWith("NC")?"AC"+n.slice(2):n;t.strokeStyle=this._parseLinearGradient(r)}else n.startsWith("AD")?t.strokeStyle=this._parseRadialGradient(n):t.strokeStyle=n}}},{key:"_parseLinearGradient",value:function(e){var t=this._ensureContext();if(!t)return"#000000";for(var n=e.slice(2).split(","),r=parseFloat(n[0]),i=parseFloat(n[1]),o=parseFloat(n[2]),a=parseFloat(n[3]),s=t.createLinearGradient(r,i,o,a),u=4;u<n.length;u+=2)s.addColorStop(parseFloat(n[u]),n[u+1]);return s}},{key:"_parseRadialGradient",value:function(e){var t=this._ensureContext();if(!t)return"#000000";for(var n=e.slice(2).split(","),r=parseFloat(n[0]),i=parseFloat(n[1]),o=parseFloat(n[2]),a=parseFloat(n[3]),s=parseFloat(n[4]),u=parseFloat(n[5]),l=t.createRadialGradient(r,i,o,a,s,u),c=6;c<n.length;c+=2)l.addColorStop(parseFloat(n[c]),n[c+1]);return l}},{key:"fillRect",value:function(e){var t=this._ensureContext();!t||!e||e.length<4||t.fillRect(e[0],e[1],e[2],e[3])}},{key:"strokeRect",value:function(e){var t=this._ensureContext();!t||!e||e.length<4||t.strokeRect(e[0],e[1],e[2],e[3])}},{key:"clearRect",value:function(e){var t=this._ensureContext();!t||!e||e.length<4||t.clearRect(e[0],e[1],e[2],e[3])}},{key:"fillText",value:function(e){var t=this._ensureContext();!t||!e||e.length<3||t.fillText(e[0],e[1],e[2])}},{key:"strokeText",value:function(e){var t=this._ensureContext();!t||!e||e.length<3||t.strokeText(e[0],e[1],e[2])}},{key:"font",value:function(e){var t=this._ensureContext();t&&e&&(t.font=Array.isArray(e)?e[0]:e)}},{key:"textAlign",value:function(e){var t=this._ensureContext();t&&e&&(t.textAlign=Array.isArray(e)?e[0]:e)}},{key:"textBaseline",value:function(e){var t=this._ensureContext();t&&e&&(t.textBaseline=Array.isArray(e)?e[0]:e)}},{key:"lineWidth",value:function(e){var t=this._ensureContext();t&&e&&(t.lineWidth=Array.isArray(e)?e[0]:e)}},{key:"lineCap",value:function(e){var t=this._ensureContext();t&&e&&(t.lineCap=Array.isArray(e)?e[0]:e)}},{key:"lineJoin",value:function(e){var t=this._ensureContext();t&&e&&(t.lineJoin=Array.isArray(e)?e[0]:e)}},{key:"setLineDash",value:function(e){var t=this._ensureContext();t&&e&&t.setLineDash(Array.isArray(e)?e:[e])}},{key:"lineDashOffset",value:function(e){var t=this._ensureContext();t&&e&&(t.lineDashOffset=Array.isArray(e)?e[0]:e)}},{key:"shadowBlur",value:function(e){var t=this._ensureContext();t&&e&&(t.shadowBlur=Array.isArray(e)?e[0]:e)}},{key:"shadowColor",value:function(e){var t=this._ensureContext();t&&e&&(t.shadowColor=Array.isArray(e)?e[0]:e)}},{key:"shadowOffsetX",value:function(e){var t=this._ensureContext();t&&e&&(t.shadowOffsetX=Array.isArray(e)?e[0]:e)}},{key:"shadowOffsetY",value:function(e){var t=this._ensureContext();t&&e&&(t.shadowOffsetY=Array.isArray(e)?e[0]:e)}},{key:"globalAlpha",value:function(e){var t=this._ensureContext();t&&e&&(t.globalAlpha=Array.isArray(e)?e[0]:e)}},{key:"globalCompositeOperation",value:function(e){var t=this._ensureContext();t&&e&&(t.globalCompositeOperation=Array.isArray(e)?e[0]:e)}},{key:"beginPath",value:function(e){var t=this._ensureContext();t&&t.beginPath()}},{key:"closePath",value:function(e){var t=this._ensureContext();t&&t.closePath()}},{key:"moveTo",value:function(e){var t=this._ensureContext();!t||!e||e.length<2||t.moveTo(e[0],e[1])}},{key:"lineTo",value:function(e){var t=this._ensureContext();!t||!e||e.length<2||t.lineTo(e[0],e[1])}},{key:"arc",value:function(e){var t=this._ensureContext();!t||!e||e.length<5||t.arc(e[0],e[1],e[2],e[3],e[4],e.length>5&&e[5])}},{key:"arcTo",value:function(e){var t=this._ensureContext();!t||!e||e.length<5||t.arcTo(e[0],e[1],e[2],e[3],e[4])}},{key:"quadraticCurveTo",value:function(e){var t=this._ensureContext();!t||!e||e.length<4||t.quadraticCurveTo(e[0],e[1],e[2],e[3])}},{key:"bezierCurveTo",value:function(e){var t=this._ensureContext();!t||!e||e.length<6||t.bezierCurveTo(e[0],e[1],e[2],e[3],e[4],e[5])}},{key:"rect",value:function(e){var t=this._ensureContext();!t||!e||e.length<4||t.rect(e[0],e[1],e[2],e[3])}},{key:"fill",value:function(e){var t=this._ensureContext();t&&t.fill()}},{key:"stroke",value:function(e){var t=this._ensureContext();t&&t.stroke()}},{key:"clip",value:function(e){var t=this._ensureContext();t&&t.clip()}},{key:"save",value:function(e){var t=this._ensureContext();t&&t.save()}},{key:"restore",value:function(e){var t=this._ensureContext();t&&t.restore()}},{key:"translate",value:function(e){var t=this._ensureContext();!t||!e||e.length<2||t.translate(e[0],e[1])}},{key:"rotate",value:function(e){var t=this._ensureContext();t&&e&&t.rotate(Array.isArray(e)?e[0]:e)}},{key:"scale",value:function(e){var t=this._ensureContext();!t||!e||e.length<2||t.scale(e[0],e[1])}},{key:"transform",value:function(e){var t=this._ensureContext();!t||!e||e.length<6||t.transform(e[0],e[1],e[2],e[3],e[4],e[5])}},{key:"setTransform",value:function(e){var t=this._ensureContext();!t||!e||e.length<6||t.setTransform(e[0],e[1],e[2],e[3],e[4],e[5])}},{key:"loadImage",value:function(e){var t=Array.isArray(e)?e[0]:e;return t?{imageId:t,width:0,height:0}:{error:"No image source provided"}}},{key:"drawImage",value:function(e){var t=this;if(e&&!(e.length<3)){var n=e[0],r=this._imageCache[n];if(r)this._drawImageWithImg(r,e.slice(1));else{var i=new Image;i.onload=function(){t._imageCache[n]=i,t._drawImageWithImg(i,e.slice(1))},i.src=n}}}},{key:"_drawImageWithImg",value:function(e,t){var n=this._ensureContext();n&&(t.length>=8?n.drawImage(e,t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7]):t.length>=4?n.drawImage(e,t[0],t[1],t[2],t[3]):n.drawImage(e,t[0],t[1]))}},{key:"drawAction",value:function(e){var t=qs(e);if(t.length>0){var n,r=Xs(t);try{for(r.s();!(n=r.n()).done;){var i=n.value;this[i.method]&&this[i.method](i.params)}}catch(e){r.e(e)}finally{r.f()}}}},{key:"destoryView",value:function(e){this._imageCache={},this._gradientCache={}}},{key:"setVersion",value:function(e){}},{key:"setCurrentDensity",value:function(e){}},{key:"getContext2d",value:function(e){return this._ensureContext()}},{key:"createLinearGradient",value:function(e){}},{key:"createRadialGradient",value:function(e){}},{key:"createPattern",value:function(e){}},{key:"measureText",value:function(e){var t=this._ensureContext();if(!t||!e)return{width:0};var n=Array.isArray(e)?e[0]:e;return{width:t.measureText(n).width}}},{key:"setFillStyle",value:function(e){this.fillStyle(e)}},{key:"setStrokeStyle",value:function(e){this.strokeStyle(e)}},{key:"setLineWidth",value:function(e){this.lineWidth(e)}},{key:"setFont",value:function(e){this.font(e)}},{key:"setTextAlign",value:function(e){this.textAlign(e)}},{key:"setTextBaseline",value:function(e){this.textBaseline(e)}},{key:"setShadowBlur",value:function(e){this.shadowBlur(e)}},{key:"setShadowColor",value:function(e){this.shadowColor(e)}},{key:"setShadowOffsetX",value:function(e){this.shadowOffsetX(e)}},{key:"setShadowOffsetY",value:function(e){this.shadowOffsetY(e)}},{key:"setGlobalAlpha",value:function(e){this.globalAlpha(e)}},{key:"setGlobalCompositeOperation",value:function(e){this.globalCompositeOperation(e)}},{key:"beforeUnmount",value:function(){this._imageCache={},this._gradientCache={},delete Qs[this.id],Js(t,"beforeUnmount",this,3)([])}}])}(Bo);function tu(e,t,n){return t=vn(t),pn(e,nu()?Reflect.construct(t,n||[],vn(e).constructor):t.apply(e,n))}function nu(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(nu=function(){return!!e})()}var ru=function(e){function t(e,n,r){var i;return x(this,t),(i=tu(this,t,[e,n,r])).tagName="TransitionImageComponent",i.dom=document.createElement("div"),i.dom.style.cssText="\n display: block;\n background-size: cover;\n background-position: center;\n background-repeat: no-repeat;\n ",i._transitionDuration=300,i._currentSrc="",y(n,i),i}return gn(t,e),L(t,[{key:"updateProperty",value:function(e,n){switch(e){case"src":case"source":this._setSrc(n);break;case"transitionDuration":case"transition-duration":this._transitionDuration="number"==typeof n?n:parseInt(n)||300;break;case"resizeMode":this._setResizeMode(n);break;default:(r=t,i="updateProperty",o=this,s=yn(vn(1&(a=3)?r.prototype:r),i,o),2&a&&"function"==typeof s?function(e){return s.apply(o,e)}:s)([e,n])}var r,i,o,a,s}},{key:"_setSrc",value:function(e){if(!e)return this.dom.style.backgroundImage="",void(this._currentSrc="");var t="";return"string"==typeof e?t=e:"object"==typeof e&&e.uri&&(t=e.uri),(t=(0,dt.pb)(t))!==this._currentSrc?this._currentSrc?void this._transitionToImage(t):(this.dom.style.backgroundImage="url(".concat(t,")"),void(this._currentSrc=t)):void 0}},{key:"_transitionToImage",value:function(e){var t=this,n=new Image;n.onload=function(){t.dom.style.transition="opacity ".concat(t._transitionDuration/2,"ms ease-out"),t.dom.style.opacity="0",setTimeout(function(){t.dom.style.backgroundImage="url(".concat(e,")"),t._currentSrc=e,t.dom.style.transition="opacity ".concat(t._transitionDuration/2,"ms ease-in"),t.dom.style.opacity="1",setTimeout(function(){t.dom.style.transition=""},t._transitionDuration/2)},t._transitionDuration/2)},n.onerror=function(){},n.src=e}},{key:"_setResizeMode",value:function(e){var t={contain:"contain",cover:"cover",fill:"100% 100%",center:"auto",origin:"auto"}[e]||"cover";this.dom.style.backgroundSize=t}},{key:"setNextImage",value:function(e){var t=Array.isArray(e)?e[0]:e;t&&t!==this._currentSrc&&this._transitionToImage(t)}},{key:"setNextColor",value:function(e){var t=this,n=Array.isArray(e)?e[0]:e,r=this._formatColor(n);this.dom.style.transition="opacity ".concat(this._transitionDuration/2,"ms ease-out"),this.dom.style.opacity="0",setTimeout(function(){t.dom.style.backgroundImage="",t.dom.style.backgroundColor=r,t._currentSrc="",t.dom.style.transition="opacity ".concat(t._transitionDuration/2,"ms ease-in"),t.dom.style.opacity="1",setTimeout(function(){t.dom.style.transition=""},t._transitionDuration/2)},this._transitionDuration/2)}},{key:"setTransitionTime",value:function(e){var t=Array.isArray(e)?e[0]:e;this._transitionDuration="number"==typeof t?t:parseInt(t)||300}},{key:"_formatColor",value:function(e){if("number"==typeof e){var t=(e>>24&255)/255,n=e>>8&255,r=255&e;return"rgba(".concat(e>>16&255,", ").concat(n,", ").concat(r,", ").concat(t,")")}return e}}])}(Bo),iu=function(){return L(function e(t){x(this,e),this.context=t,this.name="",this.mode="normal"},[{key:"getDeviceInfo",value:(v=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",O(n,{}));case 1:case"end":return e.stop()}},e)})),function(){return v.apply(this,arguments)})},{key:"getESSDKInfo",value:(p=l(c.mark(function e(){var t,r,i,o,a=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t={eskit_ver_code:2.8,runtimePath:"/"},n.g.__ES_LAST_SDK_INFO__=t,r=a.length,i=new Array(r),o=0;o<r;o++)i[o]=a[o];return e.abrupt("return",O(i,t));case 1:case"end":return e.stop()}},e)})),function(){return p.apply(this,arguments)})},{key:"getESSDKVersionCode",value:(f=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",O(n,2.8));case 1:case"end":return e.stop()}},e)})),function(){return f.apply(this,arguments)})},{key:"getESSDKVersionName",value:(h=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",O(n,"web"));case 1:case"end":return e.stop()}},e)})),function(){return h.apply(this,arguments)})},{key:"getESPackageName",value:(d=l(c.mark(function e(){var t,n,r,i,o,a=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=globalThis,n=t&&t.__CONFIG__&&t.__CONFIG__.packageName?t.__CONFIG__.packageName:"web",r=a.length,i=new Array(r),o=0;o<r;o++)i[o]=a[o];return e.abrupt("return",O(i,n));case 1:case"end":return e.stop()}},e)})),function(){return d.apply(this,arguments)})},{key:"getESMiniProgramPath",value:(u=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",O(n,""));case 1:case"end":return e.stop()}},e)})),function(){return u.apply(this,arguments)})},{key:"getESAppFilePath",value:(s=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",O(n,""));case 1:case"end":return e.stop()}},e)})),function(){return s.apply(this,arguments)})},{key:"getESAppRuntimePath",value:(a=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",O(n,"/"));case 1:case"end":return e.stop()}},e)})),function(){return a.apply(this,arguments)})},{key:"getSupportSchemes",value:(o=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",O(n,[]));case 1:case"end":return e.stop()}},e)})),function(){return o.apply(this,arguments)})},{key:"sendESNativeMapEventTop",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return O(t,null)}},{key:"sendESNativeArrayEventTop",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return O(t,null)}},{key:"sendESNativeMapEventAll",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return O(t,null)}},{key:"sendESNativeArrayEventAll",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return O(t,null)}},{key:"launchESPageByArgs",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return O(t,null)}},{key:"launchESPage",value:(i=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",O(n,null));case 1:case"end":return e.stop()}},e)})),function(){return i.apply(this,arguments)})},{key:"launchNativeApp",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return O(t,null)}},{key:"launchNativeAppWithPackage",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return O(t,null)}},{key:"finish",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return O(t,null)}},{key:"finishAll",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return O(t,null)}},{key:"isModuleRegistered",value:(r=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",O(n,!1));case 1:case"end":return e.stop()}},e)})),function(){return r.apply(this,arguments)})},{key:"isComponentRegistered",value:(t=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",O(n,!1));case 1:case"end":return e.stop()}},e)})),function(){return t.apply(this,arguments)})},{key:"init",value:(e=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",P(n));case 1:case"end":return e.stop()}},e)})),function(){return e.apply(this,arguments)})},{key:"destroy",value:function(){}}]);var e,t,r,i,o,a,s,u,d,h,f,p,v}();function ou(){var e=globalThis;return e&&e.__localStorage||e&&e.localStorage||null}function au(e){return su.apply(this,arguments)}function su(){return(su=l(c.mark(function e(t){var n,r,i;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if((n=ou())&&n.getItem){e.next=1;break}return e.abrupt("return",null);case 1:if(!(r=n.getItem(t))||"function"!=typeof r.then){e.next=3;break}return e.next=2,r;case 2:i=e.sent,e.next=4;break;case 3:i=r;case 4:return e.abrupt("return",i);case 5:case"end":return e.stop()}},e)}))).apply(this,arguments)}function uu(e,t){return lu.apply(this,arguments)}function lu(){return(lu=l(c.mark(function e(t,n){var r,i;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if((r=ou())&&r.setItem){e.next=1;break}return e.abrupt("return",!1);case 1:if(!(i=r.setItem(t,n))||"function"!=typeof i.then){e.next=2;break}return e.next=2,i;case 2:return e.abrupt("return",!0);case 3:case"end":return e.stop()}},e)}))).apply(this,arguments)}var cu=function(){return L(function e(t){x(this,e),this.context=t,this.name="",this.mode="normal",this._name=""},[{key:"_key",value:function(e){return this._name?"".concat(this._name,":").concat(e):e}},{key:"initSharedPreferences",value:(h=l(c.mark(function e(t){var n,r,i,o=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(this._name=String(null!=t?t:""),n=o.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=o[i];return e.abrupt("return",O(r,!0));case 1:case"end":return e.stop()}},e,this)})),function(e){return h.apply(this,arguments)})},{key:"initESSharedPreferences",value:(d=l(c.mark(function e(t){var n,r,i,o=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(this._name=String(null!=t?t:""),n=o.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=o[i];return e.abrupt("return",O(r,!0));case 1:case"end":return e.stop()}},e,this)})),function(e){return d.apply(this,arguments)})},{key:"getBoolean",value:(u=l(c.mark(function e(t,n){var r,i,o,a,s=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,au(this._key(String(t)));case 1:for(r=e.sent,i=s.length,o=new Array(i>2?i-2:0),a=2;a<i;a++)o[a-2]=s[a];if(null!=r){e.next=2;break}return e.abrupt("return",O(o,!!n));case 2:if("true"!==r){e.next=3;break}return e.abrupt("return",O(o,!0));case 3:if("false"!==r){e.next=4;break}return e.abrupt("return",O(o,!1));case 4:if("1"!==r){e.next=5;break}return e.abrupt("return",O(o,!0));case 5:if("0"!==r){e.next=6;break}return e.abrupt("return",O(o,!1));case 6:return e.abrupt("return",O(o,!!n));case 7:case"end":return e.stop()}},e,this)})),function(e,t){return u.apply(this,arguments)})},{key:"putBoolean",value:(s=l(c.mark(function e(t,n){var r,i,o,a,s=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,uu(this._key(String(t)),n?"true":"false");case 1:for(r=e.sent,i=s.length,o=new Array(i>2?i-2:0),a=2;a<i;a++)o[a-2]=s[a];return e.abrupt("return",O(o,r));case 2:case"end":return e.stop()}},e,this)})),function(e,t){return s.apply(this,arguments)})},{key:"getInt",value:(a=l(c.mark(function e(t,n){var r,i,o,a,s,u=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,au(this._key(String(t)));case 1:for(r=e.sent,i=u.length,o=new Array(i>2?i-2:0),a=2;a<i;a++)o[a-2]=u[a];if(null!=r&&""!==r){e.next=2;break}return e.abrupt("return",O(o,Number(n)||0));case 2:return s=Number.parseInt(String(r),10),e.abrupt("return",O(o,Number.isFinite(s)?s:Number(n)||0));case 3:case"end":return e.stop()}},e,this)})),function(e,t){return a.apply(this,arguments)})},{key:"putInt",value:(o=l(c.mark(function e(t,n){var r,i,o,a,s=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,uu(this._key(String(t)),String(0|Number(n)));case 1:for(r=e.sent,i=s.length,o=new Array(i>2?i-2:0),a=2;a<i;a++)o[a-2]=s[a];return e.abrupt("return",O(o,r));case 2:case"end":return e.stop()}},e,this)})),function(e,t){return o.apply(this,arguments)})},{key:"getLong",value:(i=l(c.mark(function e(t,n){var r,i,o,a,s,u=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,au(this._key(String(t)));case 1:for(r=e.sent,i=u.length,o=new Array(i>2?i-2:0),a=2;a<i;a++)o[a-2]=u[a];if(null!=r&&""!==r){e.next=2;break}return e.abrupt("return",O(o,Number(n)||0));case 2:return s=Number.parseInt(String(r),10),e.abrupt("return",O(o,Number.isFinite(s)?s:Number(n)||0));case 3:case"end":return e.stop()}},e,this)})),function(e,t){return i.apply(this,arguments)})},{key:"putLong",value:(r=l(c.mark(function e(t,n){var r,i,o,a,s=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,uu(this._key(String(t)),String(Math.trunc(Number(n))));case 1:for(r=e.sent,i=s.length,o=new Array(i>2?i-2:0),a=2;a<i;a++)o[a-2]=s[a];return e.abrupt("return",O(o,r));case 2:case"end":return e.stop()}},e,this)})),function(e,t){return r.apply(this,arguments)})},{key:"getString",value:(n=l(c.mark(function e(t,n){var r,i,o,a,s=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,au(this._key(String(t)));case 1:for(r=e.sent,i=s.length,o=new Array(i>2?i-2:0),a=2;a<i;a++)o[a-2]=s[a];return e.abrupt("return",O(o,String(null==r?null!=n?n:"":r)));case 2:case"end":return e.stop()}},e,this)})),function(e,t){return n.apply(this,arguments)})},{key:"putString",value:(t=l(c.mark(function e(t,n){var r,i,o,a,s=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,uu(this._key(String(t)),String(null!=n?n:""));case 1:for(r=e.sent,i=s.length,o=new Array(i>2?i-2:0),a=2;a<i;a++)o[a-2]=s[a];return e.abrupt("return",O(o,r));case 2:case"end":return e.stop()}},e,this)})),function(e,n){return t.apply(this,arguments)})},{key:"init",value:(e=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",P(n));case 1:case"end":return e.stop()}},e)})),function(){return e.apply(this,arguments)})},{key:"destroy",value:function(){}}]);var e,t,n,r,i,o,a,s,u,d,h}();function du(){var e=navigator.userAgent,t="unknown",n="unknown",r="";if(/Windows/i.test(e)){n="windows";var i=e.match(/Windows NT (\d+\.?\d*)/);r=i?i[1]:""}else if(/Mac/i.test(e)){n="mac";var o=e.match(/Mac OS X (\d+[._]\d+[._]?\d*)/);r=o?o[1].replace(/_/g,"."):""}else if(/Linux/i.test(e))n="linux";else if(/Android/i.test(e)){n="android";var a=e.match(/Android (\d+\.?\d*\.?\d*)/);r=a?a[1]:""}else if(/iOS|iPhone|iPad/i.test(e)){n="ios";var s=e.match(/OS (\d+_\d+_?\d*)/);r=s?s[1].replace(/_/g,"."):""}return/Chrome/i.test(e)&&!/Edge|Edg/i.test(e)?t="chrome":/Safari/i.test(e)&&!/Chrome/i.test(e)?t="safari":/Firefox/i.test(e)?t="firefox":/Edge|Edg/i.test(e)&&(t="edge"),{browser:t,os:n,osVersion:r}}var hu=function(){return L(function e(t){x(this,e),this.context=t,this.name="",this.mode="normal"},[{key:"getDeviceInfo",value:(a=l(c.mark(function e(){var t,n,r,i,o,a,s,u,l=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=du(),n=t.browser,r=t.os,i=t.osVersion,o={deviceType:"web",deviceModel:n,deviceBrand:"web",osName:r,osVersion:i,screenWidth:window.screen.width||0,screenHeight:window.screen.height||0,screenDensity:window.devicePixelRatio||1,platform:"web"},a=l.length,s=new Array(a),u=0;u<a;u++)s[u]=l[u];return e.abrupt("return",O(s,o));case 1:case"end":return e.stop()}},e)})),function(){return a.apply(this,arguments)})},{key:"getSupportSchemes",value:(o=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",O(n,[]));case 1:case"end":return e.stop()}},e)})),function(){return o.apply(this,arguments)})},{key:"getVisiblePageSize",value:(i=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",O(n,{width:window.innerWidth,height:window.innerHeight}));case 1:case"end":return e.stop()}},e)})),function(){return i.apply(this,arguments)})},{key:"launchEsPage",value:(r=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",O(n,null));case 1:case"end":return e.stop()}},e)})),function(){return r.apply(this,arguments)})},{key:"launchNativeApp",value:(n=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",O(n,null));case 1:case"end":return e.stop()}},e)})),function(){return n.apply(this,arguments)})},{key:"launchNativeAppWithPackage",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return O(t,null)}},{key:"startService",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return O(t,null)}},{key:"finish",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return O(t,null)}},{key:"finishAll",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return O(t,null)}},{key:"callReflect",value:(t=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",O(n,null));case 1:case"end":return e.stop()}},e)})),function(){return t.apply(this,arguments)})},{key:"init",value:(e=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",P(n));case 1:case"end":return e.stop()}},e)})),function(){return e.apply(this,arguments)})},{key:"destroy",value:function(){}}]);var e,t,n,r,i,o,a}();function fu(){var e=globalThis;return e&&e.__localStorage||e&&e.localStorage||null}function pu(e){return vu.apply(this,arguments)}function vu(){return(vu=l(c.mark(function e(t){var n,r,i;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if((n=fu())&&n.getItem){e.next=1;break}return e.abrupt("return",null);case 1:if(!(r=n.getItem(t))||"function"!=typeof r.then){e.next=3;break}return e.next=2,r;case 2:i=e.sent,e.next=4;break;case 3:i=r;case 4:return e.abrupt("return",i);case 5:case"end":return e.stop()}},e)}))).apply(this,arguments)}function yu(e,t){return mu.apply(this,arguments)}function mu(){return(mu=l(c.mark(function e(t,n){var r,i;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if((r=fu())&&r.setItem){e.next=1;break}return e.abrupt("return",!1);case 1:if(!(i=r.setItem(t,n))||"function"!=typeof i.then){e.next=2;break}return e.next=2,i;case 2:return e.abrupt("return",!0);case 3:case"end":return e.stop()}},e)}))).apply(this,arguments)}var gu=function(){return L(function e(t){x(this,e),this.context=t,this.name="AndroidSharedPreferencesModule",this.mode="normal",this._name=""},[{key:"_key",value:function(e){return this._name?"".concat(this._name,":").concat(e):e}},{key:"initSharedPreferences",value:(h=l(c.mark(function e(t){var n,r,i,o=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(this._name=String(null!=t?t:""),n=o.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=o[i];return e.abrupt("return",O(r,!0));case 1:case"end":return e.stop()}},e,this)})),function(e){return h.apply(this,arguments)})},{key:"initESSharedPreferences",value:(d=l(c.mark(function e(t){var n,r,i,o=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(this._name=String(null!=t?t:""),n=o.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=o[i];return e.abrupt("return",O(r,!0));case 1:case"end":return e.stop()}},e,this)})),function(e){return d.apply(this,arguments)})},{key:"getBoolean",value:(u=l(c.mark(function e(t,n){var r,i,o,a,s=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,pu(this._key(String(t)));case 1:for(r=e.sent,i=s.length,o=new Array(i>2?i-2:0),a=2;a<i;a++)o[a-2]=s[a];if(null!=r){e.next=2;break}return e.abrupt("return",O(o,!!n));case 2:if("true"!==r){e.next=3;break}return e.abrupt("return",O(o,!0));case 3:if("false"!==r){e.next=4;break}return e.abrupt("return",O(o,!1));case 4:if("1"!==r){e.next=5;break}return e.abrupt("return",O(o,!0));case 5:if("0"!==r){e.next=6;break}return e.abrupt("return",O(o,!1));case 6:return e.abrupt("return",O(o,!!n));case 7:case"end":return e.stop()}},e,this)})),function(e,t){return u.apply(this,arguments)})},{key:"putBoolean",value:(s=l(c.mark(function e(t,n){var r,i,o,a,s=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,yu(this._key(String(t)),n?"true":"false");case 1:for(r=e.sent,i=s.length,o=new Array(i>2?i-2:0),a=2;a<i;a++)o[a-2]=s[a];return e.abrupt("return",O(o,r));case 2:case"end":return e.stop()}},e,this)})),function(e,t){return s.apply(this,arguments)})},{key:"getInt",value:(a=l(c.mark(function e(t,n){var r,i,o,a,s,u=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,pu(this._key(String(t)));case 1:for(r=e.sent,i=u.length,o=new Array(i>2?i-2:0),a=2;a<i;a++)o[a-2]=u[a];if(null!=r&&""!==r){e.next=2;break}return e.abrupt("return",O(o,Number(n)||0));case 2:return s=Number.parseInt(String(r),10),e.abrupt("return",O(o,Number.isFinite(s)?s:Number(n)||0));case 3:case"end":return e.stop()}},e,this)})),function(e,t){return a.apply(this,arguments)})},{key:"putInt",value:(o=l(c.mark(function e(t,n){var r,i,o,a,s=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,yu(this._key(String(t)),String(0|Number(n)));case 1:for(r=e.sent,i=s.length,o=new Array(i>2?i-2:0),a=2;a<i;a++)o[a-2]=s[a];return e.abrupt("return",O(o,r));case 2:case"end":return e.stop()}},e,this)})),function(e,t){return o.apply(this,arguments)})},{key:"getLong",value:(i=l(c.mark(function e(t,n){var r,i,o,a,s,u=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,pu(this._key(String(t)));case 1:for(r=e.sent,i=u.length,o=new Array(i>2?i-2:0),a=2;a<i;a++)o[a-2]=u[a];if(null!=r&&""!==r){e.next=2;break}return e.abrupt("return",O(o,Number(n)||0));case 2:return s=Number.parseInt(String(r),10),e.abrupt("return",O(o,Number.isFinite(s)?s:Number(n)||0));case 3:case"end":return e.stop()}},e,this)})),function(e,t){return i.apply(this,arguments)})},{key:"putLong",value:(r=l(c.mark(function e(t,n){var r,i,o,a,s=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,yu(this._key(String(t)),String(Math.trunc(Number(n))));case 1:for(r=e.sent,i=s.length,o=new Array(i>2?i-2:0),a=2;a<i;a++)o[a-2]=s[a];return e.abrupt("return",O(o,r));case 2:case"end":return e.stop()}},e,this)})),function(e,t){return r.apply(this,arguments)})},{key:"getString",value:(n=l(c.mark(function e(t,n){var r,i,o,a,s=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,pu(this._key(String(t)));case 1:for(r=e.sent,i=s.length,o=new Array(i>2?i-2:0),a=2;a<i;a++)o[a-2]=s[a];return e.abrupt("return",O(o,String(null==r?null!=n?n:"":r)));case 2:case"end":return e.stop()}},e,this)})),function(e,t){return n.apply(this,arguments)})},{key:"putString",value:(t=l(c.mark(function e(t,n){var r,i,o,a,s=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,yu(this._key(String(t)),String(null!=n?n:""));case 1:for(r=e.sent,i=s.length,o=new Array(i>2?i-2:0),a=2;a<i;a++)o[a-2]=s[a];return e.abrupt("return",O(o,r));case 2:case"end":return e.stop()}},e,this)})),function(e,n){return t.apply(this,arguments)})},{key:"init",value:(e=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",P(n));case 1:case"end":return e.stop()}},e)})),function(){return e.apply(this,arguments)})},{key:"destroy",value:function(){}}]);var e,t,n,r,i,o,a,s,u,d,h}(),_u=null;function bu(){var e=globalThis;return e&&e.__CONFIG__&&e.__CONFIG__.packageName?e.__CONFIG__.packageName:"web"}function wu(){return _u||(_u={versionCode:1,versionName:"1.0.0",packageName:bu(),channel:"web"}),_u}var ku=function(){return L(function e(t){x(this,e),this.context=t,this.name="AndroidDevelopModule"},[{key:"init",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t&&t.length?t[t.length-1]:null,i=wu();return r&&"function"==typeof r.resolve&&r.resolve(i),i}},{key:"destroy",value:function(){_u=null}},{key:"getDevelop",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t&&t.length?t[t.length-1]:null,i=wu();return r&&"function"==typeof r.resolve&&r.resolve(i),Promise.resolve(i)}},{key:"getPackageName",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t&&t.length?t[t.length-1]:null,i=bu();return r&&"function"==typeof r.resolve&&r.resolve(i),i}},{key:"getVersionName",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t&&t.length?t[t.length-1]:null,i=wu().versionName;return r&&"function"==typeof r.resolve&&r.resolve(i),i}},{key:"getVersionCode",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t&&t.length?t[t.length-1]:null,i=wu().versionCode;return r&&"function"==typeof r.resolve&&r.resolve(i),i}},{key:"getChannel",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t&&t.length?t[t.length-1]:null,i=wu().channel;return r&&"function"==typeof r.resolve&&r.resolve(i),i}},{key:"getVendor",value:function(){return this.getChannel.apply(this,arguments)}}])}(),Eu=null,Su=[],Au=!1,xu=0,Cu="";function Tu(){if(!Eu){(Eu=document.createElement("div")).id="__es_toast_container__",Eu.style.cssText="\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n pointer-events: none;\n z-index: 99998;\n ";var e=document.getElementById("main-container");if(e)e.appendChild(Eu);else{var t=document.getElementById("app");t?t.appendChild(Eu):(Eu.style.position="fixed",document.body.appendChild(Eu))}}return Eu}function Lu(e,t){var n=Date.now();if(!(e===Cu&&n-xu<100)){xu=n,Cu=e;Tu();Su.push({message:e,duration:t}),Ou()}}function Ou(){if(!Au&&0!==Su.length){Au=!0;var e=Su.shift(),t=e.message,n=e.duration,r=document.createElement("div");r.className="__es_toast__",r.textContent=t,r.style.cssText="\n position: absolute;\n bottom: 100px;\n left: 50%;\n transform: translateX(-50%);\n background-color: rgba(0, 0, 0, 0.85);\n color: #ffffff;\n padding: 16px 32px;\n border-radius: 12px;\n font-size: 24px;\n font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;\n max-width: 80%;\n text-align: center;\n z-index: 99999;\n pointer-events: none;\n opacity: 0;\n transition: opacity 200ms ease-in-out;\n box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);\n",Tu().appendChild(r),r.offsetHeight,r.style.opacity="1",setTimeout(function(){r.style.opacity="0",setTimeout(function(){r.parentNode&&r.parentNode.removeChild(r),Au=!1,Ou()},200)},n)}}var Pu=function(){return L(function e(t){x(this,e),this.context=t,this.name="",this.mode="normal"},[{key:"showToast",value:function(e){"string"!=typeof e&&(e=String(e)),Lu(e,2e3)}},{key:"showLongToast",value:function(e){"string"!=typeof e&&(e=String(e)),Lu(e,3500)}},{key:"showShortToast",value:function(e){"string"!=typeof e&&(e=String(e)),Lu(e,2e3)}},{key:"destroy",value:function(){Eu&&Eu.parentNode&&(Eu.parentNode.removeChild(Eu),Eu=null),Su=[],Au=!1}},{key:"init",value:function(){return Promise.resolve(!0)}}])}(),Iu=(new Pu,function(){return L(function e(t){x(this,e),this.context=t,this.name="",this.mode="normal",this.enabled=!0},[{key:"init",value:(t=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",P(n));case 1:case"end":return e.stop()}},e)})),function(){return t.apply(this,arguments)})},{key:"destroy",value:function(){}},{key:"v",value:function(e){var t;if(this.enabled){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];(t=console).log.apply(t,["[V][".concat(e,"]")].concat(r))}}},{key:"d",value:function(e){var t;if(this.enabled){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];(t=console).debug.apply(t,["[D][".concat(e,"]")].concat(r))}}},{key:"i",value:function(e){var t;if(this.enabled){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];(t=console).info.apply(t,["[I][".concat(e,"]")].concat(r))}}},{key:"w",value:function(e){var t;if(this.enabled){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];(t=console).warn.apply(t,["[W][".concat(e,"]")].concat(r))}}},{key:"e",value:function(e){var t;if(this.enabled){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];(t=console).error.apply(t,["[E][".concat(e,"]")].concat(r))}}},{key:"f",value:function(e){var t;if(this.enabled){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];(t=console).error.apply(t,["[F][".concat(e,"]")].concat(r))}}},{key:"getEsInfo",value:(e=l(c.mark(function e(){var t,n,r,i,o=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t={version:"web",platform:"web"},n=o.length,r=new Array(n),i=0;i<n;i++)r[i]=o[i];return e.abrupt("return",O(r,t));case 1:case"end":return e.stop()}},e)})),function(){return e.apply(this,arguments)})},{key:"setEnabled",value:function(e){this.enabled=e}},{key:"isEnabled",value:function(){return this.enabled}}]);var e,t}());var Nu={cornerRadius:0,cornerEnabled:!1,borderColor:"#FFFFFF",borderColorEnabled:!1,borderWidth:2,borderWidthEnabled:!1,borderInset:0,borderInsetEnabled:!1,innerBorderEnabled:!0,focusScale:1};function Ru(){var e=n.g.__TV_FOCUS_MANAGER__;e&&"function"==typeof e.updateFocusConfig&&e.updateFocusConfig(Nu)}var Du=function(){return L(function e(t){x(this,e),this.context=t,this.name="",this.mode="normal"},[{key:"setDefaultFocusBorderCorner",value:function(e){Nu.cornerRadius="number"==typeof e?e:0,Nu.cornerEnabled=!0,Ru();for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return O(n,null)}},{key:"setDefaultFocusBorderColor",value:function(e){Nu.borderColor=e||"#FFFFFF",Nu.borderColorEnabled=!0,Ru();for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return O(n,null)}},{key:"setDefaultFocusBorderWidth",value:function(e){Nu.borderWidth="number"==typeof e?e:2,Nu.borderWidthEnabled=!0,Ru();for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return O(n,null)}},{key:"setFocusBorderInsetValue",value:function(e){Nu.borderInset="number"==typeof e?e:0,Nu.borderInsetEnabled=!0,Ru();for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return O(n,null)}},{key:"setDefaultFocusInnerBorderEnable",value:function(e){Nu.innerBorderEnabled=!0===e,Ru();for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return O(n,null)}},{key:"setDefaultPlaceholderFocusScale",value:function(e){Nu.focusScale="number"==typeof e?e:1,Ru();for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return O(n,null)}},{key:"getFocusConfig",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return O(t,Nu)}},{key:"init",value:(e=l(c.mark(function e(){var t,n,r,i,o=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=o.length,n=new Array(t),r=0;r<t;r++)n[r]=o[r];return(i=n&&n.length?n[n.length-1]:null)&&"function"==typeof i.resolve&&i.resolve(!0),e.abrupt("return",Promise.resolve(!0));case 1:case"end":return e.stop()}},e)})),function(){return e.apply(this,arguments)})},{key:"destroy",value:function(){}}]);var e}();new Du;function Mu(){var e=navigator.connection||navigator.mozConnection||navigator.webkitConnection;return e?{effectiveType:e.effectiveType||"unknown",type:e.type||"unknown",downlink:e.downlink||0,rtt:e.rtt||0,saveData:e.saveData||!1}:{effectiveType:"unknown",type:"unknown",downlink:0,rtt:0,saveData:!1}}var Fu=null;function Bu(){return Fu||(Fu=function(){var e=navigator.userAgent,t=navigator.platform,n="unknown",r="";/Chrome\/(\d+\.?\d*)/i.test(e)&&!/Edge|Edg/i.test(e)?(n="Chrome",r=RegExp.$1):/Safari\/(\d+\.?\d*)/i.test(e)&&!/Chrome/i.test(e)?(n="Safari",r=RegExp.$1):/Firefox\/(\d+\.?\d*)/i.test(e)?(n="Firefox",r=RegExp.$1):/Edge?\/(\d+\.?\d*)/i.test(e)&&(n="Edge",r=RegExp.$1);var i="unknown",o="";if(/Windows NT (\d+\.?\d*)/i.test(e))i="Windows",o=RegExp.$1;else if(/Mac OS X (\d+[._]\d+[._]?\d*)/i.test(e))i="macOS",o=RegExp.$1.replace(/_/g,".");else if(/Android (\d+\.?\d*\.?\d*)/i.test(e))i="Android",o=RegExp.$1;else if(/iOS|iPhone OS|iPad/i.test(e)){i="iOS";var a=e.match(/OS (\d+_\d+_?\d*)/i);a&&(o=a[1].replace(/_/g,"."))}else/Linux/i.test(e)&&(i="Linux");return{browser:n,browserVersion:r,os:i,osVersion:o,platform:t,screenWidth:window.screen.width||0,screenHeight:window.screen.height||0,devicePixelRatio:window.devicePixelRatio||1,colorDepth:window.screen.colorDepth||24,cpuCores:navigator.hardwareConcurrency||4,memory:navigator.deviceMemory||4,ua:e}}()),Fu}var ju=function(){return L(function e(t){x(this,e),this.context=t,this.name="",this.mode="normal"},[{key:"getDeviceBrand",value:(X=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(Bu(),t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",O(n,"Web"));case 1:case"end":return e.stop()}},e)})),function(){return X.apply(this,arguments)})},{key:"getDeviceModel",value:(q=l(c.mark(function e(){var t,n,r,i,o=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=Bu(),n=o.length,r=new Array(n),i=0;i<n;i++)r[i]=o[i];return e.abrupt("return",O(r,t.browser||"Browser"));case 1:case"end":return e.stop()}},e)})),function(){return q.apply(this,arguments)})},{key:"getDeviceCpu",value:(Y=l(c.mark(function e(){var t,n,r,i,o=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=Bu(),n=o.length,r=new Array(n),i=0;i<n;i++)r[i]=o[i];return e.abrupt("return",O(r,"".concat(t.cpuCores," cores")));case 1:case"end":return e.stop()}},e)})),function(){return Y.apply(this,arguments)})},{key:"getDeviceCpuCores",value:(z=l(c.mark(function e(){var t,n,r,i,o=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=Bu(),n=o.length,r=new Array(n),i=0;i<n;i++)r[i]=o[i];return e.abrupt("return",O(r,t.cpuCores));case 1:case"end":return e.stop()}},e)})),function(){return z.apply(this,arguments)})},{key:"getDeviceMemory",value:(G=l(c.mark(function e(){var t,n,r,i,o=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=Bu(),n=o.length,r=new Array(n),i=0;i<n;i++)r[i]=o[i];return e.abrupt("return",O(r,t.memory));case 1:case"end":return e.stop()}},e)})),function(){return G.apply(this,arguments)})},{key:"getDeviceStorage",value:(U=l(c.mark(function e(){var t,n,r,i,o=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=o.length,n=new Array(t),r=0;r<t;r++)n[r]=o[r];if(!navigator.storage||!navigator.storage.estimate){e.next=4;break}return e.prev=1,e.next=2,navigator.storage.estimate();case 2:return i=e.sent,e.abrupt("return",O(n,i.quota||0));case 3:e.prev=3,e.catch(1);case 4:return e.abrupt("return",O(n,0));case 5:case"end":return e.stop()}},e,null,[[1,3]])})),function(){return U.apply(this,arguments)})},{key:"getDeviceResolution",value:(H=l(c.mark(function e(){var t,n,r,i,o=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=Bu(),n=o.length,r=new Array(n),i=0;i<n;i++)r[i]=o[i];return e.abrupt("return",O(r,"".concat(t.screenWidth,"x").concat(t.screenHeight)));case 1:case"end":return e.stop()}},e)})),function(){return H.apply(this,arguments)})},{key:"getDevice5G",value:(W=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(Mu(),t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",O(n,!1));case 1:case"end":return e.stop()}},e)})),function(){return W.apply(this,arguments)})},{key:"getDeviceLinkSpeed",value:(V=l(c.mark(function e(){var t,n,r,i,o=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=Mu(),n=o.length,r=new Array(n),i=0;i<n;i++)r[i]=o[i];return e.abrupt("return",O(r,t.downlink));case 1:case"end":return e.stop()}},e)})),function(){return V.apply(this,arguments)})},{key:"getDeviceManufacture",value:(j=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",O(n,"Web"));case 1:case"end":return e.stop()}},e)})),function(){return j.apply(this,arguments)})},{key:"getDeviceBoard",value:(B=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",O(n,"Web"));case 1:case"end":return e.stop()}},e)})),function(){return B.apply(this,arguments)})},{key:"getDevicePlatform",value:(F=l(c.mark(function e(){var t,n,r,i,o=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=Bu(),n=o.length,r=new Array(n),i=0;i<n;i++)r[i]=o[i];return e.abrupt("return",O(r,t.platform||"Web"));case 1:case"end":return e.stop()}},e)})),function(){return F.apply(this,arguments)})},{key:"getDeviceHard",value:(M=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",O(n,"Web"));case 1:case"end":return e.stop()}},e)})),function(){return M.apply(this,arguments)})},{key:"getDeviceArchitecture",value:(D=l(c.mark(function e(){var t,n,r,i,o=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=Bu(),n=o.length,r=new Array(n),i=0;i<n;i++)r[i]=o[i];if(!/arm|aarch64/i.test(t.ua)){e.next=1;break}return e.abrupt("return",O(r,"arm64"));case 1:if(!/x86_64|amd64/i.test(t.ua)){e.next=2;break}return e.abrupt("return",O(r,"x86_64"));case 2:return e.abrupt("return",O(r,"unknown"));case 3:case"end":return e.stop()}},e)})),function(){return D.apply(this,arguments)})},{key:"getDeviceClockSpeed",value:(R=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",O(n,0));case 1:case"end":return e.stop()}},e)})),function(){return R.apply(this,arguments)})},{key:"getDeviceAndroidVersion",value:(N=l(c.mark(function e(){var t,n,r,i,o=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=Bu(),n=o.length,r=new Array(n),i=0;i<n;i++)r[i]=o[i];if("Android"!==t.os){e.next=1;break}return e.abrupt("return",O(r,t.osVersion));case 1:return e.abrupt("return",O(r,""));case 2:case"end":return e.stop()}},e)})),function(){return N.apply(this,arguments)})},{key:"getDeviceApiVersion",value:(I=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",O(n,0));case 1:case"end":return e.stop()}},e)})),function(){return I.apply(this,arguments)})},{key:"getDeviceAndroidId",value:(T=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",O(n,""));case 1:case"end":return e.stop()}},e)})),function(){return T.apply(this,arguments)})},{key:"getDeviceBuildId",value:(C=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",O(n,"web"));case 1:case"end":return e.stop()}},e)})),function(){return C.apply(this,arguments)})},{key:"getDeviceRoot",value:(A=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",O(n,!1));case 1:case"end":return e.stop()}},e)})),function(){return A.apply(this,arguments)})},{key:"getDeviceFreeStore",value:(S=l(c.mark(function e(){var t,n,r,i,o=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=o.length,n=new Array(t),r=0;r<t;r++)n[r]=o[r];if(!navigator.storage||!navigator.storage.estimate){e.next=4;break}return e.prev=1,e.next=2,navigator.storage.estimate();case 2:return i=e.sent,e.abrupt("return",O(n,(i.quota||0)-(i.usage||0)));case 3:e.prev=3,e.catch(1);case 4:return e.abrupt("return",O(n,0));case 5:case"end":return e.stop()}},e,null,[[1,3]])})),function(){return S.apply(this,arguments)})},{key:"getNetworkState",value:(E=l(c.mark(function e(){var t,n,r,i,o=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=Mu(),n=o.length,r=new Array(n),i=0;i<n;i++)r[i]=o[i];return e.abrupt("return",O(r,{connected:navigator.onLine,type:t.effectiveType}));case 1:case"end":return e.stop()}},e)})),function(){return E.apply(this,arguments)})},{key:"getNetworkType",value:(k=l(c.mark(function e(){var t,n,r,i,o=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=Mu(),n=o.length,r=new Array(n),i=0;i<n;i++)r[i]=o[i];return e.abrupt("return",O(r,t.effectiveType));case 1:case"end":return e.stop()}},e)})),function(){return k.apply(this,arguments)})},{key:"getSSID",value:(w=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",O(n,""));case 1:case"end":return e.stop()}},e)})),function(){return w.apply(this,arguments)})},{key:"getMac",value:(b=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",O(n,""));case 1:case"end":return e.stop()}},e)})),function(){return b.apply(this,arguments)})},{key:"getIp",value:(_=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",O(n,""));case 1:case"end":return e.stop()}},e)})),function(){return _.apply(this,arguments)})},{key:"getDeviceDns",value:(g=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",O(n,""));case 1:case"end":return e.stop()}},e)})),function(){return g.apply(this,arguments)})},{key:"getWifiVersion",value:(m=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",O(n,""));case 1:case"end":return e.stop()}},e)})),function(){return m.apply(this,arguments)})},{key:"getDisplayInformation",value:(y=l(c.mark(function e(){var t,n,r,i,o=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=Bu(),n=o.length,r=new Array(n),i=0;i<n;i++)r[i]=o[i];return e.abrupt("return",O(r,{width:t.screenWidth,height:t.screenHeight,density:t.devicePixelRatio,colorDepth:t.colorDepth}));case 1:case"end":return e.stop()}},e)})),function(){return y.apply(this,arguments)})},{key:"getGpuInfo",value:(v=l(c.mark(function e(){var t,n,r,i,o,a,s=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=s.length,n=new Array(t),r=0;r<t;r++)n[r]=s[r];if(e.prev=1,i=document.createElement("canvas"),!(o=i.getContext("webgl")||i.getContext("experimental-webgl"))){e.next=2;break}if(!(a=o.getExtension("WEBGL_debug_renderer_info"))){e.next=2;break}return e.abrupt("return",O(n,{vendor:o.getParameter(a.UNMASKED_VENDOR_WEBGL),renderer:o.getParameter(a.UNMASKED_RENDERER_WEBGL)}));case 2:e.next=4;break;case 3:e.prev=3,e.catch(1);case 4:return e.abrupt("return",O(n,{vendor:"unknown",renderer:"unknown"}));case 5:case"end":return e.stop()}},e,null,[[1,3]])})),function(){return v.apply(this,arguments)})},{key:"getBaseInfo",value:(p=l(c.mark(function e(){var t,n,r,i,o,a=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=Bu(),n=Mu(),r=a.length,i=new Array(r),o=0;o<r;o++)i[o]=a[o];return e.abrupt("return",O(i,{brand:"Web",model:t.browser,os:t.os,osVersion:t.osVersion,platform:t.platform,screenWidth:t.screenWidth,screenHeight:t.screenHeight,density:t.devicePixelRatio,cpuCores:t.cpuCores,memory:t.memory,networkType:n.effectiveType}));case 1:case"end":return e.stop()}},e)})),function(){return p.apply(this,arguments)})},{key:"getSystemInfo",value:(f=l(c.mark(function e(){var t,n,r,i,o=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=Bu(),n=o.length,r=new Array(n),i=0;i<n;i++)r[i]=o[i];return e.abrupt("return",O(r,{os:t.os,osVersion:t.osVersion,browser:t.browser,browserVersion:t.browserVersion,platform:t.platform,language:navigator.language,userAgent:t.ua}));case 1:case"end":return e.stop()}},e)})),function(){return f.apply(this,arguments)})},{key:"getCpuInfo",value:(h=l(c.mark(function e(){var t,n,r,i,o=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=Bu(),n=o.length,r=new Array(n),i=0;i<n;i++)r[i]=o[i];return e.abrupt("return",O(r,{cores:t.cpuCores,memory:t.memory}));case 1:case"end":return e.stop()}},e)})),function(){return h.apply(this,arguments)})},{key:"getAndroidInfo",value:(d=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",O(n,null));case 1:case"end":return e.stop()}},e)})),function(){return d.apply(this,arguments)})},{key:"getStoreInfo",value:(u=l(c.mark(function e(){var t,n,r,i,o=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=o.length,n=new Array(t),r=0;r<t;r++)n[r]=o[r];if(!navigator.storage||!navigator.storage.estimate){e.next=4;break}return e.prev=1,e.next=2,navigator.storage.estimate();case 2:return i=e.sent,e.abrupt("return",O(n,{total:i.quota||0,used:i.usage||0,free:(i.quota||0)-(i.usage||0)}));case 3:e.prev=3,e.catch(1);case 4:return e.abrupt("return",O(n,{total:0,used:0,free:0}));case 5:case"end":return e.stop()}},e,null,[[1,3]])})),function(){return u.apply(this,arguments)})},{key:"getNetInfo",value:(s=l(c.mark(function e(){var t,n,r,i,o=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=Mu(),n=o.length,r=new Array(n),i=0;i<n;i++)r[i]=o[i];return e.abrupt("return",O(r,{online:navigator.onLine,type:t.effectiveType,downlink:t.downlink,rtt:t.rtt,saveData:t.saveData}));case 1:case"end":return e.stop()}},e)})),function(){return s.apply(this,arguments)})},{key:"getOutIp",value:(a=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",O(n,""));case 1:case"end":return e.stop()}},e)})),function(){return a.apply(this,arguments)})},{key:"getUsbInfo",value:(o=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",O(n,[]));case 1:case"end":return e.stop()}},e)})),function(){return o.apply(this,arguments)})},{key:"getBluetoothInfo",value:(i=l(c.mark(function e(){var t,n,r,i,o=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:t="bluetooth"in navigator;for(n=o.length,r=new Array(n),i=0;i<n;i++)r[i]=o[i];return e.abrupt("return",O(r,{available:t,devices:[]}));case 1:case"end":return e.stop()}},e)})),function(){return i.apply(this,arguments)})},{key:"permissionHandler",value:(r=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",O(n,{granted:!0}));case 1:case"end":return e.stop()}},e)})),function(){return r.apply(this,arguments)})},{key:"getNetworkProtocol",value:(n=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",O(n,"https:"===location.protocol?"https":"http"));case 1:case"end":return e.stop()}},e)})),function(){return n.apply(this,arguments)})},{key:"getNetworkSpeed",value:(t=l(c.mark(function e(){var t,n,r,i,o=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=Mu(),n=o.length,r=new Array(n),i=0;i<n;i++)r[i]=o[i];return e.abrupt("return",O(r,t.downlink));case 1:case"end":return e.stop()}},e)})),function(){return t.apply(this,arguments)})},{key:"init",value:(e=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",P(n));case 1:case"end":return e.stop()}},e)})),function(){return e.apply(this,arguments)})},{key:"destroy",value:function(){}}]);var e,t,n,r,i,o,a,s,u,d,h,f,p,v,y,m,g,_,b,w,k,E,S,A,C,T,I,N,R,D,M,F,B,j,V,W,H,U,G,z,Y,q,X}();new ju;function Vu(e,t){return e&&e.packageName?"".concat("es_group_data_").concat(e.packageName,"_").concat(t):null}function Wu(e,t,n){var r=Vu(e,t);if(!r)return Promise.resolve(n);try{var i=localStorage.getItem(r);if(i&&""!==i){var o=JSON.parse(i);if(o&&void 0!==o.data)return Promise.resolve(o.data)}}catch(e){}return Promise.resolve(n)}function Hu(e,t,n,r,i){var o=Vu(e,t);if(!o)return Promise.resolve(!1);try{var a={mode:r||0,type:i,secretKey:(null==e?void 0:e.secretKey)||"",data:n};return localStorage.setItem(o,JSON.stringify(a)),Promise.resolve(!0)}catch(e){return Promise.resolve(!1)}}var Uu=0,Gu=1,zu=3,Yu=4,qu=5,Xu=6,Ku=function(){return L(function e(t){x(this,e),this.context=t,this.name="",this.mode="normal"},[{key:"getBoolean",value:(p=l(c.mark(function e(t,n,r){var i,o,a,s,u=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,Wu(t,n,r);case 1:for(i=e.sent,o=u.length,a=new Array(o>3?o-3:0),s=3;s<o;s++)a[s-3]=u[s];return e.abrupt("return",O(a,i));case 2:case"end":return e.stop()}},e)})),function(e,t,n){return p.apply(this,arguments)})},{key:"putBoolean",value:(f=l(c.mark(function e(t,n,r,i){var o,a,s,u,l=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,Hu(t,n,r,i,Yu);case 1:for(o=e.sent,a=l.length,s=new Array(a>4?a-4:0),u=4;u<a;u++)s[u-4]=l[u];return e.abrupt("return",O(s,o));case 2:case"end":return e.stop()}},e)})),function(e,t,n,r){return f.apply(this,arguments)})},{key:"getInt",value:(h=l(c.mark(function e(t,n,r){var i,o,a,s,u=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,Wu(t,n,r);case 1:for(i=e.sent,o=u.length,a=new Array(o>3?o-3:0),s=3;s<o;s++)a[s-3]=u[s];return e.abrupt("return",O(a,i));case 2:case"end":return e.stop()}},e)})),function(e,t,n){return h.apply(this,arguments)})},{key:"putInt",value:(d=l(c.mark(function e(t,n,r,i){var o,a,s,u,l=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,Hu(t,n,r,i,Uu);case 1:for(o=e.sent,a=l.length,s=new Array(a>4?a-4:0),u=4;u<a;u++)s[u-4]=l[u];return e.abrupt("return",O(s,o));case 2:case"end":return e.stop()}},e)})),function(e,t,n,r){return d.apply(this,arguments)})},{key:"getLong",value:(u=l(c.mark(function e(t,n,r){var i,o,a,s,u=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,Wu(t,n,r);case 1:for(i=e.sent,o=u.length,a=new Array(o>3?o-3:0),s=3;s<o;s++)a[s-3]=u[s];return e.abrupt("return",O(a,i));case 2:case"end":return e.stop()}},e)})),function(e,t,n){return u.apply(this,arguments)})},{key:"putLong",value:(s=l(c.mark(function e(t,n,r,i){var o,a,s,u,l=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,Hu(t,n,r,i,Gu);case 1:for(o=e.sent,a=l.length,s=new Array(a>4?a-4:0),u=4;u<a;u++)s[u-4]=l[u];return e.abrupt("return",O(s,o));case 2:case"end":return e.stop()}},e)})),function(e,t,n,r){return s.apply(this,arguments)})},{key:"getString",value:(a=l(c.mark(function e(t,n,r){var i,o,a,s,u=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,Wu(t,n,r);case 1:for(i=e.sent,o=u.length,a=new Array(o>3?o-3:0),s=3;s<o;s++)a[s-3]=u[s];return e.abrupt("return",O(a,i));case 2:case"end":return e.stop()}},e)})),function(e,t,n){return a.apply(this,arguments)})},{key:"putString",value:(o=l(c.mark(function e(t,n,r,i){var o,a,s,u,l=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,Hu(t,n,r,i,zu);case 1:for(o=e.sent,a=l.length,s=new Array(a>4?a-4:0),u=4;u<a;u++)s[u-4]=l[u];return e.abrupt("return",O(s,o));case 2:case"end":return e.stop()}},e)})),function(e,t,n,r){return o.apply(this,arguments)})},{key:"getArray",value:(i=l(c.mark(function e(t,n,r){var i,o,a,s,u=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,Wu(t,n,r);case 1:for(i=e.sent,o=u.length,a=new Array(o>3?o-3:0),s=3;s<o;s++)a[s-3]=u[s];return e.abrupt("return",O(a,i));case 2:case"end":return e.stop()}},e)})),function(e,t,n){return i.apply(this,arguments)})},{key:"putArray",value:(r=l(c.mark(function e(t,n,r,i){var o,a,s,u,l=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,Hu(t,n,r,i,Xu);case 1:for(o=e.sent,a=l.length,s=new Array(a>4?a-4:0),u=4;u<a;u++)s[u-4]=l[u];return e.abrupt("return",O(s,o));case 2:case"end":return e.stop()}},e)})),function(e,t,n,i){return r.apply(this,arguments)})},{key:"getMap",value:(n=l(c.mark(function e(t,n,r){var i,o,a,s,u=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,Wu(t,n,r);case 1:for(i=e.sent,o=u.length,a=new Array(o>3?o-3:0),s=3;s<o;s++)a[s-3]=u[s];return e.abrupt("return",O(a,i));case 2:case"end":return e.stop()}},e)})),function(e,t,r){return n.apply(this,arguments)})},{key:"putMap",value:(t=l(c.mark(function e(t,n,r,i){var o,a,s,u,l=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,Hu(t,n,r,i,qu);case 1:for(o=e.sent,a=l.length,s=new Array(a>4?a-4:0),u=4;u<a;u++)s[u-4]=l[u];return e.abrupt("return",O(s,o));case 2:case"end":return e.stop()}},e)})),function(e,n,r,i){return t.apply(this,arguments)})},{key:"init",value:(e=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",P(n));case 1:case"end":return e.stop()}},e)})),function(){return e.apply(this,arguments)})},{key:"destroy",value:function(){}}]);var e,t,n,r,i,o,a,s,u,d,h,f,p}(),$u=(new Ku,function(){return L(function e(t){x(this,e),this.context=t,this.name="",this.userId="",this.level=0,this.enabled=!0},[{key:"init",value:(o=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",P(n));case 1:case"end":return e.stop()}},e)})),function(){return o.apply(this,arguments)})},{key:"destroy",value:function(){}},{key:"setUserId",value:function(e){this.userId=e}},{key:"initLog",value:(i=l(c.mark(function e(t,n,r){var i,o,a,s=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(this.level=n,i=s.length,o=new Array(i>3?i-3:0),a=3;a<i;a++)o[a-3]=s[a];return e.abrupt("return",O(o,!0));case 1:case"end":return e.stop()}},e,this)})),function(e,t,n){return i.apply(this,arguments)})},{key:"setLevel",value:(r=l(c.mark(function e(t){var n,r,i,o=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(this.level=t,n=o.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=o[i];return e.abrupt("return",O(r,!0));case 1:case"end":return e.stop()}},e,this)})),function(e){return r.apply(this,arguments)})},{key:"v",value:function(e){var t;if(this.enabled&&!(this.level>0)){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];(t=console).log.apply(t,["[V][".concat(e,"]")].concat(r))}}},{key:"d",value:function(e){var t;if(this.enabled&&!(this.level>1)){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];(t=console).debug.apply(t,["[D][".concat(e,"]")].concat(r))}}},{key:"i",value:function(e){var t;if(this.enabled&&!(this.level>2)){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];(t=console).info.apply(t,["[I][".concat(e,"]")].concat(r))}}},{key:"w",value:function(e){var t;if(this.enabled&&!(this.level>3)){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];(t=console).warn.apply(t,["[W][".concat(e,"]")].concat(r))}}},{key:"e",value:function(e){var t;if(this.enabled&&!(this.level>4)){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];(t=console).error.apply(t,["[E][".concat(e,"]")].concat(r))}}},{key:"flush",value:function(){}},{key:"getVersion",value:(n=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",O(n,"web-1.0.0"));case 1:case"end":return e.stop()}},e)})),function(){return n.apply(this,arguments)})},{key:"upLoad",value:function(e){}},{key:"detectTask",value:function(){}},{key:"getSendFilePath",value:(t=l(c.mark(function e(t){var n,r,i,o=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(n=o.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=o[i];return e.abrupt("return",O(r,""));case 1:case"end":return e.stop()}},e)})),function(e){return t.apply(this,arguments)})},{key:"getAllFileInfo",value:(e=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",O(n,[]));case 1:case"end":return e.stop()}},e)})),function(){return e.apply(this,arguments)})}]);var e,t,n,r,i,o}()),Zu=function(){return L(function e(t){x(this,e),this.context=t,this.name="",this.audioElement=null,this.looping=!1,this.playRate=1,this.leftVolume=1,this.rightVolume=1,this.currentUrl=""},[{key:"init",value:(u=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",P(n));case 1:case"end":return e.stop()}},e)})),function(){return u.apply(this,arguments)})},{key:"destroy",value:function(){this.audioElement&&(this.audioElement.pause(),this.audioElement.src="",this.audioElement=null)}},{key:"_getOrCreateAudioElement",value:function(){return this.audioElement||(this.audioElement=new Audio,this.audioElement.loop=this.looping),this.audioElement}},{key:"initMediaPlayer",value:function(e){this.looping=e,this._getOrCreateAudioElement().loop=e}},{key:"play",value:function(e){var t=this._getOrCreateAudioElement();this.currentUrl=e,t.src=e,t.play().catch(function(e){})}},{key:"start",value:function(){var e=this._getOrCreateAudioElement();e.src&&e.play().catch(function(e){})}},{key:"pause",value:function(){this._getOrCreateAudioElement().pause()}},{key:"resume",value:function(){this._getOrCreateAudioElement().play().catch(function(e){})}},{key:"seekTo",value:function(e){this._getOrCreateAudioElement().currentTime=e/1e3}},{key:"stop",value:function(){var e=this._getOrCreateAudioElement();e.pause(),e.currentTime=0}},{key:"setPlayRate",value:function(e){this._getOrCreateAudioElement().playbackRate=e,this.playRate=e}},{key:"setVolume",value:function(e){this._getOrCreateAudioElement().volume=e,this.leftVolume=e,this.rightVolume=e}},{key:"setLeftRightVolume",value:function(e,t){var n=(e+t)/2;this._getOrCreateAudioElement().volume=n,this.leftVolume=e,this.rightVolume=t}},{key:"reset",value:function(){var e=this._getOrCreateAudioElement();e.pause(),e.currentTime=0,e.src="",this.currentUrl=""}},{key:"release",value:function(){this.destroy()}},{key:"isPlaying",value:(s=l(c.mark(function e(){var t,n,r,i,o,a=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=this._getOrCreateAudioElement(),n=!t.paused&&t.currentTime>0,r=a.length,i=new Array(r),o=0;o<r;o++)i[o]=a[o];return e.abrupt("return",O(i,n));case 1:case"end":return e.stop()}},e,this)})),function(){return s.apply(this,arguments)})},{key:"isPaused",value:(a=l(c.mark(function e(){var t,n,r,i,o=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=this._getOrCreateAudioElement(),n=o.length,r=new Array(n),i=0;i<n;i++)r[i]=o[i];return e.abrupt("return",O(r,t.paused));case 1:case"end":return e.stop()}},e,this)})),function(){return a.apply(this,arguments)})},{key:"getDuration",value:(o=l(c.mark(function e(){var t,n,r,i,o,a=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=this._getOrCreateAudioElement(),n=t.duration?1e3*t.duration:0,r=a.length,i=new Array(r),o=0;o<r;o++)i[o]=a[o];return e.abrupt("return",O(i,n));case 1:case"end":return e.stop()}},e,this)})),function(){return o.apply(this,arguments)})},{key:"getCurrentPosition",value:(i=l(c.mark(function e(){var t,n,r,i,o,a=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=this._getOrCreateAudioElement(),n=t.currentTime?1e3*t.currentTime:0,r=a.length,i=new Array(r),o=0;o<r;o++)i[o]=a[o];return e.abrupt("return",O(i,n));case 1:case"end":return e.stop()}},e,this)})),function(){return i.apply(this,arguments)})},{key:"getBufferPercentage",value:(r=l(c.mark(function e(){var t,n,r,i,o,a,s=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=this._getOrCreateAudioElement(),n=s.length,r=new Array(n),i=0;i<n;i++)r[i]=s[i];if(!(t.buffered.length>0&&t.duration>0)){e.next=1;break}return o=t.buffered.end(t.buffered.length-1),a=o/t.duration*100,e.abrupt("return",O(r,a));case 1:return e.abrupt("return",O(r,0));case 2:case"end":return e.stop()}},e,this)})),function(){return r.apply(this,arguments)})},{key:"getCurrentPlayRate",value:(n=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",O(n,this.playRate));case 1:case"end":return e.stop()}},e,this)})),function(){return n.apply(this,arguments)})},{key:"getLeftVolume",value:(t=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",O(n,this.leftVolume));case 1:case"end":return e.stop()}},e,this)})),function(){return t.apply(this,arguments)})},{key:"getRightVolume",value:(e=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",O(n,this.rightVolume));case 1:case"end":return e.stop()}},e,this)})),function(){return e.apply(this,arguments)})},{key:"changeToFullScreen",value:function(e){}},{key:"requestPlayerViewLayout",value:function(){}},{key:"requestViewLayout",value:function(){}},{key:"setPlayerSize",value:function(e,t){}},{key:"setPlayerDimension",value:function(e,t,n,r,i){}},{key:"setDefinition",value:function(e){}},{key:"setDecode",value:function(e){}},{key:"setAspectRatio",value:function(e){}}]);var e,t,n,r,i,o,a,s,u}(),Ju=function(){return L(function e(t){x(this,e),this.context=t,this.name="",this.playerType=1,this.mediaCodec=!0},[{key:"init",value:(n=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",P(n));case 1:case"end":return e.stop()}},e)})),function(){return n.apply(this,arguments)})},{key:"destroy",value:function(){}},{key:"setPlayerType",value:function(e){this.playerType=e}},{key:"getPlayerType",value:(t=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",O(n,this.playerType));case 1:case"end":return e.stop()}},e,this)})),function(){return t.apply(this,arguments)})},{key:"setMediaCodec",value:function(e){this.mediaCodec=e}},{key:"getMediaCodec",value:(e=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",O(n,this.mediaCodec));case 1:case"end":return e.stop()}},e,this)})),function(){return e.apply(this,arguments)})}]);var e,t,n}(),Qu=function(){return L(function e(t){x(this,e),this.context=t,this.name="",this.storageListeners=[]},[{key:"init",value:(o=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",P(n));case 1:case"end":return e.stop()}},e)})),function(){return o.apply(this,arguments)})},{key:"destroy",value:function(){this.unregisterExtraStorageReceiver()}},{key:"registerExtraStorageReceiver",value:function(){}},{key:"unregisterExtraStorageReceiver",value:function(){this.storageListeners=[]}},{key:"installApkByPath",value:(i=l(c.mark(function e(t,n){var r,i,o,a=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(r=a.length,i=new Array(r>2?r-2:0),o=2;o<r;o++)i[o-2]=a[o];return e.abrupt("return",O(i,!1));case 1:case"end":return e.stop()}},e)})),function(e,t){return i.apply(this,arguments)})},{key:"copyFile2Disk",value:(r=l(c.mark(function e(t,n){var r,i,o,a=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(r=a.length,i=new Array(r>2?r-2:0),o=2;o<r;o++)i[o-2]=a[o];return e.abrupt("return",O(i,!1));case 1:case"end":return e.stop()}},e)})),function(e,t){return r.apply(this,arguments)})},{key:"getAppVersionCodeByPkgName",value:(n=l(c.mark(function e(t){var n,r,i,o=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(n=o.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=o[i];return e.abrupt("return",O(r,-1));case 1:case"end":return e.stop()}},e)})),function(e){return n.apply(this,arguments)})},{key:"getUsbDevices",value:(t=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",O(n,[]));case 1:case"end":return e.stop()}},e)})),function(){return t.apply(this,arguments)})},{key:"requestUsbPermission",value:(e=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",O(n,!1));case 1:case"end":return e.stop()}},e)})),function(){return e.apply(this,arguments)})}]);var e,t,n,r,i,o}(),el=new Map,tl=new Map,nl=function(){return L(function e(t){x(this,e),this.context=t},[{key:"init",value:(e=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",P(n));case 1:case"end":return e.stop()}},e)})),function(){return e.apply(this,arguments)})},{key:"getCanvasInfo",value:function(e,t,n){return{version:"1.0.0",type:"2d",supportWebGL:!0,supportBitmapRenderer:!0}}},{key:"loadImage",value:function(e,t,n){var r=t&&t[0];if(!r)return{error:"No image source provided"};var i="image_"+Date.now()+"_"+Math.random().toString(36).slice(2);return new Promise(function(e){var t=new Image;t.crossOrigin="anonymous",t.onload=function(){el.set(i,t),e({imageId:i,width:t.naturalWidth,height:t.naturalHeight})},t.onerror=function(){e({error:"Failed to load image: "+r})},t.src=r})}},{key:"createCanvas",value:function(e,t,n){var r=t&&t[0]||800,i=t&&t[1]||600,o="canvas_"+Date.now(),a=document.createElement("canvas");return a.width=r,a.height=i,tl.set(o,a),{canvasId:o,width:r,height:i}}},{key:"toDataURL",value:function(e,t,n){var r=t&&t[0],i=t&&t[1]||"image/png",o=t&&t[2]||1,a=tl.get(r);if(!a)return{error:"Canvas not found: "+r};try{return{dataURL:a.toDataURL(i,o)}}catch(e){return{error:e.message}}}},{key:"releaseImage",value:function(e,t,n){var r=t&&t[0];return r&&el.delete(r),{success:!0}}},{key:"releaseCanvas",value:function(e,t,n){var r=t&&t[0];return r&&tl.delete(r),{success:!0}}}]);var e}();function rl(e,t,n){return t=vn(t),pn(e,il()?Reflect.construct(t,n||[],vn(e).constructor):t.apply(e,n))}function il(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(il=function(){return!!e})()}(0,b.A)(nl,"name","CanvasModule");var ol=function(e){function t(e,n,r){var i;return x(this,t),(i=rl(this,t,[e,n,r])).tagName="text-v2",i}return gn(t,e),L(t,[{key:"updateProperty",value:function(e,n){switch(e){case"fontPath":this._fontPath=n;break;case"fontWeight":this.dom&&(this.dom.style.fontWeight=n);break;case"fontStyle":this.dom&&(this.dom.style.fontStyle=n);break;case"letterSpacing":this.dom&&(this.dom.style.letterSpacing="number"==typeof n?"".concat(n,"px"):n);break;case"lineHeight":this.dom&&(this.dom.style.lineHeight="number"==typeof n?"".concat(n,"px"):n);break;case"textDecoration":this.dom&&(this.dom.style.textDecoration=n);break;case"textShadow":this.dom&&(this.dom.style.textShadow=n);break;default:(r=t,i="updateProperty",o=this,s=yn(vn(1&(a=3)?r.prototype:r),i,o),2&a&&"function"==typeof s?function(e){return s.apply(o,e)}:s)([e,n])}var r,i,o,a,s}}])}(Jo);function al(e,t,n){return t=vn(t),pn(e,sl()?Reflect.construct(t,n||[],vn(e).constructor):t.apply(e,n))}function sl(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(sl=function(){return!!e})()}var ul={ES_PLAYER_STATE_IDLE:0,ES_PLAYER_STATE_PREPARING:1,ES_PLAYER_STATE_PREPARED:2,ES_PLAYER_STATE_BUFFER_START:3,ES_PLAYER_STATE_BUFFER_END:4,ES_PLAYER_STATE_PLAYING:5,ES_PLAYER_STATE_SEEK_START:6,ES_PLAYER_STATE_SEEK_COMPLETED:7,ES_PLAYER_STATE_PAUSED:8,ES_PLAYER_STATE_RESUMED:9,ES_PLAYER_STATE_BEFORE_STOP:10,ES_PLAYER_STATE_STOP:11,ES_PLAYER_STATE_PLAYBACK_COMPLETED:12,ES_PLAYER_STATE_ERROR:13,ES_PLAYER_STATE_VIDEO_SIZE_CHANGED:14,ES_PLAYER_STATE_PLAYER_VIEW_CHANGED:15,ES_PLAYER_STATE_AD_START:16,ES_PLAYER_STATE_AD_END:17,ES_PLAYER_STATE_AD_SKIP:18,ES_PLAYER_STATE_AD_PAUSED:19,ES_PLAYER_STATE_AUTHORIZED:20,ES_PLAYER_STATE_SET_PLAY_RATE_SUCCESS:21,ES_PLAYER_STATE_SET_PLAY_RATE_ERROR:22,ES_PLAYER_STATE_AD_RESUMED:23,ES_PLAYER_STATE_AD_LOADED:24,ES_PLAYER_STATE_AD_TIME:25,ES_PLAYER_STATE_PLAYER_INITIALIZED:26,ES_PLAYER_STATE_TIMED_TEXT_CHANGED:27,ES_PLAYER_STATE_PLAYER_CLICKABLE:28,ES_PLAYER_STATE_INITIALIZE_SUCCESS:29,ES_PLAYER_STATE_INITIALIZE_ERROR:30},ll=function(e){function t(e,n,r){var i;return x(this,t),(i=al(this,t,[e,n,r])).tagName="IJKPlayerComponent",i.dom=document.createElement("video"),i.dom.setAttribute("data-component-name","IJKPlayerComponent"),i.dom.id=String(n),i.dom.style.cssText="\n width: 100%;\n height: 100%;\n object-fit: contain;\n background: #000;\n ",i.dom.playsInline=!0,i._playerState=ul.ES_PLAYER_STATE_IDLE,i._url="",i._volume=1,i._muted=!1,i._loop=!1,i._playbackRate=1,i._aspectRatio=0,i._positionListeners=[],i._destroyed=!1,i._progressCallback=null,i._durationCallback=null,i._bufferPercentCallback=null,i._isSeeking=!1,i._isBuffering=!1,i._playerType=1,i._decode=0,i._autoPlay=!0,y(n,i),i._bindVideoEvents(),i}return gn(t,e),L(t,[{key:"_bindVideoEvents",value:function(){var e=this,t=this.dom;t.addEventListener("play",function(){e._playerState=ul.ES_PLAYER_STATE_PLAYING,e._dispatchPlayerStatusChanged()}),t.addEventListener("pause",function(){e._playerState=ul.ES_PLAYER_STATE_PAUSED,e._dispatchPlayerStatusChanged()}),t.addEventListener("ended",function(){e._playerState=ul.ES_PLAYER_STATE_COMPLETED,e._dispatchPlayerStatusChanged(),e._dispatchEvent("onPlayerCompleted")}),t.addEventListener("error",function(t){var n,r;e._playerState=ul.ES_PLAYER_STATE_ERROR,e._dispatchEvent("onPlayerError",{errorCode:(null===(n=t.target.error)||void 0===n?void 0:n.code)||-1,errorMessage:(null===(r=t.target.error)||void 0===r?void 0:r.message)||"Video error"}),e._dispatchPlayerStatusChanged()}),t.addEventListener("loadedmetadata",function(){e._playerState=ul.ES_PLAYER_STATE_PREPARED,e._dispatchPlayerStatusChanged(),e._dispatchAspectRatioChanged(),e._dispatchEvent("onPlayerPrepared"),e._dispatchEvent("onPlayerStatusChanged",{playerStatus:ul.ES_PLAYER_STATE_VIDEO_SIZE_CHANGED,playerState:ul.ES_PLAYER_STATE_VIDEO_SIZE_CHANGED,playerWidth:t.videoWidth||0,playerHeight:t.videoHeight||0}),!1!==e._autoPlay&&t.play().catch(function(){})}),t.addEventListener("canplay",function(){}),t.addEventListener("loadstart",function(){}),t.addEventListener("canplaythrough",function(){}),t.addEventListener("loadstart",function(){}),t.addEventListener("progress",function(){}),t.addEventListener("canplay",function(){e._playerState<ul.ES_PLAYER_STATE_PREPARED&&(e._playerState=ul.ES_PLAYER_STATE_PREPARED,e._dispatchPlayerStatusChanged())}),t.addEventListener("timeupdate",function(){e._dispatchPositionChanged()}),t.addEventListener("volumechange",function(){var n=t.volume;e._dispatchEvent("onPlayerVolumeChanged",{leftVolume:n,rightVolume:n}),e._dispatchEvent("onPlayerLeftVolumeChanged",n),e._dispatchEvent("onPlayerRightVolumeChanged",n)}),t.addEventListener("ratechange",function(){e._dispatchEvent("onPlayerPlayRateChanged",{playRate:t.playbackRate.toString()}),e._dispatchEvent("onPlayerStatusChanged",{playerStatus:ul.ES_PLAYER_STATE_SET_PLAY_RATE_SUCCESS,playerState:ul.ES_PLAYER_STATE_SET_PLAY_RATE_SUCCESS})}),t.addEventListener("waiting",function(){e._dispatchEvent("onPlayerBufferStart"),e._dispatchEvent("onPlayerStatusChanged",{playerStatus:ul.ES_PLAYER_STATE_BUFFER_START,playerState:ul.ES_PLAYER_STATE_BUFFER_START})}),t.addEventListener("canplaythrough",function(){e._dispatchEvent("onPlayerBufferEnd"),e._dispatchEvent("onPlayerStatusChanged",{playerStatus:ul.ES_PLAYER_STATE_BUFFER_END,playerState:ul.ES_PLAYER_STATE_BUFFER_END})}),t.addEventListener("playing",function(){e._dispatchEvent("onPlayerResumed"),e._dispatchEvent("onPlayerStatusChanged",{playerStatus:ul.ES_PLAYER_STATE_RESUMED,playerState:ul.ES_PLAYER_STATE_RESUMED})}),t.addEventListener("seeking",function(){e._dispatchEvent("onPlayerSeekStart"),e._dispatchEvent("onPlayerStatusChanged",{playerStatus:ul.ES_PLAYER_STATE_SEEK_START,playerState:ul.ES_PLAYER_STATE_SEEK_START})}),t.addEventListener("seeked",function(){e._dispatchEvent("onPlayerSeekCompleted"),e._dispatchEvent("onPlayerStatusChanged",{playerStatus:ul.ES_PLAYER_STATE_SEEK_COMPLETED,playerState:ul.ES_PLAYER_STATE_SEEK_COMPLETED})}),t.addEventListener("durationchange",function(){var n=Math.floor(1e3*t.duration);if(e._durationCallback)try{e._durationCallback(n)}catch(e){}}),t.addEventListener("progress",function(){if(t.buffered.length>0){var n=t.buffered.end(t.buffered.length-1),r=t.duration;if(r>0){var i=n/r*100;if(e._bufferPercentCallback)try{e._bufferPercentCallback(i)}catch(e){}}}}),t.addEventListener("loadstart",function(){e._playerState=ul.ES_PLAYER_STATE_PREPARING,e._dispatchEvent("onPlayerPreparing"),e._dispatchPlayerStatusChanged()})}},{key:"_dispatchPlayerStatusChanged",value:function(){if(this.dom){var e={playerStatus:this._playerState,playerState:this._playerState,playerWidth:this.dom.videoWidth||0,playerHeight:this.dom.videoHeight||0};this._dispatchEvent("onPlayerStatusChanged",e)}}},{key:"_dispatchPositionChanged",value:function(){if(this.dom){var e=Math.floor(1e3*this.dom.currentTime);if(this._progressCallback)try{this._progressCallback(e)}catch(e){}}}},{key:"_dispatchAspectRatioChanged",value:function(){if(this.dom){var e=this.dom.videoWidth,t=this.dom.videoHeight;if(e&&t){var n=[0,1,2,3,4];this._dispatchEvent("onPlayerAspectRatioListChanged",n),this._dispatchEvent("onAllAspectRatioChanged",{aspectRatioList:n}),this._dispatchEvent("onPlayerAspectRatioChanged",{aspectRatio:0})}}}},{key:"_dispatchEvent",value:function(e,t){if(!this._destroyed&&this.events)if(this.events[e])this.dispatchEvent(e,t);else for(var n=e.toLowerCase(),r=Object.keys(this.events),i=0;i<r.length;i++){var o=r[i];if(o&&o.toLowerCase()===n&&this.events[o])return void this.dispatchEvent(o,t)}}},{key:"updateProperty",value:function(e,n){if("sid"===e)return this._currentSid&&g(this._currentSid),this._currentSid=n,void(n?(m(n,this),this.dom.setAttribute("sid",String(n))):this.dom.removeAttribute("sid"));switch(e){case"src":this._url=n;break;case"muted":this.dom.muted=n;break;case"loop":this.dom.loop=n,this._loop=n;break;case"volume":this.dom.volume=Math.max(0,Math.min(1,n));break;case"playbackRate":this.dom.playbackRate=n;break;default:(r=t,i="updateProperty",o=this,s=yn(vn(1&(a=3)?r.prototype:r),i,o),2&a&&"function"==typeof s?function(e){return s.apply(o,e)}:s)([e,n])}var r,i,o,a,s}},{key:"init",value:function(){this._playerState=ul.ES_PLAYER_STATE_INITIALIZED,this._dispatchPlayerStatusChanged()}},{key:"play",value:function(e){var t=s(e,9),n=t[0],r=t[1],i=t[2],o=(t[3],t[4],t[5],t[6],t[7]);t[8];if(n){var a=sn(n);this._originalUrl=n,this._url=a,this._autoPlay=!1!==(null==o?void 0:o.autoPlay),this.dom.src=a;var u=void 0!==i?parseFloat(i):1;this.dom.volume=Math.max(0,Math.min(1,u)),void 0!==(null==o?void 0:o.loop)&&(this.dom.loop=o.loop),this._setAspectRatio(r||0),this._playerState=ul.ES_PLAYER_STATE_PREPARING,this._dispatchPlayerStatusChanged(),this.dom.load()}}},{key:"start",value:function(e){var t=s(e,1)[0];t&&t>0&&(this.dom.currentTime=t/1e3),this.dom.play().catch(function(e){})}},{key:"pause",value:function(){this.dom.pause()}},{key:"resume",value:function(){this.dom.play().catch(function(){})}},{key:"seekTo",value:function(e){var t=s(e,1)[0];void 0!==t&&(this.dom.currentTime=t/1e3)}},{key:"stop",value:function(){this.dom.pause(),this.dom.currentTime=0,this._playerState=ul.ES_PLAYER_STATE_STOPPED,this._dispatchPlayerStatusChanged()}},{key:"release",value:function(){this._destroyed=!0,this.dom.pause(),this.dom.src="",this._playerState=ul.ES_PLAYER_STATE_RELEASED,this._currentSid&&(g(this._currentSid),this._currentSid=null)}},{key:"getCurrentPosition",value:function(){return Math.floor(1e3*this.dom.currentTime)}},{key:"getDuration",value:function(){return Math.floor(1e3*this.dom.duration)||0}},{key:"setVolume",value:function(e){var t=s(e,1)[0];this.dom.volume=Math.max(0,Math.min(1,parseFloat(t)||1))}},{key:"setLeftVolume",value:function(e){var t=s(e,1)[0];this.dom.volume=Math.max(0,Math.min(1,parseFloat(t)||1))}},{key:"setRightVolume",value:function(e){var t=s(e,1)[0];this.dom.volume=Math.max(0,Math.min(1,parseFloat(t)||1))}},{key:"setLeftRightVolume",value:function(e){var t=s(e,2),n=t[0],r=t[1],i=((parseFloat(n)||1)+(parseFloat(r)||1))/2;this.dom.volume=Math.max(0,Math.min(1,i))}},{key:"getLeftVolume",value:function(){return this.dom.volume}},{key:"getRightVolume",value:function(){return this.dom.volume}},{key:"setPlayRate",value:function(e){var t=s(e,1)[0];this.dom.playbackRate=parseFloat(t)||1}},{key:"setAspectRatio",value:function(e){var t=s(e,1)[0];this._setAspectRatio(t)}},{key:"_setAspectRatio",value:function(e){this.dom.style.objectFit={0:"contain",1:"contain",2:"contain",3:"contain",4:"cover"}[e]||"contain",this._aspectRatio=e}},{key:"setPlayerSize",value:function(e){var t=s(e,2),n=t[0],r=t[1];n&&(this.dom.style.width="number"==typeof n?"".concat(n,"px"):n),r&&(this.dom.style.height="number"==typeof r?"".concat(r,"px"):r)}},{key:"setSize",value:function(e){var t=s(e,2),n=t[0],r=t[1];this.setPlayerSize([n,r])}},{key:"updateLayout",value:function(e){var t=s(e,4),n=t[0],r=t[1],i=t[2],o=t[3];n&&(this.dom.style.width="number"==typeof n?"".concat(n,"px"):n),r&&(this.dom.style.height="number"==typeof r?"".concat(r,"px"):r),void 0!==i&&(this.dom.style.left="".concat(i,"px")),void 0!==o&&(this.dom.style.top="".concat(o,"px"))}},{key:"isStopped",value:function(){return this._playerState===ul.ES_PLAYER_STATE_STOPPED}},{key:"startPositionListener",value:function(){}},{key:"stopPositionListener",value:function(){}},{key:"getTrackInfo",value:function(e){s(e,1)[0];for(var t=this.dom.textTracks||[],n=[],r=0;r<t.length;r++)n.push({index:r,type:t[r].kind,label:t[r].label,language:t[r].language});return n}},{key:"selectTrack",value:function(e){var t=s(e,1)[0],n=this.dom.textTracks;n&&n[t]&&(n[t].mode="showing")}},{key:"deselectTrack",value:function(e){var t=s(e,1)[0],n=this.dom.textTracks;n&&n[t]&&(n[t].mode="disabled")}},{key:"getMediaMeta",value:function(){return{duration:1e3*this.dom.duration,width:this.dom.videoWidth,height:this.dom.videoHeight}}},{key:"setDefinition",value:function(e){s(e,1)[0]}},{key:"setM3U8Definition",value:function(e){s(e,1)[0]}},{key:"getM3U8DefinitionInfo",value:function(){return[]}},{key:"getBitRate",value:function(){return 0}},{key:"getTcpSpeed",value:function(){return 0}},{key:"getVideoDecoder",value:function(){return"html5"}},{key:"getCdnInfo",value:function(){return{}}},{key:"setUsingHardwareDecoder",value:function(e){}},{key:"setPlayerType",value:function(e){this._playerType=e}},{key:"setOptionLong",value:function(e,t,n){}},{key:"setOptionString",value:function(e,t,n){}},{key:"setCacheInfo",value:function(e){}},{key:"setDecode",value:function(e){this._decode=e}},{key:"requestLayout",value:function(){this.dom.offsetHeight}},{key:"invalidate",value:function(){this.requestLayout()}},{key:"clickPlayerView",value:function(){}},{key:"changeToFullScreen",value:function(e){}},{key:"requestPlayerViewLayout",value:function(){}},{key:"requestCustomSizeLayout",value:function(e){}},{key:"requestCustomLayout",value:function(){}},{key:"setPlayerDimension",value:function(e){}},{key:"setDefaultPlayerWidth",value:function(e){}},{key:"setDefaultPlayerHeight",value:function(e){}},{key:"setFullPlayerWidth",value:function(e){}},{key:"setFullPlayerHeight",value:function(e){}},{key:"getEsInfo",value:function(){return{platform:"web",playerType:"html5"}}},{key:"getComponentInfo",value:function(){var e={isSupportDynamicallyLoadedSo:!1,isSupportAsyncInit:!0,platform:"web",playerType:"html5"};return this._dispatchEvent("onPlayerComponentInfo",e),e}},{key:"initComponent",value:function(){this._dispatchEvent("onPlayerStatusChanged",{playerStatus:ul.ES_PLAYER_STATE_PLAYER_INITIALIZED,playerState:ul.ES_PLAYER_STATE_PLAYER_INITIALIZED}),this._dispatchEvent("onPlayerStatusChanged",{playerStatus:ul.ES_PLAYER_STATE_INITIALIZE_SUCCESS,playerState:ul.ES_PLAYER_STATE_INITIALIZE_SUCCESS})}},{key:"setProgressCallback",value:function(e){this._progressCallback=e}},{key:"setDurationCallback",value:function(e){this._durationCallback=e}},{key:"setBufferPercentCallback",value:function(e){this._bufferPercentCallback=e}},{key:"getPlayerState",value:function(){return this._playerState}},{key:"getVideoWidth",value:function(){return this.dom.videoWidth||0}},{key:"getVideoHeight",value:function(){return this.dom.videoHeight||0}},{key:"isPlaying",value:function(){return!this.dom.paused&&!this.dom.ended}},{key:"getPlayRate",value:function(){return this.dom.playbackRate||1}},{key:"getAspectRatio",value:function(){return this._aspectRatio}},{key:"getPlayerType",value:function(){return this._playerType}},{key:"getDecode",value:function(){return this._decode}},{key:"setMute",value:function(e){this.dom.muted=e,this._muted=e}},{key:"isMuted",value:function(){return this.dom.muted}},{key:"getUrl",value:function(){return this._url}},{key:"setLooping",value:function(e){this.dom.loop=e,this._loop=e}},{key:"isLooping",value:function(){return this.dom.loop}},{key:"getAspectRatioList",value:function(){return[0,1,2,3,4]}},{key:"getPlayRateList",value:function(){return[.5,.75,1,1.25,1.5,1.75,2,2.5]}},{key:"getDecodeList",value:function(){return[0,1]}},{key:"dispatchPlayerInfo",value:function(e){this._dispatchEvent("onPlayerInfo",e)}},{key:"setCache",value:function(e){}},{key:"getVideoCachedDuration",value:function(){return this.dom.buffered.length>0?Math.floor(1e3*this.dom.buffered.end(0)):0}},{key:"getAudioCachedDuration",value:function(){return this.getVideoCachedDuration()}},{key:"getVideoCachedBytes",value:function(){return 0}},{key:"getAudioCachedBytes",value:function(){return 0}},{key:"getVideoCachedPackets",value:function(){return 0}},{key:"getAudioCachedPackets",value:function(){return 0}},{key:"getTcpSpeed2",value:function(){return 0}},{key:"getBitRate2",value:function(){return 0}},{key:"getDropFrameRate",value:function(){return 0}},{key:"getVideoDecodeFramesPerSecond",value:function(){return 0}},{key:"getVideoOutputFramesPerSecond",value:function(){return 0}}])}(ii),cl=Uo(Ho,"View"),dl=Uo(Jo,"Text"),hl={View:cl,Text:dl,Image:Uo(ra,"Image"),ListView:Ts,ListViewItem:Ls,ScrollView:Uo(Ho,"ScrollView"),TextInput:Uo(Ho,"TextInput"),WebView:Ma,ViewPager:Uo(Ho,"ViewPager"),FastListView:Ea,TextView:dl,ESPageRouterView:Uo(Ho,"ESPageRouterView"),ESPageRootView:Ko,ESSlotRootView:Uo(Ho,"ESSlotRootView"),ESSlotView:Uo(Ho,"ESSlotView"),LoadingViewComponent:Ta,AnimationViewComponent:Na,ESWebViewComponent:Ma,ESX5WebViewComponent:Ma,QrCodeComponent:Wa,TVProgressBarViewComponent:za,TVSeekBarViewComponent:Ka,TVListViewComponent:Ea,ItemFrameComponent:Ja,ItemStoreView:ns,RippleViewComponent:as,FastFlexView:aa,FastItemView:cs,TabsView:vs,RecyclerViewPager:bs,Modal:Ss,TextV2Component:ol,TransitionImageComponent:ru,IJKPlayerComponent:ll,ESPlayMarkViewComponent:Ns,CanvasView2D:eu,CanvasComponent:eu};function fl(e){e.start({id:"app",name:A,params:{business:A,data:{}}})}n.g.__ORIGINAL_FETCH__=n.g.fetch.bind(n.g),window.addEventListener("error",function(e){var t,n=(null===(t=e.error)||void 0===t?void 0:t.message)||e.message||"";if(n.includes("No match for")&&n.includes('"lifecycle"')){var r=document.createElement("div");r.id="router-upgrade-notice",r.style.cssText="\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n z-index: 999999;\n background: rgba(0, 0, 0, 0.9);\n display: flex;\n align-items: center;\n justify-content: center;\n flex-direction: column;\n font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;\n ",r.innerHTML='\n <div style="\n background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);\n border: 2px solid #e94560;\n border-radius: 16px;\n padding: 40px 50px;\n max-width: 500px;\n text-align: center;\n box-shadow: 0 20px 60px rgba(233, 69, 96, 0.3);\n ">\n <div style="font-size: 48px; margin-bottom: 20px;">⚠️</div>\n <h2 style="color: #e94560; margin: 0 0 16px 0; font-size: 24px;">路由版本过低</h2>\n <p style="color: #ccc; line-height: 1.8; margin: 0 0 24px 0;">\n 当前项目使用的 <code style="color: #4fc3f7; background: rgba(79, 195, 247, 0.1); padding: 2px 8px; border-radius: 4px;">@extscreen/es3-router</code> 版本过低\n </p>\n <div style="\n background: #0f0f23;\n border-radius: 8px;\n padding: 16px;\n margin-bottom: 24px;\n font-family: \'Monaco\', \'Menlo\', monospace;\n font-size: 14px;\n color: #4fc3f7;\n ">\n npm install @extscreen/es3-router@^3.0.1\n </div>\n <p style="color: #888; font-size: 13px; margin: 0;">\n 请升级至 <strong style="color: #4fc3f7;">3.0.1</strong> 或更高版本后重新构建\n </p>\n <button id="close-router-notice" style="\n margin-top: 24px;\n background: #e94560;\n border: none;\n color: white;\n padding: 12px 32px;\n border-radius: 8px;\n font-size: 14px;\n cursor: pointer;\n transition: all 0.2s;\n ">关闭</button>\n </div>\n ',document.body.appendChild(r),document.getElementById("close-router-notice").onclick=function(){r.remove()},e.preventDefault()}});var pl="files";function vl(){return new Promise(function(e,t){var n=indexedDB.open("quicktvui-zip-cache",1);n.onerror=function(){return t(n.error)},n.onsuccess=function(){return e(n.result)},n.onupgradeneeded=function(e){var t=e.target.result;t.objectStoreNames.contains(pl)||t.createObjectStore(pl)}})}function yl(e,t,n){return ml.apply(this,arguments)}function ml(){return(ml=l(d().mark(function e(t,n,r){var i;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,vl();case 1:return i=e.sent,e.abrupt("return",new Promise(function(e,o){var a=i.transaction(pl,"readwrite");a.objectStore(pl).put({files:t,entryFile:n,zipName:r,timestamp:Date.now()},"zip-data"),a.oncomplete=function(){return e()},a.onerror=function(){return o(a.error)}}));case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}function gl(){return _l.apply(this,arguments)}function _l(){return(_l=l(d().mark(function e(){var t;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,vl();case 1:return t=e.sent,e.abrupt("return",new Promise(function(e,n){var r=t.transaction(pl,"readonly").objectStore(pl).get("zip-data");r.onsuccess=function(){return e(r.result)},r.onerror=function(){return n(r.error)}}));case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}function bl(){return wl.apply(this,arguments)}function wl(){return(wl=l(d().mark(function e(){var t;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,vl();case 1:return t=e.sent,e.abrupt("return",new Promise(function(e,n){var r=t.transaction(pl,"readwrite");r.objectStore(pl).delete("zip-data"),r.oncomplete=function(){return e()},r.onerror=function(){return n(r.error)}}));case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}var kl={files:new Map,entryFile:null,zipName:null,baseDir:"",loadFromData(e){var t=this;if(this.files.clear(),e&&e.files){Object.entries(e.files).forEach(function(e){for(var n=s(e,2),r=n[0],i=n[1],o=atob(i),a=new Uint8Array(o.length),u=0;u<o.length;u++)a[u]=o.charCodeAt(u);t.files.set(r,a),t.files.set("/"+r,a)}),this.entryFile=e.entryFile,this.zipName=e.zipName,this.baseDir=this.entryFile?this.entryFile.substring(0,this.entryFile.lastIndexOf("/")):"";Array.from(this.files.keys()).filter(function(e){return!e.startsWith("/")}).slice(0,10);window.__VIRTUAL_FS__=this}},set(e,t){var n=e.replace(/^\//,"");this.files.set(n,t),this.files.set("/"+n,t)},get(e){var t=e.replace(/^\//,""),n=this.files.get(t)||this.files.get("/"+t);if(n)return n;if(this.baseDir){var r=this.baseDir+"/"+t;if(n=this.files.get(r)||this.files.get("/"+r))return n}return null},has(e){return null!==this.get(e)},list(){var e=new Set;return this.files.forEach(function(t,n){n.startsWith("/")||e.add(n)}),Array.from(e).sort()},clear(){this.files.clear(),this.entryFile=null,this.zipName=null,this.baseDir=""}};function El(){return Sl.apply(this,arguments)}function Sl(){return(Sl=l(d().mark(function e(){return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise(function(e,t){if(window.JSZip)e(window.JSZip);else{var n=document.createElement("script");n.src="https://cdn.jsdelivr.net/npm/jszip@3.10.1/dist/jszip.min.js",n.onload=function(){e(window.JSZip)},n.onerror=function(){return t(new Error("Failed to load JSZip"))},document.head.appendChild(n)}}));case 1:case"end":return e.stop()}},e)}))).apply(this,arguments)}function Al(e){return!e.includes("__MACOSX/")&&(!e.split("/").pop().startsWith("._")&&(!e.endsWith(".DS_Store")&&!e.toLowerCase().endsWith(".thumbs.db")))}function xl(e){return Cl.apply(this,arguments)}function Cl(){return(Cl=l(d().mark(function e(t){var n,r,i,o,a,s,u;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,El();case 1:return n=e.sent,e.next=2,n.loadAsync(t);case 2:return r=e.sent,i={},o=[],r.forEach(function(e,t){if(!t.dir)if(Al(e)){var n=t.async("uint8array").then(function(t){for(var n="",r=0;r<t.length;r++)n+=String.fromCharCode(t[r]);i[e]=btoa(n)});o.push(n)}else 0}),e.next=3,Promise.all(o);case 3:if(a=Object.keys(i),(s=a.find(function(e){return e.endsWith("index.bundle")}))||(s=a.find(function(e){return e.endsWith("index.android.js")})),s||(s=a.find(function(e){return e.match(/index\.(android|hippy)\.js$/)})),s||(s=a.find(function(e){return e.endsWith(".bundle")})),s||(s=a.find(function(e){return e.endsWith(".js")})),s){e.next=4;break}throw new Error("No bundle entry found in ZIP");case 4:return e.next=5,yl(i,s,t.name);case 5:(u=new URL(window.location.href)).searchParams.set("zip","1"),u.searchParams.delete("bundle"),u.searchParams.delete("zipUrl"),window.location.href=u.toString();case 6:case"end":return e.stop()}},e)}))).apply(this,arguments)}function Tl(e,t){return Ll.apply(this,arguments)}function Ll(){return Ll=l(d().mark(function e(t,n){var r,i,o,a,s,u,l,c,h,f,p,v,y,m,g,_,b=arguments;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=b.length>2&&void 0!==b[2]&&b[2],e.next=1,El();case 1:return i=e.sent,o=t,r&&((a=new URL(t)).searchParams.set("_t",Date.now().toString()),o=a.toString()),n&&n(0,"正在下载 ZIP 包..."),e.next=2,new Promise(function(e,t){var r=new XMLHttpRequest;r.open("GET",o,!0),r.responseType="arraybuffer",r.onprogress=function(e){if(e.lengthComputable&&n){var t=Math.floor(e.loaded/e.total*30);n(t,"正在下载... ".concat(Math.floor(e.loaded/1024),"KB / ").concat(Math.floor(e.total/1024),"KB"))}},r.onload=function(){r.status>=200&&r.status<300?e(r.response):t(new Error("下载失败: HTTP ".concat(r.status)))},r.onerror=function(){t(new Error("网络请求失败,请检查网络连接或服务器 CORS 配置"))},r.ontimeout=function(){t(new Error("请求超时"))},r.send()});case 2:s=e.sent,u="remote-bundle.zip";try{l=new URL(t),c=l.pathname,(h=c.split("/").pop())&&h.endsWith(".zip")&&(u=h)}catch(e){}return n&&n(50,"正在解压 ZIP 包..."),e.next=3,i.loadAsync(s);case 3:return f=e.sent,p={},v=0,y=Object.keys(f.files).filter(function(e){return!f.files[e].dir&&Al(e)}).length,m=[],f.forEach(function(e,t){t.dir||(Al(e)?m.push(t.async("uint8array").then(function(t){for(var r="",i=0;i<t.length;i++)r+=String.fromCharCode(t[i]);if(p[e]=btoa(r),v++,n){var o=50+Math.floor(v/y*40);n(o,"正在解压... (".concat(v,"/").concat(y,")"))}})):0)}),e.next=4,Promise.all(m);case 4:if(n&&n(95,"正在保存到缓存..."),g=Object.keys(p),(_=g.find(function(e){return e.endsWith("index.bundle")}))||(_=g.find(function(e){return e.endsWith("index.android.js")})),_||(_=g.find(function(e){return e.match(/index\.(android|hippy)\.js$/)})),_||(_=g.find(function(e){return e.endsWith(".bundle")})),_||(_=g.find(function(e){return e.endsWith(".js")})),_){e.next=5;break}throw new Error("ZIP 包中未找到有效的入口文件 (index.bundle 或 index.android.js)");case 5:return e.next=6,yl(p,_,u);case 6:n&&n(100,"准备加载..."),kl.loadFromData({files:p,entryFile:_,zipName:u});case 7:case"end":return e.stop()}},e)})),Ll.apply(this,arguments)}function Ol(e){return{js:"application/javascript",json:"application/json",css:"text/css",html:"text/html",png:"image/png",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",webp:"image/webp",svg:"image/svg+xml",woff:"font/woff",woff2:"font/woff2",ttf:"font/ttf",mp3:"audio/mpeg",mp4:"video/mp4"}[e.split(".").pop().toLowerCase()]||"application/octet-stream"}function Pl(e){return Il.apply(this,arguments)}function Il(){return(Il=l(d().mark(function e(t){var n,r,i,o;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n=kl.get(t)){e.next=1;break}throw new Error("File not found in VirtualFS: ".concat(t));case 1:return r=(new TextDecoder).decode(n),i=Dl(),o=i+r,e.abrupt("return",new Promise(function(e,t){try{var n=document.createElement("script");n.textContent=o,document.body.appendChild(n),e()}catch(e){t(e)}}));case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}var Nl="";function Rl(e){Nl=function(e){if(!e)return"";try{var t=new URL(e,window.location.href),n=t.pathname.replace(/[^/]+$/,"");return n=n.replace(/\/bundles-dev\//,"/"),"".concat(t.origin).concat(n)}catch(e){return""}}(e)}function Dl(){var e=JSON.stringify(kl&&kl.baseDir?"/":Nl||"/");return"(function(){var p=".concat(e,';if(typeof __webpack_require__!=="undefined"){__webpack_require__.p=p;}if(typeof __webpack_public_path__!=="undefined"){__webpack_public_path__=p;}})();')}function Ml(e){return"string"==typeof e&&/\$\{[^}]+\}/.test(e)}function Fl(e){if(Ml(e))return e;var t=function(e){if(!Nl||"string"!=typeof e||!e)return e;if(Ml(e))return e;if(/^(blob:|data:|javascript:|about:)/i.test(e))return e;if(/^https?:\/\//i.test(e))return e;try{var t=new URL(e,window.location.href);if(t.origin!==window.location.origin)return e;if(t.pathname.startsWith("/proxy/"))return e;var n=t.pathname.startsWith("/")?t.pathname.slice(1):t.pathname;if(!n)return e;var r=Nl.replace(/^https?:\/\/[^/]+/,"");return n.startsWith(r.replace(/^\//,""))?e:"".concat(Nl).concat(n).concat(t.search).concat(t.hash)}catch(t){var i=e.replace(/^\//,"");if(!i)return e;var o=Nl.replace(/^https?:\/\/[^/]+/,"");return i.startsWith(o.replace(/^\//,""))?e:"".concat(Nl).concat(i)}}(e);return t}if("undefined"==typeof localStorage){var Bl={};n.g.localStorage={getItem:function(e){return Bl[e]||null},setItem:function(e,t){Bl[e]=String(t)},removeItem:function(e){delete Bl[e]},clear:function(){Object.keys(Bl).forEach(function(e){return delete Bl[e]})}}}function jl(e){return"string"!=typeof e?e:e.startsWith("hpfile://")?e.replace(/^hpfile:\/\/\.?\//,"/").replace(/^hpfile:\/\//,"/"):/https?:\/\/[^/:]+:38989\//.test(e)?e.replace(/https?:\/\/[^/:]+:38989\/[a-f0-9]{32}\//,"/bundles-dev/").replace(/https?:\/\/[^/:]+:38989\//,"/bundles-dev/"):e}function Vl(e,t){var n=Object.getOwnPropertyDescriptor(HTMLScriptElement.prototype,"textContent")||Object.getOwnPropertyDescriptor(Element.prototype,"textContent")||Object.getOwnPropertyDescriptor(Node.prototype,"textContent");n&&n.set?n.set.call(e,t):e.textContent=t}var Wl=Element.prototype.setAttribute;Element.prototype.setAttribute=function(e,t){var n=e.toLowerCase();if("SCRIPT"===this.tagName&&"src"===n){if(kl){var r=t;try{r=new URL(t,window.location.origin).pathname}catch(e){}var i=r.replace(/^\//,""),o=kl.baseDir?kl.baseDir+"/"+i:i;if(kl.has(o)){var a=kl.get(o);return Vl(this,(new TextDecoder).decode(a)),void(this._virtualSrc=t)}if(kl.has(i)){var s=kl.get(i);return Vl(this,(new TextDecoder).decode(s)),void(this._virtualSrc=t)}}var u=Fl(t);if(u!==t)return Wl.call(this,e,u)}if("IMG"===this.tagName&&"src"===n){var l=jl(t);if(kl){var c=l.replace(/^\//,""),d=kl.baseDir?kl.baseDir+"/"+c:c;if(kl.has(d)){var h=kl.get(d),f=new Blob([h],{type:Ol(d)}),p=URL.createObjectURL(f);return Wl.call(this,e,p)}}if(kl&&kl.has(l)){var v=kl.get(l),y=new Blob([v],{type:Ol(l)}),m=URL.createObjectURL(y);return Wl.call(this,e,m)}var g=Fl(l);if(g!==l)return Wl.call(this,e,g);if(l!==t)return Wl.call(this,e,l)}if("style"===n&&"string"==typeof t){var _=Yl(t);if(_!==t)return Wl.call(this,e,_)}if("src"===n||"href"===n||"data-src"===n){var b=Fl(jl(t));if(b!==t)return Wl.call(this,e,b)}return Wl.call(this,e,t)};var Hl=document.createElement.bind(document);document.createElement=function(e,t){var n=Hl(e,t);if("script"===e.toLowerCase()){var r=Object.getOwnPropertyDescriptor(HTMLScriptElement.prototype,"src"),i=Object.getOwnPropertyDescriptor(HTMLScriptElement.prototype,"textContent");if(!r||!i)return n;var o=r.get,a=r.set;i.set;n.__vfsContent=null,Object.defineProperty(n,"src",{get:()=>null!==n.__vfsContent?"":o.call(n),set(e){var t=e.replace(/^\//,"");if(kl){var r=kl.baseDir?kl.baseDir+"/"+t:t;if(kl.has(r)){var i=kl.get(r);return void(n.__vfsContent=(new TextDecoder).decode(i))}}if(kl&&kl.has(t)){var o=kl.get(t);n.__vfsContent=(new TextDecoder).decode(o)}else a.call(n,e)},configurable:!0,enumerable:!0})}return n},new MutationObserver(function(e){e.forEach(function(e){e.addedNodes.forEach(function(e){var t=e&&"SCRIPT"===e.tagName?e.src||e.getAttribute&&e.getAttribute("src"):"";if("SCRIPT"===e.tagName&&t&&kl){var n=t;try{n=new URL(t,window.location.origin).pathname}catch(e){}var r=n.replace(/^\//,""),i=kl.baseDir?kl.baseDir+"/"+r:r;if(kl.has(i)){var o=kl.get(i),a=(new TextDecoder).decode(o);e.removeAttribute("src"),e.textContent=a,setTimeout(function(){return e.dispatchEvent(new Event("load"))},0)}else if(kl.has(r)){var s=kl.get(r),u=(new TextDecoder).decode(s);e.removeAttribute("src"),e.textContent=u,setTimeout(function(){return e.dispatchEvent(new Event("load"))},0)}}if(t&&!kl){var l=Fl(t);l!==t&&(e.src=l)}})})}).observe(document.documentElement,{childList:!0,subtree:!0});var Ul=Object.getOwnPropertyDescriptor(HTMLScriptElement.prototype,"src");if(Ul){var Gl=Ul.get,zl=Ul.set;Object.defineProperty(HTMLScriptElement.prototype,"src",{get(){return this._virtualSrc?this._virtualSrc:Gl.call(this)},set(e){var t=this,n=Fl(jl(e));if(kl&&kl.has&&kl.has(n)){this._virtualSrc=n;var r=kl.get(n);return Vl(this,(new TextDecoder).decode(r)),setTimeout(function(){return t.dispatchEvent(new Event("load"))},0),n}if(kl){var i=n.replace(/^\//,""),o=kl.baseDir?kl.baseDir+"/"+i:i;if(kl.has(o)){this._virtualSrc=o;var a=kl.get(o);return Vl(this,(new TextDecoder).decode(a)),setTimeout(function(){return t.dispatchEvent(new Event("load"))},0),o}}return zl.call(this,n)},configurable:!0,enumerable:!0})}function Yl(e){if("string"!=typeof e)return e;if(e.startsWith("hpfile://")){var t=e.replace(/^hpfile:\/\/\.?\//,"/").replace(/^hpfile:\/\//,"/");if(kl&&t.startsWith("/assets/")){var n=t.replace(/^\//,""),r=kl.baseDir?kl.baseDir+"/"+n:n;if(kl.has(r)){var i=kl.get(r),o=new Blob([i],{type:Ol(r)}),a=URL.createObjectURL(o);return"url(".concat(a,")")}}if(kl&&kl.has(t)){var s=kl.get(t),u=new Blob([s],{type:Ol(t)}),l=URL.createObjectURL(u);return"url(".concat(l,")")}return"url(".concat(Fl(t),")")}return e.replace(/url\(['"]?(hpfile:\/\/[^'")\s]+)['"]?\)/gi,function(e,t){var n=t.replace(/^hpfile:\/\/\.?\//,"/").replace(/^hpfile:\/\//,"/");if(kl&&n.startsWith("/assets/")){var r=n.replace(/^\//,""),i=kl.baseDir?kl.baseDir+"/"+r:r;if(kl.has(i)){var o=kl.get(i),a=new Blob([o],{type:Ol(i)}),s=URL.createObjectURL(a);return"url(".concat(s,")")}}if(kl&&kl.has(n)){var u=kl.get(n),l=new Blob([u],{type:Ol(n)}),c=URL.createObjectURL(l);return"url(".concat(c,")")}return"url(".concat(Fl(n),")")})}var ql=Object.getOwnPropertyDescriptor(CSSStyleDeclaration.prototype,"cssText");if(ql&&ql.set){var Xl=ql.set;Object.defineProperty(CSSStyleDeclaration.prototype,"cssText",{get:ql.get,set(e){var t=Yl(e);return Xl.call(this,t)},configurable:!0})}var Kl=CSSStyleDeclaration.prototype.setProperty;CSSStyleDeclaration.prototype.setProperty=function(e,t,n){var r=e.toLowerCase();if("background-image"===r||"background"===r){var i=Yl(t);return Kl.call(this,e,i,n)}return Kl.call(this,e,t,n)};var $l=Object.getOwnPropertyDescriptor(CSSStyleDeclaration.prototype,"backgroundImage");if($l&&$l.set){var Zl=$l.set;Object.defineProperty(CSSStyleDeclaration.prototype,"backgroundImage",{get:$l.get,set(e){var t=Yl(e);return Zl.call(this,t)},configurable:!0})}var Jl=Object.getOwnPropertyDescriptor(CSSStyleDeclaration.prototype,"background");if(Jl&&Jl.set){var Ql=Jl.set;Object.defineProperty(CSSStyleDeclaration.prototype,"background",{get:Jl.get,set(e){var t=Yl(e);return Ql.call(this,t)},configurable:!0})}var ec=Object.getOwnPropertyDescriptor(HTMLImageElement.prototype,"src");if(ec){var tc=ec.get,nc=ec.set;Object.defineProperty(HTMLImageElement.prototype,"src",{get(){return tc.call(this)},set(e){var t=Fl(jl(e));if(kl&&t.startsWith("/assets/")){var n=t.replace(/^\//,""),r=kl.baseDir?kl.baseDir+"/"+n:n;if(kl.has(r)){var i=kl.get(r),o=new Blob([i],{type:Ol(r)}),a=URL.createObjectURL(o);return nc.call(this,a)}}if(kl&&kl.has(t)){var s=kl.get(t),u=new Blob([s],{type:Ol(t)}),l=URL.createObjectURL(u);return nc.call(this,l)}return nc.call(this,t)},configurable:!0,enumerable:!0})}var rc=Object.getOwnPropertyDescriptor(HTMLMediaElement.prototype,"src");if(rc){var ic=rc.get,oc=rc.set;Object.defineProperty(HTMLMediaElement.prototype,"src",{get(){return ic.call(this)},set(e){if("string"==typeof e&&/^https?:\/\//i.test(e))return oc.call(this,e);if("string"==typeof e&&e.startsWith("//"))return oc.call(this,e);var t=Fl(jl(e));if(kl&&t.startsWith("/assets/")){var n=t.replace(/^\//,""),r=kl.baseDir?kl.baseDir+"/"+n:n;if(kl.has(r)){var i=kl.get(r),o=new Blob([i],{type:Ol(r)}),a=URL.createObjectURL(o);return oc.call(this,a)}}if(kl&&t.startsWith("/")&&kl.has(t)){var s=kl.get(t),u=new Blob([s],{type:Ol(t)}),l=URL.createObjectURL(u);return oc.call(this,l)}return oc.call(this,t)},configurable:!0,enumerable:!0})}if("undefined"!=typeof fetch){var ac=n.g.fetch;n.g.fetch=function(e,t){var n=e;"string"==typeof e?n=e:e instanceof Request&&(n=e.url);var r=jl(n);if(kl&&r.startsWith("/")){if(r.startsWith("/assets/")){var i=r.replace(/^\//,""),o=kl.baseDir?kl.baseDir+"/"+i:i;if(kl.has(o)){var a=kl.get(o);return Promise.resolve(new Response(a,{status:200,headers:{"Content-Type":Ol(o)}}))}}if(kl.has(r)){var s=kl.get(r);return Promise.resolve(new Response(s,{status:200,headers:{"Content-Type":Ol(r)}}))}}return r!==n&&("string"==typeof e?e=r:e instanceof Request&&(e=new Request(r,t))),ac(e,t)}}n.g.__ES_LAST_SDK_INFO__={eskit_ver_code:2.8},n.g.__ES_APP_READY__=!0,globalThis.__nativeLocalStorage=ln,globalThis.__localStorage=dn,Object.defineProperty(window,"localStorage",{value:dn,writable:!1,configurable:!0}),un(),n.g.__WEB_COMPONENTS__=n.g.__WEB_COMPONENTS__||{},n.g.__WEB_COMPONENTS__.IJKPlayerComponent=ll,function(){if(n.g.Hippy||(n.g.Hippy={}),!n.g.Hippy.SceneBuilder){var e=function(e){return e&&"string"==typeof e?e.startsWith("on")?e:"on".concat(e.charAt(0).toUpperCase()).concat(e.slice(1)):e};n.g.Hippy.SceneBuilder=function(t){var r=this;this.rootViewId=t,this.create=function(e){n.g.Hippy.bridge.callNative("UIManagerModule","createNode",r.rootViewId,e)},this.update=function(e){n.g.Hippy.bridge.callNative("UIManagerModule","updateNode",r.rootViewId,e)},this.delete=function(e){n.g.Hippy.bridge.callNative("UIManagerModule","deleteNode",r.rootViewId,e)},this.move=function(e){n.g.Hippy.bridge.callNative("UIManagerModule","moveNode",r.rootViewId,e)},this.build=function(){},this.addEventListener=function(t,r,i){var o=e(r);n.g.Hippy.bridge.callNative("UIManagerModule","addEventListener",t,o,i)},this.removeEventListener=function(t,r,i){n.g.Hippy.bridge.callNative("UIManagerModule","removeEventListener",t,e(r),i)}}}}();var sc=Lr.create({modules:{ESModule:iu,ESLocalStorageModule:cu,EsNativeModule:hu,AndroidSharedPreferencesModule:gu,AndroidDevelopModule:ku,AndroidNetworkModule:H,AndroidFileModule:tt,ESToastModule:Pu,RuntimeDeviceModule:K,ESIJKAudioPlayerModule:Pe,ESSoundPoolAudioPlayerModule:He,ESLogModule:Iu,FastListModule:va,FocusModule:Du,ESDeviceInfoModule:ju,ESGroupDataModule:Ku,ESDownloadModule:ct,ESHLogModule:$u,ESAndroidAudioPlayerModule:Zu,ESPlayerIJKModule:Ju,BoxInstallModule:Qu,CanvasModule:nl},components:hl});!function(e){var t,r,i;if(t=Object.prototype.toString,Object.prototype.toString=function(){var e=t.call(this);return"[object AsyncFunction]"===e||"[object GeneratorFunction]"===e?"[object Function]":e},function(e){h=e}(e),function(e){if(!_t){var t=n.g.hippyCallNatives;if("function"==typeof t){var r=new Set(["initSharedPreferences","initESSharedPreferences","getBoolean","putBoolean","getInt","putInt","getLong","putLong","getString","putString","getItem","setItem"]),i=new Set(["getESDeviceInfo","getESSDKInfo","getESSDKVersionCode","getESSDKVersionName","getESPackageName","getESAppFilePath","getESAppRuntimePath","getSupportSchemes","launchESPageByArgs","launchESPage","launchNativeApp","launchNativeAppWithPackage","finish","finishAll","isModuleRegistered","isComponentRegistered"]),o=new Set(["getDevelop","getPackageName","getVersionName","getVersionCode","getChannel","getVendor"]);n.g.hippyCallNatives=function(a,u,l,c){var d;if("ExtendModule"!==a||"callUIFunction"!==u){if("ESIJKAudioPlayerModule"===a){var h,f=null===(h=n.g.__WEB_MODULES__)||void 0===h?void 0:h.ESIJKAudioPlayerModule;if(f&&"function"==typeof f[u]){var p=f[u].apply(f,[l].concat(k(c||[])));return p&&"function"==typeof p.catch?p.catch(function(e){}):p}}if("ESSoundPoolAudioPlayerModule"===a||"ESSoundPoolPlayerModule"===a){var v,y=null===(v=n.g.__WEB_MODULES__)||void 0===v?void 0:v.ESSoundPoolAudioPlayerModule;if(y&&"function"==typeof y[u]){var m={resolve:function(e){var t,r=null===(t=n.g.__GLOBAL__)||void 0===t||null===(t=t.moduleCallList)||void 0===t?void 0:t[l];r&&"function"==typeof r.cb&&(r.cb(e),0!==r.type&&1!==r.type||delete n.g.__GLOBAL__.moduleCallList[l])},reject:function(e){var t,r=null===(t=n.g.__GLOBAL__)||void 0===t||null===(t=t.moduleCallList)||void 0===t?void 0:t[l];r&&"function"==typeof r.reject&&(r.reject(e),0!==r.type&&1!==r.type||delete n.g.__GLOBAL__.moduleCallList[l])}},g=y[u].apply(y,k(c||[]).concat([m]));return g&&"function"==typeof g.catch?g.catch(function(e){}):g}}if("AndroidFileModule"!==a){if("ESDownloadModule"!==a){if(null==e||null===(d=e.modules)||void 0===d||!d[a]){if(r.has(u))return t("ESLocalStorageModule",u,l,c);if(i.has(u))return t("ESModule",u,l,c);if(o.has(u))return t("AndroidDevelopModule",u,l,c)}if("UIManagerModule"===a&&("createNode"===u||"updateNode"===u||"deleteNode"===u)){var b=s(c||[],2),w=b[0],E=b[1];if(Array.isArray(E)){var S=E.map(function(e){return Array.isArray(e)?e:[e,null]});return t(a,u,l,[w,S])}}return t(a,u,l,c)}var A,x,C=(null==e||null===(A=e.modules)||void 0===A?void 0:A.ESDownloadModule)||(null===(x=n.g.__WEB_MODULES__)||void 0===x?void 0:x.ESDownloadModule);if(C&&"function"==typeof C[u]){var T={resolve:function(e){var t,r=null===(t=n.g.__GLOBAL__)||void 0===t||null===(t=t.moduleCallList)||void 0===t?void 0:t[l];r&&"function"==typeof r.cb&&(r.cb(e),0!==r.type&&1!==r.type||delete n.g.__GLOBAL__.moduleCallList[l])},reject:function(e){var t,r=null===(t=n.g.__GLOBAL__)||void 0===t||null===(t=t.moduleCallList)||void 0===t?void 0:t[l];r&&"function"==typeof r.reject&&(r.reject(e),0!==r.type&&1!==r.type||delete n.g.__GLOBAL__.moduleCallList[l])}},L=C[u].apply(C,k(c||[]).concat([T]));return L&&"function"==typeof L.catch?L.catch(function(e){}):L}}else{var O,P,I=(null==e||null===(O=e.modules)||void 0===O?void 0:O.AndroidFileModule)||(null===(P=n.g.__WEB_MODULES__)||void 0===P?void 0:P.AndroidFileModule);if(I&&"function"==typeof I[u]){var N={resolve:function(e){var t,r=null===(t=n.g.__GLOBAL__)||void 0===t||null===(t=t.moduleCallList)||void 0===t?void 0:t[l];r&&"function"==typeof r.cb&&(r.cb(e),0!==r.type&&1!==r.type||delete n.g.__GLOBAL__.moduleCallList[l])},reject:function(e){var t,r=null===(t=n.g.__GLOBAL__)||void 0===t||null===(t=t.moduleCallList)||void 0===t?void 0:t[l];r&&"function"==typeof r.reject&&(r.reject(e),0!==r.type&&1!==r.type||delete n.g.__GLOBAL__.moduleCallList[l])}},R=I[u].apply(I,k(c||[]).concat([N]));return R&&"function"==typeof R.catch?R.catch(function(e){}):R}}}else{var D=s(c||[],3),M=D[0],F=D[1],B=D[2];if(!M||!F)return;var j=_(M);if(j&&"function"==typeof j[F])try{return j[F].apply(j,k(B||[]))}catch(e){}}},_t=!0}}}(e),function(){var e;if(!gt){var t=null===(e=n.g.Hippy)||void 0===e?void 0:e.bridge;if(t&&t.callNative){var r=t.callNative.bind(t);t.callNative=function(e,t){for(var i=arguments.length,o=new Array(i>2?i-2:0),a=2;a<i;a++)o[a-2]=arguments[a];if("ESIJKAudioPlayerModule"===e){var u,l=null===(u=n.g.__WEB_MODULES__)||void 0===u?void 0:u.ESIJKAudioPlayerModule;if(l&&"function"==typeof l[t]){var c=l[t].apply(l,[-1].concat(o));return c&&"function"==typeof c.catch?c.catch(function(e){}):c}}if("ESSoundPoolAudioPlayerModule"===e||"ESSoundPoolPlayerModule"===e){var d,h=null===(d=n.g.__WEB_MODULES__)||void 0===d?void 0:d.ESSoundPoolAudioPlayerModule;if(h&&"function"==typeof h[t]){var f=h[t].apply(h,o);return f&&"function"==typeof f.catch?f.catch(function(e){}):f}}if("AndroidFileModule"===e){var p,v=null===(p=n.g.__WEB_MODULES__)||void 0===p?void 0:p.AndroidFileModule;if(v&&"function"==typeof v[t]){var y=v[t].apply(v,o);return y&&"function"==typeof y.catch?y.catch(function(e){}):y}}if("ESDownloadModule"===e){var m,g=null===(m=n.g.__WEB_MODULES__)||void 0===m?void 0:m.ESDownloadModule;if(g&&"function"==typeof g[t]){var b=g[t].apply(g,o);return b&&"function"==typeof b.catch?b.catch(function(e){}):b}}if("UIManagerModule"===e){if("addEventListener"===t){var w=o[0],k=o[1],A=o[2],x=_(w);return void(x&&x.addEventListener&&x.addEventListener(k,A))}if("removeEventListener"===t){var C=o[0],T=o[1],L=o[2],O=_(C);return void(O&&O.removeEventListener&&O.removeEventListener(T,L))}if("callUIFunction"===t){var P,I,N,R;if(Array.isArray(o[0])){var D=o[0],M=o[1],F=s(D||[],3);P=F[0],I=F[1],N=F[2],R=M}else P=o[0],I=o[1],N=o[2],R=o[3];var B=_(P);if(B&&"function"==typeof B[I])try{var j=B[I](N);return R&&"function"==typeof R&&R(j),j}catch(e){}return}if("createNode"===t){var V=o[0],W=o[1];if(Array.isArray(W)){var H=!1;if(W.forEach(function(e){var t=e;Array.isArray(e)&&(t=e[0]),t&&"ESPageRootView"===t.name&&(H=!0)}),H){var U=n.g.__TV_FOCUS_MANAGER__;U&&"function"==typeof U.saveCurrentPageFocus&&U.saveCurrentPageFocus()}var G=W.map(function(e){var t=e,n=null;return Array.isArray(e)&&(t=e[0],n=e[1]),t&&"object"==typeof t&&(t.name||(t.name="View"),mt||"app"!==t.pId&&t.pId!==V||(mt=t.id,t.props&&(t.props.style=t.props.style||{},t.props.style.width=E,t.props.style.height=S,delete t.props.style.flex))),Array.isArray(e)?[t,n]:t});return r(e,t,V,G)}}if("updateNode"===t){var z=o[0],Y=o[1];if(Array.isArray(Y)){var q=Y.map(function(e){var t=e,n=null;return Array.isArray(e)&&(t=e[0],n=e[1]),t&&"object"==typeof t&&(t.name||(t.name="View"),mt&&t.id===mt&&t.props&&(t.props.style=t.props.style||{},t.props.style.width=E,t.props.style.height=S,delete t.props.style.flex)),[t,n]});return r(e,t,z,q)}}if("deleteNode"===t){var X=o[0],K=o[1];if(Array.isArray(K)){var $=K.map(function(e){return Array.isArray(e)?e:[e]});return $.forEach(function(e){var t=e;if(Array.isArray(e)&&(t=e[0]),t&&"object"==typeof t&&"ESPageRootView"===t.name){var r=n.g.__TV_FOCUS_MANAGER__;r&&"function"==typeof r.restorePreviousPageFocus&&setTimeout(function(){r.restorePreviousPageFocus()},50)}}),r(e,t,X,$)}}}if("ESNetworkSpeedModule"===e&&ot&&"function"==typeof ot[t])ot[t].apply(ot,o);else{if("ESPluginModule"!==e)return r.apply(void 0,[e,t].concat(o));if("install"===t){var Z=Array.isArray(o[0])?o[0][0]:o[0];return void ae("onESPluginStateChanged",{success:!0,pkg:null==Z?void 0:Z.pkg,status:0,msg:"Plugin installed successfully (web)"})}}},gt=!0}}}(),function(){var e,t=null===(e=n.g.Hippy)||void 0===e?void 0:e.bridge;if(t&&t.callNativeWithPromise){var r=t.callNativeWithPromise.bind(t);t.callNativeWithPromise=function(e,t){for(var i=arguments.length,o=new Array(i>2?i-2:0),a=2;a<i;a++)o[a-2]=arguments[a];if("ESIJKAudioPlayerModule"===e){var s,u=null===(s=n.g.__WEB_MODULES__)||void 0===s?void 0:s.ESIJKAudioPlayerModule;if(u&&"function"==typeof u[t]){var l=u[t].apply(u,[-1].concat(o));return l instanceof Promise?l:Promise.resolve(l)}}if("RuntimeDeviceModule"===e&&$&&"function"==typeof $[t]){var c=$[t].apply($,o);return c instanceof Promise?c:Promise.resolve(c)}if("AndroidDeviceModule"===e&&N&&"function"==typeof N[t]){var d=N[t].apply(N,o);return d instanceof Promise?d:Promise.resolve(d)}if("AndroidNetworkModule"===e&&U&&"function"==typeof U[t]){var h=U[t].apply(U,o);return h instanceof Promise?h:Promise.resolve(h)}if("ESSoundPoolAudioPlayerModule"===e||"ESSoundPoolPlayerModule"===e){var f,p=null===(f=n.g.__WEB_MODULES__)||void 0===f?void 0:f.ESSoundPoolAudioPlayerModule;if(p&&"function"==typeof p[t]){var y=p[t].apply(p,o);return y instanceof Promise?y:Promise.resolve(y)}}if("AndroidFileModule"===e){var m,g,_=v(),b=(null==_||null===(m=_.modules)||void 0===m?void 0:m.AndroidFileModule)||(null===(g=n.g.__WEB_MODULES__)||void 0===g?void 0:g.AndroidFileModule);if(b&&"function"==typeof b[t]){var w=b[t].apply(b,o);return w instanceof Promise?w:Promise.resolve(w)}}return r.apply(void 0,[e,t].concat(o))}}}(),r=n.g.Hippy.document.callUIFunction.bind(n.g.Hippy.document),i=function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:10,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:50,s=_(e);if(s&&"function"==typeof s[t])try{var u=s[t](n);return r&&"function"==typeof r&&r(u),u}catch(e){}else o>0&&setTimeout(function(){i(e,t,n,r,o-1,a)},a)},n.g.Hippy.document.callUIFunction=function(e,t,n,o){var a,s,u,l;Array.isArray(e)&&"function"==typeof t?(a=e[0],s=e[1],u=e[2],l=t):(a=e,s=t,u=n,l=o);var c=_(a);if(c&&"function"==typeof c[s])try{var d=c[s](u);return l&&"function"==typeof l&&l(d),d}catch(e){}else if(!c)return void i(a,s,u,l);return r(a,s,u,l)},bt(),wt(),function(e){var t,n,r=null===(t=e.context)||void 0===t||null===(n=t.getModuleByName)||void 0===n?void 0:n.call(t,"HippyWeb");if(r&&r.setElementStyle&&!r._setElementStylePatched){var i=r.setElementStyle.bind(r);r.setElementStyle=function(e,t){var n=(0,dt.Zd)(Ct(e,t));i(e,n)},r._setElementStylePatched=!0}}(e),Tt(),Lt||(Lt=new MutationObserver(function(){return Tt()})).observe(document.head,{childList:!0,subtree:!0}),!Ot(e)){var o=function(){Ot(e)||requestAnimationFrame(o)};requestAnimationFrame(o)}}(sc);var uc=new $t;n.g.__TV_FOCUS_MANAGER__=uc;var lc=document.createElement("style");lc.id="web-runtime-css",lc.textContent='\n #app, #app * { align-items: flex-start; }\n [style*="align-items"] { align-items: var(--align-items, center) !important; }\n',document.head.appendChild(lc);var cc=new URLSearchParams(window.location.search);function dc(e){return hc.apply(this,arguments)}function hc(){return(hc=l(d().mark(function e(t){var n,r,i;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=1,fetch(t);case 1:if((n=e.sent).ok){e.next=2;break}return e.abrupt("return",!1);case 2:return e.next=3,n.text();case 3:return r=e.sent,r=Dl()+r,(i=document.createElement("script")).textContent=r,document.body.appendChild(i),e.abrupt("return",!0);case 4:return e.prev=4,e.catch(0),e.abrupt("return",!1);case 5:case"end":return e.stop()}},e,null,[[0,4]])}))).apply(this,arguments)}function fc(e){return pc.apply(this,arguments)}function pc(){return(pc=l(d().mark(function e(t){return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise(function(e,r){var i=document.createElement("script");i.src=t,i.onload=function(){setTimeout(function(){var t;null!==(t=n.g.__GLOBAL__)&&void 0!==t&&t.jsModuleList&&Object.keys(n.g.__GLOBAL__.jsModuleList).forEach(function(e){}),e()},100)},i.onerror=function(e){r(e)},document.body.appendChild(i)}));case 1:case"end":return e.stop()}},e)}))).apply(this,arguments)}function vc(e){return yc.apply(this,arguments)}function yc(){return yc=l(d().mark(function e(t){var r,i,o,a,s,u,l,c;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=1,Rl(t),o=!1,!t.endsWith("index.android.js")){e.next=3;break}return a=t.replace("index.android.js","vendor.android.js"),e.next=2,dc(a);case 2:o=e.sent,e.next=4;break;case 3:t.endsWith("index.bundle");case 4:return o||(s=Dl(),(u=document.createElement("script")).textContent=s,document.body.appendChild(u)),e.next=5,fc(t);case 5:if(l=null===(r=n.g.__GLOBAL__)||void 0===r||null===(r=r.jsModuleList)||void 0===r?void 0:r.EventDispatcher,0!==(c=Object.keys((null===(i=n.g.__GLOBAL__)||void 0===i?void 0:i.appRegister)||{})).length){e.next=6;break}return e.abrupt("return");case 6:c.includes(A)?A:c[0],fl(sc),l&&(n.g.__GLOBAL__=n.g.__GLOBAL__||{},n.g.__GLOBAL__.jsModuleList=n.g.__GLOBAL__.jsModuleList||{},n.g.__GLOBAL__.jsModuleList.EventDispatcher=l),e.next=8;break;case 7:e.prev=7,e.catch(1);case 8:case"end":return e.stop()}},e,null,[[1,7]])})),yc.apply(this,arguments)}function mc(){return gc.apply(this,arguments)}function gc(){return(gc=l(d().mark(function e(){var t,r,i,o,a,s,u,l,c,h,f,p;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,i=kl.entryFile){e.next=1;break}throw new Error("No entry file in ZIP cache");case 1:if((o=document.getElementById("bundle-info"))&&(o.textContent="Loading: "+kl.zipName),a=i.substring(0,i.lastIndexOf("/")),s=a?"".concat(a,"/vendor.android.js"):"vendor.android.js",!kl.has(s)){e.next=3;break}return e.next=2,Pl(s);case 2:e.next=4;break;case 3:if(u=kl.list(),!(l=u.find(function(e){return e.endsWith("vendor.android.js")}))){e.next=4;break}return e.next=4,Pl(l);case 4:return e.next=5,Pl(i);case 5:return e.next=6,new Promise(function(e){return setTimeout(e,100)});case 6:if(c=null===(t=n.g.__GLOBAL__)||void 0===t||null===(t=t.jsModuleList)||void 0===t?void 0:t.EventDispatcher,0!==(h=Object.keys((null===(r=n.g.__GLOBAL__)||void 0===r?void 0:r.appRegister)||{})).length){e.next=7;break}return e.abrupt("return");case 7:h.includes(A)?A:h[0],fl(sc),c&&(n.g.__GLOBAL__=n.g.__GLOBAL__||{},n.g.__GLOBAL__.jsModuleList=n.g.__GLOBAL__.jsModuleList||{},n.g.__GLOBAL__.jsModuleList.EventDispatcher=c),o&&(o.textContent="Running: "+kl.zipName),e.next=9;break;case 8:e.prev=8,p=e.catch(0),(f=document.getElementById("bundle-info"))&&(f.textContent="Error: "+p.message);case 9:case"end":return e.stop()}},e,null,[[0,8]])}))).apply(this,arguments)}n.g.__GLOBAL__=n.g.__GLOBAL__||{},n.g.__GLOBAL__.appRegister=new Proxy({},{set:(e,t,n)=>(e[t]=n,!0),get:(e,t)=>e[t]}),window.addEventListener("zip-file-selected",function(){var e=l(d().mark(function e(t){var n,r,i;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.detail.file,r=document.getElementById("bundle-info"),e.prev=1,r&&(r.textContent="Extracting "+n.name+"..."),e.next=2,xl(n);case 2:e.next=4;break;case 3:e.prev=3,i=e.catch(1),r&&(r.textContent="Error: "+i.message);case 4:case"end":return e.stop()}},e,null,[[1,3]])}));return function(t){return e.apply(this,arguments)}}()),window.addEventListener("directory-dropped",function(){var e=l(d().mark(function e(t){var n,r,i,o,a,s,u;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.detail,r=n.files,i=n.entryFile,o=n.name,a=document.getElementById("bundle-info"),e.prev=1,a&&(a.textContent="正在保存 "+Object.keys(r).length+" 个文件..."),e.next=2,yl(r,i,o);case 2:return e.next=3,gl();case 3:e.sent,a&&(a.textContent="保存完成,正在加载..."),(s=new URL(window.location.href)).searchParams.set("zip","1"),s.searchParams.delete("bundle"),window.location.href=s.toString(),e.next=5;break;case 4:e.prev=4,u=e.catch(1),a&&(a.textContent="Error: "+u.message);case 5:case"end":return e.stop()}},e,null,[[1,4]])}));return function(t){return e.apply(this,arguments)}}());var _c="1"===cc.get("zip"),bc=cc.get("bundle"),wc=cc.get("zipUrl");function kc(){return(kc=l(d().mark(function e(){var t,n,r,i,o;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t=document.getElementById("bundle-info"),!_c){e.next=5;break}return e.next=1,gl();case 1:if(!(n=e.sent)){e.next=3;break}return kl.loadFromData(n),e.next=2,mc();case 2:e.next=4;break;case 3:t&&(t.textContent="No ZIP cache found. Please upload a ZIP file."),(r=new URL(window.location.href)).searchParams.delete("zip"),window.location.replace(r.toString());case 4:e.next=17;break;case 5:if(!wc){e.next=12;break}return e.next=6,bl();case 6:return i=cc.has("_force"),window.__LOADING_OVERLAY__&&(window.__LOADING_OVERLAY__.show(),window.__LOADING_OVERLAY__.update(0,"准备下载...")),e.prev=7,e.next=8,Tl(wc,function(e,n){t&&(t.textContent=n),window.__LOADING_OVERLAY__&&window.__LOADING_OVERLAY__.update(e,n)},i);case 8:return window.__LOADING_OVERLAY__&&window.__LOADING_OVERLAY__.update(100,"加载完成"),e.next=9,mc();case 9:window.__LOADING_OVERLAY__&&window.__LOADING_OVERLAY__.hide(),e.next=11;break;case 10:e.prev=10,o=e.catch(7),t&&(t.textContent="下载失败: "+o.message),window.__LOADING_OVERLAY__&&window.__LOADING_OVERLAY__.hide();case 11:e.next=17;break;case 12:if(!bc){e.next=15;break}return e.next=13,bl();case 13:return e.next=14,vc(bc);case 14:e.next=17;break;case 15:return e.next=16,bl();case 16:t&&(t.textContent="请上传 ZIP 包开始预览");case 17:case"end":return e.stop()}},e,null,[[7,10]])}))).apply(this,arguments)}!function(){kc.apply(this,arguments)}()},79(e){e.exports=function(e,t){this.v=e,this.k=t},e.exports.__esModule=!0,e.exports.default=e.exports},794(e,t,n){var r=n(313);function i(){var t,n,o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.toStringTag||"@@toStringTag";function u(e,i,o,a){var s=i&&i.prototype instanceof c?i:c,u=Object.create(s.prototype);return r(u,"_invoke",function(e,r,i){var o,a,s,u=0,c=i||[],d=!1,h={p:0,n:0,v:t,a:f,f:f.bind(t,4),d:function(e,n){return o=e,a=0,s=t,h.n=n,l}};function f(e,r){for(a=e,s=r,n=0;!d&&u&&!i&&n<c.length;n++){var i,o=c[n],f=h.p,p=o[2];e>3?(i=p===r)&&(s=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=t):o[0]<=f&&((i=e<2&&f<o[1])?(a=0,h.v=r,h.n=o[1]):f<p&&(i=e<3||o[0]>r||r>p)&&(o[4]=e,o[5]=r,h.n=p,a=0))}if(i||e>1)return l;throw d=!0,r}return function(i,c,p){if(u>1)throw TypeError("Generator is already running");for(d&&1===c&&f(c,p),a=c,s=p;(n=a<2?t:s)||!d;){o||(a?a<3?(a>1&&(h.n=-1),f(a,s)):h.n=s:h.v=s);try{if(u=2,o){if(a||(i="next"),n=o[i]){if(!(n=n.call(o,s)))throw TypeError("iterator result is not an object");if(!n.done)return n;s=n.value,a<2&&(a=0)}else 1===a&&(n=o.return)&&n.call(o),a<2&&(s=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=t}else if((n=(d=h.n<0)?s:e.call(r,h))!==l)break}catch(e){o=t,a=1,s=e}finally{u=1}}return{value:n,done:d}}}(e,o,a),!0),u}var l={};function c(){}function d(){}function h(){}n=Object.getPrototypeOf;var f=[][a]?n(n([][a]())):(r(n={},a,function(){return this}),n),p=h.prototype=c.prototype=Object.create(f);function v(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,r(e,s,"GeneratorFunction")),e.prototype=Object.create(p),e}return d.prototype=h,r(p,"constructor",h),r(h,"constructor",d),d.displayName="GeneratorFunction",r(h,s,"GeneratorFunction"),r(p),r(p,s,"Generator"),r(p,a,function(){return this}),r(p,"toString",function(){return"[object Generator]"}),(e.exports=i=function(){return{w:u,m:v}},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports},408(e,t,n){var r=n(404);e.exports=function(e,t,n,i,o){var a=r(e,t,n,i,o);return a.next().then(function(e){return e.done?e.value:a.next()})},e.exports.__esModule=!0,e.exports.default=e.exports},404(e,t,n){var r=n(794),i=n(666);e.exports=function(e,t,n,o,a){return new i(r().w(e,t,n,o),a||Promise)},e.exports.__esModule=!0,e.exports.default=e.exports},666(e,t,n){var r=n(79),i=n(313);e.exports=function e(t,n){function o(e,i,a,s){try{var u=t[e](i),l=u.value;return l instanceof r?n.resolve(l.v).then(function(e){o("next",e,a,s)},function(e){o("throw",e,a,s)}):n.resolve(l).then(function(e){u.value=e,a(u)},function(e){return o("throw",e,a,s)})}catch(e){s(e)}}var a;this.next||(i(e.prototype),i(e.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),i(this,"_invoke",function(e,t,r){function i(){return new n(function(t,n){o(e,r,t,n)})}return a=a?a.then(i,i):i()},!0)},e.exports.__esModule=!0,e.exports.default=e.exports},313(e){function t(n,r,i,o){var a=Object.defineProperty;try{a({},"",{})}catch(n){a=0}e.exports=t=function(e,n,r,i){function o(n,r){t(e,n,function(e){return this._invoke(n,r,e)})}n?a?a(e,n,{value:r,enumerable:!i,configurable:!i,writable:!i}):e[n]=r:(o("next",0),o("throw",1),o("return",2))},e.exports.__esModule=!0,e.exports.default=e.exports,t(n,r,i,o)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},394(e){e.exports=function(e){var t=Object(e),n=[];for(var r in t)n.unshift(r);return function e(){for(;n.length;)if((r=n.pop())in t)return e.value=r,e.done=!1,e;return e.done=!0,e}},e.exports.__esModule=!0,e.exports.default=e.exports},740(e,t,n){var r=n(79),i=n(794),o=n(408),a=n(404),s=n(666),u=n(394),l=n(36);function c(){"use strict";var t=i(),n=t.m(c),d=(Object.getPrototypeOf?Object.getPrototypeOf(n):n.__proto__).constructor;function h(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))}var f={throw:1,return:2,break:3,continue:3};function p(e){var t,n;return function(r){t||(t={stop:function(){return n(r.a,2)},catch:function(){return r.v},abrupt:function(e,t){return n(r.a,f[e],t)},delegateYield:function(e,i,o){return t.resultName=i,n(r.d,l(e),o)},finish:function(e){return n(r.f,e)}},n=function(e,n,i){r.p=t.prev,r.n=t.next;try{return e(n,i)}finally{t.next=r.n}}),t.resultName&&(t[t.resultName]=r.v,t.resultName=void 0),t.sent=r.v,t.next=r.n;try{return e.call(this,t)}finally{r.p=t.prev,r.n=t.next}}}return(e.exports=c=function(){return{wrap:function(e,n,r,i){return t.w(p(e),n,r,i&&i.reverse())},isGeneratorFunction:h,mark:t.m,awrap:function(e,t){return new r(e,t)},AsyncIterator:s,async:function(e,t,n,r,i){return(h(t)?a:o)(p(e),t,n,r,i)},keys:u,values:l}},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=c,e.exports.__esModule=!0,e.exports.default=e.exports},36(e,t,n){var r=n(611).default;e.exports=function(e){if(null!=e){var t=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],n=0;if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}throw new TypeError(r(e)+" is not iterable")},e.exports.__esModule=!0,e.exports.default=e.exports},611(e){function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},715(e,t,n){var r=n(740)();e.exports=r;try{regeneratorRuntime=r}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},298(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(517);function i(e,t,n){return(t=(0,r.A)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},517(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(553);function i(e){var t=function(e,t){if("object"!=(0,r.A)(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=(0,r.A)(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==(0,r.A)(t)?t:t+""}},553(e,t,n){"use strict";function r(e){return r="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},r(e)}n.d(t,{A:()=>r})},824(e,t,n){"use strict";n.d(t,{Zd:()=>u,pb:()=>o,yf:()=>s});var r=n(298);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){return"string"!=typeof e?e:e.replace(/^hpfile:\/\/\.?\//,"/").replace(/^hpfile:\/\//,"/")}function a(e){if("string"!=typeof e)return e;var t=o(e);if(!t.startsWith("/assets/"))return t;var n=window.__VIRTUAL_FS__;if(!n||"function"!=typeof n.get)return t;var r=window.__WEB_VFS_BLOB_URL_CACHE__=window.__WEB_VFS_BLOB_URL_CACHE__||new Map;if(r.has(t))return r.get(t);var i=n.get(t);if(!i)return t;var a,s=URL.createObjectURL(new Blob([i],{type:(a=t,{png:"image/png",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",webp:"image/webp",svg:"image/svg+xml"}[String(a).split(".").pop().toLowerCase()]||"application/octet-stream")}));return r.set(t,s),s}function s(e,t){if("string"!=typeof t)return t;var n=String(e).toLowerCase();if("backgroundimage"!==n&&"background-image"!==n&&"background"!==n)return t;var r=t.trim();if(!r)return t;if(/url\(/i.test(r))return function(e){return e.replace(/url\(\s*(['"]?)([^'")\s]+)\1\s*\)/gi,function(e,t,n){var r=a(n);return r===n?e:"url(".concat(r,")")})}(r);var i=a(r);return i!==r?"url(".concat(i,")"):t}function u(e){if(!e||"object"!=typeof e)return e;var t=e;return["backgroundImage","background","background-image"].forEach(function(n){if(Object.prototype.hasOwnProperty.call(e,n)){var o=s(n,e[n]);o!==e[n]&&(t===e&&(t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach(function(t){(0,r.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},e)),t[n]=o)}}),t}},814(e,t,n){"use strict";n.d(t,{Hd:()=>u,bindTemplateDataToNode:()=>_,u6:()=>g,vy:()=>l});var r=n(298),i=n(824);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach(function(t){(0,r.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function s(e,t){return e.split(".").reduce(function(e,t){return e&&void 0!==e[t]?e[t]:void 0},t)}function u(e,t){if(!e||!t)return e;var n=String(e).match(/^\$\{([^}]+)\}$/);return n?s(n[1],t):e}function l(e,t){return e&&t?String(e).replace(/\$\{([^}]+)\}/g,function(e,n){var r=s(n,t);return void 0!==r?String(r):e}):e}function c(e,t){if(t&&"object"==typeof t){var n=["flexDirection","justifyContent","alignItems","alignContent","flexWrap","flexGrow","flexShrink","flexBasis","order","alignSelf"];Object.keys(t).some(function(e){return n.includes(e)})&&!Object.keys(t).includes("display")&&(e.style.display="flex"),Object.keys(t).forEach(function(n){var r=t[n];("backgroundImage"!==n&&"background"!==n||(r=(0,i.yf)(n,r)),"number"==typeof r)&&(["width","height","minWidth","minHeight","maxWidth","maxHeight","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","margin","marginTop","marginRight","marginBottom","marginLeft","top","left","right","bottom","borderRadius","borderWidth","fontSize","lineHeight","letterSpacing","gap","rowGap","columnGap"].includes(n)&&(r+="px"));try{"x"!==n&&"y"!==n&&(e.style[n]=r)}catch(t){try{if("x"!==n&&"y"!==n){var o=n.replace(/([A-Z])/g,"-$1").toLowerCase();e.style.setProperty(o,r)}}catch(e){}}})}}function d(e,t){if(t){if(Array.isArray(t)){var n=t[0],r=t[1],i=t[2],o=t[3],a=e.style.position||"",s=""===a||"absolute"===a||"fixed"===a||"relative"===a;return s&&null!=n&&(e.style.left="number"==typeof n?"".concat(n,"px"):n),s&&null!=r&&(e.style.top="number"==typeof r?"".concat(r,"px"):r),null!=i&&(e.style.width="number"==typeof i?"".concat(i,"px"):i),null!=o&&(e.style.height="number"==typeof o?"".concat(o,"px"):o),void(!s||void 0===n&&void 0===r||e.style.position&&"relative"!==e.style.position||(e.style.position="absolute"))}if("object"==typeof t){var u=t.x,l=t.y,c=t.width,d=t.height,h=e.style.position||"",f=""===h||"absolute"===h||"fixed"===h||"relative"===h;f&&null!=u&&(e.style.left="number"==typeof u?"".concat(u,"px"):u),f&&null!=l&&(e.style.top="number"==typeof l?"".concat(l,"px"):l),null!=c&&(e.style.width="number"==typeof c?"".concat(c,"px"):c),null!=d&&(e.style.height="number"==typeof d?"".concat(d,"px"):d),!f||void 0===u&&void 0===l||e.style.position&&"relative"!==e.style.position||(e.style.position="absolute")}}}function h(e,t){if(t&&"object"==typeof t){var n=t.left,r=t.top,i=t.right,o=t.bottom;null!=n&&(e.style.marginLeft="number"==typeof n?"".concat(n,"px"):n),null!=r&&(e.style.marginTop="number"==typeof r?"".concat(r,"px"):r),null!=i&&(e.style.marginRight="number"==typeof i?"".concat(i,"px"):i),null!=o&&(e.style.marginBottom="number"==typeof o?"".concat(o,"px"):o)}}function f(e,t){if(t){if(Array.isArray(t)){var n=t[0],r=t[1];return null!=n&&(e.style.width="number"==typeof n?"".concat(n,"px"):n),void(null!=r&&(e.style.height="number"==typeof r?"".concat(r,"px"):r))}if("object"==typeof t){var i=t.width,o=t.height;null!=i&&(e.style.width="number"==typeof i?"".concat(i,"px"):i),null!=o&&(e.style.height="number"==typeof o?"".concat(o,"px"):o)}}}function p(e){var t=window.__HIPPY_COMPONENT_REGISTRY__;return t&&t.get(e)||null}function v(e,t){var n=String(e).match(/^\$\{([^}]+)\}$/);return n?{isPure:!0,value:s(n[1],t)}:{isPure:!1,value:l(e,t)}}function y(e){if(!e||e.nodeType!==Node.ELEMENT_NODE)return null;var t=e.children;if(!t||0===t.length)return null;for(var n=0,r=Array.from(t);n<r.length;n++){var i=r[n];if(i.classList&&i.classList.contains("qt-text-inner"))return i}return null}function m(e){if(e&&e.nodeType===Node.ELEMENT_NODE&&(!e.hasAttribute||e.hasAttribute("autoWidth")||e.hasAttribute("autowidth"))){var t=y(e);if(t){var n=t.scrollWidth||t.offsetWidth;if(!(n<=0)){e.style.width=n+"px",e.style.minWidth=n+"px";for(var r=e.parentElement;r;){if(r.hasAttribute&&(r.hasAttribute("autoWidth")||r.hasAttribute("autowidth"))){var i=window.getComputedStyle(r),o=n+(parseInt(i.paddingLeft)||0)+(parseInt(i.paddingRight)||0);r.style.width=o+"px",r.style.minWidth=o+"px",r.querySelectorAll("[autoWidth], [autowidth]").forEach(function(t){t!==e&&(y(t)||"absolute"===window.getComputedStyle(t).position&&(t.style.left="0",t.style.right="0",t.style.width="auto"))});break}r=r.parentElement}}}}}function g(e){e&&e.nodeType===Node.ELEMENT_NODE&&e.querySelector&&e.querySelectorAll("[autoWidth], [autowidth]").forEach(function(e){y(e)&&m(e)})}function _(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t){var i=a(a({},r.scope||{}),t);if(e.nodeType!==Node.TEXT_NODE){if(e.nodeType===Node.ELEMENT_NODE){for(var o=0,y=Array.from(e.childNodes);o<y.length;o++){var g=y[o];g.nodeType===Node.TEXT_NODE&&g.textContent&&g.textContent.includes("${")&&_(g,i,r)}var b=p(e),w=!0,k=null!==(n=e.getAttribute("data-template-type"))&&void 0!==n?n:e.getAttribute("type");if(null!=k&&""!==k){var E=String(k);if(E.includes("${")&&(E=String(l(E,i))),E!==(void 0!==i.type&&null!==i.type?String(i.type):null))return e.style.display="none",void e.setAttribute("data-type-match","false");"none"===e.style.display&&"false"===e.getAttribute("data-type-match")&&e.style.removeProperty("display"),e.setAttribute("data-type-match","true")}Array.from(e.attributes).map(function(e){return"".concat(e.name,'="').concat(e.value,'"')}).join(", ");var S=e.getAttribute("showIf")||e.getAttribute("showif");S&&(e.setAttribute("data-showif-expr",S),e.removeAttribute("showIf"),e.removeAttribute("showif"));var A=e.getAttribute("data-showif-expr");if(A){var x=function(e,t){if(!e)return!0;var n=e.match(/^\$\{([^}]+)\}$/);if(!n)return!!e;var r=n[1].trim();if(r.includes("==")){var i=r.split("==").map(function(e){return e.trim()});if(2===i.length){var o=s(i[0],t),a=i[1].trim();if("true"===a)return!0===o;if("false"===a)return!1===o}}return!!s(r,t)}(A,i),C=!1===x?"false":"true";if(e.getAttribute("data-showif-result")!==C){if(e.setAttribute("data-showif-result",C),!1===x)return e.style.display="none",void(b&&"function"==typeof b.setVisible&&b.setVisible(!1));"none"===e.style.display&&e.style.removeProperty("display"),b&&"function"==typeof b.setVisible&&b.setVisible(!0)}else if(!1===x)return}for(var T=0,L=Array.from(e.attributes);T<L.length;T++){var O=L[T],P=O.value;if(P&&"string"==typeof P&&P.includes("${")){var I=O.name.toLowerCase(),N=v(P,i);if("list"!==I&&"listdata"!==I)if("flexstyle"!==I)if("layout"!==I)if("decoration"!==I)if("size"!==I)if("textsize"!==I&&"fontsize"!==I){var R=N.isPure?void 0!==N.value?String(N.value):P:N.value;b&&("text"===I&&"function"==typeof b.setText?b.setText(R):"function"==typeof b.updateProperty&&b.updateProperty(O.name,R)),e.setAttribute(O.name,R)}else{var D=N.isPure?N.value:u(P,i);if(void 0!==D){if(b&&"function"==typeof b.updateProperty)b.updateProperty(O.name,D);else{var M="number"==typeof D?D+"px":D;e.style.fontSize=M}e.removeAttribute(O.name)}}else{var F=N.isPure?N.value:u(P,i);null!=F&&(b&&"function"==typeof b.updateProperty?b.updateProperty(O.name,F):f(e,F),e.removeAttribute(O.name))}else{var B=N.isPure?N.value:u(P,i);B&&"object"==typeof B&&(b&&"function"==typeof b.updateProperty?b.updateProperty(O.name,B):h(e,B),e.removeAttribute(O.name))}else{var j=N.isPure?N.value:u(P,i);null!=j&&(b&&"function"==typeof b.updateProperty?b.updateProperty(O.name,j):d(e,j),e.removeAttribute(O.name))}else{var V=N.isPure?N.value:u(P,i);V&&"object"==typeof V&&(b&&"function"==typeof b.updateProperty?b.updateProperty(O.name,V):c(e,V),e.removeAttribute(O.name))}else{var W=N.isPure?N.value:u(P,i);Array.isArray(W)?("function"==typeof r.onListData&&r.onListData(e,W,O.name),w=!1,e.removeAttribute(O.name)):(b&&"function"==typeof b.updateProperty&&b.updateProperty(O.name,W),void 0===W?e.setAttribute(O.name,P):e.setAttribute(O.name,String(W)))}}}if(e.style&&e.style.cssText&&e.style.cssText.includes("${")&&(e.style.cssText=l(e.style.cssText,i),m(e)),"IMG"===e.tagName&&e.getAttribute("src")){var H=e.getAttribute("src"),U=function(e){if(!e||"string"!=typeof e)return e;if(e.startsWith("file://")){var t=e.slice(7);return(t=t.replace(/^\/+/,"")).startsWith("./")&&(t=t.slice(2)),"./"+t}return e.startsWith("assets/")?"./"+e:e}(H.includes("${")?l(H,i):H);U!==H&&(b&&"function"==typeof b.updateProperty&&b.updateProperty("src",U),e.setAttribute("src",U),e.src=U)}w&&Array.from(e.childNodes).forEach(function(e){_(e,i,r)})}}else{var G=e.textContent;if(G&&G.includes("${")){var z=l(G,i);if(z!==G){var Y=e.parentElement,q=Y&&Y.classList&&Y.classList.contains("qt-text-inner")?function(e){for(var t=e&&e.nodeType===Node.TEXT_NODE?e.parentElement:e;t;){var n=p(t);if(n)return n;t=t.parentElement}return null}(e):null;q&&"function"==typeof q.setText?q.setText(z):(e.textContent=z,Y&&Y.classList&&Y.classList.contains("qt-text-inner")&&m(Y.parentElement))}}}}}}},o={};function a(e){var t=o[e];if(void 0!==t)return t.exports;var n=o[e]={exports:{}},r=!0;try{i[e](n,n.exports,a),r=!1}finally{r&&delete o[e]}return n.exports}a.m=i,a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,a.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"==typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"==typeof n.then)return n}var i=Object.create(null);a.r(i);var o={};e=e||[null,t({}),t([]),t(t)];for(var s=2&r&&n;("object"==typeof s||"function"==typeof s)&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach(e=>o[e]=()=>n[e]);return o.default=()=>n,a.d(i,o),i},a.d=(e,t)=>{for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.f={},a.e=e=>Promise.all(Object.keys(a.f).reduce((t,n)=>(a.f[n](e,t),t),[])),a.u=e=>"web-runtime.ccab04df97ffd41b3a94.js",a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n={},r="@quicktvui/web-runtime:",a.l=(e,t,i,o)=>{if(n[e])n[e].push(t);else{var s,u;if(void 0!==i)for(var l=document.getElementsByTagName("script"),c=0;c<l.length;c++){var d=l[c];if(d.getAttribute("src")==e||d.getAttribute("data-webpack")==r+i){s=d;break}}s||(u=!0,(s=document.createElement("script")).charset="utf-8",a.nc&&s.setAttribute("nonce",a.nc),s.setAttribute("data-webpack",r+i),s.src=e),n[e]=[t];var h=(t,r)=>{s.onerror=s.onload=null,clearTimeout(f);var i=n[e];if(delete n[e],s.parentNode&&s.parentNode.removeChild(s),i&&i.forEach(e=>e(r)),t)return t(r)},f=setTimeout(h.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=h.bind(null,s.onerror),s.onload=h.bind(null,s.onload),u&&document.head.appendChild(s)}},a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;a.g.importScripts&&(e=a.g.location+"");var t=a.g.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");if(n.length)for(var r=n.length-1;r>-1&&(!e||!/^http(s?):/.test(e));)e=n[r--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),a.p=e})(),(()=>{var e={57:0};a.f.j=(t,n)=>{var r=a.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var i=new Promise((n,i)=>r=e[t]=[n,i]);n.push(r[2]=i);var o=a.p+a.u(t),s=new Error;a.l(o,n=>{if(a.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var i=n&&("load"===n.type?"missing":n.type),o=n&&n.target&&n.target.src;s.message="Loading chunk "+t+" failed.\n("+i+": "+o+")",s.name="ChunkLoadError",s.type=i,s.request=o,r[1](s)}},"chunk-"+t,t)}};var t=(t,n)=>{var r,i,[o,s,u]=n,l=0;if(o.some(t=>0!==e[t])){for(r in s)a.o(s,r)&&(a.m[r]=s[r]);if(u)u(a)}for(t&&t(n);l<o.length;l++)i=o[l],a.o(e,i)&&e[i]&&e[i][0](),e[i]=0},n=(0,eval)("this").webpackChunk_quicktvui_web_runtime=(0,eval)("this").webpackChunk_quicktvui_web_runtime||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),a(11);a(515)})();
|
|
1
|
+
/*! For license information please see web-runtime.4c6a3c6f447bf2481c3e.js.LICENSE.txt */
|
|
2
|
+
(()=>{var e,t,n,r,i={11(e){var t=function(e){"use strict";var t,n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var o=t&&t.prototype instanceof m?t:m,a=Object.create(o.prototype),s=new O(r||[]);return i(a,"_invoke",{value:x(e,n,s)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var h="suspendedStart",f="suspendedYield",p="executing",v="completed",y={};function m(){}function g(){}function _(){}var b={};l(b,a,function(){return this});var w=Object.getPrototypeOf,k=w&&w(w(P([])));k&&k!==n&&r.call(k,a)&&(b=k);var E=_.prototype=m.prototype=Object.create(b);function S(e){["next","throw","return"].forEach(function(t){l(e,t,function(e){return this._invoke(t,e)})})}function A(e,t){function n(i,o,a,s){var u=d(e[i],e,o);if("throw"!==u.type){var l=u.arg,c=l.value;return c&&"object"==typeof c&&r.call(c,"__await")?t.resolve(c.__await).then(function(e){n("next",e,a,s)},function(e){n("throw",e,a,s)}):t.resolve(c).then(function(e){l.value=e,a(l)},function(e){return n("throw",e,a,s)})}s(u.arg)}var o;i(this,"_invoke",{value:function(e,r){function i(){return new t(function(t,i){n(e,r,t,i)})}return o=o?o.then(i,i):i()}})}function x(e,n,r){var i=h;return function(o,a){if(i===p)throw new Error("Generator is already running");if(i===v){if("throw"===o)throw a;return{value:t,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var u=C(s,r);if(u){if(u===y)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===h)throw i=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=p;var l=d(e,n,r);if("normal"===l.type){if(i=r.done?v:f,l.arg===y)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(i=v,r.method="throw",r.arg=l.arg)}}}function C(e,n){var r=n.method,i=e.iterator[r];if(i===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,C(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var o=d(i,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,y;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,y):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function L(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function O(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function P(e){if(null!=e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function n(){for(;++i<e.length;)if(r.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return o.next=o}}throw new TypeError(typeof e+" is not iterable")}return g.prototype=_,i(E,"constructor",{value:_,configurable:!0}),i(_,"constructor",{value:g,configurable:!0}),g.displayName=l(_,u,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,l(e,u,"GeneratorFunction")),e.prototype=Object.create(E),e},e.awrap=function(e){return{__await:e}},S(A.prototype),l(A.prototype,s,function(){return this}),e.AsyncIterator=A,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new A(c(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then(function(e){return e.done?e.value:a.next()})},S(E),l(E,u,"Generator"),l(E,a,function(){return this}),l(E,"toString",function(){return"[object Generator]"}),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=P,O.prototype={constructor:O,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(r,i){return s.type="throw",s.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var u=r.call(a,"catchLoc"),l=r.call(a,"finallyLoc");if(u&&l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,y):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),L(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;L(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:P(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),y}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}},515(e,t,n){"use strict";function r(e){if(Array.isArray(e))return e}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function o(e,t){if(e){if("string"==typeof e)return i(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}function a(){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 s(e,t){return r(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,i=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(e,t)||o(e,t)||a()}function u(e,t,n,r,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,i)}function l(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function a(e){u(o,r,i,a,s,"next",e)}function s(e){u(o,r,i,a,s,"throw",e)}a(void 0)})}}var c=n(715),d=n.n(c),h=null,f=new Map,p=new Map;function v(){return h}function y(e,t){f.set(e,t)}function m(e,t){e&&"string"==typeof e&&p.set(e,t)}function g(e){p.has(e)&&p.delete(e)}function _(e){if("string"==typeof e)return t=e,p.has(t)?p.get(t):null;var t;if(f.has(e))return f.get(e);if(!h)return null;try{var n,r,i=null===(n=h.context)||void 0===n||null===(r=n.getModuleByName)||void 0===r?void 0:r.call(n,"UIManagerModule");if(i&&i.findViewById){var o=i.findViewById(e);if(o)return o}}catch(e){}return null}var b=n(298);function w(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function k(e){return function(e){if(Array.isArray(e))return i(e)}(e)||w(e)||o(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.")}()}var E=1920,S=1080,A="EsApp";function x(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var C=n(517);function T(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(0,C.A)(r.key),r)}}function L(e,t,n){return t&&T(e.prototype,t),n&&T(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function O(e,t){var n=e&&e.length?e[e.length-1]:null;return n&&"function"==typeof n.resolve&&n.resolve(t),t}function P(e){var t=e&&e.length?e[e.length-1]:null;return t&&"function"==typeof t.resolve&&t.resolve(!0),Promise.resolve(!0)}var I=function(){return L(function e(){x(this,e),this.name="AndroidDeviceModule"},[{key:"getAndroidDevice",value:(w=l(c.mark(function e(){var t,n,r,i,o,a,s,u,l,d,h,f,p=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=this._getScreenInfo(),n=this._generateDeviceId(),r="web",i=this._getBrowserInfo(),e.next=1,this._getLocalIP();case 1:for(o=e.sent,a=this._generateMAC(),s=this._estimateTotalMemoryMB(),u=this._estimateAvailMemoryMB(),l={deviceId:n,deviceType:r,ipAddress:o,ethMac:"",wifiMac:a,totalMemory:s,availableMemory:u,screenWidth:t.width,screenHeight:t.height,resolution:"".concat(t.width,"x").concat(t.height),density:String(t.density),densityDpi:String(t.densityDpi),scaledDensity:String(t.scaledDensity),buildModel:i,buildBrand:"Web",buildDevice:"Browser",buildBoard:"Web",buildProduct:"quicktvui-web",buildHardware:"Web",buildManufacturer:"quicktvui",buildSerial:"",buildTags:"",buildId:"",buildTime:"",buildType:"",buildUser:"",buildBootloader:"",buildDisplay:"",buildFingerPrint:"",buildVersionIncremental:"",buildVersionBaseOS:"",buildVersionCodeName:"",buildVersionSecurityPatch:"",buildVersionPreviewSDKInt:0,buildVersionSDKInt:0,buildVersionRelease:"Web"},d=p.length,h=new Array(d),f=0;f<d;f++)h[f]=p[f];return e.abrupt("return",O(h,l));case 2:case"end":return e.stop()}},e,this)})),function(){return w.apply(this,arguments)})},{key:"getEthMac",value:(b=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",O(n,""));case 1:case"end":return e.stop()}},e)})),function(){return b.apply(this,arguments)})},{key:"getWifiMac",value:(_=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",O(n,this._generateMAC()));case 1:case"end":return e.stop()}},e,this)})),function(){return _.apply(this,arguments)})},{key:"getTotalMemory",value:(g=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",O(n,this._estimateTotalMemoryMB()));case 1:case"end":return e.stop()}},e,this)})),function(){return g.apply(this,arguments)})},{key:"getAvailableMemory",value:(m=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",O(n,this._estimateAvailMemoryMB()));case 1:case"end":return e.stop()}},e,this)})),function(){return m.apply(this,arguments)})},{key:"getScreenWidth",value:(y=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",O(n,this._getScreenInfo().width));case 1:case"end":return e.stop()}},e,this)})),function(){return y.apply(this,arguments)})},{key:"getScreenHeight",value:(v=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",O(n,this._getScreenInfo().height));case 1:case"end":return e.stop()}},e,this)})),function(){return v.apply(this,arguments)})},{key:"getResolution",value:(p=l(c.mark(function e(){var t,n,r,i,o=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=this._getScreenInfo(),n=o.length,r=new Array(n),i=0;i<n;i++)r[i]=o[i];return e.abrupt("return",O(r,"".concat(t.width,"x").concat(t.height)));case 1:case"end":return e.stop()}},e,this)})),function(){return p.apply(this,arguments)})},{key:"getDensity",value:(f=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",O(n,this._getScreenInfo().density));case 1:case"end":return e.stop()}},e,this)})),function(){return f.apply(this,arguments)})},{key:"getDensityDpi",value:(h=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",O(n,this._getScreenInfo().densityDpi));case 1:case"end":return e.stop()}},e,this)})),function(){return h.apply(this,arguments)})},{key:"getScaledDensity",value:(d=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",O(n,this._getScreenInfo().scaledDensity));case 1:case"end":return e.stop()}},e,this)})),function(){return d.apply(this,arguments)})},{key:"getBuildVersionRelease",value:(u=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",O(n,"Web"));case 1:case"end":return e.stop()}},e)})),function(){return u.apply(this,arguments)})},{key:"getBuildModel",value:(s=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",O(n,this._getBrowserInfo()));case 1:case"end":return e.stop()}},e,this)})),function(){return s.apply(this,arguments)})},{key:"getBuildBrand",value:(a=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",O(n,"Web"));case 1:case"end":return e.stop()}},e)})),function(){return a.apply(this,arguments)})},{key:"getBuildDevice",value:(o=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",O(n,"Browser"));case 1:case"end":return e.stop()}},e)})),function(){return o.apply(this,arguments)})},{key:"getBuildBoard",value:(i=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",O(n,"Web"));case 1:case"end":return e.stop()}},e)})),function(){return i.apply(this,arguments)})},{key:"getBuildProduct",value:(r=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",O(n,"quicktvui-web"));case 1:case"end":return e.stop()}},e)})),function(){return r.apply(this,arguments)})},{key:"getBuildHardware",value:(n=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",O(n,"Web"));case 1:case"end":return e.stop()}},e)})),function(){return n.apply(this,arguments)})},{key:"getBuildManufacturer",value:(t=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",O(n,"quicktvui"));case 1:case"end":return e.stop()}},e)})),function(){return t.apply(this,arguments)})},{key:"_getScreenInfo",value:function(){if("undefined"==typeof window)return{width:1920,height:1080,density:1,densityDpi:160,scaledDensity:1};var e=window.devicePixelRatio||1;return{width:1920,height:1080,density:e,densityDpi:Math.round(160*e),scaledDensity:e}}},{key:"_generateDeviceId",value:function(){if("undefined"!=typeof localStorage){var e=localStorage.getItem("__ES_DEVICE_ID__");return e||(e="web-"+Math.random().toString(36).substring(2,15),localStorage.setItem("__ES_DEVICE_ID__",e)),e}return"web-"+Math.random().toString(36).substring(2,15)}},{key:"_generateMAC",value:function(){for(var e="0123456789ABCDEF",t="",n=0;n<6;n++)n>0&&(t+=":"),t+=e.charAt(Math.floor(16*Math.random())),t+=e.charAt(Math.floor(16*Math.random()));return t}},{key:"_getLocalIP",value:(e=l(c.mark(function e(){return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return","");case 1:case"end":return e.stop()}},e)})),function(){return e.apply(this,arguments)})},{key:"_estimateTotalMemory",value:function(){return"undefined"!=typeof performance&&performance.memory&&performance.memory.jsHeapSizeLimit||1073741824}},{key:"_estimateTotalMemoryMB",value:function(){return 4096}},{key:"_estimateAvailMemory",value:function(){if("undefined"!=typeof performance&&performance.memory){var e=performance.memory.jsHeapSizeLimit||1073741824,t=performance.memory.usedJSHeapSize||0;return Math.max(0,e-t)}return 536870912}},{key:"_estimateAvailMemoryMB",value:function(){return 2048}},{key:"_getBrowserInfo",value:function(){if("undefined"==typeof navigator)return"Unknown Browser";var e=navigator.userAgent,t="Unknown Browser";e.indexOf("Firefox")>-1?t="Firefox":e.indexOf("Edg")>-1?t="Edge":e.indexOf("Chrome")>-1?t="Chrome":e.indexOf("Safari")>-1?t="Safari":(e.indexOf("Opera")>-1||e.indexOf("OPR")>-1)&&(t="Opera");var n=e.match(/(Firefox|Chrome|Safari|Edg|OPR)\/(\d+)/);return n?"".concat(n[1]," ").concat(n[2]):t}}]);var e,t,n,r,i,o,a,s,u,d,h,f,p,v,y,m,g,_,b,w}(),N=new I,R=0,D=1,M=9,F=1,B=3;function j(){if("undefined"==typeof navigator||!navigator.connection)return M;var e=navigator.connection,t=e.type||e.effectiveType;return"wifi"===t?D:"cellular"===t||"2g"===t||"3g"===t||"4g"===t?R:"ethernet"===t?M:e.effectiveType&&["4g","3g","2g","slow-2g"].includes(e.effectiveType)?R:M}function V(){return"undefined"==typeof navigator||navigator.onLine}function W(){if("undefined"==typeof navigator||!navigator.connection)return{downlink:10,effectiveType:"4g",rtt:50,saveData:!1};var e=navigator.connection;return{downlink:e.downlink||10,effectiveType:e.effectiveType||"4g",rtt:e.rtt||50,saveData:e.saveData||!1}}var H=function(){return L(function e(t){x(this,e),this.context=t,this.name="",this.mode="normal"},[{key:"getActiveNetworkInfo",value:(n=l(c.mark(function e(){var t,n,r,i,o,a,s,u=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=V(),n=j(),r=W(),i={type:n,typeName:this._getTypeName(n),subtype:0,state:t?B:F,extraInfo:"",isAvailable:t,isConnected:t,isConnectedOrConnecting:t,isFailover:!1,isRoaming:!1,detailedState:t?1:0,describeContents:0,downlink:r.downlink,effectiveType:r.effectiveType,rtt:r.rtt,saveData:r.saveData},o=u.length,a=new Array(o),s=0;s<o;s++)a[s]=u[s];return e.abrupt("return",O(a,i));case 1:case"end":return e.stop()}},e,this)})),function(){return n.apply(this,arguments)})},{key:"getWifiInfo",value:(t=l(c.mark(function e(){var t,n,r,i,o,a,s=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=j(),n=W(),r={ssid:"",strength:t===D?Math.round(n.downlink/10*100):0},i=s.length,o=new Array(i),a=0;a<i;a++)o[a]=s[a];return e.abrupt("return",O(o,r));case 1:case"end":return e.stop()}},e)})),function(){return t.apply(this,arguments)})},{key:"_getTypeName",value:function(e){switch(e){case D:return"WIFI";case R:return"MOBILE";case M:return"ETHERNET";default:return"UNKNOWN"}}},{key:"destroy",value:function(){}},{key:"init",value:(e=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",P(n));case 1:case"end":return e.stop()}},e)})),function(){return e.apply(this,arguments)})}]);var e,t,n}(),U=new H,G="quicktvui_device_id";function z(){return"undefined"!=typeof crypto&&"function"==typeof crypto.randomUUID?crypto.randomUUID():"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})}function Y(){return q.apply(this,arguments)}function q(){return(q=l(c.mark(function e(){var t,n;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=1,localStorage.getItem(G);case 1:if(!(t=e.sent)){e.next=2;break}return e.abrupt("return",t);case 2:e.next=4;break;case 3:e.prev=3,e.catch(0);case 4:n=z();try{localStorage.setItem(G,n)}catch(e){}return e.abrupt("return",n);case 5:case"end":return e.stop()}},e,null,[[0,3]])}))).apply(this,arguments)}function X(){var e=navigator.userAgent,t="unknown",n="unknown",r="";if(/Windows/i.test(e)){n="windows";var i=e.match(/Windows NT (\d+\.?\d*)/);r=i?i[1]:""}else if(/Mac/i.test(e)){n="mac";var o=e.match(/Mac OS X (\d+[._]\d+[._]?\d*)/);r=o?o[1].replace(/_/g,"."):""}else if(/Linux/i.test(e))n="linux";else if(/Android/i.test(e)){n="android";var a=e.match(/Android (\d+\.?\d*\.?\d*)/);r=a?a[1]:""}else if(/iOS|iPhone|iPad/i.test(e)){n="ios";var s=e.match(/OS (\d+_\d+_?\d*)/);r=s?s[1].replace(/_/g,"."):""}return/Chrome/i.test(e)&&!/Edge|Edg/i.test(e)?t="chrome":/Safari/i.test(e)&&!/Chrome/i.test(e)?t="safari":/Firefox/i.test(e)?t="firefox":/Edge|Edg/i.test(e)&&(t="edge"),{browser:t,os:n,osVersion:r}}var K=function(){return L(function e(t){x(this,e),this.context=t,this.name="",this.mode="normal",this._deviceId=null},[{key:"_getDeviceId",value:(i=l(c.mark(function e(){return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(this._deviceId){e.next=2;break}return e.next=1,Y();case 1:this._deviceId=e.sent;case 2:return e.abrupt("return",this._deviceId);case 3:case"end":return e.stop()}},e,this)})),function(){return i.apply(this,arguments)})},{key:"getRuntimeDeviceId",value:(r=l(c.mark(function e(){var t,n,r,i,o=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,this._getDeviceId();case 1:for(t=e.sent,n=o.length,r=new Array(n),i=0;i<n;i++)r[i]=o[i];return e.abrupt("return",O(r,t));case 2:case"end":return e.stop()}},e,this)})),function(){return r.apply(this,arguments)})},{key:"getRuntimeDeviceType",value:(n=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",O(n,"web"));case 1:case"end":return e.stop()}},e)})),function(){return n.apply(this,arguments)})},{key:"getRuntimeDeviceInfo",value:(t=l(c.mark(function e(){var t,n,r,i,o,a,s,u,l,d=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=X(),n=t.browser,r=t.os,i=t.osVersion,e.next=1,this._getDeviceId();case 1:for(o=e.sent,a={deviceId:o,deviceSerial:o,deviceType:"web",deviceModel:n,deviceBrand:"web",osName:r,osVersion:i,osApiLevel:"",screenWidth:window.screen.width||0,screenHeight:window.screen.height||0,screenDensity:window.devicePixelRatio||1,appVersion:"",appVersionCode:0,networkType:"unknown",platform:"web"},s=d.length,u=new Array(s),l=0;l<s;l++)u[l]=d[l];return e.abrupt("return",O(u,a));case 2:case"end":return e.stop()}},e,this)})),function(){return t.apply(this,arguments)})},{key:"destroy",value:function(){}},{key:"init",value:(e=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",P(n));case 1:case"end":return e.stop()}},e)})),function(){return e.apply(this,arguments)})}]);var e,t,n,r,i}(),$=new K;function Z(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function J(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Z(Object(n),!0).forEach(function(t){(0,b.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Z(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Q(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return ee(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ee(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function ee(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function te(){try{var e,t=null===(e=n.g.__GLOBAL__)||void 0===e?void 0:e.jsModuleList;return t&&t.EventDispatcher?t.EventDispatcher:null}catch(e){return null}}function ne(e){if("string"!=typeof e||0===e.length)return"";if(!e.startsWith("on"))return e;var t=e.slice(2);return t?"".concat(t.charAt(0).toLowerCase()).concat(t.slice(1)):e}var re=new Set(["onLoadPageData","onPageChanged"]),ie=new Map;function oe(e,t){var n=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return re.has(t)?JSON.stringify({targetNodeId:e,eventName:t,pageIndex:null==n?void 0:n.pageIndex,itemCount:null==n?void 0:n.itemCount,useDiff:null==n?void 0:n.useDiff}):null}(e,t,arguments.length>2&&void 0!==arguments[2]?arguments[2]:{});if(!n)return!1;var r=Date.now(),i=ie.get(n);if(ie.set(n,r),i&&r-i<=32)return!0;var o,a=Q(ie.entries());try{for(a.s();!(o=a.n()).done;){var u=s(o.value,2),l=u[0];r-u[1]>128&&ie.delete(l)}}catch(e){a.e(e)}finally{a.f()}return!1}function ae(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=te();if(!n)return!1;try{return n.receiveNativeEvent([e,t]),!0}catch(e){return!1}}function se(){return ae("hardwareBackPress",null)}function ue(e){return ae("DispatchKeyEvent",e)}function le(e){return ue(J(J({},e),{},{action:0}))}function ce(e){return ue(J(J({},e),{},{action:1}))}function de(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=te();if(!r||"function"!=typeof r.receiveNativeGesture)return!1;if("number"!=typeof e||!t)return!1;try{return r.receiveNativeGesture(J({id:e,name:t},n)),!0}catch(e){return!1}}function he(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=te();return!(!r||"number"!=typeof e||!t)&&("function"==typeof r.receiveNativeGesture?de(e,t,n):ae(t,J({id:e,currentId:e},n)))}function fe(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=te();if(!r)return!1;if("number"!=typeof e||!t)return!1;if(oe(e,t,n))return!0;try{return"function"==typeof r.receiveUIComponentEvent?(r.receiveUIComponentEvent([e,t,n]),!0):"function"==typeof r.receiveComponentEvent&&(r.receiveComponentEvent(function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return{id:e,currentId:e,nativeName:t,originalName:ne(t),params:n,eventPhase:2}}(e,t,n),{stopPropagation(){}}),!0)}catch(e){return!1}}var pe=0,ve=1,ye=2,me=3,ge=4,_e=5,be=6,we=7,ke=8,Ee=9,Se=10,Ae=11,xe=12,Ce=13,Te=26,Le=29,Oe=new(function(){return L(function e(){x(this,e),this.instances=new Map,this.defaultPlayRate=1,this.defaultVolume=1},[{key:"getInstance",value:function(e){if(!this.instances.has(e)){var t=new Audio;t.defaultPlaybackRate=this.defaultPlayRate,t.volume=this.defaultVolume,this._bindAudioEvents(t,e),this.instances.set(e,t)}return this.instances.get(e)}},{key:"_bindAudioEvents",value:function(e,t){var n=!1,r=pe;e.addEventListener("play",function(){r!==_e&&(r=_e,ae("onESAudioPlayerStatusChanged",{playerStatus:_e,playerState:_e}))}),e.addEventListener("playing",function(){r!==_e&&(r=_e,ae("onESAudioPlayerStatusChanged",{playerStatus:_e,playerState:_e}))}),e.addEventListener("pause",function(){r=ke,ae("onESAudioPlayerStatusChanged",{playerStatus:ke,playerState:ke})}),e.addEventListener("ended",function(){r=xe,n=!0,ae("onESAudioPlayerStatusChanged",{playerStatus:xe,playerState:xe})}),e.addEventListener("error",function(e){var t,n;r=Ce,ae("onESAudioPlayerError",{errorCode:(null===(t=e.target.error)||void 0===t?void 0:t.code)||-1,errorMessage:(null===(n=e.target.error)||void 0===n?void 0:n.message)||"Audio error"})}),e.addEventListener("loadstart",function(){n=!1,r=ve,ae("onESAudioPlayerStatusChanged",{playerStatus:ve,playerState:ve})}),e.addEventListener("canplay",function(){n||(n=!0,r=ye,ae("onESAudioPlayerStatusChanged",{playerStatus:ye,playerState:ye}))}),e.addEventListener("waiting",function(){ae("onESAudioPlayerStatusChanged",{playerStatus:me,playerState:me})}),e.addEventListener("canplaythrough",function(){ae("onESAudioPlayerStatusChanged",{playerStatus:ge,playerState:ge})}),e.addEventListener("durationchange",function(){e.duration&&!isNaN(e.duration)&&ae("onESAudioPlayerInfo",{what:1,extra:Math.floor(1e3*e.duration)})}),e.addEventListener("ratechange",function(){ae("onESAudioPlayRateChanged",{playRate:e.playbackRate})}),e.addEventListener("seeking",function(){ae("onESAudioPlayerStatusChanged",{playerStatus:be,playerState:be})}),e.addEventListener("seeked",function(){ae("onESAudioPlayerStatusChanged",{playerStatus:we,playerState:we})}),e.addEventListener("volumechange",function(){ae("onESAudioPlayerInfo",{what:2,extra:Math.floor(100*e.volume)})})}},{key:"removeInstance",value:function(e){var t=this.instances.get(e);t&&(t.pause(),t.src="",this.instances.delete(e))}},{key:"clearAll",value:function(){this.instances.forEach(function(e,t){e.pause(),e.src=""}),this.instances.clear()}}])}()),Pe=function(){return L(function e(t){x(this,e),this.context=t,this.name="",this.mode="normal"},[{key:"init",value:(u=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(ae("onESAudioPlayerStatusChanged",{playerStatus:Te,playerState:Te}),ae("onESAudioPlayerStatusChanged",{playerStatus:Le,playerState:Le}),t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",P(n));case 1:case"end":return e.stop()}},e)})),function(){return u.apply(this,arguments)})},{key:"initMediaPlayer",value:function(){ae("onESAudioPlayerStatusChanged",{playerStatus:Te,playerState:Te}),ae("onESAudioPlayerStatusChanged",{playerStatus:Le,playerState:Le});for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return O(t,null)}},{key:"play",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i,o=Oe.getInstance(e),a=n||[],s="",u=!0;if(a.length>0){var l=a[0];"string"==typeof l?s=l:Array.isArray(l)&&"string"==typeof l[0]?s=l[0]:"object"!=typeof l||null===l||Array.isArray(l)||(s=l.url||l.src||l.uri||"",u=!1!==l.autoplay)}if(s){var c=function(e){var t;if("string"!=typeof e||!e.startsWith("/"))return null;if(!/^\/(?:audio|assets)\/.+\.(mp3|wav|ogg|m4a|aac|webm)$/i.test(e))return null;if("undefined"==typeof window||null===(t=window.location)||void 0===t||!t.origin)return null;var n=window.__VIRTUAL_FS__;if(n&&n.has){var r=e.replace(/^\//,""),i=n.baseDir?n.baseDir+"/"+r:r;if(n.has(i)||n.has(e))return null}return"".concat(window.location.origin).concat(e)}(s="string"!=typeof(i=s)?i:i.startsWith("/data:")?i.slice(1):i.startsWith("file://")?i.slice(7)||"/":i.startsWith("//")?i.replace(/^\/+/,"/"):i);c&&(s=c),o.src=s,o.load()}return u&&o.src&&o.play().catch(function(e){ae("onESAudioPlayerError",{errorCode:-1,errorMessage:e.message||"Play error"})}),O(a,null)}},{key:"start",value:function(e){var t=Oe.getInstance(e);t.src&&t.play().catch(function(e){});for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return O(r,null)}},{key:"pause",value:function(e){Oe.getInstance(e).pause();for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return O(n,null)}},{key:"resume",value:function(e){Oe.getInstance(e).play().catch(function(e){}),ae("onESAudioPlayerStatusChanged",{playerStatus:Ee,playerState:Ee});for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return O(n,null)}},{key:"seekTo",value:function(e,t){var n=Oe.getInstance(e);n.duration&&t>=0&&(n.currentTime=Math.min(t/1e3,n.duration));for(var r=arguments.length,i=new Array(r>2?r-2:0),o=2;o<r;o++)i[o-2]=arguments[o];return O(i,null)}},{key:"stop",value:function(e){var t=Oe.getInstance(e);ae("onESAudioPlayerStatusChanged",{playerStatus:Se,playerState:Se}),t.pause(),t.currentTime=0,ae("onESAudioPlayerStatusChanged",{playerStatus:Ae,playerState:Ae});for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return O(r,null)}},{key:"setPlayRate",value:function(e,t){var n=Oe.getInstance(e);n.playbackRate=Number(t)||1,ae("onESAudioPlayRateChanged",{playRate:n.playbackRate});for(var r=arguments.length,i=new Array(r>2?r-2:0),o=2;o<r;o++)i[o-2]=arguments[o];return O(i,null)}},{key:"setVolume",value:function(e,t){Oe.getInstance(e).volume=Math.max(0,Math.min(1,Number(t)||0));for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return O(r,null)}},{key:"setLeftRightVolume",value:function(e,t,n){var r=Oe.getInstance(e),i=(Number(t)+Number(n))/2;r.volume=Math.max(0,Math.min(1,i||0));for(var o=arguments.length,a=new Array(o>3?o-3:0),s=3;s<o;s++)a[s-3]=arguments[s];return O(a,null)}},{key:"reset",value:function(e){var t=Oe.getInstance(e);t.pause(),t.currentTime=0,t.src="";for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return O(r,null)}},{key:"release",value:function(e){Oe.removeInstance(e);for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return O(n,null)}},{key:"isPlaying",value:(s=l(c.mark(function e(t){var n,r,i,o,a,s=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(n=Oe.getInstance(t),r=!n.paused&&n.currentTime>0,i=s.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=s[a];return e.abrupt("return",O(o,r));case 1:case"end":return e.stop()}},e)})),function(e){return s.apply(this,arguments)})},{key:"isPaused",value:(a=l(c.mark(function e(t){var n,r,i,o,a,s=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(n=Oe.getInstance(t),r=n.paused,i=s.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=s[a];return e.abrupt("return",O(o,r));case 1:case"end":return e.stop()}},e)})),function(e){return a.apply(this,arguments)})},{key:"getDuration",value:(o=l(c.mark(function e(t){var n,r,i,o,a,s=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(n=Oe.getInstance(t),r=n.duration&&!isNaN(n.duration)?1e3*n.duration:-1,i=s.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=s[a];return e.abrupt("return",O(o,r));case 1:case"end":return e.stop()}},e)})),function(e){return o.apply(this,arguments)})},{key:"getCurrentPosition",value:(i=l(c.mark(function e(t){var n,r,i,o,a,s=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(n=Oe.getInstance(t),r=n.currentTime&&!isNaN(n.currentTime)?1e3*n.currentTime:0,i=s.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=s[a];return e.abrupt("return",O(o,r));case 1:case"end":return e.stop()}},e)})),function(e){return i.apply(this,arguments)})},{key:"getBufferPercentage",value:(r=l(c.mark(function e(t){var n,r,i,o,a,s,u=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(n=Oe.getInstance(t),r=u.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=u[o];if(!(n.buffered.length>0&&n.duration>0)){e.next=1;break}return a=n.buffered.end(n.buffered.length-1),s=Math.round(a/n.duration*100),e.abrupt("return",O(i,s));case 1:return e.abrupt("return",O(i,0));case 2:case"end":return e.stop()}},e)})),function(e){return r.apply(this,arguments)})},{key:"getCurrentPlayRate",value:(n=l(c.mark(function e(t){var n,r,i,o,a=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(n=Oe.getInstance(t),r=a.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=a[o];return e.abrupt("return",O(i,n.playbackRate||1));case 1:case"end":return e.stop()}},e)})),function(e){return n.apply(this,arguments)})},{key:"getLeftVolume",value:(t=l(c.mark(function e(t){var n,r,i,o,a=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(n=Oe.getInstance(t),r=a.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=a[o];return e.abrupt("return",O(i,n.volume));case 1:case"end":return e.stop()}},e)})),function(e){return t.apply(this,arguments)})},{key:"getRightVolume",value:(e=l(c.mark(function e(t){var n,r,i,o,a=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(n=Oe.getInstance(t),r=a.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=a[o];return e.abrupt("return",O(i,n.volume));case 1:case"end":return e.stop()}},e)})),function(t){return e.apply(this,arguments)})},{key:"destroy",value:function(){Oe.clearAll()}}]);var e,t,n,r,i,o,a,s,u}(),Ie="files",Ne=null;function Re(){return new Promise(function(e,t){if(Ne)e(Ne);else{var n=indexedDB.open("es_vfs_db",1);n.onerror=function(){t(n.error)},n.onsuccess=function(){Ne=n.result,e(Ne)},n.onupgradeneeded=function(e){var t=e.target.result;t.objectStoreNames.contains(Ie)||t.createObjectStore(Ie,{keyPath:"path"})}}})}function De(e){return Me.apply(this,arguments)}function Me(){return(Me=l(c.mark(function e(t){var n;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=1,Re();case 1:return n=e.sent,e.abrupt("return",new Promise(function(e,r){var i=n.transaction([Ie],"readonly").objectStore(Ie).get(t);i.onsuccess=function(){i.result?e(i.result.data):e(null)},i.onerror=function(){r(i.error)}}));case 2:return e.prev=2,e.catch(0),e.abrupt("return",null);case 3:case"end":return e.stop()}},e,null,[[0,2]])}))).apply(this,arguments)}function Fe(e){var t;if("string"!=typeof e||!e.startsWith("/"))return null;if(!/^\/(?:audio|assets)\/.+\.(mp3|wav|ogg|m4a|aac|webm)$/i.test(e))return null;if("undefined"==typeof window||null===(t=window.location)||void 0===t||!t.origin)return null;var n=window.__VIRTUAL_FS__;if(n&&n.has){var r=e.replace(/^\//,""),i=n.baseDir?n.baseDir+"/"+r:r;if(n.has(i)||n.has(e))return null}return"".concat(window.location.origin).concat(e)}function Be(e){return"string"!=typeof e?e:e.startsWith("/data:")?e.slice(1):e.startsWith("file://")?e.slice(7)||"/":e.startsWith("//")?e.replace(/^\/+/,"/"):e}function je(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=function(){try{var e,t=null===(e=n.g.__GLOBAL__)||void 0===e?void 0:e.jsModuleList;return t&&t.EventDispatcher?t.EventDispatcher:null}catch(e){return null}}();if(!r)return!1;try{return r.receiveNativeEvent([e,t]),!0}catch(e){return!1}}var Ve=function(){return L(function e(){x(this,e),this.sounds=new Map,this.streams=new Map,this.nextSoundID=1,this.nextStreamID=1,this.maxStreams=10,this.config={usage:1,contentType:2,maxStreams:10,streamType:3,enableCache:!0}},[{key:"init",value:function(e,t,n,r,i){this.config={usage:e||1,contentType:t||2,maxStreams:n||10,streamType:r||3,enableCache:void 0===i||i},this.maxStreams=this.config.maxStreams}},{key:"load",value:(t=l(c.mark(function e(t){var n,r,i,o=this;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=this.nextSoundID++,r=t,t&&t.startsWith("/")&&t.includes("data:")&&(r=t.substring(t.indexOf("data:"))),(i=new Audio).preload="auto",e.abrupt("return",new Promise(function(e,t){var a=function(){i.removeEventListener("canplaythrough",a),i.removeEventListener("error",s),o.sounds.set(n,{url:r,audio:i}),e(n),setTimeout(function(){je("onESSoundPoolLoadComplete",{status:0,sampleId:n})},0)},s=function(e){var r,o;i.removeEventListener("canplaythrough",a),i.removeEventListener("error",s),je("onESSoundPoolLoadError",{soundID:n,errorCode:(null===(r=e.target)||void 0===r||null===(r=r.error)||void 0===r?void 0:r.code)||-1,errorMessage:(null===(o=e.target)||void 0===o||null===(o=o.error)||void 0===o?void 0:o.message)||"Load error"}),t(e)};i.addEventListener("canplaythrough",a),i.addEventListener("error",s),i.src=r,i.load()}));case 1:case"end":return e.stop()}},e,this)})),function(e){return t.apply(this,arguments)})},{key:"unload",value:function(e){var t=this.sounds.get(e);t&&(t.audio.pause(),t.audio.src="",this.sounds.delete(e))}},{key:"play",value:(e=l(c.mark(function e(t,n,r,i,o,a){var s,u,l,d,h,f=this;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(s=this.sounds.get(t)){e.next=1;break}return e.abrupt("return",Promise.reject(new Error("Sound not found")));case 1:return u=this.nextStreamID++,(l=new Audio).src=s.url,l.preload="auto",d=((n||1)+(r||1))/2,l.volume=Math.max(0,Math.min(1,d)),l.playbackRate=a||1,l.loop=-1===o||!0===o,this.streams.set(u,{soundID:t,audio:l}),l.addEventListener("ended",function(){f.streams.delete(u),je("onESSoundPoolPlayComplete",{streamID:u,soundID:t})}),l.addEventListener("error",function(e){var n,r;f.streams.delete(u),je("onESSoundPoolPlayError",{streamID:u,soundID:t,errorCode:(null===(n=e.target)||void 0===n||null===(n=n.error)||void 0===n?void 0:n.code)||-1,errorMessage:(null===(r=e.target)||void 0===r||null===(r=r.error)||void 0===r?void 0:r.message)||"Play error"})}),e.prev=2,e.next=3,l.play();case 3:return e.abrupt("return",u);case 4:throw e.prev=4,h=e.catch(2),this.streams.delete(u),h;case 5:case"end":return e.stop()}},e,this,[[2,4]])})),function(t,n,r,i,o,a){return e.apply(this,arguments)})},{key:"pause",value:function(e){var t=this.streams.get(e);t&&t.audio.pause()}},{key:"autoPause",value:function(){this.streams.forEach(function(e){e.audio.pause()})}},{key:"resume",value:function(e){var t=this.streams.get(e);t&&t.audio.paused&&t.audio.play().catch(function(e){})}},{key:"autoResume",value:function(){this.streams.forEach(function(e){e.audio.paused&&e.audio.play().catch(function(e){})})}},{key:"stop",value:function(e){var t=this.streams.get(e);t&&(t.audio.pause(),t.audio.currentTime=0,this.streams.delete(e))}},{key:"setVolume",value:function(e,t,n){var r=this.streams.get(e);if(r){var i=((t||1)+(n||1))/2;r.audio.volume=Math.max(0,Math.min(1,i))}}},{key:"setRate",value:function(e,t){var n=this.streams.get(e);n&&(n.audio.playbackRate=t||1)}},{key:"setPriority",value:function(e,t){}},{key:"setLoop",value:function(e,t){var n=this.streams.get(e);n&&(n.audio.loop=-1===t||!0===t)}},{key:"release",value:function(){this.streams.forEach(function(e){e.audio.pause(),e.audio.src=""}),this.streams.clear(),this.sounds.forEach(function(e){e.audio.pause(),e.audio.src=""}),this.sounds.clear(),this.nextSoundID=1,this.nextStreamID=1}}]);var e,t}(),We=new Ve,He=function(){return L(function e(t){x(this,e),this.context=t},[{key:"init",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t&&t.length?t[t.length-1]:null;return r&&"function"==typeof r.resolve&&r.resolve(!0),Promise.resolve(!0)}},{key:"initSoundPool",value:function(e,t,n,r,i){We.init(e,t,n,r,i);for(var o=arguments.length,a=new Array(o>5?o-5:0),s=5;s<o;s++)a[s-5]=arguments[s];return O(a,!0)}},{key:"load",value:(i=l(c.mark(function e(t){var r,i,o,a,s,u,l,d,h,f,p,v,y,m,g,_,b,w,k,E,S,A=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(r=A.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=A[o];if(e.prev=1,!(a=Be(t))||!a.startsWith("data:")){e.next=3;break}return e.next=2,We.load(a);case 2:return s=e.sent,e.abrupt("return",O(i,s));case 3:if(!a||!a.startsWith("http://")&&!a.startsWith("https://")){e.next=5;break}return e.next=4,We.load(a);case 4:return u=e.sent,e.abrupt("return",O(i,u));case 5:if(!n.g.__WEB_FILE_URL_MAP__||!n.g.__WEB_FILE_URL_MAP__.has(a)){e.next=7;break}return l=n.g.__WEB_FILE_URL_MAP__.get(a),e.next=6,We.load(l);case 6:return d=e.sent,e.abrupt("return",O(i,d));case 7:if(!(h=Fe(a))){e.next=9;break}return e.next=8,We.load(h);case 8:return f=e.sent,e.abrupt("return",O(i,f));case 9:if(!(p=window.__VIRTUAL_FS__)||!p.get){e.next=11;break}if(v=a.replace(/^\//,""),y=p.baseDir?p.baseDir+"/"+v:v,(m=p.get(y))||(m=p.get(a)),m||(m=p.get(v)),!m){e.next=11;break}return g=new Blob([m],{type:"audio/mpeg"}),_=URL.createObjectURL(g),e.next=10,We.load(_);case 10:return b=e.sent,e.abrupt("return",O(i,b));case 11:return e.next=12,De(a);case 12:if(w=e.sent){e.next=13;break}return e.abrupt("return",O(i,-1));case 13:return k=new Blob([w]),E=URL.createObjectURL(k),e.next=14,We.load(E);case 14:return S=e.sent,e.abrupt("return",O(i,S));case 15:return e.prev=15,e.catch(1),e.abrupt("return",O(i,-1));case 16:case"end":return e.stop()}},e,null,[[1,15]])})),function(e){return i.apply(this,arguments)})},{key:"unload",value:function(e){We.unload(e);for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return O(n,null)}},{key:"play",value:(r=l(c.mark(function e(t,n,r,i,o,a){var s,u,l,d,h=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(s=h.length,u=new Array(s>6?s-6:0),l=6;l<s;l++)u[l-6]=h[l];return e.prev=1,e.next=2,We.play(t,n,r,i,o,a);case 2:return d=e.sent,e.abrupt("return",O(u,d));case 3:return e.prev=3,e.catch(1),e.abrupt("return",O(u,-1));case 4:case"end":return e.stop()}},e,null,[[1,3]])})),function(e,t,n,i,o,a){return r.apply(this,arguments)})},{key:"pause",value:function(e){We.pause(e);for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return O(n,null)}},{key:"autoPause",value:function(){We.autoPause();for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return O(t,null)}},{key:"resume",value:function(e){We.resume(e);for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return O(n,null)}},{key:"autoResume",value:function(){We.autoResume();for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return O(t,null)}},{key:"stop",value:function(e){We.stop(e);for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return O(n,null)}},{key:"setVolume",value:function(e,t,n){We.setVolume(e,t,n);for(var r=arguments.length,i=new Array(r>3?r-3:0),o=3;o<r;o++)i[o-3]=arguments[o];return O(i,null)}},{key:"setRate",value:function(e,t){We.setRate(e,t);for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return O(r,null)}},{key:"setPriority",value:function(e,t){We.setPriority(e,t);for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return O(r,null)}},{key:"setLoop",value:function(e,t){We.setLoop(e,t);for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return O(r,null)}},{key:"release",value:function(){We.release();for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return O(t,null)}},{key:"playLocalFile",value:(t=l(c.mark(function e(t){var r,i,o,a,s,u,l,d,h,f,p,v,y,m,g,_,b,w,k,E,S,A,x,C,T,L,P,I=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(r=I.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=I[o];if(e.prev=1,!(a=Be(t))||!a.startsWith("data:")){e.next=4;break}return e.next=2,We.load(a);case 2:return s=e.sent,e.next=3,We.play(s,1,1,0,0,1);case 3:return u=e.sent,e.abrupt("return",O(i,u));case 4:if(!a||!a.startsWith("http://")&&!a.startsWith("https://")){e.next=7;break}return e.next=5,We.load(a);case 5:return l=e.sent,e.next=6,We.play(l,1,1,0,0,1);case 6:return d=e.sent,e.abrupt("return",O(i,d));case 7:if(!n.g.__WEB_FILE_URL_MAP__||!n.g.__WEB_FILE_URL_MAP__.has(a)){e.next=10;break}return h=n.g.__WEB_FILE_URL_MAP__.get(a),e.next=8,We.load(h);case 8:return f=e.sent,e.next=9,We.play(f,1,1,0,0,1);case 9:return p=e.sent,e.abrupt("return",O(i,p));case 10:if(!(v=Fe(a))){e.next=13;break}return e.next=11,We.load(v);case 11:return y=e.sent,e.next=12,We.play(y,1,1,0,0,1);case 12:return m=e.sent,e.abrupt("return",O(i,m));case 13:if(!(g=window.__VIRTUAL_FS__)||!g.get){e.next=16;break}if(_=a.replace(/^\//,""),b=g.baseDir?g.baseDir+"/"+_:_,(w=g.get(b))||(w=g.get(a)),w||(w=g.get(_)),!w){e.next=16;break}return k=new Blob([w],{type:"audio/mpeg"}),E=URL.createObjectURL(k),e.next=14,We.load(E);case 14:return S=e.sent,e.next=15,We.play(S,1,1,0,0,1);case 15:return A=e.sent,e.abrupt("return",O(i,A));case 16:return e.next=17,De(a);case 17:if(x=e.sent){e.next=18;break}return e.abrupt("return",O(i,-1));case 18:return C=new Blob([x]),T=URL.createObjectURL(C),e.next=19,We.load(T);case 19:return L=e.sent,e.next=20,We.play(L,1,1,0,0,1);case 20:return P=e.sent,e.abrupt("return",O(i,P));case 21:return e.prev=21,e.catch(1),e.abrupt("return",O(i,-1));case 22:case"end":return e.stop()}},e,null,[[1,21]])})),function(e){return t.apply(this,arguments)})},{key:"playNetworkFile",value:(e=l(c.mark(function e(t){var n,r,i,o,a=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(n=t,t&&"object"==typeof t&&(n=t.fileUrl||t.url||t.fileName),r=a.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=a[o];if(n){e.next=1;break}return e.abrupt("return",O(i,-1));case 1:return e.abrupt("return",this.playLocalFile.apply(this,[n].concat(i)));case 2:case"end":return e.stop()}},e,this)})),function(t){return e.apply(this,arguments)})},{key:"destroy",value:function(){We.release()}}]);var e,t,r,i}(),Ue="files",Ge=null;function ze(){return window.__VIRTUAL_FS__||null}function Ye(e){if(n.g.__WEB_FILE_URL_MAP__&&n.g.__WEB_FILE_URL_MAP__.has(e))return n.g.__WEB_FILE_URL_MAP__.get(e)||null;var t=function(e){var t;if("string"!=typeof e||!e.startsWith("/"))return null;if(!/^\/(?:audio|assets)\/.+\.(mp3|wav|ogg|m4a|aac|webm)$/i.test(e))return null;if("undefined"==typeof window||null===(t=window.location)||void 0===t||!t.origin)return null;var n=window.__VIRTUAL_FS__;if(n&&n.has){var r=e.replace(/^\//,""),i=n.baseDir?n.baseDir+"/"+r:r;if(n.has(i)||n.has(e))return null}return"".concat(window.location.origin).concat(e)}(e);return t?(n.g.__WEB_FILE_URL_MAP__||(n.g.__WEB_FILE_URL_MAP__=new Map),n.g.__WEB_FILE_URL_MAP__.set(e,t),t):null}function qe(e){return null==e?0:"string"==typeof e?e.length:"number"==typeof e.byteLength?e.byteLength:"number"==typeof e.length?e.length:0}function Xe(){return new Promise(function(e,t){if(Ge)e(Ge);else{var n=indexedDB.open("es_vfs_db",1);n.onerror=function(){t(n.error)},n.onsuccess=function(){Ge=n.result,e(Ge)},n.onupgradeneeded=function(e){var t=e.target.result;t.objectStoreNames.contains(Ue)||t.createObjectStore(Ue,{keyPath:"path"})}}})}function Ke(e){return $e.apply(this,arguments)}function $e(){return($e=l(c.mark(function e(t){var n;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=1,Xe();case 1:return n=e.sent,e.next=2,new Promise(function(e,r){var i=n.transaction([Ue],"readonly").objectStore(Ue).get(t);i.onsuccess=function(){e(i.result||null)},i.onerror=function(){r(i.error)}});case 2:return e.abrupt("return",e.sent);case 3:return e.prev=3,e.catch(0),e.abrupt("return",null);case 4:case"end":return e.stop()}},e,null,[[0,3]])}))).apply(this,arguments)}function Ze(e){return Je.apply(this,arguments)}function Je(){return(Je=l(c.mark(function e(t){var n,r,i,o;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n=Ye(t))){e.next=1;break}return e.abrupt("return",{exists:!0,length:n.length,source:"map"});case 1:if(!(r=ze())||!r.has(t)){e.next=2;break}return i=r.get(t),e.abrupt("return",{exists:!0,length:qe(i),source:"virtual-fs"});case 2:return e.next=3,Ke(t);case 3:if(!(o=e.sent)){e.next=4;break}return e.abrupt("return",{exists:!0,length:qe(o.data),source:"indexeddb"});case 4:return e.abrupt("return",{exists:!1,length:0,source:null});case 5:case"end":return e.stop()}},e)}))).apply(this,arguments)}function Qe(e){return"string"==typeof e&&e.startsWith("data:")}var et=new Map,tt=function(){return L(function e(t){x(this,e),(0,b.A)(this,"name","AndroidFileModule"),this.context=t},[{key:"init",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t&&t.length?t[t.length-1]:null;return r&&"function"==typeof r.resolve&&r.resolve(!0),Promise.resolve(!0)}},{key:"newESFile",value:(j=l(c.mark(function e(t){var n,r,i,o,a,s,u,l=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n=String((null==t?void 0:t.pathname)||(null==t?void 0:t.id)||""),r=Qe(n),i={id:n,path:n,exists:r,isDirectory:!1,isFile:r,length:r?n.length:0,lastModified:Date.now()},r){e.next=2;break}return e.next=1,Ze(n);case 1:o=e.sent,i.exists=o.exists,i.isFile=o.exists,i.length=o.length;case 2:for(et.set(n,i),a=l.length,s=new Array(a>1?a-1:0),u=1;u<a;u++)s[u-1]=l[u];return e.abrupt("return",O(s,n));case 3:case"end":return e.stop()}},e)})),function(e){return j.apply(this,arguments)})},{key:"newFile",value:(B=l(c.mark(function e(t){var n,r,i,o,a,s,u,l=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n="",n=String("object"==typeof t&&null!==t?t.pathname||t.path||"":t||""),r=Qe(n),i={id:n,path:n,exists:r,isDirectory:!1,isFile:r,length:r?n.length:0,lastModified:Date.now()},r){e.next=2;break}return e.next=1,Ze(n);case 1:o=e.sent,i.exists=o.exists,i.isFile=o.exists,i.length=o.length,o.source;case 2:for(et.set(n,i),a=l.length,s=new Array(a>1?a-1:0),u=1;u<a;u++)s[u-1]=l[u];return e.abrupt("return",O(s,n));case 3:case"end":return e.stop()}},e)})),function(e){return B.apply(this,arguments)})},{key:"newAbsolutePathFile",value:(F=l(c.mark(function e(t){var n,r,i,o,a=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(n=String(t||""),r=a.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=a[o];return e.abrupt("return",this.newFile.apply(this,[n].concat(i)));case 1:case"end":return e.stop()}},e,this)})),function(e){return F.apply(this,arguments)})},{key:"getPath",value:(M=l(c.mark(function e(t){var n,r,i,o,a=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(n="","object"==typeof t&&null!==t?n=String(t.id||t.path||""):null!=t&&(n=String(t)),r=a.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=a[o];return e.abrupt("return",O(i,n));case 1:case"end":return e.stop()}},e)})),function(e){return M.apply(this,arguments)})},{key:"isAbsolute",value:(D=l(c.mark(function e(t){var n,r,i,o,a=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(n="","object"==typeof t&&null!==t?n=String(t.id||""):null!=t&&(n=String(t)),r=a.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=a[o];if(!Qe(n)){e.next=1;break}return e.abrupt("return",O(i,!0));case 1:return e.abrupt("return",O(i,n.startsWith("/")));case 2:case"end":return e.stop()}},e)})),function(e){return D.apply(this,arguments)})},{key:"isDirectory",value:(R=l(c.mark(function e(t){var n,r,i,o,a,s=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(n=(null==t?void 0:t.id)||"",r=et.get(n),i=s.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=s[a];return e.abrupt("return",O(o,(null==r?void 0:r.isDirectory)||!1));case 1:case"end":return e.stop()}},e)})),function(e){return R.apply(this,arguments)})},{key:"canRead",value:(N=l(c.mark(function e(t){var n,r,i,o,a,s=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=(null==t?void 0:t.id)||"",e.next=1,Ze(n);case 1:for(r=e.sent,i=s.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=s[a];return e.abrupt("return",O(o,r.exists));case 2:case"end":return e.stop()}},e)})),function(e){return N.apply(this,arguments)})},{key:"canWrite",value:(I=l(c.mark(function e(t){var n,r,i,o=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(null==t||t.id,n=o.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=o[i];return e.abrupt("return",O(r,!0));case 1:case"end":return e.stop()}},e)})),function(e){return I.apply(this,arguments)})},{key:"exists",value:(P=l(c.mark(function e(t){var n,r,i,o,a,s,u=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(n="","object"==typeof t&&null!==t?n=String(t.id||t.path||""):null!=t&&(n=String(t)),n=n.replace(/^\/+/g,"/"),r=u.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=u[o];if(!Qe(n)){e.next=1;break}return e.abrupt("return",O(i,!0));case 1:if(!Ye(n)){e.next=2;break}return e.abrupt("return",O(i,!0));case 2:if(!(a=et.get(n))){e.next=3;break}return e.abrupt("return",O(i,a.exists));case 3:return e.next=4,Ze(n);case 4:return(s=e.sent).exists&&et.set(n,{id:n,path:n,exists:!0,isDirectory:!1,isFile:!0,length:s.length,lastModified:Date.now()}),e.abrupt("return",O(i,s.exists));case 5:case"end":return e.stop()}},e)})),function(e){return P.apply(this,arguments)})},{key:"length",value:(T=l(c.mark(function e(t){var n,r,i,o,a,s=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=(null==t?void 0:t.id)||"",e.next=1,Ze(n);case 1:for(r=e.sent,i=s.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=s[a];return e.abrupt("return",O(o,r.length));case 2:case"end":return e.stop()}},e)})),function(e){return T.apply(this,arguments)})},{key:"createNewFile",value:(C=l(c.mark(function e(t){var n,r,i,o,a,s=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(n=(null==t?void 0:t.id)||"",r=ze(),i=s.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=s[a];if(!r){e.next=1;break}return r.set(n,new Uint8Array(0)),e.abrupt("return",O(o,!0));case 1:return e.abrupt("return",O(o,!1));case 2:case"end":return e.stop()}},e)})),function(e){return C.apply(this,arguments)})},{key:"deleteOnExit",value:(A=l(c.mark(function e(t){var n,r,i,o=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(null==t||t.id,n=o.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=o[i];return e.abrupt("return",O(r,!0));case 1:case"end":return e.stop()}},e)})),function(e){return A.apply(this,arguments)})},{key:"delete",value:(S=l(c.mark(function e(t){var n,r,i,o,a,s=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(n=(null==t?void 0:t.id)||"",r=ze(),i=s.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=s[a];if(!r||!r.has(n)){e.next=1;break}return r.files.delete(n),r.files.delete("/"+n),et.delete(n),e.abrupt("return",O(o,!0));case 1:return e.abrupt("return",O(o,!1));case 2:case"end":return e.stop()}},e)})),function(e){return S.apply(this,arguments)})},{key:"list",value:(E=l(c.mark(function e(t){var n,r,i,o,a,s,u,l=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(n=(null==t?void 0:t.id)||"",r=ze(),i=l.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=l[a];if(!r){e.next=1;break}return s=r.list(),u=s.filter(function(e){return e.startsWith(n)}),e.abrupt("return",O(o,u));case 1:return e.abrupt("return",O(o,[]));case 2:case"end":return e.stop()}},e)})),function(e){return E.apply(this,arguments)})},{key:"mkdir",value:(k=l(c.mark(function e(t){var n,r,i,o=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(null==t||t.id,n=o.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=o[i];return e.abrupt("return",O(r,!0));case 1:case"end":return e.stop()}},e)})),function(e){return k.apply(this,arguments)})},{key:"mkdirs",value:(w=l(c.mark(function e(t){var n,r,i,o=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(null==t||t.id,n=o.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=o[i];return e.abrupt("return",O(r,!0));case 1:case"end":return e.stop()}},e)})),function(e){return w.apply(this,arguments)})},{key:"renameTo",value:(_=l(c.mark(function e(t){var n,r,i,o,a,s,u,l=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(n=(null==t?void 0:t.id)||"",r=(null==t?void 0:t.destPath)||"",i=ze(),o=l.length,a=new Array(o>1?o-1:0),s=1;s<o;s++)a[s-1]=l[s];if(!i){e.next=1;break}if(!(u=i.get(n))){e.next=1;break}return i.set(r,u),i.files.delete(n),i.files.delete("/"+n),e.abrupt("return",O(a,!0));case 1:return e.abrupt("return",O(a,!1));case 2:case"end":return e.stop()}},e)})),function(e){return _.apply(this,arguments)})},{key:"setLastModified",value:(g=l(c.mark(function e(t){var n,r,i,o=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(null==t||t.id,n=o.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=o[i];return e.abrupt("return",O(r,!0));case 1:case"end":return e.stop()}},e)})),function(e){return g.apply(this,arguments)})},{key:"setReadOnly",value:(m=l(c.mark(function e(t){var n,r,i,o=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(null==t||t.id,n=o.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=o[i];return e.abrupt("return",O(r,!0));case 1:case"end":return e.stop()}},e)})),function(e){return m.apply(this,arguments)})},{key:"setWritable",value:(y=l(c.mark(function e(t){var n,r,i,o=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(null==t||t.id,n=o.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=o[i];return e.abrupt("return",O(r,!0));case 1:case"end":return e.stop()}},e)})),function(e){return y.apply(this,arguments)})},{key:"lastModified",value:(v=l(c.mark(function e(t){var n,r,i,o=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(null==t||t.id,n=o.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=o[i];return e.abrupt("return",O(r,Date.now()));case 1:case"end":return e.stop()}},e)})),function(e){return v.apply(this,arguments)})},{key:"getName",value:(p=l(c.mark(function e(t){var n,r,i,o,a,s=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(n=(null==t?void 0:t.id)||"",r=n.split("/"),i=s.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=s[a];return e.abrupt("return",O(o,r[r.length-1]||""));case 1:case"end":return e.stop()}},e)})),function(e){return p.apply(this,arguments)})},{key:"getParent",value:(f=l(c.mark(function e(t){var n,r,i,o,a,s=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(n=(null==t?void 0:t.id)||"",r=n.lastIndexOf("/"),i=s.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=s[a];if(!(r>0)){e.next=1;break}return e.abrupt("return",O(o,n.substring(0,r)));case 1:return e.abrupt("return",O(o,""));case 2:case"end":return e.stop()}},e)})),function(e){return f.apply(this,arguments)})},{key:"getParentFile",value:(h=l(c.mark(function e(t){var n,r,i,o,a=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return null==t||t.id,e.next=1,this.getParent(t);case 1:if(!(n=e.sent)){e.next=2;break}return e.abrupt("return",this.newESFile({id:n}));case 2:for(r=a.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=a[o];return e.abrupt("return",O(i,null));case 3:case"end":return e.stop()}},e,this)})),function(e){return h.apply(this,arguments)})},{key:"getAbsolutePath",value:(d=l(c.mark(function e(t){var n,r,i,o,a=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(n=(null==t?void 0:t.id)||"",r=a.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=a[o];return e.abrupt("return",O(i,n));case 1:case"end":return e.stop()}},e)})),function(e){return d.apply(this,arguments)})},{key:"getAbsoluteFile",value:(u=l(c.mark(function e(t){var n;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=(null==t?void 0:t.id)||"",e.abrupt("return",this.newESFile({id:n}));case 1:case"end":return e.stop()}},e,this)})),function(e){return u.apply(this,arguments)})},{key:"getCanonicalPath",value:(s=l(c.mark(function e(t){var n,r,i,o,a=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(n=(null==t?void 0:t.id)||"",r=a.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=a[o];return e.abrupt("return",O(i,n));case 1:case"end":return e.stop()}},e)})),function(e){return s.apply(this,arguments)})},{key:"getCanonicalFile",value:(a=l(c.mark(function e(t){var n;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=(null==t?void 0:t.id)||"",e.abrupt("return",this.newESFile({id:n}));case 1:case"end":return e.stop()}},e,this)})),function(e){return a.apply(this,arguments)})},{key:"toURL",value:(o=l(c.mark(function e(t){var n,r,i,o,a=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(n=(null==t?void 0:t.id)||"",r=a.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=a[o];return e.abrupt("return",O(i,"file://"+n));case 1:case"end":return e.stop()}},e)})),function(e){return o.apply(this,arguments)})},{key:"toURI",value:(i=l(c.mark(function e(t){var n,r,i,o,a=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(n=(null==t?void 0:t.id)||"",r=a.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=a[o];return e.abrupt("return",O(i,"file://"+n));case 1:case"end":return e.stop()}},e)})),function(e){return i.apply(this,arguments)})},{key:"getFreeSpace",value:(r=l(c.mark(function e(t){var n,r,i,o=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(null==t||t.id,n=o.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=o[i];return e.abrupt("return",O(r,1073741824));case 1:case"end":return e.stop()}},e)})),function(e){return r.apply(this,arguments)})},{key:"getTotalSpace",value:(n=l(c.mark(function e(t){var n,r,i,o=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(null==t||t.id,n=o.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=o[i];return e.abrupt("return",O(r,10737418240));case 1:case"end":return e.stop()}},e)})),function(e){return n.apply(this,arguments)})},{key:"getUsableSpace",value:(t=l(c.mark(function e(t){var n,r,i,o=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(null==t||t.id,n=o.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=o[i];return e.abrupt("return",O(r,5368709120));case 1:case"end":return e.stop()}},e)})),function(e){return t.apply(this,arguments)})},{key:"compareTo",value:(e=l(c.mark(function e(t){var n,r,i,o,a,s=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(n=(null==t?void 0:t.id)||"",r=(null==t?void 0:t.otherPath)||"",i=s.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=s[a];return e.abrupt("return",O(o,n.localeCompare(r)));case 1:case"end":return e.stop()}},e)})),function(t){return e.apply(this,arguments)})},{key:"destroy",value:function(){et.clear()}}]);var e,t,n,r,i,o,a,s,u,d,h,f,p,v,y,m,g,_,w,k,E,S,A,C,T,P,I,N,R,D,M,F,B,j}(),nt=null,rt=!1;function it(){var e;ae("NetSpeed",{speedKbps:e=Math.floor(5e3*Math.random())+100,speedMbps:(e/1024).toFixed(2)})}var ot=new(function(){return L(function e(t){x(this,e),this.context=t,this.name="ESNetworkSpeedModule"},[{key:"showNetSpeed",value:function(){rt||(rt=!0,it(),nt=setInterval(function(){it()},500))}},{key:"stopNetSpeed",value:function(){rt&&(nt&&(clearInterval(nt),nt=null),rt=!1)}},{key:"isShowing",value:function(){return rt}},{key:"destroy",value:function(){this.stopNetSpeed()}},{key:"init",value:function(){return Promise.resolve(!0)}}])}());function at(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return st(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?st(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function st(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ut(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function lt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ut(Object(n),!0).forEach(function(t){(0,b.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ut(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}n.g.__WEB_FILE_URL_MAP__||(n.g.__WEB_FILE_URL_MAP__=new Map);var ct=function(){return L(function e(t){x(this,e),this.context=t,this._downloads=new Map,this._listeners=new Map,this._downloadCacheDir="/vfs",this._progressThrottleInterval=500},[{key:"initDownload",value:function(e,t){e&&(this._downloadCacheDir=e),t&&(this._progressThrottleInterval=t);for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return O(r,!0)}},{key:"initDownloadPath",value:function(e,t){this._downloadCacheDir=e||"/vfs",this._progressThrottleInterval=t||500;for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return O(r,!0)}},{key:"download",value:(t=l(c.mark(function e(t){var n,r,i,o=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(n=o.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=o[i];if(!(this._listeners.size>0)){e.next=1;break}return this._notifyListener("onDownloadInit",t),e.abrupt("return",O(r,!0));case 1:return e.abrupt("return",this.start.apply(this,[t].concat(r)));case 2:case"end":return e.stop()}},e,this)})),function(e){return t.apply(this,arguments)})},{key:"start",value:(e=l(c.mark(function e(t){var r,i,o,a,s,u,l,d,h=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(r=null==t?void 0:t.id,i=null==t?void 0:t.fileUrl,o=h.length,a=new Array(o>1?o-1:0),s=1;s<o;s++)a[s-1]=h[s];if(null!=r&&i){e.next=1;break}return e.abrupt("return",O(a,!1));case 1:return u=(null==t?void 0:t.fileName)||this._extractFileName(i),l=this._downloadCacheDir+"/"+u,d=lt({id:r,url:i,fileName:u,filePath:l,fileLength:0,downloadLength:0,status:"pending"},t),this._downloads.set(r,d),n.g.__WEB_FILE_URL_MAP__.set(l,i),this._notifyListener("onDownloadStart",d),d.status="completed",this._notifyListener("onDownloadSuccess",d),e.abrupt("return",O(a,!0));case 2:case"end":return e.stop()}},e,this)})),function(t){return e.apply(this,arguments)})},{key:"stop",value:function(e){var t=null==e?void 0:e.id,n=this._downloads.get(t);n&&(n.status="stopped",this._notifyListener("onDownloadStop",n));for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];return O(i,!0)}},{key:"cancel",value:function(e){var t=null==e?void 0:e.id,n=this._downloads.get(t);n&&(n.status="cancelled",this._notifyListener("onDownloadCancel",n),this._downloads.delete(t));for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];return O(i,!0)}},{key:"registerDownloadListener",value:function(e,t){this._listeners.set(e,t)}},{key:"unregisterDownloadListener",value:function(e){this._listeners.delete(e)}},{key:"addListener",value:function(e,t){return this._listeners.set(e,t),!0}},{key:"removeListener",value:function(e){if(this._listeners.has(e))return this._listeners.delete(e),!0;var t,n=at(this._listeners.entries());try{for(n.s();!(t=n.n()).done;){var r=s(t.value,2),i=r[0];if(r[1]===e)return this._listeners.delete(i),!0}}catch(e){n.e(e)}finally{n.f()}return!1}},{key:"_notifyListener",value:function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];this._listeners.forEach(function(n){if("function"==typeof n[e])try{n[e].apply(n,[t].concat(r))}catch(e){}})}},{key:"_extractFileName",value:function(e){try{var t=new URL(e).pathname.split("/");return t[t.length-1]||"download"}catch(e){return"download"}}},{key:"init",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return P(t)}},{key:"destroy",value:function(){this._downloads.clear(),this._listeners.clear()}}]);var e,t}(),dt=n(824);function ht(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}var ft=new Pe(null),pt=new He(null),vt=new tt(null),yt=new ct(null);n.g.__WEB_MODULES__||(n.g.__WEB_MODULES__={}),n.g.__WEB_MODULES__.ESIJKAudioPlayerModule=ft,n.g.__WEB_MODULES__.ESSoundPoolAudioPlayerModule=pt,n.g.__WEB_MODULES__.ESSoundPoolPlayerModule=pt,n.g.__WEB_MODULES__.AndroidFileModule=vt,n.g.__WEB_MODULES__.ESNetworkSpeedModule=ot,n.g.__WEB_MODULES__.ESDownloadModule=yt;var mt=null,gt=!1,_t=!1;function bt(){void 0!==n.g.Hippy&&n.g.Hippy.device?(n.g.Hippy.device.window={width:E,height:S,scale:1,fontScale:1,statusBarHeight:0,navigatorBarHeight:0},n.g.Hippy.device.screen={width:E,height:S,scale:1,fontScale:1,statusBarHeight:0,navigatorBarHeight:0},n.g.Hippy.device.pixelRatio=1):setTimeout(bt,10)}function wt(){var e=document.getElementById("app");e?(e.style.width=E+"px",e.style.height=S+"px",new MutationObserver(function(){e.style.width===E+"px"&&e.style.height===S+"px"||(e.style.width=E+"px",e.style.height=S+"px")}).observe(e,{attributes:!0,attributeFilter:["style"]})):setTimeout(wt,10)}var kt=["focusColor","focusBackgroundColor","focusTextColor","focusBorderColor","focusBorderWidth","focusBorderRadius","focusOpacity","focusScale","selectColor","selectBackgroundColor"],Et=["focusBorderWidth","focusBorderRadius","focusOpacity","focusScale"];function St(e){if("number"!=typeof e)return e;var t=(e>>24&255)/255,n=e>>8&255,r=255&e;return"rgba(".concat(e>>16&255,", ").concat(n,", ").concat(r,", ").concat(t,")")}var At={0:"to bottom",1:"to bottom left",2:"to left",3:"to top left",4:"to top",5:"to top right",6:"to right",7:"to bottom right"};function xt(e){var t,n;if(!e||!e.colors||0===e.colors.length)return null;var r=e.colors.map(function(e){return function(e){if("string"!=typeof e)return e;if(/^#[0-9A-Fa-f]{8}$/.test(e)){var t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9),o=parseInt(t,16)/255,a=parseInt(n,16),s=parseInt(r,16),u=parseInt(i,16);return"rgba(".concat(a,", ").concat(s,", ").concat(u,", ").concat(o,")")}if(/^#[0-9A-Fa-f]{4}$/.test(e)){var l=e.substring(1,2)+e.substring(1,2),c=e.substring(2,3)+e.substring(2,3),d=e.substring(3,4)+e.substring(3,4),h=e.substring(4,5)+e.substring(4,5),f=parseInt(l,16)/255,p=parseInt(c,16),v=parseInt(d,16),y=parseInt(h,16);return"rgba(".concat(p,", ").concat(v,", ").concat(y,", ").concat(f,")")}return e}(e)}),i=null!==(t=e.orientation)&&void 0!==t?t:6,o=null!==(n=e.type)&&void 0!==n?n:0,a=e.cornerRadius,s=e.cornerRadii4,u=e.cornerRadii8,l="";if(1===o){var c=e.gradientRadius||"farthest-corner";l="radial-gradient(circle ".concat(c,", ").concat(r.join(", "),")")}else{l="linear-gradient(".concat(At[i]||"to right",", ").concat(r.join(", "),")")}var d="";return u&&8===u.length?d="".concat(u[0],"px ").concat(u[2],"px ").concat(u[4],"px ").concat(u[6],"px / ").concat(u[1],"px ").concat(u[3],"px ").concat(u[5],"px ").concat(u[7],"px"):s&&4===s.length?d="".concat(s[0],"px ").concat(s[1],"px ").concat(s[2],"px ").concat(s[3],"px"):null!=a&&(d="".concat(a,"px")),{background:l,borderRadius:d}}function Ct(e,t){if(!t||"object"!=typeof t)return t;if(!e||!e.setAttribute)return t;var n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ht(Object(n),!0).forEach(function(t){(0,b.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ht(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},t);["gap","rowGap","columnGap"].forEach(function(e){delete n[e]});var r=t.gradientBackground;if(r){var i=xt(r);i&&(n.background=i.background,i.borderRadius&&(n.borderRadius=i.borderRadius)),delete n.gradientBackground}return kt.forEach(function(r){var i,o=r.replace(/([A-Z])/g,"-$1").toLowerCase(),a=t[r]||t[o];void 0!==a&&(i=Et.includes(r)?a:"number"==typeof a?St(a):a,e.setAttribute("data-"+o,String(i)),delete n[r],delete n[o])}),n}function Tt(){var e=["focus-color","focus-background-color","focus-background","focus-text-color","focus-border-color","focus-border-width","focus-border-radius","focus-opacity","focus-scale","select-color","select-background-color"],t=function(n){n&&Array.from(n).forEach(function(n){if(n){var r,i=n.type;i===CSSRule.STYLE_RULE?(r=n.style)&&e.forEach(function(e){var t=r.getPropertyValue(e);if(t){var n="--"+e;r.getPropertyValue(n)||r.setProperty(n,t.trim())}}):i!==CSSRule.MEDIA_RULE&&i!==CSSRule.SUPPORTS_RULE&&i!==CSSRule.DOCUMENT_RULE||t(n.cssRules)}})};Array.from(document.styleSheets||[]).forEach(function(e){try{t(e.cssRules)}catch(e){}})}var Lt=null;function Ot(e){var t,n,r=null===(t=e.context)||void 0===t||null===(n=t.getModuleByName)||void 0===n?void 0:n.call(t,"UIManagerModule");if(r&&!r._addEventListenerPatched){r.addEventListener.bind(r);r.addEventListener=function(e,t,n){var i=r.findViewById(e);i&&i.addEventListener&&i.addEventListener(t,n)};var i=r.defaultUpdateViewProps.bind(r);return r.defaultUpdateViewProps=function(t,n){if(t.dom){null!=n&&n.style&&("ESPageRootView"!==t._originalComponentName&&"ESPageRouterView"!==t._originalComponentName||n.style.backgroundColor&&"transparent"!==n.style.backgroundColor||n.isDialogMode||(n.style.backgroundColor="#000000"),n.style=(0,dt.Zd)(Ct(t.dom,n.style)));var o=function(e){return e?"string"==typeof e?e:Array.isArray(e)?e.map(o).filter(Boolean).join(" "):"object"==typeof e?Object.keys(e).filter(function(t){return e[t]}).join(" "):String(e):""},a=function(e,t){var n=o(t);n&&n.split(/\s+/).filter(Boolean).forEach(function(t){return e.classList.add(t)})},s=function(e,t){e&&e.setAttribute&&t&&kt.forEach(function(n){var r,i=n.replace(/([A-Z])/g,"-$1").toLowerCase(),o=null!==(r=t[n])&&void 0!==r?r:t[i];if(null!=o){var a=Et.includes(n)?o:"number"==typeof o?St(o):o;e.setAttribute("data-"+i,String(a))}})};a(t.dom,(null==n?void 0:n.className)||(null==n?void 0:n.class)),s(t.dom,n);var u=r.findViewById(t.pId);if(u&&u.dom){if(i(t,n),a(t.dom,(null==n?void 0:n.className)||(null==n?void 0:n.class)),s(t.dom,n),null!=n&&n.gradientBackground){var l=xt(n.gradientBackground);l&&(t.dom.style.background=l.background,l.borderRadius&&(t.dom.style.borderRadius=l.borderRadius))}}else{Object.keys(n);if(n.style){var c=e.context.getModuleByName("HippyWeb");null!=c&&c.setElementStyle?c.setElementStyle(t.dom,n.style):Object.assign(t.dom.style,(0,dt.Zd)(n.style))}}}},r._addEventListenerPatched=!0,!0}return!1}function Pt(e){var t,n=null==e?void 0:e.key,r=null!==(t=null==e?void 0:e.keyCode)&&void 0!==t?t:null==e?void 0:e.which;switch(n){case"ArrowUp":r=19;break;case"ArrowDown":r=20;break;case"ArrowLeft":r=21;break;case"ArrowRight":r=22;break;case"Enter":r=23;break;case"Escape":r=4}return{keyCode:r,key:n,code:null==e?void 0:e.code,repeat:null==e?void 0:e.repeat,altKey:null==e?void 0:e.altKey,ctrlKey:null==e?void 0:e.ctrlKey,shiftKey:null==e?void 0:e.shiftKey,metaKey:null==e?void 0:e.metaKey,nativeEvent:e}}function It(e){switch(e){case 17:return"left";case 33:return"up";case 66:return"right";case 130:return"down";case 2:return"forward";case 1:return"backward";default:return null}}function Nt(e,t){if(!e||!t)return 1/0;if(e===t)return 0;for(var n=new Set,r=e.parentElement,i=0;r&&r!==document.body;)n.add(r),r._tempDepth=++i,r=r.parentElement;for(r=t.parentElement;r&&r!==document.body;){if(n.has(r)){for(var o=r._tempDepth||0,a=e.parentElement;a&&a!==document.body;)delete a._tempDepth,a=a.parentElement;return o}r=r.parentElement}for(var s=e.parentElement;s&&s!==document.body;)delete s._tempDepth,s=s.parentElement;return 1/0}function Rt(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Dt(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Dt(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function Dt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Mt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ft(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Mt(Object(n),!0).forEach(function(t){(0,b.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mt(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Bt=function(){return L(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};x(this,e),this.options=Ft({useDistanceBasedNavigation:!0,crossDistanceWeight:.5,directionalAngleThreshold:60,blockedDirectionalAngleThreshold:40,directionalAngleOffset:20},t)},[{key:"setOptions",value:function(e){this.options=Ft(Ft({},this.options),e)}},{key:"findBestCandidate",value:function(e,t,n){return this.options.useDistanceBasedNavigation?this._findBestCandidateByDistance(e,t,n):this._findBestCandidateSequential(e,t,n)}},{key:"_findBestCandidateByDistance",value:function(e,t,n){var r=this,i=e.getBoundingClientRect(),o={x:i.left+i.width/2,y:i.top+i.height/2},a=null,s=1/0,u=(this.options.crossDistanceWeight,function(e,t){for(var n=e.parentElement;n&&n!==document.body;){var r=n.getAttribute("blockFocusDirections")||n.getAttribute("blockfocusdirections");if(r){var i=[];try{i=JSON.parse(r.replace(/'/g,'"')),Array.isArray(i)||(i=[])}catch(e){i=r.split(",").map(function(e){return e.trim().toLowerCase()}).filter(function(e){return e})}if(i.some(function(e){return e.toLowerCase()===t.toLowerCase()}))return!0}n=n.parentElement}return!1}(e,t)),l=new Set;return n.forEach(function(c){if(c!==e&&c&&document.body.contains(c)){var d=window.getComputedStyle(c);if("none"!==d.display&&"hidden"!==d.visibility){var h=r._findParentList(c);if(!h||h===e||l.has(h)){if(!h||!l.has(h)){var f=c.getBoundingClientRect();if(0!==f.width||0!==f.height){var p=f.left+f.width/2,v=f.top+f.height/2,y=p-o.x,m=v-o.y,g=!1,_=0,b=0;switch(t){case"up":if(m>=0)return;g=!0,_=Math.max(0,i.top-f.bottom),b=Math.abs(y);break;case"down":if(m<=0)return;g=!0,_=Math.max(0,f.top-i.bottom),b=Math.abs(y);break;case"left":if(y>=0)return;g=!0,_=Math.max(0,i.left-f.right),b=Math.abs(m);break;case"right":if(y<=0)return;g=!0,_=Math.max(0,f.left-i.right),b=Math.abs(m)}var w=c.getAttribute("selected"),k=c.hasAttribute("selected")&&"false"!==w,E=null!==c.querySelector('[selected="true"]'),S=k||E;if(g&&!S&&r._exceedsDirectionalAngle(t,y,m,u)){u?r.options.blockedDirectionalAngleThreshold:r.options.directionalAngleThreshold;g=!1}if(g){for(var A=!1,x=e.parentElement;x&&x!==document.body;){var C=x.getAttribute("blockFocusDirections")||x.getAttribute("blockfocusdirections");if(C){var T=[];try{T=JSON.parse(C.replace(/'/g,'"')),Array.isArray(T)||(T=[])}catch(e){T=C.split(",").map(function(e){return e.trim().toLowerCase()}).filter(function(e){return e})}if(T.some(function(e){return e.toLowerCase()===t.toLowerCase()})&&!x.contains(c)){A=!0;break}}x=x.parentElement}if(A)return;var L=!1,O=0;if("left"===t||"right"===t){var P=Math.max(0,Math.min(f.bottom,i.bottom)-Math.max(f.top,i.top));L=P>0,O=P/Math.min(f.height,i.height),b*=L?1-.9*O:50}else if("up"===t||"down"===t){var I=Math.max(0,Math.min(f.right,i.right)-Math.max(f.left,i.left));L=I>0,O=I/Math.min(f.width,i.width),b*=L?1-.9*O:50}var N=Nt(e,c),R=_+b+(L?0:1e4)+(N<=1?-500:N<=2?-200:N<=3?-50:0)+(S?-1e3:0);R<s&&(s=R,a=c)}}}}else{l.add(h);var D=r._evaluateListCandidate(h,e,i,o,t,u,n);D&&D.distance<s&&(s=D.distance,a=D.targetElement,!0)}}}}),a}},{key:"_findBestCandidateSequential",value:function(e,t,n){var r=n.indexOf(e);if(-1===r)return null;if("down"===t||"right"===t)for(var i=r+1;i<n.length;i++){var o=n[i];if(o&&document.body.contains(o))return o}else if("up"===t||"left"===t)for(var a=r-1;a>=0;a--){var s=n[a];if(s&&document.body.contains(s))return s}return null}},{key:"_exceedsDirectionalAngle",value:function(e,t,n,r){var i=Math.abs(t),o=Math.abs(n),a=r?this.options.blockedDirectionalAngleThreshold:this.options.directionalAngleThreshold,s=Math.tan(a*Math.PI/180),u=this.options.directionalAngleOffset;return"left"===e||"right"===e?o>i*s+u:i>o*s+u}},{key:"isDirectionBlocked",value:function(e,t){for(var n,r=this,i=e,o=function(){var n=i.getAttribute("blockFocusDirections")||i.getAttribute("blockfocusdirections");if(n){var o=t;if("number"==typeof t&&(!(o=r._directionNumberToName(t))||"forward"===o||"backward"===o))return{v:!1};var a=[];try{var s=n.replace(/'/g,'"');a=JSON.parse(s),Array.isArray(a)||(a=[])}catch(e){a=n.split(",").map(function(e){return e.trim().toLowerCase()}).filter(function(e){return e})}var u=String(o).toLowerCase();if(a.some(function(e){return e.toLowerCase()===u})&&i===e)return{v:!0}}i=i.parentElement};i&&i!==document.body;)if(n=o())return n.v;return!1}},{key:"getNextFocusByName",value:function(e,t,n,r){if(!e||!e.getAttribute)return null;var i=e.getAttribute("nextFocusName")||e.getAttribute("nextfocusname");if(!i)for(var o=e.parentElement;o&&o!==document.body&&!(i=o.getAttribute("nextFocusName")||o.getAttribute("nextfocusname"));)o=o.parentElement;if(!i)return null;var a=null;try{if("string"==typeof i){var s=i.replace(/'/g,'"');a=JSON.parse(s)}else"object"==typeof i&&(a=i)}catch(e){return null}if(!a||"object"!=typeof a)return null;var u=a[t];if(!u)return null;var l=this._findElementByName(u,n);return l&&(n.includes(l)||r(),n.includes(l))?l:null}},{key:"_findElementByName",value:function(e,t){if(!e)return null;var n=document.querySelectorAll('[name="'.concat(e,'"]'));if(n.length>0){var r,i=Rt(n);try{for(i.s();!(r=i.n()).done;){var o=r.value,a=window.getComputedStyle(o),s="none"!==a.display&&"hidden"!==a.visibility&&parseFloat(a.opacity)>0,u=o.getBoundingClientRect(),l=u.width>0&&u.height>0;if(s&&l){var c=this._findFocusableChild(o,t);if(c)return c;if(t.includes(o))return o}}}catch(e){i.e(e)}finally{i.f()}}return null}},{key:"_findFocusableChild",value:function(e,t){if(!e||!e.querySelectorAll)return null;var n=e.querySelector('[autofocus="true"], [autofocus]');if(n&&t.includes(n))return n;var r=e.querySelector('[selected="true"], [selected=""], .selected, .focused');if(r){var i,o=Rt(t);try{for(o.s();!(i=o.n()).done;){var a=i.value;if(r===a||r.contains(a))return a}}catch(e){o.e(e)}finally{o.f()}}var s,u=Rt(t);try{for(u.s();!(s=u.n()).done;){var l=s.value;if(e.contains(l))return l}}catch(e){u.e(e)}finally{u.f()}return null}},{key:"_isListContainer",value:function(e){if(!e||!e.getAttribute)return!1;var t=e.getAttribute("data-component-name");return"FastListView"===t||"ListView"===t||"QtFlexView"===t||"RecyclerView"===t||e.classList.contains("fast-list-item-container")||e.classList.contains("flex-view-item-container")}},{key:"_getListTargetElement",value:function(e,t,n){var r,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;if(!e)return null;var o=e.querySelector('[selected="true"]');if(o){var a=this._findFocusableInElement(o,n);if(a)return a}if(i){var s=this._findNearestElementInList(e,i,t,n);if(s)return s}var u=e.querySelector(".fast-list-item-container")||e.querySelector(".flex-view-item-container")||e,l=null==u||null===(r=u.children)||void 0===r?void 0:r[0];if(l){var c=this._findFocusableInElement(l,n);if(c)return c}var d,h=Rt(n);try{for(h.s();!(d=h.n()).done;){var f=d.value;if(e.contains(f)&&f!==e)return f}}catch(e){h.e(e)}finally{h.f()}return null}},{key:"_findNearestElementInList",value:function(e,t,n,r){var i,o=t.getBoundingClientRect(),a=o.left+o.width/2,s=o.top+o.height/2,u=null,l=1/0,c=Rt(r);try{for(c.s();!(i=c.n()).done;){var d=i.value;if(d!==t&&e.contains(d)){var h=d.getBoundingClientRect();if(0!==h.width||0!==h.height){var f={x:h.left+h.width/2,y:h.top+h.height/2},p=0;switch(n){case"up":if(f.y>=s)continue;p=Math.abs(f.x-a)+(s-f.y);break;case"down":if(f.y<=s)continue;p=Math.abs(f.x-a)+(f.y-s);break;case"left":if(f.x>=a)continue;p=Math.abs(f.y-s)+(a-f.x);break;case"right":if(f.x<=a)continue;p=Math.abs(f.y-s)+(f.x-a);break;default:p=Math.abs(f.x-a)+Math.abs(f.y-s)}p<l&&(l=p,u=d)}}}}catch(e){c.e(e)}finally{c.f()}return u}},{key:"_findFocusableInElement",value:function(e,t){if(!e)return null;if(t.includes(e))return e;var n,r=Rt(t);try{for(r.s();!(n=r.n()).done;){var i=n.value;if(e.contains(i))return i}}catch(e){r.e(e)}finally{r.f()}return null}},{key:"_findParentList",value:function(e){for(var t=e;t&&t!==document.body;){if(this._isListContainer(t))return t;t=t.parentElement}return null}},{key:"_evaluateListCandidate",value:function(e,t,n,r,i,o,a){var s=e.getBoundingClientRect();if(0===s.width&&0===s.height)return null;var u=s.left+s.width/2,l=s.top+s.height/2,c=u-r.x,d=l-r.y,h=!1,f=0,p=0;switch(i){case"up":if(s.top>=n.bottom)return null;h=!0,f=Math.max(0,n.top-s.bottom),p=Math.abs(c);break;case"down":if(s.bottom<=n.top)return null;h=!0,f=Math.max(0,s.top-n.bottom),p=Math.abs(c);break;case"left":if(s.left>=n.right)return null;h=!0,f=Math.max(0,n.left-s.right),p=Math.abs(d);break;case"right":if(s.right<=n.left)return null;h=!0,f=Math.max(0,s.left-n.right),p=Math.abs(d)}var v=e.getAttribute("selected"),y=e.hasAttribute("selected")&&"false"!==v,m=null!==e.querySelector('[selected="true"]'),g=y||m;if(h&&!g&&this._exceedsDirectionalAngle(i,c,d,o)){o?this.options.blockedDirectionalAngleThreshold:this.options.directionalAngleThreshold;return null}var _=!1,b=0;if("left"===i||"right"===i){var w=Math.max(0,Math.min(s.bottom,n.bottom)-Math.max(s.top,n.top));_=w>0,b=w/Math.min(s.height,n.height),p*=_?1-.9*b:50}else if("up"===i||"down"===i){var k=Math.max(0,Math.min(s.right,n.right)-Math.max(s.left,n.left));_=k>0,b=k/Math.min(s.width,n.width),p*=_?1-.9*b:50}var E=Nt(t,e),S=f+p+(_?0:1e4)+(E<=1?-500:E<=2?-200:E<=3?-50:0)+(g?-1e3:0),A=this._getListTargetElement(e,i,a,t);return A?A===t?null:{distance:S,targetElement:A}:null}},{key:"_directionNumberToName",value:function(e){switch(e){case 17:return"left";case 33:return"up";case 66:return"right";case 130:return"down";case 2:return"forward";case 1:return"backward";default:return null}}}])}(),jt=n(814);function Vt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Wt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vt(Object(n),!0).forEach(function(t){(0,b.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vt(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Ht=function(){return L(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};x(this,e),this.defaultFocusStyle={border:{enabled:!0,color:"#FFFFFF",width:3,innerColor:"#000000",innerWidth:2,cornerRadius:0},scale:1,transition:"transform 0.15s ease-out, outline 0.15s ease-out"},this.focusedElementOriginalStyles=new Map,this.showOnStateManager=null,t.defaultFocusStyle&&(this.defaultFocusStyle=Wt(Wt({},this.defaultFocusStyle),t.defaultFocusStyle))},[{key:"setShowOnStateManager",value:function(e){this.showOnStateManager=e}},{key:"updateConfig",value:function(e){e&&(e.borderColorEnabled&&(this.defaultFocusStyle.border.color=e.borderColor),e.borderWidthEnabled&&(this.defaultFocusStyle.border.width=e.borderWidth),e.cornerEnabled&&(this.defaultFocusStyle.border.cornerRadius=e.cornerRadius),e.borderInsetEnabled&&(this.defaultFocusStyle.border.inset=e.borderInset),this.defaultFocusStyle.border.innerEnabled=e.innerBorderEnabled,e.focusScale&&(this.defaultFocusStyle.scale=e.focusScale))}},{key:"getFocusProps",value:function(e){var t,n,r,i,o,a,s,u,l=window.getComputedStyle(e),c=l.borderRadius,d=this.defaultFocusStyle.border.cornerRadius||8;if(c&&"none"!==c&&"0px"!==c){var h=c.match(/^(\d+(?:\.\d+)?)(px)?/);h&&(d=parseFloat(h[1]))}var f={enableBorder:!1,borderColor:this.defaultFocusStyle.border.color,borderWidth:this.defaultFocusStyle.border.width,borderRadius:d,innerBorderColor:this.defaultFocusStyle.border.innerColor,innerBorderWidth:this.defaultFocusStyle.border.innerWidth,innerBorderEnabled:!1!==this.defaultFocusStyle.border.innerEnabled,scale:this.defaultFocusStyle.scale,focusBackgroundColor:null,focusColor:null},p=e.getAttribute("enablefocusborder");"true"!==p&&"1"!==p&&""!==p||(f.enableBorder=!0);var v=e.getAttribute("focusscale")||e.getAttribute("data-focus-scale")||(null===(t=l.getPropertyValue("--focus-scale"))||void 0===t?void 0:t.trim());if(v){var y=parseFloat(v);!isNaN(y)&&y>0&&(f.scale=y)}var m=e.getAttribute("focusborderradius")||e.getAttribute("data-focus-border-radius")||(null===(n=l.getPropertyValue("--focus-border-radius"))||void 0===n?void 0:n.trim());if(m){var g=parseFloat(m);!isNaN(g)&&g>=0&&(f.borderRadius=g)}var _=e.getAttribute("focusborderwidth")||e.getAttribute("data-focus-border-width")||(null===(r=l.getPropertyValue("--focus-border-width"))||void 0===r?void 0:r.trim());if(_){var b=parseFloat(_);!isNaN(b)&&b>=0&&(f.borderWidth=b)}var w=e.getAttribute("focusbordercolor")||e.getAttribute("data-focus-border-color")||(null===(i=l.getPropertyValue("--focus-border-color"))||void 0===i?void 0:i.trim());w&&(f.borderColor=w);var k=e.getAttribute("data-focus-border");k&&(f.enableBorder="true"===k);var E=e.getAttribute("data-focus-background-color")||(null===(o=l.getPropertyValue("--focus-background-color"))||void 0===o?void 0:o.trim())||(null===(a=l.getPropertyValue("--focus-background"))||void 0===a?void 0:a.trim());E&&(f.focusBackgroundColor=E);var S=e.getAttribute("data-focus-color")||(null===(s=l.getPropertyValue("--focus-color"))||void 0===s?void 0:s.trim());S&&(f.focusColor=S);var A=e.getAttribute("data-select-color")||(null===(u=l.getPropertyValue("--select-color"))||void 0===u?void 0:u.trim());return A&&(f.selectColor=A),f}},{key:"applyFocusStyle",value:function(e){var t=this.getFocusProps(e),n={transform:e.style.transform,outline:e.style.outline,outlineOffset:e.style.outlineOffset,boxShadow:e.style.boxShadow,transition:e.style.transition,zIndex:e.style.zIndex,borderRadius:e.style.borderRadius,backgroundColor:e.style.backgroundColor,color:e.style.color,display:e.style.display,visibility:e.style.visibility};if(this.focusedElementOriginalStyles.set(e,n),e.style.transition=this.defaultFocusStyle.transition,1!==t.scale&&(e.style.transform="scale(".concat(t.scale,")"),e.style.zIndex="10"),t.enableBorder){e.style.borderRadius=t.borderRadius+"px";var r=t.borderWidth,i=t.innerBorderWidth,o=t.innerBorderEnabled?"inset 0 0 0 ".concat(i,"px ").concat(t.innerBorderColor):"";e.style.outline="".concat(r,"px solid ").concat(t.borderColor),e.style.outlineOffset="0px",e.style.boxShadow="0 0 0 ".concat(r,"px ").concat(t.borderColor,", ").concat(o,", 0 4px 12px rgba(0,0,0,0.3)")}t.focusBackgroundColor&&(e.style.backgroundColor=t.focusBackgroundColor),t.focusColor&&(e.style.color=t.focusColor),this._applyDuplicateParentStateStyles(e,!0),this.showOnStateManager&&this.showOnStateManager.updateShowOnStateVisibility(e,"focused"),requestAnimationFrame(function(){return(0,jt.u6)(e)})}},{key:"removeFocusStyle",value:function(e){var t=this.focusedElementOriginalStyles.get(e);if(t?(e.style.transform=t.transform,e.style.outline=t.outline,e.style.outlineOffset=t.outlineOffset,e.style.boxShadow=t.boxShadow,e.style.transition=t.transition,e.style.zIndex=t.zIndex,e.style.borderRadius=t.borderRadius,void 0!==t.backgroundColor&&(e.style.backgroundColor=t.backgroundColor),void 0!==t.color&&(e.style.color=t.color)):(e.style.transform="",e.style.outline="",e.style.outlineOffset="",e.style.boxShadow="",e.style.zIndex=""),e.classList.remove("focused"),this._removeDuplicateParentStateStyles(e),e.hasAttribute("selected")&&"false"!==e.getAttribute("selected")){var n,r=window.getComputedStyle(e),i=e.getAttribute("selectBackgroundColor")||e.getAttribute("select-background-color")||e.getAttribute("data-select-background-color")||(null===(n=r.getPropertyValue("--select-background-color"))||void 0===n?void 0:n.trim());i&&(e.style.backgroundColor=i)}this.showOnStateManager&&this.showOnStateManager.updateShowOnStateVisibility(e,"normal"),requestAnimationFrame(function(){return(0,jt.u6)(e)})}},{key:"_applyDuplicateParentStateStyles",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e.querySelectorAll("[duplicateparentstate]").forEach(function(r){var i=r.getAttribute("duplicateparentstate");if("false"!==i&&"0"!==i){var o=window.getComputedStyle(r),a=function(e){var t;return r.getAttribute("data-"+e)||(null===(t=o.getPropertyValue("--"+e))||void 0===t?void 0:t.trim())},s=a("focus-color")||a("focus-text-color"),u=a("focus-background-color"),l=a("focus-border-radius"),c=a("focus-scale"),d=a("focus-border-width"),h=a("focus-border-color"),f=a("select-color"),p=a("select-background-color"),v=e.hasAttribute("select")&&"false"!==e.getAttribute("select")||e.hasAttribute("selected")&&"false"!==e.getAttribute("selected");if(v);var y=n?s:v&&f?f:null,m=n?u:v&&p?p:null,g=r.getAttribute("enablefocusborder"),_="true"===g||"1"===g||""===g;if(n&&!t.focusedElementOriginalStyles.has(r)){var b=window.getComputedStyle(r),w={backgroundColor:r.style.backgroundColor||b.backgroundColor,color:r.style.color||b.color,borderRadius:r.style.borderRadius,transform:r.style.transform,zIndex:r.style.zIndex,transition:r.style.transition,outline:r.style.outline,outlineOffset:r.style.outlineOffset};t.focusedElementOriginalStyles.set(r,w)}if(!n&&v&&!t.focusedElementOriginalStyles.has(r)){var k=window.getComputedStyle(r),E={backgroundColor:r.style.backgroundColor||k.backgroundColor,color:r.style.color||k.color};t.focusedElementOriginalStyles.set(r,E)}if(r.style.transition=t.defaultFocusStyle.transition,m&&(r.style.backgroundColor=m),y)r.style.color=y;else if(n){var S=t.focusedElementOriginalStyles.get(r);S&&void 0!==S.color&&(r.style.color=S.color)}if(l){var A=parseFloat(l);!isNaN(A)&&A>=0&&(r.style.borderRadius=A+"px")}if(c){var x=parseFloat(c);!isNaN(x)&&x>0&&1!==x&&(r.style.transform="scale(".concat(x,")"),r.style.zIndex="10")}if(_&&n){var C=d?parseFloat(d):3,T=h||"#FFFFFF",L=l?parseFloat(l):8;r.style.outline="".concat(C,"px solid ").concat(T),r.style.outlineOffset="0px",r.style.borderRadius=L+"px"}if(r.classList.add("focused-child"),t.showOnStateManager){var O=t.showOnStateManager.shouldShowOnState(r,"focused");if(null!==O){var P=r.style.display;if(t.focusedElementOriginalStyles.has(r))t.focusedElementOriginalStyles.get(r).display=P;else t.focusedElementOriginalStyles.set(r,{display:P});r.style.display=O?"":"none"}}}})}},{key:"_removeDuplicateParentStateStyles",value:function(e){var t=this;e.querySelectorAll("[duplicateparentstate]").forEach(function(n){var r=n.getAttribute("duplicateparentstate");if("false"!==r&&"0"!==r){var i=t.focusedElementOriginalStyles.get(n);if(i&&(n.style.backgroundColor=i.backgroundColor,n.style.color=i.color,n.style.borderRadius=i.borderRadius,n.style.transform=i.transform,n.style.zIndex=i.zIndex,n.style.transition=i.transition,n.style.outline=i.outline,n.style.outlineOffset=i.outlineOffset),n.classList.remove("focused-child"),t.showOnStateManager){var o=t.showOnStateManager.shouldShowOnState(n,"normal");null!==o&&(n.style.display=o?"":"none")}if(e.hasAttribute("select")&&"false"!==e.getAttribute("select")||e.hasAttribute("selected")&&"false"!==e.getAttribute("selected")){var a,s,u=window.getComputedStyle(n),l=n.getAttribute("selectColor")||n.getAttribute("select-color")||n.getAttribute("data-select-color")||(null===(a=u.getPropertyValue("--select-color"))||void 0===a?void 0:a.trim()),c=n.getAttribute("selectBackgroundColor")||n.getAttribute("select-background-color")||n.getAttribute("data-select-background-color")||(null===(s=u.getPropertyValue("--select-background-color"))||void 0===s?void 0:s.trim());c&&(n.style.backgroundColor=c),l&&(n.style.color=l)}}})}},{key:"clearOriginalStyles",value:function(){this.focusedElementOriginalStyles.clear()}},{key:"deleteOriginalStyles",value:function(e){this.focusedElementOriginalStyles.delete(e)}}])}(),Ut=function(){return L(function e(){x(this,e),this.focusedElement=null},[{key:"setFocusedElement",value:function(e){this.focusedElement=e}},{key:"parseShowOnState",value:function(e){if(!e)return null;try{var t=JSON.parse(e);if(Array.isArray(t))return t.map(function(e){return String(e).toLowerCase()})}catch(e){}return[String(e).toLowerCase()]}},{key:"getShowOnStateAttr",value:function(e){return e&&e.getAttribute?e.getAttribute("showOnState")||e.getAttribute("showonstate"):null}},{key:"getShowOnStateElements",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!e||!e.querySelectorAll)return[];var r=Array.from(e.querySelectorAll("[showOnState], [showonstate]"));return n&&null!==(t=e.matches)&&void 0!==t&&t.call(e,"[showOnState], [showonstate]")&&r.unshift(e),r}},{key:"resolveShowOnStateState",value:function(e){return e?this.focusedElement&&(e===this.focusedElement||this.focusedElement.contains(e))||e.closest(".focused")?"focused":e.closest('[selected="true"], [selected=""]')?"selected":"normal":"normal"}},{key:"shouldShowOnState",value:function(e,t){var n=this.getShowOnStateAttr(e);if(!n)return null;var r=this.parseShowOnState(n);return r&&0!==r.length?r.includes(t.toLowerCase()):null}},{key:"updateShowOnStateVisibility",value:function(e,t){var n=this,r=this.shouldShowOnState(e,t);null!==r&&(r?(e.style.display="",e.style.visibility=""):e.style.display="none"),this.getShowOnStateElements(e).forEach(function(e){var r=n.shouldShowOnState(e,t);null!==r&&(r?(e.style.display="",e.style.visibility=""):e.style.display="none")})}},{key:"initShowOnStateVisibility",value:function(){var e=this;document.querySelectorAll("[showOnState], [showonstate]").forEach(function(t){var n=e.resolveShowOnStateState(t);e._updateShowOnStateVisibilityForElement(t,n)})}},{key:"_updateShowOnStateVisibilityForElement",value:function(e,t){var n=this.shouldShowOnState(e,t);null!==n&&(n?(e.style.display="",e.style.visibility=""):e.style.display="none")}},{key:"initShowOnStateForElement",value:function(e){var t=this;e&&this.getShowOnStateElements(e,!0).forEach(function(e){var n=t.resolveShowOnStateState(e);t._updateShowOnStateVisibilityForElement(e,n)})}}])}(),Gt=function(){return L(function e(){x(this,e),this.focusHistory=[],this.currentRouteName=null,this.focusedElement=null},[{key:"setFocusedElement",value:function(e){this.focusedElement=e}},{key:"isGoingBack",value:function(e,t){return this.focusHistory.findIndex(function(e){return e.routeName===t.name})>=0}},{key:"saveFocusState",value:function(e,t,n){if(t){var r=n(t),i={routeName:e,focusSelector:r},o=this.focusHistory.findIndex(function(t){return t.routeName===e});o>=0?this.focusHistory[o]=i:this.focusHistory.push(i)}}},{key:"restoreFocusState",value:function(e,t,n,r){var i=this.focusHistory.find(function(t){return t.routeName===e});t(),n(),i&&i.focusSelector&&setTimeout(function(){var e=document.querySelector(i.focusSelector);e&&r(e)},200)}},{key:"generateElementSelector",value:function(e,t){if(!e)return null;var n=e.getAttribute("data-component-name"),r=e.id;if(n&&r)return'[data-component-name="'.concat(n,'"][id="').concat(r,'"]');if(n)return'[data-component-name="'.concat(n,'"]');if(r)return'[id="'.concat(r,'"]');var i=e.getAttribute("data-position"),o=e.getAttribute("data-index");if(null!==i){var a=t?t(e):null;if(a){var s=a.id;if(s)return'[id="'.concat(s,'"] [data-position="').concat(i,'"]')}return'[data-position="'.concat(i,'"]')}if(null!==o){var u=t?t(e):null;if(u){var l=u.id;if(l)return'[id="'.concat(l,'"] [data-index="').concat(o,'"]')}return'[data-index="'.concat(o,'"]')}for(var c=[],d=e;d&&d!==document.body;){var h=d.tagName.toLowerCase();if(d.id){h='[id="'.concat(d.id,'"]'),c.unshift(h);break}var f=d.getAttribute("data-position"),p=d.getAttribute("data-index");if(null!==f){h='[data-position="'.concat(f,'"]'),c.unshift(h);break}if(null!==p){h='[data-index="'.concat(p,'"]'),c.unshift(h);break}if(d.className&&"string"==typeof d.className){var v=d.className.split(" ").filter(function(e){return e&&!e.includes(":")});v.length>0&&(h+=".".concat(v[0]))}var y=d.parentElement;if(y){var m=Array.from(y.children).filter(function(e){return e.tagName===d.tagName});if(m.length>1){var g=m.indexOf(d)+1;h+=":nth-child(".concat(g,")")}}c.unshift(h),d=d.parentElement}return c.join(" > ")}},{key:"findPageRootView",value:function(e){if(!e)return null;for(var t=e;t&&t!==document.body;){if("ESPageRootView"===t.getAttribute("data-component-name"))return t;t=t.parentElement}return null}},{key:"getFastListViewFocusInfo",value:function(e){if(!e)return null;for(var t=e,n=null,r=null;t&&t!==document.body;){var i=t.getAttribute("data-position"),o=t.getAttribute("data-index");if(null!==i?n=parseInt(i):null!==o&&(n=parseInt(o)),"FastListView"===t.getAttribute("data-component-name")){r=t;break}t=t.parentElement}return r&&null!==n?{containerId:r.id,position:n}:null}},{key:"saveCurrentPageFocus",value:function(e,t,n,r){if(e){var i=n(e);if(i){var o=r(e);o?(i.setAttribute("data-last-fastlist-id",o.containerId),i.setAttribute("data-last-fastlist-position",o.position)):(i.removeAttribute("data-last-fastlist-id"),i.removeAttribute("data-last-fastlist-position"));var a=t(e);i.setAttribute("data-last-focus-selector",a)}}}},{key:"restoreFocusFromPageRootView",value:function(e,t,n,r){var i=e();if(!i)return!1;var o=i.getAttribute("data-last-fastlist-id"),a=i.getAttribute("data-last-fastlist-position");if(o&&null!==a){var s=document.getElementById(o);if(s&&s.__fastListViewInstance){var u=s.__fastListViewInstance,l=parseInt(a);return setTimeout(function(){u.requestChildFocus(l)},100),!0}}var c=i.getAttribute("data-last-focus-selector");if(!c)return!1;t();var d=document.querySelector(c);if(d&&r.includes(d))return n(d),!0;var h=c.match(/\[data-position="(\d+)"\]/),f=c.match(/\[data-index="(\d+)"\]/),p=c.match(/\[id="([^"]+)"\]/);if((h||f)&&p){var v=h?parseInt(h[1]):parseInt(f[1]),y=p[1],m=document.getElementById(y);if(m&&m.__fastListViewInstance){var g=m.__fastListViewInstance;return setTimeout(function(){g.requestChildFocus(v)},100),!0}}return!1}},{key:"clearHistory",value:function(){this.focusHistory=[]}}])}(),zt=function(){return L(function e(){x(this,e),this.focusedElement=null},[{key:"setFocusedElement",value:function(e){this.focusedElement=e}},{key:"findFastListViewContainer",value:function(e){if(!e)return null;for(var t=e;t&&t!==document.body;){if("FastListView"===t.getAttribute("data-component-name"))return t;t=t.parentElement}return null}},{key:"tryFastListViewNavigation",value:function(e,t,n){for(var r=e.parentElement,i=null;r;){if(r.__fastListViewInstance){i=r.__fastListViewInstance;break}r=r.parentElement}if(!i)return null;var o=i.handleFocusNavigation(e,t);return o||null}},{key:"triggerBoundaryScrollOnExitIfNeeded",value:function(e,t,n){if(e&&t)for(var r=e.parentElement;r&&r!==document.body;){if(r.__fastListViewInstance&&!r.contains(t)){var i=r.__fastListViewInstance;i&&"function"==typeof i._scrollToBoundary&&i._scrollToBoundary(n,e)}r=r.parentElement}}},{key:"triggerBoundaryScrollIfNeeded",value:function(e,t){for(var n=e.parentElement;n&&n!==document.body;){if(n.__fastListViewInstance){var r=n.__fastListViewInstance;"function"==typeof r._scrollToBoundary&&r._scrollToBoundary(t,e)}n=n.parentElement}}},{key:"maybeNotifyFastListItemFocusChanged",value:function(e,t){if(e){if(e.__fastListViewInstance){var n=e.__fastListViewInstance;if(n&&"function"==typeof n.notifyItemFocusChanged)return void n.notifyItemFocusChanged(e,t)}var r=e.parentElement;if(r&&r.__fastListViewInstance){var i=r.__fastListViewInstance;if(i&&"function"==typeof i.notifyItemFocusChanged)return void i.notifyItemFocusChanged(r,t)}for(var o=null;r;){if(r.__fastListViewInstance){var a,s,u,l=(o=r.__fastListViewInstance)._itemContainer;if(l&&(l===e||l.contains(e)))break;var c=null!==(a=null===(s=e.getAttribute)||void 0===s?void 0:s.call(e,"data-position"))&&void 0!==a?a:null===(u=e.getAttribute)||void 0===u?void 0:u.call(e,"data-index");if(null!=c){var d,h=Number(c),f=null==l||null===(d=l.children)||void 0===d?void 0:d[h];if(f&&(f===e||f.contains(e)))break}o=null}r=r.parentElement}o&&"function"==typeof o.notifyItemFocusChanged&&o.notifyItemFocusChanged(e,t)}}},{key:"maybeUpdateFastListBlockFocusDirections",value:function(e){if(e){for(var t=e.parentElement,n=null;t;){if(t.__fastListViewInstance){n=t.__fastListViewInstance;break}t=t.parentElement}n&&"function"==typeof n.updateBlockFocusDirections&&n.updateBlockFocusDirections(e)}}},{key:"maybeScrollFastListToStart",value:function(e){var t;if(e&&e.closest){var n=e.closest("[data-position]")||e.closest("[data-index]");if(n){var r=null!==(t=n.getAttribute("data-position"))&&void 0!==t?t:n.getAttribute("data-index");if(null!=r){var i=Number(r);if(Number.isFinite(i)&&0===i){var o=e.closest(".fast-list-item-container");if(o){var a=window.getComputedStyle(o);if("row"===a.flexDirection||"auto"===a.overflowX||"scroll"===a.overflowX){if(o.scrollLeft>0)try{o.scrollTo({left:0,behavior:"smooth"})}catch(e){o.scrollLeft=0}var s=o.parentElement;if(s&&s.scrollLeft>0)try{s.scrollTo({left:0,behavior:"smooth"})}catch(e){s.scrollLeft=0}}}}}}}}},{key:"getFastListViewFocusInfo",value:function(e){if(!e)return null;for(var t=e,n=null,r=null;t&&t!==document.body;){var i=t.getAttribute("data-position"),o=t.getAttribute("data-index");if(null!==i?n=parseInt(i):null!==o&&(n=parseInt(o)),"FastListView"===t.getAttribute("data-component-name")){r=t;break}t=t.parentElement}return r&&null!==n?{containerId:r.id,position:n}:null}}])}();function Yt(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return qt(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?qt(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function qt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Xt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Kt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xt(Object(n),!0).forEach(function(t){(0,b.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xt(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var $t=function(){return L(function e(){x(this,e),this.focusableElements=[],this.focusedElement=null,this.options={useDistanceBasedNavigation:!0,crossDistanceWeight:.5},this._initModules(),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleKeyUp=this.handleKeyUp.bind(this),this.updateFocusableElements=this.updateFocusableElements.bind(this),this.init()},[{key:"_initModules",value:function(){this.navigator=new Bt(this.options),this.styler=new Ht,this.showOnStateManager=new Ut,this.stateManager=new Gt,this.fastListHandler=new zt,this.styler.setShowOnStateManager(this.showOnStateManager)}},{key:"setOptions",value:function(e){this.options=Kt(Kt({},this.options),e),this.navigator.setOptions(this.options)}},{key:"updateFocusConfig",value:function(e){this.styler.updateConfig(e),this.focusedElement&&this._applyFocusStyle(this.focusedElement)}},{key:"_log",value:function(){}},{key:"init",value:function(){var e=this;document.addEventListener("keydown",this.handleKeyDown),document.addEventListener("keyup",this.handleKeyUp),document.addEventListener("click",this.handleClick.bind(this),!0),new MutationObserver(function(t){e.updateFocusableElements();var n,r=Yt(t);try{var i=function(){var t=n.value;"childList"===t.type&&t.addedNodes.length>0&&setTimeout(function(){var n,r=Yt(t.addedNodes);try{for(r.s();!(n=r.n()).done;){var i=n.value;e._checkAndFocusAutofocusElement(i)}}catch(e){r.e(e)}finally{r.f()}},50)};for(r.s();!(n=r.n()).done;)i()}catch(e){r.e(e)}finally{r.f()}}).observe(document.body,{childList:!0,subtree:!0}),setTimeout(function(){e.updateFocusableElements()},1e3),this._log("Focus manager initialized")}},{key:"_isGoingBack",value:function(e,t){return this.stateManager.isGoingBack(e,t)}},{key:"_saveFocusState",value:function(e){var t=this;this.focusedElement&&this.stateManager.saveFocusState(e,this.focusedElement,function(e){return t._generateElementSelector(e)})}},{key:"_restoreFocusState",value:function(e){var t=this;this.stateManager.restoreFocusState(e,function(){return t.clearFocus()},function(){return t.updateFocusableElements()},function(e){return t._doFocusElement(e)})}},{key:"_generateElementSelector",value:function(e){var t=this;return this.stateManager.generateElementSelector(e,function(e){return t.fastListHandler.findFastListViewContainer(e)})}},{key:"resetForNewPage",value:function(){var e=this;this.clearFocus();var t=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5;if(e.updateFocusableElements(),e.focusableElements.length>0){var i=e.focusableElements.find(function(e){var t=e.getAttribute("autofocus");return"true"===t||""===t||"1"===t});i&&e._doFocusElement(i)}else if(n<r){setTimeout(function(){return t(n+1,r)},100+100*n)}};setTimeout(function(){return t(0)},150)}},{key:"_checkAndFocusAutofocusElement",value:function(e){if(e&&1===e.nodeType){var t=e.getAttribute&&e.getAttribute("autofocus"),n="true"===t||""===t||"1"===t,r=e.hasAttribute&&e.hasAttribute("focusable");if(n&&r&&(this.updateFocusableElements(),this.focusableElements.includes(e)))this._doFocusElement(e);else if(e.querySelector){var i=e.querySelector('[autofocus="true"], [autofocus=""], [autofocus="1"]');i&&i.hasAttribute&&i.hasAttribute("focusable")&&(this.updateFocusableElements(),this.focusableElements.includes(i)&&this._doFocusElement(i))}}}},{key:"_getCurrentPage",value:function(){for(var e=0,t=['[data-component-name="ESPageRouterView"]','[data-component-name="ESRouterView"]',"es-page-router-view","es-router-view","[data-router-view]",".es-router-view"];e<t.length;e++){var n=t[e],r=document.querySelector(n);if(r&&r.children.length>0){for(var i=r.children.length-1;i>=0;i--){var o=r.children[i],a=window.getComputedStyle(o);if("none"!==a.display&&"hidden"!==a.visibility&&parseFloat(a.opacity)>0)return o}return r.children[r.children.length-1]}}for(var s=document.querySelectorAll('[data-component-name="ESPageRootView"], es-page-root-view, [data-page]'),u=s.length-1;u>=0;u--){var l=s[u],c=window.getComputedStyle(l);if("none"!==c.display&&"hidden"!==c.visibility)return l}return document.body}},{key:"updateFocusableElements",value:function(){var e=new Set;['[focusable="true"]','[focusable="1"]',"[focusable]",'[data-focusable="true"]',"[data-focusable]",'[canfocus="true"]','[canFocus="true"]',".focusable",'[tabindex="0"]',"[tabindex]"].forEach(function(t){try{document.querySelectorAll(t).forEach(function(t){return e.add(t)})}catch(e){}});var t=Array.from(e),n=this._getCurrentPage(),r=Array.from(t).filter(function(e){var t=e.getAttribute("focusable");if("false"===t||"0"===t)return!1;var r=e.getAttribute("duplicateParentState");if("true"===r||""===r||e.hasAttribute("duplicateparentstate"))return!1;if(n!==document.body&&!n.contains(e))return!1;var i=window.getComputedStyle(e);if(!("none"!==i.display&&"hidden"!==i.visibility&&parseFloat(i.opacity)>0&&!e.hasAttribute("data-template")))return!1;var o=e.getBoundingClientRect(),a=o.width>0&&o.height>0,s=3*window.innerHeight,u=2*window.innerWidth,l=o.top<s&&o.bottom>-s&&o.left<u&&o.right>-u;return a&&l});this.focusableElements=r,this._initShowOnStateVisibility()}},{key:"handleKeyDown",value:function(e){if(this._dispatchPageKeyDown(e),this.focusedElement){var t=this._getCurrentPage(),n=t&&t.contains(this.focusedElement),r=document.body.contains(this.focusedElement);n&&r||this.clearFocus()}if(!this.focusedElement&&"Escape"!==e.key){if(this._restoreFocusFromPageRootView())return void e.preventDefault();if(this.updateFocusableElements(),this.focusableElements.length>0)return this._doFocusElement(this.focusableElements[0]),void e.preventDefault()}if(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight","Enter","Escape"].includes(e.key))switch(e.preventDefault(),e.key){case"ArrowUp":this.moveFocus("up");break;case"ArrowDown":this.moveFocus("down");break;case"ArrowLeft":this.moveFocus("left");break;case"ArrowRight":this.moveFocus("right");break;case"Enter":this.clickFocused();break;case"Escape":this.dispatchBackPressed(e)}}},{key:"handleKeyUp",value:function(e){this._dispatchPageKeyUp(e),["ArrowUp","ArrowDown","ArrowLeft","ArrowRight","Enter","Escape"].includes(e.key)&&e.preventDefault()}},{key:"_dispatchPageKeyDown",value:function(e){var t=Pt(e);le(t)||this._callCurrentPageMethod("onKeyDown",t)}},{key:"_dispatchPageKeyUp",value:function(e){var t=Pt(e);ce(t)||this._callCurrentPageMethod("onKeyUp",t)}},{key:"_getCurrentPageVueInstance",value:function(){var e=n.g.__ES_PAGE_STACK__;if(e&&e.length>0){var t=e[e.length-1];if(t&&(t.exposed||t.proxy||t.setupState))return t}var r=this._getCurrentPage();return r?this._findVueInstanceInSubtree(r):null}},{key:"_findVueInstanceInSubtree",value:function(e){for(var t=[e],n=new Set,r=0;t.length>0&&r<200;){var i=t.shift();if(i&&!n.has(i)){n.add(i),r+=1;var o=i.__vueParentComponent||i.__vue__;if(o&&(o.exposed||o.proxy))return o;var a=i.children;if(a&&a.length>0)for(var s=0;s<a.length;s++)t.push(a[s])}}return null}},{key:"_callCurrentPageMethod",value:function(e,t){var n,r,i,o=this._getCurrentPageVueInstance();if(!o)return!1;var a=(null==o||null===(n=o.setupState)||void 0===n?void 0:n[e])||(null==o||null===(r=o.exposed)||void 0===r?void 0:r[e])||(null==o||null===(i=o.proxy)||void 0===i?void 0:i[e]);if("function"!=typeof a)return!1;try{var s=a(t);s&&"function"==typeof s.then&&s.catch(function(e){})}catch(e){}return!0}},{key:"moveFocus",value:function(e){var t=this;if(0!==this.focusableElements.length||(this.updateFocusableElements(),0!==this.focusableElements.length))if(this.focusedElement){var n=this.focusedElement;if(this.navigator.isDirectionBlocked(n,e))this._log("[TVFocus] Direction",e,"is blocked for current element");else{var r=this.navigator.getNextFocusByName(n,e,this.focusableElements,function(){return t.updateFocusableElements()});if(r)return this._log("[TVFocus] Found nextFocusName target for direction",e),void this._doFocusElement(r);if(!document.body.contains(n))return this.updateFocusableElements(),void(this.focusableElements.length>0&&this._doFocusElement(this.focusableElements[0]));var i=this.fastListHandler.tryFastListViewNavigation(n,e,this.options.useDistanceBasedNavigation);if(i)this._doFocusElement(i);else{var o=this.navigator.findBestCandidate(n,e,this.focusableElements);o?(this.options.useDistanceBasedNavigation&&this.fastListHandler.triggerBoundaryScrollOnExitIfNeeded(n,o,e),this._doFocusElement(o)):this.options.useDistanceBasedNavigation&&this.fastListHandler.triggerBoundaryScrollIfNeeded(n,e)}}}else this._doFocusElement(this.focusableElements[0])}},{key:"_doFocusElement",value:function(e){if(e){this.focusableElements.includes(e)||this.focusableElements.push(e);var t=this.focusedElement;t&&(t!==e&&this._dispatchFocusChange(t,!1),this.fastListHandler.maybeNotifyFastListItemFocusChanged(t,!1),this._removeFocusStyle(t)),this.focusedElement=e,this._applyFocusStyle(this.focusedElement),this.focusedElement.classList.add("focused"),this._dispatchFocusChange(this.focusedElement,!0),this._scrollToCenter(e),this.fastListHandler.maybeScrollFastListToStart(this.focusedElement),this.fastListHandler.maybeUpdateFastListBlockFocusDirections(this.focusedElement),this.fastListHandler.maybeNotifyFastListItemFocusChanged(this.focusedElement,!0),this.showOnStateManager.setFocusedElement(this.focusedElement),this.stateManager.setFocusedElement(this.focusedElement),this.fastListHandler.setFocusedElement(this.focusedElement)}}},{key:"_dispatchFocusChange",value:function(e,t){if(!e)return!1;for(var n=e;n&&n!==document.body;){var r=void 0!==n.id&&null!==n.id&&""!==n.id?Number(n.id):NaN;if(!Number.isNaN(r)){var i=_(r);if(i&&"function"==typeof i.dispatchEvent)return i.dispatchEvent("onFocus",{isFocused:t,currentTarget:{index:this._resolveElementIndex(e)},target:{attributes:{name:e.getAttribute("name")}}})}n=n.parentElement}return!1}},{key:"_resolveElementIndex",value:function(e){var t,n=null==e||null===(t=e.getAttribute)||void 0===t?void 0:t.call(e,"index");if(null!=n&&""!==n){var r=Number(n);return Number.isNaN(r)?n:r}}},{key:"_scrollToCenter",value:function(e){if(e){var t=this._findScrollContainer(e);if(t){e.getBoundingClientRect(),t.getBoundingClientRect();for(var n=0,r=0,i=e;i&&i!==t;)n+=i.offsetTop,r+=i.offsetLeft,i=i.offsetParent;var o=t.scrollHeight>t.clientHeight,a=t.scrollWidth>t.clientWidth;if(o){var s=n,u=e.offsetHeight,l=t.clientHeight,c=s-(l-u)/2,d=t.scrollHeight-l,h=Math.max(0,Math.min(c,d)),f=t.scrollTop;if(Math.abs(h-f)>1){var p=performance.now(),v=function(){var e=performance.now()-p,n=Math.min(e/250,1),r=1-Math.pow(1-n,3);t.scrollTop=f+(h-f)*r,n<1&&requestAnimationFrame(v)};requestAnimationFrame(v)}else t.scrollTop=h}if(a){var y=r,m=e.offsetWidth,g=t.clientWidth,_=y-(g-m)/2,b=t.scrollWidth-g,w=Math.max(0,Math.min(_,b));t.scrollTo({left:w,behavior:"smooth"})}}else e.scrollIntoView({behavior:"smooth",block:"center",inline:"center"})}}},{key:"_findScrollContainer",value:function(e){for(var t=e.parentElement,n=null,r=null;t&&t!==document.body;){var i=t.getAttribute("data-component-name");if("FastListView"!==i&&"ListView"!==i&&"QtFlexView"!==i||n||(n=t),!r){var o=window.getComputedStyle(t),a=o.overflowY,s=o.overflowX;(("auto"===a||"scroll"===a)&&t.scrollHeight>t.clientHeight||("auto"===s||"scroll"===s)&&t.scrollWidth>t.clientWidth)&&(r=t)}t=t.parentElement}if(n){var u=n.querySelector(".fast-list-item-container");if(u){var l=window.getComputedStyle(u),c=l.overflowY,d=l.overflowX,h=("auto"===c||"scroll"===c)&&u.scrollHeight>u.clientHeight,f=("auto"===d||"scroll"===d)&&u.scrollWidth>u.clientWidth;if(h||f)return u}var p=window.getComputedStyle(n),v=p.overflowY,y=p.overflowX,m=("auto"===v||"scroll"===v)&&n.scrollHeight>n.clientHeight,g=("auto"===y||"scroll"===y)&&n.scrollWidth>n.clientWidth;if(m||g)return n}return r}},{key:"saveCurrentPageFocus",value:function(){var e=this;this.stateManager.saveCurrentPageFocus(this.focusedElement,function(t){return e._generateElementSelector(t)},function(t){return e.stateManager.findPageRootView(t)},function(t){return e.fastListHandler.getFastListViewFocusInfo(t)})}},{key:"_restoreFocusFromPageRootView",value:function(){var e=this;return this.stateManager.restoreFocusFromPageRootView(function(){return e._getCurrentPage()},function(){return e.updateFocusableElements()},function(t){return e._doFocusElement(t)},this.focusableElements)}},{key:"restorePreviousPageFocus",value:function(){this.clearFocus(),this.updateFocusableElements(),this._restoreFocusFromPageRootView()||this.focusableElements.length>0&&this._doFocusElement(this.focusableElements[0])}},{key:"_initShowOnStateVisibility",value:function(){this.showOnStateManager.initShowOnStateVisibility()}},{key:"initShowOnStateForElement",value:function(e){this.showOnStateManager.initShowOnStateForElement(e)}},{key:"_getFocusProps",value:function(e){return this.styler.getFocusProps(e)}},{key:"_applyFocusStyle",value:function(e){this.styler.applyFocusStyle(e)}},{key:"_removeFocusStyle",value:function(e){this.styler.removeFocusStyle(e)}},{key:"_removeDuplicateParentStateStyles",value:function(e){this.styler._removeDuplicateParentStateStyles(e)}},{key:"clearFocus",value:function(){this.focusedElement&&this._removeFocusStyle(this.focusedElement),this.focusedElement=null,this.showOnStateManager.setFocusedElement(null),this.stateManager.setFocusedElement(null),this.fastListHandler.setFocusedElement(null)}},{key:"_dispatchComponentClickFromElement",value:function(e,t){for(var n=e;n&&n!==document.body;){if(void 0!==n._itemData||void 0!==n._itemPosition)return!1;if(n.classList&&n.classList.contains("fast-list-item-container"))return!1;n=n.parentElement}for(n=e;n&&n!==document.body;){var r=void 0!==n.id&&null!==n.id&&""!==n.id?Number(n.id):NaN;if(!Number.isNaN(r)){var i=_(r);return i&&"function"==typeof i.markClickHandled&&i.markClickHandled(),he(r,"onClick",{nativeEvent:t||{target:e,currentTarget:n}}),!0}n=n.parentElement}return!1}},{key:"clickFocused",value:function(){if(this.focusedElement){var e=this.focusedElement,t=this._dispatchComponentClickFromElement(e);if(!t&&e._emitter&&"function"==typeof e._emitter.emit){var n={type:"click",bubbles:!0,cancelable:!0,target:e,currentTarget:e};e._emitter.emit(n),t=!0}t||e.click()}}},{key:"handleClick",value:function(e){for(var t=e.target;t&&t!==document.body;){if(t.hasAttribute&&t.hasAttribute("focusable")){this.focusableElements.includes(t)&&this._doFocusElement(t),this._dispatchComponentClickFromElement(t,e);break}t=t.parentElement}}},{key:"dispatchBackPressed",value:function(e){se()}},{key:"_directionNumberToName",value:function(e){return It(e)}},{key:"setFocus",value:function(e){e<0||e>=this.focusableElements.length||this._doFocusElement(this.focusableElements[e])}},{key:"focusElement",value:function(e){return!!e&&(this.focusableElements.includes(e)||this.updateFocusableElements(),!!this.focusableElements.includes(e)&&(this._doFocusElement(e),!0))}},{key:"moveFocusFromElement",value:function(e,t){if(!e)return!1;var n=t;if("number"==typeof t&&(n=It(t)),!n)return this.focusElement(e);if("forward"===n||"backward"===n){this.focusableElements.includes(e)||this.updateFocusableElements();var r,i=this.focusableElements.indexOf(e);return i<0?this.focusElement(e):(r="forward"===n?(i+1)%this.focusableElements.length:(i-1+this.focusableElements.length)%this.focusableElements.length,this._doFocusElement(this.focusableElements[r]),!0)}return this.focusableElements.includes(e)||this.updateFocusableElements(),!!this.focusableElements.includes(e)&&(this.navigator.isDirectionBlocked(e,n)?(this._log("[TVFocus] Direction",n,"is blocked for element"),!1):(this._doFocusElement(e),this.moveFocus(n),!0))}},{key:"clearFocusFromElement",value:function(e){return this.focusedElement===e&&(this.clearFocus(),!0)}}])}();function Zt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Jt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zt(Object(n),!0).forEach(function(t){(0,b.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zt(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}(0,b.A)($t,"FOCUS_DIRECTION",{BACKWARD:1,FORWARD:2,LEFT:17,UP:33,RIGHT:66,DOWN:130});var Qt="undefined"!=typeof window&&window.__BUNDLE_CONFIG__&&!0===window.__BUNDLE_CONFIG__.watch,en="undefined"!=typeof window&&window.__BUNDLE_CONFIG__&&!0===window.__BUNDLE_CONFIG__.watch;function tn(e){return{js:"application/javascript",json:"application/json",css:"text/css",html:"text/html",png:"image/png",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",webp:"image/webp",svg:"image/svg+xml",woff:"font/woff",woff2:"font/woff2",ttf:"font/ttf",mp3:"audio/mpeg",mp4:"video/mp4"}[e.split(".").pop().toLowerCase()]||"application/octet-stream"}var nn=({NODE_ENV:"production"}.VUE_APP_PROXY_DOMAINS||"").split(",").map(function(e){return e.trim()}).filter(Boolean),rn=[/api\./i,/-api\./i,/\.api\./i,/qcloudimg\./i,/cdnott\./i,/baidu\./i].concat(k(nn.map(function(e){return new RegExp(e.replace(/\./g,"\\."),"i")})));function on(e){if(!e)return!1;if("string"==typeof e&&e.startsWith("data:"))return!1;if("string"==typeof e&&e.startsWith("blob:"))return!1;if("string"==typeof e&&e.startsWith("file:"))return!1;try{var t=new URL(e,window.location.origin);return t.origin!==window.location.origin&&(!!en||rn.some(function(e){return e.test(t.hostname)}))}catch(e){return!1}}function an(e){if(!e)return e;try{var t=String(e).trim().replace(/^['"`\s]+|['"`\s]+$/g,""),n=new URL(t,window.location.origin),r="/proxy?url=".concat(encodeURIComponent(n.toString()));return"".concat(window.location.origin).concat(r)}catch(t){return e}}function sn(e){return Qt&&on(e)?an(e):e}function un(){if(Qt){var e=window.fetch;window.fetch=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r="string"==typeof t?t:t.url;if("string"==typeof r&&r.startsWith("hpfile://")){var i=r.replace(/^hpfile:\/\/\.?\//,"/").replace(/^hpfile:\/\//,"/");if(window.__VIRTUAL_FS__&&window.__VIRTUAL_FS__.has(i)){var o=window.__VIRTUAL_FS__.get(i),a=new Blob([o],{type:tn(i)});return Promise.resolve(new Response(a,{status:200,headers:{"Content-Type":tn(i)}}))}"string"==typeof t?t=i:t instanceof Request&&(t=new Request(i,n))}if(on(r)){var s=an(r);"string"==typeof t?t=s:t instanceof Request&&(t=new Request(s,{method:t.method,headers:t.headers,body:t.body,mode:"cors",credentials:t.credentials,cache:t.cache,redirect:t.redirect,referrer:t.referrer,integrity:t.integrity}))}return e.call(this,t,n)};var t=XMLHttpRequest.prototype.open;XMLHttpRequest.prototype.open=function(e,n,r,i,o){return on(n)&&(n=an(n)),t.call(this,e,n,!1!==r,i,o)};var n=Object.getOwnPropertyDescriptor(HTMLImageElement.prototype,"src");n&&n.set&&Object.defineProperty(HTMLImageElement.prototype,"src",Jt(Jt({},n),{},{set(e){if("string"==typeof e&&e.startsWith("hpfile://")){var t=e.replace(/^hpfile:\/\/\.?\//,"/").replace(/^hpfile:\/\//,"/");if(window.__VIRTUAL_FS__&&window.__VIRTUAL_FS__.has(t)){var r=window.__VIRTUAL_FS__.get(t),i=new Blob([r],{type:tn(t)}),o=URL.createObjectURL(i);return n.set.call(this,o)}return n.set.call(this,t)}if(/https?:\/\/[^/:]+:38989\//.test(e)){var a=e.replace(/https?:\/\/[^/:]+:38989\//,"./");return n.set.call(this,a)}var s=on(e)?an(e):e;return n.set.call(this,s)}}))}}var ln=window.localStorage,cn=new Map,dn={getItem:e=>new Promise(function(t){setTimeout(function(){try{var n=ln.getItem(e);t(n)}catch(e){t(null)}},0)}),setItem:(e,t)=>new Promise(function(n,r){setTimeout(function(){try{var i=ln.getItem(e);ln.setItem(e,t),hn(e,i,t),n()}catch(e){r(e)}},0)}),removeItem:e=>new Promise(function(t){setTimeout(function(){try{var n=ln.getItem(e);ln.removeItem(e),hn(e,n,null),t()}catch(e){t()}},0)}),clear:()=>new Promise(function(e){setTimeout(function(){try{ln.clear(),e()}catch(t){e()}},0)}),key:e=>new Promise(function(t){setTimeout(function(){try{t(ln.key(e))}catch(e){t(null)}},0)}),multiGet:e=>new Promise(function(t){setTimeout(function(){try{var n=e.map(function(e){return[e,ln.getItem(e)]});t(n)}catch(n){t(e.map(function(e){return[e,null]}))}},0)}),multiSet:e=>new Promise(function(t,n){setTimeout(function(){try{e.forEach(function(e){var t=s(e,2),n=t[0],r=t[1],i=ln.getItem(n);ln.setItem(n,r),hn(n,i,r)}),t()}catch(e){n(e)}},0)}),multiRemove:e=>new Promise(function(t){setTimeout(function(){try{e.forEach(function(e){var t=ln.getItem(e);ln.removeItem(e),hn(e,t,null)}),t()}catch(e){t()}},0)}),get length(){return ln.length},addChangeListener(e){var t=Date.now()+Math.random();return cn.set(t,e),function(){return cn.delete(t)}}};function hn(e,t,n){cn.forEach(function(r){try{r(e,n,t)}catch(e){}})}var fn=n(553);function pn(e,t){if(t&&("object"==(0,fn.A)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function vn(e){return vn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},vn(e)}function yn(){return yn="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=function(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=vn(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}},yn.apply(null,arguments)}function mn(e,t){return mn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},mn(e,t)}function gn(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&mn(e,t)}function _n(e,t,n,r){var i=yn(vn(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof i?function(e){return i.apply(n,e)}:i}function bn(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return wn(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?wn(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function wn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function kn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function En(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kn(Object(n),!0).forEach(function(t){(0,b.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kn(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Sn(e,t,n){return t=vn(t),pn(e,An()?Reflect.construct(t,n||[],vn(e).constructor):t.apply(e,n))}function An(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(An=function(){return!!e})()}var xn=function(){return"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{}},Cn=xn(),Tn={initiallistready:"initialListReady",momentumscrollbegin:"onMomentumScrollBegin",momentumscrollend:"onMomentumScrollEnd",scrollbegindrag:"onScrollBeginDrag",scrollenddrag:"onScrollEndDrag",willappear:"willAppear",willdisappear:"willDisappear",endreached:"onEndReached",loadstart:"onLoadStart",loadend:"onLoadEnd",requestclose:"onRequestClose",headerreleased:"onHeaderReleased",headerpulling:"onHeaderPulling",footerreleased:"onFooterReleased",footerpulling:"onFooterPulling",getrefresh:"onGetRefresh"},Ln={click:"onClick",longclick:"onLongClick",pressin:"onPressIn",pressout:"onPressOut",touchstart:"onTouchDown",touchend:"onTouchEnd",touchmove:"onTouchMove",touchcancel:"onTouchCancel"},On={changetext:"onChangeText",keyboardwillhide:"onKeyboardWillHide",keyboardwillshow:"onKeyboardWillShow",contentsizechange:"onContentSizeChange",endediting:"onEndEditing"},Pn={pageselected:"onPageSelected",pagescroll:"onPageScroll",statechanged:"onStateChanged",pagescrollstatechanged:"onPageScrollStateChanged"};function In(e){return Tn[e]?Tn[e]:function(e){return!!Ln[e]}(e)?Ln[e]:function(e){return!!On[e]}(e)?On[e]:function(e){return!!Pn[e]}(e)?Pn[e]:function(e){return e.startsWith("on")?e:"on".concat(e.charAt(0).toUpperCase()).concat(e.slice(1))}(e)}var Nn=function(){return L(function e(t){x(this,e),this.rootViewId=t},[{key:"create",value:function(e){Hippy.bridge.callNative("UIManagerModule","createNode",this.rootViewId,e)}},{key:"update",value:function(e){Hippy.bridge.callNative("UIManagerModule","updateNode",this.rootViewId,e)}},{key:"delete",value:function(e){Hippy.bridge.callNative("UIManagerModule","deleteNode",this.rootViewId,e)}},{key:"move",value:function(e){Hippy.bridge.callNative("UIManagerModule","moveNode",this.rootViewId,e)}},{key:"build",value:function(){}},{key:"addEventListener",value:function(e,t,n){Hippy.bridge.callNativeWithoutDelete("UIManagerModule","addEventListener",e,In(t),n)}},{key:"removeEventListener",value:function(e,t,n){Hippy.bridge.callNative("UIManagerModule","removeEventListener",e,In(t),n)}}])}(),Rn="AnimationModule",Dn=function(){return L(function e(t){x(this,e),this.id=t},[{key:"getId",value:function(){return this.id}},{key:"start",value:function(){Hippy.bridge.callNative(Rn,"startAnimation",this.id)}},{key:"pause",value:function(){Hippy.bridge.callNative(Rn,"pauseAnimation",this.id)}},{key:"resume",value:function(){Hippy.bridge.callNative(Rn,"resumeAnimation",this.id)}},{key:"destroy",value:function(){Hippy.bridge.callNative(Rn,"destroyAnimation",this.id)}},{key:"updateAnimation",value:function(e){Hippy.bridge.callNative(Rn,"destroyAnimation",this.id,e)}},{key:"addEventListener",value:function(e,t){Hippy.bridge.callNative(Rn,"addEventListener",this.id,e,t)}},{key:"removeEventListener",value:function(e,t){Hippy.bridge.callNative(Rn,"removeEventListener",this.id,e,t)}}])}(),Mn=function(e){function t(e){return x(this,t),Sn(this,t,[Hippy.bridge.callNativeWithCallbackId(Rn,"createAnimation",!0,e.mode,e)])}return gn(t,e),L(t)}(Dn),Fn=function(e){function t(e){var n=e.children,r=e.repeatCount;return x(this,t),Sn(this,t,[Hippy.bridge.callNativeWithCallbackId(Rn,"createAnimationSet",!0,{children:n,repeatCount:r})])}return gn(t,e),L(t)}(Dn),Bn={get:e=>(Hippy.device||{})[e],set(e){if(e){var t=e.windowPhysicalPixels,n=void 0===t?null:t,r=e.screenPhysicalPixels,i=void 0===r?null:r;n&&(Hippy.device.window={width:n.width,height:n.height,scale:n.scale,fontScale:n.fontScale,statusBarHeight:n.statusBarHeight,navigatorBarHeight:n.navigationBarHeight}),i&&(Hippy.device.screen={width:i.width,height:i.height,scale:i.scale,fontScale:i.fontScale,statusBarHeight:i.statusBarHeight,navigatorBarHeight:i.navigationBarHeight}),Hippy.device.pixelRatio=Hippy.device.window.scale}},init(){var e=__HIPPYNATIVEGLOBAL__.Dimensions,t=e.windowPhysicalPixels,n=e.screenPhysicalPixels;this.set({windowPhysicalPixels:t,screenPhysicalPixels:n})}};var jn={OS:"web",Platform:{OS:"android",Localization:void 0},Dimensions:En({window:{scale:window.devicePixelRatio||1,height:window.innerHeight,width:window.innerWidth}},function(){var e={width:0,height:0,scale:1,fontScale:1,statusBarHeight:0,navigationBarHeight:0},t=e;t.width=window.innerWidth,t.height=window.innerHeight,t.scale=window.devicePixelRatio,t.fontScale=window.devicePixelRatio,t.statusBarHeight=0,t.navigationBarHeight=0;var n=e;return n.width=window.innerWidth,n.height=window.innerHeight,n.scale=window.devicePixelRatio,n.fontScale=window.devicePixelRatio,n.statusBarHeight=0,n.navigationBarHeight=0,{windowPhysicalPixels:t,screenPhysicalPixels:n}}())},Vn=function(){return L(function e(t){var n=this;x(this,e),this._headers={},"object"==typeof t&&Object.keys(t).forEach(function(e){var r=t[e];r instanceof Array?r.forEach(function(t){n.append(e,t)}):n.set(e,r)})},[{key:"append",value:function(e,t){if("string"==typeof e&&"string"==typeof t)if(this.has(e)){var n=this._headers[e];n.push(t),this._headers[e]=n}else this._headers[e]=[t]}},{key:"set",value:function(e,t){"string"==typeof e&&"string"==typeof t&&(this._headers[e]=[t])}},{key:"getAll",value:function(){return this._headers["Content-Type"]||this._headers["content-type"]||(this._headers["content-type"]=["text/plain;charset=UTF-8"]),Object.assign({},this._headers)}},{key:"delete",value:function(e){"string"==typeof e&&void 0!==this._headers[e]&&delete this._headers.name}},{key:"get",value:function(e){if("string"==typeof e)return this._headers[e]}},{key:"has",value:function(e){return"string"==typeof e&&void 0!==this._headers[e]}}])}(),Wn=function(){return L(function e(t){x(this,e);var n=t||{};this.status=n.statusCode||404,this.statusText=n.statusLine||"Not Found",this.headers=n.respHeaders||{},this.body=n.respBody||"",this.ok=this.status>=200&&this.status<=299},[{key:"json",value:function(){var e=this;return new Promise(function(t,n){try{t(JSON.parse(e.body))}catch(e){n(new Error("error parsing object"))}})}},{key:"text",value:function(){return Promise.resolve(this.body)}}])}();var Hn,Un=function(e,t){if("string"!=typeof e||"function"!=typeof t)throw new TypeError("Hippy.on() only accept a string as event name and a function as listener");var n=__GLOBAL__.globalEventHandle[e];return n instanceof Set||(__GLOBAL__.globalEventHandle[e]=new Set,n=__GLOBAL__.globalEventHandle[e]),n.add(t),n},Gn=function(e,t){if("string"!=typeof e)throw new TypeError("Hippy.off() only accept a string as event name");var n=__GLOBAL__.globalEventHandle[e];return n instanceof Set?t?(n.delete(t),n):(n.clear(),null):null},zn=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if("string"!=typeof e)throw new TypeError("Hippy.emit() only accept a string as event name");var i=__GLOBAL__.globalEventHandle[e];if(i)try{i.forEach(function(e){return e.apply(void 0,n)})}catch(e){}else"uncaughtException"===e&&n[0]},Yn=function(e){return e?((t=Array.isArray(e)?e:[e])&&t.map(function(e){return function(e){if(!e)return null;var t=new Error(e.message);return t.key=e.key,t}(e)}),t):null;var t},qn={getAllKeys:()=>Hippy.bridge.callNativeWithPromise("StorageModule","getAllKeys"),setItem(e,t){var n=t;if("string"!=typeof n)try{n=n.toString()}catch(e){throw e}return Hippy.bridge.callNativeWithPromise("StorageModule","multiSet",[[e,n]])},getItem:e=>Hippy.bridge.callNativeWithPromise("StorageModule","multiGet",[e]).then(function(e){return e&&e[0]&&e[0][1]?e[0][1]:null}).catch(function(e){return Yn(e)}),removeItem:e=>Hippy.bridge.callNativeWithPromise("StorageModule","multiRemove",[e]),multiGet:e=>Hippy.bridge.callNativeWithPromise("StorageModule","multiGet",e),multiSet:e=>Hippy.bridge.callNativeWithPromise("StorageModule","multiSet",e),multiRemove:e=>Hippy.bridge.callNativeWithPromise("StorageModule","multiRemove",e)},Xn=["measureInWindow","measureInAppWindow","getBoundingClientRect"],Kn={createNode(e,t){Hippy.bridge.callNative("UIManagerModule","createNode",e,t)},updateNode(e,t){Hippy.bridge.callNative("UIManagerModule","updateNode",e,t)},deleteNode(e,t){Hippy.bridge.callNative("UIManagerModule","deleteNode",e,t)},flushBatch(e,t){Hippy.bridge.callNative("UIManagerModule","flushBatch",e,t)},startBatch(){Hippy.bridge.callNative("UIManagerModule","startBatch")},endBatch(){Hippy.bridge.callNative("UIManagerModule","endBatch"),"function"==typeof flushQueueImmediate&&flushQueueImmediate()},sendRenderError(e){if(e)throw e},callUIFunction(e,t,n,r){Xn.includes(t)?Hippy.bridge.callNative("UIManagerModule",t,[e,n],r):Hippy.bridge.callNative("UIManagerModule","callUIFunction",[e,t,n],r)}},$n={country:"",language:"",direction:0},Zn={callNative:function(){if("undefined"==typeof hippyCallNatives)throw new ReferenceError("hippyCallNatives not defined");for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(t.length<2)throw new TypeError("Arguments length must be larger than 2");var r=__GLOBAL__.moduleCallId;__GLOBAL__.moduleCallId+=1;for(var i=[],o=0,a=2;a<t.length;a+=1)"function"==typeof t[a]&&0===o?(o+=1,__GLOBAL__.moduleCallList[r]={cb:t[a],type:0}):i.push(t[a]);var s=-1;o>0&&(s=r),hippyCallNatives(t[0],t[1],s.toString(),i)},callNativeWithCallbackId:function(){if("undefined"==typeof hippyCallNatives)throw new ReferenceError("hippyCallNatives not defined");for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(t.length<3)throw new TypeError("Arguments length must be larger than 3");var r=t[0],i=t[1],o=t[2];if("string"!=typeof r||"string"!=typeof i||"boolean"!=typeof o)throw new TypeError("Invalid arguments");var a=__GLOBAL__.moduleCallId;__GLOBAL__.moduleCallId+=1;var s=[];"AnimationModule"!==r||"createAnimation"!==i&&"createAnimationSet"!==i||s.push(a);for(var u=0,l=3;l<t.length;l+=1)"function"==typeof t[l]&&0===u?(u+=1,__GLOBAL__.moduleCallList[a]={cb:t[l],type:o?1:2}):s.push(t[l]);return"TimerModule"!==r&&"AnimationFrameModule"!==r||s.push(a.toString()),hippyCallNatives(r,i,a.toString(),s),a},callNativeWithPromise:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"undefined"==typeof hippyCallNatives?Promise.reject(new ReferenceError("hippyCallNatives not defined")):t.length<2?Promise.reject(new TypeError("Arguments length must be larger than 2")):new Promise(function(e,n){var r=__GLOBAL__.moduleCallId;__GLOBAL__.moduleCallId+=1;for(var i=[],o=0,a=2;a<t.length;a+=1)"function"==typeof t[a]&&0===o?(o+=1,__GLOBAL__.moduleCallList[r]={cb:t[a],reject:n,type:0}):i.push(t[a]);0===o&&(__GLOBAL__.moduleCallList[r]={cb:e,reject:n,type:0}),hippyCallNatives(t[0],t[1],r.toString(),i)})},callNativeWithoutDelete:function(){if("undefined"==typeof hippyCallNatives)throw new ReferenceError("hippyCallNatives not defined");for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(t.length<2)throw new TypeError("Arguments length must be larger than 2");var r=__GLOBAL__.moduleCallId;__GLOBAL__.moduleCallId+=1;for(var i=[],o=0,a=2;a<t.length;a+=1)"function"==typeof t[a]&&0===o?(o+=1,__GLOBAL__.moduleCallList[r]={cb:t[a],type:2}):i.push(t[a]);var s=-1;o>0&&(s=r),hippyCallNatives(t[0],t[1],s.toString(),i)},removeNativeCallback:function(e){if("number"!=typeof e||e<0)throw new TypeError("Invalid arguments");if("object"!=typeof __GLOBAL__||"object"!=typeof __GLOBAL__.moduleCallList)throw new ReferenceError("moduleCallList not defined");var t=__GLOBAL__.moduleCallList[e];!t||1!==t.type&&2!==t.type||delete __GLOBAL__.moduleCallList[e]}},Jn=xn();"undefined"!=typeof window&&(window.global=Jn),Jn.Hippy={},Jn.__GLOBAL__={},Jn.hippyBridge=function(e,t){var r="success",i=e,o=t;switch("pauseInstance"===i&&(i="callJsModule",o={methodName:"receiveNativeEvent",moduleName:"EventDispatcher",params:["@hippy:pauseInstance",null]}),"resumeInstance"===i&&(i="callJsModule",o={methodName:"receiveNativeEvent",moduleName:"EventDispatcher",params:["@hippy:resumeInstance",null]}),i){case"loadInstance":if(!__GLOBAL__.appRegister[o.name])throw r="error: ".concat(o.name," is not regist in js"),Error(r);Object.assign(o.params,{__instanceName__:o.name,__instanceId__:o.id}),Object.assign(__GLOBAL__.appRegister[o.name],{id:o.id,superProps:o.params});var a=__GLOBAL__.jsModuleList.EventDispatcher;if(a&&"function"==typeof a.receiveNativeEvent){var s=["@hp:loadInstance",o.params];a.receiveNativeEvent(s)}__GLOBAL__.appRegister[o.name].run(o.params);break;case"callBack":if(1===o.result)r="error: native no modules";else if(o.callId&&"AnimationFrameModule"===o.moduleName&&"requestAnimationFrame"===o.moduleFunc)__GLOBAL__.canRequestAnimationFrame=!0,__GLOBAL__.requestAnimationFrameQueue[o.callId]&&(__GLOBAL__.requestAnimationFrameQueue[o.callId].forEach(function(e){"function"==typeof e&&e(o.params)}),delete __GLOBAL__.requestAnimationFrameQueue[o.callId]);else if(o.callId&&__GLOBAL__.moduleCallList[o.callId]){var u=__GLOBAL__.moduleCallList[o.callId];0!==o.result&&"function"==typeof u.reject?u.reject(o.params):u.cb(o.params),0!==u.type&&1!==u.type||delete __GLOBAL__.moduleCallList[o.callId]}else r="error: calljs id is not regist in js";break;case"callJsModule":if(o&&o.moduleName&&o.methodName){var l=__GLOBAL__.jsModuleList[o.moduleName];l&&"function"==typeof l[o.methodName]?l[o.methodName](o.params,o.secondParams):r="error: callJsModule targetting an undefined module or method"}else r="error: callJsModule param invalid";break;case"destroyInstance":n.g.Hippy.emit("destroyInstance",o);var c=Date.now().toString();Hippy.bridge.callNative("UIManagerModule","startBatch",c),Hippy.bridge.callNative("UIManagerModule","deleteNode",o,[[{id:o}]]),Hippy.bridge.callNative("UIManagerModule","endBatch",c),delete __GLOBAL__.nodeIdCache[o],delete __GLOBAL__.nodeTreeCache[o],__GLOBAL__.destroyInstanceList[o]=!0;break;default:r="error: action not define"}return r},Jn.__ISHIPPY__=!0,Jn.__GLOBAL__.globalEventHandle={},Jn.__GLOBAL__.jsModuleList={Dimensions:Bn},Jn.__HIPPYNATIVEGLOBAL__=jn,Jn.HippyDealloc=function(){Hippy&&Hippy.emit("dealloc")},Jn.__Headers=Jn.Headers,Jn.Headers=Vn,Jn.__Response=Jn.Response,Jn.Response=Wn,Jn.__fetch=Jn.fetch,Jn.fetch=function(e,t){if("string"!=typeof e)return Promise.reject(new Error("only String url supported"));var n=t||{},r={};if(n.headers)if(n.headers instanceof Vn)r=n.headers.getAll();else{if(n.headers.constructor!==Object)return Promise.reject(new Error("Only Headers instance or a pure object is acceptable for headers option"));r=new Vn(n.headers).getAll()}var i={method:n.method||"GET",url:e,headers:r||{},body:n.body||""};return new Promise(function(e,t){Hippy.bridge.callNativeWithPromise("network","fetch",i).then(function(n){if("object"==typeof n){var r=new Wn(n);e(r)}else t(n)}).catch(function(e){t(e)})})},Jn.__WebSocket=Jn.WebSocket,Jn.getTurboModule=function(e){var t=Hippy.web.engine.modules[e];return t},Jn.dynamicLoad=function(e,t,n){var r=document.createElement("script");r.async=!0,r.setAttribute("src",e),"function"==typeof n&&(r.onload=function(){n()},r.onerror=function(){n('load script "'.concat(e,'" error'))}),document.head.appendChild(r)},__GLOBAL__.appRegister={},__GLOBAL__.nodeIdCache={},__GLOBAL__.nodeTreeCache={},__GLOBAL__.nodeParamCache={},__GLOBAL__.moduleCallId=0,__GLOBAL__.moduleCallList={},__GLOBAL__.canRequestAnimationFrame=!0,__GLOBAL__.requestAnimationFrameId=0,__GLOBAL__.requestAnimationFrameQueue={},__GLOBAL__.destroyInstanceList={},Hippy.bridge=Zn,Hippy.device={vibrate:function(){},cancelVibrate:function(){}},Hippy.register={regist:function(e,t){"ios"===__HIPPYNATIVEGLOBAL__.OS&&Hippy.bridge.callNative("JSCExecutor","setContextName","HippyContext: ".concat(e)),__GLOBAL__.appRegister[e]={run:t}}},Hippy.on=Un,Hippy.off=Gn,Hippy.emit=zn,Hippy.asyncStorage=qn,Hippy.turboPromise=function(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return new Promise(function(t,r){var i={resolve:t,reject:r};e.apply(null,[].concat(n,[i]))})}},Hippy.document=Kn,Hippy.device.platform={OS:__HIPPYNATIVEGLOBAL__.Platform.OS,Localization:__HIPPYNATIVEGLOBAL__.Platform.Localization||$n},Hippy.SceneBuilder=Nn,Hippy.Animation=Mn,Hippy.AnimationSet=Fn,Jn.__localStorage=Jn.localStorage,Object.defineProperty(Jn,"localStorage",{value:Hippy.asyncStorage}),Jn.turboPromise=Hippy.turboPromise,Object.defineProperty(Jn.console,"reportUncaughtException",{value:function(e){if(e&&e instanceof Error)throw e}}),Jn.addEventListener("unhandledrejection",function(e){Jn.Hippy.emit("unhandledRejection",null==e?void 0:e.reason,null==e?void 0:e.promise)}),Bn.init(),function(e){e.VIEW="View",e.TEXT="Text",e.IMAGE="Image",e.LIST_ITEM="ListViewItem",e.LIST="ListView",e.REFRESH="RefreshWrapper",e.REFRESH_ITEM="RefreshWrapperItemView",e.SCROLL_VIEW="ScrollView",e.VIEW_PAGER="ViewPager",e.VIEW_PAGER_ITEM="ViewPagerItem",e.TEXT_INPUT="TextInput",e.MODAL="Modal",e.WEB_VIEW="WebView"}(Hn||(Hn={}));var Qn,er,tr,nr,rr,ir,or,ar,sr=2;!function(e){e.HEAD="head",e.clip="clip",e.MIDDLE="middle",e.TAIL="tail"}(Qn||(Qn={})),function(e){e.COVER="cover",e.CONTAIN="contain",e.STRETCH="stretch",e.REPEAT="repeat",e.CENTER="center"}(er||(er={})),function(e){e.ELLIPSIZE_MODE="ellipsizeMode",e.TINY_COLOR="tinyColor",e.ON_LOAD="onLoad",e.ON_LOAD_START="onLoadStart",e.ON_LOAD_END="onLoadEnd",e.RESIZE_MODE="resizeMode",e.SOURCE="source",e.DEFAULT_SOURCE="defaultSource",e.ON_ERROR="onError",e.ON_PROGRESS="onProgress",e.CAP_INSETS="capInsets",e.HORIZONTAL="horizontal",e.STYLE="style",e.METHOD="method",e.USER_AGENT="userAgent",e.INITIAL_LIST_SIZE="initialListSize",e.INITIAL_CONTENT_OFFSET="initialContentOffset",e.BOUNCES="bounces",e.CONTENT_CONTAINER_STYLE="contentContainerStyle",e.SCROLL_INDICATOR_INSETS="scrollIndicatorInsets",e.OVER_SCROLL_ENABLED="overScrollEnabled",e.PRELOAD_ITEM_NUMBER="preloadItemNumber",e.ON_APPEAR="onAppear",e.ON_DISAPPEAR="onDisappear",e.ON_WILL_APPEAR="onWillAppear",e.ON_WILL_DISAPPEAR="onWillDisappear",e.ON_END_REACHED="onEndReached",e.ON_LOAD_MORE="onLoadMore",e.ON_MOMENTUM_SCROLL_BEGIN="onMomentumScrollBegin",e.ON_MOMENTUM_SCROLL_END="onMomentumScrollEnd",e.ON_SCROLL="onScroll",e.ON_SCROLL_BEGIN_DRAG="onScrollBeginDrag",e.ON_SCROLL_END_DRAG="onScrollEndDrag",e.ROW_SHOULD_STICKY="rowShouldSticky",e.STICKY="sticky",e.ON_HEADER_PULLING="onHeaderPulling",e.ON_HEADER_RELEASED="onHeaderReleased",e.SCROLL_EVENT_THROTTLE="scrollEventThrottle",e.INITIAL_LIST_READY="initialListReady",e.SCROLL_TO_CONTENT_OFFSET="scrollToContentOffset",e.SCROLL_TO_INDEX="scrollToIndex",e.COLLAPSE_PULL_HEADER="collapsePullHeader",e.ANIMATED="animated",e.ANIMATION_TYPE="animationType",e.SUPPORTED_ORIENTATIONS="supportedOrientations",e.IMMERSION_STATUS_BAR="immersionStatusBar",e.DARK_STATUS_BAR_TEXT="darkStatusBarText",e.ON_SHOW="onShow",e.ON_ORIENTATION_CHANGE="onOrientationChange",e.ON_REQUEST_CLOSE="onRequestClose",e.TRANSPARENT="transparent",e.VISIBLE="visible",e.ON_REFRESH="onRefresh",e.GET_REFRESH="getRefresh",e.BOUNCE_TIME="bounceTime",e.REFRESH_COMPLETED="refreshComplected",e.START_REFRESH="startRefresh",e.PAGING_ENABLED="pagingEnabled",e.SCROLL_ENABLED="scrollEnabled",e.SHOW_HORIZONTAL_SCROLL_INDICATOR="showsHorizontalScrollIndicator",e.SHOW_VERTICAL_SCROLL_INDICATOR="showsVerticalScrollIndicator",e.SHOW_SCROLL_INDICATOR="showScrollIndicator",e.DEFAULT_VALUE="defaultValue",e.EDITABLE="editable",e.KEY_BOARD_TYPE="keyboardType",e.MAX_LENGTH="maxLength",e.MULTILINE="multiline",e.NUMBER_OF_LINES="numberOfLines",e.ON_BLUR="onBlur",e.ON_CHANGE_TEXT="onChangeText",e.ON_KEYBOARD_WILL_SHOW="onKeyboardWillShow",e.ON_END_EDITING="onEndEditing",e.ON_SELECTION_CHANGE="onSelectionChange",e.PLACEHOLDER="placeholder",e.PLACEHOLDER_TEXT_COLOR="placeholderTextColor",e.PLACEHOLDER_TEXT_COLORS="placeholderTextColors",e.RETURN_KEY_TYPE="returnKeyType",e.VALUE="value",e.AUTO_FOCUS="autoFocus",e.BLUR_TEXT_INPUT="blurTextInput",e.CLEAR="clear",e.FOCUS_TEXT_INPUT="focusTextInput",e.IS_FOCUSED="isFocused",e.GET_VALUE="getValue",e.HIDE_INPUT_METHOD="hideInputMethod",e.SET_VALUE="setValue",e.SHOW_INPUT_METHOD="showInputMethod",e.ON_LAYOUT="onLayout",e.ACCESSIBLE="accessible",e.ACCESSIBILITY_LABEL="accessibilityLabel",e.OPACITY="opacity",e.OVERFLOW="overflow",e.ON_ATTACHED_TO_WINDOW="onAttachedToWindow",e.ON_TOUCH_DOWN="onTouchDown",e.ON_TOUCH_MOVE="onTouchMove",e.ON_TOUCH_END="onTouchEnd",e.ON_TOUCH_CANCEL="onTouchCancel",e.HIPPY_VIEW_PAGER_ITEM_PROPS="hippyViewPagerItemProps",e.INITIAL_PAGE="initialPage",e.ON_PAGE_SELECTED="onPageSelected",e.ON_PAGE_SCROLL="onPageScroll",e.ON_PAGE_SCROLL_STATE_CHANGED="onPageScrollStateChanged",e.DIRECTION="direction",e.SET_PAGE="setPage",e.SET_PAGE_WITHOUT_ANIMATION="setPageWithoutAnimation",e.ON_CLICK="onClick",e.ON_LONG_CLICK="onLongClick"}(tr||(tr={})),function(e){e.default="default",e.numeric="numeric",e.password="password",e.email="email",e.phonePad="phone-pad"}(nr||(nr={})),function(e){e.done="done",e.go="go",e.next="next",e.search="search",e.send="send"}(rr||(rr={})),function(e){e.Slide="slide",e.Fade="fade",e.SlideFade="slide_fade",e.None="none"}(ir||(ir={})),function(e){e.Portrait="portrait",e.PortraitUpsideDown="portrait-upside-down",e.Landscape="landscape",e.LandscapeLeft="landscape-left",e.LandscapeRight="landscape-right"}(or||(or={})),function(e){e.IDLE="idle",e.DRAG="dragging",e.SETTL="settling"}(ar||(ar={}));var ur="marginVertical",lr="marginHorizontal",cr="paddingVertical",dr="paddingHorizontal";function hr(e,t){return e&&Object.prototype.hasOwnProperty.call(e,t)}function fr(e,t,n){if(null!==t){for(var r,i,o,a,s={},u={},l={},c=0,d=Object.keys(t);c<d.length;c++){var h=d[c];if(hr(t,h))if(-1===h.indexOf("shadow"))if(-1===h.indexOf("textShadow"))if(!mr(h)||isNaN(t[h]))if(pr(h,t[h])&&n)n(h,t[h],e);else if(kr(h)&&"span"===e.tagName){var f=wr(t[h]);vr(e,h,f),vr(e,"line-height",f)}else{if(gr(h,t[h]))vr(e,h,wr(t[h]));else _r(h)?vr(e,h,parseInt(t[h],10)):(br(h)&&(l[h]=t[h]),vr(e,h,t[h]))}else vr(e,h,yr(t[h]));else u[h]=t[h];else s[h]=t[h]}!function(e,t){t.borderStyle||Er(e,t);!t.borderStyle||t.borderWidth||t.borderTopWidth||t.borderLeftWidth||t.borderRightWidth||t.borderBottomWidth?!t.borderStyle&&t.borderWidth?vr(e,"borderStyle","solid"):t.borderStyle&&!t.borderWidth&&(t.borderTopWidth||t.borderLeftWidth||t.borderRightWidth||t.borderBottomWidth)&&(vr(e,"borderStyle","none"),Er(e,t)):vr(e,"borderStyle","none");void 0!==t[ur]&&(vr(e,"marginTop",wr(t[ur])),vr(e,"marginBottom",wr(t[ur])));void 0!==t[lr]&&(vr(e,"marginLeft",wr(t[lr])),vr(e,"marginRight",wr(t[lr])));void 0!==t[cr]&&(vr(e,"paddingTop",wr(t[cr])),vr(e,"paddingBottom",wr(t[cr])));void 0!==t[dr]&&(vr(e,"paddingLeft",wr(t[dr])),vr(e,"paddingRight",wr(t[dr])))}(e,t),s.shadowRadius&&vr(e,"box-shadow","".concat(null!==(i=(r=s).shadowOffsetX)&&void 0!==i?i:0,"px ").concat(null!==(o=r.shadowOffsetY)&&void 0!==o?o:0,"px ").concat(null!==(a=r.shadowRadius)&&void 0!==a?a:0,"px ").concat(yr(r.shadowColor))),(u.textShadowColor||u.textShadowOffset||u.textShadowOffsetX||u.textShadowOffsetY)&&vr(e,"text-shadow",function(e){var t,n,r,i,o,a,s;return"".concat(null!==(r=null!==(t=null==e?void 0:e.textShadowOffsetX)&&void 0!==t?t:null===(n=null==e?void 0:e.textShadowOffset)||void 0===n?void 0:n.width)&&void 0!==r?r:0,"px ").concat(null!==(a=null!==(i=null==e?void 0:e.textShadowOffsetY)&&void 0!==i?i:null===(o=null==e?void 0:e.textShadowOffset)||void 0===o?void 0:o.height)&&void 0!==a?a:0,"px\n ").concat(null!==(s=e.textShadowRadius)&&void 0!==s?s:0,"px ").concat(yr(e.textShadowColor))}(u)),function(e,t){for(var n,r=function(){var r=o[i];if("backgroundImage"===r)return vr(t,r,"url(".concat(e.backgroundImage,")")),1;if("backgroundSize"===r&&"contain"===e.backgroundSize?vr(t,r,"100% 100%"):"backgroundSize"===r&&vr(t,r,e.backgroundSize),"linearGradient"===r){var a="".concat(null!==(n=e.linearGradient.angle)&&void 0!==n?n:"0","deg"),s="".concat(a," ");e.linearGradient.colorStopList.forEach(function(e){s+=",".concat(yr(e.color)).concat(e.ratio>=0?" ".concat(100*e.ratio,"%"):"")}),vr(t,"background","linear-gradient(".concat(s,")"))}},i=0,o=Object.keys(e);i<o.length;i++)r();Object.keys(e).length>0&&vr(t,"backgroundRepeat","no-repeat")}(l,e)}}function pr(e,t){return!!hr(t,"animationId")||(!("transform"!==e||!Array.isArray(t))||void 0)}function vr(e,t,n){var r;null!==e.style[t]&&void 0!==e.style[t]&&""!==e.style[t]&&e.style[t]===(null===(r=null==n?void 0:n.trim)||void 0===r?void 0:r.call(n))||(e.style[t]=n)}function yr(e){var t=e>>24&255,n=e>>8&255,r=255&e;return"rgba(".concat(e>>16&255,", ").concat(n,", ").concat(r,", ").concat((t/256).toFixed(3),")")}function mr(e){return e.endsWith("Color")||e.endsWith("color")}function gr(e,t){return!(isNaN(t)||e.startsWith("flex")||e.startsWith("zIndex")||e.startsWith("-webkit")||e.startsWith("z-index")||e.startsWith("opacity"))}function _r(e){return e.startsWith("zIndex")||e.startsWith("z-index")}function br(e){return e.startsWith("background")||e.startsWith("linearGradient")}function wr(e){return isNaN(e)?e:"".concat(e,"px")}function kr(e){return e.startsWith("fontSize")}function Er(e,t){t.borderTopWidth&&vr(e,"borderTopStyle","solid"),t.borderLeftWidth&&vr(e,"borderLeftStyle","solid"),t.borderRightWidth&&vr(e,"borderRightStyle","solid"),t.borderBottomWidth&&vr(e,"borderBottomStyle","solid")}function Sr(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n]}var Ar=function(){},xr=function(){return L(function e(t){x(this,e),this.engine=t},[{key:"sendEvent",value:function(e,t){hippyBridge("callJsModule",{moduleName:"EventDispatcher",methodName:"receiveNativeEvent",params:[e,t]})}},{key:"sendUiEvent",value:function(e,t,n){hippyBridge("callJsModule",{moduleName:"EventDispatcher",methodName:"receiveUIComponentEvent",params:[e,t,n]})}},{key:"sendGestureEvent",value:function(e){hippyBridge("callJsModule",{moduleName:"EventDispatcher",methodName:"receiveNativeGesture",params:e})}},{key:"subscribe",value:function(e,t){this.engine.eventBus.subscribe(e,t)}},{key:"getModuleByName",value:function(e){return this.engine.modules[e]}}])}(),Cr=function(){return L(function e(){x(this,e),this.subscriptions=Object.create(null)},[{key:"subscribe",value:function(e,t){if("function"!=typeof t)throw"Subscribers must be functions";var n=this.subscriptions[e]||[];n.push(t),this.subscriptions[e]=n}},{key:"publish",value:function(e){for(var t=this.subscriptions[e]||[],n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];for(var o=0;o<t.length;o++)t[o].apply(null,r)}},{key:"unsubscribe",value:function(e,t){var n=(this.subscriptions[e]||[]).filter(function(e){return e!==t});this.subscriptions[e]=n}},{key:"cancel",value:function(e){delete this.subscriptions[e]}}])}();function Tr(e){return new Promise(function(t){var n=e.length;function r(e){var r=document.createElement("script");r.setAttribute("src",e),r.onload=function(){(n-=1)<1&&t()},document.body.appendChild(r)}var i,o=bn(e);try{for(o.s();!(i=o.n()).done;){r(i.value)}}catch(e){o.e(e)}finally{o.f()}})}var Lr=function(){function e(t){x(this,e),this.modules={},this.components={},this.eventBus=new Cr,this.pendingQueue={},this.pendingModules={},this.context=new xr(this);var n=t||{},r=n.modules,i=n.components;this.registerCore(),this.registerModules(r),this.registerComponents(i),Cn.hippyCallNatives=function(e){return function(t,n,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];e.invokeModuleMethod(t,n,r,i)}}(this),this.eventBus.publish("ready")}return L(e,[{key:"registerCore",value:function(){this.registerModules(e.coreModules),this.registerComponents(e.coreComponents)}},{key:"registerModules",value:function(e){var t=this;Object.keys(e||{}).forEach(function(n){var r=new(0,e[n])(t.context),i=""===r.name?n:r.name;t.modules[i]=r})}},{key:"registerComponents",value:function(e){var t=this;if(void 0!==e)if(Array.isArray(e))e.forEach(function(e){t.components[e.name]=e});else for(var n=0,r=Object.keys(e);n<r.length;n++){var i=r[n];this.registerComponent(i,e[i])}}},{key:"registerComponent",value:function(e,t){this.components[e]=t}},{key:"start",value:function(e){var t=this,n=e;n.params||(n.params={}),this.instance=n,Object.keys(this.modules).forEach(function(e){var n;null===(n=t.modules[e])||void 0===n||n.init()}),hippyBridge("loadInstance",n),this.eventBus.publish("loaded")}},{key:"stop",value:function(){this.eventBus.publish("beforeDestroy"),this.instance&&hippyBridge("destroyInstance",this.instance.id)}},{key:"pause",value:function(){hippyBridge("pauseInstance")}},{key:"resume",value:function(){hippyBridge("resumeInstance")}},{key:"load",value:function(e){return Tr(e)}},{key:"invokeModuleMethod",value:(n=l(d().mark(function e(t,n,r){var i,o,a,s,u=arguments;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(i=u.length>3&&void 0!==u[3]?u[3]:[],!(null==(o=this.modules[t])?void 0:o[n])){e.next=5;break}if("sequential"!==o.mode){e.next=4;break}if(this.pendingQueue[t]||(this.pendingQueue[t]=[]),(a=this.pendingQueue[t]).push([t,n,r,i]),!0!==this.pendingModules[t]){e.next=1;break}return e.abrupt("return");case 1:if(!(a.length>0)){e.next=3;break}return this.pendingModules[t]=!0,s=a[0],e.next=2,this.invokeModuleMethodImmediately(s[0],s[1],s[2],s[3]);case 2:a.shift(),e.next=1;break;case 3:this.pendingModules[t]=!1,e.next=5;break;case 4:return e.next=5,this.invokeModuleMethodImmediately(t,n,r,i);case 5:case"end":return e.stop()}},e,this)})),function(e,t,r){return n.apply(this,arguments)})},{key:"invokeModuleMethodImmediately",value:(t=l(d().mark(function e(t,n,r){var i,o,a,s,u,l=arguments;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return i=l.length>3&&void 0!==l[3]?l[3]:[],o=this.modules[t],a=null!=r?Or(t,n,r):void 0,s=[].concat(k(i),[a]),u=o[n],e.prev=1,e.next=2,u.apply(o,s);case 2:e.next=4;break;case 3:e.prev=3,e.catch(1);case 4:case"end":return e.stop()}},e,this,[[1,3]])})),function(e,n,r){return t.apply(this,arguments)})}],[{key:"create",value:function(t){if(void 0===Hippy.web.engine){var n=new e(t);Hippy.web.engine=n}return Hippy.web.engine}}]);var t,n}();Lr.coreModules={};var Or=function(e,t,n){return{resolve:function(r){hippyBridge("callBack",{callId:n,methodName:t,moduleName:e,params:r,result:0})},reject:function(r){hippyBridge("callBack",{callId:n,methodName:t,moduleName:e,params:r,result:-1})}}},Pr=L(function e(){x(this,e),this.name=""}),Ir=function(e){function t(e){var n;return x(this,t),(n=Sn(this,t)).mode="normal",n.context=e,n}return gn(t,e),L(t,[{key:"init",value:function(){}}])}(Pr),Nr=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some(function(e,r){return e[0]===t&&(n=r,!0)}),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var i=r[n];e.call(t,i[1],i[0])}},t}()}(),Rr="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,Dr=void 0!==n.g&&n.g.Math===Math?n.g:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),Mr="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(Dr):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)};var Fr=["top","right","bottom","left","width","height","size","weight"],Br="undefined"!=typeof MutationObserver,jr=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,r=!1,i=0;function o(){n&&(n=!1,e()),r&&s()}function a(){Mr(o)}function s(){var e=Date.now();if(n){if(e-i<2)return;r=!0}else n=!0,r=!1,setTimeout(a,t);i=e}return s}(this.refresh.bind(this),20)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter(function(e){return e.gatherActive(),e.hasActive()});return e.forEach(function(e){return e.broadcastActive()}),e.length>0},e.prototype.connect_=function(){Rr&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Br?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){Rr&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;Fr.some(function(e){return!!~n.indexOf(e)})&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),Vr=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var i=r[n];Object.defineProperty(e,i,{value:t[i],enumerable:!1,writable:!1,configurable:!0})}return e},Wr=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||Dr},Hr=Xr(0,0,0,0);function Ur(e){return parseFloat(e)||0}function Gr(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(t,n){return t+Ur(e["border-"+n+"-width"])},0)}function zr(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return Hr;var r=Wr(e).getComputedStyle(e),i=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var i=r[n],o=e["padding-"+i];t[i]=Ur(o)}return t}(r),o=i.left+i.right,a=i.top+i.bottom,s=Ur(r.width),u=Ur(r.height);if("border-box"===r.boxSizing&&(Math.round(s+o)!==t&&(s-=Gr(r,"left","right")+o),Math.round(u+a)!==n&&(u-=Gr(r,"top","bottom")+a)),!function(e){return e===Wr(e).document.documentElement}(e)){var l=Math.round(s+o)-t,c=Math.round(u+a)-n;1!==Math.abs(l)&&(s-=l),1!==Math.abs(c)&&(u-=c)}return Xr(i.left,i.top,s,u)}var Yr="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof Wr(e).SVGGraphicsElement}:function(e){return e instanceof Wr(e).SVGElement&&"function"==typeof e.getBBox};function qr(e){return Rr?Yr(e)?function(e){var t=e.getBBox();return Xr(0,0,t.width,t.height)}(e):zr(e):Hr}function Xr(e,t,n,r){return{x:e,y:t,width:n,height:r}}var Kr=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Xr(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=qr(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),$r=function(e,t){var n,r,i,o,a,s,u,l=(r=(n=t).x,i=n.y,o=n.width,a=n.height,s="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,u=Object.create(s.prototype),Vr(u,{x:r,y:i,width:o,height:a,top:i,right:r+o,bottom:a+i,left:r}),u);Vr(this,{target:e,contentRect:l})},Zr=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new Nr,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof Wr(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new Kr(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof Wr(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach(function(t){t.isActive()&&e.activeObservations_.push(t)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map(function(e){return new $r(e.target,e.broadcastRect())});this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),Jr="undefined"!=typeof WeakMap?new WeakMap:new Nr,Qr=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=jr.getInstance(),r=new Zr(t,n,this);Jr.set(this,r)};["observe","unobserve","disconnect"].forEach(function(e){Qr.prototype[e]=function(){var t;return(t=Jr.get(this))[e].apply(t,arguments)}});var ei=void 0!==Dr.ResizeObserver?Dr.ResizeObserver:Qr;function ti(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ni,ri={exports:{}};ni=ri,function(e,t,n,r){var i,o=["","webkit","Moz","MS","ms","o"],a=t.createElement("div"),s=Math.round,u=Math.abs,l=Date.now;function c(e,t,n){return setTimeout(m(e,n),t)}function d(e,t,n){return!!Array.isArray(e)&&(h(e,n[t],n),!0)}function h(e,t,n){var i;if(e)if(e.forEach)e.forEach(t,n);else if(e.length!==r)for(i=0;i<e.length;)t.call(n,e[i],i,e),i++;else for(i in e)e.hasOwnProperty(i)&&t.call(n,e[i],i,e)}function f(t,n,r){var i="DEPRECATED METHOD: "+n+"\n"+r+" AT \n";return function(){var n=new Error("get-stack-trace"),r=n&&n.stack?n.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",o=e.console&&(e.console.warn||e.console.log);return o&&o.call(e.console,i,r),t.apply(this,arguments)}}i="function"!=typeof Object.assign?function(e){if(e===r||null===e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),n=1;n<arguments.length;n++){var i=arguments[n];if(i!==r&&null!==i)for(var o in i)i.hasOwnProperty(o)&&(t[o]=i[o])}return t}:Object.assign;var p=f(function(e,t,n){for(var i=Object.keys(t),o=0;o<i.length;)(!n||n&&e[i[o]]===r)&&(e[i[o]]=t[i[o]]),o++;return e},"extend","Use `assign`."),v=f(function(e,t){return p(e,t,!0)},"merge","Use `assign`.");function y(e,t,n){var r,o=t.prototype;(r=e.prototype=Object.create(o)).constructor=e,r._super=o,n&&i(r,n)}function m(e,t){return function(){return e.apply(t,arguments)}}function g(e,t){return"function"==typeof e?e.apply(t&&t[0]||r,t):e}function _(e,t){return e===r?t:e}function b(e,t,n){h(S(t),function(t){e.addEventListener(t,n,!1)})}function w(e,t,n){h(S(t),function(t){e.removeEventListener(t,n,!1)})}function k(e,t){for(;e;){if(e==t)return!0;e=e.parentNode}return!1}function E(e,t){return e.indexOf(t)>-1}function S(e){return e.trim().split(/\s+/g)}function A(e,t,n){if(e.indexOf&&!n)return e.indexOf(t);for(var r=0;r<e.length;){if(n&&e[r][n]==t||!n&&e[r]===t)return r;r++}return-1}function x(e){return Array.prototype.slice.call(e,0)}function C(e,t,n){for(var r=[],i=[],o=0;o<e.length;){var a=t?e[o][t]:e[o];A(i,a)<0&&r.push(e[o]),i[o]=a,o++}return n&&(r=t?r.sort(function(e,n){return e[t]>n[t]}):r.sort()),r}function T(e,t){for(var n,i,a=t[0].toUpperCase()+t.slice(1),s=0;s<o.length;){if((i=(n=o[s])?n+a:t)in e)return i;s++}return r}var L=1;function O(t){var n=t.ownerDocument||t;return n.defaultView||n.parentWindow||e}var P="ontouchstart"in e,I=T(e,"PointerEvent")!==r,N=P&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),R="touch",D="mouse",M=24,F=["x","y"],B=["clientX","clientY"];function j(e,t){var n=this;this.manager=e,this.callback=t,this.element=e.element,this.target=e.options.inputTarget,this.domHandler=function(t){g(e.options.enable,[e])&&n.handler(t)},this.init()}function V(e,t,n){var i=n.pointers.length,o=n.changedPointers.length,a=1&t&&i-o===0,s=12&t&&i-o===0;n.isFirst=!!a,n.isFinal=!!s,a&&(e.session={}),n.eventType=t,function(e,t){var n=e.session,i=t.pointers,o=i.length;n.firstInput||(n.firstInput=W(t)),o>1&&!n.firstMultiple?n.firstMultiple=W(t):1===o&&(n.firstMultiple=!1);var a=n.firstInput,s=n.firstMultiple,c=s?s.center:a.center,d=t.center=H(i);t.timeStamp=l(),t.deltaTime=t.timeStamp-a.timeStamp,t.angle=Y(c,d),t.distance=z(c,d),function(e,t){var n=t.center,r=e.offsetDelta||{},i=e.prevDelta||{},o=e.prevInput||{};1!==t.eventType&&4!==o.eventType||(i=e.prevDelta={x:o.deltaX||0,y:o.deltaY||0},r=e.offsetDelta={x:n.x,y:n.y}),t.deltaX=i.x+(n.x-r.x),t.deltaY=i.y+(n.y-r.y)}(n,t),t.offsetDirection=G(t.deltaX,t.deltaY);var h,f,p=U(t.deltaTime,t.deltaX,t.deltaY);t.overallVelocityX=p.x,t.overallVelocityY=p.y,t.overallVelocity=u(p.x)>u(p.y)?p.x:p.y,t.scale=s?(h=s.pointers,z((f=i)[0],f[1],B)/z(h[0],h[1],B)):1,t.rotation=s?function(e,t){return Y(t[1],t[0],B)+Y(e[1],e[0],B)}(s.pointers,i):0,t.maxPointers=n.prevInput?t.pointers.length>n.prevInput.maxPointers?t.pointers.length:n.prevInput.maxPointers:t.pointers.length,function(e,t){var n,i,o,a,s=e.lastInterval||t,l=t.timeStamp-s.timeStamp;if(8!=t.eventType&&(l>25||s.velocity===r)){var c=t.deltaX-s.deltaX,d=t.deltaY-s.deltaY,h=U(l,c,d);i=h.x,o=h.y,n=u(h.x)>u(h.y)?h.x:h.y,a=G(c,d),e.lastInterval=t}else n=s.velocity,i=s.velocityX,o=s.velocityY,a=s.direction;t.velocity=n,t.velocityX=i,t.velocityY=o,t.direction=a}(n,t);var v=e.element;k(t.srcEvent.target,v)&&(v=t.srcEvent.target),t.target=v}(e,n),e.emit("hammer.input",n),e.recognize(n),e.session.prevInput=n}function W(e){for(var t=[],n=0;n<e.pointers.length;)t[n]={clientX:s(e.pointers[n].clientX),clientY:s(e.pointers[n].clientY)},n++;return{timeStamp:l(),pointers:t,center:H(t),deltaX:e.deltaX,deltaY:e.deltaY}}function H(e){var t=e.length;if(1===t)return{x:s(e[0].clientX),y:s(e[0].clientY)};for(var n=0,r=0,i=0;i<t;)n+=e[i].clientX,r+=e[i].clientY,i++;return{x:s(n/t),y:s(r/t)}}function U(e,t,n){return{x:t/e||0,y:n/e||0}}function G(e,t){return e===t?1:u(e)>=u(t)?e<0?2:4:t<0?8:16}function z(e,t,n){n||(n=F);var r=t[n[0]]-e[n[0]],i=t[n[1]]-e[n[1]];return Math.sqrt(r*r+i*i)}function Y(e,t,n){n||(n=F);var r=t[n[0]]-e[n[0]],i=t[n[1]]-e[n[1]];return 180*Math.atan2(i,r)/Math.PI}j.prototype={handler:function(){},init:function(){this.evEl&&b(this.element,this.evEl,this.domHandler),this.evTarget&&b(this.target,this.evTarget,this.domHandler),this.evWin&&b(O(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&w(this.element,this.evEl,this.domHandler),this.evTarget&&w(this.target,this.evTarget,this.domHandler),this.evWin&&w(O(this.element),this.evWin,this.domHandler)}};var q={mousedown:1,mousemove:2,mouseup:4},X="mousedown",K="mousemove mouseup";function $(){this.evEl=X,this.evWin=K,this.pressed=!1,j.apply(this,arguments)}y($,j,{handler:function(e){var t=q[e.type];1&t&&0===e.button&&(this.pressed=!0),2&t&&1!==e.which&&(t=4),this.pressed&&(4&t&&(this.pressed=!1),this.callback(this.manager,t,{pointers:[e],changedPointers:[e],pointerType:D,srcEvent:e}))}});var Z={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},J={2:R,3:"pen",4:D,5:"kinect"},Q="pointerdown",ee="pointermove pointerup pointercancel";function te(){this.evEl=Q,this.evWin=ee,j.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}e.MSPointerEvent&&!e.PointerEvent&&(Q="MSPointerDown",ee="MSPointerMove MSPointerUp MSPointerCancel"),y(te,j,{handler:function(e){var t=this.store,n=!1,r=e.type.toLowerCase().replace("ms",""),i=Z[r],o=J[e.pointerType]||e.pointerType,a=o==R,s=A(t,e.pointerId,"pointerId");1&i&&(0===e.button||a)?s<0&&(t.push(e),s=t.length-1):12&i&&(n=!0),s<0||(t[s]=e,this.callback(this.manager,i,{pointers:t,changedPointers:[e],pointerType:o,srcEvent:e}),n&&t.splice(s,1))}});var ne={touchstart:1,touchmove:2,touchend:4,touchcancel:8};function re(){this.evTarget="touchstart",this.evWin="touchstart touchmove touchend touchcancel",this.started=!1,j.apply(this,arguments)}function ie(e,t){var n=x(e.touches),r=x(e.changedTouches);return 12&t&&(n=C(n.concat(r),"identifier",!0)),[n,r]}y(re,j,{handler:function(e){var t=ne[e.type];if(1===t&&(this.started=!0),this.started){var n=ie.call(this,e,t);12&t&&n[0].length-n[1].length===0&&(this.started=!1),this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:R,srcEvent:e})}}});var oe={touchstart:1,touchmove:2,touchend:4,touchcancel:8},ae="touchstart touchmove touchend touchcancel";function se(){this.evTarget=ae,this.targetIds={},j.apply(this,arguments)}function ue(e,t){var n=x(e.touches),r=this.targetIds;if(3&t&&1===n.length)return r[n[0].identifier]=!0,[n,n];var i,o,a=x(e.changedTouches),s=[],u=this.target;if(o=n.filter(function(e){return k(e.target,u)}),1===t)for(i=0;i<o.length;)r[o[i].identifier]=!0,i++;for(i=0;i<a.length;)r[a[i].identifier]&&s.push(a[i]),12&t&&delete r[a[i].identifier],i++;return s.length?[C(o.concat(s),"identifier",!0),s]:void 0}function le(){j.apply(this,arguments);var e=m(this.handler,this);this.touch=new se(this.manager,e),this.mouse=new $(this.manager,e),this.primaryTouch=null,this.lastTouches=[]}function ce(e,t){1&e?(this.primaryTouch=t.changedPointers[0].identifier,de.call(this,t)):12&e&&de.call(this,t)}function de(e){var t=e.changedPointers[0];if(t.identifier===this.primaryTouch){var n={x:t.clientX,y:t.clientY};this.lastTouches.push(n);var r=this.lastTouches;setTimeout(function(){var e=r.indexOf(n);e>-1&&r.splice(e,1)},2500)}}function he(e){for(var t=e.srcEvent.clientX,n=e.srcEvent.clientY,r=0;r<this.lastTouches.length;r++){var i=this.lastTouches[r],o=Math.abs(t-i.x),a=Math.abs(n-i.y);if(o<=25&&a<=25)return!0}return!1}y(se,j,{handler:function(e){var t=oe[e.type],n=ue.call(this,e,t);n&&this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:R,srcEvent:e})}}),y(le,j,{handler:function(e,t,n){var r=n.pointerType==R,i=n.pointerType==D;if(!(i&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if(r)ce.call(this,t,n);else if(i&&he.call(this,n))return;this.callback(e,t,n)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var fe=T(a.style,"touchAction"),pe=fe!==r,ve="compute",ye="auto",me="manipulation",ge="none",_e="pan-x",be="pan-y",we=function(){if(!pe)return!1;var t={},n=e.CSS&&e.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(r){t[r]=!n||e.CSS.supports("touch-action",r)}),t}();function ke(e,t){this.manager=e,this.set(t)}ke.prototype={set:function(e){e==ve&&(e=this.compute()),pe&&this.manager.element.style&&we[e]&&(this.manager.element.style[fe]=e),this.actions=e.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var e=[];return h(this.manager.recognizers,function(t){g(t.options.enable,[t])&&(e=e.concat(t.getTouchAction()))}),function(e){if(E(e,ge))return ge;var t=E(e,_e),n=E(e,be);return t&&n?ge:t||n?t?_e:be:E(e,me)?me:ye}(e.join(" "))},preventDefaults:function(e){var t=e.srcEvent,n=e.offsetDirection;if(this.manager.session.prevented)t.preventDefault();else{var r=this.actions,i=E(r,ge)&&!we[ge],o=E(r,be)&&!we[be],a=E(r,_e)&&!we[_e];if(i){var s=1===e.pointers.length,u=e.distance<2,l=e.deltaTime<250;if(s&&u&&l)return}if(!a||!o)return i||o&&6&n||a&&n&M?this.preventSrc(t):void 0}},preventSrc:function(e){this.manager.session.prevented=!0,e.preventDefault()}};var Ee=32;function Se(e){this.options=i({},this.defaults,e||{}),this.id=L++,this.manager=null,this.options.enable=_(this.options.enable,!0),this.state=1,this.simultaneous={},this.requireFail=[]}function Ae(e){return 16&e?"cancel":8&e?"end":4&e?"move":2&e?"start":""}function xe(e){return 16==e?"down":8==e?"up":2==e?"left":4==e?"right":""}function Ce(e,t){var n=t.manager;return n?n.get(e):e}function Te(){Se.apply(this,arguments)}function Le(){Te.apply(this,arguments),this.pX=null,this.pY=null}function Oe(){Te.apply(this,arguments)}function Pe(){Se.apply(this,arguments),this._timer=null,this._input=null}function Ie(){Te.apply(this,arguments)}function Ne(){Te.apply(this,arguments)}function Re(){Se.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function De(e,t){return(t=t||{}).recognizers=_(t.recognizers,De.defaults.preset),new Me(e,t)}function Me(e,t){var n;this.options=i({},De.defaults,t||{}),this.options.inputTarget=this.options.inputTarget||e,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=e,this.input=new((n=this).options.inputClass||(I?te:N?se:P?le:$))(n,V),this.touchAction=new ke(this,this.options.touchAction),Fe(this,!0),h(this.options.recognizers,function(e){var t=this.add(new e[0](e[1]));e[2]&&t.recognizeWith(e[2]),e[3]&&t.requireFailure(e[3])},this)}function Fe(e,t){var n,r=e.element;r.style&&(h(e.options.cssProps,function(i,o){n=T(r.style,o),t?(e.oldCssProps[n]=r.style[n],r.style[n]=i):r.style[n]=e.oldCssProps[n]||""}),t||(e.oldCssProps={}))}Se.prototype={defaults:{},set:function(e){return i(this.options,e),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(e){if(d(e,"recognizeWith",this))return this;var t=this.simultaneous;return t[(e=Ce(e,this)).id]||(t[e.id]=e,e.recognizeWith(this)),this},dropRecognizeWith:function(e){return d(e,"dropRecognizeWith",this)||(e=Ce(e,this),delete this.simultaneous[e.id]),this},requireFailure:function(e){if(d(e,"requireFailure",this))return this;var t=this.requireFail;return-1===A(t,e=Ce(e,this))&&(t.push(e),e.requireFailure(this)),this},dropRequireFailure:function(e){if(d(e,"dropRequireFailure",this))return this;e=Ce(e,this);var t=A(this.requireFail,e);return t>-1&&this.requireFail.splice(t,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(e){return!!this.simultaneous[e.id]},emit:function(e){var t=this,n=this.state;function r(n){t.manager.emit(n,e)}n<8&&r(t.options.event+Ae(n)),r(t.options.event),e.additionalEvent&&r(e.additionalEvent),n>=8&&r(t.options.event+Ae(n))},tryEmit:function(e){if(this.canEmit())return this.emit(e);this.state=Ee},canEmit:function(){for(var e=0;e<this.requireFail.length;){if(!(33&this.requireFail[e].state))return!1;e++}return!0},recognize:function(e){var t=i({},e);if(!g(this.options.enable,[this,t]))return this.reset(),void(this.state=Ee);56&this.state&&(this.state=1),this.state=this.process(t),30&this.state&&this.tryEmit(t)},process:function(e){},getTouchAction:function(){},reset:function(){}},y(Te,Se,{defaults:{pointers:1},attrTest:function(e){var t=this.options.pointers;return 0===t||e.pointers.length===t},process:function(e){var t=this.state,n=e.eventType,r=6&t,i=this.attrTest(e);return r&&(8&n||!i)?16|t:r||i?4&n?8|t:2&t?4|t:2:Ee}}),y(Le,Te,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var e=this.options.direction,t=[];return 6&e&&t.push(be),e&M&&t.push(_e),t},directionTest:function(e){var t=this.options,n=!0,r=e.distance,i=e.direction,o=e.deltaX,a=e.deltaY;return i&t.direction||(6&t.direction?(i=0===o?1:o<0?2:4,n=o!=this.pX,r=Math.abs(e.deltaX)):(i=0===a?1:a<0?8:16,n=a!=this.pY,r=Math.abs(e.deltaY))),e.direction=i,n&&r>t.threshold&&i&t.direction},attrTest:function(e){return Te.prototype.attrTest.call(this,e)&&(2&this.state||!(2&this.state)&&this.directionTest(e))},emit:function(e){this.pX=e.deltaX,this.pY=e.deltaY;var t=xe(e.direction);t&&(e.additionalEvent=this.options.event+t),this._super.emit.call(this,e)}}),y(Oe,Te,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[ge]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.scale-1)>this.options.threshold||2&this.state)},emit:function(e){if(1!==e.scale){var t=e.scale<1?"in":"out";e.additionalEvent=this.options.event+t}this._super.emit.call(this,e)}}),y(Pe,Se,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[ye]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,r=e.distance<t.threshold,i=e.deltaTime>t.time;if(this._input=e,!r||!n||12&e.eventType&&!i)this.reset();else if(1&e.eventType)this.reset(),this._timer=c(function(){this.state=8,this.tryEmit()},t.time,this);else if(4&e.eventType)return 8;return Ee},reset:function(){clearTimeout(this._timer)},emit:function(e){8===this.state&&(e&&4&e.eventType?this.manager.emit(this.options.event+"up",e):(this._input.timeStamp=l(),this.manager.emit(this.options.event,this._input)))}}),y(Ie,Te,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[ge]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.rotation)>this.options.threshold||2&this.state)}}),y(Ne,Te,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:30,pointers:1},getTouchAction:function(){return Le.prototype.getTouchAction.call(this)},attrTest:function(e){var t,n=this.options.direction;return 30&n?t=e.overallVelocity:6&n?t=e.overallVelocityX:n&M&&(t=e.overallVelocityY),this._super.attrTest.call(this,e)&&n&e.offsetDirection&&e.distance>this.options.threshold&&e.maxPointers==this.options.pointers&&u(t)>this.options.velocity&&4&e.eventType},emit:function(e){var t=xe(e.offsetDirection);t&&this.manager.emit(this.options.event+t,e),this.manager.emit(this.options.event,e)}}),y(Re,Se,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[me]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,r=e.distance<t.threshold,i=e.deltaTime<t.time;if(this.reset(),1&e.eventType&&0===this.count)return this.failTimeout();if(r&&i&&n){if(4!=e.eventType)return this.failTimeout();var o=!this.pTime||e.timeStamp-this.pTime<t.interval,a=!this.pCenter||z(this.pCenter,e.center)<t.posThreshold;if(this.pTime=e.timeStamp,this.pCenter=e.center,a&&o?this.count+=1:this.count=1,this._input=e,0===this.count%t.taps)return this.hasRequireFailures()?(this._timer=c(function(){this.state=8,this.tryEmit()},t.interval,this),2):8}return Ee},failTimeout:function(){return this._timer=c(function(){this.state=Ee},this.options.interval,this),Ee},reset:function(){clearTimeout(this._timer)},emit:function(){8==this.state&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),De.VERSION="2.0.7",De.defaults={domEvents:!1,touchAction:ve,enable:!0,inputTarget:null,inputClass:null,preset:[[Ie,{enable:!1}],[Oe,{enable:!1},["rotate"]],[Ne,{direction:6}],[Le,{direction:6},["swipe"]],[Re],[Re,{event:"doubletap",taps:2},["tap"]],[Pe]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},Me.prototype={set:function(e){return i(this.options,e),e.touchAction&&this.touchAction.update(),e.inputTarget&&(this.input.destroy(),this.input.target=e.inputTarget,this.input.init()),this},stop:function(e){this.session.stopped=e?2:1},recognize:function(e){var t=this.session;if(!t.stopped){var n;this.touchAction.preventDefaults(e);var r=this.recognizers,i=t.curRecognizer;(!i||i&&8&i.state)&&(i=t.curRecognizer=null);for(var o=0;o<r.length;)n=r[o],2===t.stopped||i&&n!=i&&!n.canRecognizeWith(i)?n.reset():n.recognize(e),!i&&14&n.state&&(i=t.curRecognizer=n),o++}},get:function(e){if(e instanceof Se)return e;for(var t=this.recognizers,n=0;n<t.length;n++)if(t[n].options.event==e)return t[n];return null},add:function(e){if(d(e,"add",this))return this;var t=this.get(e.options.event);return t&&this.remove(t),this.recognizers.push(e),e.manager=this,this.touchAction.update(),e},remove:function(e){if(d(e,"remove",this))return this;if(e=this.get(e)){var t=this.recognizers,n=A(t,e);-1!==n&&(t.splice(n,1),this.touchAction.update())}return this},on:function(e,t){if(e!==r&&t!==r){var n=this.handlers;return h(S(e),function(e){n[e]=n[e]||[],n[e].push(t)}),this}},off:function(e,t){if(e!==r){var n=this.handlers;return h(S(e),function(e){t?n[e]&&n[e].splice(A(n[e],t),1):delete n[e]}),this}},emit:function(e,n){this.options.domEvents&&function(e,n){var r=t.createEvent("Event");r.initEvent(e,!0,!0),r.gesture=n,n.target.dispatchEvent(r)}(e,n);var r=this.handlers[e]&&this.handlers[e].slice();if(r&&r.length){n.type=e,n.preventDefault=function(){n.srcEvent.preventDefault()};for(var i=0;i<r.length;)r[i](n),i++}},destroy:function(){this.element&&Fe(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},i(De,{INPUT_START:1,INPUT_MOVE:2,INPUT_END:4,INPUT_CANCEL:8,STATE_POSSIBLE:1,STATE_BEGAN:2,STATE_CHANGED:4,STATE_ENDED:8,STATE_RECOGNIZED:8,STATE_CANCELLED:16,STATE_FAILED:Ee,DIRECTION_NONE:1,DIRECTION_LEFT:2,DIRECTION_RIGHT:4,DIRECTION_UP:8,DIRECTION_DOWN:16,DIRECTION_HORIZONTAL:6,DIRECTION_VERTICAL:M,DIRECTION_ALL:30,Manager:Me,Input:j,TouchAction:ke,TouchInput:se,MouseInput:$,PointerEventInput:te,TouchMouseInput:le,SingleTouchInput:re,Recognizer:Se,AttrRecognizer:Te,Tap:Re,Pan:Le,Swipe:Ne,Pinch:Oe,Rotate:Ie,Press:Pe,on:b,off:w,each:h,merge:v,extend:p,assign:i,inherit:y,bindFn:m,prefixed:T}),(void 0!==e?e:"undefined"!=typeof self?self:{}).Hammer=De,ni.exports?ni.exports=De:e.Hammer=De}(window,document);var ii=function(){return L(function e(t,n,r){x(this,e),this.props={},this.firstUpdateStyle=!0,this.layoutCache=null,this.exitChildrenStackContext=!1,this.events={},this.mountedLayoutDispatch=!1,this.updatedZIndex=!1,this.id=n,this.pId=r,this.context=t,this.handleOnTouchStart=this.handleOnTouchStart.bind(this),this.handleOnClick=this.handleOnClick.bind(this),this.handleOnTouchCancel=this.handleOnTouchCancel.bind(this),this.handleOnTouchEnd=this.handleOnTouchEnd.bind(this),this.handleOnTouchMove=this.handleOnTouchMove.bind(this),this.handleOnLongClick=this.handleOnLongClick.bind(this)},[{key:"updateProperty",value:function(e,t){"function"!=typeof this[e]&&"style"!==e&&e in this&&this[e]!==t?this[e]=t:this.props[e]=t}},{key:"initHammer",value:function(){this.hammer||(this.hammer=new ri.exports.Manager(this.dom,{inputClass:ri.exports.TouchInput}))}},{key:"onClick",get:function(){return!!this.props[tr.ON_CLICK]},set:function(e){if(this.props[tr.ON_CLICK]=e,this.initHammer(),this.hammer.remove("tap"),this.hammer.off("tap",this.handleOnClick),e){var t=new ri.exports.Tap({time:200});this.hammer.add(t),this.hammer.on("tap",this.handleOnClick)}}},{key:"onLongClick",get:function(){return!!this.props[tr.ON_LONG_CLICK]},set:function(e){if(this.props[tr.ON_LONG_CLICK]=e,this.initHammer(),this.hammer.remove("press"),this.hammer.off("press",this.handleOnLongClick),e){var t=new ri.exports.Press({time:200});this.hammer.add(t),this.hammer.on("press",this.handleOnLongClick)}}},{key:"onTouchDown",get:function(){return this.props[tr.ON_TOUCH_DOWN]},set:function(e){this.props[tr.ON_TOUCH_DOWN]=e,e?this.dom.addEventListener("touchstart",this.handleOnTouchStart):this.dom.removeEventListener("touchstart",this.handleOnTouchStart)}},{key:"onTouchMove",get:function(){return this.props[tr.ON_TOUCH_MOVE]},set:function(e){this.props[tr.ON_TOUCH_MOVE]=e,e?this.dom.addEventListener("touchmove",this.handleOnTouchMove):this.dom.removeEventListener("touchmove",this.handleOnTouchMove)}},{key:"onTouchEnd",get:function(){return this.props[tr.ON_TOUCH_END]},set:function(e){this.props[tr.ON_TOUCH_END]=e,e?this.dom.addEventListener("touchend",this.handleOnTouchEnd):this.dom.removeEventListener("touchend",this.handleOnTouchEnd)}},{key:"onTouchCancel",get:function(){return this.props[tr.ON_TOUCH_CANCEL]},set:function(e){this.props[tr.ON_TOUCH_CANCEL]=e,e?this.dom.addEventListener("touchcancel",this.handleOnTouchCancel):this.dom.removeEventListener("touchcancel",this.handleOnTouchCancel)}},{key:"onLayout",get:function(){return this.props[tr.ON_LAYOUT]},set:function(e){var t;this.props[tr.ON_LAYOUT]=e,e?(this.resizeObserver||(this.resizeObserver=new ei(this.handleReLayout.bind(this))),this.resizeObserver.observe(this.dom)):null===(t=this.resizeObserver)||void 0===t||t.disconnect()}},{key:"changeStackContext",value:function(e){var t;if(!e&&this.exitChildrenStackContext){var n=!1;null===(t=this.dom)||void 0===t||t.childNodes.forEach(function(e){"absolute"!==e.style.position&&"relative"!==e.style.position||(n=!0)}),n||(this.exitChildrenStackContext=!1,this.updateChildzIndex())}else e&&!this.exitChildrenStackContext&&(this.exitChildrenStackContext=!0,this.updateChildzIndex())}},{key:"updateChildzIndex",value:function(){var e,t=this;null===(e=this.dom)||void 0===e||e.childNodes.forEach(function(e){var n=t.context.getModuleByName("UIManagerModule").findViewById(e.id);t.exitChildrenStackContext&&void 0!==!n.props.style.zIndex&&n.updateSelfStackContext(),!t.exitChildrenStackContext&&n.updatedZIndex&&n.updateSelfStackContext(!1)})}},{key:"updateSelfStackContext",value:function(){if(!(arguments.length>0&&void 0!==arguments[0])||arguments[0])return this.props.style.zIndex=0,fr(this.dom,{zIndex:0}),void(this.updatedZIndex=!0);delete this.props.style.zIndex,fr(this.dom,{zIndex:"auto"}),this.updatedZIndex=!1}},{key:"updateProps",value:function(e,t){this.firstUpdateStyle&&(t(this,{style:this.defaultStyle()}),this.firstUpdateStyle=!1),t(this,e)}},{key:"defaultStyle",value:function(){return{display:"flex",flexDirection:"column",overflow:"hidden",flexShrink:0,boxSizing:"border-box"}}},{key:"onAttachedToWindow",value:function(){this.props[tr.ON_ATTACHED_TO_WINDOW]&&this.dispatchEvent("onAttachedToWindow",null)}},{key:"beforeMount",value:(n=l(d().mark(function e(t,n){return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:this.index=n;case 1:case"end":return e.stop()}},e,this)})),function(e,t){return n.apply(this,arguments)})},{key:"beforeChildMount",value:(t=l(d().mark(function e(t,n){return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}},e)})),function(e,n){return t.apply(this,arguments)})},{key:"mounted",value:function(){var e=this;this.onAttachedToWindow(),this.onLayout?this.context.getModuleByName("UIManagerModule").addAfterCreateAction(function(){e.mountedLayoutDispatch=!0;var t=e.dom.getBoundingClientRect(),n={x:t.x,y:t.y,width:t.width,height:t.height};t.width===e.dom.clientWidth&&t.height===e.dom.clientHeight||(n={x:e.dom.offsetLeft,y:e.dom.offsetTop,width:e.dom.clientWidth,height:e.dom.clientHeight}),e.dispatchEvent("onLayout",{layout:n,target:e.id})}):this.mountedLayoutDispatch=!0}},{key:"beforeChildRemove",value:function(e){}},{key:"beforeRemove",value:(e=l(d().mark(function e(){var t;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:null===(t=this.resizeObserver)||void 0===t||t.disconnect();case 1:case"end":return e.stop()}},e,this)})),function(){return e.apply(this,arguments)})},{key:"destroy",value:function(){this.dom=null,this.events={}}},{key:"handleReLayout",value:function(e){var t=s(e,1)[0];if(t&&this.mountedLayoutDispatch){var n=t.contentRect,r=n.left,i=n.top,o=n.width,a=n.height;(!this.layoutCache||this.layoutCache.width!==o||this.layoutCache.height!==a)&&this.dom&&this.dom.parentNode&&this.id&&document.getElementById(String(this.id))&&(this.layoutCache={x:r,y:i,width:o,height:a},this.dispatchEvent("onLayout",{layout:this.layoutCache,target:this.id}))}}},{key:"addEventListener",value:function(e,t){this.updateProperty(e,!0),this.events[e]=t}},{key:"removeEventListener",value:function(e){this.updateProperty(e,!1),this.events[e]=null}},{key:"dispatchEvent",value:function(e,t){var n=this.events[e];n&&n.resolve({id:this.id,currentId:this.id,type:e,params:t,eventPhase:sr,stopPropagation:function(){}})}},{key:"handleOnLongClick",value:function(e){this.onLongClick&&(this.dispatchEvent(tr.ON_LONG_CLICK,e),e.srcEvent.stopPropagation())}},{key:"handleOnClick",value:function(e){this.onClick&&(this.dispatchEvent(tr.ON_CLICK,e),e.srcEvent.stopPropagation())}},{key:"handleOnTouchStart",value:function(e){this.onTouchDown&&(this.dispatchEvent("onTouchDown",oi(e,"onTouchDown",this.id)),e.stopPropagation())}},{key:"handleOnTouchMove",value:function(e){this.onTouchMove&&(this.dispatchEvent("onTouchMove",oi(e,"onTouchMove",this.id)),e.stopPropagation(),e.preventDefault())}},{key:"handleOnTouchCancel",value:function(e){this.onTouchCancel&&(this.dispatchEvent("onTouchCancel",oi(e,"onTouchCancel",this.id)),e.stopPropagation())}},{key:"handleOnTouchEnd",value:function(e){this.onTouchEnd&&(this.dispatchEvent("onTouchEnd",oi(e,"onTouchEnd",this.id)),e.stopPropagation())}}]);var e,t,n}();function oi(e,t,n){var r=e.changedTouches[0];return{name:t,id:n,page_x:Number(r.pageX),page_y:Number(r.pageY)}}var ai,si=function(e){function t(e,n,r){var i;return x(this,t),(i=Sn(this,t,[e,n,r])).isLoadSuccess=!1,i.tintModeContainerDom=null,i.renderImgDom=null,i.tagName=Hn.IMAGE,i.dom=document.createElement("img"),i.renderImgDom=i.dom,i.handleLoad=i.handleLoad.bind(i),i.init(),i}return gn(t,e),L(t,[{key:"updateProps",value:function(e,t){if(this.firstUpdateStyle&&(t(this,{style:this.defaultStyle()}),this.firstUpdateStyle=!1),void 0!==e.style.tintColor){var n=En({},e);return n.tintColor=e.style.tintColor,delete n.style.tintColor,void t(this,n)}t(this,e)}},{key:"defaultStyle",value:function(){return{boxSizing:"border-box",zIndex:0}}},{key:"tintColor",get:function(){return this.props[tr.TINY_COLOR]},set:function(e){var t,n;if(this.props[tr.TINY_COLOR]=e,void 0!==e&&0!==e){if(null===this.tintModeContainerDom)return this.buildTintDomContainer(),void((null===(t=this.dom)||void 0===t?void 0:t.parentNode)&&this.imgDomChangeContainer(null===(n=this.dom)||void 0===n?void 0:n.parentNode,this.tintModeContainerDom));this.updateTintColor()}else fr(this.dom,{filter:""})}},{key:"capInsets",get:function(){return this.props[tr.CAP_INSETS]},set:function(e){this.props[tr.CAP_INSETS]=e}},{key:"resizeMode",get:function(){return this.props[tr.RESIZE_MODE]},set:function(e){e||(this.props[tr.RESIZE_MODE]=er.CONTAIN),this.props[tr.RESIZE_MODE]=e,this.renderImgDom&&e&&fr(this.renderImgDom,{objectFit:ui[e]})}},{key:"src",get:function(){var e=this.props[tr.SOURCE];return e&&/^(hpfile):\/\//.test(e)&&e.indexOf("assets")>-1?e.replace("hpfile://./",""):null!=e?e:""},set:function(e){var t=this;if(!e||this.src!==e){if(this.props[tr.SOURCE]=null!=e?e:"",e&&e!==this.props[tr.DEFAULT_SOURCE]&&(this.isLoadSuccess=!1),this.renderImgDom&&!this.defaultSource)return this.renderImgDom.src=null!=e?e:"",void this.onLoadStart(null);if(e){var n=document.createElement("img");n.addEventListener("load",function(n){t.src===e&&t.handleLoad(n,e)}),n.src=e,this.onLoadStart(null)}}}},{key:"defaultSource",get:function(){return this.props[tr.DEFAULT_SOURCE]},set:function(e){this.props[tr.DEFAULT_SOURCE]=e,this.isLoadSuccess||(this.renderImgDom.src=e)}},{key:"onLoad",value:function(e){this.props[tr.ON_LOAD]&&this.dispatchEvent(tr.ON_LOAD,e)}},{key:"onLoadStart",value:function(e){this.props[tr.ON_LOAD_START]&&this.dispatchEvent(tr.ON_LOAD_START,e)}},{key:"onLoadEnd",value:function(e){this.props[tr.ON_LOAD_END]&&this.dispatchEvent(tr.ON_LOAD_END,e)}},{key:"onError",value:function(e){this.props[tr.ON_ERROR]&&this.dispatchEvent(tr.ON_ERROR,e)}},{key:"onProgress",value:function(e){this.props[tr.ON_PROGRESS]&&this.dispatchEvent(tr.ON_PROGRESS,e)}},{key:"mounted",value:function(){if(this.tintModeContainerDom&&this.dom!==this.tintModeContainerDom){var e=this.dom.parentNode;this.imgDomChangeContainer(e,this.tintModeContainerDom),this.updateTintColor()}}},{key:"init",value:function(){this.dom.addEventListener("load",this.handleLoad)}},{key:"handleLoad",value:function(e,t){var n,r,i;this.isLoadSuccess=!1;var o={width:0,height:0,url:null!=t?t:""},a=e.currentTarget;a&&(i=a,o.width=i.width,o.height=i.height),(!t&&(null===(n=this.renderImgDom)||void 0===n?void 0:n.src)===this.src||t===this.src)&&(o.url=this.src,this.onLoad(o),(null===(r=this.renderImgDom)||void 0===r?void 0:r.src)!==this.src&&(this.renderImgDom.src=this.src)),this.onLoadEnd(o)}},{key:"buildTintDomContainer",value:function(){this.tintModeContainerDom=document.createElement("div"),this.tintModeContainerDom.style.overflow="hidden",this.tintModeContainerDom.style.lineHeight="100%"}},{key:"imgDomChangeContainer",value:function(e,t){var n,r=this.findDomIndex();e.removeChild(this.dom),this.dom=this.tintModeContainerDom,t.appendChild(this.renderImgDom),e.insertBefore(this.dom,null!==(n=e.childNodes[r])&&void 0!==n?n:null),this.context.getModuleByName("UIManagerModule").defaultUpdateViewProps(this,this.props),this.imgDomFilterNoUseStyle()}},{key:"imgDomFilterNoUseStyle",value:function(){var e=this.props.style;if(e)for(var t=0,n=Object.keys(e);t<n.length;t++){var r=n[t];if(!hr(e,r))return;-1===r.indexOf("width")&&-1===r.indexOf("height")&&(this.renderImgDom.style[r]="",this.clearBorder())}}},{key:"clearBorder",value:function(){this.renderImgDom.style.borderStyle="",this.renderImgDom.style.borderTopStyle="",this.renderImgDom.style.borderLeftStyle="",this.renderImgDom.style.borderRightStyle="",this.renderImgDom.style.borderBottomStyle=""}},{key:"findDomIndex",value:function(){var e,t=this,n=0;return null===(e=this.dom)||void 0===e||e.parentNode.childNodes.forEach(function(e,r){e===t.dom&&(n=r)}),n}},{key:"updateTintColor",value:function(){var e=yr(this.tintColor);fr(this.renderImgDom,{transform:"translateX(-100%)",filter:"drop-shadow(".concat(this.props.style.width,"px 0 ").concat(e,")")})}}])}(ii),ui=((ai={})[er.CENTER]="none",ai[er.CONTAIN]="contain",ai[er.STRETCH]="fill",ai[er.REPEAT]="none",ai[er.COVER]="cover",ai),li={exports:{}},ci={exports:{}},di={exports:{}};!function(e){function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(di);var hi={exports:{}};!function(e){var t=di.exports.default;e.exports=function(e,n){if("object"!==t(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!==t(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports}(hi),function(e){var t=di.exports.default,n=hi.exports;e.exports=function(e){var r=n(e,"string");return"symbol"===t(r)?r:String(r)},e.exports.__esModule=!0,e.exports.default=e.exports}(ci),function(e){var t=ci.exports;e.exports=function(e,n,r){return(n=t(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e},e.exports.__esModule=!0,e.exports.default=e.exports}(li);var fi,pi=ti(li.exports);var vi="undefined"==typeof document?void 0:document,yi=!!vi&&"content"in vi.createElement("template"),mi=!!vi&&vi.createRange&&"createContextualFragment"in vi.createRange();function gi(e){return e=e.trim(),yi?function(e){var t=vi.createElement("template");return t.innerHTML=e,t.content.childNodes[0]}(e):mi?function(e){return fi||(fi=vi.createRange()).selectNode(vi.body),fi.createContextualFragment(e).childNodes[0]}(e):function(e){var t=vi.createElement("body");return t.innerHTML=e,t.childNodes[0]}(e)}function _i(e,t){var n,r,i=e.nodeName,o=t.nodeName;return i===o||(n=i.charCodeAt(0),r=o.charCodeAt(0),n<=90&&r>=97?i===o.toUpperCase():r<=90&&n>=97&&o===i.toUpperCase())}function bi(e,t,n){e[n]!==t[n]&&(e[n]=t[n],e[n]?e.setAttribute(n,""):e.removeAttribute(n))}var wi={OPTION:function(e,t){var n=e.parentNode;if(n){var r=n.nodeName.toUpperCase();"OPTGROUP"===r&&(r=(n=n.parentNode)&&n.nodeName.toUpperCase()),"SELECT"!==r||n.hasAttribute("multiple")||(e.hasAttribute("selected")&&!t.selected&&(e.setAttribute("selected","selected"),e.removeAttribute("selected")),n.selectedIndex=-1)}bi(e,t,"selected")},INPUT:function(e,t){bi(e,t,"checked"),bi(e,t,"disabled"),e.value!==t.value&&(e.value=t.value),t.hasAttribute("value")||e.removeAttribute("value")},TEXTAREA:function(e,t){var n=t.value;e.value!==n&&(e.value=n);var r=e.firstChild;if(r){var i=r.nodeValue;if(i==n||!n&&i==e.placeholder)return;r.nodeValue=n}},SELECT:function(e,t){if(!t.hasAttribute("multiple")){for(var n,r,i=-1,o=0,a=e.firstChild;a;)if("OPTGROUP"===(r=a.nodeName&&a.nodeName.toUpperCase()))a=(n=a).firstChild;else{if("OPTION"===r){if(a.hasAttribute("selected")){i=o;break}o++}!(a=a.nextSibling)&&n&&(a=n.nextSibling,n=null)}e.selectedIndex=i}}};function ki(){}function Ei(e){if(e)return e.getAttribute&&e.getAttribute("id")||e.id}var Si,Ai=function(e){return function(t,n,r){if(r||(r={}),"string"==typeof n)if("#document"===t.nodeName||"HTML"===t.nodeName||"BODY"===t.nodeName){var i=n;(n=vi.createElement("html")).innerHTML=i}else n=gi(n);var o=r.getNodeKey||Ei,a=r.onBeforeNodeAdded||ki,s=r.onNodeAdded||ki,u=r.onBeforeElUpdated||ki,l=r.onElUpdated||ki,c=r.onBeforeNodeDiscarded||ki,d=r.onNodeDiscarded||ki,h=r.onBeforeElChildrenUpdated||ki,f=!0===r.childrenOnly,p=Object.create(null),v=[];function y(e){v.push(e)}function m(e,t){if(1===e.nodeType)for(var n=e.firstChild;n;){var r=void 0;t&&(r=o(n))?y(r):(d(n),n.firstChild&&m(n,t)),n=n.nextSibling}}function g(e,t,n){!1!==c(e)&&(t&&t.removeChild(e),d(e),m(e,n))}function _(e){s(e);for(var t=e.firstChild;t;){var n=t.nextSibling,r=o(t);if(r){var i=p[r];i&&_i(t,i)?(t.parentNode.replaceChild(i,t),b(i,t)):_(t)}else _(t);t=n}}function b(t,n,r){var i=o(n);if(i&&delete p[i],!r){if(!1===u(t,n))return;if(e(t,n),l(t),!1===h(t,n))return}"TEXTAREA"!==t.nodeName?function(e,t){var n,r,i,s,u,l=t.firstChild,c=e.firstChild;e:for(;l;){for(s=l.nextSibling,n=o(l);c;){if(i=c.nextSibling,l.isSameNode&&l.isSameNode(c)){l=s,c=i;continue e}r=o(c);var d=c.nodeType,h=void 0;if(d===l.nodeType&&(1===d?(n?n!==r&&((u=p[n])?i===u?h=!1:(e.insertBefore(u,c),r?y(r):g(c,e,!0),c=u):h=!1):r&&(h=!1),(h=!1!==h&&_i(c,l))&&b(c,l)):3!==d&&8!=d||(h=!0,c.nodeValue!==l.nodeValue&&(c.nodeValue=l.nodeValue))),h){l=s,c=i;continue e}r?y(r):g(c,e,!0),c=i}if(n&&(u=p[n])&&_i(u,l))e.appendChild(u),b(u,l);else{var f=a(l);!1!==f&&(f&&(l=f),l.actualize&&(l=l.actualize(e.ownerDocument||vi)),e.appendChild(l),_(l))}l=s,c=i}!function(e,t,n){for(;t;){var r=t.nextSibling;(n=o(t))?y(n):g(t,e,!0),t=r}}(e,c,r);var v=wi[e.nodeName];v&&v(e,t)}(t,n):wi.TEXTAREA(t,n)}!function e(t){if(1===t.nodeType||11===t.nodeType)for(var n=t.firstChild;n;){var r=o(n);r&&(p[r]=n),e(n),n=n.nextSibling}}(t);var w,k,E=t,S=E.nodeType,A=n.nodeType;if(!f)if(1===S)1===A?_i(t,n)||(d(t),E=function(e,t){for(var n=e.firstChild;n;){var r=n.nextSibling;t.appendChild(n),n=r}return t}(t,(w=n.nodeName,(k=n.namespaceURI)&&"http://www.w3.org/1999/xhtml"!==k?vi.createElementNS(k,w):vi.createElement(w)))):E=n;else if(3===S||8===S){if(A===S)return E.nodeValue!==n.nodeValue&&(E.nodeValue=n.nodeValue),E;E=n}if(E===n)d(t);else{if(n.isSameNode&&n.isSameNode(E))return;if(b(E,n,f),v)for(var x=0,C=v.length;x<C;x++){var T=p[v[x]];T&&g(T,T.parentNode,!1)}}return!f&&E!==t&&t.parentNode&&(E.actualize&&(E=E.actualize(t.ownerDocument||vi)),t.parentNode.replaceChild(E,t)),E}}(function(e,t){var n,r,i,o,a=t.attributes;if(11!==t.nodeType&&11!==e.nodeType){for(var s=a.length-1;s>=0;s--)r=(n=a[s]).name,i=n.namespaceURI,o=n.value,i?(r=n.localName||r,e.getAttributeNS(i,r)!==o&&("xmlns"===n.prefix&&(r=n.name),e.setAttributeNS(i,r,o))):e.getAttribute(r)!==o&&e.setAttribute(r,o);for(var u=e.attributes,l=u.length-1;l>=0;l--)r=(n=u[l]).name,(i=n.namespaceURI)?(r=n.localName||r,t.hasAttributeNS(i,r)||e.removeAttributeNS(i,r)):t.hasAttribute(r)||e.removeAttribute(r)}}),xi=function(){return L(function e(t){var n=t.itemCount,r=t.itemSizeGetter,i=t.estimatedItemSize;x(this,e),this._itemSizeGetter=r,this._itemCount=n,this._estimatedItemSize=i,this._itemSizeAndPositionData={},this._lastMeasuredIndex=-1},[{key:"getLastMeasuredIndex",value:function(){return this._lastMeasuredIndex}},{key:"getSizeAndPositionForIndex",value:function(e){if(e<0||e>=this._itemCount)throw Error("Requested index ".concat(e," is outside of range 0..").concat(this._itemCount));if(e>this._lastMeasuredIndex){for(var t=this.getSizeAndPositionOfLastMeasuredItem(),n=t.offset+t.size,r=this._lastMeasuredIndex+1;r<=e;r++){var i=this._itemSizeGetter({index:r});if(null==i||isNaN(i))throw Error("Invalid size returned for index ".concat(r," of value ").concat(i));this._itemSizeAndPositionData[r]={offset:n,size:i},n+=i}this._lastMeasuredIndex=e}return this._itemSizeAndPositionData[e]}},{key:"getSizeAndPositionOfLastMeasuredItem",value:function(){return this._lastMeasuredIndex>=0?this._itemSizeAndPositionData[this._lastMeasuredIndex]:{offset:0,size:0}}},{key:"getTotalSize",value:function(){var e=this.getSizeAndPositionOfLastMeasuredItem();return e.offset+e.size+(this._itemCount-this._lastMeasuredIndex-1)*this._estimatedItemSize}},{key:"getUpdatedOffsetForIndex",value:function(e){var t=e.align,n=void 0===t?"start":t,r=e.containerSize,i=e.targetIndex;if(r<=0)return 0;var o,a=this.getSizeAndPositionForIndex(i),s=a.offset,u=s-r+a.size;switch(n){case"end":o=u;break;case"center":o=s-(r-a.size)/2;break;default:o=s}var l=this.getTotalSize();return Math.max(0,Math.min(l-r,o))}},{key:"getVisibleRange",value:function(e){var t=e.containerSize,n=e.offset,r=e.overscanCount;if(0===this.getTotalSize())return{};var i=n+t,o=this._findNearestItem(n),a=o,s=this.getSizeAndPositionForIndex(o);for(n=s.offset+s.size;n<i&&a<this._itemCount-1;)a++,n+=this.getSizeAndPositionForIndex(a).size;return r&&(o=Math.max(0,o-r),a=Math.min(a+r,this._itemCount)),{start:o,stop:a}}},{key:"resetItem",value:function(e){this._lastMeasuredIndex=Math.min(this._lastMeasuredIndex,e-1)}},{key:"_binarySearch",value:function(e){for(var t,n,r=e.low,i=e.high,o=e.offset;r<=i;){if(t=r+Math.floor((i-r)/2),(n=this.getSizeAndPositionForIndex(t).offset)===o)return t;n<o?r=t+1:n>o&&(i=t-1)}if(r>0)return r-1}},{key:"_exponentialSearch",value:function(e){for(var t=e.index,n=e.offset,r=1;t<this._itemCount&&this.getSizeAndPositionForIndex(t).offset<n;)t+=r,r*=2;return this._binarySearch({high:Math.min(t,this._itemCount-1),low:Math.floor(t/2),offset:n})}},{key:"_findNearestItem",value:function(e){if(isNaN(e))throw Error("Invalid offset ".concat(e," specified"));e=Math.max(0,e);var t=this.getSizeAndPositionOfLastMeasuredItem(),n=Math.max(0,this._lastMeasuredIndex);return t.offset>=e?this._binarySearch({high:n,low:0,offset:e}):this._exponentialSearch({index:n,offset:e})}}])}(),Ci=function(){return L(function e(t,n){var r=this;x(this,e),pi(this,"getRowHeight",function(e){var t=e.index,n=r.options.rowHeight;return"function"==typeof n?n(t):Array.isArray(n)?n[t]:n}),this.container=t,this.options=n,this.state={},this._initializeSizeAndPositionManager(n.rowCount),this.render=this.render.bind(this),this.handleScroll=this.handleScroll.bind(this),this.componentDidMount()},[{key:"componentDidMount",value:function(){var e=this,t=this.options,n=t.onMount,r=t.initialScrollTop,i=(t.initialIndex,t.height),o=r||0,a=this.inner=document.createElement("div"),s=this.content=document.createElement("div");a.setAttribute("style","position:relative; overflow:visible; width:100%; min-height:100%; will-change: transform;flex-shrink:0"),s.setAttribute("style","position:absolute; top:0; left:0;width:100%; overflow:visible;"),a.appendChild(s),this.container.appendChild(a),this.setState({offset:o,height:i},function(){o&&(e.container.scrollTop=o),e.container.addEventListener("scroll",e.handleScroll),"function"==typeof n&&n()})}},{key:"_initializeSizeAndPositionManager",value:function(e){this._sizeAndPositionManager=new xi({itemCount:e,itemSizeGetter:this.getRowHeight,estimatedItemSize:this.options.estimatedRowHeight||100})}},{key:"setState",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;this.state=Object.assign(this.state,t),requestAnimationFrame(function(){e.render(),"function"==typeof n&&n()})}},{key:"resize",value:function(e,t){this.setState({height:e},t)}},{key:"handleScroll",value:function(e){var t=this.options.onScroll,n=this.container.scrollTop;this.setState({offset:n}),"function"==typeof t&&t(n,e)}},{key:"getRowOffset",value:function(e){return this._sizeAndPositionManager.getSizeAndPositionForIndex(e).offset}},{key:"getOffset",value:function(){var e;return null!==(e=this.state.offset)&&void 0!==e?e:0}},{key:"scrollToIndex",value:function(e,t,n){var r=this.state.height,i=this._sizeAndPositionManager.getUpdatedOffsetForIndex({align:n,containerSize:r,targetIndex:e});this.container.scrollTo({top:i,behavior:t?"smooth":"none"})}},{key:"scrollTo",value:function(e,t){e<0||e>this._sizeAndPositionManager.getTotalSize()||this.container.scrollTo({top:e,behavior:t?"smooth":"none"})}},{key:"setRowCount",value:function(e){this._initializeSizeAndPositionManager(e),this.render()}},{key:"onRowsRendered",value:function(e){var t=this.options.onRowsRendered;"function"==typeof t&&t(e)}},{key:"destroy",value:function(){this.container.removeEventListener("scroll",this.handleScroll),this.container.innerHTML=""}},{key:"render",value:function(){for(var e=this.options,t=e.overScanCount,n=e.renderRow,r=this.state,i=r.height,o=r.offset,a=void 0===o?0:o,s=this._sizeAndPositionManager.getVisibleRange({containerSize:i,offset:a,overScanCount:t}),u=s.start,l=s.stop,c=document.createDocumentFragment(),d=u;d<=l;d++)c.appendChild(n(d));Ai(this.content,c,{childrenOnly:!0,getNodeKey:function(e){return e.id}}),this.onRowsRendered({startIndex:u,stopIndex:l}),this.inner.style.height="".concat(this._sizeAndPositionManager.getTotalSize(),"px"),this.content.style.top="".concat(this.getRowOffset(u),"px")}}])}();function Ti(e,t){var n=!1,r=!1,i=-1,o=null,a=function(){n=!1},s=function(){var e;n&&!r&&(null===(e=null==t?void 0:t.onEndSliding)||void 0===e||e.call(t),a())},u=function(){i=function(e,t,n,r,i,o,a,s){clearTimeout(r),!n&&t&&(null==a||a(o));return null==s||s(),setTimeout(i,100)}(0,r,n,i,s,t.getPosition(),null==t?void 0:t.onBeginDrag,null==t?void 0:t.onScroll),n=!0},l=function(e){r=!0,o=e},c=function(r){var i;if(!Si||Si===e){var a=t.scrollEnable(o,r);if(a&&t.needSimulatedScrolling){var s=function(e,t,n,r,i){var o=t.changedTouches[0],a=n.changedTouches[0],s=0,u=e.clientWidth-e.scrollWidth,l=0,c=e.clientHeight-e.scrollHeight,d=[r[0],r[1]];if(Math.abs(d[0]-(r[0]+o.pageX-a.pageX))<.6&&Math.abs(d[1]-(r[1]+o.pageY-a.pageY))<.6)return r;var h=k(r);h[0]+=o.pageX-a.pageX,h[1]+=o.pageY-a.pageY,h[0]>s&&(h[0]=s);h[0]<u&&(h[0]=u);h[1]>l&&(h[1]=l);h[1]<c&&(h[1]=c);return Ii(e,h),null==i||i(o,a),h}(e,r,o,t.getPosition(),null==t?void 0:t.onTouchMove);t.updatePosition(s),n||(n=!0,null===(i=t.onBeginDrag)||void 0===i||i.call(t,s))}a&&(r.stopPropagation(),Si=e,o=r)}},d=function(){Si=null,Li(e,r,n,t.scrollEnable(o),t.getPosition()),r=!1,t.needSimulatedScrolling&&a()},h=function(){Si=null,Li(e,r,n,t.scrollEnable(o),t.getPosition(),null==t?void 0:t.onEndDrag,null==t?void 0:t.onBeginSliding),r=!1,t.needSimulatedScrolling&&a()};return e.addEventListener("scroll",u),e.addEventListener("touchstart",l),e.addEventListener("touchmove",c),e.addEventListener("touchcancel",d),e.addEventListener("touchend",h),function(){e.removeEventListener("scroll",u),e.removeEventListener("touchstart",l),e.removeEventListener("touchmove",c),e.removeEventListener("touchcancel",d),e.removeEventListener("touchend",h)}}function Li(e,t,n,r,i,o,a){t&&r&&(null==o||o(i)),t&&n&&r&&(null==a||a())}function Oi(e,t){var n=e.changedTouches[0],r=t.changedTouches[0],i=[0,0];return i[0]+=n.pageX-r.pageX,i[1]+=n.pageY-r.pageY,i}function Pi(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:100;fr(e,{transition:"transform ".concat(n/1e3,"s")}),setTimeout(function(){Ii(e,t)},16),setTimeout(function(){fr(e,{transition:""})},n+16)}function Ii(e,t){fr(e,{transform:"translate(".concat(t[0],"px,").concat(t[1],"px)")})}function Ni(e,t,n){var r=1e3/t,i=Date.now()-e>=r;return i&&(null==n||n()),i}function Ri(e,t,n){var r=Math.round(n/e),i=e-t,o=Math.ceil(t/e),a=t-parseInt(String(t/e),10)*e;a=0!==a?a:e;var s=Math.abs(n)+e>(o-1)*e+a/2,u=r*e;return(u<i||n===i||s)&&(u=i),{newPageIndex:Math.abs(Math.round(u/e)),fromOffset:n,toOffset:u}}function Di(e,t,n,r,i,o,a){return function(e,t,n,r,i){return new Promise(function(o){n.then(function(n){e&&(n!==r[0]&&Pi(e,r,0),t(r,i),o(null))}).catch(function(e){throw e})})}(e,t,function(e,t,n,r,i,o){var a=o;return new Promise(function(s){(!o||o<=0)&&(a=1);var u=n[0]-r[0],l=Date.now(),c=k(n);Pi(e,[r[0],0],a);var d=function(){var e=Date.now()-l;if(e>a)s(c[0]);else{window.requestAnimationFrame(d);var r=u*(e/a),o=[n[0]-r,n[1]];c=o,t(o,i)}};window.requestAnimationFrame(d)})}(e,t,n,r,o,i),r,a)}var Mi=function(e){function t(e,n,r){var i;return x(this,t),(i=Sn(this,t,[e,n,r])).destroying=!1,i.initialListReadyFlag=!1,i.dirtyListItems=[],i.lastPosition=[0,0],i.renderChildrenTuple=[0,0],i.lastTimestamp=0,i.scrollCaptureState=!1,i.childData=[],i.checkTimer=null,i.stickyListViewItem=null,i.stickyContainer=null,i.tagName=Hn.LIST,i.dom=document.createElement("div"),i.init(),i}return gn(t,e),L(t,[{key:"root",get:function(){return this.rootElement||(this.rootElement=document.getElementsByTagName("body")[0]),this.rootElement}},{key:"defaultStyle",value:function(){return{display:"flex",flexDirection:"column",flexShrink:0,boxSizing:"border-box",overflow:"scroll"}}},{key:"overScrollEnabled",get:function(){return this.props[tr.OVER_SCROLL_ENABLED]},set:function(e){this.props[tr.OVER_SCROLL_ENABLED]=e}},{key:"initialListSize",get:function(){var e;return null!==(e=this.props[tr.INITIAL_LIST_SIZE])&&void 0!==e?e:10},set:function(e){this.props[tr.INITIAL_LIST_SIZE]=e}},{key:"initialContentOffset",get:function(){return this.props[tr.INITIAL_CONTENT_OFFSET]},set:function(e){this.props[tr.INITIAL_CONTENT_OFFSET]=e}},{key:"preloadItemNumber",get:function(){return this.props[tr.OVER_SCROLL_ENABLED]},set:function(e){this.props[tr.PRELOAD_ITEM_NUMBER]=e}},{key:"rowShouldSticky",get:function(){return this.props[tr.ROW_SHOULD_STICKY]},set:function(e){this.props[tr.ROW_SHOULD_STICKY]=e}},{key:"scrollEventThrottle",get:function(){return this.props[tr.SCROLL_EVENT_THROTTLE]},set:function(e){this.props[tr.SCROLL_EVENT_THROTTLE]=e}},{key:"scrollEnabled",get:function(){return this.props[tr.SCROLL_ENABLED]},set:function(e){this.props[tr.SCROLL_ENABLED]=e,fr(this.dom,{overflow:this.scrollEnabled?"scroll":"hidden"})}},{key:"showScrollIndicator",get:function(){return this.props[tr.SHOW_SCROLL_INDICATOR]},set:function(e){this.props[tr.SHOW_SCROLL_INDICATOR]=e}},{key:"initialListReady",get:function(){return this.props[tr.INITIAL_LIST_READY]},set:function(e){this.props[tr.INITIAL_LIST_READY]=e}},{key:"onMomentumScrollBegin",value:function(e){this.props[tr.ON_MOMENTUM_SCROLL_BEGIN]&&this.dispatchEvent(tr.ON_MOMENTUM_SCROLL_BEGIN,e)}},{key:"onMomentumScrollEnd",value:function(e){this.props[tr.ON_MOMENTUM_SCROLL_END]&&this.dispatchEvent(tr.ON_MOMENTUM_SCROLL_END,e)}},{key:"onScroll",value:function(e){this.props[tr.ON_SCROLL]&&this.dispatchEvent(tr.ON_SCROLL,e)}},{key:"onScrollBeginDrag",value:function(e){this.props[tr.ON_SCROLL_BEGIN_DRAG]&&this.dispatchEvent(tr.ON_SCROLL_BEGIN_DRAG,e)}},{key:"onScrollEndDrag",value:function(e){this.props[tr.ON_SCROLL_END_DRAG]&&this.dispatchEvent(tr.ON_SCROLL_END_DRAG,e)}},{key:"onInitialListReady",value:function(){this.dispatchEvent(tr.INITIAL_LIST_READY,null)}},{key:"onAppear",value:function(e){this.props[tr.ON_APPEAR]&&this.dispatchEvent(tr.ON_APPEAR,e)}},{key:"onDisappear",value:function(e){this.props[tr.ON_DISAPPEAR]&&this.dispatchEvent(tr.ON_DISAPPEAR,e)}},{key:"onWillAppear",value:function(e){this.props[tr.ON_WILL_APPEAR]&&this.dispatchEvent(tr.ON_WILL_APPEAR,e)}},{key:"onWillDisappear",value:function(e){this.props[tr.ON_WILL_DISAPPEAR]&&this.dispatchEvent(tr.ON_WILL_DISAPPEAR,e)}},{key:"onLoadMore",value:function(){this.props[tr.ON_LOAD_MORE]&&this.dispatchEvent(tr.ON_LOAD_MORE,null),this.props[tr.ON_LOAD_MORE]&&this.dispatchEvent(tr.ON_END_REACHED,null)}},{key:"scrollToContentOffset",value:function(e,t,n){this.virtualList.scrollTo(t,n)}},{key:"scrollToIndex",value:function(e,t,n){this.virtualList.scrollToIndex(t,n)}},{key:"beforeRemove",value:(i=l(d().mark(function e(){var n,r,i,o,a,s,u;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,_n(t,"beforeRemove",this,3)([]);case 1:this.destroying=!0,null===(n=this.touchListenerRelease)||void 0===n||n.call(this),r=this.context.getModuleByName("UIManagerModule"),i=k(this.childData),o=bn(i),e.prev=2,o.s();case 3:if((a=o.n()).done){e.next=6;break}if(s=a.value,r.findViewById(s.id)){e.next=4;break}return e.abrupt("continue",5);case 4:return e.next=5,r.viewDelete(s);case 5:e.next=3;break;case 6:e.next=8;break;case 7:e.prev=7,u=e.catch(2),o.e(u);case 8:return e.prev=8,o.f(),e.finish(8);case 9:case"end":return e.stop()}},e,this,[[2,7,8,9]])})),function(){return i.apply(this,arguments)})},{key:"destroy",value:function(){_n(t,"destroy",this,3)([])}},{key:"insertChild",value:function(e){(null==e?void 0:e.props.sticky)&&(this.stickyListViewItem=e),this.childData.push(e),e.addDirtyListener(this.handleListItemDirty.bind(this))}},{key:"removeChild",value:(r=l(d().mark(function e(t){var n,r,i=this;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=this.childData.findIndex(function(e){return e===t}),r=this.context.getModuleByName("UIManagerModule"),e.next=1,r.removeChild(this,t.id);case 1:this.childData.splice(n,1),this.destroying||requestAnimationFrame(function(){i.notifyDataSetChange()});case 2:case"end":return e.stop()}},e,this)})),function(e){return r.apply(this,arguments)})},{key:"mounted",value:function(){_n(t,"mounted",this,3)([])}},{key:"endBatch",value:function(){var e=this;setTimeout(function(){var t,n;e.dom&&(e.virtualList||(e.virtualList=new Ci(e.dom,{height:null===(t=e.dom)||void 0===t?void 0:t.clientHeight,rowCount:e.childData.length,rowHeight:e.getChildHeight.bind(e),renderRow:e.getChildDom.bind(e),onRowsRendered:e.handleOnRowsRendered.bind(e),onScroll:e.handleScroll.bind(e),initialScrollTop:null!==(n=e.initialContentOffset)&&void 0!==n?n:0,overScanCount:2})),e.needCheckAllDataHeight(),e.notifyDataSetChange())},0)}},{key:"getChildHeight",value:function(e){var t,n,r;return this.childData[e]&&!(null===(t=this.childData[e])||void 0===t?void 0:t.height)&&(this.childData[e].height=this.getListItemNewHeight(this.childData[e])),null!==(r=null===(n=this.childData[e])||void 0===n?void 0:n.height)&&void 0!==r?r:0}},{key:"getChildDom",value:function(e){var t,n;return null!==(n=null===(t=this.childData[e])||void 0===t?void 0:t.dom)&&void 0!==n?n:null}},{key:"handleListItemDirty",value:function(e){this.dirtyListItems.push(e),this.whenFinishCheckDirtyChild()}},{key:"whenFinishCheckDirtyChild",value:function(){this.checkTimer&&clearTimeout(this.checkTimer),this.checkTimer=setTimeout(this.checkDirtyChild.bind(this),64)}},{key:"handleOnRowsRendered",value:function(e){var t=e.startIndex,n=e.stopIndex;this.needCheckChildVisible({startIndex:t,stopIndex:n})}},{key:"notifyDataSetChange",value:function(){this.virtualList.setRowCount(this.childData.length)}},{key:"init",value:function(){var e=this;this.props[tr.OVER_SCROLL_ENABLED]=!0,this.props[tr.INITIAL_LIST_SIZE]=10,this.props[tr.INITIAL_LIST_READY]=!0,this.props[tr.PRELOAD_ITEM_NUMBER]=1,this.props[tr.SCROLL_EVENT_THROTTLE]=30,this.props[tr.ON_LOAD_MORE]=!0,this.touchListenerRelease=Ti(this.dom,{getPosition:function(){return e.lastPosition},updatePosition:this.updatePositionInfo.bind(this),scrollEnable:this.checkScrollEnable.bind(this),onBeginDrag:this.handleBeginDrag.bind(this),onEndDrag:this.handleEndDrag.bind(this),onBeginSliding:this.handleBeginSliding.bind(this),onEndSliding:this.handleEndSliding.bind(this)})}},{key:"moveStickyRowToContainer",value:function(){var e,t,n;if(0!==this.stickyListViewItem.dom.childNodes.length){if(null===this.stickyContainer){this.stickyContainer=document.createElement("div");var r=null!==(t=null===(e=this.dom)||void 0===e?void 0:e.getBoundingClientRect())&&void 0!==t?t:{y:0,x:0,width:0};fr(this.stickyContainer,{position:"sticky",top:0,left:r.x,width:r.width,zIndex:0}),this.virtualList.inner.appendChild(this.stickyContainer)}var i=this.stickyListViewItem.dom.childNodes;fr(this.stickyListViewItem.dom,{height:null===(n=this.stickyListViewItem)||void 0===n?void 0:n.height});var o,a=bn(i);try{for(a.s();!(o=a.n()).done;){var s=o.value;this.stickyListViewItem.dom.removeChild(s),this.stickyContainer.appendChild(s)}}catch(e){a.e(e)}finally{a.f()}}}},{key:"removeStickyRowToContainer",value:function(){var e;if(0!==this.stickyContainer.childNodes.length){var t=this.stickyContainer.childNodes;fr(this.stickyListViewItem.dom,{height:null===(e=this.stickyListViewItem)||void 0===e?void 0:e.height});var n,r=bn(t);try{for(r.s();!(n=r.n()).done;){var i=n.value;this.stickyContainer.removeChild(i),this.stickyListViewItem.dom.appendChild(i),fr(this.stickyListViewItem.dom,{height:"auto"})}}catch(e){r.e(e)}finally{r.f()}}}},{key:"needCheckChildVisible",value:function(e){var t=e.startIndex,n=e.stopIndex;t===this.renderChildrenTuple[0]&&n===this.renderChildrenTuple[1]||this.notifyVisibleChildrenChange(this.renderChildrenTuple,[t,n]),!this.initialListReadyFlag&&n>=this.initialListSize-1&&(this.onInitialListReady(),this.initialListReadyFlag=!0),this.renderChildrenTuple=[t,n]}},{key:"needCheckAllDataHeight",value:function(){for(var e=0;e<this.childData.length;e++){var t=this.childData[e];t.height||(t.height=this.getListItemNewHeight(t))}}},{key:"checkDirtyChild",value:function(){for(var e=0;e<this.dirtyListItems.length;e++){this.dirtyListItems[e].isDirty=!1}this.dirtyListItems=[],this.notifyDataSetChange(),clearTimeout(this.checkTimer),this.checkTimer=null}},{key:"getListItemNewHeight",value:function(e){return e.dom.parentNode?e.getItemHeight():this.measureListViewItemSize(e)}},{key:"notifyVisibleChildrenChange",value:function(e,t){for(var n=this,r=new Array(e[1]-e[0]+1),i=new Array(t[1]-t[0]+1),o=e[0];o<=e[1]&&0!==e[1];o++)r[o]=o;for(var a=t[0];a<=t[1];a++)i[a]=a;var s=r.filter(function(e){return i.indexOf(e)>-1}),u=r.filter(function(e){return-1===s.indexOf(e)}),l=i.filter(function(e){return-1===s.indexOf(e)});u.forEach(function(e){n.childVisibleChange(e,!1)}),l.forEach(function(e){n.childVisibleChange(e,!0,Object.keys(n.childData).length)})}},{key:"updatePositionInfo",value:function(e){this.lastPosition=e}},{key:"checkScrollEnable",value:function(e,t){return t&&e?(this.scrollCaptureState&&t||(this.scrollCaptureState=this.needCaptureTouch(e,t)),this.scrollCaptureState):this.scrollCaptureState}},{key:"needCaptureTouch",value:function(e,t){var n=Oi(t,e);return Math.abs(n[1])>5}},{key:"handleBeginDrag",value:function(){this.dom&&this.onScrollBeginDrag(this.buildScrollEvent())}},{key:"handleEndDrag",value:(n=l(d().mark(function e(){return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:this.scrollCaptureState=!1,this.dom&&this.onScrollEndDrag(this.buildScrollEvent());case 1:case"end":return e.stop()}},e,this)})),function(){return n.apply(this,arguments)})},{key:"handleScroll",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];window.requestAnimationFrame(this.listStickyCheck.bind(this)),this.dom&&(!t&&Ni(this.lastTimestamp,this.scrollEventThrottle,function(){e.onScroll(e.buildScrollEvent()),e.lastTimestamp=Date.now()}),t&&this.onScroll(this.buildScrollEvent()))}},{key:"handleBeginSliding",value:function(){this.dom&&this.onMomentumScrollBegin(this.buildScrollEvent())}},{key:"handleEndSliding",value:function(){var e=this;this.dirtyListItems.length>0&&requestAnimationFrame(function(){e.checkDirtyChild()}),this.handleScroll(!0),this.dom&&this.onMomentumScrollEnd(this.buildScrollEvent())}},{key:"childVisibleChange",value:function(e,t,n){t&&(this.onAppear(e),this.handleEndReached(e,n)),t||this.onDisappear(e)}},{key:"handleEndReached",value:function(e,t){(this.preloadItemNumber&&e>=t-this.preloadItemNumber||e===t-1)&&this.onLoadMore()}},{key:"measureListViewItemSize",value:function(e){var t,n,r;fr(e.dom,{visibility:"hidden",position:"absolute",zIndex:-99999}),null===(t=this.dom)||void 0===t||t.insertBefore(e.dom,null);var i=null!==(n=e.getItemHeight())&&void 0!==n?n:0;return null===(r=this.dom)||void 0===r||r.removeChild(e.dom),fr(e.dom,{visibility:"visible",position:"static",zIndex:0}),i}},{key:"buildScrollEvent",value:function(){return{contentOffset:{x:0,y:this.virtualList.getOffset()}}}},{key:"listStickyCheck",value:function(){var e=this;if(this.stickyListViewItem){var t=this.childData.findIndex(function(t){return t===e.stickyListViewItem});if(-1!==t){var n=this.virtualList.getRowOffset(t);this.virtualList.getOffset()>n?this.moveStickyRowToContainer():this.stickyContainer&&this.stickyContainer.childNodes.length>0&&this.removeStickyRowToContainer()}}}}],[{key:"intersectionObserverElement",value:function(e,t){return new IntersectionObserver(t,{root:e,threshold:0})}}]);var n,r,i}(ii),Fi=function(e){function t(e,n,r){var i;return x(this,t),(i=Sn(this,t,[e,n,r])).height=0,i.isDirty=!1,i.dirtyListener=null,i.tagName=Hn.LIST_ITEM,i.dom=document.createElement("div"),i.onLayout=!0,i}return gn(t,e),L(t,[{key:"sticky",get:function(){return this.props[tr.STICKY]},set:function(e){this.props[tr.STICKY]=e}},{key:"addDirtyListener",value:function(e){this.dirtyListener=e}},{key:"mounted",value:function(){_n(t,"mounted",this,3)([])}},{key:"getItemHeight",value:function(){var e,t;return null!==(t=null===(e=this.dom)||void 0===e?void 0:e.clientHeight)&&void 0!==t?t:0}},{key:"handleReLayout",value:function(e){var t,n,r=s(e,1)[0].contentRect.height;Math.round(r)===this.height&&Math.round(r)===(null===(t=this.dom)||void 0===t?void 0:t.clientHeight)||(this.height=Math.round(r),this.isDirty=!0,null===(n=this.dirtyListener)||void 0===n||n.call(this,this))}}])}(ii);var Bi,ji=200;!function(e){e[e.ENTRY=0]="ENTRY",e[e.LEAVE=1]="LEAVE"}(Bi||(Bi={}));var Vi={fade:{animation:{opacity:1},newState:{opacity:0,transition:"opacity ".concat(.2,"s")}},slide:{animation:{transform:"translate(0vw,0vh)"},newState:{transform:"translate(0vw,100vh)",transition:"transform ".concat(.2,"s")}},slide_fade:{animation:{transform:"translate(0vw,0vh)",opacity:1},newState:{transform:"translate(0vw,100vh)",opacity:0,transition:"transform ".concat(.2,"s, opacity ").concat(.2,"s")}},none:{animation:{},newState:{}}},Wi={fade:{animation:{opacity:0}},slide:{animation:{transform:"translate(0vw,100vh)"}},slide_fade:{animation:{transform:"translate(0vw,100vh)",opacity:0}},none:{animation:{},newState:{}}},Hi=function(e){function t(e,n,r){var i;return x(this,t),(i=Sn(this,t,[e,n,r])).tagName=Hn.MODAL,i.dom=document.createElement("div"),i.props[tr.ANIMATED]=!0,i.onBackListener=function(){i.onOrientationChange(null)},i}return gn(t,e),L(t,[{key:"defaultStyle",value:function(){return{display:"flex",flexDirection:"column",overflow:" hidden",width:"100vw",height:"100vh",top:"0%",position:"fixed",boxSizing:"border-box"}}},{key:"updateProps",value:function(e,t){var n;this.firstUpdateStyle&&t(this,{style:this.defaultStyle()});var r=En({},e);(null===(n=e.style)||void 0===n?void 0:n.position)&&delete r.style.position,t(this,r)}},{key:"animated",get:function(){return this.props[tr.ANIMATED]},set:function(e){this.props[tr.ANIMATED]=e}},{key:"animationType",get:function(){return this.props[tr.ANIMATION_TYPE]},set:function(e){this.props[tr.ANIMATION_TYPE]=e}},{key:"supportedOrientations",get:function(){return this.props[tr.SUPPORTED_ORIENTATIONS]},set:function(e){this.props[tr.SUPPORTED_ORIENTATIONS]=e}},{key:"immersionStatusBar",get:function(){return this.props[tr.IMMERSION_STATUS_BAR]},set:function(e){this.props[tr.IMMERSION_STATUS_BAR]=e}},{key:"darkStatusBarText",get:function(){return this.props[tr.DARK_STATUS_BAR_TEXT]},set:function(e){this.props[tr.DARK_STATUS_BAR_TEXT]=e}},{key:"transparent",get:function(){return this.props[tr.TRANSPARENT]},set:function(e){this.props[tr.TRANSPARENT]=e,fr(this.dom,{backgroundColor:this.props[tr.TRANSPARENT]?"#ffffff00":"#fff"})}},{key:"onShow",value:function(e){this.props[tr.ON_SHOW]&&this.dispatchEvent(tr.ON_SHOW,e)}},{key:"onOrientationChange",value:function(e){this.props[tr.ON_ORIENTATION_CHANGE]&&this.dispatchEvent(tr.ON_ORIENTATION_CHANGE,e)}},{key:"onRequestClose",value:function(e){this.props[tr.ON_ORIENTATION_CHANGE]&&this.dispatchEvent(tr.ON_REQUEST_CLOSE,e)}},{key:"beforeChildMount",value:(i=l(d().mark(function e(n,r){return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,_n(t,"beforeChildMount",this,3)([n,r]);case 1:0===r&&n.dom&&(fr(n.dom,{flex:"1",position:"static"}),delete n.dom.style.top,delete n.dom.style.left);case 2:case"end":return e.stop()}},e,this)})),function(e,t){return i.apply(this,arguments)})},{key:"beforeMount",value:(r=l(d().mark(function e(n,r){return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,_n(t,"beforeMount",this,3)([n,r]);case 1:this.entryAnimationAction=this.runAnimation(Bi.ENTRY,r),this.context.getModuleByName("DeviceEventModule").setModuleListener(this.onBackListener);case 2:case"end":return e.stop()}},e,this)})),function(e,t){return r.apply(this,arguments)})},{key:"mounted",value:function(){var e;_n(t,"mounted",this,3)([]),null===(e=this.entryAnimationAction)||void 0===e||e.call(this),this.onShow()}},{key:"beforeRemove",value:(n=l(d().mark(function e(){var n=this;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,_n(t,"beforeRemove",this,3)([]);case 1:if(this.leaveAnimationAction=this.runAnimation(Bi.LEAVE,this.index),this.leaveAnimationAction){e.next=2;break}return e.abrupt("return");case 2:return e.next=3,new Promise(function(e){var t;null===(t=n.leaveAnimationAction)||void 0===t||t.call(n),setTimeout(function(){e(null)},ji)});case 3:this.context.getModuleByName("DeviceEventModule").removeModuleListener(this.onBackListener);case 4:case"end":return e.stop()}},e,this)})),function(){return n.apply(this,arguments)})},{key:"runAnimation",value:function(e,n){var r=this;if(this.animated&&this.animationType!==ir.None&&this.dom){var i=e===Bi.ENTRY?t.buildModalEntryAnimation(this.animationType):t.buildModalLeaveAnimation(this.animationType),o=i.animation,a=i.newState;return fr(this.dom,En({zIndex:n},a)),function(){r.dom&&fr(r.dom,o)}}}}],[{key:"buildModalEntryAnimation",value:function(e){return Vi[e]}},{key:"buildModalLeaveAnimation",value:function(e){return Wi[e]}}]);var n,r,i}(ii),Ui=200,Gi="cubic-bezier(0.645, 0.045, 0.355, 1)",zi=[{threshold:[0,50],damp:1},{threshold:[50,100],damp:.6},{threshold:[100,Number.MAX_SAFE_INTEGER],damp:.2}],Yi=function(e){function t(e,n,r){var i;return x(this,t),(i=Sn(this,t,[e,n,r])).tagName=Hn.REFRESH,i.dom=document.createElement("div"),i}return gn(t,e),L(t,[{key:"defaultStyle",value:function(){return{display:"flex",flexDirection:"column",overflow:" hidden",boxSizing:"border-box",position:"relative"}}},{key:"bounceTime",get:function(){return this.props[tr.BOUNCE_TIME]},set:function(e){this.props[tr.BOUNCE_TIME]=e}},{key:"onRefresh",value:function(){this.props[tr.ON_REFRESH]&&this.dispatchEvent(tr.ON_REFRESH,null)}},{key:"refreshComplected",value:function(){var e;null===(e=this.pullRefresh)||void 0===e||e.finish()}},{key:"startRefresh",value:function(){var e;null===(e=this.pullRefresh)||void 0===e||e.start()}},{key:"beforeChildMount",value:(r=l(d().mark(function e(n,r){return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,_n(t,"beforeChildMount",this,3)([n,r]);case 1:n.tagName===Hn.LIST&&(fr(n.dom,{position:"relative",zIndex:2}),this.pullRefresh=new Xi(n.dom,this.dom.childNodes[0],this.handlePull.bind(this)),this.pullRefresh.init());case 2:case"end":return e.stop()}},e,this)})),function(e,t){return r.apply(this,arguments)})},{key:"beforeRemove",value:(n=l(d().mark(function e(){var n;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,_n(t,"beforeRemove",this,3)([]);case 1:null===(n=this.pullRefresh)||void 0===n||n.destroy();case 2:case"end":return e.stop()}},e,this)})),function(){return n.apply(this,arguments)})},{key:"handlePull",value:function(){var e=this;this.props[tr.ON_REFRESH]?this.onRefresh():setTimeout(function(){var t;null===(t=e.pullRefresh)||void 0===t||t.finish()},500)}}]);var n,r}(ii),qi=function(e){function t(e,n,r){var i;return x(this,t),(i=Sn(this,t,[e,n,r])).tagName=Hn.REFRESH_ITEM,i.dom=document.createElement("div"),i}return gn(t,e),L(t)}(ii),Xi=function(){return L(function e(t,n,r){x(this,e),this.lastPosition=0,this.lastRefreshTime=Date.now(),this.startPosition=0,this.touchMove=0,this.moveLengthRecord=0,this.refreshStatus=!1,this.refreshHeadHeight=0,this.isPullFirst=!1,this.refreshContent=n,this.scrollContent=t,this.contentStyleCache=t.style,this.refreshStatus=!1,this.handleCallBack=r,this.handleTouchStart=this.handleTouchStart.bind(this),this.handlerTouchMove=this.handlerTouchMove.bind(this),this.handlerTouchEnd=this.handlerTouchEnd.bind(this)},[{key:"overScrollThreshold",get:function(){return this.refreshHeadHeight>55?this.refreshHeadHeight:55}},{key:"endYOffset",get:function(){var e;return 0-(null===(e=this.refreshContent)||void 0===e?void 0:e.clientHeight)}},{key:"init",value:function(){this.contentStyleCache=this.scrollContent.style,this.scrollContent.addEventListener("touchstart",this.handleTouchStart),this.scrollContent.addEventListener("touchmove",this.handlerTouchMove),this.scrollContent.addEventListener("touchend",this.handlerTouchEnd),this.resetRefreshContentTop()}},{key:"resetRefreshContentTop",value:function(){var e;Zi([this.refreshContent],{transform:Ki(0,"".concat(null!==(e=-this.refreshContent.clientHeight)&&void 0!==e?e:0,"px"))})}},{key:"finish",value:function(){Zi([this.refreshContent],{transform:Ki(0,"".concat(this.endYOffset,"px")),transition:$i("transform","".concat(.2),Gi)}),Zi([this.scrollContent],{transform:Ki(0,0),transition:$i("transform","".concat(.2),Gi)})}},{key:"start",value:function(){var e=this;this.isPullFirst||this.handlePull(0),Zi([this.scrollContent,this.refreshContent],{transform:Ki(0,"".concat(this.overScrollThreshold,"px")),transition:$i("transform","".concat(.2),Gi)}),this.moveLengthRecord=this.overScrollThreshold,this.refreshStatus=!0,setTimeout(function(){var t;null===(t=e.handleCallBack)||void 0===t||t.call(e)},Ui)}},{key:"destroy",value:function(){this.scrollContent.removeEventListener("touchstart",this.handleTouchStart),this.scrollContent.removeEventListener("touchmove",this.handlerTouchMove),this.scrollContent.removeEventListener("touchend",this.handlerTouchEnd)}},{key:"handlePull",value:function(e){var t,n=function(e){for(var t=0,n=0;n<zi.length;n++){var r=zi[n];e<r.threshold[1]&&e>=r.threshold[0]&&(t+=(e-r.threshold[0])*r.damp),e>=r.threshold[1]&&(t+=(r.threshold[1]-r.threshold[0])*r.damp)}return t}(e);return this.moveLengthRecord>=0&&(this.isPullFirst=!0,fr(this.scrollContent,{transform:Ki(0,"".concat(n,"px"))}),!this.refreshContent||this.refreshContent.tagName!==Hn.REFRESH_ITEM||void 0!==this.refreshContent.style.top&&""!==this.refreshContent.style.top||(this.refreshHeadHeight=this.refreshContent.clientHeight,fr(this.refreshContent,{top:-this.refreshContent.clientHeight})),fr(this.refreshContent,{transform:Ki(0,"".concat(null!==(t=n-this.refreshContent.clientHeight)&&void 0!==t?t:0,"px"))}),this.refreshStatus=this.moveLengthRecord>=this.overScrollThreshold),n}},{key:"handleTouchStart",value:function(e){this.startPosition=e.touches[0].pageY,Zi([this.scrollContent,this.refreshContent],{transition:$i("transform",0)})}},{key:"handlerTouchMove",value:function(e){this.scrollContent&&this.scrollContent.scrollTop>0||(this.lastPosition||(this.lastPosition=e.touches[0].pageY),Math.abs(e.touches[0].pageY-this.lastPosition)<1||Date.now()-this.lastRefreshTime<16||(this.lastRefreshTime=Date.now(),this.touchMove+=e.touches[0].pageY-this.lastPosition,this.lastPosition=e.touches[0].pageY,this.moveLengthRecord=this.handlePull(this.touchMove)))}},{key:"handlerTouchEnd",value:function(){var e,t,n=this;if(this.moveLengthRecord>0){if(Zi([this.scrollContent,this.refreshContent],{transition:$i("transform","".concat(.2),Gi)}),!this.refreshStatus)return this.finish(),void setTimeout(function(){n.moveLengthRecord=0,n.touchMove=0},Ui);null===(e=this.handleCallBack)||void 0===e||e.call(this),Zi([this.scrollContent],{transform:Ki(0,"".concat(this.overScrollThreshold,"px"))}),Zi([this.refreshContent],{transform:Ki(0,"".concat(null!==(t=this.overScrollThreshold-this.refreshContent.clientHeight)&&void 0!==t?t:0,"px"))})}this.moveLengthRecord=0,this.touchMove=0,this.lastPosition=0}}])}();function Ki(e,t){return"translate(".concat(e,", ").concat(t,")")}function $i(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"ease-out";return"".concat(e," ").concat(t,"s ").concat(n)}function Zi(e,t){e.forEach(function(e){fr(e,t)})}var Ji=function(e){function t(e,n,r){var i;return x(this,t),(i=Sn(this,t,[e,n,r])).lastPosition=[0,0],i.lastTimestamp=0,i.scrollCaptureState=!1,i.tagName=Hn.SCROLL_VIEW,i.dom=document.createElement("div"),i[tr.SCROLL_EVENT_THROTTLE]=30,i[tr.SCROLL_ENABLED]=!0,i}return gn(t,e),L(t,[{key:"defaultStyle",value:function(){return{display:"flex",flexDirection:"column",overflowX:"hidden",overflowY:"scroll"}}},{key:"updateProps",value:function(e,t){this.firstUpdateStyle&&t(this,{style:this.defaultStyle()});var n=En({},e);e.style&&1===e.style.flexShrink&&1===e.style.flexGrow&&!e.style.flexBasis&&(delete n.style.flexShrink,delete n.style.flexGrow),t(this,n)}},{key:"scrollStyle",value:function(){var e=this.defaultStyle(),t=this.pagingEnabled?"visible":"scroll";return this.horizontal&&(e.flexDirection="row",Object.assign(e,{flexDirection:"row",overflowX:t,overflowY:"hidden"})),this.pagingEnabled&&Object.assign(e,{overflowY:t,overflowX:t}),this.scrollEnabled||Object.assign(e,{overflowY:"hidden",overflowX:"hidden"}),e}},{key:"bounces",get:function(){return this.props[tr.BOUNCES]},set:function(e){this.props[tr.BOUNCES]=e}},{key:"horizontal",get:function(){return this.props[tr.HORIZONTAL]},set:function(e){this.props[tr.HORIZONTAL]=e,fr(this.dom,this.scrollStyle())}},{key:"pagingEnabled",get:function(){return this.props[tr.PAGING_ENABLED]&&this.horizontal},set:function(e){this.props[tr.PAGING_ENABLED]=e,fr(this.dom,this.scrollStyle())}},{key:"scrollEventThrottle",get:function(){var e;return null!==(e=this.props[tr.SCROLL_EVENT_THROTTLE])&&void 0!==e?e:30},set:function(e){this.props[tr.SCROLL_EVENT_THROTTLE]=e}},{key:"scrollIndicatorInsets",get:function(){return this.props[tr.SCROLL_INDICATOR_INSETS]},set:function(e){this.props[tr.SCROLL_INDICATOR_INSETS]=e}},{key:"contentContainerStyle",get:function(){return this.props[tr.CONTENT_CONTAINER_STYLE]},set:function(e){var t,n;this.props[tr.CONTENT_CONTAINER_STYLE]=e,1===(null===(t=this.dom)||void 0===t?void 0:t.childNodes.length)&&fr(null===(n=this.dom)||void 0===n?void 0:n.childNodes[0],this.contentContainerStyle)}},{key:"scrollEnabled",get:function(){return this.props[tr.SCROLL_ENABLED]},set:function(e){this.props[tr.SCROLL_ENABLED]=e,fr(this.dom,this.scrollStyle())}},{key:"onMomentumScrollBegin",value:function(e){this.props[tr.ON_MOMENTUM_SCROLL_BEGIN]&&this.dispatchEvent(tr.ON_MOMENTUM_SCROLL_BEGIN,e)}},{key:"onMomentumScrollEnd",value:function(e){this.props[tr.ON_MOMENTUM_SCROLL_END]&&this.dispatchEvent(tr.ON_MOMENTUM_SCROLL_END,e)}},{key:"onScroll",value:function(e){this.props[tr.ON_SCROLL]&&this.dispatchEvent(tr.ON_SCROLL,e)}},{key:"onScrollBeginDrag",value:function(e){this.props[tr.ON_SCROLL_BEGIN_DRAG]&&this.dispatchEvent(tr.ON_SCROLL_BEGIN_DRAG,e)}},{key:"onScrollEndDrag",value:function(e){this.props[tr.ON_SCROLL_END_DRAG]&&this.dispatchEvent(tr.ON_SCROLL_END_DRAG,e)}},{key:"beforeMount",value:(o=l(d().mark(function e(n,r){return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,_n(t,"beforeMount",this,3)([n,r]);case 1:this.init();case 2:case"end":return e.stop()}},e,this)})),function(e,t){return o.apply(this,arguments)})},{key:"beforeChildMount",value:(i=l(d().mark(function e(t,n){return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:0===n&&this.contentContainerStyle&&fr(t.dom,this.contentContainerStyle);case 1:case"end":return e.stop()}},e,this)})),function(e,t){return i.apply(this,arguments)})},{key:"beforeRemove",value:(r=l(d().mark(function e(){var n;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,_n(t,"beforeRemove",this,3)([]);case 1:null===(n=this.touchListenerRelease)||void 0===n||n.call(this);case 2:case"end":return e.stop()}},e,this)})),function(){return r.apply(this,arguments)})},{key:"scrollTo",value:function(e,t,n){var r;this.pagingEnabled?this.pagingModeScroll(e,n?100:1):null===(r=this.dom)||void 0===r||r.scrollTo({top:this.horizontal?0:t,left:this.horizontal?e:0,behavior:n?"smooth":"auto"})}},{key:"scrollToWithOptions",value:function(e){var t=e.x,n=e.y,r=e.duration;this.pagingEnabled?this.pagingModeScroll(t,r):this.scrollTo(t,n,!0)}},{key:"init",value:function(){var e=this;this.touchListenerRelease=Ti(this.dom,{onBeginDrag:this.handleBeginDrag.bind(this),onEndDrag:this.handleEndDrag.bind(this),onScroll:this.handleScroll.bind(this),onTouchMove:this.handleTouchMove.bind(this),onBeginSliding:this.handleBeginSliding.bind(this),onEndSliding:this.handleEndSliding.bind(this),updatePosition:this.updatePositionInfo.bind(this),getPosition:function(){return e.lastPosition},needSimulatedScrolling:this.pagingEnabled,scrollEnable:this.checkScrollEnable.bind(this)})}},{key:"pagingModeScroll",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100;this.onMomentumScrollBegin(this.buildScrollEvent(this.dom));var r=[-1*e,0];Di(this.dom,function(e){t.updatePositionInfo(e),t.onScroll(t.buildScrollEvent(t.dom))},this.lastPosition,r,n),this.onMomentumScrollEnd(this.buildScrollEvent(this.dom))}},{key:"checkScrollEnable",value:function(e,t){return t?this.scrollCaptureState&&t?(this.pagingEnabled&&t.preventDefault(),this.scrollCaptureState):(this.scrollCaptureState=this.needCaptureTouch(e,t),this.scrollCaptureState&&this.pagingEnabled&&t.preventDefault(),this.scrollCaptureState):this.scrollCaptureState}},{key:"needCaptureTouch",value:function(e,t){var n=Oi(t,e);return!(!(Math.abs(n[0])>5&&this.horizontal||Math.abs(n[1])>5&&!this.horizontal)||!this.scrollEnabled)}},{key:"handleBeginDrag",value:function(){this.onScrollBeginDrag(this.buildScrollEvent(this.dom))}},{key:"handleEndDrag",value:(n=l(d().mark(function e(t){var n,r,i,o,a=this;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(this.scrollCaptureState=!1,this.onScrollEndDrag(this.buildScrollEvent(this.dom)),!this.pagingEnabled){e.next=2;break}return this.onMomentumScrollBegin(this.buildScrollEvent(this.dom)),n=this.scrollEndCalculate(t),r=n.toOffset,i=[r,t[1]],o=function(e){a.updatePositionInfo(e),a.onScroll(a.buildScrollEvent(a.dom))},e.next=1,Di(this.dom,o,t,i,100);case 1:this.onMomentumScrollEnd(this.buildScrollEvent(this.dom));case 2:case"end":return e.stop()}},e,this)})),function(e){return n.apply(this,arguments)})},{key:"updatePositionInfo",value:function(e){this.lastPosition=e}},{key:"scrollEndCalculate",value:function(e){return Ri(this.dom.clientWidth,this.dom.scrollWidth,e[0])}},{key:"handleTouchMove",value:function(){this.handleScroll()}},{key:"handleScroll",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.dom&&(!t&&Ni(this.lastTimestamp,this.scrollEventThrottle,function(){e.onScroll(e.buildScrollEvent(e.dom)),e.lastTimestamp=Date.now()}),t&&this.onScroll(this.buildScrollEvent(this.dom)))}},{key:"handleBeginSliding",value:function(){this.onMomentumScrollBegin(this.buildScrollEvent(this.dom))}},{key:"handleEndSliding",value:function(){this.pagingEnabled||(this.handleScroll(),this.onMomentumScrollEnd(this.buildScrollEvent(this.dom)))}},{key:"buildScrollEvent",value:function(e){var t={contentInset:{right:0,top:0,left:0,bottom:0},contentOffset:{x:null==e?void 0:e.scrollLeft,y:null==e?void 0:e.scrollTop},contentSize:{width:null==e?void 0:e.clientWidth,height:null==e?void 0:e.clientHeight},layoutMeasurement:{width:null==e?void 0:e.clientWidth,height:null==e?void 0:e.clientHeight},zoomScale:1};return this.pagingEnabled&&(t.contentOffset={x:Math.abs(this.lastPosition[0]),y:Math.abs(this.lastPosition[1])}),t}}]);var n,r,i,o}(ii),Qi=function(e){function t(e,n,r){var i;return x(this,t),(i=Sn(this,t,[e,n,r])).tagName=Hn.TEXT_INPUT,i.dom=document.createElement("input"),i.init(),i}return gn(t,e),L(t,[{key:"defaultStyle",value:function(){return En(En({},_n(t,"defaultStyle",this,3)([])),{},{outline:"none",fontFamily:""})}},{key:"updateProps",value:function(e,t){var n;this.firstUpdateStyle&&t(this,{style:this.defaultStyle()});var r=En({},e);(null===(n=null==e?void 0:e.style)||void 0===n?void 0:n.placeholderTextColor)&&(r.placeholderTextColor=yr(r.style.placeholderTextColor),delete r.style.placeholderTextColor),e.style&&Object.assign(r.style,this.borderStyleSupport(e.style)),t(this,r)}},{key:"borderStyleSupport",value:function(e){var t={};return e.borderTopWidth||e.borderBottomWidth||e.borderLeftWidth||e.borderRightWidth||(t={backgroundColor:"#ffffff00",border:"0px solid #000000",padding:"0px"}),t}},{key:"defaultValue",get:function(){var e;return null!==(e=this.props[tr.DEFAULT_VALUE])&&void 0!==e?e:""},set:function(e){this.props[tr.DEFAULT_VALUE]=e,this.value&&0!==this.value.length||!this.dom||(this.dom.value=e,this.onChangeText({text:this.dom.value}))}},{key:"editable",get:function(){return this.props[tr.EDITABLE]},set:function(e){var t,n;this.props[tr.EDITABLE]=e,e?null===(t=this.dom)||void 0===t||t.removeAttribute("disabled"):null===(n=this.dom)||void 0===n||n.setAttribute("disabled","disabled")}},{key:"keyboardType",get:function(){return this.props[tr.KEY_BOARD_TYPE]},set:function(e){var t,n;switch(this.props[tr.KEY_BOARD_TYPE]=e,e){case nr.numeric:n="number";break;case nr.password:n="password";break;case nr.email:n="email";break;case nr.phonePad:n="tel";break;default:n="text"}null===(t=this.dom)||void 0===t||t.setAttribute("type",n)}},{key:"maxLength",get:function(){return this.props[tr.MAX_LENGTH]},set:function(e){var t;this.props[tr.MAX_LENGTH]=e,null===(t=this.dom)||void 0===t||t.setAttribute("maxlength",String(e))}},{key:"multiline",get:function(){return this.props[tr.MULTILINE]},set:function(e){var t,n;e&&"TEXTAREA"===(null===(t=this.dom)||void 0===t?void 0:t.tagName)||!e&&"INPUT"===(null===(n=this.dom)||void 0===n?void 0:n.tagName)||(this.props[tr.MULTILINE]=e,this.changeToDomMode(e))}},{key:"numberOfLines",get:function(){return this.props[tr.NUMBER_OF_LINES]},set:function(e){var t;this.props[tr.NUMBER_OF_LINES]=e,null===(t=this.dom)||void 0===t||t.setAttribute("rows",String(e))}},{key:"placeholder",get:function(){return this.props[tr.PLACEHOLDER]},set:function(e){var t;this.props[tr.PLACEHOLDER]=e,null===(t=this.dom)||void 0===t||t.setAttribute("placeholder",e)}},{key:"placeholderTextColor",get:function(){return this.props[tr.PLACEHOLDER_TEXT_COLOR]},set:function(e){var t,n;this.placeholderTextColorStyle||(this.placeholderTextColorStyle=(n=document.createElement("style"),document.head.appendChild(n),n),null===(t=this.dom)||void 0===t||t.setAttribute("class","k".concat(this.id))),this.props[tr.PLACEHOLDER_TEXT_COLOR]=e;var r=this.placeholderTextColorStyle;!function(e,t){t.childNodes.length>0&&t.removeChild(t.childNodes[0]);t.appendChild(document.createTextNode(e))}(".k".concat(this.id,"::placeholder { color: ").concat(e," }"),r)}},{key:"returnKeyType",get:function(){return this.props[tr.RETURN_KEY_TYPE]},set:function(e){var t;this.props[tr.RETURN_KEY_TYPE]=e,null===(t=this.dom)||void 0===t||t.setAttribute("enterkeyhint",e)}},{key:"value",get:function(){return this.props[tr.VALUE]},set:function(e){var t;this.props[tr.VALUE]=e,null===(t=this.dom)||void 0===t||t.setAttribute("value",e)}},{key:"autoFocus",get:function(){return this.props[tr.AUTO_FOCUS]},set:function(e){var t,n;this.props[tr.AUTO_FOCUS]=e,this.props[tr.AUTO_FOCUS]&&(null===(t=this.dom)||void 0===t||t.setAttribute("autofocus","true")),this.props[tr.AUTO_FOCUS]&&(null===(n=this.dom)||void 0===n||n.removeAttribute("autofocus"))}},{key:"onBlur",value:function(e){this.props[tr.ON_BLUR]&&this.dispatchEvent(tr.ON_BLUR,e)}},{key:"onChangeText",value:function(e){this.props[tr.ON_CHANGE_TEXT]&&this.dispatchEvent(tr.ON_CHANGE_TEXT,e)}},{key:"onEndEditing",value:function(e){this.props[tr.ON_END_EDITING]&&this.dispatchEvent(tr.ON_END_EDITING,e)}},{key:"onSelectionChange",value:function(e){this.props[tr.ON_SELECTION_CHANGE]&&this.dispatchEvent(tr.ON_SELECTION_CHANGE,e)}},{key:"blurTextInput",value:function(){var e;null===(e=this.dom)||void 0===e||e.blur(),this.props[tr.IS_FOCUSED]=!1}},{key:"focusTextInput",value:function(){var e;null===(e=this.dom)||void 0===e||e.focus(),this.props[tr.IS_FOCUSED]=!0}},{key:"clear",value:function(){this.dom&&(this.dom.value="")}},{key:"getValue",value:function(e){var t,n;e.resolve({text:null!==(n=null===(t=this.dom)||void 0===t?void 0:t.value)&&void 0!==n?n:""})}},{key:"hideInputMethod",value:function(){var e;null===(e=this.dom)||void 0===e||e.blur(),this.props[tr.IS_FOCUSED]=!1}},{key:"setValue",value:function(e){this.dom&&(this.dom.value=e)}},{key:"showInputMethod",value:function(){var e;null===(e=this.dom)||void 0===e||e.focus(),this.props[tr.IS_FOCUSED]=!0}},{key:"isFocused",value:function(e){e.resolve({value:Boolean(this.props[tr.IS_FOCUSED])})}},{key:"init",value:function(){document.addEventListener("selectionchange",this.handleSelection.bind(this)),this.dom.addEventListener("input",this.handleInput.bind(this)),this.dom.addEventListener("blur",this.handleBlur.bind(this)),this.dom.addEventListener("keypress",this.handleKeyPress.bind(this))}},{key:"changeToDomMode",value:(n=l(d().mark(function e(t){var n,r,i;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:r=this.context.getModuleByName("UIManagerModule"),i=!1,(null===(n=this.dom)||void 0===n?void 0:n.parentNode)&&(i=!0),i&&r.viewDelete(this),this.dom=t?document.createElement("textarea"):document.createElement("input"),this.init(),i?r.viewInit(this,this.props,this.index):r.updateViewProps(this,this.props);case 1:case"end":return e.stop()}},e,this)})),function(e){return n.apply(this,arguments)})},{key:"handleKeyPress",value:function(e){"Enter"!==e.code||this.multiline||this.onEndEditing(null)}},{key:"handleSelection",value:function(){var e,t,n=[0,0],r=window.getSelection();if(document.activeElement===this.dom&&this.dom&&r){var i=this.dom.value.indexOf(r.toString());if(i===n[0]&&n[1]===i+r.toString().length)return;n[0]=i,n[1]=i+r.toString().length,this.onSelectionChange((e=i,t=i+r.toString().length,{nativeEvent:{selection:{start:e,end:t}}}))}}},{key:"handleInput",value:function(){var e,t,n;0===(null===(e=this.value)||void 0===e?void 0:e.length)&&this.defaultValue&&(this.onChangeText({text:null===(t=this.dom)||void 0===t?void 0:t.value}),this.setValue(this.defaultValue)),this.onChangeText({text:null===(n=this.dom)||void 0===n?void 0:n.value})}},{key:"handleBlur",value:function(){this.onBlur(null)}}]);var n}(ii);var eo=function(e){function t(e,n,r){var i;return x(this,t),(i=Sn(this,t,[e,n,r])).tagName=Hn.VIEW,i.dom=document.createElement("div"),i}return gn(t,e),L(t)}(ii),to=function(e){function t(e,n,r){var i;return x(this,t),(i=Sn(this,t,[e,n,r])).pageIndex=0,i.scrollCaptureState=!1,i.lastPosition=[0,0],i.children=[],i.swipeRecognize=null,i.tagName=Hn.VIEW_PAGER,i.dom=document.createElement("div"),i.init(),i}return gn(t,e),L(t,[{key:"defaultStyle",value:function(){return{display:"flex",flexDirection:"row",overflowX:"visible",overflowY:"visible",maxHeight:"100%",boxSizing:"border-box"}}},{key:"initialPage",get:function(){return this.props[tr.INITIAL_PAGE]},set:function(e){this.props[tr.INITIAL_PAGE]=e}},{key:"scrollEnabled",get:function(){return this.props[tr.SCROLL_ENABLED]},set:function(e){this.props[tr.SCROLL_ENABLED]=e}},{key:"onPageSelected",value:function(e){this.props[tr.ON_PAGE_SELECTED]&&this.dispatchEvent(tr.ON_PAGE_SELECTED,e)}},{key:"onPageScroll",value:function(e){this.props[tr.ON_PAGE_SCROLL]&&this.dispatchEvent(tr.ON_PAGE_SCROLL,e)}},{key:"onPageScrollStateChanged",value:function(e){this.props[tr.ON_PAGE_SCROLL_STATE_CHANGED]&&this.dispatchEvent(tr.ON_PAGE_SCROLL_STATE_CHANGED,e)}},{key:"setPage",value:function(e){this.scrollPage(e,!0)}},{key:"setPageWithoutAnimation",value:function(e){this.scrollPage(e,!1)}},{key:"beforeChildMount",value:(o=l(d().mark(function e(n,r){return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,_n(t,"beforeChildMount",this,3)([n,r]);case 1:n instanceof ro&&this.children.push(n);case 2:case"end":return e.stop()}},e,this)})),function(e,t){return o.apply(this,arguments)})},{key:"beforeChildRemove",value:function(e){_n(t,"beforeChildRemove",this,3)([e]),e instanceof ro&&(this.children=this.children.filter(function(t){return t!==e}))}},{key:"beforeRemove",value:(i=l(d().mark(function e(){var n;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,_n(t,"beforeRemove",this,3)([]);case 1:this.hammer.destroy(),null===(n=this.touchListenerRelease)||void 0===n||n.call(this);case 2:case"end":return e.stop()}},e,this)})),function(){return i.apply(this,arguments)})},{key:"endBatch",value:function(){0!==this.initialPage&&this.initialPage!==this.pageIndex&&this.scrollToPageByIndex(this.initialPage,!1)}},{key:"init",value:function(){var e=this;this.props[tr.INITIAL_PAGE]=0,this.props[tr.SCROLL_ENABLED]=!0,this.hammer=new ri.exports.Manager(this.dom,{inputClass:ri.exports.TouchInput,touchAction:"auto"});var t=new ri.exports.Swipe;this.hammer.add(t),this.hammer.on("swipe",function(t){e.swipeRecognize=t,t.srcEvent.stopPropagation()}),this.touchListenerRelease=Ti(this.dom,{onTouchMove:this.handleScroll.bind(this),onBeginDrag:this.handleBeginDrag.bind(this),onEndDrag:this.handleEndDrag.bind(this),updatePosition:this.updatePositionInfo.bind(this),getPosition:function(){return e.lastPosition},scrollEnable:this.checkScrollEnable.bind(this),needSimulatedScrolling:!0})}},{key:"checkScrollEnable",value:function(e,t){return t?this.scrollCaptureState&&t?(t.preventDefault(),this.scrollCaptureState):(this.scrollCaptureState=this.needCaptureTouch(e,t),this.scrollCaptureState&&t.preventDefault(),this.scrollCaptureState):this.scrollCaptureState}},{key:"needCaptureTouch",value:function(e,t){var n=Oi(t,e);return!!(Math.abs(n[0])>5&&this.scrollEnabled)}},{key:"handleScroll",value:function(){this.dom&&this.onPageScroll(function(e,t,n){var r=parseInt(String(Math.abs(n[0])/e),10),i=Math.abs(n[0])%e/e,o=t;r<t&&(o-=1);return{offset:Number(i.toFixed(3)),position:o}}(this.dom.clientWidth,this.pageIndex,this.lastPosition))}},{key:"handleBeginDrag",value:function(){this.swipeRecognize=null,this.onPageScrollStateChanged(no(ar.DRAG))}},{key:"handleEndDrag",value:(r=l(d().mark(function e(t){var n,r,i,o,a,s,u=this;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(this.scrollCaptureState=!1,this.onPageScrollStateChanged(no(ar.SETTL)),!this.swipeRecognize){e.next=1;break}return n=this.pageIndex,this.swipeRecognize.offsetDirection===ri.exports.DIRECTION_RIGHT&&this.pageIndex>0?n-=1:this.swipeRecognize.offsetDirection===ri.exports.DIRECTION_LEFT&&this.pageIndex<this.children.length-1&&(n+=1),this.scrollPage(n,!0),this.swipeRecognize=null,e.abrupt("return");case 1:return r=Ri(this.dom.clientWidth,this.dom.scrollWidth,t[0]),i=r.toOffset,o=r.newPageIndex,a=[i,t[1]],s=function(e,t){u.updatePositionInfo(e,t),u.handleScroll()},e.next=2,Di(this.dom,s,t,a,200,this.pageIndex,o);case 2:this.onPageSelected({position:o}),this.onPageScrollStateChanged(no(ar.IDLE));case 3:case"end":return e.stop()}},e,this)})),function(e){return r.apply(this,arguments)})},{key:"updatePositionInfo",value:function(e,t){void 0!==t&&(this.pageIndex=t),this.lastPosition=e}},{key:"scrollToPageByIndex",value:(n=l(d().mark(function e(t,n){var r,i,o,a,s=this;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=this.dom.clientWidth,i=k(this.lastPosition),o=[t*r*-1,this.lastPosition[1]],this.onPageScrollStateChanged(no(ar.SETTL)),a=function(e,t){s.updatePositionInfo(e,t),s.handleScroll()},e.next=1,Di(this.dom,a,i,o,n?200:0,this.pageIndex,t);case 1:this.onPageSelected({position:t}),this.onPageScrollStateChanged(no(ar.IDLE));case 2:case"end":return e.stop()}},e,this)})),function(e,t){return n.apply(this,arguments)})},{key:"scrollPage",value:function(e,t){this.dom&&this.scrollToPageByIndex(e,t)}}]);var n,r,i,o}(ii);function no(e){return{pageScrollState:e}}var ro=function(e){function t(e,n,r){var i;return x(this,t),(i=Sn(this,t,[e,n,r])).tagName=Hn.VIEW_PAGER_ITEM,i.dom=document.createElement("div"),i}return gn(t,e),L(t,[{key:"defaultStyle",value:function(){return{flexShrink:0,display:"flex",boxSizing:"border-box",position:"static"}}},{key:"updateProps",value:function(e,t){var n=En({},e);e.style&&"absolute"===e.style.position&&delete n.style.position,Object.assign(n.style,this.defaultStyle()),t(this,n)}},{key:"beforeMount",value:(n=l(d().mark(function e(n,r){return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,_n(t,"beforeMount",this,3)([n,r]);case 1:fr(this.dom,{width:"".concat(n.dom.clientWidth,"px")});case 2:case"end":return e.stop()}},e,this)})),function(e,t){return n.apply(this,arguments)})}]);var n}(ii),io=function(e){function t(e,n,r){var i;return x(this,t),(i=Sn(this,t,[e,n,r])).isMounted=!1,i.dom=document.createElement("iframe"),i.tagName=Hn.WEB_VIEW,i.dom.onload=i.onLoadEnd.bind(i),i}return gn(t,e),L(t,[{key:"source",get:function(){return this.props[tr.SOURCE]},set:function(e){var t;this.props[tr.SOURCE]=e,this.isMounted&&(this.onLoadStart(this.props[tr.SOURCE]),this.dom.src=null!==(t=e.uri)&&void 0!==t?t:"",this.onLoad(this.props[tr.SOURCE]))}},{key:"userAgent",get:function(){return this.props[tr.USER_AGENT]},set:function(e){this.props[tr.USER_AGENT]=e}},{key:"method",get:function(){return this.props[tr.METHOD]},set:function(e){this.props[tr.METHOD]=e}},{key:"onLoadStart",value:function(e){this.props[tr.ON_LOAD_START]&&this.dispatchEvent(tr.ON_LOAD_START,e)}},{key:"onLoad",value:function(e){this.props[tr.ON_LOAD]&&this.dispatchEvent(tr.ON_LOAD,e)}},{key:"onLoadEnd",value:function(){this.props[tr.ON_LOAD_END]&&this.dispatchEvent(tr.ON_LOAD_END,this.props[tr.SOURCE])}},{key:"beforeMount",value:(n=l(d().mark(function e(n,r){var i;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,_n(t,"beforeMount",this,3)([n,r]);case 1:this.props[tr.SOURCE].uri&&(this.dom.src=null!==(i=this.props[tr.SOURCE].uri)&&void 0!==i?i:""),this.dom.src&&this.onLoadStart(this.props[tr.SOURCE]);case 2:case"end":return e.stop()}},e,this)})),function(e,t){return n.apply(this,arguments)})},{key:"mounted",value:function(){this.isMounted=!0,this.dom.src&&this.onLoad(this.props[tr.SOURCE])}},{key:"style",get:function(){return this.props[tr.STYLE]},set:function(e){this.props[tr.STYLE]=e}}]);var n}(ii),oo={head:{"text-overflow":"ellipsis",direction:"rtl"},clip:{"text-overflow":"clip"},middle:{"text-overflow":"ellipsis"},tail:{"text-overflow":"ellipsis"}},ao=function(e){function t(e,n,r){var i;return x(this,t),(i=Sn(this,t,[e,n,r])).tagName=Hn.TEXT,i.dom=document.createElement("span"),i.props[tr.ELLIPSIZE_MODE]=Qn.TAIL,i}return gn(t,e),L(t,[{key:"defaultStyle",value:function(){return En({boxSizing:"border-box",zIndex:0},oo[this.ellipsizeMode])}},{key:"numberOfLines",get:function(){return this.props[tr.NUMBER_OF_LINES]},set:function(e){this.props[tr.NUMBER_OF_LINES]=e,1===e?this.dom&&fr(this.dom,{"white-space":"nowrap","word-break":"keep-all",display:"initial","-webkit-box-orient":"","-webkit-line-clamp":"",overflow:""}):this.dom&&fr(this.dom,{"white-space":"normal","word-break":"break-all",display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":"".concat(e),overflow:"hidden"})}},{key:"ellipsizeMode",get:function(){return this.props[tr.ELLIPSIZE_MODE]},set:function(e){this.props[tr.ELLIPSIZE_MODE]=e,this.dom&&e&&fr(this.dom,En(En({},oo[e]),{},{overflow:"hidden","white-space":"nowrap"}))}},{key:"text",get:function(){return this.props[tr.VALUE]},set:function(e){if(this.props[tr.VALUE]=e,this.dom.childNodes.length>0){var t=null;return this.dom.childNodes.forEach(function(e){e instanceof Text&&(t=e)}),void(t&&t.textContent!==e&&(t.textContent=e))}var n=document.createTextNode(e);this.dom.childNodes.length>0&&this.dom.removeChild(this.dom.childNodes[0]),this.dom.appendChild(n)}}])}(ii),so=Object.freeze({__proto__:null,Image:si,ListView:Mi,Modal:Hi,RefreshWrapper:Yi,ScrollView:Ji,TextInput:Qi,View:eo,ViewPager:to,WebView:io,Text:ao,ListViewItem:Fi,ViewPagerItem:ro,RefreshWrapperItemView:qi,HippyWebView:ii});Hippy.web={},Hippy.web.Engine=Lr;var uo,lo=function(e){function t(){var e;return x(this,t),(e=Sn(this,t,arguments)).name="AnimationModule",e.animationPool={},e.animationSetPool={},e}return gn(t,e),L(t,[{key:"createAnimation",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"timing",n=arguments.length>2?arguments[2]:void 0;this.animationPool[e]||(t||(this.animationPool[e]=null),"timing"===t&&(this.animationPool[e]=new po(this.context,e,n,t)))}},{key:"createAnimationSet",value:function(e,t){this.animationSetPool[e]||(this.animationSetPool[e]=new vo(this.context,e,t))}},{key:"updateAnimation",value:function(e,t){var n;this.isValidAnimationId(e)?null===(n=this.animationPool[e])||void 0===n||n.update(t):Sr("hippy","animation update failed, animationId not find animation object",e)}},{key:"startAnimation",value:function(e){var t,n;this.isValidAnimationId(e)?(null===(t=this.animationSetPool[e])||void 0===t||t.start(),null===(n=this.animationPool[e])||void 0===n||n.start()):Sr("hippy","animation start failed, animationId not find animation object",e)}},{key:"pauseAnimation",value:function(e){var t,n;this.isValidAnimationId(e)?(null===(t=this.animationSetPool[e])||void 0===t||t.stop(),null===(n=this.animationPool[e])||void 0===n||n.stop()):Sr("hippy","animation stop failed, animationId not find animation object",e)}},{key:"resumeAnimation",value:function(e){var t,n;this.isValidAnimationId(e)?(null===(t=this.animationSetPool[e])||void 0===t||t.resume(),null===(n=this.animationPool[e])||void 0===n||n.resume()):Sr("hippy","animation resume failed, animationId not find animation object",e)}},{key:"destroyAnimation",value:function(e){var t,n;this.isValidAnimationId(e)?(null===(t=this.animationSetPool[e])||void 0===t||t.destroy(),null===(n=this.animationPool[e])||void 0===n||n.destroy()):Sr("hippy","animation destroy failed, animationId not find animation object",e)}},{key:"linkInitAnimation2Element",value:function(e,t,n){this.linkAnimation2Element(e,t,n)||this.animationPool[e].initAnimation(t.dom)}},{key:"linkAnimation2Element",value:function(e,t,n){return!this.animationPool[e]&&!this.animationSetPool[e]||(this.animationSetPool[e]?(this.linkAnimationSet2Element(e,t,n),!0):(this.linkAnimationCheck(t,n),this.animationPool[e].nodeId=t.id,this.animationPool[e].animationProperty=n,!1))}},{key:"linkAnimationSet2Element",value:function(e,t,n){this.animationSetPool[e]&&(this.animationSetPool[e].nodeId=t.id,this.animationSetPool[e].initAnimationSet(e,t,n))}},{key:"getAnimationStartValue",value:function(e){return this.animationPool[e]?this.animationPool[e].animationBeginValue:null}},{key:"findAnimation",value:function(e){return this.animationPool[e]}},{key:"addEventListener",value:function(e,t,n){var r,i;this.animationPool[e]&&(null===(r=this.animationPool[e])||void 0===r||r.addAnimationEventListener(t,n)),this.animationSetPool[e]&&(null===(i=this.animationSetPool[e])||void 0===i||i.addAnimationEventListener(t,n))}},{key:"removeEventListener",value:function(e,t,n){var r,i;this.animationPool[e]&&(null===(r=this.animationPool[e])||void 0===r||r.removeAnimationEventListener(t,n)),this.animationSetPool[e]&&(null===(i=this.animationSetPool[e])||void 0===i||i.removeAnimationEventListener(t,n))}},{key:"isValidAnimationId",value:function(e){return this.animationPool[e]||this.animationSetPool[e]}},{key:"linkAnimationCheck",value:function(e,t){for(var n=0,r=Object.keys(this.animationPool);n<r.length;n++){var i=r[n],o=this.animationPool[i];(null==o?void 0:o.hasLinkedView(e.id))&&o.refCssProperty===t&&"end"!==o.state&&!this.isAnimationSetChild(null==o?void 0:o.id)&&o.clearLinkNode()}}},{key:"isAnimationSetChild",value:function(e){for(var t=0,n=Object.keys(this.animationSetPool);t<n.length;t++){var r=n[t],i=this.animationSetPool[r],o=null==i?void 0:i.containAnimationId(e);if(o)return o}return!1}}])}(Ir);!function(e){e.START="onHippyAnimationStart",e.END="onHippyAnimationEnd",e.CANCEL="onHippyAnimationCancel",e.REPEAT="onHippyAnimationRepeat"}(uo||(uo={}));var co={perspective:1,rotate:1,rotateX:1,rotateY:1,rotateZ:1,scale:1,scaleX:1,scaleY:1,translateX:1,translateY:1,skewX:1};function ho(e){switch(e){case"animationstart":return uo.START;case"animationend":return uo.END;case"animationrepeat":return uo.REPEAT;case"animationcancel":return uo.CANCEL;default:return e}}var fo=function(){return L(function e(){x(this,e),this.events={}},[{key:"addAnimationEventListener",value:function(e,t){var n=ho(e),r=this.events[n];(null==r?void 0:r.length)?r.push(t):this.events[n]=[t]}},{key:"removeAnimationEventListener",value:function(e,t){var n=ho(e);if(t){var r=this.events[n];if(r){var i=[];r.forEach(function(e,n){e===t&&i.push(n)}),i&&i.forEach(function(e){delete r[e]})}else this.events[n]=[]}else this.events[n]=[]}},{key:"dispatchEvent",value:function(e){var t=this.events[e];(null==t?void 0:t.length)&&t.forEach(function(e){e.resolve(null)})}}])}(),po=function(e){function t(e,n,r,i){var o;return x(this,t),(o=Sn(this,t)).refCssProperty=null,o.animationStamp=Date.now(),o.refNodeIds=new Set,o.domes={},o.animationState="wait",o.beginListener=[],o.endListener=[],o.cleared=!1,o.animationInfo=r,o.timeMode=i,o.id=n,o.context=e,o.handleAnimationEnd=o.handleAnimationEnd.bind(o),o.handleAnimationStart=o.handleAnimationStart.bind(o),o}return gn(t,e),L(t,[{key:"state",get:function(){return this.animationState}},{key:"nodeId",set:function(e){this.refNodeIds.add(e)}},{key:"animationBeginValue",get:function(){return this.buildAnimationValue(this.animationInfo.startValue)}},{key:"animationEndValue",get:function(){return this.buildAnimationValue(this.animationInfo.toValue)}},{key:"animationTime",get:function(){return"".concat(this.animationInfo.duration/1e3,"s")}},{key:"delayTime",get:function(){return this.animationInfo.delay?"".concat(this.animationInfo.delay/1e3,"s"):"0s"}},{key:"animationUseTime",get:function(){return this.animationInfo.duration+(void 0!==this.animationInfo.delay?this.animationInfo.delay:0)}},{key:"animationName",get:function(){return"".concat(this.animationNamePrefix,"-").concat(this.animationStamp)}},{key:"animationNamePrefix",get:function(){return"hippy-keyframe-".concat(this.id)}},{key:"iteration",get:function(){return void 0!==this.animationInfo.repeatCount&&this.animationInfo.repeatCount<0?"infinite":this.animationInfo&&this.animationInfo.repeatCount?String(this.animationInfo.repeatCount):"1"}},{key:"animationProperty",set:function(e){if("string"!=typeof e){var t=s(Object.keys(e),1)[0];co[t]&&(this.refCssProperty=t)}else this.refCssProperty=e}},{key:"useForSetProperty",get:function(){return this.refCssProperty?co[this.refCssProperty]?"transform":this.refCssProperty.replace(/[A-Z]/g,function(e){return"-".concat(e.toLowerCase())}):""}},{key:"hasLinkedView",value:function(e){return this.refNodeIds.has(e)}},{key:"getDomByNodeId",value:function(e){if(this.domes[e])return this.domes[e];var t=document.getElementById(String(e));return t&&(this.domes[e]=t),t}},{key:"initAnimation",value:function(e){if(!this.cleared){var t=this.createAnimationKeyFrame(this.createAnimationBeginAndEndValue());"end"!==this.animationState&&"play"!==this.animationState||(t=this.createAnimationKeyFrame(this.createAnimationEndAndEndValue())),this.updateAnimationInfoToPageStyle(t);var n=go(this.animationTime,this.animationName,this.animationInfo.timingFunction,this.delayTime,"paused",this.iteration,"both");this.animationUpdate2Css(n,e)}}},{key:"start",value:function(){var e,t,n=this;if(!this.cleared){var r=this.createAnimationKeyFrame(this.createAnimationBeginAndEndValue());this.updateAnimationInfoToPageStyle(r),this.changeAnimationStatus("running"),this.animationState="play",setTimeout(function(){n.handleAnimationStart({animationName:n.animationName,elapsedTime:0,pseudoElement:""})},null!==(e=this.animationInfo.delay)&&void 0!==e?e:0),setTimeout(function(){n.handleAnimationEnd({animationName:n.animationName,elapsedTime:0,pseudoElement:""}),n.animationState="end"},(null!==(t=this.animationInfo.delay)&&void 0!==t?t:0)+this.animationInfo.duration)}}},{key:"stop",value:function(){this.changeAnimationStatus("paused")}},{key:"resume",value:function(){this.changeAnimationStatus("running")}},{key:"destroy",value:function(){this.changeAnimationStatus("paused"),this.batchUpdateCss(null)}},{key:"update",value:function(e){this.cleared=!1,this.animationState="wait",this.animationInfo=e,this.animationStamp=Date.now(),this.updateAnimationInfoToPageStyle(this.createAnimationKeyFrame(this.createAnimationBeginAndEndValue()));var t=go(this.animationTime,this.animationName,this.animationInfo.timingFunction,this.delayTime,"paused",this.iteration,"both");this.batchUpdateCss(t)}},{key:"addEventListener",value:function(e,t){switch(e){case"begin":this.beginListener.push(t);break;case"end":this.endListener.push(t)}}},{key:"clearLinkNode",value:function(){this.cleared=!0,this.batchUpdateCss(null)}},{key:"createAnimationBeginAndEndValue",value:function(){var e=this.buildCssValue(this.animationBeginValue),t=this.buildCssValue(this.animationEndValue),n={},r={};return n[this.useForSetProperty]=e,r[this.useForSetProperty]=t,{beginFrame:n,endFrame:r}}},{key:"createAnimationEndAndEndValue",value:function(){var e=this.buildCssValue(this.animationEndValue),t=e,n={},r={};return n[this.useForSetProperty]=e,r[this.useForSetProperty]=t,{beginFrame:n,endFrame:r}}},{key:"createAnimationKeyFrame",value:function(e){var t,n,r,i=e.beginFrame,o=e.endFrame,a=(t=i,n=o,r=this.animationName," @keyframes ".concat(r,"{\n from {").concat(yo(t),"}\n to {").concat(yo(n),"}\n }"));return{keyFrame:mo(this.animationName),keyFrameData:a}}},{key:"updateAnimationInfoToPageStyle",value:function(e){var t,n,r,i=e.keyFrame,o=e.keyFrameData;i.cssRule?(t=this.animationName,n=o,(r=mo(t)).styleSheet.rules.length&&r.styleSheet.deleteRule(0),r.styleSheet.insertRule(n)):function(e){var t=document.createElement("style");t.type="text/css",t.innerHTML=e,document.getElementsByTagName("head")[0].appendChild(t)}(o)}},{key:"changeAnimationStatus",value:function(e){if(mo(this.animationName).cssRule){var t=go(this.animationTime,this.animationName,this.animationInfo.timingFunction,this.delayTime,e,this.iteration,"both");this.batchUpdateCss(t)}}},{key:"batchUpdateCss",value:function(e){var t=this;this.refNodeIds.forEach(function(n){var r=t.getDomByNodeId(n);r&&t.animationUpdate2Css(e,r)})}},{key:"animationUpdate2Css",value:function(e,t){var n,r=this,i=t;if(i){var o=i.style.animation?i.style.animation.split(","):[];if(o||null===e){var a=null!==(n=o.findIndex(function(e){return-1!==e.indexOf(r.animationNamePrefix)}))&&void 0!==n?n:-1;-1===a&&e&&o.push(e),-1!==a&&null!==e&&(o[a]=e),-1!==a&&null===e&&o.splice(a,1)}else(o=[]).push(e);fr(i,{animation:o.join(",")})}}},{key:"buildCssValue",value:function(e){return"transform"===this.useForSetProperty?"".concat(this.refCssProperty,"(").concat(e,")"):e}},{key:"buildAnimationValue",value:function(e){var t="px";return this.animationInfo.valueType&&(t=this.animationInfo.valueType),"scale"!==this.refCssProperty&&"opacity"!==this.refCssProperty&&"color"!==this.refCssProperty&&"backgroundColor"!==this.refCssProperty||(t=""),"color"===this.refCssProperty||"backgroundColor"===this.refCssProperty?"".concat(yr(e)):"".concat(e).concat(t)}},{key:"handleAnimationStart",value:function(e){e.animationName===this.animationName&&this.dispatchEvent(uo.START),this.beginListener.forEach(function(e){e()})}},{key:"handleAnimationEnd",value:function(e){e.animationName===this.animationName&&this.dispatchEvent(uo.END),this.changeAnimationStatus("paused"),this.endListener.forEach(function(e){e()})}}])}(fo),vo=function(e){function t(e,n,r){var i;return x(this,t),(i=Sn(this,t)).refNodeIds=new Set,i.id=n,i.context=e,i.setOption=r,i.handleAnimationStart=i.handleAnimationStart.bind(i),i.handleAnimationEnd=i.handleAnimationEnd.bind(i),i}return gn(t,e),L(t,[{key:"nodeId",set:function(e){this.refNodeIds.add(e)}},{key:"hasLinkedView",value:function(e){return this.refNodeIds.has(e)}},{key:"start",value:function(){for(var e=this,t=this.calculateAnimationTime(),n=function(){var t=e.setOption.children[r],n=e.context.getModuleByName("AnimationModule").findAnimation(t.animationId);if(0===r)return window.requestAnimationFrame(function(){n.start()}),1;var i=e.setOption.children[r-1],o=e.context.getModuleByName("AnimationModule").findAnimation(i.animationId);null==o||o.addEventListener("end",function(){o.destroy(),null==n||n.start()})},r=0;r<this.setOption.children.length;r++)n();var i=Math.max.apply(null,t);setTimeout(this.handleAnimationStart,0),setTimeout(this.handleAnimationEnd,i)}},{key:"stop",value:function(){}},{key:"resume",value:function(){}},{key:"destroy",value:function(){}},{key:"findFirstAnimation",value:function(){var e=s(this.setOption.children,1)[0];return this.context.getModuleByName("AnimationModule").findAnimation(e.animationId)}},{key:"initAnimationSet",value:function(e,t,n){var r=this.context.getModuleByName("AnimationModule");this.setOption.children.forEach(function(e,i){0!==i?r.linkAnimation2Element(e.animationId,t,n):r.linkInitAnimation2Element(e.animationId,t,n)})}},{key:"containAnimationId",value:function(e){return-1!==this.setOption.children.findIndex(function(t){return t.animationId===e})}},{key:"calculateAnimationTime",value:function(){for(var e,t,n=[],r=this.context.getModuleByName("AnimationModule"),i=0;i<this.setOption.children.length;i++){var o=this.setOption.children[i];0!==i?n[i]=n[i-1]+(null!==(t=null===(e=r.findAnimation(o.animationId))||void 0===e?void 0:e.animationUseTime)&&void 0!==t?t:0):n[i]=r.findAnimation(o.animationId).animationUseTime}return n}},{key:"handleAnimationStart",value:function(){this.dispatchEvent(uo.START)}},{key:"handleAnimationEnd",value:function(){this.dispatchEvent(uo.END)}}])}(fo);function yo(e){for(var t="",n=0,r=Object.keys(e);n<r.length;n++){var i=r[n];t+="".concat(i,":").concat(e[i])}return t}function mo(e){for(var t,n={},r=document.styleSheets,i=0;i<r.length;++i){var o=r[i];if((null===(t=o.cssRules[0])||void 0===t?void 0:t.name)===e){var a=s(o.cssRules,1)[0];n.cssRule=a,n.styleSheet=r[i],n.index=0}}return n}function go(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"linear",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"0s",i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"running",o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"1",a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"forwards";return"".concat(e," ").concat(n," ").concat(r," ").concat(o," normal ").concat(a," ").concat(i," ").concat(t)}var _o=function(e){function t(){var e;return x(this,t),(e=Sn(this,t,arguments)).name="ClipboardModule",e}return gn(t,e),L(t,[{key:"getString",value:function(e){var t,n="";(null===(t=null===window||void 0===window?void 0:window.navigator)||void 0===t?void 0:t.clipboard)&&window.navigator.clipboard.readText().then(function(e){n=e},function(){Sr("get clipboard failed")}).finally(function(){e.resolve(n)})}},{key:"setString",value:function(e){var t;if(null===(t=null===window||void 0===window?void 0:window.navigator)||void 0===t?void 0:t.clipboard)window.navigator.clipboard.writeText(e).then(null,function(){Sr("set clipboard failed")});else if((null===document||void 0===document?void 0:document.queryCommandSupported)&&(null===document||void 0===document?void 0:document.queryCommandSupported("copy"))){var n=document.createElement("textarea");n.value=e,n.style.position="fixed",document.body.appendChild(n),n.select();try{document.execCommand("copy")}catch(e){Sr("set clipboard failed")}finally{document.body.removeChild(n)}}}}])}(Ir),bo=function(e){function t(){var e;return x(this,t),(e=Sn(this,t,arguments)).name="DeviceEventModule",e.listen=!1,e.moduleListener=[],e}return gn(t,e),L(t,[{key:"invokeDefaultBackPressHandler",value:function(){var e=this;setTimeout(function(){var t,n;e.listen=!1,n=(null===(t=null===history||void 0===history?void 0:history.state)||void 0===t?void 0:t.target)===wo?-3:-2,history.go(n)},0)}},{key:"init",value:function(){}},{key:"setListenBackPress",value:function(e){this.moduleListener.length>0&&!e||(this.listen=e)}},{key:"setModuleListener",value:function(e){this.moduleListener.push(e),this.listen=!0}},{key:"removeModuleListener",value:function(e){this.moduleListener=this.moduleListener.filter(function(t){return t!==e})}},{key:"handleBack",value:function(){return!!this.listen&&(this.moduleListener.length>0?(this.moduleListener.reverse()[0](),!0):!!this.listen&&(this.context.sendEvent("hardwareBackPress",null),!0))}}])}(Ir),wo="puppet";var ko=function(e){function t(){var e;return x(this,t),(e=Sn(this,t,arguments)).name="ImageLoaderModule",e}return gn(t,e),L(t,[{key:"getSize",value:function(e,t){if(e){var n=new Image;n.onload=function(){t.resolve({width:n.width,height:n.height})},n.src=e}else t.reject("image url not support ".concat(e))}},{key:"prefetch",value:function(e){e&&((new Image).src=e)}},{key:"initialize",value:function(){}},{key:"destroy",value:function(){}}])}(Ir),Eo=function(e){function t(e){var n;return x(this,t),(n=Sn(this,t,[e])).name="NetInfo",n.handleOnlineChange=n.handleOnlineChange.bind(n),n}return gn(t,e),L(t,[{key:"state",get:function(){var e="WIFI";return navigator.onLine||(e="NONE"),e}},{key:"getCurrentConnectivity",value:function(e){e.resolve({network_info:this.state})}},{key:"addListener",value:function(e){"networkStatusDidChange"===e&&(window.addEventListener("online",this.handleOnlineChange),window.addEventListener("offline",this.handleOnlineChange))}},{key:"removeListener",value:function(e){"networkStatusDidChange"===e&&(window.removeEventListener("online",this.handleOnlineChange),window.removeEventListener("offline",this.handleOnlineChange))}},{key:"destroy",value:function(){this.removeListener("change")}},{key:"handleOnlineChange",value:function(){this.context.sendEvent("networkStatusDidChange",{network_info:this.state})}}])}(Ir),So=function(e){function t(){var e;return x(this,t),(e=Sn(this,t,arguments)).name="network",e}return gn(t,e),L(t,[{key:"fetch",value:function(e,t){e||t.reject("invalid request param");var r=e.url,i=e.method;r&&i||t.reject("no valid url for request");var o=e.redirect,a=e.body,s={redirect:o,headers:e.headers,method:i};"get"!==i.toLowerCase()&&(s.body=a),n.g.__fetch(r,s).then(function(){var e=l(d().mark(function e(n){var r,i,o,a,s,u;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!n){e.next=2;break}return e.next=1,n.text();case 1:r=e.sent,i={},o=bn(n.headers.keys());try{for(o.s();!(a=o.n()).done;)s=a.value,i[s]=n.headers.get(s)}catch(e){o.e(e)}finally{o.f()}return(u={statusCode:n.status,statusLine:n.statusText,respBody:r,respHeaders:i}).statusCode=n.status,t.resolve(u),e.abrupt("return");case 2:t.resolve("response null");case 3:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),function(e){t.reject(e.toString())}).catch(function(e){t.reject(e.toString())})}},{key:"setCookie",value:function(e,t,n,r){n.split(";").forEach(function(e){document.cookie="".concat(e,"; expires=").concat(r,";domain=").concat(t)})}},{key:"getCookies",value:function(e){e.resolve(document.cookie)}},{key:"initialize",value:function(){}},{key:"destroy",value:function(){}}])}(Ir),Ao=function(e){function t(){var e;return x(this,t),(e=Sn(this,t,arguments)).moduleName="StorageModule",e.STORE_PRX_KEY="hippy-storage-",e}return gn(t,e),L(t,[{key:"getAllKeys",value:function(e){if(t.preCheck()){var n=window.__localStorage.getItem("".concat(this.STORE_PRX_KEY,"ALL-KEY"));try{n=JSON.stringify(n)}catch(e){throw"deserialize failed , getAllKeys()"}e.resolve(n)}else e.resolve("not support")}},{key:"multiGet",value:function(e,n){if(t.preCheck())if(!e||e.length<=0)n.reject("Invalid Key");else{var r=[];e.forEach(function(e){var t=window.__localStorage.getItem(e);if(t){try{t=JSON.stringify(t)}catch(e){throw"deserialize failed , getAllKeys()"}r.push([e,t])}}),n.resolve(r)}else n.reject("not support")}},{key:"multiSet",value:function(e,n){if(t.preCheck())if(!e||e.length<=0)n.reject("Invalid Key");else{for(var r=0;r<e.length;r++){var i=e[r];if(!i||2!==i.length||!i[0]||!i[1])return void n.reject("Invalid key or value");try{__localStorage.setItem(i[0],JSON.stringify(i[1]))}catch(e){return void n.reject("cant storage for key ${dataItem[0]} ")}}n.resolve("success")}else n.reject("not support")}},{key:"multiRemove",value:function(e,n){if(t.preCheck())if(!e||e.length<=0)n.reject("Invalid Key");else{for(var r=0;r<e.length;r++)window.__localStorage.removeItem(e[r]);n.resolve("success")}else n.reject("not support")}},{key:"initialize",value:function(){}},{key:"destroy",value:function(){}}],[{key:"preCheck",value:function(){return!!window.__localStorage||(Sr("not support localStorage"),!1)}}])}(Ir),xo=!1,Co=function(e){function t(e){var n;return x(this,t),(n=Sn(this,t,[e])).name="UIManagerModule",n.viewDictionary={},n.afterCreateAction=[],n.mode="sequential",n}return gn(t,e),L(t,[{key:"init",value:function(){var e;!xo&&((e=document.createElement("style")).type="text/css",e.innerHTML='*::-webkit-scrollbar {\n display: none;\n} img[src=""],img:not([src]){\n opacity: 0;\n visibility: hidden;\n }',document.getElementsByTagName("head")[0].appendChild(e)),xo=!0}},{key:"createNode",value:(u=l(d().mark(function e(t,n){var r,i,o,a,u,l,c,h,f,p,v,y,m,g,_;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:this.createNodePreCheck(t),i=new Set,o=0;case 1:if(!(o<n.length)){e.next=9;break}if(a=s(n[o],1),u=a[0],l=u.id,c=u.pId,h=u.index,f=u.props,p=u.name){e.next=2;break}return Sr("create component failed, tagName is ".concat(p)),e.abrupt("continue",8);case 2:if(v=To(this.context,p,l,c)){e.next=3;break}return Sr("create component failed, not support the component ".concat(p)),e.abrupt("continue",8);case 3:return e.prev=3,e.next=4,this.viewInit(v,f,h);case 4:e.next=6;break;case 5:e.prev=5,e.catch(3),Ar();case 6:if(!i.has(l)){e.next=7;break}return e.abrupt("continue",8);case 7:p!==Hn.LIST&&p!==Hn.VIEW_PAGER||i.add(l),(null===(r=this.findViewById(c))||void 0===r?void 0:r.tagName)===Hn.LIST&&i.add(c);case 8:o++,e.next=1;break;case 9:y=bn(i);try{for(y.s();!(m=y.n()).done;)g=m.value,null==(_=this.findViewById(g))||_.endBatch()}catch(e){y.e(e)}finally{y.f()}this.afterCreateAction.forEach(function(e){return e()}),this.afterCreateAction=[];case 10:case"end":return e.stop()}},e,this,[[3,5]])})),function(e,t){return u.apply(this,arguments)})},{key:"deleteNode",value:(a=l(d().mark(function e(t,n){var r,i,o,a;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:r=0;case 1:if(!(r<n.length)){e.next=3;break}return i=s(n[r],1),o=i[0],a=this.findViewById(o.id),e.next=2,this.viewDelete(a);case 2:r++,e.next=1;break;case 3:case"end":return e.stop()}},e,this)})),function(e,t){return a.apply(this,arguments)})},{key:"updateNode",value:function(e,t){for(var n=0;n<t.length;n++){var r=s(t[n],1)[0],i=this.findViewById(r.id);(null==r?void 0:r.props)&&this.viewUpdate(i,r.props)}}},{key:"moveNode",value:(o=l(d().mark(function e(t,n){var r,i,o,a;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:r=0;case 1:if(!(r<n.length)){e.next=4;break}if(i=s(n[r],1),o=i[0],!(a=this.findViewById(o.id))){e.next=2;break}if(!this.findViewById(o.pId)||(null==a?void 0:a.pId)===o.pId){e.next=2;break}return e.next=2,this.viewDelete(a);case 2:return e.next=3,this.createNode(t,[n[r]]);case 3:r++,e.next=1;break;case 4:case"end":return e.stop()}},e,this)})),function(e,t){return o.apply(this,arguments)})},{key:"addEventListener",value:function(e,t,n){var r=this.findViewById(e);(null==r?void 0:r.addEventListener)&&r.addEventListener(t,n)}},{key:"removeEventListener",value:function(e,t){var n=this.findViewById(e);(null==n?void 0:n.removeEventListener)&&n.removeEventListener(t)}},{key:"callUIFunction",value:function(e,t){if(e&&!(e.length<3)){var n=s(e,3),r=n[0],i=n[1],o=n[2];r&&this.findViewById(r)&&function(e,t,n,r){var i=null!=n?n:[];if(t&&(null==e?void 0:e[t]))return void(null==e||e[t].apply(e,k(i).concat([r])));throw"call ui function failed,".concat(null==e?void 0:e.tagName," component not implement ").concat(t,"()")}(this.findViewById(r),i,o,t)}}},{key:"measureInWindow",value:function(e,t){var n,r=s(e,1)[0];if(r&&(null===(n=this.findViewById(r))||void 0===n?void 0:n.dom)){var i=this.findViewById(r);if(i.dom){var o=i.dom.getBoundingClientRect(),a=o.x,u=o.y,l=o.width,c=o.height,d=o.top,h=o.left,f=o.right,p=o.bottom;t.resolve({statusBarHeight:0,x:a,y:u,width:l,height:c,top:d,left:h,right:f,bottom:p})}}}},{key:"measureInAppWindow",value:function(e,t){this.measureInWindow(e,t)}},{key:"getBoundingClientRect",value:function(e,t){this.measureInWindow(e,t)}},{key:"findViewById",value:function(e){return this.viewDictionary[e]?this.viewDictionary[e]:null}},{key:"appendChild",value:function(e,t,n){var r;e.dom&&t.dom&&e.dom.insertBefore(t.dom,null!==(r=e.dom.childNodes[n])&&void 0!==r?r:null),this.viewDictionary[t.id]=t}},{key:"removeChild",value:(i=l(d().mark(function e(t,n){var r,i,o,a,s,u,l,c,h,f,p,v,y,m;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(u=this.findViewById(n),l=[],c=u.dom,h=document.createTreeWalker(u.dom,NodeFilter.SHOW_ALL,null);c;)c.id&&l.push(c.id),c=h.nextNode();f=bn(l.reverse()),e.prev=1,f.s();case 2:if((p=f.n()).done){e.next=7;break}if((v=p.value)!==n){e.next=3;break}return e.abrupt("continue",6);case 3:if((y=this.findViewById(v))&&y!==u){e.next=4;break}return e.abrupt("continue",6);case 4:return e.next=5,null===(r=y.beforeRemove)||void 0===r?void 0:r.call(y);case 5:null===(o=null===(i=this.findViewById(y.pId))||void 0===i?void 0:i.beforeChildRemove)||void 0===o||o.call(i,y),null===(a=y.destroy)||void 0===a||a.call(y),delete this.viewDictionary[y.id];case 6:e.next=2;break;case 7:e.next=9;break;case 8:e.prev=8,m=e.catch(1),f.e(m);case 9:return e.prev=9,f.f(),e.finish(9);case 10:(null==u?void 0:u.dom)&&t.dom&&!t.removeChild&&(null===(s=t.dom)||void 0===s||s.removeChild(u.dom)),delete this.viewDictionary[n];case 11:case"end":return e.stop()}},e,this,[[1,8,9,10]])})),function(e,t){return i.apply(this,arguments)})},{key:"defaultUpdateViewProps",value:function(e,t){var n,r,i,o,a,u=this;e.dom||"component update props process failed ,component's dom must be exited ".concat(null!==(n=e.tagName)&&void 0!==n?n:"");var l=Object.keys(t),c=function(e,t){var n={},r=0;return Object.keys(e).forEach(function(i){t[i]&&t[i]===e[i]||(n[i]=e[i],r+=1)}),Object.keys(e).concat(Object.keys(t)).filter(function(e){return!Object.keys(t).includes(e)}).forEach(function(i){e[i]||void 0===t[i]||(n[i]=null,r+=1)}),[n,r]}(t.style,null!==(i=null===(r=e.props)||void 0===r?void 0:r.style)&&void 0!==i?i:{}),d=s(c,2),h=d[0],f=d[1];if(t.style&&f>0){fr(e.dom,h,function(t,n){u.animationProcess(t,n,e)});var p=this.findViewById(e.pId);!function(e,t,n){var r,i;"absolute"!==e.position||(null===(i=null===(r=null==n?void 0:n.props)||void 0===r?void 0:r.style)||void 0===i?void 0:i.position)||(null==n?void 0:n.defaultStyle().position)||fr(n.dom,{position:"relative"}),"absolute"!==e.position||e.width||e.height||e.overflow||fr(t.dom,{overflow:"visible"})}(h,e,p);var v={};Object.assign(v,t.style),null===(o=e.updateProperty)||void 0===o||o.call(e,"style",v),function(e,t,n){"absolute"===e.position||"relative"===e.position?(null==n||n.changeStackContext(!0),t.updateSelfStackContext(!0)):null===e.position?(null==n||n.changeStackContext(!1),t.updateSelfStackContext(!1)):(null==n?void 0:n.exitChildrenStackContext)&&null===e.zIndex&&t.updateSelfStackContext(!0)}(h,e,p)}for(var y=0,m=l;y<m.length;y++){var g=m[y];"style"!==g&&"attributes"!==g&&-1===g.indexOf("__bind__")&&(null===(a=e.updateProperty)||void 0===a||a.call(e,g,t[g]))}}},{key:"addAfterCreateAction",value:function(e){this.afterCreateAction.push(e)}},{key:"viewInit",value:(r=l(d().mark(function e(t,n,r){var i,o,a,s,u,l,c,h,f,p,v,y,m;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t.dom){e.next=1;break}throw Error("component init process failed ,component's dom must be exit after component create ".concat(null!==(i=t.tagName)&&void 0!==i?i:""));case 1:if(t.dom.id=String(t.id),this.updateViewProps(t,n),(y=this.findViewById(t.pId))&&y.dom){e.next=2;break}return Sr("component init process failed ,component's parent not exist or dom not exist, pid: ".concat(t.pId)),e.abrupt("return");case 2:return m=r,!y.insertChild&&void 0!==(null===(a=null===(o=y.dom)||void 0===o?void 0:o.childNodes)||void 0===a?void 0:a.length)&&r>(null===(u=null===(s=y.dom)||void 0===s?void 0:s.childNodes)||void 0===u?void 0:u.length)&&(m=null!==(h=null===(c=null===(l=y.dom)||void 0===l?void 0:l.childNodes)||void 0===c?void 0:c.length)&&void 0!==h?h:r),e.next=3,null===(f=t.beforeMount)||void 0===f?void 0:f.call(t,y,m);case 3:return e.next=4,null===(p=y.beforeChildMount)||void 0===p?void 0:p.call(y,t,m);case 4:y.insertChild?(y.insertChild(t,r),this.viewDictionary[t.id]=t):this.appendChild(y,t,m),null===(v=t.mounted)||void 0===v||v.call(t);case 5:case"end":return e.stop()}},e,this)})),function(e,t,n){return r.apply(this,arguments)})},{key:"viewDelete",value:(n=l(d().mark(function e(t){var n,r,i,o,a,s;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(s=t?this.findViewById(t.pId):null){e.next=1;break}return e.abrupt("return");case 1:return e.next=2,null===(r=(n=t).beforeRemove)||void 0===r?void 0:r.call(n);case 2:return e.next=3,null===(i=s.beforeChildRemove)||void 0===i?void 0:i.call(s,t);case 3:if(!s.removeChild){e.next=5;break}return e.next=4,s.removeChild(t);case 4:e.next=6;break;case 5:return e.next=6,this.removeChild(s,t.id);case 6:null===(a=(o=t).destroy)||void 0===a||a.call(o),delete this.viewDictionary[t.id];case 7:case"end":return e.stop()}},e,this)})),function(e){return n.apply(this,arguments)})},{key:"viewUpdate",value:function(e,t){e&&this.updateViewProps(e,t)}},{key:"updateViewProps",value:function(e,t){e.updateProps?e.updateProps(t,this.defaultUpdateViewProps.bind(this)):this.defaultUpdateViewProps(e,t)}},{key:"createNodePreCheck",value:function(e){var t,n,r=this;if(!this.rootDom){var i=s(document.getElementsByTagName("body"),1);this.rootDom=i[0]}if(!this.contentDom){var o=0;window.document.getElementById(null!=e?e:"")?this.contentDom=window.document.getElementById(e):(this.contentDom=(t=e,(n=window.document.createElement("div")).setAttribute("id",t),n.id=t,n),this.rootDom.appendChild(this.contentDom),o=this.rootDom.childNodes.length-1),this.contentDom.parentNode.childNodes.forEach(function(e,t){e===r.contentDom&&(o=t)}),fr(this.contentDom,{height:"".concat(window.innerHeight,"px"),overflow:"hidden",display:"flex",width:"100vw",flexDirection:"column",position:"relative"}),this.viewDictionary[e]={id:e,pId:-1,index:o,props:{},dom:this.contentDom,tagName:"View"}}}},{key:"animationProcess",value:function(e,t,n){var r=this.context.getModuleByName("AnimationModule");if(r)if(t.animationId)r.linkInitAnimation2Element(t.animationId,n,e);else if("transform"===e){var i,o={},a="",s=bn(t);try{for(s.s();!(i=s.n()).done;)for(var u=i.value,l=0,c=Object.keys(u);l<c.length;l++){var d=c[l];u[d].animationId?r.linkInitAnimation2Element(u[d].animationId,n,d):a+="".concat(d,"(").concat(u[d]).concat(isNaN(u[d])||d.startsWith("scale")?"":"px",") ")}}catch(e){s.e(e)}finally{s.f()}a&&(o.transform=a,fr(n.dom,o))}}}]);var n,r,i,o,a,u}(Ir);function To(e,t,n,r){if(e.engine.components[t])return new e.engine.components[t](e,n,r)}var Lo=function(e){function t(){var e;return x(this,t),(e=Sn(this,t,arguments)).name="websocket",e.webSocketConnections={},e.connections=0,e}return gn(t,e),L(t,[{key:"connect",value:function(e,t){var n,r={code:-1,reason:""};if(!e)return r.reason="invalid connect param",void t.resolve(r);if(!e.url)return r.reason="no valid url for websocket",void t.resolve(r);var i=[];(null===(n=e.headers)||void 0===n?void 0:n["Sec-WebSocket-Protocol"])&&(i=null==e?void 0:e.headers["Sec-WebSocket-Protocol"].split(",")),this.connections+=1;var o=this.connections;this.webSocketConnections[o]=new Oo(o,e.url,i),this.webSocketConnections[o].connect(this.dispatchEvent.bind(this)),t.resolve({code:0,id:o})}},{key:"send",value:function(e){if(e&&e.id){var t=this.webSocketConnections[e.id];t&&(t.disconnected||e.data&&"string"==typeof e.data&&this.webSocketConnections[e.id].send(e.data))}}},{key:"close",value:function(e){e&&e.id&&this.webSocketConnections[e.id]&&!this.webSocketConnections[e.id].disconnected&&this.webSocketConnections[e.id].close(e.code,e.reason)}},{key:"dispatchEvent",value:function(e,t,n){this.context.sendEvent("hippyWebsocketEvents",En(En({},n),{},{id:e,type:t}))}},{key:"initialize",value:function(){}},{key:"destroy",value:function(){}}])}(Ir),Oo=function(){return L(function e(t,n,r){x(this,e),this.id=t,this.protocols=r,this.url=n,this.handleSocketOpen=this.handleSocketOpen.bind(this),this.handleSocketMessage=this.handleSocketMessage.bind(this),this.handleSocketClose=this.handleSocketClose.bind(this),this.handleSocketError=this.handleSocketError.bind(this)},[{key:"disconnected",get:function(){return 1!==this.state}},{key:"connect",value:function(e){var t;this.connection||(this.connection=new window.__WebSocket(this.url,null!==(t=this.protocols)&&void 0!==t?t:[])),this.dispatchEvent=e,this.state=0,this.connection.addEventListener("open",this.handleSocketOpen),this.connection.addEventListener("message",this.handleSocketMessage),this.connection.addEventListener("close",this.handleSocketClose),this.connection.addEventListener("error",this.handleSocketError)}},{key:"handleSocketOpen",value:function(){this.state=1,this.dispatchEvent(this.id,"onOpen")}},{key:"handleSocketClose",value:function(){this.state=3,this.dispatchEvent(this.id,"onClose")}},{key:"handleSocketMessage",value:function(e){this.dispatchEvent(this.id,"onMessage",{data:e})}},{key:"handleSocketError",value:function(e){this.dispatchEvent(this.id,"onError",{reason:e.toString()})}},{key:"send",value:function(e){var t;null===(t=this.connection)||void 0===t||t.send(e)}},{key:"close",value:function(e,t){var n;null===(n=this.connection)||void 0===n||n.close(e,t),this.state=2,this.destroy()}},{key:"destroy",value:function(){var e,t,n,r;null===(e=this.connection)||void 0===e||e.removeEventListener("open",this.handleSocketOpen),null===(t=this.connection)||void 0===t||t.removeEventListener("message",this.handleSocketMessage),null===(n=this.connection)||void 0===n||n.removeEventListener("close",this.handleSocketClose),null===(r=this.connection)||void 0===r||r.removeEventListener("error",this.handleSocketError)}}])}(),Po={AnimationModule:lo,ClipboardModule:_o,DeviceEventModule:bo,ImageLoadModule:ko,NetInfoModule:Eo,NetworkModule:So,StorageModule:Ao,UIManagerModule:Co,WebSocketModule:Lo};function Io(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function No(e,t,n){return t=vn(t),pn(e,Ro()?Reflect.construct(t,n||[],vn(e).constructor):t.apply(e,n))}function Ro(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Ro=function(){return!!e})()}function Do(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Mo(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Mo(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function Mo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Fo(e,t){var n,r=(null==e?void 0:e.events)||{},i=function(e){if(!e||"string"!=typeof e)return[];var t=new Set([e]),n=e.startsWith("on")?e.slice(2):e;if(!n)return Array.from(t);var r=n.charAt(0).toLowerCase()+n.slice(1),i=n.toLowerCase(),o="on".concat(n.charAt(0).toUpperCase()).concat(n.slice(1).toLowerCase());return t.add(r),t.add(i),t.add(o),t.add(o.toLowerCase()),t.add("on".concat(r)),t.add("on".concat(i)),Array.from(t)}(t),o=Do(i);try{for(o.s();!(n=o.n()).done;){var a=n.value;if(r[a])return{listener:r[a],matchedEventName:a}}}catch(e){o.e(e)}finally{o.f()}return{listener:null,matchedEventName:t}}Lr.coreModules=Po,Lr.coreComponents=so;var Bo=function(e){function t(e,n,r){var i;return x(this,t),(i=No(this,t,[e,n,r]))._originalDisplay=void 0,i}return gn(t,e),L(t,[{key:"dispatchEvent",value:function(e,t){var n=Fo(this,e),r=n.listener,i=n.matchedEventName;if(r){var o={id:this.id,currentId:this.id,type:i,params:t,eventPhase:2,stopPropagation:function(){}};if("function"==typeof r.resolve)r.resolve(o);else if("function"==typeof r){var a=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Io(Object(n),!0).forEach(function(t){(0,b.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Io(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},o);t&&"object"==typeof t&&Object.assign(a,t),r(a)}return!0}return fe(this.id,e,t||{})}},{key:"updateProperty",value:function(e,n){if("type"===e&&this.dom)if(null!=n&&""!==n){var r=String(n);this.dom.setAttribute("type",r),this.dom.setAttribute("data-template-type",r)}else this.dom.removeAttribute("type"),this.dom.removeAttribute("data-template-type");var i,o,a,s,u;this._handleCommonProperty(e,n)||(i=t,o="updateProperty",a=this,u=yn(vn(1&(s=3)?i.prototype:i),o,a),2&s&&"function"==typeof u?function(e){return u.apply(a,e)}:u)([e,n])}},{key:"_handleCommonProperty",value:function(e,t){switch(e){case"visible":return this._setVisible(t),!0;case"visibility":return this._setVisibility(t),!0;case"autofocus":return!0===t||"true"===t||1===t||"1"===t?this.dom.setAttribute("autofocus","true"):this.dom.removeAttribute("autofocus"),!0;case"name":return this.props=this.props||{},this.props.name=t,t?this.dom.setAttribute("name",String(t)):this.dom.removeAttribute("name"),!0;case"showOnState":return null!=t?Array.isArray(t)?this.dom.setAttribute("showOnState",JSON.stringify(t)):this.dom.setAttribute("showOnState",String(t)):(this.dom.removeAttribute("showOnState"),this.dom.removeAttribute("showonstate")),!0;default:return!1}}},{key:"_setVisible",value:function(e){if(!0===e)if(void 0!==this._originalDisplay)this.dom.style.display=this._originalDisplay;else{var t=this.dom.style;t.flexDirection||t.justifyContent||t.alignItems||t.flexWrap||t.flexGrow||t.flexShrink;t.display&&"none"!==t.display||(t.display="flex")}else{if(void 0===this._originalDisplay){var n=this.dom.style.display;n&&"none"!==n&&(this._originalDisplay=n)}this.dom.style.display="none"}}},{key:"_setVisibility",value:function(e){switch(e){case"visible":if(void 0!==this._originalDisplay)this.dom.style.display=this._originalDisplay;else{var t=this.dom.style;t.display&&"none"!==t.display||(t.display="flex")}this.dom.style.visibility="";break;case"invisible":this.dom.style.visibility="hidden";break;case"gone":if(void 0===this._originalDisplay){var n=this.dom.style.display;n&&"none"!==n&&(this._originalDisplay=n)}this.dom.style.display="none"}}},{key:"setVisible",value:function(e){this._setVisible(e)}},{key:"setVisibility",value:function(e){this._setVisibility(e)}}])}(ii);function jo(e,t,n){return t=vn(t),pn(e,Vo()?Reflect.construct(t,n||[],vn(e).constructor):t.apply(e,n))}function Vo(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Vo=function(){return!!e})()}function Wo(e,t,n,r){var i=yn(vn(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof i?function(e){return i.apply(n,e)}:i}var Ho=function(e){function t(e,n,r){var i;return x(this,t),(i=jo(this,t,[e,n,r])).tagName="div",i.dom=document.createElement("div"),i._currentSid=null,i._bindDOMEvents(),i}return gn(t,e),L(t,[{key:"onClick",get:function(){var e;return null===(e=this.props)||void 0===e?void 0:e.onClick},set:function(e){this.props=this.props||{},this.props.onClick=e}},{key:"_bindDOMEvents",value:function(){var e=this;this.dom.addEventListener("click",function(t){if(e.events&&e.events.onClick){if(e._clickHandled)return void(e._clickHandled=!1);e.dispatchEvent("onClick",{nativeEvent:t})}}),this.dom.addEventListener("focus",function(t){e.events&&e.events.onFocus&&e.dispatchEvent("onFocus",{isFocused:!0,nativeEvent:t})}),this.dom.addEventListener("blur",function(t){e.events&&e.events.onFocus&&e.dispatchEvent("onFocus",{isFocused:!1,nativeEvent:t})})}},{key:"markClickHandled",value:function(){this._clickHandled=!0}},{key:"updateProperty",value:function(e,n){if("sid"===e)return this._currentSid&&g(this._currentSid),this._currentSid=n,void(n?(m(n,this),this.dom.setAttribute("sid",String(n))):this.dom.removeAttribute("sid"));if("autoWidth"!==e&&"auto_width"!==e)if("flexStyle"!==e&&"flexstyle"!==e)if("layout"!==e)if("size"!==e)if("decoration"!==e)if("showIf"!==e&&"showif"!==e){if(["clipChildren","clipPadding"].includes(e))"clipChildren"===e&&(this.dom.style.overflow=!1===n?"visible":"hidden");else{var r=function(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()};if(["focusable","enableFocusBorder","canFocus","requestFocus","duplicateParentState","blockFocusDirections","blockfocusdirections","selected","nextFocusName","nextfocusname"].includes(e))null!=n?"showOnState"===e&&Array.isArray(n)?this.dom.setAttribute(e,JSON.stringify(n)):"nextFocusName"===e||"nextfocusname"===e?"object"==typeof n?this.dom.setAttribute("nextFocusName",JSON.stringify(n)):this.dom.setAttribute("nextFocusName",String(n)):this.dom.setAttribute(e.toLowerCase(),String(n)):this.dom.removeAttribute(e.toLowerCase());else if(["focusScale","focusBorderWidth","focusBorderColor","focusBorderRadius","focusBackgroundColor","focusColor"].includes(e))if(null!=n){var i="data-"+r(e);this.dom.setAttribute(i,String(n))}else{var o="data-"+r(e);this.dom.removeAttribute(o)}else{["focus-scale","focus-border-color","focus-border-width","focus-border-radius","focus-background-color","focus-color"].includes(e)?null!=n?this.dom.setAttribute("data-"+e,String(n)):this.dom.removeAttribute("data-"+e):("string"==typeof n&&n.startsWith("${")&&this.dom.setAttribute(e,n),Wo(t,"updateProperty",this,3)([e,n]))}}}else null!=n?this.dom.setAttribute("showIf",String(n)):(this.dom.removeAttribute("showIf"),this.dom.removeAttribute("showif"));else"string"==typeof n&&n.startsWith("${")?this.dom.setAttribute(e,n):this._applyDecoration(n);else"string"==typeof n&&n.startsWith("${")?this.dom.setAttribute(e,n):this._applySize(n);else"string"==typeof n&&n.startsWith("${")?this.dom.setAttribute(e,n):this._applyLayout(n);else"object"==typeof n&&null!==n?this._applyFlexStyle(n):"string"==typeof n&&n.startsWith("${")&&this.dom.setAttribute(e,n);else""===n||!!n?this.dom.setAttribute("autowidth",""):this.dom.removeAttribute("autowidth")}},{key:"_applyFlexStyle",value:function(e){var t=this;if(e&&"object"==typeof e){var n=["gap","rowGap","columnGap"],r=["flexDirection","justifyContent","alignItems","alignContent","flexWrap","flexGrow","flexShrink","flexBasis","order","alignSelf"];Object.keys(e).some(function(e){return r.includes(e)})&&!Object.keys(e).includes("display")&&(this.dom.style.display="flex"),Object.keys(e).forEach(function(r){if(!n.includes(r)){var i=e[r];if("backgroundImage"===r||"background"===r){var o=(0,dt.yf)(r,i);o!==i&&(i=o)}if("number"==typeof i)["width","height","minWidth","minHeight","maxWidth","maxHeight","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","margin","marginTop","marginRight","marginBottom","marginLeft","top","left","right","bottom","borderRadius","borderWidth","fontSize","lineHeight","letterSpacing"].includes(r)&&(i+="px");try{"x"!==r&&"y"!==r&&(t.dom.style[r]=i)}catch(e){try{if("x"!==r&&"y"!==r){var a=r.replace(/([A-Z])/g,"-$1").toLowerCase();t.dom.style.setProperty(a,i)}}catch(e){}}}})}}},{key:"_applyLayout",value:function(e){if(e){if(Array.isArray(e)){var t=e[0],n=e[1],r=e[2],i=e[3];return null!=t&&(this.dom.style.left="number"==typeof t?"".concat(t,"px"):t),null!=n&&(this.dom.style.top="number"==typeof n?"".concat(n,"px"):n),null!=r&&(this.dom.style.width="number"==typeof r?"".concat(r,"px"):r),null!=i&&(this.dom.style.height="number"==typeof i?"".concat(i,"px"):i),void(void 0===t&&void 0===n||this.dom.style.position&&"relative"!==this.dom.style.position||(this.dom.style.position="absolute"))}if("object"==typeof e){var o=e.x,a=e.y,s=e.width,u=e.height;null!=o&&(this.dom.style.left="number"==typeof o?"".concat(o,"px"):o),null!=a&&(this.dom.style.top="number"==typeof a?"".concat(a,"px"):a),null!=s&&(this.dom.style.width="number"==typeof s?"".concat(s,"px"):s),null!=u&&(this.dom.style.height="number"==typeof u?"".concat(u,"px"):u),void 0===o&&void 0===a||this.dom.style.position&&"relative"!==this.dom.style.position||(this.dom.style.position="absolute")}}}},{key:"_applySize",value:function(e){if(e){if(Array.isArray(e)){var t=e[0],n=e[1];return null!=t&&(this.dom.style.width="number"==typeof t?"".concat(t,"px"):t),void(null!=n&&(this.dom.style.height="number"==typeof n?"".concat(n,"px"):n))}if("object"==typeof e){var r=e.width,i=e.height;null!=r&&(this.dom.style.width="number"==typeof r?"".concat(r,"px"):r),null!=i&&(this.dom.style.height="number"==typeof i?"".concat(i,"px"):i)}}}},{key:"_applyDecoration",value:function(e){if(e&&"object"==typeof e){var t=e.left,n=e.top,r=e.right,i=e.bottom;null!=t&&(this.dom.style.marginLeft="number"==typeof t?"".concat(t,"px"):t),null!=n&&(this.dom.style.marginTop="number"==typeof n?"".concat(n,"px"):n),null!=r&&(this.dom.style.marginRight="number"==typeof r?"".concat(r,"px"):r),null!=i&&(this.dom.style.marginBottom="number"==typeof i?"".concat(i,"px"):i)}}},{key:"requestFocus",value:function(e){var t=n.g.__TV_FOCUS_MANAGER__;t&&(null!=e?t.moveFocusFromElement(this.dom,e):t.focusElement(this.dom))}},{key:"requestFocusDirectly",value:function(e){var t=n.g.__TV_FOCUS_MANAGER__;t&&(null!=e?t.moveFocusFromElement(this.dom,e):t.focusElement(this.dom))}},{key:"requestChildFocus",value:function(e,t){var r=n.g.__TV_FOCUS_MANAGER__;if(r){var i=this.dom.children;if(e>=0&&e<i.length){var o=i[e];o&&(null!=t?r.moveFocusFromElement(o,t):r.focusElement(o))}}}},{key:"clearFocus",value:function(){var e=n.g.__TV_FOCUS_MANAGER__;e&&e.clearFocusFromElement(this.dom)}},{key:"setBlockFocusDirections",value:function(e){Array.isArray(e)&&this.dom.setAttribute("blockFocusDirections",JSON.stringify(e))}},{key:"setBlockFocusDirectionsOnFail",value:function(e){Array.isArray(e)&&this.dom.setAttribute("blockFocusDirectionsOnFail",JSON.stringify(e))}},{key:"changeAlpha",value:function(e){var t=Math.max(0,Math.min(1,Number(e)||1));this.dom.style.opacity=t}},{key:"setScale",value:function(e){var t=Number(e)||1;this.dom.style.transform=this.dom.style.transform?this.dom.style.transform.replace(/scale\([^)]*\)/,"scale(".concat(t,")")):"scale(".concat(t,")")}},{key:"setPosition",value:function(e,t){var n=Number(e)||0,r=Number(t)||0;this.dom.style.left="".concat(n,"px"),this.dom.style.top="".concat(r,"px")}},{key:"updateLayout",value:function(e){e&&"object"==typeof e&&(void 0!==e.width&&(this.dom.style.width="number"==typeof e.width?"".concat(e.width,"px"):e.width),void 0!==e.height&&(this.dom.style.height="number"==typeof e.height?"".concat(e.height,"px"):e.height),void 0!==e.x&&(this.dom.style.left="number"==typeof e.x?"".concat(e.x,"px"):e.x),void 0!==e.y&&(this.dom.style.top="number"==typeof e.y?"".concat(e.y,"px"):e.y))}},{key:"setBackGroundColor",value:function(e){var t=e;if("number"==typeof e){var n=(e>>24&255)/255,r=e>>8&255,i=255&e;t="rgba(".concat(e>>16&255,", ").concat(r,", ").concat(i,", ").concat(n,")")}this.dom.style.backgroundColor=t}},{key:"setBackgroundImage",value:function(e){if(e){var t=(0,dt.pb)(e);this.dom.style.backgroundImage="url(".concat(t,")")}else this.dom.style.backgroundImage=""}},{key:"setSize",value:function(e,t){void 0!==e&&(this.dom.style.width="number"==typeof e?"".concat(e,"px"):e),void 0!==t&&(this.dom.style.height="number"==typeof t?"".concat(t,"px"):t)}},{key:"setTranslation",value:function(e,t){var n=Number(e)||0,r=Number(t)||0;this.dom.style.transform=this.dom.style.transform?this.dom.style.transform.replace(/translate\([^)]*\)/,"translate(".concat(n,"px, ").concat(r,"px)")):"translate(".concat(n,"px, ").concat(r,"px)")}},{key:"setInitFocus",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=n.g.__TV_FOCUS_MANAGER__;if(i){var o=function(){i.updateFocusableElements(),i.focusElement(t.dom)};r>0?setTimeout(o,r):requestAnimationFrame(o)}}},{key:"setAutoFocus",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this.setInitFocus(e,t)}},{key:"mounted",value:function(){var e,r=this;null===(e=Wo(t,"mounted",this,3))||void 0===e||e([]);var i=this.dom.getAttribute("requestFocus");"true"!==i&&"1"!==i&&""!==i||requestAnimationFrame(function(){var e=n.g.__TV_FOCUS_MANAGER__;e&&(e.updateFocusableElements(),e.focusElement(r.dom))})}},{key:"beforeUnmount",value:function(){this._currentSid&&(g(this._currentSid),this._currentSid=null)}},{key:"destroy",value:function(){var e;null===(e=this.beforeUnmount)||void 0===e||e.call(this)}}])}(Bo);function Uo(e,t){var n;return n=function(e){function n(e,r,i){var o;return x(this,n),(o=jo(this,n,[e,r,i])).dom&&(o.dom.setAttribute("data-component-name",t),o._originalComponentName=t),o}return gn(n,e),L(n)}(e),(0,b.A)(n,"componentName",t),n}function Go(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function zo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Go(Object(n),!0).forEach(function(t){(0,b.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Go(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Yo(e,t,n){return t=vn(t),pn(e,qo()?Reflect.construct(t,n||[],vn(e).constructor):t.apply(e,n))}function qo(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(qo=function(){return!!e})()}function Xo(e,t,n,r){var i=yn(vn(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof i?function(e){return i.apply(n,e)}:i}var Ko=function(e){function t(e,n,r){var i;return x(this,t),(i=Yo(this,t,[e,n,r])).dom.setAttribute("data-component-name","ESPageRootView"),i._originalComponentName="ESPageRootView",i}return gn(t,e),L(t,[{key:"defaultStyle",value:function(){return zo(zo({},Xo(t,"defaultStyle",this,1)?Xo(t,"defaultStyle",this,3)([]):{}),{},{backgroundColor:"#000000"})}}])}(Ho);function $o(e,t,n){return t=vn(t),pn(e,Zo()?Reflect.construct(t,n||[],vn(e).constructor):t.apply(e,n))}function Zo(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Zo=function(){return!!e})()}(0,b.A)(Ko,"componentName","ESPageRootView"),window.__HIPPY_COMPONENT_REGISTRY__=window.__HIPPY_COMPONENT_REGISTRY__||new Map;var Jo=function(e){function t(e,n,r){var i;return x(this,t),(i=$o(this,t,[e,n,r])).tagName="Text",i.dom=document.createElement("span"),i._textValue="",i._gravity=null,i._innerSpan=document.createElement("span"),i._innerSpan.className="qt-text-inner",i._innerSpan.style.cssText="\n font-size: inherit;\n line-height: inherit;\n letter-spacing: inherit;\n color: inherit;\n ",i.dom.appendChild(i._innerSpan),window.__HIPPY_COMPONENT_REGISTRY__.set(i.dom,i),i.dom.style.color="black",i._autoWidthObserver=null,i._autoWidthSyncRaf=0,i._autoWidthRetryCount=0,i._textAlignObserver=new MutationObserver(function(e){i.dom&&e.forEach(function(e){"attributes"===e.type&&"style"===e.attributeName&&i.dom&&i.dom.style&&i.dom.style.textAlign&&(i.dom.style.textAlign="")})}),i._textAlignObserver.observe(i.dom,{attributes:!0,attributeFilter:["style"]}),i}return gn(t,e),L(t,[{key:"defaultStyle",value:function(){return{boxSizing:"border-box",zIndex:0,display:"inline-block",color:"black"}}},{key:"updateProperty",value:function(e,n){if("textAlign"!==e&&"text-align"!==e)if("autoWidth"!==e&&"auto_width"!==e)if("autoHeight"!==e&&"auto_height"!==e)if("fontSize"!==e)if("textSize"!==e&&"textsize"!==e)if("flexStyle"!==e&&"flexstyle"!==e)if("ellipsizeMode"!==e)if("lines"!==e)if("gravity"!==e)if("typeface"!==e)if("textAlignVertical"!==e&&"text-align-vertical"!==e){var r,i,o,a,s;if(["duplicateParentState","focusable","showOnState","select"].includes(e))null!=n?"showOnState"===e&&Array.isArray(n)?this.dom.setAttribute(e,JSON.stringify(n)):this.dom.setAttribute(e,String(n)):this.dom.removeAttribute(e);else if("textColor"!==e&&"text-color"!==e)if(["textColor","focusColor","selectColor"].includes(e))if(null!=n){var u="data-"+e.replace(/([A-Z])/g,"-$1").toLowerCase();this.dom.setAttribute(u,String(n))}else{var l="data-"+e.replace(/([A-Z])/g,"-$1").toLowerCase();this.dom.removeAttribute(l)}else if(["text-color","focus-color","select-color"].includes(e))null!=n?this.dom.setAttribute("data-"+e,String(n)):this.dom.removeAttribute("data-"+e);else"string"==typeof n&&n.startsWith("${")&&this.dom.setAttribute(e,n),(r=t,i="updateProperty",o=this,s=yn(vn(1&(a=3)?r.prototype:r),i,o),2&a&&"function"==typeof s?function(e){return s.apply(o,e)}:s)([e,n]);else this.setTextColor(n)}else this.setTextAlignVertical(n);else this.setTypeface(n);else this.setGravity(n);else this.setLines(n);else this.setEllipsizeMode(n);else"object"==typeof n&&null!==n?this._applyFlexStyle(n):"string"==typeof n&&n.startsWith("${")&&this.dom.setAttribute(e,n);else this.setTextSize(n);else this.setTextSize(n);else this.setAutoHeight(n);else this.setAutoWidth(n)}},{key:"text",get:function(){return this._textValue},set:function(e){this._textValue=e,this._updateTextNode(e)}},{key:"_updateTextNode",value:function(e){this._innerSpan&&(this._isSupportedRichText(e)?this._renderRichText(e):this._innerSpan.textContent=e||""),this._autoWidth&&this._scheduleAutoWidthSync(!0)}},{key:"_isSupportedRichText",value:function(e){return"string"==typeof e&&/<\/?(font|br)\b/i.test(e)}},{key:"_renderRichText",value:function(e){var t=this;if(this._innerSpan)try{var n=document.createElement("template");n.innerHTML=e||"";var r=document.createDocumentFragment();Array.from(n.content.childNodes).forEach(function(e){t._appendRichTextNode(e,r)}),this._innerSpan.replaceChildren(r)}catch(t){this._innerSpan.textContent=e||""}}},{key:"_appendRichTextNode",value:function(e,t){var n=this;if(e&&t)if(e.nodeType!==Node.TEXT_NODE){if(e.nodeType===Node.ELEMENT_NODE){var r=e.tagName.toLowerCase();if("br"!==r){var i=document.createElement("span");if("font"===r){var o=e.getAttribute("color");o&&(i.style.color=o)}Array.from(e.childNodes).forEach(function(e){n._appendRichTextNode(e,i)}),t.appendChild(i)}else t.appendChild(document.createElement("br"))}}else t.appendChild(document.createTextNode(e.textContent||""))}},{key:"setText",value:function(e){this.text=e}},{key:"setAutoWidth",value:function(e){this._autoWidth=""===e||!!e,this._autoWidth?(this._ensureAutoWidthObserver(),this.dom.setAttribute("autowidth",""),this.dom.style.width="auto",this.dom.style.minWidth="0",this.dom.style.display="inline-block",this._innerSpan&&(this._innerSpan.style.whiteSpace="nowrap"),this._scheduleAutoWidthSync(!0)):(this._teardownAutoWidthObserver(),this.dom.removeAttribute("autowidth"),this._autoWidthSyncRaf&&(cancelAnimationFrame(this._autoWidthSyncRaf),this._autoWidthSyncRaf=0),this.dom.style.width="",this.dom.style.display="")}},{key:"_ensureAutoWidthObserver",value:function(){var e=this;this._innerSpan&&(this._autoWidthObserver||(this._autoWidthObserver=new MutationObserver(function(){e._autoWidth&&e._scheduleAutoWidthSync(!0)}),this._autoWidthObserver.observe(this._innerSpan,{characterData:!0,childList:!0,subtree:!0})))}},{key:"_teardownAutoWidthObserver",value:function(){this._autoWidthObserver&&(this._autoWidthObserver.disconnect(),this._autoWidthObserver=null)}},{key:"_scheduleAutoWidthSync",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this._autoWidth&&(t&&(this._autoWidthRetryCount=0),this._autoWidthSyncRaf&&cancelAnimationFrame(this._autoWidthSyncRaf),this._autoWidthSyncRaf=requestAnimationFrame(function(){e._autoWidthSyncRaf=0,e._syncWidthToParent()}))}},{key:"_syncWidthToParent",value:function(){var e=this;if(this._autoWidth){var t=this._innerSpan;if(t){var n=t.scrollWidth||t.offsetWidth;if(n<=0)this.dom&&this.dom.isConnected&&this._autoWidthRetryCount<5&&(this._autoWidthRetryCount++,this._scheduleAutoWidthSync(!1));else{this._autoWidthRetryCount=0,this.dom.style.width=n+"px",this.dom.style.minWidth=n+"px";for(var r=this.dom.parentElement;r;){if(r.hasAttribute&&(r.hasAttribute("autoWidth")||r.hasAttribute("autowidth"))){var i=window.getComputedStyle(r),o=n+(parseInt(i.paddingLeft)||0)+(parseInt(i.paddingRight)||0);r.style.width=o+"px",r.style.minWidth=o+"px",r.querySelectorAll("[autoWidth], [autowidth]").forEach(function(t){t!==e.dom&&(t.tagName&&"qt-text"===t.tagName.toLowerCase()||"absolute"===window.getComputedStyle(t).position&&(t.style.left="0",t.style.right="0",t.style.width="auto"))});break}r=r.parentElement}}}}}},{key:"setAutoHeight",value:function(e){this._autoHeight=""===e||!!e,this._autoHeight?(this.dom.style.height="auto",this.dom.style.minHeight="0"):this.dom.style.height=""}},{key:"setTextSize",value:function(e){var t=this._innerSpan||this.dom;if(t&&e){if("string"==typeof e&&e.startsWith("${")&&e.endsWith("}"))return void this.dom.setAttribute("fontSize",e);t.style.fontSize="number"==typeof e?e+"px":e,this._autoWidth&&this._scheduleAutoWidthSync(!0)}}},{key:"setFontSize",value:function(e){var t=this._innerSpan||this.dom;if(t&&e){if("string"==typeof e&&e.startsWith("${")&&e.endsWith("}"))return void this.dom.setAttribute("fontSize",e);t.style.fontSize="number"==typeof e?e+"px":e,this._autoWidth&&this._scheduleAutoWidthSync(!0)}}},{key:"setTextColor",value:function(e){var t=this._innerSpan||this.dom;if(t&&e)if("number"==typeof e){var n=e>>24&255,r=e>>16&255,i=e>>8&255,o=255&e;t.style.color="rgba(".concat(r,", ").concat(i,", ").concat(o,", ").concat(n/255,")")}else t.style.color=e}},{key:"setTypeface",value:function(e){var t=this._innerSpan||this.dom;if(t)if("string"==typeof e&&e.startsWith("${")&&e.endsWith("}"))this.dom.setAttribute("typeface",e);else switch(e){case"bold":t.style.fontWeight="bold";break;case"italic":t.style.fontStyle="italic";break;case"normal":t.style.fontWeight="normal",t.style.fontStyle="normal"}}},{key:"setGravity",value:function(e){if(this.dom&&e){this._gravity=e;var t=String(e).split("|").map(function(e){return e.trim()});this.dom.style.display="flex",this.dom.style.alignItems="stretch",this.dom.style.justifyContent="flex-start",this._innerSpan&&(this._innerSpan.style.display="inline",this._innerSpan.style.whiteSpace=""),t.includes("centerVertical")||t.includes("center")?this.dom.style.alignItems="center":t.includes("top")?this.dom.style.alignItems="flex-start":t.includes("bottom")&&(this.dom.style.alignItems="flex-end"),t.includes("centerHorizontal")||t.includes("center")?this.dom.style.justifyContent="center":t.includes("left")?this.dom.style.justifyContent="flex-start":t.includes("right")&&(this.dom.style.justifyContent="flex-end")}}},{key:"setTextAlignVertical",value:function(e){if(this.dom&&e)switch(this.dom.style.display="flex",this._textAlignVertical=e,String(e).toLowerCase()){case"center":default:this.dom.style.alignItems="center";break;case"top":this.dom.style.alignItems="flex-start";break;case"bottom":this.dom.style.alignItems="flex-end"}}},{key:"setEllipsizeMode",value:function(e){if(this.dom&&(this._ellipsizeMode=e,!(this._lines&&this._lines>1))){var t=this._innerSpan||this.dom;switch(t.style.overflow="hidden",t.style.whiteSpace="nowrap",t.style.webkitLineClamp="",t.style.display="inline-block",t.style.maxWidth="100%",this._gravity||this._textAlignVertical?(this.dom.style.display="flex",this.dom.style.overflow="hidden",this._textAlignVertical&&this.setTextAlignVertical(this._textAlignVertical)):(this.dom.style.display="inline-block",this.dom.style.overflow="hidden"),e){case 0:t.style.textOverflow="ellipsis",t.style.direction="rtl",t.style.textAlign="left";break;case 1:case 2:default:t.style.textOverflow="ellipsis",t.style.direction="ltr";break;case 3:this._enableMarquee()}}}},{key:"_enableMarquee",value:function(){var e=this;if(this.dom){var t=this._innerSpan||this.dom;t.style.textOverflow="clip",t.style.whiteSpace="nowrap",t.style.direction="ltr",t.style.overflow="visible",this.dom.style.display="flex",this.dom.style.overflow="hidden",this.dom.style.justifyContent="flex-start",this._textAlignVertical&&this.setTextAlignVertical(this._textAlignVertical);if(!document.querySelector("#qttext-marquee-style")){var n=document.createElement("style");n.id="qttext-marquee-style",n.textContent="\n @keyframes qttext-marquee {\n 0% { transform: translateX(0); }\n 100% { transform: translateX(-100%); }\n }\n ",document.head.appendChild(n)}t.style.display="inline-block",t.style.whiteSpace="nowrap",t.style.width="max-content",requestAnimationFrame(function(){var n=t.scrollWidth-e.dom.offsetWidth;if(n>0){var r=Math.max(n/50,3);t.style.animation="qttext-marquee ".concat(r,"s linear infinite")}else t.style.animation=""})}}},{key:"_wrapTextForMarquee",value:function(){}},{key:"setLines",value:function(e){if(this.dom){this._lines=e;var t=this._innerSpan||this.dom;e&&e>1?(t.style.display="-webkit-box",t.style.webkitLineClamp=String(e),t.style.webkitBoxOrient="vertical",t.style.overflow="hidden",t.style.whiteSpace="normal",t.style.textOverflow="ellipsis",t.style.maxWidth="100%",(this._gravity||this._textAlignVertical)&&(this.dom.style.display="flex",this._textAlignVertical&&this.setTextAlignVertical(this._textAlignVertical))):1===e&&(t.style.display="inline-block",t.style.whiteSpace="nowrap",t.style.overflow="hidden",t.style.webkitLineClamp="",(this._gravity||this._textAlignVertical)&&(this.dom.style.display="flex",this.dom.style.overflow="hidden",this._textAlignVertical&&this.setTextAlignVertical(this._textAlignVertical)),void 0!==this._ellipsizeMode&&this.setEllipsizeMode(this._ellipsizeMode))}}},{key:"_applyFlexStyle",value:function(e){var t=this;if(e&&"object"==typeof e){var n=this._innerSpan||this.dom;Object.keys(e).forEach(function(r){var i=e[r];"number"==typeof i&&(["width","height","minWidth","minHeight","maxWidth","maxHeight","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","margin","marginTop","marginRight","marginBottom","marginLeft","top","left","right","bottom","borderRadius","borderWidth","fontSize","lineHeight","letterSpacing"].includes(r)&&(i+="px"));if("fontSize"!==r)if("textColor"!==r&&"color"!==r)try{t.dom.style[r]=i}catch(e){try{var o=r.replace(/([A-Z])/g,"-$1").toLowerCase();t.dom.style.setProperty(o,i)}catch(e){}}else t.setTextColor(i);else n.style.fontSize=i})}}},{key:"destroy",value:function(){this._textAlignObserver&&(this._textAlignObserver.disconnect(),this._textAlignObserver=null),this._teardownAutoWidthObserver(),this.dom=null}}])}(Bo);function Qo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ea(e,t,n){return t=vn(t),pn(e,ta()?Reflect.construct(t,n||[],vn(e).constructor):t.apply(e,n))}function ta(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(ta=function(){return!!e})()}function na(e,t,n,r){var i=yn(vn(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof i?function(e){return i.apply(n,e)}:i}var ra=function(e){function t(e,n,r){var i;return x(this,t),(i=ea(this,t,[e,n,r])).tagName="img",i.dom=document.createElement("img"),i._resizeMode="fill",i._currentSrc="",i.dom.style.objectFit="fill",i.dom.style.display="block",i.dom.style.pointerEvents="none",i._layoutObserver=null,i._boundLoadHandler=null,i._boundErrorHandler=null,i._bindImageEvents(),y(n,i),i}return gn(t,e),L(t,[{key:"_bindImageEvents",value:function(){var e=this;this._boundLoadHandler=function(t){e._emitLayout(),e._emitLoadEnd(!0,t)},this._boundErrorHandler=function(t){e._emitLoadEnd(!1,t)},this.dom.addEventListener("load",this._boundLoadHandler),this.dom.addEventListener("error",this._boundErrorHandler)}},{key:"src",get:function(){return this.dom.src},set:function(e){this._setSrc(e)}},{key:"source",set:function(e){this._setSrc(e)}},{key:"resizeMode",set:function(e){this._setResizeMode(e)}},{key:"updateProperty",value:function(e,n){switch(e){case"src":case"source":this._setSrc(n);break;case"resizeMode":this._setResizeMode(n);break;case"tintColor":this.dom.style.filter="drop-shadow(0 0 0 ".concat(n,")");break;case"style":if(n&&"object"==typeof n&&n.resizeMode){this._setResizeMode(n.resizeMode);var r=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qo(Object(n),!0).forEach(function(t){(0,b.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qo(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},n);delete r.resizeMode,Object.keys(r).length>0&&na(t,"updateProperty",this,3)([e,r])}else na(t,"updateProperty",this,3)([e,n]);break;default:"string"==typeof n&&n.startsWith("${")&&this.dom.setAttribute(e,n),na(t,"updateProperty",this,3)([e,n])}}},{key:"_setSrc",value:function(e){if(!e)return this.dom.src="",void(this.dom.style.backgroundImage="");var t="";if("string"==typeof e)if(e.startsWith("file://")){var n=e.slice(7);(n=n.replace(/^\/+/,"")).startsWith("./")&&(n=n.slice(2)),t="./"+n}else t=e.startsWith("assets/")?"./"+e:(e.startsWith("data:")||e.startsWith("http")||e.startsWith("/")||e.startsWith("."),e);else if("object"==typeof e&&e.uri)if((t=e.uri).startsWith("file://")){var r=t.slice(7);(r=r.replace(/^\/+/,"")).startsWith("./")&&(r=r.slice(2)),t="./"+r}else t.startsWith("assets/")&&(t="./"+t);t=(0,dt.pb)(t),this._currentSrc=t,"repeat"===this._resizeMode?(this.dom.style.backgroundImage="url(".concat(t,")"),this.dom.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"):(this.dom.src=t,this.dom.style.backgroundImage=""),this._scheduleLayoutEmit()}},{key:"_setResizeMode",value:function(e){switch(this._resizeMode=e,this.dom.style.objectFit="",this.dom.style.objectPosition="",this.dom.style.backgroundSize="",this.dom.style.backgroundPosition="",this.dom.style.backgroundRepeat="",e){case"contain":this.dom.style.objectFit="contain";break;case"cover":default:this.dom.style.objectFit="cover";break;case"center":this.dom.style.objectFit="contain",this.dom.style.objectPosition="center center";break;case"origin":this.dom.style.objectFit="none",this.dom.style.objectPosition="left top";break;case"fitxy":case"stretch":this.dom.style.objectFit="fill";break;case"repeat":this._currentSrc&&(this.dom.style.backgroundImage="url(".concat(this._currentSrc,")"),this.dom.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"),this.dom.style.objectFit="none",this.dom.style.backgroundSize="auto",this.dom.style.backgroundPosition="left top",this.dom.style.backgroundRepeat="repeat"}}},{key:"_scheduleLayoutEmit",value:function(){var e=this;requestAnimationFrame(function(){return e._emitLayout()})}},{key:"_emitLayout",value:function(){if(this.dom){var e=this.dom.getBoundingClientRect(),t=Math.round(e.width||this.dom.offsetWidth||0),n=Math.round(e.height||this.dom.offsetHeight||0);if(!(t<=0&&n<=0)){var r={x:Math.round(e.left||0),y:Math.round(e.top||0),width:t,height:n};fe(this.id,"onLayout",{layout:r})||this._dispatchCompatibleEvent(["layout","onLayout"],r)}}}},{key:"_emitLoadEnd",value:function(e,t){if(this.dom){var n={success:e,nativeEvent:t,width:this.dom.naturalWidth||this.dom.offsetWidth||0,height:this.dom.naturalHeight||this.dom.offsetHeight||0};fe(this.id,"onLoadEnd",n)||this._dispatchCompatibleEvent(["loadEnd","loadend","onLoadEnd"],n)}}},{key:"_dispatchCompatibleEvent",value:function(e,t){var n=this;this.events&&e.forEach(function(e){n.events[e]&&n.dispatchEvent(e,t)})}},{key:"mounted",value:function(){var e,n=this;null===(e=na(t,"mounted",this,3))||void 0===e||e([]),this._scheduleLayoutEmit(),"undefined"!=typeof ResizeObserver&&(this._layoutObserver=new ResizeObserver(function(){n._emitLayout()}),this._layoutObserver.observe(this.dom))}},{key:"destroy",value:function(){var e;this._layoutObserver&&(this._layoutObserver.disconnect(),this._layoutObserver=null),this.dom&&this._boundLoadHandler&&(this.dom.removeEventListener("load",this._boundLoadHandler),this._boundLoadHandler=null),this.dom&&this._boundErrorHandler&&(this.dom.removeEventListener("error",this._boundErrorHandler),this._boundErrorHandler=null),null===(e=na(t,"destroy",this,3))||void 0===e||e([])}}])}(Bo);function ia(e,t,n){return t=vn(t),pn(e,oa()?Reflect.construct(t,n||[],vn(e).constructor):t.apply(e,n))}function oa(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(oa=function(){return!!e})()}window.__HIPPY_COMPONENT_REGISTRY__=window.__HIPPY_COMPONENT_REGISTRY__||new Map;var aa=function(e){function t(e,n,r){var i;return x(this,t),(i=ia(this,t,[e,n,r])).tagName="FastFlexView",i.dom=document.createElement("div"),i.dom.setAttribute("data-component-name","QtFlexView"),i._listData=[],i._templateChildren=[],i._itemContainer=document.createElement("div"),i._itemContainer.className="flex-view-item-container",i._itemContainer.style.cssText="display: flex; flex-direction: row; flex-wrap: wrap; align-content: flex-start;",i.dom.style.cssText="\n display: flex;\n flex-direction: column;\n position: relative;\n box-sizing: border-box;\n ",y(n,i),window.__HIPPY_COMPONENT_REGISTRY__.set(i.dom,i),i._observer=new MutationObserver(function(e){e.forEach(function(e){"childList"===e.type&&e.addedNodes.forEach(function(e){e.nodeType===Node.ELEMENT_NODE&&i._processTemplateNode(e)})})}),i._observer.observe(i.dom,{childList:!0,subtree:!1}),i}return gn(t,e),L(t,[{key:"defaultStyle",value:function(){return{display:"flex",flexDirection:"column",position:"relative",boxSizing:"border-box"}}},{key:"updateProperty",value:function(e,n){var r,i,o,a,s,u=this;switch(e){case"list":if(this._pendingListValue=n,Array.isArray(n))this.dom.removeAttribute("list");else if("string"==typeof n){var l=e;this.dom.setAttribute(l,n)}Array.isArray(n)?this.setListData(n):requestAnimationFrame(function(){u.dom._qtListData&&Array.isArray(u.dom._qtListData)&&u.setListData(u.dom._qtListData)});break;case"flexStyle":"object"==typeof n&&null!==n?this._applyFlexStyle(n):"string"==typeof n&&n.startsWith("${")&&this.dom.setAttribute(e,n);break;case"layout":"string"==typeof n&&n.startsWith("${")?this.dom.setAttribute(e,n):this._updateLayout(n);break;case"clipChildren":!1===n&&(this.dom.style.overflow="visible");break;case"clipPadding":break;default:"string"==typeof n&&n.startsWith("${")&&this.dom.setAttribute(e,n),(r=t,i="updateProperty",o=this,s=yn(vn(1&(a=3)?r.prototype:r),i,o),2&a&&"function"==typeof s?function(e){return s.apply(o,e)}:s)([e,n])}}},{key:"_processTemplateNode",value:function(e){var t=this,n=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;if(!t._templateChildren.some(function(t){return t.dom===e})){var i=sa(e),o={dom:e,tagName:e.tagName,component:n,id:r,type:i};t._templateChildren.push(o),e.setAttribute("data-template","true"),null!==o.type&&e.setAttribute("data-template-type",String(o.type)),e.style.display="none"}};if(null===sa(e)&&e.querySelectorAll){var r=Array.from(e.querySelectorAll("[type], [data-template-type]"));if(r.length>0)return e.style.display="none",void r.forEach(function(e){return n(e)})}n(e)}},{key:"insertChild",value:function(e,t){var n=this;if(e&&e.dom){var r=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;if(!n._templateChildren.some(function(t){return t.dom===e})){var i=sa(e),o={dom:e,tagName:e.tagName,id:r,component:t,type:i};n._templateChildren.push(o),e.setAttribute("data-template","true"),null!=i&&e.setAttribute("data-template-type",String(i)),e.style.display="none"}};if(null===sa(e.dom)&&e.dom.querySelectorAll){var i=Array.from(e.dom.querySelectorAll("[type], [data-template-type]"));i.length>0?(e.dom.style.display="none",i.forEach(function(e){return r(e)})):r(e.dom,e,e.id)}else r(e.dom,e,e.id);this.dom.contains(e.dom)||(this._itemContainer&&this.dom.contains(this._itemContainer)?this.dom.insertBefore(e.dom,this._itemContainer):this.dom.appendChild(e.dom))}}},{key:"setListData",value:function(e){var t=this;if(Array.isArray(e)&&1===e.length&&Array.isArray(e[0])&&(e=e[0]),Array.isArray(e)){this._listData=e,this._renderTimeout&&clearTimeout(this._renderTimeout);var n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;t._templateChildren.length>0||e>=10?t._renderItems():t._renderTimeout=setTimeout(function(){return n(e+1)},50)};this._renderTimeout=setTimeout(function(){return n()},0)}}},{key:"_renderItems",value:function(){var e=this;this.dom.contains(this._itemContainer)||this.dom.appendChild(this._itemContainer),this._itemContainer.innerHTML="",0!==this._listData.length&&(this._templateChildren.forEach(function(e){e.dom&&(e.dom.style.display="none")}),0!==this._templateChildren.length?this._listData.forEach(function(t,n){var r=e._createItemFromData(t,n);r&&e._itemContainer.appendChild(r)}):this._listData.forEach(function(t,n){var r=document.createElement("div");r.setAttribute("data-index",n),r.style.cssText="width: 200px; height: 200px; margin: 10px; background: #444; display: flex; align-items: center; justify-content: center; border-radius: 8px;";var i=document.createElement("span");i.style.cssText="color: white; font-size: 14px;",i.textContent=t.text||t.title||t.name||"Item ".concat(n),r.appendChild(i),e._itemContainer.appendChild(r)}))}},{key:"_createItemFromData",value:function(e,t){var n=this,r=document.createElement("div");if(r.setAttribute("data-index",t),r.setAttribute("data-position",t),e&&e.decoration&&"object"==typeof e.decoration){var i=e.decoration;void 0!==i.top&&(r.style.marginTop=i.top+"px"),void 0!==i.left&&(r.style.marginLeft=i.left+"px"),void 0!==i.right&&(r.style.marginRight=i.right+"px"),void 0!==i.bottom&&(r.style.marginBottom=i.bottom+"px")}var o=void 0!==e.type?e.type:null,a=this._templateChildren.find(function(e){return e.type===o}),s=window.__QT_SHARED_TEMPLATES__,u=s&&null!=o?s.get(o):null;if(!a&&u&&u.dom&&(a=u),a||(a=this._templateChildren.find(function(e){return null===e.type})),!a&&s&&s.size>0){var l=s.values().next().value;l&&l.dom&&(a=l)}if(!a&&this._templateChildren.length>0&&(a=this._templateChildren[0]),a&&a.dom){var c=a.dom.cloneNode(!0);c.removeAttribute("data-template"),c.removeAttribute("id"),c.style.display="",c.style.position="relative",ua(c),a.component&&a.component.props&&this._bindComponentPropsToNode(c,a.component.props,e),this._bindDataToNode(c,e),la(c),"absolute"===c.style.position&&(c.style.width&&(r.style.width=c.style.width),c.style.height&&(r.style.height=c.style.height)),r.appendChild(c)}return r._itemData=e,r._itemPosition=t,r.addEventListener("click",function(){n._dispatchItemClick(t,e)}),r}},{key:"_bindComponentPropsToNode",value:function(e,t,n){var r=this;t&&n&&Object.keys(t).forEach(function(i){var o=t[i];if("string"==typeof o&&o.startsWith("${")&&o.endsWith("}")){var a=(0,jt.Hd)(o,n),s=i.toLowerCase();if("flexstyle"!==s&&"flexstyletemplate"!==s||!a||"object"!=typeof a||r._applyFlexStyleToElement(e,a),"textsize"===s&&void 0!==a){var u="number"==typeof a?a+"px":a;e.style.fontSize=u}"src"===s&&(a&&"object"==typeof a&&(void 0!==a.url?a=a.url:void 0!==a.uri?a=a.uri:void 0!==a.src&&(a=a.src)),"IMG"===e.tagName&&"string"==typeof a&&(e.src=a))}})}},{key:"_bindDataToNode",value:function(e,t){(0,jt.bindTemplateDataToNode)(e,t)}},{key:"_applyFlexStyleToElement",value:function(e,t){if(t&&"object"==typeof t){var n=["gap","rowGap","columnGap"];Object.keys(t).forEach(function(r){if(!n.includes(r)){var i=t[r];if("number"==typeof i)["width","height","minWidth","minHeight","maxWidth","maxHeight","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","margin","marginTop","marginRight","marginBottom","marginLeft","top","left","right","bottom","borderRadius","borderWidth","fontSize","lineHeight","letterSpacing"].includes(r)&&(i+="px");try{e.style[r]=i}catch(t){try{var o=r.replace(/([A-Z])/g,"-$1").toLowerCase();e.style.setProperty(o,i)}catch(e){}}}})}}},{key:"_dispatchItemClick",value:function(e,t){this.dispatchEvent("onItemClick",{position:e,index:e,item:t})}},{key:"_updateLayout",value:function(e){if(Array.isArray(e)){var t=e[0],n=e[1],r=e[2],i=e[3];null!=t&&(this.dom.style.left="number"==typeof t?"".concat(t,"px"):t),null!=n&&(this.dom.style.top="number"==typeof n?"".concat(n,"px"):n),null!=r&&r>0&&(this.dom.style.width="number"==typeof r?"".concat(r,"px"):r),null!=i&&i>0&&(this.dom.style.height="number"==typeof i?"".concat(i,"px"):i),void 0===t&&void 0===n||this.dom.style.position&&"relative"!==this.dom.style.position||(this.dom.style.position="absolute")}else if("object"==typeof e&&null!==e){var o=e.x,a=e.y,s=e.width,u=e.height;null!=o&&(this.dom.style.left="number"==typeof o?"".concat(o,"px"):o),null!=a&&(this.dom.style.top="number"==typeof a?"".concat(a,"px"):a),null!=s&&s>0&&(this.dom.style.width="number"==typeof s?"".concat(s,"px"):s),null!=u&&u>0&&(this.dom.style.height="number"==typeof u?"".concat(u,"px"):u),void 0===o&&void 0===a||this.dom.style.position&&"relative"!==this.dom.style.position||(this.dom.style.position="absolute")}"H"===e||"H"===(null==e?void 0:e.direction)?this._itemContainer.style.flexDirection="row":Array.isArray(e)?(this._itemContainer.style.flexDirection="column",this._itemContainer.style.flexWrap="wrap"):(this._itemContainer.style.flexDirection="column",this._itemContainer.style.flexWrap="nowrap")}},{key:"_applyFlexStyle",value:function(e){var t=this;if(e&&"object"==typeof e){var n=["gap","rowGap","columnGap"];Object.keys(e).forEach(function(r){if(!n.includes(r)){var i=e[r];if("number"==typeof i)["width","height","minWidth","minHeight","maxWidth","maxHeight","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","margin","marginTop","marginRight","marginBottom","marginLeft","top","left","right","bottom","borderRadius","borderWidth","fontSize","lineHeight","letterSpacing"].includes(r)&&(i+="px");try{"x"!==r&&"y"!==r&&(t.dom.style[r]=i)}catch(e){try{if("x"!==r&&"y"!==r){var o=r.replace(/([A-Z])/g,"-$1").toLowerCase();t.dom.style.setProperty(o,i)}}catch(e){}}}})}}},{key:"addListData",value:function(e){var t=this;if(Array.isArray(e)){var n=this._listData.length;this._listData=this._listData.concat(e),e.forEach(function(e,r){var i=n+r,o=t._createItemFromData(e,i);o&&t._itemContainer.appendChild(o)})}}},{key:"clearData",value:function(){this._listData=[],this._itemContainer.innerHTML=""}}])}(Bo);function sa(e){var t,n=null!==(t=e.getAttribute("data-template-type"))&&void 0!==t?t:e.getAttribute("type");return null==n?null:isNaN(Number(n))?n:Number(n)}function ua(e){e&&e.nodeType===Node.ELEMENT_NODE&&("DIV"!==e.tagName||e.style.display||(e.style.display="flex"),e.style.boxSizing||(e.style.boxSizing="border-box"))}function la(e){if(e&&e.nodeType===Node.ELEMENT_NODE&&!e.style.width&&!e.style.height){for(var t=0,n=0,r=0;r<e.children.length;r++){var i=e.children[r];if("absolute"===(i.style.position||(i.getAttribute("style")||"").includes("absolute")?"absolute":"")){var o=parseFloat(i.style.width)||0,a=parseFloat(i.style.height)||0;o>t&&(t=o),a>n&&(n=a)}}t>0&&(e.style.width=t+"px"),n>0&&(e.style.height=n+"px")}}function ca(e,t){if(e&&(Array.isArray(t)&&1===t.length&&Array.isArray(t[0])&&(t=t[0]),Array.isArray(t))){for(var n=null,r=0,i=Array.from(e.children||[]);r<i.length;r++){var o=i[r];if(o.classList&&o.classList.contains("flex-view-item-container")){n=o;break}}n||((n=document.createElement("div")).className="flex-view-item-container",n.style.cssText="display: flex; flex-direction: row; flex-wrap: wrap; align-content: flex-start;",e.appendChild(n));var a=Array.from(e.children||[]).filter(function(e){return e!==n}),s=[];if(a.forEach(function(e){var t=sa(e);if(null!==t)return e.setAttribute("data-template","true"),e.style.display="none",e.setAttribute("data-template-type",String(t)),void s.push({dom:e,type:t});var n=e.querySelectorAll?Array.from(e.querySelectorAll("[type], [data-template-type]")):[];if(n.length>0)return e.style.display="none",void n.forEach(function(e){var t=sa(e);e.setAttribute("data-template","true"),e.style.display="none",null!==t&&e.setAttribute("data-template-type",String(t)),s.push({dom:e,type:t})});e.setAttribute("data-template","true"),e.style.display="none",s.push({dom:e,type:null})}),n.innerHTML="",0!==t.length){if(0===s.length){var u=window.__QT_SHARED_TEMPLATES__;if(u&&u.size>0){var l=Array.from(u.values()).filter(function(e){return e&&e.dom});l.length>0&&l.forEach(function(e){e.dom.setAttribute("data-template","true"),e.dom.style.display="none";var t=sa(e.dom);null!==t&&e.dom.setAttribute("data-template-type",String(t)),s.push({dom:e.dom,type:t})})}}0!==s.length&&(t.forEach(function(e,t){var r=document.createElement("div");if(r.setAttribute("data-index",t),r.setAttribute("data-position",t),r._itemData=e,r._itemPosition=t,e&&e.decoration&&"object"==typeof e.decoration){var i=e.decoration;void 0!==i.top&&(r.style.marginTop=i.top+"px"),void 0!==i.left&&(r.style.marginLeft=i.left+"px"),void 0!==i.right&&(r.style.marginRight=i.right+"px"),void 0!==i.bottom&&(r.style.marginBottom=i.bottom+"px")}var o=e&&void 0!==e.type?e.type:null,a=s.find(function(e){return e.type===o});a||(a=s.find(function(e){return null===e.type})),a||(a=s[0]);var u,l,c=a.dom.cloneNode(!0);c.removeAttribute("data-template"),c.removeAttribute("id"),c.style.display="",c.style.position="relative",ua(c),u=c,l=e,(0,jt.bindTemplateDataToNode)(u,l),la(c),"absolute"===c.style.position&&(c.style.width&&(r.style.width=c.style.width),c.style.height&&(r.style.height=c.style.height)),r.appendChild(c),n.appendChild(r)}),requestAnimationFrame(function(){return(0,jt.u6)(n)}))}}}function da(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}var ha={enabled:!1,duration:300},fa=new Set;function pa(){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?da(Object(n),!0).forEach(function(t){(0,b.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):da(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},ha)}var va=function(){return L(function e(t){x(this,e),this.context=t,this.name="",this.mode="normal"},[{key:"setFadeEnabled",value:function(e){ha.enabled=!0===e,fa.forEach(function(e){e&&"function"==typeof e.updateFadeConfig&&e.updateFadeConfig(ha)});for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return O(n,null)}},{key:"setFadeDuration",value:function(e){ha.duration="number"==typeof e?e:300,fa.forEach(function(e){e&&"function"==typeof e.updateFadeConfig&&e.updateFadeConfig(ha)});for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return O(n,null)}},{key:"getFadeConfig",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return O(t,ha)}},{key:"init",value:(e=l(c.mark(function e(){var t,n,r,i,o=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=o.length,n=new Array(t),r=0;r<t;r++)n[r]=o[r];return(i=n&&n.length?n[n.length-1]:null)&&"function"==typeof i.resolve&&i.resolve(!0),e.abrupt("return",Promise.resolve(!0));case 1:case"end":return e.stop()}},e)})),function(){return e.apply(this,arguments)})},{key:"destroy",value:function(){}}]);var e}();new va;function ya(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return ma(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ma(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function ma(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ga(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function _a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ga(Object(n),!0).forEach(function(t){(0,b.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ga(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ba(e,t,n){return t=vn(t),pn(e,wa()?Reflect.construct(t,n||[],vn(e).constructor):t.apply(e,n))}function wa(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(wa=function(){return!!e})()}function ka(e,t,n,r){var i=yn(vn(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof i?function(e){return i.apply(n,e)}:i}var Ea=function(e){function t(e,n,r){var i,o;return x(this,t),(i=ba(this,t,[e,n,r])).tagName="FastListView",i.dom=document.createElement("div"),i.dom.setAttribute("data-component-name","FastListView"),i._listData=[],i._templateChildren=[],i._singletonTemplates=[],i._horizontal=!1,i._spanCount=0,i._fadeConfig=pa(),i._focusedIndex=-1,i._itemContainer=document.createElement("div"),i._itemContainer.className="fast-list-item-container",i._itemContainer.style.cssText="display: flex; flex-direction: column; align-content: flex-start;",i.dom.appendChild(i._itemContainer),i.dom.style.cssText="overflow: auto; display: block;",i.dom.__fastListViewInstance=i,i._itemContainer.__fastListViewInstance=i,i._templateCaptured=!1,y(n,i),o=i,fa.add(o),i._observer=new MutationObserver(function(e){e.forEach(function(e){"childList"===e.type&&e.addedNodes.forEach(function(e){e!==i._itemContainer&&e.nodeType===Node.ELEMENT_NODE&&i._processTemplateNode(e)})})}),i._observer.observe(i.dom,{childList:!0,subtree:!1}),i}return gn(t,e),L(t,[{key:"updateFadeConfig",value:function(e){this._fadeConfig=_a({},e)}},{key:"defaultStyle",value:function(){return{display:"block",overflow:"auto",boxSizing:"border-box"}}},{key:"_processTemplateNode",value:function(e){var t=this;if(e&&e!==this._itemContainer&&e.nodeType===Node.ELEMENT_NODE){var n=function(e){var t,n=null!==(t=e.getAttribute("data-template-type"))&&void 0!==t?t:e.getAttribute("type");return null==n||""===n?null:isNaN(Number(n))?n:Number(n)},r=function(e){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=n(e);if(r)return t._singletonTemplates.some(function(t){return t.dom===e})||(t._singletonTemplates.push({dom:e,tagName:e.tagName,component:null,type:i}),e.setAttribute("data-singleton","true")),void(e.style.display="none");t._templateChildren.some(function(t){return t.dom===e})||(t._templateChildren.push({dom:e,tagName:e.tagName,component:null,type:i}),e.setAttribute("data-template","true"),null!==i&&e.setAttribute("data-template-type",String(i))),e.style.display="none"},i=e.hasAttribute&&e.hasAttribute("singleton"),o=n(e);if(!i&&null===o&&e.querySelectorAll){var a=Array.from(e.querySelectorAll("[type], [data-template-type], [singleton]"));if(a.length>0)return e.style.display="none",void a.forEach(function(e){r(e,e.hasAttribute("singleton"))})}i?r(e,!0):r(e)}}},{key:"_shouldDebugTailTemplate",value:function(e){return 1004===e||1002===e}},{key:"_isTailTemplate",value:function(e){return 1004===e||1002===e}},{key:"updateProperty",value:function(e,n){switch(e){case"clipChildren":this._clipChildren=!0===n||"true"===n||""===n,this._clipChildren?this.dom.style.overflow="auto":this.dom.style.overflow="visible",this._updateLayoutDirection();break;case"horizontal":this._horizontal=!0===n||"true"===n||""===n,this._horizontal?this.dom.setAttribute("horizontal",""):this.dom.removeAttribute("horizontal"),this._updateLayoutDirection();break;case"spanCount":case"span-count":this._spanCount=n>0?n:0,this._spanCount>0?this.dom.setAttribute("span-count",String(this._spanCount)):this.dom.removeAttribute("span-count"),this._updateLayoutDirection();break;case"listData":case"list-data":this.setListData(n);break;case"list":Array.isArray(n)?this.setListData(n):"string"==typeof n&&n.startsWith("${")?(this.dom.setAttribute("list",n),this._pendingListValue=n):this.setListData(n);break;default:"string"==typeof n&&n.startsWith("${")&&this.dom.setAttribute(e,n),ka(t,"updateProperty",this,3)([e,n])}}},{key:"_updateLayoutDirection",value:function(){var e=!1===this._clipChildren?"visible":"auto",t=!1===this._clipChildren?"visible":"hidden";this._spanCount>0?(this._itemContainer.style.display="grid",this._itemContainer.style.gridTemplateColumns="repeat(".concat(this._spanCount,", 1fr)"),this._itemContainer.style.flexDirection="",this._itemContainer.style.flexWrap="",this._itemContainer.style.overflowX=t,this._itemContainer.style.overflowY=e):this._horizontal?(this._itemContainer.style.display="flex",this._itemContainer.style.flexDirection="row",this._itemContainer.style.flexWrap="nowrap",this._itemContainer.style.gridTemplateColumns="",this._itemContainer.style.overflowX=e,this._itemContainer.style.overflowY=t):(this._itemContainer.style.display="flex",this._itemContainer.style.flexDirection="column",this._itemContainer.style.flexWrap="nowrap",this._itemContainer.style.gridTemplateColumns="",this._itemContainer.style.overflowX=t,this._itemContainer.style.overflowY=e)}},{key:"_isSingleton",value:function(e){return!(!e.props||!e.props.singleton)||!!(e.dom&&e.dom.hasAttribute&&e.dom.hasAttribute("singleton"))}},{key:"insertChild",value:function(e,t){var n=this;if(e&&e.dom){if(e.pId&&e.pId!==this.id){var r=this._singletonTemplates.find(function(t){return t.component&&t.component.id===e.pId})||this._templateChildren.find(function(t){return t.component&&t.component.id===e.pId});if(r)return void(r.component&&r.component.insertChild&&r.component.insertChild(e,t))}if(this._isSingleton(e)){if(!this._singletonTemplates.some(function(t){return t.dom===e.dom})){var i=null;if(e.props&&void 0!==e.props.type)i=e.props.type;else if(e.dom.hasAttribute("type")){var o=e.dom.getAttribute("type");i=null!==o?isNaN(Number(o))?o:Number(o):null}this._singletonTemplates.push({dom:e.dom,tagName:e.tagName,id:e.id,component:e,type:i}),this._shouldDebugTailTemplate(i),e.dom.setAttribute("data-singleton","true")}e.dom.style.display="none"}else{if(!this._templateChildren.some(function(t){return t.dom===e.dom})){var a=null;if(e.props&&void 0!==e.props.type)a=e.props.type;else if(e.dom.hasAttribute("type")){var s=e.dom.getAttribute("type");a=null!==s?isNaN(Number(s))?s:Number(s):null}var u={dom:e.dom,tagName:e.tagName,id:e.id,component:e,type:a};this._templateChildren.push(u),this._shouldDebugTailTemplate(a),e.dom.setAttribute("data-template","true")}e.dom.style.display="none"}this.dom.contains(e.dom)||(this._itemContainer&&this.dom.contains(this._itemContainer)?this.dom.insertBefore(e.dom,this._itemContainer):this.dom.appendChild(e.dom)),this._listData.length>0&&!this._rerenderScheduled&&(this._rerenderScheduled=!0,requestAnimationFrame(function(){n._rerenderScheduled=!1,n._renderItems()}))}}},{key:"beforeChildMount",value:(r=l(c.mark(function e(n,r){var i,o,a,s,u,l;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!n||!n.dom){e.next=4;break}if(!n.pId||n.pId===this.id){e.next=3;break}if(!(i=this._singletonTemplates.find(function(e){return e.component&&e.component.id===n.pId})||this._templateChildren.find(function(e){return e.component&&e.component.id===n.pId}))){e.next=3;break}if(!i.component||!i.component.beforeChildMount){e.next=1;break}return e.next=1,i.component.beforeChildMount(n,r);case 1:return e.next=2,ka(t,"beforeChildMount",this,3)([n,r]);case 2:return e.abrupt("return");case 3:this._isSingleton(n)?(this._singletonTemplates.some(function(e){return e.dom===n.dom})||(o=null,n.props&&void 0!==n.props.type?o=n.props.type:n.dom.hasAttribute("type")&&(a=n.dom.getAttribute("type"),o=null!==a?isNaN(Number(a))?a:Number(a):null),this._singletonTemplates.push({dom:n.dom,tagName:n.tagName,id:n.id,component:n,type:o}),this._shouldDebugTailTemplate(o),n.dom.setAttribute("data-singleton","true")),n.dom.style.display="none"):(this._templateChildren.some(function(e){return e.dom===n.dom})||(s=null,n.props&&void 0!==n.props.type?s=n.props.type:n.dom.hasAttribute("type")&&(u=n.dom.getAttribute("type"),s=null!==u?isNaN(Number(u))?u:Number(u):null),l={dom:n.dom,tagName:n.tagName,id:n.id,component:n,type:s},this._templateChildren.push(l),this._shouldDebugTailTemplate(s),n.dom.setAttribute("data-template","true")),n.dom.style.display="none"),this.dom.contains(n.dom)||(this._itemContainer&&this.dom.contains(this._itemContainer)?this.dom.insertBefore(n.dom,this._itemContainer):this.dom.appendChild(n.dom));case 4:return e.next=5,ka(t,"beforeChildMount",this,3)([n,r]);case 5:case"end":return e.stop()}},e,this)})),function(e,t){return r.apply(this,arguments)})},{key:"_captureTemplatesFromDOM",value:function(){this._templateCaptured=!0}},{key:"setListData",value:function(e){var t=this;if(Array.isArray(e)&&1===e.length&&Array.isArray(e[0])&&(e=e[0]),Array.isArray(e)){this._listData=e;var n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;t._templateChildren.length>0||t._singletonTemplates.length>0||e>=10?t._renderItems():setTimeout(function(){return n(e+1)},50)};setTimeout(function(){return n()},0)}}},{key:"setListDataWithParams",value:function(e,t,n){if(Array.isArray(e)&&1===arguments.length){var r=s(e,3);e=r[0],t=r[1],n=r[2]}this.setListData(e)}},{key:"addListDataWithParams",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(Array.isArray(e)&&1===arguments.length){var n=s(e,2);e=n[0],t=n[1]}if(t>0&&this._listData.length>0){var r=Math.max(this._listData.length-t,0);this.deleteItem(r,this._listData.length-r)}this.addListData(e)}},{key:"deleteItemRange",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;if(Array.isArray(e)&&1===arguments.length){var n=s(e,2);e=n[0],t=n[1]}this.deleteItem(Number(e)||0,Number(t)||0)}},{key:"updateItemRange",value:function(e,t,n){var r;if(Array.isArray(e)&&1===arguments.length){var i=s(e,3);e=i[0],t=i[1],n=i[2]}var o=Number(e)||0,a=Number(t)||0,u=Array.isArray(n)?n:[];(r=this._listData).splice.apply(r,[o,a].concat(k(u))),this._renderItems()}},{key:"insertItemRange",value:function(e,t){var n;if(Array.isArray(e)&&1===arguments.length){var r=s(e,2);e=r[0],t=r[1]}var i=Number(e)||0,o=Array.isArray(t)?t:[];(n=this._listData).splice.apply(n,[i,0].concat(k(o))),this._renderItems()}},{key:"_renderItems",value:function(){var e=this;this._itemContainer.innerHTML="",this._templateChildren.forEach(function(e){e.dom&&(e.dom.style.display="none")});var t=new Set,r=[],i=[];if(this._singletonTemplates.forEach(function(n){var o=e._createSingletonItem(n,t);o&&(o.isTailTemplate?i.push(o.element):r.push(o.element))}),r.forEach(function(t){e._itemContainer.appendChild(t)}),0!==this._listData.length){if(this._listData.forEach(function(n,r){if(!t.has(n.type)){var i=e._createItemFromData(n,r);i&&e._itemContainer.appendChild(i)}}),i.forEach(function(t){e._itemContainer.appendChild(t)}),void 0!==this._selectedPosition&&this._selectedPosition>=0){var o=this._itemContainer.children;if(this._selectedPosition<o.length){var a=o[this._selectedPosition];if(a&&!a.hasAttribute("selected")){a.setAttribute("selected","true");for(var s=a.children,u=0;u<s.length;u++)s[u].setAttribute("selected","true");a.querySelectorAll("[duplicateparentstate]").forEach(function(e){e.setAttribute("selected","true")})}}}requestAnimationFrame(function(){var t=n.g.__TV_FOCUS_MANAGER__;t&&t.initShowOnStateForElement&&t.initShowOnStateForElement(e._itemContainer)})}}},{key:"_createSingletonItem",value:function(e,t){var n=this;if(null==e||!e.dom)return null;var r=null,i=-1;if(null!==e.type&&void 0!==e.type&&(i=this._listData.findIndex(function(t){return(null==t?void 0:t.type)===e.type}),r=i>=0?this._listData[i]:null),!r)return e.dom.style.display="none",null;e.dom.style.display="",null!==r.type&&void 0!==r.type?t.add(r.type):null!==e.type&&void 0!==e.type&&t.add(e.type),r.style&&this._applyStyleToElement(e.dom,r.style);var o=document.createElement("div");o.setAttribute("data-index",i),o.setAttribute("data-position",i),o._itemData=r,o._itemPosition=i,this._applyDecorationToElement(o,r.decoration||null);var a=this._isTailTemplate(e.type);if(this._spanCount>0&&a&&(o.style.gridColumn="1 / -1"),a);return o.appendChild(e.dom),o.addEventListener("click",function(e){var t=n._findNestedItemMeta(null==e?void 0:e.target,o);t&&t.itemData!==r&&r&&"object"==typeof r&&Array.isArray(r.itemList)?n._dispatchItemClick(t.position,t.itemData,i):n._dispatchItemClick(i,r)}),e.component&&"function"==typeof e.component.dispatchEvent&&requestAnimationFrame(function(){var t,n,o;e.component.dispatchEvent("bindItem",{pageIndex:null!==(t=r.pageIndex)&&void 0!==t?t:0,position:null!==(n=r.position)&&void 0!==n?n:i,index:null!==(o=r.position)&&void 0!==o?o:i,item:r})}),{element:o,isTailTemplate:a}}},{key:"_applyStyleToElement",value:function(e,t){t&&"object"==typeof t&&Object.keys(t).forEach(function(n){var r=t[n];"number"==typeof r&&(["width","height","minWidth","minHeight","maxWidth","maxHeight","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","margin","marginTop","marginRight","marginBottom","marginLeft","top","left","right","bottom","borderRadius","borderWidth"].includes(n)&&(r+="px"));e.style[n]=r})}},{key:"_applyDecorationToElement",value:function(e,t){e&&e.style&&(e.style.marginTop="",e.style.marginLeft="",e.style.marginRight="",e.style.marginBottom="",t&&"object"==typeof t&&(void 0!==t.top&&(e.style.marginTop=t.top+"px"),void 0!==t.left&&(e.style.marginLeft=t.left+"px"),void 0!==t.right&&(e.style.marginRight=t.right+"px"),void 0!==t.bottom&&(e.style.marginBottom=t.bottom+"px")))}},{key:"_createItemFromData",value:function(e,t){var n,r,i=this,o=document.createElement("div");o.setAttribute("data-index",t),o.setAttribute("data-position",t),o.__fastListViewInstance=this;var a=void 0!==e.type?e.type:null,s=this._templateChildren.find(function(e){return e.type===a}),u=window.__QT_SHARED_TEMPLATES__,l=u&&null!=a?u.get(a):null;if(!s&&l&&l.dom&&(s=l),s||(s=this._templateChildren.find(function(e){return null===e.type})),!s&&u&&u.size>0){var c=u.values().next().value;c&&c.dom&&(s=c)}if(!s&&this._templateChildren.length>0&&(s=this._templateChildren[0]),s&&s.dom){var d=s.dom.cloneNode(!0);d.removeAttribute("data-template"),d.removeAttribute("id"),d.style.position="relative",d.style.left="auto",d.style.top="auto",d.style.display="",s.component&&s.component.props&&this._bindComponentPropsToNode(d,s.component.props,e,{itemList:this._listData}),this._bindDataToNode(d,e,{itemList:this._listData}),o.appendChild(d),requestAnimationFrame(function(){i._processChildListData(o),(0,jt.u6)(o)})}if(0===this._templateChildren.length){var h=e.text||e.title||e.name||"Item ".concat(t),f=document.createElement("span");f.textContent=h,f.style.cssText="color: white; font-size: 14px; padding: 5px; background: #333; margin: 5px; border-radius: 4px;",o.appendChild(f)}if(e.decoration){var p=e.decoration;void 0!==p.top&&(o.style.marginTop=p.top+"px"),void 0!==p.left&&(o.style.marginLeft=p.left+"px"),void 0!==p.right&&(o.style.marginRight=p.right+"px"),void 0!==p.bottom&&(o.style.marginBottom=p.bottom+"px")}var v=this._isTailTemplate(null!==(n=null===(r=s)||void 0===r?void 0:r.type)&&void 0!==n?n:a);return this._spanCount>0&&v&&(o.style.gridColumn="1 / -1"),o._itemData=e,o._itemPosition=t,o.addEventListener("click",function(n){var r=i._findNestedItemMeta(null==n?void 0:n.target,o);r&&r.itemData!==e&&e&&"object"==typeof e&&Array.isArray(e.itemList)?i._dispatchItemClick(r.position,r.itemData,t):i._dispatchItemClick(t,e)}),this._fadeConfig.enabled&&(o.style.opacity="0",o.style.transition="opacity ".concat(this._fadeConfig.duration,"ms ease-in-out"),requestAnimationFrame(function(){requestAnimationFrame(function(){o.style.opacity="1"})})),o}},{key:"_bindComponentPropsToNode",value:function(e,t,n){var r=this;if(t&&n){var i=_a(_a({},arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}),n);Object.keys(t).forEach(function(n){var o=t[n];if("string"==typeof o&&o.startsWith("${")&&o.endsWith("}")){var a=(0,jt.Hd)(o,i),s=n.toLowerCase();if("list"===s||"listdata"===s){if(void 0!==a&&Array.isArray(a)||(a=(0,jt.Hd)(o,i)),Array.isArray(a)){var u=window.__HIPPY_COMPONENT_REGISTRY__;if(u){var l=u.get(e);l&&"function"==typeof l.setListData?l.setListData(a):e._qtListData=a}else e._qtListData=a}return}if(("flexstyle"===s||"flexstyletemplate"===s)&&a&&"object"==typeof a){var c=window.__HIPPY_COMPONENT_REGISTRY__,d=c?c.get(e):null;d&&"function"==typeof d.updateProperty?d.updateProperty(n,a):r._applyFlexStyleToElement(e,a)}if(("textsize"===s||"fontsize"===s)&&void 0!==a){var h=window.__HIPPY_COMPONENT_REGISTRY__,f=h?h.get(e):null;if(f&&"function"==typeof f.updateProperty)f.updateProperty(n,a);else{var p="number"==typeof a?a+"px":a;e.style.fontSize=p}}if("src"===s){a&&"object"==typeof a&&(void 0!==a.url?a=a.url:void 0!==a.uri?a=a.uri:void 0!==a.src&&(a=a.src));var v=window.__HIPPY_COMPONENT_REGISTRY__,y=v?v.get(e):null;y&&"function"==typeof y.updateProperty?y.updateProperty(n,a):"IMG"===e.tagName&&"string"==typeof a&&(e.src=a)}}})}}},{key:"_bindDataToNode",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};(0,jt.bindTemplateDataToNode)(e,t,{scope:n,onListData:function(e,t){e._qtListData=t,e.setAttribute("data-has-list","true")}})}},{key:"_replacePlaceholders",value:function(e,t){return(0,jt.vy)(e,t)}},{key:"_processChildListData",value:function(e){var t=function(e){if(e._qtListData){var n=window.__HIPPY_COMPONENT_REGISTRY__;if(n){var r=n.get(e);if(r&&"function"==typeof r.setListData)r.setListData(e._qtListData);else{var i,o,a,s=null===(i=e.getAttribute)||void 0===i?void 0:i.call(e,"data-component-name"),u=!(null===(o=e.querySelector)||void 0===o||!o.call(e,"[type], [data-template-type], [data-template], [data-singleton]"));"QtFlexView"===s?ca(e,e._qtListData):("FastListView"===s||"ListView"===s||null!==(a=e.hasAttribute)&&void 0!==a&&a.call(e,"data-has-list")&&u)&&function(e,t){if(!e)return;Array.isArray(t)&&1===t.length&&Array.isArray(t[0])&&(t=t[0]);if(!Array.isArray(t))return;"none"===e.style.display&&(e.style.display="");var n=Array.from(e.children||[]).find(function(e){return e.classList&&e.classList.contains("fast-list-item-container")});n||((n=document.createElement("div")).className="fast-list-item-container",e.appendChild(n));!function(e,t){var n=e.hasAttribute("horizontal")||""===e.getAttribute("horizontal"),r=e.getAttribute("spanCount")||e.getAttribute("span-count")||"0",i=Number(r)||0;if(i>0)return t.style.display="grid",t.style.gridTemplateColumns="repeat(".concat(i,", 1fr)"),t.style.flexDirection="",t.style.flexWrap="",t.style.overflowX="hidden",void(t.style.overflowY="auto");if(t.style.display="flex",t.style.gridTemplateColumns="",n)return t.style.flexDirection="row",t.style.flexWrap="nowrap",t.style.overflowX="auto",void(t.style.overflowY="hidden");t.style.flexDirection="column",t.style.flexWrap="nowrap",t.style.overflowX="hidden",t.style.overflowY="auto"}(e,n);var r=function(e,t){if(e&&t&&t.decoration&&"object"==typeof t.decoration){var n=t.decoration;void 0!==n.top&&(e.style.marginTop=n.top+"px"),void 0!==n.left&&(e.style.marginLeft=n.left+"px"),void 0!==n.right&&(e.style.marginRight=n.right+"px"),void 0!==n.bottom&&(e.style.marginBottom=n.bottom+"px")}},i=function(e,t){var n=[],r=Array.from(e.children||[]).filter(function(e){return e!==t});return r.forEach(function(e){var t,r,i=Sa(e),o=(null===(t=e.hasAttribute)||void 0===t?void 0:t.call(e,"singleton"))||(null===(r=e.hasAttribute)||void 0===r?void 0:r.call(e,"data-singleton"));if(null!==i||o)return e.setAttribute(o?"data-singleton":"data-template","true"),null!==i&&e.setAttribute("data-template-type",String(i)),e.style.display="none",void n.push({dom:e,type:i,singleton:o});var a=e.querySelectorAll?Array.from(e.querySelectorAll("[type], [data-template-type], [singleton], [data-singleton]")):[];if(a.length>0)return e.style.display="none",void a.forEach(function(e){var t,r,i=Sa(e),o=(null===(t=e.hasAttribute)||void 0===t?void 0:t.call(e,"singleton"))||(null===(r=e.hasAttribute)||void 0===r?void 0:r.call(e,"data-singleton"));e.setAttribute(o?"data-singleton":"data-template","true"),null!==i&&e.setAttribute("data-template-type",String(i)),e.style.display="none",n.push({dom:e,type:i,singleton:o})});e.setAttribute("data-template","true"),e.style.display="none",n.push({dom:e,type:null,singleton:!1})}),n}(e,n),o=window.__QT_SHARED_TEMPLATES__;if(n.innerHTML="",0===t.length)return;var a=new Set,s=i.filter(function(e){return e.singleton}),u=i.filter(function(e){return!e.singleton}),l=[],c=[];s.forEach(function(e){var n=null,i=-1;if(null!==e.type&&void 0!==e.type?n=(i=t.findIndex(function(t){return(null==t?void 0:t.type)===e.type}))>=0?t[i]:null:(i=0,n=t[0]||null),n){var o=document.createElement("div");o.setAttribute("data-index",i),o.setAttribute("data-position",i),o._itemData=n,o._itemPosition=i,r(o,n);var s=1004===e.type||1002===e.type;spanCount>0&&s&&(o.style.gridColumn="1 / -1"),e.dom.style.display="",Aa(e.dom,n,t),ua(e.dom),o.appendChild(e.dom),null!==n.type&&void 0!==n.type&&a.add(n.type),s?c.push(o):l.push(o)}else e.dom.style.display="none"}),l.forEach(function(e){n.appendChild(e)});var d=u.length>0?u:i;t.forEach(function(e,i){var s;if(!a.has(null==e?void 0:e.type)){var u=d.find(function(t){return t.type===(null==e?void 0:e.type)});if(!u&&o&&null!==(null==e?void 0:e.type)&&void 0!==(null==e?void 0:e.type)){var l=o.get(e.type);null!=l&&l.dom&&(u=l)}if(u||(u=d.find(function(e){return null===e.type})),!u&&o&&o.size>0){var c=o.values().next().value;null!=c&&c.dom&&(u=c)}if(u||(u=d[0]),null!==(s=u)&&void 0!==s&&s.dom){var h=document.createElement("div");h.setAttribute("data-index",i),h.setAttribute("data-position",i),h._itemData=e,h._itemPosition=i,r(h,e);var f=u.dom.cloneNode(!0);f.removeAttribute("data-template"),f.removeAttribute("data-singleton"),f.removeAttribute("id"),f.style.display="",f.style.position="relative",Aa(f,e,t),ua(f),h.appendChild(f),n.appendChild(h)}}}),c.forEach(function(e){n.appendChild(e)}),requestAnimationFrame(function(){return(0,jt.u6)(n)})}(e,e._qtListData)}}delete e._qtListData}e.children&&Array.from(e.children).forEach(function(e){return t(e)})};t(e)}},{key:"_findNestedItemMeta",value:function(e,t){var n=e;for(n&&n.nodeType===Node.TEXT_NODE&&(n=n.parentElement);n&&n!==t;){if(void 0!==n._itemData&&void 0!==n._itemPosition)return{position:n._itemPosition,itemData:n._itemData};n=n.parentElement}return null}},{key:"_dispatchItemClick",value:function(e,t,n){var r={position:e,index:e,item:t};null!=n&&(r.parentPosition=n),this.dispatchEvent("onItemClick",r)}},{key:"_dispatchItemFocused",value:function(e,t,n){var r={position:e,index:e,item:t,hasFocus:!!n,isFocused:!!n};this.dispatchEvent("onItemFocused",r)}},{key:"notifyItemFocusChanged",value:function(e,t){if(e&&this._itemContainer){var n=this._itemContainer.children,r=n.length;if(0!==r){for(var i=-1,o=null,a=0;a<r;a++)if(n[a]===e||n[a].contains(e)){i=a,o=n[a];break}if(-1!==i){var s=this._listData[i];if(o&&s&&"object"==typeof s&&Array.isArray(s.itemList)){var u=this._findNestedItemMeta(e,o);if(u&&u.itemData){var l={position:u.position,index:u.position,item:u.itemData,hasFocus:!!t,isFocused:!!t,parentPosition:i};return void this.dispatchEvent("onItemfocused",l)}}if(t){if(this._focusedIndex===i)return;this._focusedIndex=i,this._selectedPosition!==i&&this.setSelectChildPosition(i,!1)}else{if(this._focusedIndex!==i)return;this._focusedIndex=-1}this._dispatchItemFocused(i,s,t)}}}}},{key:"addListData",value:function(e){var t=this;if(Array.isArray(e)){var n=this._listData.length;this._listData=this._listData.concat(e),e.forEach(function(e,r){var i=n+r,o=t._createItemFromData(e,i);o&&t._itemContainer.appendChild(o)})}}},{key:"updateItem",value:function(e,t){if(!(e<0||e>=this._listData.length)){this._listData[e]=_a(_a({},this._listData[e]),t);var n=this._itemContainer.children[e];if(n){var r=this._createItemFromData(this._listData[e],e);this._itemContainer.replaceChild(r,n)}}}},{key:"deleteItem",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this._listData.splice(e,t);for(var n=0;n<t;n++){var r=this._itemContainer.children[e];r&&this._itemContainer.removeChild(r)}Array.from(this._itemContainer.children).forEach(function(e,t){e.setAttribute("data-index",t),e.setAttribute("data-position",t),e._itemPosition=t})}},{key:"clearData",value:function(){this._listData=[],this._itemContainer.innerHTML=""}},{key:"scrollToPosition",value:function(e,t){var n=this._itemContainer.children[e];n&&n.scrollIntoView({behavior:"smooth",block:"start"})}},{key:"requestFocus",value:function(e){var t=this._itemContainer.children;if(!(e<0||e>=t.length)){var r=t[e];if(r){var i=r.querySelector('[focusable="true"], [focusable="1"], [focusable]')||r,o=n.g.__TV_FOCUS_MANAGER__;o?(o.updateFocusableElements(),o._doFocusElement(i)):i.focus()}}}},{key:"setItemFocused",value:function(e){Array.isArray(e)&&1===arguments.length&&(e=e[0]),e=Number(e),Number.isFinite(e)&&(this._focusedIndex=e,this.setSelectChildPosition(e,!1),this.requestChildFocus(e))}},{key:"clearFocus",value:function(){this._focusedIndex=-1}},{key:"scrollToFocused",value:function(e){Array.isArray(e)&&1===arguments.length&&(e=e[0]),this.scrollToPosition(e),this.setItemFocused(e)}},{key:"scrollToTop",value:function(){this.dom&&(this.dom.scrollTop=0,this._itemContainer&&(this._itemContainer.scrollTop=0))}},{key:"pausePostTask",value:function(){}},{key:"resumePostTask",value:function(){}},{key:"clearPostTask",value:function(){}},{key:"requestChildFocus",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;Array.isArray(e)&&(e=e[0]);var i=this._itemContainer.children;if(e<0||e>=i.length)return r<10&&0===i.length?void setTimeout(function(){return t.requestChildFocus(e,r+1)},100):void 0;var o=i[e];if(o){var a=o.querySelector('[focusable="true"], [focusable="1"], [focusable]')||o,s=n.g.__TV_FOCUS_MANAGER__;s?(s.updateFocusableElements(),s._doFocusElement(a)):a.focus()}}},{key:"setSelectChildPosition",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=n.g.__TV_FOCUS_MANAGER__,i=function(e,t,n){var r;return e.getAttribute(t)||e.getAttribute("data-"+t)||(null===(r=window.getComputedStyle(e).getPropertyValue(n))||void 0===r?void 0:r.trim())};void 0!==this._selectedPosition&&this._selectedPosition>=0&&this._itemContainer.querySelectorAll('[selected="true"], [selected=""]').forEach(function(e){if(e.removeAttribute("selected"),!(e.classList.contains("focused")||r&&r.focusedElement===e)&&r){var t,n=null===(t=r.focusedElementOriginalStyles)||void 0===t?void 0:t.get(e),o=i(e,"select-background-color","--select-background-color");if(n&&void 0!==n.backgroundColor){var a=n.backgroundColor,s=a===o||a===(null==o?void 0:o.replace(/\s/g,""))||a===(null==o?void 0:o.replace("rgba","rgb").replace(/,([^,]+)\)$/,"$1)"))?"":a;e.style.backgroundColor=s}else e.style.backgroundColor="";r._removeDuplicateParentStateStyles(e)}});if(this._selectedPosition=e,e>=0){var o=this._itemContainer.children;if(e<o.length){var a=o[e];if(a){a.setAttribute("selected","true");for(var s=a.children,u=0;u<s.length;u++){s[u].setAttribute("selected","true")}if(a.querySelectorAll("[duplicateparentstate]").forEach(function(e){e.setAttribute("selected","true")}),r){r.focusedElement&&(a.contains(r.focusedElement)||r.focusedElement);for(var l=0;l<s.length;l++){var c=s[l];if(!(c.classList.contains("focused")||r.focusedElement===c)){var d=i(c,"select-background-color","--select-background-color");if(d){if(r.focusedElementOriginalStyles||(r.focusedElementOriginalStyles=new Map),!r.focusedElementOriginalStyles.has(c)){var h=c.style.backgroundColor,f=h===d||h===d.replace(/\s/g,"")||h===d.replace("rgba","rgb").replace(/,([^,]+)\)$/,"$1)")?"":h;r.focusedElementOriginalStyles.set(c,{backgroundColor:f})}c.style.backgroundColor=d}r.styler._applyDuplicateParentStateStyles(c,!1)}}}}}}t&&this.requestChildFocus(e)}},{key:"setSpanCount",value:function(e){e>0&&this._itemContainer.style.setProperty("--span-count",e)}},{key:"destroy",value:function(){var e;e=this,fa.delete(e),ka(t,"destroy",this,1)&&ka(t,"destroy",this,3)([])}},{key:"handleFocusNavigation",value:function(e,t){var n=this._itemContainer.children,r=n.length;if(0===r)return null;for(var i=null,o=-1,a=0;a<r;a++)if(n[a]===e||n[a].contains(e)){i=n[a],o=a;break}if(-1===o)return null;if(!this._isAtItemBoundary(i,e,t)){var s=this._handleInternalNavigation(i,e,t);if(s){var u=s.getAttribute("focusable");if("true"===u||"1"===u||""===u)return s}}var l=null,c=this._handleSpatialNavigation(e,t,n,r);if(c.element)return l=c.element,c.index,l;if(0===o&&("up"===t||"left"===t))return this._scrollToBoundary(t,e),null;if(o===r-1&&("down"===t||"right"===t))return this._scrollToBoundary(t,e),null;if(this._spanCount>0){var d=this._handleGridNavigation(o,t,n,r);l=d.element,d.index}else{var h=this._handleListNavigation(o,t,n,r);l=h.element,h.index}return l}},{key:"_isAtItemBoundary",value:function(e,t,n){var r=e.getBoundingClientRect(),i=t.getBoundingClientRect(),o=i.top-r.top,a=r.bottom-i.bottom,s=i.left-r.left,u=r.right-i.right;switch(n){case"up":return o<=10;case"down":return a<=10;case"left":return s<=10;case"right":return u<=10;default:return!1}}},{key:"updateBlockFocusDirections",value:function(e){if(e&&this._itemContainer&&(!e.hasAttribute||!e.hasAttribute("blockFocusDirections")&&!e.hasAttribute("blockfocusdirections"))){var t=this._itemContainer.children,n=t.length;if(0!==n)for(var r=0;r<n;r++)if(t[r]===e||t[r].contains(e)){0;break}}}},{key:"_scrollToBoundary",value:function(e,t){if(this.dom){var n=this._itemContainer?Array.from(this._itemContainer.children):[];if(0!==n.length&&t){for(var r=null,i=-1,o=0;o<n.length;o++)if(n[o]===t||n[o].contains(t)){r=n[o],i=o;break}if(-1!==i){var a=n.map(function(e){return{el:e,rect:e.getBoundingClientRect()}}).filter(function(e){return e.rect.width>0&&e.rect.height>0});if(0!==a.length){var s=r.getBoundingClientRect();if(this._horizontal){if("left"===e){var u=Math.min.apply(Math,k(a.map(function(e){return e.rect.left})));s.left<=u+20&&(this.dom.scrollLeft=0)}else if("right"===e){var l=Math.max.apply(Math,k(a.map(function(e){return e.rect.right})));s.right>=l-20&&(this.dom.scrollLeft=this.dom.scrollWidth)}}else if("up"===e){var c=Math.min.apply(Math,k(a.map(function(e){return e.rect.top})));s.top<=c+20&&(this.dom.scrollTop=0,this.dom.parentElement&&this.dom.parentElement.scrollTop>0&&(this.dom.parentElement.scrollTop=0))}else if("down"===e){var d=Math.max.apply(Math,k(a.map(function(e){return e.rect.bottom})));s.bottom>=d-20&&(this.dom.scrollTop=this.dom.scrollHeight)}}}}}}},{key:"_handleInternalNavigation",value:function(e,t,n){var r=e.querySelectorAll('[focusable="true"], [focusable="1"], [focusable], [data-focusable="true"], [data-focusable], [canfocus="true"], [canFocus="true"], .focusable, [tabindex="0"], [tabindex]');if(r.length<=1)return null;var i=Array.from(r).filter(function(e){var t=e.getAttribute("focusable");if("false"===t||"0"===t)return!1;var n=e.getAttribute("duplicateParentState");return"true"!==n&&""!==n&&!e.hasAttribute("duplicateparentstate")});if(i.length<=1)return null;for(var o=-1,a=0;a<i.length;a++)if(i[a]===t||i[a].contains(t)){o=a;break}if(-1===o)return null;var s=i.map(function(e){return{el:e,rect:e.getBoundingClientRect()}}),u=s[o].rect,l=null,c=1/0;return s.forEach(function(e,t){if(t!==o){var r=e.rect,i=1/0,a=!1;switch(n){case"up":r.bottom<=u.top&&(i=Math.abs(r.left-u.left)+(u.top-r.bottom),a=!0);break;case"down":r.top>=u.bottom&&(i=Math.abs(r.left-u.left)+(r.top-u.bottom),a=!0);break;case"left":r.right<=u.left&&(i=Math.abs(r.top-u.top)+(u.left-r.right),a=!0);break;case"right":r.left>=u.right&&(i=Math.abs(r.top-u.top)+(r.left-u.right),a=!0)}a&&i<c&&(c=i,l=e.el)}}),l}},{key:"_getFocusableInItem",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("true"===e.getAttribute("focusable"))return e;var n=e.querySelectorAll('[focusable="true"]');if(0===n.length)return e;if(1===n.length||!t)return n[0];var r=Array.from(n).map(function(e){return{el:e,rect:e.getBoundingClientRect()}}),i=r[0].el,o=null;return r.forEach(function(e){var n,r=e.rect;switch(t){case"up":n=r.bottom,(null===o||n>o)&&(o=n,i=e.el);break;case"down":n=r.top,(null===o||n<o)&&(o=n,i=e.el);break;case"left":n=r.right,(null===o||n>o)&&(o=n,i=e.el);break;case"right":n=r.left,(null===o||n<o)&&(o=n,i=e.el)}}),i}},{key:"_handleSpatialNavigation",value:function(e,t,n,r){if(!e)return{element:null,index:-1};for(var i=e.getBoundingClientRect(),o=i.left+i.width/2,a=i.top+i.height/2,s=null,u=-1,l=1/0,c=void 0!==this._selectedPosition&&this._selectedPosition>=0,d=0;d<r;d++){var h=n[d];if("none"!==h.style.display)if(c){var f=this._getFocusableInItem(h,t);if(!f||f===e)continue;if(f===h&&"true"!==h.getAttribute("focusable"))continue;var p=f.getBoundingClientRect();if(0===p.width&&0===p.height)continue;var v={x:p.left+p.width/2,y:p.top+p.height/2},y=v.x-o,m=v.y-a,g=!1,_=0,b=0;switch(t){case"up":g=m<-5,_=Math.abs(m),b=Math.abs(y);break;case"down":g=m>5,_=Math.abs(m),b=Math.abs(y);break;case"left":g=y<-5,_=Math.abs(y),b=Math.abs(m);break;case"right":g=y>5,_=Math.abs(y),b=Math.abs(m)}if(g){var w=d===this._selectedPosition;("left"===t||"right"===t)&&Math.abs(m)>p.height/2&&(b*=5),("up"===t||"down"===t)&&Math.abs(y)>p.width/2&&(b*=5);var k=_+.5*b;w&&(k-=1e3),k<l&&(l=k,s=f,u=d)}}else{var E=h.querySelectorAll('[focusable="true"]');0===E.length&&"true"===h.getAttribute("focusable")&&h!==e&&E.push(h);var S,A=ya(E);try{for(A.s();!(S=A.n()).done;){var x=S.value;if(x!==e){var C=x.getBoundingClientRect();if(0!==C.width||0!==C.height){var T={x:C.left+C.width/2,y:C.top+C.height/2},L=T.x-o,O=T.y-a,P=!1;switch(t){case"up":P=O<-5;break;case"down":P=O>5;break;case"left":P=L<-5;break;case"right":P=L>5}if(P){var I=Math.sqrt(L*L+O*O);I<l&&(l=I,s=x,u=d)}}}}}catch(e){A.e(e)}finally{A.f()}}}return{element:s,index:u}}},{key:"_handleGridNavigation",value:function(e,t,n,r){for(var i=this._spanCount,o=Math.floor(e/i),a=e%i,s=e;;){switch(t){case"up":o>0?(s-=i,o--):s=-1;break;case"down":o++,(s+=i)>=r&&(s=-1);break;case"left":a>0?(s-=1,a--):s=-1;break;case"right":a<i-1&&s+1<r?(s+=1,a++):s=-1}if(!(s>=0&&s<r))break;var u=this._getFocusableInItem(n[s],t);if(u!==n[s]||"true"===n[s].getAttribute("focusable"))return{element:u,index:s}}return{element:null,index:-1}}},{key:"_handleListNavigation",value:function(e,t,n,r){for(var i=e;;){if(this._horizontal)switch(t){case"left":i>0?i-=1:i=-1;break;case"right":i<r-1?i+=1:i=-1;break;default:i=-1}else switch(t){case"up":i>0?i-=1:i=-1;break;case"down":i<r-1?i+=1:i=-1;break;default:i=-1}if(!(i>=0&&i<r))break;var o=this._getFocusableInItem(n[i],t);if(o!==n[i]||"true"===n[i].getAttribute("focusable"))return{element:o,index:i}}return{element:null,index:-1}}},{key:"_extractValue",value:function(e,t){return(0,jt.Hd)(e,t)}},{key:"_applyFlexStyleToElement",value:function(e,t){t&&"object"==typeof t&&Object.keys(t).forEach(function(n){var r=t[n];"number"==typeof r&&(["width","height","minWidth","minHeight","maxWidth","maxHeight","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","margin","marginTop","marginRight","marginBottom","marginLeft","top","left","right","bottom","borderRadius","borderWidth","fontSize","lineHeight","letterSpacing","gap","rowGap","columnGap"].includes(n)&&(r+="px"));try{e.style[n]=r}catch(t){try{var i=n.replace(/([A-Z])/g,"-$1").toLowerCase();e.style.setProperty(i,r)}catch(e){}}})}},{key:"updateChildzIndex",value:function(){var e=this;if(this.dom){var t=this.context.getModuleByName("UIManagerModule");this.dom.childNodes.forEach(function(n){var r,i=t.findViewById(n.id);i&&(e.exitChildrenStackContext&&void 0!==(null===(r=i.props)||void 0===r||null===(r=r.style)||void 0===r?void 0:r.zIndex)&&i.updateSelfStackContext(),!e.exitChildrenStackContext&&i.updatedZIndex&&i.updateSelfStackContext(!1))})}}}]);var r}(Bo);function Sa(e){var t;if(!e||e.nodeType!==Node.ELEMENT_NODE)return null;var n=null!==(t=e.getAttribute("data-template-type"))&&void 0!==t?t:e.getAttribute("type");return null==n||""===n?null:isNaN(Number(n))?n:Number(n)}function Aa(e,t,n){(0,jt.bindTemplateDataToNode)(e,t,{scope:{itemList:n},onListData:function(e,t){e._qtListData=t,e.setAttribute("data-has-list","true")}})}function xa(e,t,n){return t=vn(t),pn(e,Ca()?Reflect.construct(t,n||[],vn(e).constructor):t.apply(e,n))}function Ca(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Ca=function(){return!!e})()}var Ta=function(e){function t(e,n,r){var i;return x(this,t),(i=xa(this,t,[e,n,r])).tagName="div",i.dom=document.createElement("div"),i.spinner=document.createElement("div"),i.spinner.className="qt-loading-spinner",i.dom.appendChild(i.spinner),i._injectStyles(),i}return gn(t,e),L(t,[{key:"_injectStyles",value:function(){var e="qt-loading-view-styles";if(!document.getElementById(e)){var t=document.createElement("style");t.id=e,t.textContent="\n .qt-loading-spinner {\n width: 100%;\n height: 100%;\n border: 5px solid rgba(200, 200, 200, 0.3);\n border-top-color: #409eff;\n border-radius: 50%;\n animation: qt-loading-spin 0.8s linear infinite;\n box-sizing: border-box;\n }\n @keyframes qt-loading-spin {\n to {\n transform: rotate(360deg);\n }\n }\n ",document.head.appendChild(t)}}},{key:"updateProperty",value:function(e,n){var r,i,o,a,s;"color"===e?n&&(this.spinner.style.borderTopColor=n):(r=t,i="updateProperty",o=this,s=yn(vn(1&(a=3)?r.prototype:r),i,o),2&a&&"function"==typeof s?function(e){return s.apply(o,e)}:s)([e,n])}}])}(Bo);function La(e,t,n){return t=vn(t),pn(e,Oa()?Reflect.construct(t,n||[],vn(e).constructor):t.apply(e,n))}function Oa(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Oa=function(){return!!e})()}var Pa={alpha:"opacity",rotation:"rotate",rotationX:"rotateX",rotationY:"rotateY",rotationZ:"rotateZ",scaleX:"scaleX",scaleY:"scaleY",scaleZ:"scaleZ",translationX:"translateX",translationY:"translateY",translationZ:"translateZ"},Ia={1:"ease",2:"ease-in",3:"cubic-bezier(0.36, 0, 0.66, -0.56)",4:"cubic-bezier(0.68, -0.6, 0.32, 1.6)",5:"cubic-bezier(0.68, -0.55, 0.27, 1.55)",6:"ease-in-out",7:"ease-out",8:"linear",9:"cubic-bezier(0.34, 1.56, 0.64, 1)",10:"cubic-bezier(0.4, 0, 1, 1)",11:"cubic-bezier(0.4, 0, 0.2, 1)",12:"linear"},Na=function(e){function t(e,n,r){var i;return x(this,t),(i=La(this,t,[e,n,r])).tagName="AnimationViewComponent",i.dom=document.createElement("div"),i._animators=new Map,i._animatorSets=new Map,i._runningAnimations=new Map,i._pivotX=null,i._pivotY=null,i}return gn(t,e),L(t,[{key:"defaultStyle",value:function(){return{boxSizing:"border-box",zIndex:0,display:"block",position:"relative"}}},{key:"_getAnimationTarget",value:function(){return this.dom&&this.dom.children.length>0?this.dom.children[0]:this.dom}},{key:"setPivotX",value:function(e){var t=e[0];this._pivotX=t,this._updateTransformOrigin()}},{key:"setPivotY",value:function(e){var t=e[0];this._pivotY=t,this._updateTransformOrigin()}},{key:"resetPivot",value:function(e){this._pivotX=null,this._pivotY=null,this._updateTransformOrigin()}},{key:"_updateTransformOrigin",value:function(){var e=this._getAnimationTarget();null!==this._pivotX&&null!==this._pivotY?e.style.transformOrigin="".concat(this._pivotX,"px ").concat(this._pivotY,"px"):e.style.transformOrigin=""}},{key:"resetAnimators",value:function(e){this._animators.clear(),this._animatorSets.clear(),this.cancelAllAnimations()}},{key:"reset",value:function(e){this.resetAnimators(e)}},{key:"cancelAllAnimations",value:function(){this._runningAnimations.forEach(function(e){try{e.cancel()}catch(e){}}),this._runningAnimations.clear();var e=this._getAnimationTarget();e.style.transform="",e.style.opacity=""}},{key:"animator",value:function(e){var t,n=r(t=e)||w(t)||o(t)||a(),i=n[0],u=(n[1],n[2]),l=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}(n).slice(3),c=l.slice(0,-6),d=s(l.slice(-6),6),h=d[0],f=d[1],p=d[2],v=(d[3],d[4],{id:i,propertyName:u,values:c,duration:h,repeatMode:f,repeatCount:p,interpolator:d[5]});this._animators.set(i,v)}},{key:"animatorSet",value:function(e){var t=s(e,3),n=t[0],r=t[1],i=t[2];this._animatorSets.set(n,{id:n,duration:r,listenAnimator:i,animators:[],relationType:"together"})}},{key:"play",value:function(e){var t=s(e,2),n=t[0],r=t[1],i=this._animatorSets.get(n);i&&(i.animators=[{id:r,type:"play"}])}},{key:"playWith",value:function(e){var t=s(e,2),n=t[0],r=t[1],i=this._animatorSets.get(n);i&&i.animators.length>0&&i.animators.push({id:r,type:"with"})}},{key:"playBefore",value:function(e){var t=s(e,2),n=t[0],r=t[1],i=this._animatorSets.get(n);i&&i.animators.length>0&&i.animators.push({id:r,type:"before"})}},{key:"playAfter",value:function(e){var t=s(e,2),n=t[0],r=t[1],i=this._animatorSets.get(n);i&&i.animators.length>0&&i.animators.push({id:r,type:"after"})}},{key:"playSequentially",value:function(e){var t=e[0],n=e.slice(1),r=this._animatorSets.get(t);r&&(r.animators=n.map(function(e){return{id:e,type:"sequence"}}),r.relationType="sequence")}},{key:"playSequentially1",value:function(e){this.playSequentially([e[0],e[1]])}},{key:"playSequentially2",value:function(e){this.playSequentially([e[0],e[1],e[2]])}},{key:"playSequentially3",value:function(e){this.playSequentially([e[0],e[1],e[2],e[3]])}},{key:"playSequentially4",value:function(e){this.playSequentially([e[0],e[1],e[2],e[3],e[4]])}},{key:"playSequentially5",value:function(e){this.playSequentially([e[0],e[1],e[2],e[3],e[4],e[5]])}},{key:"playTogether",value:function(e){var t=e[0],n=e.slice(1),r=this._animatorSets.get(t);r&&(r.animators=n.map(function(e){return{id:e,type:"together"}}),r.relationType="together")}},{key:"playTogether1",value:function(e){this.playTogether([e[0],e[1]])}},{key:"playTogether2",value:function(e){this.playTogether([e[0],e[1],e[2]])}},{key:"playTogether3",value:function(e){this.playTogether([e[0],e[1],e[2],e[3]])}},{key:"playTogether4",value:function(e){this.playTogether([e[0],e[1],e[2],e[3],e[4]])}},{key:"playTogether5",value:function(e){this.playTogether([e[0],e[1],e[2],e[3],e[4],e[5]])}},{key:"start",value:function(e){var t=Array.isArray(e)?e[0]:e;this._startAnimation(t)}},{key:"startDelay",value:function(e){var t=this,n=e[0],r=e[1];setTimeout(function(){t._startAnimation(n)},r)}},{key:"pause",value:function(e){var t=e[0],n=this._runningAnimations.get(t);n&&n.pause()}},{key:"resume",value:function(e){var t=e[0],n=this._runningAnimations.get(t);n&&n.play()}},{key:"cancel",value:function(e){var t=e[0],n=this._runningAnimations.get(t);n&&(n.cancel(),this._runningAnimations.delete(t))}},{key:"reverse",value:function(e){var t=e[0],n=this._runningAnimations.get(t);n&&n.reverse()}},{key:"_startAnimation",value:function(e){var t=this._animatorSets.get(e);if(t)this._runAnimatorSet(t);else{var n=this._animators.get(e);n&&this._runAnimator(n)}}},{key:"_runAnimator",value:function(e){var t=this,n=this._getAnimationTarget(),r=e.propertyName,i=e.values,o=e.duration,a=e.repeatCount,s=e.interpolator,u=Ia[null==s?void 0:s.type]||"linear",l=-1===a?1/0:a||1,c=2===e.repeatMode?"alternate":"normal",d=this._buildKeyframes(r,i),h=n.animate(d,{duration:o,easing:u,iterations:l,direction:c,fill:"forwards"});this._runningAnimations.set(e.id,h),h.onfinish=function(){t._runningAnimations.delete(e.id)}}},{key:"_runAnimatorSet",value:function(e){var t=this,n=e.animators,r=e.relationType;"together"===r?n.forEach(function(e){var n=t._animators.get(e.id);n&&t._runAnimator(n)}):"sequence"===r&&this._runSequentially(n,0)}},{key:"_runSequentially",value:function(e,t){var n=this;if(!(t>=e.length)){var r=e[t],i=this._animators.get(r.id);if(i){var o=this._getAnimationTarget(),a=i.propertyName,s=i.values,u=i.duration,l=i.repeatCount,c=i.interpolator,d=Ia[null==c?void 0:c.type]||"linear",h=-1===l?1/0:l||1,f=2===i.repeatMode?"alternate":"normal",p=this._buildKeyframes(a,s),v=o.animate(p,{duration:u,easing:d,iterations:h,direction:f,fill:"forwards"});this._runningAnimations.set(i.id,v),v.onfinish=function(){n._runningAnimations.delete(i.id),n._runSequentially(e,t+1)}}else this._runSequentially(e,t+1)}}},{key:"_buildKeyframes",value:function(e,t){var n=Pa[e]||e;if(0===t.length)return[];return["rotate","rotateX","rotateY","rotateZ","scaleX","scaleY","translateX","translateY"].includes(n)?t.map(function(e,r){1===t.length||t.length;var i={};switch(n){case"rotate":i.transform="rotate(".concat(e,"deg)");break;case"rotateX":i.transform="rotateX(".concat(e,"deg)");break;case"rotateY":i.transform="rotateY(".concat(e,"deg)");break;case"rotateZ":i.transform="rotateZ(".concat(e,"deg)");break;case"scaleX":i.transform="scaleX(".concat(e,")");break;case"scaleY":i.transform="scaleY(".concat(e,")");break;case"translateX":i.transform="translateX(".concat(e,"px)");break;case"translateY":i.transform="translateY(".concat(e,"px)")}return i}):"opacity"===n?t.map(function(e){return{opacity:e}}):t.map(function(e){return{[n]:e}})}},{key:"startAnimator",value:function(e){var t=Array.isArray(e)?e[0]:e;this._startAnimation(t)}},{key:"startAnimatorDelay",value:function(e){var t=this,n=Array.isArray(e)?e[0]:e,r=Array.isArray(e)?e[1]:0;setTimeout(function(){t._startAnimation(n)},r)}},{key:"pauseAnimator",value:function(e){var t=Array.isArray(e)?e[0]:e,n=this._runningAnimations.get(t);n&&n.pause()}},{key:"resumeAnimator",value:function(e){var t=Array.isArray(e)?e[0]:e,n=this._runningAnimations.get(t);n&&n.play()}},{key:"cancelAnimator",value:function(e){var t=Array.isArray(e)?e[0]:e,n=this._runningAnimations.get(t);n&&(n.cancel(),this._runningAnimations.delete(t))}},{key:"reverseAnimator",value:function(e){var t=Array.isArray(e)?e[0]:e,n=this._runningAnimations.get(t);n&&n.reverse()}},{key:"objectAnimator1",value:function(e){var t=s(e,10),n=t[0],r=(t[1],t[2]),i=t[3],o=t[4],a=t[5],u=t[6],l=(t[7],t[8],{id:n,propertyName:r,values:[i],duration:o,repeatMode:a,repeatCount:u,interpolator:t[9]});this._animators.set(n,l)}},{key:"objectAnimator2",value:function(e){var t=s(e,11),n=t[0],r=(t[1],t[2]),i=t[3],o=t[4],a=t[5],u=t[6],l=t[7],c=(t[8],t[9],{id:n,propertyName:r,values:[i,o],duration:a,repeatMode:u,repeatCount:l,interpolator:t[10]});this._animators.set(n,c)}},{key:"objectAnimator3",value:function(e){var t=s(e,12),n=t[0],r=(t[1],t[2]),i=t[3],o=t[4],a=t[5],u=t[6],l=t[7],c=t[8],d=(t[9],t[10],{id:n,propertyName:r,values:[i,o,a],duration:u,repeatMode:l,repeatCount:c,interpolator:t[11]});this._animators.set(n,d)}},{key:"objectAnimator4",value:function(e){var t=s(e,13),n=t[0],r=(t[1],t[2]),i=t[3],o=t[4],a=t[5],u=t[6],l=t[7],c=t[8],d=t[9],h=(t[10],t[11],{id:n,propertyName:r,values:[i,o,a,u],duration:l,repeatMode:c,repeatCount:d,interpolator:t[12]});this._animators.set(n,h)}},{key:"objectAnimator5",value:function(e){var t=s(e,14),n=t[0],r=(t[1],t[2]),i=t[3],o=t[4],a=t[5],u=t[6],l=t[7],c=t[8],d=t[9],h=t[10],f=(t[11],t[12],{id:n,propertyName:r,values:[i,o,a,u,l],duration:c,repeatMode:d,repeatCount:h,interpolator:t[13]});this._animators.set(n,f)}}])}(Bo);function Ra(e,t,n){return t=vn(t),pn(e,Da()?Reflect.construct(t,n||[],vn(e).constructor):t.apply(e,n))}function Da(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Da=function(){return!!e})()}var Ma=function(e){function t(e,n,r){var i;return x(this,t),(i=Ra(this,t,[e,n,r])).tagName="ESWebViewComponent",i.dom=document.createElement("div"),i._iframe=null,i._url=null,i._userAgent=null,i.dom.style.position="relative",i.dom.style.overflow="hidden",i.dom.setAttribute("data-component-name","QtWebView"),i}return gn(t,e),L(t,[{key:"defaultStyle",value:function(){return{boxSizing:"border-box",zIndex:0,display:"block",position:"relative",overflow:"hidden"}}},{key:"_getOrCreateIframe",value:function(){var e=this;return this._iframe||(this._iframe=document.createElement("iframe"),this._iframe.style.width="100%",this._iframe.style.height="100%",this._iframe.style.border="none",this._iframe.style.position="absolute",this._iframe.style.top="0",this._iframe.style.left="0",this._iframe.allow="autoplay; fullscreen; clipboard-write",this._iframe.setAttribute("sandbox","allow-scripts allow-same-origin allow-forms allow-popups allow-popups-to-escape-sandbox"),this.dom.appendChild(this._iframe),this._iframe.addEventListener("error",function(t){e._handleLoadError()}),this._iframe.addEventListener("load",function(){e._detectBlockedContent()}),this._iframe.setAttribute("tabindex","-1"),this._iframe.addEventListener("focus",function(t){setTimeout(function(){e._iframe&&(e._iframe.blur(),document.body.focus())},0)})),this._iframe}},{key:"_detectBlockedContent",value:function(){var e=this;this._iframe&&setTimeout(function(){if(e._iframe)try{var t,n=e._iframe.contentDocument||e._iframe.contentWindow.document,r=(null==n||null===(t=n.body)||void 0===t?void 0:t.innerHTML)||"",i=r.includes("ERR_CONNECTION")||r.includes("ERR_NAME_NOT_RESOLVED")||r.includes("拒绝了我们的连接请求")||r.includes("无法访问此网站"),o=r.includes("X-Frame-Options")||r.includes("refused to connect")||r.includes("blocked by")||r.includes("拒绝连接"),a=!n||!n.body||""===r||"<br>"===r||r.length<50;i?e._handleLoadError("无法连接到服务器,请检查网络或地址是否正确"):o?e._handleLoadError("该网站设置了安全策略,禁止在页面内嵌入显示"):a&&e._handleLoadError("页面内容为空")}catch(e){}},500)}},{key:"_handleLoadError",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"该网站设置了安全策略,禁止在页面内嵌入显示";this.dom.innerHTML='\n <div style="display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; height: 100%; background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%); color: #fff; font-family: -apple-system, BlinkMacSystemFont, \'Segoe UI\', Roboto, sans-serif;">\n <div style="width: 120px; height: 120px; border-radius: 50%; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; margin-bottom: 30px;">\n <svg width="60" height="60" viewBox="0 0 24 24" fill="none" stroke="#ff6b6b" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">\n <circle cx="12" cy="12" r="10"></circle>\n <line x1="15" y1="9" x2="9" y2="15"></line>\n <line x1="9" y1="9" x2="15" y2="15"></line>\n </svg>\n </div>\n <div style="font-size: 28px; font-weight: 600; margin-bottom: 12px; color: #fff;">无法加载页面</div>\n <div style="font-size: 16px; color: #888; margin-bottom: 8px; text-align: center; max-width: 400px; line-height: 1.6;">\n '.concat(t,'\n </div>\n <div style="font-size: 14px; color: #666; margin-bottom: 30px; word-break: break-all; max-width: 500px; text-align: center;">\n ').concat(this._url||"",'\n </div>\n <div style="display: flex; gap: 16px;">\n <button id="webview-open-external" style="padding: 14px 28px; font-size: 16px; cursor: pointer; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; border: none; border-radius: 8px; transition: transform 0.2s, box-shadow 0.2s; box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);">\n 在新窗口打开\n </button>\n <button id="webview-go-back" style="padding: 14px 28px; font-size: 16px; cursor: pointer; background: rgba(255,255,255,0.1); color: #fff; border: 1px solid rgba(255,255,255,0.2); border-radius: 8px; transition: transform 0.2s, background 0.2s;">\n 返回上一页\n </button>\n </div>\n </div>\n ');var r=this.dom.querySelector("#webview-open-external");r&&this._url&&(r.addEventListener("mouseenter",function(){r.style.transform="translateY(-2px)",r.style.boxShadow="0 6px 20px rgba(102, 126, 234, 0.5)"}),r.addEventListener("mouseleave",function(){r.style.transform="translateY(0)",r.style.boxShadow="0 4px 15px rgba(102, 126, 234, 0.4)"}),r.addEventListener("click",function(){window.open(e._url,"_blank")}));var i=this.dom.querySelector("#webview-go-back");i&&(i.addEventListener("mouseenter",function(){i.style.background="rgba(255,255,255,0.15)"}),i.addEventListener("mouseleave",function(){i.style.background="rgba(255,255,255,0.1)"}),i.addEventListener("click",function(){var e=n.g.__ES_ROUTER__;e&&"function"==typeof e.back?e.back():window.history.back()}))}},{key:"updateProperty",value:function(e,n){var r,i,o,a,s;"url"!==e&&"source"!==e?"userAgent"!==e?(r=t,i="updateProperty",o=this,s=yn(vn(1&(a=3)?r.prototype:r),i,o),2&a&&"function"==typeof s?function(e){return s.apply(o,e)}:s)([e,n]):this.setUserAgent([n]):"string"==typeof n?this.loadUrl([n]):n&&n.uri&&this.loadUrl([n.uri])}},{key:"_checkUrlReachable",value:(r=l(c.mark(function e(t){return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise(function(e){try{new URL(t),e(!0)}catch(t){e(!1)}}));case 1:case"end":return e.stop()}},e)})),function(e){return r.apply(this,arguments)})},{key:"loadUrl",value:function(e){var t=Array.isArray(e)?e[0]:e;this._url=t,this._loadTimeout&&(clearTimeout(this._loadTimeout),this._loadTimeout=null),this.dom.innerHTML="";try{new URL(t)}catch(e){return void this._handleLoadError("URL 格式无效")}this._showLoading(),this._getOrCreateIframe().src=t}},{key:"_showLoading",value:function(){this.dom.innerHTML='\n <div style="display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; height: 100%; background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%); color: #fff; font-family: -apple-system, BlinkMacSystemFont, \'Segoe UI\', Roboto, sans-serif;">\n <div style="width: 60px; height: 60px; border: 4px solid rgba(255,255,255,0.1); border-top-color: #667eea; border-radius: 50%; animation: spin 1s linear infinite;"></div>\n <div style="margin-top: 20px; font-size: 16px; color: #888;">正在加载...</div>\n <style>\n @keyframes spin {\n to { transform: rotate(360deg); }\n }\n </style>\n </div>\n '}},{key:"reload",value:function(e){this._iframe&&(this._iframe.src=this._iframe.src)}},{key:"clearCache",value:function(e){}},{key:"getUrl",value:function(){var e;return Promise.resolve((null===(e=this._iframe)||void 0===e?void 0:e.src)||this._url)}},{key:"getOriginalUrl",value:function(){return Promise.resolve(this._url)}},{key:"setLayerType",value:function(e){}},{key:"setIgnoreCA",value:function(e){}},{key:"getBackForwardList",value:function(){return Promise.resolve([])}},{key:"getCurrentIndexWithBackForwardList",value:function(){return Promise.resolve(0)}},{key:"getScreenStatus",value:function(){return Promise.resolve(0)}},{key:"autoClickPosition",value:function(e){var t=s(Array.isArray(e)?e:[e,0],2);t[0],t[1]}},{key:"disableImageDisplay",value:function(){}},{key:"enableImageDisplay",value:function(){}},{key:"stopLoading",value:function(){if(this._iframe){var e=this._iframe.src;this._iframe.removeAttribute("src"),this._iframe.src=e}}},{key:"clearView",value:function(){this._iframe&&(this._iframe.src="about:blank")}},{key:"setListenEvents",value:function(e){}},{key:"setIgnoreAllKeyEvent",value:function(e){}},{key:"evaluateJavascript",value:function(e){var t=Array.isArray(e)?e[0]:e;if(this._iframe&&this._iframe.contentWindow)try{var n=this._iframe.contentWindow.eval(t);return Promise.resolve(n)}catch(e){return Promise.resolve(null)}return Promise.resolve(null)}},{key:"setSniffingEnabled",value:function(e){}},{key:"setSniffingRule",value:function(e){}},{key:"resetSniffingRule",value:function(){}},{key:"setInterceptEnabled",value:function(e){}},{key:"setInterceptRule",value:function(e){}},{key:"resetInterceptRule",value:function(){}},{key:"shouldOverrideUrlLoading",value:function(e){}},{key:"setUserAgent",value:function(e){var t=Array.isArray(e)?e[0]:e;this._userAgent=t}},{key:"canGoBack",value:function(){return Promise.resolve(!1)}},{key:"goBack",value:function(){if(this._iframe)try{this._iframe.contentWindow.history.back()}catch(e){}}},{key:"canGoForward",value:function(){return Promise.resolve(!1)}},{key:"goForward",value:function(){if(this._iframe)try{this._iframe.contentWindow.history.forward()}catch(e){}}},{key:"canGoBackOrForward",value:function(e){return Promise.resolve(!1)}},{key:"goBackOrForward",value:function(e){var t=Array.isArray(e)?e[0]:e;if(this._iframe)try{this._iframe.contentWindow.history.go(t)}catch(e){}}},{key:"onResume",value:function(){}},{key:"onPause",value:function(){}},{key:"pauseTimers",value:function(){}},{key:"resumeTimers",value:function(){}},{key:"destroy",value:function(){this._loadTimeout&&(clearTimeout(this._loadTimeout),this._loadTimeout=null),this._iframe&&(this._iframe.src="about:blank",this._iframe.remove(),this._iframe=null)}},{key:"setJavaScriptEnabled",value:function(e){}},{key:"setPluginState",value:function(e){}},{key:"setJavaScriptCanOpenWindowsAutomatically",value:function(e){}},{key:"setUseWideViewPort",value:function(e){}},{key:"setLoadWithOverviewMode",value:function(e){}},{key:"setSupportZoom",value:function(e){}},{key:"setBuiltInZoomControls",value:function(e){}},{key:"setDisplayZoomControls",value:function(e){}},{key:"setAllowFileAccess",value:function(e){}},{key:"setDomStorageEnabled",value:function(e){}},{key:"setDatabaseEnabled",value:function(e){}},{key:"setAppCacheEnabled",value:function(e){}},{key:"setAppCachePath",value:function(e){}},{key:"setMediaPlaybackRequiresUserGesture",value:function(e){}},{key:"initJavaScriptInterface",value:function(){}},{key:"removeJavaScriptInterface",value:function(){}},{key:"initWebViewFocus",value:function(e){}}]);var r}(Bo);function Fa(e,t,n){return t=vn(t),pn(e,Ba()?Reflect.construct(t,n||[],vn(e).constructor):t.apply(e,n))}function Ba(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Ba=function(){return!!e})()}function ja(e,t,n,r){var i=yn(vn(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof i?function(e){return i.apply(n,e)}:i}window.__HIPPY_COMPONENT_REGISTRY__=window.__HIPPY_COMPONENT_REGISTRY__||new Map;var Va=null,Wa=function(e){function t(e,n,r){var i;return x(this,t),(i=Fa(this,t,[e,n,r])).tagName="QrCodeComponent",i.dom=document.createElement("div"),i.dom.style.display="block",window.__HIPPY_COMPONENT_REGISTRY__.set(i.dom,i),i._content="",i}return gn(t,e),L(t,[{key:"_render",value:(r=l(c.mark(function e(){var t,r,i=this;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(this._content&&this.dom){e.next=1;break}return e.abrupt("return");case 1:if(Va){e.next=5;break}return e.prev=2,e.next=3,n.e(659).then(n.t.bind(n,659,19)).then(function(e){return e.default||e});case 3:Va=e.sent,e.next=5;break;case 4:return e.prev=4,e.catch(2),e.abrupt("return");case 5:t=this.dom.getBoundingClientRect(),r=Math.max(t.width||200,t.height||200),Va.toDataURL(this._content,{width:r,margin:2,color:{dark:"#000000",light:"#FFFFFF"}},function(e,t){if(!e){i.dom.innerHTML="";var n=document.createElement("img");n.src=t,n.style.width="100%",n.style.height="100%",n.style.display="block",i.dom.appendChild(n)}});case 6:case"end":return e.stop()}},e,this,[[2,4]])})),function(){return r.apply(this,arguments)})},{key:"updateProperty",value:function(e,n){"content"===e?(this._content=n||"",this._render()):ja(t,"updateProperty",this,3)([e,n])}},{key:"init",value:function(e){ja(t,"init",this,3)([e]),this._content=e.content||"",this._render()}}]);var r}(Bo);function Ha(e,t,n){return t=vn(t),pn(e,Ua()?Reflect.construct(t,n||[],vn(e).constructor):t.apply(e,n))}function Ua(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Ua=function(){return!!e})()}function Ga(e,t,n,r){var i=yn(vn(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof i?function(e){return i.apply(n,e)}:i}window.__HIPPY_COMPONENT_REGISTRY__=window.__HIPPY_COMPONENT_REGISTRY__||new Map;var za=function(e){function t(e,n,r){var i;return x(this,t),(i=Ha(this,t,[e,n,r])).tagName="TVProgressBarViewComponent",i.dom=document.createElement("div"),i.dom.style.display="block",i.dom.style.position="relative",i.dom.style.overflow="hidden",window.__HIPPY_COMPONENT_REGISTRY__.set(i.dom,i),i._maxProgress=100,i._progress=0,i._secondaryProgress=0,i._cornerRadius=0,i._backgroundColor="#CCCCCC",i._progressColor="#FF0000",i._bgEl=null,i._secondaryEl=null,i._progressEl=null,i._initDOM(),i}return gn(t,e),L(t,[{key:"_initDOM",value:function(){this._bgEl=document.createElement("div"),this._bgEl.style.position="absolute",this._bgEl.style.top="0",this._bgEl.style.left="0",this._bgEl.style.width="100%",this._bgEl.style.height="100%",this._bgEl.style.boxSizing="border-box",this.dom.appendChild(this._bgEl),this._secondaryEl=document.createElement("div"),this._secondaryEl.style.position="absolute",this._secondaryEl.style.top="0",this._secondaryEl.style.left="0",this._secondaryEl.style.height="100%",this._secondaryEl.style.boxSizing="border-box",this.dom.appendChild(this._secondaryEl),this._progressEl=document.createElement("div"),this._progressEl.style.position="absolute",this._progressEl.style.top="0",this._progressEl.style.left="0",this._progressEl.style.height="100%",this._progressEl.style.boxSizing="border-box",this.dom.appendChild(this._progressEl)}},{key:"_updateStyles",value:function(){var e=this._cornerRadius+"px";this._bgEl.style.backgroundColor=this._backgroundColor,this._bgEl.style.borderRadius=e;var t=this._secondaryProgress/this._maxProgress*100+"%";this._secondaryEl.style.width=t,this._secondaryEl.style.backgroundColor=this._parseColor(this._progressColor,.3),this._secondaryEl.style.borderRadius=e;var n=this._progress/this._maxProgress*100+"%";this._progressEl.style.width=n,this._applyProgressColor(),this._progressEl.style.borderRadius=e}},{key:"_parseColor",value:function(e,t){if("string"==typeof e){if(e.startsWith("#")){var n=e.slice(1),r=parseInt(n.substr(0,2),16),i=parseInt(n.substr(2,2),16),o=parseInt(n.substr(4,2),16);return"rgba(".concat(r,", ").concat(i,", ").concat(o,", ").concat(t,")")}return e}return e}},{key:"_applyProgressColor",value:function(){var e=this._progressColor;if(e&&"object"==typeof e&&e.startColor&&e.endColor){var t=e.type||0,n=(e.shape,e.startColor),r=e.endColor;this._progressEl.style.background=0===t?"linear-gradient(to right, ".concat(n,", ").concat(r,")"):"radial-gradient(circle, ".concat(n,", ").concat(r,")")}else if("string"==typeof e)this._progressEl.style.backgroundColor=e;else if("number"==typeof e){var i=(e>>24&255)/255,o=e>>16&255,a=e>>8&255,s=255&e;this._progressEl.style.backgroundColor="rgba(".concat(o,", ").concat(a,", ").concat(s,", ").concat(i,")")}}},{key:"updateProperty",value:function(e,n){switch(e){case"maxProgress":case"max-progress":this._maxProgress=n||100,this._updateStyles();break;case"progress":this._progress=n||0,this._updateStyles();break;case"secondaryProgress":case"secondary-progress":this._secondaryProgress=n||0,this._updateStyles();break;case"cornerRadius":case"corner-radius":this._cornerRadius=n||0,this._updateStyles();break;case"backgroundColor":case"background-color":this._backgroundColor=n||"#CCCCCC",this._updateStyles();break;case"color":this._progressColor=n,this._updateStyles();break;default:Ga(t,"updateProperty",this,3)([e,n])}}},{key:"setMaxProgress",value:function(e){this._maxProgress=e[0]||100,this._updateStyles()}},{key:"setProgress",value:function(e){this._progress=e[0]||0,this._updateStyles()}},{key:"setSecondaryProgress",value:function(e){this._secondaryProgress=e[0]||0,this._updateStyles()}},{key:"setProgressColor",value:function(e){this._progressColor=e[0],this._updateStyles()}},{key:"setProgressDefaultColor",value:function(e){this._backgroundColor=e[0],this._updateStyles()}},{key:"init",value:function(e){Ga(t,"init",this,3)([e]),void 0!==e.maxProgress&&(this._maxProgress=e.maxProgress),void 0!==e.progress&&(this._progress=e.progress),void 0!==e.secondaryProgress&&(this._secondaryProgress=e.secondaryProgress),void 0!==e.cornerRadius&&(this._cornerRadius=e.cornerRadius),void 0!==e.backgroundColor&&(this._backgroundColor=e.backgroundColor),void 0!==e.color&&(this._progressColor=e.color),this._updateStyles()}}])}(Bo);function Ya(e,t,n){return t=vn(t),pn(e,qa()?Reflect.construct(t,n||[],vn(e).constructor):t.apply(e,n))}function qa(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(qa=function(){return!!e})()}function Xa(e,t,n,r){var i=yn(vn(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof i?function(e){return i.apply(n,e)}:i}window.__HIPPY_COMPONENT_REGISTRY__=window.__HIPPY_COMPONENT_REGISTRY__||new Map;var Ka=function(e){function t(e,n,r){var i;return x(this,t),(i=Ya(this,t,[e,n,r])).tagName="TVSeekBarViewComponent",i.dom=document.createElement("div"),i.dom.style.display="block",i.dom.style.position="relative",i.dom.style.cursor="pointer",window.__HIPPY_COMPONENT_REGISTRY__.set(i.dom,i),i._progress=0,i._maxProgress=100,i._minProgress=0,i._progressHeight=10,i._progressRadius=5,i._progressColor="#FF0000",i._progressDefaultColor="#CCCCCC",i._seekBarMode=0,i._gravity=1,i._leftProgress=0,i._rightProgress=100,i._thumbWidth=30,i._thumbHeight=30,i._thumbColor="#FFFFFF",i._trackEl=null,i._progressEl=null,i._thumbEl=null,i._leftThumbEl=null,i._rightThumbEl=null,i._isDragging=!1,i._draggingThumb=null,i._initDOM(),i._bindEvents(),i}return gn(t,e),L(t,[{key:"_initDOM",value:function(){this._trackEl=document.createElement("div"),this._trackEl.style.position="absolute",this._trackEl.style.left="0",this._trackEl.style.width="100%",this._trackEl.style.boxSizing="border-box",this._trackEl.style.pointerEvents="none",this.dom.appendChild(this._trackEl),this._progressEl=document.createElement("div"),this._progressEl.style.position="absolute",this._progressEl.style.left="0",this._progressEl.style.boxSizing="border-box",this._progressEl.style.pointerEvents="none",this.dom.appendChild(this._progressEl),this._thumbEl=document.createElement("div"),this._thumbEl.style.position="absolute",this._thumbEl.style.boxSizing="border-box",this._thumbEl.style.borderRadius="50%",this._thumbEl.style.display="none",this._thumbEl.style.zIndex="10",this._thumbEl.style.pointerEvents="none",this.dom.appendChild(this._thumbEl),this._leftThumbEl=document.createElement("div"),this._leftThumbEl.style.position="absolute",this._leftThumbEl.style.boxSizing="border-box",this._leftThumbEl.style.borderRadius="50%",this._leftThumbEl.style.display="none",this._leftThumbEl.style.zIndex="10",this._leftThumbEl.style.pointerEvents="none",this.dom.appendChild(this._leftThumbEl),this._rightThumbEl=document.createElement("div"),this._rightThumbEl.style.position="absolute",this._rightThumbEl.style.boxSizing="border-box",this._rightThumbEl.style.borderRadius="50%",this._rightThumbEl.style.display="none",this._rightThumbEl.style.zIndex="10",this._rightThumbEl.style.pointerEvents="none",this.dom.appendChild(this._rightThumbEl)}},{key:"_bindEvents",value:function(){var e=this,t=function(t){e._isDragging&&e._handlePointerEvent(t)},n=function(){e._isDragging=!1,e._draggingThumb=null,document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",n)};this.dom.addEventListener("pointerdown",function(r){e._isDragging=!0,e._handlePointerEvent(r),document.addEventListener("pointermove",t),document.addEventListener("pointerup",n)})}},{key:"_handlePointerEvent",value:function(e){var t=this.dom.getBoundingClientRect(),n=e.clientX-t.left,r=Math.max(0,Math.min(1,n/t.width));if(1===this._seekBarMode){var i=this._leftProgress/this._maxProgress,o=this._rightProgress/this._maxProgress;if(!this._draggingThumb){var a=Math.abs(r-i),s=Math.abs(r-o);this._draggingThumb=a<s?"left":"right"}"left"===this._draggingThumb?this._leftProgress=Math.min(r*this._maxProgress,this._rightProgress-1):this._rightProgress=Math.max(r*this._maxProgress,this._leftProgress+1)}else this._progress=r*this._maxProgress;this._updateStyles(),this._dispatchChangeEvent()}},{key:"_dispatchChangeEvent",value:function(){var e=new CustomEvent("onSeekBarChange",{detail:{progress:this._progress,leftProgress:this._leftProgress,rightProgress:this._rightProgress,fromUser:!0}});this.dom.dispatchEvent(e)}},{key:"_updateStyles",value:function(){if(this._trackEl&&this._progressEl){var e,t=this._progressHeight,n=this._progressRadius+"px",r=this.dom.getBoundingClientRect().height||200;if(e=0===this._gravity?0:2===this._gravity?r-t:(r-t)/2,this._trackEl.style.top=e+"px",this._trackEl.style.height=t+"px",this._trackEl.style.borderRadius=n,this._trackEl.style.backgroundColor=this._progressDefaultColor,this._progressEl.style.top=e+"px",this._progressEl.style.height=t+"px",this._progressEl.style.borderRadius=n,this._progressEl.style.backgroundColor=this._progressColor,1===this._seekBarMode){var i=this._leftProgress/this._maxProgress*100,o=this._rightProgress/this._maxProgress*100;this._progressEl.style.left=i+"%",this._progressEl.style.width=o-i+"%",this._thumbEl.style.display="none",this._leftThumbEl.style.display="block",this._leftThumbEl.style.width=this._thumbWidth+"px",this._leftThumbEl.style.height=this._thumbHeight+"px",this._leftThumbEl.style.backgroundColor=this._thumbColor,this._leftThumbEl.style.left="calc(".concat(i,"% - ").concat(this._thumbWidth/2,"px)"),this._leftThumbEl.style.top=e+t/2-this._thumbHeight/2+"px",this._rightThumbEl.style.display="block",this._rightThumbEl.style.width=this._thumbWidth+"px",this._rightThumbEl.style.height=this._thumbHeight+"px",this._rightThumbEl.style.backgroundColor=this._thumbColor,this._rightThumbEl.style.left="calc(".concat(o,"% - ").concat(this._thumbWidth/2,"px)"),this._rightThumbEl.style.top=e+t/2-this._thumbHeight/2+"px"}else{var a=Math.min(100,this._progress/this._maxProgress*100);this._progressEl.style.left="0",this._progressEl.style.width=a+"%",this._thumbEl.style.display="block",this._thumbEl.style.width=this._thumbWidth+"px",this._thumbEl.style.height=this._thumbHeight+"px",this._thumbEl.style.backgroundColor=this._thumbColor,this._thumbEl.style.left="calc(".concat(a,"% - ").concat(this._thumbWidth/2,"px)"),this._thumbEl.style.top=e+t/2-this._thumbHeight/2+"px",this._leftThumbEl.style.display="none",this._rightThumbEl.style.display="none"}}}},{key:"updateProperty",value:function(e,n){switch(e){case"progress":this._progress=n||0,this._updateStyles();break;case"maxProgress":case"max-progress":this._maxProgress=n||100,this._updateStyles();break;case"progressHeight":case"progress-height":this._progressHeight=n||10,this._updateStyles();break;case"progressRadius":case"progress-radius":this._progressRadius=n||5,this._updateStyles();break;case"progressColor":case"progress-color":this._progressColor=n||"#FF0000",this._updateStyles();break;case"progressDefaultColor":case"progress-default-color":this._progressDefaultColor=n||"#CCCCCC",this._updateStyles();break;case"seekBarMode":case"seek-bar-mode":this._seekBarMode=n||0,this._updateStyles();break;case"gravity":this._gravity=n||1,this._updateStyles();break;case"thumbWidth":case"thumb-width":this._thumbWidth=n||30,this._updateStyles();break;case"thumbHeight":case"thumb-height":this._thumbHeight=n||30,this._updateStyles();break;default:Xa(t,"updateProperty",this,3)([e,n])}}},{key:"setProgress",value:function(e){var t=e[0];this._progress=t||0,1===this._seekBarMode&&(this._rightProgress=this._progress),this._updateStyles()}},{key:"setMaxProgress",value:function(e){this._maxProgress=e[0]||100,this._updateStyles()}},{key:"setProgressHeight",value:function(e){this._progressHeight=e[0]||10,this._updateStyles()}},{key:"setProgressRadius",value:function(e){this._progressRadius=e[0]||5,this._updateStyles()}},{key:"setProgressColor",value:function(e){this._progressColor=e[0]||"#FF0000",this._updateStyles()}},{key:"setProgressDefaultColor",value:function(e){this._progressDefaultColor=e[0]||"#CCCCCC",this._updateStyles()}},{key:"setSeekBarMode",value:function(e){this._seekBarMode=e[0]||0,this._updateStyles()}},{key:"setGravity",value:function(e){this._gravity=e[0]||1,this._updateStyles()}},{key:"setRangeProgress",value:function(e){this._leftProgress=e[0]||0,this._rightProgress=e[1]||100,this._updateStyles()}},{key:"setRange",value:function(e){this._minProgress=e[0]||0,this._maxProgress=e[1]||100,this._updateStyles()}},{key:"resetSeekbar",value:function(){this._progress=0,this._leftProgress=0,this._rightProgress=this._maxProgress,this._updateStyles()}},{key:"init",value:function(e){var n=this;Xa(t,"init",this,3)([e]),void 0!==e.progress&&(this._progress=e.progress),void 0!==e.maxProgress&&(this._maxProgress=e.maxProgress),void 0!==e.progressHeight&&(this._progressHeight=e.progressHeight),void 0!==e.progressRadius&&(this._progressRadius=e.progressRadius),void 0!==e.progressColor&&(this._progressColor=e.progressColor),void 0!==e.progressDefaultColor&&(this._progressDefaultColor=e.progressDefaultColor),void 0!==e.seekBarMode&&(this._seekBarMode=e.seekBarMode),void 0!==e.gravity&&(this._gravity=e.gravity),requestAnimationFrame(function(){return n._updateStyles()})}}])}(Bo);function $a(e,t,n){return t=vn(t),pn(e,Za()?Reflect.construct(t,n||[],vn(e).constructor):t.apply(e,n))}function Za(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Za=function(){return!!e})()}var Ja=function(e){function t(e,n,r){var i;return x(this,t),(i=$a(this,t,[e,n,r])).tagName="ItemFrameComponent",i.dom=document.createElement("div"),i.dom.setAttribute("data-component-name","QtItemFrame"),i.dom.style.display="block",i.dom.style.position="relative",i.dom.style.boxSizing="border-box",y(n,i),i}return gn(t,e),L(t,[{key:"defaultStyle",value:function(){return{display:"block",position:"relative",boxSizing:"border-box"}}},{key:"updateProperty",value:function(e,n){if("focusable"!==e){if("focusScale"===e||"focusscale"===e)return this._focusScale="number"==typeof n?n:parseFloat(n)||1.1,this.dom.setAttribute("data-focus-scale",String(this._focusScale)),void(this._focusListenerAdded||this._setupFocusAnimation());var r,i,o,a,s;if("itemShowShimmer"!==e&&"itemshowshimmer"!==e)if("hideShadow"!==e&&"hideshadow"!==e)if("shimmerSize"!==e&&"shimmersize"!==e)if("flexStyle"!==e&&"flexstyle"!==e)if("layout"!==e)"string"==typeof n&&n.startsWith("${")&&this.dom.setAttribute(e,n),(r=t,i="updateProperty",o=this,s=yn(vn(1&(a=3)?r.prototype:r),i,o),2&a&&"function"==typeof s?function(e){return s.apply(o,e)}:s)([e,n]);else"string"==typeof n&&n.startsWith("${")?this.dom.setAttribute(e,n):this._applyLayout(n);else"object"==typeof n&&null!==n?this._applyFlexStyle(n):"string"==typeof n&&n.startsWith("${")&&this.dom.setAttribute(e,n);else this.dom.setAttribute("data-shimmer-size",String(n));else this.dom.setAttribute("data-hide-shadow",String(n));else this.dom.setAttribute("data-show-shimmer",String(n))}else!0===n||"true"===n?(this.dom.setAttribute("tabindex","0"),this.dom.setAttribute("focusable","true"),this._focusable=!0):(this.dom.removeAttribute("tabindex"),this.dom.setAttribute("focusable","false"),this._focusable=!1)}},{key:"_setupFocusAnimation",value:function(){var e=this;this._focusListenerAdded=!0,this.dom.addEventListener("focus",function(){e._focusScale&&1!==e._focusScale&&(e.dom.style.transform="scale(".concat(e._focusScale,")"),e.dom.style.transition="transform 0.2s ease-out",e.dom.style.zIndex="10")}),this.dom.addEventListener("blur",function(){e.dom.style.transform="scale(1)",e.dom.style.zIndex=""})}},{key:"flexStyle",get:function(){return this.props.flexStyle},set:function(e){this.props.flexStyle=e,this._applyFlexStyle(e)}},{key:"_applyFlexStyle",value:function(e){var t=this;e&&"object"==typeof e&&Object.keys(e).forEach(function(n){var r=e[n];"number"==typeof r&&(["width","height","minWidth","minHeight","maxWidth","maxHeight","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","margin","marginTop","marginRight","marginBottom","marginLeft","top","left","right","bottom","borderRadius","borderWidth","fontSize","lineHeight","letterSpacing","gap","rowGap","columnGap"].includes(n)&&(r+="px"));try{"x"!==n&&"y"!==n&&(t.dom.style[n]=r)}catch(e){try{if("x"!==n&&"y"!==n){var i=n.replace(/([A-Z])/g,"-$1").toLowerCase();t.dom.style.setProperty(i,r)}}catch(e){}}})}},{key:"_applyLayout",value:function(e){if(e){if(Array.isArray(e)){var t=e[0],n=e[1],r=e[2],i=e[3];return null!=t&&(this.dom.style.left="number"==typeof t?"".concat(t,"px"):t),null!=n&&(this.dom.style.top="number"==typeof n?"".concat(n,"px"):n),null!=r&&(this.dom.style.width="number"==typeof r?"".concat(r,"px"):r),null!=i&&(this.dom.style.height="number"==typeof i?"".concat(i,"px"):i),void 0===t&&void 0===n||this.dom.style.position||(this.dom.style.position="absolute"),void(void 0===t&&void 0===n||"relative"!==this.dom.style.position||(this.dom.style.position="absolute"))}if("object"==typeof e){var o=e.x,a=e.y,s=e.width,u=e.height;null!=o&&(this.dom.style.left="number"==typeof o?"".concat(o,"px"):o),null!=a&&(this.dom.style.top="number"==typeof a?"".concat(a,"px"):a),null!=s&&(this.dom.style.width="number"==typeof s?"".concat(s,"px"):s),null!=u&&(this.dom.style.height="number"==typeof u?"".concat(u,"px"):u),void 0===o&&void 0===a||this.dom.style.position||(this.dom.style.position="absolute"),void 0===o&&void 0===a||"relative"!==this.dom.style.position||(this.dom.style.position="absolute")}}}}])}(Bo);function Qa(e,t,n){return t=vn(t),pn(e,es()?Reflect.construct(t,n||[],vn(e).constructor):t.apply(e,n))}function es(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(es=function(){return!!e})()}function ts(e,t,n,r){var i=yn(vn(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof i?function(e){return i.apply(n,e)}:i}var ns=function(e){function t(e,n,r){var i;return x(this,t),(i=Qa(this,t,[e,n,r])).tagName="ItemStoreView",i.dom=document.createElement("div"),i.dom.setAttribute("data-component-name","QtItemStoreView"),i.dom.style.display="none",i.dom.style.position="relative",i.dom.style.boxSizing="border-box",i._templateChildren=[],y(n,i),i}return gn(t,e),L(t,[{key:"defaultStyle",value:function(){return{display:"none",position:"relative",boxSizing:"border-box"}}},{key:"getTemplateChildren",value:function(){return this._templateChildren}},{key:"addTemplateChild",value:function(e){if(e&&e.dom&&!this._templateChildren.some(function(t){return t.dom===e.dom})){var t=null;if(e.props&&void 0!==e.props.type)t=e.props.type;else if(e.dom.hasAttribute("type")){var n=e.dom.getAttribute("type");t=null!==n?isNaN(Number(n))?n:Number(n):null}if(this._templateChildren.push({dom:e.dom,tagName:e.tagName,component:e,type:t}),null!=t)((r=window).__QT_SHARED_TEMPLATES__||(r.__QT_SHARED_TEMPLATES__=new Map),r.__QT_SHARED_TEMPLATES__).set(t,{dom:e.dom,tagName:e.tagName,component:e,type:t});e.dom.setAttribute("data-template","true"),e.dom.setAttribute("data-shared-template","true"),e.dom.style.display="none"}var r}},{key:"beforeChildMount",value:(n=l(c.mark(function e(n,r){return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n&&n.dom&&this.addTemplateChild(n),e.next=1,ts(t,"beforeChildMount",this,3)([n,r]);case 1:case"end":return e.stop()}},e,this)})),function(e,t){return n.apply(this,arguments)})},{key:"updateProperty",value:function(e,n){"string"==typeof n&&n.startsWith("${")&&this.dom.setAttribute(e,n),ts(t,"updateProperty",this,3)([e,n])}}]);var n}(Bo);function rs(e,t,n){return t=vn(t),pn(e,is()?Reflect.construct(t,n||[],vn(e).constructor):t.apply(e,n))}function is(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(is=function(){return!!e})()}function os(e,t,n,r){var i=yn(vn(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof i?function(e){return i.apply(n,e)}:i}var as=function(e){function t(e,n,r){var i;return x(this,t),(i=rs(this,t,[e,n,r])).tagName="RippleViewComponent",i.dom=document.createElement("div"),i.dom.setAttribute("data-component-name","QtRippleView"),i.dom.style.cssText="\n display: block;\n position: relative;\n box-sizing: border-box;\n overflow: hidden;\n ",i._isShowRipple=!1,i._rippleVisible="visible",i._color="#FF4E46",i._animationFrame=null,y(n,i),i}return gn(t,e),L(t,[{key:"defaultStyle",value:function(){return{display:"block",position:"relative",boxSizing:"border-box",overflow:"hidden"}}},{key:"updateProperty",value:function(e,n){var r=this;switch(e){case"isShowRipple":case"isshowripple":this._isShowRipple=!0===n||"true"===n,this._updateRippleAnimation();break;case"rippleVisible":case"ripplevisible":this._rippleVisible=n||"visible",this.dom.style.visibility=this._rippleVisible;break;case"color":this._color=n||"#FF4E46",this._updateRippleColor();break;case"delayLoad":case"delayload":n>0?setTimeout(function(){r._startRippleAnimation()},n):this._startRippleAnimation();break;default:os(t,"updateProperty",this,3)([e,n])}}},{key:"_updateRippleAnimation",value:function(){this._isShowRipple?this._startRippleAnimation():this._stopRippleAnimation()}},{key:"_updateRippleColor",value:function(){var e=this;this.dom.querySelectorAll(".ripple-circle").forEach(function(t){t.style.backgroundColor=e._color})}},{key:"_startRippleAnimation",value:function(){var e=this;if(this._isShowRipple){this._clearRipples();for(var t=this.dom.getBoundingClientRect(),n=Math.max(t.width,t.height),r=t.width/2,i=t.height/2,o=function(t){setTimeout(function(){e._isShowRipple&&e._createRippleCircle(r,i,n,t)},300*t)},a=0;a<3;a++)o(a)}}},{key:"_createRippleCircle",value:function(e,t,n,r){var i=this,o=document.createElement("div");o.className="ripple-circle",o.style.cssText="\n position: absolute;\n left: ".concat(e,"px;\n top: ").concat(t,"px;\n width: 0;\n height: 0;\n border-radius: 50%;\n background-color: ").concat(this._color,";\n opacity: 0.6;\n transform: translate(-50%, -50%);\n pointer-events: none;\n "),this.dom.appendChild(o);var a=0,s=1.5*n,u=1500+200*r,l=function(){if(i._isShowRipple)if((a+=s/u*16)<s){var e=.6*(1-a/s);o.style.width="".concat(a,"px"),o.style.height="".concat(a,"px"),o.style.opacity=e.toString(),i._animationFrame=requestAnimationFrame(l)}else o.style.width="0",o.style.height="0",o.style.opacity="0.6",a=0,i._animationFrame=requestAnimationFrame(l);else o.remove()};l()}},{key:"_stopRippleAnimation",value:function(){this._animationFrame&&(cancelAnimationFrame(this._animationFrame),this._animationFrame=null),this._clearRipples()}},{key:"_clearRipples",value:function(){this.dom.querySelectorAll(".ripple-circle").forEach(function(e){return e.remove()})}},{key:"destroy",value:function(){this._stopRippleAnimation(),os(t,"destroy",this,3)([])}}])}(Bo);function ss(e,t,n){return t=vn(t),pn(e,us()?Reflect.construct(t,n||[],vn(e).constructor):t.apply(e,n))}function us(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(us=function(){return!!e})()}function ls(e,t,n,r){var i=yn(vn(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof i?function(e){return i.apply(n,e)}:i}var cs=function(e){function t(e,n,r){var i;return x(this,t),(i=ss(this,t,[e,n,r])).tagName="FastItemView",i.dom=document.createElement("div"),i.dom.setAttribute("data-component-name","QtItemView"),i.dom.style.cssText="\n display: block;\n position: relative;\n box-sizing: border-box;\n ",i.props={},y(n,i),i}return gn(t,e),L(t,[{key:"defaultStyle",value:function(){return{display:"block",position:"relative",boxSizing:"border-box"}}},{key:"insertChild",value:function(e,t){e&&e.dom&&!this.dom.contains(e.dom)&&this.dom.appendChild(e.dom)}},{key:"beforeChildMount",value:(n=l(c.mark(function e(n,r){return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n&&n.dom&&!this.dom.contains(n.dom)&&this.dom.appendChild(n.dom),e.next=1,ls(t,"beforeChildMount",this,3)([n,r]);case 1:case"end":return e.stop()}},e,this)})),function(e,t){return n.apply(this,arguments)})},{key:"updateProperty",value:function(e,n){switch(e){case"singleton":this.props=this.props||{},this.props.singleton=!0,this.dom.setAttribute("singleton","true");break;case"type":this.props=this.props||{},this.props.type=n,this.dom.setAttribute("type",n);break;case"flexStyle":case"flexstyle":"object"==typeof n&&null!==n&&this._applyFlexStyle(n);break;default:ls(t,"updateProperty",this,3)([e,n])}}},{key:"_applyFlexStyle",value:function(e){var t=this;e&&"object"==typeof e&&Object.keys(e).forEach(function(n){var r=e[n];"number"==typeof r&&(["width","height","minWidth","minHeight","maxWidth","maxHeight","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","margin","marginTop","marginRight","marginBottom","marginLeft","top","left","right","bottom","borderRadius","borderWidth","fontSize","lineHeight","letterSpacing","gap","rowGap","columnGap"].includes(n)&&(r+="px"));try{t.dom.style[n]=r}catch(e){try{var i=n.replace(/([A-Z])/g,"-$1").toLowerCase();t.dom.style.setProperty(i,r)}catch(e){}}})}}]);var n}(Bo);function ds(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function hs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ds(Object(n),!0).forEach(function(t){(0,b.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ds(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function fs(e,t,n){return t=vn(t),pn(e,ps()?Reflect.construct(t,n||[],vn(e).constructor):t.apply(e,n))}function ps(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(ps=function(){return!!e})()}var vs=function(e){function t(e,n,r){var i;return x(this,t),(i=fs(this,t,[e,n,r])).tagName="TabsView",i.dom=document.createElement("div"),i.dom.setAttribute("data-component-name","TabsView"),y(n,i),i._instanceId=++t._instanceCount,i._tabData=null,i._currentPageIndex=0,i._pages=new Map,i._tabItems=[],i._loadedPageIndices=new Set,i._lastPageChangedIndex=-1,i._initialFocusToken=0,i._childrenByName=new Map,i._childrenContainer=i.dom,i}return gn(t,e),L(t,[{key:"defaultStyle",value:function(){return{boxSizing:"border-box",display:"flex",flexDirection:"column",width:"100%",height:"100%",position:"relative"}}},{key:"insertChild",value:function(e,t){if(e&&e.dom){var n,r=(null===(n=e.props)||void 0===n?void 0:n.name)||e.dom.getAttribute("name");r&&(this._childrenByName.set(r,e),"tabList"===r&&this._setupTabListListeners(e)),this._childrenContainer.appendChild(e.dom)}}},{key:"_setupTabListListeners",value:function(e){var t=this;if(e){var n=e.dispatchEvent.bind(e);e.dispatchEvent=function(e,r){if(n(e,r),("onItemFocused"===e||"onItemfocused"===e)&&r&&!0===r.hasFocus){var i=r.position;void 0!==i&&i!==t._currentPageIndex&&(t._currentPageIndex=i,t._focusIndex=i,t._syncTabSelectionState(i),t._syncContentCurrentPage(i),t._dispatchPageChanged(i),t._dispatchLoadPageData(i,!1))}if("onItemClick"===e){var o=null==r?void 0:r.position;void 0!==o&&o!==t._currentPageIndex&&(t._currentPageIndex=o,t._focusIndex=o,t._syncTabSelectionState(o),t._syncContentCurrentPage(o),t._dispatchPageChanged(o),t._dispatchLoadPageData(o,!1))}},this._boundHandleTabFocusIn=this._handleTabFocusIn.bind(this),e.dom.addEventListener("focusin",this._boundHandleTabFocusIn)}}},{key:"_handleTabFocusIn",value:function(e){var t=this.getChildByName("tabList");if(t){var n=t._itemContainer;if(n||(n=t.dom.querySelector(".flex-view-item-container")),n){for(var r=n.children,i=-1,o=0;o<r.length;o++)if(r[o]===e.target||r[o].contains(e.target)){i=o;break}-1!==i&&i!==this._currentPageIndex&&(this._currentPageIndex=i,this._focusIndex=i,this._syncTabSelectionState(i),this._syncContentCurrentPage(i),this._dispatchPageChanged(i),this._dispatchLoadPageData(i,!1))}}}},{key:"_syncContentCurrentPage",value:function(e){var t=this.getChildByName("content");t&&"function"==typeof t.setCurrentPage&&t.setCurrentPage(e)}},{key:"_getTabItemContainer",value:function(){var e=this.getChildByName("tabList");return e&&e.dom?e._itemContainer||e.dom.querySelector(".flex-view-item-container"):null}},{key:"_syncTabSelectionState",value:function(e){var t=this.getChildByName("tabList"),n=this._getTabItemContainer();if(!t||!n)return null;"function"==typeof t.setSelectChildPosition&&t.setSelectChildPosition(e,!1);var r=n.children;if(!r||e<0||e>=r.length)return null;Array.from(n.querySelectorAll('[autofocus="true"], [autofocus]')).forEach(function(e){e.removeAttribute("autofocus")});var i=r[e],o=i.querySelector('[focusable="true"], [focusable="1"], [focusable]')||i;return o.setAttribute("autofocus","true"),o}},{key:"removeChild",value:function(e){if(e&&e.dom){var t,n=(null===(t=e.props)||void 0===t?void 0:t.name)||e.dom.getAttribute("name");n&&this._childrenByName.delete(n),e.dom.parentNode===this._childrenContainer&&this._childrenContainer.removeChild(e.dom)}}},{key:"getChildByName",value:function(e){return this._childrenByName.get(e)}},{key:"updateProperty",value:function(e,n){switch(e){case"offscreenPageLimit":this._offscreenPageLimit=n;break;case"dataStrategy":this._dataStrategy=n;break;case"hideOnSingleTab":this._hideOnSingleTab=n,this._applyHideOnSingleTab();break;case"pageSwitchDelay":this._pageSwitchDelay=n;break;case"suspension":this._suspension=n;break;case"useSuspensionBg":this._useSuspensionBg=n;break;default:(r=t,i="updateProperty",o=this,s=yn(vn(1&(a=3)?r.prototype:r),i,o),2&a&&"function"==typeof s?function(e){return s.apply(o,e)}:s)([e,n])}var r,i,o,a,s}},{key:"_applyHideOnSingleTab",value:function(){var e=this.getChildByName("tabList");if(e&&e.dom){var t=!0===this._hideOnSingleTab&&1===this._tabItems.length;e.dom.style.display=t?"none":""}}},{key:"setTabsData",value:function(){for(var e,t,n,r=this,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];var s=(o=Array.isArray(o[0])&&1===o.length?o[0]:o)[0]||{},u=o[1]||[];this._tabData=hs(hs({},s),{},{data:u}),this._tabItems=Array.isArray(u)?u:[],this._currentPageIndex=null!==(e=s.defaultIndex)&&void 0!==e?e:0;var l=null!==(t=null!==(n=s.defaultFocusIndex)&&void 0!==n?n:s.focusIndex)&&void 0!==t?t:this._currentPageIndex;this._focusIndex=Number.isFinite(l)&&l>=0?l:this._currentPageIndex;var c=this.getChildByName("tabList");c&&c.setListData&&c.setListData(u),this._applyHideOnSingleTab(),requestAnimationFrame(function(){var e=r.getChildByName("content");e&&"function"==typeof e.setCurrentPage&&e.setCurrentPage(r._currentPageIndex),r._dispatchPageChanged(r._currentPageIndex),r._dispatchLoadPageData(r._currentPageIndex,!1);var t=++r._initialFocusToken;setTimeout(function(){t===r._initialFocusToken&&r._setInitialTabFocus()},100)})}},{key:"_setInitialTabFocus",value:function(){var e=this.getChildByName("tabList");if(e&&e.dom){var t=this._focusIndex,r=this._getTabItemContainer();if(r){var i=r.children;if(i.length>0&&t>=0&&t<i.length){var o=this._syncTabSelectionState(t);return o.setAttribute("autofocus","true"),e.setSelectChildPosition&&e.setSelectChildPosition(t,!1),void(n.g.__TV_FOCUS_MANAGER__&&(n.g.__TV_FOCUS_MANAGER__.updateFocusableElements(),n.g.__TV_FOCUS_MANAGER__._doFocusElement(o)))}}var a=e.dom.querySelectorAll('[focusable="true"], [focusable="1"], [focusable]'),s=Array.from(a).filter(function(e){return"true"!==e.getAttribute("data-template")&&"none"!==e.style.display&&!e.closest('[data-template="true"]')});if(s.length>0&&t>=0&&t<s.length){var u=s[t];u.setAttribute("autofocus","true"),n.g.__TV_FOCUS_MANAGER__&&(n.g.__TV_FOCUS_MANAGER__.updateFocusableElements(),n.g.__TV_FOCUS_MANAGER__._doFocusElement(u))}}}},{key:"setPageData",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=(t=Array.isArray(t[0])&&1===t.length?t[0]:t)[0],i=t[1]||{},o=t[2]||[],a=hs(hs({},i),{},{data:o});this._pages.set(r,a);var s=this.getChildByName("content");s&&s.setListData&&s.setListData(r,i,o)}},{key:"addPageData",value:function(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=(n=Array.isArray(n[0])&&1===n.length?n[0]:n)[0],o=n[1]||{},a=n[2]||[],s=null!==(e=o.deleteCount)&&void 0!==e?e:0,u=this._pages.get(i)||{data:[]},l=Array.isArray(u.data)?u.data:[];s>0&&l.splice(0,s),Array.isArray(a)?u.data=l.concat(a):u.data=l,this._pages.set(i,u);var c=this.getChildByName("content");c&&c.addListData&&c.addListData(i,o,a)}},{key:"updatePageData",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=(t=Array.isArray(t[0])&&1===t.length?t[0]:t)[0],i=t[1]||[],o=t[2]||{};this.setPageData(r,o,i)}},{key:"_updatePageContent",value:function(e,t){}},{key:"setCurrentPage",value:function(e){if(Array.isArray(e)&&(e=e[0]),!(e<0||e>=this._tabItems.length)){this._currentPageIndex;this._currentPageIndex=e,this._focusIndex=e,this._initialFocusToken+=1,this._syncTabSelectionState(e);var t=this.getChildByName("content");t&&"function"==typeof t.setCurrentPage&&t.setCurrentPage(e),this._dispatchPageChanged(e),this._dispatchLoadPageData(e,!1)}}},{key:"getCurrentPage",value:function(){return Promise.resolve(this._currentPageIndex)}},{key:"requestTabFocus",value:function(e){Array.isArray(e)&&(e=e[0]),this._focusIndex=e,this.setCurrentPage(e);var t=this._syncTabSelectionState(e);t&&n.g.__TV_FOCUS_MANAGER__&&(n.g.__TV_FOCUS_MANAGER__.updateFocusableElements(),n.g.__TV_FOCUS_MANAGER__._doFocusElement(t))}},{key:"focusBackToTop",value:function(){}},{key:"requestNodeFocus",value:function(e){}},{key:"reloadAll",value:function(){this._dispatchLoadPageData(this._currentPageIndex,!1,!0)}},{key:"reloadPage",value:function(e){this._dispatchLoadPageData(e,!1,!0)}},{key:"invokeContentFunction",value:function(e,t,n){}},{key:"invokeContentFunctionDirect",value:function(e,t){}},{key:"contentScrollToFocus",value:function(e){}},{key:"updateChildNode",value:function(e,t,n,r){}},{key:"updateRootNode",value:function(e,t,n){}},{key:"updateItemMatched",value:function(e,t,n){}},{key:"blockRootFocus",value:function(){}},{key:"unBlockRootFocus",value:function(){}},{key:"translationLeft",value:function(){this._currentPageIndex>0&&this.setCurrentPage(this._currentPageIndex-1)}},{key:"translationRight",value:function(){this._currentPageIndex<this._tabItems.length-1&&this.setCurrentPage(this._currentPageIndex+1)}},{key:"destroy",value:function(){this._pages.clear(),this._tabItems=[],this._childrenByName.clear()}},{key:"cancelAll",value:function(){}},{key:"getRootNodeViewState",value:function(e,t,n){n&&n({viewState:{}})}},{key:"getChildNodeViewState",value:function(e,t,n,r,i){i&&i({viewState:{}})}},{key:"dispatchUIFunctionOnChildNode",value:function(e,t,n,r,i){}},{key:"_dispatchPageChanged",value:function(e){if(!(e<0||e>=this._tabItems.length)&&this._lastPageChangedIndex!==e){this._lastPageChangedIndex=e;var t={pageIndex:e,data:this._tabItems[e]||null};this.dispatchEvent("onPageChanged",t)}}},{key:"_dispatchLoadPageData",value:function(e,t){if(arguments.length>2&&void 0!==arguments[2]&&arguments[2]||!this._loadedPageIndices.has(e)){var n={pageIndex:e,itemCount:0,data:this._tabItems[e]||null,useDiff:!!t};this._loadedPageIndices.add(e),this.dispatchEvent("onLoadPageData",n)}}}])}(Bo);function ys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ms(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ys(Object(n),!0).forEach(function(t){(0,b.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ys(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function gs(e,t,n){return t=vn(t),pn(e,_s()?Reflect.construct(t,n||[],vn(e).constructor):t.apply(e,n))}function _s(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(_s=function(){return!!e})()}(0,b.A)(vs,"_instanceCount",0);var bs=function(e){function t(e,n,r){var i;return x(this,t),(i=gs(this,t,[e,n,r])).tagName="RecyclerViewPager",i.dom=document.createElement("div"),i.dom.setAttribute("data-component-name","RecyclerViewPager"),y(n,i),i._pages=new Map,i._currentIndex=0,i._direction="horizontal",i._contentView=null,i._childrenContainer=i.dom,i}return gn(t,e),L(t,[{key:"defaultStyle",value:function(){return{boxSizing:"border-box",display:"block",width:"100%",flex:"1",overflow:"hidden",position:"relative"}}},{key:"insertChild",value:function(e,t){e&&e.dom&&(this._contentView||(this._contentView=e,this._applyCurrentPageData()),this._childrenContainer.appendChild(e.dom))}},{key:"removeChild",value:function(e){e&&e.dom&&e.dom.parentNode===this._childrenContainer&&this._childrenContainer.removeChild(e.dom)}},{key:"updateProperty",value:function(e,n){switch(e){case"direction":this._direction=n||"horizontal";break;case"loadingItemType":this._loadingItemType=n;break;case"enableTransform":this._enableTransform=n;break;case"slidingEnable":this._slidingEnable=n;break;case"slidingMode":this._slidingMode=n;break;case"initTranslation":this._initTranslation=n;break;case"duration":this._duration=n;break;default:(r=t,i="updateProperty",o=this,s=yn(vn(1&(a=3)?r.prototype:r),i,o),2&a&&"function"==typeof s?function(e){return s.apply(o,e)}:s)([e,n])}var r,i,o,a,s}},{key:"setCurrentPage",value:function(e){if(Array.isArray(e)&&1===e.length&&(e=e[0]),!(e<0)){this._currentIndex;this._currentIndex=e,this._applyCurrentPageData()}}},{key:"_applyCurrentPageData",value:function(){var e,t,r=this;if(this._contentView){var i=this._pages.get(this._currentIndex),o=i&&Array.isArray(i.data)?i.data:[],a=null===(e=this._contentView.dom)||void 0===e||null===(t=e.getAttribute)||void 0===t?void 0:t.call(e,"list");if(a&&a.includes("${")){var s=a.match(/^\$\{([^}]+)\}$/);if(s){var u=s[1],l={[u]:o};return void Promise.resolve().then(n.bind(n,814)).then(function(e){(0,e.bindTemplateDataToNode)(r._contentView.dom,l,{onListData:function(e,t){e._qtListData=t,r._contentView&&"function"==typeof r._contentView.setListData&&r._contentView.setListData(t)}})})}}"function"!=typeof this._contentView.setListData?"function"==typeof this._contentView.updateProperty&&this._contentView.updateProperty("listData",o):this._contentView.setListData(o)}}},{key:"setListData",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=(t=Array.isArray(t[0])&&1===t.length?t[0]:t)[0],i=t[1]||{},o=t[2]||[];this._pages.set(r,ms(ms({},i),{},{data:o})),r===this._currentIndex&&this._applyCurrentPageData()}},{key:"addListData",value:function(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=(n=Array.isArray(n[0])&&1===n.length?n[0]:n)[0],o=n[1]||{},a=n[2]||[],s=null!==(e=o.deleteCount)&&void 0!==e?e:0,u=this._pages.get(i)||{data:[]},l=Array.isArray(u.data)?u.data:[];s>0&&l.splice(0,s),Array.isArray(a)?u.data=l.concat(a):u.data=l,this._pages.set(i,u),i===this._currentIndex&&this._applyCurrentPageData()}},{key:"setPageData",value:function(e,t){var n;this.setListData(e,{},null!==(n=null==t?void 0:t.data)&&void 0!==n?n:t)}},{key:"addPageData",value:function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;this.addListData(e,{deleteCount:r},null!==(n=null==t?void 0:t.data)&&void 0!==n?n:t)}},{key:"updatePageData",value:function(e,t){this.setPageData(e,t)}},{key:"insertPageData",value:function(e,t,n){}},{key:"updateChildNode",value:function(e,t,n,r){}},{key:"updateRootNode",value:function(e,t,n){}},{key:"deleteItemRange",value:function(e,t){}},{key:"destroy",value:function(){this._pages.clear(),this._contentView=null}}])}(Bo);function ws(e,t,n){return t=vn(t),pn(e,ks()?Reflect.construct(t,n||[],vn(e).constructor):t.apply(e,n))}function ks(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(ks=function(){return!!e})()}function Es(e,t,n,r){var i=yn(vn(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof i?function(e){return i.apply(n,e)}:i}var Ss=function(e){function t(e,n,r){var i;return x(this,t),(i=ws(this,t,[e,n,r])).tagName="Modal",i.dom=document.createElement("div"),i.dom.setAttribute("data-component-name","Modal"),i.dom.style.cssText="\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n z-index: 9999;\n ",y(n,i),i._visible=!0,i._transparent=!0,i}return gn(t,e),L(t,[{key:"defaultStyle",value:function(){return{position:"fixed",top:0,left:0,width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center",zIndex:9999}}},{key:"updateProperty",value:function(e,n){switch(e){case"transparent":this._transparent=n,this.dom.style.backgroundColor=n?"transparent":"rgba(0, 0, 0, 0.5)";break;case"immersionStatusBar":this._immersionStatusBar=n;break;case"visible":case"visibility":this._setVisible(n);break;default:Es(t,"updateProperty",this,3)([e,n])}}},{key:"_setVisible",value:function(e){this._visible=e,e?(this.dom.style.display="flex",this.dispatchEvent("show",{})):this.dom.style.display="none"}},{key:"mounted",value:function(){var e,n=this;null===(e=Es(t,"mounted",this,3))||void 0===e||e([]),!1!==this._visible&&requestAnimationFrame(function(){n.dispatchEvent("show",{})})}},{key:"_handleClickOutside",value:function(e){e.target===this.dom&&this.dispatchEvent("requestclose",{})}},{key:"show",value:function(){this._setVisible(!0)}},{key:"hide",value:function(){this._setVisible(!1)}},{key:"close",value:function(){this.dispatchEvent("requestclose",{})}}])}(Bo);function As(e,t,n){return t=vn(t),pn(e,xs()?Reflect.construct(t,n||[],vn(e).constructor):t.apply(e,n))}function xs(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(xs=function(){return!!e})()}function Cs(e,t,n,r){var i=yn(vn(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof i?function(e){return i.apply(n,e)}:i}var Ts=function(e){function t(e,n,r){var i;return x(this,t),(i=As(this,t,[e,n,r])).tagName="ListView",i.dom=document.createElement("div"),i.dom.setAttribute("data-component-name","ListView"),i.dom.__listViewInstance=i,y(n,i),i._horizontal=!1,i._horizontalExplicitlySet=!1,i._fadingEdgeLength=0,i._horizontalFadingEdgeEnabled=!1,i._verticalFadingEdgeEnabled=!1,i._clipChildren=!0,i._scrollEnabled=!0,i._listenBoundEvent=!1,i._selectedPosition=-1,i._styleFlexDirection="column",i._children=[],i._startGradient=null,i._endGradient=null,i}return gn(t,e),L(t,[{key:"defaultStyle",value:function(){return{display:"flex",flexDirection:this._horizontal?"row":"column",flexShrink:0,boxSizing:"border-box",overflow:"hidden",position:"relative"}}},{key:"mounted",value:function(){var e=this;Cs(t,"mounted",this,3)([]),this._refreshRuntimeStyles(),requestAnimationFrame(function(){return e._refreshRuntimeStyles()})}},{key:"updateProperty",value:function(e,n){switch(e){case"horizontal":this._horizontalExplicitlySet=!0,this._horizontal=!0===n||"true"===n||1===n||"1"===n,this._reconcileLayoutDirection();break;case"flexDirection":this._styleFlexDirection=n||"",Cs(t,"updateProperty",this,3)([e,n]),this._reconcileLayoutDirection();break;case"fadingEdgeLength":this._fadingEdgeLength=n||0,this._updateFadingEdge();break;case"horizontalFadingEdgeEnabled":this._horizontalFadingEdgeEnabled=!!n,this._updateFadingEdge();break;case"verticalFadingEdgeEnabled":this._verticalFadingEdgeEnabled=!!n,this._updateFadingEdge();break;case"clipChildren":this._clipChildren=!1!==n,this._updateClipChildren();break;case"scrollEnabled":case"onScrollEnable":this._scrollEnabled=!1!==n,this._updateScrollEnabled();break;case"listenBoundEvent":this._listenBoundEvent=!0===n||"true"===n||1===n||"1"===n;break;default:"string"==typeof n&&n.startsWith("${")&&this.dom.setAttribute(e,n),Cs(t,"updateProperty",this,3)([e,n])}}},{key:"_updateLayoutDirection",value:function(){this._reconcileLayoutDirection(),this._updateFadingEdge()}},{key:"_reconcileLayoutDirection",value:function(){this.dom&&(this._styleFlexDirection?this.dom.style.flexDirection=this._styleFlexDirection:this._horizontalExplicitlySet&&(this.dom.style.flexDirection=this._horizontal?"row":"column"))}},{key:"_refreshRuntimeStyles",value:function(){this.dom&&(this._reconcileLayoutDirection(),this._updateFadingEdge(),this._updateClipChildren(),this._updateScrollEnabled())}},{key:"_updateClipChildren",value:function(){this.dom&&(this.dom.style.overflow=this._clipChildren?"hidden":"visible")}},{key:"_updateScrollEnabled",value:function(){this.dom&&(this.dom.style.overflow=this._scrollEnabled?"auto":"hidden")}},{key:"_updateFadingEdge",value:function(){if(this.dom&&(this._startGradient&&(this._startGradient.remove(),this._startGradient=null),this._endGradient&&(this._endGradient.remove(),this._endGradient=null),(this._horizontal?this._horizontalFadingEdgeEnabled:this._verticalFadingEdgeEnabled)&&!(this._fadingEdgeLength<=0))){var e=this._fadingEdgeLength;this._horizontal?(this._startGradient=document.createElement("div"),this._startGradient.style.cssText="\n position: absolute;\n left: 0;\n top: 0;\n bottom: 0;\n width: ".concat(e,"px;\n background: linear-gradient(to right, rgba(0,0,0,0.3), transparent);\n pointer-events: none;\n z-index: 10;\n "),this.dom.appendChild(this._startGradient),this._endGradient=document.createElement("div"),this._endGradient.style.cssText="\n position: absolute;\n right: 0;\n top: 0;\n bottom: 0;\n width: ".concat(e,"px;\n background: linear-gradient(to left, rgba(0,0,0,0.3), transparent);\n pointer-events: none;\n z-index: 10;\n "),this.dom.appendChild(this._endGradient)):(this._startGradient=document.createElement("div"),this._startGradient.style.cssText="\n position: absolute;\n left: 0;\n top: 0;\n right: 0;\n height: ".concat(e,"px;\n background: linear-gradient(to bottom, rgba(0,0,0,0.3), transparent);\n pointer-events: none;\n z-index: 10;\n "),this.dom.appendChild(this._startGradient),this._endGradient=document.createElement("div"),this._endGradient.style.cssText="\n position: absolute;\n left: 0;\n bottom: 0;\n right: 0;\n height: ".concat(e,"px;\n background: linear-gradient(to top, rgba(0,0,0,0.3), transparent);\n pointer-events: none;\n z-index: 10;\n "),this.dom.appendChild(this._endGradient))}}},{key:"insertChild",value:function(e,t){if(e&&e.dom){var n="number"==typeof t&&t>=0&&t<this._children.length?this._children[t]:null;n&&n.dom&&n.dom.parentNode===this.dom?(this.dom.insertBefore(e.dom,n.dom),this._children.splice(t,0,e)):this._endGradient?(this.dom.insertBefore(e.dom,this._endGradient),this._children.push(e)):this._startGradient?(this.dom.insertBefore(e.dom,this._startGradient),this._children.push(e)):(this.dom.appendChild(e.dom),this._children.push(e)),this._syncChildPositions(),this._emitBoundEvent("bindItem",e)}}},{key:"removeChild",value:function(e){if(e&&e.dom&&e.dom.parentNode===this.dom){this._emitBoundEvent("unbindItem",e),this.dom.removeChild(e.dom);var t=this._children.indexOf(e);t>-1&&this._children.splice(t,1),this._syncChildPositions()}}},{key:"scrollToIndex",value:function(){var e=0,t=!0,n=0;arguments.length>=2&&"number"==typeof(arguments.length<=1?void 0:arguments[1])?(e=arguments.length<=1?void 0:arguments[1],t=!1!==(arguments.length<=2?void 0:arguments[2]),n=Number((arguments.length<=4?void 0:arguments[4])||0)):(e=Number((arguments.length<=0?void 0:arguments[0])||0),t=!1!==(arguments.length<=1?void 0:arguments[1]),n=Number((arguments.length<=2?void 0:arguments[2])||0));var r=this._children[e];if(r&&r.dom){var i=this._horizontal?r.dom.offsetLeft:r.dom.offsetTop;this.scrollToPosition(i,n,t)}}},{key:"scrollToPosition",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];this._horizontal?this.dom.scrollTo({left:e+t,behavior:n?"smooth":"auto"}):this.dom.scrollTo({top:e+t,behavior:n?"smooth":"auto"})}},{key:"requestFocus",value:function(e){return this.requestChildFocus(e)}},{key:"requestChildFocus",value:function(e){Array.isArray(e)&&(e=e[0]);var t=this._children[e];if(t&&t.dom){var r=this._findFocusableTarget(t.dom);if(r){this.scrollToIndex(e,!0);var i=n.g.__TV_FOCUS_MANAGER__;i&&"function"==typeof i._doFocusElement?i._doFocusElement(r):"function"==typeof r.focus&&r.focus()}}}},{key:"setSelectChildPosition",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];Array.isArray(e)&&(t=!0===e[1],e=e[0]);var n=Number(e);if(Number.isFinite(n)){this._clearSelectedState(),this._selectedPosition=n;var r=this._children[n];r&&r.dom&&(this._applySelectedState(r.dom),this.dispatchEvent("childSelect",{position:n,index:n,child:{index:n}})),t&&this.requestChildFocus(n)}}},{key:"_syncChildPositions",value:function(){this._children.forEach(function(e,t){e&&e.dom&&(e.dom.setAttribute("data-position",String(t)),e.dom.setAttribute("data-index",String(t)))})}},{key:"_emitBoundEvent",value:function(e,t){var n=this;if(this._listenBoundEvent&&t&&t.dom){var r=function(){var r=n._children.indexOf(t);r<0||n.dispatchEvent(e,{position:r,index:r})};"bindItem"!==e?r():requestAnimationFrame(r)}}},{key:"_findFocusableTarget",value:function(e){if(!e)return null;var t,n,r;return""===(r=null==(t=e)||null===(n=t.getAttribute)||void 0===n?void 0:n.call(t,"focusable"))||"true"===r||"1"===r?e:e.querySelector('[autofocus="true"]')||e.querySelector('[focusable="true"], [focusable=""], [focusable="1"]')}},{key:"_clearSelectedState",value:function(){var e=this.dom.querySelectorAll('[selected="true"], [selected=""]'),t=n.g.__TV_FOCUS_MANAGER__;e.forEach(function(e){e.removeAttribute("selected")}),t&&"function"==typeof t._removeDuplicateParentStateStyles&&this._children.forEach(function(e){null!=e&&e.dom&&t._removeDuplicateParentStateStyles(e.dom)})}},{key:"_applySelectedState",value:function(e){e.setAttribute("selected","true"),Array.from(e.children||[]).forEach(function(e){e.setAttribute("selected","true")}),e.querySelectorAll("[duplicateparentstate], [duplicateParentState]").forEach(function(e){e.setAttribute("selected","true")})}},{key:"endBatch",value:function(){this._refreshRuntimeStyles()}},{key:"destroy",value:function(){this._startGradient&&(this._startGradient.remove(),this._startGradient=null),this._endGradient&&(this._endGradient.remove(),this._endGradient=null),this._children=[],Cs(t,"destroy",this,3)([])}}])}(Bo),Ls=function(e){function t(e,n,r){var i;return x(this,t),(i=As(this,t,[e,n,r])).tagName="ListViewItem",i.dom=document.createElement("div"),i.dom.setAttribute("data-component-name","ListViewItem"),y(n,i),i.height=0,i.isDirty=!1,i.dirtyListener=null,i}return gn(t,e),L(t,[{key:"defaultStyle",value:function(){return{display:"flex",flexShrink:0,boxSizing:"border-box"}}},{key:"updateProperty",value:function(e,n){switch(e){case"sticky":this._sticky=!!n,this._updateSticky();break;case"type":this._type=n;break;default:"string"==typeof n&&n.startsWith("${")&&this.dom.setAttribute(e,n),Cs(t,"updateProperty",this,3)([e,n])}}},{key:"_updateSticky",value:function(){this.dom&&(this._sticky?(this.dom.style.position="sticky",this.dom.style.top="0",this.dom.style.zIndex="100"):(this.dom.style.position="",this.dom.style.top="",this.dom.style.zIndex=""))}},{key:"addDirtyListener",value:function(e){this.dirtyListener=e}},{key:"getItemHeight",value:function(){var e;return(null===(e=this.dom)||void 0===e?void 0:e.clientHeight)||0}},{key:"endBatch",value:function(){}},{key:"mounted",value:function(){var e=this;Cs(t,"mounted",this,3)([]),requestAnimationFrame(function(){e.height=e.getItemHeight()})}},{key:"destroy",value:function(){this.dirtyListener=null,Cs(t,"destroy",this,3)([])}}])}(Bo);function Os(e,t,n){return t=vn(t),pn(e,Ps()?Reflect.construct(t,n||[],vn(e).constructor):t.apply(e,n))}function Ps(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Ps=function(){return!!e})()}function Is(e,t,n,r){var i=yn(vn(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof i?function(e){return i.apply(n,e)}:i}var Ns=function(e){function t(e,n,r){var i;return x(this,t),(i=Os(this,t,[e,n,r])).tagName="ESPlayMarkViewComponent",i.dom=document.createElement("div"),i.dom.setAttribute("data-component-name","QtPlayMark"),i.dom.style.cssText="\n display: block;\n position: relative;\n box-sizing: border-box;\n overflow: hidden;\n ",i._markColor="#FF4E46",i._gap=2,i._showType=0,i._roundCorner=0,i._startColor=null,i._endColor=null,i._isSupportGradient=!1,i._animationFrame=null,i._bars=[],i._createBars(),y(n,i),i}return gn(t,e),L(t,[{key:"defaultStyle",value:function(){return{display:"block",position:"relative",boxSizing:"border-box",overflow:"hidden"}}},{key:"_createBars",value:function(){for(var e=0;e<4;e++){var t=document.createElement("div");t.className="play-mark-bar",t.style.cssText="\n position: absolute;\n bottom: 0;\n background-color: ".concat(this._markColor,";\n border-radius: ").concat(this._roundCorner,"px;\n "),this.dom.appendChild(t),this._bars.push(t)}this._startAnimation()}},{key:"updateProperty",value:function(e,n){var r=this;switch(e){case"markColor":case"markcolor":this._markColor=n||"#FF4E46",this._updateMarkColor();break;case"gap":this._gap=void 0!==n?Number(n):2;break;case"showType":case"showtype":this._showType=void 0!==n?Number(n):0;break;case"roundCorner":case"roundcorner":this._roundCorner=void 0!==n?Number(n):0,this._bars.forEach(function(e){e.style.borderRadius="".concat(r._roundCorner,"px")});break;case"startColor":case"startcolor":this._startColor=n,this._updateMarkColor();break;case"endColor":case"endcolor":this._endColor=n,this._updateMarkColor();break;case"isSupportGradient":case"issupportgradient":this._isSupportGradient=!0===n||"true"===n,this._updateMarkColor();break;default:Is(t,"updateProperty",this,3)([e,n])}}},{key:"_getBarColor",value:function(){return this._isSupportGradient&&this._startColor&&this._endColor?this._startColor:this._markColor}},{key:"_updateMarkColor",value:function(){var e=this._getBarColor();this._bars.forEach(function(t){t.style.backgroundColor=e})}},{key:"_startAnimation",value:function(){var e=this,t=0,n=function(){var r=e.dom.getBoundingClientRect(),i=r.width||26,o=r.height||30,a=e._bars.length,s=e._gap*(a-1),u=Math.floor((i-s)/a),l=(t=(t+1)%60)/60*Math.PI*2;e._bars.forEach(function(t,n){var r=n/a*Math.PI*2,i=.2+.375*(Math.sin(2*l+r)+1),s=Math.max(4,o*i);t.style.width="".concat(u,"px"),t.style.height="".concat(s,"px"),t.style.left="".concat(n*(u+e._gap),"px")}),e._animationFrame=requestAnimationFrame(n)};n()}},{key:"destroy",value:function(){this._animationFrame&&(cancelAnimationFrame(this._animationFrame),this._animationFrame=null),this._bars=[],Is(t,"destroy",this,3)([])}}])}(Bo);var Rs=["#000000","#ffffff","#ff0000","#00ff00","#0000ff","#ffff00","#ff00ff","#00ffff","#e74c3c","#f1c40f","#3498db","#2ecc71","#2c3e50","#bdc3c7","#ecf0f1","#95a5a6","#1abc9c","#e67e22","#9b59b6","#34495e","#27ae60","#c0392b","#f39c12","#2980b9"],Ds=["left","center","right","start","end"],Ms=["top","hanging","middle","alphabetic","ideographic","bottom"],Fs=["butt","round","square"],Bs=["round","bevel","miter"],js=["source-over","source-atop","source-in","source-out","destination-over","destination-atop","destination-in","destination-out","lighter","copy","xor"],Vs="undefined"!=typeof TextDecoder?new TextDecoder("utf-8"):null;function Ws(e,t){var n=e.getUint16(t.offset,!0);t.offset+=2;var r=function(e,t,n){var r=e.subarray?e.subarray(t,t+n):new Uint8Array(e.slice(t,t+n));if(Vs)return Vs.decode(r);for(var i="",o=t+n;t<o;){var a=e[t++];if(a<128)i+=String.fromCharCode(a);else if(a<224)i+=String.fromCharCode((31&a)<<6|63&e[t++]);else if(a<240)i+=String.fromCharCode((15&a)<<12|(63&e[t++])<<6|63&e[t++]);else{var s=(7&a)<<18|(63&e[t++])<<12|(63&e[t++])<<6|63&e[t++];s-=65536,i+=String.fromCharCode(55296|s>>10,56320|1023&s)}}return i}(new Uint8Array(e.buffer),t.offset,n);return t.offset+=n,r}function Hs(e,t){var n=e.getUint8(t.offset);return t.offset++,255===n?Ws(e,t):n<Rs.length?Rs[n]:"#000000"}function Us(e,t,n){var r=e.getUint8(t.offset);t.offset++;for(var i=0;i<r;i++){var o=e.getInt16(t.offset,!0);t.offset+=2;var a=e.getInt16(t.offset,!0);t.offset+=2,n.push({method:"lineTo",params:[o,a]})}}function Gs(e,t,n,r){switch(n){case 1:r.push({method:"beginPath",params:[]});break;case 2:r.push({method:"closePath",params:[]});break;case 3:var i=e.getInt16(t.offset,!0);t.offset+=2;var o=e.getInt16(t.offset,!0);t.offset+=2,r.push({method:"moveTo",params:[i,o]});break;case 4:i=e.getInt16(t.offset,!0);t.offset+=2;o=e.getInt16(t.offset,!0);t.offset+=2,r.push({method:"lineTo",params:[i,o]});break;case 5:i=e.getInt16(t.offset,!0);t.offset+=2;o=e.getInt16(t.offset,!0);t.offset+=2;var a=e.getInt16(t.offset,!0);t.offset+=2;var s=e.getInt16(t.offset,!0);t.offset+=2,r.push({method:"fillRect",params:[i,o,a,s]});break;case 6:i=e.getInt16(t.offset,!0);t.offset+=2;o=e.getInt16(t.offset,!0);t.offset+=2;a=e.getInt16(t.offset,!0);t.offset+=2;s=e.getInt16(t.offset,!0);t.offset+=2,r.push({method:"strokeRect",params:[i,o,a,s]});break;case 7:i=e.getInt16(t.offset,!0);t.offset+=2;o=e.getInt16(t.offset,!0);t.offset+=2;a=e.getInt16(t.offset,!0);t.offset+=2;s=e.getInt16(t.offset,!0);t.offset+=2,r.push({method:"clearRect",params:[i,o,a,s]});break;case 8:var u=Ws(e,t);i=e.getInt16(t.offset,!0);t.offset+=2;o=e.getInt16(t.offset,!0);t.offset+=2;var l=e.getInt16(t.offset,!0);t.offset+=2,l>=0?r.push({method:"fillText",params:[u,i,o,l]}):r.push({method:"fillText",params:[u,i,o]});break;case 9:u=Ws(e,t),i=e.getInt16(t.offset,!0);t.offset+=2;o=e.getInt16(t.offset,!0);t.offset+=2;l=e.getInt16(t.offset,!0);t.offset+=2,l>=0?r.push({method:"strokeText",params:[u,i,o,l]}):r.push({method:"strokeText",params:[u,i,o]});break;case 10:r.push({method:"fill",params:[]});break;case 11:r.push({method:"stroke",params:[]});break;case 12:r.push({method:"setFillStyle",params:[Hs(e,t)]});break;case 13:r.push({method:"setStrokeStyle",params:[Hs(e,t)]});break;case 14:var c=e.getUint8(t.offset)/255;t.offset++,r.push({method:"setGlobalAlpha",params:[c]});break;case 15:var d=e.getUint16(t.offset,!0)/100;t.offset+=2,r.push({method:"setLineWidth",params:[d]});break;case 16:r.push({method:"setFont",params:[Ws(e,t)]});break;case 17:var h=e.getFloat32(t.offset,!0);t.offset+=4;var f=e.getFloat32(t.offset,!0);t.offset+=4;var p=e.getFloat32(t.offset,!0);t.offset+=4;var v=e.getFloat32(t.offset,!0);t.offset+=4;var y=e.getFloat32(t.offset,!0);t.offset+=4;var m=e.getUint8(t.offset);t.offset++,r.push({method:"arc",params:[h,f,p,v,y,1===m]});break;case 18:var g=e.getFloat32(t.offset,!0);t.offset+=4;var _=e.getFloat32(t.offset,!0);t.offset+=4;var b=e.getFloat32(t.offset,!0);t.offset+=4;var w=e.getFloat32(t.offset,!0);t.offset+=4;var k=e.getFloat32(t.offset,!0);t.offset+=4,r.push({method:"arcTo",params:[g,_,b,w,k]});break;case 19:var E=e.getFloat32(t.offset,!0);t.offset+=4;var S=e.getFloat32(t.offset,!0);t.offset+=4;i=e.getFloat32(t.offset,!0);t.offset+=4;o=e.getFloat32(t.offset,!0);t.offset+=4,r.push({method:"quadraticCurveTo",params:[E,S,i,o]});break;case 20:var A=e.getFloat32(t.offset,!0);t.offset+=4;var x=e.getFloat32(t.offset,!0);t.offset+=4;var C=e.getFloat32(t.offset,!0);t.offset+=4;var T=e.getFloat32(t.offset,!0);t.offset+=4;i=e.getFloat32(t.offset,!0);t.offset+=4;o=e.getFloat32(t.offset,!0);t.offset+=4,r.push({method:"bezierCurveTo",params:[A,x,C,T,i,o]});break;case 21:i=e.getInt16(t.offset,!0);t.offset+=2;o=e.getInt16(t.offset,!0);t.offset+=2;a=e.getInt16(t.offset,!0);t.offset+=2;s=e.getInt16(t.offset,!0);t.offset+=2,r.push({method:"rect",params:[i,o,a,s]});break;case 22:r.push({method:"save",params:[]});break;case 23:r.push({method:"restore",params:[]});break;case 24:var L=e.getFloat32(t.offset,!0);t.offset+=4;var O=e.getFloat32(t.offset,!0);t.offset+=4,r.push({method:"translate",params:[L,O]});break;case 25:var P=e.getFloat32(t.offset,!0);t.offset+=4,r.push({method:"rotate",params:[P]});break;case 26:var I=e.getFloat32(t.offset,!0);t.offset+=4;var N=e.getFloat32(t.offset,!0);t.offset+=4,r.push({method:"scale",params:[I,N]});break;case 27:var R=e.getFloat32(t.offset,!0);t.offset+=4;var D=e.getFloat32(t.offset,!0);t.offset+=4;var M=e.getFloat32(t.offset,!0);t.offset+=4;var F=e.getFloat32(t.offset,!0);t.offset+=4;var B=e.getFloat32(t.offset,!0);t.offset+=4;var j=e.getFloat32(t.offset,!0);t.offset+=4,r.push({method:"setTransform",params:[R,D,M,F,B,j]});break;case 28:R=e.getFloat32(t.offset,!0);t.offset+=4;D=e.getFloat32(t.offset,!0);t.offset+=4;M=e.getFloat32(t.offset,!0);t.offset+=4;F=e.getFloat32(t.offset,!0);t.offset+=4;B=e.getFloat32(t.offset,!0);t.offset+=4;j=e.getFloat32(t.offset,!0);t.offset+=4,r.push({method:"transform",params:[R,D,M,F,B,j]});break;case 29:var V=Ws(e,t),W=e.getUint8(t.offset);if(t.offset++,3===W){I=e.getFloat32(t.offset,!0);t.offset+=4;N=e.getFloat32(t.offset,!0);t.offset+=4;var H=e.getFloat32(t.offset,!0);t.offset+=4;var U=e.getFloat32(t.offset,!0);t.offset+=4;var G=e.getFloat32(t.offset,!0);t.offset+=4;var z=e.getFloat32(t.offset,!0);t.offset+=4;var Y=e.getFloat32(t.offset,!0);t.offset+=4;var q=e.getFloat32(t.offset,!0);t.offset+=4,r.push({method:"drawImage",params:[V,I,N,H,U,G,z,Y,q]})}else if(2===W){G=e.getFloat32(t.offset,!0);t.offset+=4;z=e.getFloat32(t.offset,!0);t.offset+=4;Y=e.getFloat32(t.offset,!0);t.offset+=4;q=e.getFloat32(t.offset,!0);t.offset+=4,r.push({method:"drawImage",params:[V,G,z,Y,q]})}else{G=e.getFloat32(t.offset,!0);t.offset+=4;z=e.getFloat32(t.offset,!0);t.offset+=4,r.push({method:"drawImage",params:[V,G,z]})}break;case 30:var X=e.getUint8(t.offset);t.offset++,r.push({method:"setTextAlign",params:[Ds[X]||"start"]});break;case 31:X=e.getUint8(t.offset);t.offset++,r.push({method:"setTextBaseline",params:[Ms[X]||"alphabetic"]});break;case 32:r.push({method:"clip",params:[]});break;case 33:X=e.getUint8(t.offset);t.offset++,r.push({method:"lineCap",params:[Fs[X]||"butt"]});break;case 34:X=e.getUint8(t.offset);t.offset++,r.push({method:"lineJoin",params:[Bs[X]||"miter"]});break;case 35:var K=e.getUint8(t.offset);t.offset++;for(var $=[],Z=0;Z<K;Z++)$.push(e.getUint16(t.offset,!0)/100),t.offset+=2;r.push({method:"setLineDash",params:[$]});break;case 36:var J=e.getFloat32(t.offset,!0);t.offset+=4,r.push({method:"lineDashOffset",params:[J]});break;case 37:J=e.getFloat32(t.offset,!0);t.offset+=4,r.push({method:"setShadowBlur",params:[J]});break;case 38:r.push({method:"setShadowColor",params:[Hs(e,t)]});break;case 39:J=e.getFloat32(t.offset,!0);t.offset+=4,r.push({method:"setShadowOffsetX",params:[J]});break;case 40:J=e.getFloat32(t.offset,!0);t.offset+=4,r.push({method:"setShadowOffsetY",params:[J]});break;case 41:X=e.getUint8(t.offset);t.offset++,r.push({method:"setGlobalCompositeOperation",params:[js[X]||"source-over"]})}}function zs(e){return e>=48&&e<=57?e-48:e-55}function Ys(e){var t=new DataView(e);if(t.byteLength<5)return[];if(80!==t.getUint8(0)||72!==t.getUint8(1)||1!==t.getUint8(2))return[];for(var n=t.getUint16(3,!0),r={offset:5},i=[],o=0;o<n&&!(r.offset>=t.byteLength);o++){var a=t.getUint8(r.offset);r.offset++,48===a?Us(t,r,i):Gs(t,r,a,i)}return i}function qs(e){if(!e||0===e.length)return[];var t=e[0];if(t instanceof ArrayBuffer)return Ys(t);if(t instanceof Uint8Array)return Ys(t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength));if("string"==typeof t){if(t.length>=6&&t.length%2==0&&91!==t.charCodeAt(0)&&function(e){for(var t=0;t<e.length;t++){var n=e.charCodeAt(t);if(!(n>=48&&n<=57||n>=65&&n<=70))return!1}return!0}(t))return Ys(function(e){for(var t=e.length/2,n=new Uint8Array(t),r=0;r<t;r++)n[r]=zs(e.charCodeAt(2*r))<<4|zs(e.charCodeAt(2*r+1));return n.buffer}(t));if(80===t.charCodeAt(0)&&72===t.charCodeAt(1))return Ys(function(e){for(var t=atob(e),n=new Uint8Array(t.length),r=0;r<t.length;r++)n[r]=t.charCodeAt(r);return n.buffer}(t));try{return JSON.parse(t)}catch(e){return[]}}return[]}function Xs(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Ks(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ks(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function Ks(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function $s(e,t,n){return t=vn(t),pn(e,Zs()?Reflect.construct(t,n||[],vn(e).constructor):t.apply(e,n))}function Zs(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Zs=function(){return!!e})()}function Js(e,t,n,r){var i=yn(vn(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof i?function(e){return i.apply(n,e)}:i}var Qs={};var eu=function(e){function t(e,n,r){var i;return x(this,t),(i=$s(this,t,[e,n,r])).tagName="CanvasView2D",i.dom=document.createElement("canvas"),i.ctx=null,i._imageCache={},i._gradientCache={},i._pendingActions=[],i._readyEmitted=!1,function(e,t){Qs[e]=t}(n,i),i}return gn(t,e),L(t,[{key:"mounted",value:function(){Js(t,"mounted",this,3)([]),this.dom.width&&this.dom.height&&(this.ctx=this.dom.getContext("2d")),this._checkReady()}},{key:"_ensureContext",value:function(){return this.ctx||(this.ctx=this.dom.getContext("2d")),this.ctx}},{key:"updateProperty",value:function(e,n){return"width"===e?(this.dom.width=n,this._ensureContext(),void this._checkReady()):"height"===e?(this.dom.height=n,this._ensureContext(),void this._checkReady()):void Js(t,"updateProperty",this,3)([e,n])}},{key:"_checkReady",value:function(){var e=this;if(!this._readyEmitted&&this.dom.width>0&&this.dom.height>0){var t,n;this._readyEmitted=!0;var r=function(){e.dispatchEvent("onReady",{})},i=null===(t=this.context)||void 0===t||null===(n=t.getModuleByName)||void 0===n?void 0:n.call(t,"UIManagerModule");i&&"function"==typeof i.addAfterCreateAction?i.addAfterCreateAction(r):requestAnimationFrame(r)}}},{key:"fillStyle",value:function(e){var t=this._ensureContext();if(t){var n=Array.isArray(e)?e[0]:e;"string"==typeof n&&(n.startsWith("AC")?t.fillStyle=this._parseLinearGradient(n):n.startsWith("AD")?t.fillStyle=this._parseRadialGradient(n):t.fillStyle=n)}}},{key:"strokeStyle",value:function(e){var t=this._ensureContext();if(t){var n=Array.isArray(e)?e[0]:e;if("string"==typeof n)if(n.startsWith("NC")||n.startsWith("AC")){var r=n.startsWith("NC")?"AC"+n.slice(2):n;t.strokeStyle=this._parseLinearGradient(r)}else n.startsWith("AD")?t.strokeStyle=this._parseRadialGradient(n):t.strokeStyle=n}}},{key:"_parseLinearGradient",value:function(e){var t=this._ensureContext();if(!t)return"#000000";for(var n=e.slice(2).split(","),r=parseFloat(n[0]),i=parseFloat(n[1]),o=parseFloat(n[2]),a=parseFloat(n[3]),s=t.createLinearGradient(r,i,o,a),u=4;u<n.length;u+=2)s.addColorStop(parseFloat(n[u]),n[u+1]);return s}},{key:"_parseRadialGradient",value:function(e){var t=this._ensureContext();if(!t)return"#000000";for(var n=e.slice(2).split(","),r=parseFloat(n[0]),i=parseFloat(n[1]),o=parseFloat(n[2]),a=parseFloat(n[3]),s=parseFloat(n[4]),u=parseFloat(n[5]),l=t.createRadialGradient(r,i,o,a,s,u),c=6;c<n.length;c+=2)l.addColorStop(parseFloat(n[c]),n[c+1]);return l}},{key:"fillRect",value:function(e){var t=this._ensureContext();!t||!e||e.length<4||t.fillRect(e[0],e[1],e[2],e[3])}},{key:"strokeRect",value:function(e){var t=this._ensureContext();!t||!e||e.length<4||t.strokeRect(e[0],e[1],e[2],e[3])}},{key:"clearRect",value:function(e){var t=this._ensureContext();!t||!e||e.length<4||t.clearRect(e[0],e[1],e[2],e[3])}},{key:"fillText",value:function(e){var t=this._ensureContext();!t||!e||e.length<3||t.fillText(e[0],e[1],e[2])}},{key:"strokeText",value:function(e){var t=this._ensureContext();!t||!e||e.length<3||t.strokeText(e[0],e[1],e[2])}},{key:"font",value:function(e){var t=this._ensureContext();t&&e&&(t.font=Array.isArray(e)?e[0]:e)}},{key:"textAlign",value:function(e){var t=this._ensureContext();t&&e&&(t.textAlign=Array.isArray(e)?e[0]:e)}},{key:"textBaseline",value:function(e){var t=this._ensureContext();t&&e&&(t.textBaseline=Array.isArray(e)?e[0]:e)}},{key:"lineWidth",value:function(e){var t=this._ensureContext();t&&e&&(t.lineWidth=Array.isArray(e)?e[0]:e)}},{key:"lineCap",value:function(e){var t=this._ensureContext();t&&e&&(t.lineCap=Array.isArray(e)?e[0]:e)}},{key:"lineJoin",value:function(e){var t=this._ensureContext();t&&e&&(t.lineJoin=Array.isArray(e)?e[0]:e)}},{key:"setLineDash",value:function(e){var t=this._ensureContext();t&&e&&t.setLineDash(Array.isArray(e)?e:[e])}},{key:"lineDashOffset",value:function(e){var t=this._ensureContext();t&&e&&(t.lineDashOffset=Array.isArray(e)?e[0]:e)}},{key:"shadowBlur",value:function(e){var t=this._ensureContext();t&&e&&(t.shadowBlur=Array.isArray(e)?e[0]:e)}},{key:"shadowColor",value:function(e){var t=this._ensureContext();t&&e&&(t.shadowColor=Array.isArray(e)?e[0]:e)}},{key:"shadowOffsetX",value:function(e){var t=this._ensureContext();t&&e&&(t.shadowOffsetX=Array.isArray(e)?e[0]:e)}},{key:"shadowOffsetY",value:function(e){var t=this._ensureContext();t&&e&&(t.shadowOffsetY=Array.isArray(e)?e[0]:e)}},{key:"globalAlpha",value:function(e){var t=this._ensureContext();t&&e&&(t.globalAlpha=Array.isArray(e)?e[0]:e)}},{key:"globalCompositeOperation",value:function(e){var t=this._ensureContext();t&&e&&(t.globalCompositeOperation=Array.isArray(e)?e[0]:e)}},{key:"beginPath",value:function(e){var t=this._ensureContext();t&&t.beginPath()}},{key:"closePath",value:function(e){var t=this._ensureContext();t&&t.closePath()}},{key:"moveTo",value:function(e){var t=this._ensureContext();!t||!e||e.length<2||t.moveTo(e[0],e[1])}},{key:"lineTo",value:function(e){var t=this._ensureContext();!t||!e||e.length<2||t.lineTo(e[0],e[1])}},{key:"arc",value:function(e){var t=this._ensureContext();!t||!e||e.length<5||t.arc(e[0],e[1],e[2],e[3],e[4],e.length>5&&e[5])}},{key:"arcTo",value:function(e){var t=this._ensureContext();!t||!e||e.length<5||t.arcTo(e[0],e[1],e[2],e[3],e[4])}},{key:"quadraticCurveTo",value:function(e){var t=this._ensureContext();!t||!e||e.length<4||t.quadraticCurveTo(e[0],e[1],e[2],e[3])}},{key:"bezierCurveTo",value:function(e){var t=this._ensureContext();!t||!e||e.length<6||t.bezierCurveTo(e[0],e[1],e[2],e[3],e[4],e[5])}},{key:"rect",value:function(e){var t=this._ensureContext();!t||!e||e.length<4||t.rect(e[0],e[1],e[2],e[3])}},{key:"fill",value:function(e){var t=this._ensureContext();t&&t.fill()}},{key:"stroke",value:function(e){var t=this._ensureContext();t&&t.stroke()}},{key:"clip",value:function(e){var t=this._ensureContext();t&&t.clip()}},{key:"save",value:function(e){var t=this._ensureContext();t&&t.save()}},{key:"restore",value:function(e){var t=this._ensureContext();t&&t.restore()}},{key:"translate",value:function(e){var t=this._ensureContext();!t||!e||e.length<2||t.translate(e[0],e[1])}},{key:"rotate",value:function(e){var t=this._ensureContext();t&&e&&t.rotate(Array.isArray(e)?e[0]:e)}},{key:"scale",value:function(e){var t=this._ensureContext();!t||!e||e.length<2||t.scale(e[0],e[1])}},{key:"transform",value:function(e){var t=this._ensureContext();!t||!e||e.length<6||t.transform(e[0],e[1],e[2],e[3],e[4],e[5])}},{key:"setTransform",value:function(e){var t=this._ensureContext();!t||!e||e.length<6||t.setTransform(e[0],e[1],e[2],e[3],e[4],e[5])}},{key:"loadImage",value:function(e){var t=this,n=Array.isArray(e)?e[0]:e;if(!n)return{error:"No image source provided"};var r=this._imageCache[n];if(r)return{imageId:n,width:r.naturalWidth,height:r.naturalHeight};var i=new Image;return i.onload=function(){t._imageCache[n]=i},i.src=n,i.complete&&i.naturalWidth>0?(this._imageCache[n]=i,{imageId:n,width:i.naturalWidth,height:i.naturalHeight}):{imageId:n,width:0,height:0}}},{key:"drawImage",value:function(e){var t=this;if(e&&!(e.length<3)){var n=e[0],r=this._imageCache[n];if(r)this._drawImageWithImg(r,e.slice(1));else{var i=new Image;i.onload=function(){t._imageCache[n]=i,t._drawImageWithImg(i,e.slice(1))},i.src=n}}}},{key:"_drawImageWithImg",value:function(e,t){var n=this._ensureContext();n&&(t.length>=8?n.drawImage(e,t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7]):t.length>=4?n.drawImage(e,t[0],t[1],t[2],t[3]):n.drawImage(e,t[0],t[1]))}},{key:"drawAction",value:function(e){var t=qs(e);if(t.length>0){var n,r=Xs(t);try{for(r.s();!(n=r.n()).done;){var i=n.value;this[i.method]&&this[i.method](i.params)}}catch(e){r.e(e)}finally{r.f()}}}},{key:"destoryView",value:function(e){this._imageCache={},this._gradientCache={}}},{key:"setVersion",value:function(e){}},{key:"setCurrentDensity",value:function(e){}},{key:"getContext2d",value:function(e){return this._ensureContext()}},{key:"createLinearGradient",value:function(e){}},{key:"createRadialGradient",value:function(e){}},{key:"createPattern",value:function(e){}},{key:"measureText",value:function(e){var t=this._ensureContext();if(!t||!e)return{width:0};var n=Array.isArray(e)?e[0]:e;return{width:t.measureText(n).width}}},{key:"setFillStyle",value:function(e){this.fillStyle(e)}},{key:"setStrokeStyle",value:function(e){this.strokeStyle(e)}},{key:"setLineWidth",value:function(e){this.lineWidth(e)}},{key:"setFont",value:function(e){this.font(e)}},{key:"setTextAlign",value:function(e){this.textAlign(e)}},{key:"setTextBaseline",value:function(e){this.textBaseline(e)}},{key:"setShadowBlur",value:function(e){this.shadowBlur(e)}},{key:"setShadowColor",value:function(e){this.shadowColor(e)}},{key:"setShadowOffsetX",value:function(e){this.shadowOffsetX(e)}},{key:"setShadowOffsetY",value:function(e){this.shadowOffsetY(e)}},{key:"setGlobalAlpha",value:function(e){this.globalAlpha(e)}},{key:"setGlobalCompositeOperation",value:function(e){this.globalCompositeOperation(e)}},{key:"beforeUnmount",value:function(){this._imageCache={},this._gradientCache={},delete Qs[this.id],Js(t,"beforeUnmount",this,3)([])}}])}(Bo);function tu(e,t,n){return t=vn(t),pn(e,nu()?Reflect.construct(t,n||[],vn(e).constructor):t.apply(e,n))}function nu(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(nu=function(){return!!e})()}var ru=function(e){function t(e,n,r){var i;return x(this,t),(i=tu(this,t,[e,n,r])).tagName="TransitionImageComponent",i.dom=document.createElement("div"),i.dom.style.cssText="\n display: block;\n background-size: cover;\n background-position: center;\n background-repeat: no-repeat;\n ",i._transitionDuration=300,i._currentSrc="",y(n,i),i}return gn(t,e),L(t,[{key:"updateProperty",value:function(e,n){switch(e){case"src":case"source":this._setSrc(n);break;case"transitionDuration":case"transition-duration":this._transitionDuration="number"==typeof n?n:parseInt(n)||300;break;case"resizeMode":this._setResizeMode(n);break;default:(r=t,i="updateProperty",o=this,s=yn(vn(1&(a=3)?r.prototype:r),i,o),2&a&&"function"==typeof s?function(e){return s.apply(o,e)}:s)([e,n])}var r,i,o,a,s}},{key:"_setSrc",value:function(e){if(!e)return this.dom.style.backgroundImage="",void(this._currentSrc="");var t="";return"string"==typeof e?t=e:"object"==typeof e&&e.uri&&(t=e.uri),(t=(0,dt.pb)(t))!==this._currentSrc?this._currentSrc?void this._transitionToImage(t):(this.dom.style.backgroundImage="url(".concat(t,")"),void(this._currentSrc=t)):void 0}},{key:"_transitionToImage",value:function(e){var t=this,n=new Image;n.onload=function(){t.dom.style.transition="opacity ".concat(t._transitionDuration/2,"ms ease-out"),t.dom.style.opacity="0",setTimeout(function(){t.dom.style.backgroundImage="url(".concat(e,")"),t._currentSrc=e,t.dom.style.transition="opacity ".concat(t._transitionDuration/2,"ms ease-in"),t.dom.style.opacity="1",setTimeout(function(){t.dom.style.transition=""},t._transitionDuration/2)},t._transitionDuration/2)},n.onerror=function(){},n.src=e}},{key:"_setResizeMode",value:function(e){var t={contain:"contain",cover:"cover",fill:"100% 100%",center:"auto",origin:"auto"}[e]||"cover";this.dom.style.backgroundSize=t}},{key:"setNextImage",value:function(e){var t=Array.isArray(e)?e[0]:e;t&&t!==this._currentSrc&&this._transitionToImage(t)}},{key:"setNextColor",value:function(e){var t=this,n=Array.isArray(e)?e[0]:e,r=this._formatColor(n);this.dom.style.transition="opacity ".concat(this._transitionDuration/2,"ms ease-out"),this.dom.style.opacity="0",setTimeout(function(){t.dom.style.backgroundImage="",t.dom.style.backgroundColor=r,t._currentSrc="",t.dom.style.transition="opacity ".concat(t._transitionDuration/2,"ms ease-in"),t.dom.style.opacity="1",setTimeout(function(){t.dom.style.transition=""},t._transitionDuration/2)},this._transitionDuration/2)}},{key:"setTransitionTime",value:function(e){var t=Array.isArray(e)?e[0]:e;this._transitionDuration="number"==typeof t?t:parseInt(t)||300}},{key:"_formatColor",value:function(e){if("number"==typeof e){var t=(e>>24&255)/255,n=e>>8&255,r=255&e;return"rgba(".concat(e>>16&255,", ").concat(n,", ").concat(r,", ").concat(t,")")}return e}}])}(Bo),iu=function(){return L(function e(t){x(this,e),this.context=t,this.name="",this.mode="normal"},[{key:"getDeviceInfo",value:(v=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",O(n,{}));case 1:case"end":return e.stop()}},e)})),function(){return v.apply(this,arguments)})},{key:"getESSDKInfo",value:(p=l(c.mark(function e(){var t,r,i,o,a=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t={eskit_ver_code:2.8,runtimePath:"/"},n.g.__ES_LAST_SDK_INFO__=t,r=a.length,i=new Array(r),o=0;o<r;o++)i[o]=a[o];return e.abrupt("return",O(i,t));case 1:case"end":return e.stop()}},e)})),function(){return p.apply(this,arguments)})},{key:"getESSDKVersionCode",value:(f=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",O(n,2.8));case 1:case"end":return e.stop()}},e)})),function(){return f.apply(this,arguments)})},{key:"getESSDKVersionName",value:(h=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",O(n,"web"));case 1:case"end":return e.stop()}},e)})),function(){return h.apply(this,arguments)})},{key:"getESPackageName",value:(d=l(c.mark(function e(){var t,n,r,i,o,a=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=globalThis,n=t&&t.__CONFIG__&&t.__CONFIG__.packageName?t.__CONFIG__.packageName:"web",r=a.length,i=new Array(r),o=0;o<r;o++)i[o]=a[o];return e.abrupt("return",O(i,n));case 1:case"end":return e.stop()}},e)})),function(){return d.apply(this,arguments)})},{key:"getESMiniProgramPath",value:(u=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",O(n,""));case 1:case"end":return e.stop()}},e)})),function(){return u.apply(this,arguments)})},{key:"getESAppFilePath",value:(s=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",O(n,""));case 1:case"end":return e.stop()}},e)})),function(){return s.apply(this,arguments)})},{key:"getESAppRuntimePath",value:(a=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",O(n,"/"));case 1:case"end":return e.stop()}},e)})),function(){return a.apply(this,arguments)})},{key:"getSupportSchemes",value:(o=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",O(n,[]));case 1:case"end":return e.stop()}},e)})),function(){return o.apply(this,arguments)})},{key:"sendESNativeMapEventTop",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return O(t,null)}},{key:"sendESNativeArrayEventTop",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return O(t,null)}},{key:"sendESNativeMapEventAll",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return O(t,null)}},{key:"sendESNativeArrayEventAll",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return O(t,null)}},{key:"launchESPageByArgs",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return O(t,null)}},{key:"launchESPage",value:(i=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",O(n,null));case 1:case"end":return e.stop()}},e)})),function(){return i.apply(this,arguments)})},{key:"launchNativeApp",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return O(t,null)}},{key:"launchNativeAppWithPackage",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return O(t,null)}},{key:"finish",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return O(t,null)}},{key:"finishAll",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return O(t,null)}},{key:"isModuleRegistered",value:(r=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",O(n,!1));case 1:case"end":return e.stop()}},e)})),function(){return r.apply(this,arguments)})},{key:"isComponentRegistered",value:(t=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",O(n,!1));case 1:case"end":return e.stop()}},e)})),function(){return t.apply(this,arguments)})},{key:"init",value:(e=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",P(n));case 1:case"end":return e.stop()}},e)})),function(){return e.apply(this,arguments)})},{key:"destroy",value:function(){}}]);var e,t,r,i,o,a,s,u,d,h,f,p,v}();function ou(){var e=globalThis;return e&&e.__localStorage||e&&e.localStorage||null}function au(e){return su.apply(this,arguments)}function su(){return(su=l(c.mark(function e(t){var n,r,i;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if((n=ou())&&n.getItem){e.next=1;break}return e.abrupt("return",null);case 1:if(!(r=n.getItem(t))||"function"!=typeof r.then){e.next=3;break}return e.next=2,r;case 2:i=e.sent,e.next=4;break;case 3:i=r;case 4:return e.abrupt("return",i);case 5:case"end":return e.stop()}},e)}))).apply(this,arguments)}function uu(e,t){return lu.apply(this,arguments)}function lu(){return(lu=l(c.mark(function e(t,n){var r,i;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if((r=ou())&&r.setItem){e.next=1;break}return e.abrupt("return",!1);case 1:if(!(i=r.setItem(t,n))||"function"!=typeof i.then){e.next=2;break}return e.next=2,i;case 2:return e.abrupt("return",!0);case 3:case"end":return e.stop()}},e)}))).apply(this,arguments)}var cu=function(){return L(function e(t){x(this,e),this.context=t,this.name="",this.mode="normal",this._name=""},[{key:"_key",value:function(e){return this._name?"".concat(this._name,":").concat(e):e}},{key:"initSharedPreferences",value:(h=l(c.mark(function e(t){var n,r,i,o=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(this._name=String(null!=t?t:""),n=o.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=o[i];return e.abrupt("return",O(r,!0));case 1:case"end":return e.stop()}},e,this)})),function(e){return h.apply(this,arguments)})},{key:"initESSharedPreferences",value:(d=l(c.mark(function e(t){var n,r,i,o=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(this._name=String(null!=t?t:""),n=o.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=o[i];return e.abrupt("return",O(r,!0));case 1:case"end":return e.stop()}},e,this)})),function(e){return d.apply(this,arguments)})},{key:"getBoolean",value:(u=l(c.mark(function e(t,n){var r,i,o,a,s=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,au(this._key(String(t)));case 1:for(r=e.sent,i=s.length,o=new Array(i>2?i-2:0),a=2;a<i;a++)o[a-2]=s[a];if(null!=r){e.next=2;break}return e.abrupt("return",O(o,!!n));case 2:if("true"!==r){e.next=3;break}return e.abrupt("return",O(o,!0));case 3:if("false"!==r){e.next=4;break}return e.abrupt("return",O(o,!1));case 4:if("1"!==r){e.next=5;break}return e.abrupt("return",O(o,!0));case 5:if("0"!==r){e.next=6;break}return e.abrupt("return",O(o,!1));case 6:return e.abrupt("return",O(o,!!n));case 7:case"end":return e.stop()}},e,this)})),function(e,t){return u.apply(this,arguments)})},{key:"putBoolean",value:(s=l(c.mark(function e(t,n){var r,i,o,a,s=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,uu(this._key(String(t)),n?"true":"false");case 1:for(r=e.sent,i=s.length,o=new Array(i>2?i-2:0),a=2;a<i;a++)o[a-2]=s[a];return e.abrupt("return",O(o,r));case 2:case"end":return e.stop()}},e,this)})),function(e,t){return s.apply(this,arguments)})},{key:"getInt",value:(a=l(c.mark(function e(t,n){var r,i,o,a,s,u=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,au(this._key(String(t)));case 1:for(r=e.sent,i=u.length,o=new Array(i>2?i-2:0),a=2;a<i;a++)o[a-2]=u[a];if(null!=r&&""!==r){e.next=2;break}return e.abrupt("return",O(o,Number(n)||0));case 2:return s=Number.parseInt(String(r),10),e.abrupt("return",O(o,Number.isFinite(s)?s:Number(n)||0));case 3:case"end":return e.stop()}},e,this)})),function(e,t){return a.apply(this,arguments)})},{key:"putInt",value:(o=l(c.mark(function e(t,n){var r,i,o,a,s=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,uu(this._key(String(t)),String(0|Number(n)));case 1:for(r=e.sent,i=s.length,o=new Array(i>2?i-2:0),a=2;a<i;a++)o[a-2]=s[a];return e.abrupt("return",O(o,r));case 2:case"end":return e.stop()}},e,this)})),function(e,t){return o.apply(this,arguments)})},{key:"getLong",value:(i=l(c.mark(function e(t,n){var r,i,o,a,s,u=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,au(this._key(String(t)));case 1:for(r=e.sent,i=u.length,o=new Array(i>2?i-2:0),a=2;a<i;a++)o[a-2]=u[a];if(null!=r&&""!==r){e.next=2;break}return e.abrupt("return",O(o,Number(n)||0));case 2:return s=Number.parseInt(String(r),10),e.abrupt("return",O(o,Number.isFinite(s)?s:Number(n)||0));case 3:case"end":return e.stop()}},e,this)})),function(e,t){return i.apply(this,arguments)})},{key:"putLong",value:(r=l(c.mark(function e(t,n){var r,i,o,a,s=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,uu(this._key(String(t)),String(Math.trunc(Number(n))));case 1:for(r=e.sent,i=s.length,o=new Array(i>2?i-2:0),a=2;a<i;a++)o[a-2]=s[a];return e.abrupt("return",O(o,r));case 2:case"end":return e.stop()}},e,this)})),function(e,t){return r.apply(this,arguments)})},{key:"getString",value:(n=l(c.mark(function e(t,n){var r,i,o,a,s=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,au(this._key(String(t)));case 1:for(r=e.sent,i=s.length,o=new Array(i>2?i-2:0),a=2;a<i;a++)o[a-2]=s[a];return e.abrupt("return",O(o,String(null==r?null!=n?n:"":r)));case 2:case"end":return e.stop()}},e,this)})),function(e,t){return n.apply(this,arguments)})},{key:"putString",value:(t=l(c.mark(function e(t,n){var r,i,o,a,s=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,uu(this._key(String(t)),String(null!=n?n:""));case 1:for(r=e.sent,i=s.length,o=new Array(i>2?i-2:0),a=2;a<i;a++)o[a-2]=s[a];return e.abrupt("return",O(o,r));case 2:case"end":return e.stop()}},e,this)})),function(e,n){return t.apply(this,arguments)})},{key:"init",value:(e=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",P(n));case 1:case"end":return e.stop()}},e)})),function(){return e.apply(this,arguments)})},{key:"destroy",value:function(){}}]);var e,t,n,r,i,o,a,s,u,d,h}();function du(){var e=navigator.userAgent,t="unknown",n="unknown",r="";if(/Windows/i.test(e)){n="windows";var i=e.match(/Windows NT (\d+\.?\d*)/);r=i?i[1]:""}else if(/Mac/i.test(e)){n="mac";var o=e.match(/Mac OS X (\d+[._]\d+[._]?\d*)/);r=o?o[1].replace(/_/g,"."):""}else if(/Linux/i.test(e))n="linux";else if(/Android/i.test(e)){n="android";var a=e.match(/Android (\d+\.?\d*\.?\d*)/);r=a?a[1]:""}else if(/iOS|iPhone|iPad/i.test(e)){n="ios";var s=e.match(/OS (\d+_\d+_?\d*)/);r=s?s[1].replace(/_/g,"."):""}return/Chrome/i.test(e)&&!/Edge|Edg/i.test(e)?t="chrome":/Safari/i.test(e)&&!/Chrome/i.test(e)?t="safari":/Firefox/i.test(e)?t="firefox":/Edge|Edg/i.test(e)&&(t="edge"),{browser:t,os:n,osVersion:r}}var hu=function(){return L(function e(t){x(this,e),this.context=t,this.name="",this.mode="normal"},[{key:"getDeviceInfo",value:(a=l(c.mark(function e(){var t,n,r,i,o,a,s,u,l=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=du(),n=t.browser,r=t.os,i=t.osVersion,o={deviceType:"web",deviceModel:n,deviceBrand:"web",osName:r,osVersion:i,screenWidth:window.screen.width||0,screenHeight:window.screen.height||0,screenDensity:window.devicePixelRatio||1,platform:"web"},a=l.length,s=new Array(a),u=0;u<a;u++)s[u]=l[u];return e.abrupt("return",O(s,o));case 1:case"end":return e.stop()}},e)})),function(){return a.apply(this,arguments)})},{key:"getSupportSchemes",value:(o=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",O(n,[]));case 1:case"end":return e.stop()}},e)})),function(){return o.apply(this,arguments)})},{key:"getVisiblePageSize",value:(i=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",O(n,{width:window.innerWidth,height:window.innerHeight}));case 1:case"end":return e.stop()}},e)})),function(){return i.apply(this,arguments)})},{key:"launchEsPage",value:(r=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",O(n,null));case 1:case"end":return e.stop()}},e)})),function(){return r.apply(this,arguments)})},{key:"launchNativeApp",value:(n=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",O(n,null));case 1:case"end":return e.stop()}},e)})),function(){return n.apply(this,arguments)})},{key:"launchNativeAppWithPackage",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return O(t,null)}},{key:"startService",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return O(t,null)}},{key:"finish",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return O(t,null)}},{key:"finishAll",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return O(t,null)}},{key:"callReflect",value:(t=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",O(n,null));case 1:case"end":return e.stop()}},e)})),function(){return t.apply(this,arguments)})},{key:"init",value:(e=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",P(n));case 1:case"end":return e.stop()}},e)})),function(){return e.apply(this,arguments)})},{key:"destroy",value:function(){}}]);var e,t,n,r,i,o,a}();function fu(){var e=globalThis;return e&&e.__localStorage||e&&e.localStorage||null}function pu(e){return vu.apply(this,arguments)}function vu(){return(vu=l(c.mark(function e(t){var n,r,i;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if((n=fu())&&n.getItem){e.next=1;break}return e.abrupt("return",null);case 1:if(!(r=n.getItem(t))||"function"!=typeof r.then){e.next=3;break}return e.next=2,r;case 2:i=e.sent,e.next=4;break;case 3:i=r;case 4:return e.abrupt("return",i);case 5:case"end":return e.stop()}},e)}))).apply(this,arguments)}function yu(e,t){return mu.apply(this,arguments)}function mu(){return(mu=l(c.mark(function e(t,n){var r,i;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if((r=fu())&&r.setItem){e.next=1;break}return e.abrupt("return",!1);case 1:if(!(i=r.setItem(t,n))||"function"!=typeof i.then){e.next=2;break}return e.next=2,i;case 2:return e.abrupt("return",!0);case 3:case"end":return e.stop()}},e)}))).apply(this,arguments)}var gu=function(){return L(function e(t){x(this,e),this.context=t,this.name="AndroidSharedPreferencesModule",this.mode="normal",this._name=""},[{key:"_key",value:function(e){return this._name?"".concat(this._name,":").concat(e):e}},{key:"initSharedPreferences",value:(h=l(c.mark(function e(t){var n,r,i,o=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(this._name=String(null!=t?t:""),n=o.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=o[i];return e.abrupt("return",O(r,!0));case 1:case"end":return e.stop()}},e,this)})),function(e){return h.apply(this,arguments)})},{key:"initESSharedPreferences",value:(d=l(c.mark(function e(t){var n,r,i,o=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(this._name=String(null!=t?t:""),n=o.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=o[i];return e.abrupt("return",O(r,!0));case 1:case"end":return e.stop()}},e,this)})),function(e){return d.apply(this,arguments)})},{key:"getBoolean",value:(u=l(c.mark(function e(t,n){var r,i,o,a,s=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,pu(this._key(String(t)));case 1:for(r=e.sent,i=s.length,o=new Array(i>2?i-2:0),a=2;a<i;a++)o[a-2]=s[a];if(null!=r){e.next=2;break}return e.abrupt("return",O(o,!!n));case 2:if("true"!==r){e.next=3;break}return e.abrupt("return",O(o,!0));case 3:if("false"!==r){e.next=4;break}return e.abrupt("return",O(o,!1));case 4:if("1"!==r){e.next=5;break}return e.abrupt("return",O(o,!0));case 5:if("0"!==r){e.next=6;break}return e.abrupt("return",O(o,!1));case 6:return e.abrupt("return",O(o,!!n));case 7:case"end":return e.stop()}},e,this)})),function(e,t){return u.apply(this,arguments)})},{key:"putBoolean",value:(s=l(c.mark(function e(t,n){var r,i,o,a,s=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,yu(this._key(String(t)),n?"true":"false");case 1:for(r=e.sent,i=s.length,o=new Array(i>2?i-2:0),a=2;a<i;a++)o[a-2]=s[a];return e.abrupt("return",O(o,r));case 2:case"end":return e.stop()}},e,this)})),function(e,t){return s.apply(this,arguments)})},{key:"getInt",value:(a=l(c.mark(function e(t,n){var r,i,o,a,s,u=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,pu(this._key(String(t)));case 1:for(r=e.sent,i=u.length,o=new Array(i>2?i-2:0),a=2;a<i;a++)o[a-2]=u[a];if(null!=r&&""!==r){e.next=2;break}return e.abrupt("return",O(o,Number(n)||0));case 2:return s=Number.parseInt(String(r),10),e.abrupt("return",O(o,Number.isFinite(s)?s:Number(n)||0));case 3:case"end":return e.stop()}},e,this)})),function(e,t){return a.apply(this,arguments)})},{key:"putInt",value:(o=l(c.mark(function e(t,n){var r,i,o,a,s=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,yu(this._key(String(t)),String(0|Number(n)));case 1:for(r=e.sent,i=s.length,o=new Array(i>2?i-2:0),a=2;a<i;a++)o[a-2]=s[a];return e.abrupt("return",O(o,r));case 2:case"end":return e.stop()}},e,this)})),function(e,t){return o.apply(this,arguments)})},{key:"getLong",value:(i=l(c.mark(function e(t,n){var r,i,o,a,s,u=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,pu(this._key(String(t)));case 1:for(r=e.sent,i=u.length,o=new Array(i>2?i-2:0),a=2;a<i;a++)o[a-2]=u[a];if(null!=r&&""!==r){e.next=2;break}return e.abrupt("return",O(o,Number(n)||0));case 2:return s=Number.parseInt(String(r),10),e.abrupt("return",O(o,Number.isFinite(s)?s:Number(n)||0));case 3:case"end":return e.stop()}},e,this)})),function(e,t){return i.apply(this,arguments)})},{key:"putLong",value:(r=l(c.mark(function e(t,n){var r,i,o,a,s=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,yu(this._key(String(t)),String(Math.trunc(Number(n))));case 1:for(r=e.sent,i=s.length,o=new Array(i>2?i-2:0),a=2;a<i;a++)o[a-2]=s[a];return e.abrupt("return",O(o,r));case 2:case"end":return e.stop()}},e,this)})),function(e,t){return r.apply(this,arguments)})},{key:"getString",value:(n=l(c.mark(function e(t,n){var r,i,o,a,s=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,pu(this._key(String(t)));case 1:for(r=e.sent,i=s.length,o=new Array(i>2?i-2:0),a=2;a<i;a++)o[a-2]=s[a];return e.abrupt("return",O(o,String(null==r?null!=n?n:"":r)));case 2:case"end":return e.stop()}},e,this)})),function(e,t){return n.apply(this,arguments)})},{key:"putString",value:(t=l(c.mark(function e(t,n){var r,i,o,a,s=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,yu(this._key(String(t)),String(null!=n?n:""));case 1:for(r=e.sent,i=s.length,o=new Array(i>2?i-2:0),a=2;a<i;a++)o[a-2]=s[a];return e.abrupt("return",O(o,r));case 2:case"end":return e.stop()}},e,this)})),function(e,n){return t.apply(this,arguments)})},{key:"init",value:(e=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",P(n));case 1:case"end":return e.stop()}},e)})),function(){return e.apply(this,arguments)})},{key:"destroy",value:function(){}}]);var e,t,n,r,i,o,a,s,u,d,h}(),_u=null;function bu(){var e=globalThis;return e&&e.__CONFIG__&&e.__CONFIG__.packageName?e.__CONFIG__.packageName:"web"}function wu(){return _u||(_u={versionCode:1,versionName:"1.0.0",packageName:bu(),channel:"web"}),_u}var ku=function(){return L(function e(t){x(this,e),this.context=t,this.name="AndroidDevelopModule"},[{key:"init",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t&&t.length?t[t.length-1]:null,i=wu();return r&&"function"==typeof r.resolve&&r.resolve(i),i}},{key:"destroy",value:function(){_u=null}},{key:"getDevelop",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t&&t.length?t[t.length-1]:null,i=wu();return r&&"function"==typeof r.resolve&&r.resolve(i),Promise.resolve(i)}},{key:"getPackageName",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t&&t.length?t[t.length-1]:null,i=bu();return r&&"function"==typeof r.resolve&&r.resolve(i),i}},{key:"getVersionName",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t&&t.length?t[t.length-1]:null,i=wu().versionName;return r&&"function"==typeof r.resolve&&r.resolve(i),i}},{key:"getVersionCode",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t&&t.length?t[t.length-1]:null,i=wu().versionCode;return r&&"function"==typeof r.resolve&&r.resolve(i),i}},{key:"getChannel",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t&&t.length?t[t.length-1]:null,i=wu().channel;return r&&"function"==typeof r.resolve&&r.resolve(i),i}},{key:"getVendor",value:function(){return this.getChannel.apply(this,arguments)}}])}(),Eu=null,Su=[],Au=!1,xu=0,Cu="";function Tu(){if(!Eu){(Eu=document.createElement("div")).id="__es_toast_container__",Eu.style.cssText="\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n pointer-events: none;\n z-index: 99998;\n ";var e=document.getElementById("main-container");if(e)e.appendChild(Eu);else{var t=document.getElementById("app");t?t.appendChild(Eu):(Eu.style.position="fixed",document.body.appendChild(Eu))}}return Eu}function Lu(e,t){var n=Date.now();if(!(e===Cu&&n-xu<100)){xu=n,Cu=e;Tu();Su.push({message:e,duration:t}),Ou()}}function Ou(){if(!Au&&0!==Su.length){Au=!0;var e=Su.shift(),t=e.message,n=e.duration,r=document.createElement("div");r.className="__es_toast__",r.textContent=t,r.style.cssText="\n position: absolute;\n bottom: 100px;\n left: 50%;\n transform: translateX(-50%);\n background-color: rgba(0, 0, 0, 0.85);\n color: #ffffff;\n padding: 16px 32px;\n border-radius: 12px;\n font-size: 24px;\n font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;\n max-width: 80%;\n text-align: center;\n z-index: 99999;\n pointer-events: none;\n opacity: 0;\n transition: opacity 200ms ease-in-out;\n box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);\n",Tu().appendChild(r),r.offsetHeight,r.style.opacity="1",setTimeout(function(){r.style.opacity="0",setTimeout(function(){r.parentNode&&r.parentNode.removeChild(r),Au=!1,Ou()},200)},n)}}var Pu=function(){return L(function e(t){x(this,e),this.context=t,this.name="",this.mode="normal"},[{key:"showToast",value:function(e){"string"!=typeof e&&(e=String(e)),Lu(e,2e3)}},{key:"showLongToast",value:function(e){"string"!=typeof e&&(e=String(e)),Lu(e,3500)}},{key:"showShortToast",value:function(e){"string"!=typeof e&&(e=String(e)),Lu(e,2e3)}},{key:"destroy",value:function(){Eu&&Eu.parentNode&&(Eu.parentNode.removeChild(Eu),Eu=null),Su=[],Au=!1}},{key:"init",value:function(){return Promise.resolve(!0)}}])}(),Iu=(new Pu,function(){return L(function e(t){x(this,e),this.context=t,this.name="",this.mode="normal",this.enabled=!0},[{key:"init",value:(t=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",P(n));case 1:case"end":return e.stop()}},e)})),function(){return t.apply(this,arguments)})},{key:"destroy",value:function(){}},{key:"v",value:function(e){var t;if(this.enabled){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];(t=console).log.apply(t,["[V][".concat(e,"]")].concat(r))}}},{key:"d",value:function(e){var t;if(this.enabled){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];(t=console).debug.apply(t,["[D][".concat(e,"]")].concat(r))}}},{key:"i",value:function(e){var t;if(this.enabled){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];(t=console).info.apply(t,["[I][".concat(e,"]")].concat(r))}}},{key:"w",value:function(e){var t;if(this.enabled){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];(t=console).warn.apply(t,["[W][".concat(e,"]")].concat(r))}}},{key:"e",value:function(e){var t;if(this.enabled){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];(t=console).error.apply(t,["[E][".concat(e,"]")].concat(r))}}},{key:"f",value:function(e){var t;if(this.enabled){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];(t=console).error.apply(t,["[F][".concat(e,"]")].concat(r))}}},{key:"getEsInfo",value:(e=l(c.mark(function e(){var t,n,r,i,o=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t={version:"web",platform:"web"},n=o.length,r=new Array(n),i=0;i<n;i++)r[i]=o[i];return e.abrupt("return",O(r,t));case 1:case"end":return e.stop()}},e)})),function(){return e.apply(this,arguments)})},{key:"setEnabled",value:function(e){this.enabled=e}},{key:"isEnabled",value:function(){return this.enabled}}]);var e,t}());var Nu={cornerRadius:0,cornerEnabled:!1,borderColor:"#FFFFFF",borderColorEnabled:!1,borderWidth:2,borderWidthEnabled:!1,borderInset:0,borderInsetEnabled:!1,innerBorderEnabled:!0,focusScale:1};function Ru(){var e=n.g.__TV_FOCUS_MANAGER__;e&&"function"==typeof e.updateFocusConfig&&e.updateFocusConfig(Nu)}var Du=function(){return L(function e(t){x(this,e),this.context=t,this.name="",this.mode="normal"},[{key:"setDefaultFocusBorderCorner",value:function(e){Nu.cornerRadius="number"==typeof e?e:0,Nu.cornerEnabled=!0,Ru();for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return O(n,null)}},{key:"setDefaultFocusBorderColor",value:function(e){Nu.borderColor=e||"#FFFFFF",Nu.borderColorEnabled=!0,Ru();for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return O(n,null)}},{key:"setDefaultFocusBorderWidth",value:function(e){Nu.borderWidth="number"==typeof e?e:2,Nu.borderWidthEnabled=!0,Ru();for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return O(n,null)}},{key:"setFocusBorderInsetValue",value:function(e){Nu.borderInset="number"==typeof e?e:0,Nu.borderInsetEnabled=!0,Ru();for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return O(n,null)}},{key:"setDefaultFocusInnerBorderEnable",value:function(e){Nu.innerBorderEnabled=!0===e,Ru();for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return O(n,null)}},{key:"setDefaultPlaceholderFocusScale",value:function(e){Nu.focusScale="number"==typeof e?e:1,Ru();for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return O(n,null)}},{key:"getFocusConfig",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return O(t,Nu)}},{key:"init",value:(e=l(c.mark(function e(){var t,n,r,i,o=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=o.length,n=new Array(t),r=0;r<t;r++)n[r]=o[r];return(i=n&&n.length?n[n.length-1]:null)&&"function"==typeof i.resolve&&i.resolve(!0),e.abrupt("return",Promise.resolve(!0));case 1:case"end":return e.stop()}},e)})),function(){return e.apply(this,arguments)})},{key:"destroy",value:function(){}}]);var e}();new Du;function Mu(){var e=navigator.connection||navigator.mozConnection||navigator.webkitConnection;return e?{effectiveType:e.effectiveType||"unknown",type:e.type||"unknown",downlink:e.downlink||0,rtt:e.rtt||0,saveData:e.saveData||!1}:{effectiveType:"unknown",type:"unknown",downlink:0,rtt:0,saveData:!1}}var Fu=null;function Bu(){return Fu||(Fu=function(){var e=navigator.userAgent,t=navigator.platform,n="unknown",r="";/Chrome\/(\d+\.?\d*)/i.test(e)&&!/Edge|Edg/i.test(e)?(n="Chrome",r=RegExp.$1):/Safari\/(\d+\.?\d*)/i.test(e)&&!/Chrome/i.test(e)?(n="Safari",r=RegExp.$1):/Firefox\/(\d+\.?\d*)/i.test(e)?(n="Firefox",r=RegExp.$1):/Edge?\/(\d+\.?\d*)/i.test(e)&&(n="Edge",r=RegExp.$1);var i="unknown",o="";if(/Windows NT (\d+\.?\d*)/i.test(e))i="Windows",o=RegExp.$1;else if(/Mac OS X (\d+[._]\d+[._]?\d*)/i.test(e))i="macOS",o=RegExp.$1.replace(/_/g,".");else if(/Android (\d+\.?\d*\.?\d*)/i.test(e))i="Android",o=RegExp.$1;else if(/iOS|iPhone OS|iPad/i.test(e)){i="iOS";var a=e.match(/OS (\d+_\d+_?\d*)/i);a&&(o=a[1].replace(/_/g,"."))}else/Linux/i.test(e)&&(i="Linux");return{browser:n,browserVersion:r,os:i,osVersion:o,platform:t,screenWidth:window.screen.width||0,screenHeight:window.screen.height||0,devicePixelRatio:window.devicePixelRatio||1,colorDepth:window.screen.colorDepth||24,cpuCores:navigator.hardwareConcurrency||4,memory:navigator.deviceMemory||4,ua:e}}()),Fu}var ju=function(){return L(function e(t){x(this,e),this.context=t,this.name="",this.mode="normal"},[{key:"getDeviceBrand",value:(X=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(Bu(),t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",O(n,"Web"));case 1:case"end":return e.stop()}},e)})),function(){return X.apply(this,arguments)})},{key:"getDeviceModel",value:(q=l(c.mark(function e(){var t,n,r,i,o=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=Bu(),n=o.length,r=new Array(n),i=0;i<n;i++)r[i]=o[i];return e.abrupt("return",O(r,t.browser||"Browser"));case 1:case"end":return e.stop()}},e)})),function(){return q.apply(this,arguments)})},{key:"getDeviceCpu",value:(Y=l(c.mark(function e(){var t,n,r,i,o=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=Bu(),n=o.length,r=new Array(n),i=0;i<n;i++)r[i]=o[i];return e.abrupt("return",O(r,"".concat(t.cpuCores," cores")));case 1:case"end":return e.stop()}},e)})),function(){return Y.apply(this,arguments)})},{key:"getDeviceCpuCores",value:(z=l(c.mark(function e(){var t,n,r,i,o=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=Bu(),n=o.length,r=new Array(n),i=0;i<n;i++)r[i]=o[i];return e.abrupt("return",O(r,t.cpuCores));case 1:case"end":return e.stop()}},e)})),function(){return z.apply(this,arguments)})},{key:"getDeviceMemory",value:(G=l(c.mark(function e(){var t,n,r,i,o=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=Bu(),n=o.length,r=new Array(n),i=0;i<n;i++)r[i]=o[i];return e.abrupt("return",O(r,t.memory));case 1:case"end":return e.stop()}},e)})),function(){return G.apply(this,arguments)})},{key:"getDeviceStorage",value:(U=l(c.mark(function e(){var t,n,r,i,o=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=o.length,n=new Array(t),r=0;r<t;r++)n[r]=o[r];if(!navigator.storage||!navigator.storage.estimate){e.next=4;break}return e.prev=1,e.next=2,navigator.storage.estimate();case 2:return i=e.sent,e.abrupt("return",O(n,i.quota||0));case 3:e.prev=3,e.catch(1);case 4:return e.abrupt("return",O(n,0));case 5:case"end":return e.stop()}},e,null,[[1,3]])})),function(){return U.apply(this,arguments)})},{key:"getDeviceResolution",value:(H=l(c.mark(function e(){var t,n,r,i,o=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=Bu(),n=o.length,r=new Array(n),i=0;i<n;i++)r[i]=o[i];return e.abrupt("return",O(r,"".concat(t.screenWidth,"x").concat(t.screenHeight)));case 1:case"end":return e.stop()}},e)})),function(){return H.apply(this,arguments)})},{key:"getDevice5G",value:(W=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(Mu(),t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",O(n,!1));case 1:case"end":return e.stop()}},e)})),function(){return W.apply(this,arguments)})},{key:"getDeviceLinkSpeed",value:(V=l(c.mark(function e(){var t,n,r,i,o=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=Mu(),n=o.length,r=new Array(n),i=0;i<n;i++)r[i]=o[i];return e.abrupt("return",O(r,t.downlink));case 1:case"end":return e.stop()}},e)})),function(){return V.apply(this,arguments)})},{key:"getDeviceManufacture",value:(j=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",O(n,"Web"));case 1:case"end":return e.stop()}},e)})),function(){return j.apply(this,arguments)})},{key:"getDeviceBoard",value:(B=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",O(n,"Web"));case 1:case"end":return e.stop()}},e)})),function(){return B.apply(this,arguments)})},{key:"getDevicePlatform",value:(F=l(c.mark(function e(){var t,n,r,i,o=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=Bu(),n=o.length,r=new Array(n),i=0;i<n;i++)r[i]=o[i];return e.abrupt("return",O(r,t.platform||"Web"));case 1:case"end":return e.stop()}},e)})),function(){return F.apply(this,arguments)})},{key:"getDeviceHard",value:(M=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",O(n,"Web"));case 1:case"end":return e.stop()}},e)})),function(){return M.apply(this,arguments)})},{key:"getDeviceArchitecture",value:(D=l(c.mark(function e(){var t,n,r,i,o=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=Bu(),n=o.length,r=new Array(n),i=0;i<n;i++)r[i]=o[i];if(!/arm|aarch64/i.test(t.ua)){e.next=1;break}return e.abrupt("return",O(r,"arm64"));case 1:if(!/x86_64|amd64/i.test(t.ua)){e.next=2;break}return e.abrupt("return",O(r,"x86_64"));case 2:return e.abrupt("return",O(r,"unknown"));case 3:case"end":return e.stop()}},e)})),function(){return D.apply(this,arguments)})},{key:"getDeviceClockSpeed",value:(R=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",O(n,0));case 1:case"end":return e.stop()}},e)})),function(){return R.apply(this,arguments)})},{key:"getDeviceAndroidVersion",value:(N=l(c.mark(function e(){var t,n,r,i,o=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=Bu(),n=o.length,r=new Array(n),i=0;i<n;i++)r[i]=o[i];if("Android"!==t.os){e.next=1;break}return e.abrupt("return",O(r,t.osVersion));case 1:return e.abrupt("return",O(r,""));case 2:case"end":return e.stop()}},e)})),function(){return N.apply(this,arguments)})},{key:"getDeviceApiVersion",value:(I=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",O(n,0));case 1:case"end":return e.stop()}},e)})),function(){return I.apply(this,arguments)})},{key:"getDeviceAndroidId",value:(T=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",O(n,""));case 1:case"end":return e.stop()}},e)})),function(){return T.apply(this,arguments)})},{key:"getDeviceBuildId",value:(C=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",O(n,"web"));case 1:case"end":return e.stop()}},e)})),function(){return C.apply(this,arguments)})},{key:"getDeviceRoot",value:(A=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",O(n,!1));case 1:case"end":return e.stop()}},e)})),function(){return A.apply(this,arguments)})},{key:"getDeviceFreeStore",value:(S=l(c.mark(function e(){var t,n,r,i,o=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=o.length,n=new Array(t),r=0;r<t;r++)n[r]=o[r];if(!navigator.storage||!navigator.storage.estimate){e.next=4;break}return e.prev=1,e.next=2,navigator.storage.estimate();case 2:return i=e.sent,e.abrupt("return",O(n,(i.quota||0)-(i.usage||0)));case 3:e.prev=3,e.catch(1);case 4:return e.abrupt("return",O(n,0));case 5:case"end":return e.stop()}},e,null,[[1,3]])})),function(){return S.apply(this,arguments)})},{key:"getNetworkState",value:(E=l(c.mark(function e(){var t,n,r,i,o=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=Mu(),n=o.length,r=new Array(n),i=0;i<n;i++)r[i]=o[i];return e.abrupt("return",O(r,{connected:navigator.onLine,type:t.effectiveType}));case 1:case"end":return e.stop()}},e)})),function(){return E.apply(this,arguments)})},{key:"getNetworkType",value:(k=l(c.mark(function e(){var t,n,r,i,o=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=Mu(),n=o.length,r=new Array(n),i=0;i<n;i++)r[i]=o[i];return e.abrupt("return",O(r,t.effectiveType));case 1:case"end":return e.stop()}},e)})),function(){return k.apply(this,arguments)})},{key:"getSSID",value:(w=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",O(n,""));case 1:case"end":return e.stop()}},e)})),function(){return w.apply(this,arguments)})},{key:"getMac",value:(b=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",O(n,""));case 1:case"end":return e.stop()}},e)})),function(){return b.apply(this,arguments)})},{key:"getIp",value:(_=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",O(n,""));case 1:case"end":return e.stop()}},e)})),function(){return _.apply(this,arguments)})},{key:"getDeviceDns",value:(g=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",O(n,""));case 1:case"end":return e.stop()}},e)})),function(){return g.apply(this,arguments)})},{key:"getWifiVersion",value:(m=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",O(n,""));case 1:case"end":return e.stop()}},e)})),function(){return m.apply(this,arguments)})},{key:"getDisplayInformation",value:(y=l(c.mark(function e(){var t,n,r,i,o=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=Bu(),n=o.length,r=new Array(n),i=0;i<n;i++)r[i]=o[i];return e.abrupt("return",O(r,{width:t.screenWidth,height:t.screenHeight,density:t.devicePixelRatio,colorDepth:t.colorDepth}));case 1:case"end":return e.stop()}},e)})),function(){return y.apply(this,arguments)})},{key:"getGpuInfo",value:(v=l(c.mark(function e(){var t,n,r,i,o,a,s=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=s.length,n=new Array(t),r=0;r<t;r++)n[r]=s[r];if(e.prev=1,i=document.createElement("canvas"),!(o=i.getContext("webgl")||i.getContext("experimental-webgl"))){e.next=2;break}if(!(a=o.getExtension("WEBGL_debug_renderer_info"))){e.next=2;break}return e.abrupt("return",O(n,{vendor:o.getParameter(a.UNMASKED_VENDOR_WEBGL),renderer:o.getParameter(a.UNMASKED_RENDERER_WEBGL)}));case 2:e.next=4;break;case 3:e.prev=3,e.catch(1);case 4:return e.abrupt("return",O(n,{vendor:"unknown",renderer:"unknown"}));case 5:case"end":return e.stop()}},e,null,[[1,3]])})),function(){return v.apply(this,arguments)})},{key:"getBaseInfo",value:(p=l(c.mark(function e(){var t,n,r,i,o,a=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=Bu(),n=Mu(),r=a.length,i=new Array(r),o=0;o<r;o++)i[o]=a[o];return e.abrupt("return",O(i,{brand:"Web",model:t.browser,os:t.os,osVersion:t.osVersion,platform:t.platform,screenWidth:t.screenWidth,screenHeight:t.screenHeight,density:t.devicePixelRatio,cpuCores:t.cpuCores,memory:t.memory,networkType:n.effectiveType}));case 1:case"end":return e.stop()}},e)})),function(){return p.apply(this,arguments)})},{key:"getSystemInfo",value:(f=l(c.mark(function e(){var t,n,r,i,o=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=Bu(),n=o.length,r=new Array(n),i=0;i<n;i++)r[i]=o[i];return e.abrupt("return",O(r,{os:t.os,osVersion:t.osVersion,browser:t.browser,browserVersion:t.browserVersion,platform:t.platform,language:navigator.language,userAgent:t.ua}));case 1:case"end":return e.stop()}},e)})),function(){return f.apply(this,arguments)})},{key:"getCpuInfo",value:(h=l(c.mark(function e(){var t,n,r,i,o=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=Bu(),n=o.length,r=new Array(n),i=0;i<n;i++)r[i]=o[i];return e.abrupt("return",O(r,{cores:t.cpuCores,memory:t.memory}));case 1:case"end":return e.stop()}},e)})),function(){return h.apply(this,arguments)})},{key:"getAndroidInfo",value:(d=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",O(n,null));case 1:case"end":return e.stop()}},e)})),function(){return d.apply(this,arguments)})},{key:"getStoreInfo",value:(u=l(c.mark(function e(){var t,n,r,i,o=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=o.length,n=new Array(t),r=0;r<t;r++)n[r]=o[r];if(!navigator.storage||!navigator.storage.estimate){e.next=4;break}return e.prev=1,e.next=2,navigator.storage.estimate();case 2:return i=e.sent,e.abrupt("return",O(n,{total:i.quota||0,used:i.usage||0,free:(i.quota||0)-(i.usage||0)}));case 3:e.prev=3,e.catch(1);case 4:return e.abrupt("return",O(n,{total:0,used:0,free:0}));case 5:case"end":return e.stop()}},e,null,[[1,3]])})),function(){return u.apply(this,arguments)})},{key:"getNetInfo",value:(s=l(c.mark(function e(){var t,n,r,i,o=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=Mu(),n=o.length,r=new Array(n),i=0;i<n;i++)r[i]=o[i];return e.abrupt("return",O(r,{online:navigator.onLine,type:t.effectiveType,downlink:t.downlink,rtt:t.rtt,saveData:t.saveData}));case 1:case"end":return e.stop()}},e)})),function(){return s.apply(this,arguments)})},{key:"getOutIp",value:(a=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",O(n,""));case 1:case"end":return e.stop()}},e)})),function(){return a.apply(this,arguments)})},{key:"getUsbInfo",value:(o=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",O(n,[]));case 1:case"end":return e.stop()}},e)})),function(){return o.apply(this,arguments)})},{key:"getBluetoothInfo",value:(i=l(c.mark(function e(){var t,n,r,i,o=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:t="bluetooth"in navigator;for(n=o.length,r=new Array(n),i=0;i<n;i++)r[i]=o[i];return e.abrupt("return",O(r,{available:t,devices:[]}));case 1:case"end":return e.stop()}},e)})),function(){return i.apply(this,arguments)})},{key:"permissionHandler",value:(r=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",O(n,{granted:!0}));case 1:case"end":return e.stop()}},e)})),function(){return r.apply(this,arguments)})},{key:"getNetworkProtocol",value:(n=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",O(n,"https:"===location.protocol?"https":"http"));case 1:case"end":return e.stop()}},e)})),function(){return n.apply(this,arguments)})},{key:"getNetworkSpeed",value:(t=l(c.mark(function e(){var t,n,r,i,o=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=Mu(),n=o.length,r=new Array(n),i=0;i<n;i++)r[i]=o[i];return e.abrupt("return",O(r,t.downlink));case 1:case"end":return e.stop()}},e)})),function(){return t.apply(this,arguments)})},{key:"init",value:(e=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",P(n));case 1:case"end":return e.stop()}},e)})),function(){return e.apply(this,arguments)})},{key:"destroy",value:function(){}}]);var e,t,n,r,i,o,a,s,u,d,h,f,p,v,y,m,g,_,b,w,k,E,S,A,C,T,I,N,R,D,M,F,B,j,V,W,H,U,G,z,Y,q,X}();new ju;function Vu(e,t){return e&&e.packageName?"".concat("es_group_data_").concat(e.packageName,"_").concat(t):null}function Wu(e,t,n){var r=Vu(e,t);if(!r)return Promise.resolve(n);try{var i=localStorage.getItem(r);if(i&&""!==i){var o=JSON.parse(i);if(o&&void 0!==o.data)return Promise.resolve(o.data)}}catch(e){}return Promise.resolve(n)}function Hu(e,t,n,r,i){var o=Vu(e,t);if(!o)return Promise.resolve(!1);try{var a={mode:r||0,type:i,secretKey:(null==e?void 0:e.secretKey)||"",data:n};return localStorage.setItem(o,JSON.stringify(a)),Promise.resolve(!0)}catch(e){return Promise.resolve(!1)}}var Uu=0,Gu=1,zu=3,Yu=4,qu=5,Xu=6,Ku=function(){return L(function e(t){x(this,e),this.context=t,this.name="",this.mode="normal"},[{key:"getBoolean",value:(p=l(c.mark(function e(t,n,r){var i,o,a,s,u=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,Wu(t,n,r);case 1:for(i=e.sent,o=u.length,a=new Array(o>3?o-3:0),s=3;s<o;s++)a[s-3]=u[s];return e.abrupt("return",O(a,i));case 2:case"end":return e.stop()}},e)})),function(e,t,n){return p.apply(this,arguments)})},{key:"putBoolean",value:(f=l(c.mark(function e(t,n,r,i){var o,a,s,u,l=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,Hu(t,n,r,i,Yu);case 1:for(o=e.sent,a=l.length,s=new Array(a>4?a-4:0),u=4;u<a;u++)s[u-4]=l[u];return e.abrupt("return",O(s,o));case 2:case"end":return e.stop()}},e)})),function(e,t,n,r){return f.apply(this,arguments)})},{key:"getInt",value:(h=l(c.mark(function e(t,n,r){var i,o,a,s,u=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,Wu(t,n,r);case 1:for(i=e.sent,o=u.length,a=new Array(o>3?o-3:0),s=3;s<o;s++)a[s-3]=u[s];return e.abrupt("return",O(a,i));case 2:case"end":return e.stop()}},e)})),function(e,t,n){return h.apply(this,arguments)})},{key:"putInt",value:(d=l(c.mark(function e(t,n,r,i){var o,a,s,u,l=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,Hu(t,n,r,i,Uu);case 1:for(o=e.sent,a=l.length,s=new Array(a>4?a-4:0),u=4;u<a;u++)s[u-4]=l[u];return e.abrupt("return",O(s,o));case 2:case"end":return e.stop()}},e)})),function(e,t,n,r){return d.apply(this,arguments)})},{key:"getLong",value:(u=l(c.mark(function e(t,n,r){var i,o,a,s,u=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,Wu(t,n,r);case 1:for(i=e.sent,o=u.length,a=new Array(o>3?o-3:0),s=3;s<o;s++)a[s-3]=u[s];return e.abrupt("return",O(a,i));case 2:case"end":return e.stop()}},e)})),function(e,t,n){return u.apply(this,arguments)})},{key:"putLong",value:(s=l(c.mark(function e(t,n,r,i){var o,a,s,u,l=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,Hu(t,n,r,i,Gu);case 1:for(o=e.sent,a=l.length,s=new Array(a>4?a-4:0),u=4;u<a;u++)s[u-4]=l[u];return e.abrupt("return",O(s,o));case 2:case"end":return e.stop()}},e)})),function(e,t,n,r){return s.apply(this,arguments)})},{key:"getString",value:(a=l(c.mark(function e(t,n,r){var i,o,a,s,u=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,Wu(t,n,r);case 1:for(i=e.sent,o=u.length,a=new Array(o>3?o-3:0),s=3;s<o;s++)a[s-3]=u[s];return e.abrupt("return",O(a,i));case 2:case"end":return e.stop()}},e)})),function(e,t,n){return a.apply(this,arguments)})},{key:"putString",value:(o=l(c.mark(function e(t,n,r,i){var o,a,s,u,l=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,Hu(t,n,r,i,zu);case 1:for(o=e.sent,a=l.length,s=new Array(a>4?a-4:0),u=4;u<a;u++)s[u-4]=l[u];return e.abrupt("return",O(s,o));case 2:case"end":return e.stop()}},e)})),function(e,t,n,r){return o.apply(this,arguments)})},{key:"getArray",value:(i=l(c.mark(function e(t,n,r){var i,o,a,s,u=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,Wu(t,n,r);case 1:for(i=e.sent,o=u.length,a=new Array(o>3?o-3:0),s=3;s<o;s++)a[s-3]=u[s];return e.abrupt("return",O(a,i));case 2:case"end":return e.stop()}},e)})),function(e,t,n){return i.apply(this,arguments)})},{key:"putArray",value:(r=l(c.mark(function e(t,n,r,i){var o,a,s,u,l=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,Hu(t,n,r,i,Xu);case 1:for(o=e.sent,a=l.length,s=new Array(a>4?a-4:0),u=4;u<a;u++)s[u-4]=l[u];return e.abrupt("return",O(s,o));case 2:case"end":return e.stop()}},e)})),function(e,t,n,i){return r.apply(this,arguments)})},{key:"getMap",value:(n=l(c.mark(function e(t,n,r){var i,o,a,s,u=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,Wu(t,n,r);case 1:for(i=e.sent,o=u.length,a=new Array(o>3?o-3:0),s=3;s<o;s++)a[s-3]=u[s];return e.abrupt("return",O(a,i));case 2:case"end":return e.stop()}},e)})),function(e,t,r){return n.apply(this,arguments)})},{key:"putMap",value:(t=l(c.mark(function e(t,n,r,i){var o,a,s,u,l=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,Hu(t,n,r,i,qu);case 1:for(o=e.sent,a=l.length,s=new Array(a>4?a-4:0),u=4;u<a;u++)s[u-4]=l[u];return e.abrupt("return",O(s,o));case 2:case"end":return e.stop()}},e)})),function(e,n,r,i){return t.apply(this,arguments)})},{key:"init",value:(e=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",P(n));case 1:case"end":return e.stop()}},e)})),function(){return e.apply(this,arguments)})},{key:"destroy",value:function(){}}]);var e,t,n,r,i,o,a,s,u,d,h,f,p}(),$u=(new Ku,function(){return L(function e(t){x(this,e),this.context=t,this.name="",this.userId="",this.level=0,this.enabled=!0},[{key:"init",value:(o=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",P(n));case 1:case"end":return e.stop()}},e)})),function(){return o.apply(this,arguments)})},{key:"destroy",value:function(){}},{key:"setUserId",value:function(e){this.userId=e}},{key:"initLog",value:(i=l(c.mark(function e(t,n,r){var i,o,a,s=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(this.level=n,i=s.length,o=new Array(i>3?i-3:0),a=3;a<i;a++)o[a-3]=s[a];return e.abrupt("return",O(o,!0));case 1:case"end":return e.stop()}},e,this)})),function(e,t,n){return i.apply(this,arguments)})},{key:"setLevel",value:(r=l(c.mark(function e(t){var n,r,i,o=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(this.level=t,n=o.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=o[i];return e.abrupt("return",O(r,!0));case 1:case"end":return e.stop()}},e,this)})),function(e){return r.apply(this,arguments)})},{key:"v",value:function(e){var t;if(this.enabled&&!(this.level>0)){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];(t=console).log.apply(t,["[V][".concat(e,"]")].concat(r))}}},{key:"d",value:function(e){var t;if(this.enabled&&!(this.level>1)){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];(t=console).debug.apply(t,["[D][".concat(e,"]")].concat(r))}}},{key:"i",value:function(e){var t;if(this.enabled&&!(this.level>2)){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];(t=console).info.apply(t,["[I][".concat(e,"]")].concat(r))}}},{key:"w",value:function(e){var t;if(this.enabled&&!(this.level>3)){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];(t=console).warn.apply(t,["[W][".concat(e,"]")].concat(r))}}},{key:"e",value:function(e){var t;if(this.enabled&&!(this.level>4)){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];(t=console).error.apply(t,["[E][".concat(e,"]")].concat(r))}}},{key:"flush",value:function(){}},{key:"getVersion",value:(n=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",O(n,"web-1.0.0"));case 1:case"end":return e.stop()}},e)})),function(){return n.apply(this,arguments)})},{key:"upLoad",value:function(e){}},{key:"detectTask",value:function(){}},{key:"getSendFilePath",value:(t=l(c.mark(function e(t){var n,r,i,o=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(n=o.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=o[i];return e.abrupt("return",O(r,""));case 1:case"end":return e.stop()}},e)})),function(e){return t.apply(this,arguments)})},{key:"getAllFileInfo",value:(e=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",O(n,[]));case 1:case"end":return e.stop()}},e)})),function(){return e.apply(this,arguments)})}]);var e,t,n,r,i,o}()),Zu=function(){return L(function e(t){x(this,e),this.context=t,this.name="",this.audioElement=null,this.looping=!1,this.playRate=1,this.leftVolume=1,this.rightVolume=1,this.currentUrl=""},[{key:"init",value:(u=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",P(n));case 1:case"end":return e.stop()}},e)})),function(){return u.apply(this,arguments)})},{key:"destroy",value:function(){this.audioElement&&(this.audioElement.pause(),this.audioElement.src="",this.audioElement=null)}},{key:"_getOrCreateAudioElement",value:function(){return this.audioElement||(this.audioElement=new Audio,this.audioElement.loop=this.looping),this.audioElement}},{key:"initMediaPlayer",value:function(e){this.looping=e,this._getOrCreateAudioElement().loop=e}},{key:"play",value:function(e){var t=this._getOrCreateAudioElement();this.currentUrl=e,t.src=e,t.play().catch(function(e){})}},{key:"start",value:function(){var e=this._getOrCreateAudioElement();e.src&&e.play().catch(function(e){})}},{key:"pause",value:function(){this._getOrCreateAudioElement().pause()}},{key:"resume",value:function(){this._getOrCreateAudioElement().play().catch(function(e){})}},{key:"seekTo",value:function(e){this._getOrCreateAudioElement().currentTime=e/1e3}},{key:"stop",value:function(){var e=this._getOrCreateAudioElement();e.pause(),e.currentTime=0}},{key:"setPlayRate",value:function(e){this._getOrCreateAudioElement().playbackRate=e,this.playRate=e}},{key:"setVolume",value:function(e){this._getOrCreateAudioElement().volume=e,this.leftVolume=e,this.rightVolume=e}},{key:"setLeftRightVolume",value:function(e,t){var n=(e+t)/2;this._getOrCreateAudioElement().volume=n,this.leftVolume=e,this.rightVolume=t}},{key:"reset",value:function(){var e=this._getOrCreateAudioElement();e.pause(),e.currentTime=0,e.src="",this.currentUrl=""}},{key:"release",value:function(){this.destroy()}},{key:"isPlaying",value:(s=l(c.mark(function e(){var t,n,r,i,o,a=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=this._getOrCreateAudioElement(),n=!t.paused&&t.currentTime>0,r=a.length,i=new Array(r),o=0;o<r;o++)i[o]=a[o];return e.abrupt("return",O(i,n));case 1:case"end":return e.stop()}},e,this)})),function(){return s.apply(this,arguments)})},{key:"isPaused",value:(a=l(c.mark(function e(){var t,n,r,i,o=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=this._getOrCreateAudioElement(),n=o.length,r=new Array(n),i=0;i<n;i++)r[i]=o[i];return e.abrupt("return",O(r,t.paused));case 1:case"end":return e.stop()}},e,this)})),function(){return a.apply(this,arguments)})},{key:"getDuration",value:(o=l(c.mark(function e(){var t,n,r,i,o,a=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=this._getOrCreateAudioElement(),n=t.duration?1e3*t.duration:0,r=a.length,i=new Array(r),o=0;o<r;o++)i[o]=a[o];return e.abrupt("return",O(i,n));case 1:case"end":return e.stop()}},e,this)})),function(){return o.apply(this,arguments)})},{key:"getCurrentPosition",value:(i=l(c.mark(function e(){var t,n,r,i,o,a=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=this._getOrCreateAudioElement(),n=t.currentTime?1e3*t.currentTime:0,r=a.length,i=new Array(r),o=0;o<r;o++)i[o]=a[o];return e.abrupt("return",O(i,n));case 1:case"end":return e.stop()}},e,this)})),function(){return i.apply(this,arguments)})},{key:"getBufferPercentage",value:(r=l(c.mark(function e(){var t,n,r,i,o,a,s=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=this._getOrCreateAudioElement(),n=s.length,r=new Array(n),i=0;i<n;i++)r[i]=s[i];if(!(t.buffered.length>0&&t.duration>0)){e.next=1;break}return o=t.buffered.end(t.buffered.length-1),a=o/t.duration*100,e.abrupt("return",O(r,a));case 1:return e.abrupt("return",O(r,0));case 2:case"end":return e.stop()}},e,this)})),function(){return r.apply(this,arguments)})},{key:"getCurrentPlayRate",value:(n=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",O(n,this.playRate));case 1:case"end":return e.stop()}},e,this)})),function(){return n.apply(this,arguments)})},{key:"getLeftVolume",value:(t=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",O(n,this.leftVolume));case 1:case"end":return e.stop()}},e,this)})),function(){return t.apply(this,arguments)})},{key:"getRightVolume",value:(e=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",O(n,this.rightVolume));case 1:case"end":return e.stop()}},e,this)})),function(){return e.apply(this,arguments)})},{key:"changeToFullScreen",value:function(e){}},{key:"requestPlayerViewLayout",value:function(){}},{key:"requestViewLayout",value:function(){}},{key:"setPlayerSize",value:function(e,t){}},{key:"setPlayerDimension",value:function(e,t,n,r,i){}},{key:"setDefinition",value:function(e){}},{key:"setDecode",value:function(e){}},{key:"setAspectRatio",value:function(e){}}]);var e,t,n,r,i,o,a,s,u}(),Ju=function(){return L(function e(t){x(this,e),this.context=t,this.name="",this.playerType=1,this.mediaCodec=!0},[{key:"init",value:(n=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",P(n));case 1:case"end":return e.stop()}},e)})),function(){return n.apply(this,arguments)})},{key:"destroy",value:function(){}},{key:"setPlayerType",value:function(e){this.playerType=e}},{key:"getPlayerType",value:(t=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",O(n,this.playerType));case 1:case"end":return e.stop()}},e,this)})),function(){return t.apply(this,arguments)})},{key:"setMediaCodec",value:function(e){this.mediaCodec=e}},{key:"getMediaCodec",value:(e=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",O(n,this.mediaCodec));case 1:case"end":return e.stop()}},e,this)})),function(){return e.apply(this,arguments)})}]);var e,t,n}(),Qu=function(){return L(function e(t){x(this,e),this.context=t,this.name="",this.storageListeners=[]},[{key:"init",value:(o=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",P(n));case 1:case"end":return e.stop()}},e)})),function(){return o.apply(this,arguments)})},{key:"destroy",value:function(){this.unregisterExtraStorageReceiver()}},{key:"registerExtraStorageReceiver",value:function(){}},{key:"unregisterExtraStorageReceiver",value:function(){this.storageListeners=[]}},{key:"installApkByPath",value:(i=l(c.mark(function e(t,n){var r,i,o,a=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(r=a.length,i=new Array(r>2?r-2:0),o=2;o<r;o++)i[o-2]=a[o];return e.abrupt("return",O(i,!1));case 1:case"end":return e.stop()}},e)})),function(e,t){return i.apply(this,arguments)})},{key:"copyFile2Disk",value:(r=l(c.mark(function e(t,n){var r,i,o,a=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(r=a.length,i=new Array(r>2?r-2:0),o=2;o<r;o++)i[o-2]=a[o];return e.abrupt("return",O(i,!1));case 1:case"end":return e.stop()}},e)})),function(e,t){return r.apply(this,arguments)})},{key:"getAppVersionCodeByPkgName",value:(n=l(c.mark(function e(t){var n,r,i,o=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(n=o.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=o[i];return e.abrupt("return",O(r,-1));case 1:case"end":return e.stop()}},e)})),function(e){return n.apply(this,arguments)})},{key:"getUsbDevices",value:(t=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",O(n,[]));case 1:case"end":return e.stop()}},e)})),function(){return t.apply(this,arguments)})},{key:"requestUsbPermission",value:(e=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",O(n,!1));case 1:case"end":return e.stop()}},e)})),function(){return e.apply(this,arguments)})}]);var e,t,n,r,i,o}(),el=new Map,tl=new Map,nl=function(){return L(function e(t){x(this,e),this.context=t},[{key:"init",value:(e=l(c.mark(function e(){var t,n,r,i=arguments;return c.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",P(n));case 1:case"end":return e.stop()}},e)})),function(){return e.apply(this,arguments)})},{key:"getCanvasInfo",value:function(e,t,n){return{version:"1.0.0",type:"2d",supportWebGL:!0,supportBitmapRenderer:!0}}},{key:"loadImage",value:function(e,t,n){var r=t&&t[0];if(!r)return{error:"No image source provided"};var i="image_"+Date.now()+"_"+Math.random().toString(36).slice(2);return new Promise(function(e){var t=new Image;t.crossOrigin="anonymous",t.onload=function(){el.set(i,t),e({imageId:i,width:t.naturalWidth,height:t.naturalHeight})},t.onerror=function(){e({error:"Failed to load image: "+r})},t.src=r})}},{key:"createCanvas",value:function(e,t,n){var r=t&&t[0]||800,i=t&&t[1]||600,o="canvas_"+Date.now(),a=document.createElement("canvas");return a.width=r,a.height=i,tl.set(o,a),{canvasId:o,width:r,height:i}}},{key:"toDataURL",value:function(e,t,n){var r=t&&t[0],i=t&&t[1]||"image/png",o=t&&t[2]||1,a=tl.get(r);if(!a)return{error:"Canvas not found: "+r};try{return{dataURL:a.toDataURL(i,o)}}catch(e){return{error:e.message}}}},{key:"releaseImage",value:function(e,t,n){var r=t&&t[0];return r&&el.delete(r),{success:!0}}},{key:"releaseCanvas",value:function(e,t,n){var r=t&&t[0];return r&&tl.delete(r),{success:!0}}}]);var e}();function rl(e,t,n){return t=vn(t),pn(e,il()?Reflect.construct(t,n||[],vn(e).constructor):t.apply(e,n))}function il(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(il=function(){return!!e})()}(0,b.A)(nl,"name","CanvasModule");var ol=function(e){function t(e,n,r){var i;return x(this,t),(i=rl(this,t,[e,n,r])).tagName="text-v2",i}return gn(t,e),L(t,[{key:"updateProperty",value:function(e,n){switch(e){case"fontPath":this._fontPath=n;break;case"fontWeight":this.dom&&(this.dom.style.fontWeight=n);break;case"fontStyle":this.dom&&(this.dom.style.fontStyle=n);break;case"letterSpacing":this.dom&&(this.dom.style.letterSpacing="number"==typeof n?"".concat(n,"px"):n);break;case"lineHeight":this.dom&&(this.dom.style.lineHeight="number"==typeof n?"".concat(n,"px"):n);break;case"textDecoration":this.dom&&(this.dom.style.textDecoration=n);break;case"textShadow":this.dom&&(this.dom.style.textShadow=n);break;default:(r=t,i="updateProperty",o=this,s=yn(vn(1&(a=3)?r.prototype:r),i,o),2&a&&"function"==typeof s?function(e){return s.apply(o,e)}:s)([e,n])}var r,i,o,a,s}}])}(Jo);function al(e,t,n){return t=vn(t),pn(e,sl()?Reflect.construct(t,n||[],vn(e).constructor):t.apply(e,n))}function sl(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(sl=function(){return!!e})()}var ul={ES_PLAYER_STATE_IDLE:0,ES_PLAYER_STATE_PREPARING:1,ES_PLAYER_STATE_PREPARED:2,ES_PLAYER_STATE_BUFFER_START:3,ES_PLAYER_STATE_BUFFER_END:4,ES_PLAYER_STATE_PLAYING:5,ES_PLAYER_STATE_SEEK_START:6,ES_PLAYER_STATE_SEEK_COMPLETED:7,ES_PLAYER_STATE_PAUSED:8,ES_PLAYER_STATE_RESUMED:9,ES_PLAYER_STATE_BEFORE_STOP:10,ES_PLAYER_STATE_STOP:11,ES_PLAYER_STATE_PLAYBACK_COMPLETED:12,ES_PLAYER_STATE_ERROR:13,ES_PLAYER_STATE_VIDEO_SIZE_CHANGED:14,ES_PLAYER_STATE_PLAYER_VIEW_CHANGED:15,ES_PLAYER_STATE_AD_START:16,ES_PLAYER_STATE_AD_END:17,ES_PLAYER_STATE_AD_SKIP:18,ES_PLAYER_STATE_AD_PAUSED:19,ES_PLAYER_STATE_AUTHORIZED:20,ES_PLAYER_STATE_SET_PLAY_RATE_SUCCESS:21,ES_PLAYER_STATE_SET_PLAY_RATE_ERROR:22,ES_PLAYER_STATE_AD_RESUMED:23,ES_PLAYER_STATE_AD_LOADED:24,ES_PLAYER_STATE_AD_TIME:25,ES_PLAYER_STATE_PLAYER_INITIALIZED:26,ES_PLAYER_STATE_TIMED_TEXT_CHANGED:27,ES_PLAYER_STATE_PLAYER_CLICKABLE:28,ES_PLAYER_STATE_INITIALIZE_SUCCESS:29,ES_PLAYER_STATE_INITIALIZE_ERROR:30},ll=function(e){function t(e,n,r){var i;return x(this,t),(i=al(this,t,[e,n,r])).tagName="IJKPlayerComponent",i.dom=document.createElement("video"),i.dom.setAttribute("data-component-name","IJKPlayerComponent"),i.dom.id=String(n),i.dom.style.cssText="\n width: 100%;\n height: 100%;\n object-fit: contain;\n background: #000;\n ",i.dom.playsInline=!0,i._playerState=ul.ES_PLAYER_STATE_IDLE,i._url="",i._volume=1,i._muted=!1,i._loop=!1,i._playbackRate=1,i._aspectRatio=0,i._positionListeners=[],i._destroyed=!1,i._progressCallback=null,i._durationCallback=null,i._bufferPercentCallback=null,i._isSeeking=!1,i._isBuffering=!1,i._playerType=1,i._decode=0,i._autoPlay=!0,y(n,i),i._bindVideoEvents(),i}return gn(t,e),L(t,[{key:"_bindVideoEvents",value:function(){var e=this,t=this.dom;t.addEventListener("play",function(){e._playerState=ul.ES_PLAYER_STATE_PLAYING,e._dispatchPlayerStatusChanged()}),t.addEventListener("pause",function(){e._playerState=ul.ES_PLAYER_STATE_PAUSED,e._dispatchPlayerStatusChanged()}),t.addEventListener("ended",function(){e._playerState=ul.ES_PLAYER_STATE_COMPLETED,e._dispatchPlayerStatusChanged(),e._dispatchEvent("onPlayerCompleted")}),t.addEventListener("error",function(t){var n,r;e._playerState=ul.ES_PLAYER_STATE_ERROR,e._dispatchEvent("onPlayerError",{errorCode:(null===(n=t.target.error)||void 0===n?void 0:n.code)||-1,errorMessage:(null===(r=t.target.error)||void 0===r?void 0:r.message)||"Video error"}),e._dispatchPlayerStatusChanged()}),t.addEventListener("loadedmetadata",function(){e._playerState=ul.ES_PLAYER_STATE_PREPARED,e._dispatchPlayerStatusChanged(),e._dispatchAspectRatioChanged(),e._dispatchEvent("onPlayerPrepared"),e._dispatchEvent("onPlayerStatusChanged",{playerStatus:ul.ES_PLAYER_STATE_VIDEO_SIZE_CHANGED,playerState:ul.ES_PLAYER_STATE_VIDEO_SIZE_CHANGED,playerWidth:t.videoWidth||0,playerHeight:t.videoHeight||0}),!1!==e._autoPlay&&t.play().catch(function(){})}),t.addEventListener("canplay",function(){}),t.addEventListener("loadstart",function(){}),t.addEventListener("canplaythrough",function(){}),t.addEventListener("loadstart",function(){}),t.addEventListener("progress",function(){}),t.addEventListener("canplay",function(){e._playerState<ul.ES_PLAYER_STATE_PREPARED&&(e._playerState=ul.ES_PLAYER_STATE_PREPARED,e._dispatchPlayerStatusChanged())}),t.addEventListener("timeupdate",function(){e._dispatchPositionChanged()}),t.addEventListener("volumechange",function(){var n=t.volume;e._dispatchEvent("onPlayerVolumeChanged",{leftVolume:n,rightVolume:n}),e._dispatchEvent("onPlayerLeftVolumeChanged",n),e._dispatchEvent("onPlayerRightVolumeChanged",n)}),t.addEventListener("ratechange",function(){e._dispatchEvent("onPlayerPlayRateChanged",{playRate:t.playbackRate.toString()}),e._dispatchEvent("onPlayerStatusChanged",{playerStatus:ul.ES_PLAYER_STATE_SET_PLAY_RATE_SUCCESS,playerState:ul.ES_PLAYER_STATE_SET_PLAY_RATE_SUCCESS})}),t.addEventListener("waiting",function(){e._dispatchEvent("onPlayerBufferStart"),e._dispatchEvent("onPlayerStatusChanged",{playerStatus:ul.ES_PLAYER_STATE_BUFFER_START,playerState:ul.ES_PLAYER_STATE_BUFFER_START})}),t.addEventListener("canplaythrough",function(){e._dispatchEvent("onPlayerBufferEnd"),e._dispatchEvent("onPlayerStatusChanged",{playerStatus:ul.ES_PLAYER_STATE_BUFFER_END,playerState:ul.ES_PLAYER_STATE_BUFFER_END})}),t.addEventListener("playing",function(){e._dispatchEvent("onPlayerResumed"),e._dispatchEvent("onPlayerStatusChanged",{playerStatus:ul.ES_PLAYER_STATE_RESUMED,playerState:ul.ES_PLAYER_STATE_RESUMED})}),t.addEventListener("seeking",function(){e._dispatchEvent("onPlayerSeekStart"),e._dispatchEvent("onPlayerStatusChanged",{playerStatus:ul.ES_PLAYER_STATE_SEEK_START,playerState:ul.ES_PLAYER_STATE_SEEK_START})}),t.addEventListener("seeked",function(){e._dispatchEvent("onPlayerSeekCompleted"),e._dispatchEvent("onPlayerStatusChanged",{playerStatus:ul.ES_PLAYER_STATE_SEEK_COMPLETED,playerState:ul.ES_PLAYER_STATE_SEEK_COMPLETED})}),t.addEventListener("durationchange",function(){var n=Math.floor(1e3*t.duration);if(e._durationCallback)try{e._durationCallback(n)}catch(e){}}),t.addEventListener("progress",function(){if(t.buffered.length>0){var n=t.buffered.end(t.buffered.length-1),r=t.duration;if(r>0){var i=n/r*100;if(e._bufferPercentCallback)try{e._bufferPercentCallback(i)}catch(e){}}}}),t.addEventListener("loadstart",function(){e._playerState=ul.ES_PLAYER_STATE_PREPARING,e._dispatchEvent("onPlayerPreparing"),e._dispatchPlayerStatusChanged()})}},{key:"_dispatchPlayerStatusChanged",value:function(){if(this.dom){var e={playerStatus:this._playerState,playerState:this._playerState,playerWidth:this.dom.videoWidth||0,playerHeight:this.dom.videoHeight||0};this._dispatchEvent("onPlayerStatusChanged",e)}}},{key:"_dispatchPositionChanged",value:function(){if(this.dom){var e=Math.floor(1e3*this.dom.currentTime);if(this._progressCallback)try{this._progressCallback(e)}catch(e){}}}},{key:"_dispatchAspectRatioChanged",value:function(){if(this.dom){var e=this.dom.videoWidth,t=this.dom.videoHeight;if(e&&t){var n=[0,1,2,3,4];this._dispatchEvent("onPlayerAspectRatioListChanged",n),this._dispatchEvent("onAllAspectRatioChanged",{aspectRatioList:n}),this._dispatchEvent("onPlayerAspectRatioChanged",{aspectRatio:0})}}}},{key:"_dispatchEvent",value:function(e,t){if(!this._destroyed&&this.events)if(this.events[e])this.dispatchEvent(e,t);else for(var n=e.toLowerCase(),r=Object.keys(this.events),i=0;i<r.length;i++){var o=r[i];if(o&&o.toLowerCase()===n&&this.events[o])return void this.dispatchEvent(o,t)}}},{key:"updateProperty",value:function(e,n){if("sid"===e)return this._currentSid&&g(this._currentSid),this._currentSid=n,void(n?(m(n,this),this.dom.setAttribute("sid",String(n))):this.dom.removeAttribute("sid"));switch(e){case"src":this._url=n;break;case"muted":this.dom.muted=n;break;case"loop":this.dom.loop=n,this._loop=n;break;case"volume":this.dom.volume=Math.max(0,Math.min(1,n));break;case"playbackRate":this.dom.playbackRate=n;break;default:(r=t,i="updateProperty",o=this,s=yn(vn(1&(a=3)?r.prototype:r),i,o),2&a&&"function"==typeof s?function(e){return s.apply(o,e)}:s)([e,n])}var r,i,o,a,s}},{key:"init",value:function(){this._playerState=ul.ES_PLAYER_STATE_INITIALIZED,this._dispatchPlayerStatusChanged()}},{key:"play",value:function(e){var t=s(e,9),n=t[0],r=t[1],i=t[2],o=(t[3],t[4],t[5],t[6],t[7]);t[8];if(n){var a=sn(n);this._originalUrl=n,this._url=a,this._autoPlay=!1!==(null==o?void 0:o.autoPlay),this.dom.src=a;var u=void 0!==i?parseFloat(i):1;this.dom.volume=Math.max(0,Math.min(1,u)),void 0!==(null==o?void 0:o.loop)&&(this.dom.loop=o.loop),this._setAspectRatio(r||0),this._playerState=ul.ES_PLAYER_STATE_PREPARING,this._dispatchPlayerStatusChanged(),this.dom.load()}}},{key:"start",value:function(e){var t=s(e,1)[0];t&&t>0&&(this.dom.currentTime=t/1e3),this.dom.play().catch(function(e){})}},{key:"pause",value:function(){this.dom.pause()}},{key:"resume",value:function(){this.dom.play().catch(function(){})}},{key:"seekTo",value:function(e){var t=s(e,1)[0];void 0!==t&&(this.dom.currentTime=t/1e3)}},{key:"stop",value:function(){this.dom.pause(),this.dom.currentTime=0,this._playerState=ul.ES_PLAYER_STATE_STOPPED,this._dispatchPlayerStatusChanged()}},{key:"release",value:function(){this._destroyed=!0,this.dom.pause(),this.dom.src="",this._playerState=ul.ES_PLAYER_STATE_RELEASED,this._currentSid&&(g(this._currentSid),this._currentSid=null)}},{key:"getCurrentPosition",value:function(){return Math.floor(1e3*this.dom.currentTime)}},{key:"getDuration",value:function(){return Math.floor(1e3*this.dom.duration)||0}},{key:"setVolume",value:function(e){var t=s(e,1)[0];this.dom.volume=Math.max(0,Math.min(1,parseFloat(t)||1))}},{key:"setLeftVolume",value:function(e){var t=s(e,1)[0];this.dom.volume=Math.max(0,Math.min(1,parseFloat(t)||1))}},{key:"setRightVolume",value:function(e){var t=s(e,1)[0];this.dom.volume=Math.max(0,Math.min(1,parseFloat(t)||1))}},{key:"setLeftRightVolume",value:function(e){var t=s(e,2),n=t[0],r=t[1],i=((parseFloat(n)||1)+(parseFloat(r)||1))/2;this.dom.volume=Math.max(0,Math.min(1,i))}},{key:"getLeftVolume",value:function(){return this.dom.volume}},{key:"getRightVolume",value:function(){return this.dom.volume}},{key:"setPlayRate",value:function(e){var t=s(e,1)[0];this.dom.playbackRate=parseFloat(t)||1}},{key:"setAspectRatio",value:function(e){var t=s(e,1)[0];this._setAspectRatio(t)}},{key:"_setAspectRatio",value:function(e){this.dom.style.objectFit={0:"contain",1:"contain",2:"contain",3:"contain",4:"cover"}[e]||"contain",this._aspectRatio=e}},{key:"setPlayerSize",value:function(e){var t=s(e,2),n=t[0],r=t[1];n&&(this.dom.style.width="number"==typeof n?"".concat(n,"px"):n),r&&(this.dom.style.height="number"==typeof r?"".concat(r,"px"):r)}},{key:"setSize",value:function(e){var t=s(e,2),n=t[0],r=t[1];this.setPlayerSize([n,r])}},{key:"updateLayout",value:function(e){var t=s(e,4),n=t[0],r=t[1],i=t[2],o=t[3];n&&(this.dom.style.width="number"==typeof n?"".concat(n,"px"):n),r&&(this.dom.style.height="number"==typeof r?"".concat(r,"px"):r),void 0!==i&&(this.dom.style.left="".concat(i,"px")),void 0!==o&&(this.dom.style.top="".concat(o,"px"))}},{key:"isStopped",value:function(){return this._playerState===ul.ES_PLAYER_STATE_STOPPED}},{key:"startPositionListener",value:function(){}},{key:"stopPositionListener",value:function(){}},{key:"getTrackInfo",value:function(e){s(e,1)[0];for(var t=this.dom.textTracks||[],n=[],r=0;r<t.length;r++)n.push({index:r,type:t[r].kind,label:t[r].label,language:t[r].language});return n}},{key:"selectTrack",value:function(e){var t=s(e,1)[0],n=this.dom.textTracks;n&&n[t]&&(n[t].mode="showing")}},{key:"deselectTrack",value:function(e){var t=s(e,1)[0],n=this.dom.textTracks;n&&n[t]&&(n[t].mode="disabled")}},{key:"getMediaMeta",value:function(){return{duration:1e3*this.dom.duration,width:this.dom.videoWidth,height:this.dom.videoHeight}}},{key:"setDefinition",value:function(e){s(e,1)[0]}},{key:"setM3U8Definition",value:function(e){s(e,1)[0]}},{key:"getM3U8DefinitionInfo",value:function(){return[]}},{key:"getBitRate",value:function(){return 0}},{key:"getTcpSpeed",value:function(){return 0}},{key:"getVideoDecoder",value:function(){return"html5"}},{key:"getCdnInfo",value:function(){return{}}},{key:"setUsingHardwareDecoder",value:function(e){}},{key:"setPlayerType",value:function(e){this._playerType=e}},{key:"setOptionLong",value:function(e,t,n){}},{key:"setOptionString",value:function(e,t,n){}},{key:"setCacheInfo",value:function(e){}},{key:"setDecode",value:function(e){this._decode=e}},{key:"requestLayout",value:function(){this.dom.offsetHeight}},{key:"invalidate",value:function(){this.requestLayout()}},{key:"clickPlayerView",value:function(){}},{key:"changeToFullScreen",value:function(e){}},{key:"requestPlayerViewLayout",value:function(){}},{key:"requestCustomSizeLayout",value:function(e){}},{key:"requestCustomLayout",value:function(){}},{key:"setPlayerDimension",value:function(e){}},{key:"setDefaultPlayerWidth",value:function(e){}},{key:"setDefaultPlayerHeight",value:function(e){}},{key:"setFullPlayerWidth",value:function(e){}},{key:"setFullPlayerHeight",value:function(e){}},{key:"getEsInfo",value:function(){return{platform:"web",playerType:"html5"}}},{key:"getComponentInfo",value:function(){var e={isSupportDynamicallyLoadedSo:!1,isSupportAsyncInit:!0,platform:"web",playerType:"html5"};return this._dispatchEvent("onPlayerComponentInfo",e),e}},{key:"initComponent",value:function(){this._dispatchEvent("onPlayerStatusChanged",{playerStatus:ul.ES_PLAYER_STATE_PLAYER_INITIALIZED,playerState:ul.ES_PLAYER_STATE_PLAYER_INITIALIZED}),this._dispatchEvent("onPlayerStatusChanged",{playerStatus:ul.ES_PLAYER_STATE_INITIALIZE_SUCCESS,playerState:ul.ES_PLAYER_STATE_INITIALIZE_SUCCESS})}},{key:"setProgressCallback",value:function(e){this._progressCallback=e}},{key:"setDurationCallback",value:function(e){this._durationCallback=e}},{key:"setBufferPercentCallback",value:function(e){this._bufferPercentCallback=e}},{key:"getPlayerState",value:function(){return this._playerState}},{key:"getVideoWidth",value:function(){return this.dom.videoWidth||0}},{key:"getVideoHeight",value:function(){return this.dom.videoHeight||0}},{key:"isPlaying",value:function(){return!this.dom.paused&&!this.dom.ended}},{key:"getPlayRate",value:function(){return this.dom.playbackRate||1}},{key:"getAspectRatio",value:function(){return this._aspectRatio}},{key:"getPlayerType",value:function(){return this._playerType}},{key:"getDecode",value:function(){return this._decode}},{key:"setMute",value:function(e){this.dom.muted=e,this._muted=e}},{key:"isMuted",value:function(){return this.dom.muted}},{key:"getUrl",value:function(){return this._url}},{key:"setLooping",value:function(e){this.dom.loop=e,this._loop=e}},{key:"isLooping",value:function(){return this.dom.loop}},{key:"getAspectRatioList",value:function(){return[0,1,2,3,4]}},{key:"getPlayRateList",value:function(){return[.5,.75,1,1.25,1.5,1.75,2,2.5]}},{key:"getDecodeList",value:function(){return[0,1]}},{key:"dispatchPlayerInfo",value:function(e){this._dispatchEvent("onPlayerInfo",e)}},{key:"setCache",value:function(e){}},{key:"getVideoCachedDuration",value:function(){return this.dom.buffered.length>0?Math.floor(1e3*this.dom.buffered.end(0)):0}},{key:"getAudioCachedDuration",value:function(){return this.getVideoCachedDuration()}},{key:"getVideoCachedBytes",value:function(){return 0}},{key:"getAudioCachedBytes",value:function(){return 0}},{key:"getVideoCachedPackets",value:function(){return 0}},{key:"getAudioCachedPackets",value:function(){return 0}},{key:"getTcpSpeed2",value:function(){return 0}},{key:"getBitRate2",value:function(){return 0}},{key:"getDropFrameRate",value:function(){return 0}},{key:"getVideoDecodeFramesPerSecond",value:function(){return 0}},{key:"getVideoOutputFramesPerSecond",value:function(){return 0}}])}(ii),cl=Uo(Ho,"View"),dl=Uo(Jo,"Text"),hl={View:cl,Text:dl,Image:Uo(ra,"Image"),ListView:Ts,ListViewItem:Ls,ScrollView:Uo(Ho,"ScrollView"),TextInput:Uo(Ho,"TextInput"),WebView:Ma,ViewPager:Uo(Ho,"ViewPager"),FastListView:Ea,TextView:dl,ESPageRouterView:Uo(Ho,"ESPageRouterView"),ESPageRootView:Ko,ESSlotRootView:Uo(Ho,"ESSlotRootView"),ESSlotView:Uo(Ho,"ESSlotView"),LoadingViewComponent:Ta,AnimationViewComponent:Na,ESWebViewComponent:Ma,ESX5WebViewComponent:Ma,QrCodeComponent:Wa,TVProgressBarViewComponent:za,TVSeekBarViewComponent:Ka,TVListViewComponent:Ea,ItemFrameComponent:Ja,ItemStoreView:ns,RippleViewComponent:as,FastFlexView:aa,FastItemView:cs,TabsView:vs,RecyclerViewPager:bs,Modal:Ss,TextV2Component:ol,TransitionImageComponent:ru,IJKPlayerComponent:ll,ESPlayMarkViewComponent:Ns,CanvasView2D:eu,CanvasComponent:eu};function fl(e){e.start({id:"app",name:A,params:{business:A,data:{}}})}n.g.__ORIGINAL_FETCH__=n.g.fetch.bind(n.g),window.addEventListener("error",function(e){var t,n=(null===(t=e.error)||void 0===t?void 0:t.message)||e.message||"";if(n.includes("No match for")&&n.includes('"lifecycle"')){var r=document.createElement("div");r.id="router-upgrade-notice",r.style.cssText="\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n z-index: 999999;\n background: rgba(0, 0, 0, 0.9);\n display: flex;\n align-items: center;\n justify-content: center;\n flex-direction: column;\n font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;\n ",r.innerHTML='\n <div style="\n background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);\n border: 2px solid #e94560;\n border-radius: 16px;\n padding: 40px 50px;\n max-width: 500px;\n text-align: center;\n box-shadow: 0 20px 60px rgba(233, 69, 96, 0.3);\n ">\n <div style="font-size: 48px; margin-bottom: 20px;">⚠️</div>\n <h2 style="color: #e94560; margin: 0 0 16px 0; font-size: 24px;">路由版本过低</h2>\n <p style="color: #ccc; line-height: 1.8; margin: 0 0 24px 0;">\n 当前项目使用的 <code style="color: #4fc3f7; background: rgba(79, 195, 247, 0.1); padding: 2px 8px; border-radius: 4px;">@extscreen/es3-router</code> 版本过低\n </p>\n <div style="\n background: #0f0f23;\n border-radius: 8px;\n padding: 16px;\n margin-bottom: 24px;\n font-family: \'Monaco\', \'Menlo\', monospace;\n font-size: 14px;\n color: #4fc3f7;\n ">\n npm install @extscreen/es3-router@^3.0.1\n </div>\n <p style="color: #888; font-size: 13px; margin: 0;">\n 请升级至 <strong style="color: #4fc3f7;">3.0.1</strong> 或更高版本后重新构建\n </p>\n <button id="close-router-notice" style="\n margin-top: 24px;\n background: #e94560;\n border: none;\n color: white;\n padding: 12px 32px;\n border-radius: 8px;\n font-size: 14px;\n cursor: pointer;\n transition: all 0.2s;\n ">关闭</button>\n </div>\n ',document.body.appendChild(r),document.getElementById("close-router-notice").onclick=function(){r.remove()},e.preventDefault()}});var pl="files";function vl(){return new Promise(function(e,t){var n=indexedDB.open("quicktvui-zip-cache",1);n.onerror=function(){return t(n.error)},n.onsuccess=function(){return e(n.result)},n.onupgradeneeded=function(e){var t=e.target.result;t.objectStoreNames.contains(pl)||t.createObjectStore(pl)}})}function yl(e,t,n){return ml.apply(this,arguments)}function ml(){return(ml=l(d().mark(function e(t,n,r){var i;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,vl();case 1:return i=e.sent,e.abrupt("return",new Promise(function(e,o){var a=i.transaction(pl,"readwrite");a.objectStore(pl).put({files:t,entryFile:n,zipName:r,timestamp:Date.now()},"zip-data"),a.oncomplete=function(){return e()},a.onerror=function(){return o(a.error)}}));case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}function gl(){return _l.apply(this,arguments)}function _l(){return(_l=l(d().mark(function e(){var t;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,vl();case 1:return t=e.sent,e.abrupt("return",new Promise(function(e,n){var r=t.transaction(pl,"readonly").objectStore(pl).get("zip-data");r.onsuccess=function(){return e(r.result)},r.onerror=function(){return n(r.error)}}));case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}function bl(){return wl.apply(this,arguments)}function wl(){return(wl=l(d().mark(function e(){var t;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,vl();case 1:return t=e.sent,e.abrupt("return",new Promise(function(e,n){var r=t.transaction(pl,"readwrite");r.objectStore(pl).delete("zip-data"),r.oncomplete=function(){return e()},r.onerror=function(){return n(r.error)}}));case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}var kl={files:new Map,entryFile:null,zipName:null,baseDir:"",loadFromData(e){var t=this;if(this.files.clear(),e&&e.files){Object.entries(e.files).forEach(function(e){for(var n=s(e,2),r=n[0],i=n[1],o=atob(i),a=new Uint8Array(o.length),u=0;u<o.length;u++)a[u]=o.charCodeAt(u);t.files.set(r,a),t.files.set("/"+r,a)}),this.entryFile=e.entryFile,this.zipName=e.zipName,this.baseDir=this.entryFile?this.entryFile.substring(0,this.entryFile.lastIndexOf("/")):"";Array.from(this.files.keys()).filter(function(e){return!e.startsWith("/")}).slice(0,10);window.__VIRTUAL_FS__=this}},set(e,t){var n=e.replace(/^\//,"");this.files.set(n,t),this.files.set("/"+n,t)},get(e){var t=e.replace(/^\//,""),n=this.files.get(t)||this.files.get("/"+t);if(n)return n;if(this.baseDir){var r=this.baseDir+"/"+t;if(n=this.files.get(r)||this.files.get("/"+r))return n}return null},has(e){return null!==this.get(e)},list(){var e=new Set;return this.files.forEach(function(t,n){n.startsWith("/")||e.add(n)}),Array.from(e).sort()},clear(){this.files.clear(),this.entryFile=null,this.zipName=null,this.baseDir=""}};function El(){return Sl.apply(this,arguments)}function Sl(){return(Sl=l(d().mark(function e(){return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise(function(e,t){if(window.JSZip)e(window.JSZip);else{var n=document.createElement("script");n.src="https://cdn.jsdelivr.net/npm/jszip@3.10.1/dist/jszip.min.js",n.onload=function(){e(window.JSZip)},n.onerror=function(){return t(new Error("Failed to load JSZip"))},document.head.appendChild(n)}}));case 1:case"end":return e.stop()}},e)}))).apply(this,arguments)}function Al(e){return!e.includes("__MACOSX/")&&(!e.split("/").pop().startsWith("._")&&(!e.endsWith(".DS_Store")&&!e.toLowerCase().endsWith(".thumbs.db")))}function xl(e){return Cl.apply(this,arguments)}function Cl(){return(Cl=l(d().mark(function e(t){var n,r,i,o,a,s,u;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,El();case 1:return n=e.sent,e.next=2,n.loadAsync(t);case 2:return r=e.sent,i={},o=[],r.forEach(function(e,t){if(!t.dir)if(Al(e)){var n=t.async("uint8array").then(function(t){for(var n="",r=0;r<t.length;r++)n+=String.fromCharCode(t[r]);i[e]=btoa(n)});o.push(n)}else 0}),e.next=3,Promise.all(o);case 3:if(a=Object.keys(i),(s=a.find(function(e){return e.endsWith("index.bundle")}))||(s=a.find(function(e){return e.endsWith("index.android.js")})),s||(s=a.find(function(e){return e.match(/index\.(android|hippy)\.js$/)})),s||(s=a.find(function(e){return e.endsWith(".bundle")})),s||(s=a.find(function(e){return e.endsWith(".js")})),s){e.next=4;break}throw new Error("No bundle entry found in ZIP");case 4:return e.next=5,yl(i,s,t.name);case 5:(u=new URL(window.location.href)).searchParams.set("zip","1"),u.searchParams.delete("bundle"),u.searchParams.delete("zipUrl"),window.location.href=u.toString();case 6:case"end":return e.stop()}},e)}))).apply(this,arguments)}function Tl(e,t){return Ll.apply(this,arguments)}function Ll(){return Ll=l(d().mark(function e(t,n){var r,i,o,a,s,u,l,c,h,f,p,v,y,m,g,_,b=arguments;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=b.length>2&&void 0!==b[2]&&b[2],e.next=1,El();case 1:return i=e.sent,o=t,r&&((a=new URL(t)).searchParams.set("_t",Date.now().toString()),o=a.toString()),n&&n(0,"正在下载 ZIP 包..."),e.next=2,new Promise(function(e,t){var r=new XMLHttpRequest;r.open("GET",o,!0),r.responseType="arraybuffer",r.onprogress=function(e){if(e.lengthComputable&&n){var t=Math.floor(e.loaded/e.total*30);n(t,"正在下载... ".concat(Math.floor(e.loaded/1024),"KB / ").concat(Math.floor(e.total/1024),"KB"))}},r.onload=function(){r.status>=200&&r.status<300?e(r.response):t(new Error("下载失败: HTTP ".concat(r.status)))},r.onerror=function(){t(new Error("网络请求失败,请检查网络连接或服务器 CORS 配置"))},r.ontimeout=function(){t(new Error("请求超时"))},r.send()});case 2:s=e.sent,u="remote-bundle.zip";try{l=new URL(t),c=l.pathname,(h=c.split("/").pop())&&h.endsWith(".zip")&&(u=h)}catch(e){}return n&&n(50,"正在解压 ZIP 包..."),e.next=3,i.loadAsync(s);case 3:return f=e.sent,p={},v=0,y=Object.keys(f.files).filter(function(e){return!f.files[e].dir&&Al(e)}).length,m=[],f.forEach(function(e,t){t.dir||(Al(e)?m.push(t.async("uint8array").then(function(t){for(var r="",i=0;i<t.length;i++)r+=String.fromCharCode(t[i]);if(p[e]=btoa(r),v++,n){var o=50+Math.floor(v/y*40);n(o,"正在解压... (".concat(v,"/").concat(y,")"))}})):0)}),e.next=4,Promise.all(m);case 4:if(n&&n(95,"正在保存到缓存..."),g=Object.keys(p),(_=g.find(function(e){return e.endsWith("index.bundle")}))||(_=g.find(function(e){return e.endsWith("index.android.js")})),_||(_=g.find(function(e){return e.match(/index\.(android|hippy)\.js$/)})),_||(_=g.find(function(e){return e.endsWith(".bundle")})),_||(_=g.find(function(e){return e.endsWith(".js")})),_){e.next=5;break}throw new Error("ZIP 包中未找到有效的入口文件 (index.bundle 或 index.android.js)");case 5:return e.next=6,yl(p,_,u);case 6:n&&n(100,"准备加载..."),kl.loadFromData({files:p,entryFile:_,zipName:u});case 7:case"end":return e.stop()}},e)})),Ll.apply(this,arguments)}function Ol(e){return{js:"application/javascript",json:"application/json",css:"text/css",html:"text/html",png:"image/png",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",webp:"image/webp",svg:"image/svg+xml",woff:"font/woff",woff2:"font/woff2",ttf:"font/ttf",mp3:"audio/mpeg",mp4:"video/mp4"}[e.split(".").pop().toLowerCase()]||"application/octet-stream"}function Pl(e){return Il.apply(this,arguments)}function Il(){return(Il=l(d().mark(function e(t){var n,r,i,o;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n=kl.get(t)){e.next=1;break}throw new Error("File not found in VirtualFS: ".concat(t));case 1:return r=(new TextDecoder).decode(n),i=Dl(),o=i+r,e.abrupt("return",new Promise(function(e,t){try{var n=document.createElement("script");n.textContent=o,document.body.appendChild(n),e()}catch(e){t(e)}}));case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}var Nl="";function Rl(e){Nl=function(e){if(!e)return"";try{var t=new URL(e,window.location.href),n=t.pathname.replace(/[^/]+$/,"");return n=n.replace(/\/bundles-dev\//,"/"),"".concat(t.origin).concat(n)}catch(e){return""}}(e)}function Dl(){var e=JSON.stringify(kl&&kl.baseDir?"/":Nl||"/");return"(function(){var p=".concat(e,';if(typeof __webpack_require__!=="undefined"){__webpack_require__.p=p;}if(typeof __webpack_public_path__!=="undefined"){__webpack_public_path__=p;}})();')}function Ml(e){return"string"==typeof e&&/\$\{[^}]+\}/.test(e)}function Fl(e){if(Ml(e))return e;var t=function(e){if(!Nl||"string"!=typeof e||!e)return e;if(Ml(e))return e;if(/^(blob:|data:|javascript:|about:)/i.test(e))return e;if(/^https?:\/\//i.test(e))return e;try{var t=new URL(e,window.location.href);if(t.origin!==window.location.origin)return e;if(t.pathname.startsWith("/proxy/"))return e;var n=t.pathname.startsWith("/")?t.pathname.slice(1):t.pathname;if(!n)return e;var r=Nl.replace(/^https?:\/\/[^/]+/,"");return n.startsWith(r.replace(/^\//,""))?e:"".concat(Nl).concat(n).concat(t.search).concat(t.hash)}catch(t){var i=e.replace(/^\//,"");if(!i)return e;var o=Nl.replace(/^https?:\/\/[^/]+/,"");return i.startsWith(o.replace(/^\//,""))?e:"".concat(Nl).concat(i)}}(e);return t}if("undefined"==typeof localStorage){var Bl={};n.g.localStorage={getItem:function(e){return Bl[e]||null},setItem:function(e,t){Bl[e]=String(t)},removeItem:function(e){delete Bl[e]},clear:function(){Object.keys(Bl).forEach(function(e){return delete Bl[e]})}}}function jl(e){return"string"!=typeof e?e:e.startsWith("hpfile://")?e.replace(/^hpfile:\/\/\.?\//,"/").replace(/^hpfile:\/\//,"/"):/https?:\/\/[^/:]+:38989\//.test(e)?e.replace(/https?:\/\/[^/:]+:38989\/[a-f0-9]{32}\//,"/bundles-dev/").replace(/https?:\/\/[^/:]+:38989\//,"/bundles-dev/"):e}function Vl(e,t){var n=Object.getOwnPropertyDescriptor(HTMLScriptElement.prototype,"textContent")||Object.getOwnPropertyDescriptor(Element.prototype,"textContent")||Object.getOwnPropertyDescriptor(Node.prototype,"textContent");n&&n.set?n.set.call(e,t):e.textContent=t}var Wl=Element.prototype.setAttribute;Element.prototype.setAttribute=function(e,t){var n=e.toLowerCase();if("SCRIPT"===this.tagName&&"src"===n){if(kl){var r=t;try{r=new URL(t,window.location.origin).pathname}catch(e){}var i=r.replace(/^\//,""),o=kl.baseDir?kl.baseDir+"/"+i:i;if(kl.has(o)){var a=kl.get(o);return Vl(this,(new TextDecoder).decode(a)),void(this._virtualSrc=t)}if(kl.has(i)){var s=kl.get(i);return Vl(this,(new TextDecoder).decode(s)),void(this._virtualSrc=t)}}var u=Fl(t);if(u!==t)return Wl.call(this,e,u)}if("IMG"===this.tagName&&"src"===n){var l=jl(t);if(kl){var c=l.replace(/^\//,""),d=kl.baseDir?kl.baseDir+"/"+c:c;if(kl.has(d)){var h=kl.get(d),f=new Blob([h],{type:Ol(d)}),p=URL.createObjectURL(f);return Wl.call(this,e,p)}}if(kl&&kl.has(l)){var v=kl.get(l),y=new Blob([v],{type:Ol(l)}),m=URL.createObjectURL(y);return Wl.call(this,e,m)}var g=Fl(l);if(g!==l)return Wl.call(this,e,g);if(l!==t)return Wl.call(this,e,l)}if("style"===n&&"string"==typeof t){var _=Yl(t);if(_!==t)return Wl.call(this,e,_)}if("src"===n||"href"===n||"data-src"===n){var b=Fl(jl(t));if(b!==t)return Wl.call(this,e,b)}return Wl.call(this,e,t)};var Hl=document.createElement.bind(document);document.createElement=function(e,t){var n=Hl(e,t);if("script"===e.toLowerCase()){var r=Object.getOwnPropertyDescriptor(HTMLScriptElement.prototype,"src"),i=Object.getOwnPropertyDescriptor(HTMLScriptElement.prototype,"textContent");if(!r||!i)return n;var o=r.get,a=r.set;i.set;n.__vfsContent=null,Object.defineProperty(n,"src",{get:()=>null!==n.__vfsContent?"":o.call(n),set(e){var t=e.replace(/^\//,"");if(kl){var r=kl.baseDir?kl.baseDir+"/"+t:t;if(kl.has(r)){var i=kl.get(r);return void(n.__vfsContent=(new TextDecoder).decode(i))}}if(kl&&kl.has(t)){var o=kl.get(t);n.__vfsContent=(new TextDecoder).decode(o)}else a.call(n,e)},configurable:!0,enumerable:!0})}return n},new MutationObserver(function(e){e.forEach(function(e){e.addedNodes.forEach(function(e){var t=e&&"SCRIPT"===e.tagName?e.src||e.getAttribute&&e.getAttribute("src"):"";if("SCRIPT"===e.tagName&&t&&kl){var n=t;try{n=new URL(t,window.location.origin).pathname}catch(e){}var r=n.replace(/^\//,""),i=kl.baseDir?kl.baseDir+"/"+r:r;if(kl.has(i)){var o=kl.get(i),a=(new TextDecoder).decode(o);e.removeAttribute("src"),e.textContent=a,setTimeout(function(){return e.dispatchEvent(new Event("load"))},0)}else if(kl.has(r)){var s=kl.get(r),u=(new TextDecoder).decode(s);e.removeAttribute("src"),e.textContent=u,setTimeout(function(){return e.dispatchEvent(new Event("load"))},0)}}if(t&&!kl){var l=Fl(t);l!==t&&(e.src=l)}})})}).observe(document.documentElement,{childList:!0,subtree:!0});var Ul=Object.getOwnPropertyDescriptor(HTMLScriptElement.prototype,"src");if(Ul){var Gl=Ul.get,zl=Ul.set;Object.defineProperty(HTMLScriptElement.prototype,"src",{get(){return this._virtualSrc?this._virtualSrc:Gl.call(this)},set(e){var t=this,n=Fl(jl(e));if(kl&&kl.has&&kl.has(n)){this._virtualSrc=n;var r=kl.get(n);return Vl(this,(new TextDecoder).decode(r)),setTimeout(function(){return t.dispatchEvent(new Event("load"))},0),n}if(kl){var i=n.replace(/^\//,""),o=kl.baseDir?kl.baseDir+"/"+i:i;if(kl.has(o)){this._virtualSrc=o;var a=kl.get(o);return Vl(this,(new TextDecoder).decode(a)),setTimeout(function(){return t.dispatchEvent(new Event("load"))},0),o}}return zl.call(this,n)},configurable:!0,enumerable:!0})}function Yl(e){if("string"!=typeof e)return e;if(e.startsWith("hpfile://")){var t=e.replace(/^hpfile:\/\/\.?\//,"/").replace(/^hpfile:\/\//,"/");if(kl&&t.startsWith("/assets/")){var n=t.replace(/^\//,""),r=kl.baseDir?kl.baseDir+"/"+n:n;if(kl.has(r)){var i=kl.get(r),o=new Blob([i],{type:Ol(r)}),a=URL.createObjectURL(o);return"url(".concat(a,")")}}if(kl&&kl.has(t)){var s=kl.get(t),u=new Blob([s],{type:Ol(t)}),l=URL.createObjectURL(u);return"url(".concat(l,")")}return"url(".concat(Fl(t),")")}return e.replace(/url\(['"]?(hpfile:\/\/[^'")\s]+)['"]?\)/gi,function(e,t){var n=t.replace(/^hpfile:\/\/\.?\//,"/").replace(/^hpfile:\/\//,"/");if(kl&&n.startsWith("/assets/")){var r=n.replace(/^\//,""),i=kl.baseDir?kl.baseDir+"/"+r:r;if(kl.has(i)){var o=kl.get(i),a=new Blob([o],{type:Ol(i)}),s=URL.createObjectURL(a);return"url(".concat(s,")")}}if(kl&&kl.has(n)){var u=kl.get(n),l=new Blob([u],{type:Ol(n)}),c=URL.createObjectURL(l);return"url(".concat(c,")")}return"url(".concat(Fl(n),")")})}var ql=Object.getOwnPropertyDescriptor(CSSStyleDeclaration.prototype,"cssText");if(ql&&ql.set){var Xl=ql.set;Object.defineProperty(CSSStyleDeclaration.prototype,"cssText",{get:ql.get,set(e){var t=Yl(e);return Xl.call(this,t)},configurable:!0})}var Kl=CSSStyleDeclaration.prototype.setProperty;CSSStyleDeclaration.prototype.setProperty=function(e,t,n){var r=e.toLowerCase();if("background-image"===r||"background"===r){var i=Yl(t);return Kl.call(this,e,i,n)}return Kl.call(this,e,t,n)};var $l=Object.getOwnPropertyDescriptor(CSSStyleDeclaration.prototype,"backgroundImage");if($l&&$l.set){var Zl=$l.set;Object.defineProperty(CSSStyleDeclaration.prototype,"backgroundImage",{get:$l.get,set(e){var t=Yl(e);return Zl.call(this,t)},configurable:!0})}var Jl=Object.getOwnPropertyDescriptor(CSSStyleDeclaration.prototype,"background");if(Jl&&Jl.set){var Ql=Jl.set;Object.defineProperty(CSSStyleDeclaration.prototype,"background",{get:Jl.get,set(e){var t=Yl(e);return Ql.call(this,t)},configurable:!0})}var ec=Object.getOwnPropertyDescriptor(HTMLImageElement.prototype,"src");if(ec){var tc=ec.get,nc=ec.set;Object.defineProperty(HTMLImageElement.prototype,"src",{get(){return tc.call(this)},set(e){var t=Fl(jl(e));if(kl&&t.startsWith("/assets/")){var n=t.replace(/^\//,""),r=kl.baseDir?kl.baseDir+"/"+n:n;if(kl.has(r)){var i=kl.get(r),o=new Blob([i],{type:Ol(r)}),a=URL.createObjectURL(o);return nc.call(this,a)}}if(kl&&kl.has(t)){var s=kl.get(t),u=new Blob([s],{type:Ol(t)}),l=URL.createObjectURL(u);return nc.call(this,l)}return nc.call(this,t)},configurable:!0,enumerable:!0})}var rc=Object.getOwnPropertyDescriptor(HTMLMediaElement.prototype,"src");if(rc){var ic=rc.get,oc=rc.set;Object.defineProperty(HTMLMediaElement.prototype,"src",{get(){return ic.call(this)},set(e){if("string"==typeof e&&/^https?:\/\//i.test(e))return oc.call(this,e);if("string"==typeof e&&e.startsWith("//"))return oc.call(this,e);var t=Fl(jl(e));if(kl&&t.startsWith("/assets/")){var n=t.replace(/^\//,""),r=kl.baseDir?kl.baseDir+"/"+n:n;if(kl.has(r)){var i=kl.get(r),o=new Blob([i],{type:Ol(r)}),a=URL.createObjectURL(o);return oc.call(this,a)}}if(kl&&t.startsWith("/")&&kl.has(t)){var s=kl.get(t),u=new Blob([s],{type:Ol(t)}),l=URL.createObjectURL(u);return oc.call(this,l)}return oc.call(this,t)},configurable:!0,enumerable:!0})}if("undefined"!=typeof fetch){var ac=n.g.fetch;n.g.fetch=function(e,t){var n=e;"string"==typeof e?n=e:e instanceof Request&&(n=e.url);var r=jl(n);if(kl&&r.startsWith("/")){if(r.startsWith("/assets/")){var i=r.replace(/^\//,""),o=kl.baseDir?kl.baseDir+"/"+i:i;if(kl.has(o)){var a=kl.get(o);return Promise.resolve(new Response(a,{status:200,headers:{"Content-Type":Ol(o)}}))}}if(kl.has(r)){var s=kl.get(r);return Promise.resolve(new Response(s,{status:200,headers:{"Content-Type":Ol(r)}}))}}return r!==n&&("string"==typeof e?e=r:e instanceof Request&&(e=new Request(r,t))),ac(e,t)}}n.g.__ES_LAST_SDK_INFO__={eskit_ver_code:2.8},n.g.__ES_APP_READY__=!0,globalThis.__nativeLocalStorage=ln,globalThis.__localStorage=dn,Object.defineProperty(window,"localStorage",{value:dn,writable:!1,configurable:!0}),un(),n.g.__WEB_COMPONENTS__=n.g.__WEB_COMPONENTS__||{},n.g.__WEB_COMPONENTS__.IJKPlayerComponent=ll,function(){if(n.g.Hippy||(n.g.Hippy={}),!n.g.Hippy.SceneBuilder){var e=function(e){return e&&"string"==typeof e?e.startsWith("on")?e:"on".concat(e.charAt(0).toUpperCase()).concat(e.slice(1)):e};n.g.Hippy.SceneBuilder=function(t){var r=this;this.rootViewId=t,this.create=function(e){n.g.Hippy.bridge.callNative("UIManagerModule","createNode",r.rootViewId,e)},this.update=function(e){n.g.Hippy.bridge.callNative("UIManagerModule","updateNode",r.rootViewId,e)},this.delete=function(e){n.g.Hippy.bridge.callNative("UIManagerModule","deleteNode",r.rootViewId,e)},this.move=function(e){n.g.Hippy.bridge.callNative("UIManagerModule","moveNode",r.rootViewId,e)},this.build=function(){},this.addEventListener=function(t,r,i){var o=e(r);n.g.Hippy.bridge.callNative("UIManagerModule","addEventListener",t,o,i)},this.removeEventListener=function(t,r,i){n.g.Hippy.bridge.callNative("UIManagerModule","removeEventListener",t,e(r),i)}}}}();var sc=Lr.create({modules:{ESModule:iu,ESLocalStorageModule:cu,EsNativeModule:hu,AndroidSharedPreferencesModule:gu,AndroidDevelopModule:ku,AndroidNetworkModule:H,AndroidFileModule:tt,ESToastModule:Pu,RuntimeDeviceModule:K,ESIJKAudioPlayerModule:Pe,ESSoundPoolAudioPlayerModule:He,ESLogModule:Iu,FastListModule:va,FocusModule:Du,ESDeviceInfoModule:ju,ESGroupDataModule:Ku,ESDownloadModule:ct,ESHLogModule:$u,ESAndroidAudioPlayerModule:Zu,ESPlayerIJKModule:Ju,BoxInstallModule:Qu,CanvasModule:nl},components:hl});!function(e){var t,r,i;if(t=Object.prototype.toString,Object.prototype.toString=function(){var e=t.call(this);return"[object AsyncFunction]"===e||"[object GeneratorFunction]"===e?"[object Function]":e},function(e){h=e}(e),function(e){if(!_t){var t=n.g.hippyCallNatives;if("function"==typeof t){var r=new Set(["initSharedPreferences","initESSharedPreferences","getBoolean","putBoolean","getInt","putInt","getLong","putLong","getString","putString","getItem","setItem"]),i=new Set(["getESDeviceInfo","getESSDKInfo","getESSDKVersionCode","getESSDKVersionName","getESPackageName","getESAppFilePath","getESAppRuntimePath","getSupportSchemes","launchESPageByArgs","launchESPage","launchNativeApp","launchNativeAppWithPackage","finish","finishAll","isModuleRegistered","isComponentRegistered"]),o=new Set(["getDevelop","getPackageName","getVersionName","getVersionCode","getChannel","getVendor"]);n.g.hippyCallNatives=function(a,u,l,c){var d;if("ExtendModule"!==a||"callUIFunction"!==u){if("ESIJKAudioPlayerModule"===a){var h,f=null===(h=n.g.__WEB_MODULES__)||void 0===h?void 0:h.ESIJKAudioPlayerModule;if(f&&"function"==typeof f[u]){var p=f[u].apply(f,[l].concat(k(c||[])));return p&&"function"==typeof p.catch?p.catch(function(e){}):p}}if("ESSoundPoolAudioPlayerModule"===a||"ESSoundPoolPlayerModule"===a){var v,y=null===(v=n.g.__WEB_MODULES__)||void 0===v?void 0:v.ESSoundPoolAudioPlayerModule;if(y&&"function"==typeof y[u]){var m={resolve:function(e){var t,r=null===(t=n.g.__GLOBAL__)||void 0===t||null===(t=t.moduleCallList)||void 0===t?void 0:t[l];r&&"function"==typeof r.cb&&(r.cb(e),0!==r.type&&1!==r.type||delete n.g.__GLOBAL__.moduleCallList[l])},reject:function(e){var t,r=null===(t=n.g.__GLOBAL__)||void 0===t||null===(t=t.moduleCallList)||void 0===t?void 0:t[l];r&&"function"==typeof r.reject&&(r.reject(e),0!==r.type&&1!==r.type||delete n.g.__GLOBAL__.moduleCallList[l])}},g=y[u].apply(y,k(c||[]).concat([m]));return g&&"function"==typeof g.catch?g.catch(function(e){}):g}}if("AndroidFileModule"!==a){if("ESDownloadModule"!==a){if(null==e||null===(d=e.modules)||void 0===d||!d[a]){if(r.has(u))return t("ESLocalStorageModule",u,l,c);if(i.has(u))return t("ESModule",u,l,c);if(o.has(u))return t("AndroidDevelopModule",u,l,c)}if("UIManagerModule"===a&&("createNode"===u||"updateNode"===u||"deleteNode"===u)){var b=s(c||[],2),w=b[0],E=b[1];if(Array.isArray(E)){var S=E.map(function(e){return Array.isArray(e)?e:[e,null]});return t(a,u,l,[w,S])}}return t(a,u,l,c)}var A,x,C=(null==e||null===(A=e.modules)||void 0===A?void 0:A.ESDownloadModule)||(null===(x=n.g.__WEB_MODULES__)||void 0===x?void 0:x.ESDownloadModule);if(C&&"function"==typeof C[u]){var T={resolve:function(e){var t,r=null===(t=n.g.__GLOBAL__)||void 0===t||null===(t=t.moduleCallList)||void 0===t?void 0:t[l];r&&"function"==typeof r.cb&&(r.cb(e),0!==r.type&&1!==r.type||delete n.g.__GLOBAL__.moduleCallList[l])},reject:function(e){var t,r=null===(t=n.g.__GLOBAL__)||void 0===t||null===(t=t.moduleCallList)||void 0===t?void 0:t[l];r&&"function"==typeof r.reject&&(r.reject(e),0!==r.type&&1!==r.type||delete n.g.__GLOBAL__.moduleCallList[l])}},L=C[u].apply(C,k(c||[]).concat([T]));return L&&"function"==typeof L.catch?L.catch(function(e){}):L}}else{var O,P,I=(null==e||null===(O=e.modules)||void 0===O?void 0:O.AndroidFileModule)||(null===(P=n.g.__WEB_MODULES__)||void 0===P?void 0:P.AndroidFileModule);if(I&&"function"==typeof I[u]){var N={resolve:function(e){var t,r=null===(t=n.g.__GLOBAL__)||void 0===t||null===(t=t.moduleCallList)||void 0===t?void 0:t[l];r&&"function"==typeof r.cb&&(r.cb(e),0!==r.type&&1!==r.type||delete n.g.__GLOBAL__.moduleCallList[l])},reject:function(e){var t,r=null===(t=n.g.__GLOBAL__)||void 0===t||null===(t=t.moduleCallList)||void 0===t?void 0:t[l];r&&"function"==typeof r.reject&&(r.reject(e),0!==r.type&&1!==r.type||delete n.g.__GLOBAL__.moduleCallList[l])}},R=I[u].apply(I,k(c||[]).concat([N]));return R&&"function"==typeof R.catch?R.catch(function(e){}):R}}}else{var D=s(c||[],3),M=D[0],F=D[1],B=D[2];if(!M||!F)return;var j=_(M);if(j&&"function"==typeof j[F])try{return j[F].apply(j,k(B||[]))}catch(e){}}},_t=!0}}}(e),function(){var e;if(!gt){var t=null===(e=n.g.Hippy)||void 0===e?void 0:e.bridge;if(t&&t.callNative){var r=t.callNative.bind(t);t.callNative=function(e,t){for(var i=arguments.length,o=new Array(i>2?i-2:0),a=2;a<i;a++)o[a-2]=arguments[a];if("ESIJKAudioPlayerModule"===e){var u,l=null===(u=n.g.__WEB_MODULES__)||void 0===u?void 0:u.ESIJKAudioPlayerModule;if(l&&"function"==typeof l[t]){var c=l[t].apply(l,[-1].concat(o));return c&&"function"==typeof c.catch?c.catch(function(e){}):c}}if("ESSoundPoolAudioPlayerModule"===e||"ESSoundPoolPlayerModule"===e){var d,h=null===(d=n.g.__WEB_MODULES__)||void 0===d?void 0:d.ESSoundPoolAudioPlayerModule;if(h&&"function"==typeof h[t]){var f=h[t].apply(h,o);return f&&"function"==typeof f.catch?f.catch(function(e){}):f}}if("AndroidFileModule"===e){var p,v=null===(p=n.g.__WEB_MODULES__)||void 0===p?void 0:p.AndroidFileModule;if(v&&"function"==typeof v[t]){var y=v[t].apply(v,o);return y&&"function"==typeof y.catch?y.catch(function(e){}):y}}if("ESDownloadModule"===e){var m,g=null===(m=n.g.__WEB_MODULES__)||void 0===m?void 0:m.ESDownloadModule;if(g&&"function"==typeof g[t]){var b=g[t].apply(g,o);return b&&"function"==typeof b.catch?b.catch(function(e){}):b}}if("UIManagerModule"===e){if("addEventListener"===t){var w=o[0],k=o[1],A=o[2],x=_(w);return void(x&&x.addEventListener&&x.addEventListener(k,A))}if("removeEventListener"===t){var C=o[0],T=o[1],L=o[2],O=_(C);return void(O&&O.removeEventListener&&O.removeEventListener(T,L))}if("callUIFunction"===t){var P,I,N,R;if(Array.isArray(o[0])){var D=o[0],M=o[1],F=s(D||[],3);P=F[0],I=F[1],N=F[2],R=M}else P=o[0],I=o[1],N=o[2],R=o[3];var B=_(P);if(B&&"function"==typeof B[I])try{var j=B[I](N);return R&&"function"==typeof R&&R(j),j}catch(e){}return}if("createNode"===t){var V=o[0],W=o[1];if(Array.isArray(W)){var H=!1;if(W.forEach(function(e){var t=e;Array.isArray(e)&&(t=e[0]),t&&"ESPageRootView"===t.name&&(H=!0)}),H){var U=n.g.__TV_FOCUS_MANAGER__;U&&"function"==typeof U.saveCurrentPageFocus&&U.saveCurrentPageFocus()}var G=W.map(function(e){var t=e,n=null;return Array.isArray(e)&&(t=e[0],n=e[1]),t&&"object"==typeof t&&(t.name||(t.name="View"),mt||"app"!==t.pId&&t.pId!==V||(mt=t.id,t.props&&(t.props.style=t.props.style||{},t.props.style.width=E,t.props.style.height=S,delete t.props.style.flex))),Array.isArray(e)?[t,n]:t});return r(e,t,V,G)}}if("updateNode"===t){var z=o[0],Y=o[1];if(Array.isArray(Y)){var q=Y.map(function(e){var t=e,n=null;return Array.isArray(e)&&(t=e[0],n=e[1]),t&&"object"==typeof t&&(t.name||(t.name="View"),mt&&t.id===mt&&t.props&&(t.props.style=t.props.style||{},t.props.style.width=E,t.props.style.height=S,delete t.props.style.flex)),[t,n]});return r(e,t,z,q)}}if("deleteNode"===t){var X=o[0],K=o[1];if(Array.isArray(K)){var $=K.map(function(e){return Array.isArray(e)?e:[e]});return $.forEach(function(e){var t=e;if(Array.isArray(e)&&(t=e[0]),t&&"object"==typeof t&&"ESPageRootView"===t.name){var r=n.g.__TV_FOCUS_MANAGER__;r&&"function"==typeof r.restorePreviousPageFocus&&setTimeout(function(){r.restorePreviousPageFocus()},50)}}),r(e,t,X,$)}}}if("ESNetworkSpeedModule"===e&&ot&&"function"==typeof ot[t])ot[t].apply(ot,o);else{if("ESPluginModule"!==e)return r.apply(void 0,[e,t].concat(o));if("install"===t){var Z=Array.isArray(o[0])?o[0][0]:o[0];return void ae("onESPluginStateChanged",{success:!0,pkg:null==Z?void 0:Z.pkg,status:0,msg:"Plugin installed successfully (web)"})}}},gt=!0}}}(),function(){var e,t=null===(e=n.g.Hippy)||void 0===e?void 0:e.bridge;if(t&&t.callNativeWithPromise){var r=t.callNativeWithPromise.bind(t);t.callNativeWithPromise=function(e,t){for(var i=arguments.length,o=new Array(i>2?i-2:0),a=2;a<i;a++)o[a-2]=arguments[a];if("ESIJKAudioPlayerModule"===e){var s,u=null===(s=n.g.__WEB_MODULES__)||void 0===s?void 0:s.ESIJKAudioPlayerModule;if(u&&"function"==typeof u[t]){var l=u[t].apply(u,[-1].concat(o));return l instanceof Promise?l:Promise.resolve(l)}}if("RuntimeDeviceModule"===e&&$&&"function"==typeof $[t]){var c=$[t].apply($,o);return c instanceof Promise?c:Promise.resolve(c)}if("AndroidDeviceModule"===e&&N&&"function"==typeof N[t]){var d=N[t].apply(N,o);return d instanceof Promise?d:Promise.resolve(d)}if("AndroidNetworkModule"===e&&U&&"function"==typeof U[t]){var h=U[t].apply(U,o);return h instanceof Promise?h:Promise.resolve(h)}if("ESSoundPoolAudioPlayerModule"===e||"ESSoundPoolPlayerModule"===e){var f,p=null===(f=n.g.__WEB_MODULES__)||void 0===f?void 0:f.ESSoundPoolAudioPlayerModule;if(p&&"function"==typeof p[t]){var y=p[t].apply(p,o);return y instanceof Promise?y:Promise.resolve(y)}}if("AndroidFileModule"===e){var m,g,_=v(),b=(null==_||null===(m=_.modules)||void 0===m?void 0:m.AndroidFileModule)||(null===(g=n.g.__WEB_MODULES__)||void 0===g?void 0:g.AndroidFileModule);if(b&&"function"==typeof b[t]){var w=b[t].apply(b,o);return w instanceof Promise?w:Promise.resolve(w)}}return r.apply(void 0,[e,t].concat(o))}}}(),r=n.g.Hippy.document.callUIFunction.bind(n.g.Hippy.document),i=function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:10,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:50,s=_(e);if(s&&"function"==typeof s[t])try{var u=s[t](n);return r&&"function"==typeof r&&r(u),u}catch(e){}else o>0&&setTimeout(function(){i(e,t,n,r,o-1,a)},a)},n.g.Hippy.document.callUIFunction=function(e,t,n,o){var a,s,u,l;Array.isArray(e)&&"function"==typeof t?(a=e[0],s=e[1],u=e[2],l=t):(a=e,s=t,u=n,l=o);var c=_(a);if(c&&"function"==typeof c[s])try{var d=c[s](u);return l&&"function"==typeof l&&l(d),d}catch(e){}else if(!c)return void i(a,s,u,l);return r(a,s,u,l)},bt(),wt(),function(e){var t,n,r=null===(t=e.context)||void 0===t||null===(n=t.getModuleByName)||void 0===n?void 0:n.call(t,"HippyWeb");if(r&&r.setElementStyle&&!r._setElementStylePatched){var i=r.setElementStyle.bind(r);r.setElementStyle=function(e,t){var n=(0,dt.Zd)(Ct(e,t));i(e,n)},r._setElementStylePatched=!0}}(e),Tt(),Lt||(Lt=new MutationObserver(function(){return Tt()})).observe(document.head,{childList:!0,subtree:!0}),!Ot(e)){var o=function(){Ot(e)||requestAnimationFrame(o)};requestAnimationFrame(o)}}(sc);var uc=new $t;n.g.__TV_FOCUS_MANAGER__=uc;var lc=document.createElement("style");lc.id="web-runtime-css",lc.textContent='\n #app, #app * { align-items: flex-start; }\n [style*="align-items"] { align-items: var(--align-items, center) !important; }\n',document.head.appendChild(lc);var cc=new URLSearchParams(window.location.search);function dc(e){return hc.apply(this,arguments)}function hc(){return(hc=l(d().mark(function e(t){var n,r,i;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=1,fetch(t);case 1:if((n=e.sent).ok){e.next=2;break}return e.abrupt("return",!1);case 2:return e.next=3,n.text();case 3:return r=e.sent,r=Dl()+r,(i=document.createElement("script")).textContent=r,document.body.appendChild(i),e.abrupt("return",!0);case 4:return e.prev=4,e.catch(0),e.abrupt("return",!1);case 5:case"end":return e.stop()}},e,null,[[0,4]])}))).apply(this,arguments)}function fc(e){return pc.apply(this,arguments)}function pc(){return(pc=l(d().mark(function e(t){return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise(function(e,r){var i=document.createElement("script");i.src=t,i.onload=function(){setTimeout(function(){var t;null!==(t=n.g.__GLOBAL__)&&void 0!==t&&t.jsModuleList&&Object.keys(n.g.__GLOBAL__.jsModuleList).forEach(function(e){}),e()},100)},i.onerror=function(e){r(e)},document.body.appendChild(i)}));case 1:case"end":return e.stop()}},e)}))).apply(this,arguments)}function vc(e){return yc.apply(this,arguments)}function yc(){return yc=l(d().mark(function e(t){var r,i,o,a,s,u,l,c;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=1,Rl(t),o=!1,!t.endsWith("index.android.js")){e.next=3;break}return a=t.replace("index.android.js","vendor.android.js"),e.next=2,dc(a);case 2:o=e.sent,e.next=4;break;case 3:t.endsWith("index.bundle");case 4:return o||(s=Dl(),(u=document.createElement("script")).textContent=s,document.body.appendChild(u)),e.next=5,fc(t);case 5:if(l=null===(r=n.g.__GLOBAL__)||void 0===r||null===(r=r.jsModuleList)||void 0===r?void 0:r.EventDispatcher,0!==(c=Object.keys((null===(i=n.g.__GLOBAL__)||void 0===i?void 0:i.appRegister)||{})).length){e.next=6;break}return e.abrupt("return");case 6:c.includes(A)?A:c[0],fl(sc),l&&(n.g.__GLOBAL__=n.g.__GLOBAL__||{},n.g.__GLOBAL__.jsModuleList=n.g.__GLOBAL__.jsModuleList||{},n.g.__GLOBAL__.jsModuleList.EventDispatcher=l),e.next=8;break;case 7:e.prev=7,e.catch(1);case 8:case"end":return e.stop()}},e,null,[[1,7]])})),yc.apply(this,arguments)}function mc(){return gc.apply(this,arguments)}function gc(){return(gc=l(d().mark(function e(){var t,r,i,o,a,s,u,l,c,h,f,p;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,i=kl.entryFile){e.next=1;break}throw new Error("No entry file in ZIP cache");case 1:if((o=document.getElementById("bundle-info"))&&(o.textContent="Loading: "+kl.zipName),a=i.substring(0,i.lastIndexOf("/")),s=a?"".concat(a,"/vendor.android.js"):"vendor.android.js",!kl.has(s)){e.next=3;break}return e.next=2,Pl(s);case 2:e.next=4;break;case 3:if(u=kl.list(),!(l=u.find(function(e){return e.endsWith("vendor.android.js")}))){e.next=4;break}return e.next=4,Pl(l);case 4:return e.next=5,Pl(i);case 5:return e.next=6,new Promise(function(e){return setTimeout(e,100)});case 6:if(c=null===(t=n.g.__GLOBAL__)||void 0===t||null===(t=t.jsModuleList)||void 0===t?void 0:t.EventDispatcher,0!==(h=Object.keys((null===(r=n.g.__GLOBAL__)||void 0===r?void 0:r.appRegister)||{})).length){e.next=7;break}return e.abrupt("return");case 7:h.includes(A)?A:h[0],fl(sc),c&&(n.g.__GLOBAL__=n.g.__GLOBAL__||{},n.g.__GLOBAL__.jsModuleList=n.g.__GLOBAL__.jsModuleList||{},n.g.__GLOBAL__.jsModuleList.EventDispatcher=c),o&&(o.textContent="Running: "+kl.zipName),e.next=9;break;case 8:e.prev=8,p=e.catch(0),(f=document.getElementById("bundle-info"))&&(f.textContent="Error: "+p.message);case 9:case"end":return e.stop()}},e,null,[[0,8]])}))).apply(this,arguments)}n.g.__GLOBAL__=n.g.__GLOBAL__||{},n.g.__GLOBAL__.appRegister=new Proxy({},{set:(e,t,n)=>(e[t]=n,!0),get:(e,t)=>e[t]}),window.addEventListener("zip-file-selected",function(){var e=l(d().mark(function e(t){var n,r,i;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.detail.file,r=document.getElementById("bundle-info"),e.prev=1,r&&(r.textContent="Extracting "+n.name+"..."),e.next=2,xl(n);case 2:e.next=4;break;case 3:e.prev=3,i=e.catch(1),r&&(r.textContent="Error: "+i.message);case 4:case"end":return e.stop()}},e,null,[[1,3]])}));return function(t){return e.apply(this,arguments)}}()),window.addEventListener("directory-dropped",function(){var e=l(d().mark(function e(t){var n,r,i,o,a,s,u;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.detail,r=n.files,i=n.entryFile,o=n.name,a=document.getElementById("bundle-info"),e.prev=1,a&&(a.textContent="正在保存 "+Object.keys(r).length+" 个文件..."),e.next=2,yl(r,i,o);case 2:return e.next=3,gl();case 3:e.sent,a&&(a.textContent="保存完成,正在加载..."),(s=new URL(window.location.href)).searchParams.set("zip","1"),s.searchParams.delete("bundle"),window.location.href=s.toString(),e.next=5;break;case 4:e.prev=4,u=e.catch(1),a&&(a.textContent="Error: "+u.message);case 5:case"end":return e.stop()}},e,null,[[1,4]])}));return function(t){return e.apply(this,arguments)}}());var _c="1"===cc.get("zip"),bc=cc.get("bundle"),wc=cc.get("zipUrl");function kc(){return(kc=l(d().mark(function e(){var t,n,r,i,o;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t=document.getElementById("bundle-info"),!_c){e.next=5;break}return e.next=1,gl();case 1:if(!(n=e.sent)){e.next=3;break}return kl.loadFromData(n),e.next=2,mc();case 2:e.next=4;break;case 3:t&&(t.textContent="No ZIP cache found. Please upload a ZIP file."),(r=new URL(window.location.href)).searchParams.delete("zip"),window.location.replace(r.toString());case 4:e.next=17;break;case 5:if(!wc){e.next=12;break}return e.next=6,bl();case 6:return i=cc.has("_force"),window.__LOADING_OVERLAY__&&(window.__LOADING_OVERLAY__.show(),window.__LOADING_OVERLAY__.update(0,"准备下载...")),e.prev=7,e.next=8,Tl(wc,function(e,n){t&&(t.textContent=n),window.__LOADING_OVERLAY__&&window.__LOADING_OVERLAY__.update(e,n)},i);case 8:return window.__LOADING_OVERLAY__&&window.__LOADING_OVERLAY__.update(100,"加载完成"),e.next=9,mc();case 9:window.__LOADING_OVERLAY__&&window.__LOADING_OVERLAY__.hide(),e.next=11;break;case 10:e.prev=10,o=e.catch(7),t&&(t.textContent="下载失败: "+o.message),window.__LOADING_OVERLAY__&&window.__LOADING_OVERLAY__.hide();case 11:e.next=17;break;case 12:if(!bc){e.next=15;break}return e.next=13,bl();case 13:return e.next=14,vc(bc);case 14:e.next=17;break;case 15:return e.next=16,bl();case 16:t&&(t.textContent="请上传 ZIP 包开始预览");case 17:case"end":return e.stop()}},e,null,[[7,10]])}))).apply(this,arguments)}!function(){kc.apply(this,arguments)}()},79(e){e.exports=function(e,t){this.v=e,this.k=t},e.exports.__esModule=!0,e.exports.default=e.exports},794(e,t,n){var r=n(313);function i(){var t,n,o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.toStringTag||"@@toStringTag";function u(e,i,o,a){var s=i&&i.prototype instanceof c?i:c,u=Object.create(s.prototype);return r(u,"_invoke",function(e,r,i){var o,a,s,u=0,c=i||[],d=!1,h={p:0,n:0,v:t,a:f,f:f.bind(t,4),d:function(e,n){return o=e,a=0,s=t,h.n=n,l}};function f(e,r){for(a=e,s=r,n=0;!d&&u&&!i&&n<c.length;n++){var i,o=c[n],f=h.p,p=o[2];e>3?(i=p===r)&&(s=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=t):o[0]<=f&&((i=e<2&&f<o[1])?(a=0,h.v=r,h.n=o[1]):f<p&&(i=e<3||o[0]>r||r>p)&&(o[4]=e,o[5]=r,h.n=p,a=0))}if(i||e>1)return l;throw d=!0,r}return function(i,c,p){if(u>1)throw TypeError("Generator is already running");for(d&&1===c&&f(c,p),a=c,s=p;(n=a<2?t:s)||!d;){o||(a?a<3?(a>1&&(h.n=-1),f(a,s)):h.n=s:h.v=s);try{if(u=2,o){if(a||(i="next"),n=o[i]){if(!(n=n.call(o,s)))throw TypeError("iterator result is not an object");if(!n.done)return n;s=n.value,a<2&&(a=0)}else 1===a&&(n=o.return)&&n.call(o),a<2&&(s=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=t}else if((n=(d=h.n<0)?s:e.call(r,h))!==l)break}catch(e){o=t,a=1,s=e}finally{u=1}}return{value:n,done:d}}}(e,o,a),!0),u}var l={};function c(){}function d(){}function h(){}n=Object.getPrototypeOf;var f=[][a]?n(n([][a]())):(r(n={},a,function(){return this}),n),p=h.prototype=c.prototype=Object.create(f);function v(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,r(e,s,"GeneratorFunction")),e.prototype=Object.create(p),e}return d.prototype=h,r(p,"constructor",h),r(h,"constructor",d),d.displayName="GeneratorFunction",r(h,s,"GeneratorFunction"),r(p),r(p,s,"Generator"),r(p,a,function(){return this}),r(p,"toString",function(){return"[object Generator]"}),(e.exports=i=function(){return{w:u,m:v}},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports},408(e,t,n){var r=n(404);e.exports=function(e,t,n,i,o){var a=r(e,t,n,i,o);return a.next().then(function(e){return e.done?e.value:a.next()})},e.exports.__esModule=!0,e.exports.default=e.exports},404(e,t,n){var r=n(794),i=n(666);e.exports=function(e,t,n,o,a){return new i(r().w(e,t,n,o),a||Promise)},e.exports.__esModule=!0,e.exports.default=e.exports},666(e,t,n){var r=n(79),i=n(313);e.exports=function e(t,n){function o(e,i,a,s){try{var u=t[e](i),l=u.value;return l instanceof r?n.resolve(l.v).then(function(e){o("next",e,a,s)},function(e){o("throw",e,a,s)}):n.resolve(l).then(function(e){u.value=e,a(u)},function(e){return o("throw",e,a,s)})}catch(e){s(e)}}var a;this.next||(i(e.prototype),i(e.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),i(this,"_invoke",function(e,t,r){function i(){return new n(function(t,n){o(e,r,t,n)})}return a=a?a.then(i,i):i()},!0)},e.exports.__esModule=!0,e.exports.default=e.exports},313(e){function t(n,r,i,o){var a=Object.defineProperty;try{a({},"",{})}catch(n){a=0}e.exports=t=function(e,n,r,i){function o(n,r){t(e,n,function(e){return this._invoke(n,r,e)})}n?a?a(e,n,{value:r,enumerable:!i,configurable:!i,writable:!i}):e[n]=r:(o("next",0),o("throw",1),o("return",2))},e.exports.__esModule=!0,e.exports.default=e.exports,t(n,r,i,o)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},394(e){e.exports=function(e){var t=Object(e),n=[];for(var r in t)n.unshift(r);return function e(){for(;n.length;)if((r=n.pop())in t)return e.value=r,e.done=!1,e;return e.done=!0,e}},e.exports.__esModule=!0,e.exports.default=e.exports},740(e,t,n){var r=n(79),i=n(794),o=n(408),a=n(404),s=n(666),u=n(394),l=n(36);function c(){"use strict";var t=i(),n=t.m(c),d=(Object.getPrototypeOf?Object.getPrototypeOf(n):n.__proto__).constructor;function h(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))}var f={throw:1,return:2,break:3,continue:3};function p(e){var t,n;return function(r){t||(t={stop:function(){return n(r.a,2)},catch:function(){return r.v},abrupt:function(e,t){return n(r.a,f[e],t)},delegateYield:function(e,i,o){return t.resultName=i,n(r.d,l(e),o)},finish:function(e){return n(r.f,e)}},n=function(e,n,i){r.p=t.prev,r.n=t.next;try{return e(n,i)}finally{t.next=r.n}}),t.resultName&&(t[t.resultName]=r.v,t.resultName=void 0),t.sent=r.v,t.next=r.n;try{return e.call(this,t)}finally{r.p=t.prev,r.n=t.next}}}return(e.exports=c=function(){return{wrap:function(e,n,r,i){return t.w(p(e),n,r,i&&i.reverse())},isGeneratorFunction:h,mark:t.m,awrap:function(e,t){return new r(e,t)},AsyncIterator:s,async:function(e,t,n,r,i){return(h(t)?a:o)(p(e),t,n,r,i)},keys:u,values:l}},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=c,e.exports.__esModule=!0,e.exports.default=e.exports},36(e,t,n){var r=n(611).default;e.exports=function(e){if(null!=e){var t=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],n=0;if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}throw new TypeError(r(e)+" is not iterable")},e.exports.__esModule=!0,e.exports.default=e.exports},611(e){function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},715(e,t,n){var r=n(740)();e.exports=r;try{regeneratorRuntime=r}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},298(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(517);function i(e,t,n){return(t=(0,r.A)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},517(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(553);function i(e){var t=function(e,t){if("object"!=(0,r.A)(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=(0,r.A)(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==(0,r.A)(t)?t:t+""}},553(e,t,n){"use strict";function r(e){return r="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},r(e)}n.d(t,{A:()=>r})},824(e,t,n){"use strict";n.d(t,{Zd:()=>u,pb:()=>o,yf:()=>s});var r=n(298);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){return"string"!=typeof e?e:e.replace(/^hpfile:\/\/\.?\//,"/").replace(/^hpfile:\/\//,"/")}function a(e){if("string"!=typeof e)return e;var t=o(e);if(!t.startsWith("/assets/"))return t;var n=window.__VIRTUAL_FS__;if(!n||"function"!=typeof n.get)return t;var r=window.__WEB_VFS_BLOB_URL_CACHE__=window.__WEB_VFS_BLOB_URL_CACHE__||new Map;if(r.has(t))return r.get(t);var i=n.get(t);if(!i)return t;var a,s=URL.createObjectURL(new Blob([i],{type:(a=t,{png:"image/png",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",webp:"image/webp",svg:"image/svg+xml"}[String(a).split(".").pop().toLowerCase()]||"application/octet-stream")}));return r.set(t,s),s}function s(e,t){if("string"!=typeof t)return t;var n=String(e).toLowerCase();if("backgroundimage"!==n&&"background-image"!==n&&"background"!==n)return t;var r=t.trim();if(!r)return t;if(/url\(/i.test(r))return function(e){return e.replace(/url\(\s*(['"]?)([^'")\s]+)\1\s*\)/gi,function(e,t,n){var r=a(n);return r===n?e:"url(".concat(r,")")})}(r);var i=a(r);return i!==r?"url(".concat(i,")"):t}function u(e){if(!e||"object"!=typeof e)return e;var t=e;return["backgroundImage","background","background-image"].forEach(function(n){if(Object.prototype.hasOwnProperty.call(e,n)){var o=s(n,e[n]);o!==e[n]&&(t===e&&(t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach(function(t){(0,r.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},e)),t[n]=o)}}),t}},814(e,t,n){"use strict";n.d(t,{Hd:()=>u,bindTemplateDataToNode:()=>_,u6:()=>g,vy:()=>l});var r=n(298),i=n(824);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach(function(t){(0,r.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function s(e,t){return e.split(".").reduce(function(e,t){return e&&void 0!==e[t]?e[t]:void 0},t)}function u(e,t){if(!e||!t)return e;var n=String(e).match(/^\$\{([^}]+)\}$/);return n?s(n[1],t):e}function l(e,t){return e&&t?String(e).replace(/\$\{([^}]+)\}/g,function(e,n){var r=s(n,t);return void 0!==r?String(r):e}):e}function c(e,t){if(t&&"object"==typeof t){var n=["flexDirection","justifyContent","alignItems","alignContent","flexWrap","flexGrow","flexShrink","flexBasis","order","alignSelf"];Object.keys(t).some(function(e){return n.includes(e)})&&!Object.keys(t).includes("display")&&(e.style.display="flex"),Object.keys(t).forEach(function(n){var r=t[n];("backgroundImage"!==n&&"background"!==n||(r=(0,i.yf)(n,r)),"number"==typeof r)&&(["width","height","minWidth","minHeight","maxWidth","maxHeight","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","margin","marginTop","marginRight","marginBottom","marginLeft","top","left","right","bottom","borderRadius","borderWidth","fontSize","lineHeight","letterSpacing","gap","rowGap","columnGap"].includes(n)&&(r+="px"));try{"x"!==n&&"y"!==n&&(e.style[n]=r)}catch(t){try{if("x"!==n&&"y"!==n){var o=n.replace(/([A-Z])/g,"-$1").toLowerCase();e.style.setProperty(o,r)}}catch(e){}}})}}function d(e,t){if(t){if(Array.isArray(t)){var n=t[0],r=t[1],i=t[2],o=t[3],a=e.style.position||"",s=""===a||"absolute"===a||"fixed"===a||"relative"===a;return s&&null!=n&&(e.style.left="number"==typeof n?"".concat(n,"px"):n),s&&null!=r&&(e.style.top="number"==typeof r?"".concat(r,"px"):r),null!=i&&(e.style.width="number"==typeof i?"".concat(i,"px"):i),null!=o&&(e.style.height="number"==typeof o?"".concat(o,"px"):o),void(!s||void 0===n&&void 0===r||e.style.position&&"relative"!==e.style.position||(e.style.position="absolute"))}if("object"==typeof t){var u=t.x,l=t.y,c=t.width,d=t.height,h=e.style.position||"",f=""===h||"absolute"===h||"fixed"===h||"relative"===h;f&&null!=u&&(e.style.left="number"==typeof u?"".concat(u,"px"):u),f&&null!=l&&(e.style.top="number"==typeof l?"".concat(l,"px"):l),null!=c&&(e.style.width="number"==typeof c?"".concat(c,"px"):c),null!=d&&(e.style.height="number"==typeof d?"".concat(d,"px"):d),!f||void 0===u&&void 0===l||e.style.position&&"relative"!==e.style.position||(e.style.position="absolute")}}}function h(e,t){if(t&&"object"==typeof t){var n=t.left,r=t.top,i=t.right,o=t.bottom;null!=n&&(e.style.marginLeft="number"==typeof n?"".concat(n,"px"):n),null!=r&&(e.style.marginTop="number"==typeof r?"".concat(r,"px"):r),null!=i&&(e.style.marginRight="number"==typeof i?"".concat(i,"px"):i),null!=o&&(e.style.marginBottom="number"==typeof o?"".concat(o,"px"):o)}}function f(e,t){if(t){if(Array.isArray(t)){var n=t[0],r=t[1];return null!=n&&(e.style.width="number"==typeof n?"".concat(n,"px"):n),void(null!=r&&(e.style.height="number"==typeof r?"".concat(r,"px"):r))}if("object"==typeof t){var i=t.width,o=t.height;null!=i&&(e.style.width="number"==typeof i?"".concat(i,"px"):i),null!=o&&(e.style.height="number"==typeof o?"".concat(o,"px"):o)}}}function p(e){var t=window.__HIPPY_COMPONENT_REGISTRY__;return t&&t.get(e)||null}function v(e,t){var n=String(e).match(/^\$\{([^}]+)\}$/);return n?{isPure:!0,value:s(n[1],t)}:{isPure:!1,value:l(e,t)}}function y(e){if(!e||e.nodeType!==Node.ELEMENT_NODE)return null;var t=e.children;if(!t||0===t.length)return null;for(var n=0,r=Array.from(t);n<r.length;n++){var i=r[n];if(i.classList&&i.classList.contains("qt-text-inner"))return i}return null}function m(e){if(e&&e.nodeType===Node.ELEMENT_NODE&&(!e.hasAttribute||e.hasAttribute("autoWidth")||e.hasAttribute("autowidth"))){var t=y(e);if(t){var n=t.scrollWidth||t.offsetWidth;if(!(n<=0)){e.style.width=n+"px",e.style.minWidth=n+"px";for(var r=e.parentElement;r;){if(r.hasAttribute&&(r.hasAttribute("autoWidth")||r.hasAttribute("autowidth"))){var i=window.getComputedStyle(r),o=n+(parseInt(i.paddingLeft)||0)+(parseInt(i.paddingRight)||0);r.style.width=o+"px",r.style.minWidth=o+"px",r.querySelectorAll("[autoWidth], [autowidth]").forEach(function(t){t!==e&&(y(t)||"absolute"===window.getComputedStyle(t).position&&(t.style.left="0",t.style.right="0",t.style.width="auto"))});break}r=r.parentElement}}}}}function g(e){e&&e.nodeType===Node.ELEMENT_NODE&&e.querySelector&&e.querySelectorAll("[autoWidth], [autowidth]").forEach(function(e){y(e)&&m(e)})}function _(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t){var i=a(a({},r.scope||{}),t);if(e.nodeType!==Node.TEXT_NODE){if(e.nodeType===Node.ELEMENT_NODE){for(var o=0,y=Array.from(e.childNodes);o<y.length;o++){var g=y[o];g.nodeType===Node.TEXT_NODE&&g.textContent&&g.textContent.includes("${")&&_(g,i,r)}var b=p(e),w=!0,k=null!==(n=e.getAttribute("data-template-type"))&&void 0!==n?n:e.getAttribute("type");if(null!=k&&""!==k){var E=String(k);if(E.includes("${")&&(E=String(l(E,i))),E!==(void 0!==i.type&&null!==i.type?String(i.type):null))return e.style.display="none",void e.setAttribute("data-type-match","false");"none"===e.style.display&&"false"===e.getAttribute("data-type-match")&&e.style.removeProperty("display"),e.setAttribute("data-type-match","true")}Array.from(e.attributes).map(function(e){return"".concat(e.name,'="').concat(e.value,'"')}).join(", ");var S=e.getAttribute("showIf")||e.getAttribute("showif");S&&(e.setAttribute("data-showif-expr",S),e.removeAttribute("showIf"),e.removeAttribute("showif"));var A=e.getAttribute("data-showif-expr");if(A){var x=function(e,t){if(!e)return!0;var n=e.match(/^\$\{([^}]+)\}$/);if(!n)return!!e;var r=n[1].trim();if(r.includes("==")){var i=r.split("==").map(function(e){return e.trim()});if(2===i.length){var o=s(i[0],t),a=i[1].trim();if("true"===a)return!0===o;if("false"===a)return!1===o}}return!!s(r,t)}(A,i),C=!1===x?"false":"true";if(e.getAttribute("data-showif-result")!==C){if(e.setAttribute("data-showif-result",C),!1===x)return e.style.display="none",void(b&&"function"==typeof b.setVisible&&b.setVisible(!1));"none"===e.style.display&&e.style.removeProperty("display"),b&&"function"==typeof b.setVisible&&b.setVisible(!0)}else if(!1===x)return}for(var T=0,L=Array.from(e.attributes);T<L.length;T++){var O=L[T],P=O.value;if(P&&"string"==typeof P&&P.includes("${")){var I=O.name.toLowerCase(),N=v(P,i);if("list"!==I&&"listdata"!==I)if("flexstyle"!==I)if("layout"!==I)if("decoration"!==I)if("size"!==I)if("textsize"!==I&&"fontsize"!==I){var R=N.isPure?void 0!==N.value?String(N.value):P:N.value;b&&("text"===I&&"function"==typeof b.setText?b.setText(R):"function"==typeof b.updateProperty&&b.updateProperty(O.name,R)),e.setAttribute(O.name,R)}else{var D=N.isPure?N.value:u(P,i);if(void 0!==D){if(b&&"function"==typeof b.updateProperty)b.updateProperty(O.name,D);else{var M="number"==typeof D?D+"px":D;e.style.fontSize=M}e.removeAttribute(O.name)}}else{var F=N.isPure?N.value:u(P,i);null!=F&&(b&&"function"==typeof b.updateProperty?b.updateProperty(O.name,F):f(e,F),e.removeAttribute(O.name))}else{var B=N.isPure?N.value:u(P,i);B&&"object"==typeof B&&(b&&"function"==typeof b.updateProperty?b.updateProperty(O.name,B):h(e,B),e.removeAttribute(O.name))}else{var j=N.isPure?N.value:u(P,i);null!=j&&(b&&"function"==typeof b.updateProperty?b.updateProperty(O.name,j):d(e,j),e.removeAttribute(O.name))}else{var V=N.isPure?N.value:u(P,i);V&&"object"==typeof V&&(b&&"function"==typeof b.updateProperty?b.updateProperty(O.name,V):c(e,V),e.removeAttribute(O.name))}else{var W=N.isPure?N.value:u(P,i);Array.isArray(W)?("function"==typeof r.onListData&&r.onListData(e,W,O.name),w=!1,e.removeAttribute(O.name)):(b&&"function"==typeof b.updateProperty&&b.updateProperty(O.name,W),void 0===W?e.setAttribute(O.name,P):e.setAttribute(O.name,String(W)))}}}if(e.style&&e.style.cssText&&e.style.cssText.includes("${")&&(e.style.cssText=l(e.style.cssText,i),m(e)),"IMG"===e.tagName&&e.getAttribute("src")){var H=e.getAttribute("src"),U=function(e){if(!e||"string"!=typeof e)return e;if(e.startsWith("file://")){var t=e.slice(7);return(t=t.replace(/^\/+/,"")).startsWith("./")&&(t=t.slice(2)),"./"+t}return e.startsWith("assets/")?"./"+e:e}(H.includes("${")?l(H,i):H);U!==H&&(b&&"function"==typeof b.updateProperty&&b.updateProperty("src",U),e.setAttribute("src",U),e.src=U)}w&&Array.from(e.childNodes).forEach(function(e){_(e,i,r)})}}else{var G=e.textContent;if(G&&G.includes("${")){var z=l(G,i);if(z!==G){var Y=e.parentElement,q=Y&&Y.classList&&Y.classList.contains("qt-text-inner")?function(e){for(var t=e&&e.nodeType===Node.TEXT_NODE?e.parentElement:e;t;){var n=p(t);if(n)return n;t=t.parentElement}return null}(e):null;q&&"function"==typeof q.setText?q.setText(z):(e.textContent=z,Y&&Y.classList&&Y.classList.contains("qt-text-inner")&&m(Y.parentElement))}}}}}}},o={};function a(e){var t=o[e];if(void 0!==t)return t.exports;var n=o[e]={exports:{}},r=!0;try{i[e](n,n.exports,a),r=!1}finally{r&&delete o[e]}return n.exports}a.m=i,a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,a.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"==typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"==typeof n.then)return n}var i=Object.create(null);a.r(i);var o={};e=e||[null,t({}),t([]),t(t)];for(var s=2&r&&n;("object"==typeof s||"function"==typeof s)&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach(e=>o[e]=()=>n[e]);return o.default=()=>n,a.d(i,o),i},a.d=(e,t)=>{for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.f={},a.e=e=>Promise.all(Object.keys(a.f).reduce((t,n)=>(a.f[n](e,t),t),[])),a.u=e=>"web-runtime.ccab04df97ffd41b3a94.js",a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n={},r="@quicktvui/web-runtime:",a.l=(e,t,i,o)=>{if(n[e])n[e].push(t);else{var s,u;if(void 0!==i)for(var l=document.getElementsByTagName("script"),c=0;c<l.length;c++){var d=l[c];if(d.getAttribute("src")==e||d.getAttribute("data-webpack")==r+i){s=d;break}}s||(u=!0,(s=document.createElement("script")).charset="utf-8",a.nc&&s.setAttribute("nonce",a.nc),s.setAttribute("data-webpack",r+i),s.src=e),n[e]=[t];var h=(t,r)=>{s.onerror=s.onload=null,clearTimeout(f);var i=n[e];if(delete n[e],s.parentNode&&s.parentNode.removeChild(s),i&&i.forEach(e=>e(r)),t)return t(r)},f=setTimeout(h.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=h.bind(null,s.onerror),s.onload=h.bind(null,s.onload),u&&document.head.appendChild(s)}},a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;a.g.importScripts&&(e=a.g.location+"");var t=a.g.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");if(n.length)for(var r=n.length-1;r>-1&&(!e||!/^http(s?):/.test(e));)e=n[r--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),a.p=e})(),(()=>{var e={57:0};a.f.j=(t,n)=>{var r=a.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var i=new Promise((n,i)=>r=e[t]=[n,i]);n.push(r[2]=i);var o=a.p+a.u(t),s=new Error;a.l(o,n=>{if(a.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var i=n&&("load"===n.type?"missing":n.type),o=n&&n.target&&n.target.src;s.message="Loading chunk "+t+" failed.\n("+i+": "+o+")",s.name="ChunkLoadError",s.type=i,s.request=o,r[1](s)}},"chunk-"+t,t)}};var t=(t,n)=>{var r,i,[o,s,u]=n,l=0;if(o.some(t=>0!==e[t])){for(r in s)a.o(s,r)&&(a.m[r]=s[r]);if(u)u(a)}for(t&&t(n);l<o.length;l++)i=o[l],a.o(e,i)&&e[i]&&e[i][0](),e[i]=0},n=(0,eval)("this").webpackChunk_quicktvui_web_runtime=(0,eval)("this").webpackChunk_quicktvui_web_runtime||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),a(11);a(515)})();
|