@quicktvui/web-cli 2.3.0 → 2.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2 +1,2 @@
1
- /*! For license information please see web-runtime.e75f36ecfdb17578e1f8.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,E=w&&w(w(P([])));E&&E!==n&&r.call(E,a)&&(b=E);var k=_.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 L(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 T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function O(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(L,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(k,"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(k),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(k),l(k,u,"Generator"),l(k,a,function(){return this}),l(k,"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(T),!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),T(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;T(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)}},371(e,t,n){"use strict";n.r(t),n.d(t,{findComponentById:()=>h,findComponentBySid:()=>d,getWebEngine:()=>s,registerComponent:()=>u,registerComponentBySid:()=>l,setWebEngine:()=>a,unregisterComponentBySid:()=>c});var r=null,i=new Map,o=new Map;function a(e){r=e}function s(){return r}function u(e,t){i.set(e,t)}function l(e,t){e&&"string"==typeof e&&o.set(e,t)}function c(e){o.has(e)&&o.delete(e)}function d(e){return o.has(e)?o.get(e):null}function h(e){if("string"==typeof e)return d(e);if(i.has(e))return i.get(e);if(!r)return null;try{var t,n,o=null===(t=r.context)||void 0===t||null===(n=t.getModuleByName)||void 0===n?void 0:n.call(t,"UIManagerModule");if(o&&o.findViewById){var a=o.findViewById(e);if(a)return a}}catch(e){}return null}},474(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}},128(e,t,n){"use strict";n.d(t,{Hd:()=>u,bindTemplateDataToNode:()=>_,u6:()=>g,vy:()=>l});var r=n(298),i=n(474);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,E=null!==(n=e.getAttribute("data-template-type"))&&void 0!==n?n:e.getAttribute("type");if(null!=E&&""!==E){var k=String(E);if(k.includes("${")&&(k=String(l(k,i))),k!==(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 L=0,T=Array.from(e.attributes);L<T.length;L++){var O=T[L],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 z=e.textContent;if(z&&z.includes("${")){var G=l(z,i);if(G!==z){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(G):(e.textContent=G,Y&&Y.classList&&Y.classList.contains("qt-text-inner")&&m(Y.parentElement))}}}}}},932(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);var h=n(298);function f(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function p(e){return function(e){if(Array.isArray(e))return i(e)}(e)||f(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 v=n(371),y=1920,m=1080,g="EsApp";function _(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var b=n(517);function w(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,b.A)(r.key),r)}}function E(e,t,n){return t&&w(e.prototype,t),n&&w(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var k=function(){return E(function e(){_(this,e),this.name="AndroidDeviceModule"},[{key:"getAndroidDevice",value:(k=l(d().mark(function e(){var t,n,r,i,o,a,s,u,l,c,h,f,p;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=this._getScreenInfo(),n=this._generateDeviceId(),e.next=1,this._getLocalIP();case 1:return r=e.sent,i=this._generateMAC(),o=this._estimateTotalMemory(),a=this._estimateAvailMemory(),s=t.width,u=t.height,l="".concat(t.width,"x").concat(t.height),c=t.density,h=t.densityDpi,f=t.scaledDensity,p=this._getBrowserInfo(),e.abrupt("return",{cid:n,device_name:"Web Browser",device_ip:r,eth_mac:"",wifi_mac:i,total_memory:o,avail_memory:a,screen_width:s,screen_height:u,resolution:l,density:c,density_dpi:h,scaled_density:f,build_version_release:"Web",build_model:p,build_brand:"Web",build_device:"Browser",build_board:"Web",build_product:"quicktvui-web",build_hardware:"Web",build_manufacturer:"quicktvui"});case 2:case"end":return e.stop()}},e,this)})),function(){return k.apply(this,arguments)})},{key:"getEthMac",value:(w=l(d().mark(function e(){return d().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 w.apply(this,arguments)})},{key:"getWifiMac",value:(b=l(d().mark(function e(){return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this._generateMAC());case 1:case"end":return e.stop()}},e,this)})),function(){return b.apply(this,arguments)})},{key:"getTotalMemory",value:(g=l(d().mark(function e(){return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this._estimateTotalMemory());case 1:case"end":return e.stop()}},e,this)})),function(){return g.apply(this,arguments)})},{key:"getAvailableMemory",value:(m=l(d().mark(function e(){return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this._estimateAvailMemory());case 1:case"end":return e.stop()}},e,this)})),function(){return m.apply(this,arguments)})},{key:"getScreenWidth",value:(y=l(d().mark(function e(){return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this._getScreenInfo().width);case 1:case"end":return e.stop()}},e,this)})),function(){return y.apply(this,arguments)})},{key:"getScreenHeight",value:(v=l(d().mark(function e(){return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this._getScreenInfo().height);case 1:case"end":return e.stop()}},e,this)})),function(){return v.apply(this,arguments)})},{key:"getResolution",value:(p=l(d().mark(function e(){var t;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=this._getScreenInfo(),e.abrupt("return","".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(d().mark(function e(){return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this._getScreenInfo().density);case 1:case"end":return e.stop()}},e,this)})),function(){return f.apply(this,arguments)})},{key:"getDensityDpi",value:(h=l(d().mark(function e(){return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this._getScreenInfo().densityDpi);case 1:case"end":return e.stop()}},e,this)})),function(){return h.apply(this,arguments)})},{key:"getScaledDensity",value:(c=l(d().mark(function e(){return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this._getScreenInfo().scaledDensity);case 1:case"end":return e.stop()}},e,this)})),function(){return c.apply(this,arguments)})},{key:"getBuildVersionRelease",value:(u=l(d().mark(function e(){return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return","Web");case 1:case"end":return e.stop()}},e)})),function(){return u.apply(this,arguments)})},{key:"getBuildModel",value:(s=l(d().mark(function e(){return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this._getBrowserInfo());case 1:case"end":return e.stop()}},e,this)})),function(){return s.apply(this,arguments)})},{key:"getBuildBrand",value:(a=l(d().mark(function e(){return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return","Web");case 1:case"end":return e.stop()}},e)})),function(){return a.apply(this,arguments)})},{key:"getBuildDevice",value:(o=l(d().mark(function e(){return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return","Browser");case 1:case"end":return e.stop()}},e)})),function(){return o.apply(this,arguments)})},{key:"getBuildBoard",value:(i=l(d().mark(function e(){return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return","Web");case 1:case"end":return e.stop()}},e)})),function(){return i.apply(this,arguments)})},{key:"getBuildProduct",value:(r=l(d().mark(function e(){return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return","quicktvui-web");case 1:case"end":return e.stop()}},e)})),function(){return r.apply(this,arguments)})},{key:"getBuildHardware",value:(n=l(d().mark(function e(){return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return","Web");case 1:case"end":return e.stop()}},e)})),function(){return n.apply(this,arguments)})},{key:"getBuildManufacturer",value:(t=l(d().mark(function e(){return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return","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(d().mark(function e(){return d().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:"_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:"_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,c,h,f,p,v,y,m,g,b,w,k}(),S=new k;function A(e,t){var n=e&&e.length?e[e.length-1]:null;return n&&"function"==typeof n.resolve&&n.resolve(t),t}function x(e){var t=e&&e.length?e[e.length-1]:null;return t&&"function"==typeof t.resolve&&t.resolve(!0),Promise.resolve(!0)}var C=0,L=1,T=9,O=1,P=3;function I(){if("undefined"==typeof navigator||!navigator.connection)return T;var e=navigator.connection,t=e.type||e.effectiveType;return"wifi"===t?L:"cellular"===t||"2g"===t||"3g"===t||"4g"===t?C:"ethernet"===t?T:e.effectiveType&&["4g","3g","2g","slow-2g"].includes(e.effectiveType)?C:T}function N(){return"undefined"==typeof navigator||navigator.onLine}function R(){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 D=function(){return E(function e(t){_(this,e),this.context=t,this.name="",this.mode="normal"},[{key:"getActiveNetworkInfo",value:(n=l(d().mark(function e(){var t,n,r,i,o,a,s,u=arguments;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=N(),n=I(),r=R(),i={type:n,typeName:this._getTypeName(n),subtype:0,state:t?P:O,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",A(a,i));case 1:case"end":return e.stop()}},e,this)})),function(){return n.apply(this,arguments)})},{key:"getWifiInfo",value:(t=l(d().mark(function e(){var t,n,r,i,o,a,s=arguments;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=I(),n=R(),r={ssid:"",strength:t===L?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",A(o,r));case 1:case"end":return e.stop()}},e)})),function(){return t.apply(this,arguments)})},{key:"_getTypeName",value:function(e){switch(e){case L:return"WIFI";case C:return"MOBILE";case T:return"ETHERNET";default:return"UNKNOWN"}}},{key:"destroy",value:function(){}},{key:"init",value:(e=l(d().mark(function e(){var t,n,r,i=arguments;return d().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",x(n));case 1:case"end":return e.stop()}},e)})),function(){return e.apply(this,arguments)})}]);var e,t,n}(),M=new D,F="quicktvui_device_id";function B(){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 j(){return V.apply(this,arguments)}function V(){return(V=l(d().mark(function e(){var t,n;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=1,localStorage.getItem(F);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=B();try{localStorage.setItem(F,n)}catch(e){}return e.abrupt("return",n);case 5:case"end":return e.stop()}},e,null,[[0,3]])}))).apply(this,arguments)}function W(){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 H=function(){return E(function e(t){_(this,e),this.context=t,this.name="",this.mode="normal",this._deviceId=null},[{key:"_getDeviceId",value:(i=l(d().mark(function e(){return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(this._deviceId){e.next=2;break}return e.next=1,j();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(d().mark(function e(){var t,n,r,i,o=arguments;return d().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",A(r,t));case 2:case"end":return e.stop()}},e,this)})),function(){return r.apply(this,arguments)})},{key:"getRuntimeDeviceType",value:(n=l(d().mark(function e(){var t,n,r,i=arguments;return d().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",A(n,"web"));case 1:case"end":return e.stop()}},e)})),function(){return n.apply(this,arguments)})},{key:"getRuntimeDeviceInfo",value:(t=l(d().mark(function e(){var t,n,r,i,o,a,s,u,l,c=arguments;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=W(),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=c.length,u=new Array(s),l=0;l<s;l++)u[l]=c[l];return e.abrupt("return",A(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(d().mark(function e(){var t,n,r,i=arguments;return d().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",x(n));case 1:case"end":return e.stop()}},e)})),function(){return e.apply(this,arguments)})}]);var e,t,n,r,i}(),U=new H;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 G(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,h.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 Y(){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 q(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=Y();if(!n)return!1;try{return n.receiveNativeEvent([e,t]),!0}catch(e){return!1}}function X(){return q("hardwareBackPress",null)}function K(e){return q("DispatchKeyEvent",e)}function $(e){return K(G(G({},e),{},{action:0}))}function Z(e){return K(G(G({},e),{},{action:1}))}function J(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Y();if(!r||"function"!=typeof r.receiveNativeGesture)return!1;if("number"!=typeof e||!t)return!1;try{return r.receiveNativeGesture(G({id:e,name:t},n)),!0}catch(e){return!1}}function Q(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Y();return!(!r||"number"!=typeof e||!t)&&("function"==typeof r.receiveNativeGesture?J(e,t,n):q(t,G({id:e,currentId:e},n)))}function ee(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Y();if(!r||"function"!=typeof r.receiveUIComponentEvent)return!1;if("number"!=typeof e||!t)return!1;try{return r.receiveUIComponentEvent([e,t,n]),!0}catch(e){return!1}}var te=0,ne=1,re=2,ie=3,oe=4,ae=5,se=6,ue=7,le=8,ce=9,de=10,he=11,fe=12,pe=13,ve=26,ye=29,me=new(function(){return E(function e(){_(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=te;e.addEventListener("play",function(){r!==ae&&(r=ae,q("onESAudioPlayerStatusChanged",{playerStatus:ae,playerState:ae}))}),e.addEventListener("playing",function(){r!==ae&&(r=ae,q("onESAudioPlayerStatusChanged",{playerStatus:ae,playerState:ae}))}),e.addEventListener("pause",function(){r=le,q("onESAudioPlayerStatusChanged",{playerStatus:le,playerState:le})}),e.addEventListener("ended",function(){r=fe,n=!0,q("onESAudioPlayerStatusChanged",{playerStatus:fe,playerState:fe})}),e.addEventListener("error",function(e){var t,n;r=pe,q("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=ne,q("onESAudioPlayerStatusChanged",{playerStatus:ne,playerState:ne})}),e.addEventListener("canplay",function(){n||(n=!0,r=re,q("onESAudioPlayerStatusChanged",{playerStatus:re,playerState:re}))}),e.addEventListener("waiting",function(){q("onESAudioPlayerStatusChanged",{playerStatus:ie,playerState:ie})}),e.addEventListener("canplaythrough",function(){q("onESAudioPlayerStatusChanged",{playerStatus:oe,playerState:oe})}),e.addEventListener("durationchange",function(){e.duration&&!isNaN(e.duration)&&q("onESAudioPlayerInfo",{what:1,extra:Math.floor(1e3*e.duration)})}),e.addEventListener("ratechange",function(){q("onESAudioPlayRateChanged",{playRate:e.playbackRate})}),e.addEventListener("seeking",function(){q("onESAudioPlayerStatusChanged",{playerStatus:se,playerState:se})}),e.addEventListener("seeked",function(){q("onESAudioPlayerStatusChanged",{playerStatus:ue,playerState:ue})}),e.addEventListener("volumechange",function(){q("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()}}])}()),ge=function(){return E(function e(t){_(this,e),this.context=t,this.name="",this.mode="normal"},[{key:"init",value:(u=l(d().mark(function e(){var t,n,r,i=arguments;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(q("onESAudioPlayerStatusChanged",{playerStatus:ve,playerState:ve}),q("onESAudioPlayerStatusChanged",{playerStatus:ye,playerState:ye}),t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",x(n));case 1:case"end":return e.stop()}},e)})),function(){return u.apply(this,arguments)})},{key:"initMediaPlayer",value:function(){q("onESAudioPlayerStatusChanged",{playerStatus:ve,playerState:ve}),q("onESAudioPlayerStatusChanged",{playerStatus:ye,playerState:ye});for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return A(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=me.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){q("onESAudioPlayerError",{errorCode:-1,errorMessage:e.message||"Play error"})}),A(a,null)}},{key:"start",value:function(e){var t=me.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 A(r,null)}},{key:"pause",value:function(e){me.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 A(n,null)}},{key:"resume",value:function(e){me.getInstance(e).play().catch(function(e){}),q("onESAudioPlayerStatusChanged",{playerStatus:ce,playerState:ce});for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return A(n,null)}},{key:"seekTo",value:function(e,t){var n=me.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 A(i,null)}},{key:"stop",value:function(e){var t=me.getInstance(e);q("onESAudioPlayerStatusChanged",{playerStatus:de,playerState:de}),t.pause(),t.currentTime=0,q("onESAudioPlayerStatusChanged",{playerStatus:he,playerState:he});for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return A(r,null)}},{key:"setPlayRate",value:function(e,t){var n=me.getInstance(e);n.playbackRate=Number(t)||1,q("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 A(i,null)}},{key:"setVolume",value:function(e,t){me.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 A(r,null)}},{key:"setLeftRightVolume",value:function(e,t,n){var r=me.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 A(a,null)}},{key:"reset",value:function(e){var t=me.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 A(r,null)}},{key:"release",value:function(e){me.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 A(n,null)}},{key:"isPlaying",value:(s=l(d().mark(function e(t){var n,r,i,o,a,s=arguments;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(n=me.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",A(o,r));case 1:case"end":return e.stop()}},e)})),function(e){return s.apply(this,arguments)})},{key:"isPaused",value:(a=l(d().mark(function e(t){var n,r,i,o,a,s=arguments;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(n=me.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",A(o,r));case 1:case"end":return e.stop()}},e)})),function(e){return a.apply(this,arguments)})},{key:"getDuration",value:(o=l(d().mark(function e(t){var n,r,i,o,a,s=arguments;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(n=me.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",A(o,r));case 1:case"end":return e.stop()}},e)})),function(e){return o.apply(this,arguments)})},{key:"getCurrentPosition",value:(i=l(d().mark(function e(t){var n,r,i,o,a,s=arguments;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(n=me.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",A(o,r));case 1:case"end":return e.stop()}},e)})),function(e){return i.apply(this,arguments)})},{key:"getBufferPercentage",value:(r=l(d().mark(function e(t){var n,r,i,o,a,s,u=arguments;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(n=me.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",A(i,s));case 1:return e.abrupt("return",A(i,0));case 2:case"end":return e.stop()}},e)})),function(e){return r.apply(this,arguments)})},{key:"getCurrentPlayRate",value:(n=l(d().mark(function e(t){var n,r,i,o,a=arguments;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(n=me.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",A(i,n.playbackRate||1));case 1:case"end":return e.stop()}},e)})),function(e){return n.apply(this,arguments)})},{key:"getLeftVolume",value:(t=l(d().mark(function e(t){var n,r,i,o,a=arguments;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(n=me.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",A(i,n.volume));case 1:case"end":return e.stop()}},e)})),function(e){return t.apply(this,arguments)})},{key:"getRightVolume",value:(e=l(d().mark(function e(t){var n,r,i,o,a=arguments;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(n=me.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",A(i,n.volume));case 1:case"end":return e.stop()}},e)})),function(t){return e.apply(this,arguments)})},{key:"destroy",value:function(){me.clearAll()}}]);var e,t,n,r,i,o,a,s,u}(),_e="files",be=null;function we(){return new Promise(function(e,t){if(be)e(be);else{var n=indexedDB.open("es_vfs_db",1);n.onerror=function(){t(n.error)},n.onsuccess=function(){be=n.result,e(be)},n.onupgradeneeded=function(e){var t=e.target.result;t.objectStoreNames.contains(_e)||t.createObjectStore(_e,{keyPath:"path"})}}})}function Ee(e){return ke.apply(this,arguments)}function ke(){return(ke=l(d().mark(function e(t){var n;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=1,we();case 1:return n=e.sent,e.abrupt("return",new Promise(function(e,r){var i=n.transaction([_e],"readonly").objectStore(_e).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 Se(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 Ae(e){return"string"!=typeof e?e:e.startsWith("/data:")?e.slice(1):e.startsWith("file://")?e.slice(7)||"/":e.startsWith("//")?e.replace(/^\/+/,"/"):e}function xe(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 Ce=function(){return E(function e(){_(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(d().mark(function e(t){var n,r,i,o=this;return d().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(){xe("onESSoundPoolLoadComplete",{status:0,sampleId:n})},0)},s=function(e){var r,o;i.removeEventListener("canplaythrough",a),i.removeEventListener("error",s),xe("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(d().mark(function e(t,n,r,i,o,a){var s,u,l,c,h,f=this;return d().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",c=((n||1)+(r||1))/2,l.volume=Math.max(0,Math.min(1,c)),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),xe("onESSoundPoolPlayComplete",{streamID:u,soundID:t})}),l.addEventListener("error",function(e){var n,r;f.streams.delete(u),xe("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}(),Le=new Ce,Te=function(){return E(function e(t){_(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){Le.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 A(a,!0)}},{key:"load",value:(i=l(d().mark(function e(t){var r,i,o,a,s,u,l,c,h,f,p,v,y,m,g,_,b,w,E,k,S,x=arguments;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(r=x.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=x[o];if(e.prev=1,!(a=Ae(t))||!a.startsWith("data:")){e.next=3;break}return e.next=2,Le.load(a);case 2:return s=e.sent,e.abrupt("return",A(i,s));case 3:if(!a||!a.startsWith("http://")&&!a.startsWith("https://")){e.next=5;break}return e.next=4,Le.load(a);case 4:return u=e.sent,e.abrupt("return",A(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,Le.load(l);case 6:return c=e.sent,e.abrupt("return",A(i,c));case 7:if(!(h=Se(a))){e.next=9;break}return e.next=8,Le.load(h);case 8:return f=e.sent,e.abrupt("return",A(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,Le.load(_);case 10:return b=e.sent,e.abrupt("return",A(i,b));case 11:return e.next=12,Ee(a);case 12:if(w=e.sent){e.next=13;break}return e.abrupt("return",A(i,-1));case 13:return E=new Blob([w]),k=URL.createObjectURL(E),e.next=14,Le.load(k);case 14:return S=e.sent,e.abrupt("return",A(i,S));case 15:return e.prev=15,e.catch(1),e.abrupt("return",A(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){Le.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 A(n,null)}},{key:"play",value:(r=l(d().mark(function e(t,n,r,i,o,a){var s,u,l,c,h=arguments;return d().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,Le.play(t,n,r,i,o,a);case 2:return c=e.sent,e.abrupt("return",A(u,c));case 3:return e.prev=3,e.catch(1),e.abrupt("return",A(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){Le.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 A(n,null)}},{key:"autoPause",value:function(){Le.autoPause();for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return A(t,null)}},{key:"resume",value:function(e){Le.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 A(n,null)}},{key:"autoResume",value:function(){Le.autoResume();for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return A(t,null)}},{key:"stop",value:function(e){Le.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 A(n,null)}},{key:"setVolume",value:function(e,t,n){Le.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 A(i,null)}},{key:"setRate",value:function(e,t){Le.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 A(r,null)}},{key:"setPriority",value:function(e,t){Le.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 A(r,null)}},{key:"setLoop",value:function(e,t){Le.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 A(r,null)}},{key:"release",value:function(){Le.release();for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return A(t,null)}},{key:"playLocalFile",value:(t=l(d().mark(function e(t){var r,i,o,a,s,u,l,c,h,f,p,v,y,m,g,_,b,w,E,k,S,x,C,L,T,O,P,I=arguments;return d().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=Ae(t))||!a.startsWith("data:")){e.next=4;break}return e.next=2,Le.load(a);case 2:return s=e.sent,e.next=3,Le.play(s,1,1,0,0,1);case 3:return u=e.sent,e.abrupt("return",A(i,u));case 4:if(!a||!a.startsWith("http://")&&!a.startsWith("https://")){e.next=7;break}return e.next=5,Le.load(a);case 5:return l=e.sent,e.next=6,Le.play(l,1,1,0,0,1);case 6:return c=e.sent,e.abrupt("return",A(i,c));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,Le.load(h);case 8:return f=e.sent,e.next=9,Le.play(f,1,1,0,0,1);case 9:return p=e.sent,e.abrupt("return",A(i,p));case 10:if(!(v=Se(a))){e.next=13;break}return e.next=11,Le.load(v);case 11:return y=e.sent,e.next=12,Le.play(y,1,1,0,0,1);case 12:return m=e.sent,e.abrupt("return",A(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 E=new Blob([w],{type:"audio/mpeg"}),k=URL.createObjectURL(E),e.next=14,Le.load(k);case 14:return S=e.sent,e.next=15,Le.play(S,1,1,0,0,1);case 15:return x=e.sent,e.abrupt("return",A(i,x));case 16:return e.next=17,Ee(a);case 17:if(C=e.sent){e.next=18;break}return e.abrupt("return",A(i,-1));case 18:return L=new Blob([C]),T=URL.createObjectURL(L),e.next=19,Le.load(T);case 19:return O=e.sent,e.next=20,Le.play(O,1,1,0,0,1);case 20:return P=e.sent,e.abrupt("return",A(i,P));case 21:return e.prev=21,e.catch(1),e.abrupt("return",A(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(d().mark(function e(t){var n,r,i,o,a=arguments;return d().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",A(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(){Le.release()}}]);var e,t,r,i}(),Oe="files",Pe=null;function Ie(){return window.__VIRTUAL_FS__||null}function Ne(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 Re(e){return null==e?0:"string"==typeof e?e.length:"number"==typeof e.byteLength?e.byteLength:"number"==typeof e.length?e.length:0}function De(){return new Promise(function(e,t){if(Pe)e(Pe);else{var n=indexedDB.open("es_vfs_db",1);n.onerror=function(){t(n.error)},n.onsuccess=function(){Pe=n.result,e(Pe)},n.onupgradeneeded=function(e){var t=e.target.result;t.objectStoreNames.contains(Oe)||t.createObjectStore(Oe,{keyPath:"path"})}}})}function Me(e){return Fe.apply(this,arguments)}function Fe(){return(Fe=l(d().mark(function e(t){var n;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=1,De();case 1:return n=e.sent,e.next=2,new Promise(function(e,r){var i=n.transaction([Oe],"readonly").objectStore(Oe).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 Be(e){return je.apply(this,arguments)}function je(){return(je=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=Ne(t))){e.next=1;break}return e.abrupt("return",{exists:!0,length:n.length,source:"map"});case 1:if(!(r=Ie())||!r.has(t)){e.next=2;break}return i=r.get(t),e.abrupt("return",{exists:!0,length:Re(i),source:"virtual-fs"});case 2:return e.next=3,Me(t);case 3:if(!(o=e.sent)){e.next=4;break}return e.abrupt("return",{exists:!0,length:Re(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 Ve(e){return"string"==typeof e&&e.startsWith("data:")}var We=new Map,He=function(){return E(function e(t){_(this,e),(0,h.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(d().mark(function e(t){var n,r,i,o,a,s,u,l=arguments;return d().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=Ve(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,Be(n);case 1:o=e.sent,i.exists=o.exists,i.isFile=o.exists,i.length=o.length;case 2:for(We.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",A(s,n));case 3:case"end":return e.stop()}},e)})),function(e){return j.apply(this,arguments)})},{key:"newFile",value:(B=l(d().mark(function e(t){var n,r,i,o,a,s,u,l=arguments;return d().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=Ve(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,Be(n);case 1:o=e.sent,i.exists=o.exists,i.isFile=o.exists,i.length=o.length,o.source;case 2:for(We.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",A(s,n));case 3:case"end":return e.stop()}},e)})),function(e){return B.apply(this,arguments)})},{key:"newAbsolutePathFile",value:(F=l(d().mark(function e(t){var n,r,i,o,a=arguments;return d().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(d().mark(function e(t){var n,r,i,o,a=arguments;return d().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",A(i,n));case 1:case"end":return e.stop()}},e)})),function(e){return M.apply(this,arguments)})},{key:"isAbsolute",value:(D=l(d().mark(function e(t){var n,r,i,o,a=arguments;return d().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(!Ve(n)){e.next=1;break}return e.abrupt("return",A(i,!0));case 1:return e.abrupt("return",A(i,n.startsWith("/")));case 2:case"end":return e.stop()}},e)})),function(e){return D.apply(this,arguments)})},{key:"isDirectory",value:(R=l(d().mark(function e(t){var n,r,i,o,a,s=arguments;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(n=(null==t?void 0:t.id)||"",r=We.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",A(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(d().mark(function e(t){var n,r,i,o,a,s=arguments;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=(null==t?void 0:t.id)||"",e.next=1,Be(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",A(o,r.exists));case 2:case"end":return e.stop()}},e)})),function(e){return N.apply(this,arguments)})},{key:"canWrite",value:(I=l(d().mark(function e(t){var n,r,i,o=arguments;return d().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",A(r,!0));case 1:case"end":return e.stop()}},e)})),function(e){return I.apply(this,arguments)})},{key:"exists",value:(P=l(d().mark(function e(t){var n,r,i,o,a,s,u=arguments;return d().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=u.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=u[o];if(!Ve(n)){e.next=1;break}return e.abrupt("return",A(i,!0));case 1:if(!Ne(n)){e.next=2;break}return e.abrupt("return",A(i,!0));case 2:if(!(a=We.get(n))){e.next=3;break}return e.abrupt("return",A(i,a.exists));case 3:return e.next=4,Be(n);case 4:return(s=e.sent).exists&&We.set(n,{id:n,path:n,exists:!0,isDirectory:!1,isFile:!0,length:s.length,lastModified:Date.now()}),e.abrupt("return",A(i,s.exists));case 5:case"end":return e.stop()}},e)})),function(e){return P.apply(this,arguments)})},{key:"length",value:(O=l(d().mark(function e(t){var n,r,i,o,a,s=arguments;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=(null==t?void 0:t.id)||"",e.next=1,Be(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",A(o,r.length));case 2:case"end":return e.stop()}},e)})),function(e){return O.apply(this,arguments)})},{key:"createNewFile",value:(T=l(d().mark(function e(t){var n,r,i,o,a,s=arguments;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(n=(null==t?void 0:t.id)||"",r=Ie(),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",A(o,!0));case 1:return e.abrupt("return",A(o,!1));case 2:case"end":return e.stop()}},e)})),function(e){return T.apply(this,arguments)})},{key:"deleteOnExit",value:(L=l(d().mark(function e(t){var n,r,i,o=arguments;return d().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",A(r,!0));case 1:case"end":return e.stop()}},e)})),function(e){return L.apply(this,arguments)})},{key:"delete",value:(C=l(d().mark(function e(t){var n,r,i,o,a,s=arguments;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(n=(null==t?void 0:t.id)||"",r=Ie(),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),We.delete(n),e.abrupt("return",A(o,!0));case 1:return e.abrupt("return",A(o,!1));case 2:case"end":return e.stop()}},e)})),function(e){return C.apply(this,arguments)})},{key:"list",value:(x=l(d().mark(function e(t){var n,r,i,o,a,s,u,l=arguments;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(n=(null==t?void 0:t.id)||"",r=Ie(),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",A(o,u));case 1:return e.abrupt("return",A(o,[]));case 2:case"end":return e.stop()}},e)})),function(e){return x.apply(this,arguments)})},{key:"mkdir",value:(S=l(d().mark(function e(t){var n,r,i,o=arguments;return d().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",A(r,!0));case 1:case"end":return e.stop()}},e)})),function(e){return S.apply(this,arguments)})},{key:"mkdirs",value:(k=l(d().mark(function e(t){var n,r,i,o=arguments;return d().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",A(r,!0));case 1:case"end":return e.stop()}},e)})),function(e){return k.apply(this,arguments)})},{key:"renameTo",value:(w=l(d().mark(function e(t){var n,r,i,o,a,s,u,l=arguments;return d().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=Ie(),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",A(a,!0));case 1:return e.abrupt("return",A(a,!1));case 2:case"end":return e.stop()}},e)})),function(e){return w.apply(this,arguments)})},{key:"setLastModified",value:(b=l(d().mark(function e(t){var n,r,i,o=arguments;return d().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",A(r,!0));case 1:case"end":return e.stop()}},e)})),function(e){return b.apply(this,arguments)})},{key:"setReadOnly",value:(g=l(d().mark(function e(t){var n,r,i,o=arguments;return d().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",A(r,!0));case 1:case"end":return e.stop()}},e)})),function(e){return g.apply(this,arguments)})},{key:"setWritable",value:(m=l(d().mark(function e(t){var n,r,i,o=arguments;return d().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",A(r,!0));case 1:case"end":return e.stop()}},e)})),function(e){return m.apply(this,arguments)})},{key:"lastModified",value:(y=l(d().mark(function e(t){var n,r,i,o=arguments;return d().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",A(r,Date.now()));case 1:case"end":return e.stop()}},e)})),function(e){return y.apply(this,arguments)})},{key:"getName",value:(v=l(d().mark(function e(t){var n,r,i,o,a,s=arguments;return d().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",A(o,r[r.length-1]||""));case 1:case"end":return e.stop()}},e)})),function(e){return v.apply(this,arguments)})},{key:"getParent",value:(p=l(d().mark(function e(t){var n,r,i,o,a,s=arguments;return d().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",A(o,n.substring(0,r)));case 1:return e.abrupt("return",A(o,""));case 2:case"end":return e.stop()}},e)})),function(e){return p.apply(this,arguments)})},{key:"getParentFile",value:(f=l(d().mark(function e(t){var n,r,i,o,a=arguments;return d().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",A(i,null));case 3:case"end":return e.stop()}},e,this)})),function(e){return f.apply(this,arguments)})},{key:"getAbsolutePath",value:(c=l(d().mark(function e(t){var n,r,i,o,a=arguments;return d().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",A(i,n));case 1:case"end":return e.stop()}},e)})),function(e){return c.apply(this,arguments)})},{key:"getAbsoluteFile",value:(u=l(d().mark(function e(t){var n;return d().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(d().mark(function e(t){var n,r,i,o,a=arguments;return d().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",A(i,n));case 1:case"end":return e.stop()}},e)})),function(e){return s.apply(this,arguments)})},{key:"getCanonicalFile",value:(a=l(d().mark(function e(t){var n;return d().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(d().mark(function e(t){var n,r,i,o,a=arguments;return d().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",A(i,"file://"+n));case 1:case"end":return e.stop()}},e)})),function(e){return o.apply(this,arguments)})},{key:"toURI",value:(i=l(d().mark(function e(t){var n,r,i,o,a=arguments;return d().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",A(i,"file://"+n));case 1:case"end":return e.stop()}},e)})),function(e){return i.apply(this,arguments)})},{key:"getFreeSpace",value:(r=l(d().mark(function e(t){var n,r,i,o=arguments;return d().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",A(r,1073741824));case 1:case"end":return e.stop()}},e)})),function(e){return r.apply(this,arguments)})},{key:"getTotalSpace",value:(n=l(d().mark(function e(t){var n,r,i,o=arguments;return d().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",A(r,10737418240));case 1:case"end":return e.stop()}},e)})),function(e){return n.apply(this,arguments)})},{key:"getUsableSpace",value:(t=l(d().mark(function e(t){var n,r,i,o=arguments;return d().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",A(r,5368709120));case 1:case"end":return e.stop()}},e)})),function(e){return t.apply(this,arguments)})},{key:"compareTo",value:(e=l(d().mark(function e(t){var n,r,i,o,a,s=arguments;return d().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",A(o,n.localeCompare(r)));case 1:case"end":return e.stop()}},e)})),function(t){return e.apply(this,arguments)})},{key:"destroy",value:function(){We.clear()}}]);var e,t,n,r,i,o,a,s,u,c,f,p,v,y,m,g,b,w,k,S,x,C,L,T,O,P,I,N,R,D,M,F,B,j}(),Ue=null,ze=!1;function Ge(){var e;q("NetSpeed",{speedKbps:e=Math.floor(5e3*Math.random())+100,speedMbps:(e/1024).toFixed(2)})}var Ye=new(function(){return E(function e(t){_(this,e),this.context=t,this.name="ESNetworkSpeedModule"},[{key:"showNetSpeed",value:function(){ze||(ze=!0,Ge(),Ue=setInterval(function(){Ge()},500))}},{key:"stopNetSpeed",value:function(){ze&&(Ue&&(clearInterval(Ue),Ue=null),ze=!1)}},{key:"isShowing",value:function(){return ze}},{key:"destroy",value:function(){this.stopNetSpeed()}},{key:"init",value:function(){return Promise.resolve(!0)}}])}());function qe(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 Xe(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)?Xe(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 Xe(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 Ke(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 $e(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ke(Object(n),!0).forEach(function(t){(0,h.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ke(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 Ze=function(){return E(function e(t){_(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 A(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 A(r,!0)}},{key:"download",value:(t=l(d().mark(function e(t){var n,r,i,o=arguments;return d().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",A(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(d().mark(function e(t){var r,i,o,a,s,u,l,c,h=arguments;return d().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",A(a,!1));case 1:return u=(null==t?void 0:t.fileName)||this._extractFileName(i),l=this._downloadCacheDir+"/"+u,c=$e({id:r,url:i,fileName:u,filePath:l,fileLength:0,downloadLength:0,status:"pending"},t),this._downloads.set(r,c),n.g.__WEB_FILE_URL_MAP__.set(l,i),this._notifyListener("onDownloadStart",c),c.status="completed",this._notifyListener("onDownloadSuccess",c),e.abrupt("return",A(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 A(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 A(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=qe(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 x(t)}},{key:"destroy",value:function(){this._downloads.clear(),this._listeners.clear()}}]);var e,t}(),Je=n(474);function Qe(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 et=new ge(null),tt=new Te(null),nt=new He(null),rt=new Ze(null);n.g.__WEB_MODULES__||(n.g.__WEB_MODULES__={}),n.g.__WEB_MODULES__.ESIJKAudioPlayerModule=et,n.g.__WEB_MODULES__.ESSoundPoolAudioPlayerModule=tt,n.g.__WEB_MODULES__.ESSoundPoolPlayerModule=tt,n.g.__WEB_MODULES__.AndroidFileModule=nt,n.g.__WEB_MODULES__.ESNetworkSpeedModule=Ye,n.g.__WEB_MODULES__.ESDownloadModule=rt;var it=null,ot=!1,at=!1;function st(){void 0!==n.g.Hippy&&n.g.Hippy.device?(n.g.Hippy.device.window={width:y,height:m,scale:1,fontScale:1,statusBarHeight:0,navigatorBarHeight:0},n.g.Hippy.device.screen={width:y,height:m,scale:1,fontScale:1,statusBarHeight:0,navigatorBarHeight:0},n.g.Hippy.device.pixelRatio=1):setTimeout(st,10)}function ut(){var e=document.getElementById("app");e?(e.style.width=y+"px",e.style.height=m+"px",new MutationObserver(function(){e.style.width===y+"px"&&e.style.height===m+"px"||(e.style.width=y+"px",e.style.height=m+"px")}).observe(e,{attributes:!0,attributeFilter:["style"]})):setTimeout(ut,10)}var lt=["focusColor","focusBackgroundColor","focusTextColor","focusBorderColor","focusBorderWidth","focusBorderRadius","focusOpacity","focusScale","selectColor","selectBackgroundColor"],ct=["focusBorderWidth","focusBorderRadius","focusOpacity","focusScale"];function dt(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 ht={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 ft(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(ht[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 pt(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?Qe(Object(n),!0).forEach(function(t){(0,h.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qe(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=ft(r);i&&(n.background=i.background,i.borderRadius&&(n.borderRadius=i.borderRadius)),delete n.gradientBackground}return lt.forEach(function(r){var i,o=r.replace(/([A-Z])/g,"-$1").toLowerCase(),a=t[r]||t[o];void 0!==a&&(i=ct.includes(r)?a:"number"==typeof a?dt(a):a,e.setAttribute("data-"+o,String(i)),delete n[r],delete n[o])}),n}function vt(){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 yt=null;function mt(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,Je.Zd)(pt(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&&lt.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=ct.includes(n)?o:"number"==typeof o?dt(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=ft(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,Je.Zd)(n.style))}}}},r._addEventListenerPatched=!0,!0}return!1}function gt(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 _t(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 bt(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 wt(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 Et(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)?Et(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 Et(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 kt(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 St(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kt(Object(n),!0).forEach(function(t){(0,h.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kt(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var At=function(){return E(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};_(this,e),this.options=St({useDistanceBasedNavigation:!0,crossDistanceWeight:.5,directionalAngleThreshold:60,blockedDirectionalAngleThreshold:40,directionalAngleOffset:20},t)},[{key:"setOptions",value:function(e){this.options=St(St({},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"),E=c.hasAttribute("selected")&&"false"!==w,k=null!==c.querySelector('[selected="true"]'),S=E||k;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 L=[];try{L=JSON.parse(C.replace(/'/g,'"')),Array.isArray(L)||(L=[])}catch(e){L=C.split(",").map(function(e){return e.trim().toLowerCase()}).filter(function(e){return e})}if(L.some(function(e){return e.toLowerCase()===t.toLowerCase()})&&!x.contains(c)){A=!0;break}}x=x.parentElement}if(A)return;var T=!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));T=P>0,O=P/Math.min(f.height,i.height),b*=T?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));T=I>0,O=I/Math.min(f.width,i.width),b*=T?1-.9*O:50}var N=bt(e,c),R=_+b+(T?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=wt(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,i=wt(t);try{for(i.s();!(r=i.n()).done;){var o=r.value;if(e.contains(o))return o}}catch(e){i.e(e)}finally{i.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=wt(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=wt(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=wt(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(d>=0)return null;h=!0,f=Math.max(0,n.top-s.bottom),p=Math.abs(c);break;case"down":if(d<=0)return null;h=!0,f=Math.max(0,s.top-n.bottom),p=Math.abs(c);break;case"left":if(c>=0)return null;h=!0,f=Math.max(0,n.left-s.right),p=Math.abs(d);break;case"right":if(c<=0)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 E=Math.max(0,Math.min(s.right,n.right)-Math.max(s.left,n.left));_=E>0,b=E/Math.min(s.width,n.width),p*=_?1-.9*b:50}var k=bt(t,e),S=f+p+(_?0:1e4)+(k<=1?-500:k<=2?-200:k<=3?-50:0)+(g?-1e3:0),A=this._getListTargetElement(e,i,a,t);return A?{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}}}])}(),xt=n(128);function Ct(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?Ct(Object(n),!0).forEach(function(t){(0,h.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ct(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Tt=function(){return E(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};_(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=Lt(Lt({},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 E=e.getAttribute("data-focus-border");E&&(f.enableBorder="true"===E);var k=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());k&&(f.focusBackgroundColor=k);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,xt.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,xt.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 E=window.getComputedStyle(r),k={backgroundColor:r.style.backgroundColor||E.backgroundColor,color:r.style.color||E.color};t.focusedElementOriginalStyles.set(r,k)}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,L=h||"#FFFFFF",T=l?parseFloat(l):8;r.style.outline="".concat(C,"px solid ").concat(L),r.style.outlineOffset="0px",r.style.borderRadius=T+"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)}}])}(),Ot=function(){return E(function e(){_(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)})}}])}(),Pt=function(){return E(function e(){_(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=[]}}])}(),It=function(){return E(function e(){_(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 Nt(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 Rt(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)?Rt(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 Rt(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 Dt(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 Mt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Dt(Object(n),!0).forEach(function(t){(0,h.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dt(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Ft=function(){return E(function e(){_(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 At(this.options),this.styler=new Tt,this.showOnStateManager=new Ot,this.stateManager=new Pt,this.fastListHandler=new It,this.styler.setShowOnStateManager(this.showOnStateManager)}},{key:"setOptions",value:function(e){this.options=Mt(Mt({},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=Nt(t);try{var i=function(){var t=n.value;"childList"===t.type&&t.addedNodes.length>0&&setTimeout(function(){var n,r=Nt(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=gt(e);$(t)||this._callCurrentPageMethod("onKeyDown",t)}},{key:"_dispatchPageKeyUp",value:function(e){var t=gt(e);Z(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&&(this.fastListHandler.maybeNotifyFastListItemFocusChanged(t,!1),this._removeFocusStyle(t)),this.focusedElement=e,this._applyFocusStyle(this.focusedElement),this.focusedElement.classList.add("focused"),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:"_scrollToCenter",value:function(e){if(e){var t=this._findScrollContainer(e);if(t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),i=t.scrollHeight>t.clientHeight,o=t.scrollWidth>t.clientWidth;if(i){var a=n.top-r.top+t.scrollTop,s=n.height,u=r.height,l=a-(u-s)/2,c=t.scrollHeight-u,d=Math.max(0,Math.min(l,c));t.scrollTo({top:d,behavior:"smooth"})}if(o){var h=n.left-r.left+t.scrollLeft,f=n.width,p=r.width,v=h-(p-f)/2,y=t.scrollWidth-p,m=Math.max(0,Math.min(v,y));t.scrollTo({left:m,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=(0,v.findComponentById)(r);return i&&"function"==typeof i.markClickHandled&&i.markClickHandled(),Q(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){X()}},{key:"_directionNumberToName",value:function(e){return _t(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=_t(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)}}])}();(0,h.A)(Ft,"FOCUS_DIRECTION",{BACKWARD:1,FORWARD:2,LEFT:17,UP:33,RIGHT:66,DOWN:130});var Bt=({NODE_ENV:"production"}.VUE_APP_PROXY_DOMAINS||"").split(",").map(function(e){return e.trim()}).filter(Boolean);[/api\./i,/-api\./i,/\.api\./i,/qcloudimg\./i,/cdnott\./i,/baidu\./i].concat(p(Bt.map(function(e){return new RegExp(e.replace(/\./g,"\\."),"i")})));var jt=window.localStorage,Vt=new Map,Wt={getItem:e=>new Promise(function(t){setTimeout(function(){try{var n=jt.getItem(e);t(n)}catch(e){t(null)}},0)}),setItem:(e,t)=>new Promise(function(n,r){setTimeout(function(){try{var i=jt.getItem(e);jt.setItem(e,t),Ht(e,i,t),n()}catch(e){r(e)}},0)}),removeItem:e=>new Promise(function(t){setTimeout(function(){try{var n=jt.getItem(e);jt.removeItem(e),Ht(e,n,null),t()}catch(e){t()}},0)}),clear:()=>new Promise(function(e){setTimeout(function(){try{jt.clear(),e()}catch(t){e()}},0)}),key:e=>new Promise(function(t){setTimeout(function(){try{t(jt.key(e))}catch(e){t(null)}},0)}),get length(){return jt.length},addChangeListener(e){var t=Date.now()+Math.random();return Vt.set(t,e),function(){return Vt.delete(t)}}};function Ht(e,t,n){Vt.forEach(function(r){try{r(e,n,t)}catch(e){}})}var Ut=n(553);function zt(e,t){if(t&&("object"==(0,Ut.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 Gt(e){return Gt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Gt(e)}function Yt(){return Yt="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=function(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=Gt(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}},Yt.apply(null,arguments)}function qt(e,t){return qt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},qt(e,t)}function Xt(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&&qt(e,t)}function Kt(e,t,n,r){var i=Yt(Gt(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof i?function(e){return i.apply(n,e)}:i}function $t(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 Zt(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)?Zt(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 Zt(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 Jt(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 Qt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Jt(Object(n),!0).forEach(function(t){(0,h.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jt(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function en(e,t,n){return t=Gt(t),zt(e,tn()?Reflect.construct(t,n||[],Gt(e).constructor):t.apply(e,n))}function tn(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(tn=function(){return!!e})()}var nn=function(){return"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{}},rn=nn(),on={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"},an={click:"onClick",longclick:"onLongClick",pressin:"onPressIn",pressout:"onPressOut",touchstart:"onTouchDown",touchend:"onTouchEnd",touchmove:"onTouchMove",touchcancel:"onTouchCancel"},sn={changetext:"onChangeText",keyboardwillhide:"onKeyboardWillHide",keyboardwillshow:"onKeyboardWillShow",contentsizechange:"onContentSizeChange",endediting:"onEndEditing"},un={pageselected:"onPageSelected",pagescroll:"onPageScroll",statechanged:"onStateChanged",pagescrollstatechanged:"onPageScrollStateChanged"};function ln(e){return on[e]?on[e]:function(e){return!!an[e]}(e)?an[e]:function(e){return!!sn[e]}(e)?sn[e]:function(e){return!!un[e]}(e)?un[e]:function(e){return e.startsWith("on")?e:"on".concat(e.charAt(0).toUpperCase()).concat(e.slice(1))}(e)}var cn=function(){return E(function e(t){_(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,ln(t),n)}},{key:"removeEventListener",value:function(e,t,n){Hippy.bridge.callNative("UIManagerModule","removeEventListener",e,ln(t),n)}}])}(),dn="AnimationModule",hn=function(){return E(function e(t){_(this,e),this.id=t},[{key:"getId",value:function(){return this.id}},{key:"start",value:function(){Hippy.bridge.callNative(dn,"startAnimation",this.id)}},{key:"pause",value:function(){Hippy.bridge.callNative(dn,"pauseAnimation",this.id)}},{key:"resume",value:function(){Hippy.bridge.callNative(dn,"resumeAnimation",this.id)}},{key:"destroy",value:function(){Hippy.bridge.callNative(dn,"destroyAnimation",this.id)}},{key:"updateAnimation",value:function(e){Hippy.bridge.callNative(dn,"destroyAnimation",this.id,e)}},{key:"addEventListener",value:function(e,t){Hippy.bridge.callNative(dn,"addEventListener",this.id,e,t)}},{key:"removeEventListener",value:function(e,t){Hippy.bridge.callNative(dn,"removeEventListener",this.id,e,t)}}])}(),fn=function(e){function t(e){return _(this,t),en(this,t,[Hippy.bridge.callNativeWithCallbackId(dn,"createAnimation",!0,e.mode,e)])}return Xt(t,e),E(t)}(hn),pn=function(e){function t(e){var n=e.children,r=e.repeatCount;return _(this,t),en(this,t,[Hippy.bridge.callNativeWithCallbackId(dn,"createAnimationSet",!0,{children:n,repeatCount:r})])}return Xt(t,e),E(t)}(hn),vn={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 yn={OS:"web",Platform:{OS:"android",Localization:void 0},Dimensions:Qt({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}}())},mn=function(){return E(function e(t){var n=this;_(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]}}])}(),gn=function(){return E(function e(t){_(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 _n,bn=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},wn=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},En=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]},kn=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},Sn={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 kn(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)},An=["measureInWindow","measureInAppWindow","getBoundingClientRect"],xn={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){An.includes(t)?Hippy.bridge.callNative("UIManagerModule",t,[e,n],r):Hippy.bridge.callNative("UIManagerModule","callUIFunction",[e,t,n],r)}},Cn={country:"",language:"",direction:0},Ln={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]}},Tn=nn();"undefined"!=typeof window&&(window.global=Tn),Tn.Hippy={},Tn.__GLOBAL__={},Tn.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},Tn.__ISHIPPY__=!0,Tn.__GLOBAL__.globalEventHandle={},Tn.__GLOBAL__.jsModuleList={Dimensions:vn},Tn.__HIPPYNATIVEGLOBAL__=yn,Tn.HippyDealloc=function(){Hippy&&Hippy.emit("dealloc")},Tn.__Headers=Tn.Headers,Tn.Headers=mn,Tn.__Response=Tn.Response,Tn.Response=gn,Tn.__fetch=Tn.fetch,Tn.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 mn)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 mn(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 gn(n);e(r)}else t(n)}).catch(function(e){t(e)})})},Tn.__WebSocket=Tn.WebSocket,Tn.getTurboModule=function(e){var t=Hippy.web.engine.modules[e];return t},Tn.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=Ln,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=bn,Hippy.off=wn,Hippy.emit=En,Hippy.asyncStorage=Sn,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=xn,Hippy.device.platform={OS:__HIPPYNATIVEGLOBAL__.Platform.OS,Localization:__HIPPYNATIVEGLOBAL__.Platform.Localization||Cn},Hippy.SceneBuilder=cn,Hippy.Animation=fn,Hippy.AnimationSet=pn,Tn.__localStorage=Tn.localStorage,Object.defineProperty(Tn,"localStorage",{value:Hippy.asyncStorage}),Tn.turboPromise=Hippy.turboPromise,Object.defineProperty(Tn.console,"reportUncaughtException",{value:function(e){if(e&&e instanceof Error)throw e}}),Tn.addEventListener("unhandledrejection",function(e){Tn.Hippy.emit("unhandledRejection",null==e?void 0:e.reason,null==e?void 0:e.promise)}),vn.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"}(_n||(_n={}));var On,Pn,In,Nn,Rn,Dn,Mn,Fn,Bn=2;!function(e){e.HEAD="head",e.clip="clip",e.MIDDLE="middle",e.TAIL="tail"}(On||(On={})),function(e){e.COVER="cover",e.CONTAIN="contain",e.STRETCH="stretch",e.REPEAT="repeat",e.CENTER="center"}(Pn||(Pn={})),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"}(In||(In={})),function(e){e.default="default",e.numeric="numeric",e.password="password",e.email="email",e.phonePad="phone-pad"}(Nn||(Nn={})),function(e){e.done="done",e.go="go",e.next="next",e.search="search",e.send="send"}(Rn||(Rn={})),function(e){e.Slide="slide",e.Fade="fade",e.SlideFade="slide_fade",e.None="none"}(Dn||(Dn={})),function(e){e.Portrait="portrait",e.PortraitUpsideDown="portrait-upside-down",e.Landscape="landscape",e.LandscapeLeft="landscape-left",e.LandscapeRight="landscape-right"}(Mn||(Mn={})),function(e){e.IDLE="idle",e.DRAG="dragging",e.SETTL="settling"}(Fn||(Fn={}));var jn="marginVertical",Vn="marginHorizontal",Wn="paddingVertical",Hn="paddingHorizontal";function Un(e,t){return e&&Object.prototype.hasOwnProperty.call(e,t)}function zn(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(Un(t,h))if(-1===h.indexOf("shadow"))if(-1===h.indexOf("textShadow"))if(!Xn(h)||isNaN(t[h]))if(Gn(h,t[h])&&n)n(h,t[h],e);else if(Qn(h)&&"span"===e.tagName){var f=Jn(t[h]);Yn(e,h,f),Yn(e,"line-height",f)}else{if(Kn(h,t[h]))Yn(e,h,Jn(t[h]));else $n(h)?Yn(e,h,parseInt(t[h],10)):(Zn(h)&&(l[h]=t[h]),Yn(e,h,t[h]))}else Yn(e,h,qn(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?Yn(e,"borderStyle","solid"):t.borderStyle&&!t.borderWidth&&(t.borderTopWidth||t.borderLeftWidth||t.borderRightWidth||t.borderBottomWidth)&&(Yn(e,"borderStyle","none"),er(e,t)):Yn(e,"borderStyle","none");void 0!==t[jn]&&(Yn(e,"marginTop",Jn(t[jn])),Yn(e,"marginBottom",Jn(t[jn])));void 0!==t[Vn]&&(Yn(e,"marginLeft",Jn(t[Vn])),Yn(e,"marginRight",Jn(t[Vn])));void 0!==t[Wn]&&(Yn(e,"paddingTop",Jn(t[Wn])),Yn(e,"paddingBottom",Jn(t[Wn])));void 0!==t[Hn]&&(Yn(e,"paddingLeft",Jn(t[Hn])),Yn(e,"paddingRight",Jn(t[Hn])))}(e,t),s.shadowRadius&&Yn(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(qn(r.shadowColor))),(u.textShadowColor||u.textShadowOffset||u.textShadowOffsetX||u.textShadowOffsetY)&&Yn(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(qn(e.textShadowColor))}(u)),function(e,t){for(var n,r=function(){var r=o[i];if("backgroundImage"===r)return Yn(t,r,"url(".concat(e.backgroundImage,")")),1;if("backgroundSize"===r&&"contain"===e.backgroundSize?Yn(t,r,"100% 100%"):"backgroundSize"===r&&Yn(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(qn(e.color)).concat(e.ratio>=0?" ".concat(100*e.ratio,"%"):"")}),Yn(t,"background","linear-gradient(".concat(s,")"))}},i=0,o=Object.keys(e);i<o.length;i++)r();Object.keys(e).length>0&&Yn(t,"backgroundRepeat","no-repeat")}(l,e)}}function Gn(e,t){return!!Un(t,"animationId")||(!("transform"!==e||!Array.isArray(t))||void 0)}function Yn(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 qn(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 Xn(e){return e.endsWith("Color")||e.endsWith("color")}function Kn(e,t){return!(isNaN(t)||e.startsWith("flex")||e.startsWith("zIndex")||e.startsWith("-webkit")||e.startsWith("z-index")||e.startsWith("opacity"))}function $n(e){return e.startsWith("zIndex")||e.startsWith("z-index")}function Zn(e){return e.startsWith("background")||e.startsWith("linearGradient")}function Jn(e){return isNaN(e)?e:"".concat(e,"px")}function Qn(e){return e.startsWith("fontSize")}function er(e,t){t.borderTopWidth&&Yn(e,"borderTopStyle","solid"),t.borderLeftWidth&&Yn(e,"borderLeftStyle","solid"),t.borderRightWidth&&Yn(e,"borderRightStyle","solid"),t.borderBottomWidth&&Yn(e,"borderBottomStyle","solid")}function tr(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n]}var nr=function(){},rr=function(){return E(function e(t){_(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]}}])}(),ir=function(){return E(function e(){_(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 or(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=$t(e);try{for(o.s();!(i=o.n()).done;){r(i.value)}}catch(e){o.e(e)}finally{o.f()}})}var ar=function(){function e(t){_(this,e),this.modules={},this.components={},this.eventBus=new ir,this.pendingQueue={},this.pendingModules={},this.context=new rr(this);var n=t||{},r=n.modules,i=n.components;this.registerCore(),this.registerModules(r),this.registerComponents(i),rn.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 E(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("destoryInstance",this.instance.id)}},{key:"pause",value:function(){hippyBridge("pauseInstance")}},{key:"resume",value:function(){hippyBridge("resumeInstance")}},{key:"load",value:function(e){return or(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?sr(t,n,r):void 0,s=[].concat(p(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}();ar.coreModules={};var sr=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})}}},ur=E(function e(){_(this,e),this.name=""}),lr=function(e){function t(e){var n;return _(this,t),(n=en(this,t)).mode="normal",n.context=e,n}return Xt(t,e),E(t,[{key:"init",value:function(){}}])}(ur),cr=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}()}(),dr="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,hr=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")(),fr="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(hr):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)};var pr=["top","right","bottom","left","width","height","size","weight"],vr="undefined"!=typeof MutationObserver,yr=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(){fr(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(){dr&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),vr?(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(){dr&&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;pr.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}(),mr=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},gr=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||hr},_r=Ar(0,0,0,0);function br(e){return parseFloat(e)||0}function wr(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(t,n){return t+br(e["border-"+n+"-width"])},0)}function Er(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return _r;var r=gr(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]=br(o)}return t}(r),o=i.left+i.right,a=i.top+i.bottom,s=br(r.width),u=br(r.height);if("border-box"===r.boxSizing&&(Math.round(s+o)!==t&&(s-=wr(r,"left","right")+o),Math.round(u+a)!==n&&(u-=wr(r,"top","bottom")+a)),!function(e){return e===gr(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 Ar(i.left,i.top,s,u)}var kr="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof gr(e).SVGGraphicsElement}:function(e){return e instanceof gr(e).SVGElement&&"function"==typeof e.getBBox};function Sr(e){return dr?kr(e)?function(e){var t=e.getBBox();return Ar(0,0,t.width,t.height)}(e):Er(e):_r}function Ar(e,t,n,r){return{x:e,y:t,width:n,height:r}}var xr=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Ar(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=Sr(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}(),Cr=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),mr(u,{x:r,y:i,width:o,height:a,top:i,right:r+o,bottom:a+i,left:r}),u);mr(this,{target:e,contentRect:l})},Lr=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new cr,"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 gr(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new xr(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 gr(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 Cr(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}(),Tr="undefined"!=typeof WeakMap?new WeakMap:new cr,Or=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=yr.getInstance(),r=new Lr(t,n,this);Tr.set(this,r)};["observe","unobserve","disconnect"].forEach(function(e){Or.prototype[e]=function(){var t;return(t=Tr.get(this))[e].apply(t,arguments)}});var Pr=void 0!==hr.ResizeObserver?hr.ResizeObserver:Or;function Ir(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Nr,Rr={exports:{}};Nr=Rr,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 E(e,t){for(;e;){if(e==t)return!0;e=e.parentNode}return!1}function k(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 L(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 T=1;function O(t){var n=t.ownerDocument||t;return n.defaultView||n.parentWindow||e}var P="ontouchstart"in e,I=L(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=G(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=z(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,G((f=i)[0],f[1],B)/G(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=z(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;E(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 z(e,t){return e===t?1:u(e)>=u(t)?e<0?2:4:t<0?8:16}function G(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 E(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=L(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 Ee(e,t){this.manager=e,this.set(t)}Ee.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(k(e,ge))return ge;var t=k(e,_e),n=k(e,be);return t&&n?ge:t||n?t?_e:be:k(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=k(r,ge)&&!we[ge],o=k(r,be)&&!we[be],a=k(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 ke=32;function Se(e){this.options=i({},this.defaults,e||{}),this.id=T++,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 Le(){Se.apply(this,arguments)}function Te(){Le.apply(this,arguments),this.pX=null,this.pY=null}function Oe(){Le.apply(this,arguments)}function Pe(){Se.apply(this,arguments),this._timer=null,this._input=null}function Ie(){Le.apply(this,arguments)}function Ne(){Le.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 Ee(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=L(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=ke},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=ke);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(Le,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:ke}}),y(Te,Le,{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 Le.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,Le,{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 ke},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,Le,{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,Le,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:30,pointers:1},getTouchAction:function(){return Te.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||G(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 ke},failTimeout:function(){return this._timer=c(function(){this.state=ke},this.options.interval,this),ke},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}],[Te,{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:ke,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:Ee,TouchInput:se,MouseInput:$,PointerEventInput:te,TouchMouseInput:le,SingleTouchInput:re,Recognizer:Se,AttrRecognizer:Le,Tap:Re,Pan:Te,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:L}),(void 0!==e?e:"undefined"!=typeof self?self:{}).Hammer=De,Nr.exports?Nr.exports=De:e.Hammer=De}(window,document);var Dr=function(){return E(function e(t,n,r){_(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 Rr.exports.Manager(this.dom,{inputClass:Rr.exports.TouchInput}))}},{key:"onClick",get:function(){return!!this.props[In.ON_CLICK]},set:function(e){if(this.props[In.ON_CLICK]=e,this.initHammer(),this.hammer.remove("tap"),this.hammer.off("tap",this.handleOnClick),e){var t=new Rr.exports.Tap({time:200});this.hammer.add(t),this.hammer.on("tap",this.handleOnClick)}}},{key:"onLongClick",get:function(){return!!this.props[In.ON_LONG_CLICK]},set:function(e){if(this.props[In.ON_LONG_CLICK]=e,this.initHammer(),this.hammer.remove("press"),this.hammer.off("press",this.handleOnLongClick),e){var t=new Rr.exports.Press({time:200});this.hammer.add(t),this.hammer.on("press",this.handleOnLongClick)}}},{key:"onTouchDown",get:function(){return this.props[In.ON_TOUCH_DOWN]},set:function(e){this.props[In.ON_TOUCH_DOWN]=e,e?this.dom.addEventListener("touchstart",this.handleOnTouchStart):this.dom.removeEventListener("touchstart",this.handleOnTouchStart)}},{key:"onTouchMove",get:function(){return this.props[In.ON_TOUCH_MOVE]},set:function(e){this.props[In.ON_TOUCH_MOVE]=e,e?this.dom.addEventListener("touchmove",this.handleOnTouchMove):this.dom.removeEventListener("touchmove",this.handleOnTouchMove)}},{key:"onTouchEnd",get:function(){return this.props[In.ON_TOUCH_END]},set:function(e){this.props[In.ON_TOUCH_END]=e,e?this.dom.addEventListener("touchend",this.handleOnTouchEnd):this.dom.removeEventListener("touchend",this.handleOnTouchEnd)}},{key:"onTouchCancel",get:function(){return this.props[In.ON_TOUCH_CANCEL]},set:function(e){this.props[In.ON_TOUCH_CANCEL]=e,e?this.dom.addEventListener("touchcancel",this.handleOnTouchCancel):this.dom.removeEventListener("touchcancel",this.handleOnTouchCancel)}},{key:"onLayout",get:function(){return this.props[In.ON_LAYOUT]},set:function(e){var t;this.props[In.ON_LAYOUT]=e,e?(this.resizeObserver||(this.resizeObserver=new Pr(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,zn(this.dom,{zIndex:0}),void(this.updatedZIndex=!0);delete this.props.style.zIndex,zn(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[In.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:Bn,stopPropagation:function(){}})}},{key:"handleOnLongClick",value:function(e){this.onLongClick&&(this.dispatchEvent(In.ON_LONG_CLICK,e),e.srcEvent.stopPropagation())}},{key:"handleOnClick",value:function(e){this.onClick&&(this.dispatchEvent(In.ON_CLICK,e),e.srcEvent.stopPropagation())}},{key:"handleOnTouchStart",value:function(e){this.onTouchDown&&(this.dispatchEvent("onTouchDown",Mr(e,"onTouchDown",this.id)),e.stopPropagation())}},{key:"handleOnTouchMove",value:function(e){this.onTouchMove&&(this.dispatchEvent("onTouchMove",Mr(e,"onTouchMove",this.id)),e.stopPropagation(),e.preventDefault())}},{key:"handleOnTouchCancel",value:function(e){this.onTouchCancel&&(this.dispatchEvent("onTouchCancel",Mr(e,"onTouchCancel",this.id)),e.stopPropagation())}},{key:"handleOnTouchEnd",value:function(e){this.onTouchEnd&&(this.dispatchEvent("onTouchEnd",Mr(e,"onTouchEnd",this.id)),e.stopPropagation())}}]);var e,t,n}();function Mr(e,t,n){var r=e.changedTouches[0];return{name:t,id:n,page_x:Number(r.pageX),page_y:Number(r.pageY)}}var Fr,Br=function(e){function t(e,n,r){var i;return _(this,t),(i=en(this,t,[e,n,r])).isLoadSuccess=!1,i.tintModeContainerDom=null,i.renderImgDom=null,i.tagName=_n.IMAGE,i.dom=document.createElement("img"),i.renderImgDom=i.dom,i.handleLoad=i.handleLoad.bind(i),i.init(),i}return Xt(t,e),E(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=Qt({},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[In.TINY_COLOR]},set:function(e){var t,n;if(this.props[In.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 zn(this.dom,{filter:""})}},{key:"capInsets",get:function(){return this.props[In.CAP_INSETS]},set:function(e){this.props[In.CAP_INSETS]=e}},{key:"resizeMode",get:function(){return this.props[In.RESIZE_MODE]},set:function(e){e||(this.props[In.RESIZE_MODE]=Pn.CONTAIN),this.props[In.RESIZE_MODE]=e,this.renderImgDom&&e&&zn(this.renderImgDom,{objectFit:jr[e]})}},{key:"src",get:function(){var e=this.props[In.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[In.SOURCE]=null!=e?e:"",e&&e!==this.props[In.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[In.DEFAULT_SOURCE]},set:function(e){this.props[In.DEFAULT_SOURCE]=e,this.isLoadSuccess||(this.renderImgDom.src=e)}},{key:"onLoad",value:function(e){this.props[In.ON_LOAD]&&this.dispatchEvent(In.ON_LOAD,e)}},{key:"onLoadStart",value:function(e){this.props[In.ON_LOAD_START]&&this.dispatchEvent(In.ON_LOAD_START,e)}},{key:"onLoadEnd",value:function(e){this.props[In.ON_LOAD_END]&&this.dispatchEvent(In.ON_LOAD_END,e)}},{key:"onError",value:function(e){this.props[In.ON_ERROR]&&this.dispatchEvent(In.ON_ERROR,e)}},{key:"onProgress",value:function(e){this.props[In.ON_PROGRESS]&&this.dispatchEvent(In.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(!Un(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=qn(this.tintColor);zn(this.renderImgDom,{transform:"translateX(-100%)",filter:"drop-shadow(".concat(this.props.style.width,"px 0 ").concat(e,")")})}}])}(Dr),jr=((Fr={})[Pn.CENTER]="none",Fr[Pn.CONTAIN]="contain",Fr[Pn.STRETCH]="fill",Fr[Pn.REPEAT]="none",Fr[Pn.COVER]="cover",Fr),Vr={exports:{}},Wr={exports:{}},Hr={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}(Hr);var Ur={exports:{}};!function(e){var t=Hr.exports.default;e.exports=function(e,n){if("object"!=t(e)||!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}(Ur),function(e){var t=Hr.exports.default,n=Ur.exports;e.exports=function(e){var r=n(e,"string");return"symbol"==t(r)?r:r+""},e.exports.__esModule=!0,e.exports.default=e.exports}(Wr),function(e){var t=Wr.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}(Vr);var zr,Gr=Ir(Vr.exports);var Yr="undefined"==typeof document?void 0:document,qr=!!Yr&&"content"in Yr.createElement("template"),Xr=!!Yr&&Yr.createRange&&"createContextualFragment"in Yr.createRange();function Kr(e){return e=e.trim(),qr?function(e){var t=Yr.createElement("template");return t.innerHTML=e,t.content.childNodes[0]}(e):Xr?function(e){return zr||(zr=Yr.createRange()).selectNode(Yr.body),zr.createContextualFragment(e).childNodes[0]}(e):function(e){var t=Yr.createElement("body");return t.innerHTML=e,t.childNodes[0]}(e)}function $r(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 Zr(e,t,n){e[n]!==t[n]&&(e[n]=t[n],e[n]?e.setAttribute(n,""):e.removeAttribute(n))}var Jr={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)}Zr(e,t,"selected")},INPUT:function(e,t){Zr(e,t,"checked"),Zr(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 Qr(){}function ei(e){if(e)return e.getAttribute&&e.getAttribute("id")||e.id}var ti,ni=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=Yr.createElement("html")).innerHTML=i}else n=Kr(n);var o=r.getNodeKey||ei,a=r.onBeforeNodeAdded||Qr,s=r.onNodeAdded||Qr,u=r.onBeforeElUpdated||Qr,l=r.onElUpdated||Qr,c=r.onBeforeNodeDiscarded||Qr,d=r.onNodeDiscarded||Qr,h=r.onBeforeElChildrenUpdated||Qr,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&&$r(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&&$r(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])&&$r(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||Yr)),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=Jr[e.nodeName];v&&v(e,t)}(t,n):Jr.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,E,k=t,S=k.nodeType,A=n.nodeType;if(!f)if(1===S)1===A?$r(t,n)||(d(t),k=function(e,t){for(var n=e.firstChild;n;){var r=n.nextSibling;t.appendChild(n),n=r}return t}(t,(w=n.nodeName,(E=n.namespaceURI)&&"http://www.w3.org/1999/xhtml"!==E?Yr.createElementNS(E,w):Yr.createElement(w)))):k=n;else if(3===S||8===S){if(A===S)return k.nodeValue!==n.nodeValue&&(k.nodeValue=n.nodeValue),k;k=n}if(k===n)d(t);else{if(n.isSameNode&&n.isSameNode(k))return;if(b(k,n,f),v)for(var x=0,C=v.length;x<C;x++){var L=p[v[x]];L&&g(L,L.parentNode,!1)}}return!f&&k!==t&&t.parentNode&&(k.actualize&&(k=k.actualize(t.ownerDocument||Yr)),t.parentNode.replaceChild(k,t)),k}}(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)}}),ri=function(){return E(function e(t){var n=t.itemCount,r=t.itemSizeGetter,i=t.estimatedItemSize;_(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})}}])}(),ii=function(){return E(function e(t,n){var r=this;_(this,e),Gr(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 ri({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));ni(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 oi(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(!ti||ti===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=p(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 li(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(),ti=e,o=r)}},d=function(){ti=null,ai(e,r,n,t.scrollEnable(o),t.getPosition()),r=!1,t.needSimulatedScrolling&&a()},h=function(){ti=null,ai(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 ai(e,t,n,r,i,o,a){t&&r&&(null==o||o(i)),t&&n&&r&&(null==a||a())}function si(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 ui(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:100;zn(e,{transition:"transform ".concat(n/1e3,"s")}),setTimeout(function(){li(e,t)},16),setTimeout(function(){zn(e,{transition:""})},n+16)}function li(e,t){zn(e,{transform:"translate(".concat(t[0],"px,").concat(t[1],"px)")})}function ci(e,t,n){var r=1e3/t,i=Date.now()-e>=r;return i&&(null==n||n()),i}function di(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 hi(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]&&ui(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=p(n);ui(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 fi=function(e){function t(e,n,r){var i;return _(this,t),(i=en(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=_n.LIST,i.dom=document.createElement("div"),i.init(),i}return Xt(t,e),E(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[In.OVER_SCROLL_ENABLED]},set:function(e){this.props[In.OVER_SCROLL_ENABLED]=e}},{key:"initialListSize",get:function(){var e;return null!==(e=this.props[In.INITIAL_LIST_SIZE])&&void 0!==e?e:10},set:function(e){this.props[In.INITIAL_LIST_SIZE]=e}},{key:"initialContentOffset",get:function(){return this.props[In.INITIAL_CONTENT_OFFSET]},set:function(e){this.props[In.INITIAL_CONTENT_OFFSET]=e}},{key:"preloadItemNumber",get:function(){return this.props[In.OVER_SCROLL_ENABLED]},set:function(e){this.props[In.PRELOAD_ITEM_NUMBER]=e}},{key:"rowShouldSticky",get:function(){return this.props[In.ROW_SHOULD_STICKY]},set:function(e){this.props[In.ROW_SHOULD_STICKY]=e}},{key:"scrollEventThrottle",get:function(){return this.props[In.SCROLL_EVENT_THROTTLE]},set:function(e){this.props[In.SCROLL_EVENT_THROTTLE]=e}},{key:"scrollEnabled",get:function(){return this.props[In.SCROLL_ENABLED]},set:function(e){this.props[In.SCROLL_ENABLED]=e,zn(this.dom,{overflow:this.scrollEnabled?"scroll":"hidden"})}},{key:"showScrollIndicator",get:function(){return this.props[In.SHOW_SCROLL_INDICATOR]},set:function(e){this.props[In.SHOW_SCROLL_INDICATOR]=e}},{key:"initialListReady",get:function(){return this.props[In.INITIAL_LIST_READY]},set:function(e){this.props[In.INITIAL_LIST_READY]=e}},{key:"onMomentumScrollBegin",value:function(e){this.props[In.ON_MOMENTUM_SCROLL_BEGIN]&&this.dispatchEvent(In.ON_MOMENTUM_SCROLL_BEGIN,e)}},{key:"onMomentumScrollEnd",value:function(e){this.props[In.ON_MOMENTUM_SCROLL_END]&&this.dispatchEvent(In.ON_MOMENTUM_SCROLL_END,e)}},{key:"onScroll",value:function(e){this.props[In.ON_SCROLL]&&this.dispatchEvent(In.ON_SCROLL,e)}},{key:"onScrollBeginDrag",value:function(e){this.props[In.ON_SCROLL_BEGIN_DRAG]&&this.dispatchEvent(In.ON_SCROLL_BEGIN_DRAG,e)}},{key:"onScrollEndDrag",value:function(e){this.props[In.ON_SCROLL_END_DRAG]&&this.dispatchEvent(In.ON_SCROLL_END_DRAG,e)}},{key:"onInitialListReady",value:function(){this.dispatchEvent(In.INITIAL_LIST_READY,null)}},{key:"onAppear",value:function(e){this.props[In.ON_APPEAR]&&this.dispatchEvent(In.ON_APPEAR,e)}},{key:"onDisappear",value:function(e){this.props[In.ON_DISAPPEAR]&&this.dispatchEvent(In.ON_DISAPPEAR,e)}},{key:"onWillAppear",value:function(e){this.props[In.ON_WILL_APPEAR]&&this.dispatchEvent(In.ON_WILL_APPEAR,e)}},{key:"onWillDisappear",value:function(e){this.props[In.ON_WILL_DISAPPEAR]&&this.dispatchEvent(In.ON_WILL_DISAPPEAR,e)}},{key:"onLoadMore",value:function(){this.props[In.ON_LOAD_MORE]&&this.dispatchEvent(In.ON_LOAD_MORE,null),this.props[In.ON_LOAD_MORE]&&this.dispatchEvent(In.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,Kt(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=p(this.childData),o=$t(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(){Kt(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(){Kt(t,"mounted",this,3)([])}},{key:"endBatch",value:function(){var e=this;setTimeout(function(){var t,n;e.dom&&(e.virtualList||(e.virtualList=new ii(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[In.OVER_SCROLL_ENABLED]=!0,this.props[In.INITIAL_LIST_SIZE]=10,this.props[In.INITIAL_LIST_READY]=!0,this.props[In.PRELOAD_ITEM_NUMBER]=1,this.props[In.SCROLL_EVENT_THROTTLE]=30,this.props[In.ON_LOAD_MORE]=!0,this.touchListenerRelease=oi(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};zn(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;zn(this.stickyListViewItem.dom,{height:null===(n=this.stickyListViewItem)||void 0===n?void 0:n.height});var o,a=$t(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;zn(this.stickyListViewItem.dom,{height:null===(e=this.stickyListViewItem)||void 0===e?void 0:e.height});var n,r=$t(t);try{for(r.s();!(n=r.n()).done;){var i=n.value;this.stickyContainer.removeChild(i),this.stickyListViewItem.dom.appendChild(i),zn(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=si(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&&ci(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;zn(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),zn(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}(Dr),pi=function(e){function t(e,n,r){var i;return _(this,t),(i=en(this,t,[e,n,r])).height=0,i.isDirty=!1,i.dirtyListener=null,i.tagName=_n.LIST_ITEM,i.dom=document.createElement("div"),i.onLayout=!0,i}return Xt(t,e),E(t,[{key:"sticky",get:function(){return this.props[In.STICKY]},set:function(e){this.props[In.STICKY]=e}},{key:"addDirtyListener",value:function(e){this.dirtyListener=e}},{key:"mounted",value:function(){Kt(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))}}])}(Dr);var vi,yi=200;!function(e){e[e.ENTRY=0]="ENTRY",e[e.LEAVE=1]="LEAVE"}(vi||(vi={}));var mi={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:{}}},gi={fade:{animation:{opacity:0}},slide:{animation:{transform:"translate(0vw,100vh)"}},slide_fade:{animation:{transform:"translate(0vw,100vh)",opacity:0}},none:{animation:{},newState:{}}},_i=function(e){function t(e,n,r){var i;return _(this,t),(i=en(this,t,[e,n,r])).tagName=_n.MODAL,i.dom=document.createElement("div"),i.props[In.ANIMATED]=!0,i.onBackListener=function(){i.onOrientationChange(null)},i}return Xt(t,e),E(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=Qt({},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[In.ANIMATED]},set:function(e){this.props[In.ANIMATED]=e}},{key:"animationType",get:function(){return this.props[In.ANIMATION_TYPE]},set:function(e){this.props[In.ANIMATION_TYPE]=e}},{key:"supportedOrientations",get:function(){return this.props[In.SUPPORTED_ORIENTATIONS]},set:function(e){this.props[In.SUPPORTED_ORIENTATIONS]=e}},{key:"immersionStatusBar",get:function(){return this.props[In.IMMERSION_STATUS_BAR]},set:function(e){this.props[In.IMMERSION_STATUS_BAR]=e}},{key:"darkStatusBarText",get:function(){return this.props[In.DARK_STATUS_BAR_TEXT]},set:function(e){this.props[In.DARK_STATUS_BAR_TEXT]=e}},{key:"transparent",get:function(){return this.props[In.TRANSPARENT]},set:function(e){this.props[In.TRANSPARENT]=e,zn(this.dom,{backgroundColor:this.props[In.TRANSPARENT]?"#ffffff00":"#fff"})}},{key:"onShow",value:function(e){this.props[In.ON_SHOW]&&this.dispatchEvent(In.ON_SHOW,e)}},{key:"onOrientationChange",value:function(e){this.props[In.ON_ORIENTATION_CHANGE]&&this.dispatchEvent(In.ON_ORIENTATION_CHANGE,e)}},{key:"onRequestClose",value:function(e){this.props[In.ON_ORIENTATION_CHANGE]&&this.dispatchEvent(In.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,Kt(t,"beforeChildMount",this,3)([n,r]);case 1:0===r&&n.dom&&(zn(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,Kt(t,"beforeMount",this,3)([n,r]);case 1:this.entryAnimationAction=this.runAnimation(vi.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;Kt(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,Kt(t,"beforeRemove",this,3)([]);case 1:if(this.leaveAnimationAction=this.runAnimation(vi.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)},yi)});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!==Dn.None&&this.dom){var i=e===vi.ENTRY?t.buildModalEntryAnimation(this.animationType):t.buildModalLeaveAnimation(this.animationType),o=i.animation,a=i.newState;return zn(this.dom,Qt({zIndex:n},a)),function(){r.dom&&zn(r.dom,o)}}}}],[{key:"buildModalEntryAnimation",value:function(e){return mi[e]}},{key:"buildModalLeaveAnimation",value:function(e){return gi[e]}}]);var n,r,i}(Dr),bi=200,wi="cubic-bezier(0.645, 0.045, 0.355, 1)",Ei=[{threshold:[0,50],damp:1},{threshold:[50,100],damp:.6},{threshold:[100,Number.MAX_SAFE_INTEGER],damp:.2}],ki=function(e){function t(e,n,r){var i;return _(this,t),(i=en(this,t,[e,n,r])).tagName=_n.REFRESH,i.dom=document.createElement("div"),i}return Xt(t,e),E(t,[{key:"defaultStyle",value:function(){return{display:"flex",flexDirection:"column",overflow:" hidden",boxSizing:"border-box",position:"relative"}}},{key:"bounceTime",get:function(){return this.props[In.BOUNCE_TIME]},set:function(e){this.props[In.BOUNCE_TIME]=e}},{key:"onRefresh",value:function(){this.props[In.ON_REFRESH]&&this.dispatchEvent(In.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,Kt(t,"beforeChildMount",this,3)([n,r]);case 1:n.tagName===_n.LIST&&(zn(n.dom,{position:"relative",zIndex:2}),this.pullRefresh=new Ai(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,Kt(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[In.ON_REFRESH]?this.onRefresh():setTimeout(function(){var t;null===(t=e.pullRefresh)||void 0===t||t.finish()},500)}}]);var n,r}(Dr),Si=function(e){function t(e,n,r){var i;return _(this,t),(i=en(this,t,[e,n,r])).tagName=_n.REFRESH_ITEM,i.dom=document.createElement("div"),i}return Xt(t,e),E(t)}(Dr),Ai=function(){return E(function e(t,n,r){_(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;Li([this.refreshContent],{transform:xi(0,"".concat(null!==(e=-this.refreshContent.clientHeight)&&void 0!==e?e:0,"px"))})}},{key:"finish",value:function(){Li([this.refreshContent],{transform:xi(0,"".concat(this.endYOffset,"px")),transition:Ci("transform","".concat(.2),wi)}),Li([this.scrollContent],{transform:xi(0,0),transition:Ci("transform","".concat(.2),wi)})}},{key:"start",value:function(){var e=this;this.isPullFirst||this.handlePull(0),Li([this.scrollContent,this.refreshContent],{transform:xi(0,"".concat(this.overScrollThreshold,"px")),transition:Ci("transform","".concat(.2),wi)}),this.moveLengthRecord=this.overScrollThreshold,this.refreshStatus=!0,setTimeout(function(){var t;null===(t=e.handleCallBack)||void 0===t||t.call(e)},bi)}},{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<Ei.length;n++){var r=Ei[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,zn(this.scrollContent,{transform:xi(0,"".concat(n,"px"))}),!this.refreshContent||this.refreshContent.tagName!==_n.REFRESH_ITEM||void 0!==this.refreshContent.style.top&&""!==this.refreshContent.style.top||(this.refreshHeadHeight=this.refreshContent.clientHeight,zn(this.refreshContent,{top:-this.refreshContent.clientHeight})),zn(this.refreshContent,{transform:xi(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,Li([this.scrollContent,this.refreshContent],{transition:Ci("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(Li([this.scrollContent,this.refreshContent],{transition:Ci("transform","".concat(.2),wi)}),!this.refreshStatus)return this.finish(),void setTimeout(function(){n.moveLengthRecord=0,n.touchMove=0},bi);null===(e=this.handleCallBack)||void 0===e||e.call(this),Li([this.scrollContent],{transform:xi(0,"".concat(this.overScrollThreshold,"px"))}),Li([this.refreshContent],{transform:xi(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 xi(e,t){return"translate(".concat(e,", ").concat(t,")")}function Ci(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"ease-out";return"".concat(e," ").concat(t,"s ").concat(n)}function Li(e,t){e.forEach(function(e){zn(e,t)})}var Ti=function(e){function t(e,n,r){var i;return _(this,t),(i=en(this,t,[e,n,r])).lastPosition=[0,0],i.lastTimestamp=0,i.scrollCaptureState=!1,i.tagName=_n.SCROLL_VIEW,i.dom=document.createElement("div"),i[In.SCROLL_EVENT_THROTTLE]=30,i[In.SCROLL_ENABLED]=!0,i}return Xt(t,e),E(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=Qt({},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[In.BOUNCES]},set:function(e){this.props[In.BOUNCES]=e}},{key:"horizontal",get:function(){return this.props[In.HORIZONTAL]},set:function(e){this.props[In.HORIZONTAL]=e,zn(this.dom,this.scrollStyle())}},{key:"pagingEnabled",get:function(){return this.props[In.PAGING_ENABLED]&&this.horizontal},set:function(e){this.props[In.PAGING_ENABLED]=e,zn(this.dom,this.scrollStyle())}},{key:"scrollEventThrottle",get:function(){var e;return null!==(e=this.props[In.SCROLL_EVENT_THROTTLE])&&void 0!==e?e:30},set:function(e){this.props[In.SCROLL_EVENT_THROTTLE]=e}},{key:"scrollIndicatorInsets",get:function(){return this.props[In.SCROLL_INDICATOR_INSETS]},set:function(e){this.props[In.SCROLL_INDICATOR_INSETS]=e}},{key:"contentContainerStyle",get:function(){return this.props[In.CONTENT_CONTAINER_STYLE]},set:function(e){var t,n;this.props[In.CONTENT_CONTAINER_STYLE]=e,1===(null===(t=this.dom)||void 0===t?void 0:t.childNodes.length)&&zn(null===(n=this.dom)||void 0===n?void 0:n.childNodes[0],this.contentContainerStyle)}},{key:"scrollEnabled",get:function(){return this.props[In.SCROLL_ENABLED]},set:function(e){this.props[In.SCROLL_ENABLED]=e,zn(this.dom,this.scrollStyle())}},{key:"onMomentumScrollBegin",value:function(e){this.props[In.ON_MOMENTUM_SCROLL_BEGIN]&&this.dispatchEvent(In.ON_MOMENTUM_SCROLL_BEGIN,e)}},{key:"onMomentumScrollEnd",value:function(e){this.props[In.ON_MOMENTUM_SCROLL_END]&&this.dispatchEvent(In.ON_MOMENTUM_SCROLL_END,e)}},{key:"onScroll",value:function(e){this.props[In.ON_SCROLL]&&this.dispatchEvent(In.ON_SCROLL,e)}},{key:"onScrollBeginDrag",value:function(e){this.props[In.ON_SCROLL_BEGIN_DRAG]&&this.dispatchEvent(In.ON_SCROLL_BEGIN_DRAG,e)}},{key:"onScrollEndDrag",value:function(e){this.props[In.ON_SCROLL_END_DRAG]&&this.dispatchEvent(In.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,Kt(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&&zn(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,Kt(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=oi(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];hi(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=si(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,hi(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 di(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&&ci(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}(Dr),Oi=function(e){function t(e,n,r){var i;return _(this,t),(i=en(this,t,[e,n,r])).tagName=_n.TEXT_INPUT,i.dom=document.createElement("input"),i.init(),i}return Xt(t,e),E(t,[{key:"defaultStyle",value:function(){return Qt(Qt({},Kt(t,"defaultStyle",this,3)([])),{},{outline:"none",fontFamily:""})}},{key:"updateProps",value:function(e,t){var n;this.firstUpdateStyle&&t(this,{style:this.defaultStyle()});var r=Qt({},e);(null===(n=null==e?void 0:e.style)||void 0===n?void 0:n.placeholderTextColor)&&(r.placeholderTextColor=qn(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[In.DEFAULT_VALUE])&&void 0!==e?e:""},set:function(e){this.props[In.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[In.EDITABLE]},set:function(e){var t,n;this.props[In.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[In.KEY_BOARD_TYPE]},set:function(e){var t,n;switch(this.props[In.KEY_BOARD_TYPE]=e,e){case Nn.numeric:n="number";break;case Nn.password:n="password";break;case Nn.email:n="email";break;case Nn.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[In.MAX_LENGTH]},set:function(e){var t;this.props[In.MAX_LENGTH]=e,null===(t=this.dom)||void 0===t||t.setAttribute("maxlength",String(e))}},{key:"multiline",get:function(){return this.props[In.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[In.MULTILINE]=e,this.changeToDomMode(e))}},{key:"numberOfLines",get:function(){return this.props[In.NUMBER_OF_LINES]},set:function(e){var t;this.props[In.NUMBER_OF_LINES]=e,null===(t=this.dom)||void 0===t||t.setAttribute("rows",String(e))}},{key:"placeholder",get:function(){return this.props[In.PLACEHOLDER]},set:function(e){var t;this.props[In.PLACEHOLDER]=e,null===(t=this.dom)||void 0===t||t.setAttribute("placeholder",e)}},{key:"placeholderTextColor",get:function(){return this.props[In.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[In.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[In.RETURN_KEY_TYPE]},set:function(e){var t;this.props[In.RETURN_KEY_TYPE]=e,null===(t=this.dom)||void 0===t||t.setAttribute("enterkeyhint",e)}},{key:"value",get:function(){return this.props[In.VALUE]},set:function(e){var t;this.props[In.VALUE]=e,null===(t=this.dom)||void 0===t||t.setAttribute("value",e)}},{key:"autoFocus",get:function(){return this.props[In.AUTO_FOCUS]},set:function(e){var t,n;this.props[In.AUTO_FOCUS]=e,this.props[In.AUTO_FOCUS]&&(null===(t=this.dom)||void 0===t||t.setAttribute("autofocus","true")),this.props[In.AUTO_FOCUS]&&(null===(n=this.dom)||void 0===n||n.removeAttribute("autofocus"))}},{key:"onBlur",value:function(e){this.props[In.ON_BLUR]&&this.dispatchEvent(In.ON_BLUR,e)}},{key:"onChangeText",value:function(e){this.props[In.ON_CHANGE_TEXT]&&this.dispatchEvent(In.ON_CHANGE_TEXT,e)}},{key:"onEndEditing",value:function(e){this.props[In.ON_END_EDITING]&&this.dispatchEvent(In.ON_END_EDITING,e)}},{key:"onSelectionChange",value:function(e){this.props[In.ON_SELECTION_CHANGE]&&this.dispatchEvent(In.ON_SELECTION_CHANGE,e)}},{key:"blurTextInput",value:function(){var e;null===(e=this.dom)||void 0===e||e.blur(),this.props[In.IS_FOCUSED]=!1}},{key:"focusTextInput",value:function(){var e;null===(e=this.dom)||void 0===e||e.focus(),this.props[In.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[In.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[In.IS_FOCUSED]=!0}},{key:"isFocused",value:function(e){e.resolve({value:Boolean(this.props[In.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}(Dr);var Pi=function(e){function t(e,n,r){var i;return _(this,t),(i=en(this,t,[e,n,r])).tagName=_n.VIEW,i.dom=document.createElement("div"),i}return Xt(t,e),E(t)}(Dr),Ii=function(e){function t(e,n,r){var i;return _(this,t),(i=en(this,t,[e,n,r])).pageIndex=0,i.scrollCaptureState=!1,i.lastPosition=[0,0],i.children=[],i.swipeRecognize=null,i.tagName=_n.VIEW_PAGER,i.dom=document.createElement("div"),i.init(),i}return Xt(t,e),E(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[In.INITIAL_PAGE]},set:function(e){this.props[In.INITIAL_PAGE]=e}},{key:"scrollEnabled",get:function(){return this.props[In.SCROLL_ENABLED]},set:function(e){this.props[In.SCROLL_ENABLED]=e}},{key:"onPageSelected",value:function(e){this.props[In.ON_PAGE_SELECTED]&&this.dispatchEvent(In.ON_PAGE_SELECTED,e)}},{key:"onPageScroll",value:function(e){this.props[In.ON_PAGE_SCROLL]&&this.dispatchEvent(In.ON_PAGE_SCROLL,e)}},{key:"onPageScrollStateChanged",value:function(e){this.props[In.ON_PAGE_SCROLL_STATE_CHANGED]&&this.dispatchEvent(In.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,Kt(t,"beforeChildMount",this,3)([n,r]);case 1:n instanceof Ri&&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){Kt(t,"beforeChildRemove",this,3)([e]),e instanceof Ri&&(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,Kt(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[In.INITIAL_PAGE]=0,this.props[In.SCROLL_ENABLED]=!0,this.hammer=new Rr.exports.Manager(this.dom,{inputClass:Rr.exports.TouchInput,touchAction:"auto"});var t=new Rr.exports.Swipe;this.hammer.add(t),this.hammer.on("swipe",function(t){e.swipeRecognize=t,t.srcEvent.stopPropagation()}),this.touchListenerRelease=oi(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=si(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(Ni(Fn.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(Ni(Fn.SETTL)),!this.swipeRecognize){e.next=1;break}return n=this.pageIndex,this.swipeRecognize.offsetDirection===Rr.exports.DIRECTION_RIGHT&&this.pageIndex>0?n-=1:this.swipeRecognize.offsetDirection===Rr.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=di(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,hi(this.dom,s,t,a,200,this.pageIndex,o);case 2:this.onPageSelected({position:o}),this.onPageScrollStateChanged(Ni(Fn.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=p(this.lastPosition),o=[t*r*-1,this.lastPosition[1]],this.onPageScrollStateChanged(Ni(Fn.SETTL)),a=function(e,t){s.updatePositionInfo(e,t),s.handleScroll()},e.next=1,hi(this.dom,a,i,o,n?200:0,this.pageIndex,t);case 1:this.onPageSelected({position:t}),this.onPageScrollStateChanged(Ni(Fn.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}(Dr);function Ni(e){return{pageScrollState:e}}var Ri=function(e){function t(e,n,r){var i;return _(this,t),(i=en(this,t,[e,n,r])).tagName=_n.VIEW_PAGER_ITEM,i.dom=document.createElement("div"),i}return Xt(t,e),E(t,[{key:"defaultStyle",value:function(){return{flexShrink:0,display:"flex",boxSizing:"border-box",position:"static"}}},{key:"updateProps",value:function(e,t){var n=Qt({},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,Kt(t,"beforeMount",this,3)([n,r]);case 1:zn(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}(Dr),Di=function(e){function t(e,n,r){var i;return _(this,t),(i=en(this,t,[e,n,r])).isMounted=!1,i.dom=document.createElement("iframe"),i.tagName=_n.WEB_VIEW,i.dom.onload=i.onLoadEnd.bind(i),i}return Xt(t,e),E(t,[{key:"source",get:function(){return this.props[In.SOURCE]},set:function(e){var t;this.props[In.SOURCE]=e,this.isMounted&&(this.onLoadStart(this.props[In.SOURCE]),this.dom.src=null!==(t=e.uri)&&void 0!==t?t:"",this.onLoad(this.props[In.SOURCE]))}},{key:"userAgent",get:function(){return this.props[In.USER_AGENT]},set:function(e){this.props[In.USER_AGENT]=e}},{key:"method",get:function(){return this.props[In.METHOD]},set:function(e){this.props[In.METHOD]=e}},{key:"onLoadStart",value:function(e){this.props[In.ON_LOAD_START]&&this.dispatchEvent(In.ON_LOAD_START,e)}},{key:"onLoad",value:function(e){this.props[In.ON_LOAD]&&this.dispatchEvent(In.ON_LOAD,e)}},{key:"onLoadEnd",value:function(){this.props[In.ON_LOAD_END]&&this.dispatchEvent(In.ON_LOAD_END,this.props[In.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,Kt(t,"beforeMount",this,3)([n,r]);case 1:this.props[In.SOURCE].uri&&(this.dom.src=null!==(i=this.props[In.SOURCE].uri)&&void 0!==i?i:""),this.dom.src&&this.onLoadStart(this.props[In.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[In.SOURCE])}},{key:"style",get:function(){return this.props[In.STYLE]},set:function(e){this.props[In.STYLE]=e}}]);var n}(Dr),Mi={head:{"text-overflow":"ellipsis",direction:"rtl"},clip:{"text-overflow":"clip"},middle:{"text-overflow":"ellipsis"},tail:{"text-overflow":"ellipsis"}},Fi=function(e){function t(e,n,r){var i;return _(this,t),(i=en(this,t,[e,n,r])).tagName=_n.TEXT,i.dom=document.createElement("span"),i.props[In.ELLIPSIZE_MODE]=On.TAIL,i}return Xt(t,e),E(t,[{key:"defaultStyle",value:function(){return Qt({boxSizing:"border-box",zIndex:0},Mi[this.ellipsizeMode])}},{key:"numberOfLines",get:function(){return this.props[In.NUMBER_OF_LINES]},set:function(e){this.props[In.NUMBER_OF_LINES]=e,1===e?this.dom&&zn(this.dom,{"white-space":"nowrap","word-break":"keep-all",display:"initial","-webkit-box-orient":"","-webkit-line-clamp":"",overflow:""}):this.dom&&zn(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[In.ELLIPSIZE_MODE]},set:function(e){this.props[In.ELLIPSIZE_MODE]=e,this.dom&&e&&zn(this.dom,Qt(Qt({},Mi[e]),{},{overflow:"hidden","white-space":"nowrap"}))}},{key:"text",get:function(){return this.props[In.VALUE]},set:function(e){if(this.props[In.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)}}])}(Dr),Bi=Object.freeze({__proto__:null,Image:Br,ListView:fi,Modal:_i,RefreshWrapper:ki,ScrollView:Ti,TextInput:Oi,View:Pi,ViewPager:Ii,WebView:Di,Text:Fi,ListViewItem:pi,ViewPagerItem:Ri,RefreshWrapperItemView:Si,HippyWebView:Dr});Hippy.web={},Hippy.web.Engine=ar;var ji,Vi=function(e){function t(){var e;return _(this,t),(e=en(this,t,arguments)).name="AnimationModule",e.animationPool={},e.animationSetPool={},e}return Xt(t,e),E(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 zi(this.context,e,n,t)))}},{key:"createAnimationSet",value:function(e,t){this.animationSetPool[e]||(this.animationSetPool[e]=new Gi(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):tr("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()):tr("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()):tr("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()):tr("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()):tr("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}}])}(lr);!function(e){e.START="onHippyAnimationStart",e.END="onHippyAnimationEnd",e.CANCEL="onHippyAnimationCancel",e.REPEAT="onHippyAnimationRepeat"}(ji||(ji={}));var Wi={perspective:1,rotate:1,rotateX:1,rotateY:1,rotateZ:1,scale:1,scaleX:1,scaleY:1,translateX:1,translateY:1,skewX:1};function Hi(e){switch(e){case"animationstart":return ji.START;case"animationend":return ji.END;case"animationrepeat":return ji.REPEAT;case"animationcancel":return ji.CANCEL;default:return e}}var Ui=function(){return E(function e(){_(this,e),this.events={}},[{key:"addAnimationEventListener",value:function(e,t){var n=Hi(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=Hi(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)})}}])}(),zi=function(e){function t(e,n,r,i){var o;return _(this,t),(o=en(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 Xt(t,e),E(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];Wi[t]&&(this.refCssProperty=t)}else this.refCssProperty=e}},{key:"useForSetProperty",get:function(){return this.refCssProperty?Wi[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=Xi(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=Xi(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(Yi(t),"}\n to {").concat(Yi(n),"}\n }"));return{keyFrame:qi(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=qi(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(qi(this.animationName).cssRule){var t=Xi(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);zn(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(qn(e)):"".concat(e).concat(t)}},{key:"handleAnimationStart",value:function(e){e.animationName===this.animationName&&this.dispatchEvent(ji.START),this.beginListener.forEach(function(e){e()})}},{key:"handleAnimationEnd",value:function(e){e.animationName===this.animationName&&this.dispatchEvent(ji.END),this.changeAnimationStatus("paused"),this.endListener.forEach(function(e){e()})}}])}(Ui),Gi=function(e){function t(e,n,r){var i;return _(this,t),(i=en(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 Xt(t,e),E(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(ji.START)}},{key:"handleAnimationEnd",value:function(){this.dispatchEvent(ji.END)}}])}(Ui);function Yi(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 qi(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 Xi(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 Ki=function(e){function t(){var e;return _(this,t),(e=en(this,t,arguments)).name="ClipboardModule",e}return Xt(t,e),E(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(){tr("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(){tr("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){tr("set clipboard failed")}finally{document.body.removeChild(n)}}}}])}(lr),$i=function(e){function t(){var e;return _(this,t),(e=en(this,t,arguments)).name="DeviceEventModule",e.listen=!1,e.moduleListener=[],e}return Xt(t,e),E(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)===Zi?-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))}}])}(lr),Zi="puppet";var Ji=function(e){function t(){var e;return _(this,t),(e=en(this,t,arguments)).name="ImageLoaderModule",e}return Xt(t,e),E(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(){}}])}(lr),Qi=function(e){function t(e){var n;return _(this,t),(n=en(this,t,[e])).name="NetInfo",n.handleOnlineChange=n.handleOnlineChange.bind(n),n}return Xt(t,e),E(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})}}])}(lr),eo=function(e){function t(){var e;return _(this,t),(e=en(this,t,arguments)).name="network",e}return Xt(t,e),E(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=$t(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(){}}])}(lr),to=function(e){function t(){var e;return _(this,t),(e=en(this,t,arguments)).moduleName="StorageModule",e.STORE_PRX_KEY="hippy-storage-",e}return Xt(t,e),E(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||(tr("not support localStorage"),!1)}}])}(lr),no=!1,ro=function(e){function t(e){var n;return _(this,t),(n=en(this,t,[e])).name="UIManagerModule",n.viewDictionary={},n.afterCreateAction=[],n.mode="sequential",n}return Xt(t,e),E(t,[{key:"init",value:function(){var e;!no&&((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)),no=!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 tr("create component failed, tagName is ".concat(p)),e.abrupt("continue",8);case 2:if(v=io(this.context,p,l,c)){e.next=3;break}return tr("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),nr();case 6:if(!i.has(l)){e.next=7;break}return e.abrupt("continue",8);case 7:p!==_n.LIST&&p!==_n.VIEW_PAGER||i.add(l),(null===(r=this.findViewById(c))||void 0===r?void 0:r.tagName)===_n.LIST&&i.add(c);case 8:o++,e.next=1;break;case 9:y=$t(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,p(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=$t(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){zn(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)||zn(n.dom,{position:"relative"}),"absolute"!==e.position||e.width||e.height||e.overflow||zn(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 tr("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)}),zn(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=$t(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,zn(n.dom,o))}}}]);var n,r,i,o,a,u}(lr);function io(e,t,n,r){if(e.engine.components[t])return new e.engine.components[t](e,n,r)}var oo=function(e){function t(){var e;return _(this,t),(e=en(this,t,arguments)).name="websocket",e.webSocketConnections={},e.connections=0,e}return Xt(t,e),E(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 ao(o,e.url,i),this.webSocketConnections[o].connect(this.dispatchEvent.bind(this)),t.resolve({code:0,id:o})}},{key:"send",value:function(e){e&&e.id&&this.webSocketConnections[e.id]&&this.webSocketConnections[e.id].disconnected&&(!e.data||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",Qt(Qt({},n),{},{id:e,type:t}))}},{key:"initialize",value:function(){}},{key:"destroy",value:function(){}}])}(lr),ao=function(){return E(function e(t,n,r){_(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)}}])}(),so={AnimationModule:Vi,ClipboardModule:Ki,DeviceEventModule:$i,ImageLoadModule:Ji,NetInfoModule:Qi,NetworkModule:eo,StorageModule:to,UIManagerModule:ro,WebSocketModule:oo};function uo(e,t,n){return t=Gt(t),zt(e,lo()?Reflect.construct(t,n||[],Gt(e).constructor):t.apply(e,n))}function lo(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(lo=function(){return!!e})()}ar.coreModules=so,ar.coreComponents=Bi;var co=function(e){function t(e,n,r){var i;return _(this,t),(i=uo(this,t,[e,n,r]))._originalDisplay=void 0,i}return Xt(t,e),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=Yt(Gt(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)}}])}(Dr);function ho(e,t,n){return t=Gt(t),zt(e,fo()?Reflect.construct(t,n||[],Gt(e).constructor):t.apply(e,n))}function fo(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(fo=function(){return!!e})()}function po(e,t,n,r){var i=Yt(Gt(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof i?function(e){return i.apply(n,e)}:i}var vo=function(e){function t(e,n,r){var i;return _(this,t),(i=ho(this,t,[e,n,r])).tagName="div",i.dom=document.createElement("div"),i._currentSid=null,i._bindDOMEvents(),i}return Xt(t,e),E(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&&(0,v.unregisterComponentBySid)(this._currentSid),this._currentSid=n,void(n?((0,v.registerComponentBySid)(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),po(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,Je.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,Je.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=po(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&&((0,v.unregisterComponentBySid)(this._currentSid),this._currentSid=null)}},{key:"destroy",value:function(){var e;null===(e=this.beforeUnmount)||void 0===e||e.call(this)}}])}(co);function yo(e,t){var n;return n=function(e){function n(e,r,i){var o;return _(this,n),(o=ho(this,n,[e,r,i])).dom&&(o.dom.setAttribute("data-component-name",t),o._originalComponentName=t),o}return Xt(n,e),E(n)}(e),(0,h.A)(n,"componentName",t),n}function mo(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 go(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mo(Object(n),!0).forEach(function(t){(0,h.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mo(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function _o(e,t,n){return t=Gt(t),zt(e,bo()?Reflect.construct(t,n||[],Gt(e).constructor):t.apply(e,n))}function bo(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(bo=function(){return!!e})()}function wo(e,t,n,r){var i=Yt(Gt(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof i?function(e){return i.apply(n,e)}:i}var Eo=function(e){function t(e,n,r){var i;return _(this,t),(i=_o(this,t,[e,n,r])).dom.setAttribute("data-component-name","ESPageRootView"),i._originalComponentName="ESPageRootView",i}return Xt(t,e),E(t,[{key:"defaultStyle",value:function(){return go(go({},wo(t,"defaultStyle",this,1)?wo(t,"defaultStyle",this,3)([]):{}),{},{backgroundColor:"#000000"})}}])}(vo);function ko(e,t,n){return t=Gt(t),zt(e,So()?Reflect.construct(t,n||[],Gt(e).constructor):t.apply(e,n))}function So(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(So=function(){return!!e})()}(0,h.A)(Eo,"componentName","ESPageRootView"),window.__HIPPY_COMPONENT_REGISTRY__=window.__HIPPY_COMPONENT_REGISTRY__||new Map;var Ao=function(e){function t(e,n,r){var i;return _(this,t),(i=ko(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 Xt(t,e),E(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("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=Yt(Gt(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.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._innerSpan.textContent=e||""),this._autoWidth&&this._scheduleAutoWidthSync(!0)}},{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:"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}}])}(co);function xo(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 Co(e,t,n){return t=Gt(t),zt(e,Lo()?Reflect.construct(t,n||[],Gt(e).constructor):t.apply(e,n))}function Lo(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Lo=function(){return!!e})()}function To(e,t,n,r){var i=Yt(Gt(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof i?function(e){return i.apply(n,e)}:i}var Oo=function(e){function t(e,n,r){var i;return _(this,t),(i=Co(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._layoutObserver=null,i._boundLoadHandler=null,i._boundErrorHandler=null,i._bindImageEvents(),(0,v.registerComponent)(n,i),i}return Xt(t,e),E(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?xo(Object(n),!0).forEach(function(t){(0,h.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xo(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},n);delete r.resizeMode,Object.keys(r).length>0&&To(t,"updateProperty",this,3)([e,r])}else To(t,"updateProperty",this,3)([e,n]);break;default:"string"==typeof n&&n.startsWith("${")&&this.dom.setAttribute(e,n),To(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,Je.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};ee(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};ee(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=To(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=To(t,"destroy",this,3))||void 0===e||e([])}}])}(co);function Po(e,t,n){return t=Gt(t),zt(e,Io()?Reflect.construct(t,n||[],Gt(e).constructor):t.apply(e,n))}function Io(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Io=function(){return!!e})()}window.__HIPPY_COMPONENT_REGISTRY__=window.__HIPPY_COMPONENT_REGISTRY__||new Map;var No=function(e){function t(e,n,r){var i;return _(this,t),(i=Po(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 ",(0,v.registerComponent)(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 Xt(t,e),E(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=Yt(Gt(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=Ro(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===Ro(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=Ro(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===Ro(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",Do(c),a.component&&a.component.props&&this._bindComponentPropsToNode(c,a.component.props,e),this._bindDataToNode(c,e),Mo(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,xt.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,xt.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=""}}])}(co);function Ro(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 Do(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 Mo(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 Fo(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=Ro(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=Ro(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=Ro(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",Do(c),u=c,l=e,(0,xt.bindTemplateDataToNode)(u,l),Mo(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,xt.u6)(n)}))}}}function Bo(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 jo={enabled:!1,duration:300},Vo=new Set;function Wo(){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Bo(Object(n),!0).forEach(function(t){(0,h.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bo(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},jo)}var Ho=function(){return E(function e(t){_(this,e),this.context=t,this.name="",this.mode="normal"},[{key:"setFadeEnabled",value:function(e){jo.enabled=!0===e,Vo.forEach(function(e){e&&"function"==typeof e.updateFadeConfig&&e.updateFadeConfig(jo)});for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return A(n,null)}},{key:"setFadeDuration",value:function(e){jo.duration="number"==typeof e?e:300,Vo.forEach(function(e){e&&"function"==typeof e.updateFadeConfig&&e.updateFadeConfig(jo)});for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return A(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 A(t,jo)}},{key:"init",value:(e=l(d().mark(function e(){var t,n,r,i,o=arguments;return d().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 Ho;function Uo(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 zo(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)?zo(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 zo(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 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 Yo(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,h.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 qo(e,t,n){return t=Gt(t),zt(e,Xo()?Reflect.construct(t,n||[],Gt(e).constructor):t.apply(e,n))}function Xo(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Xo=function(){return!!e})()}function Ko(e,t,n,r){var i=Yt(Gt(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof i?function(e){return i.apply(n,e)}:i}var $o=function(e){function t(e,n,r){var i,o;return _(this,t),(i=qo(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=Wo(),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,(0,v.registerComponent)(n,i),o=i,Vo.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 Xt(t,e),E(t,[{key:"updateFadeConfig",value:function(e){this._fadeConfig=Yo({},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:"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),Ko(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}),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),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(d().mark(function e(n,r){var i,o,a,s,u,l;return d().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,Ko(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}),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),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,Ko(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:"_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;if(this._singletonTemplates.forEach(function(n){if(n.dom){var r=null;if(null!==n.type&&void 0!==n.type&&(r=e._listData.find(function(e){return e.type===n.type})),!r)return void(n.dom.style.display="none");n.dom.style.display="",null!==r.type&&void 0!==r.type?t.add(r.type):null!==n.type&&void 0!==n.type&&t.add(n.type),r.style&&e._applyStyleToElement(n.dom,r.style),e._itemContainer.appendChild(n.dom)}}),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)}}),void 0!==this._selectedPosition&&this._selectedPosition>=0){var r=this._itemContainer.children;if(this._selectedPosition<r.length){var i=r[this._selectedPosition];if(i&&!i.hasAttribute("selected")){i.setAttribute("selected","true");for(var o=i.children,a=0;a<o.length;a++)o[a].setAttribute("selected","true");i.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:"_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:"_createItemFromData",value:function(e,t){var n=this,r=document.createElement("div");r.setAttribute("data-index",t),r.setAttribute("data-position",t),r.__fastListViewInstance=this;var i=void 0!==e.type?e.type:null,o=this._templateChildren.find(function(e){return e.type===i}),a=window.__QT_SHARED_TEMPLATES__,s=a&&null!=i?a.get(i):null;if(!o&&s&&s.dom&&(o=s),o||(o=this._templateChildren.find(function(e){return null===e.type})),!o&&a&&a.size>0){var u=a.values().next().value;u&&u.dom&&(o=u)}if(!o&&this._templateChildren.length>0&&(o=this._templateChildren[0]),o&&o.dom){var l=o.dom.cloneNode(!0);l.removeAttribute("data-template"),l.removeAttribute("id"),l.style.position="relative",l.style.left="auto",l.style.top="auto",l.style.display="",o.component&&o.component.props&&this._bindComponentPropsToNode(l,o.component.props,e,{itemList:this._listData}),this._bindDataToNode(l,e,{itemList:this._listData}),r.appendChild(l),requestAnimationFrame(function(){n._processChildListData(r),(0,xt.u6)(r)})}if(0===this._templateChildren.length){var c=e.text||e.title||e.name||"Item ".concat(t),d=document.createElement("span");d.textContent=c,d.style.cssText="color: white; font-size: 14px; padding: 5px; background: #333; margin: 5px; border-radius: 4px;",r.appendChild(d)}if(e.decoration){var h=e.decoration;void 0!==h.top&&(r.style.marginTop=h.top+"px"),void 0!==h.left&&(r.style.marginLeft=h.left+"px"),void 0!==h.right&&(r.style.marginRight=h.right+"px"),void 0!==h.bottom&&(r.style.marginBottom=h.bottom+"px")}return r._itemData=e,r._itemPosition=t,r.addEventListener("click",function(i){var o=n._findNestedItemMeta(null==i?void 0:i.target,r);o&&o.itemData!==e&&e&&"object"==typeof e&&Array.isArray(e.itemList)?n._dispatchItemClick(o.position,o.itemData,t):n._dispatchItemClick(t,e)}),this._fadeConfig.enabled&&(r.style.opacity="0",r.style.transition="opacity ".concat(this._fadeConfig.duration,"ms ease-in-out"),requestAnimationFrame(function(){requestAnimationFrame(function(){r.style.opacity="1"})})),r}},{key:"_bindComponentPropsToNode",value:function(e,t,n){var r=this;if(t&&n){var i=Yo(Yo({},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,xt.Hd)(o,i),s=n.toLowerCase();if("list"===s||"listdata"===s){if(void 0!==a&&Array.isArray(a)||(a=(0,xt.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,xt.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,xt.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?Fo(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){var n=[],r=Array.from(e.children||[]).filter(function(e){return e!==t});return r.forEach(function(e){var t,r,i=Zo(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=Zo(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),i=window.__QT_SHARED_TEMPLATES__;if(n.innerHTML="",0===t.length)return;var o=new Set,a=r.filter(function(e){return e.singleton}),s=r.filter(function(e){return!e.singleton});a.forEach(function(e){var r=null;(r=null!==e.type&&void 0!==e.type?t.find(function(t){return(null==t?void 0:t.type)===e.type})||null:t[0]||null)?(e.dom.style.display="",Jo(e.dom,r,t),Do(e.dom),n.appendChild(e.dom),null!==r.type&&void 0!==r.type&&o.add(r.type)):e.dom.style.display="none"});var u=s.length>0?s:r;t.forEach(function(e,r){var a;if(!o.has(null==e?void 0:e.type)){var s=u.find(function(t){return t.type===(null==e?void 0:e.type)});if(!s&&i&&null!==(null==e?void 0:e.type)&&void 0!==(null==e?void 0:e.type)){var l=i.get(e.type);null!=l&&l.dom&&(s=l)}if(s||(s=u.find(function(e){return null===e.type})),!s&&i&&i.size>0){var c=i.values().next().value;null!=c&&c.dom&&(s=c)}if(s||(s=u[0]),null!==(a=s)&&void 0!==a&&a.dom){var d=document.createElement("div");if(d.setAttribute("data-index",r),d.setAttribute("data-position",r),d._itemData=e,d._itemPosition=r,e&&e.decoration&&"object"==typeof e.decoration){var h=e.decoration;void 0!==h.top&&(d.style.marginTop=h.top+"px"),void 0!==h.left&&(d.style.marginLeft=h.left+"px"),void 0!==h.right&&(d.style.marginRight=h.right+"px"),void 0!==h.bottom&&(d.style.marginBottom=h.bottom+"px")}var f=s.dom.cloneNode(!0);f.removeAttribute("data-template"),f.removeAttribute("data-singleton"),f.removeAttribute("id"),f.style.display="",f.style.position="relative",Jo(f,e,t),Do(f),d.appendChild(f),n.appendChild(d)}}}),requestAnimationFrame(function(){return(0,xt.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]=Yo(Yo({},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:"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,Vo.delete(e),Ko(t,"destroy",this,1)&&Ko(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,p(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,p(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,p(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,p(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 E=_+.5*b;w&&(E-=1e3),E<l&&(l=E,s=f,u=d)}}else{var k=h.querySelectorAll('[focusable="true"]');0===k.length&&"true"===h.getAttribute("focusable")&&h!==e&&k.push(h);var S,A=Uo(k);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 L={x:C.left+C.width/2,y:C.top+C.height/2},T=L.x-o,O=L.y-a,P=!1;switch(t){case"up":P=O<-5;break;case"down":P=O>5;break;case"left":P=T<-5;break;case"right":P=T>5}if(P){var I=Math.sqrt(T*T+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,xt.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}(co);function Zo(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 Jo(e,t,n){(0,xt.bindTemplateDataToNode)(e,t,{scope:{itemList:n},onListData:function(e,t){e._qtListData=t,e.setAttribute("data-has-list","true")}})}function Qo(e,t,n){return t=Gt(t),zt(e,ea()?Reflect.construct(t,n||[],Gt(e).constructor):t.apply(e,n))}function ea(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(ea=function(){return!!e})()}var ta=function(e){function t(e,n,r){var i;return _(this,t),(i=Qo(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 Xt(t,e),E(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=Yt(Gt(1&(a=3)?r.prototype:r),i,o),2&a&&"function"==typeof s?function(e){return s.apply(o,e)}:s)([e,n])}}])}(co);function na(e,t,n){return t=Gt(t),zt(e,ra()?Reflect.construct(t,n||[],Gt(e).constructor):t.apply(e,n))}function ra(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(ra=function(){return!!e})()}var ia={alpha:"opacity",rotation:"rotate",rotationX:"rotateX",rotationY:"rotateY",rotationZ:"rotateZ",scaleX:"scaleX",scaleY:"scaleY",scaleZ:"scaleZ",translationX:"translateX",translationY:"translateY",translationZ:"translateZ"},oa={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"},aa=function(e){function t(e,n,r){var i;return _(this,t),(i=na(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 Xt(t,e),E(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)||f(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],p=d[1],v=d[2],y=(d[3],d[4],{id:i,propertyName:u,values:c,duration:h,repeatMode:p,repeatCount:v,interpolator:d[5]});this._animators.set(i,y)}},{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=oa[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=oa[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=ia[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)}}])}(co);function sa(e,t,n){return t=Gt(t),zt(e,ua()?Reflect.construct(t,n||[],Gt(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})()}var la=function(e){function t(e,n,r){var i;return _(this,t),(i=sa(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 Xt(t,e),E(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=Yt(Gt(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(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){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}(co);function ca(e,t,n){return t=Gt(t),zt(e,da()?Reflect.construct(t,n||[],Gt(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})()}function ha(e,t,n,r){var i=Yt(Gt(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 fa=null,pa=function(e){function t(e,n,r){var i;return _(this,t),(i=ca(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 Xt(t,e),E(t,[{key:"_render",value:(r=l(d().mark(function e(){var t,r,i=this;return d().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(fa){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:fa=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),fa.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()):ha(t,"updateProperty",this,3)([e,n])}},{key:"init",value:function(e){ha(t,"init",this,3)([e]),this._content=e.content||"",this._render()}}]);var r}(co);function va(e,t,n){return t=Gt(t),zt(e,ya()?Reflect.construct(t,n||[],Gt(e).constructor):t.apply(e,n))}function ya(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(ya=function(){return!!e})()}function ma(e,t,n,r){var i=Yt(Gt(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 ga=function(e){function t(e,n,r){var i;return _(this,t),(i=va(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 Xt(t,e),E(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:ma(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){ma(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()}}])}(co);function _a(e,t,n){return t=Gt(t),zt(e,ba()?Reflect.construct(t,n||[],Gt(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 wa(e,t,n,r){var i=Yt(Gt(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 Ea=function(e){function t(e,n,r){var i;return _(this,t),(i=_a(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 Xt(t,e),E(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:wa(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;wa(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()})}}])}(co);function ka(e,t,n){return t=Gt(t),zt(e,Sa()?Reflect.construct(t,n||[],Gt(e).constructor):t.apply(e,n))}function Sa(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Sa=function(){return!!e})()}var Aa=function(e){function t(e,n,r){var i;return _(this,t),(i=ka(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",(0,v.registerComponent)(n,i),i}return Xt(t,e),E(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=Yt(Gt(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")}}}}])}(co);function xa(e,t,n){return t=Gt(t),zt(e,Ca()?Reflect.construct(t,n||[],Gt(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})()}function La(e,t,n,r){var i=Yt(Gt(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof i?function(e){return i.apply(n,e)}:i}var Ta=function(e){function t(e,n,r){var i;return _(this,t),(i=xa(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=[],(0,v.registerComponent)(n,i),i}return Xt(t,e),E(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(d().mark(function e(n,r){return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n&&n.dom&&this.addTemplateChild(n),e.next=1,La(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),La(t,"updateProperty",this,3)([e,n])}}]);var n}(co);function Oa(e,t,n){return t=Gt(t),zt(e,Pa()?Reflect.construct(t,n||[],Gt(e).constructor):t.apply(e,n))}function Pa(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Pa=function(){return!!e})()}function Ia(e,t,n,r){var i=Yt(Gt(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof i?function(e){return i.apply(n,e)}:i}var Na=function(e){function t(e,n,r){var i;return _(this,t),(i=Oa(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,(0,v.registerComponent)(n,i),i}return Xt(t,e),E(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:Ia(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(),Ia(t,"destroy",this,3)([])}}])}(co);function Ra(e,t,n){return t=Gt(t),zt(e,Da()?Reflect.construct(t,n||[],Gt(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})()}function Ma(e,t,n,r){var i=Yt(Gt(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof i?function(e){return i.apply(n,e)}:i}var Fa=function(e){function t(e,n,r){var i;return _(this,t),(i=Ra(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={},(0,v.registerComponent)(n,i),i}return Xt(t,e),E(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(d().mark(function e(n,r){return d().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,Ma(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:Ma(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}(co);function Ba(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 ja(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ba(Object(n),!0).forEach(function(t){(0,h.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ba(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Va(e,t,n){return t=Gt(t),zt(e,Wa()?Reflect.construct(t,n||[],Gt(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})()}var Ha=function(e){function t(e,n,r){var i;return _(this,t),(i=Va(this,t,[e,n,r])).tagName="TabsView",i.dom=document.createElement("div"),i.dom.setAttribute("data-component-name","TabsView"),(0,v.registerComponent)(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._childrenByName=new Map,i._childrenContainer=i.dom,i}return Xt(t,e),E(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._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._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._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:"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=Yt(Gt(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=ja(ja({},s),{},{data:u}),this._tabItems=Array.isArray(u)?u:[],this._currentPageIndex=null!==(e=s.defaultIndex)&&void 0!==e?e:0,this._focusIndex=null!==(t=null!==(n=s.defaultFocusIndex)&&void 0!==n?n:s.focusIndex)&&void 0!==t?t:this._currentPageIndex;var l=this.getChildByName("tabList");l&&l.setListData&&l.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),setTimeout(function(){r._setInitialTabFocus()},100)})}},{key:"_setInitialTabFocus",value:function(){var e=this.getChildByName("tabList");if(e&&e.dom){var t=this._focusIndex,r=e._itemContainer;if(r||(r=e.dom.querySelector(".flex-view-item-container")),r){var i=r.children;if(i.length>0&&t>=0&&t<i.length){var o=i[t],a=o.querySelector('[focusable="true"], [focusable="1"], [focusable]')||o;return a.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(a)))}}var s=e.dom.querySelectorAll('[focusable="true"], [focusable="1"], [focusable]'),u=Array.from(s).filter(function(e){return"true"!==e.getAttribute("data-template")&&"none"!==e.style.display&&!e.closest('[data-template="true"]')});if(u.length>0&&t>=0&&t<u.length){var l=u[t];l.setAttribute("autofocus","true"),n.g.__TV_FOCUS_MANAGER__&&(n.g.__TV_FOCUS_MANAGER__.updateFocusableElements(),n.g.__TV_FOCUS_MANAGER__._doFocusElement(l))}}}},{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=ja(ja({},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;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){this._focusIndex=e,this.setCurrentPage(e)}},{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)}}}])}(co);function Ua(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 za(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ua(Object(n),!0).forEach(function(t){(0,h.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ua(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ga(e,t,n){return t=Gt(t),zt(e,Ya()?Reflect.construct(t,n||[],Gt(e).constructor):t.apply(e,n))}function Ya(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Ya=function(){return!!e})()}(0,h.A)(Ha,"_instanceCount",0);var qa=function(e){function t(e,n,r){var i;return _(this,t),(i=Ga(this,t,[e,n,r])).tagName="RecyclerViewPager",i.dom=document.createElement("div"),i.dom.setAttribute("data-component-name","RecyclerViewPager"),(0,v.registerComponent)(n,i),i._pages=new Map,i._currentIndex=0,i._direction="horizontal",i._contentView=null,i._childrenContainer=i.dom,i}return Xt(t,e),E(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=Yt(Gt(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,128)).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,za(za({},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}}])}(co);function Xa(e,t,n){return t=Gt(t),zt(e,Ka()?Reflect.construct(t,n||[],Gt(e).constructor):t.apply(e,n))}function Ka(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Ka=function(){return!!e})()}function $a(e,t,n,r){var i=Yt(Gt(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof i?function(e){return i.apply(n,e)}:i}var Za=function(e){function t(e,n,r){var i;return _(this,t),(i=Xa(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 ",(0,v.registerComponent)(n,i),i._visible=!0,i._transparent=!0,i}return Xt(t,e),E(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:$a(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=$a(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",{})}}])}(co);function Ja(e,t,n){return t=Gt(t),zt(e,Qa()?Reflect.construct(t,n||[],Gt(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 es(e,t,n,r){var i=Yt(Gt(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 _(this,t),(i=Ja(this,t,[e,n,r])).tagName="ListView",i.dom=document.createElement("div"),i.dom.setAttribute("data-component-name","ListView"),i.dom.__listViewInstance=i,(0,v.registerComponent)(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="row",i._children=[],i._startGradient=null,i._endGradient=null,i}return Xt(t,e),E(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;es(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||"",es(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),es(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=[],es(t,"destroy",this,3)([])}}])}(co),ns=function(e){function t(e,n,r){var i;return _(this,t),(i=Ja(this,t,[e,n,r])).tagName="ListViewItem",i.dom=document.createElement("div"),i.dom.setAttribute("data-component-name","ListViewItem"),(0,v.registerComponent)(n,i),i.height=0,i.isDirty=!1,i.dirtyListener=null,i}return Xt(t,e),E(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),es(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;es(t,"mounted",this,3)([]),requestAnimationFrame(function(){e.height=e.getItemHeight()})}},{key:"destroy",value:function(){this.dirtyListener=null,es(t,"destroy",this,3)([])}}])}(co);function rs(e,t,n){return t=Gt(t),zt(e,is()?Reflect.construct(t,n||[],Gt(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=Yt(Gt(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 _(this,t),(i=rs(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(),(0,v.registerComponent)(n,i),i}return Xt(t,e),E(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:os(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=[],os(t,"destroy",this,3)([])}}])}(co);function ss(e,t,n){return t=Gt(t),zt(e,us()?Reflect.construct(t,n||[],Gt(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})()}var ls=function(e){function t(e,n,r){var i;return _(this,t),(i=ss(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="",(0,v.registerComponent)(n,i),i}return Xt(t,e),E(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=Yt(Gt(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,Je.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}}])}(co),cs=function(){return E(function e(t){_(this,e),this.context=t,this.name="",this.mode="normal"},[{key:"getDeviceInfo",value:(v=l(d().mark(function e(){var t,n,r,i=arguments;return d().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",A(n,{}));case 1:case"end":return e.stop()}},e)})),function(){return v.apply(this,arguments)})},{key:"getESSDKInfo",value:(p=l(d().mark(function e(){var t,r,i,o,a=arguments;return d().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",A(i,t));case 1:case"end":return e.stop()}},e)})),function(){return p.apply(this,arguments)})},{key:"getESSDKVersionCode",value:(f=l(d().mark(function e(){var t,n,r,i=arguments;return d().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",A(n,2.8));case 1:case"end":return e.stop()}},e)})),function(){return f.apply(this,arguments)})},{key:"getESSDKVersionName",value:(h=l(d().mark(function e(){var t,n,r,i=arguments;return d().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",A(n,"web"));case 1:case"end":return e.stop()}},e)})),function(){return h.apply(this,arguments)})},{key:"getESPackageName",value:(c=l(d().mark(function e(){var t,n,r,i,o,a=arguments;return d().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",A(i,n));case 1:case"end":return e.stop()}},e)})),function(){return c.apply(this,arguments)})},{key:"getESMiniProgramPath",value:(u=l(d().mark(function e(){var t,n,r,i=arguments;return d().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",A(n,""));case 1:case"end":return e.stop()}},e)})),function(){return u.apply(this,arguments)})},{key:"getESAppFilePath",value:(s=l(d().mark(function e(){var t,n,r,i=arguments;return d().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",A(n,""));case 1:case"end":return e.stop()}},e)})),function(){return s.apply(this,arguments)})},{key:"getESAppRuntimePath",value:(a=l(d().mark(function e(){var t,n,r,i=arguments;return d().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",A(n,"/"));case 1:case"end":return e.stop()}},e)})),function(){return a.apply(this,arguments)})},{key:"getSupportSchemes",value:(o=l(d().mark(function e(){var t,n,r,i=arguments;return d().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",A(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 A(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 A(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 A(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 A(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 A(t,null)}},{key:"launchESPage",value:(i=l(d().mark(function e(){var t,n,r,i=arguments;return d().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",A(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 A(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 A(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 A(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 A(t,null)}},{key:"isModuleRegistered",value:(r=l(d().mark(function e(){var t,n,r,i=arguments;return d().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",A(n,!1));case 1:case"end":return e.stop()}},e)})),function(){return r.apply(this,arguments)})},{key:"isComponentRegistered",value:(t=l(d().mark(function e(){var t,n,r,i=arguments;return d().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",A(n,!1));case 1:case"end":return e.stop()}},e)})),function(){return t.apply(this,arguments)})},{key:"init",value:(e=l(d().mark(function e(){var t,n,r,i=arguments;return d().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",x(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,c,h,f,p,v}();function ds(){var e=globalThis;return e&&e.__localStorage||e&&e.localStorage||null}function hs(e){return fs.apply(this,arguments)}function fs(){return(fs=l(d().mark(function e(t){var n,r,i;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if((n=ds())&&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 ps(e,t){return vs.apply(this,arguments)}function vs(){return(vs=l(d().mark(function e(t,n){var r,i;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if((r=ds())&&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 ys=function(){return E(function e(t){_(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(d().mark(function e(t){var n,r,i,o=arguments;return d().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",A(r,!0));case 1:case"end":return e.stop()}},e,this)})),function(e){return h.apply(this,arguments)})},{key:"initESSharedPreferences",value:(c=l(d().mark(function e(t){var n,r,i,o=arguments;return d().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",A(r,!0));case 1:case"end":return e.stop()}},e,this)})),function(e){return c.apply(this,arguments)})},{key:"getBoolean",value:(u=l(d().mark(function e(t,n){var r,i,o,a,s=arguments;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,hs(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",A(o,!!n));case 2:if("true"!==r){e.next=3;break}return e.abrupt("return",A(o,!0));case 3:if("false"!==r){e.next=4;break}return e.abrupt("return",A(o,!1));case 4:if("1"!==r){e.next=5;break}return e.abrupt("return",A(o,!0));case 5:if("0"!==r){e.next=6;break}return e.abrupt("return",A(o,!1));case 6:return e.abrupt("return",A(o,!!n));case 7:case"end":return e.stop()}},e,this)})),function(e,t){return u.apply(this,arguments)})},{key:"putBoolean",value:(s=l(d().mark(function e(t,n){var r,i,o,a,s=arguments;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,ps(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",A(o,r));case 2:case"end":return e.stop()}},e,this)})),function(e,t){return s.apply(this,arguments)})},{key:"getInt",value:(a=l(d().mark(function e(t,n){var r,i,o,a,s,u=arguments;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,hs(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",A(o,Number(n)||0));case 2:return s=Number.parseInt(String(r),10),e.abrupt("return",A(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(d().mark(function e(t,n){var r,i,o,a,s=arguments;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,ps(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",A(o,r));case 2:case"end":return e.stop()}},e,this)})),function(e,t){return o.apply(this,arguments)})},{key:"getLong",value:(i=l(d().mark(function e(t,n){var r,i,o,a,s,u=arguments;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,hs(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",A(o,Number(n)||0));case 2:return s=Number.parseInt(String(r),10),e.abrupt("return",A(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(d().mark(function e(t,n){var r,i,o,a,s=arguments;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,ps(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",A(o,r));case 2:case"end":return e.stop()}},e,this)})),function(e,t){return r.apply(this,arguments)})},{key:"getString",value:(n=l(d().mark(function e(t,n){var r,i,o,a,s=arguments;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,hs(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",A(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(d().mark(function e(t,n){var r,i,o,a,s=arguments;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,ps(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",A(o,r));case 2:case"end":return e.stop()}},e,this)})),function(e,n){return t.apply(this,arguments)})},{key:"init",value:(e=l(d().mark(function e(){var t,n,r,i=arguments;return d().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",x(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,c,h}();function ms(){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 gs=function(){return E(function e(t){_(this,e),this.context=t,this.name="",this.mode="normal"},[{key:"getDeviceInfo",value:(a=l(d().mark(function e(){var t,n,r,i,o,a,s,u,l=arguments;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=ms(),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",A(s,o));case 1:case"end":return e.stop()}},e)})),function(){return a.apply(this,arguments)})},{key:"getSupportSchemes",value:(o=l(d().mark(function e(){var t,n,r,i=arguments;return d().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",A(n,[]));case 1:case"end":return e.stop()}},e)})),function(){return o.apply(this,arguments)})},{key:"getVisiblePageSize",value:(i=l(d().mark(function e(){var t,n,r,i=arguments;return d().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",A(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(d().mark(function e(){var t,n,r,i=arguments;return d().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",A(n,null));case 1:case"end":return e.stop()}},e)})),function(){return r.apply(this,arguments)})},{key:"launchNativeApp",value:(n=l(d().mark(function e(){var t,n,r,i=arguments;return d().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",A(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 A(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 A(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 A(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 A(t,null)}},{key:"callReflect",value:(t=l(d().mark(function e(){var t,n,r,i=arguments;return d().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",A(n,null));case 1:case"end":return e.stop()}},e)})),function(){return t.apply(this,arguments)})},{key:"init",value:(e=l(d().mark(function e(){var t,n,r,i=arguments;return d().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",x(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 _s(){var e=globalThis;return e&&e.__localStorage||e&&e.localStorage||null}function bs(e){return ws.apply(this,arguments)}function ws(){return(ws=l(d().mark(function e(t){var n,r,i;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if((n=_s())&&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 Es(e,t){return ks.apply(this,arguments)}function ks(){return(ks=l(d().mark(function e(t,n){var r,i;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if((r=_s())&&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 Ss=function(){return E(function e(t){_(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(d().mark(function e(t){var n,r,i,o=arguments;return d().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",A(r,!0));case 1:case"end":return e.stop()}},e,this)})),function(e){return h.apply(this,arguments)})},{key:"initESSharedPreferences",value:(c=l(d().mark(function e(t){var n,r,i,o=arguments;return d().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",A(r,!0));case 1:case"end":return e.stop()}},e,this)})),function(e){return c.apply(this,arguments)})},{key:"getBoolean",value:(u=l(d().mark(function e(t,n){var r,i,o,a,s=arguments;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,bs(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",A(o,!!n));case 2:if("true"!==r){e.next=3;break}return e.abrupt("return",A(o,!0));case 3:if("false"!==r){e.next=4;break}return e.abrupt("return",A(o,!1));case 4:if("1"!==r){e.next=5;break}return e.abrupt("return",A(o,!0));case 5:if("0"!==r){e.next=6;break}return e.abrupt("return",A(o,!1));case 6:return e.abrupt("return",A(o,!!n));case 7:case"end":return e.stop()}},e,this)})),function(e,t){return u.apply(this,arguments)})},{key:"putBoolean",value:(s=l(d().mark(function e(t,n){var r,i,o,a,s=arguments;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,Es(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",A(o,r));case 2:case"end":return e.stop()}},e,this)})),function(e,t){return s.apply(this,arguments)})},{key:"getInt",value:(a=l(d().mark(function e(t,n){var r,i,o,a,s,u=arguments;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,bs(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",A(o,Number(n)||0));case 2:return s=Number.parseInt(String(r),10),e.abrupt("return",A(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(d().mark(function e(t,n){var r,i,o,a,s=arguments;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,Es(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",A(o,r));case 2:case"end":return e.stop()}},e,this)})),function(e,t){return o.apply(this,arguments)})},{key:"getLong",value:(i=l(d().mark(function e(t,n){var r,i,o,a,s,u=arguments;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,bs(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",A(o,Number(n)||0));case 2:return s=Number.parseInt(String(r),10),e.abrupt("return",A(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(d().mark(function e(t,n){var r,i,o,a,s=arguments;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,Es(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",A(o,r));case 2:case"end":return e.stop()}},e,this)})),function(e,t){return r.apply(this,arguments)})},{key:"getString",value:(n=l(d().mark(function e(t,n){var r,i,o,a,s=arguments;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,bs(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",A(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(d().mark(function e(t,n){var r,i,o,a,s=arguments;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,Es(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",A(o,r));case 2:case"end":return e.stop()}},e,this)})),function(e,n){return t.apply(this,arguments)})},{key:"init",value:(e=l(d().mark(function e(){var t,n,r,i=arguments;return d().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",x(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,c,h}(),As=null;function xs(){var e=globalThis;return e&&e.__CONFIG__&&e.__CONFIG__.packageName?e.__CONFIG__.packageName:"web"}function Cs(){return As||(As={versionCode:1,versionName:"1.0.0",packageName:xs(),channel:"web"}),As}var Ls=function(){return E(function e(t){_(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=Cs();return r&&"function"==typeof r.resolve&&r.resolve(i),i}},{key:"destroy",value:function(){As=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=Cs();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=xs();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=Cs().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=Cs().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=Cs().channel;return r&&"function"==typeof r.resolve&&r.resolve(i),i}},{key:"getVendor",value:function(){return this.getChannel.apply(this,arguments)}}])}(),Ts=null,Os=[],Ps=!1,Is=0,Ns="";function Rs(){if(!Ts){(Ts=document.createElement("div")).id="__es_toast_container__",Ts.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(Ts);else{var t=document.getElementById("app");t?t.appendChild(Ts):(Ts.style.position="fixed",document.body.appendChild(Ts))}}return Ts}function Ds(e,t){var n=Date.now();if(!(e===Ns&&n-Is<100)){Is=n,Ns=e;Rs();Os.push({message:e,duration:t}),Ms()}}function Ms(){if(!Ps&&0!==Os.length){Ps=!0;var e=Os.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",Rs().appendChild(r),r.offsetHeight,r.style.opacity="1",setTimeout(function(){r.style.opacity="0",setTimeout(function(){r.parentNode&&r.parentNode.removeChild(r),Ps=!1,Ms()},200)},n)}}var Fs=function(){return E(function e(t){_(this,e),this.context=t,this.name="",this.mode="normal"},[{key:"showToast",value:function(e){"string"!=typeof e&&(e=String(e)),Ds(e,2e3)}},{key:"showLongToast",value:function(e){"string"!=typeof e&&(e=String(e)),Ds(e,3500)}},{key:"showShortToast",value:function(e){"string"!=typeof e&&(e=String(e)),Ds(e,2e3)}},{key:"destroy",value:function(){Ts&&Ts.parentNode&&(Ts.parentNode.removeChild(Ts),Ts=null),Os=[],Ps=!1}},{key:"init",value:function(){return Promise.resolve(!0)}}])}(),Bs=(new Fs,function(){return E(function e(t){_(this,e),this.context=t,this.name="",this.mode="normal",this.enabled=!0},[{key:"init",value:(t=l(d().mark(function e(){var t,n,r,i=arguments;return d().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",x(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(d().mark(function e(){var t,n,r,i,o=arguments;return d().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",A(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 js={cornerRadius:0,cornerEnabled:!1,borderColor:"#FFFFFF",borderColorEnabled:!1,borderWidth:2,borderWidthEnabled:!1,borderInset:0,borderInsetEnabled:!1,innerBorderEnabled:!0,focusScale:1};function Vs(){var e=n.g.__TV_FOCUS_MANAGER__;e&&"function"==typeof e.updateFocusConfig&&e.updateFocusConfig(js)}var Ws=function(){return E(function e(t){_(this,e),this.context=t,this.name="",this.mode="normal"},[{key:"setDefaultFocusBorderCorner",value:function(e){js.cornerRadius="number"==typeof e?e:0,js.cornerEnabled=!0,Vs();for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return A(n,null)}},{key:"setDefaultFocusBorderColor",value:function(e){js.borderColor=e||"#FFFFFF",js.borderColorEnabled=!0,Vs();for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return A(n,null)}},{key:"setDefaultFocusBorderWidth",value:function(e){js.borderWidth="number"==typeof e?e:2,js.borderWidthEnabled=!0,Vs();for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return A(n,null)}},{key:"setFocusBorderInsetValue",value:function(e){js.borderInset="number"==typeof e?e:0,js.borderInsetEnabled=!0,Vs();for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return A(n,null)}},{key:"setDefaultFocusInnerBorderEnable",value:function(e){js.innerBorderEnabled=!0===e,Vs();for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return A(n,null)}},{key:"setDefaultPlaceholderFocusScale",value:function(e){js.focusScale="number"==typeof e?e:1,Vs();for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return A(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 A(t,js)}},{key:"init",value:(e=l(d().mark(function e(){var t,n,r,i,o=arguments;return d().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 Ws;function Hs(){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 Us=null;function zs(){return Us||(Us=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}}()),Us}var Gs=function(){return E(function e(t){_(this,e),this.context=t,this.name="",this.mode="normal"},[{key:"getDeviceBrand",value:(X=l(d().mark(function e(){var t,n,r,i=arguments;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(zs(),t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",A(n,"Web"));case 1:case"end":return e.stop()}},e)})),function(){return X.apply(this,arguments)})},{key:"getDeviceModel",value:(q=l(d().mark(function e(){var t,n,r,i,o=arguments;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=zs(),n=o.length,r=new Array(n),i=0;i<n;i++)r[i]=o[i];return e.abrupt("return",A(r,t.browser||"Browser"));case 1:case"end":return e.stop()}},e)})),function(){return q.apply(this,arguments)})},{key:"getDeviceCpu",value:(Y=l(d().mark(function e(){var t,n,r,i,o=arguments;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=zs(),n=o.length,r=new Array(n),i=0;i<n;i++)r[i]=o[i];return e.abrupt("return",A(r,"".concat(t.cpuCores," cores")));case 1:case"end":return e.stop()}},e)})),function(){return Y.apply(this,arguments)})},{key:"getDeviceCpuCores",value:(G=l(d().mark(function e(){var t,n,r,i,o=arguments;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=zs(),n=o.length,r=new Array(n),i=0;i<n;i++)r[i]=o[i];return e.abrupt("return",A(r,t.cpuCores));case 1:case"end":return e.stop()}},e)})),function(){return G.apply(this,arguments)})},{key:"getDeviceMemory",value:(z=l(d().mark(function e(){var t,n,r,i,o=arguments;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=zs(),n=o.length,r=new Array(n),i=0;i<n;i++)r[i]=o[i];return e.abrupt("return",A(r,t.memory));case 1:case"end":return e.stop()}},e)})),function(){return z.apply(this,arguments)})},{key:"getDeviceStorage",value:(U=l(d().mark(function e(){var t,n,r,i,o=arguments;return d().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",A(n,i.quota||0));case 3:e.prev=3,e.catch(1);case 4:return e.abrupt("return",A(n,0));case 5:case"end":return e.stop()}},e,null,[[1,3]])})),function(){return U.apply(this,arguments)})},{key:"getDeviceResolution",value:(H=l(d().mark(function e(){var t,n,r,i,o=arguments;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=zs(),n=o.length,r=new Array(n),i=0;i<n;i++)r[i]=o[i];return e.abrupt("return",A(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(d().mark(function e(){var t,n,r,i=arguments;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(Hs(),t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",A(n,!1));case 1:case"end":return e.stop()}},e)})),function(){return W.apply(this,arguments)})},{key:"getDeviceLinkSpeed",value:(V=l(d().mark(function e(){var t,n,r,i,o=arguments;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=Hs(),n=o.length,r=new Array(n),i=0;i<n;i++)r[i]=o[i];return e.abrupt("return",A(r,t.downlink));case 1:case"end":return e.stop()}},e)})),function(){return V.apply(this,arguments)})},{key:"getDeviceManufacture",value:(j=l(d().mark(function e(){var t,n,r,i=arguments;return d().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",A(n,"Web"));case 1:case"end":return e.stop()}},e)})),function(){return j.apply(this,arguments)})},{key:"getDeviceBoard",value:(B=l(d().mark(function e(){var t,n,r,i=arguments;return d().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",A(n,"Web"));case 1:case"end":return e.stop()}},e)})),function(){return B.apply(this,arguments)})},{key:"getDevicePlatform",value:(F=l(d().mark(function e(){var t,n,r,i,o=arguments;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=zs(),n=o.length,r=new Array(n),i=0;i<n;i++)r[i]=o[i];return e.abrupt("return",A(r,t.platform||"Web"));case 1:case"end":return e.stop()}},e)})),function(){return F.apply(this,arguments)})},{key:"getDeviceHard",value:(M=l(d().mark(function e(){var t,n,r,i=arguments;return d().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",A(n,"Web"));case 1:case"end":return e.stop()}},e)})),function(){return M.apply(this,arguments)})},{key:"getDeviceArchitecture",value:(D=l(d().mark(function e(){var t,n,r,i,o=arguments;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=zs(),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",A(r,"arm64"));case 1:if(!/x86_64|amd64/i.test(t.ua)){e.next=2;break}return e.abrupt("return",A(r,"x86_64"));case 2:return e.abrupt("return",A(r,"unknown"));case 3:case"end":return e.stop()}},e)})),function(){return D.apply(this,arguments)})},{key:"getDeviceClockSpeed",value:(R=l(d().mark(function e(){var t,n,r,i=arguments;return d().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",A(n,0));case 1:case"end":return e.stop()}},e)})),function(){return R.apply(this,arguments)})},{key:"getDeviceAndroidVersion",value:(N=l(d().mark(function e(){var t,n,r,i,o=arguments;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=zs(),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",A(r,t.osVersion));case 1:return e.abrupt("return",A(r,""));case 2:case"end":return e.stop()}},e)})),function(){return N.apply(this,arguments)})},{key:"getDeviceApiVersion",value:(I=l(d().mark(function e(){var t,n,r,i=arguments;return d().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",A(n,0));case 1:case"end":return e.stop()}},e)})),function(){return I.apply(this,arguments)})},{key:"getDeviceAndroidId",value:(P=l(d().mark(function e(){var t,n,r,i=arguments;return d().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",A(n,""));case 1:case"end":return e.stop()}},e)})),function(){return P.apply(this,arguments)})},{key:"getDeviceBuildId",value:(O=l(d().mark(function e(){var t,n,r,i=arguments;return d().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",A(n,"web"));case 1:case"end":return e.stop()}},e)})),function(){return O.apply(this,arguments)})},{key:"getDeviceRoot",value:(T=l(d().mark(function e(){var t,n,r,i=arguments;return d().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",A(n,!1));case 1:case"end":return e.stop()}},e)})),function(){return T.apply(this,arguments)})},{key:"getDeviceFreeStore",value:(L=l(d().mark(function e(){var t,n,r,i,o=arguments;return d().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",A(n,(i.quota||0)-(i.usage||0)));case 3:e.prev=3,e.catch(1);case 4:return e.abrupt("return",A(n,0));case 5:case"end":return e.stop()}},e,null,[[1,3]])})),function(){return L.apply(this,arguments)})},{key:"getNetworkState",value:(C=l(d().mark(function e(){var t,n,r,i,o=arguments;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=Hs(),n=o.length,r=new Array(n),i=0;i<n;i++)r[i]=o[i];return e.abrupt("return",A(r,{connected:navigator.onLine,type:t.effectiveType}));case 1:case"end":return e.stop()}},e)})),function(){return C.apply(this,arguments)})},{key:"getNetworkType",value:(S=l(d().mark(function e(){var t,n,r,i,o=arguments;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=Hs(),n=o.length,r=new Array(n),i=0;i<n;i++)r[i]=o[i];return e.abrupt("return",A(r,t.effectiveType));case 1:case"end":return e.stop()}},e)})),function(){return S.apply(this,arguments)})},{key:"getSSID",value:(k=l(d().mark(function e(){var t,n,r,i=arguments;return d().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",A(n,""));case 1:case"end":return e.stop()}},e)})),function(){return k.apply(this,arguments)})},{key:"getMac",value:(w=l(d().mark(function e(){var t,n,r,i=arguments;return d().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",A(n,""));case 1:case"end":return e.stop()}},e)})),function(){return w.apply(this,arguments)})},{key:"getIp",value:(b=l(d().mark(function e(){var t,n,r,i=arguments;return d().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",A(n,""));case 1:case"end":return e.stop()}},e)})),function(){return b.apply(this,arguments)})},{key:"getDeviceDns",value:(g=l(d().mark(function e(){var t,n,r,i=arguments;return d().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",A(n,""));case 1:case"end":return e.stop()}},e)})),function(){return g.apply(this,arguments)})},{key:"getWifiVersion",value:(m=l(d().mark(function e(){var t,n,r,i=arguments;return d().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",A(n,""));case 1:case"end":return e.stop()}},e)})),function(){return m.apply(this,arguments)})},{key:"getDisplayInformation",value:(y=l(d().mark(function e(){var t,n,r,i,o=arguments;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=zs(),n=o.length,r=new Array(n),i=0;i<n;i++)r[i]=o[i];return e.abrupt("return",A(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(d().mark(function e(){var t,n,r,i,o,a,s=arguments;return d().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",A(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",A(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(d().mark(function e(){var t,n,r,i,o,a=arguments;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=zs(),n=Hs(),r=a.length,i=new Array(r),o=0;o<r;o++)i[o]=a[o];return e.abrupt("return",A(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(d().mark(function e(){var t,n,r,i,o=arguments;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=zs(),n=o.length,r=new Array(n),i=0;i<n;i++)r[i]=o[i];return e.abrupt("return",A(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(d().mark(function e(){var t,n,r,i,o=arguments;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=zs(),n=o.length,r=new Array(n),i=0;i<n;i++)r[i]=o[i];return e.abrupt("return",A(r,{cores:t.cpuCores,memory:t.memory}));case 1:case"end":return e.stop()}},e)})),function(){return h.apply(this,arguments)})},{key:"getAndroidInfo",value:(c=l(d().mark(function e(){var t,n,r,i=arguments;return d().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",A(n,null));case 1:case"end":return e.stop()}},e)})),function(){return c.apply(this,arguments)})},{key:"getStoreInfo",value:(u=l(d().mark(function e(){var t,n,r,i,o=arguments;return d().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",A(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",A(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(d().mark(function e(){var t,n,r,i,o=arguments;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=Hs(),n=o.length,r=new Array(n),i=0;i<n;i++)r[i]=o[i];return e.abrupt("return",A(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(d().mark(function e(){var t,n,r,i=arguments;return d().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",A(n,""));case 1:case"end":return e.stop()}},e)})),function(){return a.apply(this,arguments)})},{key:"getUsbInfo",value:(o=l(d().mark(function e(){var t,n,r,i=arguments;return d().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",A(n,[]));case 1:case"end":return e.stop()}},e)})),function(){return o.apply(this,arguments)})},{key:"getBluetoothInfo",value:(i=l(d().mark(function e(){var t,n,r,i,o=arguments;return d().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",A(r,{available:t,devices:[]}));case 1:case"end":return e.stop()}},e)})),function(){return i.apply(this,arguments)})},{key:"permissionHandler",value:(r=l(d().mark(function e(){var t,n,r,i=arguments;return d().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",A(n,{granted:!0}));case 1:case"end":return e.stop()}},e)})),function(){return r.apply(this,arguments)})},{key:"getNetworkProtocol",value:(n=l(d().mark(function e(){var t,n,r,i=arguments;return d().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",A(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(d().mark(function e(){var t,n,r,i,o=arguments;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=Hs(),n=o.length,r=new Array(n),i=0;i<n;i++)r[i]=o[i];return e.abrupt("return",A(r,t.downlink));case 1:case"end":return e.stop()}},e)})),function(){return t.apply(this,arguments)})},{key:"init",value:(e=l(d().mark(function e(){var t,n,r,i=arguments;return d().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",x(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,c,h,f,p,v,y,m,g,b,w,k,S,C,L,T,O,P,I,N,R,D,M,F,B,j,V,W,H,U,z,G,Y,q,X}();new Gs;function Ys(e,t){return e&&e.packageName?"".concat("es_group_data_").concat(e.packageName,"_").concat(t):null}function qs(e,t,n){var r=Ys(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 Xs(e,t,n,r,i){var o=Ys(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 Ks=0,$s=1,Zs=3,Js=4,Qs=5,eu=6,tu=function(){return E(function e(t){_(this,e),this.context=t,this.name="",this.mode="normal"},[{key:"getBoolean",value:(p=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:return e.next=1,qs(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",A(a,i));case 2:case"end":return e.stop()}},e)})),function(e,t,n){return p.apply(this,arguments)})},{key:"putBoolean",value:(f=l(d().mark(function e(t,n,r,i){var o,a,s,u,l=arguments;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,Xs(t,n,r,i,Js);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",A(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(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:return e.next=1,qs(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",A(a,i));case 2:case"end":return e.stop()}},e)})),function(e,t,n){return h.apply(this,arguments)})},{key:"putInt",value:(c=l(d().mark(function e(t,n,r,i){var o,a,s,u,l=arguments;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,Xs(t,n,r,i,Ks);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",A(s,o));case 2:case"end":return e.stop()}},e)})),function(e,t,n,r){return c.apply(this,arguments)})},{key:"getLong",value:(u=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:return e.next=1,qs(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",A(a,i));case 2:case"end":return e.stop()}},e)})),function(e,t,n){return u.apply(this,arguments)})},{key:"putLong",value:(s=l(d().mark(function e(t,n,r,i){var o,a,s,u,l=arguments;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,Xs(t,n,r,i,$s);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",A(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(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:return e.next=1,qs(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",A(a,i));case 2:case"end":return e.stop()}},e)})),function(e,t,n){return a.apply(this,arguments)})},{key:"putString",value:(o=l(d().mark(function e(t,n,r,i){var o,a,s,u,l=arguments;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,Xs(t,n,r,i,Zs);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",A(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(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:return e.next=1,qs(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",A(a,i));case 2:case"end":return e.stop()}},e)})),function(e,t,n){return i.apply(this,arguments)})},{key:"putArray",value:(r=l(d().mark(function e(t,n,r,i){var o,a,s,u,l=arguments;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,Xs(t,n,r,i,eu);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",A(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(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:return e.next=1,qs(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",A(a,i));case 2:case"end":return e.stop()}},e)})),function(e,t,r){return n.apply(this,arguments)})},{key:"putMap",value:(t=l(d().mark(function e(t,n,r,i){var o,a,s,u,l=arguments;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,Xs(t,n,r,i,Qs);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",A(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(d().mark(function e(){var t,n,r,i=arguments;return d().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",x(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,c,h,f,p}();new tu;function nu(e,t,n){return t=Gt(t),zt(e,ru()?Reflect.construct(t,n||[],Gt(e).constructor):t.apply(e,n))}function ru(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(ru=function(){return!!e})()}var iu=function(e){function t(e,n,r){var i;return _(this,t),(i=nu(this,t,[e,n,r])).tagName="text-v2",i}return Xt(t,e),E(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=Yt(Gt(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}}])}(Ao);function ou(e,t,n){return t=Gt(t),zt(e,au()?Reflect.construct(t,n||[],Gt(e).constructor):t.apply(e,n))}function au(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(au=function(){return!!e})()}var su={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},uu=function(e){function t(e,n,r){var i;return _(this,t),(i=ou(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=su.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,(0,v.registerComponent)(n,i),i._bindVideoEvents(),i}return Xt(t,e),E(t,[{key:"_bindVideoEvents",value:function(){var e=this,t=this.dom;t.addEventListener("play",function(){e._playerState=su.ES_PLAYER_STATE_PLAYING,e._dispatchPlayerStatusChanged()}),t.addEventListener("pause",function(){e._playerState=su.ES_PLAYER_STATE_PAUSED,e._dispatchPlayerStatusChanged()}),t.addEventListener("ended",function(){e._playerState=su.ES_PLAYER_STATE_COMPLETED,e._dispatchPlayerStatusChanged(),e._dispatchEvent("onPlayerCompleted")}),t.addEventListener("error",function(t){var n,r;e._playerState=su.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=su.ES_PLAYER_STATE_PREPARED,e._dispatchPlayerStatusChanged(),e._dispatchAspectRatioChanged(),e._dispatchEvent("onPlayerPrepared"),e._dispatchEvent("onPlayerStatusChanged",{playerStatus:su.ES_PLAYER_STATE_VIDEO_SIZE_CHANGED,playerState:su.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("canplaythrough",function(){}),t.addEventListener("loadstart",function(){}),t.addEventListener("progress",function(){}),t.addEventListener("canplay",function(){e._playerState<su.ES_PLAYER_STATE_PREPARED&&(e._playerState=su.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:su.ES_PLAYER_STATE_SET_PLAY_RATE_SUCCESS,playerState:su.ES_PLAYER_STATE_SET_PLAY_RATE_SUCCESS})}),t.addEventListener("waiting",function(){e._dispatchEvent("onPlayerBufferStart"),e._dispatchEvent("onPlayerStatusChanged",{playerStatus:su.ES_PLAYER_STATE_BUFFER_START,playerState:su.ES_PLAYER_STATE_BUFFER_START})}),t.addEventListener("canplaythrough",function(){e._dispatchEvent("onPlayerBufferEnd"),e._dispatchEvent("onPlayerStatusChanged",{playerStatus:su.ES_PLAYER_STATE_BUFFER_END,playerState:su.ES_PLAYER_STATE_BUFFER_END})}),t.addEventListener("playing",function(){e._dispatchEvent("onPlayerResumed"),e._dispatchEvent("onPlayerStatusChanged",{playerStatus:su.ES_PLAYER_STATE_RESUMED,playerState:su.ES_PLAYER_STATE_RESUMED})}),t.addEventListener("seeking",function(){e._dispatchEvent("onPlayerSeekStart"),e._dispatchEvent("onPlayerStatusChanged",{playerStatus:su.ES_PLAYER_STATE_SEEK_START,playerState:su.ES_PLAYER_STATE_SEEK_START})}),t.addEventListener("seeked",function(){e._dispatchEvent("onPlayerSeekCompleted"),e._dispatchEvent("onPlayerStatusChanged",{playerStatus:su.ES_PLAYER_STATE_SEEK_COMPLETED,playerState:su.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=su.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&&(0,v.unregisterComponentBySid)(this._currentSid),this._currentSid=n,void(n?((0,v.registerComponentBySid)(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=Yt(Gt(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=su.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){this._url=n,this._autoPlay=!1!==(null==o?void 0:o.autoPlay),this.dom.src=n;var a=void 0!==i?parseFloat(i):1;this.dom.volume=Math.max(0,Math.min(1,a)),void 0!==(null==o?void 0:o.loop)&&(this.dom.loop=o.loop),this._setAspectRatio(r||0),this._playerState=su.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=su.ES_PLAYER_STATE_STOPPED,this._dispatchPlayerStatusChanged()}},{key:"release",value:function(){this._destroyed=!0,this.dom.pause(),this.dom.src="",this._playerState=su.ES_PLAYER_STATE_RELEASED,this._currentSid&&((0,v.unregisterComponentBySid)(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===su.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:su.ES_PLAYER_STATE_PLAYER_INITIALIZED,playerState:su.ES_PLAYER_STATE_PLAYER_INITIALIZED}),this._dispatchEvent("onPlayerStatusChanged",{playerStatus:su.ES_PLAYER_STATE_INITIALIZE_SUCCESS,playerState:su.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}}])}(Dr),lu=yo(vo,"View"),cu=yo(Ao,"Text"),du={View:lu,Text:cu,Image:yo(Oo,"Image"),ListView:ts,ListViewItem:ns,ScrollView:yo(vo,"ScrollView"),TextInput:yo(vo,"TextInput"),WebView:la,ViewPager:yo(vo,"ViewPager"),FastListView:$o,TextView:cu,ESPageRouterView:yo(vo,"ESPageRouterView"),ESPageRootView:Eo,ESSlotRootView:yo(vo,"ESSlotRootView"),ESSlotView:yo(vo,"ESSlotView"),LoadingViewComponent:ta,AnimationViewComponent:aa,ESWebViewComponent:la,ESX5WebViewComponent:la,QrCodeComponent:pa,TVProgressBarViewComponent:ga,TVSeekBarViewComponent:Ea,TVListViewComponent:$o,ItemFrameComponent:Aa,ItemStoreView:Ta,RippleViewComponent:Na,FastFlexView:No,FastItemView:Fa,TabsView:Ha,RecyclerViewPager:qa,Modal:Za,TextV2Component:iu,TransitionImageComponent:ls,IJKPlayerComponent:uu,ESPlayMarkViewComponent:as};function hu(e){e.start({id:"app",name:g,params:{business:g,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 fu="files";function pu(){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(fu)||t.createObjectStore(fu)}})}function vu(e,t,n){return yu.apply(this,arguments)}function yu(){return(yu=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,pu();case 1:return i=e.sent,e.abrupt("return",new Promise(function(e,o){var a=i.transaction(fu,"readwrite");a.objectStore(fu).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 mu(){return gu.apply(this,arguments)}function gu(){return(gu=l(d().mark(function e(){var t;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,pu();case 1:return t=e.sent,e.abrupt("return",new Promise(function(e,n){var r=t.transaction(fu,"readonly").objectStore(fu).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 _u(){return bu.apply(this,arguments)}function bu(){return(bu=l(d().mark(function e(){var t;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,pu();case 1:return t=e.sent,e.abrupt("return",new Promise(function(e,n){var r=t.transaction(fu,"readwrite");r.objectStore(fu).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 wu={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 Eu(){return ku.apply(this,arguments)}function ku(){return(ku=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 Su(e){return!e.includes("__MACOSX/")&&(!e.split("/").pop().startsWith("._")&&(!e.endsWith(".DS_Store")&&!e.toLowerCase().endsWith(".thumbs.db")))}function Au(e){return xu.apply(this,arguments)}function xu(){return(xu=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,Eu();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(Su(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,vu(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 Cu(e,t){return Lu.apply(this,arguments)}function Lu(){return Lu=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,Eu();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&&Su(e)}).length,m=[],f.forEach(function(e,t){t.dir||(Su(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,vu(p,_,u);case 6:n&&n(100,"准备加载..."),wu.loadFromData({files:p,entryFile:_,zipName:u});case 7:case"end":return e.stop()}},e)})),Lu.apply(this,arguments)}function Tu(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 Ou(e){return Pu.apply(this,arguments)}function Pu(){return(Pu=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=wu.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=Ru(),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 Iu="";function Nu(e){Iu=function(e){if(!e)return"";try{var t=new URL(e,window.location.href),n=t.pathname.replace(/[^/]+$/,"");return"".concat(t.origin).concat(n)}catch(e){return""}}(e)}function Ru(){var e=JSON.stringify(wu&&wu.baseDir?"/":Iu||"/");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 Du(e){var t=function(e){if(!Iu||"string"!=typeof e||!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=Iu.replace(/^https?:\/\/[^/]+/,"");return n.startsWith(r.replace(/^\//,""))?e:"".concat(Iu).concat(n).concat(t.search).concat(t.hash)}catch(t){var i=e.replace(/^\//,"");if(!i)return e;var o=Iu.replace(/^https?:\/\/[^/]+/,"");return i.startsWith(o.replace(/^\//,""))?e:"".concat(Iu).concat(i)}}(e);return t}if("undefined"==typeof localStorage){var Mu={};n.g.localStorage={getItem:function(e){return Mu[e]||null},setItem:function(e,t){Mu[e]=String(t)},removeItem:function(e){delete Mu[e]},clear:function(){Object.keys(Mu).forEach(function(e){return delete Mu[e]})}}}function Fu(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 Bu(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 ju=Element.prototype.setAttribute;Element.prototype.setAttribute=function(e,t){var n=e.toLowerCase();if("SCRIPT"===this.tagName&&"src"===n){if(wu){var r=t;try{r=new URL(t,window.location.origin).pathname}catch(e){}var i=r.replace(/^\//,""),o=wu.baseDir?wu.baseDir+"/"+i:i;if(wu.has(o)){var a=wu.get(o);return Bu(this,(new TextDecoder).decode(a)),void(this._virtualSrc=t)}if(wu.has(i)){var s=wu.get(i);return Bu(this,(new TextDecoder).decode(s)),void(this._virtualSrc=t)}}var u=Du(t);if(u!==t)return ju.call(this,e,u)}if("IMG"===this.tagName&&"src"===n){var l=Fu(t);if(wu){var c=l.replace(/^\//,""),d=wu.baseDir?wu.baseDir+"/"+c:c;if(wu.has(d)){var h=wu.get(d),f=new Blob([h],{type:Tu(d)}),p=URL.createObjectURL(f);return ju.call(this,e,p)}}if(wu&&wu.has(l)){var v=wu.get(l),y=new Blob([v],{type:Tu(l)}),m=URL.createObjectURL(y);return ju.call(this,e,m)}var g=Du(l);if(g!==l)return ju.call(this,e,g);if(l!==t)return ju.call(this,e,l)}if("style"===n&&"string"==typeof t){var _=zu(t);if(_!==t)return ju.call(this,e,_)}if("src"===n||"href"===n||"data-src"===n){var b=Du(Fu(t));if(b!==t)return ju.call(this,e,b)}return ju.call(this,e,t)};var Vu=document.createElement.bind(document);document.createElement=function(e,t){var n=Vu(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(wu){var r=wu.baseDir?wu.baseDir+"/"+t:t;if(wu.has(r)){var i=wu.get(r);return void(n.__vfsContent=(new TextDecoder).decode(i))}}if(wu&&wu.has(t)){var o=wu.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&&wu){var n=t;try{n=new URL(t,window.location.origin).pathname}catch(e){}var r=n.replace(/^\//,""),i=wu.baseDir?wu.baseDir+"/"+r:r;if(wu.has(i)){var o=wu.get(i),a=(new TextDecoder).decode(o);e.removeAttribute("src"),e.textContent=a,setTimeout(function(){return e.dispatchEvent(new Event("load"))},0)}else if(wu.has(r)){var s=wu.get(r),u=(new TextDecoder).decode(s);e.removeAttribute("src"),e.textContent=u,setTimeout(function(){return e.dispatchEvent(new Event("load"))},0)}}if(t&&!wu){var l=Du(t);l!==t&&(e.src=l)}})})}).observe(document.documentElement,{childList:!0,subtree:!0});var Wu=Object.getOwnPropertyDescriptor(HTMLScriptElement.prototype,"src");if(Wu){var Hu=Wu.get,Uu=Wu.set;Object.defineProperty(HTMLScriptElement.prototype,"src",{get(){return this._virtualSrc?this._virtualSrc:Hu.call(this)},set(e){var t=this,n=Du(Fu(e));if(wu&&wu.has&&wu.has(n)){this._virtualSrc=n;var r=wu.get(n);return Bu(this,(new TextDecoder).decode(r)),setTimeout(function(){return t.dispatchEvent(new Event("load"))},0),n}if(wu){var i=n.replace(/^\//,""),o=wu.baseDir?wu.baseDir+"/"+i:i;if(wu.has(o)){this._virtualSrc=o;var a=wu.get(o);return Bu(this,(new TextDecoder).decode(a)),setTimeout(function(){return t.dispatchEvent(new Event("load"))},0),o}}return Uu.call(this,n)},configurable:!0,enumerable:!0})}function zu(e){if("string"!=typeof e)return e;if(e.startsWith("hpfile://")){var t=e.replace(/^hpfile:\/\/\.?\//,"/").replace(/^hpfile:\/\//,"/");if(wu&&t.startsWith("/assets/")){var n=t.replace(/^\//,""),r=wu.baseDir?wu.baseDir+"/"+n:n;if(wu.has(r)){var i=wu.get(r),o=new Blob([i],{type:Tu(r)}),a=URL.createObjectURL(o);return"url(".concat(a,")")}}if(wu&&wu.has(t)){var s=wu.get(t),u=new Blob([s],{type:Tu(t)}),l=URL.createObjectURL(u);return"url(".concat(l,")")}return"url(".concat(Du(t),")")}return e.replace(/url\(['"]?(hpfile:\/\/[^'")\s]+)['"]?\)/gi,function(e,t){var n=t.replace(/^hpfile:\/\/\.?\//,"/").replace(/^hpfile:\/\//,"/");if(wu&&n.startsWith("/assets/")){var r=n.replace(/^\//,""),i=wu.baseDir?wu.baseDir+"/"+r:r;if(wu.has(i)){var o=wu.get(i),a=new Blob([o],{type:Tu(i)}),s=URL.createObjectURL(a);return"url(".concat(s,")")}}if(wu&&wu.has(n)){var u=wu.get(n),l=new Blob([u],{type:Tu(n)}),c=URL.createObjectURL(l);return"url(".concat(c,")")}return"url(".concat(Du(n),")")})}var Gu=Object.getOwnPropertyDescriptor(CSSStyleDeclaration.prototype,"cssText");if(Gu&&Gu.set){var Yu=Gu.set;Object.defineProperty(CSSStyleDeclaration.prototype,"cssText",{get:Gu.get,set(e){var t=zu(e);return Yu.call(this,t)},configurable:!0})}var qu=CSSStyleDeclaration.prototype.setProperty;CSSStyleDeclaration.prototype.setProperty=function(e,t,n){var r=e.toLowerCase();if("background-image"===r||"background"===r){var i=zu(t);return qu.call(this,e,i,n)}return qu.call(this,e,t,n)};var Xu=Object.getOwnPropertyDescriptor(CSSStyleDeclaration.prototype,"backgroundImage");if(Xu&&Xu.set){var Ku=Xu.set;Object.defineProperty(CSSStyleDeclaration.prototype,"backgroundImage",{get:Xu.get,set(e){var t=zu(e);return Ku.call(this,t)},configurable:!0})}var $u=Object.getOwnPropertyDescriptor(CSSStyleDeclaration.prototype,"background");if($u&&$u.set){var Zu=$u.set;Object.defineProperty(CSSStyleDeclaration.prototype,"background",{get:$u.get,set(e){var t=zu(e);return Zu.call(this,t)},configurable:!0})}var Ju=Object.getOwnPropertyDescriptor(HTMLImageElement.prototype,"src");if(Ju){var Qu=Ju.get,el=Ju.set;Object.defineProperty(HTMLImageElement.prototype,"src",{get(){return Qu.call(this)},set(e){var t=Du(Fu(e));if(wu&&t.startsWith("/assets/")){var n=t.replace(/^\//,""),r=wu.baseDir?wu.baseDir+"/"+n:n;if(wu.has(r)){var i=wu.get(r),o=new Blob([i],{type:Tu(r)}),a=URL.createObjectURL(o);return el.call(this,a)}}if(wu&&wu.has(t)){var s=wu.get(t),u=new Blob([s],{type:Tu(t)}),l=URL.createObjectURL(u);return el.call(this,l)}return el.call(this,t)},configurable:!0,enumerable:!0})}var tl=Object.getOwnPropertyDescriptor(HTMLMediaElement.prototype,"src");if(tl){var nl=tl.get,rl=tl.set;Object.defineProperty(HTMLMediaElement.prototype,"src",{get(){return nl.call(this)},set(e){if("string"==typeof e&&/^https?:\/\//i.test(e))return rl.call(this,e);if("string"==typeof e&&e.startsWith("//"))return rl.call(this,e);var t=Du(Fu(e));if(wu&&t.startsWith("/assets/")){var n=t.replace(/^\//,""),r=wu.baseDir?wu.baseDir+"/"+n:n;if(wu.has(r)){var i=wu.get(r),o=new Blob([i],{type:Tu(r)}),a=URL.createObjectURL(o);return rl.call(this,a)}}if(wu&&t.startsWith("/")&&wu.has(t)){var s=wu.get(t),u=new Blob([s],{type:Tu(t)}),l=URL.createObjectURL(u);return rl.call(this,l)}return rl.call(this,t)},configurable:!0,enumerable:!0})}if("undefined"!=typeof fetch){var il=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=Fu(n);if(wu&&r.startsWith("/")){if(r.startsWith("/assets/")){var i=r.replace(/^\//,""),o=wu.baseDir?wu.baseDir+"/"+i:i;if(wu.has(o)){var a=wu.get(o);return Promise.resolve(new Response(a,{status:200,headers:{"Content-Type":Tu(o)}}))}}if(wu.has(r)){var s=wu.get(r);return Promise.resolve(new Response(s,{status:200,headers:{"Content-Type":Tu(r)}}))}}return r!==n&&("string"==typeof e?e=r:e instanceof Request&&(e=new Request(r,t))),il(e,t)}}n.g.__ES_LAST_SDK_INFO__={eskit_ver_code:2.8},n.g.__ES_APP_READY__=!0,globalThis.__nativeLocalStorage=jt,globalThis.__localStorage=Wt,Object.defineProperty(window,"localStorage",{value:Wt,writable:!1,configurable:!0}),n.g.__WEB_COMPONENTS__=n.g.__WEB_COMPONENTS__||{},n.g.__WEB_COMPONENTS__.IJKPlayerComponent=uu,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 ol=ar.create({modules:{ESModule:cs,ESLocalStorageModule:ys,EsNativeModule:gs,AndroidSharedPreferencesModule:Ss,AndroidDevelopModule:Ls,AndroidNetworkModule:D,AndroidFileModule:He,ESToastModule:Fs,RuntimeDeviceModule:H,ESIJKAudioPlayerModule:ge,ESSoundPoolAudioPlayerModule:Te,ESLogModule:Bs,FastListModule:Ho,FocusModule:Ws,ESDeviceInfoModule:Gs,ESGroupDataModule:tu,ESDownloadModule:Ze},components:du});!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},(0,v.setWebEngine)(e),function(e){if(!at){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 y=f[u].apply(f,[l].concat(p(c||[])));return y&&"function"==typeof y.catch?y.catch(function(e){}):y}}if("ESSoundPoolAudioPlayerModule"===a||"ESSoundPoolPlayerModule"===a){var m,g=null===(m=n.g.__WEB_MODULES__)||void 0===m?void 0:m.ESSoundPoolAudioPlayerModule;if(g&&"function"==typeof g[u]){var _={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])}},b=g[u].apply(g,p(c||[]).concat([_]));return b&&"function"==typeof b.catch?b.catch(function(e){}):b}}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 w=s(c||[],2),E=w[0],k=w[1];if(Array.isArray(k)){var S=k.map(function(e){return Array.isArray(e)?e:[e,null]});return t(a,u,l,[E,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 L={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])}},T=C[u].apply(C,p(c||[]).concat([L]));return T&&"function"==typeof T.catch?T.catch(function(e){}):T}}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,p(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=(0,v.findComponentById)(M);if(j&&"function"==typeof j[F])try{return j[F].apply(j,p(B||[]))}catch(e){}}},at=!0}}}(e),function(){var e;if(!ot){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,g=null===(p=n.g.__WEB_MODULES__)||void 0===p?void 0:p.AndroidFileModule;if(g&&"function"==typeof g[t]){var _=g[t].apply(g,o);return _&&"function"==typeof _.catch?_.catch(function(e){}):_}}if("ESDownloadModule"===e){var b,w=null===(b=n.g.__WEB_MODULES__)||void 0===b?void 0:b.ESDownloadModule;if(w&&"function"==typeof w[t]){var E=w[t].apply(w,o);return E&&"function"==typeof E.catch?E.catch(function(e){}):E}}if("UIManagerModule"===e){if("addEventListener"===t){var k=o[0],S=o[1],A=o[2],x=(0,v.findComponentById)(k);return void(x&&x.addEventListener&&x.addEventListener(S,A))}if("removeEventListener"===t){var C=o[0],L=o[1],T=o[2],O=(0,v.findComponentById)(C);return void(O&&O.removeEventListener&&O.removeEventListener(L,T))}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=(0,v.findComponentById)(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 z=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"),it||"app"!==t.pId&&t.pId!==V||(it=t.id,t.props&&(t.props.style=t.props.style||{},t.props.style.width=y,t.props.style.height=m,delete t.props.style.flex))),Array.isArray(e)?[t,n]:t});return r(e,t,V,z)}}if("updateNode"===t){var G=o[0],Y=o[1];if(Array.isArray(Y)){var X=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"),it&&t.id===it&&t.props&&(t.props.style=t.props.style||{},t.props.style.width=y,t.props.style.height=m,delete t.props.style.flex)),[t,n]});return r(e,t,G,X)}}if("deleteNode"===t){var K=o[0],$=o[1];if(Array.isArray($)){var Z=$.map(function(e){return Array.isArray(e)?e:[e]});return Z.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,K,Z)}}}if("ESNetworkSpeedModule"===e&&Ye&&"function"==typeof Ye[t])Ye[t].apply(Ye,o);else{if("ESPluginModule"!==e)return r.apply(void 0,[e,t].concat(o));if("install"===t){var J=Array.isArray(o[0])?o[0][0]:o[0];return void q("onESPluginStateChanged",{success:!0,pkg:null==J?void 0:J.pkg,status:0,msg:"Plugin installed successfully (web)"})}}},ot=!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&&U&&"function"==typeof U[t]){var c=U[t].apply(U,o);return c instanceof Promise?c:Promise.resolve(c)}if("AndroidDeviceModule"===e&&S&&"function"==typeof S[t]){var d=S[t].apply(S,o);return d instanceof Promise?d:Promise.resolve(d)}if("AndroidNetworkModule"===e&&M&&"function"==typeof M[t]){var h=M[t].apply(M,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,_=(0,v.getWebEngine)(),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=(0,v.findComponentById)(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=(0,v.findComponentById)(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)},st(),ut(),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,Je.Zd)(pt(e,t));i(e,n)},r._setElementStylePatched=!0}}(e),vt(),yt||(yt=new MutationObserver(function(){return vt()})).observe(document.head,{childList:!0,subtree:!0}),!mt(e)){var o=function(){mt(e)||requestAnimationFrame(o)};requestAnimationFrame(o)}}(ol);var al=new Ft;n.g.__TV_FOCUS_MANAGER__=al;var sl=document.createElement("style");sl.id="web-runtime-css",sl.textContent='\n #app, #app * { align-items: flex-start; }\n [style*="align-items"] { align-items: var(--align-items, center) !important; }\n',document.head.appendChild(sl);var ul=new URLSearchParams(window.location.search);function ll(e){return cl.apply(this,arguments)}function cl(){return(cl=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=Ru()+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 dl(e){return hl.apply(this,arguments)}function hl(){return(hl=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 fl(e){return pl.apply(this,arguments)}function pl(){return pl=l(d().mark(function e(t){var r,i,o,a,s,u,l;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=1,Nu(t),o=t.replace("index.android.js","vendor.android.js"),t.endsWith("index.bundle")&&(o=t.replace("index.bundle","vendor.bundle")),e.next=2,ll(o);case 2:return e.sent||(a=Ru(),(s=document.createElement("script")).textContent=a,document.body.appendChild(s)),e.next=3,dl(t);case 3:if(u=null===(r=n.g.__GLOBAL__)||void 0===r||null===(r=r.jsModuleList)||void 0===r?void 0:r.EventDispatcher,0!==(l=Object.keys((null===(i=n.g.__GLOBAL__)||void 0===i?void 0:i.appRegister)||{})).length){e.next=4;break}return e.abrupt("return");case 4:l.includes(g)?g:l[0],hu(ol),u&&(n.g.__GLOBAL__=n.g.__GLOBAL__||{},n.g.__GLOBAL__.jsModuleList=n.g.__GLOBAL__.jsModuleList||{},n.g.__GLOBAL__.jsModuleList.EventDispatcher=u),e.next=6;break;case 5:e.prev=5,e.catch(1);case 6:case"end":return e.stop()}},e,null,[[1,5]])})),pl.apply(this,arguments)}function vl(){return yl.apply(this,arguments)}function yl(){return(yl=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=wu.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: "+wu.zipName),a=i.substring(0,i.lastIndexOf("/")),s=a?"".concat(a,"/vendor.android.js"):"vendor.android.js",!wu.has(s)){e.next=3;break}return e.next=2,Ou(s);case 2:e.next=4;break;case 3:if(u=wu.list(),!(l=u.find(function(e){return e.endsWith("vendor.android.js")}))){e.next=4;break}return e.next=4,Ou(l);case 4:return e.next=5,Ou(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(g)?g:h[0],hu(ol),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: "+wu.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,Au(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,vu(r,i,o);case 2:return e.next=3,mu();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 ml="1"===ul.get("zip"),gl=ul.get("bundle"),_l=ul.get("zipUrl");function bl(){return(bl=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"),!ml){e.next=5;break}return e.next=1,mu();case 1:if(!(n=e.sent)){e.next=3;break}return wu.loadFromData(n),e.next=2,vl();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(!_l){e.next=12;break}return e.next=6,_u();case 6:return i=ul.has("_force"),window.__LOADING_OVERLAY__&&(window.__LOADING_OVERLAY__.show(),window.__LOADING_OVERLAY__.update(0,"准备下载...")),e.prev=7,e.next=8,Cu(_l,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,vl();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(!gl){e.next=15;break}return e.next=13,_u();case 13:return e.next=14,fl(gl);case 14:e.next=17;break;case 15:return e.next=16,_u();case 16:t&&(t.textContent="请上传 ZIP 包开始预览");case 17:case"end":return e.stop()}},e,null,[[7,10]])}))).apply(this,arguments)}!function(){bl.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})}},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(932)})();
1
+ /*! For license information please see web-runtime.44133366f4ed23b65ca9.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,E=w&&w(w(P([])));E&&E!==n&&r.call(E,a)&&(b=E);var k=_.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 L(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 T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function O(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(L,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(k,"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(k),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(k),l(k,u,"Generator"),l(k,a,function(){return this}),l(k,"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(T),!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),T(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;T(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)}},371(e,t,n){"use strict";n.r(t),n.d(t,{findComponentById:()=>h,findComponentBySid:()=>d,getWebEngine:()=>s,registerComponent:()=>u,registerComponentBySid:()=>l,setWebEngine:()=>a,unregisterComponentBySid:()=>c});var r=null,i=new Map,o=new Map;function a(e){r=e}function s(){return r}function u(e,t){i.set(e,t)}function l(e,t){e&&"string"==typeof e&&o.set(e,t)}function c(e){o.has(e)&&o.delete(e)}function d(e){return o.has(e)?o.get(e):null}function h(e){if("string"==typeof e)return d(e);if(i.has(e))return i.get(e);if(!r)return null;try{var t,n,o=null===(t=r.context)||void 0===t||null===(n=t.getModuleByName)||void 0===n?void 0:n.call(t,"UIManagerModule");if(o&&o.findViewById){var a=o.findViewById(e);if(a)return a}}catch(e){}return null}},474(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}},128(e,t,n){"use strict";n.d(t,{Hd:()=>u,bindTemplateDataToNode:()=>_,u6:()=>g,vy:()=>l});var r=n(298),i=n(474);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,E=null!==(n=e.getAttribute("data-template-type"))&&void 0!==n?n:e.getAttribute("type");if(null!=E&&""!==E){var k=String(E);if(k.includes("${")&&(k=String(l(k,i))),k!==(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 L=0,T=Array.from(e.attributes);L<T.length;L++){var O=T[L],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 z=e.textContent;if(z&&z.includes("${")){var G=l(z,i);if(G!==z){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(G):(e.textContent=G,Y&&Y.classList&&Y.classList.contains("qt-text-inner")&&m(Y.parentElement))}}}}}},932(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);var h=n(298);function f(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function p(e){return function(e){if(Array.isArray(e))return i(e)}(e)||f(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 v=n(371),y=1920,m=1080,g="EsApp";function _(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var b=n(517);function w(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,b.A)(r.key),r)}}function E(e,t,n){return t&&w(e.prototype,t),n&&w(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var k=function(){return E(function e(){_(this,e),this.name="AndroidDeviceModule"},[{key:"getAndroidDevice",value:(k=l(d().mark(function e(){var t,n,r,i,o,a,s,u,l,c,h,f,p;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=this._getScreenInfo(),n=this._generateDeviceId(),e.next=1,this._getLocalIP();case 1:return r=e.sent,i=this._generateMAC(),o=this._estimateTotalMemory(),a=this._estimateAvailMemory(),s=t.width,u=t.height,l="".concat(t.width,"x").concat(t.height),c=t.density,h=t.densityDpi,f=t.scaledDensity,p=this._getBrowserInfo(),e.abrupt("return",{cid:n,device_name:"Web Browser",device_ip:r,eth_mac:"",wifi_mac:i,total_memory:o,avail_memory:a,screen_width:s,screen_height:u,resolution:l,density:c,density_dpi:h,scaled_density:f,build_version_release:"Web",build_model:p,build_brand:"Web",build_device:"Browser",build_board:"Web",build_product:"quicktvui-web",build_hardware:"Web",build_manufacturer:"quicktvui"});case 2:case"end":return e.stop()}},e,this)})),function(){return k.apply(this,arguments)})},{key:"getEthMac",value:(w=l(d().mark(function e(){return d().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 w.apply(this,arguments)})},{key:"getWifiMac",value:(b=l(d().mark(function e(){return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this._generateMAC());case 1:case"end":return e.stop()}},e,this)})),function(){return b.apply(this,arguments)})},{key:"getTotalMemory",value:(g=l(d().mark(function e(){return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this._estimateTotalMemory());case 1:case"end":return e.stop()}},e,this)})),function(){return g.apply(this,arguments)})},{key:"getAvailableMemory",value:(m=l(d().mark(function e(){return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this._estimateAvailMemory());case 1:case"end":return e.stop()}},e,this)})),function(){return m.apply(this,arguments)})},{key:"getScreenWidth",value:(y=l(d().mark(function e(){return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this._getScreenInfo().width);case 1:case"end":return e.stop()}},e,this)})),function(){return y.apply(this,arguments)})},{key:"getScreenHeight",value:(v=l(d().mark(function e(){return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this._getScreenInfo().height);case 1:case"end":return e.stop()}},e,this)})),function(){return v.apply(this,arguments)})},{key:"getResolution",value:(p=l(d().mark(function e(){var t;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=this._getScreenInfo(),e.abrupt("return","".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(d().mark(function e(){return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this._getScreenInfo().density);case 1:case"end":return e.stop()}},e,this)})),function(){return f.apply(this,arguments)})},{key:"getDensityDpi",value:(h=l(d().mark(function e(){return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this._getScreenInfo().densityDpi);case 1:case"end":return e.stop()}},e,this)})),function(){return h.apply(this,arguments)})},{key:"getScaledDensity",value:(c=l(d().mark(function e(){return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this._getScreenInfo().scaledDensity);case 1:case"end":return e.stop()}},e,this)})),function(){return c.apply(this,arguments)})},{key:"getBuildVersionRelease",value:(u=l(d().mark(function e(){return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return","Web");case 1:case"end":return e.stop()}},e)})),function(){return u.apply(this,arguments)})},{key:"getBuildModel",value:(s=l(d().mark(function e(){return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this._getBrowserInfo());case 1:case"end":return e.stop()}},e,this)})),function(){return s.apply(this,arguments)})},{key:"getBuildBrand",value:(a=l(d().mark(function e(){return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return","Web");case 1:case"end":return e.stop()}},e)})),function(){return a.apply(this,arguments)})},{key:"getBuildDevice",value:(o=l(d().mark(function e(){return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return","Browser");case 1:case"end":return e.stop()}},e)})),function(){return o.apply(this,arguments)})},{key:"getBuildBoard",value:(i=l(d().mark(function e(){return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return","Web");case 1:case"end":return e.stop()}},e)})),function(){return i.apply(this,arguments)})},{key:"getBuildProduct",value:(r=l(d().mark(function e(){return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return","quicktvui-web");case 1:case"end":return e.stop()}},e)})),function(){return r.apply(this,arguments)})},{key:"getBuildHardware",value:(n=l(d().mark(function e(){return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return","Web");case 1:case"end":return e.stop()}},e)})),function(){return n.apply(this,arguments)})},{key:"getBuildManufacturer",value:(t=l(d().mark(function e(){return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return","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(d().mark(function e(){return d().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:"_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:"_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,c,h,f,p,v,y,m,g,b,w,k}(),S=new k;function A(e,t){var n=e&&e.length?e[e.length-1]:null;return n&&"function"==typeof n.resolve&&n.resolve(t),t}function x(e){var t=e&&e.length?e[e.length-1]:null;return t&&"function"==typeof t.resolve&&t.resolve(!0),Promise.resolve(!0)}var C=0,L=1,T=9,O=1,P=3;function I(){if("undefined"==typeof navigator||!navigator.connection)return T;var e=navigator.connection,t=e.type||e.effectiveType;return"wifi"===t?L:"cellular"===t||"2g"===t||"3g"===t||"4g"===t?C:"ethernet"===t?T:e.effectiveType&&["4g","3g","2g","slow-2g"].includes(e.effectiveType)?C:T}function N(){return"undefined"==typeof navigator||navigator.onLine}function R(){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 D=function(){return E(function e(t){_(this,e),this.context=t,this.name="",this.mode="normal"},[{key:"getActiveNetworkInfo",value:(n=l(d().mark(function e(){var t,n,r,i,o,a,s,u=arguments;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=N(),n=I(),r=R(),i={type:n,typeName:this._getTypeName(n),subtype:0,state:t?P:O,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",A(a,i));case 1:case"end":return e.stop()}},e,this)})),function(){return n.apply(this,arguments)})},{key:"getWifiInfo",value:(t=l(d().mark(function e(){var t,n,r,i,o,a,s=arguments;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=I(),n=R(),r={ssid:"",strength:t===L?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",A(o,r));case 1:case"end":return e.stop()}},e)})),function(){return t.apply(this,arguments)})},{key:"_getTypeName",value:function(e){switch(e){case L:return"WIFI";case C:return"MOBILE";case T:return"ETHERNET";default:return"UNKNOWN"}}},{key:"destroy",value:function(){}},{key:"init",value:(e=l(d().mark(function e(){var t,n,r,i=arguments;return d().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",x(n));case 1:case"end":return e.stop()}},e)})),function(){return e.apply(this,arguments)})}]);var e,t,n}(),M=new D,F="quicktvui_device_id";function B(){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 j(){return V.apply(this,arguments)}function V(){return(V=l(d().mark(function e(){var t,n;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=1,localStorage.getItem(F);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=B();try{localStorage.setItem(F,n)}catch(e){}return e.abrupt("return",n);case 5:case"end":return e.stop()}},e,null,[[0,3]])}))).apply(this,arguments)}function W(){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 H=function(){return E(function e(t){_(this,e),this.context=t,this.name="",this.mode="normal",this._deviceId=null},[{key:"_getDeviceId",value:(i=l(d().mark(function e(){return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(this._deviceId){e.next=2;break}return e.next=1,j();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(d().mark(function e(){var t,n,r,i,o=arguments;return d().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",A(r,t));case 2:case"end":return e.stop()}},e,this)})),function(){return r.apply(this,arguments)})},{key:"getRuntimeDeviceType",value:(n=l(d().mark(function e(){var t,n,r,i=arguments;return d().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",A(n,"web"));case 1:case"end":return e.stop()}},e)})),function(){return n.apply(this,arguments)})},{key:"getRuntimeDeviceInfo",value:(t=l(d().mark(function e(){var t,n,r,i,o,a,s,u,l,c=arguments;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=W(),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=c.length,u=new Array(s),l=0;l<s;l++)u[l]=c[l];return e.abrupt("return",A(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(d().mark(function e(){var t,n,r,i=arguments;return d().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",x(n));case 1:case"end":return e.stop()}},e)})),function(){return e.apply(this,arguments)})}]);var e,t,n,r,i}(),U=new H;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 G(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,h.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 Y(){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 q(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=Y();if(!n)return!1;try{return n.receiveNativeEvent([e,t]),!0}catch(e){return!1}}function X(){return q("hardwareBackPress",null)}function K(e){return q("DispatchKeyEvent",e)}function $(e){return K(G(G({},e),{},{action:0}))}function Z(e){return K(G(G({},e),{},{action:1}))}function J(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Y();if(!r||"function"!=typeof r.receiveNativeGesture)return!1;if("number"!=typeof e||!t)return!1;try{return r.receiveNativeGesture(G({id:e,name:t},n)),!0}catch(e){return!1}}function Q(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Y();return!(!r||"number"!=typeof e||!t)&&("function"==typeof r.receiveNativeGesture?J(e,t,n):q(t,G({id:e,currentId:e},n)))}function ee(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Y();if(!r||"function"!=typeof r.receiveUIComponentEvent)return!1;if("number"!=typeof e||!t)return!1;try{return r.receiveUIComponentEvent([e,t,n]),!0}catch(e){return!1}}var te=0,ne=1,re=2,ie=3,oe=4,ae=5,se=6,ue=7,le=8,ce=9,de=10,he=11,fe=12,pe=13,ve=26,ye=29,me=new(function(){return E(function e(){_(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=te;e.addEventListener("play",function(){r!==ae&&(r=ae,q("onESAudioPlayerStatusChanged",{playerStatus:ae,playerState:ae}))}),e.addEventListener("playing",function(){r!==ae&&(r=ae,q("onESAudioPlayerStatusChanged",{playerStatus:ae,playerState:ae}))}),e.addEventListener("pause",function(){r=le,q("onESAudioPlayerStatusChanged",{playerStatus:le,playerState:le})}),e.addEventListener("ended",function(){r=fe,n=!0,q("onESAudioPlayerStatusChanged",{playerStatus:fe,playerState:fe})}),e.addEventListener("error",function(e){var t,n;r=pe,q("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=ne,q("onESAudioPlayerStatusChanged",{playerStatus:ne,playerState:ne})}),e.addEventListener("canplay",function(){n||(n=!0,r=re,q("onESAudioPlayerStatusChanged",{playerStatus:re,playerState:re}))}),e.addEventListener("waiting",function(){q("onESAudioPlayerStatusChanged",{playerStatus:ie,playerState:ie})}),e.addEventListener("canplaythrough",function(){q("onESAudioPlayerStatusChanged",{playerStatus:oe,playerState:oe})}),e.addEventListener("durationchange",function(){e.duration&&!isNaN(e.duration)&&q("onESAudioPlayerInfo",{what:1,extra:Math.floor(1e3*e.duration)})}),e.addEventListener("ratechange",function(){q("onESAudioPlayRateChanged",{playRate:e.playbackRate})}),e.addEventListener("seeking",function(){q("onESAudioPlayerStatusChanged",{playerStatus:se,playerState:se})}),e.addEventListener("seeked",function(){q("onESAudioPlayerStatusChanged",{playerStatus:ue,playerState:ue})}),e.addEventListener("volumechange",function(){q("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()}}])}()),ge=function(){return E(function e(t){_(this,e),this.context=t,this.name="",this.mode="normal"},[{key:"init",value:(u=l(d().mark(function e(){var t,n,r,i=arguments;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(q("onESAudioPlayerStatusChanged",{playerStatus:ve,playerState:ve}),q("onESAudioPlayerStatusChanged",{playerStatus:ye,playerState:ye}),t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",x(n));case 1:case"end":return e.stop()}},e)})),function(){return u.apply(this,arguments)})},{key:"initMediaPlayer",value:function(){q("onESAudioPlayerStatusChanged",{playerStatus:ve,playerState:ve}),q("onESAudioPlayerStatusChanged",{playerStatus:ye,playerState:ye});for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return A(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=me.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){q("onESAudioPlayerError",{errorCode:-1,errorMessage:e.message||"Play error"})}),A(a,null)}},{key:"start",value:function(e){var t=me.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 A(r,null)}},{key:"pause",value:function(e){me.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 A(n,null)}},{key:"resume",value:function(e){me.getInstance(e).play().catch(function(e){}),q("onESAudioPlayerStatusChanged",{playerStatus:ce,playerState:ce});for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return A(n,null)}},{key:"seekTo",value:function(e,t){var n=me.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 A(i,null)}},{key:"stop",value:function(e){var t=me.getInstance(e);q("onESAudioPlayerStatusChanged",{playerStatus:de,playerState:de}),t.pause(),t.currentTime=0,q("onESAudioPlayerStatusChanged",{playerStatus:he,playerState:he});for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return A(r,null)}},{key:"setPlayRate",value:function(e,t){var n=me.getInstance(e);n.playbackRate=Number(t)||1,q("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 A(i,null)}},{key:"setVolume",value:function(e,t){me.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 A(r,null)}},{key:"setLeftRightVolume",value:function(e,t,n){var r=me.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 A(a,null)}},{key:"reset",value:function(e){var t=me.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 A(r,null)}},{key:"release",value:function(e){me.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 A(n,null)}},{key:"isPlaying",value:(s=l(d().mark(function e(t){var n,r,i,o,a,s=arguments;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(n=me.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",A(o,r));case 1:case"end":return e.stop()}},e)})),function(e){return s.apply(this,arguments)})},{key:"isPaused",value:(a=l(d().mark(function e(t){var n,r,i,o,a,s=arguments;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(n=me.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",A(o,r));case 1:case"end":return e.stop()}},e)})),function(e){return a.apply(this,arguments)})},{key:"getDuration",value:(o=l(d().mark(function e(t){var n,r,i,o,a,s=arguments;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(n=me.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",A(o,r));case 1:case"end":return e.stop()}},e)})),function(e){return o.apply(this,arguments)})},{key:"getCurrentPosition",value:(i=l(d().mark(function e(t){var n,r,i,o,a,s=arguments;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(n=me.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",A(o,r));case 1:case"end":return e.stop()}},e)})),function(e){return i.apply(this,arguments)})},{key:"getBufferPercentage",value:(r=l(d().mark(function e(t){var n,r,i,o,a,s,u=arguments;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(n=me.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",A(i,s));case 1:return e.abrupt("return",A(i,0));case 2:case"end":return e.stop()}},e)})),function(e){return r.apply(this,arguments)})},{key:"getCurrentPlayRate",value:(n=l(d().mark(function e(t){var n,r,i,o,a=arguments;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(n=me.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",A(i,n.playbackRate||1));case 1:case"end":return e.stop()}},e)})),function(e){return n.apply(this,arguments)})},{key:"getLeftVolume",value:(t=l(d().mark(function e(t){var n,r,i,o,a=arguments;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(n=me.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",A(i,n.volume));case 1:case"end":return e.stop()}},e)})),function(e){return t.apply(this,arguments)})},{key:"getRightVolume",value:(e=l(d().mark(function e(t){var n,r,i,o,a=arguments;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(n=me.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",A(i,n.volume));case 1:case"end":return e.stop()}},e)})),function(t){return e.apply(this,arguments)})},{key:"destroy",value:function(){me.clearAll()}}]);var e,t,n,r,i,o,a,s,u}(),_e="files",be=null;function we(){return new Promise(function(e,t){if(be)e(be);else{var n=indexedDB.open("es_vfs_db",1);n.onerror=function(){t(n.error)},n.onsuccess=function(){be=n.result,e(be)},n.onupgradeneeded=function(e){var t=e.target.result;t.objectStoreNames.contains(_e)||t.createObjectStore(_e,{keyPath:"path"})}}})}function Ee(e){return ke.apply(this,arguments)}function ke(){return(ke=l(d().mark(function e(t){var n;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=1,we();case 1:return n=e.sent,e.abrupt("return",new Promise(function(e,r){var i=n.transaction([_e],"readonly").objectStore(_e).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 Se(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 Ae(e){return"string"!=typeof e?e:e.startsWith("/data:")?e.slice(1):e.startsWith("file://")?e.slice(7)||"/":e.startsWith("//")?e.replace(/^\/+/,"/"):e}function xe(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 Ce=function(){return E(function e(){_(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(d().mark(function e(t){var n,r,i,o=this;return d().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(){xe("onESSoundPoolLoadComplete",{status:0,sampleId:n})},0)},s=function(e){var r,o;i.removeEventListener("canplaythrough",a),i.removeEventListener("error",s),xe("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(d().mark(function e(t,n,r,i,o,a){var s,u,l,c,h,f=this;return d().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",c=((n||1)+(r||1))/2,l.volume=Math.max(0,Math.min(1,c)),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),xe("onESSoundPoolPlayComplete",{streamID:u,soundID:t})}),l.addEventListener("error",function(e){var n,r;f.streams.delete(u),xe("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}(),Le=new Ce,Te=function(){return E(function e(t){_(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){Le.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 A(a,!0)}},{key:"load",value:(i=l(d().mark(function e(t){var r,i,o,a,s,u,l,c,h,f,p,v,y,m,g,_,b,w,E,k,S,x=arguments;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(r=x.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=x[o];if(e.prev=1,!(a=Ae(t))||!a.startsWith("data:")){e.next=3;break}return e.next=2,Le.load(a);case 2:return s=e.sent,e.abrupt("return",A(i,s));case 3:if(!a||!a.startsWith("http://")&&!a.startsWith("https://")){e.next=5;break}return e.next=4,Le.load(a);case 4:return u=e.sent,e.abrupt("return",A(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,Le.load(l);case 6:return c=e.sent,e.abrupt("return",A(i,c));case 7:if(!(h=Se(a))){e.next=9;break}return e.next=8,Le.load(h);case 8:return f=e.sent,e.abrupt("return",A(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,Le.load(_);case 10:return b=e.sent,e.abrupt("return",A(i,b));case 11:return e.next=12,Ee(a);case 12:if(w=e.sent){e.next=13;break}return e.abrupt("return",A(i,-1));case 13:return E=new Blob([w]),k=URL.createObjectURL(E),e.next=14,Le.load(k);case 14:return S=e.sent,e.abrupt("return",A(i,S));case 15:return e.prev=15,e.catch(1),e.abrupt("return",A(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){Le.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 A(n,null)}},{key:"play",value:(r=l(d().mark(function e(t,n,r,i,o,a){var s,u,l,c,h=arguments;return d().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,Le.play(t,n,r,i,o,a);case 2:return c=e.sent,e.abrupt("return",A(u,c));case 3:return e.prev=3,e.catch(1),e.abrupt("return",A(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){Le.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 A(n,null)}},{key:"autoPause",value:function(){Le.autoPause();for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return A(t,null)}},{key:"resume",value:function(e){Le.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 A(n,null)}},{key:"autoResume",value:function(){Le.autoResume();for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return A(t,null)}},{key:"stop",value:function(e){Le.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 A(n,null)}},{key:"setVolume",value:function(e,t,n){Le.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 A(i,null)}},{key:"setRate",value:function(e,t){Le.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 A(r,null)}},{key:"setPriority",value:function(e,t){Le.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 A(r,null)}},{key:"setLoop",value:function(e,t){Le.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 A(r,null)}},{key:"release",value:function(){Le.release();for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return A(t,null)}},{key:"playLocalFile",value:(t=l(d().mark(function e(t){var r,i,o,a,s,u,l,c,h,f,p,v,y,m,g,_,b,w,E,k,S,x,C,L,T,O,P,I=arguments;return d().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=Ae(t))||!a.startsWith("data:")){e.next=4;break}return e.next=2,Le.load(a);case 2:return s=e.sent,e.next=3,Le.play(s,1,1,0,0,1);case 3:return u=e.sent,e.abrupt("return",A(i,u));case 4:if(!a||!a.startsWith("http://")&&!a.startsWith("https://")){e.next=7;break}return e.next=5,Le.load(a);case 5:return l=e.sent,e.next=6,Le.play(l,1,1,0,0,1);case 6:return c=e.sent,e.abrupt("return",A(i,c));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,Le.load(h);case 8:return f=e.sent,e.next=9,Le.play(f,1,1,0,0,1);case 9:return p=e.sent,e.abrupt("return",A(i,p));case 10:if(!(v=Se(a))){e.next=13;break}return e.next=11,Le.load(v);case 11:return y=e.sent,e.next=12,Le.play(y,1,1,0,0,1);case 12:return m=e.sent,e.abrupt("return",A(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 E=new Blob([w],{type:"audio/mpeg"}),k=URL.createObjectURL(E),e.next=14,Le.load(k);case 14:return S=e.sent,e.next=15,Le.play(S,1,1,0,0,1);case 15:return x=e.sent,e.abrupt("return",A(i,x));case 16:return e.next=17,Ee(a);case 17:if(C=e.sent){e.next=18;break}return e.abrupt("return",A(i,-1));case 18:return L=new Blob([C]),T=URL.createObjectURL(L),e.next=19,Le.load(T);case 19:return O=e.sent,e.next=20,Le.play(O,1,1,0,0,1);case 20:return P=e.sent,e.abrupt("return",A(i,P));case 21:return e.prev=21,e.catch(1),e.abrupt("return",A(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(d().mark(function e(t){var n,r,i,o,a=arguments;return d().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",A(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(){Le.release()}}]);var e,t,r,i}(),Oe="files",Pe=null;function Ie(){return window.__VIRTUAL_FS__||null}function Ne(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 Re(e){return null==e?0:"string"==typeof e?e.length:"number"==typeof e.byteLength?e.byteLength:"number"==typeof e.length?e.length:0}function De(){return new Promise(function(e,t){if(Pe)e(Pe);else{var n=indexedDB.open("es_vfs_db",1);n.onerror=function(){t(n.error)},n.onsuccess=function(){Pe=n.result,e(Pe)},n.onupgradeneeded=function(e){var t=e.target.result;t.objectStoreNames.contains(Oe)||t.createObjectStore(Oe,{keyPath:"path"})}}})}function Me(e){return Fe.apply(this,arguments)}function Fe(){return(Fe=l(d().mark(function e(t){var n;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=1,De();case 1:return n=e.sent,e.next=2,new Promise(function(e,r){var i=n.transaction([Oe],"readonly").objectStore(Oe).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 Be(e){return je.apply(this,arguments)}function je(){return(je=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=Ne(t))){e.next=1;break}return e.abrupt("return",{exists:!0,length:n.length,source:"map"});case 1:if(!(r=Ie())||!r.has(t)){e.next=2;break}return i=r.get(t),e.abrupt("return",{exists:!0,length:Re(i),source:"virtual-fs"});case 2:return e.next=3,Me(t);case 3:if(!(o=e.sent)){e.next=4;break}return e.abrupt("return",{exists:!0,length:Re(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 Ve(e){return"string"==typeof e&&e.startsWith("data:")}var We=new Map,He=function(){return E(function e(t){_(this,e),(0,h.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(d().mark(function e(t){var n,r,i,o,a,s,u,l=arguments;return d().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=Ve(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,Be(n);case 1:o=e.sent,i.exists=o.exists,i.isFile=o.exists,i.length=o.length;case 2:for(We.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",A(s,n));case 3:case"end":return e.stop()}},e)})),function(e){return j.apply(this,arguments)})},{key:"newFile",value:(B=l(d().mark(function e(t){var n,r,i,o,a,s,u,l=arguments;return d().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=Ve(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,Be(n);case 1:o=e.sent,i.exists=o.exists,i.isFile=o.exists,i.length=o.length,o.source;case 2:for(We.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",A(s,n));case 3:case"end":return e.stop()}},e)})),function(e){return B.apply(this,arguments)})},{key:"newAbsolutePathFile",value:(F=l(d().mark(function e(t){var n,r,i,o,a=arguments;return d().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(d().mark(function e(t){var n,r,i,o,a=arguments;return d().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",A(i,n));case 1:case"end":return e.stop()}},e)})),function(e){return M.apply(this,arguments)})},{key:"isAbsolute",value:(D=l(d().mark(function e(t){var n,r,i,o,a=arguments;return d().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(!Ve(n)){e.next=1;break}return e.abrupt("return",A(i,!0));case 1:return e.abrupt("return",A(i,n.startsWith("/")));case 2:case"end":return e.stop()}},e)})),function(e){return D.apply(this,arguments)})},{key:"isDirectory",value:(R=l(d().mark(function e(t){var n,r,i,o,a,s=arguments;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(n=(null==t?void 0:t.id)||"",r=We.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",A(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(d().mark(function e(t){var n,r,i,o,a,s=arguments;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=(null==t?void 0:t.id)||"",e.next=1,Be(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",A(o,r.exists));case 2:case"end":return e.stop()}},e)})),function(e){return N.apply(this,arguments)})},{key:"canWrite",value:(I=l(d().mark(function e(t){var n,r,i,o=arguments;return d().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",A(r,!0));case 1:case"end":return e.stop()}},e)})),function(e){return I.apply(this,arguments)})},{key:"exists",value:(P=l(d().mark(function e(t){var n,r,i,o,a,s,u=arguments;return d().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=u.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=u[o];if(!Ve(n)){e.next=1;break}return e.abrupt("return",A(i,!0));case 1:if(!Ne(n)){e.next=2;break}return e.abrupt("return",A(i,!0));case 2:if(!(a=We.get(n))){e.next=3;break}return e.abrupt("return",A(i,a.exists));case 3:return e.next=4,Be(n);case 4:return(s=e.sent).exists&&We.set(n,{id:n,path:n,exists:!0,isDirectory:!1,isFile:!0,length:s.length,lastModified:Date.now()}),e.abrupt("return",A(i,s.exists));case 5:case"end":return e.stop()}},e)})),function(e){return P.apply(this,arguments)})},{key:"length",value:(O=l(d().mark(function e(t){var n,r,i,o,a,s=arguments;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=(null==t?void 0:t.id)||"",e.next=1,Be(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",A(o,r.length));case 2:case"end":return e.stop()}},e)})),function(e){return O.apply(this,arguments)})},{key:"createNewFile",value:(T=l(d().mark(function e(t){var n,r,i,o,a,s=arguments;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(n=(null==t?void 0:t.id)||"",r=Ie(),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",A(o,!0));case 1:return e.abrupt("return",A(o,!1));case 2:case"end":return e.stop()}},e)})),function(e){return T.apply(this,arguments)})},{key:"deleteOnExit",value:(L=l(d().mark(function e(t){var n,r,i,o=arguments;return d().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",A(r,!0));case 1:case"end":return e.stop()}},e)})),function(e){return L.apply(this,arguments)})},{key:"delete",value:(C=l(d().mark(function e(t){var n,r,i,o,a,s=arguments;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(n=(null==t?void 0:t.id)||"",r=Ie(),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),We.delete(n),e.abrupt("return",A(o,!0));case 1:return e.abrupt("return",A(o,!1));case 2:case"end":return e.stop()}},e)})),function(e){return C.apply(this,arguments)})},{key:"list",value:(x=l(d().mark(function e(t){var n,r,i,o,a,s,u,l=arguments;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(n=(null==t?void 0:t.id)||"",r=Ie(),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",A(o,u));case 1:return e.abrupt("return",A(o,[]));case 2:case"end":return e.stop()}},e)})),function(e){return x.apply(this,arguments)})},{key:"mkdir",value:(S=l(d().mark(function e(t){var n,r,i,o=arguments;return d().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",A(r,!0));case 1:case"end":return e.stop()}},e)})),function(e){return S.apply(this,arguments)})},{key:"mkdirs",value:(k=l(d().mark(function e(t){var n,r,i,o=arguments;return d().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",A(r,!0));case 1:case"end":return e.stop()}},e)})),function(e){return k.apply(this,arguments)})},{key:"renameTo",value:(w=l(d().mark(function e(t){var n,r,i,o,a,s,u,l=arguments;return d().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=Ie(),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",A(a,!0));case 1:return e.abrupt("return",A(a,!1));case 2:case"end":return e.stop()}},e)})),function(e){return w.apply(this,arguments)})},{key:"setLastModified",value:(b=l(d().mark(function e(t){var n,r,i,o=arguments;return d().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",A(r,!0));case 1:case"end":return e.stop()}},e)})),function(e){return b.apply(this,arguments)})},{key:"setReadOnly",value:(g=l(d().mark(function e(t){var n,r,i,o=arguments;return d().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",A(r,!0));case 1:case"end":return e.stop()}},e)})),function(e){return g.apply(this,arguments)})},{key:"setWritable",value:(m=l(d().mark(function e(t){var n,r,i,o=arguments;return d().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",A(r,!0));case 1:case"end":return e.stop()}},e)})),function(e){return m.apply(this,arguments)})},{key:"lastModified",value:(y=l(d().mark(function e(t){var n,r,i,o=arguments;return d().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",A(r,Date.now()));case 1:case"end":return e.stop()}},e)})),function(e){return y.apply(this,arguments)})},{key:"getName",value:(v=l(d().mark(function e(t){var n,r,i,o,a,s=arguments;return d().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",A(o,r[r.length-1]||""));case 1:case"end":return e.stop()}},e)})),function(e){return v.apply(this,arguments)})},{key:"getParent",value:(p=l(d().mark(function e(t){var n,r,i,o,a,s=arguments;return d().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",A(o,n.substring(0,r)));case 1:return e.abrupt("return",A(o,""));case 2:case"end":return e.stop()}},e)})),function(e){return p.apply(this,arguments)})},{key:"getParentFile",value:(f=l(d().mark(function e(t){var n,r,i,o,a=arguments;return d().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",A(i,null));case 3:case"end":return e.stop()}},e,this)})),function(e){return f.apply(this,arguments)})},{key:"getAbsolutePath",value:(c=l(d().mark(function e(t){var n,r,i,o,a=arguments;return d().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",A(i,n));case 1:case"end":return e.stop()}},e)})),function(e){return c.apply(this,arguments)})},{key:"getAbsoluteFile",value:(u=l(d().mark(function e(t){var n;return d().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(d().mark(function e(t){var n,r,i,o,a=arguments;return d().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",A(i,n));case 1:case"end":return e.stop()}},e)})),function(e){return s.apply(this,arguments)})},{key:"getCanonicalFile",value:(a=l(d().mark(function e(t){var n;return d().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(d().mark(function e(t){var n,r,i,o,a=arguments;return d().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",A(i,"file://"+n));case 1:case"end":return e.stop()}},e)})),function(e){return o.apply(this,arguments)})},{key:"toURI",value:(i=l(d().mark(function e(t){var n,r,i,o,a=arguments;return d().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",A(i,"file://"+n));case 1:case"end":return e.stop()}},e)})),function(e){return i.apply(this,arguments)})},{key:"getFreeSpace",value:(r=l(d().mark(function e(t){var n,r,i,o=arguments;return d().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",A(r,1073741824));case 1:case"end":return e.stop()}},e)})),function(e){return r.apply(this,arguments)})},{key:"getTotalSpace",value:(n=l(d().mark(function e(t){var n,r,i,o=arguments;return d().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",A(r,10737418240));case 1:case"end":return e.stop()}},e)})),function(e){return n.apply(this,arguments)})},{key:"getUsableSpace",value:(t=l(d().mark(function e(t){var n,r,i,o=arguments;return d().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",A(r,5368709120));case 1:case"end":return e.stop()}},e)})),function(e){return t.apply(this,arguments)})},{key:"compareTo",value:(e=l(d().mark(function e(t){var n,r,i,o,a,s=arguments;return d().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",A(o,n.localeCompare(r)));case 1:case"end":return e.stop()}},e)})),function(t){return e.apply(this,arguments)})},{key:"destroy",value:function(){We.clear()}}]);var e,t,n,r,i,o,a,s,u,c,f,p,v,y,m,g,b,w,k,S,x,C,L,T,O,P,I,N,R,D,M,F,B,j}(),Ue=null,ze=!1;function Ge(){var e;q("NetSpeed",{speedKbps:e=Math.floor(5e3*Math.random())+100,speedMbps:(e/1024).toFixed(2)})}var Ye=new(function(){return E(function e(t){_(this,e),this.context=t,this.name="ESNetworkSpeedModule"},[{key:"showNetSpeed",value:function(){ze||(ze=!0,Ge(),Ue=setInterval(function(){Ge()},500))}},{key:"stopNetSpeed",value:function(){ze&&(Ue&&(clearInterval(Ue),Ue=null),ze=!1)}},{key:"isShowing",value:function(){return ze}},{key:"destroy",value:function(){this.stopNetSpeed()}},{key:"init",value:function(){return Promise.resolve(!0)}}])}());function qe(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 Xe(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)?Xe(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 Xe(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 Ke(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 $e(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ke(Object(n),!0).forEach(function(t){(0,h.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ke(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 Ze=function(){return E(function e(t){_(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 A(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 A(r,!0)}},{key:"download",value:(t=l(d().mark(function e(t){var n,r,i,o=arguments;return d().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",A(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(d().mark(function e(t){var r,i,o,a,s,u,l,c,h=arguments;return d().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",A(a,!1));case 1:return u=(null==t?void 0:t.fileName)||this._extractFileName(i),l=this._downloadCacheDir+"/"+u,c=$e({id:r,url:i,fileName:u,filePath:l,fileLength:0,downloadLength:0,status:"pending"},t),this._downloads.set(r,c),n.g.__WEB_FILE_URL_MAP__.set(l,i),this._notifyListener("onDownloadStart",c),c.status="completed",this._notifyListener("onDownloadSuccess",c),e.abrupt("return",A(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 A(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 A(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=qe(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 x(t)}},{key:"destroy",value:function(){this._downloads.clear(),this._listeners.clear()}}]);var e,t}(),Je=n(474);function Qe(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 et=new ge(null),tt=new Te(null),nt=new He(null),rt=new Ze(null);n.g.__WEB_MODULES__||(n.g.__WEB_MODULES__={}),n.g.__WEB_MODULES__.ESIJKAudioPlayerModule=et,n.g.__WEB_MODULES__.ESSoundPoolAudioPlayerModule=tt,n.g.__WEB_MODULES__.ESSoundPoolPlayerModule=tt,n.g.__WEB_MODULES__.AndroidFileModule=nt,n.g.__WEB_MODULES__.ESNetworkSpeedModule=Ye,n.g.__WEB_MODULES__.ESDownloadModule=rt;var it=null,ot=!1,at=!1;function st(){void 0!==n.g.Hippy&&n.g.Hippy.device?(n.g.Hippy.device.window={width:y,height:m,scale:1,fontScale:1,statusBarHeight:0,navigatorBarHeight:0},n.g.Hippy.device.screen={width:y,height:m,scale:1,fontScale:1,statusBarHeight:0,navigatorBarHeight:0},n.g.Hippy.device.pixelRatio=1):setTimeout(st,10)}function ut(){var e=document.getElementById("app");e?(e.style.width=y+"px",e.style.height=m+"px",new MutationObserver(function(){e.style.width===y+"px"&&e.style.height===m+"px"||(e.style.width=y+"px",e.style.height=m+"px")}).observe(e,{attributes:!0,attributeFilter:["style"]})):setTimeout(ut,10)}var lt=["focusColor","focusBackgroundColor","focusTextColor","focusBorderColor","focusBorderWidth","focusBorderRadius","focusOpacity","focusScale","selectColor","selectBackgroundColor"],ct=["focusBorderWidth","focusBorderRadius","focusOpacity","focusScale"];function dt(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 ht={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 ft(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(ht[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 pt(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?Qe(Object(n),!0).forEach(function(t){(0,h.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qe(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=ft(r);i&&(n.background=i.background,i.borderRadius&&(n.borderRadius=i.borderRadius)),delete n.gradientBackground}return lt.forEach(function(r){var i,o=r.replace(/([A-Z])/g,"-$1").toLowerCase(),a=t[r]||t[o];void 0!==a&&(i=ct.includes(r)?a:"number"==typeof a?dt(a):a,e.setAttribute("data-"+o,String(i)),delete n[r],delete n[o])}),n}function vt(){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 yt=null;function mt(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,Je.Zd)(pt(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&&lt.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=ct.includes(n)?o:"number"==typeof o?dt(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=ft(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,Je.Zd)(n.style))}}}},r._addEventListenerPatched=!0,!0}return!1}function gt(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 _t(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 bt(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 wt(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 Et(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)?Et(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 Et(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 kt(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 St(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kt(Object(n),!0).forEach(function(t){(0,h.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kt(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var At=function(){return E(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};_(this,e),this.options=St({useDistanceBasedNavigation:!0,crossDistanceWeight:.5,directionalAngleThreshold:60,blockedDirectionalAngleThreshold:40,directionalAngleOffset:20},t)},[{key:"setOptions",value:function(e){this.options=St(St({},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"),E=c.hasAttribute("selected")&&"false"!==w,k=null!==c.querySelector('[selected="true"]'),S=E||k;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 L=[];try{L=JSON.parse(C.replace(/'/g,'"')),Array.isArray(L)||(L=[])}catch(e){L=C.split(",").map(function(e){return e.trim().toLowerCase()}).filter(function(e){return e})}if(L.some(function(e){return e.toLowerCase()===t.toLowerCase()})&&!x.contains(c)){A=!0;break}}x=x.parentElement}if(A)return;var T=!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));T=P>0,O=P/Math.min(f.height,i.height),b*=T?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));T=I>0,O=I/Math.min(f.width,i.width),b*=T?1-.9*O:50}var N=bt(e,c),R=_+b+(T?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=wt(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,i=wt(t);try{for(i.s();!(r=i.n()).done;){var o=r.value;if(e.contains(o))return o}}catch(e){i.e(e)}finally{i.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=wt(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=wt(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=wt(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(d>=0)return null;h=!0,f=Math.max(0,n.top-s.bottom),p=Math.abs(c);break;case"down":if(d<=0)return null;h=!0,f=Math.max(0,s.top-n.bottom),p=Math.abs(c);break;case"left":if(c>=0)return null;h=!0,f=Math.max(0,n.left-s.right),p=Math.abs(d);break;case"right":if(c<=0)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 E=Math.max(0,Math.min(s.right,n.right)-Math.max(s.left,n.left));_=E>0,b=E/Math.min(s.width,n.width),p*=_?1-.9*b:50}var k=bt(t,e),S=f+p+(_?0:1e4)+(k<=1?-500:k<=2?-200:k<=3?-50:0)+(g?-1e3:0),A=this._getListTargetElement(e,i,a,t);return A?{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}}}])}(),xt=n(128);function Ct(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?Ct(Object(n),!0).forEach(function(t){(0,h.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ct(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Tt=function(){return E(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};_(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=Lt(Lt({},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 E=e.getAttribute("data-focus-border");E&&(f.enableBorder="true"===E);var k=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());k&&(f.focusBackgroundColor=k);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,xt.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,xt.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 E=window.getComputedStyle(r),k={backgroundColor:r.style.backgroundColor||E.backgroundColor,color:r.style.color||E.color};t.focusedElementOriginalStyles.set(r,k)}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,L=h||"#FFFFFF",T=l?parseFloat(l):8;r.style.outline="".concat(C,"px solid ").concat(L),r.style.outlineOffset="0px",r.style.borderRadius=T+"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)}}])}(),Ot=function(){return E(function e(){_(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)})}}])}(),Pt=function(){return E(function e(){_(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=[]}}])}(),It=function(){return E(function e(){_(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 Nt(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 Rt(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)?Rt(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 Rt(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 Dt(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 Mt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Dt(Object(n),!0).forEach(function(t){(0,h.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dt(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Ft=function(){return E(function e(){_(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 At(this.options),this.styler=new Tt,this.showOnStateManager=new Ot,this.stateManager=new Pt,this.fastListHandler=new It,this.styler.setShowOnStateManager(this.showOnStateManager)}},{key:"setOptions",value:function(e){this.options=Mt(Mt({},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=Nt(t);try{var i=function(){var t=n.value;"childList"===t.type&&t.addedNodes.length>0&&setTimeout(function(){var n,r=Nt(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=gt(e);$(t)||this._callCurrentPageMethod("onKeyDown",t)}},{key:"_dispatchPageKeyUp",value:function(e){var t=gt(e);Z(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&&(this.fastListHandler.maybeNotifyFastListItemFocusChanged(t,!1),this._removeFocusStyle(t)),this.focusedElement=e,this._applyFocusStyle(this.focusedElement),this.focusedElement.classList.add("focused"),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:"_scrollToCenter",value:function(e){if(e){var t=this._findScrollContainer(e);if(t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),i=t.scrollHeight>t.clientHeight,o=t.scrollWidth>t.clientWidth;if(i){var a=n.top-r.top+t.scrollTop,s=n.height,u=r.height,l=a-(u-s)/2,c=t.scrollHeight-u,d=Math.max(0,Math.min(l,c));t.scrollTo({top:d,behavior:"smooth"})}if(o){var h=n.left-r.left+t.scrollLeft,f=n.width,p=r.width,v=h-(p-f)/2,y=t.scrollWidth-p,m=Math.max(0,Math.min(v,y));t.scrollTo({left:m,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=(0,v.findComponentById)(r);return i&&"function"==typeof i.markClickHandled&&i.markClickHandled(),Q(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){X()}},{key:"_directionNumberToName",value:function(e){return _t(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=_t(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)}}])}();(0,h.A)(Ft,"FOCUS_DIRECTION",{BACKWARD:1,FORWARD:2,LEFT:17,UP:33,RIGHT:66,DOWN:130});var Bt=({NODE_ENV:"production"}.VUE_APP_PROXY_DOMAINS||"").split(",").map(function(e){return e.trim()}).filter(Boolean);[/api\./i,/-api\./i,/\.api\./i,/qcloudimg\./i,/cdnott\./i,/baidu\./i].concat(p(Bt.map(function(e){return new RegExp(e.replace(/\./g,"\\."),"i")})));var jt=window.localStorage,Vt=new Map,Wt={getItem:e=>new Promise(function(t){setTimeout(function(){try{var n=jt.getItem(e);t(n)}catch(e){t(null)}},0)}),setItem:(e,t)=>new Promise(function(n,r){setTimeout(function(){try{var i=jt.getItem(e);jt.setItem(e,t),Ht(e,i,t),n()}catch(e){r(e)}},0)}),removeItem:e=>new Promise(function(t){setTimeout(function(){try{var n=jt.getItem(e);jt.removeItem(e),Ht(e,n,null),t()}catch(e){t()}},0)}),clear:()=>new Promise(function(e){setTimeout(function(){try{jt.clear(),e()}catch(t){e()}},0)}),key:e=>new Promise(function(t){setTimeout(function(){try{t(jt.key(e))}catch(e){t(null)}},0)}),get length(){return jt.length},addChangeListener(e){var t=Date.now()+Math.random();return Vt.set(t,e),function(){return Vt.delete(t)}}};function Ht(e,t,n){Vt.forEach(function(r){try{r(e,n,t)}catch(e){}})}var Ut=n(553);function zt(e,t){if(t&&("object"==(0,Ut.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 Gt(e){return Gt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Gt(e)}function Yt(){return Yt="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=function(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=Gt(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}},Yt.apply(null,arguments)}function qt(e,t){return qt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},qt(e,t)}function Xt(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&&qt(e,t)}function Kt(e,t,n,r){var i=Yt(Gt(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof i?function(e){return i.apply(n,e)}:i}function $t(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 Zt(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)?Zt(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 Zt(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 Jt(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 Qt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Jt(Object(n),!0).forEach(function(t){(0,h.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jt(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function en(e,t,n){return t=Gt(t),zt(e,tn()?Reflect.construct(t,n||[],Gt(e).constructor):t.apply(e,n))}function tn(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(tn=function(){return!!e})()}var nn=function(){return"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{}},rn=nn(),on={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"},an={click:"onClick",longclick:"onLongClick",pressin:"onPressIn",pressout:"onPressOut",touchstart:"onTouchDown",touchend:"onTouchEnd",touchmove:"onTouchMove",touchcancel:"onTouchCancel"},sn={changetext:"onChangeText",keyboardwillhide:"onKeyboardWillHide",keyboardwillshow:"onKeyboardWillShow",contentsizechange:"onContentSizeChange",endediting:"onEndEditing"},un={pageselected:"onPageSelected",pagescroll:"onPageScroll",statechanged:"onStateChanged",pagescrollstatechanged:"onPageScrollStateChanged"};function ln(e){return on[e]?on[e]:function(e){return!!an[e]}(e)?an[e]:function(e){return!!sn[e]}(e)?sn[e]:function(e){return!!un[e]}(e)?un[e]:function(e){return e.startsWith("on")?e:"on".concat(e.charAt(0).toUpperCase()).concat(e.slice(1))}(e)}var cn=function(){return E(function e(t){_(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,ln(t),n)}},{key:"removeEventListener",value:function(e,t,n){Hippy.bridge.callNative("UIManagerModule","removeEventListener",e,ln(t),n)}}])}(),dn="AnimationModule",hn=function(){return E(function e(t){_(this,e),this.id=t},[{key:"getId",value:function(){return this.id}},{key:"start",value:function(){Hippy.bridge.callNative(dn,"startAnimation",this.id)}},{key:"pause",value:function(){Hippy.bridge.callNative(dn,"pauseAnimation",this.id)}},{key:"resume",value:function(){Hippy.bridge.callNative(dn,"resumeAnimation",this.id)}},{key:"destroy",value:function(){Hippy.bridge.callNative(dn,"destroyAnimation",this.id)}},{key:"updateAnimation",value:function(e){Hippy.bridge.callNative(dn,"destroyAnimation",this.id,e)}},{key:"addEventListener",value:function(e,t){Hippy.bridge.callNative(dn,"addEventListener",this.id,e,t)}},{key:"removeEventListener",value:function(e,t){Hippy.bridge.callNative(dn,"removeEventListener",this.id,e,t)}}])}(),fn=function(e){function t(e){return _(this,t),en(this,t,[Hippy.bridge.callNativeWithCallbackId(dn,"createAnimation",!0,e.mode,e)])}return Xt(t,e),E(t)}(hn),pn=function(e){function t(e){var n=e.children,r=e.repeatCount;return _(this,t),en(this,t,[Hippy.bridge.callNativeWithCallbackId(dn,"createAnimationSet",!0,{children:n,repeatCount:r})])}return Xt(t,e),E(t)}(hn),vn={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 yn={OS:"web",Platform:{OS:"android",Localization:void 0},Dimensions:Qt({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}}())},mn=function(){return E(function e(t){var n=this;_(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]}}])}(),gn=function(){return E(function e(t){_(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 _n,bn=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},wn=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},En=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]},kn=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},Sn={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 kn(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)},An=["measureInWindow","measureInAppWindow","getBoundingClientRect"],xn={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){An.includes(t)?Hippy.bridge.callNative("UIManagerModule",t,[e,n],r):Hippy.bridge.callNative("UIManagerModule","callUIFunction",[e,t,n],r)}},Cn={country:"",language:"",direction:0},Ln={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]}},Tn=nn();"undefined"!=typeof window&&(window.global=Tn),Tn.Hippy={},Tn.__GLOBAL__={},Tn.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},Tn.__ISHIPPY__=!0,Tn.__GLOBAL__.globalEventHandle={},Tn.__GLOBAL__.jsModuleList={Dimensions:vn},Tn.__HIPPYNATIVEGLOBAL__=yn,Tn.HippyDealloc=function(){Hippy&&Hippy.emit("dealloc")},Tn.__Headers=Tn.Headers,Tn.Headers=mn,Tn.__Response=Tn.Response,Tn.Response=gn,Tn.__fetch=Tn.fetch,Tn.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 mn)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 mn(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 gn(n);e(r)}else t(n)}).catch(function(e){t(e)})})},Tn.__WebSocket=Tn.WebSocket,Tn.getTurboModule=function(e){var t=Hippy.web.engine.modules[e];return t},Tn.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=Ln,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=bn,Hippy.off=wn,Hippy.emit=En,Hippy.asyncStorage=Sn,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=xn,Hippy.device.platform={OS:__HIPPYNATIVEGLOBAL__.Platform.OS,Localization:__HIPPYNATIVEGLOBAL__.Platform.Localization||Cn},Hippy.SceneBuilder=cn,Hippy.Animation=fn,Hippy.AnimationSet=pn,Tn.__localStorage=Tn.localStorage,Object.defineProperty(Tn,"localStorage",{value:Hippy.asyncStorage}),Tn.turboPromise=Hippy.turboPromise,Object.defineProperty(Tn.console,"reportUncaughtException",{value:function(e){if(e&&e instanceof Error)throw e}}),Tn.addEventListener("unhandledrejection",function(e){Tn.Hippy.emit("unhandledRejection",null==e?void 0:e.reason,null==e?void 0:e.promise)}),vn.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"}(_n||(_n={}));var On,Pn,In,Nn,Rn,Dn,Mn,Fn,Bn=2;!function(e){e.HEAD="head",e.clip="clip",e.MIDDLE="middle",e.TAIL="tail"}(On||(On={})),function(e){e.COVER="cover",e.CONTAIN="contain",e.STRETCH="stretch",e.REPEAT="repeat",e.CENTER="center"}(Pn||(Pn={})),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"}(In||(In={})),function(e){e.default="default",e.numeric="numeric",e.password="password",e.email="email",e.phonePad="phone-pad"}(Nn||(Nn={})),function(e){e.done="done",e.go="go",e.next="next",e.search="search",e.send="send"}(Rn||(Rn={})),function(e){e.Slide="slide",e.Fade="fade",e.SlideFade="slide_fade",e.None="none"}(Dn||(Dn={})),function(e){e.Portrait="portrait",e.PortraitUpsideDown="portrait-upside-down",e.Landscape="landscape",e.LandscapeLeft="landscape-left",e.LandscapeRight="landscape-right"}(Mn||(Mn={})),function(e){e.IDLE="idle",e.DRAG="dragging",e.SETTL="settling"}(Fn||(Fn={}));var jn="marginVertical",Vn="marginHorizontal",Wn="paddingVertical",Hn="paddingHorizontal";function Un(e,t){return e&&Object.prototype.hasOwnProperty.call(e,t)}function zn(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(Un(t,h))if(-1===h.indexOf("shadow"))if(-1===h.indexOf("textShadow"))if(!Xn(h)||isNaN(t[h]))if(Gn(h,t[h])&&n)n(h,t[h],e);else if(Qn(h)&&"span"===e.tagName){var f=Jn(t[h]);Yn(e,h,f),Yn(e,"line-height",f)}else{if(Kn(h,t[h]))Yn(e,h,Jn(t[h]));else $n(h)?Yn(e,h,parseInt(t[h],10)):(Zn(h)&&(l[h]=t[h]),Yn(e,h,t[h]))}else Yn(e,h,qn(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?Yn(e,"borderStyle","solid"):t.borderStyle&&!t.borderWidth&&(t.borderTopWidth||t.borderLeftWidth||t.borderRightWidth||t.borderBottomWidth)&&(Yn(e,"borderStyle","none"),er(e,t)):Yn(e,"borderStyle","none");void 0!==t[jn]&&(Yn(e,"marginTop",Jn(t[jn])),Yn(e,"marginBottom",Jn(t[jn])));void 0!==t[Vn]&&(Yn(e,"marginLeft",Jn(t[Vn])),Yn(e,"marginRight",Jn(t[Vn])));void 0!==t[Wn]&&(Yn(e,"paddingTop",Jn(t[Wn])),Yn(e,"paddingBottom",Jn(t[Wn])));void 0!==t[Hn]&&(Yn(e,"paddingLeft",Jn(t[Hn])),Yn(e,"paddingRight",Jn(t[Hn])))}(e,t),s.shadowRadius&&Yn(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(qn(r.shadowColor))),(u.textShadowColor||u.textShadowOffset||u.textShadowOffsetX||u.textShadowOffsetY)&&Yn(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(qn(e.textShadowColor))}(u)),function(e,t){for(var n,r=function(){var r=o[i];if("backgroundImage"===r)return Yn(t,r,"url(".concat(e.backgroundImage,")")),1;if("backgroundSize"===r&&"contain"===e.backgroundSize?Yn(t,r,"100% 100%"):"backgroundSize"===r&&Yn(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(qn(e.color)).concat(e.ratio>=0?" ".concat(100*e.ratio,"%"):"")}),Yn(t,"background","linear-gradient(".concat(s,")"))}},i=0,o=Object.keys(e);i<o.length;i++)r();Object.keys(e).length>0&&Yn(t,"backgroundRepeat","no-repeat")}(l,e)}}function Gn(e,t){return!!Un(t,"animationId")||(!("transform"!==e||!Array.isArray(t))||void 0)}function Yn(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 qn(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 Xn(e){return e.endsWith("Color")||e.endsWith("color")}function Kn(e,t){return!(isNaN(t)||e.startsWith("flex")||e.startsWith("zIndex")||e.startsWith("-webkit")||e.startsWith("z-index")||e.startsWith("opacity"))}function $n(e){return e.startsWith("zIndex")||e.startsWith("z-index")}function Zn(e){return e.startsWith("background")||e.startsWith("linearGradient")}function Jn(e){return isNaN(e)?e:"".concat(e,"px")}function Qn(e){return e.startsWith("fontSize")}function er(e,t){t.borderTopWidth&&Yn(e,"borderTopStyle","solid"),t.borderLeftWidth&&Yn(e,"borderLeftStyle","solid"),t.borderRightWidth&&Yn(e,"borderRightStyle","solid"),t.borderBottomWidth&&Yn(e,"borderBottomStyle","solid")}function tr(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n]}var nr=function(){},rr=function(){return E(function e(t){_(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]}}])}(),ir=function(){return E(function e(){_(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 or(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=$t(e);try{for(o.s();!(i=o.n()).done;){r(i.value)}}catch(e){o.e(e)}finally{o.f()}})}var ar=function(){function e(t){_(this,e),this.modules={},this.components={},this.eventBus=new ir,this.pendingQueue={},this.pendingModules={},this.context=new rr(this);var n=t||{},r=n.modules,i=n.components;this.registerCore(),this.registerModules(r),this.registerComponents(i),rn.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 E(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("destoryInstance",this.instance.id)}},{key:"pause",value:function(){hippyBridge("pauseInstance")}},{key:"resume",value:function(){hippyBridge("resumeInstance")}},{key:"load",value:function(e){return or(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?sr(t,n,r):void 0,s=[].concat(p(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}();ar.coreModules={};var sr=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})}}},ur=E(function e(){_(this,e),this.name=""}),lr=function(e){function t(e){var n;return _(this,t),(n=en(this,t)).mode="normal",n.context=e,n}return Xt(t,e),E(t,[{key:"init",value:function(){}}])}(ur),cr=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}()}(),dr="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,hr=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")(),fr="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(hr):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)};var pr=["top","right","bottom","left","width","height","size","weight"],vr="undefined"!=typeof MutationObserver,yr=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(){fr(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(){dr&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),vr?(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(){dr&&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;pr.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}(),mr=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},gr=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||hr},_r=Ar(0,0,0,0);function br(e){return parseFloat(e)||0}function wr(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(t,n){return t+br(e["border-"+n+"-width"])},0)}function Er(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return _r;var r=gr(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]=br(o)}return t}(r),o=i.left+i.right,a=i.top+i.bottom,s=br(r.width),u=br(r.height);if("border-box"===r.boxSizing&&(Math.round(s+o)!==t&&(s-=wr(r,"left","right")+o),Math.round(u+a)!==n&&(u-=wr(r,"top","bottom")+a)),!function(e){return e===gr(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 Ar(i.left,i.top,s,u)}var kr="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof gr(e).SVGGraphicsElement}:function(e){return e instanceof gr(e).SVGElement&&"function"==typeof e.getBBox};function Sr(e){return dr?kr(e)?function(e){var t=e.getBBox();return Ar(0,0,t.width,t.height)}(e):Er(e):_r}function Ar(e,t,n,r){return{x:e,y:t,width:n,height:r}}var xr=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Ar(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=Sr(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}(),Cr=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),mr(u,{x:r,y:i,width:o,height:a,top:i,right:r+o,bottom:a+i,left:r}),u);mr(this,{target:e,contentRect:l})},Lr=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new cr,"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 gr(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new xr(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 gr(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 Cr(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}(),Tr="undefined"!=typeof WeakMap?new WeakMap:new cr,Or=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=yr.getInstance(),r=new Lr(t,n,this);Tr.set(this,r)};["observe","unobserve","disconnect"].forEach(function(e){Or.prototype[e]=function(){var t;return(t=Tr.get(this))[e].apply(t,arguments)}});var Pr=void 0!==hr.ResizeObserver?hr.ResizeObserver:Or;function Ir(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Nr,Rr={exports:{}};Nr=Rr,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 E(e,t){for(;e;){if(e==t)return!0;e=e.parentNode}return!1}function k(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 L(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 T=1;function O(t){var n=t.ownerDocument||t;return n.defaultView||n.parentWindow||e}var P="ontouchstart"in e,I=L(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=G(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=z(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,G((f=i)[0],f[1],B)/G(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=z(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;E(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 z(e,t){return e===t?1:u(e)>=u(t)?e<0?2:4:t<0?8:16}function G(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 E(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=L(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 Ee(e,t){this.manager=e,this.set(t)}Ee.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(k(e,ge))return ge;var t=k(e,_e),n=k(e,be);return t&&n?ge:t||n?t?_e:be:k(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=k(r,ge)&&!we[ge],o=k(r,be)&&!we[be],a=k(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 ke=32;function Se(e){this.options=i({},this.defaults,e||{}),this.id=T++,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 Le(){Se.apply(this,arguments)}function Te(){Le.apply(this,arguments),this.pX=null,this.pY=null}function Oe(){Le.apply(this,arguments)}function Pe(){Se.apply(this,arguments),this._timer=null,this._input=null}function Ie(){Le.apply(this,arguments)}function Ne(){Le.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 Ee(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=L(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=ke},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=ke);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(Le,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:ke}}),y(Te,Le,{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 Le.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,Le,{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 ke},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,Le,{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,Le,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:30,pointers:1},getTouchAction:function(){return Te.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||G(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 ke},failTimeout:function(){return this._timer=c(function(){this.state=ke},this.options.interval,this),ke},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}],[Te,{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:ke,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:Ee,TouchInput:se,MouseInput:$,PointerEventInput:te,TouchMouseInput:le,SingleTouchInput:re,Recognizer:Se,AttrRecognizer:Le,Tap:Re,Pan:Te,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:L}),(void 0!==e?e:"undefined"!=typeof self?self:{}).Hammer=De,Nr.exports?Nr.exports=De:e.Hammer=De}(window,document);var Dr=function(){return E(function e(t,n,r){_(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 Rr.exports.Manager(this.dom,{inputClass:Rr.exports.TouchInput}))}},{key:"onClick",get:function(){return!!this.props[In.ON_CLICK]},set:function(e){if(this.props[In.ON_CLICK]=e,this.initHammer(),this.hammer.remove("tap"),this.hammer.off("tap",this.handleOnClick),e){var t=new Rr.exports.Tap({time:200});this.hammer.add(t),this.hammer.on("tap",this.handleOnClick)}}},{key:"onLongClick",get:function(){return!!this.props[In.ON_LONG_CLICK]},set:function(e){if(this.props[In.ON_LONG_CLICK]=e,this.initHammer(),this.hammer.remove("press"),this.hammer.off("press",this.handleOnLongClick),e){var t=new Rr.exports.Press({time:200});this.hammer.add(t),this.hammer.on("press",this.handleOnLongClick)}}},{key:"onTouchDown",get:function(){return this.props[In.ON_TOUCH_DOWN]},set:function(e){this.props[In.ON_TOUCH_DOWN]=e,e?this.dom.addEventListener("touchstart",this.handleOnTouchStart):this.dom.removeEventListener("touchstart",this.handleOnTouchStart)}},{key:"onTouchMove",get:function(){return this.props[In.ON_TOUCH_MOVE]},set:function(e){this.props[In.ON_TOUCH_MOVE]=e,e?this.dom.addEventListener("touchmove",this.handleOnTouchMove):this.dom.removeEventListener("touchmove",this.handleOnTouchMove)}},{key:"onTouchEnd",get:function(){return this.props[In.ON_TOUCH_END]},set:function(e){this.props[In.ON_TOUCH_END]=e,e?this.dom.addEventListener("touchend",this.handleOnTouchEnd):this.dom.removeEventListener("touchend",this.handleOnTouchEnd)}},{key:"onTouchCancel",get:function(){return this.props[In.ON_TOUCH_CANCEL]},set:function(e){this.props[In.ON_TOUCH_CANCEL]=e,e?this.dom.addEventListener("touchcancel",this.handleOnTouchCancel):this.dom.removeEventListener("touchcancel",this.handleOnTouchCancel)}},{key:"onLayout",get:function(){return this.props[In.ON_LAYOUT]},set:function(e){var t;this.props[In.ON_LAYOUT]=e,e?(this.resizeObserver||(this.resizeObserver=new Pr(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,zn(this.dom,{zIndex:0}),void(this.updatedZIndex=!0);delete this.props.style.zIndex,zn(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[In.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:Bn,stopPropagation:function(){}})}},{key:"handleOnLongClick",value:function(e){this.onLongClick&&(this.dispatchEvent(In.ON_LONG_CLICK,e),e.srcEvent.stopPropagation())}},{key:"handleOnClick",value:function(e){this.onClick&&(this.dispatchEvent(In.ON_CLICK,e),e.srcEvent.stopPropagation())}},{key:"handleOnTouchStart",value:function(e){this.onTouchDown&&(this.dispatchEvent("onTouchDown",Mr(e,"onTouchDown",this.id)),e.stopPropagation())}},{key:"handleOnTouchMove",value:function(e){this.onTouchMove&&(this.dispatchEvent("onTouchMove",Mr(e,"onTouchMove",this.id)),e.stopPropagation(),e.preventDefault())}},{key:"handleOnTouchCancel",value:function(e){this.onTouchCancel&&(this.dispatchEvent("onTouchCancel",Mr(e,"onTouchCancel",this.id)),e.stopPropagation())}},{key:"handleOnTouchEnd",value:function(e){this.onTouchEnd&&(this.dispatchEvent("onTouchEnd",Mr(e,"onTouchEnd",this.id)),e.stopPropagation())}}]);var e,t,n}();function Mr(e,t,n){var r=e.changedTouches[0];return{name:t,id:n,page_x:Number(r.pageX),page_y:Number(r.pageY)}}var Fr,Br=function(e){function t(e,n,r){var i;return _(this,t),(i=en(this,t,[e,n,r])).isLoadSuccess=!1,i.tintModeContainerDom=null,i.renderImgDom=null,i.tagName=_n.IMAGE,i.dom=document.createElement("img"),i.renderImgDom=i.dom,i.handleLoad=i.handleLoad.bind(i),i.init(),i}return Xt(t,e),E(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=Qt({},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[In.TINY_COLOR]},set:function(e){var t,n;if(this.props[In.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 zn(this.dom,{filter:""})}},{key:"capInsets",get:function(){return this.props[In.CAP_INSETS]},set:function(e){this.props[In.CAP_INSETS]=e}},{key:"resizeMode",get:function(){return this.props[In.RESIZE_MODE]},set:function(e){e||(this.props[In.RESIZE_MODE]=Pn.CONTAIN),this.props[In.RESIZE_MODE]=e,this.renderImgDom&&e&&zn(this.renderImgDom,{objectFit:jr[e]})}},{key:"src",get:function(){var e=this.props[In.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[In.SOURCE]=null!=e?e:"",e&&e!==this.props[In.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[In.DEFAULT_SOURCE]},set:function(e){this.props[In.DEFAULT_SOURCE]=e,this.isLoadSuccess||(this.renderImgDom.src=e)}},{key:"onLoad",value:function(e){this.props[In.ON_LOAD]&&this.dispatchEvent(In.ON_LOAD,e)}},{key:"onLoadStart",value:function(e){this.props[In.ON_LOAD_START]&&this.dispatchEvent(In.ON_LOAD_START,e)}},{key:"onLoadEnd",value:function(e){this.props[In.ON_LOAD_END]&&this.dispatchEvent(In.ON_LOAD_END,e)}},{key:"onError",value:function(e){this.props[In.ON_ERROR]&&this.dispatchEvent(In.ON_ERROR,e)}},{key:"onProgress",value:function(e){this.props[In.ON_PROGRESS]&&this.dispatchEvent(In.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(!Un(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=qn(this.tintColor);zn(this.renderImgDom,{transform:"translateX(-100%)",filter:"drop-shadow(".concat(this.props.style.width,"px 0 ").concat(e,")")})}}])}(Dr),jr=((Fr={})[Pn.CENTER]="none",Fr[Pn.CONTAIN]="contain",Fr[Pn.STRETCH]="fill",Fr[Pn.REPEAT]="none",Fr[Pn.COVER]="cover",Fr),Vr={exports:{}},Wr={exports:{}},Hr={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}(Hr);var Ur={exports:{}};!function(e){var t=Hr.exports.default;e.exports=function(e,n){if("object"!=t(e)||!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}(Ur),function(e){var t=Hr.exports.default,n=Ur.exports;e.exports=function(e){var r=n(e,"string");return"symbol"==t(r)?r:r+""},e.exports.__esModule=!0,e.exports.default=e.exports}(Wr),function(e){var t=Wr.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}(Vr);var zr,Gr=Ir(Vr.exports);var Yr="undefined"==typeof document?void 0:document,qr=!!Yr&&"content"in Yr.createElement("template"),Xr=!!Yr&&Yr.createRange&&"createContextualFragment"in Yr.createRange();function Kr(e){return e=e.trim(),qr?function(e){var t=Yr.createElement("template");return t.innerHTML=e,t.content.childNodes[0]}(e):Xr?function(e){return zr||(zr=Yr.createRange()).selectNode(Yr.body),zr.createContextualFragment(e).childNodes[0]}(e):function(e){var t=Yr.createElement("body");return t.innerHTML=e,t.childNodes[0]}(e)}function $r(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 Zr(e,t,n){e[n]!==t[n]&&(e[n]=t[n],e[n]?e.setAttribute(n,""):e.removeAttribute(n))}var Jr={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)}Zr(e,t,"selected")},INPUT:function(e,t){Zr(e,t,"checked"),Zr(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 Qr(){}function ei(e){if(e)return e.getAttribute&&e.getAttribute("id")||e.id}var ti,ni=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=Yr.createElement("html")).innerHTML=i}else n=Kr(n);var o=r.getNodeKey||ei,a=r.onBeforeNodeAdded||Qr,s=r.onNodeAdded||Qr,u=r.onBeforeElUpdated||Qr,l=r.onElUpdated||Qr,c=r.onBeforeNodeDiscarded||Qr,d=r.onNodeDiscarded||Qr,h=r.onBeforeElChildrenUpdated||Qr,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&&$r(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&&$r(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])&&$r(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||Yr)),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=Jr[e.nodeName];v&&v(e,t)}(t,n):Jr.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,E,k=t,S=k.nodeType,A=n.nodeType;if(!f)if(1===S)1===A?$r(t,n)||(d(t),k=function(e,t){for(var n=e.firstChild;n;){var r=n.nextSibling;t.appendChild(n),n=r}return t}(t,(w=n.nodeName,(E=n.namespaceURI)&&"http://www.w3.org/1999/xhtml"!==E?Yr.createElementNS(E,w):Yr.createElement(w)))):k=n;else if(3===S||8===S){if(A===S)return k.nodeValue!==n.nodeValue&&(k.nodeValue=n.nodeValue),k;k=n}if(k===n)d(t);else{if(n.isSameNode&&n.isSameNode(k))return;if(b(k,n,f),v)for(var x=0,C=v.length;x<C;x++){var L=p[v[x]];L&&g(L,L.parentNode,!1)}}return!f&&k!==t&&t.parentNode&&(k.actualize&&(k=k.actualize(t.ownerDocument||Yr)),t.parentNode.replaceChild(k,t)),k}}(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)}}),ri=function(){return E(function e(t){var n=t.itemCount,r=t.itemSizeGetter,i=t.estimatedItemSize;_(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})}}])}(),ii=function(){return E(function e(t,n){var r=this;_(this,e),Gr(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 ri({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));ni(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 oi(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(!ti||ti===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=p(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 li(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(),ti=e,o=r)}},d=function(){ti=null,ai(e,r,n,t.scrollEnable(o),t.getPosition()),r=!1,t.needSimulatedScrolling&&a()},h=function(){ti=null,ai(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 ai(e,t,n,r,i,o,a){t&&r&&(null==o||o(i)),t&&n&&r&&(null==a||a())}function si(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 ui(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:100;zn(e,{transition:"transform ".concat(n/1e3,"s")}),setTimeout(function(){li(e,t)},16),setTimeout(function(){zn(e,{transition:""})},n+16)}function li(e,t){zn(e,{transform:"translate(".concat(t[0],"px,").concat(t[1],"px)")})}function ci(e,t,n){var r=1e3/t,i=Date.now()-e>=r;return i&&(null==n||n()),i}function di(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 hi(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]&&ui(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=p(n);ui(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 fi=function(e){function t(e,n,r){var i;return _(this,t),(i=en(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=_n.LIST,i.dom=document.createElement("div"),i.init(),i}return Xt(t,e),E(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[In.OVER_SCROLL_ENABLED]},set:function(e){this.props[In.OVER_SCROLL_ENABLED]=e}},{key:"initialListSize",get:function(){var e;return null!==(e=this.props[In.INITIAL_LIST_SIZE])&&void 0!==e?e:10},set:function(e){this.props[In.INITIAL_LIST_SIZE]=e}},{key:"initialContentOffset",get:function(){return this.props[In.INITIAL_CONTENT_OFFSET]},set:function(e){this.props[In.INITIAL_CONTENT_OFFSET]=e}},{key:"preloadItemNumber",get:function(){return this.props[In.OVER_SCROLL_ENABLED]},set:function(e){this.props[In.PRELOAD_ITEM_NUMBER]=e}},{key:"rowShouldSticky",get:function(){return this.props[In.ROW_SHOULD_STICKY]},set:function(e){this.props[In.ROW_SHOULD_STICKY]=e}},{key:"scrollEventThrottle",get:function(){return this.props[In.SCROLL_EVENT_THROTTLE]},set:function(e){this.props[In.SCROLL_EVENT_THROTTLE]=e}},{key:"scrollEnabled",get:function(){return this.props[In.SCROLL_ENABLED]},set:function(e){this.props[In.SCROLL_ENABLED]=e,zn(this.dom,{overflow:this.scrollEnabled?"scroll":"hidden"})}},{key:"showScrollIndicator",get:function(){return this.props[In.SHOW_SCROLL_INDICATOR]},set:function(e){this.props[In.SHOW_SCROLL_INDICATOR]=e}},{key:"initialListReady",get:function(){return this.props[In.INITIAL_LIST_READY]},set:function(e){this.props[In.INITIAL_LIST_READY]=e}},{key:"onMomentumScrollBegin",value:function(e){this.props[In.ON_MOMENTUM_SCROLL_BEGIN]&&this.dispatchEvent(In.ON_MOMENTUM_SCROLL_BEGIN,e)}},{key:"onMomentumScrollEnd",value:function(e){this.props[In.ON_MOMENTUM_SCROLL_END]&&this.dispatchEvent(In.ON_MOMENTUM_SCROLL_END,e)}},{key:"onScroll",value:function(e){this.props[In.ON_SCROLL]&&this.dispatchEvent(In.ON_SCROLL,e)}},{key:"onScrollBeginDrag",value:function(e){this.props[In.ON_SCROLL_BEGIN_DRAG]&&this.dispatchEvent(In.ON_SCROLL_BEGIN_DRAG,e)}},{key:"onScrollEndDrag",value:function(e){this.props[In.ON_SCROLL_END_DRAG]&&this.dispatchEvent(In.ON_SCROLL_END_DRAG,e)}},{key:"onInitialListReady",value:function(){this.dispatchEvent(In.INITIAL_LIST_READY,null)}},{key:"onAppear",value:function(e){this.props[In.ON_APPEAR]&&this.dispatchEvent(In.ON_APPEAR,e)}},{key:"onDisappear",value:function(e){this.props[In.ON_DISAPPEAR]&&this.dispatchEvent(In.ON_DISAPPEAR,e)}},{key:"onWillAppear",value:function(e){this.props[In.ON_WILL_APPEAR]&&this.dispatchEvent(In.ON_WILL_APPEAR,e)}},{key:"onWillDisappear",value:function(e){this.props[In.ON_WILL_DISAPPEAR]&&this.dispatchEvent(In.ON_WILL_DISAPPEAR,e)}},{key:"onLoadMore",value:function(){this.props[In.ON_LOAD_MORE]&&this.dispatchEvent(In.ON_LOAD_MORE,null),this.props[In.ON_LOAD_MORE]&&this.dispatchEvent(In.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,Kt(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=p(this.childData),o=$t(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(){Kt(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(){Kt(t,"mounted",this,3)([])}},{key:"endBatch",value:function(){var e=this;setTimeout(function(){var t,n;e.dom&&(e.virtualList||(e.virtualList=new ii(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[In.OVER_SCROLL_ENABLED]=!0,this.props[In.INITIAL_LIST_SIZE]=10,this.props[In.INITIAL_LIST_READY]=!0,this.props[In.PRELOAD_ITEM_NUMBER]=1,this.props[In.SCROLL_EVENT_THROTTLE]=30,this.props[In.ON_LOAD_MORE]=!0,this.touchListenerRelease=oi(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};zn(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;zn(this.stickyListViewItem.dom,{height:null===(n=this.stickyListViewItem)||void 0===n?void 0:n.height});var o,a=$t(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;zn(this.stickyListViewItem.dom,{height:null===(e=this.stickyListViewItem)||void 0===e?void 0:e.height});var n,r=$t(t);try{for(r.s();!(n=r.n()).done;){var i=n.value;this.stickyContainer.removeChild(i),this.stickyListViewItem.dom.appendChild(i),zn(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=si(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&&ci(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;zn(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),zn(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}(Dr),pi=function(e){function t(e,n,r){var i;return _(this,t),(i=en(this,t,[e,n,r])).height=0,i.isDirty=!1,i.dirtyListener=null,i.tagName=_n.LIST_ITEM,i.dom=document.createElement("div"),i.onLayout=!0,i}return Xt(t,e),E(t,[{key:"sticky",get:function(){return this.props[In.STICKY]},set:function(e){this.props[In.STICKY]=e}},{key:"addDirtyListener",value:function(e){this.dirtyListener=e}},{key:"mounted",value:function(){Kt(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))}}])}(Dr);var vi,yi=200;!function(e){e[e.ENTRY=0]="ENTRY",e[e.LEAVE=1]="LEAVE"}(vi||(vi={}));var mi={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:{}}},gi={fade:{animation:{opacity:0}},slide:{animation:{transform:"translate(0vw,100vh)"}},slide_fade:{animation:{transform:"translate(0vw,100vh)",opacity:0}},none:{animation:{},newState:{}}},_i=function(e){function t(e,n,r){var i;return _(this,t),(i=en(this,t,[e,n,r])).tagName=_n.MODAL,i.dom=document.createElement("div"),i.props[In.ANIMATED]=!0,i.onBackListener=function(){i.onOrientationChange(null)},i}return Xt(t,e),E(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=Qt({},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[In.ANIMATED]},set:function(e){this.props[In.ANIMATED]=e}},{key:"animationType",get:function(){return this.props[In.ANIMATION_TYPE]},set:function(e){this.props[In.ANIMATION_TYPE]=e}},{key:"supportedOrientations",get:function(){return this.props[In.SUPPORTED_ORIENTATIONS]},set:function(e){this.props[In.SUPPORTED_ORIENTATIONS]=e}},{key:"immersionStatusBar",get:function(){return this.props[In.IMMERSION_STATUS_BAR]},set:function(e){this.props[In.IMMERSION_STATUS_BAR]=e}},{key:"darkStatusBarText",get:function(){return this.props[In.DARK_STATUS_BAR_TEXT]},set:function(e){this.props[In.DARK_STATUS_BAR_TEXT]=e}},{key:"transparent",get:function(){return this.props[In.TRANSPARENT]},set:function(e){this.props[In.TRANSPARENT]=e,zn(this.dom,{backgroundColor:this.props[In.TRANSPARENT]?"#ffffff00":"#fff"})}},{key:"onShow",value:function(e){this.props[In.ON_SHOW]&&this.dispatchEvent(In.ON_SHOW,e)}},{key:"onOrientationChange",value:function(e){this.props[In.ON_ORIENTATION_CHANGE]&&this.dispatchEvent(In.ON_ORIENTATION_CHANGE,e)}},{key:"onRequestClose",value:function(e){this.props[In.ON_ORIENTATION_CHANGE]&&this.dispatchEvent(In.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,Kt(t,"beforeChildMount",this,3)([n,r]);case 1:0===r&&n.dom&&(zn(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,Kt(t,"beforeMount",this,3)([n,r]);case 1:this.entryAnimationAction=this.runAnimation(vi.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;Kt(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,Kt(t,"beforeRemove",this,3)([]);case 1:if(this.leaveAnimationAction=this.runAnimation(vi.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)},yi)});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!==Dn.None&&this.dom){var i=e===vi.ENTRY?t.buildModalEntryAnimation(this.animationType):t.buildModalLeaveAnimation(this.animationType),o=i.animation,a=i.newState;return zn(this.dom,Qt({zIndex:n},a)),function(){r.dom&&zn(r.dom,o)}}}}],[{key:"buildModalEntryAnimation",value:function(e){return mi[e]}},{key:"buildModalLeaveAnimation",value:function(e){return gi[e]}}]);var n,r,i}(Dr),bi=200,wi="cubic-bezier(0.645, 0.045, 0.355, 1)",Ei=[{threshold:[0,50],damp:1},{threshold:[50,100],damp:.6},{threshold:[100,Number.MAX_SAFE_INTEGER],damp:.2}],ki=function(e){function t(e,n,r){var i;return _(this,t),(i=en(this,t,[e,n,r])).tagName=_n.REFRESH,i.dom=document.createElement("div"),i}return Xt(t,e),E(t,[{key:"defaultStyle",value:function(){return{display:"flex",flexDirection:"column",overflow:" hidden",boxSizing:"border-box",position:"relative"}}},{key:"bounceTime",get:function(){return this.props[In.BOUNCE_TIME]},set:function(e){this.props[In.BOUNCE_TIME]=e}},{key:"onRefresh",value:function(){this.props[In.ON_REFRESH]&&this.dispatchEvent(In.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,Kt(t,"beforeChildMount",this,3)([n,r]);case 1:n.tagName===_n.LIST&&(zn(n.dom,{position:"relative",zIndex:2}),this.pullRefresh=new Ai(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,Kt(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[In.ON_REFRESH]?this.onRefresh():setTimeout(function(){var t;null===(t=e.pullRefresh)||void 0===t||t.finish()},500)}}]);var n,r}(Dr),Si=function(e){function t(e,n,r){var i;return _(this,t),(i=en(this,t,[e,n,r])).tagName=_n.REFRESH_ITEM,i.dom=document.createElement("div"),i}return Xt(t,e),E(t)}(Dr),Ai=function(){return E(function e(t,n,r){_(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;Li([this.refreshContent],{transform:xi(0,"".concat(null!==(e=-this.refreshContent.clientHeight)&&void 0!==e?e:0,"px"))})}},{key:"finish",value:function(){Li([this.refreshContent],{transform:xi(0,"".concat(this.endYOffset,"px")),transition:Ci("transform","".concat(.2),wi)}),Li([this.scrollContent],{transform:xi(0,0),transition:Ci("transform","".concat(.2),wi)})}},{key:"start",value:function(){var e=this;this.isPullFirst||this.handlePull(0),Li([this.scrollContent,this.refreshContent],{transform:xi(0,"".concat(this.overScrollThreshold,"px")),transition:Ci("transform","".concat(.2),wi)}),this.moveLengthRecord=this.overScrollThreshold,this.refreshStatus=!0,setTimeout(function(){var t;null===(t=e.handleCallBack)||void 0===t||t.call(e)},bi)}},{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<Ei.length;n++){var r=Ei[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,zn(this.scrollContent,{transform:xi(0,"".concat(n,"px"))}),!this.refreshContent||this.refreshContent.tagName!==_n.REFRESH_ITEM||void 0!==this.refreshContent.style.top&&""!==this.refreshContent.style.top||(this.refreshHeadHeight=this.refreshContent.clientHeight,zn(this.refreshContent,{top:-this.refreshContent.clientHeight})),zn(this.refreshContent,{transform:xi(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,Li([this.scrollContent,this.refreshContent],{transition:Ci("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(Li([this.scrollContent,this.refreshContent],{transition:Ci("transform","".concat(.2),wi)}),!this.refreshStatus)return this.finish(),void setTimeout(function(){n.moveLengthRecord=0,n.touchMove=0},bi);null===(e=this.handleCallBack)||void 0===e||e.call(this),Li([this.scrollContent],{transform:xi(0,"".concat(this.overScrollThreshold,"px"))}),Li([this.refreshContent],{transform:xi(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 xi(e,t){return"translate(".concat(e,", ").concat(t,")")}function Ci(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"ease-out";return"".concat(e," ").concat(t,"s ").concat(n)}function Li(e,t){e.forEach(function(e){zn(e,t)})}var Ti=function(e){function t(e,n,r){var i;return _(this,t),(i=en(this,t,[e,n,r])).lastPosition=[0,0],i.lastTimestamp=0,i.scrollCaptureState=!1,i.tagName=_n.SCROLL_VIEW,i.dom=document.createElement("div"),i[In.SCROLL_EVENT_THROTTLE]=30,i[In.SCROLL_ENABLED]=!0,i}return Xt(t,e),E(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=Qt({},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[In.BOUNCES]},set:function(e){this.props[In.BOUNCES]=e}},{key:"horizontal",get:function(){return this.props[In.HORIZONTAL]},set:function(e){this.props[In.HORIZONTAL]=e,zn(this.dom,this.scrollStyle())}},{key:"pagingEnabled",get:function(){return this.props[In.PAGING_ENABLED]&&this.horizontal},set:function(e){this.props[In.PAGING_ENABLED]=e,zn(this.dom,this.scrollStyle())}},{key:"scrollEventThrottle",get:function(){var e;return null!==(e=this.props[In.SCROLL_EVENT_THROTTLE])&&void 0!==e?e:30},set:function(e){this.props[In.SCROLL_EVENT_THROTTLE]=e}},{key:"scrollIndicatorInsets",get:function(){return this.props[In.SCROLL_INDICATOR_INSETS]},set:function(e){this.props[In.SCROLL_INDICATOR_INSETS]=e}},{key:"contentContainerStyle",get:function(){return this.props[In.CONTENT_CONTAINER_STYLE]},set:function(e){var t,n;this.props[In.CONTENT_CONTAINER_STYLE]=e,1===(null===(t=this.dom)||void 0===t?void 0:t.childNodes.length)&&zn(null===(n=this.dom)||void 0===n?void 0:n.childNodes[0],this.contentContainerStyle)}},{key:"scrollEnabled",get:function(){return this.props[In.SCROLL_ENABLED]},set:function(e){this.props[In.SCROLL_ENABLED]=e,zn(this.dom,this.scrollStyle())}},{key:"onMomentumScrollBegin",value:function(e){this.props[In.ON_MOMENTUM_SCROLL_BEGIN]&&this.dispatchEvent(In.ON_MOMENTUM_SCROLL_BEGIN,e)}},{key:"onMomentumScrollEnd",value:function(e){this.props[In.ON_MOMENTUM_SCROLL_END]&&this.dispatchEvent(In.ON_MOMENTUM_SCROLL_END,e)}},{key:"onScroll",value:function(e){this.props[In.ON_SCROLL]&&this.dispatchEvent(In.ON_SCROLL,e)}},{key:"onScrollBeginDrag",value:function(e){this.props[In.ON_SCROLL_BEGIN_DRAG]&&this.dispatchEvent(In.ON_SCROLL_BEGIN_DRAG,e)}},{key:"onScrollEndDrag",value:function(e){this.props[In.ON_SCROLL_END_DRAG]&&this.dispatchEvent(In.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,Kt(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&&zn(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,Kt(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=oi(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];hi(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=si(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,hi(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 di(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&&ci(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}(Dr),Oi=function(e){function t(e,n,r){var i;return _(this,t),(i=en(this,t,[e,n,r])).tagName=_n.TEXT_INPUT,i.dom=document.createElement("input"),i.init(),i}return Xt(t,e),E(t,[{key:"defaultStyle",value:function(){return Qt(Qt({},Kt(t,"defaultStyle",this,3)([])),{},{outline:"none",fontFamily:""})}},{key:"updateProps",value:function(e,t){var n;this.firstUpdateStyle&&t(this,{style:this.defaultStyle()});var r=Qt({},e);(null===(n=null==e?void 0:e.style)||void 0===n?void 0:n.placeholderTextColor)&&(r.placeholderTextColor=qn(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[In.DEFAULT_VALUE])&&void 0!==e?e:""},set:function(e){this.props[In.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[In.EDITABLE]},set:function(e){var t,n;this.props[In.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[In.KEY_BOARD_TYPE]},set:function(e){var t,n;switch(this.props[In.KEY_BOARD_TYPE]=e,e){case Nn.numeric:n="number";break;case Nn.password:n="password";break;case Nn.email:n="email";break;case Nn.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[In.MAX_LENGTH]},set:function(e){var t;this.props[In.MAX_LENGTH]=e,null===(t=this.dom)||void 0===t||t.setAttribute("maxlength",String(e))}},{key:"multiline",get:function(){return this.props[In.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[In.MULTILINE]=e,this.changeToDomMode(e))}},{key:"numberOfLines",get:function(){return this.props[In.NUMBER_OF_LINES]},set:function(e){var t;this.props[In.NUMBER_OF_LINES]=e,null===(t=this.dom)||void 0===t||t.setAttribute("rows",String(e))}},{key:"placeholder",get:function(){return this.props[In.PLACEHOLDER]},set:function(e){var t;this.props[In.PLACEHOLDER]=e,null===(t=this.dom)||void 0===t||t.setAttribute("placeholder",e)}},{key:"placeholderTextColor",get:function(){return this.props[In.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[In.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[In.RETURN_KEY_TYPE]},set:function(e){var t;this.props[In.RETURN_KEY_TYPE]=e,null===(t=this.dom)||void 0===t||t.setAttribute("enterkeyhint",e)}},{key:"value",get:function(){return this.props[In.VALUE]},set:function(e){var t;this.props[In.VALUE]=e,null===(t=this.dom)||void 0===t||t.setAttribute("value",e)}},{key:"autoFocus",get:function(){return this.props[In.AUTO_FOCUS]},set:function(e){var t,n;this.props[In.AUTO_FOCUS]=e,this.props[In.AUTO_FOCUS]&&(null===(t=this.dom)||void 0===t||t.setAttribute("autofocus","true")),this.props[In.AUTO_FOCUS]&&(null===(n=this.dom)||void 0===n||n.removeAttribute("autofocus"))}},{key:"onBlur",value:function(e){this.props[In.ON_BLUR]&&this.dispatchEvent(In.ON_BLUR,e)}},{key:"onChangeText",value:function(e){this.props[In.ON_CHANGE_TEXT]&&this.dispatchEvent(In.ON_CHANGE_TEXT,e)}},{key:"onEndEditing",value:function(e){this.props[In.ON_END_EDITING]&&this.dispatchEvent(In.ON_END_EDITING,e)}},{key:"onSelectionChange",value:function(e){this.props[In.ON_SELECTION_CHANGE]&&this.dispatchEvent(In.ON_SELECTION_CHANGE,e)}},{key:"blurTextInput",value:function(){var e;null===(e=this.dom)||void 0===e||e.blur(),this.props[In.IS_FOCUSED]=!1}},{key:"focusTextInput",value:function(){var e;null===(e=this.dom)||void 0===e||e.focus(),this.props[In.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[In.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[In.IS_FOCUSED]=!0}},{key:"isFocused",value:function(e){e.resolve({value:Boolean(this.props[In.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}(Dr);var Pi=function(e){function t(e,n,r){var i;return _(this,t),(i=en(this,t,[e,n,r])).tagName=_n.VIEW,i.dom=document.createElement("div"),i}return Xt(t,e),E(t)}(Dr),Ii=function(e){function t(e,n,r){var i;return _(this,t),(i=en(this,t,[e,n,r])).pageIndex=0,i.scrollCaptureState=!1,i.lastPosition=[0,0],i.children=[],i.swipeRecognize=null,i.tagName=_n.VIEW_PAGER,i.dom=document.createElement("div"),i.init(),i}return Xt(t,e),E(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[In.INITIAL_PAGE]},set:function(e){this.props[In.INITIAL_PAGE]=e}},{key:"scrollEnabled",get:function(){return this.props[In.SCROLL_ENABLED]},set:function(e){this.props[In.SCROLL_ENABLED]=e}},{key:"onPageSelected",value:function(e){this.props[In.ON_PAGE_SELECTED]&&this.dispatchEvent(In.ON_PAGE_SELECTED,e)}},{key:"onPageScroll",value:function(e){this.props[In.ON_PAGE_SCROLL]&&this.dispatchEvent(In.ON_PAGE_SCROLL,e)}},{key:"onPageScrollStateChanged",value:function(e){this.props[In.ON_PAGE_SCROLL_STATE_CHANGED]&&this.dispatchEvent(In.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,Kt(t,"beforeChildMount",this,3)([n,r]);case 1:n instanceof Ri&&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){Kt(t,"beforeChildRemove",this,3)([e]),e instanceof Ri&&(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,Kt(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[In.INITIAL_PAGE]=0,this.props[In.SCROLL_ENABLED]=!0,this.hammer=new Rr.exports.Manager(this.dom,{inputClass:Rr.exports.TouchInput,touchAction:"auto"});var t=new Rr.exports.Swipe;this.hammer.add(t),this.hammer.on("swipe",function(t){e.swipeRecognize=t,t.srcEvent.stopPropagation()}),this.touchListenerRelease=oi(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=si(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(Ni(Fn.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(Ni(Fn.SETTL)),!this.swipeRecognize){e.next=1;break}return n=this.pageIndex,this.swipeRecognize.offsetDirection===Rr.exports.DIRECTION_RIGHT&&this.pageIndex>0?n-=1:this.swipeRecognize.offsetDirection===Rr.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=di(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,hi(this.dom,s,t,a,200,this.pageIndex,o);case 2:this.onPageSelected({position:o}),this.onPageScrollStateChanged(Ni(Fn.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=p(this.lastPosition),o=[t*r*-1,this.lastPosition[1]],this.onPageScrollStateChanged(Ni(Fn.SETTL)),a=function(e,t){s.updatePositionInfo(e,t),s.handleScroll()},e.next=1,hi(this.dom,a,i,o,n?200:0,this.pageIndex,t);case 1:this.onPageSelected({position:t}),this.onPageScrollStateChanged(Ni(Fn.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}(Dr);function Ni(e){return{pageScrollState:e}}var Ri=function(e){function t(e,n,r){var i;return _(this,t),(i=en(this,t,[e,n,r])).tagName=_n.VIEW_PAGER_ITEM,i.dom=document.createElement("div"),i}return Xt(t,e),E(t,[{key:"defaultStyle",value:function(){return{flexShrink:0,display:"flex",boxSizing:"border-box",position:"static"}}},{key:"updateProps",value:function(e,t){var n=Qt({},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,Kt(t,"beforeMount",this,3)([n,r]);case 1:zn(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}(Dr),Di=function(e){function t(e,n,r){var i;return _(this,t),(i=en(this,t,[e,n,r])).isMounted=!1,i.dom=document.createElement("iframe"),i.tagName=_n.WEB_VIEW,i.dom.onload=i.onLoadEnd.bind(i),i}return Xt(t,e),E(t,[{key:"source",get:function(){return this.props[In.SOURCE]},set:function(e){var t;this.props[In.SOURCE]=e,this.isMounted&&(this.onLoadStart(this.props[In.SOURCE]),this.dom.src=null!==(t=e.uri)&&void 0!==t?t:"",this.onLoad(this.props[In.SOURCE]))}},{key:"userAgent",get:function(){return this.props[In.USER_AGENT]},set:function(e){this.props[In.USER_AGENT]=e}},{key:"method",get:function(){return this.props[In.METHOD]},set:function(e){this.props[In.METHOD]=e}},{key:"onLoadStart",value:function(e){this.props[In.ON_LOAD_START]&&this.dispatchEvent(In.ON_LOAD_START,e)}},{key:"onLoad",value:function(e){this.props[In.ON_LOAD]&&this.dispatchEvent(In.ON_LOAD,e)}},{key:"onLoadEnd",value:function(){this.props[In.ON_LOAD_END]&&this.dispatchEvent(In.ON_LOAD_END,this.props[In.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,Kt(t,"beforeMount",this,3)([n,r]);case 1:this.props[In.SOURCE].uri&&(this.dom.src=null!==(i=this.props[In.SOURCE].uri)&&void 0!==i?i:""),this.dom.src&&this.onLoadStart(this.props[In.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[In.SOURCE])}},{key:"style",get:function(){return this.props[In.STYLE]},set:function(e){this.props[In.STYLE]=e}}]);var n}(Dr),Mi={head:{"text-overflow":"ellipsis",direction:"rtl"},clip:{"text-overflow":"clip"},middle:{"text-overflow":"ellipsis"},tail:{"text-overflow":"ellipsis"}},Fi=function(e){function t(e,n,r){var i;return _(this,t),(i=en(this,t,[e,n,r])).tagName=_n.TEXT,i.dom=document.createElement("span"),i.props[In.ELLIPSIZE_MODE]=On.TAIL,i}return Xt(t,e),E(t,[{key:"defaultStyle",value:function(){return Qt({boxSizing:"border-box",zIndex:0},Mi[this.ellipsizeMode])}},{key:"numberOfLines",get:function(){return this.props[In.NUMBER_OF_LINES]},set:function(e){this.props[In.NUMBER_OF_LINES]=e,1===e?this.dom&&zn(this.dom,{"white-space":"nowrap","word-break":"keep-all",display:"initial","-webkit-box-orient":"","-webkit-line-clamp":"",overflow:""}):this.dom&&zn(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[In.ELLIPSIZE_MODE]},set:function(e){this.props[In.ELLIPSIZE_MODE]=e,this.dom&&e&&zn(this.dom,Qt(Qt({},Mi[e]),{},{overflow:"hidden","white-space":"nowrap"}))}},{key:"text",get:function(){return this.props[In.VALUE]},set:function(e){if(this.props[In.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)}}])}(Dr),Bi=Object.freeze({__proto__:null,Image:Br,ListView:fi,Modal:_i,RefreshWrapper:ki,ScrollView:Ti,TextInput:Oi,View:Pi,ViewPager:Ii,WebView:Di,Text:Fi,ListViewItem:pi,ViewPagerItem:Ri,RefreshWrapperItemView:Si,HippyWebView:Dr});Hippy.web={},Hippy.web.Engine=ar;var ji,Vi=function(e){function t(){var e;return _(this,t),(e=en(this,t,arguments)).name="AnimationModule",e.animationPool={},e.animationSetPool={},e}return Xt(t,e),E(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 zi(this.context,e,n,t)))}},{key:"createAnimationSet",value:function(e,t){this.animationSetPool[e]||(this.animationSetPool[e]=new Gi(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):tr("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()):tr("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()):tr("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()):tr("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()):tr("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}}])}(lr);!function(e){e.START="onHippyAnimationStart",e.END="onHippyAnimationEnd",e.CANCEL="onHippyAnimationCancel",e.REPEAT="onHippyAnimationRepeat"}(ji||(ji={}));var Wi={perspective:1,rotate:1,rotateX:1,rotateY:1,rotateZ:1,scale:1,scaleX:1,scaleY:1,translateX:1,translateY:1,skewX:1};function Hi(e){switch(e){case"animationstart":return ji.START;case"animationend":return ji.END;case"animationrepeat":return ji.REPEAT;case"animationcancel":return ji.CANCEL;default:return e}}var Ui=function(){return E(function e(){_(this,e),this.events={}},[{key:"addAnimationEventListener",value:function(e,t){var n=Hi(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=Hi(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)})}}])}(),zi=function(e){function t(e,n,r,i){var o;return _(this,t),(o=en(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 Xt(t,e),E(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];Wi[t]&&(this.refCssProperty=t)}else this.refCssProperty=e}},{key:"useForSetProperty",get:function(){return this.refCssProperty?Wi[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=Xi(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=Xi(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(Yi(t),"}\n to {").concat(Yi(n),"}\n }"));return{keyFrame:qi(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=qi(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(qi(this.animationName).cssRule){var t=Xi(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);zn(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(qn(e)):"".concat(e).concat(t)}},{key:"handleAnimationStart",value:function(e){e.animationName===this.animationName&&this.dispatchEvent(ji.START),this.beginListener.forEach(function(e){e()})}},{key:"handleAnimationEnd",value:function(e){e.animationName===this.animationName&&this.dispatchEvent(ji.END),this.changeAnimationStatus("paused"),this.endListener.forEach(function(e){e()})}}])}(Ui),Gi=function(e){function t(e,n,r){var i;return _(this,t),(i=en(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 Xt(t,e),E(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(ji.START)}},{key:"handleAnimationEnd",value:function(){this.dispatchEvent(ji.END)}}])}(Ui);function Yi(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 qi(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 Xi(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 Ki=function(e){function t(){var e;return _(this,t),(e=en(this,t,arguments)).name="ClipboardModule",e}return Xt(t,e),E(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(){tr("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(){tr("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){tr("set clipboard failed")}finally{document.body.removeChild(n)}}}}])}(lr),$i=function(e){function t(){var e;return _(this,t),(e=en(this,t,arguments)).name="DeviceEventModule",e.listen=!1,e.moduleListener=[],e}return Xt(t,e),E(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)===Zi?-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))}}])}(lr),Zi="puppet";var Ji=function(e){function t(){var e;return _(this,t),(e=en(this,t,arguments)).name="ImageLoaderModule",e}return Xt(t,e),E(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(){}}])}(lr),Qi=function(e){function t(e){var n;return _(this,t),(n=en(this,t,[e])).name="NetInfo",n.handleOnlineChange=n.handleOnlineChange.bind(n),n}return Xt(t,e),E(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})}}])}(lr),eo=function(e){function t(){var e;return _(this,t),(e=en(this,t,arguments)).name="network",e}return Xt(t,e),E(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=$t(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(){}}])}(lr),to=function(e){function t(){var e;return _(this,t),(e=en(this,t,arguments)).moduleName="StorageModule",e.STORE_PRX_KEY="hippy-storage-",e}return Xt(t,e),E(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||(tr("not support localStorage"),!1)}}])}(lr),no=!1,ro=function(e){function t(e){var n;return _(this,t),(n=en(this,t,[e])).name="UIManagerModule",n.viewDictionary={},n.afterCreateAction=[],n.mode="sequential",n}return Xt(t,e),E(t,[{key:"init",value:function(){var e;!no&&((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)),no=!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 tr("create component failed, tagName is ".concat(p)),e.abrupt("continue",8);case 2:if(v=io(this.context,p,l,c)){e.next=3;break}return tr("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),nr();case 6:if(!i.has(l)){e.next=7;break}return e.abrupt("continue",8);case 7:p!==_n.LIST&&p!==_n.VIEW_PAGER||i.add(l),(null===(r=this.findViewById(c))||void 0===r?void 0:r.tagName)===_n.LIST&&i.add(c);case 8:o++,e.next=1;break;case 9:y=$t(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,p(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=$t(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){zn(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)||zn(n.dom,{position:"relative"}),"absolute"!==e.position||e.width||e.height||e.overflow||zn(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 tr("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)}),zn(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=$t(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,zn(n.dom,o))}}}]);var n,r,i,o,a,u}(lr);function io(e,t,n,r){if(e.engine.components[t])return new e.engine.components[t](e,n,r)}var oo=function(e){function t(){var e;return _(this,t),(e=en(this,t,arguments)).name="websocket",e.webSocketConnections={},e.connections=0,e}return Xt(t,e),E(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 ao(o,e.url,i),this.webSocketConnections[o].connect(this.dispatchEvent.bind(this)),t.resolve({code:0,id:o})}},{key:"send",value:function(e){e&&e.id&&this.webSocketConnections[e.id]&&this.webSocketConnections[e.id].disconnected&&(!e.data||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",Qt(Qt({},n),{},{id:e,type:t}))}},{key:"initialize",value:function(){}},{key:"destroy",value:function(){}}])}(lr),ao=function(){return E(function e(t,n,r){_(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)}}])}(),so={AnimationModule:Vi,ClipboardModule:Ki,DeviceEventModule:$i,ImageLoadModule:Ji,NetInfoModule:Qi,NetworkModule:eo,StorageModule:to,UIManagerModule:ro,WebSocketModule:oo};function uo(e,t,n){return t=Gt(t),zt(e,lo()?Reflect.construct(t,n||[],Gt(e).constructor):t.apply(e,n))}function lo(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(lo=function(){return!!e})()}ar.coreModules=so,ar.coreComponents=Bi;var co=function(e){function t(e,n,r){var i;return _(this,t),(i=uo(this,t,[e,n,r]))._originalDisplay=void 0,i}return Xt(t,e),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=Yt(Gt(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)}}])}(Dr);function ho(e,t,n){return t=Gt(t),zt(e,fo()?Reflect.construct(t,n||[],Gt(e).constructor):t.apply(e,n))}function fo(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(fo=function(){return!!e})()}function po(e,t,n,r){var i=Yt(Gt(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof i?function(e){return i.apply(n,e)}:i}var vo=function(e){function t(e,n,r){var i;return _(this,t),(i=ho(this,t,[e,n,r])).tagName="div",i.dom=document.createElement("div"),i._currentSid=null,i._bindDOMEvents(),i}return Xt(t,e),E(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&&(0,v.unregisterComponentBySid)(this._currentSid),this._currentSid=n,void(n?((0,v.registerComponentBySid)(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),po(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,Je.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,Je.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=po(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&&((0,v.unregisterComponentBySid)(this._currentSid),this._currentSid=null)}},{key:"destroy",value:function(){var e;null===(e=this.beforeUnmount)||void 0===e||e.call(this)}}])}(co);function yo(e,t){var n;return n=function(e){function n(e,r,i){var o;return _(this,n),(o=ho(this,n,[e,r,i])).dom&&(o.dom.setAttribute("data-component-name",t),o._originalComponentName=t),o}return Xt(n,e),E(n)}(e),(0,h.A)(n,"componentName",t),n}function mo(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 go(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mo(Object(n),!0).forEach(function(t){(0,h.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mo(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function _o(e,t,n){return t=Gt(t),zt(e,bo()?Reflect.construct(t,n||[],Gt(e).constructor):t.apply(e,n))}function bo(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(bo=function(){return!!e})()}function wo(e,t,n,r){var i=Yt(Gt(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof i?function(e){return i.apply(n,e)}:i}var Eo=function(e){function t(e,n,r){var i;return _(this,t),(i=_o(this,t,[e,n,r])).dom.setAttribute("data-component-name","ESPageRootView"),i._originalComponentName="ESPageRootView",i}return Xt(t,e),E(t,[{key:"defaultStyle",value:function(){return go(go({},wo(t,"defaultStyle",this,1)?wo(t,"defaultStyle",this,3)([]):{}),{},{backgroundColor:"#000000"})}}])}(vo);function ko(e,t,n){return t=Gt(t),zt(e,So()?Reflect.construct(t,n||[],Gt(e).constructor):t.apply(e,n))}function So(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(So=function(){return!!e})()}(0,h.A)(Eo,"componentName","ESPageRootView"),window.__HIPPY_COMPONENT_REGISTRY__=window.__HIPPY_COMPONENT_REGISTRY__||new Map;var Ao=function(e){function t(e,n,r){var i;return _(this,t),(i=ko(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 Xt(t,e),E(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("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=Yt(Gt(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.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._innerSpan.textContent=e||""),this._autoWidth&&this._scheduleAutoWidthSync(!0)}},{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:"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}}])}(co);function xo(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 Co(e,t,n){return t=Gt(t),zt(e,Lo()?Reflect.construct(t,n||[],Gt(e).constructor):t.apply(e,n))}function Lo(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Lo=function(){return!!e})()}function To(e,t,n,r){var i=Yt(Gt(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof i?function(e){return i.apply(n,e)}:i}var Oo=function(e){function t(e,n,r){var i;return _(this,t),(i=Co(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._layoutObserver=null,i._boundLoadHandler=null,i._boundErrorHandler=null,i._bindImageEvents(),(0,v.registerComponent)(n,i),i}return Xt(t,e),E(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?xo(Object(n),!0).forEach(function(t){(0,h.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xo(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},n);delete r.resizeMode,Object.keys(r).length>0&&To(t,"updateProperty",this,3)([e,r])}else To(t,"updateProperty",this,3)([e,n]);break;default:"string"==typeof n&&n.startsWith("${")&&this.dom.setAttribute(e,n),To(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,Je.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};ee(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};ee(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=To(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=To(t,"destroy",this,3))||void 0===e||e([])}}])}(co);function Po(e,t,n){return t=Gt(t),zt(e,Io()?Reflect.construct(t,n||[],Gt(e).constructor):t.apply(e,n))}function Io(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Io=function(){return!!e})()}window.__HIPPY_COMPONENT_REGISTRY__=window.__HIPPY_COMPONENT_REGISTRY__||new Map;var No=function(e){function t(e,n,r){var i;return _(this,t),(i=Po(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 ",(0,v.registerComponent)(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 Xt(t,e),E(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=Yt(Gt(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=Ro(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===Ro(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=Ro(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===Ro(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",Do(c),a.component&&a.component.props&&this._bindComponentPropsToNode(c,a.component.props,e),this._bindDataToNode(c,e),Mo(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,xt.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,xt.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=""}}])}(co);function Ro(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 Do(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 Mo(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 Fo(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=Ro(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=Ro(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=Ro(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",Do(c),u=c,l=e,(0,xt.bindTemplateDataToNode)(u,l),Mo(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,xt.u6)(n)}))}}}function Bo(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 jo={enabled:!1,duration:300},Vo=new Set;function Wo(){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Bo(Object(n),!0).forEach(function(t){(0,h.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bo(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},jo)}var Ho=function(){return E(function e(t){_(this,e),this.context=t,this.name="",this.mode="normal"},[{key:"setFadeEnabled",value:function(e){jo.enabled=!0===e,Vo.forEach(function(e){e&&"function"==typeof e.updateFadeConfig&&e.updateFadeConfig(jo)});for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return A(n,null)}},{key:"setFadeDuration",value:function(e){jo.duration="number"==typeof e?e:300,Vo.forEach(function(e){e&&"function"==typeof e.updateFadeConfig&&e.updateFadeConfig(jo)});for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return A(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 A(t,jo)}},{key:"init",value:(e=l(d().mark(function e(){var t,n,r,i,o=arguments;return d().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 Ho;function Uo(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 zo(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)?zo(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 zo(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 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 Yo(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,h.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 qo(e,t,n){return t=Gt(t),zt(e,Xo()?Reflect.construct(t,n||[],Gt(e).constructor):t.apply(e,n))}function Xo(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Xo=function(){return!!e})()}function Ko(e,t,n,r){var i=Yt(Gt(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof i?function(e){return i.apply(n,e)}:i}var $o=function(e){function t(e,n,r){var i,o;return _(this,t),(i=qo(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=Wo(),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,(0,v.registerComponent)(n,i),o=i,Vo.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 Xt(t,e),E(t,[{key:"updateFadeConfig",value:function(e){this._fadeConfig=Yo({},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:"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),Ko(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}),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),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(d().mark(function e(n,r){var i,o,a,s,u,l;return d().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,Ko(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}),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),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,Ko(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:"_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;if(this._singletonTemplates.forEach(function(n){if(n.dom){var r=null;if(null!==n.type&&void 0!==n.type&&(r=e._listData.find(function(e){return e.type===n.type})),!r)return void(n.dom.style.display="none");n.dom.style.display="",null!==r.type&&void 0!==r.type?t.add(r.type):null!==n.type&&void 0!==n.type&&t.add(n.type),r.style&&e._applyStyleToElement(n.dom,r.style),e._itemContainer.appendChild(n.dom)}}),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)}}),void 0!==this._selectedPosition&&this._selectedPosition>=0){var r=this._itemContainer.children;if(this._selectedPosition<r.length){var i=r[this._selectedPosition];if(i&&!i.hasAttribute("selected")){i.setAttribute("selected","true");for(var o=i.children,a=0;a<o.length;a++)o[a].setAttribute("selected","true");i.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:"_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:"_createItemFromData",value:function(e,t){var n=this,r=document.createElement("div");r.setAttribute("data-index",t),r.setAttribute("data-position",t),r.__fastListViewInstance=this;var i=void 0!==e.type?e.type:null,o=this._templateChildren.find(function(e){return e.type===i}),a=window.__QT_SHARED_TEMPLATES__,s=a&&null!=i?a.get(i):null;if(!o&&s&&s.dom&&(o=s),o||(o=this._templateChildren.find(function(e){return null===e.type})),!o&&a&&a.size>0){var u=a.values().next().value;u&&u.dom&&(o=u)}if(!o&&this._templateChildren.length>0&&(o=this._templateChildren[0]),o&&o.dom){var l=o.dom.cloneNode(!0);l.removeAttribute("data-template"),l.removeAttribute("id"),l.style.position="relative",l.style.left="auto",l.style.top="auto",l.style.display="",o.component&&o.component.props&&this._bindComponentPropsToNode(l,o.component.props,e,{itemList:this._listData}),this._bindDataToNode(l,e,{itemList:this._listData}),r.appendChild(l),requestAnimationFrame(function(){n._processChildListData(r),(0,xt.u6)(r)})}if(0===this._templateChildren.length){var c=e.text||e.title||e.name||"Item ".concat(t),d=document.createElement("span");d.textContent=c,d.style.cssText="color: white; font-size: 14px; padding: 5px; background: #333; margin: 5px; border-radius: 4px;",r.appendChild(d)}if(e.decoration){var h=e.decoration;void 0!==h.top&&(r.style.marginTop=h.top+"px"),void 0!==h.left&&(r.style.marginLeft=h.left+"px"),void 0!==h.right&&(r.style.marginRight=h.right+"px"),void 0!==h.bottom&&(r.style.marginBottom=h.bottom+"px")}return r._itemData=e,r._itemPosition=t,r.addEventListener("click",function(i){var o=n._findNestedItemMeta(null==i?void 0:i.target,r);o&&o.itemData!==e&&e&&"object"==typeof e&&Array.isArray(e.itemList)?n._dispatchItemClick(o.position,o.itemData,t):n._dispatchItemClick(t,e)}),this._fadeConfig.enabled&&(r.style.opacity="0",r.style.transition="opacity ".concat(this._fadeConfig.duration,"ms ease-in-out"),requestAnimationFrame(function(){requestAnimationFrame(function(){r.style.opacity="1"})})),r}},{key:"_bindComponentPropsToNode",value:function(e,t,n){var r=this;if(t&&n){var i=Yo(Yo({},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,xt.Hd)(o,i),s=n.toLowerCase();if("list"===s||"listdata"===s){if(void 0!==a&&Array.isArray(a)||(a=(0,xt.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,xt.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,xt.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?Fo(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){var n=[],r=Array.from(e.children||[]).filter(function(e){return e!==t});return r.forEach(function(e){var t,r,i=Zo(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=Zo(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),i=window.__QT_SHARED_TEMPLATES__;if(n.innerHTML="",0===t.length)return;var o=new Set,a=r.filter(function(e){return e.singleton}),s=r.filter(function(e){return!e.singleton});a.forEach(function(e){var r=null;(r=null!==e.type&&void 0!==e.type?t.find(function(t){return(null==t?void 0:t.type)===e.type})||null:t[0]||null)?(e.dom.style.display="",Jo(e.dom,r,t),Do(e.dom),n.appendChild(e.dom),null!==r.type&&void 0!==r.type&&o.add(r.type)):e.dom.style.display="none"});var u=s.length>0?s:r;t.forEach(function(e,r){var a;if(!o.has(null==e?void 0:e.type)){var s=u.find(function(t){return t.type===(null==e?void 0:e.type)});if(!s&&i&&null!==(null==e?void 0:e.type)&&void 0!==(null==e?void 0:e.type)){var l=i.get(e.type);null!=l&&l.dom&&(s=l)}if(s||(s=u.find(function(e){return null===e.type})),!s&&i&&i.size>0){var c=i.values().next().value;null!=c&&c.dom&&(s=c)}if(s||(s=u[0]),null!==(a=s)&&void 0!==a&&a.dom){var d=document.createElement("div");if(d.setAttribute("data-index",r),d.setAttribute("data-position",r),d._itemData=e,d._itemPosition=r,e&&e.decoration&&"object"==typeof e.decoration){var h=e.decoration;void 0!==h.top&&(d.style.marginTop=h.top+"px"),void 0!==h.left&&(d.style.marginLeft=h.left+"px"),void 0!==h.right&&(d.style.marginRight=h.right+"px"),void 0!==h.bottom&&(d.style.marginBottom=h.bottom+"px")}var f=s.dom.cloneNode(!0);f.removeAttribute("data-template"),f.removeAttribute("data-singleton"),f.removeAttribute("id"),f.style.display="",f.style.position="relative",Jo(f,e,t),Do(f),d.appendChild(f),n.appendChild(d)}}}),requestAnimationFrame(function(){return(0,xt.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]=Yo(Yo({},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:"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,Vo.delete(e),Ko(t,"destroy",this,1)&&Ko(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,p(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,p(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,p(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,p(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 E=_+.5*b;w&&(E-=1e3),E<l&&(l=E,s=f,u=d)}}else{var k=h.querySelectorAll('[focusable="true"]');0===k.length&&"true"===h.getAttribute("focusable")&&h!==e&&k.push(h);var S,A=Uo(k);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 L={x:C.left+C.width/2,y:C.top+C.height/2},T=L.x-o,O=L.y-a,P=!1;switch(t){case"up":P=O<-5;break;case"down":P=O>5;break;case"left":P=T<-5;break;case"right":P=T>5}if(P){var I=Math.sqrt(T*T+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,xt.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}(co);function Zo(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 Jo(e,t,n){(0,xt.bindTemplateDataToNode)(e,t,{scope:{itemList:n},onListData:function(e,t){e._qtListData=t,e.setAttribute("data-has-list","true")}})}function Qo(e,t,n){return t=Gt(t),zt(e,ea()?Reflect.construct(t,n||[],Gt(e).constructor):t.apply(e,n))}function ea(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(ea=function(){return!!e})()}var ta=function(e){function t(e,n,r){var i;return _(this,t),(i=Qo(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 Xt(t,e),E(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=Yt(Gt(1&(a=3)?r.prototype:r),i,o),2&a&&"function"==typeof s?function(e){return s.apply(o,e)}:s)([e,n])}}])}(co);function na(e,t,n){return t=Gt(t),zt(e,ra()?Reflect.construct(t,n||[],Gt(e).constructor):t.apply(e,n))}function ra(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(ra=function(){return!!e})()}var ia={alpha:"opacity",rotation:"rotate",rotationX:"rotateX",rotationY:"rotateY",rotationZ:"rotateZ",scaleX:"scaleX",scaleY:"scaleY",scaleZ:"scaleZ",translationX:"translateX",translationY:"translateY",translationZ:"translateZ"},oa={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"},aa=function(e){function t(e,n,r){var i;return _(this,t),(i=na(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 Xt(t,e),E(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)||f(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],p=d[1],v=d[2],y=(d[3],d[4],{id:i,propertyName:u,values:c,duration:h,repeatMode:p,repeatCount:v,interpolator:d[5]});this._animators.set(i,y)}},{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=oa[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=oa[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=ia[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)}}])}(co);function sa(e,t,n){return t=Gt(t),zt(e,ua()?Reflect.construct(t,n||[],Gt(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})()}var la=function(e){function t(e,n,r){var i;return _(this,t),(i=sa(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 Xt(t,e),E(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=Yt(Gt(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(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){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}(co);function ca(e,t,n){return t=Gt(t),zt(e,da()?Reflect.construct(t,n||[],Gt(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})()}function ha(e,t,n,r){var i=Yt(Gt(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 fa=null,pa=function(e){function t(e,n,r){var i;return _(this,t),(i=ca(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 Xt(t,e),E(t,[{key:"_render",value:(r=l(d().mark(function e(){var t,r,i=this;return d().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(fa){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:fa=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),fa.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()):ha(t,"updateProperty",this,3)([e,n])}},{key:"init",value:function(e){ha(t,"init",this,3)([e]),this._content=e.content||"",this._render()}}]);var r}(co);function va(e,t,n){return t=Gt(t),zt(e,ya()?Reflect.construct(t,n||[],Gt(e).constructor):t.apply(e,n))}function ya(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(ya=function(){return!!e})()}function ma(e,t,n,r){var i=Yt(Gt(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 ga=function(e){function t(e,n,r){var i;return _(this,t),(i=va(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 Xt(t,e),E(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:ma(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){ma(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()}}])}(co);function _a(e,t,n){return t=Gt(t),zt(e,ba()?Reflect.construct(t,n||[],Gt(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 wa(e,t,n,r){var i=Yt(Gt(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 Ea=function(e){function t(e,n,r){var i;return _(this,t),(i=_a(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 Xt(t,e),E(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:wa(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;wa(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()})}}])}(co);function ka(e,t,n){return t=Gt(t),zt(e,Sa()?Reflect.construct(t,n||[],Gt(e).constructor):t.apply(e,n))}function Sa(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Sa=function(){return!!e})()}var Aa=function(e){function t(e,n,r){var i;return _(this,t),(i=ka(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",(0,v.registerComponent)(n,i),i}return Xt(t,e),E(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=Yt(Gt(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")}}}}])}(co);function xa(e,t,n){return t=Gt(t),zt(e,Ca()?Reflect.construct(t,n||[],Gt(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})()}function La(e,t,n,r){var i=Yt(Gt(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof i?function(e){return i.apply(n,e)}:i}var Ta=function(e){function t(e,n,r){var i;return _(this,t),(i=xa(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=[],(0,v.registerComponent)(n,i),i}return Xt(t,e),E(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(d().mark(function e(n,r){return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n&&n.dom&&this.addTemplateChild(n),e.next=1,La(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),La(t,"updateProperty",this,3)([e,n])}}]);var n}(co);function Oa(e,t,n){return t=Gt(t),zt(e,Pa()?Reflect.construct(t,n||[],Gt(e).constructor):t.apply(e,n))}function Pa(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Pa=function(){return!!e})()}function Ia(e,t,n,r){var i=Yt(Gt(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof i?function(e){return i.apply(n,e)}:i}var Na=function(e){function t(e,n,r){var i;return _(this,t),(i=Oa(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,(0,v.registerComponent)(n,i),i}return Xt(t,e),E(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:Ia(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(),Ia(t,"destroy",this,3)([])}}])}(co);function Ra(e,t,n){return t=Gt(t),zt(e,Da()?Reflect.construct(t,n||[],Gt(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})()}function Ma(e,t,n,r){var i=Yt(Gt(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof i?function(e){return i.apply(n,e)}:i}var Fa=function(e){function t(e,n,r){var i;return _(this,t),(i=Ra(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={},(0,v.registerComponent)(n,i),i}return Xt(t,e),E(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(d().mark(function e(n,r){return d().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,Ma(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:Ma(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}(co);function Ba(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 ja(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ba(Object(n),!0).forEach(function(t){(0,h.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ba(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Va(e,t,n){return t=Gt(t),zt(e,Wa()?Reflect.construct(t,n||[],Gt(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})()}var Ha=function(e){function t(e,n,r){var i;return _(this,t),(i=Va(this,t,[e,n,r])).tagName="TabsView",i.dom=document.createElement("div"),i.dom.setAttribute("data-component-name","TabsView"),(0,v.registerComponent)(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._childrenByName=new Map,i._childrenContainer=i.dom,i}return Xt(t,e),E(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._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._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._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:"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=Yt(Gt(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=ja(ja({},s),{},{data:u}),this._tabItems=Array.isArray(u)?u:[],this._currentPageIndex=null!==(e=s.defaultIndex)&&void 0!==e?e:0,this._focusIndex=null!==(t=null!==(n=s.defaultFocusIndex)&&void 0!==n?n:s.focusIndex)&&void 0!==t?t:this._currentPageIndex;var l=this.getChildByName("tabList");l&&l.setListData&&l.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),setTimeout(function(){r._setInitialTabFocus()},100)})}},{key:"_setInitialTabFocus",value:function(){var e=this.getChildByName("tabList");if(e&&e.dom){var t=this._focusIndex,r=e._itemContainer;if(r||(r=e.dom.querySelector(".flex-view-item-container")),r){var i=r.children;if(i.length>0&&t>=0&&t<i.length){var o=i[t],a=o.querySelector('[focusable="true"], [focusable="1"], [focusable]')||o;return a.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(a)))}}var s=e.dom.querySelectorAll('[focusable="true"], [focusable="1"], [focusable]'),u=Array.from(s).filter(function(e){return"true"!==e.getAttribute("data-template")&&"none"!==e.style.display&&!e.closest('[data-template="true"]')});if(u.length>0&&t>=0&&t<u.length){var l=u[t];l.setAttribute("autofocus","true"),n.g.__TV_FOCUS_MANAGER__&&(n.g.__TV_FOCUS_MANAGER__.updateFocusableElements(),n.g.__TV_FOCUS_MANAGER__._doFocusElement(l))}}}},{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=ja(ja({},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;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){this._focusIndex=e,this.setCurrentPage(e)}},{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)}}}])}(co);function Ua(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 za(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ua(Object(n),!0).forEach(function(t){(0,h.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ua(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ga(e,t,n){return t=Gt(t),zt(e,Ya()?Reflect.construct(t,n||[],Gt(e).constructor):t.apply(e,n))}function Ya(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Ya=function(){return!!e})()}(0,h.A)(Ha,"_instanceCount",0);var qa=function(e){function t(e,n,r){var i;return _(this,t),(i=Ga(this,t,[e,n,r])).tagName="RecyclerViewPager",i.dom=document.createElement("div"),i.dom.setAttribute("data-component-name","RecyclerViewPager"),(0,v.registerComponent)(n,i),i._pages=new Map,i._currentIndex=0,i._direction="horizontal",i._contentView=null,i._childrenContainer=i.dom,i}return Xt(t,e),E(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=Yt(Gt(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,128)).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,za(za({},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}}])}(co);function Xa(e,t,n){return t=Gt(t),zt(e,Ka()?Reflect.construct(t,n||[],Gt(e).constructor):t.apply(e,n))}function Ka(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Ka=function(){return!!e})()}function $a(e,t,n,r){var i=Yt(Gt(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof i?function(e){return i.apply(n,e)}:i}var Za=function(e){function t(e,n,r){var i;return _(this,t),(i=Xa(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 ",(0,v.registerComponent)(n,i),i._visible=!0,i._transparent=!0,i}return Xt(t,e),E(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:$a(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=$a(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",{})}}])}(co);function Ja(e,t,n){return t=Gt(t),zt(e,Qa()?Reflect.construct(t,n||[],Gt(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 es(e,t,n,r){var i=Yt(Gt(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 _(this,t),(i=Ja(this,t,[e,n,r])).tagName="ListView",i.dom=document.createElement("div"),i.dom.setAttribute("data-component-name","ListView"),i.dom.__listViewInstance=i,(0,v.registerComponent)(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="row",i._children=[],i._startGradient=null,i._endGradient=null,i}return Xt(t,e),E(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;es(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||"",es(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),es(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=[],es(t,"destroy",this,3)([])}}])}(co),ns=function(e){function t(e,n,r){var i;return _(this,t),(i=Ja(this,t,[e,n,r])).tagName="ListViewItem",i.dom=document.createElement("div"),i.dom.setAttribute("data-component-name","ListViewItem"),(0,v.registerComponent)(n,i),i.height=0,i.isDirty=!1,i.dirtyListener=null,i}return Xt(t,e),E(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),es(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;es(t,"mounted",this,3)([]),requestAnimationFrame(function(){e.height=e.getItemHeight()})}},{key:"destroy",value:function(){this.dirtyListener=null,es(t,"destroy",this,3)([])}}])}(co);function rs(e,t,n){return t=Gt(t),zt(e,is()?Reflect.construct(t,n||[],Gt(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=Yt(Gt(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 _(this,t),(i=rs(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(),(0,v.registerComponent)(n,i),i}return Xt(t,e),E(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:os(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=[],os(t,"destroy",this,3)([])}}])}(co);function ss(e,t,n){return t=Gt(t),zt(e,us()?Reflect.construct(t,n||[],Gt(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})()}var ls=function(e){function t(e,n,r){var i;return _(this,t),(i=ss(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="",(0,v.registerComponent)(n,i),i}return Xt(t,e),E(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=Yt(Gt(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,Je.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}}])}(co),cs=function(){return E(function e(t){_(this,e),this.context=t,this.name="",this.mode="normal"},[{key:"getDeviceInfo",value:(v=l(d().mark(function e(){var t,n,r,i=arguments;return d().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",A(n,{}));case 1:case"end":return e.stop()}},e)})),function(){return v.apply(this,arguments)})},{key:"getESSDKInfo",value:(p=l(d().mark(function e(){var t,r,i,o,a=arguments;return d().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",A(i,t));case 1:case"end":return e.stop()}},e)})),function(){return p.apply(this,arguments)})},{key:"getESSDKVersionCode",value:(f=l(d().mark(function e(){var t,n,r,i=arguments;return d().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",A(n,2.8));case 1:case"end":return e.stop()}},e)})),function(){return f.apply(this,arguments)})},{key:"getESSDKVersionName",value:(h=l(d().mark(function e(){var t,n,r,i=arguments;return d().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",A(n,"web"));case 1:case"end":return e.stop()}},e)})),function(){return h.apply(this,arguments)})},{key:"getESPackageName",value:(c=l(d().mark(function e(){var t,n,r,i,o,a=arguments;return d().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",A(i,n));case 1:case"end":return e.stop()}},e)})),function(){return c.apply(this,arguments)})},{key:"getESMiniProgramPath",value:(u=l(d().mark(function e(){var t,n,r,i=arguments;return d().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",A(n,""));case 1:case"end":return e.stop()}},e)})),function(){return u.apply(this,arguments)})},{key:"getESAppFilePath",value:(s=l(d().mark(function e(){var t,n,r,i=arguments;return d().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",A(n,""));case 1:case"end":return e.stop()}},e)})),function(){return s.apply(this,arguments)})},{key:"getESAppRuntimePath",value:(a=l(d().mark(function e(){var t,n,r,i=arguments;return d().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",A(n,"/"));case 1:case"end":return e.stop()}},e)})),function(){return a.apply(this,arguments)})},{key:"getSupportSchemes",value:(o=l(d().mark(function e(){var t,n,r,i=arguments;return d().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",A(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 A(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 A(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 A(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 A(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 A(t,null)}},{key:"launchESPage",value:(i=l(d().mark(function e(){var t,n,r,i=arguments;return d().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",A(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 A(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 A(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 A(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 A(t,null)}},{key:"isModuleRegistered",value:(r=l(d().mark(function e(){var t,n,r,i=arguments;return d().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",A(n,!1));case 1:case"end":return e.stop()}},e)})),function(){return r.apply(this,arguments)})},{key:"isComponentRegistered",value:(t=l(d().mark(function e(){var t,n,r,i=arguments;return d().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",A(n,!1));case 1:case"end":return e.stop()}},e)})),function(){return t.apply(this,arguments)})},{key:"init",value:(e=l(d().mark(function e(){var t,n,r,i=arguments;return d().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",x(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,c,h,f,p,v}();function ds(){var e=globalThis;return e&&e.__localStorage||e&&e.localStorage||null}function hs(e){return fs.apply(this,arguments)}function fs(){return(fs=l(d().mark(function e(t){var n,r,i;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if((n=ds())&&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 ps(e,t){return vs.apply(this,arguments)}function vs(){return(vs=l(d().mark(function e(t,n){var r,i;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if((r=ds())&&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 ys=function(){return E(function e(t){_(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(d().mark(function e(t){var n,r,i,o=arguments;return d().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",A(r,!0));case 1:case"end":return e.stop()}},e,this)})),function(e){return h.apply(this,arguments)})},{key:"initESSharedPreferences",value:(c=l(d().mark(function e(t){var n,r,i,o=arguments;return d().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",A(r,!0));case 1:case"end":return e.stop()}},e,this)})),function(e){return c.apply(this,arguments)})},{key:"getBoolean",value:(u=l(d().mark(function e(t,n){var r,i,o,a,s=arguments;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,hs(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",A(o,!!n));case 2:if("true"!==r){e.next=3;break}return e.abrupt("return",A(o,!0));case 3:if("false"!==r){e.next=4;break}return e.abrupt("return",A(o,!1));case 4:if("1"!==r){e.next=5;break}return e.abrupt("return",A(o,!0));case 5:if("0"!==r){e.next=6;break}return e.abrupt("return",A(o,!1));case 6:return e.abrupt("return",A(o,!!n));case 7:case"end":return e.stop()}},e,this)})),function(e,t){return u.apply(this,arguments)})},{key:"putBoolean",value:(s=l(d().mark(function e(t,n){var r,i,o,a,s=arguments;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,ps(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",A(o,r));case 2:case"end":return e.stop()}},e,this)})),function(e,t){return s.apply(this,arguments)})},{key:"getInt",value:(a=l(d().mark(function e(t,n){var r,i,o,a,s,u=arguments;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,hs(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",A(o,Number(n)||0));case 2:return s=Number.parseInt(String(r),10),e.abrupt("return",A(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(d().mark(function e(t,n){var r,i,o,a,s=arguments;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,ps(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",A(o,r));case 2:case"end":return e.stop()}},e,this)})),function(e,t){return o.apply(this,arguments)})},{key:"getLong",value:(i=l(d().mark(function e(t,n){var r,i,o,a,s,u=arguments;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,hs(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",A(o,Number(n)||0));case 2:return s=Number.parseInt(String(r),10),e.abrupt("return",A(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(d().mark(function e(t,n){var r,i,o,a,s=arguments;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,ps(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",A(o,r));case 2:case"end":return e.stop()}},e,this)})),function(e,t){return r.apply(this,arguments)})},{key:"getString",value:(n=l(d().mark(function e(t,n){var r,i,o,a,s=arguments;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,hs(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",A(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(d().mark(function e(t,n){var r,i,o,a,s=arguments;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,ps(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",A(o,r));case 2:case"end":return e.stop()}},e,this)})),function(e,n){return t.apply(this,arguments)})},{key:"init",value:(e=l(d().mark(function e(){var t,n,r,i=arguments;return d().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",x(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,c,h}();function ms(){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 gs=function(){return E(function e(t){_(this,e),this.context=t,this.name="",this.mode="normal"},[{key:"getDeviceInfo",value:(a=l(d().mark(function e(){var t,n,r,i,o,a,s,u,l=arguments;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=ms(),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",A(s,o));case 1:case"end":return e.stop()}},e)})),function(){return a.apply(this,arguments)})},{key:"getSupportSchemes",value:(o=l(d().mark(function e(){var t,n,r,i=arguments;return d().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",A(n,[]));case 1:case"end":return e.stop()}},e)})),function(){return o.apply(this,arguments)})},{key:"getVisiblePageSize",value:(i=l(d().mark(function e(){var t,n,r,i=arguments;return d().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",A(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(d().mark(function e(){var t,n,r,i=arguments;return d().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",A(n,null));case 1:case"end":return e.stop()}},e)})),function(){return r.apply(this,arguments)})},{key:"launchNativeApp",value:(n=l(d().mark(function e(){var t,n,r,i=arguments;return d().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",A(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 A(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 A(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 A(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 A(t,null)}},{key:"callReflect",value:(t=l(d().mark(function e(){var t,n,r,i=arguments;return d().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",A(n,null));case 1:case"end":return e.stop()}},e)})),function(){return t.apply(this,arguments)})},{key:"init",value:(e=l(d().mark(function e(){var t,n,r,i=arguments;return d().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",x(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 _s(){var e=globalThis;return e&&e.__localStorage||e&&e.localStorage||null}function bs(e){return ws.apply(this,arguments)}function ws(){return(ws=l(d().mark(function e(t){var n,r,i;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if((n=_s())&&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 Es(e,t){return ks.apply(this,arguments)}function ks(){return(ks=l(d().mark(function e(t,n){var r,i;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if((r=_s())&&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 Ss=function(){return E(function e(t){_(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(d().mark(function e(t){var n,r,i,o=arguments;return d().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",A(r,!0));case 1:case"end":return e.stop()}},e,this)})),function(e){return h.apply(this,arguments)})},{key:"initESSharedPreferences",value:(c=l(d().mark(function e(t){var n,r,i,o=arguments;return d().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",A(r,!0));case 1:case"end":return e.stop()}},e,this)})),function(e){return c.apply(this,arguments)})},{key:"getBoolean",value:(u=l(d().mark(function e(t,n){var r,i,o,a,s=arguments;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,bs(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",A(o,!!n));case 2:if("true"!==r){e.next=3;break}return e.abrupt("return",A(o,!0));case 3:if("false"!==r){e.next=4;break}return e.abrupt("return",A(o,!1));case 4:if("1"!==r){e.next=5;break}return e.abrupt("return",A(o,!0));case 5:if("0"!==r){e.next=6;break}return e.abrupt("return",A(o,!1));case 6:return e.abrupt("return",A(o,!!n));case 7:case"end":return e.stop()}},e,this)})),function(e,t){return u.apply(this,arguments)})},{key:"putBoolean",value:(s=l(d().mark(function e(t,n){var r,i,o,a,s=arguments;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,Es(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",A(o,r));case 2:case"end":return e.stop()}},e,this)})),function(e,t){return s.apply(this,arguments)})},{key:"getInt",value:(a=l(d().mark(function e(t,n){var r,i,o,a,s,u=arguments;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,bs(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",A(o,Number(n)||0));case 2:return s=Number.parseInt(String(r),10),e.abrupt("return",A(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(d().mark(function e(t,n){var r,i,o,a,s=arguments;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,Es(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",A(o,r));case 2:case"end":return e.stop()}},e,this)})),function(e,t){return o.apply(this,arguments)})},{key:"getLong",value:(i=l(d().mark(function e(t,n){var r,i,o,a,s,u=arguments;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,bs(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",A(o,Number(n)||0));case 2:return s=Number.parseInt(String(r),10),e.abrupt("return",A(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(d().mark(function e(t,n){var r,i,o,a,s=arguments;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,Es(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",A(o,r));case 2:case"end":return e.stop()}},e,this)})),function(e,t){return r.apply(this,arguments)})},{key:"getString",value:(n=l(d().mark(function e(t,n){var r,i,o,a,s=arguments;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,bs(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",A(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(d().mark(function e(t,n){var r,i,o,a,s=arguments;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,Es(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",A(o,r));case 2:case"end":return e.stop()}},e,this)})),function(e,n){return t.apply(this,arguments)})},{key:"init",value:(e=l(d().mark(function e(){var t,n,r,i=arguments;return d().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",x(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,c,h}(),As=null;function xs(){var e=globalThis;return e&&e.__CONFIG__&&e.__CONFIG__.packageName?e.__CONFIG__.packageName:"web"}function Cs(){return As||(As={versionCode:1,versionName:"1.0.0",packageName:xs(),channel:"web"}),As}var Ls=function(){return E(function e(t){_(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=Cs();return r&&"function"==typeof r.resolve&&r.resolve(i),i}},{key:"destroy",value:function(){As=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=Cs();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=xs();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=Cs().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=Cs().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=Cs().channel;return r&&"function"==typeof r.resolve&&r.resolve(i),i}},{key:"getVendor",value:function(){return this.getChannel.apply(this,arguments)}}])}(),Ts=null,Os=[],Ps=!1,Is=0,Ns="";function Rs(){if(!Ts){(Ts=document.createElement("div")).id="__es_toast_container__",Ts.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(Ts);else{var t=document.getElementById("app");t?t.appendChild(Ts):(Ts.style.position="fixed",document.body.appendChild(Ts))}}return Ts}function Ds(e,t){var n=Date.now();if(!(e===Ns&&n-Is<100)){Is=n,Ns=e;Rs();Os.push({message:e,duration:t}),Ms()}}function Ms(){if(!Ps&&0!==Os.length){Ps=!0;var e=Os.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",Rs().appendChild(r),r.offsetHeight,r.style.opacity="1",setTimeout(function(){r.style.opacity="0",setTimeout(function(){r.parentNode&&r.parentNode.removeChild(r),Ps=!1,Ms()},200)},n)}}var Fs=function(){return E(function e(t){_(this,e),this.context=t,this.name="",this.mode="normal"},[{key:"showToast",value:function(e){"string"!=typeof e&&(e=String(e)),Ds(e,2e3)}},{key:"showLongToast",value:function(e){"string"!=typeof e&&(e=String(e)),Ds(e,3500)}},{key:"showShortToast",value:function(e){"string"!=typeof e&&(e=String(e)),Ds(e,2e3)}},{key:"destroy",value:function(){Ts&&Ts.parentNode&&(Ts.parentNode.removeChild(Ts),Ts=null),Os=[],Ps=!1}},{key:"init",value:function(){return Promise.resolve(!0)}}])}(),Bs=(new Fs,function(){return E(function e(t){_(this,e),this.context=t,this.name="",this.mode="normal",this.enabled=!0},[{key:"init",value:(t=l(d().mark(function e(){var t,n,r,i=arguments;return d().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",x(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(d().mark(function e(){var t,n,r,i,o=arguments;return d().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",A(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 js={cornerRadius:0,cornerEnabled:!1,borderColor:"#FFFFFF",borderColorEnabled:!1,borderWidth:2,borderWidthEnabled:!1,borderInset:0,borderInsetEnabled:!1,innerBorderEnabled:!0,focusScale:1};function Vs(){var e=n.g.__TV_FOCUS_MANAGER__;e&&"function"==typeof e.updateFocusConfig&&e.updateFocusConfig(js)}var Ws=function(){return E(function e(t){_(this,e),this.context=t,this.name="",this.mode="normal"},[{key:"setDefaultFocusBorderCorner",value:function(e){js.cornerRadius="number"==typeof e?e:0,js.cornerEnabled=!0,Vs();for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return A(n,null)}},{key:"setDefaultFocusBorderColor",value:function(e){js.borderColor=e||"#FFFFFF",js.borderColorEnabled=!0,Vs();for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return A(n,null)}},{key:"setDefaultFocusBorderWidth",value:function(e){js.borderWidth="number"==typeof e?e:2,js.borderWidthEnabled=!0,Vs();for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return A(n,null)}},{key:"setFocusBorderInsetValue",value:function(e){js.borderInset="number"==typeof e?e:0,js.borderInsetEnabled=!0,Vs();for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return A(n,null)}},{key:"setDefaultFocusInnerBorderEnable",value:function(e){js.innerBorderEnabled=!0===e,Vs();for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return A(n,null)}},{key:"setDefaultPlaceholderFocusScale",value:function(e){js.focusScale="number"==typeof e?e:1,Vs();for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return A(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 A(t,js)}},{key:"init",value:(e=l(d().mark(function e(){var t,n,r,i,o=arguments;return d().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 Ws;function Hs(){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 Us=null;function zs(){return Us||(Us=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}}()),Us}var Gs=function(){return E(function e(t){_(this,e),this.context=t,this.name="",this.mode="normal"},[{key:"getDeviceBrand",value:(X=l(d().mark(function e(){var t,n,r,i=arguments;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(zs(),t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",A(n,"Web"));case 1:case"end":return e.stop()}},e)})),function(){return X.apply(this,arguments)})},{key:"getDeviceModel",value:(q=l(d().mark(function e(){var t,n,r,i,o=arguments;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=zs(),n=o.length,r=new Array(n),i=0;i<n;i++)r[i]=o[i];return e.abrupt("return",A(r,t.browser||"Browser"));case 1:case"end":return e.stop()}},e)})),function(){return q.apply(this,arguments)})},{key:"getDeviceCpu",value:(Y=l(d().mark(function e(){var t,n,r,i,o=arguments;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=zs(),n=o.length,r=new Array(n),i=0;i<n;i++)r[i]=o[i];return e.abrupt("return",A(r,"".concat(t.cpuCores," cores")));case 1:case"end":return e.stop()}},e)})),function(){return Y.apply(this,arguments)})},{key:"getDeviceCpuCores",value:(G=l(d().mark(function e(){var t,n,r,i,o=arguments;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=zs(),n=o.length,r=new Array(n),i=0;i<n;i++)r[i]=o[i];return e.abrupt("return",A(r,t.cpuCores));case 1:case"end":return e.stop()}},e)})),function(){return G.apply(this,arguments)})},{key:"getDeviceMemory",value:(z=l(d().mark(function e(){var t,n,r,i,o=arguments;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=zs(),n=o.length,r=new Array(n),i=0;i<n;i++)r[i]=o[i];return e.abrupt("return",A(r,t.memory));case 1:case"end":return e.stop()}},e)})),function(){return z.apply(this,arguments)})},{key:"getDeviceStorage",value:(U=l(d().mark(function e(){var t,n,r,i,o=arguments;return d().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",A(n,i.quota||0));case 3:e.prev=3,e.catch(1);case 4:return e.abrupt("return",A(n,0));case 5:case"end":return e.stop()}},e,null,[[1,3]])})),function(){return U.apply(this,arguments)})},{key:"getDeviceResolution",value:(H=l(d().mark(function e(){var t,n,r,i,o=arguments;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=zs(),n=o.length,r=new Array(n),i=0;i<n;i++)r[i]=o[i];return e.abrupt("return",A(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(d().mark(function e(){var t,n,r,i=arguments;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(Hs(),t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.abrupt("return",A(n,!1));case 1:case"end":return e.stop()}},e)})),function(){return W.apply(this,arguments)})},{key:"getDeviceLinkSpeed",value:(V=l(d().mark(function e(){var t,n,r,i,o=arguments;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=Hs(),n=o.length,r=new Array(n),i=0;i<n;i++)r[i]=o[i];return e.abrupt("return",A(r,t.downlink));case 1:case"end":return e.stop()}},e)})),function(){return V.apply(this,arguments)})},{key:"getDeviceManufacture",value:(j=l(d().mark(function e(){var t,n,r,i=arguments;return d().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",A(n,"Web"));case 1:case"end":return e.stop()}},e)})),function(){return j.apply(this,arguments)})},{key:"getDeviceBoard",value:(B=l(d().mark(function e(){var t,n,r,i=arguments;return d().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",A(n,"Web"));case 1:case"end":return e.stop()}},e)})),function(){return B.apply(this,arguments)})},{key:"getDevicePlatform",value:(F=l(d().mark(function e(){var t,n,r,i,o=arguments;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=zs(),n=o.length,r=new Array(n),i=0;i<n;i++)r[i]=o[i];return e.abrupt("return",A(r,t.platform||"Web"));case 1:case"end":return e.stop()}},e)})),function(){return F.apply(this,arguments)})},{key:"getDeviceHard",value:(M=l(d().mark(function e(){var t,n,r,i=arguments;return d().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",A(n,"Web"));case 1:case"end":return e.stop()}},e)})),function(){return M.apply(this,arguments)})},{key:"getDeviceArchitecture",value:(D=l(d().mark(function e(){var t,n,r,i,o=arguments;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=zs(),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",A(r,"arm64"));case 1:if(!/x86_64|amd64/i.test(t.ua)){e.next=2;break}return e.abrupt("return",A(r,"x86_64"));case 2:return e.abrupt("return",A(r,"unknown"));case 3:case"end":return e.stop()}},e)})),function(){return D.apply(this,arguments)})},{key:"getDeviceClockSpeed",value:(R=l(d().mark(function e(){var t,n,r,i=arguments;return d().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",A(n,0));case 1:case"end":return e.stop()}},e)})),function(){return R.apply(this,arguments)})},{key:"getDeviceAndroidVersion",value:(N=l(d().mark(function e(){var t,n,r,i,o=arguments;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=zs(),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",A(r,t.osVersion));case 1:return e.abrupt("return",A(r,""));case 2:case"end":return e.stop()}},e)})),function(){return N.apply(this,arguments)})},{key:"getDeviceApiVersion",value:(I=l(d().mark(function e(){var t,n,r,i=arguments;return d().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",A(n,0));case 1:case"end":return e.stop()}},e)})),function(){return I.apply(this,arguments)})},{key:"getDeviceAndroidId",value:(P=l(d().mark(function e(){var t,n,r,i=arguments;return d().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",A(n,""));case 1:case"end":return e.stop()}},e)})),function(){return P.apply(this,arguments)})},{key:"getDeviceBuildId",value:(O=l(d().mark(function e(){var t,n,r,i=arguments;return d().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",A(n,"web"));case 1:case"end":return e.stop()}},e)})),function(){return O.apply(this,arguments)})},{key:"getDeviceRoot",value:(T=l(d().mark(function e(){var t,n,r,i=arguments;return d().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",A(n,!1));case 1:case"end":return e.stop()}},e)})),function(){return T.apply(this,arguments)})},{key:"getDeviceFreeStore",value:(L=l(d().mark(function e(){var t,n,r,i,o=arguments;return d().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",A(n,(i.quota||0)-(i.usage||0)));case 3:e.prev=3,e.catch(1);case 4:return e.abrupt("return",A(n,0));case 5:case"end":return e.stop()}},e,null,[[1,3]])})),function(){return L.apply(this,arguments)})},{key:"getNetworkState",value:(C=l(d().mark(function e(){var t,n,r,i,o=arguments;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=Hs(),n=o.length,r=new Array(n),i=0;i<n;i++)r[i]=o[i];return e.abrupt("return",A(r,{connected:navigator.onLine,type:t.effectiveType}));case 1:case"end":return e.stop()}},e)})),function(){return C.apply(this,arguments)})},{key:"getNetworkType",value:(S=l(d().mark(function e(){var t,n,r,i,o=arguments;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=Hs(),n=o.length,r=new Array(n),i=0;i<n;i++)r[i]=o[i];return e.abrupt("return",A(r,t.effectiveType));case 1:case"end":return e.stop()}},e)})),function(){return S.apply(this,arguments)})},{key:"getSSID",value:(k=l(d().mark(function e(){var t,n,r,i=arguments;return d().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",A(n,""));case 1:case"end":return e.stop()}},e)})),function(){return k.apply(this,arguments)})},{key:"getMac",value:(w=l(d().mark(function e(){var t,n,r,i=arguments;return d().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",A(n,""));case 1:case"end":return e.stop()}},e)})),function(){return w.apply(this,arguments)})},{key:"getIp",value:(b=l(d().mark(function e(){var t,n,r,i=arguments;return d().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",A(n,""));case 1:case"end":return e.stop()}},e)})),function(){return b.apply(this,arguments)})},{key:"getDeviceDns",value:(g=l(d().mark(function e(){var t,n,r,i=arguments;return d().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",A(n,""));case 1:case"end":return e.stop()}},e)})),function(){return g.apply(this,arguments)})},{key:"getWifiVersion",value:(m=l(d().mark(function e(){var t,n,r,i=arguments;return d().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",A(n,""));case 1:case"end":return e.stop()}},e)})),function(){return m.apply(this,arguments)})},{key:"getDisplayInformation",value:(y=l(d().mark(function e(){var t,n,r,i,o=arguments;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=zs(),n=o.length,r=new Array(n),i=0;i<n;i++)r[i]=o[i];return e.abrupt("return",A(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(d().mark(function e(){var t,n,r,i,o,a,s=arguments;return d().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",A(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",A(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(d().mark(function e(){var t,n,r,i,o,a=arguments;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=zs(),n=Hs(),r=a.length,i=new Array(r),o=0;o<r;o++)i[o]=a[o];return e.abrupt("return",A(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(d().mark(function e(){var t,n,r,i,o=arguments;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=zs(),n=o.length,r=new Array(n),i=0;i<n;i++)r[i]=o[i];return e.abrupt("return",A(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(d().mark(function e(){var t,n,r,i,o=arguments;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=zs(),n=o.length,r=new Array(n),i=0;i<n;i++)r[i]=o[i];return e.abrupt("return",A(r,{cores:t.cpuCores,memory:t.memory}));case 1:case"end":return e.stop()}},e)})),function(){return h.apply(this,arguments)})},{key:"getAndroidInfo",value:(c=l(d().mark(function e(){var t,n,r,i=arguments;return d().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",A(n,null));case 1:case"end":return e.stop()}},e)})),function(){return c.apply(this,arguments)})},{key:"getStoreInfo",value:(u=l(d().mark(function e(){var t,n,r,i,o=arguments;return d().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",A(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",A(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(d().mark(function e(){var t,n,r,i,o=arguments;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=Hs(),n=o.length,r=new Array(n),i=0;i<n;i++)r[i]=o[i];return e.abrupt("return",A(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(d().mark(function e(){var t,n,r,i=arguments;return d().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",A(n,""));case 1:case"end":return e.stop()}},e)})),function(){return a.apply(this,arguments)})},{key:"getUsbInfo",value:(o=l(d().mark(function e(){var t,n,r,i=arguments;return d().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",A(n,[]));case 1:case"end":return e.stop()}},e)})),function(){return o.apply(this,arguments)})},{key:"getBluetoothInfo",value:(i=l(d().mark(function e(){var t,n,r,i,o=arguments;return d().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",A(r,{available:t,devices:[]}));case 1:case"end":return e.stop()}},e)})),function(){return i.apply(this,arguments)})},{key:"permissionHandler",value:(r=l(d().mark(function e(){var t,n,r,i=arguments;return d().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",A(n,{granted:!0}));case 1:case"end":return e.stop()}},e)})),function(){return r.apply(this,arguments)})},{key:"getNetworkProtocol",value:(n=l(d().mark(function e(){var t,n,r,i=arguments;return d().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",A(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(d().mark(function e(){var t,n,r,i,o=arguments;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=Hs(),n=o.length,r=new Array(n),i=0;i<n;i++)r[i]=o[i];return e.abrupt("return",A(r,t.downlink));case 1:case"end":return e.stop()}},e)})),function(){return t.apply(this,arguments)})},{key:"init",value:(e=l(d().mark(function e(){var t,n,r,i=arguments;return d().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",x(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,c,h,f,p,v,y,m,g,b,w,k,S,C,L,T,O,P,I,N,R,D,M,F,B,j,V,W,H,U,z,G,Y,q,X}();new Gs;function Ys(e,t){return e&&e.packageName?"".concat("es_group_data_").concat(e.packageName,"_").concat(t):null}function qs(e,t,n){var r=Ys(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 Xs(e,t,n,r,i){var o=Ys(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 Ks=0,$s=1,Zs=3,Js=4,Qs=5,eu=6,tu=function(){return E(function e(t){_(this,e),this.context=t,this.name="",this.mode="normal"},[{key:"getBoolean",value:(p=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:return e.next=1,qs(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",A(a,i));case 2:case"end":return e.stop()}},e)})),function(e,t,n){return p.apply(this,arguments)})},{key:"putBoolean",value:(f=l(d().mark(function e(t,n,r,i){var o,a,s,u,l=arguments;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,Xs(t,n,r,i,Js);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",A(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(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:return e.next=1,qs(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",A(a,i));case 2:case"end":return e.stop()}},e)})),function(e,t,n){return h.apply(this,arguments)})},{key:"putInt",value:(c=l(d().mark(function e(t,n,r,i){var o,a,s,u,l=arguments;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,Xs(t,n,r,i,Ks);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",A(s,o));case 2:case"end":return e.stop()}},e)})),function(e,t,n,r){return c.apply(this,arguments)})},{key:"getLong",value:(u=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:return e.next=1,qs(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",A(a,i));case 2:case"end":return e.stop()}},e)})),function(e,t,n){return u.apply(this,arguments)})},{key:"putLong",value:(s=l(d().mark(function e(t,n,r,i){var o,a,s,u,l=arguments;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,Xs(t,n,r,i,$s);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",A(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(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:return e.next=1,qs(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",A(a,i));case 2:case"end":return e.stop()}},e)})),function(e,t,n){return a.apply(this,arguments)})},{key:"putString",value:(o=l(d().mark(function e(t,n,r,i){var o,a,s,u,l=arguments;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,Xs(t,n,r,i,Zs);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",A(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(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:return e.next=1,qs(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",A(a,i));case 2:case"end":return e.stop()}},e)})),function(e,t,n){return i.apply(this,arguments)})},{key:"putArray",value:(r=l(d().mark(function e(t,n,r,i){var o,a,s,u,l=arguments;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,Xs(t,n,r,i,eu);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",A(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(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:return e.next=1,qs(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",A(a,i));case 2:case"end":return e.stop()}},e)})),function(e,t,r){return n.apply(this,arguments)})},{key:"putMap",value:(t=l(d().mark(function e(t,n,r,i){var o,a,s,u,l=arguments;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,Xs(t,n,r,i,Qs);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",A(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(d().mark(function e(){var t,n,r,i=arguments;return d().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",x(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,c,h,f,p}();new tu;function nu(e,t,n){return t=Gt(t),zt(e,ru()?Reflect.construct(t,n||[],Gt(e).constructor):t.apply(e,n))}function ru(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(ru=function(){return!!e})()}var iu=function(e){function t(e,n,r){var i;return _(this,t),(i=nu(this,t,[e,n,r])).tagName="text-v2",i}return Xt(t,e),E(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=Yt(Gt(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}}])}(Ao);function ou(e,t,n){return t=Gt(t),zt(e,au()?Reflect.construct(t,n||[],Gt(e).constructor):t.apply(e,n))}function au(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(au=function(){return!!e})()}var su={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},uu=function(e){function t(e,n,r){var i;return _(this,t),(i=ou(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=su.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,(0,v.registerComponent)(n,i),i._bindVideoEvents(),i}return Xt(t,e),E(t,[{key:"_bindVideoEvents",value:function(){var e=this,t=this.dom;t.addEventListener("play",function(){e._playerState=su.ES_PLAYER_STATE_PLAYING,e._dispatchPlayerStatusChanged()}),t.addEventListener("pause",function(){e._playerState=su.ES_PLAYER_STATE_PAUSED,e._dispatchPlayerStatusChanged()}),t.addEventListener("ended",function(){e._playerState=su.ES_PLAYER_STATE_COMPLETED,e._dispatchPlayerStatusChanged(),e._dispatchEvent("onPlayerCompleted")}),t.addEventListener("error",function(t){var n,r;e._playerState=su.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=su.ES_PLAYER_STATE_PREPARED,e._dispatchPlayerStatusChanged(),e._dispatchAspectRatioChanged(),e._dispatchEvent("onPlayerPrepared"),e._dispatchEvent("onPlayerStatusChanged",{playerStatus:su.ES_PLAYER_STATE_VIDEO_SIZE_CHANGED,playerState:su.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("canplaythrough",function(){}),t.addEventListener("loadstart",function(){}),t.addEventListener("progress",function(){}),t.addEventListener("canplay",function(){e._playerState<su.ES_PLAYER_STATE_PREPARED&&(e._playerState=su.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:su.ES_PLAYER_STATE_SET_PLAY_RATE_SUCCESS,playerState:su.ES_PLAYER_STATE_SET_PLAY_RATE_SUCCESS})}),t.addEventListener("waiting",function(){e._dispatchEvent("onPlayerBufferStart"),e._dispatchEvent("onPlayerStatusChanged",{playerStatus:su.ES_PLAYER_STATE_BUFFER_START,playerState:su.ES_PLAYER_STATE_BUFFER_START})}),t.addEventListener("canplaythrough",function(){e._dispatchEvent("onPlayerBufferEnd"),e._dispatchEvent("onPlayerStatusChanged",{playerStatus:su.ES_PLAYER_STATE_BUFFER_END,playerState:su.ES_PLAYER_STATE_BUFFER_END})}),t.addEventListener("playing",function(){e._dispatchEvent("onPlayerResumed"),e._dispatchEvent("onPlayerStatusChanged",{playerStatus:su.ES_PLAYER_STATE_RESUMED,playerState:su.ES_PLAYER_STATE_RESUMED})}),t.addEventListener("seeking",function(){e._dispatchEvent("onPlayerSeekStart"),e._dispatchEvent("onPlayerStatusChanged",{playerStatus:su.ES_PLAYER_STATE_SEEK_START,playerState:su.ES_PLAYER_STATE_SEEK_START})}),t.addEventListener("seeked",function(){e._dispatchEvent("onPlayerSeekCompleted"),e._dispatchEvent("onPlayerStatusChanged",{playerStatus:su.ES_PLAYER_STATE_SEEK_COMPLETED,playerState:su.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=su.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&&(0,v.unregisterComponentBySid)(this._currentSid),this._currentSid=n,void(n?((0,v.registerComponentBySid)(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=Yt(Gt(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=su.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){this._url=n,this._autoPlay=!1!==(null==o?void 0:o.autoPlay),this.dom.src=n;var a=void 0!==i?parseFloat(i):1;this.dom.volume=Math.max(0,Math.min(1,a)),void 0!==(null==o?void 0:o.loop)&&(this.dom.loop=o.loop),this._setAspectRatio(r||0),this._playerState=su.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=su.ES_PLAYER_STATE_STOPPED,this._dispatchPlayerStatusChanged()}},{key:"release",value:function(){this._destroyed=!0,this.dom.pause(),this.dom.src="",this._playerState=su.ES_PLAYER_STATE_RELEASED,this._currentSid&&((0,v.unregisterComponentBySid)(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===su.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:su.ES_PLAYER_STATE_PLAYER_INITIALIZED,playerState:su.ES_PLAYER_STATE_PLAYER_INITIALIZED}),this._dispatchEvent("onPlayerStatusChanged",{playerStatus:su.ES_PLAYER_STATE_INITIALIZE_SUCCESS,playerState:su.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}}])}(Dr),lu=yo(vo,"View"),cu=yo(Ao,"Text"),du={View:lu,Text:cu,Image:yo(Oo,"Image"),ListView:ts,ListViewItem:ns,ScrollView:yo(vo,"ScrollView"),TextInput:yo(vo,"TextInput"),WebView:la,ViewPager:yo(vo,"ViewPager"),FastListView:$o,TextView:cu,ESPageRouterView:yo(vo,"ESPageRouterView"),ESPageRootView:Eo,ESSlotRootView:yo(vo,"ESSlotRootView"),ESSlotView:yo(vo,"ESSlotView"),LoadingViewComponent:ta,AnimationViewComponent:aa,ESWebViewComponent:la,ESX5WebViewComponent:la,QrCodeComponent:pa,TVProgressBarViewComponent:ga,TVSeekBarViewComponent:Ea,TVListViewComponent:$o,ItemFrameComponent:Aa,ItemStoreView:Ta,RippleViewComponent:Na,FastFlexView:No,FastItemView:Fa,TabsView:Ha,RecyclerViewPager:qa,Modal:Za,TextV2Component:iu,TransitionImageComponent:ls,IJKPlayerComponent:uu,ESPlayMarkViewComponent:as};function hu(e){e.start({id:"app",name:g,params:{business:g,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 fu="files";function pu(){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(fu)||t.createObjectStore(fu)}})}function vu(e,t,n){return yu.apply(this,arguments)}function yu(){return(yu=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,pu();case 1:return i=e.sent,e.abrupt("return",new Promise(function(e,o){var a=i.transaction(fu,"readwrite");a.objectStore(fu).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 mu(){return gu.apply(this,arguments)}function gu(){return(gu=l(d().mark(function e(){var t;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,pu();case 1:return t=e.sent,e.abrupt("return",new Promise(function(e,n){var r=t.transaction(fu,"readonly").objectStore(fu).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 _u(){return bu.apply(this,arguments)}function bu(){return(bu=l(d().mark(function e(){var t;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,pu();case 1:return t=e.sent,e.abrupt("return",new Promise(function(e,n){var r=t.transaction(fu,"readwrite");r.objectStore(fu).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 wu={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 Eu(){return ku.apply(this,arguments)}function ku(){return(ku=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 Su(e){return!e.includes("__MACOSX/")&&(!e.split("/").pop().startsWith("._")&&(!e.endsWith(".DS_Store")&&!e.toLowerCase().endsWith(".thumbs.db")))}function Au(e){return xu.apply(this,arguments)}function xu(){return(xu=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,Eu();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(Su(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,vu(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 Cu(e,t){return Lu.apply(this,arguments)}function Lu(){return Lu=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,Eu();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&&Su(e)}).length,m=[],f.forEach(function(e,t){t.dir||(Su(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,vu(p,_,u);case 6:n&&n(100,"准备加载..."),wu.loadFromData({files:p,entryFile:_,zipName:u});case 7:case"end":return e.stop()}},e)})),Lu.apply(this,arguments)}function Tu(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 Ou(e){return Pu.apply(this,arguments)}function Pu(){return(Pu=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=wu.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=Ru(),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 Iu="";function Nu(e){Iu=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 Ru(){var e=JSON.stringify(wu&&wu.baseDir?"/":Iu||"/");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 Du(e){var t=function(e){if(!Iu||"string"!=typeof e||!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=Iu.replace(/^https?:\/\/[^/]+/,"");return n.startsWith(r.replace(/^\//,""))?e:"".concat(Iu).concat(n).concat(t.search).concat(t.hash)}catch(t){var i=e.replace(/^\//,"");if(!i)return e;var o=Iu.replace(/^https?:\/\/[^/]+/,"");return i.startsWith(o.replace(/^\//,""))?e:"".concat(Iu).concat(i)}}(e);return t}if("undefined"==typeof localStorage){var Mu={};n.g.localStorage={getItem:function(e){return Mu[e]||null},setItem:function(e,t){Mu[e]=String(t)},removeItem:function(e){delete Mu[e]},clear:function(){Object.keys(Mu).forEach(function(e){return delete Mu[e]})}}}function Fu(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 Bu(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 ju=Element.prototype.setAttribute;Element.prototype.setAttribute=function(e,t){var n=e.toLowerCase();if("SCRIPT"===this.tagName&&"src"===n){if(wu){var r=t;try{r=new URL(t,window.location.origin).pathname}catch(e){}var i=r.replace(/^\//,""),o=wu.baseDir?wu.baseDir+"/"+i:i;if(wu.has(o)){var a=wu.get(o);return Bu(this,(new TextDecoder).decode(a)),void(this._virtualSrc=t)}if(wu.has(i)){var s=wu.get(i);return Bu(this,(new TextDecoder).decode(s)),void(this._virtualSrc=t)}}var u=Du(t);if(u!==t)return ju.call(this,e,u)}if("IMG"===this.tagName&&"src"===n){var l=Fu(t);if(wu){var c=l.replace(/^\//,""),d=wu.baseDir?wu.baseDir+"/"+c:c;if(wu.has(d)){var h=wu.get(d),f=new Blob([h],{type:Tu(d)}),p=URL.createObjectURL(f);return ju.call(this,e,p)}}if(wu&&wu.has(l)){var v=wu.get(l),y=new Blob([v],{type:Tu(l)}),m=URL.createObjectURL(y);return ju.call(this,e,m)}var g=Du(l);if(g!==l)return ju.call(this,e,g);if(l!==t)return ju.call(this,e,l)}if("style"===n&&"string"==typeof t){var _=zu(t);if(_!==t)return ju.call(this,e,_)}if("src"===n||"href"===n||"data-src"===n){var b=Du(Fu(t));if(b!==t)return ju.call(this,e,b)}return ju.call(this,e,t)};var Vu=document.createElement.bind(document);document.createElement=function(e,t){var n=Vu(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(wu){var r=wu.baseDir?wu.baseDir+"/"+t:t;if(wu.has(r)){var i=wu.get(r);return void(n.__vfsContent=(new TextDecoder).decode(i))}}if(wu&&wu.has(t)){var o=wu.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&&wu){var n=t;try{n=new URL(t,window.location.origin).pathname}catch(e){}var r=n.replace(/^\//,""),i=wu.baseDir?wu.baseDir+"/"+r:r;if(wu.has(i)){var o=wu.get(i),a=(new TextDecoder).decode(o);e.removeAttribute("src"),e.textContent=a,setTimeout(function(){return e.dispatchEvent(new Event("load"))},0)}else if(wu.has(r)){var s=wu.get(r),u=(new TextDecoder).decode(s);e.removeAttribute("src"),e.textContent=u,setTimeout(function(){return e.dispatchEvent(new Event("load"))},0)}}if(t&&!wu){var l=Du(t);l!==t&&(e.src=l)}})})}).observe(document.documentElement,{childList:!0,subtree:!0});var Wu=Object.getOwnPropertyDescriptor(HTMLScriptElement.prototype,"src");if(Wu){var Hu=Wu.get,Uu=Wu.set;Object.defineProperty(HTMLScriptElement.prototype,"src",{get(){return this._virtualSrc?this._virtualSrc:Hu.call(this)},set(e){var t=this,n=Du(Fu(e));if(wu&&wu.has&&wu.has(n)){this._virtualSrc=n;var r=wu.get(n);return Bu(this,(new TextDecoder).decode(r)),setTimeout(function(){return t.dispatchEvent(new Event("load"))},0),n}if(wu){var i=n.replace(/^\//,""),o=wu.baseDir?wu.baseDir+"/"+i:i;if(wu.has(o)){this._virtualSrc=o;var a=wu.get(o);return Bu(this,(new TextDecoder).decode(a)),setTimeout(function(){return t.dispatchEvent(new Event("load"))},0),o}}return Uu.call(this,n)},configurable:!0,enumerable:!0})}function zu(e){if("string"!=typeof e)return e;if(e.startsWith("hpfile://")){var t=e.replace(/^hpfile:\/\/\.?\//,"/").replace(/^hpfile:\/\//,"/");if(wu&&t.startsWith("/assets/")){var n=t.replace(/^\//,""),r=wu.baseDir?wu.baseDir+"/"+n:n;if(wu.has(r)){var i=wu.get(r),o=new Blob([i],{type:Tu(r)}),a=URL.createObjectURL(o);return"url(".concat(a,")")}}if(wu&&wu.has(t)){var s=wu.get(t),u=new Blob([s],{type:Tu(t)}),l=URL.createObjectURL(u);return"url(".concat(l,")")}return"url(".concat(Du(t),")")}return e.replace(/url\(['"]?(hpfile:\/\/[^'")\s]+)['"]?\)/gi,function(e,t){var n=t.replace(/^hpfile:\/\/\.?\//,"/").replace(/^hpfile:\/\//,"/");if(wu&&n.startsWith("/assets/")){var r=n.replace(/^\//,""),i=wu.baseDir?wu.baseDir+"/"+r:r;if(wu.has(i)){var o=wu.get(i),a=new Blob([o],{type:Tu(i)}),s=URL.createObjectURL(a);return"url(".concat(s,")")}}if(wu&&wu.has(n)){var u=wu.get(n),l=new Blob([u],{type:Tu(n)}),c=URL.createObjectURL(l);return"url(".concat(c,")")}return"url(".concat(Du(n),")")})}var Gu=Object.getOwnPropertyDescriptor(CSSStyleDeclaration.prototype,"cssText");if(Gu&&Gu.set){var Yu=Gu.set;Object.defineProperty(CSSStyleDeclaration.prototype,"cssText",{get:Gu.get,set(e){var t=zu(e);return Yu.call(this,t)},configurable:!0})}var qu=CSSStyleDeclaration.prototype.setProperty;CSSStyleDeclaration.prototype.setProperty=function(e,t,n){var r=e.toLowerCase();if("background-image"===r||"background"===r){var i=zu(t);return qu.call(this,e,i,n)}return qu.call(this,e,t,n)};var Xu=Object.getOwnPropertyDescriptor(CSSStyleDeclaration.prototype,"backgroundImage");if(Xu&&Xu.set){var Ku=Xu.set;Object.defineProperty(CSSStyleDeclaration.prototype,"backgroundImage",{get:Xu.get,set(e){var t=zu(e);return Ku.call(this,t)},configurable:!0})}var $u=Object.getOwnPropertyDescriptor(CSSStyleDeclaration.prototype,"background");if($u&&$u.set){var Zu=$u.set;Object.defineProperty(CSSStyleDeclaration.prototype,"background",{get:$u.get,set(e){var t=zu(e);return Zu.call(this,t)},configurable:!0})}var Ju=Object.getOwnPropertyDescriptor(HTMLImageElement.prototype,"src");if(Ju){var Qu=Ju.get,el=Ju.set;Object.defineProperty(HTMLImageElement.prototype,"src",{get(){return Qu.call(this)},set(e){var t=Du(Fu(e));if(wu&&t.startsWith("/assets/")){var n=t.replace(/^\//,""),r=wu.baseDir?wu.baseDir+"/"+n:n;if(wu.has(r)){var i=wu.get(r),o=new Blob([i],{type:Tu(r)}),a=URL.createObjectURL(o);return el.call(this,a)}}if(wu&&wu.has(t)){var s=wu.get(t),u=new Blob([s],{type:Tu(t)}),l=URL.createObjectURL(u);return el.call(this,l)}return el.call(this,t)},configurable:!0,enumerable:!0})}var tl=Object.getOwnPropertyDescriptor(HTMLMediaElement.prototype,"src");if(tl){var nl=tl.get,rl=tl.set;Object.defineProperty(HTMLMediaElement.prototype,"src",{get(){return nl.call(this)},set(e){if("string"==typeof e&&/^https?:\/\//i.test(e))return rl.call(this,e);if("string"==typeof e&&e.startsWith("//"))return rl.call(this,e);var t=Du(Fu(e));if(wu&&t.startsWith("/assets/")){var n=t.replace(/^\//,""),r=wu.baseDir?wu.baseDir+"/"+n:n;if(wu.has(r)){var i=wu.get(r),o=new Blob([i],{type:Tu(r)}),a=URL.createObjectURL(o);return rl.call(this,a)}}if(wu&&t.startsWith("/")&&wu.has(t)){var s=wu.get(t),u=new Blob([s],{type:Tu(t)}),l=URL.createObjectURL(u);return rl.call(this,l)}return rl.call(this,t)},configurable:!0,enumerable:!0})}if("undefined"!=typeof fetch){var il=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=Fu(n);if(wu&&r.startsWith("/")){if(r.startsWith("/assets/")){var i=r.replace(/^\//,""),o=wu.baseDir?wu.baseDir+"/"+i:i;if(wu.has(o)){var a=wu.get(o);return Promise.resolve(new Response(a,{status:200,headers:{"Content-Type":Tu(o)}}))}}if(wu.has(r)){var s=wu.get(r);return Promise.resolve(new Response(s,{status:200,headers:{"Content-Type":Tu(r)}}))}}return r!==n&&("string"==typeof e?e=r:e instanceof Request&&(e=new Request(r,t))),il(e,t)}}n.g.__ES_LAST_SDK_INFO__={eskit_ver_code:2.8},n.g.__ES_APP_READY__=!0,globalThis.__nativeLocalStorage=jt,globalThis.__localStorage=Wt,Object.defineProperty(window,"localStorage",{value:Wt,writable:!1,configurable:!0}),n.g.__WEB_COMPONENTS__=n.g.__WEB_COMPONENTS__||{},n.g.__WEB_COMPONENTS__.IJKPlayerComponent=uu,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 ol=ar.create({modules:{ESModule:cs,ESLocalStorageModule:ys,EsNativeModule:gs,AndroidSharedPreferencesModule:Ss,AndroidDevelopModule:Ls,AndroidNetworkModule:D,AndroidFileModule:He,ESToastModule:Fs,RuntimeDeviceModule:H,ESIJKAudioPlayerModule:ge,ESSoundPoolAudioPlayerModule:Te,ESLogModule:Bs,FastListModule:Ho,FocusModule:Ws,ESDeviceInfoModule:Gs,ESGroupDataModule:tu,ESDownloadModule:Ze},components:du});!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},(0,v.setWebEngine)(e),function(e){if(!at){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 y=f[u].apply(f,[l].concat(p(c||[])));return y&&"function"==typeof y.catch?y.catch(function(e){}):y}}if("ESSoundPoolAudioPlayerModule"===a||"ESSoundPoolPlayerModule"===a){var m,g=null===(m=n.g.__WEB_MODULES__)||void 0===m?void 0:m.ESSoundPoolAudioPlayerModule;if(g&&"function"==typeof g[u]){var _={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])}},b=g[u].apply(g,p(c||[]).concat([_]));return b&&"function"==typeof b.catch?b.catch(function(e){}):b}}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 w=s(c||[],2),E=w[0],k=w[1];if(Array.isArray(k)){var S=k.map(function(e){return Array.isArray(e)?e:[e,null]});return t(a,u,l,[E,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 L={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])}},T=C[u].apply(C,p(c||[]).concat([L]));return T&&"function"==typeof T.catch?T.catch(function(e){}):T}}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,p(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=(0,v.findComponentById)(M);if(j&&"function"==typeof j[F])try{return j[F].apply(j,p(B||[]))}catch(e){}}},at=!0}}}(e),function(){var e;if(!ot){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,g=null===(p=n.g.__WEB_MODULES__)||void 0===p?void 0:p.AndroidFileModule;if(g&&"function"==typeof g[t]){var _=g[t].apply(g,o);return _&&"function"==typeof _.catch?_.catch(function(e){}):_}}if("ESDownloadModule"===e){var b,w=null===(b=n.g.__WEB_MODULES__)||void 0===b?void 0:b.ESDownloadModule;if(w&&"function"==typeof w[t]){var E=w[t].apply(w,o);return E&&"function"==typeof E.catch?E.catch(function(e){}):E}}if("UIManagerModule"===e){if("addEventListener"===t){var k=o[0],S=o[1],A=o[2],x=(0,v.findComponentById)(k);return void(x&&x.addEventListener&&x.addEventListener(S,A))}if("removeEventListener"===t){var C=o[0],L=o[1],T=o[2],O=(0,v.findComponentById)(C);return void(O&&O.removeEventListener&&O.removeEventListener(L,T))}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=(0,v.findComponentById)(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 z=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"),it||"app"!==t.pId&&t.pId!==V||(it=t.id,t.props&&(t.props.style=t.props.style||{},t.props.style.width=y,t.props.style.height=m,delete t.props.style.flex))),Array.isArray(e)?[t,n]:t});return r(e,t,V,z)}}if("updateNode"===t){var G=o[0],Y=o[1];if(Array.isArray(Y)){var X=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"),it&&t.id===it&&t.props&&(t.props.style=t.props.style||{},t.props.style.width=y,t.props.style.height=m,delete t.props.style.flex)),[t,n]});return r(e,t,G,X)}}if("deleteNode"===t){var K=o[0],$=o[1];if(Array.isArray($)){var Z=$.map(function(e){return Array.isArray(e)?e:[e]});return Z.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,K,Z)}}}if("ESNetworkSpeedModule"===e&&Ye&&"function"==typeof Ye[t])Ye[t].apply(Ye,o);else{if("ESPluginModule"!==e)return r.apply(void 0,[e,t].concat(o));if("install"===t){var J=Array.isArray(o[0])?o[0][0]:o[0];return void q("onESPluginStateChanged",{success:!0,pkg:null==J?void 0:J.pkg,status:0,msg:"Plugin installed successfully (web)"})}}},ot=!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&&U&&"function"==typeof U[t]){var c=U[t].apply(U,o);return c instanceof Promise?c:Promise.resolve(c)}if("AndroidDeviceModule"===e&&S&&"function"==typeof S[t]){var d=S[t].apply(S,o);return d instanceof Promise?d:Promise.resolve(d)}if("AndroidNetworkModule"===e&&M&&"function"==typeof M[t]){var h=M[t].apply(M,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,_=(0,v.getWebEngine)(),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=(0,v.findComponentById)(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=(0,v.findComponentById)(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)},st(),ut(),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,Je.Zd)(pt(e,t));i(e,n)},r._setElementStylePatched=!0}}(e),vt(),yt||(yt=new MutationObserver(function(){return vt()})).observe(document.head,{childList:!0,subtree:!0}),!mt(e)){var o=function(){mt(e)||requestAnimationFrame(o)};requestAnimationFrame(o)}}(ol);var al=new Ft;n.g.__TV_FOCUS_MANAGER__=al;var sl=document.createElement("style");sl.id="web-runtime-css",sl.textContent='\n #app, #app * { align-items: flex-start; }\n [style*="align-items"] { align-items: var(--align-items, center) !important; }\n',document.head.appendChild(sl);var ul=new URLSearchParams(window.location.search);function ll(e){return cl.apply(this,arguments)}function cl(){return(cl=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=Ru()+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 dl(e){return hl.apply(this,arguments)}function hl(){return(hl=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 fl(e){return pl.apply(this,arguments)}function pl(){return pl=l(d().mark(function e(t){var r,i,o,a,s,u,l;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=1,Nu(t),o=t.replace("index.android.js","vendor.android.js"),t.endsWith("index.bundle")&&(o=t.replace("index.bundle","vendor.bundle")),e.next=2,ll(o);case 2:return e.sent||(a=Ru(),(s=document.createElement("script")).textContent=a,document.body.appendChild(s)),e.next=3,dl(t);case 3:if(u=null===(r=n.g.__GLOBAL__)||void 0===r||null===(r=r.jsModuleList)||void 0===r?void 0:r.EventDispatcher,0!==(l=Object.keys((null===(i=n.g.__GLOBAL__)||void 0===i?void 0:i.appRegister)||{})).length){e.next=4;break}return e.abrupt("return");case 4:l.includes(g)?g:l[0],hu(ol),u&&(n.g.__GLOBAL__=n.g.__GLOBAL__||{},n.g.__GLOBAL__.jsModuleList=n.g.__GLOBAL__.jsModuleList||{},n.g.__GLOBAL__.jsModuleList.EventDispatcher=u),e.next=6;break;case 5:e.prev=5,e.catch(1);case 6:case"end":return e.stop()}},e,null,[[1,5]])})),pl.apply(this,arguments)}function vl(){return yl.apply(this,arguments)}function yl(){return(yl=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=wu.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: "+wu.zipName),a=i.substring(0,i.lastIndexOf("/")),s=a?"".concat(a,"/vendor.android.js"):"vendor.android.js",!wu.has(s)){e.next=3;break}return e.next=2,Ou(s);case 2:e.next=4;break;case 3:if(u=wu.list(),!(l=u.find(function(e){return e.endsWith("vendor.android.js")}))){e.next=4;break}return e.next=4,Ou(l);case 4:return e.next=5,Ou(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(g)?g:h[0],hu(ol),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: "+wu.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,Au(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,vu(r,i,o);case 2:return e.next=3,mu();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 ml="1"===ul.get("zip"),gl=ul.get("bundle"),_l=ul.get("zipUrl");function bl(){return(bl=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"),!ml){e.next=5;break}return e.next=1,mu();case 1:if(!(n=e.sent)){e.next=3;break}return wu.loadFromData(n),e.next=2,vl();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(!_l){e.next=12;break}return e.next=6,_u();case 6:return i=ul.has("_force"),window.__LOADING_OVERLAY__&&(window.__LOADING_OVERLAY__.show(),window.__LOADING_OVERLAY__.update(0,"准备下载...")),e.prev=7,e.next=8,Cu(_l,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,vl();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(!gl){e.next=15;break}return e.next=13,_u();case 13:return e.next=14,fl(gl);case 14:e.next=17;break;case 15:return e.next=16,_u();case 16:t&&(t.textContent="请上传 ZIP 包开始预览");case 17:case"end":return e.stop()}},e,null,[[7,10]])}))).apply(this,arguments)}!function(){bl.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})}},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(932)})();