(this["webpackJsonp"]=this["webpackJsonp"]||[]).push([["app-service"],{0:function(t,e){},"001f":function(t,e,r){"use strict";r.r(e);var n=r("b572"),i=r.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return n[t]}))}(a);e["default"]=i.a},"00ee":function(t,e,r){"use strict";r.r(e);var n=r("f973"),i=r("d486");for(var a in i)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return i[t]}))}(a);var s=r("828b"),o=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,"cac25b24",null,!1,n["a"],void 0);e["default"]=o.exports},"011a":function(t,e){function r(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(t.exports=r=function(){return!!e},t.exports.__esModule=!0,t.exports["default"]=t.exports)()}t.exports=r,t.exports.__esModule=!0,t.exports["default"]=t.exports},"0136":function(t,e,r){"use strict";r.r(e);var n=r("caf1"),i=r("993d");for(var a in i)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return i[t]}))}(a);var s=r("828b"),o=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,"3d84a628",null,!1,n["a"],void 0);e["default"]=o.exports},"014b":function(t,e,r){"use strict";r.r(e);var n=r("1ee7"),i=r("0ac8");for(var a in i)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return i[t]}))}(a);var s=r("828b"),o=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);e["default"]=o.exports},"014e":function(t,e,r){"use strict";var n=r("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(r("1fc1")),a={name:"u-overlay",mixins:[uni.$u.mpMixin,uni.$u.mixin,i.default],computed:{overlayStyle:function(){var t={position:"fixed",top:0,left:0,right:0,zIndex:this.zIndex,bottom:0,"background-color":"rgba(0, 0, 0, ".concat(this.opacity,")")};return uni.$u.deepMerge(t,uni.$u.addStyle(this.customStyle))}},methods:{clickHandler:function(){this.$emit("click")}}};e.default=a},"0159":function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={props:{isDot:{type:Boolean,default:uni.$u.props.badge.isDot},value:{type:[Number,String],default:uni.$u.props.badge.value},show:{type:Boolean,default:uni.$u.props.badge.show},max:{type:[Number,String],default:uni.$u.props.badge.max},type:{type:String,default:uni.$u.props.badge.type},showZero:{type:Boolean,default:uni.$u.props.badge.showZero},bgColor:{type:[String,null],default:uni.$u.props.badge.bgColor},color:{type:[String,null],default:uni.$u.props.badge.color},shape:{type:String,default:uni.$u.props.badge.shape},numberType:{type:String,default:uni.$u.props.badge.numberType},offset:{type:Array,default:uni.$u.props.badge.offset},inverted:{type:Boolean,default:uni.$u.props.badge.inverted},absolute:{type:Boolean,default:uni.$u.props.badge.absolute}}};e.default=n},"01a3":function(t,e,r){"use strict";r.r(e);var n=r("9e96"),i=r.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return n[t]}))}(a);e["default"]=i.a},"01dd":function(t,e,r){var n,i,a,s=r("3b2d");(function(o,u,l){"object"===s(e)?t.exports=e=u(r("707d"),r("bbe5")):(i=[r("707d"),r("bbe5")],n=u,a="function"===typeof n?n.apply(e,i):n,void 0===a||(t.exports=a))})(0,(function(t){return function(e){var r=t,n=r.lib,i=n.CipherParams,a=r.enc,s=a.Hex,o=r.format;o.Hex={stringify:function(t){return t.ciphertext.toString(s)},parse:function(t){var e=s.parse(t);return i.create({ciphertext:e})}}}(),t.format.Hex}))},"023c":function(t,e,r){"use strict";r.d(e,"b",(function(){return i})),r.d(e,"c",(function(){return a})),r.d(e,"a",(function(){return n}));var n={uLoadingPage:r("ef90").default},i=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("view",{staticClass:t._$s(0,"sc","page-container"),attrs:{_i:0}},[r("view",{staticClass:t._$s(1,"sc","details-header"),attrs:{_i:1}},[t._$s(2,"i",t.data.topic_pic)?r("image",{attrs:{src:t._$s(2,"a-src",t.data.topic_pic),_i:2},on:{error:function(e){return t.errorimg()}}}):t._e(),r("view",{staticClass:t._$s(3,"sc","details-shadow"),attrs:{_i:3}}),t._$s(4,"i",t.data.topic_content)?r("text",{staticClass:t._$s(4,"sc","details-intro"),attrs:{_i:4}},[t._v(t._$s(4,"t0-0",t._s(t.data.topic_content)))]):t._e(),r("view",{staticClass:t._$s(5,"sc","details-container vod-container"),attrs:{_i:5}},t._l(t._$s(6,"f",{forItems:t.data.vod_list}),(function(e,n,i,a){return r("vod-item",{key:t._$s(6,"f",{forIndex:i,key:n}),attrs:{index:n,type:1,item:e,_i:"6-"+a}})})),1)]),r("u-loading-page",{attrs:{loading:t.loading,bgColor:"none",fontSize:"16",_i:7}})],1)},a=[]},"027b":function(t,e,r){var n,i,a=r("3b2d");
/*!
 * html2canvas 1.4.1 <https://html2canvas.hertzen.com>
 * Copyright (c) 2022 Niklas von Hertzen <https://hertzen.com>
 * Released under MIT License
 */
(function(s,o){"object"===a(e)&&"undefined"!==typeof t?t.exports=o():(n=o,i="function"===typeof n?n.call(e,r,e,t):n,void 0===i||(t.exports=i))})(0,(function(){"use strict";
/*! *****************************************************************************
  Copyright (c) Microsoft Corporation.
    Permission to use, copy, modify, and/or distribute this software for any
  purpose with or without fee is hereby granted.
    THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
  REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
  INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  PERFORMANCE OF THIS SOFTWARE.
  ***************************************************************************** */var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};function e(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}var r=function(){return r=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r],e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};function n(t,e,r,n){return new(r||(r=Promise))((function(i,a){function s(t){try{u(n.next(t))}catch(e){a(e)}}function o(t){try{u(n["throw"](t))}catch(e){a(e)}}function u(t){t.done?i(t.value):function(t){return t instanceof r?t:new r((function(e){e(t)}))}(t.value).then(s,o)}u((n=n.apply(t,e||[])).next())}))}function i(t,e){var r,n,i,a,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:o(0),throw:o(1),return:o(2)},"function"===typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function o(a){return function(o){return function(a){if(r)throw new TypeError("Generator is already executing.");while(s)try{if(r=1,n&&(i=2&a[0]?n["return"]:a[0]?n["throw"]||((i=n["return"])&&i.call(n),0):n.next)&&!(i=i.call(n,a[1])).done)return i;switch(n=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,n=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(i=s.trys,!(i=i.length>0&&i[i.length-1])&&(6===a[0]||2===a[0])){s=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){s.label=a[1];break}if(6===a[0]&&s.label<i[1]){s.label=i[1],i=a;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(a);break}i[2]&&s.ops.pop(),s.trys.pop();continue}a=e.call(t,s)}catch(o){a=[6,o],n=0}finally{r=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,o])}}}function s(t,e,r){if(r||2===arguments.length)for(var n,i=0,a=e.length;i<a;i++)!n&&i in e||(n||(n=Array.prototype.slice.call(e,0,i)),n[i]=e[i]);return t.concat(n||e)}for(var o=function(){function t(t,e,r,n){this.left=t,this.top=e,this.width=r,this.height=n}return t.prototype.add=function(e,r,n,i){return new t(this.left+e,this.top+r,this.width+n,this.height+i)},t.fromClientRect=function(e,r){return new t(r.left+e.windowBounds.left,r.top+e.windowBounds.top,r.width,r.height)},t.fromDOMRectList=function(e,r){var n=Array.from(r).find((function(t){return 0!==t.width}));return n?new t(n.left+e.windowBounds.left,n.top+e.windowBounds.top,n.width,n.height):t.EMPTY},t.EMPTY=new t(0,0,0,0),t}(),u=function(t,e){return o.fromClientRect(t,e.getBoundingClientRect())},l=function(t){var e=[],r=0,n=t.length;while(r<n){var i=t.charCodeAt(r++);if(i>=55296&&i<=56319&&r<n){var a=t.charCodeAt(r++);56320===(64512&a)?e.push(((1023&i)<<10)+(1023&a)+65536):(e.push(i),r--)}else e.push(i)}return e},c=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(String.fromCodePoint)return String.fromCodePoint.apply(String,t);var r=t.length;if(!r)return"";var n=[],i=-1,a="";while(++i<r){var s=t[i];s<=65535?n.push(s):(s-=65536,n.push(55296+(s>>10),s%1024+56320)),(i+1===r||n.length>16384)&&(a+=String.fromCharCode.apply(String,n),n.length=0)}return a},A="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",d="undefined"===typeof Uint8Array?[]:new Uint8Array(256),f=0;f<A.length;f++)d[A.charCodeAt(f)]=f;for(var h="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",p="undefined"===typeof Uint8Array?[]:new Uint8Array(256),g=0;g<h.length;g++)p[h.charCodeAt(g)]=g;for(var v=function(t,e,r){return t.slice?t.slice(e,r):new Uint16Array(Array.prototype.slice.call(t,e,r))},m=function(){function t(t,e,r,n,i,a){this.initialValue=t,this.errorValue=e,this.highStart=r,this.highValueIndex=n,this.index=i,this.data=a}return t.prototype.get=function(t){var e;if(t>=0){if(t<55296||t>56319&&t<=65535)return e=this.index[t>>5],e=(e<<2)+(31&t),this.data[e];if(t<=65535)return e=this.index[2048+(t-55296>>5)],e=(e<<2)+(31&t),this.data[e];if(t<this.highStart)return e=2080+(t>>11),e=this.index[e],e+=t>>5&63,e=this.index[e],e=(e<<2)+(31&t),this.data[e];if(t<=1114111)return this.data[this.highValueIndex]}return this.errorValue},t}(),y="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",w="undefined"===typeof Uint8Array?[]:new Uint8Array(256),b=0;b<y.length;b++)w[y.charCodeAt(b)]=b;var _=10,B=13,C=15,E=17,x=18,T=19,S=20,k=21,I=22,F=24,L=25,D=26,R=27,U=28,O=30,P=32,M=33,Q=34,N=35,H=37,$=38,j=39,K=40,G=42,V=[9001,65288],W=function(t,e){var r=function(t){var e,r,n,i,a,s=.75*t.length,o=t.length,u=0;"="===t[t.length-1]&&(s--,"="===t[t.length-2]&&s--);var l="undefined"!==typeof ArrayBuffer&&"undefined"!==typeof Uint8Array&&"undefined"!==typeof Uint8Array.prototype.slice?new ArrayBuffer(s):new Array(s),c=Array.isArray(l)?l:new Uint8Array(l);for(e=0;e<o;e+=4)r=p[t.charCodeAt(e)],n=p[t.charCodeAt(e+1)],i=p[t.charCodeAt(e+2)],a=p[t.charCodeAt(e+3)],c[u++]=r<<2|n>>4,c[u++]=(15&n)<<4|i>>2,c[u++]=(3&i)<<6|63&a;return l}(t),n=Array.isArray(r)?function(t){for(var e=t.length,r=[],n=0;n<e;n+=4)r.push(t[n+3]<<24|t[n+2]<<16|t[n+1]<<8|t[n]);return r}(r):new Uint32Array(r),i=Array.isArray(r)?function(t){for(var e=t.length,r=[],n=0;n<e;n+=2)r.push(t[n+1]<<8|t[n]);return r}(r):new Uint16Array(r),a=v(i,12,n[4]/2),s=2===n[5]?v(i,(24+n[4])/2):function(t,e,r){return t.slice?t.slice(e,r):new Uint32Array(Array.prototype.slice.call(t,e,r))}(n,Math.ceil((24+n[4])/4));return new m(n[0],n[1],n[2],n[3],a,s)}(" "),z=[O,36],Y=[1,2,3,5],q=[_,8],X=[R,D],J=Y.concat(q),Z=[$,j,K,Q,N],tt=[C,B],et=function(t,e,r,n){var i=n[r];if(Array.isArray(t)?-1!==t.indexOf(i):t===i){var a=r;while(a<=n.length){a++;var s=n[a];if(s===e)return!0;if(s!==_)break}}if(i===_){a=r;while(a>0){a--;var o=n[a];if(Array.isArray(t)?-1!==t.indexOf(o):t===o){var u=r;while(u<=n.length){u++;s=n[u];if(s===e)return!0;if(s!==_)break}}if(o!==_)break}}return!1},rt=function(t,e){var r=t;while(r>=0){var n=e[r];if(n!==_)return n;r--}return 0},nt=function(t,e,r,n,i){if(0===r[n])return"\xd7";var a=n-1;if(Array.isArray(i)&&!0===i[a])return"\xd7";var s=a-1,o=a+1,u=e[a],l=s>=0?e[s]:0,c=e[o];if(2===u&&3===c)return"\xd7";if(-1!==Y.indexOf(u))return"!";if(-1!==Y.indexOf(c))return"\xd7";if(-1!==q.indexOf(c))return"\xd7";if(8===rt(a,e))return"\xf7";if(11===W.get(t[a]))return"\xd7";if((u===P||u===M)&&11===W.get(t[o]))return"\xd7";if(7===u||7===c)return"\xd7";if(9===u)return"\xd7";if(-1===[_,B,C].indexOf(u)&&9===c)return"\xd7";if(-1!==[E,x,T,F,U].indexOf(c))return"\xd7";if(rt(a,e)===I)return"\xd7";if(et(23,I,a,e))return"\xd7";if(et([E,x],k,a,e))return"\xd7";if(et(12,12,a,e))return"\xd7";if(u===_)return"\xf7";if(23===u||23===c)return"\xd7";if(16===c||16===u)return"\xf7";if(-1!==[B,C,k].indexOf(c)||14===u)return"\xd7";if(36===l&&-1!==tt.indexOf(u))return"\xd7";if(u===U&&36===c)return"\xd7";if(c===S)return"\xd7";if(-1!==z.indexOf(c)&&u===L||-1!==z.indexOf(u)&&c===L)return"\xd7";if(u===R&&-1!==[H,P,M].indexOf(c)||-1!==[H,P,M].indexOf(u)&&c===D)return"\xd7";if(-1!==z.indexOf(u)&&-1!==X.indexOf(c)||-1!==X.indexOf(u)&&-1!==z.indexOf(c))return"\xd7";if(-1!==[R,D].indexOf(u)&&(c===L||-1!==[I,C].indexOf(c)&&e[o+1]===L)||-1!==[I,C].indexOf(u)&&c===L||u===L&&-1!==[L,U,F].indexOf(c))return"\xd7";if(-1!==[L,U,F,E,x].indexOf(c)){var A=a;while(A>=0){var d=e[A];if(d===L)return"\xd7";if(-1===[U,F].indexOf(d))break;A--}}if(-1!==[R,D].indexOf(c)){A=-1!==[E,x].indexOf(u)?s:a;while(A>=0){d=e[A];if(d===L)return"\xd7";if(-1===[U,F].indexOf(d))break;A--}}if($===u&&-1!==[$,j,Q,N].indexOf(c)||-1!==[j,Q].indexOf(u)&&-1!==[j,K].indexOf(c)||-1!==[K,N].indexOf(u)&&c===K)return"\xd7";if(-1!==Z.indexOf(u)&&-1!==[S,D].indexOf(c)||-1!==Z.indexOf(c)&&u===R)return"\xd7";if(-1!==z.indexOf(u)&&-1!==z.indexOf(c))return"\xd7";if(u===F&&-1!==z.indexOf(c))return"\xd7";if(-1!==z.concat(L).indexOf(u)&&c===I&&-1===V.indexOf(t[o])||-1!==z.concat(L).indexOf(c)&&u===x)return"\xd7";if(41===u&&41===c){var f=r[a],h=1;while(f>0){if(f--,41!==e[f])break;h++}if(h%2!==0)return"\xd7"}return u===P&&c===M?"\xd7":"\xf7"},it=function(t,e){e||(e={lineBreak:"normal",wordBreak:"normal"});var r=function(t,e){void 0===e&&(e="strict");var r=[],n=[],i=[];return t.forEach((function(t,a){var s=W.get(t);if(s>50?(i.push(!0),s-=50):i.push(!1),-1!==["normal","auto","loose"].indexOf(e)&&-1!==[8208,8211,12316,12448].indexOf(t))return n.push(a),r.push(16);if(4===s||11===s){if(0===a)return n.push(a),r.push(O);var o=r[a-1];return-1===J.indexOf(o)?(n.push(n[a-1]),r.push(o)):(n.push(a),r.push(O))}return n.push(a),31===s?r.push("strict"===e?k:H):s===G||29===s?r.push(O):43===s?t>=131072&&t<=196605||t>=196608&&t<=262141?r.push(H):r.push(O):void r.push(s)})),[n,r,i]}(t,e.lineBreak),n=r[0],i=r[1],a=r[2];"break-all"!==e.wordBreak&&"break-word"!==e.wordBreak||(i=i.map((function(t){return-1!==[L,O,G].indexOf(t)?H:t})));var s="keep-all"===e.wordBreak?a.map((function(e,r){return e&&t[r]>=19968&&t[r]<=40959})):void 0;return[n,i,s]},at=function(){function t(t,e,r,n){this.codePoints=t,this.required="!"===e,this.start=r,this.end=n}return t.prototype.slice=function(){return c.apply(void 0,this.codePoints.slice(this.start,this.end))},t}(),st=function(t){return t>=48&&t<=57},ot=function(t){return st(t)||t>=65&&t<=70||t>=97&&t<=102},ut=function(t){return 10===t||9===t||32===t},lt=function(t){return function(t){return function(t){return t>=97&&t<=122}(t)||function(t){return t>=65&&t<=90}(t)}(t)||function(t){return t>=128}(t)||95===t},ct=function(t){return lt(t)||st(t)||45===t},At=function(t){return t>=0&&t<=8||11===t||t>=14&&t<=31||127===t},dt=function(t,e){return 92===t&&10!==e},ft=function(t,e,r){return 45===t?lt(e)||dt(e,r):!!lt(t)||!(92!==t||!dt(t,e))},ht=function(t,e,r){return 43===t||45===t?!!st(e)||46===e&&st(r):st(46===t?e:t)},pt=function(t){var e=0,r=1;43!==t[e]&&45!==t[e]||(45===t[e]&&(r=-1),e++);var n=[];while(st(t[e]))n.push(t[e++]);var i=n.length?parseInt(c.apply(void 0,n),10):0;46===t[e]&&e++;var a=[];while(st(t[e]))a.push(t[e++]);var s=a.length,o=s?parseInt(c.apply(void 0,a),10):0;69!==t[e]&&101!==t[e]||e++;var u=1;43!==t[e]&&45!==t[e]||(45===t[e]&&(u=-1),e++);var l=[];while(st(t[e]))l.push(t[e++]);var A=l.length?parseInt(c.apply(void 0,l),10):0;return r*(i+o*Math.pow(10,-s))*Math.pow(10,u*A)},gt={type:2},vt={type:3},mt={type:4},yt={type:13},wt={type:8},bt={type:21},_t={type:9},Bt={type:10},Ct={type:11},Et={type:12},xt={type:14},Tt={type:23},St={type:1},kt={type:25},It={type:24},Ft={type:26},Lt={type:27},Dt={type:28},Rt={type:29},Ut={type:31},Ot={type:32},Pt=function(){function t(){this._value=[]}return t.prototype.write=function(t){this._value=this._value.concat(l(t))},t.prototype.read=function(){var t=[],e=this.consumeToken();while(e!==Ot)t.push(e),e=this.consumeToken();return t},t.prototype.consumeToken=function(){var t=this.consumeCodePoint();switch(t){case 34:return this.consumeStringToken(34);case 35:var e=this.peekCodePoint(0),r=this.peekCodePoint(1),n=this.peekCodePoint(2);if(ct(e)||dt(r,n)){var i=ft(e,r,n)?2:1,a=this.consumeName();return{type:5,value:a,flags:i}}break;case 36:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),yt;break;case 39:return this.consumeStringToken(39);case 40:return gt;case 41:return vt;case 42:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),xt;break;case 43:if(ht(t,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(t),this.consumeNumericToken();break;case 44:return mt;case 45:var s=t,o=this.peekCodePoint(0),u=this.peekCodePoint(1);if(ht(s,o,u))return this.reconsumeCodePoint(t),this.consumeNumericToken();if(ft(s,o,u))return this.reconsumeCodePoint(t),this.consumeIdentLikeToken();if(45===o&&62===u)return this.consumeCodePoint(),this.consumeCodePoint(),It;break;case 46:if(ht(t,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(t),this.consumeNumericToken();break;case 47:if(42===this.peekCodePoint(0)){this.consumeCodePoint();while(1){var l=this.consumeCodePoint();if(42===l&&(l=this.consumeCodePoint(),47===l))return this.consumeToken();if(-1===l)return this.consumeToken()}}break;case 58:return Ft;case 59:return Lt;case 60:if(33===this.peekCodePoint(0)&&45===this.peekCodePoint(1)&&45===this.peekCodePoint(2))return this.consumeCodePoint(),this.consumeCodePoint(),kt;break;case 64:var A=this.peekCodePoint(0),d=this.peekCodePoint(1),f=this.peekCodePoint(2);if(ft(A,d,f)){a=this.consumeName();return{type:7,value:a}}break;case 91:return Dt;case 92:if(dt(t,this.peekCodePoint(0)))return this.reconsumeCodePoint(t),this.consumeIdentLikeToken();break;case 93:return Rt;case 61:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),wt;break;case 123:return Ct;case 125:return Et;case 117:case 85:var h=this.peekCodePoint(0),p=this.peekCodePoint(1);return 43!==h||!ot(p)&&63!==p||(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(t),this.consumeIdentLikeToken();case 124:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),_t;if(124===this.peekCodePoint(0))return this.consumeCodePoint(),bt;break;case 126:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),Bt;break;case-1:return Ot}return ut(t)?(this.consumeWhiteSpace(),Ut):st(t)?(this.reconsumeCodePoint(t),this.consumeNumericToken()):lt(t)?(this.reconsumeCodePoint(t),this.consumeIdentLikeToken()):{type:6,value:c(t)}},t.prototype.consumeCodePoint=function(){var t=this._value.shift();return"undefined"===typeof t?-1:t},t.prototype.reconsumeCodePoint=function(t){this._value.unshift(t)},t.prototype.peekCodePoint=function(t){return t>=this._value.length?-1:this._value[t]},t.prototype.consumeUnicodeRangeToken=function(){var t=[],e=this.consumeCodePoint();while(ot(e)&&t.length<6)t.push(e),e=this.consumeCodePoint();var r=!1;while(63===e&&t.length<6)t.push(e),e=this.consumeCodePoint(),r=!0;if(r){var n=parseInt(c.apply(void 0,t.map((function(t){return 63===t?48:t}))),16),i=parseInt(c.apply(void 0,t.map((function(t){return 63===t?70:t}))),16);return{type:30,start:n,end:i}}var a=parseInt(c.apply(void 0,t),16);if(45===this.peekCodePoint(0)&&ot(this.peekCodePoint(1))){this.consumeCodePoint(),e=this.consumeCodePoint();var s=[];while(ot(e)&&s.length<6)s.push(e),e=this.consumeCodePoint();i=parseInt(c.apply(void 0,s),16);return{type:30,start:a,end:i}}return{type:30,start:a,end:a}},t.prototype.consumeIdentLikeToken=function(){var t=this.consumeName();return"url"===t.toLowerCase()&&40===this.peekCodePoint(0)?(this.consumeCodePoint(),this.consumeUrlToken()):40===this.peekCodePoint(0)?(this.consumeCodePoint(),{type:19,value:t}):{type:20,value:t}},t.prototype.consumeUrlToken=function(){var t=[];if(this.consumeWhiteSpace(),-1===this.peekCodePoint(0))return{type:22,value:""};var e=this.peekCodePoint(0);if(39===e||34===e){var r=this.consumeStringToken(this.consumeCodePoint());return 0===r.type&&(this.consumeWhiteSpace(),-1===this.peekCodePoint(0)||41===this.peekCodePoint(0))?(this.consumeCodePoint(),{type:22,value:r.value}):(this.consumeBadUrlRemnants(),Tt)}while(1){var n=this.consumeCodePoint();if(-1===n||41===n)return{type:22,value:c.apply(void 0,t)};if(ut(n))return this.consumeWhiteSpace(),-1===this.peekCodePoint(0)||41===this.peekCodePoint(0)?(this.consumeCodePoint(),{type:22,value:c.apply(void 0,t)}):(this.consumeBadUrlRemnants(),Tt);if(34===n||39===n||40===n||At(n))return this.consumeBadUrlRemnants(),Tt;if(92===n){if(!dt(n,this.peekCodePoint(0)))return this.consumeBadUrlRemnants(),Tt;t.push(this.consumeEscapedCodePoint())}else t.push(n)}},t.prototype.consumeWhiteSpace=function(){while(ut(this.peekCodePoint(0)))this.consumeCodePoint()},t.prototype.consumeBadUrlRemnants=function(){while(1){var t=this.consumeCodePoint();if(41===t||-1===t)return;dt(t,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},t.prototype.consumeStringSlice=function(t){var e="";while(t>0){var r=Math.min(5e4,t);e+=c.apply(void 0,this._value.splice(0,r)),t-=r}return this._value.shift(),e},t.prototype.consumeStringToken=function(t){var e="",r=0;do{var n=this._value[r];if(-1===n||void 0===n||n===t)return e+=this.consumeStringSlice(r),{type:0,value:e};if(10===n)return this._value.splice(0,r),St;if(92===n){var i=this._value[r+1];-1!==i&&void 0!==i&&(10===i?(e+=this.consumeStringSlice(r),r=-1,this._value.shift()):dt(n,i)&&(e+=this.consumeStringSlice(r),e+=c(this.consumeEscapedCodePoint()),r=-1))}r++}while(1)},t.prototype.consumeNumber=function(){var t=[],e=4,r=this.peekCodePoint(0);43!==r&&45!==r||t.push(this.consumeCodePoint());while(st(this.peekCodePoint(0)))t.push(this.consumeCodePoint());r=this.peekCodePoint(0);var n=this.peekCodePoint(1);if(46===r&&st(n)){t.push(this.consumeCodePoint(),this.consumeCodePoint()),e=8;while(st(this.peekCodePoint(0)))t.push(this.consumeCodePoint())}r=this.peekCodePoint(0),n=this.peekCodePoint(1);var i=this.peekCodePoint(2);if((69===r||101===r)&&((43===n||45===n)&&st(i)||st(n))){t.push(this.consumeCodePoint(),this.consumeCodePoint()),e=8;while(st(this.peekCodePoint(0)))t.push(this.consumeCodePoint())}return[pt(t),e]},t.prototype.consumeNumericToken=function(){var t=this.consumeNumber(),e=t[0],r=t[1],n=this.peekCodePoint(0),i=this.peekCodePoint(1),a=this.peekCodePoint(2);if(ft(n,i,a)){var s=this.consumeName();return{type:15,number:e,flags:r,unit:s}}return 37===n?(this.consumeCodePoint(),{type:16,number:e,flags:r}):{type:17,number:e,flags:r}},t.prototype.consumeEscapedCodePoint=function(){var t=this.consumeCodePoint();if(ot(t)){var e=c(t);while(ot(this.peekCodePoint(0))&&e.length<6)e+=c(this.consumeCodePoint());ut(this.peekCodePoint(0))&&this.consumeCodePoint();var r=parseInt(e,16);return 0===r||function(t){return t>=55296&&t<=57343}(r)||r>1114111?65533:r}return-1===t?65533:t},t.prototype.consumeName=function(){var t="";while(1){var e=this.consumeCodePoint();if(ct(e))t+=c(e);else{if(!dt(e,this.peekCodePoint(0)))return this.reconsumeCodePoint(e),t;t+=c(this.consumeEscapedCodePoint())}}},t}(),Mt=function(){function t(t){this._tokens=t}return t.create=function(e){var r=new Pt;return r.write(e),new t(r.read())},t.parseValue=function(e){return t.create(e).parseComponentValue()},t.parseValues=function(e){return t.create(e).parseComponentValues()},t.prototype.parseComponentValue=function(){var t=this.consumeToken();while(31===t.type)t=this.consumeToken();if(32===t.type)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(t);var e=this.consumeComponentValue();do{t=this.consumeToken()}while(31===t.type);if(32===t.type)return e;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},t.prototype.parseComponentValues=function(){var t=[];while(1){var e=this.consumeComponentValue();if(32===e.type)return t;t.push(e),t.push()}},t.prototype.consumeComponentValue=function(){var t=this.consumeToken();switch(t.type){case 11:case 28:case 2:return this.consumeSimpleBlock(t.type);case 19:return this.consumeFunction(t)}return t},t.prototype.consumeSimpleBlock=function(t){var e={type:t,values:[]},r=this.consumeToken();while(1){if(32===r.type||Wt(r,t))return e;this.reconsumeToken(r),e.values.push(this.consumeComponentValue()),r=this.consumeToken()}},t.prototype.consumeFunction=function(t){var e={name:t.value,values:[],type:18};while(1){var r=this.consumeToken();if(32===r.type||3===r.type)return e;this.reconsumeToken(r),e.values.push(this.consumeComponentValue())}},t.prototype.consumeToken=function(){var t=this._tokens.shift();return"undefined"===typeof t?Ot:t},t.prototype.reconsumeToken=function(t){this._tokens.unshift(t)},t}(),Qt=function(t){return 15===t.type},Nt=function(t){return 17===t.type},Ht=function(t){return 20===t.type},$t=function(t){return 0===t.type},jt=function(t,e){return Ht(t)&&t.value===e},Kt=function(t){return 31!==t.type},Gt=function(t){return 31!==t.type&&4!==t.type},Vt=function(t){var e=[],r=[];return t.forEach((function(t){if(4===t.type){if(0===r.length)throw new Error("Error parsing function args, zero tokens for arg");return e.push(r),void(r=[])}31!==t.type&&r.push(t)})),r.length&&e.push(r),e},Wt=function(t,e){return 11===e&&12===t.type||(28===e&&29===t.type||2===e&&3===t.type)},zt=function(t){return 17===t.type||15===t.type},Yt=function(t){return 16===t.type||zt(t)},qt=function(t){return t.length>1?[t[0],t[1]]:[t[0]]},Xt={type:17,number:0,flags:4},Jt={type:16,number:50,flags:4},Zt={type:16,number:100,flags:4},te=function(t,e,r){var n=t[0],i=t[1];return[ee(n,e),ee("undefined"!==typeof i?i:n,r)]},ee=function(t,e){if(16===t.type)return t.number/100*e;if(Qt(t))switch(t.unit){case"rem":case"em":return 16*t.number;case"px":default:return t.number}return t.number},re={name:"angle",parse:function(t,e){if(15===e.type)switch(e.unit){case"deg":return Math.PI*e.number/180;case"grad":return Math.PI/200*e.number;case"rad":return e.number;case"turn":return 2*Math.PI*e.number}throw new Error("Unsupported angle type")}},ne=function(t){return 15===t.type&&("deg"===t.unit||"grad"===t.unit||"rad"===t.unit||"turn"===t.unit)},ie=function(t){var e=t.filter(Ht).map((function(t){return t.value})).join(" ");switch(e){case"to bottom right":case"to right bottom":case"left top":case"top left":return[Xt,Xt];case"to top":case"bottom":return ae(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[Xt,Zt];case"to right":case"left":return ae(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[Zt,Zt];case"to bottom":case"top":return ae(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[Zt,Xt];case"to left":case"right":return ae(270)}return 0},ae=function(t){return Math.PI*t/180},se={name:"color",parse:function(t,e){if(18===e.type){var r=he[e.name];if("undefined"===typeof r)throw new Error('Attempting to parse an unsupported color function "'+e.name+'"');return r(t,e.values)}if(5===e.type){if(3===e.value.length){var n=e.value.substring(0,1),i=e.value.substring(1,2),a=e.value.substring(2,3);return le(parseInt(n+n,16),parseInt(i+i,16),parseInt(a+a,16),1)}if(4===e.value.length){n=e.value.substring(0,1),i=e.value.substring(1,2),a=e.value.substring(2,3);var s=e.value.substring(3,4);return le(parseInt(n+n,16),parseInt(i+i,16),parseInt(a+a,16),parseInt(s+s,16)/255)}if(6===e.value.length){n=e.value.substring(0,2),i=e.value.substring(2,4),a=e.value.substring(4,6);return le(parseInt(n,16),parseInt(i,16),parseInt(a,16),1)}if(8===e.value.length){n=e.value.substring(0,2),i=e.value.substring(2,4),a=e.value.substring(4,6),s=e.value.substring(6,8);return le(parseInt(n,16),parseInt(i,16),parseInt(a,16),parseInt(s,16)/255)}}if(20===e.type){var o=ge[e.value.toUpperCase()];if("undefined"!==typeof o)return o}return ge.TRANSPARENT}},oe=function(t){return 0===(255&t)},ue=function(t){var e=255&t,r=255&t>>8,n=255&t>>16,i=255&t>>24;return e<255?"rgba("+i+","+n+","+r+","+e/255+")":"rgb("+i+","+n+","+r+")"},le=function(t,e,r,n){return(t<<24|e<<16|r<<8|Math.round(255*n)<<0)>>>0},ce=function(t,e){if(17===t.type)return t.number;if(16===t.type){var r=3===e?1:255;return 3===e?t.number/100*r:Math.round(t.number/100*r)}return 0},Ae=function(t,e){var r=e.filter(Gt);if(3===r.length){var n=r.map(ce),i=n[0],a=n[1],s=n[2];return le(i,a,s,1)}if(4===r.length){var o=r.map(ce),u=(i=o[0],a=o[1],s=o[2],o[3]);return le(i,a,s,u)}return 0};function de(t,e,r){return r<0&&(r+=1),r>=1&&(r-=1),r<1/6?(e-t)*r*6+t:r<.5?e:r<2/3?6*(e-t)*(2/3-r)+t:t}var fe=function(t,e){var r=e.filter(Gt),n=r[0],i=r[1],a=r[2],s=r[3],o=(17===n.type?ae(n.number):re.parse(t,n))/(2*Math.PI),u=Yt(i)?i.number/100:0,l=Yt(a)?a.number/100:0,c="undefined"!==typeof s&&Yt(s)?ee(s,1):1;if(0===u)return le(255*l,255*l,255*l,1);var A=l<=.5?l*(u+1):l+u-l*u,d=2*l-A,f=de(d,A,o+1/3),h=de(d,A,o),p=de(d,A,o-1/3);return le(255*f,255*h,255*p,c)},he={hsl:fe,hsla:fe,rgb:Ae,rgba:Ae},pe=function(t,e){return se.parse(t,Mt.create(e).parseComponentValue())},ge={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},ve={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(t,e){return e.map((function(t){if(Ht(t))switch(t.value){case"padding-box":return 1;case"content-box":return 2}return 0}))}},me={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},ye=function(t,e){var r=se.parse(t,e[0]),n=e[1];return n&&Yt(n)?{color:r,stop:n}:{color:r,stop:null}},we=function(t,e){var r=t[0],n=t[t.length-1];null===r.stop&&(r.stop=Xt),null===n.stop&&(n.stop=Zt);for(var i=[],a=0,s=0;s<t.length;s++){var o=t[s].stop;if(null!==o){var u=ee(o,e);u>a?i.push(u):i.push(a),a=u}else i.push(null)}var l=null;for(s=0;s<i.length;s++){var c=i[s];if(null===c)null===l&&(l=s);else if(null!==l){for(var A=s-l,d=i[l-1],f=(c-d)/(A+1),h=1;h<=A;h++)i[l+h-1]=f*h;l=null}}return t.map((function(t,r){var n=t.color;return{color:n,stop:Math.max(Math.min(1,i[r]/e),0)}}))},be=function(t,e,r){var n="number"===typeof t?t:function(t,e,r){var n=e/2,i=r/2,a=ee(t[0],e)-n,s=i-ee(t[1],r);return(Math.atan2(s,a)+2*Math.PI)%(2*Math.PI)}(t,e,r),i=Math.abs(e*Math.sin(n))+Math.abs(r*Math.cos(n)),a=e/2,s=r/2,o=i/2,u=Math.sin(n-Math.PI/2)*o,l=Math.cos(n-Math.PI/2)*o;return[i,a-l,a+l,s-u,s+u]},_e=function(t,e){return Math.sqrt(t*t+e*e)},Be=function(t,e,r,n,i){var a=[[0,0],[0,e],[t,0],[t,e]];return a.reduce((function(t,e){var a=e[0],s=e[1],o=_e(r-a,n-s);return(i?o<t.optimumDistance:o>t.optimumDistance)?{optimumCorner:e,optimumDistance:o}:t}),{optimumDistance:i?1/0:-1/0,optimumCorner:null}).optimumCorner},Ce=function(t,e){var r=ae(180),n=[];return Vt(e).forEach((function(e,i){if(0===i){var a=e[0];if(20===a.type&&-1!==["top","left","right","bottom"].indexOf(a.value))return void(r=ie(e));if(ne(a))return void(r=(re.parse(t,a)+ae(270))%ae(360))}var s=ye(t,e);n.push(s)})),{angle:r,stops:n,type:1}},Ee=function(t,e){var r=0,n=3,i=[],a=[];return Vt(e).forEach((function(e,s){var o=!0;if(0===s?o=e.reduce((function(t,e){if(Ht(e))switch(e.value){case"center":return a.push(Jt),!1;case"top":case"left":return a.push(Xt),!1;case"right":case"bottom":return a.push(Zt),!1}else if(Yt(e)||zt(e))return a.push(e),!1;return t}),o):1===s&&(o=e.reduce((function(t,e){if(Ht(e))switch(e.value){case"circle":return r=0,!1;case"ellipse":return r=1,!1;case"contain":case"closest-side":return n=0,!1;case"farthest-side":return n=1,!1;case"closest-corner":return n=2,!1;case"cover":case"farthest-corner":return n=3,!1}else if(zt(e)||Yt(e))return Array.isArray(n)||(n=[]),n.push(e),!1;return t}),o)),o){var u=ye(t,e);i.push(u)}})),{size:n,shape:r,stops:i,position:a,type:2}},xe={name:"image",parse:function(t,e){if(22===e.type){var r={url:e.value,type:0};return t.cache.addImage(e.value),r}if(18===e.type){var n=Se[e.name];if("undefined"===typeof n)throw new Error('Attempting to parse an unsupported image function "'+e.name+'"');return n(t,e.values)}throw new Error("Unsupported image type "+e.type)}};var Te,Se={"linear-gradient":function(t,e){var r=ae(180),n=[];return Vt(e).forEach((function(e,i){if(0===i){var a=e[0];if(20===a.type&&"to"===a.value)return void(r=ie(e));if(ne(a))return void(r=re.parse(t,a))}var s=ye(t,e);n.push(s)})),{angle:r,stops:n,type:1}},"-moz-linear-gradient":Ce,"-ms-linear-gradient":Ce,"-o-linear-gradient":Ce,"-webkit-linear-gradient":Ce,"radial-gradient":function(t,e){var r=0,n=3,i=[],a=[];return Vt(e).forEach((function(e,s){var o=!0;if(0===s){var u=!1;o=e.reduce((function(t,e){if(u)if(Ht(e))switch(e.value){case"center":return a.push(Jt),t;case"top":case"left":return a.push(Xt),t;case"right":case"bottom":return a.push(Zt),t}else(Yt(e)||zt(e))&&a.push(e);else if(Ht(e))switch(e.value){case"circle":return r=0,!1;case"ellipse":return r=1,!1;case"at":return u=!0,!1;case"closest-side":return n=0,!1;case"cover":case"farthest-side":return n=1,!1;case"contain":case"closest-corner":return n=2,!1;case"farthest-corner":return n=3,!1}else if(zt(e)||Yt(e))return Array.isArray(n)||(n=[]),n.push(e),!1;return t}),o)}if(o){var l=ye(t,e);i.push(l)}})),{size:n,shape:r,stops:i,position:a,type:2}},"-moz-radial-gradient":Ee,"-ms-radial-gradient":Ee,"-o-radial-gradient":Ee,"-webkit-radial-gradient":Ee,"-webkit-gradient":function(t,e){var r=ae(180),n=[],i=1;return Vt(e).forEach((function(e,r){var a=e[0];if(0===r){if(Ht(a)&&"linear"===a.value)return void(i=1);if(Ht(a)&&"radial"===a.value)return void(i=2)}if(18===a.type)if("from"===a.name){var s=se.parse(t,a.values[0]);n.push({stop:Xt,color:s})}else if("to"===a.name){s=se.parse(t,a.values[0]);n.push({stop:Zt,color:s})}else if("color-stop"===a.name){var o=a.values.filter(Gt);if(2===o.length){s=se.parse(t,o[1]);var u=o[0];Nt(u)&&n.push({stop:{type:16,number:100*u.number,flags:u.flags},color:s})}}})),1===i?{angle:(r+ae(180))%ae(360),stops:n,type:i}:{size:3,shape:0,stops:n,position:[],type:i}}},ke={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(t,e){if(0===e.length)return[];var r=e[0];return 20===r.type&&"none"===r.value?[]:e.filter((function(t){return Gt(t)&&function(t){return!(20===t.type&&"none"===t.value)&&(18!==t.type||!!Se[t.name])}(t)})).map((function(e){return xe.parse(t,e)}))}},Ie={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(t,e){return e.map((function(t){if(Ht(t))switch(t.value){case"padding-box":return 1;case"content-box":return 2}return 0}))}},Fe={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(t,e){return Vt(e).map((function(t){return t.filter(Yt)})).map(qt)}},Le={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(t,e){return Vt(e).map((function(t){return t.filter(Ht).map((function(t){return t.value})).join(" ")})).map(De)}},De=function(t){switch(t){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;case"repeat":default:return 0}};(function(t){t["AUTO"]="auto",t["CONTAIN"]="contain",t["COVER"]="cover"})(Te||(Te={}));var Re,Ue={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(t,e){return Vt(e).map((function(t){return t.filter(Oe)}))}},Oe=function(t){return Ht(t)||Yt(t)},Pe=function(t){return{name:"border-"+t+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},Me=Pe("top"),Qe=Pe("right"),Ne=Pe("bottom"),He=Pe("left"),$e=function(t){return{name:"border-radius-"+t,initialValue:"0 0",prefix:!1,type:1,parse:function(t,e){return qt(e.filter(Yt))}}},je=$e("top-left"),Ke=$e("top-right"),Ge=$e("bottom-right"),Ve=$e("bottom-left"),We=function(t){return{name:"border-"+t+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(t,e){switch(e){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},ze=We("top"),Ye=We("right"),qe=We("bottom"),Xe=We("left"),Je=function(t){return{name:"border-"+t+"-width",initialValue:"0",type:0,prefix:!1,parse:function(t,e){return Qt(e)?e.number:0}}},Ze=Je("top"),tr=Je("right"),er=Je("bottom"),rr=Je("left"),nr={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},ir={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(t,e){switch(e){case"rtl":return 1;case"ltr":default:return 0}}},ar={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(t,e){return e.filter(Ht).reduce((function(t,e){return t|sr(e.value)}),0)}},sr=function(t){switch(t){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},or={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(t,e){switch(e){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},ur={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(t,e){return 20===e.type&&"normal"===e.value?0:17===e.type||15===e.type?e.number:0}};(function(t){t["NORMAL"]="normal",t["STRICT"]="strict"})(Re||(Re={}));var lr,cr={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(t,e){switch(e){case"strict":return Re.STRICT;case"normal":default:return Re.NORMAL}}},Ar={name:"line-height",initialValue:"normal",prefix:!1,type:4},dr=function(t,e){return Ht(t)&&"normal"===t.value?1.2*e:17===t.type?e*t.number:Yt(t)?ee(t,e):e},fr={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(t,e){return 20===e.type&&"none"===e.value?null:xe.parse(t,e)}},hr={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(t,e){switch(e){case"inside":return 0;case"outside":default:return 1}}},pr={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(t,e){switch(e){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":return 22;case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;case"none":default:return-1}}},gr=function(t){return{name:"margin-"+t,initialValue:"0",prefix:!1,type:4}},vr=gr("top"),mr=gr("right"),yr=gr("bottom"),wr=gr("left"),br={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(t,e){return e.filter(Ht).map((function(t){switch(t.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;case"visible":default:return 0}}))}},_r={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(t,e){switch(e){case"break-word":return"break-word";case"normal":default:return"normal"}}},Br=function(t){return{name:"padding-"+t,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},Cr=Br("top"),Er=Br("right"),xr=Br("bottom"),Tr=Br("left"),Sr={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(t,e){switch(e){case"right":return 2;case"center":case"justify":return 1;case"left":default:return 0}}},kr={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(t,e){switch(e){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},Ir={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(t,e){return 1===e.length&&jt(e[0],"none")?[]:Vt(e).map((function(e){for(var r={color:ge.TRANSPARENT,offsetX:Xt,offsetY:Xt,blur:Xt},n=0,i=0;i<e.length;i++){var a=e[i];zt(a)?(0===n?r.offsetX=a:1===n?r.offsetY=a:r.blur=a,n++):r.color=se.parse(t,a)}return r}))}},Fr={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(t,e){switch(e){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},Lr={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(t,e){if(20===e.type&&"none"===e.value)return null;if(18===e.type){var r=Dr[e.name];if("undefined"===typeof r)throw new Error('Attempting to parse an unsupported transform function "'+e.name+'"');return r(e.values)}return null}},Dr={matrix:function(t){var e=t.filter((function(t){return 17===t.type})).map((function(t){return t.number}));return 6===e.length?e:null},matrix3d:function(t){var e=t.filter((function(t){return 17===t.type})).map((function(t){return t.number})),r=e[0],n=e[1];e[2],e[3];var i=e[4],a=e[5];e[6],e[7],e[8],e[9],e[10],e[11];var s=e[12],o=e[13];return e[14],e[15],16===e.length?[r,n,i,a,s,o]:null}},Rr={type:16,number:50,flags:4},Ur=[Rr,Rr],Or={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(t,e){var r=e.filter(Yt);return 2!==r.length?Ur:[r[0],r[1]]}},Pr={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(t,e){switch(e){case"hidden":return 1;case"collapse":return 2;case"visible":default:return 0}}};(function(t){t["NORMAL"]="normal",t["BREAK_ALL"]="break-all",t["KEEP_ALL"]="keep-all"})(lr||(lr={}));for(var Mr={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(t,e){switch(e){case"break-all":return lr.BREAK_ALL;case"keep-all":return lr.KEEP_ALL;case"normal":default:return lr.NORMAL}}},Qr={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(t,e){if(20===e.type)return{auto:!0,order:0};if(Nt(e))return{auto:!1,order:e.number};throw new Error("Invalid z-index number parsed")}},Nr={name:"time",parse:function(t,e){if(15===e.type)switch(e.unit.toLowerCase()){case"s":return 1e3*e.number;case"ms":return e.number}throw new Error("Unsupported time type")}},Hr={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(t,e){return Nt(e)?e.number:1}},$r={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},jr={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(t,e){return e.filter(Ht).map((function(t){switch(t.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0})).filter((function(t){return 0!==t}))}},Kr={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(t,e){var r=[],n=[];return e.forEach((function(t){switch(t.type){case 20:case 0:r.push(t.value);break;case 17:r.push(t.number.toString());break;case 4:n.push(r.join(" ")),r.length=0;break}})),r.length&&n.push(r.join(" ")),n.map((function(t){return-1===t.indexOf(" ")?t:"'"+t+"'"}))}},Gr={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},Vr={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(t,e){if(Nt(e))return e.number;if(Ht(e))switch(e.value){case"bold":return 700;case"normal":default:return 400}return 400}},Wr={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(t,e){return e.filter(Ht).map((function(t){return t.value}))}},zr={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(t,e){switch(e){case"oblique":return"oblique";case"italic":return"italic";case"normal":default:return"normal"}}},Yr=function(t,e){return 0!==(t&e)},qr={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(t,e){if(0===e.length)return[];var r=e[0];return 20===r.type&&"none"===r.value?[]:e}},Xr={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(t,e){if(0===e.length)return null;var r=e[0];if(20===r.type&&"none"===r.value)return null;for(var n=[],i=e.filter(Kt),a=0;a<i.length;a++){var s=i[a],o=i[a+1];if(20===s.type){var u=o&&Nt(o)?o.number:1;n.push({counter:s.value,increment:u})}}return n}},Jr={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(t,e){if(0===e.length)return[];for(var r=[],n=e.filter(Kt),i=0;i<n.length;i++){var a=n[i],s=n[i+1];if(Ht(a)&&"none"!==a.value){var o=s&&Nt(s)?s.number:0;r.push({counter:a.value,reset:o})}}return r}},Zr={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(t,e){return e.filter(Qt).map((function(e){return Nr.parse(t,e)}))}},tn={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(t,e){if(0===e.length)return null;var r=e[0];if(20===r.type&&"none"===r.value)return null;var n=[],i=e.filter($t);if(i.length%2!==0)return null;for(var a=0;a<i.length;a+=2){var s=i[a].value,o=i[a+1].value;n.push({open:s,close:o})}return n}},en=function(t,e,r){if(!t)return"";var n=t[Math.min(e,t.length-1)];return n?r?n.open:n.close:""},rn={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(t,e){return 1===e.length&&jt(e[0],"none")?[]:Vt(e).map((function(e){for(var r={color:255,offsetX:Xt,offsetY:Xt,blur:Xt,spread:Xt,inset:!1},n=0,i=0;i<e.length;i++){var a=e[i];jt(a,"inset")?r.inset=!0:zt(a)?(0===n?r.offsetX=a:1===n?r.offsetY=a:2===n?r.blur=a:r.spread=a,n++):r.color=se.parse(t,a)}return r}))}},nn={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(t,e){var r=[];return e.filter(Ht).forEach((function(t){switch(t.value){case"stroke":r.push(1);break;case"fill":r.push(0);break;case"markers":r.push(2);break}})),[0,1,2].forEach((function(t){-1===r.indexOf(t)&&r.push(t)})),r}},an={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},sn={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(t,e){return Qt(e)?e.number:0}},on=function(){function t(t,e){var r,n;this.animationDuration=cn(t,Zr,e.animationDuration),this.backgroundClip=cn(t,ve,e.backgroundClip),this.backgroundColor=cn(t,me,e.backgroundColor),this.backgroundImage=cn(t,ke,e.backgroundImage),this.backgroundOrigin=cn(t,Ie,e.backgroundOrigin),this.backgroundPosition=cn(t,Fe,e.backgroundPosition),this.backgroundRepeat=cn(t,Le,e.backgroundRepeat),this.backgroundSize=cn(t,Ue,e.backgroundSize),this.borderTopColor=cn(t,Me,e.borderTopColor),this.borderRightColor=cn(t,Qe,e.borderRightColor),this.borderBottomColor=cn(t,Ne,e.borderBottomColor),this.borderLeftColor=cn(t,He,e.borderLeftColor),this.borderTopLeftRadius=cn(t,je,e.borderTopLeftRadius),this.borderTopRightRadius=cn(t,Ke,e.borderTopRightRadius),this.borderBottomRightRadius=cn(t,Ge,e.borderBottomRightRadius),this.borderBottomLeftRadius=cn(t,Ve,e.borderBottomLeftRadius),this.borderTopStyle=cn(t,ze,e.borderTopStyle),this.borderRightStyle=cn(t,Ye,e.borderRightStyle),this.borderBottomStyle=cn(t,qe,e.borderBottomStyle),this.borderLeftStyle=cn(t,Xe,e.borderLeftStyle),this.borderTopWidth=cn(t,Ze,e.borderTopWidth),this.borderRightWidth=cn(t,tr,e.borderRightWidth),this.borderBottomWidth=cn(t,er,e.borderBottomWidth),this.borderLeftWidth=cn(t,rr,e.borderLeftWidth),this.boxShadow=cn(t,rn,e.boxShadow),this.color=cn(t,nr,e.color),this.direction=cn(t,ir,e.direction),this.display=cn(t,ar,e.display),this.float=cn(t,or,e.cssFloat),this.fontFamily=cn(t,Kr,e.fontFamily),this.fontSize=cn(t,Gr,e.fontSize),this.fontStyle=cn(t,zr,e.fontStyle),this.fontVariant=cn(t,Wr,e.fontVariant),this.fontWeight=cn(t,Vr,e.fontWeight),this.letterSpacing=cn(t,ur,e.letterSpacing),this.lineBreak=cn(t,cr,e.lineBreak),this.lineHeight=cn(t,Ar,e.lineHeight),this.listStyleImage=cn(t,fr,e.listStyleImage),this.listStylePosition=cn(t,hr,e.listStylePosition),this.listStyleType=cn(t,pr,e.listStyleType),this.marginTop=cn(t,vr,e.marginTop),this.marginRight=cn(t,mr,e.marginRight),this.marginBottom=cn(t,yr,e.marginBottom),this.marginLeft=cn(t,wr,e.marginLeft),this.opacity=cn(t,Hr,e.opacity);var i=cn(t,br,e.overflow);this.overflowX=i[0],this.overflowY=i[i.length>1?1:0],this.overflowWrap=cn(t,_r,e.overflowWrap),this.paddingTop=cn(t,Cr,e.paddingTop),this.paddingRight=cn(t,Er,e.paddingRight),this.paddingBottom=cn(t,xr,e.paddingBottom),this.paddingLeft=cn(t,Tr,e.paddingLeft),this.paintOrder=cn(t,nn,e.paintOrder),this.position=cn(t,kr,e.position),this.textAlign=cn(t,Sr,e.textAlign),this.textDecorationColor=cn(t,$r,null!==(r=e.textDecorationColor)&&void 0!==r?r:e.color),this.textDecorationLine=cn(t,jr,null!==(n=e.textDecorationLine)&&void 0!==n?n:e.textDecoration),this.textShadow=cn(t,Ir,e.textShadow),this.textTransform=cn(t,Fr,e.textTransform),this.transform=cn(t,Lr,e.transform),this.transformOrigin=cn(t,Or,e.transformOrigin),this.visibility=cn(t,Pr,e.visibility),this.webkitTextStrokeColor=cn(t,an,e.webkitTextStrokeColor),this.webkitTextStrokeWidth=cn(t,sn,e.webkitTextStrokeWidth),this.wordBreak=cn(t,Mr,e.wordBreak),this.zIndex=cn(t,Qr,e.zIndex)}return t.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&0===this.visibility},t.prototype.isTransparent=function(){return oe(this.backgroundColor)},t.prototype.isTransformed=function(){return null!==this.transform},t.prototype.isPositioned=function(){return 0!==this.position},t.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},t.prototype.isFloating=function(){return 0!==this.float},t.prototype.isInlineLevel=function(){return Yr(this.display,4)||Yr(this.display,33554432)||Yr(this.display,268435456)||Yr(this.display,536870912)||Yr(this.display,67108864)||Yr(this.display,134217728)},t}(),un=function(){return function(t,e){this.content=cn(t,qr,e.content),this.quotes=cn(t,tn,e.quotes)}}(),ln=function(){return function(t,e){this.counterIncrement=cn(t,Xr,e.counterIncrement),this.counterReset=cn(t,Jr,e.counterReset)}}(),cn=function(t,e,r){var n=new Pt,i=null!==r&&"undefined"!==typeof r?r.toString():e.initialValue;n.write(i);var a=new Mt(n.read());switch(e.type){case 2:var s=a.parseComponentValue();return e.parse(t,Ht(s)?s.value:e.initialValue);case 0:return e.parse(t,a.parseComponentValue());case 1:return e.parse(t,a.parseComponentValues());case 4:return a.parseComponentValue();case 3:switch(e.format){case"angle":return re.parse(t,a.parseComponentValue());case"color":return se.parse(t,a.parseComponentValue());case"image":return xe.parse(t,a.parseComponentValue());case"length":var o=a.parseComponentValue();return zt(o)?o:Xt;case"length-percentage":var u=a.parseComponentValue();return Yt(u)?u:Xt;case"time":return Nr.parse(t,a.parseComponentValue())}break}},An=function(t,e){var r=function(t){var e=t.getAttribute("data-html2canvas-debug");switch(e){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}}(t);return 1===r||e===r},dn=function(){return function(t,e){this.context=t,this.textNodes=[],this.elements=[],this.flags=0,An(e,3),this.styles=new on(t,window.getComputedStyle(e,null)),Ai(e)&&(this.styles.animationDuration.some((function(t){return t>0}))&&(e.style.animationDuration="0s"),null!==this.styles.transform&&(e.style.transform="none")),this.bounds=u(this.context,e),An(e,4)&&(this.flags|=16)}}(),fn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",hn="undefined"===typeof Uint8Array?[]:new Uint8Array(256),pn=0;pn<fn.length;pn++)hn[fn.charCodeAt(pn)]=pn;for(var gn=function(t,e,r){return t.slice?t.slice(e,r):new Uint16Array(Array.prototype.slice.call(t,e,r))},vn=function(){function t(t,e,r,n,i,a){this.initialValue=t,this.errorValue=e,this.highStart=r,this.highValueIndex=n,this.index=i,this.data=a}return t.prototype.get=function(t){var e;if(t>=0){if(t<55296||t>56319&&t<=65535)return e=this.index[t>>5],e=(e<<2)+(31&t),this.data[e];if(t<=65535)return e=this.index[2048+(t-55296>>5)],e=(e<<2)+(31&t),this.data[e];if(t<this.highStart)return e=2080+(t>>11),e=this.index[e],e+=t>>5&63,e=this.index[e],e=(e<<2)+(31&t),this.data[e];if(t<=1114111)return this.data[this.highValueIndex]}return this.errorValue},t}(),mn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",yn="undefined"===typeof Uint8Array?[]:new Uint8Array(256),wn=0;wn<mn.length;wn++)yn[mn.charCodeAt(wn)]=wn;var bn,_n=8,Bn=9,Cn=11,En=12,xn=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(String.fromCodePoint)return String.fromCodePoint.apply(String,t);var r=t.length;if(!r)return"";var n=[],i=-1,a="";while(++i<r){var s=t[i];s<=65535?n.push(s):(s-=65536,n.push(55296+(s>>10),s%1024+56320)),(i+1===r||n.length>16384)&&(a+=String.fromCharCode.apply(String,n),n.length=0)}return a},Tn=function(t,e){var r=function(t){var e,r,n,i,a,s=.75*t.length,o=t.length,u=0;"="===t[t.length-1]&&(s--,"="===t[t.length-2]&&s--);var l="undefined"!==typeof ArrayBuffer&&"undefined"!==typeof Uint8Array&&"undefined"!==typeof Uint8Array.prototype.slice?new ArrayBuffer(s):new Array(s),c=Array.isArray(l)?l:new Uint8Array(l);for(e=0;e<o;e+=4)r=hn[t.charCodeAt(e)],n=hn[t.charCodeAt(e+1)],i=hn[t.charCodeAt(e+2)],a=hn[t.charCodeAt(e+3)],c[u++]=r<<2|n>>4,c[u++]=(15&n)<<4|i>>2,c[u++]=(3&i)<<6|63&a;return l}(t),n=Array.isArray(r)?function(t){for(var e=t.length,r=[],n=0;n<e;n+=4)r.push(t[n+3]<<24|t[n+2]<<16|t[n+1]<<8|t[n]);return r}(r):new Uint32Array(r),i=Array.isArray(r)?function(t){for(var e=t.length,r=[],n=0;n<e;n+=2)r.push(t[n+1]<<8|t[n]);return r}(r):new Uint16Array(r),a=gn(i,12,n[4]/2),s=2===n[5]?gn(i,(24+n[4])/2):function(t,e,r){return t.slice?t.slice(e,r):new Uint32Array(Array.prototype.slice.call(t,e,r))}(n,Math.ceil((24+n[4])/4));return new vn(n[0],n[1],n[2],n[3],a,s)}(" "),Sn=function(t){return Tn.get(t)},kn=function(t,e,r){var n=r-2,i=e[n],a=e[r-1],s=e[r];if(2===a&&3===s)return"\xd7";if(2===a||3===a||4===a)return"\xf7";if(2===s||3===s||4===s)return"\xf7";if(a===_n&&-1!==[_n,Bn,Cn,En].indexOf(s))return"\xd7";if((a===Cn||a===Bn)&&(s===Bn||10===s))return"\xd7";if((a===En||10===a)&&10===s)return"\xd7";if(13===s||5===s)return"\xd7";if(7===s)return"\xd7";if(1===a)return"\xd7";if(13===a&&14===s){while(5===i)i=e[--n];if(14===i)return"\xd7"}if(15===a&&15===s){var o=0;while(15===i)o++,i=e[--n];if(o%2===0)return"\xd7"}return"\xf7"},In=function(t){var e=function(t){var e=[],r=0,n=t.length;while(r<n){var i=t.charCodeAt(r++);if(i>=55296&&i<=56319&&r<n){var a=t.charCodeAt(r++);56320===(64512&a)?e.push(((1023&i)<<10)+(1023&a)+65536):(e.push(i),r--)}else e.push(i)}return e}(t),r=e.length,n=0,i=0,a=e.map(Sn);return{next:function(){if(n>=r)return{done:!0,value:null};var t="\xd7";while(n<r&&"\xd7"===(t=kn(0,a,++n)));if("\xd7"!==t||n===r){var s=xn.apply(null,e.slice(i,n));return i=n,{value:s,done:!1}}return{done:!0,value:null}}}},Fn=function(t){return 0===t[0]&&255===t[1]&&0===t[2]&&255===t[3]},Ln=function(t,e,r,n,i){var a="http://www.w3.org/2000/svg",s=document.createElementNS(a,"svg"),o=document.createElementNS(a,"foreignObject");return s.setAttributeNS(null,"width",t.toString()),s.setAttributeNS(null,"height",e.toString()),o.setAttributeNS(null,"width","100%"),o.setAttributeNS(null,"height","100%"),o.setAttributeNS(null,"x",r.toString()),o.setAttributeNS(null,"y",n.toString()),o.setAttributeNS(null,"externalResourcesRequired","true"),s.appendChild(o),o.appendChild(i),s},Dn=function(t){return new Promise((function(e,r){var n=new Image;n.onload=function(){return e(n)},n.onerror=r,n.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent((new XMLSerializer).serializeToString(t))}))},Rn={get SUPPORT_RANGE_BOUNDS(){var t=function(t){if(t.createRange){var e=t.createRange();if(e.getBoundingClientRect){var r=t.createElement("boundtest");r.style.height="123px",r.style.display="block",t.body.appendChild(r),e.selectNode(r);var n=e.getBoundingClientRect(),i=Math.round(n.height);if(t.body.removeChild(r),123===i)return!0}}return!1}(document);return Object.defineProperty(Rn,"SUPPORT_RANGE_BOUNDS",{value:t}),t},get SUPPORT_WORD_BREAKING(){var t=Rn.SUPPORT_RANGE_BOUNDS&&function(t){var e=t.createElement("boundtest");e.style.width="50px",e.style.display="block",e.style.fontSize="12px",e.style.letterSpacing="0px",e.style.wordSpacing="0px",t.body.appendChild(e);var r=t.createRange();e.innerHTML="function"===typeof"".repeat?"&#128104;".repeat(10):"";var n=e.firstChild,i=l(n.data).map((function(t){return c(t)})),a=0,s={},o=i.every((function(t,e){r.setStart(n,a),r.setEnd(n,a+t.length);var i=r.getBoundingClientRect();a+=t.length;var o=i.x>s.x||i.y>s.y;return s=i,0===e||o}));return t.body.removeChild(e),o}(document);return Object.defineProperty(Rn,"SUPPORT_WORD_BREAKING",{value:t}),t},get SUPPORT_SVG_DRAWING(){var t=function(t){var e=new Image,r=t.createElement("canvas"),n=r.getContext("2d");if(!n)return!1;e.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{n.drawImage(e,0,0),r.toDataURL()}catch(i){return!1}return!0}(document);return Object.defineProperty(Rn,"SUPPORT_SVG_DRAWING",{value:t}),t},get SUPPORT_FOREIGNOBJECT_DRAWING(){var t="function"===typeof Array.from&&"function"===typeof window.fetch?function(t){var e=t.createElement("canvas");e.width=100,e.height=100;var r=e.getContext("2d");if(!r)return Promise.reject(!1);r.fillStyle="rgb(0, 255, 0)",r.fillRect(0,0,100,100);var n=new Image,i=e.toDataURL();n.src=i;var a=Ln(100,100,0,0,n);return r.fillStyle="red",r.fillRect(0,0,100,100),Dn(a).then((function(e){r.drawImage(e,0,0);var n=r.getImageData(0,0,100,100).data;r.fillStyle="red",r.fillRect(0,0,100,100);var a=t.createElement("div");return a.style.backgroundImage="url("+i+")",a.style.height="100px",Fn(n)?Dn(Ln(100,100,0,0,a)):Promise.reject(!1)})).then((function(t){return r.drawImage(t,0,0),Fn(r.getImageData(0,0,100,100).data)})).catch((function(){return!1}))}(document):Promise.resolve(!1);return Object.defineProperty(Rn,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:t}),t},get SUPPORT_CORS_IMAGES(){var t=function(){return"undefined"!==typeof(new Image).crossOrigin}();return Object.defineProperty(Rn,"SUPPORT_CORS_IMAGES",{value:t}),t},get SUPPORT_RESPONSE_TYPE(){var t=function(){return"string"===typeof(new XMLHttpRequest).responseType}();return Object.defineProperty(Rn,"SUPPORT_RESPONSE_TYPE",{value:t}),t},get SUPPORT_CORS_XHR(){var t="withCredentials"in new XMLHttpRequest;return Object.defineProperty(Rn,"SUPPORT_CORS_XHR",{value:t}),t},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var t=!("undefined"===typeof Intl||!Intl.Segmenter);return Object.defineProperty(Rn,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:t}),t}},Un=function(){return function(t,e){this.text=t,this.bounds=e}}(),On=function(t,e){var r=e.ownerDocument;if(r){var n=r.createElement("html2canvaswrapper");n.appendChild(e.cloneNode(!0));var i=e.parentNode;if(i){i.replaceChild(n,e);var a=u(t,n);return n.firstChild&&i.replaceChild(n.firstChild,n),a}}return o.EMPTY},Pn=function(t,e,r){var n=t.ownerDocument;if(!n)throw new Error("Node has no owner document");var i=n.createRange();return i.setStart(t,e),i.setEnd(t,e+r),i},Mn=function(t){if(Rn.SUPPORT_NATIVE_TEXT_SEGMENTATION){var e=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(e.segment(t)).map((function(t){return t.segment}))}return function(t){var e,r=In(t),n=[];while(!(e=r.next()).done)e.value&&n.push(e.value.slice());return n}(t)},Qn=function(t,e){return 0!==e.letterSpacing?Mn(t):function(t,e){if(Rn.SUPPORT_NATIVE_TEXT_SEGMENTATION){var r=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(r.segment(t)).map((function(t){return t.segment}))}return Hn(t,e)}(t,e)},Nn=[32,160,4961,65792,65793,4153,4241],Hn=function(t,e){var r,n=function(t,e){var r=l(t),n=it(r,e),i=n[0],a=n[1],s=n[2],o=r.length,u=0,c=0;return{next:function(){if(c>=o)return{done:!0,value:null};var t="\xd7";while(c<o&&"\xd7"===(t=nt(r,a,i,++c,s)));if("\xd7"!==t||c===o){var e=new at(r,t,u,c);return u=c,{value:e,done:!1}}return{done:!0,value:null}}}}(t,{lineBreak:e.lineBreak,wordBreak:"break-word"===e.overflowWrap?"break-word":e.wordBreak}),i=[],a=function(){if(r.value){var t=r.value.slice(),e=l(t),n="";e.forEach((function(t){-1===Nn.indexOf(t)?n+=c(t):(n.length&&i.push(n),i.push(c(t)),n="")})),n.length&&i.push(n)}};while(!(r=n.next()).done)a();return i},$n=function(){return function(t,e,r){this.text=jn(e.data,r.textTransform),this.textBounds=function(t,e,r,n){var i=Qn(e,r),a=[],s=0;return i.forEach((function(e){if(r.textDecorationLine.length||e.trim().length>0)if(Rn.SUPPORT_RANGE_BOUNDS){var i=Pn(n,s,e.length).getClientRects();if(i.length>1){var u=Mn(e),l=0;u.forEach((function(e){a.push(new Un(e,o.fromDOMRectList(t,Pn(n,l+s,e.length).getClientRects()))),l+=e.length}))}else a.push(new Un(e,o.fromDOMRectList(t,i)))}else{var c=n.splitText(e.length);a.push(new Un(e,On(t,n))),n=c}else Rn.SUPPORT_RANGE_BOUNDS||(n=n.splitText(e.length));s+=e.length})),a}(t,this.text,r,e)}}(),jn=function(t,e){switch(e){case 1:return t.toLowerCase();case 3:return t.replace(Kn,Gn);case 2:return t.toUpperCase();default:return t}},Kn=/(^|\s|:|-|\(|\))([a-z])/g,Gn=function(t,e,r){return t.length>0?e+r.toUpperCase():t},Vn=function(t){function r(e,r){var n=t.call(this,e,r)||this;return n.src=r.currentSrc||r.src,n.intrinsicWidth=r.naturalWidth,n.intrinsicHeight=r.naturalHeight,n.context.cache.addImage(n.src),n}return e(r,t),r}(dn),Wn=function(t){function r(e,r){var n=t.call(this,e,r)||this;return n.canvas=r,n.intrinsicWidth=r.width,n.intrinsicHeight=r.height,n}return e(r,t),r}(dn),zn=function(t){function r(e,r){var n=t.call(this,e,r)||this,i=new XMLSerializer,a=u(e,r);return r.setAttribute("width",a.width+"px"),r.setAttribute("height",a.height+"px"),n.svg="data:image/svg+xml,"+encodeURIComponent(i.serializeToString(r)),n.intrinsicWidth=r.width.baseVal.value,n.intrinsicHeight=r.height.baseVal.value,n.context.cache.addImage(n.svg),n}return e(r,t),r}(dn),Yn=function(t){function r(e,r){var n=t.call(this,e,r)||this;return n.value=r.value,n}return e(r,t),r}(dn),qn=function(t){function r(e,r){var n=t.call(this,e,r)||this;return n.start=r.start,n.reversed="boolean"===typeof r.reversed&&!0===r.reversed,n}return e(r,t),r}(dn),Xn=[{type:15,flags:0,unit:"px",number:3}],Jn=[{type:16,flags:0,number:50}],Zn="password",ti=function(t){function r(e,r){var n=t.call(this,e,r)||this;switch(n.type=r.type.toLowerCase(),n.checked=r.checked,n.value=function(t){var e=t.type===Zn?new Array(t.value.length+1).join("\u2022"):t.value;return 0===e.length?t.placeholder||"":e}(r),"checkbox"!==n.type&&"radio"!==n.type||(n.styles.backgroundColor=3739148031,n.styles.borderTopColor=n.styles.borderRightColor=n.styles.borderBottomColor=n.styles.borderLeftColor=2779096575,n.styles.borderTopWidth=n.styles.borderRightWidth=n.styles.borderBottomWidth=n.styles.borderLeftWidth=1,n.styles.borderTopStyle=n.styles.borderRightStyle=n.styles.borderBottomStyle=n.styles.borderLeftStyle=1,n.styles.backgroundClip=[0],n.styles.backgroundOrigin=[0],n.bounds=function(t){return t.width>t.height?new o(t.left+(t.width-t.height)/2,t.top,t.height,t.height):t.width<t.height?new o(t.left,t.top+(t.height-t.width)/2,t.width,t.width):t}(n.bounds)),n.type){case"checkbox":n.styles.borderTopRightRadius=n.styles.borderTopLeftRadius=n.styles.borderBottomRightRadius=n.styles.borderBottomLeftRadius=Xn;break;case"radio":n.styles.borderTopRightRadius=n.styles.borderTopLeftRadius=n.styles.borderBottomRightRadius=n.styles.borderBottomLeftRadius=Jn;break}return n}return e(r,t),r}(dn),ei=function(t){function r(e,r){var n=t.call(this,e,r)||this,i=r.options[r.selectedIndex||0];return n.value=i&&i.text||"",n}return e(r,t),r}(dn),ri=function(t){function r(e,r){var n=t.call(this,e,r)||this;return n.value=r.value,n}return e(r,t),r}(dn),ni=function(t){function r(e,r){var n=t.call(this,e,r)||this;n.src=r.src,n.width=parseInt(r.width,10)||0,n.height=parseInt(r.height,10)||0,n.backgroundColor=n.styles.backgroundColor;try{if(r.contentWindow&&r.contentWindow.document&&r.contentWindow.document.documentElement){n.tree=si(e,r.contentWindow.document.documentElement);var i=r.contentWindow.document.documentElement?pe(e,getComputedStyle(r.contentWindow.document.documentElement).backgroundColor):ge.TRANSPARENT,a=r.contentWindow.document.body?pe(e,getComputedStyle(r.contentWindow.document.body).backgroundColor):ge.TRANSPARENT;n.backgroundColor=oe(i)?oe(a)?n.styles.backgroundColor:a:i}}catch(s){}return n}return e(r,t),r}(dn),ii=["OL","UL","MENU"],ai=function(t,e){return wi(e)?new Vn(t,e):mi(e)?new Wn(t,e):gi(e)?new zn(t,e):fi(e)?new Yn(t,e):hi(e)?new qn(t,e):pi(e)?new ti(t,e):Ci(e)?new ei(t,e):Bi(e)?new ri(t,e):bi(e)?new ni(t,e):new dn(t,e)},si=function(t,e){var r=ai(t,e);return r.flags|=4,function t(e,r,n,i){for(var a=r.firstChild,s=void 0;a;a=s)if(s=a.nextSibling,li(a)&&a.data.trim().length>0)n.textNodes.push(new $n(e,a,n.styles));else if(ci(a))if(Ei(a)&&a.assignedNodes)a.assignedNodes().forEach((function(r){return t(e,r,n,i)}));else{var o=ai(e,a);o.styles.isVisible()&&(oi(a,o,i)?o.flags|=4:ui(o.styles)&&(o.flags|=2),-1!==ii.indexOf(a.tagName)&&(o.flags|=8),n.elements.push(o),a.slot,a.shadowRoot?t(e,a.shadowRoot,o,i):Bi(a)||gi(a)||Ci(a)||t(e,a,o,i))}}(t,e,r,r),r},oi=function(t,e,r){return e.styles.isPositionedWithZIndex()||e.styles.opacity<1||e.styles.isTransformed()||vi(t)&&r.styles.isTransparent()},ui=function(t){return t.isPositioned()||t.isFloating()},li=function(t){return t.nodeType===Node.TEXT_NODE},ci=function(t){return t.nodeType===Node.ELEMENT_NODE},Ai=function(t){return ci(t)&&"undefined"!==typeof t.style&&!di(t)},di=function(t){return"object"===a(t.className)},fi=function(t){return"LI"===t.tagName},hi=function(t){return"OL"===t.tagName},pi=function(t){return"INPUT"===t.tagName},gi=function(t){return"svg"===t.tagName},vi=function(t){return"BODY"===t.tagName},mi=function(t){return"CANVAS"===t.tagName},yi=function(t){return"VIDEO"===t.tagName},wi=function(t){return"IMG"===t.tagName},bi=function(t){return"IFRAME"===t.tagName},_i=function(t){return"STYLE"===t.tagName},Bi=function(t){return"TEXTAREA"===t.tagName},Ci=function(t){return"SELECT"===t.tagName},Ei=function(t){return"SLOT"===t.tagName},xi=function(t){return t.tagName.indexOf("-")>0},Ti=function(){function t(){this.counters={}}return t.prototype.getCounterValue=function(t){var e=this.counters[t];return e&&e.length?e[e.length-1]:1},t.prototype.getCounterValues=function(t){var e=this.counters[t];return e||[]},t.prototype.pop=function(t){var e=this;t.forEach((function(t){return e.counters[t].pop()}))},t.prototype.parse=function(t){var e=this,r=t.counterIncrement,n=t.counterReset,i=!0;null!==r&&r.forEach((function(t){var r=e.counters[t.counter];r&&0!==t.increment&&(i=!1,r.length||r.push(1),r[Math.max(0,r.length-1)]+=t.increment)}));var a=[];return i&&n.forEach((function(t){var r=e.counters[t.counter];a.push(t.counter),r||(r=e.counters[t.counter]=[]),r.push(t.reset)})),a},t}(),Si={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},ki={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["\u0554","\u0553","\u0552","\u0551","\u0550","\u054f","\u054e","\u054d","\u054c","\u054b","\u054a","\u0549","\u0548","\u0547","\u0546","\u0545","\u0544","\u0543","\u0542","\u0541","\u0540","\u053f","\u053e","\u053d","\u053c","\u053b","\u053a","\u0539","\u0538","\u0537","\u0536","\u0535","\u0534","\u0533","\u0532","\u0531"]},Ii={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["\u05d9\u05f3","\u05d8\u05f3","\u05d7\u05f3","\u05d6\u05f3","\u05d5\u05f3","\u05d4\u05f3","\u05d3\u05f3","\u05d2\u05f3","\u05d1\u05f3","\u05d0\u05f3","\u05ea","\u05e9","\u05e8","\u05e7","\u05e6","\u05e4","\u05e2","\u05e1","\u05e0","\u05de","\u05dc","\u05db","\u05d9\u05d8","\u05d9\u05d7","\u05d9\u05d6","\u05d8\u05d6","\u05d8\u05d5","\u05d9","\u05d8","\u05d7","\u05d6","\u05d5","\u05d4","\u05d3","\u05d2","\u05d1","\u05d0"]},Fi={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["\u10f5","\u10f0","\u10ef","\u10f4","\u10ee","\u10ed","\u10ec","\u10eb","\u10ea","\u10e9","\u10e8","\u10e7","\u10e6","\u10e5","\u10e4","\u10f3","\u10e2","\u10e1","\u10e0","\u10df","\u10de","\u10dd","\u10f2","\u10dc","\u10db","\u10da","\u10d9","\u10d8","\u10d7","\u10f1","\u10d6","\u10d5","\u10d4","\u10d3","\u10d2","\u10d1","\u10d0"]},Li=function(t,e,r,n,i,a){return t<e||t>r?Pi(t,i,a.length>0):n.integers.reduce((function(e,r,i){while(t>=r)t-=r,e+=n.values[i];return e}),"")+a},Di=function(t,e,r,n){var i="";do{r||t--,i=n(t)+i,t/=e}while(t*e>=e);return i},Ri=function(t,e,r,n,i){var a=r-e+1;return(t<0?"-":"")+(Di(Math.abs(t),a,n,(function(t){return c(Math.floor(t%a)+e)}))+i)},Ui=function(t,e,r){void 0===r&&(r=". ");var n=e.length;return Di(Math.abs(t),n,!1,(function(t){return e[Math.floor(t%n)]}))+r},Oi=function(t,e,r,n,i,a){if(t<-9999||t>9999)return Pi(t,4,i.length>0);var s=Math.abs(t),o=i;if(0===s)return e[0]+o;for(var u=0;s>0&&u<=4;u++){var l=s%10;0===l&&Yr(a,1)&&""!==o?o=e[l]+o:l>1||1===l&&0===u||1===l&&1===u&&Yr(a,2)||1===l&&1===u&&Yr(a,4)&&t>100||1===l&&u>1&&Yr(a,8)?o=e[l]+(u>0?r[u-1]:"")+o:1===l&&u>0&&(o=r[u-1]+o),s=Math.floor(s/10)}return(t<0?n:"")+o},Pi=function(t,e,r){var n=r?". ":"",i=r?"\u3001":"",a=r?", ":"",s=r?" ":"";switch(e){case 0:return"\u2022"+s;case 1:return"\u25e6"+s;case 2:return"\u25fe"+s;case 5:var o=Ri(t,48,57,!0,n);return o.length<4?"0"+o:o;case 4:return Ui(t,"\u3007\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u4e03\u516b\u4e5d",i);case 6:return Li(t,1,3999,Si,3,n).toLowerCase();case 7:return Li(t,1,3999,Si,3,n);case 8:return Ri(t,945,969,!1,n);case 9:return Ri(t,97,122,!1,n);case 10:return Ri(t,65,90,!1,n);case 11:return Ri(t,1632,1641,!0,n);case 12:case 49:return Li(t,1,9999,ki,3,n);case 35:return Li(t,1,9999,ki,3,n).toLowerCase();case 13:return Ri(t,2534,2543,!0,n);case 14:case 30:return Ri(t,6112,6121,!0,n);case 15:return Ui(t,"\u5b50\u4e11\u5bc5\u536f\u8fb0\u5df3\u5348\u672a\u7533\u9149\u620c\u4ea5",i);case 16:return Ui(t,"\u7532\u4e59\u4e19\u4e01\u620a\u5df1\u5e9a\u8f9b\u58ec\u7678",i);case 17:case 48:return Oi(t,"\u96f6\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u4e03\u516b\u4e5d","\u5341\u767e\u5343\u842c","\u8ca0",i,14);case 47:return Oi(t,"\u96f6\u58f9\u8cb3\u53c3\u8086\u4f0d\u9678\u67d2\u634c\u7396","\u62fe\u4f70\u4edf\u842c","\u8ca0",i,15);case 42:return Oi(t,"\u96f6\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u4e03\u516b\u4e5d","\u5341\u767e\u5343\u842c","\u8d1f",i,14);case 41:return Oi(t,"\u96f6\u58f9\u8d30\u53c1\u8086\u4f0d\u9646\u67d2\u634c\u7396","\u62fe\u4f70\u4edf\u842c","\u8d1f",i,15);case 26:return Oi(t,"\u3007\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u4e03\u516b\u4e5d","\u5341\u767e\u5343\u4e07","\u30de\u30a4\u30ca\u30b9",i,0);case 25:return Oi(t,"\u96f6\u58f1\u5f10\u53c2\u56db\u4f0d\u516d\u4e03\u516b\u4e5d","\u62fe\u767e\u5343\u4e07","\u30de\u30a4\u30ca\u30b9",i,7);case 31:return Oi(t,"\uc601\uc77c\uc774\uc0bc\uc0ac\uc624\uc721\uce60\ud314\uad6c","\uc2ed\ubc31\ucc9c\ub9cc","\ub9c8\uc774\ub108\uc2a4",a,7);case 33:return Oi(t,"\u96f6\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u4e03\u516b\u4e5d","\u5341\u767e\u5343\u842c","\ub9c8\uc774\ub108\uc2a4",a,0);case 32:return Oi(t,"\u96f6\u58f9\u8cb3\u53c3\u56db\u4e94\u516d\u4e03\u516b\u4e5d","\u62fe\u767e\u5343","\ub9c8\uc774\ub108\uc2a4",a,7);case 18:return Ri(t,2406,2415,!0,n);case 20:return Li(t,1,19999,Fi,3,n);case 21:return Ri(t,2790,2799,!0,n);case 22:return Ri(t,2662,2671,!0,n);case 22:return Li(t,1,10999,Ii,3,n);case 23:return Ui(t,"\u3042\u3044\u3046\u3048\u304a\u304b\u304d\u304f\u3051\u3053\u3055\u3057\u3059\u305b\u305d\u305f\u3061\u3064\u3066\u3068\u306a\u306b\u306c\u306d\u306e\u306f\u3072\u3075\u3078\u307b\u307e\u307f\u3080\u3081\u3082\u3084\u3086\u3088\u3089\u308a\u308b\u308c\u308d\u308f\u3090\u3091\u3092\u3093");case 24:return Ui(t,"\u3044\u308d\u306f\u306b\u307b\u3078\u3068\u3061\u308a\u306c\u308b\u3092\u308f\u304b\u3088\u305f\u308c\u305d\u3064\u306d\u306a\u3089\u3080\u3046\u3090\u306e\u304a\u304f\u3084\u307e\u3051\u3075\u3053\u3048\u3066\u3042\u3055\u304d\u3086\u3081\u307f\u3057\u3091\u3072\u3082\u305b\u3059");case 27:return Ri(t,3302,3311,!0,n);case 28:return Ui(t,"\u30a2\u30a4\u30a6\u30a8\u30aa\u30ab\u30ad\u30af\u30b1\u30b3\u30b5\u30b7\u30b9\u30bb\u30bd\u30bf\u30c1\u30c4\u30c6\u30c8\u30ca\u30cb\u30cc\u30cd\u30ce\u30cf\u30d2\u30d5\u30d8\u30db\u30de\u30df\u30e0\u30e1\u30e2\u30e4\u30e6\u30e8\u30e9\u30ea\u30eb\u30ec\u30ed\u30ef\u30f0\u30f1\u30f2\u30f3",i);case 29:return Ui(t,"\u30a4\u30ed\u30cf\u30cb\u30db\u30d8\u30c8\u30c1\u30ea\u30cc\u30eb\u30f2\u30ef\u30ab\u30e8\u30bf\u30ec\u30bd\u30c4\u30cd\u30ca\u30e9\u30e0\u30a6\u30f0\u30ce\u30aa\u30af\u30e4\u30de\u30b1\u30d5\u30b3\u30a8\u30c6\u30a2\u30b5\u30ad\u30e6\u30e1\u30df\u30b7\u30f1\u30d2\u30e2\u30bb\u30b9",i);case 34:return Ri(t,3792,3801,!0,n);case 37:return Ri(t,6160,6169,!0,n);case 38:return Ri(t,4160,4169,!0,n);case 39:return Ri(t,2918,2927,!0,n);case 40:return Ri(t,1776,1785,!0,n);case 43:return Ri(t,3046,3055,!0,n);case 44:return Ri(t,3174,3183,!0,n);case 45:return Ri(t,3664,3673,!0,n);case 46:return Ri(t,3872,3881,!0,n);case 3:default:return Ri(t,48,57,!0,n)}},Mi=function(){function t(t,e,r){if(this.context=t,this.options=r,this.scrolledElements=[],this.referenceElement=e,this.counters=new Ti,this.quoteDepth=0,!e.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(e.ownerDocument.documentElement,!1)}return t.prototype.toIFrame=function(t,e){var r=this,a=Ni(t,e);if(!a.contentWindow)return Promise.reject("Unable to find iframe window");var s=t.defaultView.pageXOffset,o=t.defaultView.pageYOffset,u=a.contentWindow,l=u.document,c=ji(a).then((function(){return n(r,void 0,void 0,(function(){var t,r;return i(this,(function(n){switch(n.label){case 0:return this.scrolledElements.forEach(zi),u&&(u.scrollTo(e.left,e.top),!/(iPad|iPhone|iPod)/g.test(navigator.userAgent)||u.scrollY===e.top&&u.scrollX===e.left||(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(u.scrollX-e.left,u.scrollY-e.top,0,0))),t=this.options.onclone,r=this.clonedReferenceElement,"undefined"===typeof r?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:l.fonts&&l.fonts.ready?[4,l.fonts.ready]:[3,2];case 1:n.sent(),n.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,$i(l)]:[3,4];case 3:n.sent(),n.label=4;case 4:return"function"===typeof t?[2,Promise.resolve().then((function(){return t(l,r)})).then((function(){return a}))]:[2,a]}}))}))}));return l.open(),l.write(Vi(document.doctype)+"<html></html>"),Wi(this.referenceElement.ownerDocument,s,o),l.replaceChild(l.adoptNode(this.documentElement),l.documentElement),l.close(),c},t.prototype.createElementClone=function(t){if(An(t,2),mi(t))return this.createCanvasClone(t);if(yi(t))return this.createVideoClone(t);if(_i(t))return this.createStyleClone(t);var e=t.cloneNode(!1);return wi(e)&&(wi(t)&&t.currentSrc&&t.currentSrc!==t.src&&(e.src=t.currentSrc,e.srcset=""),"lazy"===e.loading&&(e.loading="eager")),xi(e)?this.createCustomElementClone(e):e},t.prototype.createCustomElementClone=function(t){var e=document.createElement("html2canvascustomelement");return Gi(t.style,e),e},t.prototype.createStyleClone=function(t){try{var e=t.sheet;if(e&&e.cssRules){var r=[].slice.call(e.cssRules,0).reduce((function(t,e){return e&&"string"===typeof e.cssText?t+e.cssText:t}),""),n=t.cloneNode(!1);return n.textContent=r,n}}catch(i){if(this.context.logger.error("Unable to access cssRules property",i),"SecurityError"!==i.name)throw i}return t.cloneNode(!1)},t.prototype.createCanvasClone=function(t){var e;if(this.options.inlineImages&&t.ownerDocument){var r=t.ownerDocument.createElement("img");try{return r.src=t.toDataURL(),r}catch(u){this.context.logger.info("Unable to inline canvas contents, canvas is tainted",t)}}var n=t.cloneNode(!1);try{n.width=t.width,n.height=t.height;var i=t.getContext("2d"),a=n.getContext("2d");if(a)if(!this.options.allowTaint&&i)a.putImageData(i.getImageData(0,0,t.width,t.height),0,0);else{var s=null!==(e=t.getContext("webgl2"))&&void 0!==e?e:t.getContext("webgl");if(s){var o=s.getContextAttributes();!1===(null===o||void 0===o?void 0:o.preserveDrawingBuffer)&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",t)}a.drawImage(t,0,0)}return n}catch(u){this.context.logger.info("Unable to clone canvas as it is tainted",t)}return n},t.prototype.createVideoClone=function(t){var e=t.ownerDocument.createElement("canvas");e.width=t.offsetWidth,e.height=t.offsetHeight;var r=e.getContext("2d");try{return r&&(r.drawImage(t,0,0,e.width,e.height),this.options.allowTaint||r.getImageData(0,0,e.width,e.height)),e}catch(i){this.context.logger.info("Unable to clone video as it is tainted",t)}var n=t.ownerDocument.createElement("canvas");return n.width=t.offsetWidth,n.height=t.offsetHeight,n},t.prototype.appendChildNode=function(t,e,r){ci(e)&&(function(t){return"SCRIPT"===t.tagName}(e)||e.hasAttribute("data-html2canvas-ignore")||"function"===typeof this.options.ignoreElements&&this.options.ignoreElements(e))||this.options.copyStyles&&ci(e)&&_i(e)||t.appendChild(this.cloneNode(e,r))},t.prototype.cloneChildNodes=function(t,e,r){for(var n=this,i=t.shadowRoot?t.shadowRoot.firstChild:t.firstChild;i;i=i.nextSibling)if(ci(i)&&Ei(i)&&"function"===typeof i.assignedNodes){var a=i.assignedNodes();a.length&&a.forEach((function(t){return n.appendChildNode(e,t,r)}))}else this.appendChildNode(e,i,r)},t.prototype.cloneNode=function(t,e){if(li(t))return document.createTextNode(t.data);if(!t.ownerDocument)return t.cloneNode(!1);var r=t.ownerDocument.defaultView;if(r&&ci(t)&&(Ai(t)||di(t))){var n=this.createElementClone(t);n.style.transitionProperty="none";var i=r.getComputedStyle(t),a=r.getComputedStyle(t,":before"),s=r.getComputedStyle(t,":after");this.referenceElement===t&&Ai(n)&&(this.clonedReferenceElement=n),vi(n)&&Xi(n);var o=this.counters.parse(new ln(this.context,i)),u=this.resolvePseudoContent(t,n,a,bn.BEFORE);xi(t)&&(e=!0),yi(t)||this.cloneChildNodes(t,n,e),u&&n.insertBefore(u,n.firstChild);var l=this.resolvePseudoContent(t,n,s,bn.AFTER);return l&&n.appendChild(l),this.counters.pop(o),(i&&(this.options.copyStyles||di(t))&&!bi(t)||e)&&Gi(i,n),0===t.scrollTop&&0===t.scrollLeft||this.scrolledElements.push([n,t.scrollLeft,t.scrollTop]),(Bi(t)||Ci(t))&&(Bi(n)||Ci(n))&&(n.value=t.value),n}return t.cloneNode(!1)},t.prototype.resolvePseudoContent=function(t,e,r,n){var i=this;if(r){var a=r.content,s=e.ownerDocument;if(s&&a&&"none"!==a&&"-moz-alt-content"!==a&&"none"!==r.display){this.counters.parse(new ln(this.context,r));var o=new un(this.context,r),u=s.createElement("html2canvaspseudoelement");Gi(r,u),o.content.forEach((function(e){if(0===e.type)u.appendChild(s.createTextNode(e.value));else if(22===e.type){var r=s.createElement("img");r.src=e.value,r.style.opacity="1",u.appendChild(r)}else if(18===e.type){if("attr"===e.name){var n=e.values.filter(Ht);n.length&&u.appendChild(s.createTextNode(t.getAttribute(n[0].value)||""))}else if("counter"===e.name){var a=e.values.filter(Gt),l=a[0],c=a[1];if(l&&Ht(l)){var A=i.counters.getCounterValue(l.value),d=c&&Ht(c)?pr.parse(i.context,c.value):3;u.appendChild(s.createTextNode(Pi(A,d,!1)))}}else if("counters"===e.name){var f=e.values.filter(Gt),h=(l=f[0],f[1]);c=f[2];if(l&&Ht(l)){var p=i.counters.getCounterValues(l.value),g=c&&Ht(c)?pr.parse(i.context,c.value):3,v=h&&0===h.type?h.value:"",m=p.map((function(t){return Pi(t,g,!1)})).join(v);u.appendChild(s.createTextNode(m))}}}else if(20===e.type)switch(e.value){case"open-quote":u.appendChild(s.createTextNode(en(o.quotes,i.quoteDepth++,!0)));break;case"close-quote":u.appendChild(s.createTextNode(en(o.quotes,--i.quoteDepth,!1)));break;default:u.appendChild(s.createTextNode(e.value))}})),u.className=Yi+" "+qi;var l=n===bn.BEFORE?" "+Yi:" "+qi;return di(e)?e.className.baseValue+=l:e.className+=l,u}}},t.destroy=function(t){return!!t.parentNode&&(t.parentNode.removeChild(t),!0)},t}();(function(t){t[t["BEFORE"]=0]="BEFORE",t[t["AFTER"]=1]="AFTER"})(bn||(bn={}));var Qi,Ni=function(t,e){var r=t.createElement("iframe");return r.className="html2canvas-container",r.style.visibility="hidden",r.style.position="fixed",r.style.left="-10000px",r.style.top="0px",r.style.border="0",r.width=e.width.toString(),r.height=e.height.toString(),r.scrolling="no",r.setAttribute("data-html2canvas-ignore","true"),t.body.appendChild(r),r},Hi=function(t){return new Promise((function(e){t.complete?e():t.src?(t.onload=e,t.onerror=e):e()}))},$i=function(t){return Promise.all([].slice.call(t.images,0).map(Hi))},ji=function(t){return new Promise((function(e,r){var n=t.contentWindow;if(!n)return r("No window assigned for iframe");var i=n.document;n.onload=t.onload=function(){n.onload=t.onload=null;var r=setInterval((function(){i.body.childNodes.length>0&&"complete"===i.readyState&&(clearInterval(r),e(t))}),50)}}))},Ki=["all","d","content"],Gi=function(t,e){for(var r=t.length-1;r>=0;r--){var n=t.item(r);-1===Ki.indexOf(n)&&e.style.setProperty(n,t.getPropertyValue(n))}return e},Vi=function(t){var e="";return t&&(e+="<!DOCTYPE ",t.name&&(e+=t.name),t.internalSubset&&(e+=t.internalSubset),t.publicId&&(e+='"'+t.publicId+'"'),t.systemId&&(e+='"'+t.systemId+'"'),e+=">"),e},Wi=function(t,e,r){t&&t.defaultView&&(e!==t.defaultView.pageXOffset||r!==t.defaultView.pageYOffset)&&t.defaultView.scrollTo(e,r)},zi=function(t){var e=t[0],r=t[1],n=t[2];e.scrollLeft=r,e.scrollTop=n},Yi="___html2canvas___pseudoelement_before",qi="___html2canvas___pseudoelement_after",Xi=function(t){Ji(t,"."+Yi+':before{\n    content: "" !important;\n    display: none !important;\n}\n         .'+qi+':after{\n    content: "" !important;\n    display: none !important;\n}')},Ji=function(t,e){var r=t.ownerDocument;if(r){var n=r.createElement("style");n.textContent=e,t.appendChild(n)}},Zi=function(){function t(){}return t.getOrigin=function(e){var r=t._link;return r?(r.href=e,r.href=r.href,r.protocol+r.hostname+r.port):"about:blank"},t.isSameOrigin=function(e){return t.getOrigin(e)===t._origin},t.setContext=function(e){t._link=e.document.createElement("a"),t._origin=t.getOrigin(e.location.href)},t._origin="about:blank",t}(),ta=function(){function t(t,e){this.context=t,this._options=e,this._cache={}}return t.prototype.addImage=function(t){var e=Promise.resolve();return this.has(t)?e:oa(t)||ia(t)?((this._cache[t]=this.loadImage(t)).catch((function(){})),e):e},t.prototype.match=function(t){return this._cache[t]},t.prototype.loadImage=function(t){return n(this,void 0,void 0,(function(){var e,r,n,a,s=this;return i(this,(function(i){switch(i.label){case 0:return e=Zi.isSameOrigin(t),r=!aa(t)&&!0===this._options.useCORS&&Rn.SUPPORT_CORS_IMAGES&&!e,n=!aa(t)&&!e&&!oa(t)&&"string"===typeof this._options.proxy&&Rn.SUPPORT_CORS_XHR&&!r,e||!1!==this._options.allowTaint||aa(t)||oa(t)||n||r?(a=t,n?[4,this.proxy(a)]:[3,2]):[2];case 1:a=i.sent(),i.label=2;case 2:return this.context.logger.debug("Added image "+t.substring(0,256)),[4,new Promise((function(t,e){var n=new Image;n.onload=function(){return t(n)},n.onerror=e,(sa(a)||r)&&(n.crossOrigin="anonymous"),n.src=a,!0===n.complete&&setTimeout((function(){return t(n)}),500),s._options.imageTimeout>0&&setTimeout((function(){return e("Timed out ("+s._options.imageTimeout+"ms) loading image")}),s._options.imageTimeout)}))];case 3:return[2,i.sent()]}}))}))},t.prototype.has=function(t){return"undefined"!==typeof this._cache[t]},t.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},t.prototype.proxy=function(t){var e=this,r=this._options.proxy;if(!r)throw new Error("No proxy defined");var n=t.substring(0,256);return new Promise((function(i,a){var s=Rn.SUPPORT_RESPONSE_TYPE?"blob":"text",o=new XMLHttpRequest;o.onload=function(){if(200===o.status)if("text"===s)i(o.response);else{var t=new FileReader;t.addEventListener("load",(function(){return i(t.result)}),!1),t.addEventListener("error",(function(t){return a(t)}),!1),t.readAsDataURL(o.response)}else a("Failed to proxy resource "+n+" with status code "+o.status)},o.onerror=a;var u=r.indexOf("?")>-1?"&":"?";if(o.open("GET",""+r+u+"url="+encodeURIComponent(t)+"&responseType="+s),"text"!==s&&o instanceof XMLHttpRequest&&(o.responseType=s),e._options.imageTimeout){var l=e._options.imageTimeout;o.timeout=l,o.ontimeout=function(){return a("Timed out ("+l+"ms) proxying "+n)}}o.send()}))},t}(),ea=/^data:image\/svg\+xml/i,ra=/^data:image\/.*;base64,/i,na=/^data:image\/.*/i,ia=function(t){return Rn.SUPPORT_SVG_DRAWING||!ua(t)},aa=function(t){return na.test(t)},sa=function(t){return ra.test(t)},oa=function(t){return"blob"===t.substr(0,4)},ua=function(t){return"svg"===t.substr(-3).toLowerCase()||ea.test(t)},la=function(){function t(t,e){this.type=0,this.x=t,this.y=e}return t.prototype.add=function(e,r){return new t(this.x+e,this.y+r)},t}(),ca=function(t,e,r){return new la(t.x+(e.x-t.x)*r,t.y+(e.y-t.y)*r)},Aa=function(){function t(t,e,r,n){this.type=1,this.start=t,this.startControl=e,this.endControl=r,this.end=n}return t.prototype.subdivide=function(e,r){var n=ca(this.start,this.startControl,e),i=ca(this.startControl,this.endControl,e),a=ca(this.endControl,this.end,e),s=ca(n,i,e),o=ca(i,a,e),u=ca(s,o,e);return r?new t(this.start,n,s,u):new t(u,o,a,this.end)},t.prototype.add=function(e,r){return new t(this.start.add(e,r),this.startControl.add(e,r),this.endControl.add(e,r),this.end.add(e,r))},t.prototype.reverse=function(){return new t(this.end,this.endControl,this.startControl,this.start)},t}(),da=function(t){return 1===t.type},fa=function(){return function(t){var e=t.styles,r=t.bounds,n=te(e.borderTopLeftRadius,r.width,r.height),i=n[0],a=n[1],s=te(e.borderTopRightRadius,r.width,r.height),o=s[0],u=s[1],l=te(e.borderBottomRightRadius,r.width,r.height),c=l[0],A=l[1],d=te(e.borderBottomLeftRadius,r.width,r.height),f=d[0],h=d[1],p=[];p.push((i+o)/r.width),p.push((f+c)/r.width),p.push((a+h)/r.height),p.push((u+A)/r.height);var g=Math.max.apply(Math,p);g>1&&(i/=g,a/=g,o/=g,u/=g,c/=g,A/=g,f/=g,h/=g);var v=r.width-o,m=r.height-A,y=r.width-c,w=r.height-h,b=e.borderTopWidth,_=e.borderRightWidth,B=e.borderBottomWidth,C=e.borderLeftWidth,E=ee(e.paddingTop,t.bounds.width),x=ee(e.paddingRight,t.bounds.width),T=ee(e.paddingBottom,t.bounds.width),S=ee(e.paddingLeft,t.bounds.width);this.topLeftBorderDoubleOuterBox=i>0||a>0?ha(r.left+C/3,r.top+b/3,i-C/3,a-b/3,Qi.TOP_LEFT):new la(r.left+C/3,r.top+b/3),this.topRightBorderDoubleOuterBox=i>0||a>0?ha(r.left+v,r.top+b/3,o-_/3,u-b/3,Qi.TOP_RIGHT):new la(r.left+r.width-_/3,r.top+b/3),this.bottomRightBorderDoubleOuterBox=c>0||A>0?ha(r.left+y,r.top+m,c-_/3,A-B/3,Qi.BOTTOM_RIGHT):new la(r.left+r.width-_/3,r.top+r.height-B/3),this.bottomLeftBorderDoubleOuterBox=f>0||h>0?ha(r.left+C/3,r.top+w,f-C/3,h-B/3,Qi.BOTTOM_LEFT):new la(r.left+C/3,r.top+r.height-B/3),this.topLeftBorderDoubleInnerBox=i>0||a>0?ha(r.left+2*C/3,r.top+2*b/3,i-2*C/3,a-2*b/3,Qi.TOP_LEFT):new la(r.left+2*C/3,r.top+2*b/3),this.topRightBorderDoubleInnerBox=i>0||a>0?ha(r.left+v,r.top+2*b/3,o-2*_/3,u-2*b/3,Qi.TOP_RIGHT):new la(r.left+r.width-2*_/3,r.top+2*b/3),this.bottomRightBorderDoubleInnerBox=c>0||A>0?ha(r.left+y,r.top+m,c-2*_/3,A-2*B/3,Qi.BOTTOM_RIGHT):new la(r.left+r.width-2*_/3,r.top+r.height-2*B/3),this.bottomLeftBorderDoubleInnerBox=f>0||h>0?ha(r.left+2*C/3,r.top+w,f-2*C/3,h-2*B/3,Qi.BOTTOM_LEFT):new la(r.left+2*C/3,r.top+r.height-2*B/3),this.topLeftBorderStroke=i>0||a>0?ha(r.left+C/2,r.top+b/2,i-C/2,a-b/2,Qi.TOP_LEFT):new la(r.left+C/2,r.top+b/2),this.topRightBorderStroke=i>0||a>0?ha(r.left+v,r.top+b/2,o-_/2,u-b/2,Qi.TOP_RIGHT):new la(r.left+r.width-_/2,r.top+b/2),this.bottomRightBorderStroke=c>0||A>0?ha(r.left+y,r.top+m,c-_/2,A-B/2,Qi.BOTTOM_RIGHT):new la(r.left+r.width-_/2,r.top+r.height-B/2),this.bottomLeftBorderStroke=f>0||h>0?ha(r.left+C/2,r.top+w,f-C/2,h-B/2,Qi.BOTTOM_LEFT):new la(r.left+C/2,r.top+r.height-B/2),this.topLeftBorderBox=i>0||a>0?ha(r.left,r.top,i,a,Qi.TOP_LEFT):new la(r.left,r.top),this.topRightBorderBox=o>0||u>0?ha(r.left+v,r.top,o,u,Qi.TOP_RIGHT):new la(r.left+r.width,r.top),this.bottomRightBorderBox=c>0||A>0?ha(r.left+y,r.top+m,c,A,Qi.BOTTOM_RIGHT):new la(r.left+r.width,r.top+r.height),this.bottomLeftBorderBox=f>0||h>0?ha(r.left,r.top+w,f,h,Qi.BOTTOM_LEFT):new la(r.left,r.top+r.height),this.topLeftPaddingBox=i>0||a>0?ha(r.left+C,r.top+b,Math.max(0,i-C),Math.max(0,a-b),Qi.TOP_LEFT):new la(r.left+C,r.top+b),this.topRightPaddingBox=o>0||u>0?ha(r.left+Math.min(v,r.width-_),r.top+b,v>r.width+_?0:Math.max(0,o-_),Math.max(0,u-b),Qi.TOP_RIGHT):new la(r.left+r.width-_,r.top+b),this.bottomRightPaddingBox=c>0||A>0?ha(r.left+Math.min(y,r.width-C),r.top+Math.min(m,r.height-B),Math.max(0,c-_),Math.max(0,A-B),Qi.BOTTOM_RIGHT):new la(r.left+r.width-_,r.top+r.height-B),this.bottomLeftPaddingBox=f>0||h>0?ha(r.left+C,r.top+Math.min(w,r.height-B),Math.max(0,f-C),Math.max(0,h-B),Qi.BOTTOM_LEFT):new la(r.left+C,r.top+r.height-B),this.topLeftContentBox=i>0||a>0?ha(r.left+C+S,r.top+b+E,Math.max(0,i-(C+S)),Math.max(0,a-(b+E)),Qi.TOP_LEFT):new la(r.left+C+S,r.top+b+E),this.topRightContentBox=o>0||u>0?ha(r.left+Math.min(v,r.width+C+S),r.top+b+E,v>r.width+C+S?0:o-C+S,u-(b+E),Qi.TOP_RIGHT):new la(r.left+r.width-(_+x),r.top+b+E),this.bottomRightContentBox=c>0||A>0?ha(r.left+Math.min(y,r.width-(C+S)),r.top+Math.min(m,r.height+b+E),Math.max(0,c-(_+x)),A-(B+T),Qi.BOTTOM_RIGHT):new la(r.left+r.width-(_+x),r.top+r.height-(B+T)),this.bottomLeftContentBox=f>0||h>0?ha(r.left+C+S,r.top+w,Math.max(0,f-(C+S)),h-(B+T),Qi.BOTTOM_LEFT):new la(r.left+C+S,r.top+r.height-(B+T))}}();(function(t){t[t["TOP_LEFT"]=0]="TOP_LEFT",t[t["TOP_RIGHT"]=1]="TOP_RIGHT",t[t["BOTTOM_RIGHT"]=2]="BOTTOM_RIGHT",t[t["BOTTOM_LEFT"]=3]="BOTTOM_LEFT"})(Qi||(Qi={}));var ha=function(t,e,r,n,i){var a=(Math.sqrt(2)-1)/3*4,s=r*a,o=n*a,u=t+r,l=e+n;switch(i){case Qi.TOP_LEFT:return new Aa(new la(t,l),new la(t,l-o),new la(u-s,e),new la(u,e));case Qi.TOP_RIGHT:return new Aa(new la(t,e),new la(t+s,e),new la(u,l-o),new la(u,l));case Qi.BOTTOM_RIGHT:return new Aa(new la(u,e),new la(u,e+o),new la(t+s,l),new la(t,l));case Qi.BOTTOM_LEFT:default:return new Aa(new la(u,l),new la(u-s,l),new la(t,e+o),new la(t,e))}},pa=function(t){return[t.topLeftBorderBox,t.topRightBorderBox,t.bottomRightBorderBox,t.bottomLeftBorderBox]},ga=function(t){return[t.topLeftPaddingBox,t.topRightPaddingBox,t.bottomRightPaddingBox,t.bottomLeftPaddingBox]},va=function(){return function(t,e,r){this.offsetX=t,this.offsetY=e,this.matrix=r,this.type=0,this.target=6}}(),ma=function(){return function(t,e){this.path=t,this.target=e,this.type=1}}(),ya=function(){return function(t){this.opacity=t,this.type=2,this.target=6}}(),wa=function(t){return 1===t.type},ba=function(t,e){return t.length===e.length&&t.some((function(t,r){return t===e[r]}))},_a=function(){return function(t){this.element=t,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}}(),Ba=function(){function t(t,e){if(this.container=t,this.parent=e,this.effects=[],this.curves=new fa(this.container),this.container.styles.opacity<1&&this.effects.push(new ya(this.container.styles.opacity)),null!==this.container.styles.transform){var r=this.container.bounds.left+this.container.styles.transformOrigin[0].number,n=this.container.bounds.top+this.container.styles.transformOrigin[1].number,i=this.container.styles.transform;this.effects.push(new va(r,n,i))}if(0!==this.container.styles.overflowX){var a=pa(this.curves),s=ga(this.curves);ba(a,s)?this.effects.push(new ma(a,6)):(this.effects.push(new ma(a,2)),this.effects.push(new ma(s,4)))}}return t.prototype.getEffects=function(t){var e=-1===[2,3].indexOf(this.container.styles.position),r=this.parent,n=this.effects.slice(0);while(r){var i=r.effects.filter((function(t){return!wa(t)}));if(e||0!==r.container.styles.position||!r.parent){if(n.unshift.apply(n,i),e=-1===[2,3].indexOf(r.container.styles.position),0!==r.container.styles.overflowX){var a=pa(r.curves),s=ga(r.curves);ba(a,s)||n.unshift(new ma(s,6))}}else n.unshift.apply(n,i);r=r.parent}return n.filter((function(e){return Yr(e.target,t)}))},t}(),Ca=function(t,e){for(var r=t instanceof qn?t.start:1,n=t instanceof qn&&t.reversed,i=0;i<e.length;i++){var a=e[i];a.container instanceof Yn&&"number"===typeof a.container.value&&0!==a.container.value&&(r=a.container.value),a.listValue=Pi(r,a.container.styles.listStyleType,!0),r+=n?-1:1}},Ea=function(t){var e=new Ba(t,null),r=new _a(e),n=[];return function t(e,r,n,i){e.container.elements.forEach((function(a){var s=Yr(a.flags,4),o=Yr(a.flags,2),u=new Ba(a,e);Yr(a.styles.display,2048)&&i.push(u);var l=Yr(a.flags,8)?[]:i;if(s||o){var c=s||a.styles.isPositioned()?n:r,A=new _a(u);if(a.styles.isPositioned()||a.styles.opacity<1||a.styles.isTransformed()){var d=a.styles.zIndex.order;if(d<0){var f=0;c.negativeZIndex.some((function(t,e){return d>t.element.container.styles.zIndex.order?(f=e,!1):f>0})),c.negativeZIndex.splice(f,0,A)}else if(d>0){var h=0;c.positiveZIndex.some((function(t,e){return d>=t.element.container.styles.zIndex.order?(h=e+1,!1):h>0})),c.positiveZIndex.splice(h,0,A)}else c.zeroOrAutoZIndexOrTransformedOrOpacity.push(A)}else a.styles.isFloating()?c.nonPositionedFloats.push(A):c.nonPositionedInlineLevel.push(A);t(u,A,s?A:n,l)}else a.styles.isInlineLevel()?r.inlineLevel.push(u):r.nonInlineLevel.push(u),t(u,r,n,l);Yr(a.flags,8)&&Ca(a,l)}))}(e,r,r,n),Ca(e.container,n),r},xa=function(t,e){switch(e){case 0:return Sa(t.topLeftBorderBox,t.topLeftPaddingBox,t.topRightBorderBox,t.topRightPaddingBox);case 1:return Sa(t.topRightBorderBox,t.topRightPaddingBox,t.bottomRightBorderBox,t.bottomRightPaddingBox);case 2:return Sa(t.bottomRightBorderBox,t.bottomRightPaddingBox,t.bottomLeftBorderBox,t.bottomLeftPaddingBox);case 3:default:return Sa(t.bottomLeftBorderBox,t.bottomLeftPaddingBox,t.topLeftBorderBox,t.topLeftPaddingBox)}},Ta=function(t,e){var r=[];return da(t)?r.push(t.subdivide(.5,!1)):r.push(t),da(e)?r.push(e.subdivide(.5,!0)):r.push(e),r},Sa=function(t,e,r,n){var i=[];return da(t)?i.push(t.subdivide(.5,!1)):i.push(t),da(r)?i.push(r.subdivide(.5,!0)):i.push(r),da(n)?i.push(n.subdivide(.5,!0).reverse()):i.push(n),da(e)?i.push(e.subdivide(.5,!1).reverse()):i.push(e),i},ka=function(t){var e=t.bounds,r=t.styles;return e.add(r.borderLeftWidth,r.borderTopWidth,-(r.borderRightWidth+r.borderLeftWidth),-(r.borderTopWidth+r.borderBottomWidth))},Ia=function(t){var e=t.styles,r=t.bounds,n=ee(e.paddingLeft,r.width),i=ee(e.paddingRight,r.width),a=ee(e.paddingTop,r.width),s=ee(e.paddingBottom,r.width);return r.add(n+e.borderLeftWidth,a+e.borderTopWidth,-(e.borderRightWidth+e.borderLeftWidth+n+i),-(e.borderTopWidth+e.borderBottomWidth+a+s))},Fa=function(t,e,r){var n=function(t,e){return 0===t?e.bounds:2===t?Ia(e):ka(e)}(Ua(t.styles.backgroundOrigin,e),t),i=function(t,e){return 0===t?e.bounds:2===t?Ia(e):ka(e)}(Ua(t.styles.backgroundClip,e),t),a=Ra(Ua(t.styles.backgroundSize,e),r,n),s=a[0],o=a[1],u=te(Ua(t.styles.backgroundPosition,e),n.width-s,n.height-o),l=Oa(Ua(t.styles.backgroundRepeat,e),u,a,n,i),c=Math.round(n.left+u[0]),A=Math.round(n.top+u[1]);return[l,c,A,s,o]},La=function(t){return Ht(t)&&t.value===Te.AUTO},Da=function(t){return"number"===typeof t},Ra=function(t,e,r){var n=e[0],i=e[1],a=e[2],s=t[0],o=t[1];if(!s)return[0,0];if(Yt(s)&&o&&Yt(o))return[ee(s,r.width),ee(o,r.height)];var u=Da(a);if(Ht(s)&&(s.value===Te.CONTAIN||s.value===Te.COVER)){if(Da(a)){var l=r.width/r.height;return l<a!==(s.value===Te.COVER)?[r.width,r.width/a]:[r.height*a,r.height]}return[r.width,r.height]}var c=Da(n),A=Da(i),d=c||A;if(La(s)&&(!o||La(o))){if(c&&A)return[n,i];if(!u&&!d)return[r.width,r.height];if(d&&u){var f=c?n:i*a,h=A?i:n/a;return[f,h]}var p=c?n:r.width,g=A?i:r.height;return[p,g]}if(u){var v=0,m=0;return Yt(s)?v=ee(s,r.width):Yt(o)&&(m=ee(o,r.height)),La(s)?v=m*a:o&&!La(o)||(m=v/a),[v,m]}var y=null,w=null;if(Yt(s)?y=ee(s,r.width):o&&Yt(o)&&(w=ee(o,r.height)),null===y||o&&!La(o)||(w=c&&A?y/n*i:r.height),null!==w&&La(s)&&(y=c&&A?w/i*n:r.width),null!==y&&null!==w)return[y,w];throw new Error("Unable to calculate background-size for element")},Ua=function(t,e){var r=t[e];return"undefined"===typeof r?t[0]:r},Oa=function(t,e,r,n,i){var a=e[0],s=e[1],o=r[0],u=r[1];switch(t){case 2:return[new la(Math.round(n.left),Math.round(n.top+s)),new la(Math.round(n.left+n.width),Math.round(n.top+s)),new la(Math.round(n.left+n.width),Math.round(u+n.top+s)),new la(Math.round(n.left),Math.round(u+n.top+s))];case 3:return[new la(Math.round(n.left+a),Math.round(n.top)),new la(Math.round(n.left+a+o),Math.round(n.top)),new la(Math.round(n.left+a+o),Math.round(n.height+n.top)),new la(Math.round(n.left+a),Math.round(n.height+n.top))];case 1:return[new la(Math.round(n.left+a),Math.round(n.top+s)),new la(Math.round(n.left+a+o),Math.round(n.top+s)),new la(Math.round(n.left+a+o),Math.round(n.top+s+u)),new la(Math.round(n.left+a),Math.round(n.top+s+u))];default:return[new la(Math.round(i.left),Math.round(i.top)),new la(Math.round(i.left+i.width),Math.round(i.top)),new la(Math.round(i.left+i.width),Math.round(i.height+i.top)),new la(Math.round(i.left),Math.round(i.height+i.top))]}},Pa=function(){function t(t){this._data={},this._document=t}return t.prototype.parseMetrics=function(t,e){var r=this._document.createElement("div"),n=this._document.createElement("img"),i=this._document.createElement("span"),a=this._document.body;r.style.visibility="hidden",r.style.fontFamily=t,r.style.fontSize=e,r.style.margin="0",r.style.padding="0",r.style.whiteSpace="nowrap",a.appendChild(r),n.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",n.width=1,n.height=1,n.style.margin="0",n.style.padding="0",n.style.verticalAlign="baseline",i.style.fontFamily=t,i.style.fontSize=e,i.style.margin="0",i.style.padding="0",i.appendChild(this._document.createTextNode("Hidden Text")),r.appendChild(i),r.appendChild(n);var s=n.offsetTop-i.offsetTop+2;r.removeChild(i),r.appendChild(this._document.createTextNode("Hidden Text")),r.style.lineHeight="normal",n.style.verticalAlign="super";var o=n.offsetTop-r.offsetTop+2;return a.removeChild(r),{baseline:s,middle:o}},t.prototype.getMetrics=function(t,e){var r=t+" "+e;return"undefined"===typeof this._data[r]&&(this._data[r]=this.parseMetrics(t,e)),this._data[r]},t}(),Ma=function(){return function(t,e){this.context=t,this.options=e}}(),Qa=function(t){function r(e,r){var n=t.call(this,e,r)||this;return n._activeEffects=[],n.canvas=r.canvas?r.canvas:document.createElement("canvas"),n.ctx=n.canvas.getContext("2d"),r.canvas||(n.canvas.width=Math.floor(r.width*r.scale),n.canvas.height=Math.floor(r.height*r.scale),n.canvas.style.width=r.width+"px",n.canvas.style.height=r.height+"px"),n.fontMetrics=new Pa(document),n.ctx.scale(n.options.scale,n.options.scale),n.ctx.translate(-r.x,-r.y),n.ctx.textBaseline="bottom",n._activeEffects=[],n.context.logger.debug("Canvas renderer initialized ("+r.width+"x"+r.height+") with scale "+r.scale),n}return e(r,t),r.prototype.applyEffects=function(t){var e=this;while(this._activeEffects.length)this.popEffect();t.forEach((function(t){return e.applyEffect(t)}))},r.prototype.applyEffect=function(t){this.ctx.save(),function(t){return 2===t.type}(t)&&(this.ctx.globalAlpha=t.opacity),function(t){return 0===t.type}(t)&&(this.ctx.translate(t.offsetX,t.offsetY),this.ctx.transform(t.matrix[0],t.matrix[1],t.matrix[2],t.matrix[3],t.matrix[4],t.matrix[5]),this.ctx.translate(-t.offsetX,-t.offsetY)),wa(t)&&(this.path(t.path),this.ctx.clip()),this._activeEffects.push(t)},r.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},r.prototype.renderStack=function(t){return n(this,void 0,void 0,(function(){var e;return i(this,(function(r){switch(r.label){case 0:return e=t.element.container.styles,e.isVisible()?[4,this.renderStackContent(t)]:[3,2];case 1:r.sent(),r.label=2;case 2:return[2]}}))}))},r.prototype.renderNode=function(t){return n(this,void 0,void 0,(function(){return i(this,(function(e){switch(e.label){case 0:return Yr(t.container.flags,16),t.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(t)]:[3,3];case 1:return e.sent(),[4,this.renderNodeContent(t)];case 2:e.sent(),e.label=3;case 3:return[2]}}))}))},r.prototype.renderTextWithLetterSpacing=function(t,e,r){var n=this;if(0===e)this.ctx.fillText(t.text,t.bounds.left,t.bounds.top+r);else{var i=Mn(t.text);i.reduce((function(e,i){return n.ctx.fillText(i,e,t.bounds.top+r),e+n.ctx.measureText(i).width}),t.bounds.left)}},r.prototype.createFontStyle=function(t){var e=t.fontVariant.filter((function(t){return"normal"===t||"small-caps"===t})).join(""),r=Ka(t.fontFamily).join(", "),n=Qt(t.fontSize)?""+t.fontSize.number+t.fontSize.unit:t.fontSize.number+"px";return[[t.fontStyle,e,t.fontWeight,n,r].join(" "),r,n]},r.prototype.renderTextNode=function(t,e){return n(this,void 0,void 0,(function(){var r,n,a,s,o,u,l,c,A=this;return i(this,(function(i){return r=this.createFontStyle(e),n=r[0],a=r[1],s=r[2],this.ctx.font=n,this.ctx.direction=1===e.direction?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",o=this.fontMetrics.getMetrics(a,s),u=o.baseline,l=o.middle,c=e.paintOrder,t.textBounds.forEach((function(t){c.forEach((function(r){switch(r){case 0:A.ctx.fillStyle=ue(e.color),A.renderTextWithLetterSpacing(t,e.letterSpacing,u);var n=e.textShadow;n.length&&t.text.trim().length&&(n.slice(0).reverse().forEach((function(r){A.ctx.shadowColor=ue(r.color),A.ctx.shadowOffsetX=r.offsetX.number*A.options.scale,A.ctx.shadowOffsetY=r.offsetY.number*A.options.scale,A.ctx.shadowBlur=r.blur.number,A.renderTextWithLetterSpacing(t,e.letterSpacing,u)})),A.ctx.shadowColor="",A.ctx.shadowOffsetX=0,A.ctx.shadowOffsetY=0,A.ctx.shadowBlur=0),e.textDecorationLine.length&&(A.ctx.fillStyle=ue(e.textDecorationColor||e.color),e.textDecorationLine.forEach((function(e){switch(e){case 1:A.ctx.fillRect(t.bounds.left,Math.round(t.bounds.top+u),t.bounds.width,1);break;case 2:A.ctx.fillRect(t.bounds.left,Math.round(t.bounds.top),t.bounds.width,1);break;case 3:A.ctx.fillRect(t.bounds.left,Math.ceil(t.bounds.top+l),t.bounds.width,1);break}})));break;case 1:e.webkitTextStrokeWidth&&t.text.trim().length&&(A.ctx.strokeStyle=ue(e.webkitTextStrokeColor),A.ctx.lineWidth=e.webkitTextStrokeWidth,A.ctx.lineJoin=window.chrome?"miter":"round",A.ctx.strokeText(t.text,t.bounds.left,t.bounds.top+u)),A.ctx.strokeStyle="",A.ctx.lineWidth=0,A.ctx.lineJoin="miter";break}}))})),[2]}))}))},r.prototype.renderReplacedElement=function(t,e,r){if(r&&t.intrinsicWidth>0&&t.intrinsicHeight>0){var n=Ia(t),i=ga(e);this.path(i),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(r,0,0,t.intrinsicWidth,t.intrinsicHeight,n.left,n.top,n.width,n.height),this.ctx.restore()}},r.prototype.renderNodeContent=function(t){return n(this,void 0,void 0,(function(){var e,n,a,s,u,l,c,A,d,f,h,p,g,v,m,y,w,b,_;return i(this,(function(i){switch(i.label){case 0:this.applyEffects(t.getEffects(4)),e=t.container,n=t.curves,a=e.styles,s=0,u=e.textNodes,i.label=1;case 1:return s<u.length?(l=u[s],[4,this.renderTextNode(l,a)]):[3,4];case 2:i.sent(),i.label=3;case 3:return s++,[3,1];case 4:if(!(e instanceof Vn))return[3,8];i.label=5;case 5:return i.trys.push([5,7,,8]),[4,this.context.cache.match(e.src)];case 6:return y=i.sent(),this.renderReplacedElement(e,n,y),[3,8];case 7:return i.sent(),this.context.logger.error("Error loading image "+e.src),[3,8];case 8:if(e instanceof Wn&&this.renderReplacedElement(e,n,e.canvas),!(e instanceof zn))return[3,12];i.label=9;case 9:return i.trys.push([9,11,,12]),[4,this.context.cache.match(e.svg)];case 10:return y=i.sent(),this.renderReplacedElement(e,n,y),[3,12];case 11:return i.sent(),this.context.logger.error("Error loading svg "+e.svg.substring(0,255)),[3,12];case 12:return e instanceof ni&&e.tree?(c=new r(this.context,{scale:this.options.scale,backgroundColor:e.backgroundColor,x:0,y:0,width:e.width,height:e.height}),[4,c.render(e.tree)]):[3,14];case 13:A=i.sent(),e.width&&e.height&&this.ctx.drawImage(A,0,0,e.width,e.height,e.bounds.left,e.bounds.top,e.bounds.width,e.bounds.height),i.label=14;case 14:if(e instanceof ti&&(d=Math.min(e.bounds.width,e.bounds.height),"checkbox"===e.type?e.checked&&(this.ctx.save(),this.path([new la(e.bounds.left+.39363*d,e.bounds.top+.79*d),new la(e.bounds.left+.16*d,e.bounds.top+.5549*d),new la(e.bounds.left+.27347*d,e.bounds.top+.44071*d),new la(e.bounds.left+.39694*d,e.bounds.top+.5649*d),new la(e.bounds.left+.72983*d,e.bounds.top+.23*d),new la(e.bounds.left+.84*d,e.bounds.top+.34085*d),new la(e.bounds.left+.39363*d,e.bounds.top+.79*d)]),this.ctx.fillStyle=ue(707406591),this.ctx.fill(),this.ctx.restore()):"radio"===e.type&&e.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(e.bounds.left+d/2,e.bounds.top+d/2,d/4,0,2*Math.PI,!0),this.ctx.fillStyle=ue(707406591),this.ctx.fill(),this.ctx.restore())),Na(e)&&e.value.length){switch(f=this.createFontStyle(a),b=f[0],h=f[1],p=this.fontMetrics.getMetrics(b,h).baseline,this.ctx.font=b,this.ctx.fillStyle=ue(a.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=$a(e.styles.textAlign),_=Ia(e),g=0,e.styles.textAlign){case 1:g+=_.width/2;break;case 2:g+=_.width;break}v=_.add(g,0,0,-_.height/2+1),this.ctx.save(),this.path([new la(_.left,_.top),new la(_.left+_.width,_.top),new la(_.left+_.width,_.top+_.height),new la(_.left,_.top+_.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new Un(e.value,v),a.letterSpacing,p),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!Yr(e.styles.display,2048))return[3,20];if(null===e.styles.listStyleImage)return[3,19];if(m=e.styles.listStyleImage,0!==m.type)return[3,18];y=void 0,w=m.url,i.label=15;case 15:return i.trys.push([15,17,,18]),[4,this.context.cache.match(w)];case 16:return y=i.sent(),this.ctx.drawImage(y,e.bounds.left-(y.width+10),e.bounds.top),[3,18];case 17:return i.sent(),this.context.logger.error("Error loading list-style-image "+w),[3,18];case 18:return[3,20];case 19:t.listValue&&-1!==e.styles.listStyleType&&(b=this.createFontStyle(a)[0],this.ctx.font=b,this.ctx.fillStyle=ue(a.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",_=new o(e.bounds.left,e.bounds.top+ee(e.styles.paddingTop,e.bounds.width),e.bounds.width,dr(a.lineHeight,a.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new Un(t.listValue,_),a.letterSpacing,dr(a.lineHeight,a.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),i.label=20;case 20:return[2]}}))}))},r.prototype.renderStackContent=function(t){return n(this,void 0,void 0,(function(){var e,r,n,a,s,o,u,l,c,A,d,f,h,p,g;return i(this,(function(i){switch(i.label){case 0:return Yr(t.element.container.flags,16),[4,this.renderNodeBackgroundAndBorders(t.element)];case 1:i.sent(),e=0,r=t.negativeZIndex,i.label=2;case 2:return e<r.length?(g=r[e],[4,this.renderStack(g)]):[3,5];case 3:i.sent(),i.label=4;case 4:return e++,[3,2];case 5:return[4,this.renderNodeContent(t.element)];case 6:i.sent(),n=0,a=t.nonInlineLevel,i.label=7;case 7:return n<a.length?(g=a[n],[4,this.renderNode(g)]):[3,10];case 8:i.sent(),i.label=9;case 9:return n++,[3,7];case 10:s=0,o=t.nonPositionedFloats,i.label=11;case 11:return s<o.length?(g=o[s],[4,this.renderStack(g)]):[3,14];case 12:i.sent(),i.label=13;case 13:return s++,[3,11];case 14:u=0,l=t.nonPositionedInlineLevel,i.label=15;case 15:return u<l.length?(g=l[u],[4,this.renderStack(g)]):[3,18];case 16:i.sent(),i.label=17;case 17:return u++,[3,15];case 18:c=0,A=t.inlineLevel,i.label=19;case 19:return c<A.length?(g=A[c],[4,this.renderNode(g)]):[3,22];case 20:i.sent(),i.label=21;case 21:return c++,[3,19];case 22:d=0,f=t.zeroOrAutoZIndexOrTransformedOrOpacity,i.label=23;case 23:return d<f.length?(g=f[d],[4,this.renderStack(g)]):[3,26];case 24:i.sent(),i.label=25;case 25:return d++,[3,23];case 26:h=0,p=t.positiveZIndex,i.label=27;case 27:return h<p.length?(g=p[h],[4,this.renderStack(g)]):[3,30];case 28:i.sent(),i.label=29;case 29:return h++,[3,27];case 30:return[2]}}))}))},r.prototype.mask=function(t){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(t.slice(0).reverse()),this.ctx.closePath()},r.prototype.path=function(t){this.ctx.beginPath(),this.formatPath(t),this.ctx.closePath()},r.prototype.formatPath=function(t){var e=this;t.forEach((function(t,r){var n=da(t)?t.start:t;0===r?e.ctx.moveTo(n.x,n.y):e.ctx.lineTo(n.x,n.y),da(t)&&e.ctx.bezierCurveTo(t.startControl.x,t.startControl.y,t.endControl.x,t.endControl.y,t.end.x,t.end.y)}))},r.prototype.renderRepeat=function(t,e,r,n){this.path(t),this.ctx.fillStyle=e,this.ctx.translate(r,n),this.ctx.fill(),this.ctx.translate(-r,-n)},r.prototype.resizeImage=function(t,e,r){var n;if(t.width===e&&t.height===r)return t;var i=null!==(n=this.canvas.ownerDocument)&&void 0!==n?n:document,a=i.createElement("canvas");a.width=Math.max(1,e),a.height=Math.max(1,r);var s=a.getContext("2d");return s.drawImage(t,0,0,t.width,t.height,0,0,e,r),a},r.prototype.renderBackgroundImage=function(t){return n(this,void 0,void 0,(function(){var e,r,n,a,s,o;return i(this,(function(u){switch(u.label){case 0:e=t.styles.backgroundImage.length-1,r=function(r){var a,s,o,u,l,c,A,d,f,h,p,g,v,m,y,w,b,_,B,C,E,x,T,S,k,I,F,L,D,R,U;return i(this,(function(i){switch(i.label){case 0:if(0!==r.type)return[3,5];a=void 0,s=r.url,i.label=1;case 1:return i.trys.push([1,3,,4]),[4,n.context.cache.match(s)];case 2:return a=i.sent(),[3,4];case 3:return i.sent(),n.context.logger.error("Error loading background-image "+s),[3,4];case 4:return a&&(o=Fa(t,e,[a.width,a.height,a.width/a.height]),w=o[0],x=o[1],T=o[2],B=o[3],C=o[4],m=n.ctx.createPattern(n.resizeImage(a,B,C),"repeat"),n.renderRepeat(w,m,x,T)),[3,6];case 5:!function(t){return 1===t.type}(r)?function(t){return 2===t.type}(r)&&(y=Fa(t,e,[null,null,null]),w=y[0],b=y[1],_=y[2],B=y[3],C=y[4],E=0===r.position.length?[Jt]:r.position,x=ee(E[0],B),T=ee(E[E.length-1],C),S=function(t,e,r,n,i){var a=0,s=0;switch(t.size){case 0:0===t.shape?a=s=Math.min(Math.abs(e),Math.abs(e-n),Math.abs(r),Math.abs(r-i)):1===t.shape&&(a=Math.min(Math.abs(e),Math.abs(e-n)),s=Math.min(Math.abs(r),Math.abs(r-i)));break;case 2:if(0===t.shape)a=s=Math.min(_e(e,r),_e(e,r-i),_e(e-n,r),_e(e-n,r-i));else if(1===t.shape){var o=Math.min(Math.abs(r),Math.abs(r-i))/Math.min(Math.abs(e),Math.abs(e-n)),u=Be(n,i,e,r,!0),l=u[0],c=u[1];a=_e(l-e,(c-r)/o),s=o*a}break;case 1:0===t.shape?a=s=Math.max(Math.abs(e),Math.abs(e-n),Math.abs(r),Math.abs(r-i)):1===t.shape&&(a=Math.max(Math.abs(e),Math.abs(e-n)),s=Math.max(Math.abs(r),Math.abs(r-i)));break;case 3:if(0===t.shape)a=s=Math.max(_e(e,r),_e(e,r-i),_e(e-n,r),_e(e-n,r-i));else if(1===t.shape){o=Math.max(Math.abs(r),Math.abs(r-i))/Math.max(Math.abs(e),Math.abs(e-n));var A=Be(n,i,e,r,!1);l=A[0],c=A[1];a=_e(l-e,(c-r)/o),s=o*a}break}return Array.isArray(t.size)&&(a=ee(t.size[0],n),s=2===t.size.length?ee(t.size[1],i):a),[a,s]}(r,x,T,B,C),k=S[0],I=S[1],k>0&&I>0&&(F=n.ctx.createRadialGradient(b+x,_+T,0,b+x,_+T,k),we(r.stops,2*k).forEach((function(t){return F.addColorStop(t.stop,ue(t.color))})),n.path(w),n.ctx.fillStyle=F,k!==I?(L=t.bounds.left+.5*t.bounds.width,D=t.bounds.top+.5*t.bounds.height,R=I/k,U=1/R,n.ctx.save(),n.ctx.translate(L,D),n.ctx.transform(1,0,0,R,0,0),n.ctx.translate(-L,-D),n.ctx.fillRect(b,U*(_-D)+D,B,C*U),n.ctx.restore()):n.ctx.fill())):(u=Fa(t,e,[null,null,null]),w=u[0],x=u[1],T=u[2],B=u[3],C=u[4],l=be(r.angle,B,C),c=l[0],A=l[1],d=l[2],f=l[3],h=l[4],p=document.createElement("canvas"),p.width=B,p.height=C,g=p.getContext("2d"),v=g.createLinearGradient(A,f,d,h),we(r.stops,c).forEach((function(t){return v.addColorStop(t.stop,ue(t.color))})),g.fillStyle=v,g.fillRect(0,0,B,C),B>0&&C>0&&(m=n.ctx.createPattern(p,"repeat"),n.renderRepeat(w,m,x,T))),i.label=6;case 6:return e--,[2]}}))},n=this,a=0,s=t.styles.backgroundImage.slice(0).reverse(),u.label=1;case 1:return a<s.length?(o=s[a],[5,r(o)]):[3,4];case 2:u.sent(),u.label=3;case 3:return a++,[3,1];case 4:return[2]}}))}))},r.prototype.renderSolidBorder=function(t,e,r){return n(this,void 0,void 0,(function(){return i(this,(function(n){return this.path(xa(r,e)),this.ctx.fillStyle=ue(t),this.ctx.fill(),[2]}))}))},r.prototype.renderDoubleBorder=function(t,e,r,a){return n(this,void 0,void 0,(function(){var n,s;return i(this,(function(i){switch(i.label){case 0:return e<3?[4,this.renderSolidBorder(t,r,a)]:[3,2];case 1:return i.sent(),[2];case 2:return n=function(t,e){switch(e){case 0:return Sa(t.topLeftBorderBox,t.topLeftBorderDoubleOuterBox,t.topRightBorderBox,t.topRightBorderDoubleOuterBox);case 1:return Sa(t.topRightBorderBox,t.topRightBorderDoubleOuterBox,t.bottomRightBorderBox,t.bottomRightBorderDoubleOuterBox);case 2:return Sa(t.bottomRightBorderBox,t.bottomRightBorderDoubleOuterBox,t.bottomLeftBorderBox,t.bottomLeftBorderDoubleOuterBox);case 3:default:return Sa(t.bottomLeftBorderBox,t.bottomLeftBorderDoubleOuterBox,t.topLeftBorderBox,t.topLeftBorderDoubleOuterBox)}}(a,r),this.path(n),this.ctx.fillStyle=ue(t),this.ctx.fill(),s=function(t,e){switch(e){case 0:return Sa(t.topLeftBorderDoubleInnerBox,t.topLeftPaddingBox,t.topRightBorderDoubleInnerBox,t.topRightPaddingBox);case 1:return Sa(t.topRightBorderDoubleInnerBox,t.topRightPaddingBox,t.bottomRightBorderDoubleInnerBox,t.bottomRightPaddingBox);case 2:return Sa(t.bottomRightBorderDoubleInnerBox,t.bottomRightPaddingBox,t.bottomLeftBorderDoubleInnerBox,t.bottomLeftPaddingBox);case 3:default:return Sa(t.bottomLeftBorderDoubleInnerBox,t.bottomLeftPaddingBox,t.topLeftBorderDoubleInnerBox,t.topLeftPaddingBox)}}(a,r),this.path(s),this.ctx.fill(),[2]}}))}))},r.prototype.renderNodeBackgroundAndBorders=function(t){return n(this,void 0,void 0,(function(){var e,r,n,a,s,o,u,l,c=this;return i(this,(function(i){switch(i.label){case 0:return this.applyEffects(t.getEffects(2)),e=t.container.styles,r=!oe(e.backgroundColor)||e.backgroundImage.length,n=[{style:e.borderTopStyle,color:e.borderTopColor,width:e.borderTopWidth},{style:e.borderRightStyle,color:e.borderRightColor,width:e.borderRightWidth},{style:e.borderBottomStyle,color:e.borderBottomColor,width:e.borderBottomWidth},{style:e.borderLeftStyle,color:e.borderLeftColor,width:e.borderLeftWidth}],a=Ha(Ua(e.backgroundClip,0),t.curves),r||e.boxShadow.length?(this.ctx.save(),this.path(a),this.ctx.clip(),oe(e.backgroundColor)||(this.ctx.fillStyle=ue(e.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(t.container)]):[3,2];case 1:i.sent(),this.ctx.restore(),e.boxShadow.slice(0).reverse().forEach((function(e){c.ctx.save();var r=pa(t.curves),n=e.inset?0:1e4,i=function(t,e,r,n,i){return t.map((function(t,a){switch(a){case 0:return t.add(e,r);case 1:return t.add(e+n,r);case 2:return t.add(e+n,r+i);case 3:return t.add(e,r+i)}return t}))}(r,-n+(e.inset?1:-1)*e.spread.number,(e.inset?1:-1)*e.spread.number,e.spread.number*(e.inset?-2:2),e.spread.number*(e.inset?-2:2));e.inset?(c.path(r),c.ctx.clip(),c.mask(i)):(c.mask(r),c.ctx.clip(),c.path(i)),c.ctx.shadowOffsetX=e.offsetX.number+n,c.ctx.shadowOffsetY=e.offsetY.number,c.ctx.shadowColor=ue(e.color),c.ctx.shadowBlur=e.blur.number,c.ctx.fillStyle=e.inset?ue(e.color):"rgba(0,0,0,1)",c.ctx.fill(),c.ctx.restore()})),i.label=2;case 2:s=0,o=0,u=n,i.label=3;case 3:return o<u.length?(l=u[o],0!==l.style&&!oe(l.color)&&l.width>0?2!==l.style?[3,5]:[4,this.renderDashedDottedBorder(l.color,l.width,s,t.curves,2)]:[3,11]):[3,13];case 4:return i.sent(),[3,11];case 5:return 3!==l.style?[3,7]:[4,this.renderDashedDottedBorder(l.color,l.width,s,t.curves,3)];case 6:return i.sent(),[3,11];case 7:return 4!==l.style?[3,9]:[4,this.renderDoubleBorder(l.color,l.width,s,t.curves)];case 8:return i.sent(),[3,11];case 9:return[4,this.renderSolidBorder(l.color,s,t.curves)];case 10:i.sent(),i.label=11;case 11:s++,i.label=12;case 12:return o++,[3,3];case 13:return[2]}}))}))},r.prototype.renderDashedDottedBorder=function(t,e,r,a,s){return n(this,void 0,void 0,(function(){var n,o,u,l,c,A,d,f,h,p,g,v,m,y,w,b;return i(this,(function(i){return this.ctx.save(),n=function(t,e){switch(e){case 0:return Ta(t.topLeftBorderStroke,t.topRightBorderStroke);case 1:return Ta(t.topRightBorderStroke,t.bottomRightBorderStroke);case 2:return Ta(t.bottomRightBorderStroke,t.bottomLeftBorderStroke);case 3:default:return Ta(t.bottomLeftBorderStroke,t.topLeftBorderStroke)}}(a,r),o=xa(a,r),2===s&&(this.path(o),this.ctx.clip()),da(o[0])?(u=o[0].start.x,l=o[0].start.y):(u=o[0].x,l=o[0].y),da(o[1])?(c=o[1].end.x,A=o[1].end.y):(c=o[1].x,A=o[1].y),d=0===r||2===r?Math.abs(u-c):Math.abs(l-A),this.ctx.beginPath(),3===s?this.formatPath(n):this.formatPath(o.slice(0,2)),f=e<3?3*e:2*e,h=e<3?2*e:e,3===s&&(f=e,h=e),p=!0,d<=2*f?p=!1:d<=2*f+h?(g=d/(2*f+h),f*=g,h*=g):(v=Math.floor((d+h)/(f+h)),m=(d-v*f)/(v-1),y=(d-(v+1)*f)/v,h=y<=0||Math.abs(h-m)<Math.abs(h-y)?m:y),p&&(3===s?this.ctx.setLineDash([0,f+h]):this.ctx.setLineDash([f,h])),3===s?(this.ctx.lineCap="round",this.ctx.lineWidth=e):this.ctx.lineWidth=2*e+1.1,this.ctx.strokeStyle=ue(t),this.ctx.stroke(),this.ctx.setLineDash([]),2===s&&(da(o[0])&&(w=o[3],b=o[0],this.ctx.beginPath(),this.formatPath([new la(w.end.x,w.end.y),new la(b.start.x,b.start.y)]),this.ctx.stroke()),da(o[1])&&(w=o[1],b=o[2],this.ctx.beginPath(),this.formatPath([new la(w.end.x,w.end.y),new la(b.start.x,b.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]}))}))},r.prototype.render=function(t){return n(this,void 0,void 0,(function(){var e;return i(this,(function(r){switch(r.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=ue(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),e=Ea(t),[4,this.renderStack(e)];case 1:return r.sent(),this.applyEffects([]),[2,this.canvas]}}))}))},r}(Ma),Na=function(t){return t instanceof ri||(t instanceof ei||t instanceof ti&&"radio"!==t.type&&"checkbox"!==t.type)},Ha=function(t,e){switch(t){case 0:return pa(e);case 2:return function(t){return[t.topLeftContentBox,t.topRightContentBox,t.bottomRightContentBox,t.bottomLeftContentBox]}(e);case 1:default:return ga(e)}},$a=function(t){switch(t){case 1:return"center";case 2:return"right";case 0:default:return"left"}},ja=["-apple-system","system-ui"],Ka=function(t){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?t.filter((function(t){return-1===ja.indexOf(t)})):t},Ga=function(t){function r(e,r){var n=t.call(this,e,r)||this;return n.canvas=r.canvas?r.canvas:document.createElement("canvas"),n.ctx=n.canvas.getContext("2d"),n.options=r,n.canvas.width=Math.floor(r.width*r.scale),n.canvas.height=Math.floor(r.height*r.scale),n.canvas.style.width=r.width+"px",n.canvas.style.height=r.height+"px",n.ctx.scale(n.options.scale,n.options.scale),n.ctx.translate(-r.x,-r.y),n.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+r.width+"x"+r.height+" at "+r.x+","+r.y+") with scale "+r.scale),n}return e(r,t),r.prototype.render=function(t){return n(this,void 0,void 0,(function(){var e,r;return i(this,(function(n){switch(n.label){case 0:return e=Ln(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,t),[4,Va(e)];case 1:return r=n.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=ue(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(r,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}}))}))},r}(Ma),Va=function(t){return new Promise((function(e,r){var n=new Image;n.onload=function(){e(n)},n.onerror=r,n.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent((new XMLSerializer).serializeToString(t))}))},Wa=function(){function t(t){var e=t.id,r=t.enabled;this.id=e,this.enabled=r,this.start=Date.now()}return t.prototype.debug=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.enabled&&("undefined"!==typeof window&&window.console&&"function"===typeof console.debug?console.debug.apply(console,s([this.id,this.getTime()+"ms"],t)):this.info.apply(this,t))},t.prototype.getTime=function(){return Date.now()-this.start},t.prototype.info=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.enabled&&"undefined"!==typeof window&&window.console&&"function"===typeof console.info&&console.info.apply(console,s([this.id,this.getTime()+"ms"],t))},t.prototype.warn=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.enabled&&("undefined"!==typeof window&&window.console&&"function"===typeof console.warn?console.warn.apply(console,s([this.id,this.getTime()+"ms"],t)):this.info.apply(this,t))},t.prototype.error=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.enabled&&("undefined"!==typeof window&&window.console&&"function"===typeof console.error?console.error.apply(console,s([this.id,this.getTime()+"ms"],t)):this.info.apply(this,t))},t.instances={},t}(),za=function(){function t(e,r){var n;this.windowBounds=r,this.instanceName="#"+t.instanceCount++,this.logger=new Wa({id:this.instanceName,enabled:e.logging}),this.cache=null!==(n=e.cache)&&void 0!==n?n:new ta(this,e)}return t.instanceCount=1,t}();"undefined"!==typeof window&&Zi.setContext(window);var Ya=function(t,e){return n(void 0,void 0,void 0,(function(){var n,s,l,c,A,d,f,h,p,g,v,m,y,w,b,_,B,C,E,x,T,S,k,I,F,L,D,R,U,O,P,M,Q,N,H,$,j,K,G;return i(this,(function(i){switch(i.label){case 0:if(!t||"object"!==a(t))return[2,Promise.reject("Invalid element provided as first argument")];if(n=t.ownerDocument,!n)throw new Error("Element is not attached to a Document");if(s=n.defaultView,!s)throw new Error("Document is not attached to a Window");return l={allowTaint:null!==(k=e.allowTaint)&&void 0!==k&&k,imageTimeout:null!==(I=e.imageTimeout)&&void 0!==I?I:15e3,proxy:e.proxy,useCORS:null!==(F=e.useCORS)&&void 0!==F&&F},c=r({logging:null===(L=e.logging)||void 0===L||L,cache:e.cache},l),A={windowWidth:null!==(D=e.windowWidth)&&void 0!==D?D:s.innerWidth,windowHeight:null!==(R=e.windowHeight)&&void 0!==R?R:s.innerHeight,scrollX:null!==(U=e.scrollX)&&void 0!==U?U:s.pageXOffset,scrollY:null!==(O=e.scrollY)&&void 0!==O?O:s.pageYOffset},d=new o(A.scrollX,A.scrollY,A.windowWidth,A.windowHeight),f=new za(c,d),h=null!==(P=e.foreignObjectRendering)&&void 0!==P&&P,p={allowTaint:null!==(M=e.allowTaint)&&void 0!==M&&M,onclone:e.onclone,ignoreElements:e.ignoreElements,inlineImages:h,copyStyles:h},f.logger.debug("Starting document clone with size "+d.width+"x"+d.height+" scrolled to "+-d.left+","+-d.top),g=new Mi(f,t,p),v=g.clonedReferenceElement,v?[4,g.toIFrame(n,d)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return m=i.sent(),y=vi(v)||function(t){return"HTML"===t.tagName}(v)?function(t){var e=t.body,r=t.documentElement;if(!e||!r)throw new Error("Unable to get document size");var n=Math.max(Math.max(e.scrollWidth,r.scrollWidth),Math.max(e.offsetWidth,r.offsetWidth),Math.max(e.clientWidth,r.clientWidth)),i=Math.max(Math.max(e.scrollHeight,r.scrollHeight),Math.max(e.offsetHeight,r.offsetHeight),Math.max(e.clientHeight,r.clientHeight));return new o(0,0,n,i)}(v.ownerDocument):u(f,v),w=y.width,b=y.height,_=y.left,B=y.top,C=qa(f,v,e.backgroundColor),E={canvas:e.canvas,backgroundColor:C,scale:null!==(N=null!==(Q=e.scale)&&void 0!==Q?Q:s.devicePixelRatio)&&void 0!==N?N:1,x:(null!==(H=e.x)&&void 0!==H?H:0)+_,y:(null!==($=e.y)&&void 0!==$?$:0)+B,width:null!==(j=e.width)&&void 0!==j?j:Math.ceil(w),height:null!==(K=e.height)&&void 0!==K?K:Math.ceil(b)},h?(f.logger.debug("Document cloned, using foreign object rendering"),S=new Ga(f,E),[4,S.render(v)]):[3,3];case 2:return x=i.sent(),[3,5];case 3:return f.logger.debug("Document cloned, element located at "+_+","+B+" with size "+w+"x"+b+" using computed rendering"),f.logger.debug("Starting DOM parsing"),T=si(f,v),C===T.styles.backgroundColor&&(T.styles.backgroundColor=ge.TRANSPARENT),f.logger.debug("Starting renderer for element at "+E.x+","+E.y+" with size "+E.width+"x"+E.height),S=new Qa(f,E),[4,S.render(T)];case 4:x=i.sent(),i.label=5;case 5:return(null===(G=e.removeContainer)||void 0===G||G)&&(Mi.destroy(m)||f.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),f.logger.debug("Finished rendering"),[2,x]}}))}))},qa=function(t,e,r){var n=e.ownerDocument,i=n.documentElement?pe(t,getComputedStyle(n.documentElement).backgroundColor):ge.TRANSPARENT,a=n.body?pe(t,getComputedStyle(n.body).backgroundColor):ge.TRANSPARENT,s="string"===typeof r?pe(t,r):null===r?ge.TRANSPARENT:4294967295;return e===n.documentElement?oe(i)?oe(a)?s:a:i:s};return function(t,e){return void 0===e&&(e={}),Ya(t,e)}}))},"035d":function(t,e,r){"use strict";(function(t){var n=r("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(r("cb5b")),a=(n(r("e2f3")),r("5afe"),n(r("e04f"))),s=r("0f81"),o={data:function(){return{art:null,playing:!1,url:"",bycdnPlayer:null}},props:{vodid:{type:Number}},methods:{init:function(e,r){var n=this;e.vod_thumbnails="http:"+e.vod_thumbnails;var o=e.vod_thumbnails.match(/-(\d+).[jpg|jpeg|png|webp|gif|bmp]+$/i),u=o?parseInt(o[1]):100;this.art=new i.default({id:String(this.vodid),url:r,container:this.$refs.artRef,thumbnails:{url:e.vod_thumbnails,number:u,column:u,width:250,height:165},type:"m3u8",fullscreen:!0,pip:!1,flip:!1,playbackRate:!0,aspectRatio:!1,screenshot:!0,setting:!0,autoplay:!1,theme:"#DA2538",hotkey:!1,customType:{m3u8:function(t,e,r){if(a.default.isSupported()){r.hls&&r.hls.destroy();var n=new a.default;n.loadSource(e),n.attachMedia(t),r.hls=n,r.on("destroy",(function(){return n.destroy()}))}else t.canPlayType("application/vnd.apple.mpegurl")?t.src=e:r.notice.show="Unsupported playback format: m3u8"}},plugins:[this.artplayerPluginXVod(this.art),artplayerPluginDanmuku({danmuku:e.danmu})]}),this.art.on("artplayerPluginDanmuku:emit",(function(t){t.timestamp=Math.round(new Date),s.app.addDanmu(n.vodid,t.color,t.time,t.mode,t.text,t.timestamp).then((function(t){}))})),this.art.on("control",(function(t){n.art.layers.back_btn.style.display=t?"block":"none"})),this.art.on("pause",(function(){n.playing=!1,n.$emit("update:playing",!1)})),this.art.on("play",(function(){n.playing=!0,t("log","\u64ad\u653e"," at components/artplayer.vue:98"),n.$emit("update:playing",!0)})),this.art.on("restart",(function(e){t("info","restart",e," at components/artplayer.vue:102")})),this.$nextTick((function(){n.$emit("get-instance",n.art)}))},isFinite:function(){},artplayerPluginXVod:function(e){return function(e){function r(){e.layers.back_btn.style.display="block"}function n(){e.layers.back_btn.style.display="none"}return e.layers.add({name:"back_btn",html:'<i class="art-icon"><img style="width:30px;" src="/static/icon/back.png"/></i>',click:function(){var e=getCurrentPages(),r=e.length;if(1===r)uni.switchTab({url:"/pages/home/index"});else for(var n=1;n<r;n++)if(t("log",e[r-n-1].route," at components/artplayer.vue:125"),"pages/video/video"!=e[r-n-1].route){uni.navigateBack({delta:n});break}},style:{display:"block",position:"absolute",top:"10px",left:"10px"}}),e.on("play",n),e.on("pause",r),{name:"adsPlugin",show:r,hide:n}}},uploadVideo:function(e){var r=this;if(this.init(e,e.urlarr[0].p2pM3u8Url),t("log",e.rawplayer," at components/artplayer.vue:163"),1==e.rawplayer){document.getElementsByClassName("art-video");this.bycdnPlayer=new ABCDN.PLAYER.CHlsRawPlayer({videoDom:this.$refs.artRef,p2pStunServerHostUrl:"stun:stun1.ali12356.com:23478",p2pCdnServerHostUrl:"//nb"+Math.abs((this.vodid>>>16^this.vodid>>>8^this.vodid)%6)+".ali12356.com",isSavingMode:!1,tcdnStepChunks:2,p2pMode:1==e.p2p?"no":"off",forceOff:1!=e.p2p,p2pRedLineTime:30,preloadBufferTime:30,ABCDN:{maxLruCacheSize:3e3,usePost:!0},p2pMaxTimeout:300,sw:{swFilePath:"/"},isAutoPlay:!1,boostRange:45,boostRate:2,videoStreams:e.urlarr[0],doLoadURL:function(t,e){r.art.url=e}})}else t("log",this.art.url," at components/artplayer.vue:194"),this.art.url=e.urlarr[0].p2pM3u8Url}},beforeDestroy:function(){this.bycdnPlayer&&this.bycdnPlayer.Destroy(),this.instance&&this.instance.destroy&&this.instance.destroy(!1)}};e.default=o}).call(this,r("f3b9")["default"])},"03d1":function(t,e,r){var n,i,a,s=r("3b2d");(function(o,u,l){"object"===s(e)?t.exports=e=u(r("707d"),r("e538"),r("91de"),r("05f0"),r("bbe5")):(i=[r("707d"),r("e538"),r("91de"),r("05f0"),r("bbe5")],n=u,a="function"===typeof n?n.apply(e,i):n,void 0===a||(t.exports=a))})(0,(function(t){return function(){var e=t,r=e.lib,n=r.StreamCipher,i=e.algo,a=[],s=[],o=[],u=i.Rabbit=n.extend({_doReset:function(){for(var t=this._key.words,e=this.cfg.iv,r=0;r<4;r++)t[r]=16711935&(t[r]<<8|t[r]>>>24)|4278255360&(t[r]<<24|t[r]>>>8);var n=this._X=[t[0],t[3]<<16|t[2]>>>16,t[1],t[0]<<16|t[3]>>>16,t[2],t[1]<<16|t[0]>>>16,t[3],t[2]<<16|t[1]>>>16],i=this._C=[t[2]<<16|t[2]>>>16,4294901760&t[0]|65535&t[1],t[3]<<16|t[3]>>>16,4294901760&t[1]|65535&t[2],t[0]<<16|t[0]>>>16,4294901760&t[2]|65535&t[3],t[1]<<16|t[1]>>>16,4294901760&t[3]|65535&t[0]];this._b=0;for(r=0;r<4;r++)l.call(this);for(r=0;r<8;r++)i[r]^=n[r+4&7];if(e){var a=e.words,s=a[0],o=a[1],u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),c=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),A=u>>>16|4294901760&c,d=c<<16|65535&u;i[0]^=u,i[1]^=A,i[2]^=c,i[3]^=d,i[4]^=u,i[5]^=A,i[6]^=c,i[7]^=d;for(r=0;r<4;r++)l.call(this)}},_doProcessBlock:function(t,e){var r=this._X;l.call(this),a[0]=r[0]^r[5]>>>16^r[3]<<16,a[1]=r[2]^r[7]>>>16^r[5]<<16,a[2]=r[4]^r[1]>>>16^r[7]<<16,a[3]=r[6]^r[3]>>>16^r[1]<<16;for(var n=0;n<4;n++)a[n]=16711935&(a[n]<<8|a[n]>>>24)|4278255360&(a[n]<<24|a[n]>>>8),t[e+n]^=a[n]},blockSize:4,ivSize:2});function l(){for(var t=this._X,e=this._C,r=0;r<8;r++)s[r]=e[r];e[0]=e[0]+1295307597+this._b|0,e[1]=e[1]+3545052371+(e[0]>>>0<s[0]>>>0?1:0)|0,e[2]=e[2]+886263092+(e[1]>>>0<s[1]>>>0?1:0)|0,e[3]=e[3]+1295307597+(e[2]>>>0<s[2]>>>0?1:0)|0,e[4]=e[4]+3545052371+(e[3]>>>0<s[3]>>>0?1:0)|0,e[5]=e[5]+886263092+(e[4]>>>0<s[4]>>>0?1:0)|0,e[6]=e[6]+1295307597+(e[5]>>>0<s[5]>>>0?1:0)|0,e[7]=e[7]+3545052371+(e[6]>>>0<s[6]>>>0?1:0)|0,this._b=e[7]>>>0<s[7]>>>0?1:0;for(r=0;r<8;r++){var n=t[r]+e[r],i=65535&n,a=n>>>16,u=((i*i>>>17)+i*a>>>15)+a*a,l=((4294901760&n)*n|0)+((65535&n)*n|0);o[r]=u^l}t[0]=o[0]+(o[7]<<16|o[7]>>>16)+(o[6]<<16|o[6]>>>16)|0,t[1]=o[1]+(o[0]<<8|o[0]>>>24)+o[7]|0,t[2]=o[2]+(o[1]<<16|o[1]>>>16)+(o[0]<<16|o[0]>>>16)|0,t[3]=o[3]+(o[2]<<8|o[2]>>>24)+o[1]|0,t[4]=o[4]+(o[3]<<16|o[3]>>>16)+(o[2]<<16|o[2]>>>16)|0,t[5]=o[5]+(o[4]<<8|o[4]>>>24)+o[3]|0,t[6]=o[6]+(o[5]<<16|o[5]>>>16)+(o[4]<<16|o[4]>>>16)|0,t[7]=o[7]+(o[6]<<8|o[6]>>>24)+o[5]|0}e.Rabbit=n._createHelper(u)}(),t.Rabbit}))},"03fc":function(t,e,r){"use strict";var n=r("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(r("7ca3")),a=r("7707");function s(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function o(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?s(Object(r),!0).forEach((function(e){(0,i.default)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var u=function(t,e,r){var n={};return t.forEach((function(t){(0,a.isUndefined)(r[t])?(0,a.isUndefined)(e[t])||(n[t]=e[t]):n[t]=r[t]})),n};e.default=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.method||t.method||"GET",n={baseURL:t.baseURL||"",method:r,url:e.url||"",params:e.params||{},custom:o(o({},t.custom||{}),e.custom||{}),header:(0,a.deepMerge)(t.header||{},e.header||{})},i=["getTask","validateStatus"];if(n=o(o({},n),u(i,t,e)),"DOWNLOAD"===r)(0,a.isUndefined)(e.timeout)?(0,a.isUndefined)(t.timeout)||(n.timeout=t.timeout):n.timeout=e.timeout;else if("UPLOAD"===r){delete n.header["content-type"],delete n.header["Content-Type"];var s=["files","filePath","name","timeout","formData"];s.forEach((function(t){(0,a.isUndefined)(e[t])||(n[t]=e[t])})),(0,a.isUndefined)(n.timeout)&&!(0,a.isUndefined)(t.timeout)&&(n.timeout=t.timeout)}else{var l=["data","timeout","dataType","responseType","sslVerify","firstIpv4"];n=o(o({},n),u(l,t,e))}return n}},"0445":function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={name:"u-toast",mixins:[uni.$u.mpMixin,uni.$u.mixin],data:function(){return{isShow:!1,timer:null,config:{message:"",type:"",duration:2e3,icon:!0,position:"center",complete:null,overlay:!1,loading:!1},tmpConfig:{}}},computed:{iconName:function(){return this.tmpConfig.icon&&"none"!=this.tmpConfig.icon&&["error","warning","success","primary"].includes(this.tmpConfig.type)?uni.$u.type2icon(this.tmpConfig.type):""},overlayStyle:function(){var t={justifyContent:"center",alignItems:"center",display:"flex",backgroundColor:"rgba(0, 0, 0, 0)"};return t},iconStyle:function(){var t={marginRight:"4px"};return t},loadingIconColor:function(){var t="rgb(255, 255, 255)";return["error","warning","success","primary"].includes(this.tmpConfig.type)&&(t=uni.$u.hexToRgb(uni.$u.color[this.tmpConfig.type])),t},contentStyle:function(){var t=uni.$u.sys().windowHeight,e={},r=0;return"top"===this.tmpConfig.position?r=.25*-t:"bottom"===this.tmpConfig.position&&(r=.25*t),e.transform="translateY(".concat(r,"px)"),e}},created:function(){var t=this;["primary","success","error","warning","default","loading"].map((function(e){t[e]=function(r){return t.show({type:e,message:r})}}))},methods:{show:function(t){var e=this;this.tmpConfig=uni.$u.deepMerge(this.config,t),this.clearTimer(),this.isShow=!0,this.timer=setTimeout((function(){e.clearTimer(),"function"===typeof e.tmpConfig.complete&&e.tmpConfig.complete()}),this.tmpConfig.duration)},hide:function(){this.clearTimer()},clearTimer:function(){this.isShow=!1,clearTimeout(this.timer),this.timer=null}},beforeDestroy:function(){this.clearTimer()}};e.default=n},"0475":function(t,e,r){"use strict";r.r(e);var n=r("fcc2"),i=r("5504");for(var a in i)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return i[t]}))}(a);var s=r("828b"),o=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);e["default"]=o.exports},"04cc":function(t,e,r){"use strict";r.r(e);var n=r("dc2c"),i=r.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return n[t]}))}(a);e["default"]=i.a},"04e7":function(t,e,r){"use strict";r.r(e);var n=r("0960"),i=r("9929");for(var a in i)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return i[t]}))}(a);var s=r("828b"),o=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,"a5c241da",null,!1,n["a"],void 0);e["default"]=o.exports},"0551":function(t,e,r){"use strict";var n=r("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(r("127e")),a=n(r("ee10")),s=r("0f81"),o={data:function(){return{list:[],page:1,refreshTriggered:!1,loadStatus:"loadmore"}},onPullDownRefresh:function(){this.refreshTriggered=!0,this.loadStatus="loadmore",this.page=1,this.list=[],this.getData()},onReachBottom:function(){this.getData()},onLoad:function(){var t=this;return(0,a.default)(i.default.mark((function e(){var r;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$onLaunched;case 2:r=getApp().globalData.userToken,r?t.getData():uni.redirectTo({url:"/pages/user/login"});case 4:case"end":return e.stop()}}),e)})))()},methods:{getData:function(){var t=this;return(0,a.default)(i.default.mark((function e(){return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if("nomore"!==t.loadStatus&&"loading"!==t.loadStatus){e.next=2;break}return e.abrupt("return");case 2:return t.loadStatus="loading",e.next=5,s.user.gbookList(t.page).then((function(e){1==e.code?(e.data.page<e.data.page_total?(t.loadStatus="loadmore",t.page++):t.loadStatus="nomore",t.list=t.list.concat(e.data.list)):t.loadStatus="loadmore"})).catch((function(e){t.loadStatus="loadmore"}));case 5:t.refreshTriggered&&(t.refreshTriggered=!1,uni.stopPullDownRefresh());case 6:case"end":return e.stop()}}),e)})))()}}};e.default=o},"05f0":function(t,e,r){var n,i,a,s=r("3b2d");(function(o,u,l){"object"===s(e)?t.exports=e=u(r("707d"),r("396f"),r("f9e5")):(i=[r("707d"),r("396f"),r("f9e5")],n=u,a="function"===typeof n?n.apply(e,i):n,void 0===a||(t.exports=a))})(0,(function(t){return function(){var e=t,r=e.lib,n=r.Base,i=r.WordArray,a=e.algo,s=a.MD5,o=a.EvpKDF=n.extend({cfg:n.extend({keySize:4,hasher:s,iterations:1}),init:function(t){this.cfg=this.cfg.extend(t)},compute:function(t,e){var r,n=this.cfg,a=n.hasher.create(),s=i.create(),o=s.words,u=n.keySize,l=n.iterations;while(o.length<u){r&&a.update(r),r=a.update(t).finalize(e),a.reset();for(var c=1;c<l;c++)r=a.finalize(r),a.reset();s.concat(r)}return s.sigBytes=4*u,s}});e.EvpKDF=function(t,e,r){return o.create(r).compute(t,e)}}(),t.EvpKDF}))},"0629":function(t,e,r){"use strict";r.r(e);var n=r("a287"),i=r("4b26");for(var a in i)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return i[t]}))}(a);var s=r("828b"),o=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);e["default"]=o.exports},"0655":function(t,e,r){"use strict";r.r(e);var n=r("a6d2"),i=r.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return n[t]}))}(a);e["default"]=i.a},"0670":function(t,e,r){var n=r("ff58");function i(){return"undefined"!==typeof Reflect&&Reflect.get?(t.exports=i=Reflect.get.bind(),t.exports.__esModule=!0,t.exports["default"]=t.exports):(t.exports=i=function(t,e,r){var i=n(t,e);if(i){var a=Object.getOwnPropertyDescriptor(i,e);return a.get?a.get.call(arguments.length<3?t:r):a.value}},t.exports.__esModule=!0,t.exports["default"]=t.exports),i.apply(this,arguments)}t.exports=i,t.exports.__esModule=!0,t.exports["default"]=t.exports},"0674":function(t,e,r){"use strict";r.d(e,"b",(function(){return n})),r.d(e,"c",(function(){return i})),r.d(e,"a",(function(){}));var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return t._$s(0,"i",t.inited)?r("view",{ref:"u-transition",staticClass:t._$s(0,"sc","u-transition"),class:t._$s(0,"c",t.classes),style:t._$s(0,"s",[t.mergeStyle]),attrs:{_i:0},on:{touchmove:t.noop,click:t.clickHandler}},[t._t("default",null,{_i:1})],2):t._e()},i=[]},"072b":function(t,e,r){"use strict";r.d(e,"b",(function(){return n})),r.d(e,"c",(function(){return i})),r.d(e,"a",(function(){}));var n=function(){var t=this.$createElement,e=this._self._c||t;return e("view",{staticClass:this._$s(0,"sc","page-container"),attrs:{_i:0}},[e("view",{staticClass:this._$s(1,"sc","context"),attrs:{_i:1}})])},i=[]},"07c3":function(t,e,r){"use strict";r.r(e);var n=r("7736"),i=r("01a3");for(var a in i)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return i[t]}))}(a);var s=r("828b"),o=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);e["default"]=o.exports},"0852":function(t,e,r){"use strict";r.d(e,"b",(function(){return i})),r.d(e,"c",(function(){return a})),r.d(e,"a",(function(){return n}));var n={uniIcons:r("da03").default,uTabs:r("58b7").default},i=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("view",{staticClass:t._$s(0,"sc","header"),attrs:{_i:0}},[r("view",{staticClass:t._$s(1,"sc","flex-row align-center"),attrs:{_i:1}},[r("image",{staticClass:t._$s(2,"sc","header-logo"),attrs:{_i:2}}),r("navigator",{staticClass:t._$s(3,"sc","search-box"),attrs:{_i:3}},[r("uni-icons",{attrs:{type:"search",size:"20",color:"#fff",_i:4}}),r("text",{staticClass:t._$s(5,"sc","search-box-text"),attrs:{_i:5}})],1),r("navigator",{staticClass:t._$s(6,"sc","header-btn"),attrs:{_i:6}},[r("uni-icons",{attrs:{"custom-prefix":"xicon",type:"x-icon-history",color:"#fff",size:"20",_i:7}})],1),r("navigator",{staticClass:t._$s(8,"sc","header-btn"),attrs:{_i:8}},[r("uni-icons",{attrs:{"custom-prefix":"xicon",type:"x-icon-download",color:"#fff",size:"20",_i:9}})],1)]),r("view",{staticClass:t._$s(10,"sc","header-screen"),attrs:{_i:10}},[r("view",{staticClass:t._$s(11,"sc","header-navs"),attrs:{_i:11}},[r("u-tabs",{attrs:{"line-width":25,"line-height":2,"line-color":"#000",inactiveStyle:{color:"#fff",fontSize:"16px"},"item-style":{height:"36px",padding:"0 10px"},"active-style":{fontSize:"18px",fontWeight:"500",color:"#DA2538"},list:t.navs,current:t.value,_i:12},on:{click:t.tabsClick}})],1),r("uni-icons",{attrs:{type:"list",size:"25",_i:13},on:{click:function(e){t.show=!t.show}}})],1),t._$s(14,"i",t.show)?r("transition",{attrs:{name:"dropdown-fade",_i:14}},[r("view",{staticClass:t._$s(15,"sc","Dropdown"),attrs:{_i:15}},t._l(t._$s(16,"f",{forItems:t.navs}),(function(e,n,i,a){return r("view",{key:t._$s(16,"f",{forIndex:i,key:n}),staticClass:t._$s("16-"+a,"sc","Dropdown-navs"),class:t._$s("16-"+a,"c",t.value===n?"selected":""),attrs:{_i:"16-"+a},on:{click:function(e){return t.tabs(n)}}},[t._v(t._$s("16-"+a,"t0-0",t._s(e.name)))])})),0)]):t._e()],1)},a=[]},"0859":function(t,e,r){"use strict";r.r(e);var n=r("5965"),i=r.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return n[t]}))}(a);e["default"]=i.a},"0874":function(t,e,r){"use strict";(function(t){var n=r("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(r("127e")),a=n(r("ee10")),s=n(r("42eb")),o=n(r("913b")),u=r("0f81"),l={components:{vodItem:s.default,advItem:o.default},props:{id:{type:Number,default:0},sort:{type:String,default:""}},data:function(){return{list:[],banner_adv:[],page:1,loaded:!1,refreshTriggered:!1,loadStatus:"loadmore"}},watch:{sort:{handler:function(t){this.loaded&&(this.loaded=!1,this.loadStatus="loadmore",this.list=[],this.page=1)}}},methods:{init:function(){!1===this.loaded&&this.getData()},getData:function(){var e=this;return(0,a.default)(i.default.mark((function r(){return i.default.wrap((function(r){while(1)switch(r.prev=r.next){case 0:if("nomore"!==e.loadStatus&&"loading"!==e.loadStatus){r.next=2;break}return r.abrupt("return");case 2:return e.loadStatus="loading",r.next=5,u.app.hotList(e.id,e.sort,e.page).then((function(r){var n=r.data;t("log",n," at pages/home/discover-item.vue:84"),e.banner_adv=n.adv_list.banner_adv,n.page<n.page_total?(e.loadStatus="loadmore",e.page++):e.loadStatus="nomore",e.list=e.list.concat(n.list),e.loaded=!0})).catch((function(t){e.loadStatus="loadmore"}));case 5:e.refreshTriggered=!1;case 6:case"end":return r.stop()}}),r)})))()},refresh:function(){this.refreshTriggered=!0,this.loadStatus="loadmore",this.page=1,this.list=[],this.getData()}}};e.default=l}).call(this,r("f3b9")["default"])},"088b":function(t,e,r){"use strict";r.d(e,"b",(function(){return i})),r.d(e,"c",(function(){return a})),r.d(e,"a",(function(){return n}));var n={uniIcons:r("da03").default,uGrid:r("88b8").default,uGridItem:r("94f4").default},i=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("view",{staticClass:t._$s(0,"sc","page-container"),attrs:{_i:0}},[r("view",{staticClass:t._$s(1,"sc","header-bg"),attrs:{_i:1}},[r("view",{staticClass:t._$s(2,"sc","header-bg-upper"),attrs:{_i:2}})]),r("view",{staticClass:t._$s(3,"sc","status-bar"),attrs:{_i:3}}),r("scroll-view",{attrs:{"refresher-triggered":t._$s(4,"a-refresher-triggered",t.refreshTriggered),_i:4},on:{refresherrefresh:t.refresh}},[r("view",{staticClass:t._$s(5,"sc","scroll-container"),attrs:{_i:5}},[t._$s(6,"i",t.advShow&&t.adv)?r("view",{staticClass:t._$s(6,"sc","ad-banner"),attrs:{_i:6},on:{click:function(e){return t.openAD(t.adv.adv_link)}}},[r("vodImage",{attrs:{src:t.adv.adv_image,mode:"widthFix",_i:7}}),r("text",{attrs:{_i:8},on:{click:function(e){t.advShow=!1}}})],1):t._e(),r("view",{staticClass:t._$s(9,"sc","user-header"),attrs:{_i:9}},[r("view",{staticClass:t._$s(10,"sc","user-header-setup justify-end"),attrs:{_i:10}},[r("navigator",{},[r("uni-icons",{attrs:{type:"gear",size:"26",color:"#8a8a95",_i:12}})],1)]),r("view",{staticClass:t._$s(13,"sc","user-info align-center"),attrs:{_i:13}},[r("image",{staticClass:t._$s(14,"sc","user-avatar"),attrs:{src:t._$s(14,"a-src",t.user.user_portrait||"/static/avatar/noavatar.png"),_i:14},on:{click:t.userInfo}}),t._$s(15,"i",t.isLogin)?[r("view",{staticClass:t._$s(16,"sc","user-info-box"),attrs:{_i:16}},[r("view",{staticClass:t._$s(17,"sc","user-name align-center"),attrs:{_i:17},on:{click:t.userInfo}},[r("text",{staticClass:t._$s(18,"sc","name"),class:t._$s(18,"c",1===t.user.user_vip?"red":""),attrs:{_i:18}},[t._v(t._$s(18,"t0-0",t._s(t.user.user_nick_name||t.user.user_name)))]),t._$s(19,"i",1===t.user.user_vip)?r("image",{staticClass:t._$s(19,"sc","icon-grade"),attrs:{_i:19}}):t._$s(20,"e",t.user.group_id)?[r("image",{staticClass:t._$s(21,"sc","icon-grade"),attrs:{src:t._$s(21,"a-src","/static/icon/v"+t.user.group_id+"@2x.png"),_i:21}})]:t._e()],2),t._$s(22,"i",1==t.user.user_vip)?r("view",{staticClass:t._$s(22,"sc","user-expire"),attrs:{_i:22}},[t._v(t._$s(22,"t0-0",t._s(t.timeDifference+"\u5929\u540e\u8fc7\u671f")))]):t._e(),t._$s(23,"i",t.user.user_end_day>=0)?r("view",{staticClass:t._$s(23,"sc","user-expire"),attrs:{_i:23}}):t._e(),t._$s(24,"i",t.user.group&&t.user.group.group_number>0)?r("view",{staticClass:t._$s(24,"sc","user-extend"),attrs:{_i:24}},[t._v(t._$s(24,"t0-0",t._s(t.user.group.group_number-t.user.user_invite_num)))]):t._e(),t._$s(25,"i",t.user.user_invite_code)?r("view",{staticClass:t._$s(25,"sc","user-extend"),attrs:{_i:25}},[t._v(t._$s(25,"t0-0",t._s(t.user.user_invite_code)))]):t._e()]),r("view",{staticClass:t._$s(26,"sc","user-signin flex-row"),attrs:{_i:26},on:{click:t.sign}},[r("image",{attrs:{_i:27}}),r("text",[t._v(t._$s(28,"t0-0",t._s(1===t.user.user_sign?"\u5df2\u7b7e\u5230":"\u7b7e\u5230")))])])]:[r("view",{staticClass:t._$s(30,"sc","user-info-box"),attrs:{_i:30},on:{click:t.userInfo}},[r("view",{staticClass:t._$s(31,"sc","user-name align-center"),attrs:{_i:31}},[r("text",{staticClass:t._$s(32,"sc","name"),attrs:{_i:32}},[t._v(t._$s(32,"t0-0",t._s(t.user.user_name||"****")))])]),r("view",{staticClass:t._$s(33,"sc","user-extend"),attrs:{_i:33}})]),r("navigator",{staticClass:t._$s(34,"sc","user-login"),attrs:{_i:34}})]],2)]),r("view",{staticClass:t._$s(35,"sc","user-integral flex-row"),attrs:{_i:35}},[r("view",{staticClass:t._$s(36,"sc","user-integral-box flex-row"),attrs:{_i:36}},[r("view",{staticClass:t._$s(37,"sc","integral-item"),attrs:{_i:37}},[r("view",{staticClass:t._$s(38,"sc","integral-num"),attrs:{_i:38}},[t._v(t._$s(38,"t0-0",t._s(1===t.user.user_vip?"\u65e0\u9650\u5236":t.user.user_points)))]),r("view",{staticClass:t._$s(39,"sc","integral-text"),attrs:{_i:39}})]),r("view",{staticClass:t._$s(40,"sc","integral-item"),attrs:{_i:40}},[r("view",{staticClass:t._$s(41,"sc","integral-num"),attrs:{_i:41}},[t._v(t._$s(41,"t0-0",t._s(1===t.user.user_vip?"\u65e0\u9650\u5236":t.user.user_down_points)))]),r("view",{staticClass:t._$s(42,"sc","integral-text"),attrs:{_i:42}})]),t._$s(43,"i",!t.isLogin)?r("view",{staticClass:t._$s(43,"sc","integral-item"),attrs:{_i:43}},[r("view",{staticClass:t._$s(44,"sc","integral-num"),attrs:{_i:44}}),r("view",{staticClass:t._$s(45,"sc","integral-text"),attrs:{_i:45}})]):r("view",{staticClass:t._$s(46,"sc","integral-item"),attrs:{_i:46}},[r("navigator",{},[r("view",[r("text",{staticClass:t._$s(49,"sc","button-text"),attrs:{_i:49}}),r("uni-icons",{attrs:{type:"forward",color:"#FC4C5C",size:"20",_i:50}})],1),r("view",{staticClass:t._$s(51,"sc","integral-text"),attrs:{_i:51}},[t._v(t._$s(51,"t0-0",t._s(t.user.user_invite_num)))])])])])]),r("navigator",{staticClass:t._$s(52,"sc","user-ads"),attrs:{_i:52}},[r("view",[r("view",{staticClass:t._$s(54,"sc","align-center"),attrs:{_i:54}},[r("image",{attrs:{_i:55}}),r("text")])]),r("view",{staticClass:t._$s(57,"sc","user-btn"),attrs:{_i:57}})]),r("view",{staticClass:t._$s(58,"sc","user-nav"),attrs:{_i:58}},[r("view",{staticClass:t._$s(59,"sc","title"),attrs:{_i:59}}),r("u-grid",{staticClass:t._$s(60,"sc","user-nav-grid"),attrs:{border:!1,col:"4",_i:60}},[r("u-grid-item",{attrs:{_i:61}},[r("navigator",{},[r("image",{staticClass:t._$s(63,"sc","user-nav-icon"),attrs:{_i:63}}),r("text")])]),r("u-grid-item",{attrs:{_i:65}},[r("navigator",{},[r("image",{staticClass:t._$s(67,"sc","user-nav-icon"),attrs:{_i:67}}),r("text")])]),r("u-grid-item",{attrs:{_i:69}},[r("navigator",{},[r("image",{staticClass:t._$s(71,"sc","user-nav-icon"),attrs:{_i:71}}),r("text")])]),r("u-grid-item",{attrs:{_i:73}},[r("navigator",{},[r("image",{staticClass:t._$s(75,"sc","user-nav-icon"),attrs:{_i:75}}),r("text")])]),r("u-grid-item",{attrs:{_i:77}},[r("navigator",{},[r("image",{staticClass:t._$s(79,"sc","user-nav-icon"),attrs:{_i:79}}),r("text")])]),r("u-grid-item",{attrs:{_i:81}},[r("navigator",{},[r("image",{staticClass:t._$s(83,"sc","user-nav-icon"),attrs:{_i:83}}),r("text")])])],1)],1),r("view",{staticClass:t._$s(85,"sc","user-nav"),attrs:{_i:85}},[r("view",{staticClass:t._$s(86,"sc","title"),attrs:{_i:86}}),r("u-grid",{staticClass:t._$s(87,"sc","user-nav-grid"),attrs:{border:!1,col:"4",_i:87}},[r("u-grid-item",{attrs:{_i:88}},[r("navigator",{},[r("image",{staticClass:t._$s(90,"sc","user-nav-icon"),attrs:{_i:90}}),r("text")])]),r("u-grid-item",{attrs:{_i:92}},[r("navigator",{},[r("image",{staticClass:t._$s(94,"sc","user-nav-icon"),attrs:{_i:94}}),r("text")])]),r("u-grid-item",{attrs:{_i:96}},[r("navigator",{},[r("image",{staticClass:t._$s(98,"sc","user-nav-icon"),attrs:{_i:98}}),r("text")])]),r("u-grid-item",{attrs:{_i:100}},[r("navigator",{},[r("image",{staticClass:t._$s(102,"sc","user-nav-icon"),attrs:{_i:102}}),r("text")])])],1)],1),r("view",{staticClass:t._$s(104,"sc","user-nav"),attrs:{_i:104}},[r("view",{staticClass:t._$s(105,"sc","title"),attrs:{_i:105}}),r("u-grid",{staticClass:t._$s(106,"sc","user-nav-grid"),attrs:{border:!1,col:"4",_i:106}},[r("u-grid-item",{attrs:{_i:107}},[r("navigator",{},[r("image",{staticClass:t._$s(109,"sc","user-nav-icon"),attrs:{_i:109}}),r("text")])]),r("u-grid-item",{attrs:{_i:111}},[r("navigator",{},[r("image",{staticClass:t._$s(113,"sc","user-nav-icon"),attrs:{_i:113}}),r("text")])]),r("u-grid-item",{attrs:{_i:115}},[r("navigator",{},[r("image",{staticClass:t._$s(117,"sc","user-nav-icon"),attrs:{_i:117}}),r("text")])])],1)],1),t._e(),t._e()])]),r("reward",{ref:"reward",attrs:{_i:145}})],1)},a=[]},"0960":function(t,e,r){"use strict";r.d(e,"b",(function(){return n})),r.d(e,"c",(function(){return i})),r.d(e,"a",(function(){}));var n=function(){var t=this.$createElement,e=this._self._c||t;return e("view",{staticClass:this._$s(0,"sc","u-checkbox-group"),class:this._$s(0,"c",this.bemClass),attrs:{_i:0}},[this._t("default",null,{_i:1})],2)},i=[]},"0a82":function(t,e,r){"use strict";r.d(e,"b",(function(){return i})),r.d(e,"c",(function(){return a})),r.d(e,"a",(function(){return n}));var n={uTabs:r("58b7").default,uIcon:r("712b").default},i=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("view",{staticClass:t._$s(0,"sc","page-container"),attrs:{_i:0}},[r("view",{staticClass:t._$s(1,"sc","status-bar"),attrs:{_i:1}}),r("view",{staticClass:t._$s(2,"sc","nav"),attrs:{_i:2}},[r("view",{staticClass:t._$s(3,"sc","nav-tabs"),attrs:{_i:3}},[r("u-tabs",{attrs:{lineColor:"#DA2538","line-width":"0px","line-hight":"0px",scrollable:!1,"active-style":{fontSize:"18px",fontWeight:"bold",color:"#fff"},list:t.navs,current:t.navIndex,_i:4},on:{click:t.tabsClick}})],1),r("navigator",{},[r("u-icon",{attrs:{size:"30",name:"search",_i:6}})],1)]),r("swiper",{staticClass:t._$s(7,"sc","swiper-container"),attrs:{current:t._$s(7,"a-current",t.navIndex),_i:7},on:{change:t.swiperChange}},[r("swiper-item",[r("channel-class",{ref:"class",attrs:{_i:9}})],1)])])},a=[]},"0a86":function(t,e,r){"use strict";r.d(e,"b",(function(){return n})),r.d(e,"c",(function(){return i})),r.d(e,"a",(function(){}));var n=function(){var t=this.$createElement,e=this._self._c||t;return e("view",{staticClass:this._$s(0,"sc","page-container"),attrs:{_i:0}},[e("view",{staticClass:this._$s(1,"sc","context"),attrs:{_i:1}})])},i=[]},"0ac8":function(t,e,r){"use strict";r.r(e);var n=r("9c58"),i=r.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return n[t]}))}(a);e["default"]=i.a},"0b07":function(t,e,r){var n,i,a,s=r("3b2d");(function(o,u,l){"object"===s(e)?t.exports=e=u(r("707d"),r("bbe5")):(i=[r("707d"),r("bbe5")],n=u,a="function"===typeof n?n.apply(e,i):n,void 0===a||(t.exports=a))})(0,(function(t){
/** @preserve
   * Counter block mode compatible with  Dr Brian Gladman fileenc.c
   * derived from CryptoJS.mode.CTR
   * Jan Hruby jhruby.web@gmail.com
   */
return t.mode.CTRGladman=function(){var e=t.lib.BlockCipherMode.extend();function r(t){if(255===(t>>24&255)){var e=t>>16&255,r=t>>8&255,n=255&t;255===e?(e=0,255===r?(r=0,255===n?n=0:++n):++r):++e,t=0,t+=e<<16,t+=r<<8,t+=n}else t+=1<<24;return t}var n=e.Encryptor=e.extend({processBlock:function(t,e){var n=this._cipher,i=n.blockSize,a=this._iv,s=this._counter;a&&(s=this._counter=a.slice(0),this._iv=void 0),function(t){0===(t[0]=r(t[0]))&&(t[1]=r(t[1]))}(s);var o=s.slice(0);n.encryptBlock(o,0);for(var u=0;u<i;u++)t[e+u]^=o[u]}});return e.Decryptor=n,e}(),t.mode.CTRGladman}))},"0b64":function(t,e,r){"use strict";r.r(e);var n=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,62,0,62,0,63,52,53,54,55,56,57,58,59,60,61,0,0,0,0,0,0,0,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,0,0,0,0,63,0,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51];e["default"]={getRandomValues(t){if(!(t instanceof Int8Array||t instanceof Uint8Array||t instanceof Int16Array||t instanceof Uint16Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Uint8ClampedArray))throw new Error("Expected an integer array");if(t.byteLength>65536)throw new Error("Can only request a maximum of 65536 bytes");var e=uni.requireNativePlugin("DCloud-Crypto");return function(t,e){for(var r,i=t.length,a="="===t[i-2]?2:"="===t[i-1]?1:0,s=0,o=i-a&4294967292,u=0;u<o;u+=4)r=n[t.charCodeAt(u)]<<18|n[t.charCodeAt(u+1)]<<12|n[t.charCodeAt(u+2)]<<6|n[t.charCodeAt(u+3)],e[s++]=r>>16&255,e[s++]=r>>8&255,e[s++]=255&r;1===a&&(r=n[t.charCodeAt(u)]<<10|n[t.charCodeAt(u+1)]<<4|n[t.charCodeAt(u+2)]>>2,e[s++]=r>>8&255,e[s++]=255&r),2===a&&(r=n[t.charCodeAt(u)]<<2|n[t.charCodeAt(u+1)]>>4,e[s++]=255&r)}(e.getRandomValues(t.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength)),t}}},"0bc9":function(t,e,r){"use strict";function n(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,r="".concat(t);while(r.length<e)r="0".concat(r);return r}Object.defineProperty(e,"__esModule",{value:!0}),e.isSameSecond=function(t,e){return Math.floor(t/1e3)===Math.floor(e/1e3)},e.parseFormat=function(t,e){var r=e.days,i=e.hours,a=e.minutes,s=e.seconds,o=e.milliseconds;-1===t.indexOf("DD")?i+=24*r:t=t.replace("DD",n(r));-1===t.indexOf("HH")?a+=60*i:t=t.replace("HH",n(i));-1===t.indexOf("mm")?s+=60*a:t=t.replace("mm",n(a));-1===t.indexOf("ss")?o+=1e3*s:t=t.replace("ss",n(s));return t.replace("SSS",n(o,3))},e.parseTimeData=function(t){var e=Math.floor(t/864e5),r=Math.floor(t%864e5/36e5),n=Math.floor(t%36e5/6e4),i=Math.floor(t%6e4/1e3),a=Math.floor(t%1e3);return{days:e,hours:r,minutes:n,seconds:i,milliseconds:a}}},"0bdb":function(t,e,r){var n=r("d551");function i(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,n(i.key),i)}}t.exports=function(t,e,r){return e&&i(t.prototype,e),r&&i(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t},t.exports.__esModule=!0,t.exports["default"]=t.exports},"0cd8":function(t,e,r){"use strict";r.r(e);var n=r("3ad2"),i=r.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return n[t]}))}(a);e["default"]=i.a},"0d2b":function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={v:"2.0.34",version:"2.0.34",type:["primary","success","info","error","warning"],color:{"u-primary":"#2979ff","u-warning":"#ff9900","u-success":"#19be6b","u-error":"#fa3534","u-info":"#909399","u-main-color":"#303133","u-content-color":"#606266","u-tips-color":"#909399","u-light-color":"#c0c4cc"},unit:"px"};e.default=n},"0d8c":function(t,e,r){"use strict";r.r(e);var n=r("8cb8"),i=r("6949");for(var a in i)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return i[t]}))}(a);var s=r("828b"),o=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);e["default"]=o.exports},"0e48":function(t,e){t.exports={props:{customStyle:{type:[Object,String],default:function(){return{}}},customClass:{type:String,default:""},url:{type:String,default:""},linkType:{type:String,default:"navigateTo"}},data:function(){return{}},onLoad:function(){this.$u.getRect=this.$uGetRect},created:function(){this.$u.getRect=this.$uGetRect},computed:{$u:function(){return uni.$u.deepMerge(uni.$u,{props:void 0,http:void 0,mixin:void 0})},bem:function(){return function(t,e,r){var n=this,i="u-".concat(t,"--"),a={};return e&&e.map((function(t){a[i+n[t]]=!0})),r&&r.map((function(t){n[t]?a[i+t]=n[t]:delete a[i+t]})),Object.keys(a)}}},methods:{openPage:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"url",e=this[t];e&&uni[this.linkType]({url:e})},$uGetRect:function(t,e){var r=this;return new Promise((function(n){uni.createSelectorQuery().in(r)[e?"selectAll":"select"](t).boundingClientRect((function(t){e&&Array.isArray(t)&&t.length&&n(t),!e&&t&&n(t)})).exec()}))},getParentData:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.parent||(this.parent={}),this.parent=uni.$u.$parent.call(this,e),this.parent.children&&-1===this.parent.children.indexOf(this)&&this.parent.children.push(this),this.parent&&this.parentData&&Object.keys(this.parentData).map((function(e){t.parentData[e]=t.parent[e]}))},preventEvent:function(t){t&&"function"===typeof t.stopPropagation&&t.stopPropagation()},noop:function(t){this.preventEvent(t)}},onReachBottom:function(){uni.$emit("uOnReachBottom")},beforeDestroy:function(){var t=this;if(this.parent&&uni.$u.test.array(this.parent.children)){var e=this.parent.children;e.map((function(r,n){r===t&&e.splice(n,1)}))}}}},"0e54":function(t,e,r){"use strict";r.d(e,"b",(function(){return i})),r.d(e,"c",(function(){return a})),r.d(e,"a",(function(){return n}));var n={uniIcons:r("da03").default},i=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("view",{staticClass:t._$s(0,"sc","page-container"),attrs:{_i:0}},[r("view",{staticClass:t._$s(1,"sc","setup-nav card"),attrs:{_i:1}},[r("navigator",{staticClass:t._$s(2,"sc","nav-item"),attrs:{_i:2}},[r("text",{staticClass:t._$s(3,"sc","nav-title"),attrs:{_i:3}}),r("uni-icons",{attrs:{type:"forward",color:"#a2a2a2",size:"14",_i:4}})],1)]),r("view",{staticClass:t._$s(5,"sc","setup-nav card"),attrs:{_i:5}},[r("view",{staticClass:t._$s(6,"sc","nav-item"),attrs:{_i:6},on:{click:t.checkVersion}},[r("text",{staticClass:t._$s(7,"sc","nav-title"),attrs:{_i:7}}),r("text",{staticClass:t._$s(8,"sc","nav-value"),attrs:{_i:8}},[t._v(t._$s(8,"t0-0",t._s(t.version)))]),r("uni-icons",{attrs:{type:"forward",color:"#a2a2a2",size:"14",_i:9}})],1),r("navigator",{staticClass:t._$s(10,"sc","nav-item"),attrs:{_i:10}},[r("text",{staticClass:t._$s(11,"sc","nav-title"),attrs:{_i:11}}),r("uni-icons",{attrs:{type:"forward",color:"#a2a2a2",size:"14",_i:12}})],1),r("navigator",{staticClass:t._$s(13,"sc","nav-item"),attrs:{_i:13}},[r("text",{staticClass:t._$s(14,"sc","nav-title"),attrs:{_i:14}}),r("uni-icons",{attrs:{type:"forward",color:"#a2a2a2",size:"14",_i:15}})],1),r("navigator",{staticClass:t._$s(16,"sc","nav-item"),attrs:{_i:16}},[r("text",{staticClass:t._$s(17,"sc","nav-title"),attrs:{_i:17}}),r("uni-icons",{attrs:{type:"forward",color:"#a2a2a2",size:"14",_i:18}})],1)])])},a=[]},"0e83":function(t,e,r){"use strict";r.d(e,"b",(function(){return i})),r.d(e,"c",(function(){return a})),r.d(e,"a",(function(){return n}));var n={uTag:r("00ee").default,uLoadmore:r("bc5a").default},i=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("view",{staticClass:t._$s(0,"sc","page-container"),attrs:{_i:0}},[r("view",{staticClass:t._$s(1,"sc","order-recird card"),attrs:{_i:1}},[r("view",{staticClass:t._$s(2,"sc","card-content"),attrs:{_i:2}},t._l(t._$s(3,"f",{forItems:t.list}),(function(e,n,i,a){return r("view",{key:t._$s(3,"f",{forIndex:i,key:n}),staticClass:t._$s("3-"+a,"sc","record-item"),attrs:{_i:"3-"+a}},[r("view",{staticClass:t._$s("4-"+a,"sc","flex-row"),attrs:{_i:"4-"+a}},[r("text",{staticClass:t._$s("5-"+a,"sc","title"),attrs:{_i:"5-"+a}}),r("text",{staticClass:t._$s("6-"+a,"sc","value"),attrs:{_i:"6-"+a}},[t._v(t._$s("6-"+a,"t0-0",t._s(e.order_code)))])]),r("view",{staticClass:t._$s("7-"+a,"sc","flex-row"),attrs:{_i:"7-"+a}},[r("text",{staticClass:t._$s("8-"+a,"sc","title"),attrs:{_i:"8-"+a}}),r("text",{staticClass:t._$s("9-"+a,"sc","value"),attrs:{_i:"9-"+a}},[t._v(t._$s("9-"+a,"t0-0",t._s(e.order_name)))])]),r("view",{staticClass:t._$s("10-"+a,"sc","flex-row"),attrs:{_i:"10-"+a}},[r("text",{staticClass:t._$s("11-"+a,"sc","title"),attrs:{_i:"11-"+a}}),r("text",{staticClass:t._$s("12-"+a,"sc","money value"),attrs:{_i:"12-"+a}},[t._v(t._$s("12-"+a,"t0-0",t._s(e.order_price)))])]),r("view",{staticClass:t._$s("13-"+a,"sc","flex-row"),attrs:{_i:"13-"+a}},[r("text",{staticClass:t._$s("14-"+a,"sc","title"),attrs:{_i:"14-"+a}}),r("view",{staticClass:t._$s("15-"+a,"sc","status value flex-row"),attrs:{_i:"15-"+a}},[t._$s("16-"+a,"i",1==e.order_status)?r("u-tag",{attrs:{text:"\u652f\u4ed8\u6210\u529f",plain:!0,type:"success",_i:"16-"+a}}):r("u-tag",{attrs:{text:"\u672a\u652f\u4ed8",plain:!0,_i:"17-"+a}})],1)]),r("view",{staticClass:t._$s("18-"+a,"sc","flex-row"),attrs:{_i:"18-"+a}},[r("text",{staticClass:t._$s("19-"+a,"sc","title"),attrs:{_i:"19-"+a}}),r("view",{staticClass:t._$s("20-"+a,"sc","value"),attrs:{_i:"20-"+a}},[t._v(t._$s("20-"+a,"t0-0",t._s(e.order_pay_name)))])]),r("view",{staticClass:t._$s("21-"+a,"sc","flex-row"),attrs:{_i:"21-"+a}},[r("text",{staticClass:t._$s("22-"+a,"sc","title"),attrs:{_i:"22-"+a}}),r("text",{staticClass:t._$s("23-"+a,"sc","value"),attrs:{_i:"23-"+a}},[t._v(t._$s("23-"+a,"t0-0",t._s(t.formatTime(e.order_time))))])]),t._$s("24-"+a,"i",e.order_pay_time>0)?r("view",{staticClass:t._$s("24-"+a,"sc","flex-row"),attrs:{_i:"24-"+a}},[r("text",{staticClass:t._$s("25-"+a,"sc","title"),attrs:{_i:"25-"+a}}),r("text",{staticClass:t._$s("26-"+a,"sc","value"),attrs:{_i:"26-"+a}},[t._v(t._$s("26-"+a,"t0-0",t._s(t.formatTime(e.order_pay_time))))])]):t._e(),t._$s("27-"+a,"i",1!=e.order_status)?r("navigator",{staticClass:t._$s("27-"+a,"sc","button"),attrs:{url:t._$s("27-"+a,"a-url","/pages/feedback/feedback?type=3&orderId="+e.order_code),_i:"27-"+a}}):t._e()])})),0),r("view",{staticClass:t._$s(28,"sc","load-more"),attrs:{_i:28}},[r("u-loadmore",{attrs:{status:t.loadStatus,"loading-icon":"semicircle",_i:29}})],1)])])},a=[]},"0ee4":function(t,e){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(n){"object"===typeof window&&(r=window)}t.exports=r},"0f62":function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={props:{lang:String,sessionFrom:String,sendMessageTitle:String,sendMessagePath:String,sendMessageImg:String,showMessageCard:Boolean,appParameter:String,formType:String,openType:String}};e.default=n},"0f81":function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.user=e.comment=e.app=void 0;var n=r("9c63"),i={init:function(t,e){return(0,n.request)("/api/app/init",{inviteCode:t,channel:e})},home:function(){return(0,n.request)("/api/app/home",{},!0)},slideshow:function(t){return(0,n.request)("/api/app/slideshow",{type:t})},indexList:function(t){return(0,n.request)("/api/app/indexList",{type:t},!0)},topic:function(t){return(0,n.request)("/api/app/topic",{page:t})},topicDetails:function(t){return(0,n.request)("/api/app/topicDetails",{id:t})},actorDetails:function(t){return(0,n.request)("/api/app/actorDetails",{id:t})},vodClass:function(){return(0,n.request)("/api/app/vodClass",{},!0)},vodList:function(t,e,r,i,a){return(0,n.request)("/api/app/vodList",{type:t,type_pid:e,class:i,sort:r,page:a})},hotList:function(t,e,r){return(0,n.request)("/api/app/hotList",{type:t,sort:e,page:r})},hotSearch:function(){return(0,n.request)("/api/app/hotSearch")},hotTopic:function(){return(0,n.request)("/api/app/hotTopic")},searchList:function(t,e){return(0,n.request)("/api/app/searchList",{wd:t,page:e})},vodDetails:function(t){return(0,n.request)("/api/app/vodDetails",{id:t})},downVod:function(t){return(0,n.request)("/api/app/downVod",{id:t})},buyVod:function(t){return(0,n.request)("/api/app/buyVod",{id:t})},updateHits:function(t,e){return(0,n.request)("/api/app/updateHits",{id:t,mid:e})},updateDig:function(t,e,r){return(0,n.request)("/api/app/updateDig",{id:t,mid:e,ac:r})},lookVod:function(t,e){return(0,n.request)("/api/app/lookVod",{id:t,url:e})},favVod:function(t,e){return(0,n.request)("/api/app/favVod",{id:t,status:e})},vodHistory:function(t,e){return(0,n.request)("/api/app/vodRecord",{ids:t,limit:e})},vodBuyLog:function(t,e){return(0,n.request)("/api/app/vodBuyLog",{ids:t,limit:e})},favHistory:function(t){return(0,n.request)("/api/app/favHistory",{page:t})},delFav:function(t){return(0,n.request)("/api/app/delFav",{ids:t})},noticeList:function(t,e){return(0,n.request)("/api/app/noticeList",{type:t,page:e})},shareMoney:function(){return(0,n.request)("/api/app/shareMoney")},advUnlockVod:function(t,e){return(0,n.request)("/api/app/advUnlockVod",{id:t,url:e})},fullAdv:function(t){return(0,n.request)("/api/app/fullAdv")},actorList:function(){return(0,n.request)("/api/app/actorList")},short:function(){return(0,n.request)("/api/app/short")},addDanmu:function(t,e,r,i,a,s){return(0,n.request)("/api/app/addDanmu",{id:t,color:e,time:r,mode:i,text:a,timestamp:s})},danmu:function(t){return(0,n.request)("/api/app/danmu",{id:t})},appupdata:function(t,e,r,i){return(0,n.request)("/api/app/updata",{version:t,versionCode:e,type:r,appName:i})}};e.app=i;var a={reg:function(t,e,r,i,a,s){return(0,n.request)("/api/user/register",{phone:t,email:e,password:r,code:i,invite:a,ac:s})},login:function(t,e,r,i){return(0,n.request)("/api/user/login",{phone:t,email:e,password:r,ac:i})},codeMsg:function(){return(0,n.request)("/api/user/codeMsg")},info:function(){return(0,n.request)("/api/user/info")},shareInfo:function(){return(0,n.request)("/api/user/shareInfo")},change:function(t,e){return(0,n.request)("/api/user/change",{field:t,value:e})},findPassword:function(t,e,r,i){return(0,n.request)("/api/user/findPassword",{phone:t,email:e,code:r,ac:i})},password:function(t,e,r){return(0,n.request)("/api/user/password",{old_pwd:t,pwd:e,reset_token:r})},sendMsg:function(t,e,r,i){return(0,n.request)("/api/user/sendMsg",{phone:t,email:e,type:r,ac:i})},shareUser:function(t){return(0,n.request)("/api/user/shareUser",{page:t})},recharge:function(){return(0,n.request)("/api/user/recharge")},Bullion:function(){return(0,n.request)("/api/user/rechargeBullion")},exchange:function(t){return(0,n.request)("/api/user/exchange",{type:t})},exchangePoints:function(t,e){return(0,n.request)("/api/user/exchangePoints",{type:t,num:e})},exchangeVip:function(t){return(0,n.request)("/api/user/exchangeVip",{id:t})},wallet:function(){return(0,n.request)("/api/user/wallet")},cash:function(t,e,r){return(0,n.request)("/api/user/cash",{money:t,name:e,account:r})},cashList:function(t){return(0,n.request)("/api/user/cashList",{page:t})},clogList:function(t){return(0,n.request)("/api/user/clogList",{page:t})},task:function(t){return(0,n.request)("/api/user/task",{id:t})},taskList:function(){return(0,n.request)("/api/user/taskList")},sign:function(){return(0,n.request)("/api/user/sign")},gbook:function(t,e,r,i){return(0,n.request)("/api/user/gbook",{type:t,content:e,img:r,id:i})},gbookList:function(t){return(0,n.request)("/api/user/gbookList",{page:t})},payOrder:function(t,e,r){return(0,n.request)("/api/pay/order",{id:t,payid:e,type:r})},orderList:function(t){return(0,n.request)("/api/user/payOrder",{page:t})}};e.user=a;var s={list:function(t,e,r,i){return(0,n.request)("/api/app/commentList",{id:t,mid:e,page:r,tid:i})},add:function(t,e,r,i,a,s,o){return(0,n.request)("/api/app/addComment",{id:t,mid:e,content:r,tid:i,pid:a,uid:s,timestamp:o})}};e.comment=s},1052:function(t,e,r){"use strict";var n=r("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(r("bf71")),a={name:"u-status-bar",mixins:[uni.$u.mpMixin,uni.$u.mixin,i.default],data:function(){return{}},computed:{style:function(){var t={};return t.height=uni.$u.addUnit(uni.$u.sys().statusBarHeight,"px"),t.backgroundColor=this.bgColor,uni.$u.deepMerge(t,uni.$u.addStyle(this.customStyle))}}};e.default=a},"10ab":function(t,e,r){"use strict";e.byteLength=function(t){var e=l(t),r=e[0],n=e[1];return 3*(r+n)/4-n},e.toByteArray=function(t){var e,r,n=l(t),s=n[0],o=n[1],u=new a(function(t,e,r){return 3*(e+r)/4-r}(0,s,o)),c=0,A=o>0?s-4:s;for(r=0;r<A;r+=4)e=i[t.charCodeAt(r)]<<18|i[t.charCodeAt(r+1)]<<12|i[t.charCodeAt(r+2)]<<6|i[t.charCodeAt(r+3)],u[c++]=e>>16&255,u[c++]=e>>8&255,u[c++]=255&e;2===o&&(e=i[t.charCodeAt(r)]<<2|i[t.charCodeAt(r+1)]>>4,u[c++]=255&e);1===o&&(e=i[t.charCodeAt(r)]<<10|i[t.charCodeAt(r+1)]<<4|i[t.charCodeAt(r+2)]>>2,u[c++]=e>>8&255,u[c++]=255&e);return u},e.fromByteArray=function(t){for(var e,r=t.length,i=r%3,a=[],s=0,o=r-i;s<o;s+=16383)a.push(A(t,s,s+16383>o?o:s+16383));1===i?(e=t[r-1],a.push(n[e>>2]+n[e<<4&63]+"==")):2===i&&(e=(t[r-2]<<8)+t[r-1],a.push(n[e>>10]+n[e>>4&63]+n[e<<2&63]+"="));return a.join("")};for(var n=[],i=[],a="undefined"!==typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,u=s.length;o<u;++o)n[o]=s[o],i[s.charCodeAt(o)]=o;function l(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");-1===r&&(r=e);var n=r===e?0:4-r%4;return[r,n]}function c(t){return n[t>>18&63]+n[t>>12&63]+n[t>>6&63]+n[63&t]}function A(t,e,r){for(var n,i=[],a=e;a<r;a+=3)n=(t[a]<<16&16711680)+(t[a+1]<<8&65280)+(255&t[a+2]),i.push(c(n));return i.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},"112e":function(t,e){t.exports={dbName:"hongtao",dbPath:"_downloads/hongtao.db",isOpen:function(){var t=plus.sqlite.isOpenDatabase({name:this.dbName,path:this.dbPath});return t},openSqlite:function(){var t=this;return new Promise((function(e,r){plus.sqlite.openDatabase({name:t.dbName,path:t.dbPath,success:function(t){e(t)},fail:function(t){r(t)}})}))},closeSqlite:function(){var t=this;return new Promise((function(e,r){plus.sqlite.closeDatabase({name:t.dbName,success:function(t){e(t)},fail:function(t){r(t)}})}))},createTable:function(t,e){var r=this;return new Promise((function(n,i){plus.sqlite.executeSql({name:r.dbName,sql:"CREATE TABLE IF NOT EXISTS ".concat(t,"(").concat(e,")"),success:function(t){n(t)},fail:function(t){i(t)}})}))},dropTable:function(t){var e=this;return new Promise((function(r,n){plus.sqlite.executeSql({name:e.dbName,sql:"DROP TABLE ".concat(t),success:function(t){r(t)},fail:function(t){n(t)}})}))},insertTableData:function(t,e,r){var n=this;if(void 0!==t&&void 0!==e){var i="{}"==JSON.stringify(e);if(i)return new Promise((function(t,e){e("\u9519\u8bef\u6dfb\u52a0")}));if(void 0==r)var a="INSERT INTO ".concat(t," VALUES('").concat(e,"')");else a="INSERT INTO ".concat(t," (").concat(r,") VALUES(").concat(e,")");return new Promise((function(t,e){plus.sqlite.executeSql({name:n.dbName,sql:a,success:function(e){t(e)},fail:function(t){e(t)}})}))}return new Promise((function(t,e){e("\u9519\u8bef\u6dfb\u52a0")}))},insertOrReplaceData:function(t,e,r){var n=this;if(void 0!==t&&void 0!==e){if(void 0==r)var i="INSERT OR REPLACE INTO ".concat(t," VALUES('").concat(e,"')");else i="INSERT OR REPLACE INTO ".concat(t," (").concat(r,") VALUES(").concat(e,")");return new Promise((function(t,e){plus.sqlite.executeSql({name:n.dbName,sql:i,success:function(e){t(e)},fail:function(t){e(t)}})}))}return new Promise((function(t,e){e("\u9519\u8bef\u6dfb\u52a0")}))},selectTableData:function(t,e,r,n,i,a,s){var o=this;if(void 0!==t){if(void 0!==e&&void 0!==n&&void 0!==a)var u="SELECT * FROM ".concat(t," WHERE ").concat(e," = '").concat(r,"' AND ").concat(n," = '").concat(i,"' AND ").concat(a,"='").concat(s,"'");if(void 0!==e&&void 0!==n&&void 0==a)u="SELECT * FROM ".concat(t," WHERE ").concat(e," = '").concat(r,"' AND ").concat(n," = '").concat(i,"'");if(void 0!==e&&void 0==n&&void 0==a)u="SELECT * FROM ".concat(t," WHERE ").concat(e," = '").concat(r,"'");if(void 0==e)u="SELECT * FROM ".concat(t);return new Promise((function(t,e){plus.sqlite.selectSql({name:o.dbName,sql:u,success:function(e){t(e)},fail:function(t){e(t)}})}))}return new Promise((function(t,e){e("\u9519\u8bef\u67e5\u8be2")}))},deleteTableData:function(t,e,r,n,i){var a=this;if(void 0!==t){if(void 0==e)var s="DELETE FROM ".concat(t);else if(void 0!==n)s="DELETE FROM ".concat(t," WHERE ").concat(e," = '").concat(r,"' AND ").concat(n," = '").concat(i,"'");else s="DELETE FROM ".concat(t," WHERE ").concat(e," = '").concat(r,"'");return new Promise((function(t,e){plus.sqlite.executeSql({name:a.dbName,sql:s,success:function(e){t(e)},fail:function(t){e(t)}})}))}return new Promise((function(t,e){e("\u9519\u8bef\u5220\u9664")}))},updateTableData:function(t,e,r,n){var i=this;if(void 0==r)var a="UPDATE ".concat(t," SET ").concat(e);else a="UPDATE ".concat(t," SET ").concat(e," WHERE ").concat(r," = '").concat(n,"'");return new Promise((function(t,e){plus.sqlite.executeSql({name:i.dbName,sql:a,success:function(e){t(e)},fail:function(t){e(t)}})}))},pullSQL:function(t,e,r){var n=this;return new Promise((function(i,a){plus.sqlite.selectSql({name:n.dbName,sql:"SELECT * FROM ".concat(t," ORDER BY '").concat(e,"' DESC LIMIT 15 OFFSET '").concat(r,"'"),success:function(t){i(t)},fail:function(t){a(t)}})}))}}},"11ca":function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={listItem:{anchor:""}}},"127e":function(t,e,r){var n=r("3b2d"),i=r("9fc1")();t.exports=i;try{regeneratorRuntime=i}catch(a){"object"===("undefined"===typeof globalThis?"undefined":n(globalThis))?globalThis.regeneratorRuntime=i:Function("r","regeneratorRuntime = r")(i)}},1294:function(t,e,r){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];r?n||(n=!0,"function"===typeof t&&t(),setTimeout((function(){n=!1}),e)):n||(n=!0,setTimeout((function(){n=!1,"function"===typeof t&&t()}),e))};e.default=i},1297:function(t,e,r){"use strict";r.r(e);var n=r("396c"),i=r.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return n[t]}))}(a);e["default"]=i.a},"129d":function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={noticeBar:{text:function(){return[]},direction:"row",step:!1,icon:"volume",mode:"",color:"#f9ae3d",bgColor:"#fdf6ec",speed:80,fontSize:14,duration:2e3,disableTouch:!0,url:"",linkType:"navigateTo"}}},"12a8":function(t,e,r){var n,i,a,s=r("3b2d");(function(o,u,l){"object"===s(e)?t.exports=e=u(r("707d"),r("52d5")):(i=[r("707d"),r("52d5")],n=u,a="function"===typeof n?n.apply(e,i):n,void 0===a||(t.exports=a))})(0,(function(t){return function(e){var r=t,n=r.lib,i=n.WordArray,a=n.Hasher,s=r.x64,o=s.Word,u=r.algo,l=[],c=[],A=[];(function(){for(var t=1,e=0,r=0;r<24;r++){l[t+5*e]=(r+1)*(r+2)/2%64;var n=e%5,i=(2*t+3*e)%5;t=n,e=i}for(t=0;t<5;t++)for(e=0;e<5;e++)c[t+5*e]=e+(2*t+3*e)%5*5;for(var a=1,s=0;s<24;s++){for(var u=0,d=0,f=0;f<7;f++){if(1&a){var h=(1<<f)-1;h<32?d^=1<<h:u^=1<<h-32}128&a?a=a<<1^113:a<<=1}A[s]=o.create(u,d)}})();var d=[];(function(){for(var t=0;t<25;t++)d[t]=o.create()})();var f=u.SHA3=a.extend({cfg:a.cfg.extend({outputLength:512}),_doReset:function(){for(var t=this._state=[],e=0;e<25;e++)t[e]=new o.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(t,e){for(var r=this._state,n=this.blockSize/2,i=0;i<n;i++){var a=t[e+2*i],s=t[e+2*i+1];a=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),s=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8);var o=r[i];o.high^=s,o.low^=a}for(var u=0;u<24;u++){for(var f=0;f<5;f++){for(var h=0,p=0,g=0;g<5;g++){o=r[f+5*g];h^=o.high,p^=o.low}var v=d[f];v.high=h,v.low=p}for(f=0;f<5;f++){var m=d[(f+4)%5],y=d[(f+1)%5],w=y.high,b=y.low;for(h=m.high^(w<<1|b>>>31),p=m.low^(b<<1|w>>>31),g=0;g<5;g++){o=r[f+5*g];o.high^=h,o.low^=p}}for(var _=1;_<25;_++){o=r[_];var B=o.high,C=o.low,E=l[_];E<32?(h=B<<E|C>>>32-E,p=C<<E|B>>>32-E):(h=C<<E-32|B>>>64-E,p=B<<E-32|C>>>64-E);var x=d[c[_]];x.high=h,x.low=p}var T=d[0],S=r[0];T.high=S.high,T.low=S.low;for(f=0;f<5;f++)for(g=0;g<5;g++){_=f+5*g,o=r[_];var k=d[_],I=d[(f+1)%5+5*g],F=d[(f+2)%5+5*g];o.high=k.high^~I.high&F.high,o.low=k.low^~I.low&F.low}o=r[0];var L=A[u];o.high^=L.high,o.low^=L.low}},_doFinalize:function(){var t=this._data,r=t.words,n=(this._nDataBytes,8*t.sigBytes),a=32*this.blockSize;r[n>>>5]|=1<<24-n%32,r[(e.ceil((n+1)/a)*a>>>5)-1]|=128,t.sigBytes=4*r.length,this._process();for(var s=this._state,o=this.cfg.outputLength/8,u=o/8,l=[],c=0;c<u;c++){var A=s[c],d=A.high,f=A.low;d=16711935&(d<<8|d>>>24)|4278255360&(d<<24|d>>>8),f=16711935&(f<<8|f>>>24)|4278255360&(f<<24|f>>>8),l.push(f),l.push(d)}return new i.init(l,o)},clone:function(){for(var t=a.clone.call(this),e=t._state=this._state.slice(0),r=0;r<25;r++)e[r]=e[r].clone();return t}});r.SHA3=a._createHelper(f),r.HmacSHA3=a._createHmacHelper(f)}(Math),t.SHA3}))},"12e3":function(t,e,r){"use strict";(function(t){
/*!
 * The buffer module from node.js, for the browser.
 *
 * @author   Feross Aboukhadijeh <http://feross.org>
 * @license  MIT
 */
var n=r("10ab"),i=r("ba37"),a=r("b0e4");function s(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function o(t,e){if(s()<e)throw new RangeError("Invalid typed array length");return u.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e),t.__proto__=u.prototype):(null===t&&(t=new u(e)),t.length=e),t}function u(t,e,r){if(!u.TYPED_ARRAY_SUPPORT&&!(this instanceof u))return new u(t,e,r);if("number"===typeof t){if("string"===typeof e)throw new Error("If encoding is specified then the first argument must be a string");return A(this,t)}return l(this,t,e,r)}function l(t,e,r,n){if("number"===typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!==typeof ArrayBuffer&&e instanceof ArrayBuffer?function(t,e,r,n){if(e.byteLength,r<0||e.byteLength<r)throw new RangeError("'offset' is out of bounds");if(e.byteLength<r+(n||0))throw new RangeError("'length' is out of bounds");e=void 0===r&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,r):new Uint8Array(e,r,n);u.TYPED_ARRAY_SUPPORT?(t=e,t.__proto__=u.prototype):t=d(t,e);return t}(t,e,r,n):"string"===typeof e?function(t,e,r){"string"===typeof r&&""!==r||(r="utf8");if(!u.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var n=0|h(e,r);t=o(t,n);var i=t.write(e,r);i!==n&&(t=t.slice(0,i));return t}(t,e,r):function(t,e){if(u.isBuffer(e)){var r=0|f(e.length);return t=o(t,r),0===t.length?t:(e.copy(t,0,0,r),t)}if(e){if("undefined"!==typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!==typeof e.length||function(t){return t!==t}(e.length)?o(t,0):d(t,e);if("Buffer"===e.type&&a(e.data))return d(t,e.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,e)}function c(t){if("number"!==typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function A(t,e){if(c(e),t=o(t,e<0?0:0|f(e)),!u.TYPED_ARRAY_SUPPORT)for(var r=0;r<e;++r)t[r]=0;return t}function d(t,e){var r=e.length<0?0:0|f(e.length);t=o(t,r);for(var n=0;n<r;n+=1)t[n]=255&e[n];return t}function f(t){if(t>=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|t}function h(t,e){if(u.isBuffer(t))return t.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!==typeof t&&(t=""+t);var r=t.length;if(0===r)return 0;for(var n=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return N(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return H(t).length;default:if(n)return N(t).length;e=(""+e).toLowerCase(),n=!0}}function p(t,e,r){var n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if(r>>>=0,e>>>=0,r<=e)return"";t||(t="utf8");while(1)switch(t){case"hex":return k(this,e,r);case"utf8":case"utf-8":return x(this,e,r);case"ascii":return T(this,e,r);case"latin1":case"binary":return S(this,e,r);case"base64":return E(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function g(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function v(t,e,r,n,i){if(0===t.length)return-1;if("string"===typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(i)return-1;r=t.length-1}else if(r<0){if(!i)return-1;r=0}if("string"===typeof e&&(e=u.from(e,n)),u.isBuffer(e))return 0===e.length?-1:m(t,e,r,n,i);if("number"===typeof e)return e&=255,u.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):m(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function m(t,e,r,n,i){var a,s=1,o=t.length,u=e.length;if(void 0!==n&&(n=String(n).toLowerCase(),"ucs2"===n||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;s=2,o/=2,u/=2,r/=2}function l(t,e){return 1===s?t[e]:t.readUInt16BE(e*s)}if(i){var c=-1;for(a=r;a<o;a++)if(l(t,a)===l(e,-1===c?0:a-c)){if(-1===c&&(c=a),a-c+1===u)return c*s}else-1!==c&&(a-=a-c),c=-1}else for(r+u>o&&(r=o-u),a=r;a>=0;a--){for(var A=!0,d=0;d<u;d++)if(l(t,a+d)!==l(e,d)){A=!1;break}if(A)return a}return-1}function y(t,e,r,n){r=Number(r)||0;var i=t.length-r;n?(n=Number(n),n>i&&(n=i)):n=i;var a=e.length;if(a%2!==0)throw new TypeError("Invalid hex string");n>a/2&&(n=a/2);for(var s=0;s<n;++s){var o=parseInt(e.substr(2*s,2),16);if(isNaN(o))return s;t[r+s]=o}return s}function w(t,e,r,n){return $(N(e,t.length-r),t,r,n)}function b(t,e,r,n){return $(function(t){for(var e=[],r=0;r<t.length;++r)e.push(255&t.charCodeAt(r));return e}(e),t,r,n)}function _(t,e,r,n){return b(t,e,r,n)}function B(t,e,r,n){return $(H(e),t,r,n)}function C(t,e,r,n){return $(function(t,e){for(var r,n,i,a=[],s=0;s<t.length;++s){if((e-=2)<0)break;r=t.charCodeAt(s),n=r>>8,i=r%256,a.push(i),a.push(n)}return a}(e,t.length-r),t,r,n)}function E(t,e,r){return 0===e&&r===t.length?n.fromByteArray(t):n.fromByteArray(t.slice(e,r))}function x(t,e,r){r=Math.min(t.length,r);var n=[],i=e;while(i<r){var a,s,o,u,l=t[i],c=null,A=l>239?4:l>223?3:l>191?2:1;if(i+A<=r)switch(A){case 1:l<128&&(c=l);break;case 2:a=t[i+1],128===(192&a)&&(u=(31&l)<<6|63&a,u>127&&(c=u));break;case 3:a=t[i+1],s=t[i+2],128===(192&a)&&128===(192&s)&&(u=(15&l)<<12|(63&a)<<6|63&s,u>2047&&(u<55296||u>57343)&&(c=u));break;case 4:a=t[i+1],s=t[i+2],o=t[i+3],128===(192&a)&&128===(192&s)&&128===(192&o)&&(u=(15&l)<<18|(63&a)<<12|(63&s)<<6|63&o,u>65535&&u<1114112&&(c=u))}null===c?(c=65533,A=1):c>65535&&(c-=65536,n.push(c>>>10&1023|55296),c=56320|1023&c),n.push(c),i+=A}return function(t){var e=t.length;if(e<=4096)return String.fromCharCode.apply(String,t);var r="",n=0;while(n<e)r+=String.fromCharCode.apply(String,t.slice(n,n+=4096));return r}(n)}e.Buffer=u,e.SlowBuffer=function(t){+t!=t&&(t=0);return u.alloc(+t)},e.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"===typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(e){return!1}}(),e.kMaxLength=s(),u.poolSize=8192,u._augment=function(t){return t.__proto__=u.prototype,t},u.from=function(t,e,r){return l(null,t,e,r)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,"undefined"!==typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(t,e,r){return function(t,e,r,n){return c(e),e<=0?o(t,e):void 0!==r?"string"===typeof n?o(t,e).fill(r,n):o(t,e).fill(r):o(t,e)}(null,t,e,r)},u.allocUnsafe=function(t){return A(null,t)},u.allocUnsafeSlow=function(t){return A(null,t)},u.isBuffer=function(t){return!(null==t||!t._isBuffer)},u.compare=function(t,e){if(!u.isBuffer(t)||!u.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var r=t.length,n=e.length,i=0,a=Math.min(r,n);i<a;++i)if(t[i]!==e[i]){r=t[i],n=e[i];break}return r<n?-1:n<r?1:0},u.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(t,e){if(!a(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return u.alloc(0);var r;if(void 0===e)for(e=0,r=0;r<t.length;++r)e+=t[r].length;var n=u.allocUnsafe(e),i=0;for(r=0;r<t.length;++r){var s=t[r];if(!u.isBuffer(s))throw new TypeError('"list" argument must be an Array of Buffers');s.copy(n,i),i+=s.length}return n},u.byteLength=h,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)g(this,e,e+1);return this},u.prototype.swap32=function(){var t=this.length;if(t%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)g(this,e,e+3),g(this,e+1,e+2);return this},u.prototype.swap64=function(){var t=this.length;if(t%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)g(this,e,e+7),g(this,e+1,e+6),g(this,e+2,e+5),g(this,e+3,e+4);return this},u.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?x(this,0,t):p.apply(this,arguments)},u.prototype.equals=function(t){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===u.compare(this,t)},u.prototype.inspect=function(){var t="",r=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(t+=" ... ")),"<Buffer "+t+">"},u.prototype.compare=function(t,e,r,n,i){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),e<0||r>t.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&e>=r)return 0;if(n>=i)return-1;if(e>=r)return 1;if(e>>>=0,r>>>=0,n>>>=0,i>>>=0,this===t)return 0;for(var a=i-n,s=r-e,o=Math.min(a,s),l=this.slice(n,i),c=t.slice(e,r),A=0;A<o;++A)if(l[A]!==c[A]){a=l[A],s=c[A];break}return a<s?-1:s<a?1:0},u.prototype.includes=function(t,e,r){return-1!==this.indexOf(t,e,r)},u.prototype.indexOf=function(t,e,r){return v(this,t,e,r,!0)},u.prototype.lastIndexOf=function(t,e,r){return v(this,t,e,r,!1)},u.prototype.write=function(t,e,r,n){if(void 0===e)n="utf8",r=this.length,e=0;else if(void 0===r&&"string"===typeof e)n=e,r=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(r)?(r|=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var i=this.length-e;if((void 0===r||r>i)&&(r=i),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var a=!1;;)switch(n){case"hex":return y(this,t,e,r);case"utf8":case"utf-8":return w(this,t,e,r);case"ascii":return b(this,t,e,r);case"latin1":case"binary":return _(this,t,e,r);case"base64":return B(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,t,e,r);default:if(a)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),a=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function T(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(127&t[i]);return n}function S(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(t[i]);return n}function k(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var i="",a=e;a<r;++a)i+=Q(t[a]);return i}function I(t,e,r){for(var n=t.slice(e,r),i="",a=0;a<n.length;a+=2)i+=String.fromCharCode(n[a]+256*n[a+1]);return i}function F(t,e,r){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}function L(t,e,r,n,i,a){if(!u.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<a)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}function D(t,e,r,n){e<0&&(e=65535+e+1);for(var i=0,a=Math.min(t.length-r,2);i<a;++i)t[r+i]=(e&255<<8*(n?i:1-i))>>>8*(n?i:1-i)}function R(t,e,r,n){e<0&&(e=4294967295+e+1);for(var i=0,a=Math.min(t.length-r,4);i<a;++i)t[r+i]=e>>>8*(n?i:3-i)&255}function U(t,e,r,n,i,a){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function O(t,e,r,n,a){return a||U(t,0,r,4),i.write(t,e,r,n,23,4),r+4}function P(t,e,r,n,a){return a||U(t,0,r,8),i.write(t,e,r,n,52,8),r+8}u.prototype.slice=function(t,e){var r,n=this.length;if(t=~~t,e=void 0===e?n:~~e,t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),e<t&&(e=t),u.TYPED_ARRAY_SUPPORT)r=this.subarray(t,e),r.__proto__=u.prototype;else{var i=e-t;r=new u(i,void 0);for(var a=0;a<i;++a)r[a]=this[a+t]}return r},u.prototype.readUIntLE=function(t,e,r){t|=0,e|=0,r||F(t,e,this.length);var n=this[t],i=1,a=0;while(++a<e&&(i*=256))n+=this[t+a]*i;return n},u.prototype.readUIntBE=function(t,e,r){t|=0,e|=0,r||F(t,e,this.length);var n=this[t+--e],i=1;while(e>0&&(i*=256))n+=this[t+--e]*i;return n},u.prototype.readUInt8=function(t,e){return e||F(t,1,this.length),this[t]},u.prototype.readUInt16LE=function(t,e){return e||F(t,2,this.length),this[t]|this[t+1]<<8},u.prototype.readUInt16BE=function(t,e){return e||F(t,2,this.length),this[t]<<8|this[t+1]},u.prototype.readUInt32LE=function(t,e){return e||F(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},u.prototype.readUInt32BE=function(t,e){return e||F(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},u.prototype.readIntLE=function(t,e,r){t|=0,e|=0,r||F(t,e,this.length);var n=this[t],i=1,a=0;while(++a<e&&(i*=256))n+=this[t+a]*i;return i*=128,n>=i&&(n-=Math.pow(2,8*e)),n},u.prototype.readIntBE=function(t,e,r){t|=0,e|=0,r||F(t,e,this.length);var n=e,i=1,a=this[t+--n];while(n>0&&(i*=256))a+=this[t+--n]*i;return i*=128,a>=i&&(a-=Math.pow(2,8*e)),a},u.prototype.readInt8=function(t,e){return e||F(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},u.prototype.readInt16LE=function(t,e){e||F(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt16BE=function(t,e){e||F(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt32LE=function(t,e){return e||F(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},u.prototype.readInt32BE=function(t,e){return e||F(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},u.prototype.readFloatLE=function(t,e){return e||F(t,4,this.length),i.read(this,t,!0,23,4)},u.prototype.readFloatBE=function(t,e){return e||F(t,4,this.length),i.read(this,t,!1,23,4)},u.prototype.readDoubleLE=function(t,e){return e||F(t,8,this.length),i.read(this,t,!0,52,8)},u.prototype.readDoubleBE=function(t,e){return e||F(t,8,this.length),i.read(this,t,!1,52,8)},u.prototype.writeUIntLE=function(t,e,r,n){if(t=+t,e|=0,r|=0,!n){var i=Math.pow(2,8*r)-1;L(this,t,e,r,i,0)}var a=1,s=0;this[e]=255&t;while(++s<r&&(a*=256))this[e+s]=t/a&255;return e+r},u.prototype.writeUIntBE=function(t,e,r,n){if(t=+t,e|=0,r|=0,!n){var i=Math.pow(2,8*r)-1;L(this,t,e,r,i,0)}var a=r-1,s=1;this[e+a]=255&t;while(--a>=0&&(s*=256))this[e+a]=t/s&255;return e+r},u.prototype.writeUInt8=function(t,e,r){return t=+t,e|=0,r||L(this,t,e,1,255,0),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},u.prototype.writeUInt16LE=function(t,e,r){return t=+t,e|=0,r||L(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):D(this,t,e,!0),e+2},u.prototype.writeUInt16BE=function(t,e,r){return t=+t,e|=0,r||L(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):D(this,t,e,!1),e+2},u.prototype.writeUInt32LE=function(t,e,r){return t=+t,e|=0,r||L(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):R(this,t,e,!0),e+4},u.prototype.writeUInt32BE=function(t,e,r){return t=+t,e|=0,r||L(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):R(this,t,e,!1),e+4},u.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e|=0,!n){var i=Math.pow(2,8*r-1);L(this,t,e,r,i-1,-i)}var a=0,s=1,o=0;this[e]=255&t;while(++a<r&&(s*=256))t<0&&0===o&&0!==this[e+a-1]&&(o=1),this[e+a]=(t/s>>0)-o&255;return e+r},u.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e|=0,!n){var i=Math.pow(2,8*r-1);L(this,t,e,r,i-1,-i)}var a=r-1,s=1,o=0;this[e+a]=255&t;while(--a>=0&&(s*=256))t<0&&0===o&&0!==this[e+a+1]&&(o=1),this[e+a]=(t/s>>0)-o&255;return e+r},u.prototype.writeInt8=function(t,e,r){return t=+t,e|=0,r||L(this,t,e,1,127,-128),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},u.prototype.writeInt16LE=function(t,e,r){return t=+t,e|=0,r||L(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):D(this,t,e,!0),e+2},u.prototype.writeInt16BE=function(t,e,r){return t=+t,e|=0,r||L(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):D(this,t,e,!1),e+2},u.prototype.writeInt32LE=function(t,e,r){return t=+t,e|=0,r||L(this,t,e,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):R(this,t,e,!0),e+4},u.prototype.writeInt32BE=function(t,e,r){return t=+t,e|=0,r||L(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):R(this,t,e,!1),e+4},u.prototype.writeFloatLE=function(t,e,r){return O(this,t,e,!0,r)},u.prototype.writeFloatBE=function(t,e,r){return O(this,t,e,!1,r)},u.prototype.writeDoubleLE=function(t,e,r){return P(this,t,e,!0,r)},u.prototype.writeDoubleBE=function(t,e,r){return P(this,t,e,!1,r)},u.prototype.copy=function(t,e,r,n){if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e<n-r&&(n=t.length-e+r);var i,a=n-r;if(this===t&&r<e&&e<n)for(i=a-1;i>=0;--i)t[i+e]=this[i+r];else if(a<1e3||!u.TYPED_ARRAY_SUPPORT)for(i=0;i<a;++i)t[i+e]=this[i+r];else Uint8Array.prototype.set.call(t,this.subarray(r,r+a),e);return a},u.prototype.fill=function(t,e,r,n){if("string"===typeof t){if("string"===typeof e?(n=e,e=0,r=this.length):"string"===typeof r&&(n=r,r=this.length),1===t.length){var i=t.charCodeAt(0);i<256&&(t=i)}if(void 0!==n&&"string"!==typeof n)throw new TypeError("encoding must be a string");if("string"===typeof n&&!u.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"===typeof t&&(t&=255);if(e<0||this.length<e||this.length<r)throw new RangeError("Out of range index");if(r<=e)return this;var a;if(e>>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"===typeof t)for(a=e;a<r;++a)this[a]=t;else{var s=u.isBuffer(t)?t:N(new u(t,n).toString()),o=s.length;for(a=0;a<r-e;++a)this[a+e]=s[a%o]}return this};var M=/[^+\/0-9A-Za-z-_]/g;function Q(t){return t<16?"0"+t.toString(16):t.toString(16)}function N(t,e){var r;e=e||1/0;for(var n=t.length,i=null,a=[],s=0;s<n;++s){if(r=t.charCodeAt(s),r>55295&&r<57344){if(!i){if(r>56319){(e-=3)>-1&&a.push(239,191,189);continue}if(s+1===n){(e-=3)>-1&&a.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&a.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(e-=3)>-1&&a.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;a.push(r)}else if(r<2048){if((e-=2)<0)break;a.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;a.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return a}function H(t){return n.toByteArray(function(t){if(t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(M,""),t.length<2)return"";while(t.length%4!==0)t+="=";return t}(t))}function $(t,e,r,n){for(var i=0;i<n;++i){if(i+r>=e.length||i>=t.length)break;e[i+r]=t[i]}return i}}).call(this,r("0ee4"))},"133f":function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={alert:{title:"",type:"warning",description:"",closable:!1,showIcon:!1,effect:"light",center:!1,fontSize:14}}},1341:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={checkbox:{name:"",shape:"",size:"",checkbox:!1,disabled:"",activeColor:"",inactiveColor:"",iconSize:"",iconColor:"",label:"",labelSize:"",labelColor:"",labelDisabled:""}}},1490:function(t,e,r){"use strict";r.r(e);var n=r("e682"),i=r.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return n[t]}))}(a);e["default"]=i.a},"14c7":function(t,e,r){"use strict";(function(t){var n=r("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(r("127e")),a=n(r("34cf")),s=n(r("ee10")),o=n(r("329a")),u=n(r("84ac"));function l(t,e){var r="undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(!t)return;if("string"===typeof t)return c(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return c(t,e)}(t))||e&&t&&"number"===typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},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 a,s=!0,o=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return s=t.done,t},e:function(t){o=!0,a=t},f:function(){try{s||null==r.return||r.return()}finally{if(o)throw a}}}}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var A={components:{downloadItem:u.default},data:function(){return{isEmpty:!1,loaded:!1,fileArr:[],isDeleteMode:!1,checked:[]}},methods:{selectAll:function(){var t=this;this.fileArr.map((function(e,r){t.checked.includes(e.name)||(t.checked.push(e.name),e.is_checked=!0)}))},deldownload:function(){var t=this;return(0,s.default)(i.default.mark((function e(){var r,n,s,u,c;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!(t.checked.length>0&&t.fileArr.length>0)){e.next=20;break}r=[],n=l(t.fileArr.entries()),e.prev=3,u=i.default.mark((function t(){var e,n,u;return i.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e=(0,a.default)(s.value,2),n=e[0],u=e[1],!0!==u.is_checked){t.next=5;break}return t.next=4,o.default.deleteFileWithPath(u.fullPath).then((function(t){var e=u;o.default.clearSuccessFileName(e.name);for(var r=JSON.parse(uni.getStorageSync("Download-Success")),n=0;n<r.length;n++)r[n]==u.localPath&&r.splice(n,1);uni.setStorageSync("Download-Success",JSON.stringify(r))}));case 4:r.push(n);case 5:case"end":return t.stop()}}),t)})),n.s();case 6:if((s=n.n()).done){e.next=10;break}return e.delegateYield(u(),"t0",8);case 8:e.next=6;break;case 10:e.next=15;break;case 12:e.prev=12,e.t1=e["catch"](3),n.e(e.t1);case 15:return e.prev=15,n.f(),e.finish(15);case 18:for(c=r.length-1;c>=0;c--)t.fileArr.splice(r[c],1);t.checked=[];case 20:case"end":return e.stop()}}),e,null,[[3,12,15,18]])})))()},changeCheck:function(t){var e=this;this.checked=t.detail.value,this.fileArr.map((function(t){e.checked.includes(t.name)?t.is_checked=!0:t.is_checked=!1}))},showDelete:function(t){this.isDeleteMode=t},deleteFile:function(e,r){var n=this;return(0,s.default)(i.default.mark((function a(){return i.default.wrap((function(i){while(1)switch(i.prev=i.next){case 0:return i.next=2,o.default.deleteFileWithPath(e).then((function(i){for(var a=0;a<n.fileArr.length;a++){var s=n.fileArr[0];s.fullPath==e&&(n.fileArr.splice(a,1),t("log",s.name," at pages/user/download-class.vue:105"),o.default.clearSuccessFileName(s.name))}for(var u=JSON.parse(uni.getStorageSync("Download-Success")),l=0;l<u.length;l++)t("log",u[l]," at pages/user/download-class.vue:112"),u[l]==r&&(u.splice(l,1),t("log",u," at pages/user/download-class.vue:115"));uni.setStorageSync("Download-Success",JSON.stringify(u))}));case 2:case"end":return i.stop()}}),a)})))()},init:function(){var e=this;return(0,s.default)(i.default.mark((function r(){return i.default.wrap((function(r){while(1)switch(r.prev=r.next){case 0:return r.next=2,o.default.getSuccessVideoFiles().then((function(r){t("log",r," at pages/user/download-class.vue:124"),e.fileArr=r,e.isEmpty=0==r.length}));case 2:case"end":return r.stop()}}),r)})))()}}};e.default=A}).call(this,r("f3b9")["default"])},"14d2":function(t,e,r){"use strict";var n=r("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(r("127e")),a=n(r("ee10")),s=n(r("d3ef")),o=s.default.commentDig,u={get:function(t){return(0,a.default)(i.default.mark((function e(){return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,o.get(t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})))()},add:function(t){return(0,a.default)(i.default.mark((function e(){return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,o.add(t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})))()},update:function(t,e){return(0,a.default)(i.default.mark((function r(){return i.default.wrap((function(r){while(1)switch(r.prev=r.next){case 0:return r.next=2,o.update(t,e);case 2:return r.abrupt("return",r.sent);case 3:case"end":return r.stop()}}),r)})))()}};e.default=u},"15b7":function(t,e,r){"use strict";r.r(e);var n=r("4822"),i=r.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return n[t]}))}(a);e["default"]=i.a},"15ce":function(t,e,r){"use strict";r.r(e);var n=r("a17a"),i=r("fd28");for(var a in i)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return i[t]}))}(a);var s=r("828b"),o=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);e["default"]=o.exports},"15d6":function(t,e,r){"use strict";(function(t){var n=r("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(r("3b2d")),a=function(){function e(t,e){return null!=e&&t instanceof e}var r,n,a;try{r=Map}catch(l){r=function(){}}try{n=Set}catch(l){n=function(){}}try{a=Promise}catch(l){a=function(){}}function s(o,l,c,A,d){"object"===(0,i.default)(l)&&(c=l.depth,A=l.prototype,d=l.includeNonEnumerable,l=l.circular);var f=[],h=[],p="undefined"!=typeof t;return"undefined"==typeof l&&(l=!0),"undefined"==typeof c&&(c=1/0),function o(c,g){if(null===c)return null;if(0===g)return c;var v,m;if("object"!=(0,i.default)(c))return c;if(e(c,r))v=new r;else if(e(c,n))v=new n;else if(e(c,a))v=new a((function(t,e){c.then((function(e){t(o(e,g-1))}),(function(t){e(o(t,g-1))}))}));else if(s.__isArray(c))v=[];else if(s.__isRegExp(c))v=new RegExp(c.source,u(c)),c.lastIndex&&(v.lastIndex=c.lastIndex);else if(s.__isDate(c))v=new Date(c.getTime());else{if(p&&t.isBuffer(c))return t.from?v=t.from(c):(v=new t(c.length),c.copy(v)),v;e(c,Error)?v=Object.create(c):"undefined"==typeof A?(m=Object.getPrototypeOf(c),v=Object.create(m)):(v=Object.create(A),m=A)}if(l){var y=f.indexOf(c);if(-1!=y)return h[y];f.push(c),h.push(v)}for(var w in e(c,r)&&c.forEach((function(t,e){var r=o(e,g-1),n=o(t,g-1);v.set(r,n)})),e(c,n)&&c.forEach((function(t){var e=o(t,g-1);v.add(e)})),c){var b=Object.getOwnPropertyDescriptor(c,w);b&&(v[w]=o(c[w],g-1));try{var _=Object.getOwnPropertyDescriptor(c,w);if("undefined"===_.set)continue;v[w]=o(c[w],g-1)}catch(S){if(S instanceof TypeError)continue;if(S instanceof ReferenceError)continue}}if(Object.getOwnPropertySymbols){var B=Object.getOwnPropertySymbols(c);for(w=0;w<B.length;w++){var C=B[w],E=Object.getOwnPropertyDescriptor(c,C);(!E||E.enumerable||d)&&(v[C]=o(c[C],g-1),Object.defineProperty(v,C,E))}}if(d){var x=Object.getOwnPropertyNames(c);for(w=0;w<x.length;w++){var T=x[w];E=Object.getOwnPropertyDescriptor(c,T);E&&E.enumerable||(v[T]=o(c[T],g-1),Object.defineProperty(v,T,E))}}return v}(o,c)}function o(t){return Object.prototype.toString.call(t)}function u(t){var e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),e}return s.clonePrototype=function(t){if(null===t)return null;var e=function(){};return e.prototype=t,new e},s.__objToStr=o,s.__isDate=function(t){return"object"===(0,i.default)(t)&&"[object Date]"===o(t)},s.__isArray=function(t){return"object"===(0,i.default)(t)&&"[object Array]"===o(t)},s.__isRegExp=function(t){return"object"===(0,i.default)(t)&&"[object RegExp]"===o(t)},s.__getRegExpFlags=u,s}(),s=a;e.default=s}).call(this,r("12e3").Buffer)},"15eb":function(t,e,r){"use strict";r.d(e,"b",(function(){return n})),r.d(e,"c",(function(){return i})),r.d(e,"a",(function(){}));var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("view",{staticClass:t._$s(0,"sc","download-item"),attrs:{_i:0}},[r("view",{staticClass:t._$s(1,"sc","download-info"),attrs:{_i:1},on:{click:t.govideo}},[r("view",{staticClass:t._$s(2,"sc","info"),attrs:{_i:2}},[r("view",{staticClass:t._$s(3,"sc","download-name"),attrs:{_i:3}},[t._v(t._$s(3,"t0-0",t._s(t.item.name)))]),r("view",{staticClass:t._$s(4,"sc","download-size"),attrs:{_i:4}},[t._v(t._$s(4,"t0-0",t._s(t.changeSize(t.item.size))))]),r("view",{staticClass:t._$s(5,"sc","download-time"),attrs:{_i:5}},[t._v(t._$s(5,"t0-0",t._s(t.changeTime(t.item.time))))])]),r("view",{directives:[{name:"show",rawName:"v-show",value:t._$s(6,"v-show",t.canDelete),expression:"_$s(6,'v-show',canDelete)"}],staticClass:t._$s(6,"sc","download-delete"),attrs:{_i:6}},[r("view",{attrs:{_i:7},on:{click:function(e){return e.stopPropagation(),t.deleteFile(e)}}})])])])},i=[]},1696:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={circleProgress:{percentage:30}}},"16a9":function(t,e,r){"use strict";r.d(e,"b",(function(){return i})),r.d(e,"c",(function(){return a})),r.d(e,"a",(function(){return n}));var n={uniTransition:r("c034").default},i=function(){var t=this,e=t.$createElement,r=t._self._c||e;return t._$s(0,"i",t.showPopup)?r("view",{staticClass:t._$s(0,"sc","uni-popup"),class:t._$s(0,"c",[t.popupstyle,t.isDesktop?"fixforpc-z-index":""]),attrs:{_i:0}},[r("view",{attrs:{_i:1},on:{touchstart:t.touchstart}},[t._$s(2,"i",t.maskShow)?r("uni-transition",{key:"1",attrs:{name:"mask","mode-class":"fade",styles:t.maskClass,duration:t.duration,show:t.showTrans,_i:2},on:{click:t.onTap}}):t._e(),r("uni-transition",{key:"2",attrs:{"mode-class":t.ani,name:"content",styles:t.transClass,duration:t.duration,show:t.showTrans,_i:3},on:{click:t.onTap}},[r("view",{staticClass:t._$s(4,"sc","uni-popup__wrapper"),class:t._$s(4,"c",[t.popupstyle]),style:t._$s(4,"s",{backgroundColor:t.bg}),attrs:{_i:4},on:{click:t.clear}},[t._t("default",null,{_i:5})],2)])],1)]):t._e()},a=[]},"16da":function(t,e,r){"use strict";r.r(e);var n=r("8cc3"),i=r.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return n[t]}))}(a);e["default"]=i.a},"170b":function(t,e,r){"use strict";(function(t){var n=r("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(r("127e")),a=n(r("ee10")),s=n(r("915f")),o=n(r("42eb")),u=n(r("4231")),l=r("0f81"),c={components:{vodItem:o.default,headerNav:s.default,vodImage:u.default},data:function(){return{id:0,data:{},loading:!1}},onLoad:function(t){t.id&&(this.id=parseInt(t.id)),this.getData()},methods:{errorimg:function(){var t=this;this.error(this.data.actor_pic).then((function(e){t.data.actor_pic=e}))},getData:function(){var e=this;return(0,a.default)(i.default.mark((function r(){return i.default.wrap((function(r){while(1)switch(r.prev=r.next){case 0:return e.loading=!0,r.next=3,l.app.actorDetails(e.id).then((function(r){1==r.code?(t("log",r," at pages/album/actor-details.vue:56"),e.data=r.data,l.app.updateHits(e.id,3)):(uni.showToast({icon:"none",title:r.msg,duration:3e3}),setTimeout((function(){e.back()}),1500))})).catch((function(t){setTimeout((function(){e.back()}),1500)}));case 3:e.loading=!1;case 4:case"end":return r.stop()}}),r)})))()}}};e.default=c}).call(this,r("f3b9")["default"])},1712:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={radioGroup:{value:"",disabled:!1,shape:"circle",activeColor:"#2979ff",inactiveColor:"#c8c9cc",name:"",size:18,placement:"row",label:"",labelColor:"#303133",labelSize:14,labelDisabled:!1,iconColor:"#ffffff",iconSize:12,borderBottom:!1,iconPlacement:"left"}}},1796:function(t,e,r){"use strict";var n=r("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(r("1977")),a={name:"u-tag",mixins:[uni.$u.mpMixin,uni.$u.mixin,i.default],data:function(){return{}},computed:{style:function(){var t={};return this.bgColor&&(t.backgroundColor=this.bgColor),this.color&&(t.color=this.color),this.borderColor&&(t.borderColor=this.borderColor),t},textColor:function(){var t={};return this.color&&(t.color=this.color),t},imgStyle:function(){var t="large"===this.size?"17px":"medium"===this.size?"15px":"13px";return{width:t,height:t}},closeSize:function(){var t="large"===this.size?15:"medium"===this.size?13:12;return t},iconSize:function(){var t="large"===this.size?21:"medium"===this.size?19:16;return t},elIconColor:function(){return this.iconColor?this.iconColor:this.plain?this.type:"#ffffff"}},methods:{closeHandler:function(){this.$emit("close",this.name)},clickHandler:function(){this.$emit("click",this.name)}}};e.default=a},"18ce":function(t,e,r){"use strict";r.r(e);var n=r("c2d4"),i=r("8813");for(var a in i)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return i[t]}))}(a);var s=r("828b"),o=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);e["default"]=o.exports},1977:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={props:{type:{type:String,default:uni.$u.props.tag.type},disabled:{type:[Boolean,String],default:uni.$u.props.tag.disabled},size:{type:String,default:uni.$u.props.tag.size},shape:{type:String,default:uni.$u.props.tag.shape},text:{type:[String,Number],default:uni.$u.props.tag.text},bgColor:{type:String,default:uni.$u.props.tag.bgColor},color:{type:String,default:uni.$u.props.tag.color},borderColor:{type:String,default:uni.$u.props.tag.borderColor},closeColor:{type:String,default:uni.$u.props.tag.closeColor},name:{type:[String,Number],default:uni.$u.props.tag.name},plainFill:{type:Boolean,default:uni.$u.props.tag.plainFill},plain:{type:Boolean,default:uni.$u.props.tag.plain},closable:{type:Boolean,default:uni.$u.props.tag.closable},show:{type:Boolean,default:uni.$u.props.tag.show},icon:{type:String,default:uni.$u.props.tag.icon}}};e.default=n},"199c":function(t,e,r){"use strict";r.r(e);var n=r("b25d"),i=r("537e");for(var a in i)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return i[t]}))}(a);var s=r("828b"),o=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);e["default"]=o.exports},"1a4f":function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={modal:{show:!1,title:"",content:"",confirmText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",showConfirmButton:!0,showCancelButton:!1,confirmColor:"#2979ff",cancelColor:"#606266",buttonReverse:!1,zoom:!0,asyncClose:!1,closeOnClickOverlay:!1,negativeTop:0,width:"650rpx",confirmButtonShape:""}}},"1ab4":function(t,e,r){"use strict";r.r(e);var n=r("66e9"),i=r("4521");for(var a in i)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return i[t]}))}(a);var s=r("828b"),o=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);e["default"]=o.exports},"1abb":function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={rowNotice:{text:"",icon:"volume",mode:"",color:"#f9ae3d",bgColor:"#fdf6ec",fontSize:14,speed:80}}},"1b6d":function(t,e,r){"use strict";r.r(e);var n=r("4457"),i=r.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return n[t]}))}(a);e["default"]=i.a},"1c96":function(t,e,r){"use strict";r.r(e);var n=r("7d43"),i=r("a792");for(var a in i)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return i[t]}))}(a);var s=r("828b"),o=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);e["default"]=o.exports},"1da7":function(t,e,r){"use strict";var n=r("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(r("127e")),a=n(r("ee10")),s=n(r("9278")),o=n(r("ee78")),u=r("0f81"),l={components:{changeAvatar:s.default,changeNickname:o.default},data:function(){return{user:{},descShow:!1}},onLoad:function(){var t=this;return(0,a.default)(i.default.mark((function e(){var r;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$onLaunched;case 2:r=getApp().globalData.userToken,r?t.getInfo():uni.redirectTo({url:"/pages/user/login"});case 4:case"end":return e.stop()}}),e)})))()},methods:{getInfo:function(){var t=this;return(0,a.default)(i.default.mark((function e(){var r;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,u.user.info().then(r);case 2:r=e.sent,1==r.code&&(t.user=r.data.user);case 4:case"end":return e.stop()}}),e)})))()},logout1:function(){var t=this;uni.removeStorage({key:"user_token",success:function(){getApp().globalData.share.code="",getApp().globalData.userToken="",uni.setStorageSync("avatar",""),t.descShow=!1,uni.showToast({icon:"none",title:"\u63d0\u4ea4\u6ce8\u9500\u540e\uff0c5\u5929\u5185\u4ecd\u7136\u6709\u6548\uff0c5\u5929\u540e\u518d\u6b63\u5f0f\u5220\u9664\u3002",duration:3e3}),setTimeout((function(){uni.switchTab({url:"/pages/user/index"})}),1500)}})},avatar:function(){this.$refs.avatar.show=!0},nickname:function(){this.$refs.nickname.show=!0},changeAvatar:function(t){var e=this;uni.showLoading({title:"\u6b63\u5728\u4fdd\u5b58",mask:!0}),u.user.change("portrait",t).then((function(r){uni.showToast({icon:"none",title:r.msg,duration:3e3}),1===r.code&&(e.user.user_portrait="/static/avatar/"+t)})).catch((function(t){}))},changeNickname:function(t){var e=this;return(0,a.default)(i.default.mark((function r(){return i.default.wrap((function(r){while(1)switch(r.prev=r.next){case 0:return r.next=2,u.user.change("nick_name",t).then((function(r){uni.showToast({icon:"none",title:r.msg,duration:3e3}),1===r.code&&(e.user.user_nick_name=t,e.$refs.nickname.show=!1)})).catch((function(t){}));case 2:e.$refs.nickname.loading=!1;case 3:case"end":return r.stop()}}),r)})))()},changeSex:function(t){var e=this;uni.showLoading({title:"\u6b63\u5728\u4fdd\u5b58",mask:!0}),u.user.change("sex",t).then((function(r){uni.showToast({icon:"none",title:r.msg,duration:3e3}),1===r.code&&(e.user.user_sex=t)})).catch((function(t){}))},logout:function(){uni.showModal({title:"\u9000\u51fa\u5f53\u524d\u8d26\u53f7",content:"\u786e\u8ba4\u9000\u51fa\u5f53\u524d\u8d26\u53f7\uff1f",success:function(t){t.confirm&&uni.removeStorage({key:"user_token",success:function(){getApp().globalData.share.code="",getApp().globalData.userToken="",uni.showToast({icon:"none",title:"\u9000\u51fa\u6210\u529f~!",duration:3e3}),setTimeout((function(){uni.switchTab({url:"/pages/user/index"})}),1500)}})}})}}};e.default=l},"1e56":function(t,e,r){"use strict";var n=r("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(r("127e")),a=n(r("ee10")),s=n(r("915f")),o=n(r("42eb")),u=n(r("4231")),l=r("0f81"),c={components:{vodItem:o.default,headerNav:s.default,vodImage:u.default},data:function(){return{id:0,data:{},loading:!1}},onLoad:function(t){t.id&&(this.id=parseInt(t.id)),this.getData()},methods:{errorimg:function(){var t=this;this.error(this.data.topic_pic).then((function(e){t.data.topic_pic=e}))},getData:function(){var t=this;return(0,a.default)(i.default.mark((function e(){return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.loading=!0,e.next=3,l.app.topicDetails(t.id).then((function(e){1==e.code?(t.data=e.data,l.app.updateHits(t.id,3)):(uni.showToast({icon:"none",title:e.msg,duration:3e3}),setTimeout((function(){t.back()}),1500))})).catch((function(e){setTimeout((function(){t.back()}),1500)}));case 3:t.loading=!1;case 4:case"end":return e.stop()}}),e)})))()}}};e.default=c},"1e9f":function(t,e,r){"use strict";r.d(e,"b",(function(){return n})),r.d(e,"c",(function(){return i})),r.d(e,"a",(function(){}));var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return t._$s(0,"i",t.list.length)?r("view",{staticClass:t._$s(0,"sc","vod-topic"),attrs:{_i:0},on:{touchmove:function(t){t.stopPropagation()}}},[r("view",{staticClass:t._$s(1,"sc","topic-content"),attrs:{_i:1}},t._l(t._$s(2,"f",{forItems:t.list}),(function(e,n,i,a){return r("view",{key:t._$s(2,"f",{forIndex:i,key:n})},[r("view",{staticClass:t._$s("3-"+a,"sc","topic-item"),attrs:{_i:"3-"+a},on:{click:function(r){return t.openUrl("/pages/album/details?id="+e.topic_id)}}},[r("view",{staticClass:t._$s("4-"+a,"sc","topic-info"),attrs:{_i:"4-"+a}},[r("text",{staticClass:t._$s("5-"+a,"sc","topic-info-title"),attrs:{_i:"5-"+a}},[r("text"),t._v(t._$s("5-"+a,"t1-0",t._s(e.topic_name)))])])])])})),0)]):t._e()},i=[]},"1ee7":function(t,e,r){"use strict";r.d(e,"b",(function(){return i})),r.d(e,"c",(function(){return a})),r.d(e,"a",(function(){return n}));var n={uButton:r("9a24").default},i=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("view",{staticClass:t._$s(0,"sc","page-container"),attrs:{_i:0}},[r("view",{staticClass:t._$s(1,"sc","exchange-header-bg"),attrs:{_i:1}},[r("view",{staticClass:t._$s(2,"sc","header-bg-upper"),attrs:{_i:2}})]),r("view",{staticClass:t._$s(3,"sc","status-bar"),attrs:{_i:3}}),r("view",{staticClass:t._$s(4,"sc","page-header"),attrs:{_i:4}}),r("view",{staticClass:t._$s(5,"sc","exchange-header-content justify-between"),attrs:{_i:5}},[r("view",[r("view",{staticClass:t._$s(7,"sc","coin-num"),attrs:{_i:7}},[t._v(t._$s(7,"t0-0",t._s(t.data.user_coin||0)))]),r("view",{staticClass:t._$s(8,"sc","sub-text"),attrs:{_i:8}})]),r("image",{attrs:{_i:9}})]),r("view",{staticClass:t._$s(10,"sc","exchange-box"),attrs:{_i:10}},[r("view",{staticClass:t._$s(11,"sc","package justify-center"),attrs:{_i:11}},[r("view",{staticClass:t._$s(12,"sc","package-item"),attrs:{_i:12}},[r("view",{staticClass:t._$s(13,"sc","packages-box"),attrs:{_i:13},on:{click:function(e){return t.onSelect("points")}}},[r("view",{staticClass:t._$s(14,"sc","package-title"),attrs:{_i:14}},[r("view",[r("text")]),r("view",{staticClass:t._$s(17,"sc","package-text"),attrs:{_i:17}},[t._v(t._$s(17,"t0-0",t._s(t.data.exchange_points)))])]),r("view",{staticClass:t._$s(18,"sc","exchange-input justify-center"),attrs:{_i:18}},[r("view",{staticClass:t._$s(19,"sc","reduce-button"),attrs:{_i:19},on:{click:function(e){return t.onReduce("points_")}}}),r("view",{staticClass:t._$s(20,"sc","input-box justify-center"),attrs:{_i:20}},[r("input",{directives:[{name:"model",rawName:"v-model",value:t.points_num,expression:"points_num"}],attrs:{_i:21},domProps:{value:t._$s(21,"v-model",t.points_num)},on:{input:function(e){e.target.composing||(t.points_num=e.target.value)}}})]),r("view",{staticClass:t._$s(22,"sc","add-button"),attrs:{_i:22},on:{click:function(e){return t.onAdd("points_")}}})]),r("view",{staticClass:t._$s(23,"sc","exchange-cisu"),attrs:{_i:23},on:{click:function(e){return t.onAll("points_")}}},[r("text",[t._v(t._$s(24,"t0-0",t._s(t.points_maxNum)))])]),r("view",{staticClass:t._$s(25,"sc","exchange-all"),attrs:{_i:25},on:{click:function(e){return t.onAll("points_")}}})])]),r("view",{staticClass:t._$s(26,"sc","package-item"),attrs:{_i:26}},[r("view",{staticClass:t._$s(27,"sc","packages-box"),attrs:{_i:27},on:{click:function(e){return t.onSelect("down_points")}}},[r("view",{staticClass:t._$s(28,"sc","package-title2"),attrs:{_i:28}},[r("view",[r("text")]),r("view",{staticClass:t._$s(31,"sc","package-text"),attrs:{_i:31}},[t._v(t._$s(31,"t0-0",t._s(t.data.exchange_down_points)))])]),r("view",{staticClass:t._$s(32,"sc","exchange-input justify-center"),attrs:{_i:32}},[r("view",{staticClass:t._$s(33,"sc","reduce-button"),attrs:{_i:33},on:{click:function(e){return t.onReduce("down_")}}}),r("view",{staticClass:t._$s(34,"sc","input-box justify-center"),attrs:{_i:34}},[r("input",{directives:[{name:"model",rawName:"v-model",value:t.down_num,expression:"down_num"}],attrs:{_i:35},domProps:{value:t._$s(35,"v-model",t.down_num)},on:{input:function(e){e.target.composing||(t.down_num=e.target.value)}}})]),r("view",{staticClass:t._$s(36,"sc","add-button"),attrs:{_i:36},on:{click:function(e){return t.onAdd("down_")}}})]),r("view",{staticClass:t._$s(37,"sc","exchange-cisu"),attrs:{_i:37},on:{click:function(e){return t.onAll("down_")}}},[r("text",[t._v(t._$s(38,"t0-0",t._s(t.down_maxNum)))])]),r("view",{staticClass:t._$s(39,"sc","exchange-all"),attrs:{_i:39},on:{click:function(e){return t.onAll("down_")}}})])])])]),r("u-button",{staticClass:t._$s(40,"sc","exchange-button"),attrs:{shape:"circle",disabled:t.loading,loading:t.loading,color:"linear-gradient(90deg, #DA2538 0%, #F75F68 100%)",text:"\u786e\u8ba4\u5151\u6362",_i:40},on:{click:t.exchange}})],1)},a=[]},"1fb4":function(t,e,r){"use strict";r.r(e);var n=r("c0f1"),i=r.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return n[t]}))}(a);e["default"]=i.a},"1fc1":function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={props:{show:{type:Boolean,default:uni.$u.props.overlay.show},zIndex:{type:[String,Number],default:uni.$u.props.overlay.zIndex},duration:{type:[String,Number],default:uni.$u.props.overlay.duration},opacity:{type:[String,Number],default:uni.$u.props.overlay.opacity}}};e.default=n},2137:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={codeInput:{adjustPosition:!0,maxlength:6,dot:!1,mode:"box",hairline:!1,space:10,value:"",focus:!1,bold:!1,color:"#606266",fontSize:18,size:35,disabledKeyboard:!1,borderColor:"#c9cacc",disabledDot:!0}}},"21cd":function(t,e,r){(function(n,i){var a,s,o=r("3b2d");!function(n,i){"object"==o(e)&&"undefined"!=typeof t?t.exports=i():(a=i,s="function"===typeof a?a.call(e,r,e,t):a,void 0===s||(t.exports=s))}("undefined"!=typeof self?self:"undefined"!=typeof window&&window,(function(){"use strict";var t,e="function"==typeof atob,r="function"==typeof btoa,n="function"==typeof i,a="function"==typeof TextDecoder?new TextDecoder:void 0,s="function"==typeof TextEncoder?new TextEncoder:void 0,o=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="),u=(t={},o.forEach((function(e,r){return t[e]=r})),t),l=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,c=String.fromCharCode.bind(String),A="function"==typeof Uint8Array.from?Uint8Array.from.bind(Uint8Array):function(t,e){return void 0===e&&(e=function(t){return t}),new Uint8Array(Array.prototype.slice.call(t,0).map(e))},d=function(t){return t.replace(/=/g,"").replace(/[+\/]/g,(function(t){return"+"==t?"-":"_"}))},f=function(t){return t.replace(/[^A-Za-z0-9\+\/]/g,"")},h=function(t){for(var e,r,n,i,a="",s=t.length%3,u=0;u<t.length;){if((r=t.charCodeAt(u++))>255||(n=t.charCodeAt(u++))>255||(i=t.charCodeAt(u++))>255)throw new TypeError("invalid character found");a+=o[(e=r<<16|n<<8|i)>>18&63]+o[e>>12&63]+o[e>>6&63]+o[63&e]}return s?a.slice(0,s-3)+"===".substring(s):a},p=r?function(t){return btoa(t)}:n?function(t){return i.from(t,"binary").toString("base64")}:h,g=n?function(t){return i.from(t).toString("base64")}:function(t){for(var e=[],r=0,n=t.length;r<n;r+=4096)e.push(c.apply(null,t.subarray(r,r+4096)));return p(e.join(""))},v=function(t,e){return void 0===e&&(e=!1),e?d(g(t)):g(t)},m=function(t){if(t.length<2)return(e=t.charCodeAt(0))<128?t:e<2048?c(192|e>>>6)+c(128|63&e):c(224|e>>>12&15)+c(128|e>>>6&63)+c(128|63&e);var e=65536+1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320);return c(240|e>>>18&7)+c(128|e>>>12&63)+c(128|e>>>6&63)+c(128|63&e)},y=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,w=function(t){return t.replace(y,m)},b=n?function(t){return i.from(t,"utf8").toString("base64")}:s?function(t){return g(s.encode(t))}:function(t){return p(w(t))},_=function(t,e){return void 0===e&&(e=!1),e?d(b(t)):b(t)},B=function(t){return _(t,!0)},C=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,E=function(t){switch(t.length){case 4:var e=((7&t.charCodeAt(0))<<18|(63&t.charCodeAt(1))<<12|(63&t.charCodeAt(2))<<6|63&t.charCodeAt(3))-65536;return c(55296+(e>>>10))+c(56320+(1023&e));case 3:return c((15&t.charCodeAt(0))<<12|(63&t.charCodeAt(1))<<6|63&t.charCodeAt(2));default:return c((31&t.charCodeAt(0))<<6|63&t.charCodeAt(1))}},x=function(t){return t.replace(C,E)},T=function(t){if(t=t.replace(/\s+/g,""),!l.test(t))throw new TypeError("malformed base64.");t+="==".slice(2-(3&t.length));for(var e,r,n,i="",a=0;a<t.length;)e=u[t.charAt(a++)]<<18|u[t.charAt(a++)]<<12|(r=u[t.charAt(a++)])<<6|(n=u[t.charAt(a++)]),i+=64===r?c(e>>16&255):64===n?c(e>>16&255,e>>8&255):c(e>>16&255,e>>8&255,255&e);return i},S=e?function(t){return atob(f(t))}:n?function(t){return i.from(t,"base64").toString("binary")}:T,k=n?function(t){return A(i.from(t,"base64"))}:function(t){return A(S(t),(function(t){return t.charCodeAt(0)}))},I=function(t){return k(L(t))},F=n?function(t){return i.from(t,"base64").toString("utf8")}:a?function(t){return a.decode(k(t))}:function(t){return x(S(t))},L=function(t){return f(t.replace(/[-_]/g,(function(t){return"-"==t?"+":"/"})))},D=function(t){return F(L(t))},R=function(t){return{value:t,enumerable:!1,writable:!0,configurable:!0}},U=function(){var t=function(t,e){return Object.defineProperty(String.prototype,t,R(e))};t("fromBase64",(function(){return D(this)})),t("toBase64",(function(t){return _(this,t)})),t("toBase64URI",(function(){return _(this,!0)})),t("toBase64URL",(function(){return _(this,!0)})),t("toUint8Array",(function(){return I(this)}))},O=function(){var t=function(t,e){return Object.defineProperty(Uint8Array.prototype,t,R(e))};t("toBase64",(function(t){return v(this,t)})),t("toBase64URI",(function(){return v(this,!0)})),t("toBase64URL",(function(){return v(this,!0)}))},P={version:"3.7.3",VERSION:"3.7.3",atob:S,atobPolyfill:T,btoa:p,btoaPolyfill:h,fromBase64:D,toBase64:_,encode:_,encodeURI:B,encodeURL:B,utob:w,btou:x,decode:D,isValid:function(t){if("string"!=typeof t)return!1;var e=t.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(e)||!/[^\s0-9a-zA-Z\-_]/.test(e)},fromUint8Array:v,toUint8Array:I,extendString:U,extendUint8Array:O,extendBuiltins:function(){U(),O()},Base64:{}};return Object.keys(P).forEach((function(t){return P.Base64[t]=P[t]})),P}))}).call(this,r("0ee4"),r("12e3").Buffer)},2200:function(t,e,r){"use strict";r.r(e);var n=r("7f19"),i=r("9fb1");for(var a in i)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return i[t]}))}(a);var s=r("828b"),o=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);e["default"]=o.exports},"227f":function(t,e,r){"use strict";r.d(e,"b",(function(){return i})),r.d(e,"c",(function(){return a})),r.d(e,"a",(function(){return n}));var n={uCountDown:r("497b").default,uniIcons:r("da03").default,uPopup:r("591c").default,uBadge:r("2de7").default,uLoadingPage:r("ef90").default},i=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("view",{staticClass:t._$s(0,"sc","page-container"),attrs:{_i:0}},[r("view",{staticClass:t._$s(1,"sc","status-bar"),attrs:{_i:1}}),r("view",{staticClass:t._$s(2,"sc","video"),style:t._$s(2,"s",{height:t.video_height+"px"}),attrs:{_i:2}},[r("artplayer",{ref:"artplayer",attrs:{currentTime:t.currentTime,_i:3},on:{openAD:t.openAD,toBack:t.toBack,openShare:t.openShare,changePlay:t.selectEpisodes,playNext:t.selectNextEpisodes,showPlayAdv:t.showPlayAdv,playpip:t.playpip,addDanmu:t.addDanmu,openairplay:t.scanairplay,"update:currentTime":function(e){t.currentTime=e},"update:current-time":function(e){t.currentTime=e}}}),t._$s(4,"i",t.tvShow)?r("view",{staticClass:t._$s(4,"sc","play-tv"),attrs:{_i:4}},[r("image",{attrs:{_i:5}}),r("text",{staticClass:t._$s(6,"sc","time"),attrs:{_i:6}})]):t._e(),t._$s(7,"i",t.adShow)?r("view",{staticClass:t._$s(7,"sc","play-adv"),attrs:{_i:7},on:{click:function(e){return t.openAD(t.advList.play_adv.adv_link)}}},[r("vod-image",{attrs:{src:t.advList.play_adv.adv_image,_i:8}}),r("u-count-down",{ref:"advTime",attrs:{time:1e3*t.advList.play_adv.adv_show_time,format:"ss",autoStart:!0,_i:9},on:{change:t.timeChange,finish:t.adClose}},[r("text",{staticClass:t._$s(10,"sc","time"),attrs:{_i:10}},[t._v(t._$s(10,"t0-0",t._s(t.adTime.seconds)))])])],1):t._e()],1),r("view",{staticClass:t._$s(11,"sc","video-info"),attrs:{_i:11}},[t._$s(12,"i",!t.introShow)?r("view",{staticClass:t._$s(12,"sc","video-info-header"),attrs:{_i:12}},[r("view",{staticClass:t._$s(13,"sc","header-bg"),attrs:{_i:13}},[r("view",{staticClass:t._$s(14,"sc","header-bg-upper"),attrs:{_i:14}})]),r("view",{staticClass:t._$s(15,"sc","video-tabs justify-between"),attrs:{_i:15}},[r("view",{staticClass:t._$s(16,"sc","video-tabs-title"),attrs:{_i:16}},[r("text",{class:t._$s(17,"c",0==t.videoTabsIndex&&"selected"),attrs:{_i:17},on:{click:function(e){return t.tabsClick(0)}}}),r("text",{class:t._$s(18,"c",1==t.videoTabsIndex&&"selected"),attrs:{_i:18},on:{click:function(e){return t.tabsClick(1)}}})]),r("view",{staticClass:t._$s(19,"sc","video-msg"),attrs:{_i:19},on:{click:function(e){return t.openUrl("/pages/video/video-guide")}}}),t._e()])]):t._e(),r("view",{staticClass:t._$s(23,"sc","video-info-swiper"),attrs:{_i:23}},[r("scroll-view",{ref:"scrollView",staticClass:t._$s(24,"sc","swiper-container"),attrs:{"scroll-top":t._$s(24,"a-scroll-top",t.scrollTop),_i:24},on:{scrolltolower:t.commentData,scroll:t.handleScroll}},[t._$s(25,"i",t.advList.banner_adv1)?r("view",{staticClass:t._$s(25,"sc","ad-banner"),attrs:{_i:25},on:{click:function(e){return t.openAD(t.advList.banner_adv1.adv_link)}}},[r("image",{attrs:{src:t._$s(26,"a-src",t.advList.banner_adv1.adv_image),_i:26}})]):t._e(),r("video-info",{attrs:{"intro-show":t.introShow,"video-tabs-index":t.videoTabsIndex,"play-index":t.playIndex,"video-episodes":t.videoEpisodes,data:t.data,adv:t.advList,is_fav:t.data.is_fav,_i:27},on:{"update:introShow":function(e){t.introShow=e},"update:intro-show":function(e){t.introShow=e},"update:videoTabsIndex":function(e){t.videoTabsIndex=e},"update:video-tabs-index":function(e){t.videoTabsIndex=e},"update:playIndex":function(e){t.playIndex=e},"update:play-index":function(e){t.playIndex=e},"update:videoEpisodes":function(e){t.videoEpisodes=e},"update:video-episodes":function(e){t.videoEpisodes=e},episodes:t.triggerEpisodes,Share:t.openShare,download:t.download,favVod:t.favVod,dig:t.digVod}}),r("video-comment",{ref:"comment",attrs:{id:t._$s(28,"a-id",t.id),showinput:1,_i:28},on:{reward:t.toReward}})],1)])]),r("u-popup",{attrs:{show:t.episodesShow,round:10,_i:29},on:{close:function(e){return t.triggerEpisodes(!1)}}},[r("view",{staticClass:t._$s(30,"sc","video-episodes-popup"),attrs:{_i:30}},[r("scroll-view",{attrs:{"scroll-top":t._$s(31,"a-scroll-top",t.episodesScroll),_i:31}},[t._$s(32,"i",t.data.vod_play_url.length>0)?r("view",{staticClass:t._$s(32,"sc","episodes-popup-grid"),attrs:{_i:32}},t._l(t._$s(33,"f",{forItems:t.data.vod_play_url[t.playIndex].list}),(function(e,n,i,a){return r("view",{key:t._$s(33,"f",{forIndex:i,key:n}),staticClass:t._$s("33-"+a,"sc","grid-item"),class:t._$s("33-"+a,"c",n==t.videoEpisodes&&"selected"),attrs:{_i:"33-"+a},on:{click:function(e){return t.selectEpisodes(n)}}},[r("text",{staticClass:t._$s("34-"+a,"sc","grid-text"),attrs:{_i:"34-"+a}},[t._v(t._$s("34-"+a,"t0-0",t._s(e.name)))]),t._$s("35-"+a,"i",e.badge)?r("u-badge",{attrs:{value:e.badge.value,_i:"35-"+a}}):t._e()],1)})),0):t._e()])])]),r("share",{ref:"share",attrs:{_i:36}}),r("u-loading-page",{attrs:{loading:t.loading,bgColor:"none",fontSize:"16",_i:37}}),r("reward",{ref:"reward",attrs:{_i:38}}),r("full-adv",{ref:"fullAdv",attrs:{_i:39},on:{close:t.closeFullAdv}})],1)},a=[]},"231d":function(t,e,r){"use strict";r.d(e,"b",(function(){return i})),r.d(e,"c",(function(){return a})),r.d(e,"a",(function(){return n}));var n={uLoadmore:r("bc5a").default},i=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("scroll-view",{attrs:{"refresher-triggered":t._$s(0,"a-refresher-triggered",t.refreshTriggered),_i:0},on:{refresherrefresh:t.refresh,scrolltolower:t.getData}},[r("view",{staticClass:t._$s(1,"sc","vod-container"),attrs:{_i:1}},t._l(t._$s(2,"f",{forItems:t.list}),(function(e,n,i,a){return r("vod-item",{key:t._$s(2,"f",{forIndex:i,key:n}),attrs:{item:e,_i:"2-"+a}})})),1),r("view",{staticClass:t._$s(3,"sc","load-more"),attrs:{_i:3}},[r("u-loadmore",{attrs:{status:t.loadStatus,"loading-icon":"semicircle",line:!0,_i:4}})],1)])},a=[]},"236e":function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={loadmore:{status:"loadmore",bgColor:"transparent",icon:!0,fontSize:14,iconSize:17,color:"#606266",loadingIcon:"spinner",loadmoreText:"\u52a0\u8f7d\u66f4\u591a",loadingText:"\u6b63\u5728\u52a0\u8f7d...",nomoreText:"\u6ca1\u6709\u66f4\u591a\u4e86",isDot:!1,iconColor:"#b7b7b7",marginTop:10,marginBottom:10,height:"auto",line:!1,lineColor:"#E6E8EB",dashed:!1}}},"23b5":function(t,e,r){"use strict";(function(t){var n=r("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(r("127e")),a=n(r("7ca3")),s=n(r("ee10")),o=r("0f81"),u=(r("4eb2"),n(r("4231"))),l=n(r("112e"));function c(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function A(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?c(Object(r),!0).forEach((function(e){(0,a.default)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var d={components:{vodImage:u.default},data:function(){return{list:[],history:[],checked:[],page:1,limit:10,pageTotal:0,loadStatus:"loadmore",refreshTriggered:!1,isEdit:!1}},onLoad:function(){l.default.openSqlite(),this.init()},onUnload:function(){l.default.closeSqlite()},methods:{init:function(){var t=this;l.default.selectTableData("vodHistory").then((function(e){e.sort((function(t,e){return e.time-t.time}));var r=e.map((function(t){return t.vod_id}));r.length>0?(t.history=r,t.pageTotal=Math.ceil(t.history.length/t.limit),t.getData()):(t.refreshTriggered=!1,t.loadStatus="nomore")}))},getData:function(){var t=this;return(0,s.default)(i.default.mark((function e(){var r;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if("nomore"!==t.loadStatus&&"loading"!==t.loadStatus){e.next=2;break}return e.abrupt("return");case 2:return t.loadStatus="loading",r=t.history.slice((t.page-1)*t.limit,t.page*t.limit),e.next=6,o.app.vodHistory(r.join(","),t.limit).then((function(e){var n=e.data;t.page<t.pageTotal?(t.loadStatus="loadmore",t.page++):t.loadStatus="nomore",r.forEach((function(e){n&&n[e]?t.list.push(A(A({},e),{},{is_checked:!1,data:n[e],id:e})):t.list.push(A(A({},e),{},{is_checked:!1}))}))})).catch((function(e){t.loadStatus="nomore"}));case 6:t.refreshTriggered=!1;case 7:case"end":return e.stop()}}),e)})))()},delHistory:function(){this.checked.length>0&&(this.checked.map((function(t){l.default.deleteTableData("vodHistory","vod_id",t)})),this.page=1,this.list=[],this.loadStatus="loadmore",this.init())},refresh:function(){this.refreshTriggered=!0,this.loadStatus="loadmore",this.page=1,this.list=[],this.init()},edit:function(){this.isEdit=!this.isEdit},selectAll:function(){var t=this;this.list.map((function(e){t.checked.includes(e.id+"")||(t.checked.push(e.id+""),e.is_checked=!0)}))},changeCheck:function(e){var r=this;this.checked=e.detail.value,this.list.map((function(e){t("log",e," at pages/user/history.vue:258"),r.checked.includes(e.id+"")?e.is_checked=!0:e.is_checked=!1}))},click:function(t){var e=this;return(0,s.default)(i.default.mark((function r(){return i.default.wrap((function(r){while(1)switch(r.prev=r.next){case 0:!1===e.isEdit&&t.data&&uni.navigateTo({url:"/pages/video/video-app?id="+t.id});case 1:case"end":return r.stop()}}),r)})))()}}};e.default=d}).call(this,r("f3b9")["default"])},"24cb":function(t,e,r){"use strict";r.r(e);var n=r("8af6"),i=r("a074");for(var a in i)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return i[t]}))}(a);var s=r("828b"),o=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);e["default"]=o.exports},"24f5":function(t,e,r){"use strict";r.d(e,"b",(function(){return i})),r.d(e,"c",(function(){return a})),r.d(e,"a",(function(){return n}));var n={uniIcons:r("da03").default,uEmpty:r("9925").default,uLoadmore:r("bc5a").default,uButton:r("9a24").default},i=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("view",{staticClass:t._$s(0,"sc","page-container"),attrs:{_i:0}},[r("view",{staticClass:t._$s(1,"sc","status-bar"),attrs:{_i:1}}),r("view",{staticClass:t._$s(2,"sc","page-head"),attrs:{_i:2}},[r("view",{staticClass:t._$s(3,"sc","page-head-btn"),attrs:{_i:3},on:{click:t.back}},[r("uni-icons",{attrs:{type:"back",size:"26",_i:4}})],1),r("view",{staticClass:t._$s(5,"sc","page-head-title"),attrs:{_i:5}}),r("view",{staticClass:t._$s(6,"sc","page-head-btn"),attrs:{_i:6},on:{click:t.edit}},[r("view",{staticClass:t._$s(7,"sc","text-btn"),attrs:{_i:7}},[t._v(t._$s(7,"t0-0",t._s(t.isEdit?"\u53d6\u6d88":"\u7ba1\u7406")))])])]),r("view",{staticClass:t._$s(8,"sc","history-container"),attrs:{_i:8}},[r("scroll-view",{attrs:{"refresher-triggered":t._$s(9,"a-refresher-triggered",t.refreshTriggered),_i:9},on:{refresherrefresh:t.refresh,scrolltolower:t.getData}},[r("view",{staticClass:t._$s(10,"sc","history-list"),attrs:{_i:10}},[r("checkbox-group",{attrs:{_i:11},on:{change:t.changeCheck}},t._l(t._$s(12,"f",{forItems:t.list}),(function(e,n,i,a){return r("label",{key:t._$s(12,"f",{forIndex:i,key:n}),staticClass:t._$s("12-"+a,"sc","history-item align-center"),attrs:{_i:"12-"+a},on:{click:function(r){return t.click(e)}}},[t._$s("13-"+a,"i",t.isEdit)?r("checkbox",{attrs:{value:t._$s("13-"+a,"a-value",e.id+""),checked:t._$s("13-"+a,"a-checked",e.is_checked),_i:"13-"+a}}):t._e(),r("view",{staticClass:t._$s("14-"+a,"sc","vod-image"),attrs:{_i:"14-"+a}},[r("vodImage",{attrs:{src:e.data&&e.data.vod_pic,_i:"15-"+a}})],1),r("view",{staticClass:t._$s("16-"+a,"sc","vod-info"),attrs:{_i:"16-"+a}},[t._$s("17-"+a,"i",e.data)?r("view",{staticClass:t._$s("17-"+a,"sc","vod-name"),attrs:{_i:"17-"+a}},[t._v(t._$s("17-"+a,"t0-0",t._s(e.data.vod_name)))]):r("view",{staticClass:t._$s("18-"+a,"sc","vod-name vod-name-gray"),attrs:{_i:"18-"+a}}),t._$s("19-"+a,"i",e.episodes)?r("view",{staticClass:t._$s("19-"+a,"sc","vod-progress"),attrs:{_i:"19-"+a}},[t._v(t._$s("19-"+a,"t0-0",t._s(e.episodes)))]):t._e(),r("view",{staticClass:t._$s("20-"+a,"sc","vod-time"),attrs:{_i:"20-"+a}},[t._v(t._$s("20-"+a,"t0-0",t._s(t.formatTime(e.time))))])])])})),0)]),t._$s(21,"i",0===t.pageTotal)?r("u-empty",{attrs:{icon:"/static/images/empty.svg",width:"240",_i:21}}):r("view",{staticClass:t._$s(22,"sc","load-more"),attrs:{_i:22}},[r("u-loadmore",{attrs:{status:t.loadStatus,"loading-icon":"semicircle",line:!0,_i:23}})],1)],1),t._$s(24,"i",t.isEdit)?r("view",{staticClass:t._$s(24,"sc","history-bottom align-center"),attrs:{_i:24}},[r("u-button",{attrs:{plain:!0,shape:"circle",text:"\u5168\u9009",_i:25},on:{click:t.selectAll}}),r("u-button",{attrs:{type:"error",plain:!0,shape:"circle",text:"\u5220\u9664",_i:26},on:{click:t.delHistory}})],1):t._e()])])},a=[]},"25bb":function(t,e,r){"use strict";r.r(e);var n=r("bfb3"),i=r("d877");for(var a in i)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return i[t]}))}(a);var s=r("828b"),o=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);e["default"]=o.exports},"25d6":function(t,e,r){"use strict";r.d(e,"b",(function(){return n})),r.d(e,"c",(function(){return i})),r.d(e,"a",(function(){}));var n=function(){var t=this.$createElement,e=this._self._c||t;return e("view",{staticClass:this._$s(0,"sc","u-safe-bottom"),class:this._$s(0,"c",[!this.isNvue&&"u-safe-area-inset-bottom"]),style:this._$s(0,"s",[this.style]),attrs:{_i:0}})},i=[]},2754:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={"uicon-level":"\ue693","uicon-column-line":"\ue68e","uicon-checkbox-mark":"\ue807","uicon-folder":"\ue7f5","uicon-movie":"\ue7f6","uicon-star-fill":"\ue669","uicon-star":"\ue65f","uicon-phone-fill":"\ue64f","uicon-phone":"\ue622","uicon-apple-fill":"\ue881","uicon-chrome-circle-fill":"\ue885","uicon-backspace":"\ue67b","uicon-attach":"\ue632","uicon-cut":"\ue948","uicon-empty-car":"\ue602","uicon-empty-coupon":"\ue682","uicon-empty-address":"\ue646","uicon-empty-favor":"\ue67c","uicon-empty-permission":"\ue686","uicon-empty-news":"\ue687","uicon-empty-search":"\ue664","uicon-github-circle-fill":"\ue887","uicon-rmb":"\ue608","uicon-person-delete-fill":"\ue66a","uicon-reload":"\ue788","uicon-order":"\ue68f","uicon-server-man":"\ue6bc","uicon-search":"\ue62a","uicon-fingerprint":"\ue955","uicon-more-dot-fill":"\ue630","uicon-scan":"\ue662","uicon-share-square":"\ue60b","uicon-map":"\ue61d","uicon-map-fill":"\ue64e","uicon-tags":"\ue629","uicon-tags-fill":"\ue651","uicon-bookmark-fill":"\ue63b","uicon-bookmark":"\ue60a","uicon-eye":"\ue613","uicon-eye-fill":"\ue641","uicon-mic":"\ue64a","uicon-mic-off":"\ue649","uicon-calendar":"\ue66e","uicon-calendar-fill":"\ue634","uicon-trash":"\ue623","uicon-trash-fill":"\ue658","uicon-play-left":"\ue66d","uicon-play-right":"\ue610","uicon-minus":"\ue618","uicon-plus":"\ue62d","uicon-info":"\ue653","uicon-info-circle":"\ue7d2","uicon-info-circle-fill":"\ue64b","uicon-question":"\ue715","uicon-error":"\ue6d3","uicon-close":"\ue685","uicon-checkmark":"\ue6a8","uicon-android-circle-fill":"\ue67e","uicon-android-fill":"\ue67d","uicon-ie":"\ue87b","uicon-IE-circle-fill":"\ue889","uicon-google":"\ue87a","uicon-google-circle-fill":"\ue88a","uicon-setting-fill":"\ue872","uicon-setting":"\ue61f","uicon-minus-square-fill":"\ue855","uicon-plus-square-fill":"\ue856","uicon-heart":"\ue7df","uicon-heart-fill":"\ue851","uicon-camera":"\ue7d7","uicon-camera-fill":"\ue870","uicon-more-circle":"\ue63e","uicon-more-circle-fill":"\ue645","uicon-chat":"\ue620","uicon-chat-fill":"\ue61e","uicon-bag-fill":"\ue617","uicon-bag":"\ue619","uicon-error-circle-fill":"\ue62c","uicon-error-circle":"\ue624","uicon-close-circle":"\ue63f","uicon-close-circle-fill":"\ue637","uicon-checkmark-circle":"\ue63d","uicon-checkmark-circle-fill":"\ue635","uicon-question-circle-fill":"\ue666","uicon-question-circle":"\ue625","uicon-share":"\ue631","uicon-share-fill":"\ue65e","uicon-shopping-cart":"\ue621","uicon-shopping-cart-fill":"\ue65d","uicon-bell":"\ue609","uicon-bell-fill":"\ue640","uicon-list":"\ue650","uicon-list-dot":"\ue616","uicon-zhihu":"\ue6ba","uicon-zhihu-circle-fill":"\ue709","uicon-zhifubao":"\ue6b9","uicon-zhifubao-circle-fill":"\ue6b8","uicon-weixin-circle-fill":"\ue6b1","uicon-weixin-fill":"\ue6b2","uicon-twitter-circle-fill":"\ue6ab","uicon-twitter":"\ue6aa","uicon-taobao-circle-fill":"\ue6a7","uicon-taobao":"\ue6a6","uicon-weibo-circle-fill":"\ue6a5","uicon-weibo":"\ue6a4","uicon-qq-fill":"\ue6a1","uicon-qq-circle-fill":"\ue6a0","uicon-moments-circel-fill":"\ue69a","uicon-moments":"\ue69b","uicon-qzone":"\ue695","uicon-qzone-circle-fill":"\ue696","uicon-baidu-circle-fill":"\ue680","uicon-baidu":"\ue681","uicon-facebook-circle-fill":"\ue68a","uicon-facebook":"\ue689","uicon-car":"\ue60c","uicon-car-fill":"\ue636","uicon-warning-fill":"\ue64d","uicon-warning":"\ue694","uicon-clock-fill":"\ue638","uicon-clock":"\ue60f","uicon-edit-pen":"\ue612","uicon-edit-pen-fill":"\ue66b","uicon-email":"\ue611","uicon-email-fill":"\ue642","uicon-minus-circle":"\ue61b","uicon-minus-circle-fill":"\ue652","uicon-plus-circle":"\ue62e","uicon-plus-circle-fill":"\ue661","uicon-file-text":"\ue663","uicon-file-text-fill":"\ue665","uicon-pushpin":"\ue7e3","uicon-pushpin-fill":"\ue86e","uicon-grid":"\ue673","uicon-grid-fill":"\ue678","uicon-play-circle":"\ue647","uicon-play-circle-fill":"\ue655","uicon-pause-circle-fill":"\ue654","uicon-pause":"\ue8fa","uicon-pause-circle":"\ue643","uicon-eye-off":"\ue648","uicon-eye-off-outline":"\ue62b","uicon-gift-fill":"\ue65c","uicon-gift":"\ue65b","uicon-rmb-circle-fill":"\ue657","uicon-rmb-circle":"\ue677","uicon-kefu-ermai":"\ue656","uicon-server-fill":"\ue751","uicon-coupon-fill":"\ue8c4","uicon-coupon":"\ue8ae","uicon-integral":"\ue704","uicon-integral-fill":"\ue703","uicon-home-fill":"\ue964","uicon-home":"\ue965","uicon-hourglass-half-fill":"\ue966","uicon-hourglass":"\ue967","uicon-account":"\ue628","uicon-plus-people-fill":"\ue626","uicon-minus-people-fill":"\ue615","uicon-account-fill":"\ue614","uicon-thumb-down-fill":"\ue726","uicon-thumb-down":"\ue727","uicon-thumb-up":"\ue733","uicon-thumb-up-fill":"\ue72f","uicon-lock-fill":"\ue979","uicon-lock-open":"\ue973","uicon-lock-opened-fill":"\ue974","uicon-lock":"\ue97a","uicon-red-packet-fill":"\ue690","uicon-photo-fill":"\ue98b","uicon-photo":"\ue98d","uicon-volume-off-fill":"\ue659","uicon-volume-off":"\ue644","uicon-volume-fill":"\ue670","uicon-volume":"\ue633","uicon-red-packet":"\ue691","uicon-download":"\ue63c","uicon-arrow-up-fill":"\ue6b0","uicon-arrow-down-fill":"\ue600","uicon-play-left-fill":"\ue675","uicon-play-right-fill":"\ue676","uicon-rewind-left-fill":"\ue679","uicon-rewind-right-fill":"\ue67a","uicon-arrow-downward":"\ue604","uicon-arrow-leftward":"\ue601","uicon-arrow-rightward":"\ue603","uicon-arrow-upward":"\ue607","uicon-arrow-down":"\ue60d","uicon-arrow-right":"\ue605","uicon-arrow-left":"\ue60e","uicon-arrow-up":"\ue606","uicon-skip-back-left":"\ue674","uicon-skip-forward-right":"\ue672","uicon-rewind-right":"\ue66f","uicon-rewind-left":"\ue671","uicon-arrow-right-double":"\ue68d","uicon-arrow-left-double":"\ue68c","uicon-wifi-off":"\ue668","uicon-wifi":"\ue667","uicon-empty-data":"\ue62f","uicon-empty-history":"\ue684","uicon-empty-list":"\ue68b","uicon-empty-page":"\ue627","uicon-empty-order":"\ue639","uicon-man":"\ue697","uicon-woman":"\ue69c","uicon-man-add":"\ue61c","uicon-man-add-fill":"\ue64c","uicon-man-delete":"\ue61a","uicon-man-delete-fill":"\ue66a","uicon-zh":"\ue70a","uicon-en":"\ue692"}},"278c":function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={button:{hairline:!1,type:"info",size:"normal",shape:"square",plain:!1,disabled:!1,loading:!1,loadingText:"",loadingMode:"spinner",loadingSize:15,openType:"",formType:"",appParameter:"",hoverStopPropagation:!0,lang:"en",sessionFrom:"",sendMessageTitle:"",sendMessagePath:"",sendMessageImg:"",showMessageCard:!1,dataName:"",throttleTime:0,hoverStartTime:0,hoverStayTime:200,text:"",icon:"",iconColor:"",color:""}}},"27d2":function(t,e,r){"use strict";r.r(e);var n=r("f4be"),i=r("ea0b");for(var a in i)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return i[t]}))}(a);var s=r("828b"),o=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);e["default"]=o.exports},"283a":function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={avatarGroup:{urls:function(){return[]},maxCount:5,shape:"circle",mode:"scaleToFill",showMore:!0,size:40,keyName:"",gap:.5,extraValue:0}}},2863:function(t,e,r){"use strict";var n=r("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.createAnimation=function(t,e){if(!e)return;return clearTimeout(e.timer),new l(t,e)};var i=n(r("7ca3")),a=n(r("67ad")),s=n(r("0bdb"));function o(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function u(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?o(Object(r),!0).forEach((function(e){(0,i.default)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var l=function(){function t(e,r){(0,a.default)(this,t),this.options=e,this.animation=uni.createAnimation(u({},e)),this.currentStepAnimates={},this.next=0,this.$=r}return(0,s.default)(t,[{key:"_nvuePushAnimates",value:function(t,e){var r=this.currentStepAnimates[this.next],n={};if(n=r||{styles:{},config:{}},c.includes(t)){n.styles.transform||(n.styles.transform="");var i="";"rotate"===t&&(i="deg"),n.styles.transform+="".concat(t,"(").concat(e+i,") ")}else n.styles[t]="".concat(e);this.currentStepAnimates[this.next]=n}},{key:"_animateRun",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.$.$refs["ani"].ref;if(r)return new Promise((function(n,i){nvueAnimation.transition(r,u({styles:t},e),(function(t){n()}))}))}},{key:"_nvueNextAnimate",value:function(t){var e=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0,i=t[r];if(i){var a=i.styles,s=i.config;this._animateRun(a,s).then((function(){r+=1,e._nvueNextAnimate(t,r,n)}))}else this.currentStepAnimates={},"function"===typeof n&&n(),this.isEnd=!0}},{key:"step",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.animation.step(t),this}},{key:"run",value:function(t){this.$.animationData=this.animation.export(),this.$.timer=setTimeout((function(){"function"===typeof t&&t()}),this.$.durationTime)}}]),t}(),c=["matrix","matrix3d","rotate","rotate3d","rotateX","rotateY","rotateZ","scale","scale3d","scaleX","scaleY","scaleZ","skew","skewX","skewY","translate","translate3d","translateX","translateY","translateZ"];c.concat(["opacity","backgroundColor"],["width","height","left","right","top","bottom"]).forEach((function(t){l.prototype[t]=function(){var e;return(e=this.animation)[t].apply(e,arguments),this}}))},"28d6":function(t,e,r){"use strict";r.d(e,"b",(function(){return i})),r.d(e,"c",(function(){return a})),r.d(e,"a",(function(){return n}));var n={uniIcons:r("da03").default},i=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("view",{staticClass:t._$s(0,"sc","page-container"),attrs:{_i:0}},[r("view",{staticClass:t._$s(1,"sc","exchange-header-bg"),attrs:{_i:1}},[r("view",{staticClass:t._$s(2,"sc","header-bg-upper"),attrs:{_i:2}})]),r("view",{staticClass:t._$s(3,"sc","status-bar"),attrs:{_i:3}}),r("view",{staticClass:t._$s(4,"sc","page-head"),attrs:{_i:4}},[r("view",{staticClass:t._$s(5,"sc","page-head-btn"),attrs:{_i:5},on:{click:t.back}},[r("uni-icons",{attrs:{type:"back",size:"26",_i:6}})],1),r("view",{staticClass:t._$s(7,"sc","page-head-title"),attrs:{_i:7}})]),r("view",{staticClass:t._$s(8,"sc","exchange-header-content justify-between"),attrs:{_i:8}},[r("view",[r("view",{staticClass:t._$s(10,"sc","coin-num"),attrs:{_i:10}},[t._v(t._$s(10,"t0-0",t._s(t.data.user_coin||0)))]),r("view",{staticClass:t._$s(11,"sc","sub-text"),attrs:{_i:11}})]),r("image",{attrs:{_i:12}})]),r("view",{staticClass:t._$s(13,"sc","task-container"),attrs:{_i:13}},[r("scroll-view",{},[r("view",{staticClass:t._$s(15,"sc","card"),attrs:{_i:15}},[r("view",{staticClass:t._$s(16,"sc","card-title"),attrs:{_i:16}}),r("view",{staticClass:t._$s(17,"sc","card-content"),attrs:{_i:17}},t._l(t._$s(18,"f",{forItems:t.data}),(function(e,n,i,a){return r("view",{key:t._$s(18,"f",{forIndex:i,key:n}),staticClass:t._$s("18-"+a,"sc","task-item align-center"),attrs:{_i:"18-"+a}},[r("image",{staticClass:t._$s("19-"+a,"sc","task-icon"),attrs:{src:t._$s("19-"+a,"a-src",e.task_id<6?"/static/icon/icon-task-"+e.task_id+".png":"/static/icon/icon-task.png"),_i:"19-"+a}}),r("view",{staticClass:t._$s("20-"+a,"sc","task-content"),attrs:{_i:"20-"+a}},[r("view",{staticClass:t._$s("21-"+a,"sc","task-title align-center"),attrs:{_i:"21-"+a}},[r("text",[t._v(t._$s("22-"+a,"t0-0",t._s(e.task_name)))]),r("view",{staticClass:t._$s("23-"+a,"sc","add-coin align-center"),attrs:{_i:"23-"+a}},[r("image",{staticClass:t._$s("24-"+a,"sc","coin-icon"),attrs:{_i:"24-"+a}}),r("text",[t._v(t._$s("25-"+a,"t0-0",t._s(e.task_coin)))])])]),r("view",{staticClass:t._$s("26-"+a,"sc","task-progress"),attrs:{_i:"26-"+a}},[t._v(t._$s("26-"+a,"t0-0",t._s(e.task_finish_num))+t._$s("26-"+a,"t0-1",t._s(e.task_num)))])]),t._$s("27-"+a,"i",1===e.task_finish)?r("view",{staticClass:t._$s("27-"+a,"sc","fisish-button is-fisish"),attrs:{_i:"27-"+a}}):r("navigator",{staticClass:t._$s("28-"+a,"sc","fisish-button"),attrs:{url:t._$s("28-"+a,"a-url",1==e.task_type?"/pages/user/index":"/pages/home/index"),_i:"28-"+a}})])})),0)])])])])},a=[]},"296a":function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={search:{shape:"round",bgColor:"#f2f2f2",placeholder:"\u8bf7\u8f93\u5165\u5173\u952e\u5b57",clearabled:!0,focus:!1,showAction:!0,actionStyle:function(){return{}},actionText:"\u641c\u7d22",inputAlign:"left",inputStyle:function(){return{}},disabled:!1,borderColor:"transparent",searchIconColor:"#909399",searchIconSize:22,color:"#606266",placeholderColor:"#909399",searchIcon:"search",margin:"0",animation:!1,value:"",maxlength:"-1",height:32,label:null}}},"29da":function(t,e,r){"use strict";r.r(e);var n=r("0e54"),i=r("8bea");for(var a in i)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return i[t]}))}(a);var s=r("828b"),o=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);e["default"]=o.exports},"2afc":function(t,e,r){"use strict";r.r(e);var n=r("8baf"),i=r.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return n[t]}))}(a);e["default"]=i.a},"2b09":function(t,e,r){"use strict";r.d(e,"b",(function(){return i})),r.d(e,"c",(function(){return a})),r.d(e,"a",(function(){return n}));var n={uTabs:r("58b7").default},i=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("view",{staticClass:t._$s(0,"sc","page-container"),attrs:{_i:0}},[r("view",{staticClass:t._$s(1,"sc","discover-header"),attrs:{_i:1}},[r("image",{attrs:{_i:2}})]),r("view",{staticClass:t._$s(3,"sc","filter-box"),attrs:{_i:3}},[r("u-tabs",{attrs:{"line-width":0,"line-height":0,"item-style":{height:"30px",padding:"0 15px"},"active-style":{fontSize:"18px",fontWeight:"bold",color:"#fff"},list:t.type,current:t.typeIndex,_i:4},on:{click:function(e){return t.tabsClick("typeIndex",e)}}}),r("u-tabs",{attrs:{"line-width":0,"line-height":0,"item-style":{height:"40px",padding:"0 10px"},"inactive-style":{padding:"4px 15px",borderRadius:"5px",background:"#f6f7f9"},"active-style":{padding:"4px 15px",borderRadius:"5px",color:"#FFF",background:"#DA2538"},list:t.sort,current:t.sortIndex,_i:5},on:{click:function(e){return t.tabsClick("sortIndex",e)}}})],1),r("swiper",{staticClass:t._$s(6,"sc","swiper-container"),attrs:{current:t._$s(6,"a-current",t.typeIndex),_i:6},on:{change:t.swiperChange}},t._l(t._$s(7,"f",{forItems:t.type}),(function(e,n,i,a){return r("swiper-item",{key:t._$s(7,"f",{forIndex:i,key:n})},[r("discover-item",{ref:t._$s("8-"+a,"ref","discover"+n),refInFor:!0,attrs:{id:t._$s("8-"+a,"a-id",e.id),sort:t.sort[t.sortIndex].id,_i:"8-"+a}})],1)})),0)])},a=[]},"2b75":function(t,e,r){"use strict";var n=r("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(r("3f9c")),a={name:"u-line",mixins:[uni.$u.mpMixin,uni.$u.mixin,i.default],computed:{lineStyle:function(){var t={};return t.margin=this.margin,"row"===this.direction?(t.borderBottomWidth="1px",t.borderBottomStyle=this.dashed?"dashed":"solid",t.width=uni.$u.addUnit(this.length),this.hairline&&(t.transform="scaleY(0.5)")):(t.borderLeftWidth="1px",t.borderLeftStyle=this.dashed?"dashed":"solid",t.height=uni.$u.addUnit(this.length),this.hairline&&(t.transform="scaleX(0.5)")),t.borderColor=this.color,uni.$u.deepMerge(t,uni.$u.addStyle(this.customStyle))}}};e.default=a},"2c40":function(t,e,r){"use strict";var n=r("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(r("61d5")),a={name:"u-grid",mixins:[uni.$u.mpMixin,uni.$u.mixin,i.default],data:function(){return{index:0,width:0}},watch:{parentData:function(){this.children.length&&this.children.map((function(t){"function"==typeof t.updateParentData&&t.updateParentData()}))}},created:function(){this.children=[]},computed:{parentData:function(){return[this.hoverClass,this.col,this.size,this.border]},gridStyle:function(){var t={};switch(this.align){case"left":t.justifyContent="flex-start";break;case"center":t.justifyContent="center";break;case"right":t.justifyContent="flex-end";break;default:t.justifyContent="flex-start"}return uni.$u.deepMerge(t,uni.$u.addStyle(this.customStyle))}},methods:{childClick:function(t){this.$emit("click",t)}}};e.default=a},"2c5d":function(t,e,r){"use strict";r.d(e,"b",(function(){return n})),r.d(e,"c",(function(){return i})),r.d(e,"a",(function(){}));var n=function(){var t=this.$createElement,e=this._self._c||t;return e("view",{ref:"u-grid",staticClass:this._$s(0,"sc","u-grid"),style:this._$s(0,"s",[this.gridStyle]),attrs:{_i:0}},[this._t("default",null,{_i:1})],2)},i=[]},"2c9a":function(t,e,r){"use strict";var n=r("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(r("4231")),a={components:{vodImage:i.default},props:{list:{type:Array,default:[]}}};e.default=a},"2de7":function(t,e,r){"use strict";r.r(e);var n=r("ecb7"),i=r("345b");for(var a in i)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return i[t]}))}(a);var s=r("828b"),o=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,"398a5927",null,!1,n["a"],void 0);e["default"]=o.exports},"2fe2":function(t,e,r){"use strict";r.r(e);var n=r("64ba"),i=r("85bb");for(var a in i)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return i[t]}))}(a);var s=r("828b"),o=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,"009bf3c0",null,!1,n["a"],void 0);e["default"]=o.exports},"306c":function(t,e,r){"use strict";r.d(e,"b",(function(){return i})),r.d(e,"c",(function(){return a})),r.d(e,"a",(function(){return n}));var n={uPopup:r("591c").default},i=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("u-popup",{attrs:{show:t.show,mode:"center",bgColor:"transparent",_i:0}},[r("view",{staticClass:t._$s(1,"sc","reward"),attrs:{_i:1}},[r("image",{staticClass:t._$s(2,"sc","reward-img"),attrs:{_i:2}}),r("view",{staticClass:t._$s(3,"sc","reward-info"),attrs:{_i:3}},[r("text",[t._v(t._$s(4,"t0-0",t._s(t.num)))])]),r("button",{staticClass:t._$s(5,"sc","reward-button"),attrs:{_i:5},on:{click:t.onclose}})])])},a=[]},3155:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={actionSheet:{show:!1,title:"",description:"",actions:function(){return[]},index:"",cancelText:"",closeOnClickAction:!0,safeAreaInsetBottom:!0,openType:"",closeOnClickOverlay:!0,round:0}}},"319d":function(t,e,r){"use strict";r.r(e);var n=r("cbc9"),i=r.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return n[t]}))}(a);e["default"]=i.a},"31e9":function(t,e,r){"use strict";var n=r("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(r("7ca3")),a=n(r("0e48")),s=n(r("b3b3")),o=n(r("4f9b")),u=n(r("ee30")),l=n(r("5f6a")),c=n(r("8218")),A=n(r("e76b")),d=n(r("1294")),f=n(r("49a3")),h=n(r("0d2b")),p=n(r("bfd7")),g=n(r("5640")),v=n(r("5202")),m=n(r("8918"));function y(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function w(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?y(Object(r),!0).forEach((function(e){(0,i.default)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):y(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var b=w(w({route:u.default,date:f.default.timeFormat,colorGradient:l.default.colorGradient,hexToRgb:l.default.hexToRgb,rgbToHex:l.default.rgbToHex,colorToRgba:l.default.colorToRgba,test:c.default,type:["primary","success","error","warning","info"],http:new o.default,config:h.default,zIndex:g.default,debounce:A.default,throttle:d.default,mixin:a.default,mpMixin:s.default,props:p.default},f.default),{},{color:v.default,platform:m.default});uni.$u=b;var _={install:function(t){t.filter("timeFormat",(function(t,e){return uni.$u.timeFormat(t,e)})),t.filter("date",(function(t,e){return uni.$u.timeFormat(t,e)})),t.filter("timeFrom",(function(t,e){return uni.$u.timeFrom(t,e)})),t.prototype.$u=b,t.mixin(a.default)}};e.default=_},3203:function(t,e,r){"use strict";var n=r("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(r("127e")),a=n(r("ee10")),s=n(r("d3ef")),o=s.default.vodDig,u={get:function(t){return(0,a.default)(i.default.mark((function e(){return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,o.get(t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})))()},add:function(t){return(0,a.default)(i.default.mark((function e(){return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,o.add(t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})))()},update:function(t,e){return(0,a.default)(i.default.mark((function r(){return i.default.wrap((function(r){while(1)switch(r.prev=r.next){case 0:return r.next=2,o.update(t,e);case 2:return r.abrupt("return",r.sent);case 3:case"end":return r.stop()}}),r)})))()}};e.default=u},3296:function(t,e,r){"use strict";r.r(e);var n=r("28d6"),i=r("0859");for(var a in i)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return i[t]}))}(a);var s=r("828b"),o=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);e["default"]=o.exports},"329a":function(t,e,r){"use strict";(function(t){var n=r("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(r("127e")),a=n(r("ee10")),s={PRIVATE_WWW:"_www/",PRIVATE_DOC:"_doc/",PUBLIC_DOCUMENTS:"_documents/",PUBLIC_DOWNLOADS:"_downloads/"},o=s.PRIVATE_DOC+"Video";function u(e){for(var r=uni.getStorageSync("Download-Success"),n=!1,i=r?JSON.parse(r):[],a=0;a<i.length;a++){var s=i[a];if(s==e){n=!0;break}}n||(i.push(e),t("log","[Save Download-Success] ",e," at utils/fileManager.js:81"),uni.setStorageSync("Download-Success",JSON.stringify(i)))}function l(e){for(var r=uni.getStorageSync("Download-Success"),n=!1,i=r?JSON.parse(r):[],a=0;a<i.length;a++){var s=i[a];if(s==e){n=!0;break}}return t("log","ishas ",n," at utils/fileManager.js:119"),n}function c(){return c=(0,a.default)(i.default.mark((function e(){var r,n,a,s,o,u,l,c;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=[],e.next=3,A();case 3:for(n=e.sent,t("log","videoFiles ",n," at utils/fileManager.js:142"),a=uni.getStorageSync("Download-Success"),s=a?JSON.parse(a):[],o=0;o<n.length;o++)for(u=n[o],u.is_checked=!1,l=0;l<s.length;l++)c=s[l],u.localPath==c&&r.push(u);return r.sort((function(t,e){return t.name.localeCompare(e.name,"zh-CN")})),e.abrupt("return",r);case 10:case"end":return e.stop()}}),e)}))),c.apply(this,arguments)}function A(){return d.apply(this,arguments)}function d(){return d=(0,a.default)(i.default.mark((function t(){return i.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,f("Video");case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)}))),d.apply(this,arguments)}function f(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:plus.io.PRIVATE_DOC;return new Promise((function(n,s){plus.io.requestFileSystem(r,(function(r){var o=r.root.fullPath;plus.io.resolveLocalFileSystemURL(o+e,(function(e){var r=e.createReader();r.readEntries(function(){var t=(0,a.default)(i.default.mark((function t(e){var r,a,s;return i.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:for(r=[],0==e.length&&n(r),a=function(t){var i=e[t];i.isFile&&i.file((function(a){r.push({name:i.name,size:a.size,time:a.lastModifiedDate,fullPath:i.fullPath,localPath:i.toURL()}),t==e.length-1&&n(r)}),(function(i){t==e.length-1&&n(r)}))},s=0;s<e.length;s++)a(s);case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),(function(e){t("log","Request dirFiles failed: "+e.message," at utils/fileManager.js:204"),s(e)}))}))}))}))}var h={readAppDir:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:plus.io.PRIVATE_DOC;return new Promise((function(r,n){plus.io.requestFileSystem(e,(function(t){r(t.root.fullPath)}),(function(e){t("log","Request file system failed: "+e.message," at utils/fileManager.js:25"),n(e)}))}))},createDir:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Video",r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.PRIVATE_DOC;return new Promise((function(n,i){plus.io.resolveLocalFileSystemURL(r,(function(r){r.getDirectory(e,{create:!0,exclusive:!1},(function(e){t("log","CreateDir Success: "+e.name," at utils/fileManager.js:45"),n(e.fullPath)}),(function(e){t("log","CreateDir Failed: "+e.message," at utils/fileManager.js:50"),i(e)}))}),(function(e){t("log","CreateDir Failed: "+e.message," at utils/fileManager.js:57"),i(e)}))}))},getVideoFiles:A,dirFiles:f,downloadVideo:function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2?arguments[2]:void 0;return new Promise((function(i,a){r.startsWith(o+"/")||(r=o+"/"+r);var s=""!=r?{filename:r,timeout:3,retryInterval:1}:{},l=plus.downloader.createDownload(e,s,(function(e,r){200==r?(t("log","\u4e0b\u8f7d\u6210\u529f\uff1a"+e.filename," at utils/fileManager.js:235"),i(e)):(l.abort(),a(-1))}));l.addEventListener("statechanged",(function(e,r){if(l){var i=0==e.totalSize?0:Math.round(e.downloadedSize/e.totalSize*100*100)/100,a=parseInt(i);switch(t("log",a," at utils/fileManager.js:248"),n(e.state,a),e.state){case 1:break;case 2:break;case 3:break;case 4:u(e.options.filename);break}}})),l.start(),n(0,0)}))},task_downloads:function(){return new Promise((function(t,e){var r=new Array;plus.downloader.enumerate((function(e){for(var n=e.length-1;n>=0;n--)r.push(e[n]);t(r)}),-1)}))},clearFinishTask:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:4;plus.downloader.clear(t)},getVideoInfo:function(t){var e=this;return new Promise((function(r,n){plus.io.getVideoInfo({filePath:t,success:function(e){r({fullPath:t,videoInfo:e})},fail:function(){},complete:function(){e.i++,e.i==length&&r()}})}))},getLocalVideoUrl:function(t,e){var r=t;return r.startsWith(o+"/")||(r=o+"/"+r),l(r)?e+"Video/"+t:""},checkFile:function(t){return new Promise((function(e,r){var n=plus.io.PRIVATE_DOC,i="Video/"+t;plus.io.requestFileSystem(n,(function(t){var r=t.root.fullPath;plus.io.resolveLocalFileSystemURL(r+"/"+i,(function(t){e(!0)}),(function(t){e(!1)}))}))}))},checkSuccessFile:l,getFile:function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:plus.io.PRIVATE_DOC;return new Promise((function(n,i){var a="Video/"+e;plus.io.requestFileSystem(r,(function(e){var r=e.root.fullPath;plus.io.resolveLocalFileSystemURL(r+"/"+a,(function(t){n(t)}),(function(e){t("log","Get file failed: ",e.message," at utils/fileManager.js:356"),i(e)}))}))}))},deleteFile:function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:plus.io.PRIVATE_DOC;return new Promise((function(n,i){var a="Video/"+e;plus.io.requestFileSystem(r,(function(e){var r=e.root.fullPath;plus.io.resolveLocalFileSystemURL(r+"/"+a,(function(e){e.remove((function(){n(1)}),(function(e){t("log","Delete file failed: ",e," at utils/fileManager.js:399"),i(-1)}))}))}))}))},deleteFileWithPath:function(e){return new Promise((function(r,n){plus.io.resolveLocalFileSystemURL(e,(function(e){e.remove((function(){r(1)}),(function(e){t("log","Delete file failed: ",e," at utils/fileManager.js:376"),n(-1)}))}))}))},getSuccessVideoFiles:function(){return c.apply(this,arguments)},saveSuccessFileName:u,clearSuccessFileName:function(e){var r=e;r.startsWith(o+"/")||(r=o+"/"+r);var n=uni.getStorageSync("Download-Success"),i=!1,a=n?JSON.parse(n):[];t("log",a," at utils/fileManager.js:93");for(var s=0;s<a.length;s++){var u=a[s];if(u==r){i=!0,a.splice(s,1),t("log","Delete clear taskFileName ",r," at utils/fileManager.js:99"),t("log","[Download-Success]",a," at utils/fileManager.js:100");break}}i&&uni.setStorageSync("Download-Success",JSON.stringify(a))}};e.default=h}).call(this,r("f3b9")["default"])},"32ac":function(t,e,r){var n,i,a,s=r("3b2d");(function(o,u,l){"object"===s(e)?t.exports=e=u(r("707d"),r("bbe5")):(i=[r("707d"),r("bbe5")],n=u,a="function"===typeof n?n.apply(e,i):n,void 0===a||(t.exports=a))})(0,(function(t){return t.pad.AnsiX923={pad:function(t,e){var r=t.sigBytes,n=4*e,i=n-r%n,a=r+i-1;t.clamp(),t.words[a>>>2]|=i<<24-a%4*8,t.sigBytes+=i},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}},t.pad.Ansix923}))},"32b5":function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={toast:{zIndex:10090,loading:!1,text:"",icon:"",type:"",loadingMode:"",show:"",overlay:!1,position:"center",params:function(){},duration:2e3,isTab:!1,url:"",callback:null,back:!1}}},"32cf":function(t,e,r){"use strict";r.d(e,"b",(function(){return i})),r.d(e,"c",(function(){return a})),r.d(e,"a",(function(){return n}));var n={uniIcons:r("da03").default,uEmpty:r("9925").default,uLoadmore:r("bc5a").default,uButton:r("9a24").default},i=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("view",{staticClass:t._$s(0,"sc","page-container"),attrs:{_i:0}},[r("view",{staticClass:t._$s(1,"sc","header-bg"),attrs:{_i:1}},[r("view",{staticClass:t._$s(2,"sc","header-bg-upper"),attrs:{_i:2}})]),r("view",{staticClass:t._$s(3,"sc","status-bar"),attrs:{_i:3}}),r("view",{staticClass:t._$s(4,"sc","page-head"),attrs:{_i:4}},[r("view",{staticClass:t._$s(5,"sc","page-head-btn"),attrs:{_i:5},on:{click:t.back}},[r("uni-icons",{attrs:{type:"back",size:"26",_i:6}})],1),r("view",{staticClass:t._$s(7,"sc","page-head-title"),attrs:{_i:7}})]),r("view",{staticClass:t._$s(8,"sc","favorites-container"),attrs:{_i:8}},[r("scroll-view",{attrs:{"refresher-triggered":t._$s(9,"a-refresher-triggered",t.refreshTriggered),_i:9},on:{refresherrefresh:t.refresh,scrolltolower:t.getData}},[r("view",{staticClass:t._$s(10,"sc","favorites-list"),attrs:{_i:10}},[r("checkbox-group",{attrs:{_i:11},on:{change:t.changeCheck}},t._l(t._$s(12,"f",{forItems:t.list}),(function(e,n,i,a){return r("label",{key:t._$s(12,"f",{forIndex:i,key:n}),staticClass:t._$s("12-"+a,"sc","favorites-item align-center"),attrs:{_i:"12-"+a},on:{click:function(r){return t.click(e)}}},[t._$s("13-"+a,"i",t.isEdit)?r("checkbox",{attrs:{value:t._$s("13-"+a,"a-value",e.fav_id+""),checked:t._$s("13-"+a,"a-checked",e.is_checked),_i:"13-"+a}}):t._e(),r("view",{staticClass:t._$s("14-"+a,"sc","vod-image"),attrs:{_i:"14-"+a}},[r("vod-image",{attrs:{src:e.data&&e.data.vod_pic,_i:"15-"+a}})],1),r("view",{staticClass:t._$s("16-"+a,"sc","vod-info"),attrs:{_i:"16-"+a}},[t._$s("17-"+a,"i",e.data)?r("view",{staticClass:t._$s("17-"+a,"sc","vod-name"),attrs:{_i:"17-"+a}},[t._v(t._$s("17-"+a,"t0-0",t._s(e.data.vod_name)))]):r("view",{staticClass:t._$s("18-"+a,"sc","vod-name vod-name-gray"),attrs:{_i:"18-"+a}}),t._$s("19-"+a,"i",e.data)?r("view",{staticClass:t._$s("19-"+a,"sc","vod-progress"),attrs:{_i:"19-"+a}},[t._v(t._$s("19-"+a,"t0-0",t._s(e.data.vod_remarks)))]):t._e(),r("view",{staticClass:t._$s("20-"+a,"sc","vod-time"),attrs:{_i:"20-"+a}},[t._v(t._$s("20-"+a,"t0-0",t._s(t.formatTime(e.fav_time))))])])])})),0)]),t._$s(21,"i",t.isEmpty)?r("u-empty",{attrs:{icon:"/static/images/empty.svg",width:"240",_i:21}}):r("view",{staticClass:t._$s(22,"sc","load-more"),attrs:{_i:22}},[r("u-loadmore",{attrs:{status:t.loadStatus,"loading-icon":"semicircle",line:!0,_i:23}})],1)],1),t._$s(24,"i",t.isEdit)?r("view",{staticClass:t._$s(24,"sc","favorites-bottom align-center"),attrs:{_i:24}},[r("u-button",{attrs:{plain:!0,shape:"circle",text:"\u5168\u9009",_i:25},on:{click:t.selectAll}}),r("u-button",{attrs:{type:"error",plain:!0,shape:"circle",disabled:t.loading,loading:t.loading,text:"\u5220\u9664",_i:26},on:{click:t.delFav}})],1):t._e()])])},a=[]},3352:function(t,e){t.exports=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t},t.exports.__esModule=!0,t.exports["default"]=t.exports},3356:function(t,e,r){"use strict";r.d(e,"b",(function(){return n})),r.d(e,"c",(function(){return i})),r.d(e,"a",(function(){}));var n=function(){var t=this.$createElement,e=this._self._c||t;return e("view",{staticClass:this._$s(0,"sc","u-count-down"),attrs:{_i:0}},[this._t("default",[e("text",{staticClass:this._$s(2,"sc","u-count-down__text"),attrs:{_i:2}},[this._v(this._$s(2,"t0-0",this._s(this.formattedTime)))])],{_i:1})],2)},i=[]},"338b":function(t,e,r){"use strict";r.r(e);var n=r("a48c"),i=r.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return n[t]}))}(a);e["default"]=i.a},"341a":function(t,e,r){"use strict";var n=r("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(r("0159")),a={name:"u-badge",mixins:[uni.$u.mpMixin,i.default,uni.$u.mixin],computed:{boxStyle:function(){return{}},badgeStyle:function(){var t={};if(this.color&&(t.color=this.color),this.bgColor&&!this.inverted&&(t.backgroundColor=this.bgColor),this.absolute&&(t.position="absolute",this.offset.length)){var e=this.offset[0],r=this.offset[1]||e;t.top=uni.$u.addUnit(e),t.right=uni.$u.addUnit(r)}return t},showValue:function(){switch(this.numberType){case"overflow":return Number(this.value)>Number(this.max)?this.max+"+":this.value;case"ellipsis":return Number(this.value)>Number(this.max)?"...":this.value;case"limit":return Number(this.value)>999?Number(this.value)>=9999?Math.floor(this.value/1e4*100)/100+"w":Math.floor(this.value/1e3*100)/100+"k":this.value;default:return Number(this.value)}}}};e.default=a},"345b":function(t,e,r){"use strict";r.r(e);var n=r("341a"),i=r.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return n[t]}))}(a);e["default"]=i.a},3498:function(t,e,r){"use strict";r.r(e);var n=r("9544"),i=r.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return n[t]}))}(a);e["default"]=i.a},"34cf":function(t,e,r){var n=r("ed45"),i=r("7172"),a=r("6382"),s=r("dd3e");t.exports=function(t,e){return n(t)||i(t,e)||a(t,e)||s()},t.exports.__esModule=!0,t.exports["default"]=t.exports},3508:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={swipeAction:{autoClose:!0}}},3564:function(t,e,r){"use strict";r.r(e);var n=r("cf65"),i=r("3f5a");for(var a in i)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return i[t]}))}(a);var s=r("828b"),o=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);e["default"]=o.exports},"35b6":function(t,e,r){"use strict";var n=r("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(r("127e")),a=n(r("ee10")),s=n(r("42eb")),o=n(r("913b")),u=n(r("4a05")),l=r("0f81"),c={components:{vodItem:s.default,advItem:o.default,sortListAll:u.default},data:function(){return{condition:{type:{current:0,data:[{id:"",name:"\u5168\u90e8"}]},type_child:{current:0,data:[]},class:{current:0,data:[]},sort:{current:0,data:[{id:"",name:"\u9ed8\u8ba4"}]}},list:[],page:1,loaded:!1,refreshTriggered:!1,loadStatus:"loadmore",banner_adv:[],interval_adv:[],item:{},itemIndex:""}},methods:{openAll:function(t,e){this.itemIndex=t,this.item=e,this.$refs.popup.open()},init:function(){if(!1===this.loaded)this.getVodClass();else{var t=this.condition.type.data.findIndex((function(t){if(t.id==getApp().globalData.switchChannel.type_pid)return!0})),e=0;this.condition.type.current!=t&&(this.condition.type_child.data=this.condition.type.data[t].child),this.condition.type_child.data&&(e=this.condition.type_child.data.findIndex((function(t){if(t.id==getApp().globalData.switchChannel.type)return!0}))),this.condition.type.current==t&&this.condition.type_child.current==e||(this.condition.type.current=t,this.condition.type_child.current=e,this.condition.sort.current=0,this.loadStatus="loadmore",this.list=[],this.page=1,this.getData())}},tabsClick:function(t,e){if(this.condition[t].current!=e.index){var r,n,i,a;if("type"==t)this.condition.type_child.data=this.condition.type.data[e.index]["child"],this.condition.class.data=null!==(r=this.condition.type)&&void 0!==r&&null!==(n=r.data)&&void 0!==n&&null!==(i=n[e.index])&&void 0!==i&&null!==(a=i["class"])&&void 0!==a&&a.length?this.condition.type.data[e.index]["class"]:[],this.condition.type_child.current=0,this.condition.class.current=0,getApp().globalData.switchChannel.type_pid=e.id,getApp().globalData.switchChannel.type=0;"type_child"==t&&(getApp().globalData.switchChannel.type=e.id),this.condition[t].current=e.index,this.loadStatus="loadmore",this.list=[],this.page=1,this.getData()}},getVodClass:function(){var t=this;return(0,a.default)(i.default.mark((function e(){return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,l.app.vodClass().then((function(e){var r=e.data;r?(t.condition.type.data=r.type||[],t.condition.sort.data=r.sort||[],t.$nextTick((function(){var e,r,n,i;t.condition.type.current=t.condition.type.data.findIndex((function(t){if(t.id==getApp().globalData.switchChannel.type_pid)return!0})),t.condition.type_child.data=t.condition.type.data[t.condition.type.current].child,t.condition.type_child.data?t.condition.type_child.current=t.condition.type_child.data.findIndex((function(t){if(t.id==getApp().globalData.switchChannel.type)return!0})):t.condition.type_child.current=0,t.condition.class.data=null!==(e=t.condition.type)&&void 0!==e&&null!==(r=e.data)&&void 0!==r&&null!==(n=r[t.condition.type.current])&&void 0!==n&&null!==(i=n["class"])&&void 0!==i&&i.length?t.condition.type.data[t.condition.type.current]["class"]:[],t.getData()})),t.loaded=!0):uni.reLaunch({url:"/pages/splash/splash"})}));case 2:case"end":return e.stop()}}),e)})))()},getData:function(){var t=this;return(0,a.default)(i.default.mark((function e(){var r,n,a,s;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if("nomore"!==t.loadStatus&&"loading"!==t.loadStatus){e.next=2;break}return e.abrupt("return");case 2:return t.loadStatus="loading",r=t.condition.type.data[t.condition.type.current].id,n=r>0&&t.condition.type_child.data.length>0?t.condition.type_child.data[t.condition.type_child.current].id:0,a=t.condition.class.data.length?t.condition.class.data[t.condition.class.current].id:0,s=t.condition.sort.data[t.condition.sort.current].id,e.next=9,l.app.vodList(n,r,s,a,t.page).then((function(e){var r=e.data;t.banner_adv=r.adv_list.banner_adv,t.interval_adv=r.adv_list.interval_adv,r.page<r.page_total?(t.loadStatus="loadmore",t.page++):t.loadStatus="nomore",t.interval_adv.length&&r.list.forEach((function(e,n){(n+1)%8===0&&r.list.push(t.interval_adv[Math.floor(Math.random()*t.interval_adv.length)])})),t.list=t.list.concat(r.list),t.loaded=!0})).catch((function(e){t.loadStatus="loadmore"}));case 9:t.refreshTriggered=!1;case 10:case"end":return e.stop()}}),e)})))()},refresh:function(){this.refreshTriggered=!0,this.loadStatus="loadmore",this.page=1,this.list=[],this.getVodClass()}}};e.default=c},3612:function(t,e,r){"use strict";r.r(e);var n=r("d9fb"),i=r.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return n[t]}))}(a);e["default"]=i.a},3617:function(t,e,r){"use strict";r.r(e);var n=r("d4a4"),i=r.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return n[t]}))}(a);e["default"]=i.a},"362c":function(t,e,r){"use strict";r.d(e,"b",(function(){return i})),r.d(e,"c",(function(){return a})),r.d(e,"a",(function(){return n}));var n={uLoadingPage:r("ef90").default},i=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("view",{staticClass:t._$s(0,"sc","page-container"),attrs:{_i:0}},[r("view",{staticClass:t._$s(1,"sc","details-header"),attrs:{_i:1}},[r("image",{attrs:{src:t._$s(2,"a-src",t.data.actor_pic),_i:2},on:{error:function(e){return t.errorimg()}}}),r("view",{staticClass:t._$s(3,"sc","details-shadow"),attrs:{_i:3}}),r("text",{staticClass:t._$s(4,"sc","details-intro"),attrs:{_i:4},domProps:{innerHTML:t._s(t._$s(4,"v-html",t.data.actor_content))}}),t._$s(5,"i",t.data.vod)?r("view",{staticClass:t._$s(5,"sc","details-container vod-container"),attrs:{_i:5}},t._l(t._$s(6,"f",{forItems:t.data.vod.list}),(function(e,n,i,a){return r("vod-item",{key:t._$s(6,"f",{forIndex:i,key:n}),attrs:{index:n,type:1,item:e,_i:"6-"+a}})})),1):t._e()]),r("u-loading-page",{attrs:{loading:t.loading,bgColor:"none",fontSize:"16",_i:7}})],1)},a=[]},3705:function(t,e,r){"use strict";var n=r("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(r("127e")),a=n(r("ee10")),s=r("0f81"),o={data:function(){return{user:{},group:{},guest:{points:0,down_points:0}}},onNavigationBarButtonTap:function(){uni.navigateTo({url:"/pages/user/share-record"})},onLoad:function(){var t=this;return(0,a.default)(i.default.mark((function e(){var r;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$onLaunched;case 2:r=getApp().globalData.userToken,r?t.getInfo():uni.redirectTo({url:"/pages/user/login"});case 4:case"end":return e.stop()}}),e)})))()},methods:{goto:function(){uni.navigateTo({url:""})},getInfo:function(){var t=this;s.user.shareInfo().then((function(e){if(1==e.code)if(t.user=e.data.user,t.group=e.data.group,t.guest=e.data.guest,t.user.user_invite_num>0)if(1===t.user.group_id)t.user.user_invite_progress=Math.ceil(t.user.user_invite_num/t.user.group.group_number*100);else if(t.group[t.user.group_id+1]){var r=t.group[t.user.group_id-1].group_number;t.user.user_invite_progress=Math.ceil((t.user.user_invite_num-r)/(t.user.group.group_number-r)*100)}else t.user.user_invite_progress=100;else t.user.user_invite_progress=0}))}}};e.default=o},"396c":function(t,e,r){"use strict";var n=r("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(r("127e")),a=n(r("ee10")),s=(n(r("21cd")),r("0f81")),o=r("9c63"),u=(n(r("8f11")),n(r("4231"))),l=uni.requireNativePlugin("killer-release"),c={components:{vodImage:u.default},data:function(){return{launch:"",adv:{},showTime:{},guideShow:!1,safariShow:!1,loading:!1,loadingText:""}},onLoad:function(){var t=this;return(0,a.default)(i.default.mark((function e(){var r;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!t.isFullApp()){e.next=35;break}if("ios"==uni.getSystemInfoSync().platform?uni.getNetworkType({success:function(t){"none"===t.networkType?uni.showToast({title:"\u5f53\u524d\u65e0\u7f51\u7edc\u8fde\u63a5\uff0c\u8bf7\u68c0\u67e5\u7f51\u7edc\u8bbe\u7f6e",icon:"none"}):uni.redirectTo({url:"/pages/splash/splash"})}}):l.doUpdate(),!t.isVpn()){e.next=5;break}return uni.showToast({title:"\u8bf7\u5173\u95ed\u4ee3\u7406\u518d\u8bd5\u8bd5\u5427~",icon:"none"}),e.abrupt("return");case 5:if(t.loading=!0,t.loadingText="\u6b63\u5728\u542f\u52a8\uff0c\u8bf7\u7a0d\u5019..",r=uni.getStorageSync("API_DOMAIN"),""!=r&&0!=r.length){e.next=26;break}return t.loadingText="\u6b63\u5728\u68c0\u67e5\u7ebf\u8def\uff0c\u8bf7\u7a0d\u5019..",e.next=12,(0,o.getApiDomain)();case 12:if(r=e.sent,0!=r.length){e.next=17;break}return t.loadingText="\u7ebf\u8def\u68c0\u67e5\u51fa\u9519\uff0c\u8bf7\u68c0\u67e5\u7f51\u7edc\u8bbe\u7f6e",uni.showToast({title:"\u5f53\u524d\u7ebf\u8def\u4e0d\u901a\uff0c\u8bf7\u5148\u68c0\u67e5\u60a8\u7684\u7f51\u7edc\u8bbe\u7f6e\u540e\u8fdb\u884c\u8bbf\u95ee",icon:"none",duration:5e3}),e.abrupt("return");case 17:return t.loadingText="\u6b63\u5728\u521d\u59cb\u5316\uff0c\u8bf7\u7a0d\u5019..",e.next=20,getApp().init();case 20:t.init(),s.app.home().then((function(t){})),s.app.indexList(0).then((function(t){})),s.app.vodClass().then((function(t){})),e.next=33;break;case 26:return t.loadingText="\u6b63\u5728\u521d\u59cb\u5316\uff0c\u8bf7\u7a0d\u5019..",e.next=29,t.$onLaunched;case 29:t.init(),s.app.home().then((function(t){})),s.app.indexList(0).then((function(t){})),s.app.vodClass().then((function(t){}));case 33:e.next=36;break;case 35:"ios"==uni.getSystemInfoSync().platform?t.guideShow=!0:t.safariShow=!0;case 36:case"end":return e.stop()}}),e)})))()},methods:{error:function(){this.loading=!1,this.$refs.countDown.start()},init:function(){var t=getApp().globalData.advList||[];t.length>0?(this.loadingText="\u6b63\u5728\u52a0\u8f7d\u5e7f\u544a..",this.adv=t[Math.floor(Math.random()*t.length)]):(this.launch=getApp().globalData.launch,this.launch||"ios"!=uni.getSystemInfoSync().platform&&(this.launch="/static/images/splash.png"),this.loadingText="\u51c6\u5907\u5c31\u7eea\uff0c\u5373\u5c06\u8fdb\u5165\u5e94\u7528..",setTimeout(this.toHome,3e3))},adLoad:function(){this.loading=!1,this.$refs.countDown.start()},toHome:function(){uni.reLaunch({url:"/pages/home/index"})},timeChange:function(t){this.showTime=t},copyLink:function(){uni.setClipboardData({data:window.location.href,showToast:!1,success:function(){uni.showToast({icon:"none",title:"\u5df2\u590d\u5236~!"})}})}}};e.default=c},"396f":function(t,e,r){var n,i,a,s=r("3b2d");(function(o,u){"object"===s(e)?t.exports=e=u(r("707d")):(i=[r("707d")],n=u,a="function"===typeof n?n.apply(e,i):n,void 0===a||(t.exports=a))})(0,(function(t){return function(){var e=t,r=e.lib,n=r.WordArray,i=r.Hasher,a=e.algo,s=[],o=a.SHA1=i.extend({_doReset:function(){this._hash=new n.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,e){for(var r=this._hash.words,n=r[0],i=r[1],a=r[2],o=r[3],u=r[4],l=0;l<80;l++){if(l<16)s[l]=0|t[e+l];else{var c=s[l-3]^s[l-8]^s[l-14]^s[l-16];s[l]=c<<1|c>>>31}var A=(n<<5|n>>>27)+u+s[l];A+=l<20?1518500249+(i&a|~i&o):l<40?1859775393+(i^a^o):l<60?(i&a|i&o|a&o)-1894007588:(i^a^o)-899497514,u=o,o=a,a=i<<30|i>>>2,i=n,n=A}r[0]=r[0]+n|0,r[1]=r[1]+i|0,r[2]=r[2]+a|0,r[3]=r[3]+o|0,r[4]=r[4]+u|0},_doFinalize:function(){var t=this._data,e=t.words,r=8*this._nDataBytes,n=8*t.sigBytes;return e[n>>>5]|=128<<24-n%32,e[14+(n+64>>>9<<4)]=Math.floor(r/4294967296),e[15+(n+64>>>9<<4)]=r,t.sigBytes=4*e.length,this._process(),this._hash},clone:function(){var t=i.clone.call(this);return t._hash=this._hash.clone(),t}});e.SHA1=i._createHelper(o),e.HmacSHA1=i._createHmacHelper(o)}(),t.SHA1}))},"3a41":function(t,e,r){"use strict";r.d(e,"b",(function(){return i})),r.d(e,"c",(function(){return a})),r.d(e,"a",(function(){return n}));var n={uniIcons:r("da03").default,uLine:r("ef2f").default,uButton:r("9a24").default},i=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("view",{staticClass:t._$s(0,"sc","page-container"),attrs:{_i:0}},[r("view",{staticClass:t._$s(1,"sc","recharge-header-bg"),attrs:{_i:1}}),r("view",{staticClass:t._$s(2,"sc","status-bar"),attrs:{_i:2}}),r("view",{staticClass:t._$s(3,"sc","page-header"),attrs:{_i:3}}),r("view",{staticClass:t._$s(4,"sc","recharge-header-content justify-between"),attrs:{_i:4}},[r("view",[r("view",{staticClass:t._$s(6,"sc","text"),attrs:{_i:6}}),r("view",{staticClass:t._$s(7,"sc","sub-text"),attrs:{_i:7}})]),r("image",{attrs:{_i:8}})]),r("view",{staticClass:t._$s(9,"sc","recharge-box"),attrs:{_i:9}},[r("view",{staticClass:t._$s(10,"sc","package justify-around"),attrs:{_i:10}},t._l(t._$s(11,"f",{forItems:t.data.list}),(function(e,n,i,a){return r("view",{key:t._$s(11,"f",{forIndex:i,key:n}),staticClass:t._$s("11-"+a,"sc","package-item"),attrs:{_i:"11-"+a},on:{click:function(r){return t.onSelect(e.recharge_id)}}},[r("view",{staticClass:t._$s("12-"+a,"sc","packages-box"),class:t._$s("12-"+a,"c",e.recharge_id==t.id&&"selected"),attrs:{_i:"12-"+a}},[r("view",{staticClass:t._$s("13-"+a,"sc","package-title"),attrs:{_i:"13-"+a}},[t._v(t._$s("13-"+a,"t0-0",t._s(e.recharge_name)))]),r("view",{staticClass:t._$s("14-"+a,"sc","package-price"),attrs:{_i:"14-"+a}},[r("text"),t._v(t._$s("14-"+a,"t1-0",t._s(e.recharge_price)))]),t._$s("16-"+a,"i",1===e.recharge_selected)?r("text",{staticClass:t._$s("16-"+a,"sc","package-recommend"),attrs:{_i:"16-"+a}}):t._e()])])})),0)]),r("view",{staticClass:t._$s(17,"sc","recharge-payway"),attrs:{_i:17}},[r("view",{staticClass:t._$s(18,"sc","payway-title justify-between"),attrs:{_i:18}},[r("text",{staticClass:t._$s(19,"sc","title"),attrs:{_i:19}}),r("navigator",{staticClass:t._$s(20,"sc","align-center"),attrs:{_i:20}},[r("uni-icons",{attrs:{type:"help",color:"#9999a2",size:"20",_i:21}}),r("text")],1)]),t._$s(23,"i",t.data.paylist)?r("radio-group",{attrs:{_i:23},on:{change:t.paySelect}},[t._$s(24,"i",t.data.paylist.length<=1)?r("view",{staticClass:t._$s(24,"sc","payway-item flex-row"),attrs:{_i:24}},[r("image",{staticClass:t._$s(25,"sc","payway-icon"),attrs:{_i:25}}),r("view",{staticClass:t._$s(26,"sc","payway-content"),attrs:{_i:26}},[r("view",{staticClass:t._$s(27,"sc","payway-name"),attrs:{_i:27}}),r("view",{staticClass:t._$s(28,"sc","payway-extend"),attrs:{_i:28}})]),r("view",{staticClass:t._$s(29,"sc","line"),attrs:{_i:29}},[r("u-line",{attrs:{_i:30}})],1)]):t._e(),t._l(t._$s(31,"f",{forItems:t.data.paylist}),(function(e,n,i,a){return r("view",{key:t._$s(31,"f",{forIndex:i,key:n}),staticClass:t._$s("31-"+a,"sc","payway-item flex-row"),attrs:{_i:"31-"+a}},[r("image",{staticClass:t._$s("32-"+a,"sc","payway-icon"),attrs:{src:t._$s("32-"+a,"a-src","manual"===e.id?"/static/images/customer-service.png":"/static/images/online-payment.png"),_i:"32-"+a}}),r("view",{staticClass:t._$s("33-"+a,"sc","payway-content"),attrs:{_i:"33-"+a}},[r("view",{staticClass:t._$s("34-"+a,"sc","payway-name"),attrs:{_i:"34-"+a}},[t._v(t._$s("34-"+a,"t0-0",t._s(e.name)))]),t._$s("35-"+a,"i",e.remarks)?r("view",{staticClass:t._$s("35-"+a,"sc","payway-extend"),attrs:{_i:"35-"+a}},[r("text",[t._v(t._$s("36-"+a,"t0-0",t._s(e.remarks)))])]):t._e()]),r("label",[r("radio",{attrs:{value:t._$s("38-"+a,"a-value",e.id),checked:t._$s("38-"+a,"a-checked",t.payid===e.id),_i:"38-"+a}})]),r("view",{staticClass:t._$s("39-"+a,"sc","line"),attrs:{_i:"39-"+a}},[r("u-line",{attrs:{_i:"40-"+a}})],1)])}))],2):t._e()]),r("u-button",{staticClass:t._$s(41,"sc","pay-button"),attrs:{shape:"circle",disabled:t.loading,loading:t.loading,color:"linear-gradient(90deg, #DA2538 0%, #F75F68 100%)",text:"\u786e\u8ba4\u5145\u503c",_i:41},on:{click:t.pay}}),r("navigator",{staticClass:t._$s(42,"sc","record-button"),attrs:{_i:42}})],1)},a=[]},"3ad2":function(t,e,r){"use strict";var n=r("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(r("4231")),a={components:{vodImage:i.default},props:{item:{type:Object,default:{}}},data:function(){return{}}};e.default=a},"3ada":function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={lineProgress:{activeColor:"#19be6b",inactiveColor:"#ececec",percentage:0,showText:!0,height:12}}},"3b2d":function(t,e){function r(e){return t.exports=r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports["default"]=t.exports,r(e)}t.exports=r,t.exports.__esModule=!0,t.exports["default"]=t.exports},"3baa":function(t,e,r){var n,i,a,s=r("3b2d");(function(o,u,l){"object"===s(e)?t.exports=e=u(r("707d"),r("bbe5")):(i=[r("707d"),r("bbe5")],n=u,a="function"===typeof n?n.apply(e,i):n,void 0===a||(t.exports=a))})(0,(function(t){return t.mode.ECB=function(){var e=t.lib.BlockCipherMode.extend();return e.Encryptor=e.extend({processBlock:function(t,e){this._cipher.encryptBlock(t,e)}}),e.Decryptor=e.extend({processBlock:function(t,e){this._cipher.decryptBlock(t,e)}}),e}(),t.mode.ECB}))},"3be9":function(t,e,r){"use strict";var n=r("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(r("127e")),a=n(r("ee10")),s=n(r("7ca3")),o=r("9c63"),u=r("0f81");function l(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function c(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?l(Object(r),!0).forEach((function(e){(0,s.default)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var A={data:function(){return{fileList:[],typeList:[{id:1,name:"\u5185\u5bb9\u62a5\u9519"},{id:2,name:"\u8d44\u6e90\u627e\u7247"},{id:3,name:"\u5145\u503c\u53cd\u9988"},{id:4,name:"\u610f\u89c1\u5efa\u8bae"},{id:5,name:"\u5176\u4ed6"}],id:0,type:4,img:"",content:"",loading:!1}},onNavigationBarButtonTap:function(){uni.navigateTo({url:"/pages/feedback/feedback-record"})},onLoad:function(t){t.type&&(this.type=parseInt(t.type)),t.vod_id&&(this.id=parseInt(t.vod_id)),t.vod_name&&(this.content="\u300a"+t.vod_name+"\u300b\u65e0\u6cd5\u89c2\u770b\uff0c\u8bf7\u5ba1\u67e5\u3002"),t.orderId&&(this.content="\u8ba2\u5355\u53f7\u3010"+t.orderId+"\u3011\u5145\u503c\u672a\u5230\u8d26\uff0c\u8bf7\u5ba1\u67e5\u3002")},methods:{deleteFile:function(t){this.fileList.splice(t.index,1),this.img=""},uploadFile:function(t){var e=this;this.fileList=[c(c({},t.file),{},{status:"uploading",message:"\u4e0a\u4f20\u4e2d"})],(0,o.upload)(t.file.url).then((function(r){1===r.code?(e.fileList.splice(0,1,c(c({},t.file),{},{status:"success",message:""})),e.img=r.data.url):(uni.showToast({icon:"none",title:r.msg,duration:3e3}),e.fileList=[])})).catch((function(t){e.fileList=[]}))},submit:function(){var t=this;return(0,a.default)(i.default.mark((function e(){return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(""!==t.content){e.next=3;break}return uni.showToast({icon:"none",title:"\u8bf7\u8f93\u5165\u53cd\u9988\u5185\u5bb9~!",duration:3e3}),e.abrupt("return");case 3:if(3!==t.type||""!==t.img){e.next=6;break}return uni.showToast({icon:"none",title:"\u8bf7\u4e0a\u4f20\u652f\u4ed8\u622a\u56fe~!",duration:3e3}),e.abrupt("return");case 6:return t.loading=!0,e.next=9,u.user.gbook(t.type,t.content,t.img,t.id).then((function(e){uni.showToast({icon:"none",title:e.msg,duration:3e3}),1===e.code&&(t.id=0,t.content="",t.img="",t.fileList=[])})).catch((function(t){}));case 9:t.loading=!1;case 10:case"end":return e.stop()}}),e)})))()},typeSelect:function(t){this.type=t}}};e.default=A},"3c03":function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={collapse:{value:null,accordion:!1,border:!0}}},"3c46":function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={form:{model:function(){return{}},rules:function(){return{}},errorType:"message",borderBottom:!0,labelPosition:"left",labelWidth:45,labelAlign:"left",labelStyle:function(){return{}}}}},"3ce0":function(t,e,r){"use strict";r.d(e,"b",(function(){return n})),r.d(e,"c",(function(){return i})),r.d(e,"a",(function(){}));var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("view",{staticClass:t._$s(0,"sc","container"),attrs:{_i:0},on:{touchmove:function(t){t.stopPropagation()}}},[r("view",{staticClass:t._$s(1,"sc","actor-block"),attrs:{_i:1}},[r("view",{staticClass:t._$s(2,"sc","actor-star"),attrs:{_i:2}},[r("text")]),r("swiper",{staticClass:t._$s(4,"sc","swiper"),attrs:{_i:4}},t._l(t._$s(5,"f",{forItems:t.data}),(function(e,n,i,a){return r("swiper-item",{key:t._$s(5,"f",{forIndex:i,key:n})},[r("view",{staticClass:t._$s("6-"+a,"sc","actor-item"),attrs:{_i:"6-"+a}},[r("view",[r("navigator",{staticClass:t._$s("8-"+a,"sc","vod-image"),attrs:{url:t._$s("8-"+a,"a-url","/pages/album/actor-details?id="+e.id),_i:"8-"+a}},[r("vod-image",{attrs:{src:e.pic,mode:"aspectFill",_i:"9-"+a}})],1),r("view",{staticClass:t._$s("10-"+a,"sc","name"),attrs:{_i:"10-"+a}},[t._v(t._$s("10-"+a,"t0-0",t._s(e.name)))])])])])})),0)])])},i=[]},"3e0b":function(t,e,r){"use strict";r.d(e,"b",(function(){return n})),r.d(e,"c",(function(){return i})),r.d(e,"a",(function(){}));var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("view",{staticClass:t._$s(0,"sc","page-container"),attrs:{_i:0}},[r("view",{staticClass:t._$s(1,"sc","help-container"),attrs:{_i:1}},[r("view",{staticClass:t._$s(2,"sc","card"),attrs:{_i:2}},[r("view",{staticClass:t._$s(3,"sc","card-content"),attrs:{_i:3}},[r("view",{staticClass:t._$s(4,"sc","help-item"),attrs:{_i:4}},[r("view",{staticClass:t._$s(5,"sc","question flex-row"),attrs:{_i:5}},[r("text",{staticClass:t._$s(6,"sc","icon"),attrs:{_i:6}}),r("text",{staticClass:t._$s(7,"sc","title"),attrs:{_i:7}})]),r("view",{staticClass:t._$s(8,"sc","answer flex-row"),attrs:{_i:8}},[r("text",{staticClass:t._$s(9,"sc","icon"),attrs:{_i:9}}),r("text",{staticClass:t._$s(10,"sc","content"),attrs:{_i:10}})])]),r("view",{staticClass:t._$s(11,"sc","help-item"),attrs:{_i:11}},[r("view",{staticClass:t._$s(12,"sc","question flex-row"),attrs:{_i:12}},[r("text",{staticClass:t._$s(13,"sc","icon"),attrs:{_i:13}}),r("text",{staticClass:t._$s(14,"sc","title"),attrs:{_i:14}})]),r("view",{staticClass:t._$s(15,"sc","answer flex-row"),attrs:{_i:15}},[r("text",{staticClass:t._$s(16,"sc","icon"),attrs:{_i:16}}),r("text",{staticClass:t._$s(17,"sc","content"),attrs:{_i:17}})])]),r("view",{staticClass:t._$s(18,"sc","help-item"),attrs:{_i:18}},[r("view",{staticClass:t._$s(19,"sc","question flex-row"),attrs:{_i:19}},[r("text",{staticClass:t._$s(20,"sc","icon"),attrs:{_i:20}}),r("text",{staticClass:t._$s(21,"sc","title"),attrs:{_i:21}})]),r("view",{staticClass:t._$s(22,"sc","answer flex-row"),attrs:{_i:22}},[r("text",{staticClass:t._$s(23,"sc","icon"),attrs:{_i:23}}),r("text",{staticClass:t._$s(24,"sc","content"),attrs:{_i:24}})])])])])])])},i=[]},"3e0e":function(t,e,r){"use strict";var n=r("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(r("6503")),a={name:"u-loadmore",mixins:[uni.$u.mpMixin,uni.$u.mixin,i.default],data:function(){return{dotText:"\u25cf"}},computed:{loadTextStyle:function(){return{color:this.color,fontSize:uni.$u.addUnit(this.fontSize),lineHeight:uni.$u.addUnit(this.fontSize),backgroundColor:this.bgColor}},showText:function(){var t="";return t="loadmore"==this.status?this.loadmoreText:"loading"==this.status?this.loadingText:"nomore"==this.status&&this.isDot?this.dotText:this.nomoreText,t}},methods:{loadMore:function(){"loadmore"==this.status&&this.$emit("loadmore")}}};e.default=a},"3efd":function(t,e,r){"use strict";r.r(e);var n=r("5257"),i=r.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return n[t]}))}(a);e["default"]=i.a},"3f4d":function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={props:{show:{type:Boolean,default:uni.$u.props.loadingIcon.show},color:{type:String,default:uni.$u.props.loadingIcon.color},textColor:{type:String,default:uni.$u.props.loadingIcon.textColor},vertical:{type:Boolean,default:uni.$u.props.loadingIcon.vertical},mode:{type:String,default:uni.$u.props.loadingIcon.mode},size:{type:[String,Number],default:uni.$u.props.loadingIcon.size},textSize:{type:[String,Number],default:uni.$u.props.loadingIcon.textSize},text:{type:[String,Number],default:uni.$u.props.loadingIcon.text},timingFunction:{type:String,default:uni.$u.props.loadingIcon.timingFunction},duration:{type:[String,Number],default:uni.$u.props.loadingIcon.duration},inactiveColor:{type:String,default:uni.$u.props.loadingIcon.inactiveColor}}};e.default=n},"3f5a":function(t,e,r){"use strict";r.r(e);var n=r("b36e"),i=r.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return n[t]}))}(a);e["default"]=i.a},"3f9c":function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={props:{color:{type:String,default:uni.$u.props.line.color},length:{type:[String,Number],default:uni.$u.props.line.length},direction:{type:String,default:uni.$u.props.line.direction},hairline:{type:Boolean,default:uni.$u.props.line.hairline},margin:{type:[String,Number],default:uni.$u.props.line.margin},dashed:{type:Boolean,default:uni.$u.props.line.dashed}}};e.default=n},"3fb8":function(t,e,r){"use strict";r.d(e,"b",(function(){return i})),r.d(e,"c",(function(){return a})),r.d(e,"a",(function(){return n}));var n={uLoadmore:r("bc5a").default},i=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("scroll-view",{attrs:{"refresher-triggered":t._$s(0,"a-refresher-triggered",t.refreshTriggered),_i:0},on:{refresherrefresh:t.refresh,scrolltolower:t.getData}},[r("view",{staticClass:t._$s(1,"sc","vod-container"),attrs:{_i:1}},t._l(t._$s(2,"f",{forItems:t.list}),(function(e,n,i,a){return r("view",{key:t._$s(2,"f",{forIndex:i,key:n})},[r("vod-item",{attrs:{item:e,index:n+1,order:!0,_i:"3-"+a}}),t._$s("4-"+a,"i",(n+1)%8===0&&t.banner_adv.length)?r("adv-item",{attrs:{adv:t.banner_adv[Math.floor(Math.random()*t.banner_adv.length)],_i:"4-"+a}}):t._e()],1)})),0),r("view",{staticClass:t._$s(5,"sc","load-more"),attrs:{_i:5}},[r("u-loadmore",{attrs:{status:t.loadStatus,"loading-icon":"semicircle",line:!0,_i:6}})],1)])},a=[]},4021:function(t,e,r){"use strict";var n=r("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){if(t&&!(0,i.default)(e))return(0,a.default)(t,e);return e};var i=n(r("c541")),a=n(r("8485"))},4108:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={stepsItem:{title:"",desc:"",iconSize:17,error:!1}}},4185:function(t,e,r){"use strict";var n=r("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(r("127e")),a=n(r("ee10")),s=n(r("d3ef")),o=s.default.vodFav,u={get:function(t){return(0,a.default)(i.default.mark((function e(){return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,o.get(t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})))()},list:function(t){var e=arguments;return(0,a.default)(i.default.mark((function r(){var n,a,s,u,l;return i.default.wrap((function(r){while(1)switch(r.prev=r.next){case 0:return n=e.length>1&&void 0!==e[1]?e[1]:20,a=(t-1)*n,r.next=4,o.where({status:1}).count();case 4:return s=r.sent,u=Math.ceil(s/n),r.next=8,o.orderBy("time").reverse().filter((function(t){return 1==t.status})).offset(a).limit(n).primaryKeys();case 8:return l=r.sent,r.abrupt("return",{list:l,count:s,pageCount:u});case 10:case"end":return r.stop()}}),r)})))()},update:function(t,e){return(0,a.default)(i.default.mark((function r(){return i.default.wrap((function(r){while(1)switch(r.prev=r.next){case 0:return r.next=2,o.update(t,e);case 2:return r.abrupt("return",r.sent);case 3:case"end":return r.stop()}}),r)})))()},delete:function(t,e){return(0,a.default)(i.default.mark((function e(){return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,o.delete(t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})))()},remove:function(t){return(0,a.default)(i.default.mark((function e(){return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,o.bulkDelete(t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})))()},put:function(t){return(0,a.default)(i.default.mark((function e(){return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,o.put(t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})))()}};e.default=u},"41a4":function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={text:{type:"",show:!0,text:"",prefixIcon:"",suffixIcon:"",mode:"",href:"",format:"",call:!1,openType:"",bold:!1,block:!1,lines:"",color:"#303133",size:15,iconStyle:function(){return{fontSize:"15px"}},decoration:"none",margin:0,lineHeight:"",align:"left",wordWrap:"normal"}}},"421d":function(t,e,r){"use strict";var n=r("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(r("127e")),a=n(r("ee10")),s=r("0f81"),o={data:function(){return{data:{},money:"",loading:!1}},onNavigationBarButtonTap:function(){uni.navigateTo({url:"/pages/user/withdrawal-record"})},onLoad:function(){var t=this;return(0,a.default)(i.default.mark((function e(){var r;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$onLaunched;case 2:r=getApp().globalData.userToken,r?t.getData():uni.redirectTo({url:"/pages/user/login"});case 4:case"end":return e.stop()}}),e)})))()},methods:{getData:function(){var t=this;s.user.wallet().then((function(e){1==e.code&&(t.data=e.data,t.data.user_money=t.data.user_coin>0?parseFloat(t.data.user_coin/t.data.cash_ratio).toFixed(2):"0.00")}))},onSubmit:function(){var t=this;return(0,a.default)(i.default.mark((function e(){var r,n;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(r=/^[\u4e00-\u9fa5]{2,}$/,n=/^[A-Za-z0-9@.]+$/,0!=t.money&&""!=t.money){e.next=5;break}return uni.showToast({icon:"none",title:"\u8bf7\u586b\u5199\u63d0\u73b0\u91d1\u989d~!"}),e.abrupt("return");case 5:if(!(t.money>parseInt(t.data.user_money))){e.next=8;break}return uni.showToast({icon:"none",title:"\u5f53\u524d\u53ef\u63d0\u73b0\u7684\u91d1\u989d\u4e0d\u8db3~!"}),e.abrupt("return");case 8:if(r.test(t.data.user_real_name)){e.next=11;break}return uni.showToast({icon:"none",title:"\u8bf7\u586b\u5199\u652f\u4ed8\u5b9d\u771f\u5b9e\u7684\u59d3\u540d~!"}),e.abrupt("return");case 11:if(n.test(t.data.user_alipay)){e.next=14;break}return uni.showToast({icon:"none",title:"\u8bf7\u586b\u5199\u6b63\u786e\u7684\u652f\u4ed8\u5b9d\u8d26\u53f7~!"}),e.abrupt("return");case 14:return t.loading=!0,e.next=17,s.user.cash(t.money,t.data.user_real_name,t.data.user_alipay).then((function(e){uni.showToast({icon:"none",title:e.msg,duration:3e3}),1===e.code&&(t.money="",t.data.user_coin=e.data.user_coin,t.data.user_money=t.data.user_coin>0?parseFloat(t.data.user_coin/t.data.cash_ratio).toFixed(2):"0.00")})).catch((function(t){}));case 17:t.loading=!1;case 18:case"end":return e.stop()}}),e)})))()},onAll:function(){this.money=parseInt(this.data.user_money)}}};e.default=o},4231:function(t,e,r){"use strict";r.r(e);var n=r("9d93"),i=r("3498");for(var a in i)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return i[t]}))}(a);var s=r("828b"),o=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);e["default"]=o.exports},"42eb":function(t,e,r){"use strict";r.r(e);var n=r("9db8"),i=r("3efd");for(var a in i)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return i[t]}))}(a);var s=r("828b"),o=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);e["default"]=o.exports},"42fe":function(t,e,r){"use strict";r.r(e);var n=r("a957"),i=r("b958");for(var a in i)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return i[t]}))}(a);var s=r("828b"),o=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,"7e77a622",null,!1,n["a"],void 0);e["default"]=o.exports},4331:function(t,e,r){"use strict";r.r(e);var n=r("5714"),i=r.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return n[t]}))}(a);e["default"]=i.a},"43d1":function(t,e,r){"use strict";r.r(e);var n=r("8ef7"),i=r.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return n[t]}))}(a);e["default"]=i.a},"443b":function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={tabs:{duration:300,list:function(){return[]},lineColor:"#3c9cff",activeStyle:function(){return{color:"#303133"}},inactiveStyle:function(){return{color:"#606266"}},lineWidth:20,lineHeight:3,lineBgSize:"cover",itemStyle:function(){return{height:"44px"}},scrollable:!0,current:0,keyName:"name"}}},4457:function(t,e,r){"use strict";(function(t){var n=r("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(r("127e")),a=n(r("ee10")),s=n(r("d4bd")),o=n(r("7d40")),u=r("0f81"),l={components:{fullAdv:s.default,reward:o.default},data:function(){return{isLogin:!1}},onShow:function(){var t=this;return(0,a.default)(i.default.mark((function e(){var r;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$onLaunched;case 2:r=getApp().globalData.userToken,t.isLogin=!!r,t.getData();case 5:case"end":return e.stop()}}),e)})))()},methods:{getData:function(){var e=this;uni.showLoading({title:"\u6b63\u5728\u52a0\u8f7d",mask:!0}),u.app.fullAdv().then((function(r){uni.hideLoading(),t("log",r," at pages/user/sign.vue:37");var n=r.data;n?(e.$refs.fullAdv.type="sign",e.$refs.fullAdv.adv=n[Math.floor(Math.random()*n.length)],e.$refs.fullAdv.showPopup=!0):e.sign()})).catch((function(t){uni.showToast({icon:"none",title:"\u670d\u52a1\u5668\u5f02\u5e38\uff0c\u8bf7\u7a0d\u540e\u91cd\u8bd5",duration:3e3}),setTimeout((function(){e.back()}),1500)}))},sign:function(){var t=this;this.isLogin?(uni.showLoading({title:"\u6b63\u5728\u52a0\u8f7d",mask:!0}),u.user.sign().then((function(e){0==e.code?(uni.showToast({icon:"none",title:e.msg,duration:3e3}),setTimeout((function(){t.back()}),1e3)):1==e.code&&(uni.hideLoading(),t.$refs.reward.onshow(e.data.task_coin))}))):uni.redirectTo({url:"/pages/user/login"})}}};e.default=l}).call(this,r("f3b9")["default"])},"44c2":function(t,e,r){"use strict";r.r(e);var n=r("7ffc"),i=r("9fa4");for(var a in i)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return i[t]}))}(a);var s=r("828b"),o=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,"30d10e0b",null,!1,n["a"],void 0);e["default"]=o.exports},"44d8":function(t,e,r){"use strict";r.r(e);var n=r("d9d6"),i=r("1b6d");for(var a in i)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return i[t]}))}(a);var s=r("828b"),o=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);e["default"]=o.exports},4521:function(t,e,r){"use strict";r.r(e);var n=r("3705"),i=r.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return n[t]}))}(a);e["default"]=i.a},"46de":function(t,e,r){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r={name:"Comment-bubble",props:{item:{type:Object,default:{}},index:{type:Number,default:0},replyType:{type:Number,default:0}},data:function(){return{}},methods:{digComment:function(t,e,r){this.$emit("digComment",t,e,r)},reply:function(e,r,n){t("log",this.replyType," at components/Comment-bubble.vue:56"),this.$emit("reply",this.replyType,r,n)},more:function(t,e){this.$emit("more",t,e)}}};e.default=r}).call(this,r("f3b9")["default"])},"47a9":function(t,e){t.exports=function(t){return t&&t.__esModule?t:{default:t}},t.exports.__esModule=!0,t.exports["default"]=t.exports},4817:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={cellGroup:{title:"",border:!0,customStyle:{}}}},4822:function(t,e,r){"use strict";(function(t){var n=r("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(r("127e")),a=n(r("ee10")),s=n(r("34cf")),o=n(r("a2c0")),u=n(r("fa2c")),l=n(r("4231")),c=n(r("b37f")),A=n(r("7d40")),d=n(r("d4bd")),f=n(r("0475")),h=r("a827"),p=r("0f81"),g={components:{videoInfo:o.default,vodImage:l.default,videoComment:u.default,share:c.default,reward:A.default,fullAdv:d.default,Artplayer:f.default},data:function(){return{id:0,data:{vod_play_url:[],is_fav:0},advList:{},playerUrl:"",controllerShow:!0,panelShow:!1,introShow:!1,episodesShow:!1,videoTabsIndex:0,videoEpisodes:0,episodesScroll:0,loading:!0,lookLoading:!1,playIndex:0,adLookNum:0,playAdv:null,playAdvShow:!1,playAdvTime:{},looked:[],playTime:0,timer:null,faved:!1,trySee:!1,style:{width:"750rpx",height:"234px",margin:"0px auto 0"},playing:!1,art:null,downloadurl:{},scrollTop:0,showinput:!1,lookedUrl:"",urlarr:[],p2p:0,danmu:[],rawplayer:0}},watch:{playIndex:{handler:function(t){this.playerUrl=this.data.vod_play_url[t]["list"][this.videoEpisodes].url,this.$refs.artplayer.uploadVideo({urlarr:this.urlarr,p2p:this.p2p,vod_thumbnails:this.data.vod_thumbnails,danmu:this.danmu,rawplayer:this.rawplayer})}},videoEpisodes:{handler:function(t){!1===this.loading&&(this.art.pause(),this.playerUrl="",this.lookVod())}}},onLoad:function(e){var r=this;t("log","zhu"," at pages/video/video.vue:168"),e.id&&(this.id=parseInt(e.id)),e.play_index&&(this.videoEpisodes=parseInt(e.play_index)),this.getData(),this.$nextTick((function(){r.commentData()}))},onShow:function(){var t=this;this.$nextTick((function(){t.timer=setInterval((function(){var e=t.playing;e&&t.playTime++,1800==t.playTime&&t.toTask(),t.trySee&&t.data.vod_trysee>0&&t.playTime>=t.data.vod_trysee&&(t.art.pause(),t.trySee=!1,2==t.data.vod_mode?t.toVip():t.toPay()),t.playTime>1800&&clearInterval(t.timer)}),1e3)}))},onHide:function(){this.timer&&clearInterval(this.timer)},onUnload:function(){this.timer&&clearInterval(this.timer),this.art&&this.art.destroy()},methods:{gotoguide:function(){uni.navigateTo({url:"pages/video/video-guide"})},pause:function(){this.art.pause()},getInstance:function(t){this.art=t},getdanmu:function(t){var e=uni.getStorageSync("API_DOMAIN"),r=uni.getStorageSync("API_DOMAIN_INDEX")||0;return new Promise((function(n,i){uni.request({method:"GET",url:e[r]+t}).then((function(t){var e=(0,s.default)(t,2),r=(e[0],e[1]);r&&200===r.statusCode?n(r.data):n([])}))}))},getData:function(){var e=this;return(0,a.default)(i.default.mark((function r(){return i.default.wrap((function(r){while(1)switch(r.prev=r.next){case 0:return e.loading=!0,r.next=3,p.app.vodDetails(e.id).then(function(){var r=(0,a.default)(i.default.mark((function r(n){return i.default.wrap((function(r){while(1)switch(r.prev=r.next){case 0:if(t("log",n," at pages/video/video.vue:254"),1!=n.code){r.next=20;break}if(e.data=n.data,!e.data.danmu){r.next=9;break}return r.next=6,e.getdanmu(e.data.danmu).then(e.danmu);case 6:r.t0=r.sent,r.next=10;break;case 9:r.t0=[];case 10:e.danmu=r.t0,h.vodDig.get(e.id).then((function(t){t&&(e.data.is_up=1==t.up?1:0,e.data.is_down=1==t.down?1:0,e.data.is_up&&(e.data.vod_up+=1),e.data.is_down&&(e.data.vod_down+=1))})),h.vodFav.get(e.id).then((function(t){t&&(e.data.is_fav=t.status)})),e.advList.full_adv=e.data.adv_list.full_adv||[],e.advList.play_adv=e.data.adv_list.play_adv||[],e.data.adv_list.banner_adv1.length>0&&(e.advList.banner_adv1=e.data.adv_list.banner_adv1[Math.floor(Math.random()*e.data.adv_list.banner_adv1.length)]),e.data.adv_list.banner_adv2.length>0&&(e.advList.banner_adv2=e.data.adv_list.banner_adv2[Math.floor(Math.random()*e.data.adv_list.banner_adv2.length)]),e.lookVod(),r.next=22;break;case 20:uni.showToast({icon:"none",title:n.msg,duration:3e3}),setTimeout((function(){e.toBack()}),1500);case 22:case"end":return r.stop()}}),r)})));return function(t){return r.apply(this,arguments)}}()).catch((function(t){setTimeout((function(){e.toBack()}),1500)}));case 3:case"end":return r.stop()}}),r)})))()},lookVod:function(){var e=this;return(0,a.default)(i.default.mark((function r(){var n,a,s;return i.default.wrap((function(r){while(1)switch(r.prev=r.next){case 0:if(-1!==e.looked.indexOf(e.videoEpisodes)){r.next=45;break}return e.lookLoading=!0,n=e.data.vod_play_url[e.playIndex]["list"][e.videoEpisodes].url,a=e.data.vod_play_url[e.playIndex].key,r.next=6,p.app.lookVod(e.id+"_"+e.videoEpisodes,n).then(s);case 6:if(s=r.sent,t("log",s,"lookvod"," at pages/video/video.vue:325"),e.lookLoading=!1,e.loading=!1,s.data.url&&(e.lookedUrl=s.data.url.h264,e.p2p=s.data.p2p,e.rawplayer=s.data.rawplayer,e.urlarr.push({displayName:"264",resName:a+"."+e.id+"."+e.playIndex+(s.data.url.ver?"."+s.data.url.ver:"")+".264",p2pM3u8Url:e.lookedUrl,maxLruCacheSize:3e3})),0!=s.code){r.next=17;break}return uni.showToast({icon:"none",title:s.msg,duration:3e3}),setTimeout((function(){e.toBack()}),1500),r.abrupt("return");case 17:if(2!=s.code){r.next=24;break}if(e.trySee=!0,!(e.data.vod_trysee<=0)){r.next=22;break}return e.toVip(),r.abrupt("return");case 22:r.next=41;break;case 24:if(3!=s.code){r.next=30;break}try{e.adLookNum=s.data.adv_look_num}catch(i){e.adLookNum=0}return e.toAdv(),r.abrupt("return");case 30:if(4!=s.code){r.next=37;break}if(e.trySee=!0,!(e.data.vod_trysee<=0)){r.next=35;break}return e.toPay(),r.abrupt("return");case 35:r.next=41;break;case 37:e.trySee=!1,e.looked.push(e.videoEpisodes),p.app.updateHits(e.id,1),e.addHistory();case 41:return r.next=43,e.showPlayAdv();case 43:e.playerUrl=e.data.vod_play_url[e.playIndex]["list"][e.videoEpisodes].url,e.$refs.artplayer.uploadVideo({urlarr:e.urlarr,p2p:e.p2p,vod_thumbnails:e.data.vod_thumbnails,danmu:e.danmu,rawplayer:e.rawplayer});case 45:case"end":return r.stop()}}),r)})))()},toTask:function(){var t=this,e=getApp().globalData.userToken;e&&p.user.task(2).then((function(e){1==e.code&&e.data&&t.toReward(e.data.task_coin)}))},addHistory:function(){var t=this,e={id:this.id,time:Math.round(new Date/1e3)};h.vodHistory.get(this.id).then((function(r){var n=r;if(n){var i=n.findIndex((function(t){return t.id===e.id}));i>=0?n.splice(i,1):n.length>=1e3&&n.pop(),h.vodHistory.update(t.id,e)}else h.vodHistory.put(e)}))},favVod:function(){var t=this;return(0,a.default)(i.default.mark((function e(){var r;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(r=getApp().globalData.userToken,!r){e.next=10;break}if(!t.faved){e.next=4;break}return e.abrupt("return");case 4:t.faved=!0,t.data.is_fav=1===t.data.is_fav?0:1,h.vodFav.get(t.id).then((function(e){var r={id:t.id,status:t.data.is_fav,time:Math.round(new Date/1e3)};e?r.status?h.vodFav.update(t.id,r):h.vodFav.delete(t.id):h.vodFav.put(r)})),t.faved=!1,e.next=11;break;case 10:uni.navigateTo({url:"/pages/user/login"});case 11:case"end":return e.stop()}}),e)})))()},digVod:function(t){var e=this;p.app.updateDig(this.id,1,t).then((function(r){var n=e.data["is_"+t]?0:1;if(1==r.code){1===e.data["is_"+t]?e.data["is_"+t]=0:e.data["is_"+t]=1;var i={};i[t]=e.data["is_"+t],1===n?e.data["vod_"+t]+=1:e.data["vod_"+t]>0&&(e.data["vod_"+t]-=1),h.vodDig.get(e.id).then((function(t){t?h.vodDig.update(e.id,i):(i.id=e.id,h.vodDig.add(i))}))}else uni.showToast({icon:"none",title:r.msg})}))},timeUpdate:function(t){this.trySee&&this.data.vod_trysee>0&&t>=this.data.vod_trysee&&(this.art.pause(),this.trySee=!1,this.toVip())},controller:function(t){this.controllerShow=t},setting:function(t){this.controllerShow=!t},switchLine:function(t){t?(this.controllerShow=!1,this.panelShow=!0):(this.controllerShow=!0,this.panelShow=!1)},changePlay:function(t){this.playIndex=t},swiperChange:function(t){this.videoTabsIndex=t.detail.current,1===this.videoTabsIndex&&!1===this.loading&&this.$refs.comment.init()},tabsClick:function(t){this.videoTabsIndex!=t&&(this.videoTabsIndex=t),this.scrollTop=1==t?710:0},closeIntro:function(){this.introShow=!1},triggerEpisodes:function(t){var e=this;this.episodesShow=t,t&&this.$nextTick((0,a.default)(i.default.mark((function t(){var r,n,a;return i.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,new Promise((function(t){uni.createSelectorQuery().in(e).select(".episodes-popup-grid").boundingClientRect((function(e){t(e)})).exec()}));case 2:return r=t.sent,t.next=5,new Promise((function(t){uni.createSelectorQuery().in(e).select(".episodes-popup-grid .selected").boundingClientRect((function(e){t(e)})).exec()}));case 5:n=t.sent,a=n.top-r.top-90,a=Math.min(a,r.height),e.episodesScroll=Math.max(0,a);case 9:case"end":return t.stop()}}),t)}))))},selectEpisodes:function(t){this.videoEpisodes=t,this.triggerEpisodes(!1)},openShare:function(){this.$refs.share.showSharePopup=!0},advTimeChange:function(t){this.playAdvTime=t},download:function(){var t=this.data.vod_down_url[this.playIndex]["list"][this.videoEpisodes].url,e=document.createElement("a");e.style.display="none",e.href=t,e.setAttribute("download","res.fileName"),e.setAttribute("target","_blank"),document.body.appendChild(e),e.click(),document.body.removeChild(e)},toReward:function(t){this.$refs.reward.onshow(t)},toVip:function(){var t=this;uni.showModal({title:"\u89c2\u5f71\u63d0\u793a",confirmText:"\u8d2d\u4e70VIP\u7279\u6743",confirmColor:"#fd6202",content:"\u8be5\u5f71\u7247\u662fVIP\u4e13\u5c5e\uff0c\u8bf7\u5148\u5347\u7ea7VIP\u518d\u8fdb\u884c\u89c2\u770b~!",success:function(e){e.confirm?uni.redirectTo({url:"/pages/user/recharge"}):t.toBack()}})},toPay:function(){var t=this;uni.showModal({title:"\u89c2\u5f71\u63d0\u793a",confirmText:"\u8d2d\u4e70\u89c6\u9891",confirmColor:"#fd6202",content:"\u8be5\u5f71\u7247\u662f\u4ed8\u8d39\u89c6\u9891\uff0c\u8bf7\u5148\u8d2d\u4e70\u89c6\u9891\u518d\u8fdb\u884c\u89c2\u770b~!",success:function(){var e=(0,a.default)(i.default.mark((function e(r){var n;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!r.confirm){e.next=22;break}return e.next=3,p.app.buyVod(t.id).then(n);case 3:if(n=e.sent,0!=n.code){e.next=10;break}return uni.showToast({icon:"none",title:n.msg,duration:3e3}),setTimeout((function(){t.toBack()}),2e3),e.abrupt("return");case 10:if(2!=n.code){e.next=16;break}return uni.showToast({icon:"none",title:n.msg,duration:3e3}),setTimeout((function(){uni.redirectTo({url:"/pages/user/bullion"})}),2e3),e.abrupt("return");case 16:if(3!=n.code){e.next=19;break}return t.toVip(),e.abrupt("return");case 19:uni.showToast({icon:"none",title:n.msg,duration:3e3}),e.next=23;break;case 22:t.toBack();case 23:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()})},toBack:function(){var t=getCurrentPages(),e=t.length;if(1===e)uni.switchTab({url:"/pages/home/index"});else for(var r=1;r<e;r++)if("pages/video/video"!=t[e-r-1].route){uni.navigateBack({delta:r});break}},toAdv:function(){var t=this,e="\u53d6\u6d88";this.advList.full_adv&&(e=this.adLookNum>0?"\u770b\u5e7f\u544a\u89e3\u9501\u89c6\u9891":"\u4eca\u65e5\u89e3\u9501\u6b21\u6570\u5df2\u6ee1"),uni.showModal({title:"\u89c2\u5f71\u63d0\u793a",confirmText:"\u8d2d\u4e70VIP\u7279\u6743",confirmColor:"#fd6202",cancelText:e,content:"\u60a8\u7684\u4eca\u65e5\u514d\u8d39\u89c2\u5f71\u6b21\u6570\u5df2\u7528\u5c3d~!",success:function(e){e.confirm?uni.redirectTo({url:"/pages/user/recharge"}):t.adLookNum>0&&t.advList.full_adv?t.showFullAdv("video"):t.toBack()}})},showPlayAdv:function(){this.playAdvShow&&this.$refs.advTime.reset(),this.advList.play_adv.length>0&&(this.playAdv=this.advList.play_adv[Math.floor(Math.random()*this.advList.play_adv.length)],this.playAdvShow=!0)},closePlayAdv:function(){this.playAdvShow=!1,this.art.play()},showFullAdv:function(t){t?(this.$refs.fullAdv.type=t,this.$refs.fullAdv.toast=null):(this.$refs.fullAdv.type="default",this.$refs.fullAdv.toast="\u89c6\u9891\u6781\u901f\u52a0\u8f7d\u4e2d"),this.$refs.fullAdv.adv=this.advList.full_adv[Math.floor(Math.random()*this.advList.full_adv.length)],this.$refs.fullAdv.showPopup=!0},closeFullAdv:function(t){var e=this;return(0,a.default)(i.default.mark((function r(){var n,a,s;return i.default.wrap((function(r){while(1)switch(r.prev=r.next){case 0:if("video"!=t){r.next=11;break}return e.lookLoading=!0,n=e.data.vod_play_url[e.playIndex]["list"][e.videoEpisodes].url,a=e.data.vod_play_url[e.playIndex].key,r.next=6,p.app.advUnlockVod(e.id+"_"+e.videoEpisodes,n).then(s);case 6:s=r.sent,s.data.url&&(e.lookedUrl=s.data.url.h264,e.p2p=s.data.p2p,e.urlarr.push({displayName:"264",resName:a+"."+e.id+"."+e.playIndex+(s.data.url.ver?"."+s.data.url.ver:"")+".264",p2pM3u8Url:e.lookedUrl,maxLruCacheSize:3e3})),e.lookLoading=!1,1==s.code&&(e.looked.push(e.videoEpisodes),p.app.updateHits(e.id,1),e.addHistory(),e.playerUrl=e.data.vod_play_url[e.playIndex]["list"][e.videoEpisodes].url,e.$refs.artplayer.uploadVideo({urlarr:e.urlarr,p2p:e.p2p,vod_thumbnails:e.data.vod_thumbnails,danmu:e.danmu,rawplayer:e.rawplayer}),e.$nextTick((function(){e.art.play()}))),uni.showToast({icon:"none",title:s.msg,duration:3e3});case 11:case"end":return r.stop()}}),r)})))()},commentData:function(){this.$refs.comment.getData()},handleScroll:function(t){var e=t.detail.scrollTop;this.videoTabsIndex=e>400?1:0},openComment:function(){this.videoTabsIndex=1,this.scrollTop=510}}};e.default=g}).call(this,r("f3b9")["default"])},4965:function(t,e){t.exports=function(t){try{return-1!==Function.toString.call(t).indexOf("[native code]")}catch(e){return"function"===typeof t}},t.exports.__esModule=!0,t.exports["default"]=t.exports},"497b":function(t,e,r){"use strict";r.r(e);var n=r("3356"),i=r("fd27");for(var a in i)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return i[t]}))}(a);var s=r("828b"),o=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,"714dad85",null,!1,n["a"],void 0);e["default"]=o.exports},"49a3":function(t,e,r){"use strict";var n=r("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(r("34cf")),a=n(r("3b2d")),s=n(r("8218")),o=r("e850");function u(t){if([null,void 0,NaN,!1].includes(t))return t;if("object"!==(0,a.default)(t)&&"function"!==typeof t)return t;var e=s.default.array(t)?[]:{};for(var r in t)t.hasOwnProperty(r)&&(e[r]="object"===(0,a.default)(t[r])?u(t[r]):t[r]);return e}function l(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"yyyy-mm-dd";t=e?/^\d{10}$/.test(null===e||void 0===e?void 0:e.toString().trim())?new Date(1e3*e):"string"===typeof e&&/^\d+$/.test(e.trim())?new Date(Number(e)):"string"===typeof e&&e.includes("-")&&!e.includes("T")?new Date(e.replace(/-/g,"/")):new Date(e):new Date;var n={y:t.getFullYear().toString(),m:(t.getMonth()+1).toString().padStart(2,"0"),d:t.getDate().toString().padStart(2,"0"),h:t.getHours().toString().padStart(2,"0"),M:t.getMinutes().toString().padStart(2,"0"),s:t.getSeconds().toString().padStart(2,"0")};for(var a in n){var s=new RegExp("".concat(a,"+")).exec(r)||[],o=(0,i.default)(s,1),u=o[0];if(u){var l="y"===a&&2===u.length?2:0;r=r.replace(u,n[a].slice(l))}}return r}function c(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"both";return t=String(t),"both"==e?t.replace(/^\s+|\s+$/g,""):"left"==e?t.replace(/^\s*/,""):"right"==e?t.replace(/(\s*$)/g,""):"all"==e?t.replace(/\s+/g,""):t}String.prototype.padStart||(String.prototype.padStart=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:" ";if("[object String]"!==Object.prototype.toString.call(e))throw new TypeError("fillString must be String");var r=this;if(r.length>=t)return String(r);var n=t-r.length,i=Math.ceil(n/e.length);while(i>>=1)e+=e,1===i&&(e+=e);return e.slice(0,n)+r});var A={range:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return Math.max(t,Math.min(e,Number(r)))},getPx:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return s.default.number(t)?e?"".concat(t,"px"):Number(t):/(rpx|upx)$/.test(t)?e?"".concat(uni.upx2px(parseInt(t)),"px"):Number(uni.upx2px(parseInt(t))):e?"".concat(parseInt(t),"px"):parseInt(t)},sleep:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:30;return new Promise((function(e){setTimeout((function(){e()}),t)}))},os:function(){return uni.getSystemInfoSync().platform.toLowerCase()},sys:function(){return uni.getSystemInfoSync()},random:function(t,e){if(t>=0&&e>0&&e>=t){var r=e-t+1;return Math.floor(Math.random()*r+t)}return 0},guid:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:32,e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),i=[];if(r=r||n.length,t)for(var a=0;a<t;a++)i[a]=n[0|Math.random()*r];else{var s;i[8]=i[13]=i[18]=i[23]="-",i[14]="4";for(var o=0;o<36;o++)i[o]||(s=0|16*Math.random(),i[o]=n[19==o?3&s|8:s])}return e?(i.shift(),"u".concat(i.join(""))):i.join("")},$parent:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,e=this.$parent;while(e){if(!e.$options||e.$options.name===t)return e;e=e.$parent}return!1},addStyle:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"object";if(s.default.empty(t)||"object"===(0,a.default)(t)&&"object"===e||"string"===e&&"string"===typeof t)return t;if("object"===e){t=c(t);for(var r=t.split(";"),n={},i=0;i<r.length;i++)if(r[i]){var o=r[i].split(":");n[c(o[0])]=c(o[1])}return n}var u="";for(var l in t){var A=l.replace(/([A-Z])/g,"-$1").toLowerCase();u+="".concat(A,":").concat(t[l],";")}return c(u)},addUnit:function(){var t,e,r,n,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"auto",a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null!==(t=null===(e=uni)||void 0===e||null===(r=e.$u)||void 0===r||null===(n=r.config)||void 0===n?void 0:n.unit)&&void 0!==t?t:"px";return i=String(i),s.default.number(i)?"".concat(i).concat(a):i},deepClone:u,deepMerge:function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e=u(e),"object"!==(0,a.default)(e)||"object"!==(0,a.default)(r))return!1;for(var n in r)r.hasOwnProperty(n)&&(n in e?"object"!==(0,a.default)(e[n])||"object"!==(0,a.default)(r[n])?e[n]=r[n]:e[n].concat&&r[n].concat?e[n]=e[n].concat(r[n]):e[n]=t(e[n],r[n]):e[n]=r[n]);return e},error:function(t){0},randomArray:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return t.sort((function(){return Math.random()-.5}))},timeFormat:l,timeFrom:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"yyyy-mm-dd";null==t&&(t=Number(new Date)),t=parseInt(t),10==t.toString().length&&(t*=1e3);var r=(new Date).getTime()-t;r=parseInt(r/1e3);var n="";switch(!0){case r<300:n="\u521a\u521a";break;case r>=300&&r<3600:n="".concat(parseInt(r/60),"\u5206\u949f\u524d");break;case r>=3600&&r<86400:n="".concat(parseInt(r/3600),"\u5c0f\u65f6\u524d");break;case r>=86400&&r<2592e3:n="".concat(parseInt(r/86400),"\u5929\u524d");break;default:n=!1===e?r>=2592e3&&r<31536e3?"".concat(parseInt(r/2592e3),"\u4e2a\u6708\u524d"):"".concat(parseInt(r/31536e3),"\u5e74\u524d"):l(t,e)}return n},trim:c,queryParams:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"brackets",n=e?"?":"",i=[];-1==["indices","brackets","repeat","comma"].indexOf(r)&&(r="brackets");var a=function(e){var n=t[e];if(["",void 0,null].indexOf(n)>=0)return"continue";if(n.constructor===Array)switch(r){case"indices":for(var a=0;a<n.length;a++)i.push("".concat(e,"[").concat(a,"]=").concat(n[a]));break;case"brackets":n.forEach((function(t){i.push("".concat(e,"[]=").concat(t))}));break;case"repeat":n.forEach((function(t){i.push("".concat(e,"=").concat(t))}));break;case"comma":var s="";n.forEach((function(t){s+=(s?",":"")+t})),i.push("".concat(e,"=").concat(s));break;default:n.forEach((function(t){i.push("".concat(e,"[]=").concat(t))}))}else i.push("".concat(e,"=").concat(n))};for(var s in t)a(s);return i.length?n+i.join("&"):""},toast:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2e3;uni.showToast({title:String(t),icon:"none",duration:e})},type2icon:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"success",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];-1==["primary","info","error","warning","success"].indexOf(t)&&(t="success");var r="";switch(t){case"primary":r="info-circle";break;case"info":r="info-circle";break;case"error":r="close-circle";break;case"warning":r="error-circle";break;case"success":r="checkmark-circle";break;default:r="checkmark-circle"}return e&&(r+="-fill"),r},priceFormat:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".",n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:",";t="".concat(t).replace(/[^0-9+-Ee.]/g,"");var i=isFinite(+t)?+t:0,a=isFinite(+e)?Math.abs(e):0,s="undefined"===typeof n?",":n,u="undefined"===typeof r?".":r,l="";l=(a?(0,o.round)(i,a)+"":"".concat(Math.round(i))).split(".");var c=/(-?\d+)(\d{3})/;while(c.test(l[0]))l[0]=l[0].replace(c,"$1".concat(s,"$2"));return(l[1]||"").length<a&&(l[1]=l[1]||"",l[1]+=new Array(a-l[1].length+1).join("0")),l.join(u)},getDuration:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=parseInt(t);return e?/s$/.test(t)?t:"".concat(t,t>30?"ms":"s"):/ms$/.test(t)?r:/s$/.test(t)?r>30?r:1e3*r:r},padZero:function(t){return"00".concat(t).slice(-2)},formValidate:function(t,e){var r=uni.$u.$parent.call(t,"u-form-item"),n=uni.$u.$parent.call(t,"u-form");r&&n&&n.validateField(r.prop,(function(){}),e)},getProperty:function(t,e){if(t){if("string"!==typeof e||""===e)return"";if(-1!==e.indexOf(".")){for(var r=e.split("."),n=t[r[0]]||{},i=1;i<r.length;i++)n&&(n=n[r[i]]);return n}return t[e]}},setProperty:function(t,e,r){if(t){if("string"!==typeof e||""===e);else if(-1!==e.indexOf(".")){var n=e.split(".");(function t(e,r,n){if(1!==r.length)while(r.length>1){var i=r[0];e[i]&&"object"===(0,a.default)(e[i])||(e[i]={});r.shift();t(e[i],r,n)}else e[r[0]]=n})(t,n,r)}else t[e]=r}},page:function(){var t,e,r=getCurrentPages();return"/".concat(null!==(t=null===(e=r[r.length-1])||void 0===e?void 0:e.route)&&void 0!==t?t:"")},pages:function(){var t=getCurrentPages();return t},setConfig:function(t){var e=t.props,r=void 0===e?{}:e,n=t.config,i=void 0===n?{}:n,a=t.color,s=void 0===a?{}:a,o=t.zIndex,u=void 0===o?{}:o,l=uni.$u.deepMerge;uni.$u.config=l(uni.$u.config,i),uni.$u.props=l(uni.$u.props,r),uni.$u.color=l(uni.$u.color,s),uni.$u.zIndex=l(uni.$u.zIndex,u)}};e.default=A},"49b8":function(t,e,r){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r={props:{item:{type:Object,default:{}},itemIndex:{type:[String,Number],default:""}},data:function(){return{}},computed:{tabsData:function(){return this.item.data},currentTab:function(){return this.item.current}},methods:{tabsClick:function(e){if(this.itemIndex){var r={index:e};t("log",r," at components/sortListAll.vue:40"),this.$emit("tabClick",this.itemIndex,r)}else this.$emit("tabClick",e);this.$refs.popup.close("top")},open:function(){this.$refs.popup.open()}}};e.default=r}).call(this,r("f3b9")["default"])},"49ba":function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={countDown:{time:0,format:"HH:mm:ss",autoStart:!0,millisecond:!1}}},"49e7":function(t,e,r){"use strict";var n=r("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(r("0d2b")),a=i.default.color,s={loadingIcon:{show:!0,color:a["u-tips-color"],textColor:a["u-tips-color"],vertical:!1,mode:"spinner",size:24,textSize:15,text:"",timingFunction:"ease-in-out",duration:1200,inactiveColor:""}};e.default=s},"4a05":function(t,e,r){"use strict";r.r(e);var n=r("ad08"),i=r("bd05");for(var a in i)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return i[t]}))}(a);var s=r("828b"),o=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);e["default"]=o.exports},"4a3c":function(t,e,r){"use strict";r.d(e,"b",(function(){return i})),r.d(e,"c",(function(){return a})),r.d(e,"a",(function(){return n}));var n={uPopup:r("591c").default,uGrid:r("88b8").default,uGridItem:r("94f4").default},i=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("view",[r("u-popup",{attrs:{show:t.showSharePopup,round:10,_i:1}},[r("view",{staticClass:t._$s(2,"sc","share-popup"),attrs:{_i:2}},[r("view",{staticClass:t._$s(3,"sc","share-title"),attrs:{_i:3}}),r("u-grid",{staticClass:t._$s(4,"sc","share-popup-grid"),attrs:{border:!1,col:"5",_i:4}},t._l(t._$s(5,"f",{forItems:t.shareList}),(function(e,n,i,a){return r("u-grid-item",{key:t._$s(5,"f",{forIndex:i,key:n}),attrs:{_i:"5-"+a},on:{click:function(e){return t.selectChannel(n)}}},[r("image",{staticClass:t._$s("6-"+a,"sc","share-icon"),attrs:{src:t._$s("6-"+a,"a-src",e.icon),_i:"6-"+a}}),r("text",[t._v(t._$s("7-"+a,"t0-0",t._s(e.name)))])])})),1),r("view",{staticClass:t._$s(8,"sc","close-button"),attrs:{_i:8},on:{click:t.close}})],1)]),r("u-popup",{attrs:{show:t.showChannelPopup,round:10,"custom-style":{width:"80%",maxWidth:"300px"},mode:"center",_i:9},on:{close:t.closeChannel}},[r("view",{staticClass:t._$s(10,"sc","channel-popup"),attrs:{_i:10}},[r("view",{staticClass:t._$s(11,"sc","channel-title"),attrs:{_i:11}}),r("view",{staticClass:t._$s(12,"sc","channel-content"),attrs:{_i:12}},[t._v(t._$s(12,"t0-0",t._s(t.content)))]),r("view",{staticClass:t._$s(13,"sc","channel-button"),attrs:{_i:13},on:{click:t.share}},[r("image",{attrs:{src:t._$s(14,"a-src",t.shareBtn.icon),_i:14}}),r("text",[t._v(t._$s(15,"t0-0",t._s(t.shareBtn.title)))])])])])],1)},a=[]},"4ab3":function(t,e,r){"use strict";(function(t){var n=r("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(r("7ca3")),a=n(r("67ad")),s=n(r("0bdb")),o=n(r("e85e")),u=n(r("c588")),l=n(r("03fc")),c=n(r("732d")),A=r("7707"),d=n(r("15d6"));function f(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function h(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?f(Object(r),!0).forEach((function(e){(0,i.default)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var p=function(){function e(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,a.default)(this,e),(0,A.isPlainObject)(r)||(r={},t("warn","\u8bbe\u7f6e\u5168\u5c40\u53c2\u6570\u5fc5\u987b\u63a5\u6536\u4e00\u4e2aObject"," at uview-ui/libs/luch-request/core/Request.js:39")),this.config=(0,d.default)(h(h({},c.default),r)),this.interceptors={request:new u.default,response:new u.default}}return(0,s.default)(e,[{key:"setConfig",value:function(t){this.config=t(this.config)}},{key:"middleware",value:function(t){t=(0,l.default)(this.config,t);var e=[o.default,void 0],r=Promise.resolve(t);this.interceptors.request.forEach((function(t){e.unshift(t.fulfilled,t.rejected)})),this.interceptors.response.forEach((function(t){e.push(t.fulfilled,t.rejected)}));while(e.length)r=r.then(e.shift(),e.shift());return r}},{key:"request",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.middleware(t)}},{key:"get",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.middleware(h({url:t,method:"GET"},e))}},{key:"post",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.middleware(h({url:t,data:e,method:"POST"},r))}},{key:"put",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.middleware(h({url:t,data:e,method:"PUT"},r))}},{key:"delete",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.middleware(h({url:t,data:e,method:"DELETE"},r))}},{key:"options",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.middleware(h({url:t,data:e,method:"OPTIONS"},r))}},{key:"upload",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.url=t,e.method="UPLOAD",this.middleware(e)}},{key:"download",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.url=t,e.method="DOWNLOAD",this.middleware(e)}}]),e}();e.default=p}).call(this,r("f3b9")["default"])},"4b26":function(t,e,r){"use strict";r.r(e);var n=r("f8cb"),i=r.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return n[t]}))}(a);e["default"]=i.a},"4c27":function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={columnNotice:{text:"",icon:"volume",mode:"",color:"#f9ae3d",bgColor:"#fdf6ec",fontSize:14,speed:80,step:!1,duration:1500,disableTouch:!0}}},"4c54":function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={list:{showScrollbar:!1,lowerThreshold:50,upperThreshold:0,scrollTop:0,offsetAccuracy:10,enableFlex:!1,pagingEnabled:!1,scrollable:!0,scrollIntoView:"",scrollWithAnimation:!1,enableBackToTop:!1,height:0,width:0,preLoadScreen:1}}},"4c80":function(t,e,r){"use strict";r.r(e);var n=r("3e0e"),i=r.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return n[t]}))}(a);e["default"]=i.a},"4cd6":function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={toolbar:{show:!0,cancelText:"\u53d6\u6d88",confirmText:"\u786e\u8ba4",cancelColor:"#909193",confirmColor:"#3c9cff",title:""}}},"4d1f":function(t,e,r){"use strict";r.d(e,"b",(function(){return i})),r.d(e,"c",(function(){return a})),r.d(e,"a",(function(){return n}));var n={uniIcons:r("da03").default,uTag:r("00ee").default,uLoadmore:r("bc5a").default},i=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("view",{staticClass:t._$s(0,"sc","page-container"),attrs:{_i:0}},[r("view",{staticClass:t._$s(1,"sc","status-bar"),attrs:{_i:1}}),r("view",{staticClass:t._$s(2,"sc","page-head"),attrs:{_i:2}},[r("view",{staticClass:t._$s(3,"sc","page-head-btn"),attrs:{_i:3},on:{click:t.back}},[r("uni-icons",{attrs:{type:"back",color:"#fff",size:"26",_i:4}})],1),r("view",{staticClass:t._$s(5,"sc","page-head-title"),attrs:{_i:5}})]),r("view",{staticClass:t._$s(6,"sc","withdraw-recird card"),attrs:{_i:6}},[r("view",{staticClass:t._$s(7,"sc","card-content"),attrs:{_i:7}},t._l(t._$s(8,"f",{forItems:t.list}),(function(e,n,i,a){return r("view",{key:t._$s(8,"f",{forIndex:i,key:n}),staticClass:t._$s("8-"+a,"sc","record-item"),attrs:{_i:"8-"+a}},[r("view",{staticClass:t._$s("9-"+a,"sc","flex-row"),attrs:{_i:"9-"+a}},[r("text",{staticClass:t._$s("10-"+a,"sc","title"),attrs:{_i:"10-"+a}}),r("text",{staticClass:t._$s("11-"+a,"sc","money value"),attrs:{_i:"11-"+a}},[t._v(t._$s("11-"+a,"t0-0",t._s(e.cash_money)))])]),r("view",{staticClass:t._$s("12-"+a,"sc","flex-row"),attrs:{_i:"12-"+a}},[r("text",{staticClass:t._$s("13-"+a,"sc","title"),attrs:{_i:"13-"+a}}),r("text",{staticClass:t._$s("14-"+a,"sc","value"),attrs:{_i:"14-"+a}},[t._v(t._$s("14-"+a,"t0-0",t._s(e.cash_to_account)))])]),r("view",{staticClass:t._$s("15-"+a,"sc","flex-row"),attrs:{_i:"15-"+a}},[r("text",{staticClass:t._$s("16-"+a,"sc","title"),attrs:{_i:"16-"+a}}),r("view",{staticClass:t._$s("17-"+a,"sc","status value flex-row"),attrs:{_i:"17-"+a}},[t._$s("18-"+a,"i",1==e.cash_status)?r("u-tag",{attrs:{text:"\u6210\u529f",plain:!0,type:"success",_i:"18-"+a}}):t._$s("19-"+a,"e",2==e.cash_status)?r("u-tag",{attrs:{text:"\u88ab\u62d2",plain:!0,type:"error",_i:"19-"+a}}):r("u-tag",{attrs:{text:"\u5f85\u5ba1\u6838",plain:!0,_i:"20-"+a}})],1)]),r("view",{staticClass:t._$s("21-"+a,"sc","flex-row"),attrs:{_i:"21-"+a}},[r("text",{staticClass:t._$s("22-"+a,"sc","title"),attrs:{_i:"22-"+a}}),r("text",{staticClass:t._$s("23-"+a,"sc","value"),attrs:{_i:"23-"+a}},[t._v(t._$s("23-"+a,"t0-0",t._s(t.formatTime(e.cash_time))))])]),t._$s("24-"+a,"i",e.cash_status>0)?r("view",{staticClass:t._$s("24-"+a,"sc","flex-row"),attrs:{_i:"24-"+a}},[r("text",{staticClass:t._$s("25-"+a,"sc","title"),attrs:{_i:"25-"+a}}),r("text",{staticClass:t._$s("26-"+a,"sc","value"),attrs:{_i:"26-"+a}},[t._v(t._$s("26-"+a,"t0-0",t._s(t.formatTime(e.cash_time_audit))))])]):t._e()])})),0),r("view",{staticClass:t._$s(27,"sc","load-more"),attrs:{_i:27}},[r("u-loadmore",{attrs:{status:t.loadStatus,"loading-icon":"semicircle",_i:28}})],1)])])},a=[]},"4da6":function(t,e,r){"use strict";r.r(e);var n=r("1052"),i=r.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return n[t]}))}(a);e["default"]=i.a},"4eb2":function(t,e,r){"use strict";var n=r("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.encrypt=e.decryptImg=e.decrypt=void 0;var i=n(r("3b2d")),a=n(r("c8bb"));(function(t,e){function r(t,e,r,n,i){return u(n- -68,i)}function n(t,e,r,n,i){return u(r- -528,e)}var i=t();function a(t,e,r,n,i){return u(e-837,n)}function s(t,e,r,n,i){return u(t- -690,r)}function o(t,e,r,n,i){return u(e- -572,i)}while(1)try{var l=parseInt(s(-661,0,-677))/1*(-parseInt(s(-682,0,-677))/2)+-parseInt(o(0,-544,0,0,-532))/3+-parseInt(a(0,852,0,866))/4*(parseInt(s(-668,0,-678))/5)+-parseInt(r(0,0,0,-43,-41))/6*(parseInt(r(0,0,0,-64,-72))/7)+-parseInt(n(0,-540,-527))/8+-parseInt(a(0,843,0,842))/9+parseInt(o(0,-545,0,0,-541))/10;if(770685===l)break;i["push"](i["shift"]())}catch(c){i["push"](i["shift"]())}})(l);var s=function(t,e,r,n,i){return u(t- -773,e)}(-757,-755),o=a.default["enc"]["Utf8"]["parse"](s);function u(t,e){var r=l();return u=function(t,e){t-=0;var n=r[t];return n},u(t,e)}function l(){var t=["OzDvLE677832".split("").reverse().join(""),"12BhtbVM","string","modnar".split("").reverse().join(""),"lib","nVvUQR4879431".split("").reverse().join(""),"toString","Base64","ULimPW41".split("").reverse().join(""),"gnirtsbus".split("").reverse().join(""),"ZoPCGm49911201".split("").reverse().join(""),"dap".split("").reverse().join(""),"dWxvGl298111".split("").reverse().join(""),"Utf8","tpyrced".split("").reverse().join(""),"WordArray","yfignirts".split("").reverse().join(""),"mode","ciphertext","44qLxBNH","WB0nMZHXlxNndORe","CFB","esrap".split("").reverse().join(""),"encrypt","enc","Hex","586085IGSXLd","length","NoPadding","329052OQVlqp","AES","42240890eTHsGm"];return l=function(){return t},l()}e.encrypt=function(t){var e=a.default["lib"]["WordArray"]["random"](16),r=a.default["enc"]["Utf8"]["parse"]((0,i.default)(t)===function(t,e,r,n,i){return u(n-115,e)}(0,141,0,145)?t:JSON["stringify"](t)),n=a.default["AES"]["encrypt"](r,o,{iv:e,mode:a.default["mode"]["CFB"],padding:a.default["pad"]["NoPadding"]})["ciphertext"]["toString"](a.default["enc"]["Hex"]);return n["substring"](0,16)+a.default["enc"]["Hex"]["stringify"](e)+n["substring"](16)};e.decrypt=function(t){var e=t["length"],r="",n="",i="";e<48?(r=t["substring"](0,e-32),i=t["substring"](e-32)):(r=t["substring"](0,16),n=t["substring"](48),i=t["substring"](16,48));var s=a.default["enc"]["Hex"]["parse"](r+n),u=a.default["enc"]["Base64"]["stringify"](s),l=a.default["enc"]["Hex"]["parse"](i),c=a.default["AES"]["decrypt"](u,o,{iv:l,mode:a.default["mode"]["CFB"],padding:a.default["pad"]["NoPadding"]});return JSON["parse"](c["toString"](a.default["enc"]["Utf8"]))};e.decryptImg=function(t){var e=a.default["enc"]["Base64"]["stringify"](a.default["enc"]["Base64"]["parse"](t)),r=a.default["AES"]["decrypt"](e,o,{iv:o,mode:a.default["mode"]["CFB"],padding:a.default["pad"]["NoPadding"]});return r["toString"](a.default["enc"]["Base64"])}},"4f9b":function(t,e,r){"use strict";var n=r("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(r("4ab3")),a=i.default;e.default=a},"4fda":function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={readMore:{showHeight:400,toggle:!1,closeText:"\u5c55\u5f00\u9605\u8bfb\u5168\u6587",openText:"\u6536\u8d77",color:"#2979ff",fontSize:14,textIndent:"2em",name:""}}},"4ffb":function(t,e,r){var n=r("3b2d")["default"],i=r("3352");t.exports=function(t,e){if(e&&("object"===n(e)||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return i(t)},t.exports.__esModule=!0,t.exports["default"]=t.exports},5069:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={rate:{value:1,count:5,disabled:!1,size:18,inactiveColor:"#b2b2b2",activeColor:"#FA3534",gutter:4,minCount:1,allowHalf:!1,activeIcon:"star-fill",inactiveIcon:"star",touchable:!0}}},"509e":function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={props:{hairline:{type:Boolean,default:uni.$u.props.button.hairline},type:{type:String,default:uni.$u.props.button.type},size:{type:String,default:uni.$u.props.button.size},shape:{type:String,default:uni.$u.props.button.shape},plain:{type:Boolean,default:uni.$u.props.button.plain},disabled:{type:Boolean,default:uni.$u.props.button.disabled},loading:{type:Boolean,default:uni.$u.props.button.loading},loadingText:{type:[String,Number],default:uni.$u.props.button.loadingText},loadingMode:{type:String,default:uni.$u.props.button.loadingMode},loadingSize:{type:[String,Number],default:uni.$u.props.button.loadingSize},openType:{type:String,default:uni.$u.props.button.openType},formType:{type:String,default:uni.$u.props.button.formType},appParameter:{type:String,default:uni.$u.props.button.appParameter},hoverStopPropagation:{type:Boolean,default:uni.$u.props.button.hoverStopPropagation},lang:{type:String,default:uni.$u.props.button.lang},sessionFrom:{type:String,default:uni.$u.props.button.sessionFrom},sendMessageTitle:{type:String,default:uni.$u.props.button.sendMessageTitle},sendMessagePath:{type:String,default:uni.$u.props.button.sendMessagePath},sendMessageImg:{type:String,default:uni.$u.props.button.sendMessageImg},showMessageCard:{type:Boolean,default:uni.$u.props.button.showMessageCard},dataName:{type:String,default:uni.$u.props.button.dataName},throttleTime:{type:[String,Number],default:uni.$u.props.button.throttleTime},hoverStartTime:{type:[String,Number],default:uni.$u.props.button.hoverStartTime},hoverStayTime:{type:[String,Number],default:uni.$u.props.button.hoverStayTime},text:{type:[String,Number],default:uni.$u.props.button.text},icon:{type:String,default:uni.$u.props.button.icon},iconColor:{type:String,default:uni.$u.props.button.icon},color:{type:String,default:uni.$u.props.button.color}}};e.default=n},"50e1":function(t,e,r){"use strict";r.r(e);var n=r("6479"),i=r.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return n[t]}))}(a);e["default"]=i.a},5173:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={numberKeyboard:{mode:"number",dotDisabled:!1,random:!1}}},"51f1":function(t,e,r){"use strict";r.r(e);var n=r("ec90"),i=r.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return n[t]}))}(a);e["default"]=i.a},"51f6":function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={props:{name:{type:[String,Number,Boolean],default:uni.$u.props.checkbox.name},shape:{type:String,default:uni.$u.props.checkbox.shape},size:{type:[String,Number],default:uni.$u.props.checkbox.size},checked:{type:Boolean,default:uni.$u.props.checkbox.checked},disabled:{type:[String,Boolean],default:uni.$u.props.checkbox.disabled},activeColor:{type:String,default:uni.$u.props.checkbox.activeColor},inactiveColor:{type:String,default:uni.$u.props.checkbox.inactiveColor},iconSize:{type:[String,Number],default:uni.$u.props.checkbox.iconSize},iconColor:{type:String,default:uni.$u.props.checkbox.iconColor},label:{type:[String,Number],default:uni.$u.props.checkbox.label},labelSize:{type:[String,Number],default:uni.$u.props.checkbox.labelSize},labelColor:{type:String,default:uni.$u.props.checkbox.labelColor},labelDisabled:{type:[String,Boolean],default:uni.$u.props.checkbox.labelDisabled}}};e.default=n},"51f7":function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={props:{shape:{type:String,default:uni.$u.props.search.shape},bgColor:{type:String,default:uni.$u.props.search.bgColor},placeholder:{type:String,default:uni.$u.props.search.placeholder},clearabled:{type:Boolean,default:uni.$u.props.search.clearabled},focus:{type:Boolean,default:uni.$u.props.search.focus},showAction:{type:Boolean,default:uni.$u.props.search.showAction},actionStyle:{type:Object,default:uni.$u.props.search.actionStyle},actionText:{type:String,default:uni.$u.props.search.actionText},inputAlign:{type:String,default:uni.$u.props.search.inputAlign},inputStyle:{type:Object,default:uni.$u.props.search.inputStyle},disabled:{type:Boolean,default:uni.$u.props.search.disabled},borderColor:{type:String,default:uni.$u.props.search.borderColor},searchIconColor:{type:String,default:uni.$u.props.search.searchIconColor},color:{type:String,default:uni.$u.props.search.color},placeholderColor:{type:String,default:uni.$u.props.search.placeholderColor},searchIcon:{type:String,default:uni.$u.props.search.searchIcon},searchIconSize:{type:[Number,String],default:uni.$u.props.search.searchIconSize},margin:{type:String,default:uni.$u.props.search.margin},animation:{type:Boolean,default:uni.$u.props.search.animation},value:{type:String,default:uni.$u.props.search.value},maxlength:{type:[String,Number],default:uni.$u.props.search.maxlength},height:{type:[String,Number],default:uni.$u.props.search.height},label:{type:[String,Number,null],default:uni.$u.props.search.label}}};e.default=n},"51fa":function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={props:{seconds:{type:[String,Number],default:uni.$u.props.code.seconds},startText:{type:String,default:uni.$u.props.code.startText},changeText:{type:String,default:uni.$u.props.code.changeText},endText:{type:String,default:uni.$u.props.code.endText},keepRunning:{type:Boolean,default:uni.$u.props.code.keepRunning},uniqueKey:{type:String,default:uni.$u.props.code.uniqueKey}}};e.default=n},5202:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={primary:"#3c9cff",info:"#909399",default:"#909399",warning:"#f9ae3d",error:"#f56c6c",success:"#5ac725",mainColor:"#303133",contentColor:"#606266",tipsColor:"#909399",lightColor:"#c0c4cc",borderColor:"#e4e7ed"};e.default=n},5257:function(t,e,r){"use strict";(function(t){var n=r("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;r("0f81");var i=n(r("4231")),a={components:{vodImage:i.default},props:{item:{type:Object,default:{}},mode:{type:String,default:""},index:{type:Number,default:0}},data:function(){return{previewState:null,previewPosition:0,previewShow:!1,previewTime:null,viewimg:{},previewwidth:0,isClicked:!1,randomNumber:0}},filters:{formatNum:function(t){return Number(t)>1e4&&(t=Math.floor(t/1e4)+"w+"),t}},methods:{getRandomInt:function(t,e){return Math.floor(Math.random()*(e-t+1))+t},gotovideo:function(e){var r=this;if(!this.isClicked){this.isClicked=!0;var n="/pages/video/video-app?id="+e,i=getCurrentPages(),a=i[i.length-1].route;"pages/video/video-app"==a||"pages/video/video"==a?(t("log","\u89c6\u9891\u9875\u5220\u9664\u64cd\u4f5c"," at components/vod-item-row.vue:123"),uni.redirectTo({url:n})):(t("log","\u5176\u4ed6\u9875\u9762"," at components/vod-item-row.vue:128"),uni.navigateTo({url:n})),setTimeout((function(){r.isClicked=!1}),200)}},show:function(){var t=this;this.item.vod_thumbnails&&(this.previewShow=!0,this.$nextTick((function(){t.previewLoad()})))},previewLoad:function(){"loading"===this.previewState||"error"===this.previewState||this.previewTime||this.continueExecution(180,void 0)},continueExecution:function(t,e){var r=this,n=this.item.vod_thumbnails.match(/-(\d+).(jpg|jpeg|png|webp|gif|bmp)+$/i),i=n?parseInt(n[1]):100,a=t*i;this.previewwidth=a,this.previewState?"loaded"===this.previewState&&(e.style.backgroundImage="url(".concat(this.data.vod_thumbnails,")"),e.style.backgroundSize="".concat(a,"px auto"),e.style.backgroundPosition="0 center",this.previewPosition=0):(this.previewState="loading",this.previewState="loaded"),this.previewTime=setInterval((function(){if(!1===r.previewShow)return clearInterval(r.previewTime),void(r.previewTime=null);"loaded"===r.previewState&&(r.previewPosition+=t,r.previewPosition>a&&(r.previewPosition=0),e.style.backgroundPosition="-".concat(r.previewPosition,"px center"))}),360)}}};e.default=a}).call(this,r("f3b9")["default"])},"52c5":function(t,e,r){"use strict";r.r(e);var n=r("e594"),i=r("f134");for(var a in i)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return i[t]}))}(a);var s=r("828b"),o=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);e["default"]=o.exports},"52d5":function(t,e,r){var n,i,a,s=r("3b2d");(function(o,u){"object"===s(e)?t.exports=e=u(r("707d")):(i=[r("707d")],n=u,a="function"===typeof n?n.apply(e,i):n,void 0===a||(t.exports=a))})(0,(function(t){return function(e){var r=t,n=r.lib,i=n.Base,a=n.WordArray,s=r.x64={};s.Word=i.extend({init:function(t,e){this.high=t,this.low=e}}),s.WordArray=i.extend({init:function(t,e){t=this.words=t||[],this.sigBytes=void 0!=e?e:8*t.length},toX32:function(){for(var t=this.words,e=t.length,r=[],n=0;n<e;n++){var i=t[n];r.push(i.high),r.push(i.low)}return a.create(r,this.sigBytes)},clone:function(){for(var t=i.clone.call(this),e=t.words=this.words.slice(0),r=e.length,n=0;n<r;n++)e[n]=e[n].clone();return t}})}(),t}))},"537e":function(t,e,r){"use strict";r.r(e);var n=r("3be9"),i=r.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return n[t]}))}(a);e["default"]=i.a},"546b":function(t,e,r){"use strict";r.d(e,"b",(function(){return n})),r.d(e,"c",(function(){return i})),r.d(e,"a",(function(){}));var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("view",{staticClass:t._$s(0,"sc","page-container"),attrs:{_i:0}},[r("view",{staticClass:t._$s(1,"sc","share-money-header"),attrs:{_i:1}},[r("image",{attrs:{_i:2}}),r("view",{staticClass:t._$s(3,"sc","share-money-content"),attrs:{_i:3}},[r("view",{staticClass:t._$s(4,"sc","title"),attrs:{_i:4}}),r("text",{staticClass:t._$s(5,"sc","content"),attrs:{_i:5}},[t._v(t._$s(5,"t0-0",t._s(t.content)))])])]),r("navigator",{staticClass:t._$s(6,"sc","share-money-button"),attrs:{_i:6}}),r("navigator",{staticClass:t._$s(7,"sc","view-button"),attrs:{_i:7}})])},i=[]},5483:function(t,e,r){"use strict";var n=r("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(r("4231")),a={props:{adv:{type:Object,default:{}}},components:{vodImage:i.default},data:function(){return{newHeight:0}},mounted:function(){},methods:{handleImageLoad:function(t){var e=this;uni.getImageInfo({src:this.adv.adv_image,success:function(t){var r=t.width/t.height,n=720/r;e.newHeight=n},fail:function(t){}})}}};e.default=a},5504:function(t,e,r){"use strict";r.r(e);var n=r("035d"),i=r.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return n[t]}))}(a);e["default"]=i.a},5550:function(t,e,r){"use strict";r.r(e);var n=r("eb8d"),i=r.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return n[t]}))}(a);e["default"]=i.a},5601:function(t,e,r){"use strict";r.r(e);var n=r("3fb8"),i=r("7869");for(var a in i)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return i[t]}))}(a);var s=r("828b"),o=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);e["default"]=o.exports},5613:function(t,e,r){"use strict";r.r(e);var n=r("9239"),i=r.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return n[t]}))}(a);e["default"]=i.a},"563d":function(t,e,r){"use strict";r.r(e);var n=r("b5cc"),i=r.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return n[t]}))}(a);e["default"]=i.a},5640:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={toast:10090,noNetwork:10080,popup:10075,mask:10070,navbar:980,topTips:975,sticky:970,indexListSticky:965}},5679:function(t,e,r){"use strict";var n=r("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(r("2754")),a=n(r("a915")),s={name:"u-icon",data:function(){return{}},mixins:[uni.$u.mpMixin,uni.$u.mixin,a.default],computed:{uClasses:function(){var t=[];return t.push(this.customPrefix+"-"+this.name),this.color&&uni.$u.config.type.includes(this.color)&&t.push("u-icon__icon--"+this.color),t},iconStyle:function(){var t={};return t={fontSize:uni.$u.addUnit(this.size),lineHeight:uni.$u.addUnit(this.size),fontWeight:this.bold?"bold":"normal",top:uni.$u.addUnit(this.top)},this.color&&!uni.$u.config.type.includes(this.color)&&(t.color=this.color),t},isImg:function(){return-1!==this.name.indexOf("/")},imgStyle:function(){var t={};return t.width=this.width?uni.$u.addUnit(this.width):uni.$u.addUnit(this.size),t.height=this.height?uni.$u.addUnit(this.height):uni.$u.addUnit(this.size),t},icon:function(){return i.default["uicon-"+this.name]||this.name}},methods:{clickHandler:function(t){this.$emit("click",this.index),this.stop&&this.preventEvent(t)}}};e.default=s},"56b7":function(t,e,r){"use strict";r.r(e);var n=r("3a41"),i=r("2afc");for(var a in i)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return i[t]}))}(a);var s=r("828b"),o=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);e["default"]=o.exports},"56ea":function(t,e,r){"use strict";r.r(e);var n=r("6c2a"),i=r.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return n[t]}))}(a);e["default"]=i.a},"570c":function(t,e,r){"use strict";r.r(e);var n=r("9db4"),i=r.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return n[t]}))}(a);e["default"]=i.a},5714:function(t,e,r){"use strict";(function(t){var n=r("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(r("127e")),a=n(r("34cf")),s=n(r("ee10")),o=n(r("bcbe")),u=n(r("a2c0")),l=n(r("fa2c")),c=n(r("4231")),A=n(r("b37f")),d=r("c557"),f=n(r("7d40")),h=n(r("d4bd")),p=n(r("329a")),g=r("0f81"),v=n(r("112e")),m=uni.requireNativePlugin("lyzml-DLNA"),y={components:{artplayer:o.default,vodImage:c.default,videoInfo:u.default,videoComment:l.default,share:A.default,reward:f.default,fullAdv:h.default},data:function(){return{id:0,data:{vod_play_url:[],is_fav:0},advList:{},playerUrl:"",introShow:!1,episodesShow:!1,videoTabsIndex:0,videoEpisodes:0,episodesScroll:0,loading:!0,lookLoading:!1,playIndex:0,adShow:!1,adTime:{},adLookNum:0,looked:[],playTime:0,timer:null,faved:!1,trySee:!1,video_height:uni.getSystemInfoSync().screenWidth/16*9+50,playAdv:null,playAdvShow:!1,isios:!1,tvList:[],tvlistShow:!1,tvShow:!1,tvitem:{},pipstate:!1,danmulist:[],scrollTop:0,showinput:!1,videoCachePath:"",isStartDownload:!1,lookcode:0,lookedUrl:"",urlarr:[],p2p:0,currentTime:0}},watch:{playIndex:{handler:function(t){this.$refs.artplayer.pause(),this.playerLoadData()}},videoEpisodes:{handler:function(t){!1===this.loading&&(this.data.adv_list.play_adv.length&&this.data.adv_list.play_adv.length>0&&(this.advList.play_adv=this.data.adv_list.play_adv[Math.floor(Math.random()*this.data.adv_list.play_adv.length)]),this.playAdvShow=!1,this.lookVod())}}},onLoad:function(t){var e=this;this.openSQL(),t.id&&(this.id=parseInt(t.id)),t.play_index&&(this.videoEpisodes=parseInt(t.play_index)),"ios"==uni.getSystemInfoSync().platform?this.isios=!0:this.isios=!1,p.default.readAppDir().then((function(t){e.videoCachePath=t,e.getData()})),this.$nextTick((function(){e.commentData()}))},onShow:function(){var t=this;this.$nextTick((function(){t.timer=setInterval((function(){var e=!1;t.$refs.artplayer&&(e=t.$refs.artplayer.playStatus()),e&&t.playTime++,1800==t.playTime&&t.toTask(),t.trySee&&t.data.vod_trysee>0&&t.playTime>=t.data.vod_trysee&&(t.$refs.artplayer.destroy(),t.trySee=!1,2==t.data.vod_mode?t.toVip():t.toPay()),t.playTime>1800&&clearInterval(t.timer)}),1e3)}))},onHide:function(){this.adShow=!1,this.$refs.artplayer.playershow(),this.timer&&clearInterval(this.timer),this.pipstate||this.$refs.artplayer.pause()},onUnload:function(){this.closeSQL(),this.timer&&clearInterval(this.timer)},methods:{openSQL:function(){var t=v.default.isOpen();t||(v.default.openSqlite(),v.default.selectTableData("vodDig").then((function(t){})).catch((function(t){v.default.createTable("vodDig",'"id" INTEGER PRIMARY KEY AUTOINCREMENT,"vod_id" text,"up" text,"down" text')})),v.default.selectTableData("vodHistory").then((function(t){})).catch((function(t){v.default.createTable("vodHistory",'\n\t\t\t\t\t\t\t  "id" INTEGER PRIMARY KEY AUTOINCREMENT,\n\t\t\t\t\t\t\t  "vod_id" text,\n\t\t\t\t\t\t\t  "time" INTEGER\n\t\t\t\t\t\t\t')})),v.default.selectTableData("vodFav").then((function(t){})).catch((function(t){v.default.createTable("vodFav",'\n\t\t\t\t\t\t\t\t  "id" INTEGER PRIMARY KEY AUTOINCREMENT,\n\t\t\t\t\t\t\t\t  "vod_id" text,\n\t\t\t\t\t\t\t\t  "status" INTEGER,\n\t\t\t\t\t\t\t\t  "time" INTEGER\n\t\t\t\t\t\t\t\t')})))},closeSQL:function(){var t=v.default.isOpen();t&&v.default.closeSqlite()},addDanmu:function(t){var e=this;return(0,s.default)(i.default.mark((function r(){return i.default.wrap((function(r){while(1)switch(r.prev=r.next){case 0:return t.timestamp=Math.round(new Date),r.next=3,g.app.addDanmu(e.id,t.color,t.time,t.mode,t.text,t.timestamp);case 3:case"end":return r.stop()}}),r)})))()},playpip:function(t){this.pipstate=t},scanairplay:function(){var t=this;this.$refs.artplayer.fullScreen(!1),m.startSearch((function(e){0==e.code||(1==e.code?(m.getSearchResult((function(e){t.tvList=e})),t.triggertv(!0)):e.code)}))},connecttv:function(t){var e=this;this.tvitem=t,m.playVideo({udn:t.udn,mediaURL:this.data.vod_play_url[this.playIndex]["list"][this.videoEpisodes].url},(function(t){t&&0!=t.code?uni.showToast({icon:"none",title:"\u82e5\u6295\u5c4f\u5931\u8d25\uff0c\u8bf7\u5c1d\u8bd5\u91cd\u65b0\u626b\u63cf"}):(e.triggertv(!1),e.tvShow=!0,e.$refs.artplayer.pause(),e.$refs.artplayer.playerhide())}))},getdanmu:function(t){var e=uni.getStorageSync("API_DOMAIN"),r=uni.getStorageSync("API_DOMAIN_INDEX")||0;return new Promise((function(n,i){uni.request({method:"GET",url:e[r]+t}).then((function(t){var e=(0,a.default)(t,2),r=e[0],s=e[1];s&&200===s.statusCode?n(s.data):i(r)}))}))},getData:function(){var e=this;return(0,s.default)(i.default.mark((function r(){return i.default.wrap((function(r){while(1)switch(r.prev=r.next){case 0:return e.loading=!0,r.next=3,g.app.vodDetails(e.id).then((function(r){if(1==r.code){e.data=r.data,t("log",e.data," at pages/video/video-app.vue:421"),e.data.danmu&&e.getdanmu(e.data.danmu).then((function(t){e.danmulist=t||[]})),v.default.selectTableData("vodDig","vod_id",e.id).then((function(t){t.length&&(e.data.is_up=1==t[0].up?1:0,e.data.is_down=1==t[0].down?1:0,e.data.is_up&&(e.data.vod_up+=1),e.data.is_down&&(e.data.vod_down+=1))})),v.default.selectTableData("vodFav","vod_id",e.id).then((function(t){t&&(e.data.is_fav=t[0].status)}));try{e.data.adv_list.full_adv.length>0&&(e.advList.full_adv=e.data.adv_list.full_adv)}catch(n){}e.data.adv_list.play_adv.length>0&&(e.advList.play_adv=e.data.adv_list.play_adv[Math.floor(Math.random()*e.data.adv_list.play_adv.length)]),e.data.adv_list.banner_adv1.length>0&&(e.advList.banner_adv1=e.data.adv_list.banner_adv1[Math.floor(Math.random()*e.data.adv_list.banner_adv1.length)]),e.data.adv_list.banner_adv2.length>0&&(e.advList.banner_adv2=e.data.adv_list.banner_adv2[Math.floor(Math.random()*e.data.adv_list.banner_adv2.length)]),e.lookVod()}else uni.showToast({icon:"none",title:r.msg,duration:3e3}),setTimeout((function(){e.toBack()}),1500)})).catch((function(t){setTimeout((function(){e.toBack()}),1500)}));case 3:case"end":return r.stop()}}),r)})))()},getVideoUrl:function(t){var e=this.data.vod_name,r=this.data.vod_id,n=this.data.vod_play_url[this.playIndex]["list"][this.videoEpisodes].name,i=e+"-"+n+"_"+r+".mp4",a=p.default.getLocalVideoUrl(i,this.videoCachePath);return a.length>0?a:this.lookedUrl},lookVod:function(){var t=this;return(0,s.default)(i.default.mark((function e(){var r,n,a;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(-1!==t.looked.indexOf(t.videoEpisodes)){e.next=46;break}return t.lookLoading=!0,r=t.data.vod_play_url[t.playIndex]["list"][t.videoEpisodes].url,n=t.data.vod_play_url[t.playIndex].key,e.next=6,g.app.lookVod(t.id+"_"+t.videoEpisodes,r).then(a);case 6:if(a=e.sent,t.lookLoading=!1,t.lookcode=a.code,t.loading=!1,a.data.url&&(t.lookedUrl=a.data.url.h264,t.p2p=a.data.p2p,t.urlarr.push({displayName:"264",resName:n+"."+t.id+"."+t.playIndex+(a.data.url.ver?"."+a.data.url.ver:"")+".264",p2pM3u8Url:t.lookedUrl,maxLruCacheSize:3e3})),0!=a.code){e.next=18;break}return t.$refs.artplayer.destroy(),uni.showToast({icon:"none",title:a.msg,duration:3e3}),setTimeout((function(){}),1500),e.abrupt("return");case 18:if(2!=a.code){e.next=26;break}if(t.trySee=!0,!(t.data.vod_trysee<=0)){e.next=24;break}return t.$refs.artplayer.destroy(),t.toVip(),e.abrupt("return");case 24:e.next=46;break;case 26:if(3!=a.code){e.next=32;break}try{t.adLookNum=a.data.adv_look_num}catch(i){t.adLookNum=0}return t.toAdv(),e.abrupt("return");case 32:if(4!=a.code){e.next=40;break}if(t.trySee=!0,!(t.data.vod_trysee<=0)){e.next=38;break}return t.$refs.artplayer.pause(),t.toPay(),e.abrupt("return");case 38:e.next=46;break;case 40:return t.trySee=!1,t.looked.push(t.videoEpisodes),g.app.updateHits(t.id,1),t.addHistory(),t.data.adv_list.play_adv.length>0?(setTimeout((function(){t.$refs.artplayer.fullScreen(!1)}),100),t.$refs.artplayer.pause(),t.playerLoadData(),t.$refs.artplayer.playerhide(),t.adShow=!0):t.$nextTick((function(){t.$refs.artplayer.pause(),t.playerLoadData()})),e.abrupt("return");case 46:t.$nextTick((function(){t.$refs.artplayer.pause(),t.playerLoadData()}));case 47:case"end":return e.stop()}}),e)})))()},playerLoadData:function(){var t=this;return(0,s.default)(i.default.mark((function e(){var r,n,a,s,o,u;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=t.data["vod_name"]+" "+t.data.vod_play_url[t.playIndex]["list"][t.videoEpisodes].name,n=t.data.vod_play_url[t.playIndex]["list"][t.videoEpisodes].url,t.playerUrl=t.getVideoUrl(n),a=t.data.vod_thumbnails.match(/-(\d+).[jpg|jpeg|png|webp|gif|bmp]+$/i),s=a?parseInt(a[1]):100,e.next=7,(0,d.loadImage)(t.data["vod_pic"]);case 7:o=e.sent,u=t.data.vod_thumbnails,u.includes("http:")||(u="http:"+u),t.$refs.artplayer.loadData({id:t.id,adData:{},url:t.playerUrl,title:r,pic:o,playList:t.data.vod_play_url[t.playIndex]["list"],videoEpisodes:t.videoEpisodes,isios:t.isios,danmulist:t.danmulist||[],thumbnails:{url:u,number:s,column:s,width:250,height:165},urlarr:t.urlarr,p2p:t.p2p});case 11:case"end":return e.stop()}}),e)})))()},toTask:function(){var t=this,e=getApp().globalData.userToken;e&&g.user.task(2).then((function(e){1==e.code&&e.data&&t.toReward(e.data.task_coin)}))},addHistory:function(){var e=this,r={id:this.id,time:Math.round(new Date/1e3)};v.default.selectTableData("vodHistory","vod_id",this.id).then((function(t){if(t.length>0){var n="time = '".concat(r.time,"'");v.default.updateTableData("vodHistory",n,"vod_id",e.id)}else{var i="'".concat(e.id,"','").concat(r.time,"'");v.default.insertTableData("vodHistory",i,"'vod_id','time'")}})).catch((function(e){t("error","Error selecting vodHistory data:",e," at pages/video/video-app.vue:626")}))},favVod:function(){var t=this;return(0,s.default)(i.default.mark((function e(){var r,n;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(r=getApp().globalData.userToken,!r){e.next=11;break}if(!t.faved){e.next=4;break}return e.abrupt("return");case 4:t.faved=!0,t.data.is_fav=1===t.data.is_fav?0:1,n={id:t.id,time:Math.round(new Date/1e3),status:t.data.is_fav},v.default.selectTableData("vodFav","vod_id",t.id).then((function(e){if(e.length>0)if(1==n.status){var r="time = '".concat(n.time,"',status = '").concat(n.status,"'");v.default.updateTableData("vodFav",r,"vod_id",t.id)}else v.default.deleteTableData("vodFav","vod_id",t.id);else{var i="'".concat(t.id,"','").concat(n.time,"','").concat(n.status,"'");v.default.insertTableData("vodFav",i,"'vod_id','time','status'")}})),t.faved=!1,e.next=12;break;case 11:uni.navigateTo({url:"/pages/user/login"});case 12:case"end":return e.stop()}}),e)})))()},digVod:function(t){var e=this;g.app.updateDig(this.id,1,t).then((function(r){var n=e.data["is_"+t]?0:1;if(1==r.code){1===e.data["is_"+t]?e.data["is_"+t]=0:e.data["is_"+t]=1;e.data["is_"+t],1===n?e.data["vod_"+t]+=1:e.data["vod_"+t]>0&&(e.data["vod_"+t]-=1),v.default.selectTableData("vodDig","vod_id",e.id).then((function(r){if(r.length){var i="".concat(t," = '").concat(n,"'");v.default.updateTableData("vodDig",i,"vod_id",e.id)}else{var a="'".concat(e.id,"','").concat(n,"'"),s="'vod_id','".concat(t,"'");v.default.insertTableData("vodDig",a,s)}}))}else uni.showToast({icon:"none",title:r.msg})}))},changePlay:function(t){this.$refs.artplayer.pause(),this.playIndex=t},swiperChange:function(t){this.videoTabsIndex=t.detail.current,1===this.videoTabsIndex&&!1===this.loading&&this.$refs.comment.init()},tabsClick:function(t){this.videoTabsIndex!=t&&(this.videoTabsIndex=t),this.scrollTop=1==t?510:0},closeIntro:function(){this.introShow=!1},triggerEpisodes:function(t){var e=this;this.episodesShow=t,t&&this.$nextTick((0,s.default)(i.default.mark((function t(){var r,n,a;return i.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,new Promise((function(t){uni.createSelectorQuery().in(e).select(".episodes-popup-grid").boundingClientRect((function(e){t(e)})).exec()}));case 2:return r=t.sent,t.next=5,new Promise((function(t){uni.createSelectorQuery().in(e).select(".episodes-popup-grid .selected").boundingClientRect((function(e){t(e)})).exec()}));case 5:n=t.sent,a=n.top-r.top-90,a=Math.min(a,r.height),e.episodesScroll=Math.max(0,a);case 9:case"end":return t.stop()}}),t)}))))},selectNextEpisodes:function(){this.data.vod_play_url[this.playIndex]["list"].length>this.videoEpisodes&&(this.videoEpisodes+=1,this.triggerEpisodes(!1))},selectEpisodes:function(t){this.videoEpisodes=t,this.triggerEpisodes(!1)},openShare:function(){this.$refs.share.showSharePopup=!0},adClose:function(){this.adShow=!1,this.$refs.artplayer.playershow()},timeChange:function(t){this.adTime=t},download:function(){var t=this;return(0,s.default)(i.default.mark((function e(){var r,n,a,o,u;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=t.data.vod_name,n=t.data.vod_id,a=t.data.vod_play_url[t.playIndex]["list"][t.videoEpisodes].name,o=t.data.vod_down_url[t.playIndex]["list"][t.videoEpisodes].url,".mp4",u=r+"-"+a+"_"+n+".mp4",e.next=8,g.app.downVod(t.id).then((function(e){0!=e.code?2!=e.code?3!=e.code?4!=e.code?p.default.checkFile(u).then(function(){var e=(0,s.default)(i.default.mark((function e(r){return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(r){e.next=13;break}if(""==o){e.next=10;break}if(t.isStartDownload){e.next=7;break}return e.next=5,p.default.createDir().then(function(){var e=(0,s.default)(i.default.mark((function e(r){return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,p.default.downloadVideo(o,u,(function(e,r){t.isStartDownload||(uni.showToast({icon:"none",title:"\u5df2\u52a0\u5165\u4e0b\u8f7d\u5217\u8868",duration:3e3}),setTimeout((function(){uni.navigateTo({url:"/pages/user/download"})}),1500)),t.isStartDownload=!0})).then((function(){})).catch((function(t){uni.showToast({icon:"none",title:"\u4e0b\u8f7d\u5931\u8d25, \u8bf7\u7a0d\u540e\u91cd\u8bd5",duration:3e3})}));case 2:e.sent;case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(t){uni.showToast({icon:"none",title:"\u65e0\u6cd5\u521b\u5efa\u4e0b\u8f7d\u8def\u5f84, \u8bf7\u68c0\u67e5\u6743\u9650",duration:3e3})}));case 5:e.next=8;break;case 7:uni.showToast({icon:"none",title:"\u4e0b\u8f7d\u4e2d...",duration:3e3});case 8:e.next=11;break;case 10:uni.showToast({icon:"none",title:"\u6682\u65e0\u4e0b\u8f7d\u8d44\u6e90",duration:3e3});case 11:e.next=16;break;case 13:return uni.showToast({icon:"none",title:"\u89c6\u9891\u5df2\u4e0b\u8f7d",duration:3e3}),e.abrupt("return");case 16:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()):t.toPay():e.data.adv_look_num>0&&t.toAdvdown(e.data.adv_look_num):t.toVip():uni.showToast({icon:"none",title:e.msg,duration:3e3})}));case 8:return e.abrupt("return");case 9:case"end":return e.stop()}}),e)})))()},toAdvdown:function(t){var e=this;this.$refs.artplayer.pause(),0==this.data.adv_list.full_adv.length&&(t=0),uni.showModal({title:"\u4e0b\u8f7d\u63d0\u793a",confirmText:"\u8d2d\u4e70VIP\u7279\u6743",confirmColor:"#fd6202",cancelText:t>0?"\u770b\u5e7f\u544a\u89e3\u9501\u89c6\u9891":"\u4eca\u65e5\u89e3\u9501\u6b21\u6570\u5df2\u6ee1",content:"\u60a8\u7684\u4eca\u65e5\u514d\u8d39\u4e0b\u8f7d\u6b21\u6570\u5df2\u7528\u5c3d~!",success:function(r){r.confirm?uni.redirectTo({url:"/pages/user/recharge"}):t>0?(plus.screen.lockOrientation("portrait-primary"),e.data.adv_list.full_adv.length>0&&(e.$refs.artplayer.playerhide(),e.showFullAdv("video"))):e.toBack()}})},toReward:function(t){this.$refs.reward.onshow(t)},toVip:function(){var t=this;uni.showModal({title:"\u89c2\u5f71\u63d0\u793a",confirmText:"\u5145\u503cVIP",confirmColor:"#fd6202",content:"\u8be5\u5f71\u7247\u662fVIP\u4e13\u5c5e\uff0c\u8bf7\u5148\u5347\u7ea7VIP\u518d\u8fdb\u884c\u89c2\u770b~!",success:function(e){e.confirm?uni.redirectTo({url:"/pages/user/recharge"}):t.back()}})},toBack:function(){var t=getCurrentPages(),e=t.length;if(1===e)uni.switchTab({url:"/pages/home/index"});else for(var r=1;r<e;r++)if("pages/video/video-app"!=t[e-r-1].route){uni.navigateBack({delta:r});break}},toAdv:function(){var t=this;this.$refs.artplayer.pause(),0==this.data.adv_list.full_adv.length&&(this.adLookNum=0),uni.showModal({title:"\u89c2\u5f71\u63d0\u793a",confirmText:"\u8d2d\u4e70VIP\u7279\u6743",confirmColor:"#fd6202",cancelText:this.adLookNum>0?"\u770b\u5e7f\u544a\u89e3\u9501\u89c6\u9891":"\u4eca\u65e5\u89e3\u9501\u6b21\u6570\u5df2\u6ee1",content:"\u60a8\u7684\u4eca\u65e5\u514d\u8d39\u89c2\u5f71\u6b21\u6570\u5df2\u7528\u5c3d~!",success:function(e){e.confirm?uni.redirectTo({url:"/pages/user/recharge"}):t.adLookNum>0?(plus.screen.lockOrientation("portrait-primary"),t.data.adv_list.full_adv.length>0&&(t.$refs.artplayer.playerhide(),t.showFullAdv("video"))):t.toBack()}})},toPay:function(){var t=this;uni.showModal({title:"\u89c2\u5f71\u63d0\u793a",confirmText:"\u8d2d\u4e70\u89c6\u9891",confirmColor:"#fd6202",content:"\u8be5\u5f71\u7247\u662f\u4ed8\u8d39\u89c6\u9891\uff0c\u8bf7\u5148\u8d2d\u4e70\u89c6\u9891\u518d\u8fdb\u884c\u89c2\u770b~!",success:function(){var e=(0,s.default)(i.default.mark((function e(r){var n;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!r.confirm){e.next=22;break}return e.next=3,g.app.buyVod(t.id).then(n);case 3:if(n=e.sent,0!=n.code){e.next=10;break}return uni.showToast({icon:"none",title:n.msg,duration:3e3}),setTimeout((function(){t.toBack()}),2e3),e.abrupt("return");case 10:if(2!=n.code){e.next=16;break}return uni.showToast({icon:"none",title:n.msg,duration:3e3}),setTimeout((function(){uni.redirectTo({url:"/pages/user/bullion"})}),2e3),e.abrupt("return");case 16:if(3!=n.code){e.next=19;break}return t.toVip(),e.abrupt("return");case 19:uni.showToast({icon:"none",title:n.msg,duration:3e3}),e.next=23;break;case 22:t.toBack();case 23:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()})},showPlayAdv:function(){},showFullAdv:function(t){plus.screen.lockOrientation("portrait-primary");var e=this.data.vod_play_url[this.playIndex]["list"][this.videoEpisodes].url;this.playerUrl=this.getVideoUrl(e),t?(this.$refs.fullAdv.type=t,this.$refs.fullAdv.toast=null):(this.$refs.fullAdv.type="default",this.$refs.fullAdv.toast="\u89c6\u9891\u6781\u901f\u52a0\u8f7d\u4e2d"),this.$refs.fullAdv.adv=this.advList.full_adv[Math.floor(Math.random()*this.advList.full_adv.length)],this.$refs.fullAdv.showPopup=!0},setplayAdv:function(){this.$refs.artplayer.playershow(),this.playAdvShow=!1},closeFullAdv:function(t){var e=this;return(0,s.default)(i.default.mark((function r(){var n,a,s;return i.default.wrap((function(r){while(1)switch(r.prev=r.next){case 0:if(e.adFull=!1,e.data.adv_list.play_adv.length,"video"!=t){r.next=13;break}return e.lookLoading=!0,n=e.data.vod_play_url[e.playIndex]["list"][e.videoEpisodes].url,r.next=7,g.app.advUnlockVod(e.id+"_"+e.videoEpisodes,n).then(a);case 7:a=r.sent,s=e.data.vod_play_url[e.playIndex].key,a.data.url&&(e.lookedUrl=a.data.url.h264,e.p2p=a.data.p2p,e.urlarr.push({displayName:"264",resName:s+"."+e.id+"."+e.playIndex+(a.data.url.ver?"."+a.data.url.ver:"")+".264",p2pM3u8Url:e.lookedUrl,maxLruCacheSize:3e3})),e.lookLoading=!1,1==a.code&&(e.looked.push(e.videoEpisodes),g.app.updateHits(e.id,1),e.addHistory(),e.playerLoadData(),e.$refs.artplayer.playershow()),uni.showToast({icon:"none",title:a.msg,duration:3e3});case 13:case"end":return r.stop()}}),r)})))()},commentData:function(){this.$refs.comment.getData()},handleScroll:function(t){var e=t.detail.scrollTop;this.videoTabsIndex=e>400?1:0},openComment:function(){this.videoTabsIndex=1,this.scrollTop=510}}};e.default=y}).call(this,r("f3b9")["default"])},5779:function(t,e,r){"use strict";r.d(e,"b",(function(){return i})),r.d(e,"c",(function(){return a})),r.d(e,"a",(function(){return n}));var n={uLoadingIcon:r("42fe").default,uCountDown:r("497b").default,uPopup:r("591c").default,uBadge:r("2de7").default,uLoadingPage:r("ef90").default},i=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("view",{staticClass:t._$s(0,"sc","page-container"),attrs:{_i:0}},[r("view",{staticClass:t._$s(1,"sc","status-bar"),attrs:{_i:1}}),r("view",{staticClass:t._$s(2,"sc","video"),attrs:{_i:2}},[r("view",{staticClass:t._$s(3,"sc","video-box"),attrs:{_i:3}},[r("Artplayer",{ref:"artplayer",style:t._$s(4,"s",t.style),attrs:{playing:t.playing,vodid:t.id,_i:4},on:{"get-instance":t.getInstance,"update:playing":function(e){t.playing=e}}})],1),t._$s(5,"i",t.lookLoading)?r("u-loading-icon",{attrs:{_i:5}}):t._e(),t._$s(6,"i",t.playAdvShow)?r("view",{staticClass:t._$s(6,"sc","play-adv"),attrs:{_i:6},on:{click:function(e){return t.openAD(t.playAdv.adv_link)}}},[r("vod-image",{attrs:{src:t.playAdv.adv_image,_i:7}}),r("u-count-down",{ref:"advTime",attrs:{time:1e3*t.playAdv.adv_show_time,format:"ss",autoStart:!0,_i:8},on:{change:t.advTimeChange,finish:t.closePlayAdv}},[r("text",{staticClass:t._$s(9,"sc","time"),attrs:{_i:9}},[t._v(t._$s(9,"t0-0",t._s(t.playAdvTime.seconds)))])])],1):t._e()],1),r("view",{staticClass:t._$s(10,"sc","video-info"),attrs:{_i:10},on:{touchmove:function(t){t.stopPropagation()}}},[r("view",{staticClass:t._$s(11,"sc","video-info-header"),attrs:{_i:11}},[r("view",{staticClass:t._$s(12,"sc","header-bg"),attrs:{_i:12}},[r("view",{staticClass:t._$s(13,"sc","header-bg-upper"),attrs:{_i:13}})]),r("view",{staticClass:t._$s(14,"sc","video-tabs justify-between"),attrs:{_i:14}},[r("view",{staticClass:t._$s(15,"sc","video-tabs-title"),attrs:{_i:15}},[r("text",{class:t._$s(16,"c",0==t.videoTabsIndex&&"selected"),attrs:{_i:16},on:{click:function(e){return t.tabsClick(0)}}}),r("text",{class:t._$s(17,"c",1==t.videoTabsIndex&&"selected"),attrs:{_i:17},on:{click:function(e){return t.tabsClick(1)}}})]),r("view",{staticClass:t._$s(18,"sc","video-msg"),attrs:{_i:18},on:{click:function(e){return t.openUrl("/pages/video/video-guide")}}})])]),r("view",{staticClass:t._$s(19,"sc","video-info-swiper"),attrs:{_i:19}},[r("scroll-view",{ref:"scrollView",staticClass:t._$s(20,"sc","swiper-container"),attrs:{"scroll-top":t._$s(20,"a-scroll-top",t.scrollTop),_i:20},on:{scrolltolower:t.commentData,scroll:t.handleScroll}},[t._$s(21,"i",t.advList.banner_adv1)?r("view",{staticClass:t._$s(21,"sc","ad-banner"),attrs:{_i:21},on:{click:function(e){return t.openAD(t.advList.banner_adv1.adv_link)}}},[r("vodImage",{attrs:{src:t.advList.banner_adv1.adv_image,mode:"widthFix",_i:22}})],1):t._e(),r("video-info",{attrs:{"intro-show":t.introShow,"video-tabs-index":t.videoTabsIndex,"play-index":t.playIndex,"video-episodes":t.videoEpisodes,data:t.data,adv:t.advList,is_fav:t.data.is_fav,_i:23},on:{"update:introShow":function(e){t.introShow=e},"update:intro-show":function(e){t.introShow=e},"update:videoTabsIndex":function(e){t.videoTabsIndex=e},"update:video-tabs-index":function(e){t.videoTabsIndex=e},"update:playIndex":function(e){t.playIndex=e},"update:play-index":function(e){t.playIndex=e},"update:videoEpisodes":function(e){t.videoEpisodes=e},"update:video-episodes":function(e){t.videoEpisodes=e},episodes:t.triggerEpisodes,Share:t.openShare,download:t.download,favVod:t.favVod,dig:t.digVod}}),r("video-comment",{ref:"comment",attrs:{id:t._$s(24,"a-id",t.id),showinput:t.videoTabsIndex,_i:24},on:{reward:t.toReward}})],1)])]),r("u-popup",{attrs:{show:t.episodesShow,round:10,_i:25},on:{close:function(e){return t.triggerEpisodes(!1)}}},[r("view",{staticClass:t._$s(26,"sc","video-episodes-popup"),attrs:{_i:26}},[r("scroll-view",{attrs:{"scroll-top":t._$s(27,"a-scroll-top",t.episodesScroll),_i:27}},[t._$s(28,"i",t.data.vod_play_url.length>0)?r("view",{staticClass:t._$s(28,"sc","episodes-popup-grid"),attrs:{_i:28}},t._l(t._$s(29,"f",{forItems:t.data.vod_play_url[t.playIndex].list}),(function(e,n,i,a){return r("view",{key:t._$s(29,"f",{forIndex:i,key:n}),staticClass:t._$s("29-"+a,"sc","grid-item"),class:t._$s("29-"+a,"c",n==t.videoEpisodes&&"selected"),attrs:{_i:"29-"+a},on:{click:function(e){return t.selectEpisodes(n)}}},[r("text",{staticClass:t._$s("30-"+a,"sc","grid-text"),attrs:{_i:"30-"+a}},[t._v(t._$s("30-"+a,"t0-0",t._s(e.name)))]),t._$s("31-"+a,"i",e.badge)?r("u-badge",{attrs:{value:e.badge.value,_i:"31-"+a}}):t._e()],1)})),0):t._e()])])]),r("share",{ref:"share",attrs:{_i:32}}),r("u-loading-page",{attrs:{loading:t.loading,bgColor:"none",fontSize:"16",_i:33}}),r("reward",{ref:"reward",attrs:{_i:34}}),r("full-adv",{ref:"fullAdv",attrs:{_i:35},on:{close:t.closeFullAdv}})],1)},a=[]},"579a":function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={carKeyboard:{random:!1}}},5843:function(t,e,r){"use strict";r.r(e);var n=r("072b"),i=r("3617");for(var a in i)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return i[t]}))}(a);var s=r("828b"),o=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);e["default"]=o.exports},"58b7":function(t,e,r){"use strict";r.r(e);var n=r("c20f"),i=r("a03e");for(var a in i)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return i[t]}))}(a);var s=r("828b"),o=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,"82557f74",null,!1,n["a"],void 0);e["default"]=o.exports},"58d3":function(t,e,r){"use strict";r.r(e);var n=r("4d1f"),i=r("f3c5");for(var a in i)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return i[t]}))}(a);var s=r("828b"),o=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);e["default"]=o.exports},"591c":function(t,e,r){"use strict";r.r(e);var n=r("bdee"),i=r("78ee");for(var a in i)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return i[t]}))}(a);var s=r("828b"),o=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,"de594a70",null,!1,n["a"],void 0);e["default"]=o.exports},5946:function(t,e,r){"use strict";r.d(e,"b",(function(){return i})),r.d(e,"c",(function(){return a})),r.d(e,"a",(function(){return n}));var n={uniIcons:r("da03").default,uLoadmore:r("bc5a").default},i=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("scroll-view",{attrs:{"refresher-triggered":t._$s(0,"a-refresher-triggered",t.refreshTriggered),_i:0},on:{refresherrefresh:t.refresh,scrolltolower:t.getData}},[r("view",{staticClass:t._$s(1,"sc","album-list"),attrs:{_i:1}},[t._l(t._$s(2,"f",{forItems:t.list}),(function(e,n,i,a){return r("view",{key:t._$s(2,"f",{forIndex:i,key:n}),staticClass:t._$s("2-"+a,"sc","album-item"),attrs:{_i:"2-"+a}},[r("view",{staticClass:t._$s("3-"+a,"sc","index-box-title"),attrs:{_i:"3-"+a}},[r("text",[t._v(t._$s("4-"+a,"t0-0",t._s(e.topic_name)))]),r("view",{staticClass:t._$s("5-"+a,"sc","more"),attrs:{_i:"5-"+a},on:{click:function(r){return t.openUrl("/pages/album/details?id="+e.topic_id)}}},[r("uni-icons",{attrs:{type:"forward",size:"16",color:"#a1a0a4",_i:"6-"+a}})],1)]),r("scroll-view",{attrs:{_i:"7-"+a}},[r("view",{staticClass:t._$s("8-"+a,"sc","index-box"),attrs:{_i:"8-"+a}},[r("view",{staticClass:t._$s("9-"+a,"sc","vod-container"),attrs:{_i:"9-"+a}},t._l(t._$s("10-"+a,"f",{forItems:e.vod_list}),(function(e,n,i,s){return r("vod-item",{key:t._$s("10-"+a,"f",{forIndex:i,key:n}),attrs:{item:e,index:n,mode:"channel",_i:"10-"+a+"-"+s}})})),1)])])])})),r("view",{staticClass:t._$s(11,"sc","load-more"),attrs:{_i:11}},[r("u-loadmore",{attrs:{status:t.loadStatus,"loading-icon":"semicircle",line:!0,"margin-top":20,_i:12}})],1)],2)])},a=[]},5947:function(t,e,r){"use strict";r.r(e);var n=r("732e"),i=r.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return n[t]}))}(a);e["default"]=i.a},5950:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={props:{}}},5965:function(t,e,r){"use strict";var n=r("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(r("127e")),a=n(r("ee10")),s=r("0f81"),o={data:function(){return{data:{}}},onLoad:function(){var t=this;return(0,a.default)(i.default.mark((function e(){var r;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$onLaunched;case 2:r=getApp().globalData.userToken,r?t.getData():uni.redirectTo({url:"/pages/user/login"});case 4:case"end":return e.stop()}}),e)})))()},methods:{getData:function(){var t=this;s.user.taskList().then((function(e){1==e.code&&(t.data=e.data)}))}}};e.default=o},5997:function(t,e,r){"use strict";r.d(e,"b",(function(){return i})),r.d(e,"c",(function(){return a})),r.d(e,"a",(function(){return n}));var n={uTabs:r("58b7").default,uIcon:r("712b").default,uLoadmore:r("bc5a").default},i=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("scroll-view",{attrs:{"refresher-triggered":t._$s(0,"a-refresher-triggered",t.refreshTriggered),_i:0},on:{refresherrefresh:t.refresh,scrolltolower:t.getData}},[r("view",{staticClass:t._$s(1,"sc","condition-box"),attrs:{_i:1},on:{touchmove:function(t){t.stopPropagation()}}},[t._l(t._$s(2,"f",{forItems:t.condition}),(function(e,n,i,a){return[r("u-tabs",{key:t._$s(2,"f",{forIndex:i,keyIndex:0,key:"2-0"+a}),staticClass:t._$s("3-"+a,"sc","tabs"),attrs:{"line-width":0,"line-height":0,"item-style":{height:"35px",padding:"0 5px"},"inactive-style":{padding:"2px 10px",fontSize:"14px",color:"#AAABAF"},"active-style":{padding:"2px 10px",fontSize:"13px",fontWeight:500,color:"#DA2538",background:"#FEEEEF",borderRadius:"4px"},list:e.data,current:e.current,_i:"3-"+a},on:{click:function(e){return t.tabsClick(n,e)}}},[t._$s("4-"+a,"i",e.data&&e.data.length>6)?r("view",{attrs:{_i:"4-"+a},on:{click:function(r){return t.openAll(n,e)}},slot:"right"},[r("u-icon",{attrs:{name:"list-dot",size:"24",color:"#fff",_i:"5-"+a}})],1):t._e()])]}))],2),r("view",{staticClass:t._$s(6,"sc","vod-container"),attrs:{_i:6}},t._l(t._$s(7,"f",{forItems:t.list}),(function(e,n,i,a){return r("view",{key:t._$s(7,"f",{forIndex:i,key:n})},[r("vod-item",{attrs:{item:e,_i:"8-"+a}}),t._$s("9-"+a,"i",(n+1)%8===0&&t.banner_adv.length)?r("adv-item",{attrs:{adv:t.banner_adv[Math.floor(Math.random()*t.banner_adv.length)],_i:"9-"+a}}):t._e()],1)})),0),r("sortListAll",{ref:"popup",attrs:{item:t.item,itemIndex:t.itemIndex,_i:10},on:{tabClick:t.tabsClick}}),r("view",{staticClass:t._$s(11,"sc","load-more"),attrs:{_i:11}},[r("u-loadmore",{attrs:{status:t.loadStatus,"loading-icon":"semicircle",line:!0,_i:12}})],1)],1)},a=[]},"5a73":function(t,e,r){"use strict";r.d(e,"b",(function(){return n})),r.d(e,"c",(function(){return i})),r.d(e,"a",(function(){}));var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("text",{staticClass:t._$s(0,"sc","uni-icons"),class:t._$s(0,"c",["uniui-"+t.type,t.customPrefix,t.customPrefix?t.type:""]),style:t._$s(0,"s",{color:t.color,"font-size":t.iconSize}),attrs:{_i:0},on:{click:t._onClick}})},i=[]},"5ae5":function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={statusBar:{bgColor:"transparent"}}},"5afe":function(t,e,r){var n,i,a=r("3b2d");!function s(o){var u;u=function(){"use strict";function t(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function e(e){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?t(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):t(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function r(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,v(n.key),n)}}function n(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function i(t,e,r){return(e=v(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function u(){return u=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},u.apply(this,arguments)}function l(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,A(t,e)}function c(t){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},c(t)}function A(t,e){return A=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},A(t,e)}function d(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(s){return!1}}function f(t,e,r){return f=d()?Reflect.construct.bind():function(t,e,r){var n=[null];n.push.apply(n,e);var i=new(Function.bind.apply(t,n));return r&&A(i,r.prototype),i},f.apply(null,arguments)}function h(t){var e="function"==typeof Map?new Map:void 0;return h=function(t){if(null===t||(r=t,-1===Function.toString.call(r).indexOf("[native code]")))return t;var r;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return f(t,arguments,c(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),A(n,t)},h(t)}function p(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function g(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(r)return(r=r.call(t)).next.bind(r);if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return p(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?p(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0;return function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function v(t){var e=function(t,e){if("object"!=a(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==a(e)?e:String(e)}var m={exports:{}};!function(t,e){var r,n,i,a,s;r=/^(?=((?:[a-zA-Z0-9+\-.]+:)?))\1(?=((?:\/\/[^\/?#]*)?))\2(?=((?:(?:[^?#\/]*\/)*[^;?#\/]*)?))\3((?:;[^?#]*)?)(\?[^#]*)?(#[^]*)?$/,n=/^(?=([^\/?#]*))\1([^]*)$/,i=/(?:\/|^)\.(?=\/)/g,a=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,s={buildAbsoluteURL:function(t,e,r){if(r=r||{},t=t.trim(),!(e=e.trim())){if(!r.alwaysNormalize)return t;var i=s.parseURL(t);if(!i)throw new Error("Error trying to parse base URL.");return i.path=s.normalizePath(i.path),s.buildURLFromParts(i)}var a=s.parseURL(e);if(!a)throw new Error("Error trying to parse relative URL.");if(a.scheme)return r.alwaysNormalize?(a.path=s.normalizePath(a.path),s.buildURLFromParts(a)):e;var o=s.parseURL(t);if(!o)throw new Error("Error trying to parse base URL.");if(!o.netLoc&&o.path&&"/"!==o.path[0]){var u=n.exec(o.path);o.netLoc=u[1],o.path=u[2]}o.netLoc&&!o.path&&(o.path="/");var l={scheme:o.scheme,netLoc:a.netLoc,path:null,params:a.params,query:a.query,fragment:a.fragment};if(!a.netLoc&&(l.netLoc=o.netLoc,"/"!==a.path[0]))if(a.path){var c=o.path,A=c.substring(0,c.lastIndexOf("/")+1)+a.path;l.path=s.normalizePath(A)}else l.path=o.path,a.params||(l.params=o.params,a.query||(l.query=o.query));return null===l.path&&(l.path=r.alwaysNormalize?s.normalizePath(a.path):a.path),s.buildURLFromParts(l)},parseURL:function(t){var e=r.exec(t);return e?{scheme:e[1]||"",netLoc:e[2]||"",path:e[3]||"",params:e[4]||"",query:e[5]||"",fragment:e[6]||""}:null},normalizePath:function(t){for(t=t.split("").reverse().join("").replace(i,"");t.length!==(t=t.replace(a,"")).length;);return t.split("").reverse().join("")},buildURLFromParts:function(t){return t.scheme+t.netLoc+t.path+t.params+t.query+t.fragment}},t.exports=s}(m);var y=m.exports,w=Number.isFinite||function(t){return"number"==typeof t&&isFinite(t)},b=function(t){return t.MEDIA_ATTACHING="hlsMediaAttaching",t.MEDIA_ATTACHED="hlsMediaAttached",t.MEDIA_DETACHING="hlsMediaDetaching",t.MEDIA_DETACHED="hlsMediaDetached",t.BUFFER_RESET="hlsBufferReset",t.BUFFER_CODECS="hlsBufferCodecs",t.BUFFER_CREATED="hlsBufferCreated",t.BUFFER_APPENDING="hlsBufferAppending",t.BUFFER_APPENDED="hlsBufferAppended",t.BUFFER_EOS="hlsBufferEos",t.BUFFER_FLUSHING="hlsBufferFlushing",t.BUFFER_FLUSHED="hlsBufferFlushed",t.MANIFEST_LOADING="hlsManifestLoading",t.MANIFEST_LOADED="hlsManifestLoaded",t.MANIFEST_PARSED="hlsManifestParsed",t.LEVEL_SWITCHING="hlsLevelSwitching",t.LEVEL_SWITCHED="hlsLevelSwitched",t.LEVEL_LOADING="hlsLevelLoading",t.LEVEL_LOADED="hlsLevelLoaded",t.LEVEL_UPDATED="hlsLevelUpdated",t.LEVEL_PTS_UPDATED="hlsLevelPtsUpdated",t.LEVELS_UPDATED="hlsLevelsUpdated",t.AUDIO_TRACKS_UPDATED="hlsAudioTracksUpdated",t.AUDIO_TRACK_SWITCHING="hlsAudioTrackSwitching",t.AUDIO_TRACK_SWITCHED="hlsAudioTrackSwitched",t.AUDIO_TRACK_LOADING="hlsAudioTrackLoading",t.AUDIO_TRACK_LOADED="hlsAudioTrackLoaded",t.SUBTITLE_TRACKS_UPDATED="hlsSubtitleTracksUpdated",t.SUBTITLE_TRACKS_CLEARED="hlsSubtitleTracksCleared",t.SUBTITLE_TRACK_SWITCH="hlsSubtitleTrackSwitch",t.SUBTITLE_TRACK_LOADING="hlsSubtitleTrackLoading",t.SUBTITLE_TRACK_LOADED="hlsSubtitleTrackLoaded",t.SUBTITLE_FRAG_PROCESSED="hlsSubtitleFragProcessed",t.CUES_PARSED="hlsCuesParsed",t.NON_NATIVE_TEXT_TRACKS_FOUND="hlsNonNativeTextTracksFound",t.INIT_PTS_FOUND="hlsInitPtsFound",t.FRAG_LOADING="hlsFragLoading",t.FRAG_LOAD_EMERGENCY_ABORTED="hlsFragLoadEmergencyAborted",t.FRAG_LOADED="hlsFragLoaded",t.FRAG_DECRYPTED="hlsFragDecrypted",t.FRAG_PARSING_INIT_SEGMENT="hlsFragParsingInitSegment",t.FRAG_PARSING_USERDATA="hlsFragParsingUserdata",t.FRAG_PARSING_METADATA="hlsFragParsingMetadata",t.FRAG_PARSED="hlsFragParsed",t.FRAG_BUFFERED="hlsFragBuffered",t.FRAG_CHANGED="hlsFragChanged",t.FPS_DROP="hlsFpsDrop",t.FPS_DROP_LEVEL_CAPPING="hlsFpsDropLevelCapping",t.ERROR="hlsError",t.DESTROYING="hlsDestroying",t.KEY_LOADING="hlsKeyLoading",t.KEY_LOADED="hlsKeyLoaded",t.LIVE_BACK_BUFFER_REACHED="hlsLiveBackBufferReached",t.BACK_BUFFER_REACHED="hlsBackBufferReached",t}({}),_=function(t){return t.NETWORK_ERROR="networkError",t.MEDIA_ERROR="mediaError",t.KEY_SYSTEM_ERROR="keySystemError",t.MUX_ERROR="muxError",t.OTHER_ERROR="otherError",t}({}),B=function(t){return t.KEY_SYSTEM_NO_KEYS="keySystemNoKeys",t.KEY_SYSTEM_NO_ACCESS="keySystemNoAccess",t.KEY_SYSTEM_NO_SESSION="keySystemNoSession",t.KEY_SYSTEM_NO_CONFIGURED_LICENSE="keySystemNoConfiguredLicense",t.KEY_SYSTEM_LICENSE_REQUEST_FAILED="keySystemLicenseRequestFailed",t.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED="keySystemServerCertificateRequestFailed",t.KEY_SYSTEM_SERVER_CERTIFICATE_UPDATE_FAILED="keySystemServerCertificateUpdateFailed",t.KEY_SYSTEM_SESSION_UPDATE_FAILED="keySystemSessionUpdateFailed",t.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED="keySystemStatusOutputRestricted",t.KEY_SYSTEM_STATUS_INTERNAL_ERROR="keySystemStatusInternalError",t.MANIFEST_LOAD_ERROR="manifestLoadError",t.MANIFEST_LOAD_TIMEOUT="manifestLoadTimeOut",t.MANIFEST_PARSING_ERROR="manifestParsingError",t.MANIFEST_INCOMPATIBLE_CODECS_ERROR="manifestIncompatibleCodecsError",t.LEVEL_EMPTY_ERROR="levelEmptyError",t.LEVEL_LOAD_ERROR="levelLoadError",t.LEVEL_LOAD_TIMEOUT="levelLoadTimeOut",t.LEVEL_PARSING_ERROR="levelParsingError",t.LEVEL_SWITCH_ERROR="levelSwitchError",t.AUDIO_TRACK_LOAD_ERROR="audioTrackLoadError",t.AUDIO_TRACK_LOAD_TIMEOUT="audioTrackLoadTimeOut",t.SUBTITLE_LOAD_ERROR="subtitleTrackLoadError",t.SUBTITLE_TRACK_LOAD_TIMEOUT="subtitleTrackLoadTimeOut",t.FRAG_LOAD_ERROR="fragLoadError",t.FRAG_LOAD_TIMEOUT="fragLoadTimeOut",t.FRAG_DECRYPT_ERROR="fragDecryptError",t.FRAG_PARSING_ERROR="fragParsingError",t.FRAG_GAP="fragGap",t.REMUX_ALLOC_ERROR="remuxAllocError",t.KEY_LOAD_ERROR="keyLoadError",t.KEY_LOAD_TIMEOUT="keyLoadTimeOut",t.BUFFER_ADD_CODEC_ERROR="bufferAddCodecError",t.BUFFER_INCOMPATIBLE_CODECS_ERROR="bufferIncompatibleCodecsError",t.BUFFER_APPEND_ERROR="bufferAppendError",t.BUFFER_APPENDING_ERROR="bufferAppendingError",t.BUFFER_STALLED_ERROR="bufferStalledError",t.BUFFER_FULL_ERROR="bufferFullError",t.BUFFER_SEEK_OVER_HOLE="bufferSeekOverHole",t.BUFFER_NUDGE_ON_STALL="bufferNudgeOnStall",t.INTERNAL_EXCEPTION="internalException",t.INTERNAL_ABORTED="aborted",t.UNKNOWN="unknown",t}({}),C=function(){},E={trace:C,debug:C,log:C,warn:C,info:C,error:C},x=E;function T(t){var e=self.console[t];return e?e.bind(self.console,"["+t+"] >"):C}function S(t,e){if(self.console&&!0===t||"object"==a(t)){!function(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];r.forEach((function(e){x[e]=t[e]?t[e].bind(t):T(e)}))}(t,"debug","log","info","warn","error");try{x.log('Debug logs enabled for "'+e+'" in hls.js version 1.4.8')}catch(t){x=E}}else x=E}var k=x,I=/^(\d+)x(\d+)$/,F=/(.+?)=(".*?"|.*?)(?:,|$)/g,L=function(){function t(e){for(var r in"string"==typeof e&&(e=t.parseAttrList(e)),e)e.hasOwnProperty(r)&&("X-"===r.substring(0,2)&&(this.clientAttrs=this.clientAttrs||[],this.clientAttrs.push(r)),this[r]=e[r])}var e=t.prototype;return e.decimalInteger=function(t){var e=parseInt(this[t],10);return e>Number.MAX_SAFE_INTEGER?1/0:e},e.hexadecimalInteger=function(t){if(this[t]){var e=(this[t]||"0x").slice(2);e=(1&e.length?"0":"")+e;for(var r=new Uint8Array(e.length/2),n=0;n<e.length/2;n++)r[n]=parseInt(e.slice(2*n,2*n+2),16);return r}return null},e.hexadecimalIntegerAsNumber=function(t){var e=parseInt(this[t],16);return e>Number.MAX_SAFE_INTEGER?1/0:e},e.decimalFloatingPoint=function(t){return parseFloat(this[t])},e.optionalFloat=function(t,e){var r=this[t];return r?parseFloat(r):e},e.enumeratedString=function(t){return this[t]},e.bool=function(t){return"YES"===this[t]},e.decimalResolution=function(t){var e=I.exec(this[t]);if(null!==e)return{width:parseInt(e[1],10),height:parseInt(e[2],10)}},t.parseAttrList=function(t){var e,r={};for(F.lastIndex=0;null!==(e=F.exec(t));){var n=e[2];0===n.indexOf('"')&&n.lastIndexOf('"')===n.length-1&&(n=n.slice(1,-1)),r[e[1].trim()]=n}return r},t}();function D(t){return"SCTE35-OUT"===t||"SCTE35-IN"===t}var R=function(){function t(t,e){if(this.attr=void 0,this._startDate=void 0,this._endDate=void 0,this._badValueForSameId=void 0,e){var r=e.attr;for(var n in r)if(Object.prototype.hasOwnProperty.call(t,n)&&t[n]!==r[n]){k.warn('DATERANGE tag attribute: "'+n+'" does not match for tags with ID: "'+t.ID+'"'),this._badValueForSameId=n;break}t=u(new L({}),r,t)}if(this.attr=t,this._startDate=new Date(t["START-DATE"]),"END-DATE"in this.attr){var i=new Date(this.attr["END-DATE"]);w(i.getTime())&&(this._endDate=i)}}return n(t,[{key:"id",get:function(){return this.attr.ID}},{key:"class",get:function(){return this.attr.CLASS}},{key:"startDate",get:function(){return this._startDate}},{key:"endDate",get:function(){if(this._endDate)return this._endDate;var t=this.duration;return null!==t?new Date(this._startDate.getTime()+1e3*t):null}},{key:"duration",get:function(){if("DURATION"in this.attr){var t=this.attr.decimalFloatingPoint("DURATION");if(w(t))return t}else if(this._endDate)return(this._endDate.getTime()-this._startDate.getTime())/1e3;return null}},{key:"plannedDuration",get:function(){return"PLANNED-DURATION"in this.attr?this.attr.decimalFloatingPoint("PLANNED-DURATION"):null}},{key:"endOnNext",get:function(){return this.attr.bool("END-ON-NEXT")}},{key:"isValid",get:function(){return!!this.id&&!this._badValueForSameId&&w(this.startDate.getTime())&&(null===this.duration||this.duration>=0)&&(!this.endOnNext||!!this.class)}}]),t}(),U=function(){this.aborted=!1,this.loaded=0,this.retry=0,this.total=0,this.chunkCount=0,this.bwEstimate=0,this.loading={start:0,first:0,end:0},this.parsing={start:0,end:0},this.buffering={start:0,first:0,end:0}},O="audio",P="video",M="audiovideo",Q=function(){function t(t){var e;this._byteRange=null,this._url=null,this.baseurl=void 0,this.relurl=void 0,this.elementaryStreams=((e={})[O]=null,e[P]=null,e[M]=null,e),this.baseurl=t}return t.prototype.setByteRange=function(t,e){var r=t.split("@",2),n=[];1===r.length?n[0]=e?e.byteRangeEndOffset:0:n[0]=parseInt(r[1]),n[1]=parseInt(r[0])+n[0],this._byteRange=n},n(t,[{key:"byteRange",get:function(){return this._byteRange?this._byteRange:[]}},{key:"byteRangeStartOffset",get:function(){return this.byteRange[0]}},{key:"byteRangeEndOffset",get:function(){return this.byteRange[1]}},{key:"url",get:function(){return!this._url&&this.baseurl&&this.relurl&&(this._url=y.buildAbsoluteURL(this.baseurl,this.relurl,{alwaysNormalize:!0})),this._url||""},set:function(t){this._url=t}}]),t}(),N=function(t){function e(e,r){var n;return(n=t.call(this,r)||this)._decryptdata=null,n.rawProgramDateTime=null,n.programDateTime=null,n.tagList=[],n.duration=0,n.sn=0,n.levelkeys=void 0,n.type=void 0,n.loader=null,n.keyLoader=null,n.level=-1,n.cc=0,n.startPTS=void 0,n.endPTS=void 0,n.startDTS=void 0,n.endDTS=void 0,n.start=0,n.deltaPTS=void 0,n.maxStartPTS=void 0,n.minEndPTS=void 0,n.stats=new U,n.urlId=0,n.data=void 0,n.bitrateTest=!1,n.title=null,n.initSegment=null,n.endList=void 0,n.gap=void 0,n.type=e,n}l(e,t);var r=e.prototype;return r.setKeyFormat=function(t){if(this.levelkeys){var e=this.levelkeys[t];e&&!this._decryptdata&&(this._decryptdata=e.getDecryptData(this.sn))}},r.abortRequests=function(){var t,e;null==(t=this.loader)||t.abort(),null==(e=this.keyLoader)||e.abort()},r.setElementaryStreamInfo=function(t,e,r,n,i,a){void 0===a&&(a=!1);var s=this.elementaryStreams,o=s[t];o?(o.startPTS=Math.min(o.startPTS,e),o.endPTS=Math.max(o.endPTS,r),o.startDTS=Math.min(o.startDTS,n),o.endDTS=Math.max(o.endDTS,i)):s[t]={startPTS:e,endPTS:r,startDTS:n,endDTS:i,partial:a}},r.clearElementaryStreamInfo=function(){var t=this.elementaryStreams;t[O]=null,t[P]=null,t[M]=null},n(e,[{key:"decryptdata",get:function(){if(!this.levelkeys&&!this._decryptdata)return null;if(!this._decryptdata&&this.levelkeys&&!this.levelkeys.NONE){var t=this.levelkeys.identity;if(t)this._decryptdata=t.getDecryptData(this.sn);else{var e=Object.keys(this.levelkeys);if(1===e.length)return this._decryptdata=this.levelkeys[e[0]].getDecryptData(this.sn)}}return this._decryptdata}},{key:"end",get:function(){return this.start+this.duration}},{key:"endProgramDateTime",get:function(){if(null===this.programDateTime)return null;if(!w(this.programDateTime))return null;var t=w(this.duration)?this.duration:0;return this.programDateTime+1e3*t}},{key:"encrypted",get:function(){var t;if(null!=(t=this._decryptdata)&&t.encrypted)return!0;if(this.levelkeys){var e=Object.keys(this.levelkeys),r=e.length;if(r>1||1===r&&this.levelkeys[e[0]].encrypted)return!0}return!1}}]),e}(Q),H=function(t){function e(e,r,n,i,a){var s;(s=t.call(this,n)||this).fragOffset=0,s.duration=0,s.gap=!1,s.independent=!1,s.relurl=void 0,s.fragment=void 0,s.index=void 0,s.stats=new U,s.duration=e.decimalFloatingPoint("DURATION"),s.gap=e.bool("GAP"),s.independent=e.bool("INDEPENDENT"),s.relurl=e.enumeratedString("URI"),s.fragment=r,s.index=i;var o=e.enumeratedString("BYTERANGE");return o&&s.setByteRange(o,a),a&&(s.fragOffset=a.fragOffset+a.duration),s}return l(e,t),n(e,[{key:"start",get:function(){return this.fragment.start+this.fragOffset}},{key:"end",get:function(){return this.start+this.duration}},{key:"loaded",get:function(){var t=this.elementaryStreams;return!!(t.audio||t.video||t.audiovideo)}}]),e}(Q),$=function(){function t(t){this.PTSKnown=!1,this.alignedSliding=!1,this.averagetargetduration=void 0,this.endCC=0,this.endSN=0,this.fragments=void 0,this.fragmentHint=void 0,this.partList=null,this.dateRanges=void 0,this.live=!0,this.ageHeader=0,this.advancedDateTime=void 0,this.updated=!0,this.advanced=!0,this.availabilityDelay=void 0,this.misses=0,this.startCC=0,this.startSN=0,this.startTimeOffset=null,this.targetduration=0,this.totalduration=0,this.type=null,this.url=void 0,this.m3u8="",this.version=null,this.canBlockReload=!1,this.canSkipUntil=0,this.canSkipDateRanges=!1,this.skippedSegments=0,this.recentlyRemovedDateranges=void 0,this.partHoldBack=0,this.holdBack=0,this.partTarget=0,this.preloadHint=void 0,this.renditionReports=void 0,this.tuneInGoal=0,this.deltaUpdateFailed=void 0,this.driftStartTime=0,this.driftEndTime=0,this.driftStart=0,this.driftEnd=0,this.encryptedFragments=void 0,this.playlistParsingError=null,this.variableList=null,this.hasVariableRefs=!1,this.fragments=[],this.encryptedFragments=[],this.dateRanges={},this.url=t}return t.prototype.reloaded=function(t){if(!t)return this.advanced=!0,void(this.updated=!0);var e=this.lastPartSn-t.lastPartSn,r=this.lastPartIndex-t.lastPartIndex;this.updated=this.endSN!==t.endSN||!!r||!!e,this.advanced=this.endSN>t.endSN||e>0||0===e&&r>0,this.updated||this.advanced?this.misses=Math.floor(.6*t.misses):this.misses=t.misses+1,this.availabilityDelay=t.availabilityDelay},n(t,[{key:"hasProgramDateTime",get:function(){return!!this.fragments.length&&w(this.fragments[this.fragments.length-1].programDateTime)}},{key:"levelTargetDuration",get:function(){return this.averagetargetduration||this.targetduration||10}},{key:"drift",get:function(){var t=this.driftEndTime-this.driftStartTime;return t>0?1e3*(this.driftEnd-this.driftStart)/t:1}},{key:"edge",get:function(){return this.partEnd||this.fragmentEnd}},{key:"partEnd",get:function(){var t;return null!=(t=this.partList)&&t.length?this.partList[this.partList.length-1].end:this.fragmentEnd}},{key:"fragmentEnd",get:function(){var t;return null!=(t=this.fragments)&&t.length?this.fragments[this.fragments.length-1].end:0}},{key:"age",get:function(){return this.advancedDateTime?Math.max(Date.now()-this.advancedDateTime,0)/1e3:0}},{key:"lastPartIndex",get:function(){var t;return null!=(t=this.partList)&&t.length?this.partList[this.partList.length-1].index:-1}},{key:"lastPartSn",get:function(){var t;return null!=(t=this.partList)&&t.length?this.partList[this.partList.length-1].fragment.sn:this.endSN}}]),t}();function j(t){return Uint8Array.from(atob(t),(function(t){return t.charCodeAt(0)}))}function K(t){return Uint8Array.from(unescape(encodeURIComponent(t)),(function(t){return t.charCodeAt(0)}))}var G={CLEARKEY:"org.w3.clearkey",FAIRPLAY:"com.apple.fps",PLAYREADY:"com.microsoft.playready",WIDEVINE:"com.widevine.alpha"},V="org.w3.clearkey",W="com.apple.streamingkeydelivery",z="com.microsoft.playready",Y="urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed";function q(t){switch(t){case W:return G.FAIRPLAY;case z:return G.PLAYREADY;case Y:return G.WIDEVINE;case V:return G.CLEARKEY}}var X="edef8ba979d64acea3c827dcd51d21ed";function J(t){switch(t){case G.FAIRPLAY:return W;case G.PLAYREADY:return z;case G.WIDEVINE:return Y;case G.CLEARKEY:return V}}function Z(t){var e=t.drmSystems,r=t.widevineLicenseUrl,n=e?[G.FAIRPLAY,G.WIDEVINE,G.PLAYREADY,G.CLEARKEY].filter((function(t){return!!e[t]})):[];return!n[G.WIDEVINE]&&r&&n.push(G.WIDEVINE),n}var tt="undefined"!=typeof self&&self.navigator&&self.navigator.requestMediaKeySystemAccess?self.navigator.requestMediaKeySystemAccess.bind(self.navigator):null;function et(t,e,r){return Uint8Array.prototype.slice?t.slice(e,r):new Uint8Array(Array.prototype.slice.call(t,e,r))}var rt,nt=function(t,e){return e+10<=t.length&&73===t[e]&&68===t[e+1]&&51===t[e+2]&&t[e+3]<255&&t[e+4]<255&&t[e+6]<128&&t[e+7]<128&&t[e+8]<128&&t[e+9]<128},it=function(t,e){return e+10<=t.length&&51===t[e]&&68===t[e+1]&&73===t[e+2]&&t[e+3]<255&&t[e+4]<255&&t[e+6]<128&&t[e+7]<128&&t[e+8]<128&&t[e+9]<128},at=function(t,e){for(var r=e,n=0;nt(t,e);)n+=10,n+=st(t,e+6),it(t,e+10)&&(n+=10),e+=n;if(n>0)return t.subarray(r,r+n)},st=function(t,e){var r=0;return r=(127&t[e])<<21,r|=(127&t[e+1])<<14,r|=(127&t[e+2])<<7,r|127&t[e+3]},ot=function(t,e){return nt(t,e)&&st(t,e+6)+10<=t.length-e},ut=function(t){return t&&"PRIV"===t.key&&"com.apple.streaming.transportStreamTimestamp"===t.info},lt=function(t){var e=String.fromCharCode(t[0],t[1],t[2],t[3]),r=st(t,4);return{type:e,size:r,data:t.subarray(10,10+r)}},ct=function(t){for(var e=0,r=[];nt(t,e);){for(var n=st(t,e+6),i=(e+=10)+n;e+8<i;){var a=lt(t.subarray(e)),s=At(a);s&&r.push(s),e+=a.size+10}it(t,e)&&(e+=10)}return r},At=function(t){return"PRIV"===t.type?dt(t):"W"===t.type[0]?ht(t):ft(t)},dt=function(t){if(!(t.size<2)){var e=gt(t.data,!0),r=new Uint8Array(t.data.subarray(e.length+1));return{key:t.type,info:e,data:r.buffer}}},ft=function(t){if(!(t.size<2)){if("TXXX"===t.type){var e=1,r=gt(t.data.subarray(e),!0);e+=r.length+1;var n=gt(t.data.subarray(e));return{key:t.type,info:r,data:n}}var i=gt(t.data.subarray(1));return{key:t.type,data:i}}},ht=function(t){if("WXXX"===t.type){if(t.size<2)return;var e=1,r=gt(t.data.subarray(e),!0);e+=r.length+1;var n=gt(t.data.subarray(e));return{key:t.type,info:r,data:n}}var i=gt(t.data);return{key:t.type,data:i}},pt=function(t){if(8===t.data.byteLength){var e=new Uint8Array(t.data),r=1&e[3],n=(e[4]<<23)+(e[5]<<15)+(e[6]<<7)+e[7];return n/=45,r&&(n+=47721858.84),Math.round(n)}},gt=function(t,e){void 0===e&&(e=!1);var r=function(){return rt||void 0===self.TextDecoder||(rt=new self.TextDecoder("utf-8")),rt}();if(r){var n=r.decode(t);if(e){var i=n.indexOf("\0");return-1!==i?n.substring(0,i):n}return n.replace(/\0/g,"")}for(var a,s,o,u=t.length,l="",c=0;c<u;){if(0===(a=t[c++])&&e)return l;if(0!==a&&3!==a)switch(a>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:l+=String.fromCharCode(a);break;case 12:case 13:s=t[c++],l+=String.fromCharCode((31&a)<<6|63&s);break;case 14:s=t[c++],o=t[c++],l+=String.fromCharCode((15&a)<<12|(63&s)<<6|(63&o)<<0)}}return l};var vt=function(t){for(var e="",r=0;r<t.length;r++){var n=t[r].toString(16);n.length<2&&(n="0"+n),e+=n}return e},mt=Math.pow(2,32)-1,yt=[].push,wt={video:1,audio:2,id3:3,text:4};function bt(t){return String.fromCharCode.apply(null,t)}function _t(t,e){var r=t[e]<<8|t[e+1];return r<0?65536+r:r}function Bt(t,e){var r=Ct(t,e);return r<0?4294967296+r:r}function Ct(t,e){return t[e]<<24|t[e+1]<<16|t[e+2]<<8|t[e+3]}function Et(t,e,r){t[e]=r>>24,t[e+1]=r>>16&255,t[e+2]=r>>8&255,t[e+3]=255&r}function xt(t,e){var r=[];if(!e.length)return r;for(var n=t.byteLength,i=0;i<n;){var a=Bt(t,i),s=a>1?i+a:n;if(bt(t.subarray(i+4,i+8))===e[0])if(1===e.length)r.push(t.subarray(i+8,s));else{var o=xt(t.subarray(i+8,s),e.slice(1));o.length&&yt.apply(r,o)}i=s}return r}function Tt(t){var e=[],r=t[0],n=8,i=Bt(t,n);n+=4,n+=0===r?8:16,n+=2;var a=t.length+0,s=_t(t,n);n+=2;for(var o=0;o<s;o++){var u=n,l=Bt(t,u);u+=4;var c=2147483647&l;if(1==(2147483648&l)>>>31)return k.warn("SIDX has hierarchical references (not supported)"),null;var A=Bt(t,u);u+=4,e.push({referenceSize:c,subsegmentDuration:A,info:{duration:A/i,start:a,end:a+c-1}}),a+=c,n=u+=4}return{earliestPresentationTime:0,timescale:i,version:r,referencesCount:s,references:e}}function St(t){for(var e=[],r=xt(t,["moov","trak"]),n=0;n<r.length;n++){var i=r[n],a=xt(i,["tkhd"])[0];if(a){var s=a[0],o=0===s?12:20,u=Bt(a,o),l=xt(i,["mdia","mdhd"])[0];if(l){var c=Bt(l,o=0===(s=l[0])?12:20),A=xt(i,["mdia","hdlr"])[0];if(A){var d=bt(A.subarray(8,12)),f={soun:O,vide:P}[d];if(f){var h=xt(i,["mdia","minf","stbl","stsd"])[0],p=void 0;h&&(p=bt(h.subarray(12,16))),e[u]={timescale:c,type:f},e[f]={timescale:c,id:u,codec:p}}}}}}return xt(t,["moov","mvex","trex"]).forEach((function(t){var r=Bt(t,4),n=e[r];n&&(n.default={duration:Bt(t,12),flags:Bt(t,20)})})),e}function kt(t){var e=xt(t,["schm"])[0];if(e){var r=bt(e.subarray(4,8));if("cbcs"===r||"cenc"===r)return xt(t,["schi","tenc"])[0]}return k.error("[eme] missing 'schm' box"),null}function It(t){var e=Bt(t,0),r=8;1&e&&(r+=4),4&e&&(r+=4);for(var n=0,i=Bt(t,4),a=0;a<i;a++)256&e&&(n+=Bt(t,r),r+=4),512&e&&(r+=4),1024&e&&(r+=4),2048&e&&(r+=4);return n}function Ft(t,e){var r=new Uint8Array(t.length+e.length);return r.set(t),r.set(e,t.length),r}function Lt(t,e){var r=[],n=e.samples,i=e.timescale,a=e.id,s=!1;return xt(n,["moof"]).map((function(o){var u=o.byteOffset-8;xt(o,["traf"]).map((function(o){var l=xt(o,["tfdt"]).map((function(t){var e=t[0],r=Bt(t,4);return 1===e&&(r*=Math.pow(2,32),r+=Bt(t,8)),r/i}))[0];return void 0!==l&&(t=l),xt(o,["tfhd"]).map((function(l){var c=Bt(l,4),A=16777215&Bt(l,0),d=0,f=0!=(16&A),h=0,p=0!=(32&A),g=8;c===a&&(0!=(1&A)&&(g+=8),0!=(2&A)&&(g+=4),0!=(8&A)&&(d=Bt(l,g),g+=4),f&&(h=Bt(l,g),g+=4),p&&(g+=4),"video"===e.type&&(s=function(t){if(!t)return!1;var e=t.indexOf("."),r=e<0?t:t.substring(0,e);return"hvc1"===r||"hev1"===r||"dvh1"===r||"dvhe"===r}(e.codec)),xt(o,["trun"]).map((function(a){var o=a[0],l=16777215&Bt(a,0),c=0!=(1&l),A=0,f=0!=(4&l),p=0!=(256&l),g=0,v=0!=(512&l),m=0,y=0!=(1024&l),w=0!=(2048&l),b=0,_=Bt(a,4),B=8;c&&(A=Bt(a,B),B+=4),f&&(B+=4);for(var C=A+u,E=0;E<_;E++){if(p?(g=Bt(a,B),B+=4):g=d,v?(m=Bt(a,B),B+=4):m=h,y&&(B+=4),w&&(b=0===o?Bt(a,B):Ct(a,B),B+=4),e.type===P)for(var x=0;x<m;){var T=Bt(n,C);Dt(s,n[C+=4])&&Rt(n.subarray(C,C+T),s?2:1,t+b/i,r),C+=T,x+=T+4}t+=g/i}})))}))}))})),r}function Dt(t,e){if(t){var r=e>>1&63;return 39===r||40===r}return 6==(31&e)}function Rt(t,e,r,n){var i=Ut(t),a=0;a+=e;for(var s=0,o=0,u=!1,l=0;a<i.length;){s=0;do{if(a>=i.length)break;s+=l=i[a++]}while(255===l);o=0;do{if(a>=i.length)break;o+=l=i[a++]}while(255===l);var c=i.length-a;if(!u&&4===s&&a<i.length){if(u=!0,181===i[a++]){var A=_t(i,a);if(a+=2,49===A){var d=Bt(i,a);if(a+=4,1195456820===d){var f=i[a++];if(3===f){var h=i[a++],p=64&h,g=p?2+3*(31&h):0,v=new Uint8Array(g);if(p){v[0]=h;for(var m=1;m<g;m++)v[m]=i[a++]}n.push({type:f,payloadType:s,pts:r,bytes:v})}}}}}else if(5===s&&o<c){if(u=!0,o>16){for(var y=[],w=0;w<16;w++){var b=i[a++].toString(16);y.push(1==b.length?"0"+b:b),3!==w&&5!==w&&7!==w&&9!==w||y.push("-")}for(var _=o-16,B=new Uint8Array(_),C=0;C<_;C++)B[C]=i[a++];n.push({payloadType:s,pts:r,uuid:y.join(""),userData:gt(B),userDataBytes:B})}}else if(o<c)a+=o;else if(o>c)break}}function Ut(t){for(var e=t.byteLength,r=[],n=1;n<e-2;)0===t[n]&&0===t[n+1]&&3===t[n+2]?(r.push(n+2),n+=2):n++;if(0===r.length)return t;var i=e-r.length,a=new Uint8Array(i),s=0;for(n=0;n<i;s++,n++)s===r[0]&&(s++,r.shift()),a[n]=t[s];return a}var Ot={},Pt=function(){function t(t,e,r,n,i){void 0===n&&(n=[1]),void 0===i&&(i=null),this.uri=void 0,this.method=void 0,this.keyFormat=void 0,this.keyFormatVersions=void 0,this.encrypted=void 0,this.isCommonEncryption=void 0,this.iv=null,this.key=null,this.keyId=null,this.pssh=null,this.method=t,this.uri=e,this.keyFormat=r,this.keyFormatVersions=n,this.iv=i,this.encrypted=!!t&&"NONE"!==t,this.isCommonEncryption=this.encrypted&&"AES-128"!==t}t.clearKeyUriToKeyIdMap=function(){Ot={}};var e=t.prototype;return e.isSupported=function(){if(this.method){if("AES-128"===this.method||"NONE"===this.method)return!0;if("identity"===this.keyFormat)return"SAMPLE-AES"===this.method;switch(this.keyFormat){case W:case Y:case z:case V:return-1!==["ISO-23001-7","SAMPLE-AES","SAMPLE-AES-CENC","SAMPLE-AES-CTR"].indexOf(this.method)}}return!1},e.getDecryptData=function(e){if(!this.encrypted||!this.uri)return null;if("AES-128"===this.method&&this.uri&&!this.iv){"number"!=typeof e&&("AES-128"!==this.method||this.iv||k.warn('missing IV for initialization segment with method="'+this.method+'" - compliance issue'),e=0);var r=function(t){for(var e=new Uint8Array(16),r=12;r<16;r++)e[r]=t>>8*(15-r)&255;return e}(e);return new t(this.method,this.uri,"identity",this.keyFormatVersions,r)}var n=function(t){var e,r,n=t.split(":"),i=null;if("data"===n[0]&&2===n.length){var a=n[1].split(";"),s=a[a.length-1].split(",");if(2===s.length){var o="base64"===s[0],u=s[1];o?(a.splice(-1,1),i=j(u)):(e=K(u).subarray(0,16),(r=new Uint8Array(16)).set(e,16-e.length),i=r)}}return i}(this.uri);if(n)switch(this.keyFormat){case Y:this.pssh=n,n.length>=22&&(this.keyId=n.subarray(n.length-22,n.length-6));break;case z:var i=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);this.pssh=function(t,e,r){if(16!==t.byteLength)throw new RangeError("Invalid system id");var n,i,a;if(e){n=1,i=new Uint8Array(16*e.length);for(var s=0;s<e.length;s++){var o=e[s];if(16!==o.byteLength)throw new RangeError("Invalid key");i.set(o,16*s)}}else n=0,i=new Uint8Array;n>0?(a=new Uint8Array(4),e.length>0&&new DataView(a.buffer).setUint32(0,e.length,!1)):a=new Uint8Array;var u=new Uint8Array(4);return r&&r.byteLength>0&&new DataView(u.buffer).setUint32(0,r.byteLength,!1),function(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];for(var i=r.length,a=8,s=i;s--;)a+=r[s].byteLength;var o=new Uint8Array(a);for(o[0]=a>>24&255,o[1]=a>>16&255,o[2]=a>>8&255,o[3]=255&a,o.set(t,4),s=0,a=8;s<i;s++)o.set(r[s],a),a+=r[s].byteLength;return o}([112,115,115,104],new Uint8Array([n,0,0,0]),t,a,i,u,r||new Uint8Array)}(i,null,n);var a=new Uint16Array(n.buffer,n.byteOffset,n.byteLength/2),s=String.fromCharCode.apply(null,Array.from(a)),o=s.substring(s.indexOf("<"),s.length),u=(new DOMParser).parseFromString(o,"text/xml").getElementsByTagName("KID")[0];if(u){var l=u.childNodes[0]?u.childNodes[0].nodeValue:u.getAttribute("VALUE");if(l){var c=j(l).subarray(0,16);!function(t){var e=function(t,e,r){var n=t[e];t[e]=t[r],t[r]=n};e(t,0,3),e(t,1,2),e(t,4,5),e(t,6,7)}(c),this.keyId=c}}break;default:var A=n.subarray(0,16);if(16!==A.length){var d=new Uint8Array(16);d.set(A,16-A.length),A=d}this.keyId=A}if(!this.keyId||16!==this.keyId.byteLength){var f=Ot[this.uri];if(!f){var h=Object.keys(Ot).length%Number.MAX_SAFE_INTEGER;f=new Uint8Array(16),new DataView(f.buffer,12,4).setUint32(0,h),Ot[this.uri]=f}this.keyId=f}return this},t}(),Mt=/\{\$([a-zA-Z0-9-_]+)\}/g;function Qt(t){return Mt.test(t)}function Nt(t,e,r){if(null!==t.variableList||t.hasVariableRefs)for(var n=r.length;n--;){var i=r[n],a=e[i];a&&(e[i]=Ht(t,a))}}function Ht(t,e){if(null!==t.variableList||t.hasVariableRefs){var r=t.variableList;return e.replace(Mt,(function(e){var n=e.substring(2,e.length-1),i=null==r?void 0:r[n];return void 0===i?(t.playlistParsingError||(t.playlistParsingError=new Error('Missing preceding EXT-X-DEFINE tag for Variable Reference: "'+n+'"')),e):i}))}return e}function $t(t,e,r){var n,i,a=t.variableList;if(a||(t.variableList=a={}),"QUERYPARAM"in e){n=e.QUERYPARAM;try{var s=new self.URL(r).searchParams;if(!s.has(n))throw new Error('"'+n+'" does not match any query parameter in URI: "'+r+'"');i=s.get(n)}catch(e){t.playlistParsingError||(t.playlistParsingError=new Error("EXT-X-DEFINE QUERYPARAM: "+e.message))}}else n=e.NAME,i=e.VALUE;n in a?t.playlistParsingError||(t.playlistParsingError=new Error('EXT-X-DEFINE duplicate Variable Name declarations: "'+n+'"')):a[n]=i||""}function jt(t,e,r){var n=e.IMPORT;if(r&&n in r){var i=t.variableList;i||(t.variableList=i={}),i[n]=r[n]}else t.playlistParsingError||(t.playlistParsingError=new Error('EXT-X-DEFINE IMPORT attribute not found in Multivariant Playlist: "'+n+'"'))}function Kt(){if("undefined"!=typeof self)return self.MediaSource||self.WebKitMediaSource}var Gt={audio:{a3ds:!0,"ac-3":!0,"ac-4":!0,alac:!0,alaw:!0,dra1:!0,"dts+":!0,"dts-":!0,dtsc:!0,dtse:!0,dtsh:!0,"ec-3":!0,enca:!0,g719:!0,g726:!0,m4ae:!0,mha1:!0,mha2:!0,mhm1:!0,mhm2:!0,mlpa:!0,mp4a:!0,"raw ":!0,Opus:!0,opus:!0,samr:!0,sawb:!0,sawp:!0,sevc:!0,sqcp:!0,ssmv:!0,twos:!0,ulaw:!0},video:{avc1:!0,avc2:!0,avc3:!0,avc4:!0,avcp:!0,av01:!0,drac:!0,dva1:!0,dvav:!0,dvh1:!0,dvhe:!0,encv:!0,hev1:!0,hvc1:!0,mjp2:!0,mp4v:!0,mvc1:!0,mvc2:!0,mvc3:!0,mvc4:!0,resv:!0,rv60:!0,s263:!0,svc1:!0,svc2:!0,"vc-1":!0,vp08:!0,vp09:!0},text:{stpp:!0,wvtt:!0}},Vt=Kt();function Wt(t,e){var r;return null!=(r=null==Vt?void 0:Vt.isTypeSupported((e||"video")+'/mp4;codecs="'+t+'"'))&&r}var zt=/#EXT-X-STREAM-INF:([^\r\n]*)(?:[\r\n](?:#[^\r\n]*)?)*([^\r\n]+)|#EXT-X-(SESSION-DATA|SESSION-KEY|DEFINE|CONTENT-STEERING|START):([^\r\n]*)[\r\n]+/g,Yt=/#EXT-X-MEDIA:(.*)/g,qt=/^#EXT(?:INF|-X-TARGETDURATION):/m,Xt=new RegExp([/#EXTINF:\s*(\d*(?:\.\d+)?)(?:,(.*)\s+)?/.source,/(?!#) *(\S[\S ]*)/.source,/#EXT-X-BYTERANGE:*(.+)/.source,/#EXT-X-PROGRAM-DATE-TIME:(.+)/.source,/#.*/.source].join("|"),"g"),Jt=new RegExp([/#(EXTM3U)/.source,/#EXT-X-(DATERANGE|DEFINE|KEY|MAP|PART|PART-INF|PLAYLIST-TYPE|PRELOAD-HINT|RENDITION-REPORT|SERVER-CONTROL|SKIP|START):(.+)/.source,/#EXT-X-(BITRATE|DISCONTINUITY-SEQUENCE|MEDIA-SEQUENCE|TARGETDURATION|VERSION): *(\d+)/.source,/#EXT-X-(DISCONTINUITY|ENDLIST|GAP)/.source,/(#)([^:]*):(.*)/.source,/(#)(.*)(?:.*)\r?\n?/.source].join("|")),Zt=function(){function t(){}return t.findGroup=function(t,e){for(var r=0;r<t.length;r++){var n=t[r];if(n.id===e)return n}},t.convertAVC1ToAVCOTI=function(t){var e=t.split(".");if(e.length>2){var r=e.shift()+".";return r+=parseInt(e.shift()).toString(16),r+("000"+parseInt(e.shift()).toString(16)).slice(-4)}return t},t.resolve=function(t,e){return y.buildAbsoluteURL(e,t,{alwaysNormalize:!0})},t.isMediaPlaylist=function(t){return qt.test(t)},t.parseMasterPlaylist=function(e,r){var n,i={contentSteering:null,levels:[],playlistParsingError:null,sessionData:null,sessionKeys:null,startTimeOffset:null,variableList:null,hasVariableRefs:Qt(e)},a=[];for(zt.lastIndex=0;null!=(n=zt.exec(e));)if(n[1]){var s,o=new L(n[1]);Nt(i,o,["CODECS","SUPPLEMENTAL-CODECS","ALLOWED-CPC","PATHWAY-ID","STABLE-VARIANT-ID","AUDIO","VIDEO","SUBTITLES","CLOSED-CAPTIONS","NAME"]);var u=Ht(i,n[2]),l={attrs:o,bitrate:o.decimalInteger("AVERAGE-BANDWIDTH")||o.decimalInteger("BANDWIDTH"),name:o.NAME,url:t.resolve(u,r)},c=o.decimalResolution("RESOLUTION");c&&(l.width=c.width,l.height=c.height),re((o.CODECS||"").split(/[ ,]+/).filter((function(t){return t})),l),l.videoCodec&&-1!==l.videoCodec.indexOf("avc1")&&(l.videoCodec=t.convertAVC1ToAVCOTI(l.videoCodec)),null!=(s=l.unknownCodecs)&&s.length||a.push(l),i.levels.push(l)}else if(n[3]){var A=n[3],d=n[4];switch(A){case"SESSION-DATA":var f=new L(d);Nt(i,f,["DATA-ID","LANGUAGE","VALUE","URI"]);var h=f["DATA-ID"];h&&(null===i.sessionData&&(i.sessionData={}),i.sessionData[h]=f);break;case"SESSION-KEY":var p=te(d,r,i);p.encrypted&&p.isSupported()?(null===i.sessionKeys&&(i.sessionKeys=[]),i.sessionKeys.push(p)):k.warn('[Keys] Ignoring invalid EXT-X-SESSION-KEY tag: "'+d+'"');break;case"DEFINE":var g=new L(d);Nt(i,g,["NAME","VALUE","QUERYPARAM"]),$t(i,g,r);break;case"CONTENT-STEERING":var v=new L(d);Nt(i,v,["SERVER-URI","PATHWAY-ID"]),i.contentSteering={uri:t.resolve(v["SERVER-URI"],r),pathwayId:v["PATHWAY-ID"]||"."};break;case"START":i.startTimeOffset=ee(d)}}var m=a.length>0&&a.length<i.levels.length;return i.levels=m?a:i.levels,0===i.levels.length&&(i.playlistParsingError=new Error("no levels found in manifest")),i},t.parseMasterPlaylistMedia=function(e,r,n){var i,a={},s=n.levels,o={AUDIO:s.map((function(t){return{id:t.attrs.AUDIO,audioCodec:t.audioCodec}})),SUBTITLES:s.map((function(t){return{id:t.attrs.SUBTITLES,textCodec:t.textCodec}})),"CLOSED-CAPTIONS":[]},u=0;for(Yt.lastIndex=0;null!==(i=Yt.exec(e));){var l=new L(i[1]),c=l.TYPE;if(c){var A=o[c],d=a[c]||[];a[c]=d,Nt(n,l,["URI","GROUP-ID","LANGUAGE","ASSOC-LANGUAGE","STABLE-RENDITION-ID","NAME","INSTREAM-ID","CHARACTERISTICS","CHANNELS"]);var f={attrs:l,bitrate:0,id:u++,groupId:l["GROUP-ID"]||"",instreamId:l["INSTREAM-ID"],name:l.NAME||l.LANGUAGE||"",type:c,default:l.bool("DEFAULT"),autoselect:l.bool("AUTOSELECT"),forced:l.bool("FORCED"),lang:l.LANGUAGE,url:l.URI?t.resolve(l.URI,r):""};if(null!=A&&A.length){var h=t.findGroup(A,f.groupId)||A[0];ne(f,h,"audioCodec"),ne(f,h,"textCodec")}d.push(f)}}return a},t.parseLevelPlaylist=function(t,e,r,n,i,a){var s,o,l,c=new $(e),A=c.fragments,d=null,f=0,h=0,p=0,g=0,v=null,m=new N(n,e),y=-1,b=!1;for(Xt.lastIndex=0,c.m3u8=t,c.hasVariableRefs=Qt(t);null!==(s=Xt.exec(t));){b&&(b=!1,(m=new N(n,e)).start=p,m.sn=f,m.cc=g,m.level=r,d&&(m.initSegment=d,m.rawProgramDateTime=d.rawProgramDateTime,d.rawProgramDateTime=null));var _=s[1];if(_){m.duration=parseFloat(_);var B=(" "+s[2]).slice(1);m.title=B||null,m.tagList.push(B?["INF",_,B]:["INF",_])}else if(s[3]){if(w(m.duration)){m.start=p,l&&se(m,l,c),m.sn=f,m.level=r,m.cc=g,m.urlId=i,A.push(m);var C=(" "+s[3]).slice(1);m.relurl=Ht(c,C),ie(m,v),v=m,p+=m.duration,f++,h=0,b=!0}}else if(s[4]){var E=(" "+s[4]).slice(1);v?m.setByteRange(E,v):m.setByteRange(E)}else if(s[5])m.rawProgramDateTime=(" "+s[5]).slice(1),m.tagList.push(["PROGRAM-DATE-TIME",m.rawProgramDateTime]),-1===y&&(y=A.length);else{if(!(s=s[0].match(Jt))){k.warn("No matches on slow regex match for level playlist!");continue}for(o=1;o<s.length&&void 0===s[o];o++);var x=(" "+s[o]).slice(1),T=(" "+s[o+1]).slice(1),S=s[o+2]?(" "+s[o+2]).slice(1):"";switch(x){case"PLAYLIST-TYPE":c.type=T.toUpperCase();break;case"MEDIA-SEQUENCE":f=c.startSN=parseInt(T);break;case"SKIP":var I=new L(T);Nt(c,I,["RECENTLY-REMOVED-DATERANGES"]);var F=I.decimalInteger("SKIPPED-SEGMENTS");if(w(F)){c.skippedSegments=F;for(var D=F;D--;)A.unshift(null);f+=F}var U=I.enumeratedString("RECENTLY-REMOVED-DATERANGES");U&&(c.recentlyRemovedDateranges=U.split("\t"));break;case"TARGETDURATION":c.targetduration=Math.max(parseInt(T),1);break;case"VERSION":c.version=parseInt(T);break;case"EXTM3U":break;case"ENDLIST":c.live=!1;break;case"#":(T||S)&&m.tagList.push(S?[T,S]:[T]);break;case"DISCONTINUITY":g++,m.tagList.push(["DIS"]);break;case"GAP":m.gap=!0,m.tagList.push([x]);break;case"BITRATE":m.tagList.push([x,T]);break;case"DATERANGE":var O=new L(T);Nt(c,O,["ID","CLASS","START-DATE","END-DATE","SCTE35-CMD","SCTE35-OUT","SCTE35-IN"]),Nt(c,O,O.clientAttrs);var P=new R(O,c.dateRanges[O.ID]);P.isValid||c.skippedSegments?c.dateRanges[P.id]=P:k.warn('Ignoring invalid DATERANGE tag: "'+T+'"'),m.tagList.push(["EXT-X-DATERANGE",T]);break;case"DEFINE":var M=new L(T);Nt(c,M,["NAME","VALUE","IMPORT","QUERYPARAM"]),"IMPORT"in M?jt(c,M,a):$t(c,M,e);break;case"DISCONTINUITY-SEQUENCE":g=parseInt(T);break;case"KEY":var Q=te(T,e,c);if(Q.isSupported()){if("NONE"===Q.method){l=void 0;break}l||(l={}),l[Q.keyFormat]&&(l=u({},l)),l[Q.keyFormat]=Q}else k.warn('[Keys] Ignoring invalid EXT-X-KEY tag: "'+T+'"');break;case"START":c.startTimeOffset=ee(T);break;case"MAP":var j=new L(T);if(Nt(c,j,["BYTERANGE","URI"]),m.duration){var K=new N(n,e);ae(K,j,r,l),d=K,m.initSegment=d,d.rawProgramDateTime&&!m.rawProgramDateTime&&(m.rawProgramDateTime=d.rawProgramDateTime)}else ae(m,j,r,l),d=m,b=!0;break;case"SERVER-CONTROL":var G=new L(T);c.canBlockReload=G.bool("CAN-BLOCK-RELOAD"),c.canSkipUntil=G.optionalFloat("CAN-SKIP-UNTIL",0),c.canSkipDateRanges=c.canSkipUntil>0&&G.bool("CAN-SKIP-DATERANGES"),c.partHoldBack=G.optionalFloat("PART-HOLD-BACK",0),c.holdBack=G.optionalFloat("HOLD-BACK",0);break;case"PART-INF":var V=new L(T);c.partTarget=V.decimalFloatingPoint("PART-TARGET");break;case"PART":var W=c.partList;W||(W=c.partList=[]);var z=h>0?W[W.length-1]:void 0,Y=h++,q=new L(T);Nt(c,q,["BYTERANGE","URI"]);var X=new H(q,m,e,Y,z);W.push(X),m.duration+=X.duration;break;case"PRELOAD-HINT":var J=new L(T);Nt(c,J,["URI"]),c.preloadHint=J;break;case"RENDITION-REPORT":var Z=new L(T);Nt(c,Z,["URI"]),c.renditionReports=c.renditionReports||[],c.renditionReports.push(Z);break;default:k.warn("line parsed but not handled: "+s)}}}v&&!v.relurl?(A.pop(),p-=v.duration,c.partList&&(c.fragmentHint=v)):c.partList&&(ie(m,v),m.cc=g,c.fragmentHint=m,l&&se(m,l,c));var tt=A.length,et=A[0],rt=A[tt-1];if((p+=c.skippedSegments*c.targetduration)>0&&tt&&rt){c.averagetargetduration=p/tt;var nt=rt.sn;c.endSN="initSegment"!==nt?nt:0,c.live||(rt.endList=!0),et&&(c.startCC=et.cc)}else c.endSN=0,c.startCC=0;return c.fragmentHint&&(p+=c.fragmentHint.duration),c.totalduration=p,c.endCC=g,y>0&&function(t,e){for(var r=t[e],n=e;n--;){var i=t[n];if(!i)return;i.programDateTime=r.programDateTime-1e3*i.duration,r=i}}(A,y),c},t}();function te(t,e,r){var n,i,a=new L(t);Nt(r,a,["KEYFORMAT","KEYFORMATVERSIONS","URI","IV","URI"]);var s=null!=(n=a.METHOD)?n:"",o=a.URI,u=a.hexadecimalInteger("IV"),l=a.KEYFORMATVERSIONS,c=null!=(i=a.KEYFORMAT)?i:"identity";o&&a.IV&&!u&&k.error("Invalid IV: "+a.IV);var A=o?Zt.resolve(o,e):"",d=(l||"1").split("/").map(Number).filter(Number.isFinite);return new Pt(s,A,c,d,u)}function ee(t){var e=new L(t).decimalFloatingPoint("TIME-OFFSET");return w(e)?e:null}function re(t,e){["video","audio","text"].forEach((function(r){var n=t.filter((function(t){return function(t,e){var r=Gt[e];return!!r&&!0===r[t.slice(0,4)]}(t,r)}));if(n.length){var i=n.filter((function(t){return 0===t.lastIndexOf("avc1",0)||0===t.lastIndexOf("mp4a",0)}));e[r+"Codec"]=i.length>0?i[0]:n[0],t=t.filter((function(t){return-1===n.indexOf(t)}))}})),e.unknownCodecs=t}function ne(t,e,r){var n=e[r];n&&(t[r]=n)}function ie(t,e){t.rawProgramDateTime?t.programDateTime=Date.parse(t.rawProgramDateTime):null!=e&&e.programDateTime&&(t.programDateTime=e.endProgramDateTime),w(t.programDateTime)||(t.programDateTime=null,t.rawProgramDateTime=null)}function ae(t,e,r,n){t.relurl=e.URI,e.BYTERANGE&&t.setByteRange(e.BYTERANGE),t.level=r,t.sn="initSegment",n&&(t.levelkeys=n),t.initSegment=null}function se(t,e,r){t.levelkeys=e;var n=r.encryptedFragments;n.length&&n[n.length-1].levelkeys===e||!Object.keys(e).some((function(t){return e[t].isCommonEncryption}))||n.push(t)}var oe="manifest",ue="level",le="audioTrack",ce="subtitleTrack",Ae="main",de="audio",fe="subtitle";function he(t){switch(t.type){case le:return de;case ce:return fe;default:return Ae}}function pe(t,e){var r=t.url;return void 0!==r&&0!==r.indexOf("data:")||(r=e.url),r}var ge=function(){function t(t){this.hls=void 0,this.loaders=Object.create(null),this.variableList=null,this.hls=t,this.registerListeners()}var r=t.prototype;return r.startLoad=function(t){},r.stopLoad=function(){this.destroyInternalLoaders()},r.registerListeners=function(){var t=this.hls;t.on(b.MANIFEST_LOADING,this.onManifestLoading,this),t.on(b.LEVEL_LOADING,this.onLevelLoading,this),t.on(b.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),t.on(b.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)},r.unregisterListeners=function(){var t=this.hls;t.off(b.MANIFEST_LOADING,this.onManifestLoading,this),t.off(b.LEVEL_LOADING,this.onLevelLoading,this),t.off(b.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),t.off(b.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)},r.createInternalLoader=function(t){var e=this.hls.config,r=e.pLoader,n=e.loader,i=new(r||n)(e);return this.loaders[t.type]=i,i},r.getInternalLoader=function(t){return this.loaders[t.type]},r.resetInternalLoader=function(t){this.loaders[t]&&delete this.loaders[t]},r.destroyInternalLoaders=function(){for(var t in this.loaders){var e=this.loaders[t];e&&e.destroy(),this.resetInternalLoader(t)}},r.destroy=function(){this.variableList=null,this.unregisterListeners(),this.destroyInternalLoaders()},r.onManifestLoading=function(t,e){var r=e.url;this.variableList=null,this.load({id:null,level:0,responseType:"text",type:oe,url:r,deliveryDirectives:null})},r.onLevelLoading=function(t,e){var r=e.id,n=e.level,i=e.url,a=e.deliveryDirectives;this.load({id:r,level:n,responseType:"text",type:ue,url:i,deliveryDirectives:a})},r.onAudioTrackLoading=function(t,e){var r=e.id,n=e.groupId,i=e.url,a=e.deliveryDirectives;this.load({id:r,groupId:n,level:null,responseType:"text",type:le,url:i,deliveryDirectives:a})},r.onSubtitleTrackLoading=function(t,e){var r=e.id,n=e.groupId,i=e.url,a=e.deliveryDirectives;this.load({id:r,groupId:n,level:null,responseType:"text",type:ce,url:i,deliveryDirectives:a})},r.load=function(t){var e,r,n,i=this,a=this.hls.config,s=this.getInternalLoader(t);if(s){var o=s.context;if(o&&o.url===t.url)return void k.trace("[playlist-loader]: playlist request ongoing");k.log("[playlist-loader]: aborting previous loader for type: "+t.type),s.abort()}if(r=t.type===oe?a.manifestLoadPolicy.default:u({},a.playlistLoadPolicy.default,{timeoutRetry:null,errorRetry:null}),s=this.createInternalLoader(t),null!=(e=t.deliveryDirectives)&&e.part&&(t.type===ue&&null!==t.level?n=this.hls.levels[t.level].details:t.type===le&&null!==t.id?n=this.hls.audioTracks[t.id].details:t.type===ce&&null!==t.id&&(n=this.hls.subtitleTracks[t.id].details),n)){var l=n.partTarget,c=n.targetduration;if(l&&c){var A=1e3*Math.max(3*l,.8*c);r=u({},r,{maxTimeToFirstByteMs:Math.min(A,r.maxTimeToFirstByteMs),maxLoadTimeMs:Math.min(A,r.maxTimeToFirstByteMs)})}}var d=r.errorRetry||r.timeoutRetry||{},f={loadPolicy:r,timeout:r.maxLoadTimeMs,maxRetry:d.maxNumRetry||0,retryDelay:d.retryDelayMs||0,maxRetryDelay:d.maxRetryDelayMs||0},h={onSuccess:function(t,e,r,n){var a=i.getInternalLoader(r);i.resetInternalLoader(r.type);var s=t.data;0===s.indexOf("#EXTM3U")?(e.parsing.start=performance.now(),Zt.isMediaPlaylist(s)?i.handleTrackOrLevelPlaylist(t,e,r,n||null,a):i.handleMasterPlaylist(t,e,r,n)):i.handleManifestParsingError(t,r,new Error("no EXTM3U delimiter"),n||null,e)},onError:function(t,e,r,n){i.handleNetworkError(e,r,!1,t,n)},onTimeout:function(t,e,r){i.handleNetworkError(e,r,!0,void 0,t)}};s.load(t,f,h)},r.handleMasterPlaylist=function(t,e,r,n){var i=this.hls,a=t.data,s=pe(t,r),o=Zt.parseMasterPlaylist(a,s);if(o.playlistParsingError)this.handleManifestParsingError(t,r,o.playlistParsingError,n,e);else{var u=o.contentSteering,l=o.levels,c=o.sessionData,A=o.sessionKeys,d=o.startTimeOffset,f=o.variableList;this.variableList=f;var h=Zt.parseMasterPlaylistMedia(a,s,o),p=h.AUDIO,g=void 0===p?[]:p,v=h.SUBTITLES,m=h["CLOSED-CAPTIONS"];g.length&&(g.some((function(t){return!t.url}))||!l[0].audioCodec||l[0].attrs.AUDIO||(k.log("[playlist-loader]: audio codec signaled in quality level, but no embedded audio track signaled, create one"),g.unshift({type:"main",name:"main",groupId:"main",default:!1,autoselect:!1,forced:!1,id:-1,attrs:new L({}),bitrate:0,url:""}))),i.trigger(b.MANIFEST_LOADED,{levels:l,audioTracks:g,subtitles:v,captions:m,contentSteering:u,url:s,stats:e,networkDetails:n,sessionData:c,sessionKeys:A,startTimeOffset:d,variableList:f})}},r.handleTrackOrLevelPlaylist=function(t,e,r,n,i){var a=this.hls,s=r.id,o=r.level,u=r.type,l=pe(t,r),c=w(s)?s:0,A=w(o)?o:c,d=he(r),f=Zt.parseLevelPlaylist(t.data,l,A,d,c,this.variableList);if(u===oe){var h={attrs:new L({}),bitrate:0,details:f,name:"",url:l};a.trigger(b.MANIFEST_LOADED,{levels:[h],audioTracks:[],url:l,stats:e,networkDetails:n,sessionData:null,sessionKeys:null,contentSteering:null,startTimeOffset:null,variableList:null})}e.parsing.end=performance.now(),r.levelDetails=f,this.handlePlaylistLoaded(f,t,e,r,n,i)},r.handleManifestParsingError=function(t,e,r,n,i){this.hls.trigger(b.ERROR,{type:_.NETWORK_ERROR,details:B.MANIFEST_PARSING_ERROR,fatal:e.type===oe,url:t.url,err:r,error:r,reason:r.message,response:t,context:e,networkDetails:n,stats:i})},r.handleNetworkError=function(t,r,n,i,a){void 0===n&&(n=!1);var s="A network "+(n?"timeout":"error"+(i?" (status "+i.code+")":""))+" occurred while loading "+t.type;t.type===ue?s+=": "+t.level+" id: "+t.id:t.type!==le&&t.type!==ce||(s+=" id: "+t.id+' group-id: "'+t.groupId+'"');var o=new Error(s);k.warn("[playlist-loader]: "+s);var u=B.UNKNOWN,l=!1,c=this.getInternalLoader(t);switch(t.type){case oe:u=n?B.MANIFEST_LOAD_TIMEOUT:B.MANIFEST_LOAD_ERROR,l=!0;break;case ue:u=n?B.LEVEL_LOAD_TIMEOUT:B.LEVEL_LOAD_ERROR,l=!1;break;case le:u=n?B.AUDIO_TRACK_LOAD_TIMEOUT:B.AUDIO_TRACK_LOAD_ERROR,l=!1;break;case ce:u=n?B.SUBTITLE_TRACK_LOAD_TIMEOUT:B.SUBTITLE_LOAD_ERROR,l=!1}c&&this.resetInternalLoader(t.type);var A={type:_.NETWORK_ERROR,details:u,fatal:l,url:t.url,loader:c,context:t,error:o,networkDetails:r,stats:a};if(i){var d=(null==r?void 0:r.url)||t.url;A.response=e({url:d,data:void 0},i)}this.hls.trigger(b.ERROR,A)},r.handlePlaylistLoaded=function(t,e,r,n,i,a){var s=this.hls,o=n.type,u=n.level,l=n.id,c=n.groupId,A=n.deliveryDirectives,d=pe(e,n),f=he(n),h="number"==typeof n.level&&f===Ae?u:void 0;if(t.fragments.length){t.targetduration||(t.playlistParsingError=new Error("Missing Target Duration"));var p=t.playlistParsingError;if(p)s.trigger(b.ERROR,{type:_.NETWORK_ERROR,details:B.LEVEL_PARSING_ERROR,fatal:!1,url:d,error:p,reason:p.message,response:e,context:n,level:h,parent:f,networkDetails:i,stats:r});else switch(t.live&&a&&(a.getCacheAge&&(t.ageHeader=a.getCacheAge()||0),a.getCacheAge&&!isNaN(t.ageHeader)||(t.ageHeader=0)),o){case oe:case ue:s.trigger(b.LEVEL_LOADED,{details:t,level:h||0,id:l||0,stats:r,networkDetails:i,deliveryDirectives:A});break;case le:s.trigger(b.AUDIO_TRACK_LOADED,{details:t,id:l||0,groupId:c||"",stats:r,networkDetails:i,deliveryDirectives:A});break;case ce:s.trigger(b.SUBTITLE_TRACK_LOADED,{details:t,id:l||0,groupId:c||"",stats:r,networkDetails:i,deliveryDirectives:A})}}else{var g=new Error("No Segments found in Playlist");s.trigger(b.ERROR,{type:_.NETWORK_ERROR,details:B.LEVEL_EMPTY_ERROR,fatal:!1,url:d,error:g,reason:g.message,response:e,context:n,level:h,parent:f,networkDetails:i,stats:r})}},t}();function ve(t,e){var r;try{r=new Event("addtrack")}catch(t){(r=document.createEvent("Event")).initEvent("addtrack",!1,!1)}r.track=t,e.dispatchEvent(r)}function me(t,e){var r=t.mode;if("disabled"===r&&(t.mode="hidden"),t.cues&&!t.cues.getCueById(e.id))try{if(t.addCue(e),!t.cues.getCueById(e.id))throw new Error("addCue is failed for: "+e)}catch(r){k.debug("[texttrack-utils]: "+r);var n=new self.TextTrackCue(e.startTime,e.endTime,e.text);n.id=e.id,t.addCue(n)}"disabled"===r&&(t.mode=r)}function ye(t){var e=t.mode;if("disabled"===e&&(t.mode="hidden"),t.cues)for(var r=t.cues.length;r--;)t.removeCue(t.cues[r]);"disabled"===e&&(t.mode=e)}function we(t,e,r,n){var i=t.mode;if("disabled"===i&&(t.mode="hidden"),t.cues&&t.cues.length>0)for(var a=function(t,e,r){var n=[],i=function(t,e){if(e<t[0].startTime)return 0;var r=t.length-1;if(e>t[r].endTime)return-1;for(var n=0,i=r;n<=i;){var a=Math.floor((i+n)/2);if(e<t[a].startTime)i=a-1;else{if(!(e>t[a].startTime&&n<r))return a;n=a+1}}return t[n].startTime-e<e-t[i].startTime?n:i}(t,e);if(i>-1)for(var a=i,s=t.length;a<s;a++){var o=t[a];if(o.startTime>=e&&o.endTime<=r)n.push(o);else if(o.startTime>r)return n}return n}(t.cues,e,r),s=0;s<a.length;s++)n&&!n(a[s])||t.removeCue(a[s]);"disabled"===i&&(t.mode=i)}var be="org.id3",_e="https://aomedia.org/emsg/ID3";function Be(){if("undefined"!=typeof self)return self.WebKitDataCue||self.VTTCue||self.TextTrackCue}var Ce=function(){var t=Be();try{new t(0,Number.POSITIVE_INFINITY,"")}catch(t){return Number.MAX_VALUE}return Number.POSITIVE_INFINITY}();function Ee(t,e){return t.getTime()/1e3-e}var xe=function(){function t(t){this.hls=void 0,this.id3Track=null,this.media=null,this.dateRangeCuesAppended={},this.hls=t,this._registerListeners()}var e=t.prototype;return e.destroy=function(){this._unregisterListeners(),this.id3Track=null,this.media=null,this.dateRangeCuesAppended={},this.hls=null},e._registerListeners=function(){var t=this.hls;t.on(b.MEDIA_ATTACHED,this.onMediaAttached,this),t.on(b.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(b.MANIFEST_LOADING,this.onManifestLoading,this),t.on(b.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),t.on(b.BUFFER_FLUSHING,this.onBufferFlushing,this),t.on(b.LEVEL_UPDATED,this.onLevelUpdated,this)},e._unregisterListeners=function(){var t=this.hls;t.off(b.MEDIA_ATTACHED,this.onMediaAttached,this),t.off(b.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(b.MANIFEST_LOADING,this.onManifestLoading,this),t.off(b.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),t.off(b.BUFFER_FLUSHING,this.onBufferFlushing,this),t.off(b.LEVEL_UPDATED,this.onLevelUpdated,this)},e.onMediaAttached=function(t,e){this.media=e.media},e.onMediaDetaching=function(){this.id3Track&&(ye(this.id3Track),this.id3Track=null,this.media=null,this.dateRangeCuesAppended={})},e.onManifestLoading=function(){this.dateRangeCuesAppended={}},e.createTrack=function(t){var e=this.getID3Track(t.textTracks);return e.mode="hidden",e},e.getID3Track=function(t){if(this.media){for(var e=0;e<t.length;e++){var r=t[e];if("metadata"===r.kind&&"id3"===r.label)return ve(r,this.media),r}return this.media.addTextTrack("metadata","id3")}},e.onFragParsingMetadata=function(t,e){if(this.media){var r=this.hls.config,n=r.enableEmsgMetadataCues,i=r.enableID3MetadataCues;if(n||i){var a=e.samples;this.id3Track||(this.id3Track=this.createTrack(this.media));for(var s=Be(),o=0;o<a.length;o++){var u=a[o].type;if((u!==_e||n)&&i){var l=ct(a[o].data);if(l){var c=a[o].pts,A=c+a[o].duration;A>Ce&&(A=Ce),A-c<=0&&(A=c+.25);for(var d=0;d<l.length;d++){var f=l[d];if(!ut(f)){this.updateId3CueEnds(c,u);var h=new s(c,A,"");h.value=f,u&&(h.type=u),this.id3Track.addCue(h)}}}}}}}},e.updateId3CueEnds=function(t,e){var r,n=null==(r=this.id3Track)?void 0:r.cues;if(n)for(var i=n.length;i--;){var a=n[i];a.type===e&&a.startTime<t&&a.endTime===Ce&&(a.endTime=t)}},e.onBufferFlushing=function(t,e){var r=e.startOffset,n=e.endOffset,i=e.type,a=this.id3Track,s=this.hls;if(s){var o=s.config,u=o.enableEmsgMetadataCues,l=o.enableID3MetadataCues;a&&(u||l)&&we(a,r,n,"audio"===i?function(t){return t.type===be&&l}:"video"===i?function(t){return t.type===_e&&u}:function(t){return t.type===be&&l||t.type===_e&&u})}},e.onLevelUpdated=function(t,e){var r=this,n=e.details;if(this.media&&n.hasProgramDateTime&&this.hls.config.enableDateRangeMetadataCues){var i=this.dateRangeCuesAppended,a=this.id3Track,s=n.dateRanges,o=Object.keys(s);if(a)for(var u=Object.keys(i).filter((function(t){return!o.includes(t)})),l=function(){var t=u[c];Object.keys(i[t].cues).forEach((function(e){a.removeCue(i[t].cues[e])})),delete i[t]},c=u.length;c--;)l();var A=n.fragments[n.fragments.length-1];if(0!==o.length&&w(null==A?void 0:A.programDateTime)){this.id3Track||(this.id3Track=this.createTrack(this.media));for(var d=A.programDateTime/1e3-A.start,f=Be(),h=function(){var t=o[p],e=s[t],n=i[t],a=(null==n?void 0:n.cues)||{},u=(null==n?void 0:n.durationKnown)||!1,l=Ee(e.startDate,d),c=Ce,A=e.endDate;if(A)c=Ee(A,d),u=!0;else if(e.endOnNext&&!u){var h=o.reduce((function(t,r){var n=s[r];return n.class===e.class&&n.id!==r&&n.startDate>e.startDate&&t.push(n),t}),[]).sort((function(t,e){return t.startDate.getTime()-e.startDate.getTime()}))[0];h&&(c=Ee(h.startDate,d),u=!0)}for(var g,v,m=Object.keys(e.attr),y=0;y<m.length;y++){var w=m[y];if("ID"!==(v=w)&&"CLASS"!==v&&"START-DATE"!==v&&"DURATION"!==v&&"END-DATE"!==v&&"END-ON-NEXT"!==v){var b=a[w];if(b)u&&!n.durationKnown&&(b.endTime=c);else{var _=e.attr[w];b=new f(l,c,""),D(w)&&(g=_,_=Uint8Array.from(g.replace(/^0x/,"").replace(/([\da-fA-F]{2}) ?/g,"0x$1 ").replace(/ +$/,"").split(" ")).buffer),b.value={key:w,data:_},b.type="com.apple.quicktime.HLS",b.id=t,r.id3Track.addCue(b),a[w]=b}}}i[t]={cues:a,dateRange:e,durationKnown:u}},p=0;p<o.length;p++)h()}}},t}(),Te=function(){function t(t){var e=this;this.hls=void 0,this.config=void 0,this.media=null,this.levelDetails=null,this.currentTime=0,this.stallCount=0,this._latency=null,this.timeupdateHandler=function(){return e.timeupdate()},this.hls=t,this.config=t.config,this.registerListeners()}var e=t.prototype;return e.destroy=function(){this.unregisterListeners(),this.onMediaDetaching(),this.levelDetails=null,this.hls=this.timeupdateHandler=null},e.registerListeners=function(){this.hls.on(b.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.on(b.MEDIA_DETACHING,this.onMediaDetaching,this),this.hls.on(b.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.on(b.LEVEL_UPDATED,this.onLevelUpdated,this),this.hls.on(b.ERROR,this.onError,this)},e.unregisterListeners=function(){this.hls.off(b.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.off(b.MEDIA_DETACHING,this.onMediaDetaching,this),this.hls.off(b.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.off(b.LEVEL_UPDATED,this.onLevelUpdated,this),this.hls.off(b.ERROR,this.onError,this)},e.onMediaAttached=function(t,e){this.media=e.media,this.media.addEventListener("timeupdate",this.timeupdateHandler)},e.onMediaDetaching=function(){this.media&&(this.media.removeEventListener("timeupdate",this.timeupdateHandler),this.media=null)},e.onManifestLoading=function(){this.levelDetails=null,this._latency=null,this.stallCount=0},e.onLevelUpdated=function(t,e){var r=e.details;this.levelDetails=r,r.advanced&&this.timeupdate(),!r.live&&this.media&&this.media.removeEventListener("timeupdate",this.timeupdateHandler)},e.onError=function(t,e){var r;e.details===B.BUFFER_STALLED_ERROR&&(this.stallCount++,null!=(r=this.levelDetails)&&r.live&&k.warn("[playback-rate-controller]: Stall detected, adjusting target latency"))},e.timeupdate=function(){var t=this.media,e=this.levelDetails;if(t&&e){this.currentTime=t.currentTime;var r=this.computeLatency();if(null!==r){this._latency=r;var n=this.config,i=n.lowLatencyMode,a=n.maxLiveSyncPlaybackRate;if(i&&1!==a){var s=this.targetLatency;if(null!==s){var o=r-s,u=o<Math.min(this.maxLatency,s+e.targetduration);if(e.live&&u&&o>.05&&this.forwardBufferLength>1){var l=Math.min(2,Math.max(1,a)),c=Math.round(2/(1+Math.exp(-.75*o-this.edgeStalled))*20)/20;t.playbackRate=Math.min(l,Math.max(1,c))}else 1!==t.playbackRate&&0!==t.playbackRate&&(t.playbackRate=1)}}}}},e.estimateLiveEdge=function(){var t=this.levelDetails;return null===t?null:t.edge+t.age},e.computeLatency=function(){var t=this.estimateLiveEdge();return null===t?null:t-this.currentTime},n(t,[{key:"latency",get:function(){return this._latency||0}},{key:"maxLatency",get:function(){var t=this.config,e=this.levelDetails;return void 0!==t.liveMaxLatencyDuration?t.liveMaxLatencyDuration:e?t.liveMaxLatencyDurationCount*e.targetduration:0}},{key:"targetLatency",get:function(){var t=this.levelDetails;if(null===t)return null;var e=t.holdBack,r=t.partHoldBack,n=t.targetduration,i=this.config,a=i.liveSyncDuration,s=i.liveSyncDurationCount,o=i.lowLatencyMode,u=this.hls.userConfig,l=o&&r||e;(u.liveSyncDuration||u.liveSyncDurationCount||0===l)&&(l=void 0!==a?a:s*n);var c=n;return l+Math.min(1*this.stallCount,c)}},{key:"liveSyncPosition",get:function(){var t=this.estimateLiveEdge(),e=this.targetLatency,r=this.levelDetails;if(null===t||null===e||null===r)return null;var n=r.edge,i=t-e-this.edgeStalled,a=n-r.totalduration,s=n-(this.config.lowLatencyMode&&r.partTarget||r.targetduration);return Math.min(Math.max(a,i),s)}},{key:"drift",get:function(){var t=this.levelDetails;return null===t?1:t.drift}},{key:"edgeStalled",get:function(){var t=this.levelDetails;if(null===t)return 0;var e=3*(this.config.lowLatencyMode&&t.partTarget||t.targetduration);return Math.max(t.age-e,0)}},{key:"forwardBufferLength",get:function(){var t=this.media,e=this.levelDetails;if(!t||!e)return 0;var r=t.buffered.length;return(r?t.buffered.end(r-1):e.edge)-this.currentTime}}]),t}(),Se=["NONE","TYPE-0","TYPE-1",null],ke=function(){function t(t,e,r){this.msn=void 0,this.part=void 0,this.skip=void 0,this.msn=t,this.part=e,this.skip=r}return t.prototype.addDirectives=function(t){var e=new self.URL(t);return void 0!==this.msn&&e.searchParams.set("_HLS_msn",this.msn.toString()),void 0!==this.part&&e.searchParams.set("_HLS_part",this.part.toString()),this.skip&&e.searchParams.set("_HLS_skip",this.skip),e.href},t}(),Ie=function(){function t(t){this._attrs=void 0,this.audioCodec=void 0,this.bitrate=void 0,this.codecSet=void 0,this.height=void 0,this.id=void 0,this.name=void 0,this.videoCodec=void 0,this.width=void 0,this.unknownCodecs=void 0,this.audioGroupIds=void 0,this.details=void 0,this.fragmentError=0,this.loadError=0,this.loaded=void 0,this.realBitrate=0,this.textGroupIds=void 0,this.url=void 0,this._urlId=0,this.url=[t.url],this._attrs=[t.attrs],this.bitrate=t.bitrate,t.details&&(this.details=t.details),this.id=t.id||0,this.name=t.name,this.width=t.width||0,this.height=t.height||0,this.audioCodec=t.audioCodec,this.videoCodec=t.videoCodec,this.unknownCodecs=t.unknownCodecs,this.codecSet=[t.videoCodec,t.audioCodec].filter((function(t){return t})).join(",").replace(/\.[^.,]+/g,"")}return t.prototype.addFallback=function(t){this.url.push(t.url),this._attrs.push(t.attrs)},n(t,[{key:"maxBitrate",get:function(){return Math.max(this.realBitrate,this.bitrate)}},{key:"attrs",get:function(){return this._attrs[this._urlId]}},{key:"pathwayId",get:function(){return this.attrs["PATHWAY-ID"]||"."}},{key:"uri",get:function(){return this.url[this._urlId]||""}},{key:"urlId",get:function(){return this._urlId},set:function(t){var e=t%this.url.length;this._urlId!==e&&(this.fragmentError=0,this.loadError=0,this.details=void 0,this._urlId=e)}},{key:"audioGroupId",get:function(){var t;return null==(t=this.audioGroupIds)?void 0:t[this.urlId]}},{key:"textGroupId",get:function(){var t;return null==(t=this.textGroupIds)?void 0:t[this.urlId]}}]),t}();function Fe(t,e){var r=e.startPTS;if(w(r)){var n,i=0;e.sn>t.sn?(i=r-t.start,n=t):(i=t.start-r,n=e),n.duration!==i&&(n.duration=i)}else e.sn>t.sn?t.cc===e.cc&&t.minEndPTS?e.start=t.start+(t.minEndPTS-t.start):e.start=t.start+t.duration:e.start=Math.max(t.start-e.duration,0)}function Le(t,e,r,n,i,a){n-r<=0&&(k.warn("Fragment should have a positive duration",e),n=r+e.duration,a=i+e.duration);var s=r,o=n,u=e.startPTS,l=e.endPTS;if(w(u)){var c=Math.abs(u-r);w(e.deltaPTS)?e.deltaPTS=Math.max(c,e.deltaPTS):e.deltaPTS=c,s=Math.max(r,u),r=Math.min(r,u),i=Math.min(i,e.startDTS),o=Math.min(n,l),n=Math.max(n,l),a=Math.max(a,e.endDTS)}var A=r-e.start;0!==e.start&&(e.start=r),e.duration=n-e.start,e.startPTS=r,e.maxStartPTS=s,e.startDTS=i,e.endPTS=n,e.minEndPTS=o,e.endDTS=a;var d,f=e.sn;if(!t||f<t.startSN||f>t.endSN)return 0;var h=f-t.startSN,p=t.fragments;for(p[h]=e,d=h;d>0;d--)Fe(p[d],p[d-1]);for(d=h;d<p.length-1;d++)Fe(p[d],p[d+1]);return t.fragmentHint&&Fe(p[p.length-1],t.fragmentHint),t.PTSKnown=t.alignedSliding=!0,A}function De(t,e){for(var r=null,n=t.fragments,i=n.length-1;i>=0;i--){var a=n[i].initSegment;if(a){r=a;break}}t.fragmentHint&&delete t.fragmentHint.endPTS;var s,o,l,c,A,d=0;if(function(t,e,r){for(var n=e.skippedSegments,i=Math.max(t.startSN,e.startSN)-e.startSN,a=(t.fragmentHint?1:0)+(n?e.endSN:Math.min(t.endSN,e.endSN))-e.startSN,s=e.startSN-t.startSN,o=e.fragmentHint?e.fragments.concat(e.fragmentHint):e.fragments,u=t.fragmentHint?t.fragments.concat(t.fragmentHint):t.fragments,l=i;l<=a;l++){var c=u[s+l],A=o[l];n&&!A&&l<n&&(A=e.fragments[l]=c),c&&A&&r(c,A)}}(t,e,(function(t,n){t.relurl&&(d=t.cc-n.cc),w(t.startPTS)&&w(t.endPTS)&&(n.start=n.startPTS=t.startPTS,n.startDTS=t.startDTS,n.maxStartPTS=t.maxStartPTS,n.endPTS=t.endPTS,n.endDTS=t.endDTS,n.minEndPTS=t.minEndPTS,n.duration=t.endPTS-t.startPTS,n.duration&&(s=n),e.PTSKnown=e.alignedSliding=!0),n.elementaryStreams=t.elementaryStreams,n.loader=t.loader,n.stats=t.stats,n.urlId=t.urlId,t.initSegment&&(n.initSegment=t.initSegment,r=t.initSegment)})),r&&(e.fragmentHint?e.fragments.concat(e.fragmentHint):e.fragments).forEach((function(t){var e;t.initSegment&&t.initSegment.relurl!==(null==(e=r)?void 0:e.relurl)||(t.initSegment=r)})),e.skippedSegments)if(e.deltaUpdateFailed=e.fragments.some((function(t){return!t})),e.deltaUpdateFailed){k.warn("[level-helper] Previous playlist missing segments skipped in delta playlist");for(var f=e.skippedSegments;f--;)e.fragments.shift();e.startSN=e.fragments[0].sn,e.startCC=e.fragments[0].cc}else e.canSkipDateRanges&&(e.dateRanges=(o=t.dateRanges,l=e.dateRanges,c=e.recentlyRemovedDateranges,A=u({},o),c&&c.forEach((function(t){delete A[t]})),Object.keys(l).forEach((function(t){var e=new R(l[t].attr,A[t]);e.isValid?A[t]=e:k.warn('Ignoring invalid Playlist Delta Update DATERANGE tag: "'+JSON.stringify(l[t].attr)+'"')})),A));var h=e.fragments;if(d){k.warn("discontinuity sliding from playlist, take drift into account");for(var p=0;p<h.length;p++)h[p].cc+=d}e.skippedSegments&&(e.startCC=e.fragments[0].cc),function(t,e,r){if(t&&e)for(var n=0,i=0,a=t.length;i<=a;i++){var s=t[i],o=e[i+n];s&&o&&s.index===o.index&&s.fragment.sn===o.fragment.sn?r(s,o):n--}}(t.partList,e.partList,(function(t,e){e.elementaryStreams=t.elementaryStreams,e.stats=t.stats})),s?Le(e,s,s.startPTS,s.endPTS,s.startDTS,s.endDTS):Re(t,e),h.length&&(e.totalduration=e.edge-h[0].start),e.driftStartTime=t.driftStartTime,e.driftStart=t.driftStart;var g=e.advancedDateTime;if(e.advanced&&g){var v=e.edge;e.driftStart||(e.driftStartTime=g,e.driftStart=v),e.driftEndTime=g,e.driftEnd=v}else e.driftEndTime=t.driftEndTime,e.driftEnd=t.driftEnd,e.advancedDateTime=t.advancedDateTime}function Re(t,e){var r=e.startSN+e.skippedSegments-t.startSN,n=t.fragments;r<0||r>=n.length||Ue(e,n[r].start)}function Ue(t,e){if(e){for(var r=t.fragments,n=t.skippedSegments;n<r.length;n++)r[n].start+=e;t.fragmentHint&&(t.fragmentHint.start+=e)}}function Oe(t,e,r){var n;return null!=t&&t.details?Pe(null==(n=t.details)?void 0:n.partList,e,r):null}function Pe(t,e,r){if(t)for(var n=t.length;n--;){var i=t[n];if(i.index===r&&i.fragment.sn===e)return i}return null}function Me(t){switch(t.details){case B.FRAG_LOAD_TIMEOUT:case B.KEY_LOAD_TIMEOUT:case B.LEVEL_LOAD_TIMEOUT:case B.MANIFEST_LOAD_TIMEOUT:return!0}return!1}function Qe(t,e){var r=Me(e);return t.default[(r?"timeout":"error")+"Retry"]}function Ne(t,e){var r="linear"===t.backoff?1:Math.pow(2,e);return Math.min(r*t.retryDelayMs,t.maxRetryDelayMs)}function He(t){return e(e({},t),{errorRetry:null,timeoutRetry:null})}function $e(t,e,r,n){return!!t&&e<t.maxNumRetry&&(function(t){return 0===t&&!1===navigator.onLine||!!t&&(t<400||t>499)}(n)||!!r)}var je=function(t,e){for(var r=0,n=t.length-1,i=null,a=null;r<=n;){var s=e(a=t[i=(r+n)/2|0]);if(s>0)r=i+1;else{if(!(s<0))return a;n=i-1}}return null};function Ke(t,e,r,n){void 0===r&&(r=0),void 0===n&&(n=0);var i=null;if(t?i=e[t.sn-e[0].sn+1]||null:0===r&&0===e[0].start&&(i=e[0]),i&&0===Ge(r,n,i))return i;var a=je(e,Ge.bind(null,r,n));return!a||a===t&&i?i:a}function Ge(t,e,r){if(void 0===t&&(t=0),void 0===e&&(e=0),r.start<=t&&r.start+r.duration>t)return 0;var n=Math.min(e,r.duration+(r.deltaPTS?r.deltaPTS:0));return r.start+r.duration-n<=t?1:r.start-n>t&&r.start?-1:0}function Ve(t,e,r){var n=1e3*Math.min(e,r.duration+(r.deltaPTS?r.deltaPTS:0));return(r.endProgramDateTime||0)-n>t}var We,ze=function(){function t(t){this.hls=void 0,this.playlistError=0,this.penalizedRenditions={},this.log=void 0,this.warn=void 0,this.error=void 0,this.hls=t,this.log=k.log.bind(k,"[info]:"),this.warn=k.warn.bind(k,"[warning]:"),this.error=k.error.bind(k,"[error]:"),this.registerListeners()}var e=t.prototype;return e.registerListeners=function(){var t=this.hls;t.on(b.ERROR,this.onError,this),t.on(b.MANIFEST_LOADING,this.onManifestLoading,this),t.on(b.LEVEL_UPDATED,this.onLevelUpdated,this)},e.unregisterListeners=function(){var t=this.hls;t&&(t.off(b.ERROR,this.onError,this),t.off(b.ERROR,this.onErrorOut,this),t.off(b.MANIFEST_LOADING,this.onManifestLoading,this),t.off(b.LEVEL_UPDATED,this.onLevelUpdated,this))},e.destroy=function(){this.unregisterListeners(),this.hls=null,this.penalizedRenditions={}},e.startLoad=function(t){this.playlistError=0},e.stopLoad=function(){},e.getVariantLevelIndex=function(t){return(null==t?void 0:t.type)===Ae?t.level:this.hls.loadLevel},e.onManifestLoading=function(){this.playlistError=0,this.penalizedRenditions={}},e.onLevelUpdated=function(){this.playlistError=0},e.onError=function(t,e){var r;if(!e.fatal){var n=this.hls,i=e.context;switch(e.details){case B.FRAG_LOAD_ERROR:case B.FRAG_LOAD_TIMEOUT:case B.KEY_LOAD_ERROR:case B.KEY_LOAD_TIMEOUT:return void(e.errorAction=this.getFragRetryOrSwitchAction(e));case B.FRAG_GAP:case B.FRAG_PARSING_ERROR:case B.FRAG_DECRYPT_ERROR:return e.errorAction=this.getFragRetryOrSwitchAction(e),void(e.errorAction.action=2);case B.LEVEL_EMPTY_ERROR:case B.LEVEL_PARSING_ERROR:var a,s,o=e.parent===Ae?e.level:n.loadLevel;return void(e.details===B.LEVEL_EMPTY_ERROR&&null!=(a=e.context)&&null!=(s=a.levelDetails)&&s.live?e.errorAction=this.getPlaylistRetryOrSwitchAction(e,o):(e.levelRetry=!1,e.errorAction=this.getLevelSwitchAction(e,o)));case B.LEVEL_LOAD_ERROR:case B.LEVEL_LOAD_TIMEOUT:return void("number"==typeof(null==i?void 0:i.level)&&(e.errorAction=this.getPlaylistRetryOrSwitchAction(e,i.level)));case B.AUDIO_TRACK_LOAD_ERROR:case B.AUDIO_TRACK_LOAD_TIMEOUT:case B.SUBTITLE_LOAD_ERROR:case B.SUBTITLE_TRACK_LOAD_TIMEOUT:if(i){var u=n.levels[n.loadLevel];if(u&&(i.type===le&&i.groupId===u.audioGroupId||i.type===ce&&i.groupId===u.textGroupId))return e.errorAction=this.getPlaylistRetryOrSwitchAction(e,n.loadLevel),e.errorAction.action=2,void(e.errorAction.flags=1)}return;case B.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED:var l=n.levels[n.loadLevel],c=null==l?void 0:l.attrs["HDCP-LEVEL"];return void(c&&(e.errorAction={action:2,flags:2,hdcpLevel:c}));case B.BUFFER_ADD_CODEC_ERROR:case B.REMUX_ALLOC_ERROR:return void(e.errorAction=this.getLevelSwitchAction(e,null!=(r=e.level)?r:n.loadLevel));case B.INTERNAL_EXCEPTION:case B.BUFFER_APPENDING_ERROR:case B.BUFFER_APPEND_ERROR:case B.BUFFER_FULL_ERROR:case B.LEVEL_SWITCH_ERROR:case B.BUFFER_STALLED_ERROR:case B.BUFFER_SEEK_OVER_HOLE:case B.BUFFER_NUDGE_ON_STALL:return void(e.errorAction={action:0,flags:0})}if(e.type===_.KEY_SYSTEM_ERROR){var A=this.getVariantLevelIndex(e.frag);return e.levelRetry=!1,void(e.errorAction=this.getLevelSwitchAction(e,A))}}},e.getPlaylistRetryOrSwitchAction=function(t,e){var r,n=Qe(this.hls.config.playlistLoadPolicy,t),i=this.playlistError++,a=null==(r=t.response)?void 0:r.code;if($e(n,i,Me(t),a))return{action:5,flags:0,retryConfig:n,retryCount:i};var s=this.getLevelSwitchAction(t,e);return n&&(s.retryConfig=n,s.retryCount=i),s},e.getFragRetryOrSwitchAction=function(t){var e=this.hls,r=this.getVariantLevelIndex(t.frag),n=e.levels[r],i=e.config,a=i.fragLoadPolicy,s=i.keyLoadPolicy,o=Qe(t.details.startsWith("key")?s:a,t),u=e.levels.reduce((function(t,e){return t+e.fragmentError}),0);if(n){var l;t.details!==B.FRAG_GAP&&n.fragmentError++;var c=null==(l=t.response)?void 0:l.code;if($e(o,u,Me(t),c))return{action:5,flags:0,retryConfig:o,retryCount:u}}var A=this.getLevelSwitchAction(t,r);return o&&(A.retryConfig=o,A.retryCount=u),A},e.getLevelSwitchAction=function(t,e){var r=this.hls;null==e&&(e=r.loadLevel);var n=this.hls.levels[e];if(n&&(n.loadError++,r.autoLevelEnabled)){for(var i,a,s=-1,o=r.levels,u=r.loadLevel,l=r.minAutoLevel,c=r.maxAutoLevel,A=null==(i=t.frag)?void 0:i.type,d=null!=(a=t.context)?a:{},f=d.type,h=d.groupId,p=o.length;p--;){var g=(p+u)%o.length;if(g!==u&&g>=l&&g<=c&&0===o[g].loadError){var v=o[g];if(t.details===B.FRAG_GAP&&t.frag){var m=o[g].details;if(m){var y=Ke(t.frag,m.fragments,t.frag.start);if(null!=y&&y.gap)continue}}else{if(f===le&&h===v.audioGroupId||f===ce&&h===v.textGroupId)continue;if(A===de&&n.audioGroupId===v.audioGroupId||A===fe&&n.textGroupId===v.textGroupId)continue}s=g;break}}if(s>-1&&r.loadLevel!==s)return t.levelRetry=!0,this.playlistError=0,{action:2,flags:0,nextAutoLevel:s}}return{action:2,flags:1}},e.onErrorOut=function(t,e){var r;switch(null==(r=e.errorAction)?void 0:r.action){case 0:break;case 2:this.sendAlternateToPenaltyBox(e),e.errorAction.resolved||e.details===B.FRAG_GAP||(e.fatal=!0)}e.fatal&&this.hls.stopLoad()},e.sendAlternateToPenaltyBox=function(t){var e=this.hls,r=t.errorAction;if(r){var n=r.flags,i=r.hdcpLevel,a=r.nextAutoLevel;switch(n){case 0:this.switchLevel(t,a);break;case 1:r.resolved||(r.resolved=this.redundantFailover(t));break;case 2:i&&(e.maxHdcpLevel=Se[Se.indexOf(i)-1],r.resolved=!0),this.warn('Restricting playback to HDCP-LEVEL of "'+e.maxHdcpLevel+'" or lower')}r.resolved||this.switchLevel(t,a)}},e.switchLevel=function(t,e){void 0!==e&&t.errorAction&&(this.warn("switching to level "+e+" after "+t.details),this.hls.nextAutoLevel=e,t.errorAction.resolved=!0,this.hls.nextLoadLevel=this.hls.nextAutoLevel)},e.redundantFailover=function(t){var e=this,r=this.hls,n=this.penalizedRenditions,i=t.parent===Ae?t.level:r.loadLevel,s=r.levels[i],o=s.url.length,u=t.frag?t.frag.urlId:s.urlId;s.urlId!==u||t.frag&&!s.details||this.penalizeRendition(s,t);for(var l=function(){var a=(u+c)%o,l=n[a];if(!l||function(t,e,r){if(performance.now()-t.lastErrorPerfMs>3e5)return!0;var n=t.details;if(e.details===B.FRAG_GAP&&n&&e.frag){var i=e.frag.start,a=Ke(null,n.fragments,i);if(a&&!a.gap)return!0}if(r&&t.errors.length<r.errors.length){var s=t.errors[t.errors.length-1];if(n&&s.frag&&e.frag&&Math.abs(s.frag.start-e.frag.start)>3*n.targetduration)return!0}return!1}(l,t,n[u]))return e.warn("Switching to Redundant Stream "+(a+1)+"/"+o+': "'+s.url[a]+'" after '+t.details),e.playlistError=0,r.levels.forEach((function(t){t.urlId=a})),r.nextLoadLevel=i,{v:!0}},c=1;c<o;c++){var A=l();if("object"==a(A))return A.v}return!1},e.penalizeRendition=function(t,e){var r=this.penalizedRenditions,n=r[t.urlId]||{lastErrorPerfMs:0,errors:[],details:void 0};n.lastErrorPerfMs=performance.now(),n.errors.push(e),n.details=t.details,r[t.urlId]=n},t}(),Ye=function(){function t(t,e){this.hls=void 0,this.timer=-1,this.requestScheduled=-1,this.canLoad=!1,this.log=void 0,this.warn=void 0,this.log=k.log.bind(k,e+":"),this.warn=k.warn.bind(k,e+":"),this.hls=t}var e=t.prototype;return e.destroy=function(){this.clearTimer(),this.hls=this.log=this.warn=null},e.clearTimer=function(){clearTimeout(this.timer),this.timer=-1},e.startLoad=function(){this.canLoad=!0,this.requestScheduled=-1,this.loadPlaylist()},e.stopLoad=function(){this.canLoad=!1,this.clearTimer()},e.switchParams=function(t,e){var r=null==e?void 0:e.renditionReports;if(r){for(var n=-1,i=0;i<r.length;i++){var a=r[i],s=void 0;try{s=new self.URL(a.URI,e.url).href}catch(t){k.warn("Could not construct new URL for Rendition Report: "+t),s=a.URI||""}if(s===t){n=i;break}s===t.substring(0,s.length)&&(n=i)}if(-1!==n){var o=r[n],u=parseInt(o["LAST-MSN"])||(null==e?void 0:e.lastPartSn),l=parseInt(o["LAST-PART"])||(null==e?void 0:e.lastPartIndex);if(this.hls.config.lowLatencyMode){var c=Math.min(e.age-e.partTarget,e.targetduration);l>=0&&c>e.partTarget&&(l+=1)}return new ke(u,l>=0?l:void 0,"")}}},e.loadPlaylist=function(t){-1===this.requestScheduled&&(this.requestScheduled=self.performance.now())},e.shouldLoadPlaylist=function(t){return this.canLoad&&!!t&&!!t.url&&(!t.details||t.details.live)},e.shouldReloadPlaylist=function(t){return-1===this.timer&&-1===this.requestScheduled&&this.shouldLoadPlaylist(t)},e.playlistLoaded=function(t,e,r){var n=this,i=e.details,a=e.stats,s=self.performance.now(),o=a.loading.first?Math.max(0,s-a.loading.first):0;if(i.advancedDateTime=Date.now()-o,i.live||null!=r&&r.live){if(i.reloaded(r),r&&this.log("live playlist "+t+" "+(i.advanced?"REFRESHED "+i.lastPartSn+"-"+i.lastPartIndex:"MISSED")),r&&i.fragments.length>0&&De(r,i),!this.canLoad||!i.live)return;var u,l=void 0,c=void 0;if(i.canBlockReload&&i.endSN&&i.advanced){var A=this.hls.config.lowLatencyMode,d=i.lastPartSn,f=i.endSN,h=i.lastPartIndex,p=d===f;-1!==h?(l=p?f+1:d,c=p?A?0:h:h+1):l=f+1;var g=i.age,v=g+i.ageHeader,m=Math.min(v-i.partTarget,1.5*i.targetduration);if(m>0){if(r&&m>r.tuneInGoal)this.warn("CDN Tune-in goal increased from: "+r.tuneInGoal+" to: "+m+" with playlist age: "+i.age),m=0;else{var y=Math.floor(m/i.targetduration);l+=y,void 0!==c&&(c+=Math.round(m%i.targetduration/i.partTarget)),this.log("CDN Tune-in age: "+i.ageHeader+"s last advanced "+g.toFixed(2)+"s goal: "+m+" skip sn "+y+" to part "+c)}i.tuneInGoal=m}if(u=this.getDeliveryDirectives(i,e.deliveryDirectives,l,c),A||!p)return void this.loadPlaylist(u)}else i.canBlockReload&&(u=this.getDeliveryDirectives(i,e.deliveryDirectives,l,c));var w=this.hls.mainForwardBufferInfo,b=w?w.end-w.len:0,_=function(t,e){void 0===e&&(e=1/0);var r=1e3*t.targetduration;if(t.updated){var n=t.fragments;if(n.length&&4*r>e){var i=1e3*n[n.length-1].duration;i<r&&(r=i)}}else r/=2;return Math.round(r)}(i,1e3*(i.edge-b));i.updated&&s>this.requestScheduled+_&&(this.requestScheduled=a.loading.start),void 0!==l&&i.canBlockReload?this.requestScheduled=a.loading.first+_-(1e3*i.partTarget||1e3):-1===this.requestScheduled||this.requestScheduled+_<s?this.requestScheduled=s:this.requestScheduled-s<=0&&(this.requestScheduled+=_);var B=this.requestScheduled-s;B=Math.max(0,B),this.log("reload live playlist "+t+" in "+Math.round(B)+" ms"),this.timer=self.setTimeout((function(){return n.loadPlaylist(u)}),B)}else this.clearTimer()},e.getDeliveryDirectives=function(t,e,r,n){var i=function(t,e){var r=t.canSkipUntil,n=t.canSkipDateRanges,i=t.endSN;return r&&(void 0!==e?e-i:0)<r?n?"v2":"YES":""}(t,r);return null!=e&&e.skip&&t.deltaUpdateFailed&&(r=e.msn,n=e.part,i=""),new ke(r,n,i)},e.checkRetry=function(t){var e=this,r=t.details,n=Me(t),i=t.errorAction,a=i||{},s=a.action,o=a.retryCount,u=void 0===o?0:o,l=a.retryConfig,c=!!i&&!!l&&(5===s||!i.resolved&&2===s);if(c){var A;if(this.requestScheduled=-1,u>=l.maxNumRetry)return!1;if(n&&null!=(A=t.context)&&A.deliveryDirectives)this.warn("Retrying playlist loading "+(u+1)+"/"+l.maxNumRetry+' after "'+r+'" without delivery-directives'),this.loadPlaylist();else{var d=Ne(l,u);this.timer=self.setTimeout((function(){return e.loadPlaylist()}),d),this.warn("Retrying playlist loading "+(u+1)+"/"+l.maxNumRetry+' after "'+r+'" in '+d+"ms")}t.levelRetry=!0,i.resolved=!0}return c},t}(),qe=function(t){function e(e,r){var n;return(n=t.call(this,e,"[level-controller]")||this)._levels=[],n._firstLevel=-1,n._startLevel=void 0,n.currentLevel=null,n.currentLevelIndex=-1,n.manualLevelIndex=-1,n.steering=void 0,n.onParsedComplete=void 0,n.steering=r,n._registerListeners(),n}l(e,t);var r=e.prototype;return r._registerListeners=function(){var t=this.hls;t.on(b.MANIFEST_LOADING,this.onManifestLoading,this),t.on(b.MANIFEST_LOADED,this.onManifestLoaded,this),t.on(b.LEVEL_LOADED,this.onLevelLoaded,this),t.on(b.LEVELS_UPDATED,this.onLevelsUpdated,this),t.on(b.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),t.on(b.FRAG_LOADED,this.onFragLoaded,this),t.on(b.ERROR,this.onError,this)},r._unregisterListeners=function(){var t=this.hls;t.off(b.MANIFEST_LOADING,this.onManifestLoading,this),t.off(b.MANIFEST_LOADED,this.onManifestLoaded,this),t.off(b.LEVEL_LOADED,this.onLevelLoaded,this),t.off(b.LEVELS_UPDATED,this.onLevelsUpdated,this),t.off(b.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),t.off(b.FRAG_LOADED,this.onFragLoaded,this),t.off(b.ERROR,this.onError,this)},r.destroy=function(){this._unregisterListeners(),this.steering=null,this.resetLevels(),t.prototype.destroy.call(this)},r.startLoad=function(){this._levels.forEach((function(t){t.loadError=0,t.fragmentError=0})),t.prototype.startLoad.call(this)},r.resetLevels=function(){this._startLevel=void 0,this.manualLevelIndex=-1,this.currentLevelIndex=-1,this.currentLevel=null,this._levels=[]},r.onManifestLoading=function(t,e){this.resetLevels()},r.onManifestLoaded=function(t,e){var r,n=[],i={};e.levels.forEach((function(t){var e,a=t.attrs;-1!==(null==(e=t.audioCodec)?void 0:e.indexOf("mp4a.40.34"))&&(We||(We=/chrome|firefox/i.test(navigator.userAgent)),We&&(t.audioCodec=void 0));var s=a.AUDIO,o=a.CODECS,u=a["FRAME-RATE"],l=a["PATHWAY-ID"],c=a.RESOLUTION,A=a.SUBTITLES,d=(l||".")+"-"+t.bitrate+"-"+c+"-"+u+"-"+o;(r=i[d])?r.addFallback(t):(r=new Ie(t),i[d]=r,n.push(r)),Xe(r,"audio",s),Xe(r,"text",A)})),this.filterAndSortMediaOptions(n,e)},r.filterAndSortMediaOptions=function(t,e){var r=this,n=[],i=[],a=!1,s=!1,o=!1,u=t.filter((function(t){var e=t.audioCodec,r=t.videoCodec,n=t.width,i=t.height,u=t.unknownCodecs;return a||(a=!(!n||!i)),s||(s=!!r),o||(o=!!e),!(null!=u&&u.length)&&(!e||Wt(e,"audio"))&&(!r||Wt(r,"video"))}));if((a||s)&&o&&(u=u.filter((function(t){var e=t.videoCodec,r=t.width,n=t.height;return!!e||!(!r||!n)}))),0!==u.length){e.audioTracks&&Je(n=e.audioTracks.filter((function(t){return!t.audioCodec||Wt(t.audioCodec,"audio")}))),e.subtitles&&Je(i=e.subtitles);var l=u.slice(0);u.sort((function(t,e){return t.attrs["HDCP-LEVEL"]!==e.attrs["HDCP-LEVEL"]?(t.attrs["HDCP-LEVEL"]||"")>(e.attrs["HDCP-LEVEL"]||"")?1:-1:t.bitrate!==e.bitrate?t.bitrate-e.bitrate:t.attrs["FRAME-RATE"]!==e.attrs["FRAME-RATE"]?t.attrs.decimalFloatingPoint("FRAME-RATE")-e.attrs.decimalFloatingPoint("FRAME-RATE"):t.attrs.SCORE!==e.attrs.SCORE?t.attrs.decimalFloatingPoint("SCORE")-e.attrs.decimalFloatingPoint("SCORE"):a&&t.height!==e.height?t.height-e.height:0}));var c=l[0];if(this.steering&&(u=this.steering.filterParsedLevels(u)).length!==l.length)for(var A=0;A<l.length;A++)if(l[A].pathwayId===u[0].pathwayId){c=l[A];break}this._levels=u;for(var d=0;d<u.length;d++)if(u[d]===c){this._firstLevel=d,this.log("manifest loaded, "+u.length+" level(s) found, first bitrate: "+c.bitrate);break}var f=o&&!s,h={levels:u,audioTracks:n,subtitleTracks:i,sessionData:e.sessionData,sessionKeys:e.sessionKeys,firstLevel:this._firstLevel,stats:e.stats,audio:o,video:s,altAudio:!f&&n.some((function(t){return!!t.url}))};this.hls.trigger(b.MANIFEST_PARSED,h),(this.hls.config.autoStartLoad||this.hls.forceStartLoad)&&this.hls.startLoad(this.hls.config.startPosition)}else Promise.resolve().then((function(){if(r.hls){var t=new Error("no level with compatible codecs found in manifest");r.hls.trigger(b.ERROR,{type:_.MEDIA_ERROR,details:B.MANIFEST_INCOMPATIBLE_CODECS_ERROR,fatal:!0,url:e.url,error:t,reason:t.message})}}))},r.onError=function(t,e){!e.fatal&&e.context&&e.context.type===ue&&e.context.level===this.level&&this.checkRetry(e)},r.onFragLoaded=function(t,e){var r=e.frag;if(void 0!==r&&r.type===Ae){var n=this._levels[r.level];void 0!==n&&(n.loadError=0)}},r.onLevelLoaded=function(t,e){var r,n,i=e.level,a=e.details,s=this._levels[i];if(!s)return this.warn("Invalid level index "+i),void(null!=(n=e.deliveryDirectives)&&n.skip&&(a.deltaUpdateFailed=!0));i===this.currentLevelIndex?(0===s.fragmentError&&(s.loadError=0),this.playlistLoaded(i,e,s.details)):null!=(r=e.deliveryDirectives)&&r.skip&&(a.deltaUpdateFailed=!0)},r.onAudioTrackSwitched=function(t,e){var r=this.currentLevel;if(r){var n=this.hls.audioTracks[e.id].groupId;if(r.audioGroupIds&&r.audioGroupId!==n){for(var i=-1,a=0;a<r.audioGroupIds.length;a++)if(r.audioGroupIds[a]===n){i=a;break}-1!==i&&i!==r.urlId&&(r.urlId=i,this.canLoad&&this.startLoad())}}},r.loadPlaylist=function(e){t.prototype.loadPlaylist.call(this);var r=this.currentLevelIndex,n=this.currentLevel;if(n&&this.shouldLoadPlaylist(n)){var i=n.urlId,a=n.uri;if(e)try{a=e.addDirectives(a)}catch(t){this.warn("Could not construct new URL with HLS Delivery Directives: "+t)}var s=n.attrs["PATHWAY-ID"];this.log("Loading level index "+r+(void 0!==(null==e?void 0:e.msn)?" at sn "+e.msn+" part "+e.part:"")+" with"+(s?" Pathway "+s:"")+" URI "+(i+1)+"/"+n.url.length+" "+a),this.clearTimer(),this.hls.trigger(b.LEVEL_LOADING,{url:a,level:r,id:i,deliveryDirectives:e||null})}},r.removeLevel=function(t,e){var r=this,n=function(t,r){return r!==e},i=this._levels.filter((function(i,a){return a!==t||(i.url.length>1&&void 0!==e?(i.url=i.url.filter(n),i.audioGroupIds&&(i.audioGroupIds=i.audioGroupIds.filter(n)),i.textGroupIds&&(i.textGroupIds=i.textGroupIds.filter(n)),i.urlId=0,!0):(r.steering&&r.steering.removeLevel(i),!1))}));this.hls.trigger(b.LEVELS_UPDATED,{levels:i})},r.onLevelsUpdated=function(t,e){var r=e.levels;r.forEach((function(t,e){var r=t.details;null!=r&&r.fragments&&r.fragments.forEach((function(t){t.level=e}))})),this._levels=r},n(e,[{key:"levels",get:function(){return 0===this._levels.length?null:this._levels}},{key:"level",get:function(){return this.currentLevelIndex},set:function(t){var e=this._levels;if(0!==e.length){if(t<0||t>=e.length){var r=new Error("invalid level idx"),n=t<0;if(this.hls.trigger(b.ERROR,{type:_.OTHER_ERROR,details:B.LEVEL_SWITCH_ERROR,level:t,fatal:n,error:r,reason:r.message}),n)return;t=Math.min(t,e.length-1)}var i=this.currentLevelIndex,a=this.currentLevel,s=a?a.attrs["PATHWAY-ID"]:void 0,o=e[t],l=o.attrs["PATHWAY-ID"];if(this.currentLevelIndex=t,this.currentLevel=o,i!==t||!o.details||!a||s!==l){this.log("Switching to level "+t+(l?" with Pathway "+l:"")+" from level "+i+(s?" with Pathway "+s:""));var c=u({},o,{level:t,maxBitrate:o.maxBitrate,attrs:o.attrs,uri:o.uri,urlId:o.urlId});delete c._attrs,delete c._urlId,this.hls.trigger(b.LEVEL_SWITCHING,c);var A=o.details;if(!A||A.live){var d=this.switchParams(o.uri,null==a?void 0:a.details);this.loadPlaylist(d)}}}}},{key:"manualLevel",get:function(){return this.manualLevelIndex},set:function(t){this.manualLevelIndex=t,void 0===this._startLevel&&(this._startLevel=t),-1!==t&&(this.level=t)}},{key:"firstLevel",get:function(){return this._firstLevel},set:function(t){this._firstLevel=t}},{key:"startLevel",get:function(){if(void 0===this._startLevel){var t=this.hls.config.startLevel;return void 0!==t?t:this._firstLevel}return this._startLevel},set:function(t){this._startLevel=t}},{key:"nextLoadLevel",get:function(){return-1!==this.manualLevelIndex?this.manualLevelIndex:this.hls.nextAutoLevel},set:function(t){this.level=t,-1===this.manualLevelIndex&&(this.hls.nextAutoLevel=t)}}]),e}(Ye);function Xe(t,e,r){r&&("audio"===e?(t.audioGroupIds||(t.audioGroupIds=[]),t.audioGroupIds[t.url.length-1]=r):"text"===e&&(t.textGroupIds||(t.textGroupIds=[]),t.textGroupIds[t.url.length-1]=r))}function Je(t){var e={};t.forEach((function(t){var r=t.groupId||"";t.id=e[r]=e[r]||0,e[r]++}))}var Ze="NOT_LOADED",tr="APPENDING",er="PARTIAL",rr="OK",nr=function(){function t(t){this.activePartLists=Object.create(null),this.endListFragments=Object.create(null),this.fragments=Object.create(null),this.timeRanges=Object.create(null),this.bufferPadding=.2,this.hls=void 0,this.hasGaps=!1,this.hls=t,this._registerListeners()}var e=t.prototype;return e._registerListeners=function(){var t=this.hls;t.on(b.BUFFER_APPENDED,this.onBufferAppended,this),t.on(b.FRAG_BUFFERED,this.onFragBuffered,this),t.on(b.FRAG_LOADED,this.onFragLoaded,this)},e._unregisterListeners=function(){var t=this.hls;t.off(b.BUFFER_APPENDED,this.onBufferAppended,this),t.off(b.FRAG_BUFFERED,this.onFragBuffered,this),t.off(b.FRAG_LOADED,this.onFragLoaded,this)},e.destroy=function(){this._unregisterListeners(),this.fragments=this.activePartLists=this.endListFragments=this.timeRanges=null},e.getAppendedFrag=function(t,e){var r=this.activePartLists[e];if(r)for(var n=r.length;n--;){var i=r[n];if(!i)break;var a=i.end;if(i.start<=t&&null!==a&&t<=a)return i}return this.getBufferedFrag(t,e)},e.getBufferedFrag=function(t,e){for(var r=this.fragments,n=Object.keys(r),i=n.length;i--;){var a=r[n[i]];if((null==a?void 0:a.body.type)===e&&a.buffered){var s=a.body;if(s.start<=t&&t<=s.end)return s}}return null},e.detectEvictedFragments=function(t,e,r,n){var i=this;this.timeRanges&&(this.timeRanges[t]=e);var a=(null==n?void 0:n.fragment.sn)||-1;Object.keys(this.fragments).forEach((function(n){var s=i.fragments[n];if(s&&!(a>=s.body.sn))if(s.buffered||s.loaded){var o=s.range[t];o&&o.time.some((function(t){var r=!i.isTimeBuffered(t.startPTS,t.endPTS,e);return r&&i.removeFragment(s.body),r}))}else s.body.type===r&&i.removeFragment(s.body)}))},e.detectPartialFragments=function(t){var e=this,r=this.timeRanges,n=t.frag,i=t.part;if(r&&"initSegment"!==n.sn){var a=ar(n),s=this.fragments[a];if(s){var o=!n.relurl;Object.keys(r).forEach((function(t){var a=n.elementaryStreams[t];if(a){var u=r[t],l=o||!0===a.partial;s.range[t]=e.getBufferedTimes(n,i,l,u)}})),s.loaded=null,Object.keys(s.range).length?(s.buffered=!0,s.body.endList&&(this.endListFragments[s.body.type]=s),ir(s)||this.removeParts(n.sn-1,n.type)):this.removeFragment(s.body)}}},e.removeParts=function(t,e){var r=this.activePartLists[e];r&&(this.activePartLists[e]=r.filter((function(e){return e.fragment.sn>=t})))},e.fragBuffered=function(t,e){var r=ar(t),n=this.fragments[r];!n&&e&&(n=this.fragments[r]={body:t,appendedPTS:null,loaded:null,buffered:!1,range:Object.create(null)},t.gap&&(this.hasGaps=!0)),n&&(n.loaded=null,n.buffered=!0)},e.getBufferedTimes=function(t,e,r,n){for(var i={time:[],partial:r},a=t.start,s=t.end,o=t.minEndPTS||s,u=t.maxStartPTS||a,l=0;l<n.length;l++){var c=n.start(l)-this.bufferPadding,A=n.end(l)+this.bufferPadding;if(u>=c&&o<=A){i.time.push({startPTS:Math.max(a,n.start(l)),endPTS:Math.min(s,n.end(l))});break}if(a<A&&s>c)i.partial=!0,i.time.push({startPTS:Math.max(a,n.start(l)),endPTS:Math.min(s,n.end(l))});else if(s<=c)break}return i},e.getPartialFragment=function(t){var e,r,n,i=null,a=0,s=this.bufferPadding,o=this.fragments;return Object.keys(o).forEach((function(u){var l=o[u];l&&ir(l)&&(r=l.body.start-s,n=l.body.end+s,t>=r&&t<=n&&(e=Math.min(t-r,n-t),a<=e&&(i=l.body,a=e)))})),i},e.isEndListAppended=function(t){var e=this.endListFragments[t];return void 0!==e&&(e.buffered||ir(e))},e.getState=function(t){var e=ar(t),r=this.fragments[e];return r?r.buffered?ir(r)?er:rr:tr:Ze},e.isTimeBuffered=function(t,e,r){for(var n,i,a=0;a<r.length;a++){if(n=r.start(a)-this.bufferPadding,i=r.end(a)+this.bufferPadding,t>=n&&e<=i)return!0;if(e<=n)return!1}return!1},e.onFragLoaded=function(t,e){var r=e.frag,n=e.part;if("initSegment"!==r.sn&&!r.bitrateTest){var i=n?null:e,a=ar(r);this.fragments[a]={body:r,appendedPTS:null,loaded:i,buffered:!1,range:Object.create(null)}}},e.onBufferAppended=function(t,e){var r=this,n=e.frag,i=e.part,a=e.timeRanges;if("initSegment"!==n.sn){var s=n.type;if(i){var o=this.activePartLists[s];o||(this.activePartLists[s]=o=[]),o.push(i)}this.timeRanges=a,Object.keys(a).forEach((function(t){var e=a[t];r.detectEvictedFragments(t,e,s,i)}))}},e.onFragBuffered=function(t,e){this.detectPartialFragments(e)},e.hasFragment=function(t){var e=ar(t);return!!this.fragments[e]},e.hasParts=function(t){var e;return!(null==(e=this.activePartLists[t])||!e.length)},e.removeFragmentsInRange=function(t,e,r,n,i){var a=this;n&&!this.hasGaps||Object.keys(this.fragments).forEach((function(s){var o=a.fragments[s];if(o){var u=o.body;u.type!==r||n&&!u.gap||u.start<e&&u.end>t&&(o.buffered||i)&&a.removeFragment(u)}}))},e.removeFragment=function(t){var e=ar(t);t.stats.loaded=0,t.clearElementaryStreamInfo();var r=this.activePartLists[t.type];if(r){var n=t.sn;this.activePartLists[t.type]=r.filter((function(t){return t.fragment.sn!==n}))}delete this.fragments[e],t.endList&&delete this.endListFragments[t.type]},e.removeAllFragments=function(){this.fragments=Object.create(null),this.endListFragments=Object.create(null),this.activePartLists=Object.create(null),this.hasGaps=!1},t}();function ir(t){var e,r,n;return t.buffered&&(t.body.gap||(null==(e=t.range.video)?void 0:e.partial)||(null==(r=t.range.audio)?void 0:r.partial)||(null==(n=t.range.audiovideo)?void 0:n.partial))}function ar(t){return t.type+"_"+t.level+"_"+t.urlId+"_"+t.sn}var sr=Math.pow(2,17),or=function(){function t(t){this.config=void 0,this.loader=null,this.partLoadTimeout=-1,this.config=t}var r=t.prototype;return r.destroy=function(){this.loader&&(this.loader.destroy(),this.loader=null)},r.abort=function(){this.loader&&this.loader.abort()},r.load=function(t,r){var n=this,i=t.url;if(!i)return Promise.reject(new cr({type:_.NETWORK_ERROR,details:B.FRAG_LOAD_ERROR,fatal:!1,frag:t,error:new Error("Fragment does not have a "+(i?"part list":"url")),networkDetails:null}));this.abort();var a=this.config,s=a.fLoader,o=a.loader;return new Promise((function(u,l){if(n.loader&&n.loader.destroy(),t.gap)l(lr(t));else{var c=n.loader=t.loader=s?new s(a):new o(a),A=ur(t),d=He(a.fragLoadPolicy.default),f={loadPolicy:d,timeout:d.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:"initSegment"===t.sn?1/0:sr};t.stats=c.stats,c.load(A,f,{onSuccess:function(e,r,i,a){n.resetLoader(t,c);var s=e.data;i.resetIV&&t.decryptdata&&(t.decryptdata.iv=new Uint8Array(s.slice(0,16)),s=s.slice(16)),u({frag:t,part:null,payload:s,networkDetails:a})},onError:function(r,a,s,o){n.resetLoader(t,c),l(new cr({type:_.NETWORK_ERROR,details:B.FRAG_LOAD_ERROR,fatal:!1,frag:t,response:e({url:i,data:void 0},r),error:new Error("HTTP Error "+r.code+" "+r.text),networkDetails:s,stats:o}))},onAbort:function(e,r,i){n.resetLoader(t,c),l(new cr({type:_.NETWORK_ERROR,details:B.INTERNAL_ABORTED,fatal:!1,frag:t,error:new Error("Aborted"),networkDetails:i,stats:e}))},onTimeout:function(e,r,i){n.resetLoader(t,c),l(new cr({type:_.NETWORK_ERROR,details:B.FRAG_LOAD_TIMEOUT,fatal:!1,frag:t,error:new Error("Timeout after "+f.timeout+"ms"),networkDetails:i,stats:e}))},onProgress:function(e,n,i,a){r&&r({frag:t,part:null,payload:i,networkDetails:a})}})}}))},r.loadPart=function(t,r,n){var i=this;this.abort();var a=this.config,s=a.fLoader,o=a.loader;return new Promise((function(u,l){if(i.loader&&i.loader.destroy(),t.gap||r.gap)l(lr(t,r));else{var c=i.loader=t.loader=s?new s(a):new o(a),A=ur(t,r),d=He(a.fragLoadPolicy.default),f={loadPolicy:d,timeout:d.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:sr};r.stats=c.stats,c.load(A,f,{onSuccess:function(e,a,s,o){i.resetLoader(t,c),i.updateStatsFromPart(t,r);var l={frag:t,part:r,payload:e.data,networkDetails:o};n(l),u(l)},onError:function(n,a,s,o){i.resetLoader(t,c),l(new cr({type:_.NETWORK_ERROR,details:B.FRAG_LOAD_ERROR,fatal:!1,frag:t,part:r,response:e({url:A.url,data:void 0},n),error:new Error("HTTP Error "+n.code+" "+n.text),networkDetails:s,stats:o}))},onAbort:function(e,n,a){t.stats.aborted=r.stats.aborted,i.resetLoader(t,c),l(new cr({type:_.NETWORK_ERROR,details:B.INTERNAL_ABORTED,fatal:!1,frag:t,part:r,error:new Error("Aborted"),networkDetails:a,stats:e}))},onTimeout:function(e,n,a){i.resetLoader(t,c),l(new cr({type:_.NETWORK_ERROR,details:B.FRAG_LOAD_TIMEOUT,fatal:!1,frag:t,part:r,error:new Error("Timeout after "+f.timeout+"ms"),networkDetails:a,stats:e}))}})}}))},r.updateStatsFromPart=function(t,e){var r=t.stats,n=e.stats,i=n.total;if(r.loaded+=n.loaded,i){var a=Math.round(t.duration/e.duration),s=Math.min(Math.round(r.loaded/i),a),o=(a-s)*Math.round(r.loaded/s);r.total=r.loaded+o}else r.total=Math.max(r.loaded,r.total);var u=r.loading,l=n.loading;u.start?u.first+=l.first-l.start:(u.start=l.start,u.first=l.first),u.end=l.end},r.resetLoader=function(t,e){t.loader=null,this.loader===e&&(self.clearTimeout(this.partLoadTimeout),this.loader=null),e.destroy()},t}();function ur(t,e){void 0===e&&(e=null);var r=e||t,n={frag:t,part:e,responseType:"arraybuffer",url:r.url,headers:{},rangeStart:0,rangeEnd:0},i=r.byteRangeStartOffset,a=r.byteRangeEndOffset;if(w(i)&&w(a)){var s,o=i,u=a;if("initSegment"===t.sn&&"AES-128"===(null==(s=t.decryptdata)?void 0:s.method)){var l=a-i;l%16&&(u=a+(16-l%16)),0!==i&&(n.resetIV=!0,o=i-16)}n.rangeStart=o,n.rangeEnd=u}return n}function lr(t,e){var r=new Error("GAP "+(t.gap?"tag":"attribute")+" found"),n={type:_.MEDIA_ERROR,details:B.FRAG_GAP,fatal:!1,frag:t,error:r,networkDetails:null};return e&&(n.part=e),(e||t).stats.aborted=!0,new cr(n)}var cr=function(t){function e(e){var r;return(r=t.call(this,e.error.message)||this).data=void 0,r.data=e,r}return l(e,t),e}(h(Error)),Ar=function(){function t(t){this.config=void 0,this.keyUriToKeyInfo={},this.emeController=null,this.config=t}var r=t.prototype;return r.abort=function(t){for(var e in this.keyUriToKeyInfo){var r=this.keyUriToKeyInfo[e].loader;if(r){if(t&&t!==r.context.frag.type)return;r.abort()}}},r.detach=function(){for(var t in this.keyUriToKeyInfo){var e=this.keyUriToKeyInfo[t];(e.mediaKeySessionContext||e.decryptdata.isCommonEncryption)&&delete this.keyUriToKeyInfo[t]}},r.destroy=function(){for(var t in this.detach(),this.keyUriToKeyInfo){var e=this.keyUriToKeyInfo[t].loader;e&&e.destroy()}this.keyUriToKeyInfo={}},r.createKeyLoadError=function(t,e,r,n,i){return void 0===e&&(e=B.KEY_LOAD_ERROR),new cr({type:_.NETWORK_ERROR,details:e,fatal:!1,frag:t,response:i,error:r,networkDetails:n})},r.loadClear=function(t,e){var r=this;if(this.emeController&&this.config.emeEnabled)for(var n=t.sn,i=t.cc,a=function(){var t=e[s];if(i<=t.cc&&("initSegment"===n||"initSegment"===t.sn||n<t.sn))return r.emeController.selectKeySystemFormat(t).then((function(e){t.setKeyFormat(e)})),"break"},s=0;s<e.length&&"break"!==a();s++);},r.load=function(t){var e=this;return!t.decryptdata&&t.encrypted&&this.emeController?this.emeController.selectKeySystemFormat(t).then((function(r){return e.loadInternal(t,r)})):this.loadInternal(t)},r.loadInternal=function(t,e){var r,n;e&&t.setKeyFormat(e);var i=t.decryptdata;if(!i){var a=new Error(e?"Expected frag.decryptdata to be defined after setting format "+e:"Missing decryption data on fragment in onKeyLoading");return Promise.reject(this.createKeyLoadError(t,B.KEY_LOAD_ERROR,a))}var s=i.uri;if(!s)return Promise.reject(this.createKeyLoadError(t,B.KEY_LOAD_ERROR,new Error('Invalid key URI: "'+s+'"')));var o,u=this.keyUriToKeyInfo[s];if(null!=(r=u)&&r.decryptdata.key)return i.key=u.decryptdata.key,Promise.resolve({frag:t,keyInfo:u});if(null!=(n=u)&&n.keyLoadPromise)switch(null==(o=u.mediaKeySessionContext)?void 0:o.keyStatus){case void 0:case"status-pending":case"usable":case"usable-in-future":return u.keyLoadPromise.then((function(e){return i.key=e.keyInfo.decryptdata.key,{frag:t,keyInfo:u}}))}switch(u=this.keyUriToKeyInfo[s]={decryptdata:i,keyLoadPromise:null,loader:null,mediaKeySessionContext:null},i.method){case"ISO-23001-7":case"SAMPLE-AES":case"SAMPLE-AES-CENC":case"SAMPLE-AES-CTR":return"identity"===i.keyFormat?this.loadKeyHTTP(u,t):this.loadKeyEME(u,t);case"AES-128":return this.loadKeyHTTP(u,t);default:return Promise.reject(this.createKeyLoadError(t,B.KEY_LOAD_ERROR,new Error('Key supplied with unsupported METHOD: "'+i.method+'"')))}},r.loadKeyEME=function(t,e){var r={frag:e,keyInfo:t};if(this.emeController&&this.config.emeEnabled){var n=this.emeController.loadKey(r);if(n)return(t.keyLoadPromise=n.then((function(e){return t.mediaKeySessionContext=e,r}))).catch((function(e){throw t.keyLoadPromise=null,e}))}return Promise.resolve(r)},r.loadKeyHTTP=function(t,r){var n=this,i=this.config,a=new(0,i.loader)(i);return r.keyLoader=t.loader=a,t.keyLoadPromise=new Promise((function(s,o){var u={keyInfo:t,frag:r,responseType:"arraybuffer",url:t.decryptdata.uri},l=i.keyLoadPolicy.default,c={loadPolicy:l,timeout:l.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},A={onSuccess:function(t,e,r,i){var a=r.frag,u=r.keyInfo,l=r.url;if(!a.decryptdata||u!==n.keyUriToKeyInfo[l])return o(n.createKeyLoadError(a,B.KEY_LOAD_ERROR,new Error("after key load, decryptdata unset or changed"),i));u.decryptdata.key=a.decryptdata.key=new Uint8Array(t.data),a.keyLoader=null,u.loader=null,s({frag:a,keyInfo:u})},onError:function(t,i,a,s){n.resetLoader(i),o(n.createKeyLoadError(r,B.KEY_LOAD_ERROR,new Error("HTTP Error "+t.code+" loading key "+t.text),a,e({url:u.url,data:void 0},t)))},onTimeout:function(t,e,i){n.resetLoader(e),o(n.createKeyLoadError(r,B.KEY_LOAD_TIMEOUT,new Error("key loading timed out"),i))},onAbort:function(t,e,i){n.resetLoader(e),o(n.createKeyLoadError(r,B.INTERNAL_ABORTED,new Error("key loading aborted"),i))}};a.load(u,c,A)}))},r.resetLoader=function(t){var e=t.frag,r=t.keyInfo,n=t.url,i=r.loader;e.keyLoader===i&&(e.keyLoader=null,r.loader=null),delete this.keyUriToKeyInfo[n],i&&i.destroy()},t}(),dr=function(){function t(){this._boundTick=void 0,this._tickTimer=null,this._tickInterval=null,this._tickCallCount=0,this._boundTick=this.tick.bind(this)}var e=t.prototype;return e.destroy=function(){this.onHandlerDestroying(),this.onHandlerDestroyed()},e.onHandlerDestroying=function(){this.clearNextTick(),this.clearInterval()},e.onHandlerDestroyed=function(){},e.hasInterval=function(){return!!this._tickInterval},e.hasNextTick=function(){return!!this._tickTimer},e.setInterval=function(t){return!this._tickInterval&&(this._tickCallCount=0,this._tickInterval=self.setInterval(this._boundTick,t),!0)},e.clearInterval=function(){return!!this._tickInterval&&(self.clearInterval(this._tickInterval),this._tickInterval=null,!0)},e.clearNextTick=function(){return!!this._tickTimer&&(self.clearTimeout(this._tickTimer),this._tickTimer=null,!0)},e.tick=function(){this._tickCallCount++,1===this._tickCallCount&&(this.doTick(),this._tickCallCount>1&&this.tickImmediate(),this._tickCallCount=0)},e.tickImmediate=function(){this.clearNextTick(),this._tickTimer=self.setTimeout(this._boundTick,0)},e.doTick=function(){},t}(),fr={length:0,start:function(){return 0},end:function(){return 0}},hr=function(){function t(){}return t.isBuffered=function(e,r){try{if(e)for(var n=t.getBuffered(e),i=0;i<n.length;i++)if(r>=n.start(i)&&r<=n.end(i))return!0}catch(t){}return!1},t.bufferInfo=function(e,r,n){try{if(e){var i,a=t.getBuffered(e),s=[];for(i=0;i<a.length;i++)s.push({start:a.start(i),end:a.end(i)});return this.bufferedInfo(s,r,n)}}catch(t){}return{len:0,start:r,end:r,nextStart:void 0}},t.bufferedInfo=function(t,e,r){e=Math.max(0,e),t.sort((function(t,e){var r=t.start-e.start;return r||e.end-t.end}));var n=[];if(r)for(var i=0;i<t.length;i++){var a=n.length;if(a){var s=n[a-1].end;t[i].start-s<r?t[i].end>s&&(n[a-1].end=t[i].end):n.push(t[i])}else n.push(t[i])}else n=t;for(var o,u=0,l=e,c=e,A=0;A<n.length;A++){var d=n[A].start,f=n[A].end;if(e+r>=d&&e<f)l=d,u=(c=f)-e;else if(e+r<d){o=d;break}}return{len:u,start:l||0,end:c||0,nextStart:o}},t.getBuffered=function(t){try{return t.buffered}catch(t){return k.log("failed to get media.buffered",t),fr}},t}(),pr=function(t,e,r,n,i,a){void 0===n&&(n=0),void 0===i&&(i=-1),void 0===a&&(a=!1),this.level=void 0,this.sn=void 0,this.part=void 0,this.id=void 0,this.size=void 0,this.partial=void 0,this.transmuxing={start:0,executeStart:0,executeEnd:0,end:0},this.buffering={audio:{start:0,executeStart:0,executeEnd:0,end:0},video:{start:0,executeStart:0,executeEnd:0,end:0},audiovideo:{start:0,executeStart:0,executeEnd:0,end:0}},this.level=t,this.sn=e,this.id=r,this.size=n,this.part=i,this.partial=a};function gr(t,e){for(var r=null,n=0,i=t.length;n<i;n++){var a=t[n];if(a&&a.cc===e){r=a;break}}return r}function vr(t,e){if(t){var r=t.start+e;t.start=t.startPTS=r,t.endPTS=r+t.duration}}function mr(t,e){for(var r=e.fragments,n=0,i=r.length;n<i;n++)vr(r[n],t);e.fragmentHint&&vr(e.fragmentHint,t),e.alignedSliding=!0}function yr(t,e){if(t.hasProgramDateTime&&e.hasProgramDateTime){var r=t.fragments,n=e.fragments;if(r.length&&n.length){var i=n[Math.round(n.length/2)-1],a=gr(r,i.cc)||r[Math.round(r.length/2)-1],s=i.programDateTime,o=a.programDateTime;null!==s&&null!==o&&mr((o-s)/1e3-(a.start-i.start),t)}}}var wr=function(){function t(t,e){this.subtle=void 0,this.aesIV=void 0,this.subtle=t,this.aesIV=e}return t.prototype.decrypt=function(t,e){return this.subtle.decrypt({name:"AES-CBC",iv:this.aesIV},e,t)},t}(),br=function(){function t(t,e){this.subtle=void 0,this.key=void 0,this.subtle=t,this.key=e}return t.prototype.expandKey=function(){return this.subtle.importKey("raw",this.key,{name:"AES-CBC"},!1,["encrypt","decrypt"])},t}(),_r=function(){function t(){this.rcon=[0,1,2,4,8,16,32,64,128,27,54],this.subMix=[new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256)],this.invSubMix=[new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256)],this.sBox=new Uint32Array(256),this.invSBox=new Uint32Array(256),this.key=new Uint32Array(0),this.ksRows=0,this.keySize=0,this.keySchedule=void 0,this.invKeySchedule=void 0,this.initTable()}var e=t.prototype;return e.uint8ArrayToUint32Array_=function(t){for(var e=new DataView(t),r=new Uint32Array(4),n=0;n<4;n++)r[n]=e.getUint32(4*n);return r},e.initTable=function(){var t=this.sBox,e=this.invSBox,r=this.subMix,n=r[0],i=r[1],a=r[2],s=r[3],o=this.invSubMix,u=o[0],l=o[1],c=o[2],A=o[3],d=new Uint32Array(256),f=0,h=0,p=0;for(p=0;p<256;p++)d[p]=p<128?p<<1:p<<1^283;for(p=0;p<256;p++){var g=h^h<<1^h<<2^h<<3^h<<4;g=g>>>8^255&g^99,t[f]=g,e[g]=f;var v=d[f],m=d[v],y=d[m],w=257*d[g]^16843008*g;n[f]=w<<24|w>>>8,i[f]=w<<16|w>>>16,a[f]=w<<8|w>>>24,s[f]=w,w=16843009*y^65537*m^257*v^16843008*f,u[g]=w<<24|w>>>8,l[g]=w<<16|w>>>16,c[g]=w<<8|w>>>24,A[g]=w,f?(f=v^d[d[d[y^v]]],h^=d[d[h]]):f=h=1}},e.expandKey=function(t){for(var e=this.uint8ArrayToUint32Array_(t),r=!0,n=0;n<e.length&&r;)r=e[n]===this.key[n],n++;if(!r){this.key=e;var i=this.keySize=e.length;if(4!==i&&6!==i&&8!==i)throw new Error("Invalid aes key size="+i);var a,s,o,u,l=this.ksRows=4*(i+6+1),c=this.keySchedule=new Uint32Array(l),A=this.invKeySchedule=new Uint32Array(l),d=this.sBox,f=this.rcon,h=this.invSubMix,p=h[0],g=h[1],v=h[2],m=h[3];for(a=0;a<l;a++)a<i?o=c[a]=e[a]:(u=o,a%i==0?(u=d[(u=u<<8|u>>>24)>>>24]<<24|d[u>>>16&255]<<16|d[u>>>8&255]<<8|d[255&u],u^=f[a/i|0]<<24):i>6&&a%i==4&&(u=d[u>>>24]<<24|d[u>>>16&255]<<16|d[u>>>8&255]<<8|d[255&u]),c[a]=o=(c[a-i]^u)>>>0);for(s=0;s<l;s++)a=l-s,u=3&s?c[a]:c[a-4],A[s]=s<4||a<=4?u:p[d[u>>>24]]^g[d[u>>>16&255]]^v[d[u>>>8&255]]^m[d[255&u]],A[s]=A[s]>>>0}},e.networkToHostOrderSwap=function(t){return t<<24|(65280&t)<<8|(16711680&t)>>8|t>>>24},e.decrypt=function(t,e,r){for(var n,i,a,s,o,u,l,c,A,d,f,h,p,g,v=this.keySize+6,m=this.invKeySchedule,y=this.invSBox,w=this.invSubMix,b=w[0],_=w[1],B=w[2],C=w[3],E=this.uint8ArrayToUint32Array_(r),x=E[0],T=E[1],S=E[2],k=E[3],I=new Int32Array(t),F=new Int32Array(I.length),L=this.networkToHostOrderSwap;e<I.length;){for(A=L(I[e]),d=L(I[e+1]),f=L(I[e+2]),h=L(I[e+3]),o=A^m[0],u=h^m[1],l=f^m[2],c=d^m[3],p=4,g=1;g<v;g++)n=b[o>>>24]^_[u>>16&255]^B[l>>8&255]^C[255&c]^m[p],i=b[u>>>24]^_[l>>16&255]^B[c>>8&255]^C[255&o]^m[p+1],a=b[l>>>24]^_[c>>16&255]^B[o>>8&255]^C[255&u]^m[p+2],s=b[c>>>24]^_[o>>16&255]^B[u>>8&255]^C[255&l]^m[p+3],o=n,u=i,l=a,c=s,p+=4;n=y[o>>>24]<<24^y[u>>16&255]<<16^y[l>>8&255]<<8^y[255&c]^m[p],i=y[u>>>24]<<24^y[l>>16&255]<<16^y[c>>8&255]<<8^y[255&o]^m[p+1],a=y[l>>>24]<<24^y[c>>16&255]<<16^y[o>>8&255]<<8^y[255&u]^m[p+2],s=y[c>>>24]<<24^y[o>>16&255]<<16^y[u>>8&255]<<8^y[255&l]^m[p+3],F[e]=L(n^x),F[e+1]=L(s^T),F[e+2]=L(a^S),F[e+3]=L(i^k),x=A,T=d,S=f,k=h,e+=4}return F.buffer},t}(),Br=function(){function t(t,e){var r=(void 0===e?{}:e).removePKCS7Padding,n=void 0===r||r;if(this.logEnabled=!0,this.removePKCS7Padding=void 0,this.subtle=null,this.softwareDecrypter=null,this.key=null,this.fastAesKey=null,this.remainderData=null,this.currentIV=null,this.currentResult=null,this.useSoftware=void 0,this.useSoftware=t.enableSoftwareAES,this.removePKCS7Padding=n,n)try{var i=self.crypto;i&&(this.subtle=i.subtle||i.webkitSubtle)}catch(t){}null===this.subtle&&(this.useSoftware=!0)}var e=t.prototype;return e.destroy=function(){this.subtle=null,this.softwareDecrypter=null,this.key=null,this.fastAesKey=null,this.remainderData=null,this.currentIV=null,this.currentResult=null},e.isSync=function(){return this.useSoftware},e.flush=function(){var t=this.currentResult,e=this.remainderData;if(!t||e)return this.reset(),null;var r,n,i,a=new Uint8Array(t);return this.reset(),this.removePKCS7Padding?(n=(r=a).byteLength,(i=n&&new DataView(r.buffer).getUint8(n-1))?et(r,0,n-i):r):a},e.reset=function(){this.currentResult=null,this.currentIV=null,this.remainderData=null,this.softwareDecrypter&&(this.softwareDecrypter=null)},e.decrypt=function(t,e,r){var n=this;return this.useSoftware?new Promise((function(i,a){n.softwareDecrypt(new Uint8Array(t),e,r);var s=n.flush();s?i(s.buffer):a(new Error("[softwareDecrypt] Failed to decrypt data"))})):this.webCryptoDecrypt(new Uint8Array(t),e,r)},e.softwareDecrypt=function(t,e,r){var n=this.currentIV,i=this.currentResult,a=this.remainderData;this.logOnce("JS AES decrypt"),a&&(t=Ft(a,t),this.remainderData=null);var s=this.getValidChunk(t);if(!s.length)return null;n&&(r=n);var o=this.softwareDecrypter;o||(o=this.softwareDecrypter=new _r),o.expandKey(e);var u=i;return this.currentResult=o.decrypt(s.buffer,0,r),this.currentIV=et(s,-16).buffer,u||null},e.webCryptoDecrypt=function(t,e,r){var n=this,i=this.subtle;return this.key===e&&this.fastAesKey||(this.key=e,this.fastAesKey=new br(i,e)),this.fastAesKey.expandKey().then((function(e){return i?(n.logOnce("WebCrypto AES decrypt"),new wr(i,new Uint8Array(r)).decrypt(t.buffer,e)):Promise.reject(new Error("web crypto not initialized"))})).catch((function(i){return k.warn("[decrypter]: WebCrypto Error, disable WebCrypto API, "+i.name+": "+i.message),n.onWebCryptoError(t,e,r)}))},e.onWebCryptoError=function(t,e,r){this.useSoftware=!0,this.logEnabled=!0,this.softwareDecrypt(t,e,r);var n=this.flush();if(n)return n.buffer;throw new Error("WebCrypto and softwareDecrypt: failed to decrypt data")},e.getValidChunk=function(t){var e=t,r=t.length-t.length%16;return r!==t.length&&(e=et(t,0,r),this.remainderData=et(t,r)),e},e.logOnce=function(t){this.logEnabled&&(k.log("[decrypter]: "+t),this.logEnabled=!1)},t}(),Cr="STOPPED",Er="IDLE",xr="KEY_LOADING",Tr="FRAG_LOADING",Sr="FRAG_LOADING_WAITING_RETRY",kr="WAITING_TRACK",Ir="PARSING",Fr="PARSED",Lr="ENDED",Dr="ERROR",Rr="WAITING_INIT_PTS",Ur="WAITING_LEVEL",Or=function(t){function e(e,r,n,i,a){var s;return(s=t.call(this)||this).hls=void 0,s.fragPrevious=null,s.fragCurrent=null,s.fragmentTracker=void 0,s.transmuxer=null,s._state=Cr,s.playlistType=void 0,s.media=null,s.mediaBuffer=null,s.config=void 0,s.bitrateTest=!1,s.lastCurrentTime=0,s.nextLoadPosition=0,s.startPosition=0,s.startTimeOffset=null,s.loadedmetadata=!1,s.retryDate=0,s.levels=null,s.fragmentLoader=void 0,s.keyLoader=void 0,s.levelLastLoaded=null,s.startFragRequested=!1,s.decrypter=void 0,s.initPTS=[],s.onvseeking=null,s.onvended=null,s.logPrefix="",s.log=void 0,s.warn=void 0,s.playlistType=a,s.logPrefix=i,s.log=k.log.bind(k,i+":"),s.warn=k.warn.bind(k,i+":"),s.hls=e,s.fragmentLoader=new or(e.config),s.keyLoader=n,s.fragmentTracker=r,s.config=e.config,s.decrypter=new Br(e.config),e.on(b.MANIFEST_LOADED,s.onManifestLoaded,function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(s)),s}l(e,t);var r=e.prototype;return r.doTick=function(){this.onTickEnd()},r.onTickEnd=function(){},r.startLoad=function(t){},r.stopLoad=function(){this.fragmentLoader.abort(),this.keyLoader.abort(this.playlistType);var t=this.fragCurrent;null!=t&&t.loader&&(t.abortRequests(),this.fragmentTracker.removeFragment(t)),this.resetTransmuxer(),this.fragCurrent=null,this.fragPrevious=null,this.clearInterval(),this.clearNextTick(),this.state=Cr},r._streamEnded=function(t,e){if(e.live||t.nextStart||!t.end||!this.media)return!1;var r=e.partList;if(null!=r&&r.length){var n=r[r.length-1];return hr.isBuffered(this.media,n.start+n.duration/2)}var i=e.fragments[e.fragments.length-1].type;return this.fragmentTracker.isEndListAppended(i)},r.getLevelDetails=function(){var t;if(this.levels&&null!==this.levelLastLoaded)return null==(t=this.levels[this.levelLastLoaded])?void 0:t.details},r.onMediaAttached=function(t,e){var r=this.media=this.mediaBuffer=e.media;this.onvseeking=this.onMediaSeeking.bind(this),this.onvended=this.onMediaEnded.bind(this),r.addEventListener("seeking",this.onvseeking),r.addEventListener("ended",this.onvended);var n=this.config;this.levels&&n.autoStartLoad&&this.state===Cr&&this.startLoad(n.startPosition)},r.onMediaDetaching=function(){var t=this.media;null!=t&&t.ended&&(this.log("MSE detaching and video ended, reset startPosition"),this.startPosition=this.lastCurrentTime=0),t&&this.onvseeking&&this.onvended&&(t.removeEventListener("seeking",this.onvseeking),t.removeEventListener("ended",this.onvended),this.onvseeking=this.onvended=null),this.keyLoader&&this.keyLoader.detach(),this.media=this.mediaBuffer=null,this.loadedmetadata=!1,this.fragmentTracker.removeAllFragments(),this.stopLoad()},r.onMediaSeeking=function(){var t=this.config,e=this.fragCurrent,r=this.media,n=this.mediaBuffer,i=this.state,a=r?r.currentTime:0,s=hr.bufferInfo(n||r,a,t.maxBufferHole);if(this.log("media seeking to "+(w(a)?a.toFixed(3):a)+", state: "+i),this.state===Lr)this.resetLoadingState();else if(e){var o=t.maxFragLookUpTolerance,u=e.start-o,l=e.start+e.duration+o;if(!s.len||l<s.start||u>s.end){var c=a>l;(a<u||c)&&(c&&e.loader&&(this.log("seeking outside of buffer while fragment load in progress, cancel fragment load"),e.abortRequests(),this.resetLoadingState()),this.fragPrevious=null)}}r&&(this.fragmentTracker.removeFragmentsInRange(a,1/0,this.playlistType,!0),this.lastCurrentTime=a),this.loadedmetadata||s.len||(this.nextLoadPosition=this.startPosition=a),this.tickImmediate()},r.onMediaEnded=function(){this.startPosition=this.lastCurrentTime=0},r.onManifestLoaded=function(t,e){this.startTimeOffset=e.startTimeOffset,this.initPTS=[]},r.onHandlerDestroying=function(){this.stopLoad(),t.prototype.onHandlerDestroying.call(this)},r.onHandlerDestroyed=function(){this.state=Cr,this.fragmentLoader&&this.fragmentLoader.destroy(),this.keyLoader&&this.keyLoader.destroy(),this.decrypter&&this.decrypter.destroy(),this.hls=this.log=this.warn=this.decrypter=this.keyLoader=this.fragmentLoader=this.fragmentTracker=null,t.prototype.onHandlerDestroyed.call(this)},r.loadFragment=function(t,e,r){this._loadFragForPlayback(t,e,r)},r._loadFragForPlayback=function(t,e,r){var n=this;this._doFragLoad(t,e,r,(function(e){if(n.fragContextChanged(t))return n.warn("Fragment "+t.sn+(e.part?" p: "+e.part.index:"")+" of level "+t.level+" was dropped during download."),void n.fragmentTracker.removeFragment(t);t.stats.chunkCount++,n._handleFragmentLoadProgress(e)})).then((function(e){if(e){var r=n.state;n.fragContextChanged(t)?(r===Tr||!n.fragCurrent&&r===Ir)&&(n.fragmentTracker.removeFragment(t),n.state=Er):("payload"in e&&(n.log("Loaded fragment "+t.sn+" of level "+t.level),n.hls.trigger(b.FRAG_LOADED,e)),n._handleFragmentLoadComplete(e))}})).catch((function(e){n.state!==Cr&&n.state!==Dr&&(n.warn(e),n.resetFragmentLoading(t))}))},r.clearTrackerIfNeeded=function(t){var e,r=this.fragmentTracker;if(r.getState(t)===tr){var n=t.type,i=this.getFwdBufferInfo(this.mediaBuffer,n),a=Math.max(t.duration,i?i.len:this.config.maxBufferLength);this.reduceMaxBufferLength(a)&&r.removeFragment(t)}else 0===(null==(e=this.mediaBuffer)?void 0:e.buffered.length)?r.removeAllFragments():r.hasParts(t.type)&&(r.detectPartialFragments({frag:t,part:null,stats:t.stats,id:t.type}),r.getState(t)===er&&r.removeFragment(t))},r.flushMainBuffer=function(t,e,r){if(void 0===r&&(r=null),t-e){var n={startOffset:t,endOffset:e,type:r};this.hls.trigger(b.BUFFER_FLUSHING,n)}},r._loadInitSegment=function(t,e){var r=this;this._doFragLoad(t,e).then((function(e){if(!e||r.fragContextChanged(t)||!r.levels)throw new Error("init load aborted");return e})).then((function(e){var n=r.hls,i=e.payload,a=t.decryptdata;if(i&&i.byteLength>0&&a&&a.key&&a.iv&&"AES-128"===a.method){var s=self.performance.now();return r.decrypter.decrypt(new Uint8Array(i),a.key.buffer,a.iv.buffer).catch((function(e){throw n.trigger(b.ERROR,{type:_.MEDIA_ERROR,details:B.FRAG_DECRYPT_ERROR,fatal:!1,error:e,reason:e.message,frag:t}),e})).then((function(r){var i=self.performance.now();return n.trigger(b.FRAG_DECRYPTED,{frag:t,payload:r,stats:{tstart:s,tdecrypt:i}}),e.payload=r,e}))}return e})).then((function(n){var i=r.fragCurrent,a=r.hls;if(!r.levels)throw new Error("init load aborted, missing levels");var s=t.stats;r.state=Er,e.fragmentError=0,t.data=new Uint8Array(n.payload),s.parsing.start=s.buffering.start=self.performance.now(),s.parsing.end=s.buffering.end=self.performance.now(),n.frag===i&&a.trigger(b.FRAG_BUFFERED,{stats:s,frag:i,part:null,id:t.type}),r.tick()})).catch((function(e){r.state!==Cr&&r.state!==Dr&&(r.warn(e),r.resetFragmentLoading(t))}))},r.fragContextChanged=function(t){var e=this.fragCurrent;return!t||!e||t.level!==e.level||t.sn!==e.sn||t.urlId!==e.urlId},r.fragBufferedComplete=function(t,e){var r,n,i,a,s=this.mediaBuffer?this.mediaBuffer:this.media;this.log("Buffered "+t.type+" sn: "+t.sn+(e?" part: "+e.index:"")+" of "+(this.playlistType===Ae?"level":"track")+" "+t.level+" (frag:["+(null!=(r=t.startPTS)?r:NaN).toFixed(3)+"-"+(null!=(n=t.endPTS)?n:NaN).toFixed(3)+"] > buffer:"+(s?function(t){for(var e="",r=t.length,n=0;n<r;n++)e+="["+t.start(n).toFixed(3)+"-"+t.end(n).toFixed(3)+"]";return e}(hr.getBuffered(s)):"(detached)")+")"),this.state=Er,s&&(!this.loadedmetadata&&t.type==Ae&&s.buffered.length&&(null==(i=this.fragCurrent)?void 0:i.sn)===(null==(a=this.fragPrevious)?void 0:a.sn)&&(this.loadedmetadata=!0,this.seekToStartPos()),this.tick())},r.seekToStartPos=function(){},r._handleFragmentLoadComplete=function(t){var e=this.transmuxer;if(e){var r=t.frag,n=t.part,i=t.partsLoaded,a=!i||0===i.length||i.some((function(t){return!t})),s=new pr(r.level,r.sn,r.stats.chunkCount+1,0,n?n.index:-1,!a);e.flush(s)}},r._handleFragmentLoadProgress=function(t){},r._doFragLoad=function(t,e,r,n){var i,a=this;void 0===r&&(r=null);var s=null==e?void 0:e.details;if(!this.levels||!s)throw new Error("frag load aborted, missing level"+(s?"":" detail")+"s");var o=null;if(!t.encrypted||null!=(i=t.decryptdata)&&i.key?!t.encrypted&&s.encryptedFragments.length&&this.keyLoader.loadClear(t,s.encryptedFragments):(this.log("Loading key for "+t.sn+" of ["+s.startSN+"-"+s.endSN+"], "+("[stream-controller]"===this.logPrefix?"level":"track")+" "+t.level),this.state=xr,this.fragCurrent=t,o=this.keyLoader.load(t).then((function(t){if(!a.fragContextChanged(t.frag))return a.hls.trigger(b.KEY_LOADED,t),a.state===xr&&(a.state=Er),t})),this.hls.trigger(b.KEY_LOADING,{frag:t}),null===this.fragCurrent&&(o=Promise.reject(new Error("frag load aborted, context changed in KEY_LOADING")))),r=Math.max(t.start,r||0),this.config.lowLatencyMode&&"initSegment"!==t.sn){var u=s.partList;if(u&&n){r>t.end&&s.fragmentHint&&(t=s.fragmentHint);var l=this.getNextPart(u,t,r);if(l>-1){var c,A=u[l];return this.log("Loading part sn: "+t.sn+" p: "+A.index+" cc: "+t.cc+" of playlist ["+s.startSN+"-"+s.endSN+"] parts [0-"+l+"-"+(u.length-1)+"] "+("[stream-controller]"===this.logPrefix?"level":"track")+": "+t.level+", target: "+parseFloat(r.toFixed(3))),this.nextLoadPosition=A.start+A.duration,this.state=Tr,c=o?o.then((function(r){return!r||a.fragContextChanged(r.frag)?null:a.doFragPartsLoad(t,A,e,n)})).catch((function(t){return a.handleFragLoadError(t)})):this.doFragPartsLoad(t,A,e,n).catch((function(t){return a.handleFragLoadError(t)})),this.hls.trigger(b.FRAG_LOADING,{frag:t,part:A,targetBufferTime:r}),null===this.fragCurrent?Promise.reject(new Error("frag load aborted, context changed in FRAG_LOADING parts")):c}if(!t.url||this.loadedEndOfParts(u,r))return Promise.resolve(null)}}this.log("Loading fragment "+t.sn+" cc: "+t.cc+" "+(s?"of ["+s.startSN+"-"+s.endSN+"] ":"")+("[stream-controller]"===this.logPrefix?"level":"track")+": "+t.level+", target: "+parseFloat(r.toFixed(3))),w(t.sn)&&!this.bitrateTest&&(this.nextLoadPosition=t.start+t.duration),this.state=Tr;var d,f=this.config.progressive;return d=f&&o?o.then((function(e){return!e||a.fragContextChanged(null==e?void 0:e.frag)?null:a.fragmentLoader.load(t,n)})).catch((function(t){return a.handleFragLoadError(t)})):Promise.all([this.fragmentLoader.load(t,f?n:void 0),o]).then((function(t){var e=t[0];return!f&&e&&n&&n(e),e})).catch((function(t){return a.handleFragLoadError(t)})),this.hls.trigger(b.FRAG_LOADING,{frag:t,targetBufferTime:r}),null===this.fragCurrent?Promise.reject(new Error("frag load aborted, context changed in FRAG_LOADING")):d},r.doFragPartsLoad=function(t,e,r,n){var i=this;return new Promise((function(a,s){var o,u=[],l=null==(o=r.details)?void 0:o.partList;!function e(o){i.fragmentLoader.loadPart(t,o,n).then((function(n){u[o.index]=n;var s=n.part;i.hls.trigger(b.FRAG_LOADED,n);var c=Oe(r,t.sn,o.index+1)||Pe(l,t.sn,o.index+1);if(!c)return a({frag:t,part:s,partsLoaded:u});e(c)})).catch(s)}(e)}))},r.handleFragLoadError=function(t){if("data"in t){var e=t.data;t.data&&e.details===B.INTERNAL_ABORTED?this.handleFragLoadAborted(e.frag,e.part):this.hls.trigger(b.ERROR,e)}else this.hls.trigger(b.ERROR,{type:_.OTHER_ERROR,details:B.INTERNAL_EXCEPTION,err:t,error:t,fatal:!0});return null},r._handleTransmuxerFlush=function(t){var e=this.getCurrentContext(t);if(e&&this.state===Ir){var r=e.frag,n=e.part,i=e.level,a=self.performance.now();r.stats.parsing.end=a,n&&(n.stats.parsing.end=a),this.updateLevelTiming(r,n,i,t.partial)}else this.fragCurrent||this.state===Cr||this.state===Dr||(this.state=Er)},r.getCurrentContext=function(t){var e=this.levels,r=this.fragCurrent,n=t.level,i=t.sn,a=t.part;if(null==e||!e[n])return this.warn("Levels object was unset while buffering fragment "+i+" of level "+n+". The current chunk will not be buffered."),null;var s=e[n],o=a>-1?Oe(s,i,a):null,u=o?o.fragment:function(t,e,r){if(null==t||!t.details)return null;var n=t.details,i=n.fragments[e-n.startSN];return i||((i=n.fragmentHint)&&i.sn===e?i:e<n.startSN&&r&&r.sn===e?r:null)}(s,i,r);return u?(r&&r!==u&&(u.stats=r.stats),{frag:u,part:o,level:s}):null},r.bufferFragmentData=function(t,e,r,n){var i;if(t&&this.state===Ir){var a=t.data1,s=t.data2,o=a;if(a&&s&&(o=Ft(a,s)),null!=(i=o)&&i.length){var u={type:t.type,frag:e,part:r,chunkMeta:n,parent:e.type,data:o};this.hls.trigger(b.BUFFER_APPENDING,u),t.dropped&&t.independent&&!r&&this.flushBufferGap(e)}}},r.flushBufferGap=function(t){var e=this.media;if(e)if(hr.isBuffered(e,e.currentTime)){var r=e.currentTime,n=hr.bufferInfo(e,r,0),i=t.duration,a=Math.min(2*this.config.maxFragLookUpTolerance,.25*i),s=Math.max(Math.min(t.start-a,n.end-a),r+a);t.start-s>a&&this.flushMainBuffer(s,t.start)}else this.flushMainBuffer(0,t.start)},r.getFwdBufferInfo=function(t,e){var r=this.getLoadPosition();return w(r)?this.getFwdBufferInfoAtPos(t,r,e):null},r.getFwdBufferInfoAtPos=function(t,e,r){var n=this.config.maxBufferHole,i=hr.bufferInfo(t,e,n);if(0===i.len&&void 0!==i.nextStart){var a=this.fragmentTracker.getBufferedFrag(e,r);if(a&&i.nextStart<a.end)return hr.bufferInfo(t,e,Math.max(i.nextStart,n))}return i},r.getMaxBufferLength=function(t){var e,r=this.config;return e=t?Math.max(8*r.maxBufferSize/t,r.maxBufferLength):r.maxBufferLength,Math.min(e,r.maxMaxBufferLength)},r.reduceMaxBufferLength=function(t){var e=this.config,r=t||e.maxBufferLength;return e.maxMaxBufferLength>=r&&(e.maxMaxBufferLength/=2,this.warn("Reduce max buffer length to "+e.maxMaxBufferLength+"s"),!0)},r.getAppendedFrag=function(t,e){var r=this.fragmentTracker.getAppendedFrag(t,Ae);return r&&"fragment"in r?r.fragment:r},r.getNextFragment=function(t,e){var r=e.fragments,n=r.length;if(!n)return null;var i,a=this.config,s=r[0].start;if(e.live){var o=a.initialLiveManifestSize;if(n<o)return this.warn("Not enough fragments to start playback (have: "+n+", need: "+o+")"),null;e.PTSKnown||this.startFragRequested||-1!==this.startPosition||(i=this.getInitialLiveFragment(e,r),this.startPosition=i?this.hls.liveSyncPosition||i.start:t)}else t<=s&&(i=r[0]);if(!i){var u=a.lowLatencyMode?e.partEnd:e.fragmentEnd;i=this.getFragmentAtPosition(t,u,e)}return this.mapToInitFragWhenRequired(i)},r.isLoopLoading=function(t,e){var r=this.fragmentTracker.getState(t);return(r===rr||r===er&&!!t.gap)&&this.nextLoadPosition>e},r.getNextFragmentLoopLoading=function(t,e,r,n,i){var a=t.gap,s=this.getNextFragment(this.nextLoadPosition,e);if(null===s)return s;if(t=s,a&&t&&!t.gap&&r.nextStart){var o=this.getFwdBufferInfoAtPos(this.mediaBuffer?this.mediaBuffer:this.media,r.nextStart,n);if(null!==o&&r.len+o.len>=i)return this.log('buffer full after gaps in "'+n+'" playlist starting at sn: '+t.sn),null}return t},r.mapToInitFragWhenRequired=function(t){return null==t||!t.initSegment||null!=t&&t.initSegment.data||this.bitrateTest?t:t.initSegment},r.getNextPart=function(t,e,r){for(var n=-1,i=!1,a=!0,s=0,o=t.length;s<o;s++){var u=t[s];if(a=a&&!u.independent,n>-1&&r<u.start)break;var l=u.loaded;l?n=-1:(i||u.independent||a)&&u.fragment===e&&(n=s),i=l}return n},r.loadedEndOfParts=function(t,e){var r=t[t.length-1];return r&&e>r.start&&r.loaded},r.getInitialLiveFragment=function(t,e){var r=this.fragPrevious,n=null;if(r){if(t.hasProgramDateTime&&(this.log("Live playlist, switching playlist, load frag with same PDT: "+r.programDateTime),n=function(t,e,r){if(null===e||!Array.isArray(t)||!t.length||!w(e))return null;if(e<(t[0].programDateTime||0))return null;if(e>=(t[t.length-1].endProgramDateTime||0))return null;r=r||0;for(var n=0;n<t.length;++n){var i=t[n];if(Ve(e,r,i))return i}return null}(e,r.endProgramDateTime,this.config.maxFragLookUpTolerance)),!n){var i=r.sn+1;if(i>=t.startSN&&i<=t.endSN){var a=e[i-t.startSN];r.cc===a.cc&&(n=a,this.log("Live playlist, switching playlist, load frag with next SN: "+n.sn))}n||(n=function(t,e){return je(t,(function(t){return t.cc<e?1:t.cc>e?-1:0}))}(e,r.cc),n&&this.log("Live playlist, switching playlist, load frag with same CC: "+n.sn))}}else{var s=this.hls.liveSyncPosition;null!==s&&(n=this.getFragmentAtPosition(s,this.bitrateTest?t.fragmentEnd:t.edge,t))}return n},r.getFragmentAtPosition=function(t,e,r){var n,i=this.config,a=this.fragPrevious,s=r.fragments,o=r.endSN,u=r.fragmentHint,l=i.maxFragLookUpTolerance,c=r.partList,A=!!(i.lowLatencyMode&&null!=c&&c.length&&u);if(A&&u&&!this.bitrateTest&&(s=s.concat(u),o=u.sn),n=t<e?Ke(a,s,t,t>e-l?0:l):s[s.length-1]){var d=n.sn-r.startSN,f=this.fragmentTracker.getState(n);if((f===rr||f===er&&n.gap)&&(a=n),a&&n.sn===a.sn&&(!A||c[0].fragment.sn>n.sn)&&a&&n.level===a.level){var h=s[d+1];n=n.sn<o&&this.fragmentTracker.getState(h)!==rr?h:null}}return n},r.synchronizeToLiveEdge=function(t){var e=this.config,r=this.media;if(r){var n=this.hls.liveSyncPosition,i=r.currentTime,a=t.fragments[0].start,s=t.edge,o=i>=a-e.maxFragLookUpTolerance&&i<=s;if(null!==n&&r.duration>n&&(i<n||!o)){var u=void 0!==e.liveMaxLatencyDuration?e.liveMaxLatencyDuration:e.liveMaxLatencyDurationCount*t.targetduration;(!o&&r.readyState<4||i<s-u)&&(this.loadedmetadata||(this.nextLoadPosition=n),r.readyState&&(this.warn("Playback: "+i.toFixed(3)+" is located too far from the end of live sliding playlist: "+s+", reset currentTime to : "+n.toFixed(3)),r.currentTime=n))}}},r.alignPlaylists=function(t,e){var r=this.levels,n=this.levelLastLoaded,i=this.fragPrevious,a=null!==n?r[n]:null,s=t.fragments.length;if(!s)return this.warn("No fragments in live playlist"),0;var o=t.fragments[0].start,u=!e,l=t.alignedSliding&&w(o);if(u||!l&&!o){(function(t,e,r){e&&(function(t,e,r){if(function(t,e,r){return!(!e.details||!(r.endCC>r.startCC||t&&t.cc<r.startCC))}(t,r,e)){var n=function(t,e,r){var n=t.fragments,i=e.fragments;if(i.length&&n.length){var a=gr(n,i[0].cc);if(a&&(!a||a.startPTS))return a;k.log("No frag in previous level to align on")}else k.log("No fragments to align")}(r.details,e);n&&w(n.start)&&(k.log("Adjusting PTS using last level due to CC increase within current level "+e.url),mr(n.start,e))}}(t,r,e),!r.alignedSliding&&e.details&&function(t,e){if(e.fragments.length&&t.hasProgramDateTime&&e.hasProgramDateTime){var r=e.fragments[0].programDateTime,n=t.fragments[0].programDateTime,i=(n-r)/1e3+e.fragments[0].start;i&&w(i)&&(k.log("Adjusting PTS using programDateTime delta "+(n-r)+"ms, sliding:"+i.toFixed(3)+" "+t.url+" "),mr(i,t))}}(r,e.details),r.alignedSliding||!e.details||r.skippedSegments||Re(e.details,r))})(i,a,t);var c=t.fragments[0].start;return this.log("Live playlist sliding: "+c.toFixed(2)+" start-sn: "+(e?e.startSN:"na")+"->"+t.startSN+" prev-sn: "+(i?i.sn:"na")+" fragments: "+s),c}return o},r.waitForCdnTuneIn=function(t){return t.live&&t.canBlockReload&&t.partTarget&&t.tuneInGoal>Math.max(t.partHoldBack,3*t.partTarget)},r.setStartPosition=function(t,e){var r=this.startPosition;if(r<e&&(r=-1),-1===r||-1===this.lastCurrentTime){var n=null!==this.startTimeOffset,i=n?this.startTimeOffset:t.startTimeOffset;null!==i&&w(i)?(r=e+i,i<0&&(r+=t.totalduration),r=Math.min(Math.max(e,r),e+t.totalduration),this.log("Start time offset "+i+" found in "+(n?"multivariant":"media")+" playlist, adjust startPosition to "+r),this.startPosition=r):t.live?r=this.hls.liveSyncPosition||e:this.startPosition=r=0,this.lastCurrentTime=r}this.nextLoadPosition=r},r.getLoadPosition=function(){var t=this.media,e=0;return this.loadedmetadata&&t?e=t.currentTime:this.nextLoadPosition&&(e=this.nextLoadPosition),e},r.handleFragLoadAborted=function(t,e){this.transmuxer&&"initSegment"!==t.sn&&t.stats.aborted&&(this.warn("Fragment "+t.sn+(e?" part "+e.index:"")+" of level "+t.level+" was aborted"),this.resetFragmentLoading(t))},r.resetFragmentLoading=function(t){this.fragCurrent&&(this.fragContextChanged(t)||this.state===Sr)||(this.state=Er)},r.onFragmentOrKeyLoadError=function(t,e){if(e.chunkMeta&&!e.frag){var r=this.getCurrentContext(e.chunkMeta);r&&(e.frag=r.frag)}var n=e.frag;if(n&&n.type===t&&this.levels)if(this.fragContextChanged(n)){var i;this.warn("Frag load error must match current frag to retry "+n.url+" > "+(null==(i=this.fragCurrent)?void 0:i.url))}else{var a=e.details===B.FRAG_GAP;a&&this.fragmentTracker.fragBuffered(n,!0);var s=e.errorAction,o=s||{},u=o.action,l=o.retryCount,c=void 0===l?0:l,A=o.retryConfig;if(s&&5===u&&A){var d;this.resetStartWhenNotLoaded(null!=(d=this.levelLastLoaded)?d:n.level);var f=Ne(A,c);this.warn("Fragment "+n.sn+" of "+t+" "+n.level+" errored with "+e.details+", retrying loading "+(c+1)+"/"+A.maxNumRetry+" in "+f+"ms"),s.resolved=!0,this.retryDate=self.performance.now()+f,this.state=Sr}else A&&s?(this.resetFragmentErrors(t),c<A.maxNumRetry?a||(s.resolved=!0):k.warn(e.details+" reached or exceeded max retry ("+c+")")):2===(null==s?void 0:s.action)?this.state=Ur:this.state=Dr;this.tickImmediate()}},r.reduceLengthAndFlushBuffer=function(t){if(this.state===Ir||this.state===Fr){var e=t.parent,r=this.getFwdBufferInfo(this.mediaBuffer,e),n=r&&r.len>.5;n&&this.reduceMaxBufferLength(r.len);var i=!n;return i&&this.warn("Buffer full error while media.currentTime is not buffered, flush "+e+" buffer"),t.frag&&(this.fragmentTracker.removeFragment(t.frag),this.nextLoadPosition=t.frag.start),this.resetLoadingState(),i}return!1},r.resetFragmentErrors=function(t){t===de&&(this.fragCurrent=null),this.loadedmetadata||(this.startFragRequested=!1),this.state!==Cr&&(this.state=Er)},r.afterBufferFlushed=function(t,e,r){if(t){var n=hr.getBuffered(t);this.fragmentTracker.detectEvictedFragments(e,n,r),this.state===Lr&&this.resetLoadingState()}},r.resetLoadingState=function(){this.log("Reset loading state"),this.fragCurrent=null,this.fragPrevious=null,this.state=Er},r.resetStartWhenNotLoaded=function(t){if(!this.loadedmetadata){this.startFragRequested=!1;var e=this.levels?this.levels[t].details:null;null!=e&&e.live?(this.startPosition=-1,this.setStartPosition(e,0),this.resetLoadingState()):this.nextLoadPosition=this.startPosition}},r.resetWhenMissingContext=function(t){var e;this.warn("The loading context changed while buffering fragment "+t.sn+" of level "+t.level+". This chunk will not be buffered."),this.removeUnbufferedFrags(),this.resetStartWhenNotLoaded(null!=(e=this.levelLastLoaded)?e:t.level),this.resetLoadingState()},r.removeUnbufferedFrags=function(t){void 0===t&&(t=0),this.fragmentTracker.removeFragmentsInRange(t,1/0,this.playlistType,!1,!0)},r.updateLevelTiming=function(t,e,r,n){var i,a=this,s=r.details;if(s){if(Object.keys(t.elementaryStreams).reduce((function(e,i){var o=t.elementaryStreams[i];if(o){var u=o.endPTS-o.startPTS;if(u<=0)return a.warn("Could not parse fragment "+t.sn+" "+i+" duration reliably ("+u+")"),e||!1;var l=n?0:Le(s,t,o.startPTS,o.endPTS,o.startDTS,o.endDTS);return a.hls.trigger(b.LEVEL_PTS_UPDATED,{details:s,level:r,drift:l,type:i,frag:t,start:o.startPTS,end:o.endPTS}),!0}return e}),!1))r.fragmentError=0;else if(null===(null==(i=this.transmuxer)?void 0:i.error)){var o=new Error("Found no media in fragment "+t.sn+" of level "+r.id+" resetting transmuxer to fallback to playlist timing");if(this.warn(o.message),this.hls.trigger(b.ERROR,{type:_.MEDIA_ERROR,details:B.FRAG_PARSING_ERROR,fatal:!1,error:o,frag:t,reason:"Found no media in msn "+t.sn+' of level "'+r.url+'"'}),!this.hls)return;this.resetTransmuxer()}this.state=Fr,this.hls.trigger(b.FRAG_PARSED,{frag:t,part:e})}else this.warn("level.details undefined")},r.resetTransmuxer=function(){this.transmuxer&&(this.transmuxer.destroy(),this.transmuxer=null)},r.recoverWorkerError=function(t){var e,r,n;"demuxerWorker"===t.event&&(this.fragmentTracker.removeAllFragments(),this.resetTransmuxer(),this.resetStartWhenNotLoaded(null!=(e=null!=(r=this.levelLastLoaded)?r:null==(n=this.fragCurrent)?void 0:n.level)?e:0),this.resetLoadingState())},n(e,[{key:"state",get:function(){return this._state},set:function(t){var e=this._state;e!==t&&(this._state=t,this.log(e+"->"+t))}}]),e}(dr);function Pr(){return self.SourceBuffer||self.WebKitSourceBuffer}function Mr(t,e){return void 0===t&&(t=""),void 0===e&&(e=9e4),{type:t,id:-1,pid:-1,inputTimeScale:e,sequenceNumber:-1,samples:[],dropped:0}}var Qr=function(){function t(){this._audioTrack=void 0,this._id3Track=void 0,this.frameIndex=0,this.cachedData=null,this.basePTS=null,this.initPTS=null,this.lastPTS=null}var e=t.prototype;return e.resetInitSegment=function(t,e,r,n){this._id3Track={type:"id3",id:3,pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0}},e.resetTimeStamp=function(t){this.initPTS=t,this.resetContiguity()},e.resetContiguity=function(){this.basePTS=null,this.lastPTS=null,this.frameIndex=0},e.canParse=function(t,e){return!1},e.appendFrame=function(t,e,r){},e.demux=function(t,e){this.cachedData&&(t=Ft(this.cachedData,t),this.cachedData=null);var r,n=at(t,0),i=n?n.length:0,a=this._audioTrack,s=this._id3Track,o=n?function(t){for(var e=ct(t),r=0;r<e.length;r++){var n=e[r];if(ut(n))return pt(n)}}(n):void 0,u=t.length;for((null===this.basePTS||0===this.frameIndex&&w(o))&&(this.basePTS=Nr(o,e,this.initPTS),this.lastPTS=this.basePTS),null===this.lastPTS&&(this.lastPTS=this.basePTS),n&&n.length>0&&s.samples.push({pts:this.lastPTS,dts:this.lastPTS,data:n,type:be,duration:Number.POSITIVE_INFINITY});i<u;){if(this.canParse(t,i)){var l=this.appendFrame(a,t,i);l?(this.frameIndex++,this.lastPTS=l.sample.pts,r=i+=l.length):i=u}else ot(t,i)?(n=at(t,i),s.samples.push({pts:this.lastPTS,dts:this.lastPTS,data:n,type:be,duration:Number.POSITIVE_INFINITY}),r=i+=n.length):i++;if(i===u&&r!==u){var c=et(t,r);this.cachedData?this.cachedData=Ft(this.cachedData,c):this.cachedData=c}}return{audioTrack:a,videoTrack:Mr(),id3Track:s,textTrack:Mr()}},e.demuxSampleAes=function(t,e,r){return Promise.reject(new Error("["+this+"] This demuxer does not support Sample-AES decryption"))},e.flush=function(t){var e=this.cachedData;return e&&(this.cachedData=null,this.demux(e,0)),{audioTrack:this._audioTrack,videoTrack:Mr(),id3Track:this._id3Track,textTrack:Mr()}},e.destroy=function(){},t}(),Nr=function(t,e,r){return w(t)?90*t:9e4*e+(r?9e4*r.baseTime/r.timescale:0)};function Hr(t,e){return 255===t[e]&&240==(246&t[e+1])}function $r(t,e){return 1&t[e+1]?7:9}function jr(t,e){return(3&t[e+3])<<11|t[e+4]<<3|(224&t[e+5])>>>5}function Kr(t,e){return e+1<t.length&&Hr(t,e)}function Gr(t,e){if(Kr(t,e)){var r=$r(t,e);if(e+r>=t.length)return!1;var n=jr(t,e);if(n<=r)return!1;var i=e+n;return i===t.length||Kr(t,i)}return!1}function Vr(t,e,r,n,i){if(!t.samplerate){var a=function(t,e,r,n){var i,a,s,o,u=navigator.userAgent.toLowerCase(),l=n,c=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];i=1+((192&e[r+2])>>>6);var A=(60&e[r+2])>>>2;if(!(A>c.length-1))return s=(1&e[r+2])<<2,s|=(192&e[r+3])>>>6,k.log("manifest codec:"+n+", ADTS type:"+i+", samplingIndex:"+A),/firefox/i.test(u)?A>=6?(i=5,o=new Array(4),a=A-3):(i=2,o=new Array(2),a=A):-1!==u.indexOf("android")?(i=2,o=new Array(2),a=A):(i=5,o=new Array(4),n&&(-1!==n.indexOf("mp4a.40.29")||-1!==n.indexOf("mp4a.40.5"))||!n&&A>=6?a=A-3:((n&&-1!==n.indexOf("mp4a.40.2")&&(A>=6&&1===s||/vivaldi/i.test(u))||!n&&1===s)&&(i=2,o=new Array(2)),a=A)),o[0]=i<<3,o[0]|=(14&A)>>1,o[1]|=(1&A)<<7,o[1]|=s<<3,5===i&&(o[1]|=(14&a)>>1,o[2]=(1&a)<<7,o[2]|=8,o[3]=0),{config:o,samplerate:c[A],channelCount:s,codec:"mp4a.40."+i,manifestCodec:l};t.trigger(b.ERROR,{type:_.MEDIA_ERROR,details:B.FRAG_PARSING_ERROR,fatal:!0,reason:"invalid ADTS sampling index:"+A})}(e,r,n,i);if(!a)return;t.config=a.config,t.samplerate=a.samplerate,t.channelCount=a.channelCount,t.codec=a.codec,t.manifestCodec=a.manifestCodec,k.log("parsed codec:"+t.codec+", rate:"+a.samplerate+", channels:"+a.channelCount)}}function Wr(t){return 9216e4/t}function zr(t,e,r,n,i){var a,s=n+i*Wr(t.samplerate),o=function(t,e){var r=$r(t,e);if(e+r<=t.length){var n=jr(t,e)-r;if(n>0)return{headerLength:r,frameLength:n}}}(e,r);if(o){var u=o.frameLength,l=o.headerLength,c=l+u,A=Math.max(0,r+c-e.length);A?(a=new Uint8Array(c-l)).set(e.subarray(r+l,e.length),0):a=e.subarray(r+l,r+c);var d={unit:a,pts:s};return A||t.samples.push(d),{sample:d,length:c,missing:A}}var f=e.length-r;return(a=new Uint8Array(f)).set(e.subarray(r,e.length),0),{sample:{unit:a,pts:s},length:f,missing:-1}}var Yr=function(t){function e(e,r){var n;return(n=t.call(this)||this).observer=void 0,n.config=void 0,n.observer=e,n.config=r,n}l(e,t);var r=e.prototype;return r.resetInitSegment=function(e,r,n,i){t.prototype.resetInitSegment.call(this,e,r,n,i),this._audioTrack={container:"audio/adts",type:"audio",id:2,pid:-1,sequenceNumber:0,segmentCodec:"aac",samples:[],manifestCodec:r,duration:i,inputTimeScale:9e4,dropped:0}},e.probe=function(t){if(!t)return!1;for(var e=(at(t,0)||[]).length,r=t.length;e<r;e++)if(Gr(t,e))return k.log("ADTS sync word found !"),!0;return!1},r.canParse=function(t,e){return function(t,e){return function(t,e){return e+5<t.length}(t,e)&&Hr(t,e)&&jr(t,e)<=t.length-e}(t,e)},r.appendFrame=function(t,e,r){Vr(t,this.observer,e,r,t.manifestCodec);var n=zr(t,e,r,this.basePTS,this.frameIndex);if(n&&0===n.missing)return n},e}(Qr),qr=/\/emsg[-/]ID3/i,Xr=function(){function t(t,e){this.remainderData=null,this.timeOffset=0,this.config=void 0,this.videoTrack=void 0,this.audioTrack=void 0,this.id3Track=void 0,this.txtTrack=void 0,this.config=e}var e=t.prototype;return e.resetTimeStamp=function(){},e.resetInitSegment=function(t,e,r,n){var i=this.videoTrack=Mr("video",1),a=this.audioTrack=Mr("audio",1),s=this.txtTrack=Mr("text",1);if(this.id3Track=Mr("id3",1),this.timeOffset=0,null!=t&&t.byteLength){var o=St(t);if(o.video){var u=o.video,l=u.id,c=u.timescale,A=u.codec;i.id=l,i.timescale=s.timescale=c,i.codec=A}if(o.audio){var d=o.audio,f=d.id,h=d.timescale,p=d.codec;a.id=f,a.timescale=h,a.codec=p}s.id=wt.text,i.sampleDuration=0,i.duration=a.duration=n}},e.resetContiguity=function(){this.remainderData=null},t.probe=function(t){return xt(t=t.length>16384?t.subarray(0,16384):t,["moof"]).length>0},e.demux=function(t,e){this.timeOffset=e;var r=t,n=this.videoTrack,i=this.txtTrack;if(this.config.progressive){this.remainderData&&(r=Ft(this.remainderData,t));var a=function(t){var e={valid:null,remainder:null},r=xt(t,["moof"]);if(!r)return e;if(r.length<2)return e.remainder=t,e;var n=r[r.length-1];return e.valid=et(t,0,n.byteOffset-8),e.remainder=et(t,n.byteOffset-8),e}(r);this.remainderData=a.remainder,n.samples=a.valid||new Uint8Array}else n.samples=r;var s=this.extractID3Track(n,e);return i.samples=Lt(e,n),{videoTrack:n,audioTrack:this.audioTrack,id3Track:s,textTrack:this.txtTrack}},e.flush=function(){var t=this.timeOffset,e=this.videoTrack,r=this.txtTrack;e.samples=this.remainderData||new Uint8Array,this.remainderData=null;var n=this.extractID3Track(e,this.timeOffset);return r.samples=Lt(t,e),{videoTrack:e,audioTrack:Mr(),id3Track:n,textTrack:Mr()}},e.extractID3Track=function(t,e){var r=this.id3Track;if(t.samples.length){var n=xt(t.samples,["emsg"]);n&&n.forEach((function(t){var n=function(t){var e=t[0],r="",n="",i=0,a=0,s=0,o=0,u=0,l=0;if(0===e){for(;"\0"!==bt(t.subarray(l,l+1));)r+=bt(t.subarray(l,l+1)),l+=1;for(r+=bt(t.subarray(l,l+1)),l+=1;"\0"!==bt(t.subarray(l,l+1));)n+=bt(t.subarray(l,l+1)),l+=1;n+=bt(t.subarray(l,l+1)),l+=1,i=Bt(t,12),a=Bt(t,16),o=Bt(t,20),u=Bt(t,24),l=28}else if(1===e){i=Bt(t,l+=4);var c=Bt(t,l+=4),A=Bt(t,l+=4);for(l+=4,s=Math.pow(2,32)*c+A,Number.isSafeInteger(s)||(s=Number.MAX_SAFE_INTEGER,k.warn("Presentation time exceeds safe integer limit and wrapped to max safe integer in parsing emsg box")),o=Bt(t,l),u=Bt(t,l+=4),l+=4;"\0"!==bt(t.subarray(l,l+1));)r+=bt(t.subarray(l,l+1)),l+=1;for(r+=bt(t.subarray(l,l+1)),l+=1;"\0"!==bt(t.subarray(l,l+1));)n+=bt(t.subarray(l,l+1)),l+=1;n+=bt(t.subarray(l,l+1)),l+=1}return{schemeIdUri:r,value:n,timeScale:i,presentationTime:s,presentationTimeDelta:a,eventDuration:o,id:u,payload:t.subarray(l,t.byteLength)}}(t);if(qr.test(n.schemeIdUri)){var i=w(n.presentationTime)?n.presentationTime/n.timeScale:e+n.presentationTimeDelta/n.timeScale,a=4294967295===n.eventDuration?Number.POSITIVE_INFINITY:n.eventDuration/n.timeScale;a<=.001&&(a=Number.POSITIVE_INFINITY);var s=n.payload;r.samples.push({data:s,len:s.byteLength,dts:i,pts:i,type:_e,duration:a})}}))}return r},e.demuxSampleAes=function(t,e,r){return Promise.reject(new Error("The MP4 demuxer does not support SAMPLE-AES decryption"))},e.destroy=function(){},t}(),Jr=null,Zr=[32,64,96,128,160,192,224,256,288,320,352,384,416,448,32,48,56,64,80,96,112,128,160,192,224,256,320,384,32,40,48,56,64,80,96,112,128,160,192,224,256,320,32,48,56,64,80,96,112,128,144,160,176,192,224,256,8,16,24,32,40,48,56,64,80,96,112,128,144,160],tn=[44100,48e3,32e3,22050,24e3,16e3,11025,12e3,8e3],en=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],rn=[0,1,1,4];function nn(t,e,r,n,i){if(!(r+24>e.length)){var a=an(e,r);if(a&&r+a.frameLength<=e.length){var s=n+i*(9e4*a.samplesPerFrame/a.sampleRate),o={unit:e.subarray(r,r+a.frameLength),pts:s,dts:s};return t.config=[],t.channelCount=a.channelCount,t.samplerate=a.sampleRate,t.samples.push(o),{sample:o,length:a.frameLength,missing:0}}}}function an(t,e){var r=t[e+1]>>3&3,n=t[e+1]>>1&3,i=t[e+2]>>4&15,a=t[e+2]>>2&3;if(1!==r&&0!==i&&15!==i&&3!==a){var s=t[e+2]>>1&1,o=t[e+3]>>6,u=1e3*Zr[14*(3===r?3-n:3===n?3:4)+i-1],l=tn[3*(3===r?0:2===r?1:2)+a],c=3===o?1:2,A=en[r][n],d=rn[n],f=8*A*d,h=Math.floor(A*u/l+s)*d;if(null===Jr){var p=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);Jr=p?parseInt(p[1]):0}return!!Jr&&Jr<=87&&2===n&&u>=224e3&&0===o&&(t[e+3]=128|t[e+3]),{sampleRate:l,channelCount:c,frameLength:h,samplesPerFrame:f}}}function sn(t,e){return 255===t[e]&&224==(224&t[e+1])&&0!=(6&t[e+1])}function on(t,e){return e+1<t.length&&sn(t,e)}function un(t,e){if(e+1<t.length&&sn(t,e)){var r=an(t,e),n=4;null!=r&&r.frameLength&&(n=r.frameLength);var i=e+n;return i===t.length||on(t,i)}return!1}var ln=function(){function t(t){this.data=void 0,this.bytesAvailable=void 0,this.word=void 0,this.bitsAvailable=void 0,this.data=t,this.bytesAvailable=t.byteLength,this.word=0,this.bitsAvailable=0}var e=t.prototype;return e.loadWord=function(){var t=this.data,e=this.bytesAvailable,r=t.byteLength-e,n=new Uint8Array(4),i=Math.min(4,e);if(0===i)throw new Error("no bytes available");n.set(t.subarray(r,r+i)),this.word=new DataView(n.buffer).getUint32(0),this.bitsAvailable=8*i,this.bytesAvailable-=i},e.skipBits=function(t){var e;t=Math.min(t,8*this.bytesAvailable+this.bitsAvailable),this.bitsAvailable>t?(this.word<<=t,this.bitsAvailable-=t):(t-=this.bitsAvailable,t-=(e=t>>3)<<3,this.bytesAvailable-=e,this.loadWord(),this.word<<=t,this.bitsAvailable-=t)},e.readBits=function(t){var e=Math.min(this.bitsAvailable,t),r=this.word>>>32-e;if(t>32&&k.error("Cannot read more than 32 bits at a time"),this.bitsAvailable-=e,this.bitsAvailable>0)this.word<<=e;else{if(!(this.bytesAvailable>0))throw new Error("no bits available");this.loadWord()}return(e=t-e)>0&&this.bitsAvailable?r<<e|this.readBits(e):r},e.skipLZ=function(){var t;for(t=0;t<this.bitsAvailable;++t)if(0!=(this.word&2147483648>>>t))return this.word<<=t,this.bitsAvailable-=t,t;return this.loadWord(),t+this.skipLZ()},e.skipUEG=function(){this.skipBits(1+this.skipLZ())},e.skipEG=function(){this.skipBits(1+this.skipLZ())},e.readUEG=function(){var t=this.skipLZ();return this.readBits(t+1)-1},e.readEG=function(){var t=this.readUEG();return 1&t?1+t>>>1:-1*(t>>>1)},e.readBoolean=function(){return 1===this.readBits(1)},e.readUByte=function(){return this.readBits(8)},e.readUShort=function(){return this.readBits(16)},e.readUInt=function(){return this.readBits(32)},e.skipScalingList=function(t){for(var e=8,r=8,n=0;n<t;n++)0!==r&&(r=(e+this.readEG()+256)%256),e=0===r?e:r},e.readSPS=function(){var t,e,r,n=0,i=0,a=0,s=0,o=this.readUByte.bind(this),u=this.readBits.bind(this),l=this.readUEG.bind(this),c=this.readBoolean.bind(this),A=this.skipBits.bind(this),d=this.skipEG.bind(this),f=this.skipUEG.bind(this),h=this.skipScalingList.bind(this);o();var p=o();if(u(5),A(3),o(),f(),100===p||110===p||122===p||244===p||44===p||83===p||86===p||118===p||128===p){var g=l();if(3===g&&A(1),f(),f(),A(1),c())for(e=3!==g?8:12,r=0;r<e;r++)c()&&h(r<6?16:64)}f();var v=l();if(0===v)l();else if(1===v)for(A(1),d(),d(),t=l(),r=0;r<t;r++)d();f(),A(1);var m=l(),y=l(),w=u(1);0===w&&A(1),A(1),c()&&(n=l(),i=l(),a=l(),s=l());var b=[1,1];if(c()&&c())switch(o()){case 1:b=[1,1];break;case 2:b=[12,11];break;case 3:b=[10,11];break;case 4:b=[16,11];break;case 5:b=[40,33];break;case 6:b=[24,11];break;case 7:b=[20,11];break;case 8:b=[32,11];break;case 9:b=[80,33];break;case 10:b=[18,11];break;case 11:b=[15,11];break;case 12:b=[64,33];break;case 13:b=[160,99];break;case 14:b=[4,3];break;case 15:b=[3,2];break;case 16:b=[2,1];break;case 255:b=[o()<<8|o(),o()<<8|o()]}return{width:Math.ceil(16*(m+1)-2*n-2*i),height:(2-w)*(y+1)*16-(w?2:4)*(a+s),pixelRatio:b}},e.readSliceType=function(){return this.readUByte(),this.readUEG(),this.readUEG()},t}(),cn=function(){function t(t,e,r){this.keyData=void 0,this.decrypter=void 0,this.keyData=r,this.decrypter=new Br(e,{removePKCS7Padding:!1})}var e=t.prototype;return e.decryptBuffer=function(t){return this.decrypter.decrypt(t,this.keyData.key.buffer,this.keyData.iv.buffer)},e.decryptAacSample=function(t,e,r){var n=this,i=t[e].unit;if(!(i.length<=16)){var a=i.subarray(16,i.length-i.length%16),s=a.buffer.slice(a.byteOffset,a.byteOffset+a.length);this.decryptBuffer(s).then((function(a){var s=new Uint8Array(a);i.set(s,16),n.decrypter.isSync()||n.decryptAacSamples(t,e+1,r)}))}},e.decryptAacSamples=function(t,e,r){for(;;e++){if(e>=t.length)return void r();if(!(t[e].unit.length<32||(this.decryptAacSample(t,e,r),this.decrypter.isSync())))return}},e.getAvcEncryptedData=function(t){for(var e=16*Math.floor((t.length-48)/160)+16,r=new Int8Array(e),n=0,i=32;i<t.length-16;i+=160,n+=16)r.set(t.subarray(i,i+16),n);return r},e.getAvcDecryptedUnit=function(t,e){for(var r=new Uint8Array(e),n=0,i=32;i<t.length-16;i+=160,n+=16)t.set(r.subarray(n,n+16),i);return t},e.decryptAvcSample=function(t,e,r,n,i){var a=this,s=Ut(i.data),o=this.getAvcEncryptedData(s);this.decryptBuffer(o.buffer).then((function(o){i.data=a.getAvcDecryptedUnit(s,o),a.decrypter.isSync()||a.decryptAvcSamples(t,e,r+1,n)}))},e.decryptAvcSamples=function(t,e,r,n){if(t instanceof Uint8Array)throw new Error("Cannot decrypt samples of type Uint8Array");for(;;e++,r=0){if(e>=t.length)return void n();for(var i=t[e].units;!(r>=i.length);r++){var a=i[r];if(!(a.data.length<=48||1!==a.type&&5!==a.type||(this.decryptAvcSample(t,e,r,n,a),this.decrypter.isSync())))return}}},t}(),An=188,dn=function(){function t(t,e,r){this.observer=void 0,this.config=void 0,this.typeSupported=void 0,this.sampleAes=null,this.pmtParsed=!1,this.audioCodec=void 0,this.videoCodec=void 0,this._duration=0,this._pmtId=-1,this._avcTrack=void 0,this._audioTrack=void 0,this._id3Track=void 0,this._txtTrack=void 0,this.aacOverFlow=null,this.avcSample=null,this.remainderData=null,this.observer=t,this.config=e,this.typeSupported=r}t.probe=function(e){var r=t.syncOffset(e);return r>0&&k.warn("MPEG2-TS detected but first sync word found @ offset "+r),-1!==r},t.syncOffset=function(t){for(var e=t.length,r=Math.min(940,t.length-An)+1,n=0;n<r;){for(var i=!1,a=-1,s=0,o=n;o<e;o+=An){if(71!==t[o]){if(s)return-1;break}if(s++,-1===a&&0!==(a=o)&&(r=Math.min(a+18612,t.length-An)+1),i||(i=0===hn(t,o)),i&&s>1&&(0===a&&s>2||o+An>r))return a}n++}return-1},t.createTrack=function(t,e){return{container:"video"===t||"audio"===t?"video/mp2t":void 0,type:t,id:wt[t],pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0,duration:"audio"===t?e:void 0}};var e=t.prototype;return e.resetInitSegment=function(e,r,n,i){this.pmtParsed=!1,this._pmtId=-1,this._avcTrack=t.createTrack("video"),this._audioTrack=t.createTrack("audio",i),this._id3Track=t.createTrack("id3"),this._txtTrack=t.createTrack("text"),this._audioTrack.segmentCodec="aac",this.aacOverFlow=null,this.avcSample=null,this.remainderData=null,this.audioCodec=r,this.videoCodec=n,this._duration=i},e.resetTimeStamp=function(){},e.resetContiguity=function(){var t=this._audioTrack,e=this._avcTrack,r=this._id3Track;t&&(t.pesData=null),e&&(e.pesData=null),r&&(r.pesData=null),this.aacOverFlow=null,this.avcSample=null,this.remainderData=null},e.demux=function(e,r,n,i){var a;void 0===n&&(n=!1),void 0===i&&(i=!1),n||(this.sampleAes=null);var s=this._avcTrack,o=this._audioTrack,u=this._id3Track,l=this._txtTrack,c=s.pid,A=s.pesData,d=o.pid,f=u.pid,h=o.pesData,p=u.pesData,g=null,v=this.pmtParsed,m=this._pmtId,y=e.length;if(this.remainderData&&(y=(e=Ft(this.remainderData,e)).length,this.remainderData=null),y<An&&!i)return this.remainderData=e,{audioTrack:o,videoTrack:s,id3Track:u,textTrack:l};var w=Math.max(0,t.syncOffset(e));(y-=(y-w)%An)<e.byteLength&&!i&&(this.remainderData=new Uint8Array(e.buffer,y,e.buffer.byteLength-y));for(var C=0,E=w;E<y;E+=An)if(71===e[E]){var x=!!(64&e[E+1]),T=hn(e,E),S=void 0;if((48&e[E+3])>>4>1){if((S=E+5+e[E+4])===E+An)continue}else S=E+4;switch(T){case c:x&&(A&&(a=vn(A))&&this.parseAVCPES(s,l,a,!1),A={data:[],size:0}),A&&(A.data.push(e.subarray(S,E+An)),A.size+=E+An-S);break;case d:if(x){if(h&&(a=vn(h)))switch(o.segmentCodec){case"aac":this.parseAACPES(o,a);break;case"mp3":this.parseMPEGPES(o,a)}h={data:[],size:0}}h&&(h.data.push(e.subarray(S,E+An)),h.size+=E+An-S);break;case f:x&&(p&&(a=vn(p))&&this.parseID3PES(u,a),p={data:[],size:0}),p&&(p.data.push(e.subarray(S,E+An)),p.size+=E+An-S);break;case 0:x&&(S+=e[S]+1),m=this._pmtId=pn(e,S);break;case m:x&&(S+=e[S]+1);var I=gn(e,S,this.typeSupported,n);(c=I.avc)>0&&(s.pid=c),(d=I.audio)>0&&(o.pid=d,o.segmentCodec=I.segmentCodec),(f=I.id3)>0&&(u.pid=f),null===g||v||(k.warn("MPEG-TS PMT found at "+E+" after unknown PID '"+g+"'. Backtracking to sync byte @"+w+" to parse all TS packets."),g=null,E=w-188),v=this.pmtParsed=!0;break;case 17:case 8191:break;default:g=T}}else C++;if(C>0){var F=new Error("Found "+C+" TS packet/s that do not start with 0x47");this.observer.emit(b.ERROR,b.ERROR,{type:_.MEDIA_ERROR,details:B.FRAG_PARSING_ERROR,fatal:!1,error:F,reason:F.message})}s.pesData=A,o.pesData=h,u.pesData=p;var L={audioTrack:o,videoTrack:s,id3Track:u,textTrack:l};return i&&this.extractRemainingSamples(L),L},e.flush=function(){var t,e=this.remainderData;return this.remainderData=null,t=e?this.demux(e,-1,!1,!0):{videoTrack:this._avcTrack,audioTrack:this._audioTrack,id3Track:this._id3Track,textTrack:this._txtTrack},this.extractRemainingSamples(t),this.sampleAes?this.decrypt(t,this.sampleAes):t},e.extractRemainingSamples=function(t){var e,r=t.audioTrack,n=t.videoTrack,i=t.id3Track,a=t.textTrack,s=n.pesData,o=r.pesData,u=i.pesData;if(s&&(e=vn(s))?(this.parseAVCPES(n,a,e,!0),n.pesData=null):n.pesData=s,o&&(e=vn(o))){switch(r.segmentCodec){case"aac":this.parseAACPES(r,e);break;case"mp3":this.parseMPEGPES(r,e)}r.pesData=null}else null!=o&&o.size&&k.log("last AAC PES packet truncated,might overlap between fragments"),r.pesData=o;u&&(e=vn(u))?(this.parseID3PES(i,e),i.pesData=null):i.pesData=u},e.demuxSampleAes=function(t,e,r){var n=this.demux(t,r,!0,!this.config.progressive),i=this.sampleAes=new cn(this.observer,this.config,e);return this.decrypt(n,i)},e.decrypt=function(t,e){return new Promise((function(r){var n=t.audioTrack,i=t.videoTrack;n.samples&&"aac"===n.segmentCodec?e.decryptAacSamples(n.samples,0,(function(){i.samples?e.decryptAvcSamples(i.samples,0,0,(function(){r(t)})):r(t)})):i.samples&&e.decryptAvcSamples(i.samples,0,0,(function(){r(t)}))}))},e.destroy=function(){this._duration=0},e.parseAVCPES=function(t,e,r,n){var i,a=this,s=this.parseAVCNALu(t,r.data),o=this.avcSample,u=!1;r.data=null,o&&s.length&&!t.audFound&&(mn(o,t),o=this.avcSample=fn(!1,r.pts,r.dts,"")),s.forEach((function(n){switch(n.type){case 1:i=!0,o||(o=a.avcSample=fn(!0,r.pts,r.dts,"")),o.frame=!0;var s=n.data;if(u&&s.length>4){var l=new ln(s).readSliceType();2!==l&&4!==l&&7!==l&&9!==l||(o.key=!0)}break;case 5:i=!0,o||(o=a.avcSample=fn(!0,r.pts,r.dts,"")),o.key=!0,o.frame=!0;break;case 6:i=!0,Rt(n.data,1,r.pts,e.samples);break;case 7:if(i=!0,u=!0,!t.sps){var c=n.data,A=new ln(c).readSPS();t.width=A.width,t.height=A.height,t.pixelRatio=A.pixelRatio,t.sps=[c],t.duration=a._duration;for(var d=c.subarray(1,4),f="avc1.",h=0;h<3;h++){var p=d[h].toString(16);p.length<2&&(p="0"+p),f+=p}t.codec=f}break;case 8:i=!0,t.pps||(t.pps=[n.data]);break;case 9:i=!1,t.audFound=!0,o&&mn(o,t),o=a.avcSample=fn(!1,r.pts,r.dts,"");break;case 12:i=!0;break;default:i=!1,o&&(o.debug+="unknown NAL "+n.type+" ")}o&&i&&o.units.push(n)})),n&&o&&(mn(o,t),this.avcSample=null)},e.getLastNalUnit=function(t){var e,r,n=this.avcSample;if(n&&0!==n.units.length||(n=t[t.length-1]),null!=(e=n)&&e.units){var i=n.units;r=i[i.length-1]}return r},e.parseAVCNALu=function(t,e){var r,n,i=e.byteLength,a=t.naluState||0,s=a,o=[],u=0,l=-1,c=0;for(-1===a&&(l=0,c=31&e[0],a=0,u=1);u<i;)if(r=e[u++],a)if(1!==a)if(r)if(1===r){if(l>=0){var A={data:e.subarray(l,u-a-1),type:c};o.push(A)}else{var d=this.getLastNalUnit(t.samples);if(d&&(s&&u<=4-s&&d.state&&(d.data=d.data.subarray(0,d.data.byteLength-s)),(n=u-a-1)>0)){var f=new Uint8Array(d.data.byteLength+n);f.set(d.data,0),f.set(e.subarray(0,n),d.data.byteLength),d.data=f,d.state=0}}u<i?(l=u,c=31&e[u],a=0):a=-1}else a=0;else a=3;else a=r?0:2;else a=r?0:1;if(l>=0&&a>=0){var h={data:e.subarray(l,i),type:c,state:a};o.push(h)}if(0===o.length){var p=this.getLastNalUnit(t.samples);if(p){var g=new Uint8Array(p.data.byteLength+e.byteLength);g.set(p.data,0),g.set(e,p.data.byteLength),p.data=g}}return t.naluState=a,o},e.parseAACPES=function(t,e){var r,n,i,a=0,s=this.aacOverFlow,o=e.data;if(s){this.aacOverFlow=null;var u=s.missing,l=s.sample.unit.byteLength;if(-1===u){var c=new Uint8Array(l+o.byteLength);c.set(s.sample.unit,0),c.set(o,l),o=c}else{var A=l-u;s.sample.unit.set(o.subarray(0,u),A),t.samples.push(s.sample),a=s.missing}}for(r=a,n=o.length;r<n-1&&!Kr(o,r);r++);if(r!==a){var d,f=r<n-1;d=f?"AAC PES did not start with ADTS header,offset:"+r:"No ADTS header found in AAC PES";var h=new Error(d);if(k.warn("parsing error: "+d),this.observer.emit(b.ERROR,b.ERROR,{type:_.MEDIA_ERROR,details:B.FRAG_PARSING_ERROR,fatal:!1,levelRetry:f,error:h,reason:d}),!f)return}if(Vr(t,this.observer,o,r,this.audioCodec),void 0!==e.pts)i=e.pts;else{if(!s)return void k.warn("[tsdemuxer]: AAC PES unknown PTS");var p=Wr(t.samplerate);i=s.sample.pts+p}for(var g,v=0;r<n;){if(r+=(g=zr(t,o,r,i,v)).length,g.missing){this.aacOverFlow=g;break}for(v++;r<n-1&&!Kr(o,r);r++);}},e.parseMPEGPES=function(t,e){var r=e.data,n=r.length,i=0,a=0,s=e.pts;if(void 0!==s)for(;a<n;)if(on(r,a)){var o=nn(t,r,a,s,i);if(!o)break;a+=o.length,i++}else a++;else k.warn("[tsdemuxer]: MPEG PES unknown PTS")},e.parseID3PES=function(t,e){if(void 0!==e.pts){var r=u({},e,{type:this._avcTrack?_e:be,duration:Number.POSITIVE_INFINITY});t.samples.push(r)}else k.warn("[tsdemuxer]: ID3 PES unknown PTS")},t}();function fn(t,e,r,n){return{key:t,frame:!1,pts:e,dts:r,units:[],debug:n,length:0}}function hn(t,e){return((31&t[e+1])<<8)+t[e+2]}function pn(t,e){return(31&t[e+10])<<8|t[e+11]}function gn(t,e,r,n){var i={audio:-1,avc:-1,id3:-1,segmentCodec:"aac"},a=e+3+((15&t[e+1])<<8|t[e+2])-4;for(e+=12+((15&t[e+10])<<8|t[e+11]);e<a;){var s=hn(t,e);switch(t[e]){case 207:if(!n){k.log("ADTS AAC with AES-128-CBC frame encryption found in unencrypted stream");break}case 15:-1===i.audio&&(i.audio=s);break;case 21:-1===i.id3&&(i.id3=s);break;case 219:if(!n){k.log("H.264 with AES-128-CBC slice encryption found in unencrypted stream");break}case 27:-1===i.avc&&(i.avc=s);break;case 3:case 4:!0!==r.mpeg&&!0!==r.mp3?k.log("MPEG audio found, not supported in this browser"):-1===i.audio&&(i.audio=s,i.segmentCodec="mp3");break;case 36:k.warn("Unsupported HEVC stream type found")}e+=5+((15&t[e+3])<<8|t[e+4])}return i}function vn(t){var e,r,n,i,a,s=0,o=t.data;if(!t||0===t.size)return null;for(;o[0].length<19&&o.length>1;){var u=new Uint8Array(o[0].length+o[1].length);u.set(o[0]),u.set(o[1],o[0].length),o[0]=u,o.splice(1,1)}if(1===((e=o[0])[0]<<16)+(e[1]<<8)+e[2]){if((r=(e[4]<<8)+e[5])&&r>t.size-6)return null;var l=e[7];192&l&&(i=536870912*(14&e[9])+4194304*(255&e[10])+16384*(254&e[11])+128*(255&e[12])+(254&e[13])/2,64&l?i-(a=536870912*(14&e[14])+4194304*(255&e[15])+16384*(254&e[16])+128*(255&e[17])+(254&e[18])/2)>54e5&&(k.warn(Math.round((i-a)/9e4)+"s delta between PTS and DTS, align them"),i=a):a=i);var c=(n=e[8])+9;if(t.size<=c)return null;t.size-=c;for(var A=new Uint8Array(t.size),d=0,f=o.length;d<f;d++){var h=(e=o[d]).byteLength;if(c){if(c>h){c-=h;continue}e=e.subarray(c),h-=c,c=0}A.set(e,s),s+=h}return r&&(r-=n+3),{data:A,pts:i,dts:a,len:r}}return null}function mn(t,e){if(t.units.length&&t.frame){if(void 0===t.pts){var r=e.samples,n=r.length;if(!n)return void e.dropped++;var i=r[n-1];t.pts=i.pts,t.dts=i.dts}e.samples.push(t)}t.debug.length&&k.log(t.pts+"/"+t.dts+":"+t.debug)}var yn=function(t){function e(){return t.apply(this,arguments)||this}l(e,t);var r=e.prototype;return r.resetInitSegment=function(e,r,n,i){t.prototype.resetInitSegment.call(this,e,r,n,i),this._audioTrack={container:"audio/mpeg",type:"audio",id:2,pid:-1,sequenceNumber:0,segmentCodec:"mp3",samples:[],manifestCodec:r,duration:i,inputTimeScale:9e4,dropped:0}},e.probe=function(t){if(!t)return!1;for(var e=(at(t,0)||[]).length,r=t.length;e<r;e++)if(un(t,e))return k.log("MPEG Audio sync word found !"),!0;return!1},r.canParse=function(t,e){return function(t,e){return sn(t,e)&&4<=t.length-e}(t,e)},r.appendFrame=function(t,e,r){if(null!==this.basePTS)return nn(t,e,r,this.basePTS,this.frameIndex)},e}(Qr),wn=function(){function t(){}return t.getSilentFrame=function(t,e){if("mp4a.40.2"===t){if(1===e)return new Uint8Array([0,200,0,128,35,128]);if(2===e)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(3===e)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(4===e)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(5===e)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);if(6===e)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,0,178,0,32,8,224])}else{if(1===e)return new Uint8Array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(2===e)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(3===e)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94])}},t}(),bn=Math.pow(2,32)-1,_n=function(){function t(){}return t.init=function(){var e;for(e in t.types={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],".mp3":[],mvex:[],mvhd:[],pasp:[],sdtp:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[],smhd:[]},t.types)t.types.hasOwnProperty(e)&&(t.types[e]=[e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2),e.charCodeAt(3)]);var r=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),n=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]);t.HDLR_TYPES={video:r,audio:n};var i=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),a=new Uint8Array([0,0,0,0,0,0,0,0]);t.STTS=t.STSC=t.STCO=a,t.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),t.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),t.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),t.STSD=new Uint8Array([0,0,0,0,0,0,0,1]);var s=new Uint8Array([105,115,111,109]),o=new Uint8Array([97,118,99,49]),u=new Uint8Array([0,0,0,1]);t.FTYP=t.box(t.types.ftyp,s,u,s,o),t.DINF=t.box(t.types.dinf,t.box(t.types.dref,i))},t.box=function(t){for(var e=8,r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];for(var a=n.length,s=a;a--;)e+=n[a].byteLength;var o=new Uint8Array(e);for(o[0]=e>>24&255,o[1]=e>>16&255,o[2]=e>>8&255,o[3]=255&e,o.set(t,4),a=0,e=8;a<s;a++)o.set(n[a],e),e+=n[a].byteLength;return o},t.hdlr=function(e){return t.box(t.types.hdlr,t.HDLR_TYPES[e])},t.mdat=function(e){return t.box(t.types.mdat,e)},t.mdhd=function(e,r){r*=e;var n=Math.floor(r/(bn+1)),i=Math.floor(r%(bn+1));return t.box(t.types.mdhd,new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,e>>24&255,e>>16&255,e>>8&255,255&e,n>>24,n>>16&255,n>>8&255,255&n,i>>24,i>>16&255,i>>8&255,255&i,85,196,0,0]))},t.mdia=function(e){return t.box(t.types.mdia,t.mdhd(e.timescale,e.duration),t.hdlr(e.type),t.minf(e))},t.mfhd=function(e){return t.box(t.types.mfhd,new Uint8Array([0,0,0,0,e>>24,e>>16&255,e>>8&255,255&e]))},t.minf=function(e){return"audio"===e.type?t.box(t.types.minf,t.box(t.types.smhd,t.SMHD),t.DINF,t.stbl(e)):t.box(t.types.minf,t.box(t.types.vmhd,t.VMHD),t.DINF,t.stbl(e))},t.moof=function(e,r,n){return t.box(t.types.moof,t.mfhd(e),t.traf(n,r))},t.moov=function(e){for(var r=e.length,n=[];r--;)n[r]=t.trak(e[r]);return t.box.apply(null,[t.types.moov,t.mvhd(e[0].timescale,e[0].duration)].concat(n).concat(t.mvex(e)))},t.mvex=function(e){for(var r=e.length,n=[];r--;)n[r]=t.trex(e[r]);return t.box.apply(null,[t.types.mvex].concat(n))},t.mvhd=function(e,r){r*=e;var n=Math.floor(r/(bn+1)),i=Math.floor(r%(bn+1)),a=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,e>>24&255,e>>16&255,e>>8&255,255&e,n>>24,n>>16&255,n>>8&255,255&n,i>>24,i>>16&255,i>>8&255,255&i,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]);return t.box(t.types.mvhd,a)},t.sdtp=function(e){var r,n,i=e.samples||[],a=new Uint8Array(4+i.length);for(r=0;r<i.length;r++)n=i[r].flags,a[r+4]=n.dependsOn<<4|n.isDependedOn<<2|n.hasRedundancy;return t.box(t.types.sdtp,a)},t.stbl=function(e){return t.box(t.types.stbl,t.stsd(e),t.box(t.types.stts,t.STTS),t.box(t.types.stsc,t.STSC),t.box(t.types.stsz,t.STSZ),t.box(t.types.stco,t.STCO))},t.avc1=function(e){var r,n,i,a=[],s=[];for(r=0;r<e.sps.length;r++)i=(n=e.sps[r]).byteLength,a.push(i>>>8&255),a.push(255&i),a=a.concat(Array.prototype.slice.call(n));for(r=0;r<e.pps.length;r++)i=(n=e.pps[r]).byteLength,s.push(i>>>8&255),s.push(255&i),s=s.concat(Array.prototype.slice.call(n));var o=t.box(t.types.avcC,new Uint8Array([1,a[3],a[4],a[5],255,224|e.sps.length].concat(a).concat([e.pps.length]).concat(s))),u=e.width,l=e.height,c=e.pixelRatio[0],A=e.pixelRatio[1];return t.box(t.types.avc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,u>>8&255,255&u,l>>8&255,255&l,0,72,0,0,0,72,0,0,0,0,0,0,0,1,18,100,97,105,108,121,109,111,116,105,111,110,47,104,108,115,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),o,t.box(t.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),t.box(t.types.pasp,new Uint8Array([c>>24,c>>16&255,c>>8&255,255&c,A>>24,A>>16&255,A>>8&255,255&A])))},t.esds=function(t){var e=t.config.length;return new Uint8Array([0,0,0,0,3,23+e,0,1,0,4,15+e,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([e]).concat(t.config).concat([6,1,2]))},t.mp4a=function(e){var r=e.samplerate;return t.box(t.types.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,e.channelCount,0,16,0,0,0,0,r>>8&255,255&r,0,0]),t.box(t.types.esds,t.esds(e)))},t.mp3=function(e){var r=e.samplerate;return t.box(t.types[".mp3"],new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,e.channelCount,0,16,0,0,0,0,r>>8&255,255&r,0,0]))},t.stsd=function(e){return"audio"===e.type?"mp3"===e.segmentCodec&&"mp3"===e.codec?t.box(t.types.stsd,t.STSD,t.mp3(e)):t.box(t.types.stsd,t.STSD,t.mp4a(e)):t.box(t.types.stsd,t.STSD,t.avc1(e))},t.tkhd=function(e){var r=e.id,n=e.duration*e.timescale,i=e.width,a=e.height,s=Math.floor(n/(bn+1)),o=Math.floor(n%(bn+1));return t.box(t.types.tkhd,new Uint8Array([1,0,0,7,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,r>>24&255,r>>16&255,r>>8&255,255&r,0,0,0,0,s>>24,s>>16&255,s>>8&255,255&s,o>>24,o>>16&255,o>>8&255,255&o,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,i>>8&255,255&i,0,0,a>>8&255,255&a,0,0]))},t.traf=function(e,r){var n=t.sdtp(e),i=e.id,a=Math.floor(r/(bn+1)),s=Math.floor(r%(bn+1));return t.box(t.types.traf,t.box(t.types.tfhd,new Uint8Array([0,0,0,0,i>>24,i>>16&255,i>>8&255,255&i])),t.box(t.types.tfdt,new Uint8Array([1,0,0,0,a>>24,a>>16&255,a>>8&255,255&a,s>>24,s>>16&255,s>>8&255,255&s])),t.trun(e,n.length+16+20+8+16+8+8),n)},t.trak=function(e){return e.duration=e.duration||4294967295,t.box(t.types.trak,t.tkhd(e),t.mdia(e))},t.trex=function(e){var r=e.id;return t.box(t.types.trex,new Uint8Array([0,0,0,0,r>>24,r>>16&255,r>>8&255,255&r,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]))},t.trun=function(e,r){var n,i,a,s,o,u,l=e.samples||[],c=l.length,A=12+16*c,d=new Uint8Array(A);for(r+=8+A,d.set(["video"===e.type?1:0,0,15,1,c>>>24&255,c>>>16&255,c>>>8&255,255&c,r>>>24&255,r>>>16&255,r>>>8&255,255&r],0),n=0;n<c;n++)a=(i=l[n]).duration,s=i.size,o=i.flags,u=i.cts,d.set([a>>>24&255,a>>>16&255,a>>>8&255,255&a,s>>>24&255,s>>>16&255,s>>>8&255,255&s,o.isLeading<<2|o.dependsOn,o.isDependedOn<<6|o.hasRedundancy<<4|o.paddingValue<<1|o.isNonSync,61440&o.degradPrio,15&o.degradPrio,u>>>24&255,u>>>16&255,u>>>8&255,255&u],12+16*n);return t.box(t.types.trun,d)},t.initSegment=function(e){t.types||t.init();var r=t.moov(e),n=new Uint8Array(t.FTYP.byteLength+r.byteLength);return n.set(t.FTYP),n.set(r,t.FTYP.byteLength),n},t}();function Bn(t,e,r,n){void 0===r&&(r=1),void 0===n&&(n=!1);var i=t*e*r;return n?Math.round(i):i}function Cn(t,e){return void 0===e&&(e=!1),Bn(t,1e3,1/9e4,e)}_n.types=void 0,_n.HDLR_TYPES=void 0,_n.STTS=void 0,_n.STSC=void 0,_n.STCO=void 0,_n.STSZ=void 0,_n.VMHD=void 0,_n.SMHD=void 0,_n.STSD=void 0,_n.FTYP=void 0,_n.DINF=void 0;var En=null,xn=null,Tn=function(){function t(t,e,r,n){if(this.observer=void 0,this.config=void 0,this.typeSupported=void 0,this.ISGenerated=!1,this._initPTS=null,this._initDTS=null,this.nextAvcDts=null,this.nextAudioPts=null,this.videoSampleDuration=null,this.isAudioContiguous=!1,this.isVideoContiguous=!1,this.observer=t,this.config=e,this.typeSupported=r,this.ISGenerated=!1,null===En){var i=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);En=i?parseInt(i[1]):0}if(null===xn){var a=navigator.userAgent.match(/Safari\/(\d+)/i);xn=a?parseInt(a[1]):0}}var e=t.prototype;return e.destroy=function(){},e.resetTimeStamp=function(t){k.log("[mp4-remuxer]: initPTS & initDTS reset"),this._initPTS=this._initDTS=t},e.resetNextTimestamp=function(){k.log("[mp4-remuxer]: reset next timestamp"),this.isVideoContiguous=!1,this.isAudioContiguous=!1},e.resetInitSegment=function(){k.log("[mp4-remuxer]: ISGenerated flag reset"),this.ISGenerated=!1},e.getVideoStartPts=function(t){var e=!1,r=t.reduce((function(t,r){var n=r.pts-t;return n<-4294967296?(e=!0,Sn(t,r.pts)):n>0?t:r.pts}),t[0].pts);return e&&k.debug("PTS rollover detected"),r},e.remux=function(t,e,r,n,i,a,s,o){var u,l,c,A,d,f,h=i,p=i,g=t.pid>-1,v=e.pid>-1,m=e.samples.length,y=t.samples.length>0,w=s&&m>0||m>1;if((!g||y)&&(!v||w)||this.ISGenerated||s){this.ISGenerated||(c=this.generateIS(t,e,i,a));var b,_=this.isVideoContiguous,B=-1;if(w&&(B=function(t){for(var e=0;e<t.length;e++)if(t[e].key)return e;return-1}(e.samples),!_&&this.config.forceKeyFrameOnDiscontinuity))if(f=!0,B>0){k.warn("[mp4-remuxer]: Dropped "+B+" out of "+m+" video samples due to a missing keyframe");var C=this.getVideoStartPts(e.samples);e.samples=e.samples.slice(B),e.dropped+=B,b=p+=(e.samples[0].pts-C)/e.inputTimeScale}else-1===B&&(k.warn("[mp4-remuxer]: No keyframe found out of "+m+" video samples"),f=!1);if(this.ISGenerated){if(y&&w){var E=this.getVideoStartPts(e.samples),x=(Sn(t.samples[0].pts,E)-E)/e.inputTimeScale;h+=Math.max(0,x),p+=Math.max(0,-x)}if(y){if(t.samplerate||(k.warn("[mp4-remuxer]: regenerate InitSegment as audio detected"),c=this.generateIS(t,e,i,a)),l=this.remuxAudio(t,h,this.isAudioContiguous,a,v||w||o===de?p:void 0),w){var T=l?l.endPTS-l.startPTS:0;e.inputTimeScale||(k.warn("[mp4-remuxer]: regenerate InitSegment as video detected"),c=this.generateIS(t,e,i,a)),u=this.remuxVideo(e,p,_,T)}}else w&&(u=this.remuxVideo(e,p,_,0));u&&(u.firstKeyFrame=B,u.independent=-1!==B,u.firstKeyFramePTS=b)}}return this.ISGenerated&&this._initPTS&&this._initDTS&&(r.samples.length&&(d=kn(r,i,this._initPTS,this._initDTS)),n.samples.length&&(A=In(n,i,this._initPTS))),{audio:l,video:u,initSegment:c,independent:f,text:A,id3:d}},e.generateIS=function(t,e,r,n){var i,a,s,o=t.samples,u=e.samples,l=this.typeSupported,c={},A=this._initPTS,d=!A||n,f="audio/mp4";if(d&&(i=a=1/0),t.config&&o.length&&(t.timescale=t.samplerate,"mp3"===t.segmentCodec&&(l.mpeg?(f="audio/mpeg",t.codec=""):l.mp3&&(t.codec="mp3")),c.audio={id:"audio",container:f,codec:t.codec,initSegment:"mp3"===t.segmentCodec&&l.mpeg?new Uint8Array(0):_n.initSegment([t]),metadata:{channelCount:t.channelCount}},d&&(s=t.inputTimeScale,A&&s===A.timescale?d=!1:i=a=o[0].pts-Math.round(s*r))),e.sps&&e.pps&&u.length&&(e.timescale=e.inputTimeScale,c.video={id:"main",container:"video/mp4",codec:e.codec,initSegment:_n.initSegment([e]),metadata:{width:e.width,height:e.height}},d))if(s=e.inputTimeScale,A&&s===A.timescale)d=!1;else{var h=this.getVideoStartPts(u),p=Math.round(s*r);a=Math.min(a,Sn(u[0].dts,h)-p),i=Math.min(i,h-p)}if(Object.keys(c).length)return this.ISGenerated=!0,d?(this._initPTS={baseTime:i,timescale:s},this._initDTS={baseTime:a,timescale:s}):i=s=void 0,{tracks:c,initPTS:i,timescale:s}},e.remuxVideo=function(t,e,r,n){var i,a,s=t.inputTimeScale,o=t.samples,l=[],c=o.length,A=this._initPTS,d=this.nextAvcDts,f=8,h=this.videoSampleDuration,p=Number.POSITIVE_INFINITY,g=Number.NEGATIVE_INFINITY,v=!1;r&&null!==d||(d=e*s-(o[0].pts-Sn(o[0].dts,o[0].pts)));for(var m=A.baseTime*s/A.timescale,y=0;y<c;y++){var w=o[y];w.pts=Sn(w.pts-m,d),w.dts=Sn(w.dts-m,d),w.dts<o[y>0?y-1:y].dts&&(v=!0)}v&&o.sort((function(t,e){var r=t.dts-e.dts,n=t.pts-e.pts;return r||n})),i=o[0].dts;var C=o[o.length-1].dts-i,E=C?Math.round(C/(c-1)):h||t.inputTimeScale/30;if(r){var x=i-d,T=x>E,S=x<-1;if((T||S)&&(T?k.warn("AVC: "+Cn(x,!0)+" ms ("+x+"dts) hole between fragments detected, filling it"):k.warn("AVC: "+Cn(-x,!0)+" ms ("+x+"dts) overlapping between fragments detected"),!S||d>=o[0].pts)){i=d;var I=o[0].pts-x;o[0].dts=i,o[0].pts=I,k.log("Video: First PTS/DTS adjusted: "+Cn(I,!0)+"/"+Cn(i,!0)+", delta: "+Cn(x,!0)+" ms")}}i=Math.max(0,i);for(var F=0,L=0,D=0;D<c;D++){for(var R=o[D],U=R.units,O=U.length,P=0,M=0;M<O;M++)P+=U[M].data.length;L+=P,F+=O,R.length=P,R.dts=Math.max(R.dts,i),p=Math.min(R.pts,p),g=Math.max(R.pts,g)}a=o[c-1].dts;var Q,N=L+4*F+8;try{Q=new Uint8Array(N)}catch(t){return void this.observer.emit(b.ERROR,b.ERROR,{type:_.MUX_ERROR,details:B.REMUX_ALLOC_ERROR,fatal:!1,error:t,bytes:N,reason:"fail allocating video mdat "+N})}var H=new DataView(Q.buffer);H.setUint32(0,N),Q.set(_n.types.mdat,4);for(var $=!1,j=Number.POSITIVE_INFINITY,K=Number.POSITIVE_INFINITY,G=Number.NEGATIVE_INFINITY,V=Number.NEGATIVE_INFINITY,W=0;W<c;W++){for(var z=o[W],Y=z.units,q=0,X=0,J=Y.length;X<J;X++){var Z=Y[X],tt=Z.data,et=Z.data.byteLength;H.setUint32(f,et),f+=4,Q.set(tt,f),f+=et,q+=4+et}var rt=void 0;if(W<c-1)h=o[W+1].dts-z.dts,rt=o[W+1].pts-z.pts;else{var nt=this.config,it=W>0?z.dts-o[W-1].dts:E;if(rt=W>0?z.pts-o[W-1].pts:E,nt.stretchShortVideoTrack&&null!==this.nextAudioPts){var at=Math.floor(nt.maxBufferHole*s),st=(n?p+n*s:this.nextAudioPts)-z.pts;st>at?((h=st-it)<0?h=it:$=!0,k.log("[mp4-remuxer]: It is approximately "+st/90+" ms to the next segment; using duration "+h/90+" ms for the last video frame.")):h=it}else h=it}var ot=Math.round(z.pts-z.dts);j=Math.min(j,h),G=Math.max(G,h),K=Math.min(K,rt),V=Math.max(V,rt),l.push(new Ln(z.key,h,q,ot))}if(l.length)if(En){if(En<70){var ut=l[0].flags;ut.dependsOn=2,ut.isNonSync=0}}else if(xn&&V-K<G-j&&E/G<.025&&0===l[0].cts){k.warn("Found irregular gaps in sample duration. Using PTS instead of DTS to determine MP4 sample duration.");for(var lt=i,ct=0,At=l.length;ct<At;ct++){var dt=lt+l[ct].duration,ft=lt+l[ct].cts;if(ct<At-1){var ht=dt+l[ct+1].cts;l[ct].duration=ht-ft}else l[ct].duration=ct?l[ct-1].duration:E;l[ct].cts=0,lt=dt}}h=$||!h?E:h,this.nextAvcDts=d=a+h,this.videoSampleDuration=h,this.isVideoContiguous=!0;var pt={data1:_n.moof(t.sequenceNumber++,i,u({},t,{samples:l})),data2:Q,startPTS:p/s,endPTS:(g+h)/s,startDTS:i/s,endDTS:d/s,type:"video",hasAudio:!1,hasVideo:!0,nb:l.length,dropped:t.dropped};return t.samples=[],t.dropped=0,pt},e.remuxAudio=function(t,e,r,n,i){var a=t.inputTimeScale,s=a/(t.samplerate?t.samplerate:a),o="aac"===t.segmentCodec?1024:1152,l=o*s,c=this._initPTS,A="mp3"===t.segmentCodec&&this.typeSupported.mpeg,d=[],f=void 0!==i,h=t.samples,p=A?0:8,g=this.nextAudioPts||-1,v=e*a,m=c.baseTime*a/c.timescale;if(this.isAudioContiguous=r=r||h.length&&g>0&&(n&&Math.abs(v-g)<9e3||Math.abs(Sn(h[0].pts-m,v)-g)<20*l),h.forEach((function(t){t.pts=Sn(t.pts-m,v)})),!r||g<0){if(h=h.filter((function(t){return t.pts>=0})),!h.length)return;g=0===i?0:n&&!f?Math.max(0,v):h[0].pts}if("aac"===t.segmentCodec)for(var y=this.config.maxAudioFramesDrift,w=0,C=g;w<h.length;w++){var E=h[w],x=E.pts,T=x-C,S=Math.abs(1e3*T/a);if(T<=-y*l&&f)0===w&&(k.warn("Audio frame @ "+(x/a).toFixed(3)+"s overlaps nextAudioPts by "+Math.round(1e3*T/a)+" ms."),this.nextAudioPts=g=C=x);else if(T>=y*l&&S<1e4&&f){var I=Math.round(T/l);(C=x-I*l)<0&&(I--,C+=l),0===w&&(this.nextAudioPts=g=C),k.warn("[mp4-remuxer]: Injecting "+I+" audio frame @ "+(C/a).toFixed(3)+"s due to "+Math.round(1e3*T/a)+" ms gap.");for(var F=0;F<I;F++){var L=Math.max(C,0),D=wn.getSilentFrame(t.manifestCodec||t.codec,t.channelCount);D||(k.log("[mp4-remuxer]: Unable to get silent frame for given audio codec; duplicating last frame instead."),D=E.unit.subarray()),h.splice(w,0,{unit:D,pts:L}),C+=l,w++}}E.pts=C,C+=l}for(var R,U=null,O=null,P=0,M=h.length;M--;)P+=h[M].unit.byteLength;for(var Q=0,N=h.length;Q<N;Q++){var H=h[Q],$=H.unit,j=H.pts;if(null!==O)d[Q-1].duration=Math.round((j-O)/s);else{if(r&&"aac"===t.segmentCodec&&(j=g),U=j,!(P>0))return;P+=p;try{R=new Uint8Array(P)}catch(t){return void this.observer.emit(b.ERROR,b.ERROR,{type:_.MUX_ERROR,details:B.REMUX_ALLOC_ERROR,fatal:!1,error:t,bytes:P,reason:"fail allocating audio mdat "+P})}A||(new DataView(R.buffer).setUint32(0,P),R.set(_n.types.mdat,4))}R.set($,p);var K=$.byteLength;p+=K,d.push(new Ln(!0,o,K,0)),O=j}var G=d.length;if(G){var V=d[d.length-1];this.nextAudioPts=g=O+s*V.duration;var W=A?new Uint8Array(0):_n.moof(t.sequenceNumber++,U/s,u({},t,{samples:d}));t.samples=[];var z=U/a,Y=g/a,q={data1:W,data2:R,startPTS:z,endPTS:Y,startDTS:z,endDTS:Y,type:"audio",hasAudio:!0,hasVideo:!1,nb:G};return this.isAudioContiguous=!0,q}},e.remuxEmptyAudio=function(t,e,r,n){var i=t.inputTimeScale,a=i/(t.samplerate?t.samplerate:i),s=this.nextAudioPts,o=this._initDTS,u=9e4*o.baseTime/o.timescale,l=(null!==s?s:n.startDTS*i)+u,c=n.endDTS*i+u,A=1024*a,d=Math.ceil((c-l)/A),f=wn.getSilentFrame(t.manifestCodec||t.codec,t.channelCount);if(k.warn("[mp4-remuxer]: remux empty Audio"),f){for(var h=[],p=0;p<d;p++){var g=l+p*A;h.push({unit:f,pts:g,dts:g})}return t.samples=h,this.remuxAudio(t,e,r,!1)}k.trace("[mp4-remuxer]: Unable to remuxEmptyAudio since we were unable to get a silent frame for given audio codec")},t}();function Sn(t,e){var r;if(null===e)return t;for(r=e<t?-8589934592:8589934592;Math.abs(t-e)>4294967296;)t+=r;return t}function kn(t,e,r,n){var i=t.samples.length;if(i){for(var a=t.inputTimeScale,s=0;s<i;s++){var o=t.samples[s];o.pts=Sn(o.pts-r.baseTime*a/r.timescale,e*a)/a,o.dts=Sn(o.dts-n.baseTime*a/n.timescale,e*a)/a}var u=t.samples;return t.samples=[],{samples:u}}}function In(t,e,r){var n=t.samples.length;if(n){for(var i=t.inputTimeScale,a=0;a<n;a++){var s=t.samples[a];s.pts=Sn(s.pts-9e4*r.baseTime/r.timescale,e*i)/i}t.samples.sort((function(t,e){return t.pts-e.pts}));var o=t.samples;return t.samples=[],{samples:o}}}var Fn,Ln=function(t,e,r,n){this.size=void 0,this.duration=void 0,this.cts=void 0,this.flags=void 0,this.duration=e,this.size=r,this.cts=n,this.flags=new Dn(t)},Dn=function(t){this.isLeading=0,this.isDependedOn=0,this.hasRedundancy=0,this.degradPrio=0,this.dependsOn=1,this.isNonSync=1,this.dependsOn=t?2:1,this.isNonSync=t?0:1},Rn=function(){function t(){this.emitInitSegment=!1,this.audioCodec=void 0,this.videoCodec=void 0,this.initData=void 0,this.initPTS=null,this.initTracks=void 0,this.lastEndTime=null}var e=t.prototype;return e.destroy=function(){},e.resetTimeStamp=function(t){this.initPTS=t,this.lastEndTime=null},e.resetNextTimestamp=function(){this.lastEndTime=null},e.resetInitSegment=function(t,e,r,n){this.audioCodec=e,this.videoCodec=r,this.generateInitSegment(function(t,e){if(!t||!e)return t;var r=e.keyId;return r&&e.isCommonEncryption&&xt(t,["moov","trak"]).forEach((function(t){var e=xt(t,["mdia","minf","stbl","stsd"])[0].subarray(8),n=xt(e,["enca"]),i=n.length>0;i||(n=xt(e,["encv"])),n.forEach((function(t){xt(i?t.subarray(28):t.subarray(78),["sinf"]).forEach((function(t){var e=kt(t);if(e){var n=e.subarray(8,24);n.some((function(t){return 0!==t}))||(k.log("[eme] Patching keyId in 'enc"+(i?"a":"v")+">sinf>>tenc' box: "+vt(n)+" -> "+vt(r)),e.set(r,8))}}))}))})),t}(t,n)),this.emitInitSegment=!0},e.generateInitSegment=function(t){var e=this.audioCodec,r=this.videoCodec;if(null==t||!t.byteLength)return this.initTracks=void 0,void(this.initData=void 0);var n=this.initData=St(t);e||(e=Un(n.audio,O)),r||(r=Un(n.video,P));var i={};n.audio&&n.video?i.audiovideo={container:"video/mp4",codec:e+","+r,initSegment:t,id:"main"}:n.audio?i.audio={container:"audio/mp4",codec:e,initSegment:t,id:"audio"}:n.video?i.video={container:"video/mp4",codec:r,initSegment:t,id:"main"}:k.warn("[passthrough-remuxer.ts]: initSegment does not contain moov or trak boxes."),this.initTracks=i},e.remux=function(t,e,r,n,i,a){var s,o,u=this.initPTS,l=this.lastEndTime,c={audio:void 0,video:void 0,text:n,id3:r,initSegment:void 0};w(l)||(l=this.lastEndTime=i||0);var A=e.samples;if(null==A||!A.length)return c;var d={initPTS:void 0,timescale:1},f=this.initData;if(null!=(s=f)&&s.length||(this.generateInitSegment(A),f=this.initData),null==(o=f)||!o.length)return k.warn("[passthrough-remuxer.ts]: Failed to generate initSegment."),c;this.emitInitSegment&&(d.tracks=this.initTracks,this.emitInitSegment=!1);var h=function(t,e){for(var r=0,n=0,i=0,a=xt(t,["moof","traf"]),s=0;s<a.length;s++){var o=a[s],u=xt(o,["tfhd"])[0],l=e[Bt(u,4)];if(l){var c=l.default,A=Bt(u,0)|(null==c?void 0:c.flags),d=null==c?void 0:c.duration;8&A&&(d=Bt(u,2&A?12:8));for(var f=l.timescale||9e4,h=xt(o,["trun"]),p=0;p<h.length;p++)!(r=It(h[p]))&&d&&(r=d*Bt(h[p],4)),l.type===P?n+=r/f:l.type===O&&(i+=r/f)}}if(0===n&&0===i){for(var g=0,v=xt(t,["sidx"]),m=0;m<v.length;m++){var y=Tt(v[m]);null!=y&&y.references&&(g+=y.references.reduce((function(t,e){return t+e.info.duration||0}),0))}return g}return n||i}(A,f),p=function(t,e){return xt(e,["moof","traf"]).reduce((function(e,r){var n=xt(r,["tfdt"])[0],i=n[0],a=xt(r,["tfhd"]).reduce((function(e,r){var a=Bt(r,4),s=t[a];if(s){var o=Bt(n,4);if(1===i){if(o===mt)return k.warn("[mp4-demuxer]: Ignoring assumed invalid signed 64-bit track fragment decode time"),e;o*=mt+1,o+=Bt(n,8)}var u=o/(s.timescale||9e4);if(isFinite(u)&&(null===e||u<e))return u}return e}),null);return null!==a&&isFinite(a)&&(null===e||a<e)?a:e}),null)}(f,A),g=null===p?i:p;(function(t,e,r,n){if(null===t)return!0;var i=Math.max(n,1),a=e-t.baseTime/t.timescale;return Math.abs(a-r)>i}(u,g,i,h)||d.timescale!==u.timescale&&a)&&(d.initPTS=g-i,u&&1===u.timescale&&k.warn("Adjusting initPTS by "+(d.initPTS-u.baseTime)),this.initPTS=u={baseTime:d.initPTS,timescale:1});var v=t?g-u.baseTime/u.timescale:l,m=v+h;!function(t,e,r){xt(e,["moof","traf"]).forEach((function(e){xt(e,["tfhd"]).forEach((function(n){var i=Bt(n,4),a=t[i];if(a){var s=a.timescale||9e4;xt(e,["tfdt"]).forEach((function(t){var e=t[0],n=Bt(t,4);if(0===e)n-=r*s,Et(t,4,n=Math.max(n,0));else{n*=Math.pow(2,32),n+=Bt(t,8),n-=r*s,n=Math.max(n,0);var i=Math.floor(n/(mt+1)),a=Math.floor(n%(mt+1));Et(t,4,i),Et(t,8,a)}}))}}))}))}(f,A,u.baseTime/u.timescale),h>0?this.lastEndTime=m:(k.warn("Duration parsed from mp4 should be greater than zero"),this.resetNextTimestamp());var y=!!f.audio,b=!!f.video,_="";y&&(_+="audio"),b&&(_+="video");var B={data1:A,startPTS:v,startDTS:v,endPTS:m,endDTS:m,type:_,hasAudio:y,hasVideo:b,nb:1,dropped:0};return c.audio="audio"===B.type?B:void 0,c.video="audio"!==B.type?B:void 0,c.initSegment=d,c.id3=kn(r,i,u,u),n.samples.length&&(c.text=In(n,i,u)),c},t}();function Un(t,e){var r=null==t?void 0:t.codec;return r&&r.length>4?r:"hvc1"===r||"hev1"===r?"hvc1.1.6.L120.90":"av01"===r?"av01.0.04M.08":"avc1"===r||e===P?"avc1.42e01e":"mp4a.40.5"}try{Fn=self.performance.now.bind(self.performance)}catch(s){k.debug("Unable to use Performance API on this environment"),Fn="undefined"!=typeof self&&self.Date.now}var On=[{demux:Xr,remux:Rn},{demux:dn,remux:Tn},{demux:Yr,remux:Tn},{demux:yn,remux:Tn}],Pn=function(){function t(t,e,r,n,i){this.async=!1,this.observer=void 0,this.typeSupported=void 0,this.config=void 0,this.vendor=void 0,this.id=void 0,this.demuxer=void 0,this.remuxer=void 0,this.decrypter=void 0,this.probe=void 0,this.decryptionPromise=null,this.transmuxConfig=void 0,this.currentTransmuxState=void 0,this.observer=t,this.typeSupported=e,this.config=r,this.vendor=n,this.id=i}var e=t.prototype;return e.configure=function(t){this.transmuxConfig=t,this.decrypter&&this.decrypter.reset()},e.push=function(t,e,r,n){var i=this,a=r.transmuxing;a.executeStart=Fn();var s=new Uint8Array(t),o=this.currentTransmuxState,u=this.transmuxConfig;n&&(this.currentTransmuxState=n);var l=n||o,c=l.contiguous,A=l.discontinuity,d=l.trackSwitch,f=l.accurateTimeOffset,h=l.timeOffset,p=l.initSegmentChange,g=u.audioCodec,v=u.videoCodec,m=u.defaultInitPts,y=u.duration,w=u.initSegmentData,C=function(t,e){var r=null;return t.byteLength>0&&null!=e&&null!=e.key&&null!==e.iv&&null!=e.method&&(r=e),r}(s,e);if(C&&"AES-128"===C.method){var E=this.getDecrypter();if(!E.isSync())return this.decryptionPromise=E.webCryptoDecrypt(s,C.key.buffer,C.iv.buffer).then((function(t){var e=i.push(t,null,r);return i.decryptionPromise=null,e})),this.decryptionPromise;var x=E.softwareDecrypt(s,C.key.buffer,C.iv.buffer);if(r.part>-1&&(x=E.flush()),!x)return a.executeEnd=Fn(),Mn(r);s=new Uint8Array(x)}var T=this.needsProbing(A,d);if(T){var S=this.configureTransmuxer(s);if(S)return k.warn("[transmuxer] "+S.message),this.observer.emit(b.ERROR,b.ERROR,{type:_.MEDIA_ERROR,details:B.FRAG_PARSING_ERROR,fatal:!1,error:S,reason:S.message}),a.executeEnd=Fn(),Mn(r)}(A||d||p||T)&&this.resetInitSegment(w,g,v,y,e),(A||p||T)&&this.resetInitialTimestamp(m),c||this.resetContiguity();var I=this.transmux(s,C,h,f,r),F=this.currentTransmuxState;return F.contiguous=!0,F.discontinuity=!1,F.trackSwitch=!1,a.executeEnd=Fn(),I},e.flush=function(t){var e=this,r=t.transmuxing;r.executeStart=Fn();var n=this.decrypter,i=this.currentTransmuxState,a=this.decryptionPromise;if(a)return a.then((function(){return e.flush(t)}));var s=[],o=i.timeOffset;if(n){var u=n.flush();u&&s.push(this.push(u,null,t))}var l=this.demuxer,c=this.remuxer;if(!l||!c)return r.executeEnd=Fn(),[Mn(t)];var A=l.flush(o);return Qn(A)?A.then((function(r){return e.flushRemux(s,r,t),s})):(this.flushRemux(s,A,t),s)},e.flushRemux=function(t,e,r){var n=e.audioTrack,i=e.videoTrack,a=e.id3Track,s=e.textTrack,o=this.currentTransmuxState,u=o.accurateTimeOffset,l=o.timeOffset;k.log("[transmuxer.ts]: Flushed fragment "+r.sn+(r.part>-1?" p: "+r.part:"")+" of level "+r.level);var c=this.remuxer.remux(n,i,a,s,l,u,!0,this.id);t.push({remuxResult:c,chunkMeta:r}),r.transmuxing.executeEnd=Fn()},e.resetInitialTimestamp=function(t){var e=this.demuxer,r=this.remuxer;e&&r&&(e.resetTimeStamp(t),r.resetTimeStamp(t))},e.resetContiguity=function(){var t=this.demuxer,e=this.remuxer;t&&e&&(t.resetContiguity(),e.resetNextTimestamp())},e.resetInitSegment=function(t,e,r,n,i){var a=this.demuxer,s=this.remuxer;a&&s&&(a.resetInitSegment(t,e,r,n),s.resetInitSegment(t,e,r,i))},e.destroy=function(){this.demuxer&&(this.demuxer.destroy(),this.demuxer=void 0),this.remuxer&&(this.remuxer.destroy(),this.remuxer=void 0)},e.transmux=function(t,e,r,n,i){return e&&"SAMPLE-AES"===e.method?this.transmuxSampleAes(t,e,r,n,i):this.transmuxUnencrypted(t,r,n,i)},e.transmuxUnencrypted=function(t,e,r,n){var i=this.demuxer.demux(t,e,!1,!this.config.progressive),a=i.audioTrack,s=i.videoTrack,o=i.id3Track,u=i.textTrack;return{remuxResult:this.remuxer.remux(a,s,o,u,e,r,!1,this.id),chunkMeta:n}},e.transmuxSampleAes=function(t,e,r,n,i){var a=this;return this.demuxer.demuxSampleAes(t,e,r).then((function(t){return{remuxResult:a.remuxer.remux(t.audioTrack,t.videoTrack,t.id3Track,t.textTrack,r,n,!1,a.id),chunkMeta:i}}))},e.configureTransmuxer=function(t){for(var e,r=this.config,n=this.observer,i=this.typeSupported,a=this.vendor,s=0,o=On.length;s<o;s++)if(On[s].demux.probe(t)){e=On[s];break}if(!e)return new Error("Failed to find demuxer by probing fragment data");var u=this.demuxer,l=this.remuxer,c=e.remux,A=e.demux;l&&l instanceof c||(this.remuxer=new c(n,r,i,a)),u&&u instanceof A||(this.demuxer=new A(n,r,i),this.probe=A.probe)},e.needsProbing=function(t,e){return!this.demuxer||!this.remuxer||t||e},e.getDecrypter=function(){var t=this.decrypter;return t||(t=this.decrypter=new Br(this.config)),t},t}(),Mn=function(t){return{remuxResult:{},chunkMeta:t}};function Qn(t){return"then"in t&&t.then instanceof Function}var Nn=function(t,e,r,n,i){this.audioCodec=void 0,this.videoCodec=void 0,this.initSegmentData=void 0,this.duration=void 0,this.defaultInitPts=void 0,this.audioCodec=t,this.videoCodec=e,this.initSegmentData=r,this.duration=n,this.defaultInitPts=i||null},Hn=function(t,e,r,n,i,a){this.discontinuity=void 0,this.contiguous=void 0,this.accurateTimeOffset=void 0,this.trackSwitch=void 0,this.timeOffset=void 0,this.initSegmentChange=void 0,this.discontinuity=t,this.contiguous=e,this.accurateTimeOffset=r,this.trackSwitch=n,this.timeOffset=i,this.initSegmentChange=a},$n={exports:{}};!function(t){var e=Object.prototype.hasOwnProperty,r="~";function n(){}function i(t,e,r){this.fn=t,this.context=e,this.once=r||!1}function a(t,e,n,a,s){if("function"!=typeof n)throw new TypeError("The listener must be a function");var o=new i(n,a||t,s),u=r?r+e:e;return t._events[u]?t._events[u].fn?t._events[u]=[t._events[u],o]:t._events[u].push(o):(t._events[u]=o,t._eventsCount++),t}function s(t,e){0==--t._eventsCount?t._events=new n:delete t._events[e]}function o(){this._events=new n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),(new n).__proto__||(r=!1)),o.prototype.eventNames=function(){var t,n,i=[];if(0===this._eventsCount)return i;for(n in t=this._events)e.call(t,n)&&i.push(r?n.slice(1):n);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(t)):i},o.prototype.listeners=function(t){var e=r?r+t:t,n=this._events[e];if(!n)return[];if(n.fn)return[n.fn];for(var i=0,a=n.length,s=new Array(a);i<a;i++)s[i]=n[i].fn;return s},o.prototype.listenerCount=function(t){var e=r?r+t:t,n=this._events[e];return n?n.fn?1:n.length:0},o.prototype.emit=function(t,e,n,i,a,s){var o=r?r+t:t;if(!this._events[o])return!1;var u,l,c=this._events[o],A=arguments.length;if(c.fn){switch(c.once&&this.removeListener(t,c.fn,void 0,!0),A){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,e),!0;case 3:return c.fn.call(c.context,e,n),!0;case 4:return c.fn.call(c.context,e,n,i),!0;case 5:return c.fn.call(c.context,e,n,i,a),!0;case 6:return c.fn.call(c.context,e,n,i,a,s),!0}for(l=1,u=new Array(A-1);l<A;l++)u[l-1]=arguments[l];c.fn.apply(c.context,u)}else{var d,f=c.length;for(l=0;l<f;l++)switch(c[l].once&&this.removeListener(t,c[l].fn,void 0,!0),A){case 1:c[l].fn.call(c[l].context);break;case 2:c[l].fn.call(c[l].context,e);break;case 3:c[l].fn.call(c[l].context,e,n);break;case 4:c[l].fn.call(c[l].context,e,n,i);break;default:if(!u)for(d=1,u=new Array(A-1);d<A;d++)u[d-1]=arguments[d];c[l].fn.apply(c[l].context,u)}}return!0},o.prototype.on=function(t,e,r){return a(this,t,e,r,!1)},o.prototype.once=function(t,e,r){return a(this,t,e,r,!0)},o.prototype.removeListener=function(t,e,n,i){var a=r?r+t:t;if(!this._events[a])return this;if(!e)return s(this,a),this;var o=this._events[a];if(o.fn)o.fn!==e||i&&!o.once||n&&o.context!==n||s(this,a);else{for(var u=0,l=[],c=o.length;u<c;u++)(o[u].fn!==e||i&&!o[u].once||n&&o[u].context!==n)&&l.push(o[u]);l.length?this._events[a]=1===l.length?l[0]:l:s(this,a)}return this},o.prototype.removeAllListeners=function(t){var e;return t?(e=r?r+t:t,this._events[e]&&s(this,e)):(this._events=new n,this._eventsCount=0),this},o.prototype.off=o.prototype.removeListener,o.prototype.addListener=o.prototype.on,o.prefixed=r,o.EventEmitter=o,t.exports=o}($n);var jn=function(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}($n.exports);function Kn(t,e){if(!((r=e.remuxResult).audio||r.video||r.text||r.id3||r.initSegment))return!1;var r,n=[],i=e.remuxResult,a=i.audio,s=i.video;return a&&Gn(n,a),s&&Gn(n,s),t.postMessage({event:"transmuxComplete",data:e},n),!0}function Gn(t,e){e.data1&&t.push(e.data1.buffer),e.data2&&t.push(e.data2.buffer)}function Vn(t,e,r){e.reduce((function(e,r){return Kn(t,r)||e}),!1)||t.postMessage({event:"transmuxComplete",data:e[0]}),t.postMessage({event:"flush",data:r})}void 0!==o&&o&&function(t){var e=new jn,r=function(e,r){t.postMessage({event:e,data:r})};e.on(b.FRAG_DECRYPTED,r),e.on(b.ERROR,r);t.addEventListener("message",(function(n){var i=n.data;switch(i.cmd){case"init":var a=JSON.parse(i.config);t.transmuxer=new Pn(e,i.typeSupported,a,i.vendor,i.id),S(a.debug,i.id),function(){var t=function(t){k[t]=function(e){r("workerLog",{logType:t,message:e})}};for(var e in k)t(e)}(),r("init",null);break;case"configure":t.transmuxer.configure(i.config);break;case"demux":var s=t.transmuxer.push(i.data,i.decryptdata,i.chunkMeta,i.state);Qn(s)?(t.transmuxer.async=!0,s.then((function(e){Kn(t,e)})).catch((function(t){r(b.ERROR,{type:_.MEDIA_ERROR,details:B.FRAG_PARSING_ERROR,chunkMeta:i.chunkMeta,fatal:!1,error:t,err:t,reason:"transmuxer-worker push error"})}))):(t.transmuxer.async=!1,Kn(t,s));break;case"flush":var o=i.chunkMeta,u=t.transmuxer.flush(o);Qn(u)||t.transmuxer.async?(Qn(u)||(u=Promise.resolve(u)),u.then((function(e){Vn(t,e,o)})).catch((function(t){r(b.ERROR,{type:_.MEDIA_ERROR,details:B.FRAG_PARSING_ERROR,chunkMeta:i.chunkMeta,fatal:!1,error:t,err:t,reason:"transmuxer-worker flush error"})}))):Vn(t,u,o)}}))}(self);var Wn=Kt()||{isTypeSupported:function(){return!1}},zn=function(){function t(t,e,r,n){var i=this;this.error=null,this.hls=void 0,this.id=void 0,this.observer=void 0,this.frag=null,this.part=null,this.useWorker=void 0,this.workerContext=null,this.onwmsg=void 0,this.transmuxer=null,this.onTransmuxComplete=void 0,this.onFlush=void 0;var a=t.config;this.hls=t,this.id=e,this.useWorker=!!a.enableWorker,this.onTransmuxComplete=r,this.onFlush=n;var o=function(t,e){(e=e||{}).frag=i.frag,e.id=i.id,t===b.ERROR&&(i.error=e.error),i.hls.trigger(t,e)};this.observer=new jn,this.observer.on(b.FRAG_DECRYPTED,o),this.observer.on(b.ERROR,o);var u,l,c,A,d={mp4:Wn.isTypeSupported("video/mp4"),mpeg:Wn.isTypeSupported("audio/mpeg"),mp3:Wn.isTypeSupported('audio/mp4; codecs="mp3"')},f=navigator.vendor;if(!this.useWorker||"undefined"==typeof Worker||(a.workerPath,0))this.transmuxer=new Pn(this.observer,d,a,f,e);else try{a.workerPath?(k.log("loading Web Worker "+a.workerPath+' for "'+e+'"'),this.workerContext=(c=a.workerPath,A=new self.URL(c,self.location.href).href,{worker:new self.Worker(A),scriptURL:A})):(k.log('injecting Web Worker for "'+e+'"'),this.workerContext=(u=new self.Blob(["var exports={};var module={exports:exports};function define(f){f()};define.amd=true;("+s.toString()+")(true);"],{type:"text/javascript"}),l=self.URL.createObjectURL(u),{worker:new self.Worker(l),objectURL:l})),this.onwmsg=function(t){return i.onWorkerMessage(t)};var h=this.workerContext.worker;h.addEventListener("message",this.onwmsg),h.onerror=function(t){var r=new Error(t.message+"  ("+t.filename+":"+t.lineno+")");a.enableWorker=!1,k.warn('Error in "'+e+'" Web Worker, fallback to inline'),i.hls.trigger(b.ERROR,{type:_.OTHER_ERROR,details:B.INTERNAL_EXCEPTION,fatal:!1,event:"demuxerWorker",error:r})},h.postMessage({cmd:"init",typeSupported:d,vendor:f,id:e,config:JSON.stringify(a)})}catch(s){k.warn('Error setting up "'+e+'" Web Worker, fallback to inline',s),this.resetWorker(),this.error=null,this.transmuxer=new Pn(this.observer,d,a,f,e)}}var e=t.prototype;return e.resetWorker=function(){if(this.workerContext){var t=this.workerContext,e=t.worker,r=t.objectURL;r&&self.URL.revokeObjectURL(r),e.removeEventListener("message",this.onwmsg),e.onerror=null,e.terminate(),this.workerContext=null}},e.destroy=function(){if(this.workerContext)this.resetWorker(),this.onwmsg=void 0;else{var t=this.transmuxer;t&&(t.destroy(),this.transmuxer=null)}var e=this.observer;e&&e.removeAllListeners(),this.frag=null,this.observer=null,this.hls=null},e.push=function(t,e,r,n,i,a,s,o,u,l){var c,A,d=this;u.transmuxing.start=self.performance.now();var f=this.transmuxer,h=a?a.start:i.start,p=i.decryptdata,g=this.frag,v=!(g&&i.cc===g.cc),m=!(g&&u.level===g.level),y=g?u.sn-g.sn:-1,w=this.part?u.part-this.part.index:-1,b=0===y&&u.id>1&&u.id===(null==g?void 0:g.stats.chunkCount),_=!m&&(1===y||0===y&&(1===w||b&&w<=0)),B=self.performance.now();(m||y||0===i.stats.parsing.start)&&(i.stats.parsing.start=B),!a||!w&&_||(a.stats.parsing.start=B);var C=!(g&&(null==(c=i.initSegment)?void 0:c.url)===(null==(A=g.initSegment)?void 0:A.url)),E=new Hn(v,_,o,m,h,C);if(!_||v||C){k.log("[transmuxer-interface, "+i.type+"]: Starting new transmux session for sn: "+u.sn+" p: "+u.part+" level: "+u.level+" id: "+u.id+"\n        discontinuity: "+v+"\n        trackSwitch: "+m+"\n        contiguous: "+_+"\n        accurateTimeOffset: "+o+"\n        timeOffset: "+h+"\n        initSegmentChange: "+C);var x=new Nn(r,n,e,s,l);this.configureTransmuxer(x)}if(this.frag=i,this.part=a,this.workerContext)this.workerContext.worker.postMessage({cmd:"demux",data:t,decryptdata:p,chunkMeta:u,state:E},t instanceof ArrayBuffer?[t]:[]);else if(f){var T=f.push(t,p,u,E);Qn(T)?(f.async=!0,T.then((function(t){d.handleTransmuxComplete(t)})).catch((function(t){d.transmuxerError(t,u,"transmuxer-interface push error")}))):(f.async=!1,this.handleTransmuxComplete(T))}},e.flush=function(t){var e=this;t.transmuxing.start=self.performance.now();var r=this.transmuxer;if(this.workerContext)this.workerContext.worker.postMessage({cmd:"flush",chunkMeta:t});else if(r){var n=r.flush(t);Qn(n)||r.async?(Qn(n)||(n=Promise.resolve(n)),n.then((function(r){e.handleFlushResult(r,t)})).catch((function(r){e.transmuxerError(r,t,"transmuxer-interface flush error")}))):this.handleFlushResult(n,t)}},e.transmuxerError=function(t,e,r){this.hls&&(this.error=t,this.hls.trigger(b.ERROR,{type:_.MEDIA_ERROR,details:B.FRAG_PARSING_ERROR,chunkMeta:e,fatal:!1,error:t,err:t,reason:r}))},e.handleFlushResult=function(t,e){var r=this;t.forEach((function(t){r.handleTransmuxComplete(t)})),this.onFlush(e)},e.onWorkerMessage=function(t){var e=t.data,r=this.hls;switch(e.event){case"init":var n,i=null==(n=this.workerContext)?void 0:n.objectURL;i&&self.URL.revokeObjectURL(i);break;case"transmuxComplete":this.handleTransmuxComplete(e.data);break;case"flush":this.onFlush(e.data);break;case"workerLog":k[e.data.logType]&&k[e.data.logType](e.data.message);break;default:e.data=e.data||{},e.data.frag=this.frag,e.data.id=this.id,r.trigger(e.event,e.data)}},e.configureTransmuxer=function(t){var e=this.transmuxer;this.workerContext?this.workerContext.worker.postMessage({cmd:"configure",config:t}):e&&e.configure(t)},e.handleTransmuxComplete=function(t){t.chunkMeta.transmuxing.end=self.performance.now(),this.onTransmuxComplete(t)},t}(),Yn=function(){function t(t,e,r,n){this.config=void 0,this.media=null,this.fragmentTracker=void 0,this.hls=void 0,this.nudgeRetry=0,this.stallReported=!1,this.stalled=null,this.moved=!1,this.seeking=!1,this.config=t,this.media=e,this.fragmentTracker=r,this.hls=n}var e=t.prototype;return e.destroy=function(){this.media=null,this.hls=this.fragmentTracker=null},e.poll=function(t,e){var r=this.config,n=this.media,i=this.stalled;if(null!==n){var a=n.currentTime,s=n.seeking,o=this.seeking&&!s,u=!this.seeking&&s;if(this.seeking=s,a===t){if(u||o)this.stalled=null;else if(!(n.paused&&!s||n.ended||0===n.playbackRate)&&hr.getBuffered(n).length){var l=hr.bufferInfo(n,a,0),c=l.len>0,A=l.nextStart||0;if(c||A){if(s){var d=l.len>2,f=!A||e&&e.start<=a||A-a>2&&!this.fragmentTracker.getPartialFragment(a);if(d||f)return;this.moved=!1}if(!this.moved&&null!==this.stalled){var h,p=Math.max(A,l.start||0)-a,g=this.hls.levels?this.hls.levels[this.hls.currentLevel]:null,v=(null==g||null==(h=g.details)?void 0:h.live)?2*g.details.targetduration:2,m=this.fragmentTracker.getPartialFragment(a);if(p>0&&(p<=v||m))return void this._trySkipBufferHole(m)}var y=self.performance.now();if(null!==i){var w=y-i;if(s||!(w>=250)||(this._reportStall(l),this.media)){var b=hr.bufferInfo(n,a,r.maxBufferHole);this._tryFixBufferStall(b,w)}}else this.stalled=y}}}else if(this.moved=!0,null!==i){if(this.stallReported){var _=self.performance.now()-i;k.warn("playback not stuck anymore @"+a+", after "+Math.round(_)+"ms"),this.stallReported=!1}this.stalled=null,this.nudgeRetry=0}}},e._tryFixBufferStall=function(t,e){var r=this.config,n=this.fragmentTracker,i=this.media;if(null!==i){var a=i.currentTime,s=n.getPartialFragment(a);if(s&&(this._trySkipBufferHole(s)||!this.media))return;(t.len>r.maxBufferHole||t.nextStart&&t.nextStart-a<r.maxBufferHole)&&e>1e3*r.highBufferWatchdogPeriod&&(k.warn("Trying to nudge playhead over buffer-hole"),this.stalled=null,this._tryNudgeBuffer())}},e._reportStall=function(t){var e=this.hls,r=this.media;if(!this.stallReported&&r){this.stallReported=!0;var n=new Error("Playback stalling at @"+r.currentTime+" due to low buffer ("+JSON.stringify(t)+")");k.warn(n.message),e.trigger(b.ERROR,{type:_.MEDIA_ERROR,details:B.BUFFER_STALLED_ERROR,fatal:!1,error:n,buffer:t.len})}},e._trySkipBufferHole=function(t){var e=this.config,r=this.hls,n=this.media;if(null===n)return 0;var i=n.currentTime,a=hr.bufferInfo(n,i,0),s=i<a.start?a.start:a.nextStart;if(s){var o=a.len<=e.maxBufferHole,u=a.len>0&&a.len<1&&n.readyState<3,l=s-i;if(l>0&&(o||u)){if(l>e.maxBufferHole){var c=this.fragmentTracker,A=!1;if(0===i){var d=c.getAppendedFrag(0,Ae);d&&s<d.end&&(A=!0)}if(!A){var f=t||c.getAppendedFrag(i,Ae);if(f){for(var h=!1,p=f.end;p<s;){var g=c.getPartialFragment(p);if(!g){h=!0;break}p+=g.duration}if(h)return 0}}}var v=Math.max(s+.05,i+.1);if(k.warn("skipping hole, adjusting currentTime from "+i+" to "+v),this.moved=!0,this.stalled=null,n.currentTime=v,t&&!t.gap){var m=new Error("fragment loaded with buffer holes, seeking from "+i+" to "+v);r.trigger(b.ERROR,{type:_.MEDIA_ERROR,details:B.BUFFER_SEEK_OVER_HOLE,fatal:!1,error:m,reason:m.message,frag:t})}return v}}return 0},e._tryNudgeBuffer=function(){var t=this.config,e=this.hls,r=this.media,n=this.nudgeRetry;if(null!==r){var i=r.currentTime;if(this.nudgeRetry++,n<t.nudgeMaxRetry){var a=i+(n+1)*t.nudgeOffset,s=new Error("Nudging 'currentTime' from "+i+" to "+a);k.warn(s.message),r.currentTime=a,e.trigger(b.ERROR,{type:_.MEDIA_ERROR,details:B.BUFFER_NUDGE_ON_STALL,error:s,fatal:!1})}else{var o=new Error("Playhead still not moving while enough data buffered @"+i+" after "+t.nudgeMaxRetry+" nudges");k.error(o.message),e.trigger(b.ERROR,{type:_.MEDIA_ERROR,details:B.BUFFER_STALLED_ERROR,error:o,fatal:!0})}}},t}(),qn=function(t){function e(e,r,n){var i;return(i=t.call(this,e,r,n,"[stream-controller]",Ae)||this).audioCodecSwap=!1,i.gapController=null,i.level=-1,i._forceStartLoad=!1,i.altAudio=!1,i.audioOnly=!1,i.fragPlaying=null,i.onvplaying=null,i.onvseeked=null,i.fragLastKbps=0,i.couldBacktrack=!1,i.backtrackFragment=null,i.audioCodecSwitch=!1,i.videoBuffer=null,i._registerListeners(),i}l(e,t);var r=e.prototype;return r._registerListeners=function(){var t=this.hls;t.on(b.MEDIA_ATTACHED,this.onMediaAttached,this),t.on(b.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(b.MANIFEST_LOADING,this.onManifestLoading,this),t.on(b.MANIFEST_PARSED,this.onManifestParsed,this),t.on(b.LEVEL_LOADING,this.onLevelLoading,this),t.on(b.LEVEL_LOADED,this.onLevelLoaded,this),t.on(b.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),t.on(b.ERROR,this.onError,this),t.on(b.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),t.on(b.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),t.on(b.BUFFER_CREATED,this.onBufferCreated,this),t.on(b.BUFFER_FLUSHED,this.onBufferFlushed,this),t.on(b.LEVELS_UPDATED,this.onLevelsUpdated,this),t.on(b.FRAG_BUFFERED,this.onFragBuffered,this)},r._unregisterListeners=function(){var t=this.hls;t.off(b.MEDIA_ATTACHED,this.onMediaAttached,this),t.off(b.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(b.MANIFEST_LOADING,this.onManifestLoading,this),t.off(b.MANIFEST_PARSED,this.onManifestParsed,this),t.off(b.LEVEL_LOADED,this.onLevelLoaded,this),t.off(b.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),t.off(b.ERROR,this.onError,this),t.off(b.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),t.off(b.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),t.off(b.BUFFER_CREATED,this.onBufferCreated,this),t.off(b.BUFFER_FLUSHED,this.onBufferFlushed,this),t.off(b.LEVELS_UPDATED,this.onLevelsUpdated,this),t.off(b.FRAG_BUFFERED,this.onFragBuffered,this)},r.onHandlerDestroying=function(){this._unregisterListeners(),this.onMediaDetaching()},r.startLoad=function(t){if(this.levels){var e=this.lastCurrentTime,r=this.hls;if(this.stopLoad(),this.setInterval(100),this.level=-1,!this.startFragRequested){var n=r.startLevel;-1===n&&(r.config.testBandwidth&&this.levels.length>1?(n=0,this.bitrateTest=!0):n=r.nextAutoLevel),this.level=r.nextLoadLevel=n,this.loadedmetadata=!1}e>0&&-1===t&&(this.log("Override startPosition with lastCurrentTime @"+e.toFixed(3)),t=e),this.state=Er,this.nextLoadPosition=this.startPosition=this.lastCurrentTime=t,this.tick()}else this._forceStartLoad=!0,this.state=Cr},r.stopLoad=function(){this._forceStartLoad=!1,t.prototype.stopLoad.call(this)},r.doTick=function(){switch(this.state){case Ur:var t,e=this.levels,r=this.level,n=null==e||null==(t=e[r])?void 0:t.details;if(n&&(!n.live||this.levelLastLoaded===this.level)){if(this.waitForCdnTuneIn(n))break;this.state=Er;break}if(this.hls.nextLoadLevel!==this.level){this.state=Er;break}break;case Sr:var i,a=self.performance.now(),s=this.retryDate;(!s||a>=s||null!=(i=this.media)&&i.seeking)&&(this.resetStartWhenNotLoaded(this.level),this.state=Er)}this.state===Er&&this.doTickIdle(),this.onTickEnd()},r.onTickEnd=function(){t.prototype.onTickEnd.call(this),this.checkBuffer(),this.checkFragmentChanged()},r.doTickIdle=function(){var t=this.hls,e=this.levelLastLoaded,r=this.levels,n=this.media,i=t.config,a=t.nextLoadLevel;if(null!==e&&(n||!this.startFragRequested&&i.startFragPrefetch)&&(!this.altAudio||!this.audioOnly)&&null!=r&&r[a]){var s=r[a],o=this.getMainFwdBufferInfo();if(null!==o){var u=this.getLevelDetails();if(u&&this._streamEnded(o,u)){var l={};return this.altAudio&&(l.type="video"),this.hls.trigger(b.BUFFER_EOS,l),void(this.state=Lr)}t.loadLevel!==a&&-1===t.manualLevel&&this.log("Adapting to level "+a+" from level "+this.level),this.level=t.nextLoadLevel=a;var c=s.details;if(!c||this.state===Ur||c.live&&this.levelLastLoaded!==a)return this.level=a,void(this.state=Ur);var A=o.len,d=this.getMaxBufferLength(s.maxBitrate);if(!(A>=d)){this.backtrackFragment&&this.backtrackFragment.start>o.end&&(this.backtrackFragment=null);var f=this.backtrackFragment?this.backtrackFragment.start:o.end,h=this.getNextFragment(f,c);if(this.couldBacktrack&&!this.fragPrevious&&h&&"initSegment"!==h.sn&&this.fragmentTracker.getState(h)!==rr){var p,g=(null!=(p=this.backtrackFragment)?p:h).sn-c.startSN,v=c.fragments[g-1];v&&h.cc===v.cc&&(h=v,this.fragmentTracker.removeFragment(v))}else this.backtrackFragment&&o.len&&(this.backtrackFragment=null);if(h&&this.isLoopLoading(h,f)){if(!h.gap){var m=this.audioOnly&&!this.altAudio?O:P,y=(m===P?this.videoBuffer:this.mediaBuffer)||this.media;y&&this.afterBufferFlushed(y,m,Ae)}h=this.getNextFragmentLoopLoading(h,c,o,Ae,d)}h&&(!h.initSegment||h.initSegment.data||this.bitrateTest||(h=h.initSegment),this.loadFragment(h,s,f))}}}},r.loadFragment=function(e,r,n){var i=this.fragmentTracker.getState(e);this.fragCurrent=e,i===Ze||i===er?"initSegment"===e.sn?this._loadInitSegment(e,r):this.bitrateTest?(this.log("Fragment "+e.sn+" of level "+e.level+" is being downloaded to test bitrate and will not be buffered"),this._loadBitrateTestFrag(e,r)):(this.startFragRequested=!0,t.prototype.loadFragment.call(this,e,r,n)):this.clearTrackerIfNeeded(e)},r.getBufferedFrag=function(t){return this.fragmentTracker.getBufferedFrag(t,Ae)},r.followingBufferedFrag=function(t){return t?this.getBufferedFrag(t.end+.5):null},r.immediateLevelSwitch=function(){this.abortCurrentFrag(),this.flushMainBuffer(0,Number.POSITIVE_INFINITY)},r.nextLevelSwitch=function(){var t=this.levels,e=this.media;if(null!=e&&e.readyState){var r,n=this.getAppendedFrag(e.currentTime);n&&n.start>1&&this.flushMainBuffer(0,n.start-1);var i=this.getLevelDetails();if(null!=i&&i.live){var a=this.getMainFwdBufferInfo();if(!a||a.len<2*i.targetduration)return}if(!e.paused&&t){var s=t[this.hls.nextLoadLevel],o=this.fragLastKbps;r=o&&this.fragCurrent?this.fragCurrent.duration*s.maxBitrate/(1e3*o)+1:0}else r=0;var u=this.getBufferedFrag(e.currentTime+r);if(u){var l=this.followingBufferedFrag(u);if(l){this.abortCurrentFrag();var c=l.maxStartPTS?l.maxStartPTS:l.start,A=l.duration,d=Math.max(u.end,c+Math.min(Math.max(A-this.config.maxFragLookUpTolerance,.5*A),.75*A));this.flushMainBuffer(d,Number.POSITIVE_INFINITY)}}}},r.abortCurrentFrag=function(){var t=this.fragCurrent;switch(this.fragCurrent=null,this.backtrackFragment=null,t&&(t.abortRequests(),this.fragmentTracker.removeFragment(t)),this.state){case xr:case Tr:case Sr:case Ir:case Fr:this.state=Er}this.nextLoadPosition=this.getLoadPosition()},r.flushMainBuffer=function(e,r){t.prototype.flushMainBuffer.call(this,e,r,this.altAudio?"video":null)},r.onMediaAttached=function(e,r){t.prototype.onMediaAttached.call(this,e,r);var n=r.media;this.onvplaying=this.onMediaPlaying.bind(this),this.onvseeked=this.onMediaSeeked.bind(this),n.addEventListener("playing",this.onvplaying),n.addEventListener("seeked",this.onvseeked),this.gapController=new Yn(this.config,n,this.fragmentTracker,this.hls)},r.onMediaDetaching=function(){var e=this.media;e&&this.onvplaying&&this.onvseeked&&(e.removeEventListener("playing",this.onvplaying),e.removeEventListener("seeked",this.onvseeked),this.onvplaying=this.onvseeked=null,this.videoBuffer=null),this.fragPlaying=null,this.gapController&&(this.gapController.destroy(),this.gapController=null),t.prototype.onMediaDetaching.call(this)},r.onMediaPlaying=function(){this.tick()},r.onMediaSeeked=function(){var t=this.media,e=t?t.currentTime:null;w(e)&&this.log("Media seeked to "+e.toFixed(3));var r=this.getMainFwdBufferInfo();null!==r&&0!==r.len?this.tick():this.warn('Main forward buffer length on "seeked" event '+(r?r.len:"empty")+")")},r.onManifestLoading=function(){this.log("Trigger BUFFER_RESET"),this.hls.trigger(b.BUFFER_RESET,void 0),this.fragmentTracker.removeAllFragments(),this.couldBacktrack=!1,this.startPosition=this.lastCurrentTime=0,this.levels=this.fragPlaying=this.backtrackFragment=null,this.altAudio=this.audioOnly=!1},r.onManifestParsed=function(t,e){var r,n,i,a=!1,s=!1;e.levels.forEach((function(t){(r=t.audioCodec)&&(-1!==r.indexOf("mp4a.40.2")&&(a=!0),-1!==r.indexOf("mp4a.40.5")&&(s=!0))})),this.audioCodecSwitch=a&&s&&!("function"==typeof(null==(i=Pr())||null==(n=i.prototype)?void 0:n.changeType)),this.audioCodecSwitch&&this.log("Both AAC/HE-AAC audio found in levels; declaring level codec as HE-AAC"),this.levels=e.levels,this.startFragRequested=!1},r.onLevelLoading=function(t,e){var r=this.levels;if(r&&this.state===Er){var n=r[e.level];(!n.details||n.details.live&&this.levelLastLoaded!==e.level||this.waitForCdnTuneIn(n.details))&&(this.state=Ur)}},r.onLevelLoaded=function(t,e){var r,n=this.levels,i=e.level,a=e.details,s=a.totalduration;if(n){this.log("Level "+i+" loaded ["+a.startSN+","+a.endSN+"]"+(a.lastPartSn?"[part-"+a.lastPartSn+"-"+a.lastPartIndex+"]":"")+", cc ["+a.startCC+", "+a.endCC+"] duration:"+s);var o=n[i],u=this.fragCurrent;!u||this.state!==Tr&&this.state!==Sr||u.level===e.level&&u.urlId===o.urlId||!u.loader||this.abortCurrentFrag();var l=0;if(a.live||null!=(r=o.details)&&r.live){if(a.fragments[0]||(a.deltaUpdateFailed=!0),a.deltaUpdateFailed)return;l=this.alignPlaylists(a,o.details)}if(o.details=a,this.levelLastLoaded=i,this.hls.trigger(b.LEVEL_UPDATED,{details:a,level:i}),this.state===Ur){if(this.waitForCdnTuneIn(a))return;this.state=Er}this.startFragRequested?a.live&&this.synchronizeToLiveEdge(a):this.setStartPosition(a,l),this.tick()}else this.warn("Levels were reset while loading level "+i)},r._handleFragmentLoadProgress=function(t){var e,r=t.frag,n=t.part,i=t.payload,a=this.levels;if(a){var s=a[r.level],o=s.details;if(!o)return this.warn("Dropping fragment "+r.sn+" of level "+r.level+" after level details were reset"),void this.fragmentTracker.removeFragment(r);var u=s.videoCodec,l=o.PTSKnown||!o.live,c=null==(e=r.initSegment)?void 0:e.data,A=this._getAudioCodec(s),d=this.transmuxer=this.transmuxer||new zn(this.hls,Ae,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)),f=n?n.index:-1,h=-1!==f,p=new pr(r.level,r.sn,r.stats.chunkCount,i.byteLength,f,h),g=this.initPTS[r.cc];d.push(i,c,A,u,r,n,o.totalduration,l,p,g)}else this.warn("Levels were reset while fragment load was in progress. Fragment "+r.sn+" of level "+r.level+" will not be buffered")},r.onAudioTrackSwitching=function(t,e){var r=this.altAudio;if(!e.url){if(this.mediaBuffer!==this.media){this.log("Switching on main audio, use media.buffered to schedule main fragment loading"),this.mediaBuffer=this.media;var n=this.fragCurrent;n&&(this.log("Switching to main audio track, cancel main fragment load"),n.abortRequests(),this.fragmentTracker.removeFragment(n)),this.resetTransmuxer(),this.resetLoadingState()}else this.audioOnly&&this.resetTransmuxer();var i=this.hls;r&&(i.trigger(b.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:null}),this.fragmentTracker.removeAllFragments()),i.trigger(b.AUDIO_TRACK_SWITCHED,e)}},r.onAudioTrackSwitched=function(t,e){var r=e.id,n=!!this.hls.audioTracks[r].url;if(n){var i=this.videoBuffer;i&&this.mediaBuffer!==i&&(this.log("Switching on alternate audio, use video.buffered to schedule main fragment loading"),this.mediaBuffer=i)}this.altAudio=n,this.tick()},r.onBufferCreated=function(t,e){var r,n,i=e.tracks,a=!1;for(var s in i){var o=i[s];if("main"===o.id){if(n=s,r=o,"video"===s){var u=i[s];u&&(this.videoBuffer=u.buffer)}}else a=!0}a&&r?(this.log("Alternate track found, use "+n+".buffered to schedule main fragment loading"),this.mediaBuffer=r.buffer):this.mediaBuffer=this.media},r.onFragBuffered=function(t,e){var r=e.frag,n=e.part;if(!r||r.type===Ae){if(this.fragContextChanged(r))return this.warn("Fragment "+r.sn+(n?" p: "+n.index:"")+" of level "+r.level+" finished buffering, but was aborted. state: "+this.state),void(this.state===Fr&&(this.state=Er));var i=n?n.stats:r.stats;this.fragLastKbps=Math.round(8*i.total/(i.buffering.end-i.loading.first)),"initSegment"!==r.sn&&(this.fragPrevious=r),this.fragBufferedComplete(r,n)}},r.onError=function(t,e){var r;if(e.fatal)this.state=Dr;else switch(e.details){case B.FRAG_GAP:case B.FRAG_PARSING_ERROR:case B.FRAG_DECRYPT_ERROR:case B.FRAG_LOAD_ERROR:case B.FRAG_LOAD_TIMEOUT:case B.KEY_LOAD_ERROR:case B.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(Ae,e);break;case B.LEVEL_LOAD_ERROR:case B.LEVEL_LOAD_TIMEOUT:case B.LEVEL_PARSING_ERROR:e.levelRetry||this.state!==Ur||(null==(r=e.context)?void 0:r.type)!==ue||(this.state=Er);break;case B.BUFFER_FULL_ERROR:if(!e.parent||"main"!==e.parent)return;this.reduceLengthAndFlushBuffer(e)&&this.flushMainBuffer(0,Number.POSITIVE_INFINITY);break;case B.INTERNAL_EXCEPTION:this.recoverWorkerError(e)}},r.checkBuffer=function(){var t=this.media,e=this.gapController;if(t&&e&&t.readyState){if(this.loadedmetadata||!hr.getBuffered(t).length){var r=this.state!==Er?this.fragCurrent:null;e.poll(this.lastCurrentTime,r)}this.lastCurrentTime=t.currentTime}},r.onFragLoadEmergencyAborted=function(){this.state=Er,this.loadedmetadata||(this.startFragRequested=!1,this.nextLoadPosition=this.startPosition),this.tickImmediate()},r.onBufferFlushed=function(t,e){var r=e.type;if(r!==O||this.audioOnly&&!this.altAudio){var n=(r===P?this.videoBuffer:this.mediaBuffer)||this.media;this.afterBufferFlushed(n,r,Ae)}},r.onLevelsUpdated=function(t,e){this.levels=e.levels},r.swapAudioCodec=function(){this.audioCodecSwap=!this.audioCodecSwap},r.seekToStartPos=function(){var t=this.media;if(t){var e=t.currentTime,r=this.startPosition;if(r>=0&&e<r){if(t.seeking)return void this.log("could not seek to "+r+", already seeking at "+e);var n=hr.getBuffered(t),i=(n.length?n.start(0):0)-r;i>0&&(i<this.config.maxBufferHole||i<this.config.maxFragLookUpTolerance)&&(this.log("adjusting start position by "+i+" to match buffer start"),r+=i,this.startPosition=r),this.log("seek to target start position "+r+" from current time "+e),t.currentTime=r}}},r._getAudioCodec=function(t){var e=this.config.defaultAudioCodec||t.audioCodec;return this.audioCodecSwap&&e&&(this.log("Swapping audio codec"),e=-1!==e.indexOf("mp4a.40.5")?"mp4a.40.2":"mp4a.40.5"),e},r._loadBitrateTestFrag=function(t,e){var r=this;t.bitrateTest=!0,this._doFragLoad(t,e).then((function(n){var i=r.hls;if(n&&!r.fragContextChanged(t)){e.fragmentError=0,r.state=Er,r.startFragRequested=!1,r.bitrateTest=!1;var a=t.stats;a.parsing.start=a.parsing.end=a.buffering.start=a.buffering.end=self.performance.now(),i.trigger(b.FRAG_LOADED,n),t.bitrateTest=!1}}))},r._handleTransmuxComplete=function(t){var e,r="main",n=this.hls,i=t.remuxResult,a=t.chunkMeta,s=this.getCurrentContext(a);if(s){var o=s.frag,u=s.part,l=s.level,c=i.video,A=i.text,d=i.id3,f=i.initSegment,h=l.details,p=this.altAudio?void 0:i.audio;if(this.fragContextChanged(o))this.fragmentTracker.removeFragment(o);else{if(this.state=Ir,f){if(null!=f&&f.tracks){var g=o.initSegment||o;this._bufferInitSegment(l,f.tracks,g,a),n.trigger(b.FRAG_PARSING_INIT_SEGMENT,{frag:g,id:r,tracks:f.tracks})}var v=f.initPTS,m=f.timescale;w(v)&&(this.initPTS[o.cc]={baseTime:v,timescale:m},n.trigger(b.INIT_PTS_FOUND,{frag:o,id:r,initPTS:v,timescale:m}))}var y=o.sn!==(null==h?void 0:h.startSN);if(c&&!1!==i.independent){if(h){var _=c.startPTS,B=c.endPTS,C=c.startDTS,E=c.endDTS;if(u)u.elementaryStreams[c.type]={startPTS:_,endPTS:B,startDTS:C,endDTS:E};else if(c.firstKeyFrame&&c.independent&&1===a.id&&(this.couldBacktrack=!0),c.dropped&&c.independent){var x=this.getMainFwdBufferInfo(),T=(x?x.end:this.getLoadPosition())+this.config.maxBufferHole,S=c.firstKeyFramePTS?c.firstKeyFramePTS:_;if(y&&T<S-this.config.maxBufferHole)return void this.backtrack(o);o.setElementaryStreamInfo(c.type,o.start,B,o.start,E,!0)}o.setElementaryStreamInfo(c.type,_,B,C,E),this.backtrackFragment&&(this.backtrackFragment=o),this.bufferFragmentData(c,o,u,a)}}else if(y&&!1===i.independent)return void this.backtrack(o);if(p){var k=p.startPTS,I=p.endPTS,F=p.startDTS,L=p.endDTS;u&&(u.elementaryStreams[O]={startPTS:k,endPTS:I,startDTS:F,endDTS:L}),o.setElementaryStreamInfo(O,k,I,F,L),this.bufferFragmentData(p,o,u,a)}if(h&&null!=d&&null!=(e=d.samples)&&e.length){var D={id:r,frag:o,details:h,samples:d.samples};n.trigger(b.FRAG_PARSING_METADATA,D)}if(h&&A){var R={id:r,frag:o,details:h,samples:A.samples};n.trigger(b.FRAG_PARSING_USERDATA,R)}}}else this.resetWhenMissingContext(a)},r._bufferInitSegment=function(t,e,r,n){var i=this;if(this.state===Ir){this.audioOnly=!!e.audio&&!e.video,this.altAudio&&!this.audioOnly&&delete e.audio;var a=e.audio,s=e.video,o=e.audiovideo;if(a){var u=t.audioCodec,l=navigator.userAgent.toLowerCase();this.audioCodecSwitch&&(u&&(u=-1!==u.indexOf("mp4a.40.5")?"mp4a.40.2":"mp4a.40.5"),1!==a.metadata.channelCount&&-1===l.indexOf("firefox")&&(u="mp4a.40.5")),-1!==l.indexOf("android")&&"audio/mpeg"!==a.container&&(u="mp4a.40.2",this.log("Android: force audio codec to "+u)),t.audioCodec&&t.audioCodec!==u&&this.log('Swapping manifest audio codec "'+t.audioCodec+'" for "'+u+'"'),a.levelCodec=u,a.id="main",this.log("Init audio buffer, container:"+a.container+", codecs[selected/level/parsed]=["+(u||"")+"/"+(t.audioCodec||"")+"/"+a.codec+"]")}s&&(s.levelCodec=t.videoCodec,s.id="main",this.log("Init video buffer, container:"+s.container+", codecs[level/parsed]=["+(t.videoCodec||"")+"/"+s.codec+"]")),o&&this.log("Init audiovideo buffer, container:"+o.container+", codecs[level/parsed]=["+(t.attrs.CODECS||"")+"/"+o.codec+"]"),this.hls.trigger(b.BUFFER_CODECS,e),Object.keys(e).forEach((function(t){var a=e[t].initSegment;null!=a&&a.byteLength&&i.hls.trigger(b.BUFFER_APPENDING,{type:t,data:a,frag:r,part:null,chunkMeta:n,parent:r.type})})),this.tick()}},r.getMainFwdBufferInfo=function(){return this.getFwdBufferInfo(this.mediaBuffer?this.mediaBuffer:this.media,Ae)},r.backtrack=function(t){this.couldBacktrack=!0,this.backtrackFragment=t,this.resetTransmuxer(),this.flushBufferGap(t),this.fragmentTracker.removeFragment(t),this.fragPrevious=null,this.nextLoadPosition=t.start,this.state=Er},r.checkFragmentChanged=function(){var t=this.media,e=null;if(t&&t.readyState>1&&!1===t.seeking){var r=t.currentTime;if(hr.isBuffered(t,r)?e=this.getAppendedFrag(r):hr.isBuffered(t,r+.1)&&(e=this.getAppendedFrag(r+.1)),e){this.backtrackFragment=null;var n=this.fragPlaying,i=e.level;n&&e.sn===n.sn&&n.level===i&&e.urlId===n.urlId||(this.fragPlaying=e,this.hls.trigger(b.FRAG_CHANGED,{frag:e}),n&&n.level===i||this.hls.trigger(b.LEVEL_SWITCHED,{level:i}))}}},n(e,[{key:"nextLevel",get:function(){var t=this.nextBufferedFrag;return t?t.level:-1}},{key:"currentFrag",get:function(){var t=this.media;return t?this.fragPlaying||this.getAppendedFrag(t.currentTime):null}},{key:"currentProgramDateTime",get:function(){var t=this.media;if(t){var e=t.currentTime,r=this.currentFrag;if(r&&w(e)&&w(r.programDateTime)){var n=r.programDateTime+1e3*(e-r.start);return new Date(n)}}return null}},{key:"currentLevel",get:function(){var t=this.currentFrag;return t?t.level:-1}},{key:"nextBufferedFrag",get:function(){var t=this.currentFrag;return t?this.followingBufferedFrag(t):null}},{key:"forceStartLoad",get:function(){return this._forceStartLoad}}]),e}(Or),Xn=function(){function t(t,e,r){void 0===e&&(e=0),void 0===r&&(r=0),this.halfLife=void 0,this.alpha_=void 0,this.estimate_=void 0,this.totalWeight_=void 0,this.halfLife=t,this.alpha_=t?Math.exp(Math.log(.5)/t):0,this.estimate_=e,this.totalWeight_=r}var e=t.prototype;return e.sample=function(t,e){var r=Math.pow(this.alpha_,t);this.estimate_=e*(1-r)+r*this.estimate_,this.totalWeight_+=t},e.getTotalWeight=function(){return this.totalWeight_},e.getEstimate=function(){if(this.alpha_){var t=1-Math.pow(this.alpha_,this.totalWeight_);if(t)return this.estimate_/t}return this.estimate_},t}(),Jn=function(){function t(t,e,r,n){void 0===n&&(n=100),this.defaultEstimate_=void 0,this.minWeight_=void 0,this.minDelayMs_=void 0,this.slow_=void 0,this.fast_=void 0,this.defaultTTFB_=void 0,this.ttfb_=void 0,this.defaultEstimate_=r,this.minWeight_=.001,this.minDelayMs_=50,this.slow_=new Xn(t),this.fast_=new Xn(e),this.defaultTTFB_=n,this.ttfb_=new Xn(t)}var e=t.prototype;return e.update=function(t,e){var r=this.slow_,n=this.fast_,i=this.ttfb_;r.halfLife!==t&&(this.slow_=new Xn(t,r.getEstimate(),r.getTotalWeight())),n.halfLife!==e&&(this.fast_=new Xn(e,n.getEstimate(),n.getTotalWeight())),i.halfLife!==t&&(this.ttfb_=new Xn(t,i.getEstimate(),i.getTotalWeight()))},e.sample=function(t,e){var r=(t=Math.max(t,this.minDelayMs_))/1e3,n=8*e/r;this.fast_.sample(r,n),this.slow_.sample(r,n)},e.sampleTTFB=function(t){var e=t/1e3,r=Math.sqrt(2)*Math.exp(-Math.pow(e,2)/2);this.ttfb_.sample(r,Math.max(t,5))},e.canEstimate=function(){return this.fast_.getTotalWeight()>=this.minWeight_},e.getEstimate=function(){return this.canEstimate()?Math.min(this.fast_.getEstimate(),this.slow_.getEstimate()):this.defaultEstimate_},e.getEstimateTTFB=function(){return this.ttfb_.getTotalWeight()>=this.minWeight_?this.ttfb_.getEstimate():this.defaultTTFB_},e.destroy=function(){},t}(),Zn=function(){function t(t){this.hls=void 0,this.lastLevelLoadSec=0,this.lastLoadedFragLevel=0,this._nextAutoLevel=-1,this.timer=-1,this.onCheck=this._abandonRulesCheck.bind(this),this.fragCurrent=null,this.partCurrent=null,this.bitrateTestDelay=0,this.bwEstimator=void 0,this.hls=t;var e=t.config;this.bwEstimator=new Jn(e.abrEwmaSlowVoD,e.abrEwmaFastVoD,e.abrEwmaDefaultEstimate),this.registerListeners()}var e=t.prototype;return e.registerListeners=function(){var t=this.hls;t.on(b.FRAG_LOADING,this.onFragLoading,this),t.on(b.FRAG_LOADED,this.onFragLoaded,this),t.on(b.FRAG_BUFFERED,this.onFragBuffered,this),t.on(b.LEVEL_SWITCHING,this.onLevelSwitching,this),t.on(b.LEVEL_LOADED,this.onLevelLoaded,this)},e.unregisterListeners=function(){var t=this.hls;t.off(b.FRAG_LOADING,this.onFragLoading,this),t.off(b.FRAG_LOADED,this.onFragLoaded,this),t.off(b.FRAG_BUFFERED,this.onFragBuffered,this),t.off(b.LEVEL_SWITCHING,this.onLevelSwitching,this),t.off(b.LEVEL_LOADED,this.onLevelLoaded,this)},e.destroy=function(){this.unregisterListeners(),this.clearTimer(),this.hls=this.onCheck=null,this.fragCurrent=this.partCurrent=null},e.onFragLoading=function(t,e){var r,n=e.frag;this.ignoreFragment(n)||(this.fragCurrent=n,this.partCurrent=null!=(r=e.part)?r:null,this.clearTimer(),this.timer=self.setInterval(this.onCheck,100))},e.onLevelSwitching=function(t,e){this.clearTimer()},e.getTimeToLoadFrag=function(t,e,r,n){return t+r/e+(n?this.lastLevelLoadSec:0)},e.onLevelLoaded=function(t,e){var r=this.hls.config,n=e.stats,i=n.total,a=n.bwEstimate;w(i)&&w(a)&&(this.lastLevelLoadSec=8*i/a),e.details.live?this.bwEstimator.update(r.abrEwmaSlowLive,r.abrEwmaFastLive):this.bwEstimator.update(r.abrEwmaSlowVoD,r.abrEwmaFastVoD)},e._abandonRulesCheck=function(){var t=this.fragCurrent,e=this.partCurrent,r=this.hls,n=r.autoLevelEnabled,i=r.media;if(t&&i){var a=performance.now(),s=e?e.stats:t.stats,o=e?e.duration:t.duration,u=a-s.loading.start;if(s.aborted||s.loaded&&s.loaded===s.total||0===t.level)return this.clearTimer(),void(this._nextAutoLevel=-1);if(n&&!i.paused&&i.playbackRate&&i.readyState){var l=r.mainForwardBufferInfo;if(null!==l){var c=this.bwEstimator.getEstimateTTFB(),A=Math.abs(i.playbackRate);if(!(u<=Math.max(c,o/(2*A)*1e3))){var d=l.len/A;if(!(d>=2*o/A)){var f=s.loading.first?s.loading.first-s.loading.start:-1,h=s.loaded&&f>-1,p=this.bwEstimator.getEstimate(),g=r.levels,v=r.minAutoLevel,m=g[t.level],y=s.total||Math.max(s.loaded,Math.round(o*m.maxBitrate/8)),_=u-f;_<1&&h&&(_=Math.min(u,8*s.loaded/p));var B=h?1e3*s.loaded/_:0,C=B?(y-s.loaded)/B:8*y/p+c/1e3;if(!(C<=d)){var E,x=B?8*B:p,T=Number.POSITIVE_INFINITY;for(E=t.level-1;E>v;E--){var S=g[E].maxBitrate;if((T=this.getTimeToLoadFrag(c/1e3,x,o*S,!g[E].details))<d)break}T>=C||T>10*o||(r.nextLoadLevel=E,h?this.bwEstimator.sample(u-Math.min(c,f),s.loaded):this.bwEstimator.sampleTTFB(u),this.clearTimer(),k.warn("[abr] Fragment "+t.sn+(e?" part "+e.index:"")+" of level "+t.level+" is loading too slowly;\n      Time to underbuffer: "+d.toFixed(3)+" s\n      Estimated load time for current fragment: "+C.toFixed(3)+" s\n      Estimated load time for down switch fragment: "+T.toFixed(3)+" s\n      TTFB estimate: "+f+"\n      Current BW estimate: "+(w(p)?(p/1024).toFixed(3):"Unknown")+" Kb/s\n      New BW estimate: "+(this.bwEstimator.getEstimate()/1024).toFixed(3)+" Kb/s\n      Aborting and switching to level "+E),t.loader&&(this.fragCurrent=this.partCurrent=null,t.abortRequests()),r.trigger(b.FRAG_LOAD_EMERGENCY_ABORTED,{frag:t,part:e,stats:s}))}}}}}}},e.onFragLoaded=function(t,e){var r=e.frag,n=e.part,i=n?n.stats:r.stats;if(r.type===Ae&&this.bwEstimator.sampleTTFB(i.loading.first-i.loading.start),!this.ignoreFragment(r)){if(this.clearTimer(),this.lastLoadedFragLevel=r.level,this._nextAutoLevel=-1,this.hls.config.abrMaxWithRealBitrate){var a=n?n.duration:r.duration,s=this.hls.levels[r.level],o=(s.loaded?s.loaded.bytes:0)+i.loaded,u=(s.loaded?s.loaded.duration:0)+a;s.loaded={bytes:o,duration:u},s.realBitrate=Math.round(8*o/u)}if(r.bitrateTest){var l={stats:i,frag:r,part:n,id:r.type};this.onFragBuffered(b.FRAG_BUFFERED,l),r.bitrateTest=!1}}},e.onFragBuffered=function(t,e){var r=e.frag,n=e.part,i=null!=n&&n.stats.loaded?n.stats:r.stats;if(!i.aborted&&!this.ignoreFragment(r)){var a=i.parsing.end-i.loading.start-Math.min(i.loading.first-i.loading.start,this.bwEstimator.getEstimateTTFB());this.bwEstimator.sample(a,i.loaded),i.bwEstimate=this.bwEstimator.getEstimate(),r.bitrateTest?this.bitrateTestDelay=a/1e3:this.bitrateTestDelay=0}},e.ignoreFragment=function(t){return t.type!==Ae||"initSegment"===t.sn},e.clearTimer=function(){self.clearInterval(this.timer)},e.getNextABRAutoLevel=function(){var t=this.fragCurrent,e=this.partCurrent,r=this.hls,n=r.maxAutoLevel,i=r.config,a=r.minAutoLevel,s=r.media,o=e?e.duration:t?t.duration:0,u=s&&0!==s.playbackRate?Math.abs(s.playbackRate):1,l=this.bwEstimator?this.bwEstimator.getEstimate():i.abrEwmaDefaultEstimate,c=r.mainForwardBufferInfo,A=(c?c.len:0)/u,d=this.findBestLevel(l,a,n,A,i.abrBandWidthFactor,i.abrBandWidthUpFactor);if(d>=0)return d;k.trace("[abr] "+(A?"rebuffering expected":"buffer is empty")+", finding optimal quality level");var f=o?Math.min(o,i.maxStarvationDelay):i.maxStarvationDelay,h=i.abrBandWidthFactor,p=i.abrBandWidthUpFactor;if(!A){var g=this.bitrateTestDelay;g&&(f=(o?Math.min(o,i.maxLoadingDelay):i.maxLoadingDelay)-g,k.trace("[abr] bitrate test took "+Math.round(1e3*g)+"ms, set first fragment max fetchDuration to "+Math.round(1e3*f)+" ms"),h=p=1)}return d=this.findBestLevel(l,a,n,A+f,h,p),Math.max(d,0)},e.findBestLevel=function(t,e,r,n,i,a){for(var s,o=this.fragCurrent,u=this.partCurrent,l=this.lastLoadedFragLevel,c=this.hls.levels,A=c[l],d=!(null==A||null==(s=A.details)||!s.live),f=null==A?void 0:A.codecSet,h=u?u.duration:o?o.duration:0,p=this.bwEstimator.getEstimateTTFB()/1e3,g=e,v=-1,m=r;m>=e;m--){var y=c[m];if(!y||f&&y.codecSet!==f)y&&(g=Math.min(m,g),v=Math.max(m,v));else{-1!==v&&k.trace("[abr] Skipped level(s) "+g+"-"+v+' with CODECS:"'+c[v].attrs.CODECS+'"; not compatible with "'+A.attrs.CODECS+'"');var b,_=y.details,B=(u?null==_?void 0:_.partTarget:null==_?void 0:_.averagetargetduration)||h;b=m<=l?i*t:a*t;var C=c[m].maxBitrate,E=this.getTimeToLoadFrag(p,b,C*B,void 0===_);if(k.trace("[abr] level:"+m+" adjustedbw-bitrate:"+Math.round(b-C)+" avgDuration:"+B.toFixed(1)+" maxFetchDuration:"+n.toFixed(1)+" fetchDuration:"+E.toFixed(1)),b>C&&(0===E||!w(E)||d&&!this.bitrateTestDelay||E<n))return m}}return-1},n(t,[{key:"nextAutoLevel",get:function(){var t=this._nextAutoLevel,e=this.bwEstimator;if(-1!==t&&!e.canEstimate())return t;var r=this.getNextABRAutoLevel();if(-1!==t){var n=this.hls.levels;if(n.length>Math.max(t,r)&&n[t].loadError<=n[r].loadError)return t}return-1!==t&&(r=Math.min(t,r)),r},set:function(t){this._nextAutoLevel=t}}]),t}(),ti=function(){function t(){this.chunks=[],this.dataLength=0}var e=t.prototype;return e.push=function(t){this.chunks.push(t),this.dataLength+=t.length},e.flush=function(){var t,e=this.chunks,r=this.dataLength;return e.length?(t=1===e.length?e[0]:function(t,e){for(var r=new Uint8Array(e),n=0,i=0;i<t.length;i++){var a=t[i];r.set(a,n),n+=a.length}return r}(e,r),this.reset(),t):new Uint8Array(0)},e.reset=function(){this.chunks.length=0,this.dataLength=0},t}(),ei=function(t){function r(e,r,n){var i;return(i=t.call(this,e,r,n,"[audio-stream-controller]",de)||this).videoBuffer=null,i.videoTrackCC=-1,i.waitingVideoCC=-1,i.bufferedTrack=null,i.switchingTrack=null,i.trackId=-1,i.waitingData=null,i.mainDetails=null,i.bufferFlushed=!1,i.cachedTrackLoadedData=null,i._registerListeners(),i}l(r,t);var n=r.prototype;return n.onHandlerDestroying=function(){this._unregisterListeners(),this.mainDetails=null,this.bufferedTrack=null,this.switchingTrack=null},n._registerListeners=function(){var t=this.hls;t.on(b.MEDIA_ATTACHED,this.onMediaAttached,this),t.on(b.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(b.MANIFEST_LOADING,this.onManifestLoading,this),t.on(b.LEVEL_LOADED,this.onLevelLoaded,this),t.on(b.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),t.on(b.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),t.on(b.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),t.on(b.ERROR,this.onError,this),t.on(b.BUFFER_RESET,this.onBufferReset,this),t.on(b.BUFFER_CREATED,this.onBufferCreated,this),t.on(b.BUFFER_FLUSHED,this.onBufferFlushed,this),t.on(b.INIT_PTS_FOUND,this.onInitPtsFound,this),t.on(b.FRAG_BUFFERED,this.onFragBuffered,this)},n._unregisterListeners=function(){var t=this.hls;t.off(b.MEDIA_ATTACHED,this.onMediaAttached,this),t.off(b.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(b.MANIFEST_LOADING,this.onManifestLoading,this),t.off(b.LEVEL_LOADED,this.onLevelLoaded,this),t.off(b.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),t.off(b.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),t.off(b.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),t.off(b.ERROR,this.onError,this),t.off(b.BUFFER_RESET,this.onBufferReset,this),t.off(b.BUFFER_CREATED,this.onBufferCreated,this),t.off(b.BUFFER_FLUSHED,this.onBufferFlushed,this),t.off(b.INIT_PTS_FOUND,this.onInitPtsFound,this),t.off(b.FRAG_BUFFERED,this.onFragBuffered,this)},n.onInitPtsFound=function(t,e){var r=e.frag,n=e.id,i=e.initPTS,a=e.timescale;if("main"===n){var s=r.cc;this.initPTS[r.cc]={baseTime:i,timescale:a},this.log("InitPTS for cc: "+s+" found from main: "+i),this.videoTrackCC=s,this.state===Rr&&this.tick()}},n.startLoad=function(t){if(!this.levels)return this.startPosition=t,void(this.state=Cr);var e=this.lastCurrentTime;this.stopLoad(),this.setInterval(100),e>0&&-1===t?(this.log("Override startPosition with lastCurrentTime @"+e.toFixed(3)),t=e,this.state=Er):(this.loadedmetadata=!1,this.state=kr),this.nextLoadPosition=this.startPosition=this.lastCurrentTime=t,this.tick()},n.doTick=function(){switch(this.state){case Er:this.doTickIdle();break;case kr:var e,r=this.levels,n=this.trackId,i=null==r||null==(e=r[n])?void 0:e.details;if(i){if(this.waitForCdnTuneIn(i))break;this.state=Rr}break;case Sr:var a,s=performance.now(),o=this.retryDate;(!o||s>=o||null!=(a=this.media)&&a.seeking)&&(this.log("RetryDate reached, switch back to IDLE state"),this.resetStartWhenNotLoaded(this.trackId),this.state=Er);break;case Rr:var u=this.waitingData;if(u){var l=u.frag,c=u.part,A=u.cache,d=u.complete;if(void 0!==this.initPTS[l.cc]){this.waitingData=null,this.waitingVideoCC=-1,this.state=Tr;var f={frag:l,part:c,payload:A.flush(),networkDetails:null};this._handleFragmentLoadProgress(f),d&&t.prototype._handleFragmentLoadComplete.call(this,f)}else if(this.videoTrackCC!==this.waitingVideoCC)this.log("Waiting fragment cc ("+l.cc+") cancelled because video is at cc "+this.videoTrackCC),this.clearWaitingFragment();else{var h=this.getLoadPosition(),p=hr.bufferInfo(this.mediaBuffer,h,this.config.maxBufferHole);Ge(p.end,this.config.maxFragLookUpTolerance,l)<0&&(this.log("Waiting fragment cc ("+l.cc+") @ "+l.start+" cancelled because another fragment at "+p.end+" is needed"),this.clearWaitingFragment())}}else this.state=Er}this.onTickEnd()},n.clearWaitingFragment=function(){var t=this.waitingData;t&&(this.fragmentTracker.removeFragment(t.frag),this.waitingData=null,this.waitingVideoCC=-1,this.state=Er)},n.resetLoadingState=function(){this.clearWaitingFragment(),t.prototype.resetLoadingState.call(this)},n.onTickEnd=function(){var t=this.media;null!=t&&t.readyState&&(this.lastCurrentTime=t.currentTime)},n.doTickIdle=function(){var t=this.hls,e=this.levels,r=this.media,n=this.trackId,i=t.config;if(null!=e&&e[n]&&(r||!this.startFragRequested&&i.startFragPrefetch)){var a=e[n],s=a.details;if(!s||s.live&&this.levelLastLoaded!==n||this.waitForCdnTuneIn(s))this.state=kr;else{var o=this.mediaBuffer?this.mediaBuffer:this.media;this.bufferFlushed&&o&&(this.bufferFlushed=!1,this.afterBufferFlushed(o,O,de));var u=this.getFwdBufferInfo(o,de);if(null!==u){var l=this.bufferedTrack,c=this.switchingTrack;if(!c&&this._streamEnded(u,s))return t.trigger(b.BUFFER_EOS,{type:"audio"}),void(this.state=Lr);var A=this.getFwdBufferInfo(this.videoBuffer?this.videoBuffer:this.media,Ae),d=u.len,f=this.getMaxBufferLength(null==A?void 0:A.len);if(!(d>=f)||c){var h=s.fragments[0].start,p=u.end;if(c&&r){var g=this.getLoadPosition();l&&c.attrs!==l.attrs&&(p=g),s.PTSKnown&&g<h&&(u.end>h||u.nextStart)&&(this.log("Alt audio track ahead of main track, seek to start of alt audio track"),r.currentTime=h+.05)}var v=this.getNextFragment(p,s),m=!1;if(v&&this.isLoopLoading(v,p)&&(m=!!v.gap,v=this.getNextFragmentLoopLoading(v,s,u,Ae,f)),v){var y=A&&v.start>A.end+s.targetduration;if(y||(null==A||!A.len)&&u.len){var w=this.getAppendedFrag(v.start,Ae);if(null===w)return;if(m||(m=!!w.gap||!!y&&0===A.len),y&&!m||m&&u.nextStart&&u.nextStart<w.end)return}this.loadFragment(v,a,p)}else this.bufferFlushed=!0}}}}},n.getMaxBufferLength=function(e){var r=t.prototype.getMaxBufferLength.call(this);return e?Math.min(Math.max(r,e),this.config.maxMaxBufferLength):r},n.onMediaDetaching=function(){this.videoBuffer=null,t.prototype.onMediaDetaching.call(this)},n.onAudioTracksUpdated=function(t,e){var r=e.audioTracks;this.resetTransmuxer(),this.levels=r.map((function(t){return new Ie(t)}))},n.onAudioTrackSwitching=function(t,e){var r=!!e.url;this.trackId=e.id;var n=this.fragCurrent;n&&(n.abortRequests(),this.removeUnbufferedFrags(n.start)),this.resetLoadingState(),r?this.setInterval(100):this.resetTransmuxer(),r?(this.switchingTrack=e,this.state=Er):(this.switchingTrack=null,this.bufferedTrack=e,this.state=Cr),this.tick()},n.onManifestLoading=function(){this.fragmentTracker.removeAllFragments(),this.startPosition=this.lastCurrentTime=0,this.bufferFlushed=!1,this.levels=this.mainDetails=this.waitingData=this.bufferedTrack=this.cachedTrackLoadedData=this.switchingTrack=null,this.startFragRequested=!1,this.trackId=this.videoTrackCC=this.waitingVideoCC=-1},n.onLevelLoaded=function(t,e){this.mainDetails=e.details,null!==this.cachedTrackLoadedData&&(this.hls.trigger(b.AUDIO_TRACK_LOADED,this.cachedTrackLoadedData),this.cachedTrackLoadedData=null)},n.onAudioTrackLoaded=function(t,e){var r;if(null!=this.mainDetails){var n=this.levels,i=e.details,a=e.id;if(n){this.log("Track "+a+" loaded ["+i.startSN+","+i.endSN+"]"+(i.lastPartSn?"[part-"+i.lastPartSn+"-"+i.lastPartIndex+"]":"")+",duration:"+i.totalduration);var s=n[a],o=0;if(i.live||null!=(r=s.details)&&r.live){var u=this.mainDetails;if(i.fragments[0]||(i.deltaUpdateFailed=!0),i.deltaUpdateFailed||!u)return;!s.details&&i.hasProgramDateTime&&u.hasProgramDateTime?(yr(i,u),o=i.fragments[0].start):o=this.alignPlaylists(i,s.details)}s.details=i,this.levelLastLoaded=a,this.startFragRequested||!this.mainDetails&&i.live||this.setStartPosition(s.details,o),this.state!==kr||this.waitForCdnTuneIn(i)||(this.state=Er),this.tick()}else this.warn("Audio tracks were reset while loading level "+a)}else this.cachedTrackLoadedData=e},n._handleFragmentLoadProgress=function(t){var e,r=t.frag,n=t.part,i=t.payload,a=this.config,s=this.trackId,o=this.levels;if(o){var u=o[s];if(u){var l=u.details;if(!l)return this.warn("Audio track details undefined on fragment load progress"),void this.removeUnbufferedFrags(r.start);var c=a.defaultAudioCodec||u.audioCodec||"mp4a.40.2",A=this.transmuxer;A||(A=this.transmuxer=new zn(this.hls,de,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)));var d=this.initPTS[r.cc],f=null==(e=r.initSegment)?void 0:e.data;if(void 0!==d){var h=n?n.index:-1,p=-1!==h,g=new pr(r.level,r.sn,r.stats.chunkCount,i.byteLength,h,p);A.push(i,f,c,"",r,n,l.totalduration,!1,g,d)}else this.log("Unknown video PTS for cc "+r.cc+", waiting for video PTS before demuxing audio frag "+r.sn+" of ["+l.startSN+" ,"+l.endSN+"],track "+s),(this.waitingData=this.waitingData||{frag:r,part:n,cache:new ti,complete:!1}).cache.push(new Uint8Array(i)),this.waitingVideoCC=this.videoTrackCC,this.state=Rr}else this.warn("Audio track is undefined on fragment load progress")}else this.warn("Audio tracks were reset while fragment load was in progress. Fragment "+r.sn+" of level "+r.level+" will not be buffered")},n._handleFragmentLoadComplete=function(e){this.waitingData?this.waitingData.complete=!0:t.prototype._handleFragmentLoadComplete.call(this,e)},n.onBufferReset=function(){this.mediaBuffer=this.videoBuffer=null,this.loadedmetadata=!1},n.onBufferCreated=function(t,e){var r=e.tracks.audio;r&&(this.mediaBuffer=r.buffer||null),e.tracks.video&&(this.videoBuffer=e.tracks.video.buffer||null)},n.onFragBuffered=function(t,r){var n=r.frag,i=r.part;if(n.type===de)if(this.fragContextChanged(n))this.warn("Fragment "+n.sn+(i?" p: "+i.index:"")+" of level "+n.level+" finished buffering, but was aborted. state: "+this.state+", audioSwitch: "+(this.switchingTrack?this.switchingTrack.name:"false"));else{if("initSegment"!==n.sn){this.fragPrevious=n;var a=this.switchingTrack;a&&(this.bufferedTrack=a,this.switchingTrack=null,this.hls.trigger(b.AUDIO_TRACK_SWITCHED,e({},a)))}this.fragBufferedComplete(n,i)}else if(!this.loadedmetadata&&n.type===Ae){var s=this.videoBuffer||this.media;s&&hr.getBuffered(s).length&&(this.loadedmetadata=!0)}},n.onError=function(e,r){var n;if(r.fatal)this.state=Dr;else switch(r.details){case B.FRAG_GAP:case B.FRAG_PARSING_ERROR:case B.FRAG_DECRYPT_ERROR:case B.FRAG_LOAD_ERROR:case B.FRAG_LOAD_TIMEOUT:case B.KEY_LOAD_ERROR:case B.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(de,r);break;case B.AUDIO_TRACK_LOAD_ERROR:case B.AUDIO_TRACK_LOAD_TIMEOUT:case B.LEVEL_PARSING_ERROR:r.levelRetry||this.state!==kr||(null==(n=r.context)?void 0:n.type)!==le||(this.state=Er);break;case B.BUFFER_FULL_ERROR:if(!r.parent||"audio"!==r.parent)return;this.reduceLengthAndFlushBuffer(r)&&(this.bufferedTrack=null,t.prototype.flushMainBuffer.call(this,0,Number.POSITIVE_INFINITY,"audio"));break;case B.INTERNAL_EXCEPTION:this.recoverWorkerError(r)}},n.onBufferFlushed=function(t,e){e.type===O&&(this.bufferFlushed=!0,this.state===Lr&&(this.state=Er))},n._handleTransmuxComplete=function(t){var e,r="audio",n=this.hls,i=t.remuxResult,a=t.chunkMeta,s=this.getCurrentContext(a);if(s){var o=s.frag,l=s.part,c=s.level.details,A=i.audio,d=i.text,f=i.id3,h=i.initSegment;if(!this.fragContextChanged(o)&&c){if(this.state=Ir,this.switchingTrack&&A&&this.completeAudioSwitch(this.switchingTrack),null!=h&&h.tracks){var p=o.initSegment||o;this._bufferInitSegment(h.tracks,p,a),n.trigger(b.FRAG_PARSING_INIT_SEGMENT,{frag:p,id:r,tracks:h.tracks})}if(A){var g=A.startPTS,v=A.endPTS,m=A.startDTS,y=A.endDTS;l&&(l.elementaryStreams[O]={startPTS:g,endPTS:v,startDTS:m,endDTS:y}),o.setElementaryStreamInfo(O,g,v,m,y),this.bufferFragmentData(A,o,l,a)}if(null!=f&&null!=(e=f.samples)&&e.length){var w=u({id:r,frag:o,details:c},f);n.trigger(b.FRAG_PARSING_METADATA,w)}if(d){var _=u({id:r,frag:o,details:c},d);n.trigger(b.FRAG_PARSING_USERDATA,_)}}else this.fragmentTracker.removeFragment(o)}else this.resetWhenMissingContext(a)},n._bufferInitSegment=function(t,e,r){if(this.state===Ir){t.video&&delete t.video;var n=t.audio;if(n){n.levelCodec=n.codec,n.id="audio",this.log("Init audio buffer, container:"+n.container+", codecs[parsed]=["+n.codec+"]"),this.hls.trigger(b.BUFFER_CODECS,t);var i=n.initSegment;if(null!=i&&i.byteLength){var a={type:"audio",frag:e,part:null,chunkMeta:r,parent:e.type,data:i};this.hls.trigger(b.BUFFER_APPENDING,a)}this.tick()}}},n.loadFragment=function(e,r,n){var i,a=this.fragmentTracker.getState(e);this.fragCurrent=e,this.switchingTrack||a===Ze||a===er?"initSegment"===e.sn?this._loadInitSegment(e,r):null!=(i=r.details)&&i.live&&!this.initPTS[e.cc]?(this.log("Waiting for video PTS in continuity counter "+e.cc+" of live stream before loading audio fragment "+e.sn+" of level "+this.trackId),this.state=Rr):(this.startFragRequested=!0,t.prototype.loadFragment.call(this,e,r,n)):this.clearTrackerIfNeeded(e)},n.completeAudioSwitch=function(r){var n=this.hls,i=this.media,a=this.bufferedTrack,s=null==a?void 0:a.attrs,o=r.attrs;i&&s&&(s.CHANNELS!==o.CHANNELS||s.NAME!==o.NAME||s.LANGUAGE!==o.LANGUAGE)&&(this.log("Switching audio track : flushing all audio"),t.prototype.flushMainBuffer.call(this,0,Number.POSITIVE_INFINITY,"audio")),this.bufferedTrack=r,this.switchingTrack=null,n.trigger(b.AUDIO_TRACK_SWITCHED,e({},r))},r}(Or),ri=function(t){function r(e){var r;return(r=t.call(this,e,"[audio-track-controller]")||this).tracks=[],r.groupId=null,r.tracksInGroup=[],r.trackId=-1,r.currentTrack=null,r.selectDefaultTrack=!0,r.registerListeners(),r}l(r,t);var i=r.prototype;return i.registerListeners=function(){var t=this.hls;t.on(b.MANIFEST_LOADING,this.onManifestLoading,this),t.on(b.MANIFEST_PARSED,this.onManifestParsed,this),t.on(b.LEVEL_LOADING,this.onLevelLoading,this),t.on(b.LEVEL_SWITCHING,this.onLevelSwitching,this),t.on(b.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),t.on(b.ERROR,this.onError,this)},i.unregisterListeners=function(){var t=this.hls;t.off(b.MANIFEST_LOADING,this.onManifestLoading,this),t.off(b.MANIFEST_PARSED,this.onManifestParsed,this),t.off(b.LEVEL_LOADING,this.onLevelLoading,this),t.off(b.LEVEL_SWITCHING,this.onLevelSwitching,this),t.off(b.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),t.off(b.ERROR,this.onError,this)},i.destroy=function(){this.unregisterListeners(),this.tracks.length=0,this.tracksInGroup.length=0,this.currentTrack=null,t.prototype.destroy.call(this)},i.onManifestLoading=function(){this.tracks=[],this.groupId=null,this.tracksInGroup=[],this.trackId=-1,this.currentTrack=null,this.selectDefaultTrack=!0},i.onManifestParsed=function(t,e){this.tracks=e.audioTracks||[]},i.onAudioTrackLoaded=function(t,e){var r=e.id,n=e.groupId,i=e.details,a=this.tracksInGroup[r];if(a&&a.groupId===n){var s=a.details;a.details=e.details,this.log("audio-track "+r+' "'+a.name+'" lang:'+a.lang+" group:"+n+" loaded ["+i.startSN+"-"+i.endSN+"]"),r===this.trackId&&this.playlistLoaded(r,e,s)}else this.warn("Track with id:"+r+" and group:"+n+" not found in active group "+a.groupId)},i.onLevelLoading=function(t,e){this.switchLevel(e.level)},i.onLevelSwitching=function(t,e){this.switchLevel(e.level)},i.switchLevel=function(t){var e=this.hls.levels[t];if(null!=e&&e.audioGroupIds){var r=e.audioGroupIds[e.urlId];if(this.groupId!==r){this.groupId=r||null;var n=this.tracks.filter((function(t){return!r||t.groupId===r}));this.selectDefaultTrack&&!n.some((function(t){return t.default}))&&(this.selectDefaultTrack=!1),this.tracksInGroup=n;var i={audioTracks:n};this.log("Updating audio tracks, "+n.length+" track(s) found in group:"+r),this.hls.trigger(b.AUDIO_TRACKS_UPDATED,i),this.selectInitialTrack()}else this.shouldReloadPlaylist(this.currentTrack)&&this.setAudioTrack(this.trackId)}},i.onError=function(t,e){!e.fatal&&e.context&&e.context.type===le&&e.context.id===this.trackId&&e.context.groupId===this.groupId&&(this.requestScheduled=-1,this.checkRetry(e))},i.setAudioTrack=function(t){var r=this.tracksInGroup;if(t<0||t>=r.length)this.warn("Invalid id passed to audio-track controller");else{this.clearTimer();var n=this.currentTrack;r[this.trackId];var i=r[t],a=i.groupId,s=i.name;if(this.log("Switching to audio-track "+t+' "'+s+'" lang:'+i.lang+" group:"+a),this.trackId=t,this.currentTrack=i,this.selectDefaultTrack=!1,this.hls.trigger(b.AUDIO_TRACK_SWITCHING,e({},i)),!i.details||i.details.live){var o=this.switchParams(i.url,null==n?void 0:n.details);this.loadPlaylist(o)}}},i.selectInitialTrack=function(){var t=this.tracksInGroup,e=this.findTrackId(this.currentTrack)|this.findTrackId(null);if(-1!==e)this.setAudioTrack(e);else{var r=new Error("No track found for running audio group-ID: "+this.groupId+" track count: "+t.length);this.warn(r.message),this.hls.trigger(b.ERROR,{type:_.MEDIA_ERROR,details:B.AUDIO_TRACK_LOAD_ERROR,fatal:!0,error:r})}},i.findTrackId=function(t){for(var e=this.tracksInGroup,r=0;r<e.length;r++){var n=e[r];if(!this.selectDefaultTrack||n.default){if(!t||void 0!==t.attrs["STABLE-RENDITION-ID"]&&t.attrs["STABLE-RENDITION-ID"]===n.attrs["STABLE-RENDITION-ID"])return n.id;if(t.name===n.name&&t.lang===n.lang)return n.id}}return-1},i.loadPlaylist=function(e){t.prototype.loadPlaylist.call(this);var r=this.tracksInGroup[this.trackId];if(this.shouldLoadPlaylist(r)){var n=r.id,i=r.groupId,a=r.url;if(e)try{a=e.addDirectives(a)}catch(t){this.warn("Could not construct new URL with HLS Delivery Directives: "+t)}this.log("loading audio-track playlist "+n+' "'+r.name+'" lang:'+r.lang+" group:"+i),this.clearTimer(),this.hls.trigger(b.AUDIO_TRACK_LOADING,{url:a,id:n,groupId:i,deliveryDirectives:e||null})}},n(r,[{key:"audioTracks",get:function(){return this.tracksInGroup}},{key:"audioTrack",get:function(){return this.trackId},set:function(t){this.selectDefaultTrack=!1,this.setAudioTrack(t)}}]),r}(Ye);function ni(t,e){if(t.length!==e.length)return!1;for(var r=0;r<t.length;r++)if(!ii(t[r].attrs,e[r].attrs))return!1;return!0}function ii(t,e){var r=t["STABLE-RENDITION-ID"];return r?r===e["STABLE-RENDITION-ID"]:!["LANGUAGE","NAME","CHARACTERISTICS","AUTOSELECT","DEFAULT","FORCED"].some((function(r){return t[r]!==e[r]}))}var ai=function(t){function e(e,r,n){var i;return(i=t.call(this,e,r,n,"[subtitle-stream-controller]",fe)||this).levels=[],i.currentTrackId=-1,i.tracksBuffered=[],i.mainDetails=null,i._registerListeners(),i}l(e,t);var r=e.prototype;return r.onHandlerDestroying=function(){this._unregisterListeners(),this.mainDetails=null},r._registerListeners=function(){var t=this.hls;t.on(b.MEDIA_ATTACHED,this.onMediaAttached,this),t.on(b.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(b.MANIFEST_LOADING,this.onManifestLoading,this),t.on(b.LEVEL_LOADED,this.onLevelLoaded,this),t.on(b.ERROR,this.onError,this),t.on(b.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),t.on(b.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),t.on(b.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),t.on(b.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),t.on(b.BUFFER_FLUSHING,this.onBufferFlushing,this),t.on(b.FRAG_BUFFERED,this.onFragBuffered,this)},r._unregisterListeners=function(){var t=this.hls;t.off(b.MEDIA_ATTACHED,this.onMediaAttached,this),t.off(b.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(b.MANIFEST_LOADING,this.onManifestLoading,this),t.off(b.LEVEL_LOADED,this.onLevelLoaded,this),t.off(b.ERROR,this.onError,this),t.off(b.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),t.off(b.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),t.off(b.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),t.off(b.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),t.off(b.BUFFER_FLUSHING,this.onBufferFlushing,this),t.off(b.FRAG_BUFFERED,this.onFragBuffered,this)},r.startLoad=function(t){this.stopLoad(),this.state=Er,this.setInterval(500),this.nextLoadPosition=this.startPosition=this.lastCurrentTime=t,this.tick()},r.onManifestLoading=function(){this.mainDetails=null,this.fragmentTracker.removeAllFragments()},r.onMediaDetaching=function(){this.tracksBuffered=[],t.prototype.onMediaDetaching.call(this)},r.onLevelLoaded=function(t,e){this.mainDetails=e.details},r.onSubtitleFragProcessed=function(t,e){var r=e.frag,n=e.success;if(this.fragPrevious=r,this.state=Er,n){var i=this.tracksBuffered[this.currentTrackId];if(i){for(var a,s=r.start,o=0;o<i.length;o++)if(s>=i[o].start&&s<=i[o].end){a=i[o];break}var u=r.start+r.duration;a?a.end=u:(a={start:s,end:u},i.push(a)),this.fragmentTracker.fragBuffered(r)}}},r.onBufferFlushing=function(t,e){var r=e.startOffset,n=e.endOffset;if(0===r&&n!==Number.POSITIVE_INFINITY){var i=n-1;if(i<=0)return;e.endOffsetSubtitles=Math.max(0,i),this.tracksBuffered.forEach((function(t){for(var e=0;e<t.length;)if(t[e].end<=i)t.shift();else{if(!(t[e].start<i))break;t[e].start=i,e++}})),this.fragmentTracker.removeFragmentsInRange(r,i,fe)}},r.onFragBuffered=function(t,e){var r;this.loadedmetadata||e.frag.type!==Ae||null!=(r=this.media)&&r.buffered.length&&(this.loadedmetadata=!0)},r.onError=function(t,e){var r=e.frag;(null==r?void 0:r.type)===fe&&(this.fragCurrent&&this.fragCurrent.abortRequests(),this.state!==Cr&&(this.state=Er))},r.onSubtitleTracksUpdated=function(t,e){var r=this,n=e.subtitleTracks;ni(this.levels,n)?this.levels=n.map((function(t){return new Ie(t)})):(this.tracksBuffered=[],this.levels=n.map((function(t){var e=new Ie(t);return r.tracksBuffered[e.id]=[],e})),this.fragmentTracker.removeFragmentsInRange(0,Number.POSITIVE_INFINITY,fe),this.fragPrevious=null,this.mediaBuffer=null)},r.onSubtitleTrackSwitch=function(t,e){if(this.currentTrackId=e.id,this.levels.length&&-1!==this.currentTrackId){var r=this.levels[this.currentTrackId];null!=r&&r.details?this.mediaBuffer=this.mediaBufferTimeRanges:this.mediaBuffer=null,r&&this.setInterval(500)}else this.clearInterval()},r.onSubtitleTrackLoaded=function(t,e){var r,n=e.details,i=e.id,a=this.currentTrackId,s=this.levels;if(s.length){var o=s[a];if(!(i>=s.length||i!==a)&&o){this.mediaBuffer=this.mediaBufferTimeRanges;var u=0;if(n.live||null!=(r=o.details)&&r.live){var l=this.mainDetails;if(n.deltaUpdateFailed||!l)return;var c=l.fragments[0];o.details?0===(u=this.alignPlaylists(n,o.details))&&c&&Ue(n,u=c.start):n.hasProgramDateTime&&l.hasProgramDateTime?(yr(n,l),u=n.fragments[0].start):c&&Ue(n,u=c.start)}o.details=n,this.levelLastLoaded=i,this.startFragRequested||!this.mainDetails&&n.live||this.setStartPosition(o.details,u),this.tick(),n.live&&!this.fragCurrent&&this.media&&this.state===Er&&(Ke(null,n.fragments,this.media.currentTime,0)||(this.warn("Subtitle playlist not aligned with playback"),o.details=void 0))}}},r._handleFragmentLoadComplete=function(t){var e=this,r=t.frag,n=t.payload,i=r.decryptdata,a=this.hls;if(!this.fragContextChanged(r)&&n&&n.byteLength>0&&i&&i.key&&i.iv&&"AES-128"===i.method){var s=performance.now();this.decrypter.decrypt(new Uint8Array(n),i.key.buffer,i.iv.buffer).catch((function(t){throw a.trigger(b.ERROR,{type:_.MEDIA_ERROR,details:B.FRAG_DECRYPT_ERROR,fatal:!1,error:t,reason:t.message,frag:r}),t})).then((function(t){var e=performance.now();a.trigger(b.FRAG_DECRYPTED,{frag:r,payload:t,stats:{tstart:s,tdecrypt:e}})})).catch((function(t){e.warn(t.name+": "+t.message),e.state=Er}))}},r.doTick=function(){if(this.media){if(this.state===Er){var t=this.currentTrackId,e=this.levels,r=e[t];if(!e.length||!r||!r.details)return;var n=this.config,i=this.getLoadPosition(),a=hr.bufferedInfo(this.tracksBuffered[this.currentTrackId]||[],i,n.maxBufferHole),s=a.end,o=a.len,u=this.getFwdBufferInfo(this.media,Ae),l=r.details;if(o>this.getMaxBufferLength(null==u?void 0:u.len)+l.levelTargetDuration)return;var c=l.fragments,A=c.length,d=l.edge,f=null,h=this.fragPrevious;if(s<d){var p=n.maxFragLookUpTolerance,g=s>d-p?0:p;!(f=Ke(h,c,Math.max(c[0].start,s),g))&&h&&h.start<c[0].start&&(f=c[0])}else f=c[A-1];if(!f)return;if("initSegment"!==(f=this.mapToInitFragWhenRequired(f)).sn){var v=c[f.sn-l.startSN-1];v&&v.cc===f.cc&&this.fragmentTracker.getState(v)===Ze&&(f=v)}this.fragmentTracker.getState(f)===Ze&&this.loadFragment(f,r,s)}}else this.state=Er},r.getMaxBufferLength=function(e){var r=t.prototype.getMaxBufferLength.call(this);return e?Math.max(r,e):r},r.loadFragment=function(e,r,n){this.fragCurrent=e,"initSegment"===e.sn?this._loadInitSegment(e,r):(this.startFragRequested=!0,t.prototype.loadFragment.call(this,e,r,n))},n(e,[{key:"mediaBufferTimeRanges",get:function(){return new si(this.tracksBuffered[this.currentTrackId]||[])}}]),e}(Or),si=function(t){this.buffered=void 0;var e=function(e,r,n){if((r>>>=0)>n-1)throw new DOMException("Failed to execute '"+e+"' on 'TimeRanges': The index provided ("+r+") is greater than the maximum bound ("+n+")");return t[r][e]};this.buffered={get length(){return t.length},end:function(r){return e("end",r,t.length)},start:function(r){return e("start",r,t.length)}}},oi=function(t){function e(e){var r;return(r=t.call(this,e,"[subtitle-track-controller]")||this).media=null,r.tracks=[],r.groupId=null,r.tracksInGroup=[],r.trackId=-1,r.selectDefaultTrack=!0,r.queuedDefaultTrack=-1,r.trackChangeListener=function(){return r.onTextTracksChanged()},r.asyncPollTrackChange=function(){return r.pollTrackChange(0)},r.useTextTrackPolling=!1,r.subtitlePollingInterval=-1,r._subtitleDisplay=!0,r.registerListeners(),r}l(e,t);var r=e.prototype;return r.destroy=function(){this.unregisterListeners(),this.tracks.length=0,this.tracksInGroup.length=0,this.trackChangeListener=this.asyncPollTrackChange=null,t.prototype.destroy.call(this)},r.registerListeners=function(){var t=this.hls;t.on(b.MEDIA_ATTACHED,this.onMediaAttached,this),t.on(b.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(b.MANIFEST_LOADING,this.onManifestLoading,this),t.on(b.MANIFEST_PARSED,this.onManifestParsed,this),t.on(b.LEVEL_LOADING,this.onLevelLoading,this),t.on(b.LEVEL_SWITCHING,this.onLevelSwitching,this),t.on(b.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),t.on(b.ERROR,this.onError,this)},r.unregisterListeners=function(){var t=this.hls;t.off(b.MEDIA_ATTACHED,this.onMediaAttached,this),t.off(b.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(b.MANIFEST_LOADING,this.onManifestLoading,this),t.off(b.MANIFEST_PARSED,this.onManifestParsed,this),t.off(b.LEVEL_LOADING,this.onLevelLoading,this),t.off(b.LEVEL_SWITCHING,this.onLevelSwitching,this),t.off(b.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),t.off(b.ERROR,this.onError,this)},r.onMediaAttached=function(t,e){this.media=e.media,this.media&&(this.queuedDefaultTrack>-1&&(this.subtitleTrack=this.queuedDefaultTrack,this.queuedDefaultTrack=-1),this.useTextTrackPolling=!(this.media.textTracks&&"onchange"in this.media.textTracks),this.useTextTrackPolling?this.pollTrackChange(500):this.media.textTracks.addEventListener("change",this.asyncPollTrackChange))},r.pollTrackChange=function(t){self.clearInterval(this.subtitlePollingInterval),this.subtitlePollingInterval=self.setInterval(this.trackChangeListener,t)},r.onMediaDetaching=function(){this.media&&(self.clearInterval(this.subtitlePollingInterval),this.useTextTrackPolling||this.media.textTracks.removeEventListener("change",this.asyncPollTrackChange),this.trackId>-1&&(this.queuedDefaultTrack=this.trackId),ui(this.media.textTracks).forEach((function(t){ye(t)})),this.subtitleTrack=-1,this.media=null)},r.onManifestLoading=function(){this.tracks=[],this.groupId=null,this.tracksInGroup=[],this.trackId=-1,this.selectDefaultTrack=!0},r.onManifestParsed=function(t,e){this.tracks=e.subtitleTracks},r.onSubtitleTrackLoaded=function(t,e){var r=e.id,n=e.details,i=this.trackId,a=this.tracksInGroup[i];if(a){var s=a.details;a.details=e.details,this.log("subtitle track "+r+" loaded ["+n.startSN+"-"+n.endSN+"]"),r===this.trackId&&this.playlistLoaded(r,e,s)}else this.warn("Invalid subtitle track id "+r)},r.onLevelLoading=function(t,e){this.switchLevel(e.level)},r.onLevelSwitching=function(t,e){this.switchLevel(e.level)},r.switchLevel=function(t){var e=this.hls.levels[t];if(null!=e&&e.textGroupIds){var r=e.textGroupIds[e.urlId],n=this.tracksInGroup?this.tracksInGroup[this.trackId]:void 0;if(this.groupId!==r){var i=this.tracks.filter((function(t){return!r||t.groupId===r}));this.tracksInGroup=i;var a=this.findTrackId(null==n?void 0:n.name)||this.findTrackId();this.groupId=r||null;var s={subtitleTracks:i};this.log("Updating subtitle tracks, "+i.length+' track(s) found in "'+r+'" group-id'),this.hls.trigger(b.SUBTITLE_TRACKS_UPDATED,s),-1!==a&&this.setSubtitleTrack(a,n)}else this.shouldReloadPlaylist(n)&&this.setSubtitleTrack(this.trackId,n)}},r.findTrackId=function(t){for(var e=this.tracksInGroup,r=0;r<e.length;r++){var n=e[r];if((!this.selectDefaultTrack||n.default)&&(!t||t===n.name))return n.id}return-1},r.onError=function(t,e){!e.fatal&&e.context&&e.context.type===ce&&e.context.id===this.trackId&&e.context.groupId===this.groupId&&this.checkRetry(e)},r.loadPlaylist=function(e){t.prototype.loadPlaylist.call(this);var r=this.tracksInGroup[this.trackId];if(this.shouldLoadPlaylist(r)){var n=r.id,i=r.groupId,a=r.url;if(e)try{a=e.addDirectives(a)}catch(t){this.warn("Could not construct new URL with HLS Delivery Directives: "+t)}this.log("Loading subtitle playlist for id "+n),this.hls.trigger(b.SUBTITLE_TRACK_LOADING,{url:a,id:n,groupId:i,deliveryDirectives:e||null})}},r.toggleTrackModes=function(t){var e=this,r=this.media,n=this.trackId;if(r){var i=ui(r.textTracks),a=i.filter((function(t){return t.groupId===e.groupId}));if(-1===t)[].slice.call(i).forEach((function(t){t.mode="disabled"}));else{var s=a[n];s&&(s.mode="disabled")}var o=a[t];o&&(o.mode=this.subtitleDisplay?"showing":"hidden")}},r.setSubtitleTrack=function(t,e){var r,n=this.tracksInGroup;if(this.media){if(this.trackId!==t&&this.toggleTrackModes(t),!(this.trackId===t&&(-1===t||null!=(r=n[t])&&r.details)||t<-1||t>=n.length)){this.clearTimer();var i=n[t];if(this.log("Switching to subtitle-track "+t+(i?' "'+i.name+'" lang:'+i.lang+" group:"+i.groupId:"")),this.trackId=t,i){var a=i.id,s=i.groupId,o=void 0===s?"":s,u=i.name,l=i.type,c=i.url;this.hls.trigger(b.SUBTITLE_TRACK_SWITCH,{id:a,groupId:o,name:u,type:l,url:c});var A=this.switchParams(i.url,null==e?void 0:e.details);this.loadPlaylist(A)}else this.hls.trigger(b.SUBTITLE_TRACK_SWITCH,{id:t})}}else this.queuedDefaultTrack=t},r.onTextTracksChanged=function(){if(this.useTextTrackPolling||self.clearInterval(this.subtitlePollingInterval),this.media&&this.hls.config.renderTextTracksNatively){for(var t=-1,e=ui(this.media.textTracks),r=0;r<e.length;r++)if("hidden"===e[r].mode)t=r;else if("showing"===e[r].mode){t=r;break}this.subtitleTrack!==t&&(this.subtitleTrack=t)}},n(e,[{key:"subtitleDisplay",get:function(){return this._subtitleDisplay},set:function(t){this._subtitleDisplay=t,this.trackId>-1&&this.toggleTrackModes(this.trackId)}},{key:"subtitleTracks",get:function(){return this.tracksInGroup}},{key:"subtitleTrack",get:function(){return this.trackId},set:function(t){this.selectDefaultTrack=!1;var e=this.tracksInGroup?this.tracksInGroup[this.trackId]:void 0;this.setSubtitleTrack(t,e)}}]),e}(Ye);function ui(t){for(var e=[],r=0;r<t.length;r++){var n=t[r];"subtitles"!==n.kind&&"captions"!==n.kind||!n.label||e.push(t[r])}return e}var li=function(){function t(t){this.buffers=void 0,this.queues={video:[],audio:[],audiovideo:[]},this.buffers=t}var e=t.prototype;return e.append=function(t,e){var r=this.queues[e];r.push(t),1===r.length&&this.buffers[e]&&this.executeNext(e)},e.insertAbort=function(t,e){this.queues[e].unshift(t),this.executeNext(e)},e.appendBlocker=function(t){var e,r=new Promise((function(t){e=t})),n={execute:e,onStart:function(){},onComplete:function(){},onError:function(){}};return this.append(n,t),r},e.executeNext=function(t){var e=this.buffers,r=this.queues,n=e[t],i=r[t];if(i.length){var a=i[0];try{a.execute()}catch(e){k.warn("[buffer-operation-queue]: Unhandled exception executing the current operation"),a.onError(e),null!=n&&n.updating||(i.shift(),this.executeNext(t))}}},e.shiftAndExecuteNext=function(t){this.queues[t].shift(),this.executeNext(t)},e.current=function(t){return this.queues[t][0]},t}(),ci=Kt(),Ai=/([ha]vc.)(?:\.[^.,]+)+/,di=function(){function t(t){var e=this;this.details=null,this._objectUrl=null,this.operationQueue=void 0,this.listeners=void 0,this.hls=void 0,this.bufferCodecEventsExpected=0,this._bufferCodecEventsTotal=0,this.media=null,this.mediaSource=null,this.lastMpegAudioChunk=null,this.appendError=0,this.tracks={},this.pendingTracks={},this.sourceBuffer=void 0,this._onMediaSourceOpen=function(){var t=e.media,r=e.mediaSource;k.log("[buffer-controller]: Media source opened"),t&&(t.removeEventListener("emptied",e._onMediaEmptied),e.updateMediaElementDuration(),e.hls.trigger(b.MEDIA_ATTACHED,{media:t})),r&&r.removeEventListener("sourceopen",e._onMediaSourceOpen),e.checkPendingTracks()},this._onMediaSourceClose=function(){k.log("[buffer-controller]: Media source closed")},this._onMediaSourceEnded=function(){k.log("[buffer-controller]: Media source ended")},this._onMediaEmptied=function(){var t=e.media,r=e._objectUrl;t&&t.src!==r&&k.error("Media element src was set while attaching MediaSource ("+r+" > "+t.src+")")},this.hls=t,this._initSourceBuffer(),this.registerListeners()}var e=t.prototype;return e.hasSourceTypes=function(){return this.getSourceBufferTypes().length>0||Object.keys(this.pendingTracks).length>0},e.destroy=function(){this.unregisterListeners(),this.details=null,this.lastMpegAudioChunk=null},e.registerListeners=function(){var t=this.hls;t.on(b.MEDIA_ATTACHING,this.onMediaAttaching,this),t.on(b.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(b.MANIFEST_LOADING,this.onManifestLoading,this),t.on(b.MANIFEST_PARSED,this.onManifestParsed,this),t.on(b.BUFFER_RESET,this.onBufferReset,this),t.on(b.BUFFER_APPENDING,this.onBufferAppending,this),t.on(b.BUFFER_CODECS,this.onBufferCodecs,this),t.on(b.BUFFER_EOS,this.onBufferEos,this),t.on(b.BUFFER_FLUSHING,this.onBufferFlushing,this),t.on(b.LEVEL_UPDATED,this.onLevelUpdated,this),t.on(b.FRAG_PARSED,this.onFragParsed,this),t.on(b.FRAG_CHANGED,this.onFragChanged,this)},e.unregisterListeners=function(){var t=this.hls;t.off(b.MEDIA_ATTACHING,this.onMediaAttaching,this),t.off(b.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(b.MANIFEST_LOADING,this.onManifestLoading,this),t.off(b.MANIFEST_PARSED,this.onManifestParsed,this),t.off(b.BUFFER_RESET,this.onBufferReset,this),t.off(b.BUFFER_APPENDING,this.onBufferAppending,this),t.off(b.BUFFER_CODECS,this.onBufferCodecs,this),t.off(b.BUFFER_EOS,this.onBufferEos,this),t.off(b.BUFFER_FLUSHING,this.onBufferFlushing,this),t.off(b.LEVEL_UPDATED,this.onLevelUpdated,this),t.off(b.FRAG_PARSED,this.onFragParsed,this),t.off(b.FRAG_CHANGED,this.onFragChanged,this)},e._initSourceBuffer=function(){this.sourceBuffer={},this.operationQueue=new li(this.sourceBuffer),this.listeners={audio:[],video:[],audiovideo:[]},this.lastMpegAudioChunk=null},e.onManifestLoading=function(){this.bufferCodecEventsExpected=this._bufferCodecEventsTotal=0,this.details=null},e.onManifestParsed=function(t,e){var r=2;(e.audio&&!e.video||!e.altAudio)&&(r=1),this.bufferCodecEventsExpected=this._bufferCodecEventsTotal=r,k.log(this.bufferCodecEventsExpected+" bufferCodec event(s) expected")},e.onMediaAttaching=function(t,e){var r=this.media=e.media;if(r&&ci){var n=this.mediaSource=new ci;n.addEventListener("sourceopen",this._onMediaSourceOpen),n.addEventListener("sourceended",this._onMediaSourceEnded),n.addEventListener("sourceclose",this._onMediaSourceClose),r.src=self.URL.createObjectURL(n),this._objectUrl=r.src,r.addEventListener("emptied",this._onMediaEmptied)}},e.onMediaDetaching=function(){var t=this.media,e=this.mediaSource,r=this._objectUrl;if(e){if(k.log("[buffer-controller]: media source detaching"),"open"===e.readyState)try{e.endOfStream()}catch(t){k.warn("[buffer-controller]: onMediaDetaching: "+t.message+" while calling endOfStream")}this.onBufferReset(),e.removeEventListener("sourceopen",this._onMediaSourceOpen),e.removeEventListener("sourceended",this._onMediaSourceEnded),e.removeEventListener("sourceclose",this._onMediaSourceClose),t&&(t.removeEventListener("emptied",this._onMediaEmptied),r&&self.URL.revokeObjectURL(r),t.src===r?(t.removeAttribute("src"),t.load()):k.warn("[buffer-controller]: media.src was changed by a third party - skip cleanup")),this.mediaSource=null,this.media=null,this._objectUrl=null,this.bufferCodecEventsExpected=this._bufferCodecEventsTotal,this.pendingTracks={},this.tracks={}}this.hls.trigger(b.MEDIA_DETACHED,void 0)},e.onBufferReset=function(){var t=this;this.getSourceBufferTypes().forEach((function(e){var r=t.sourceBuffer[e];try{r&&(t.removeBufferListeners(e),t.mediaSource&&t.mediaSource.removeSourceBuffer(r),t.sourceBuffer[e]=void 0)}catch(t){k.warn("[buffer-controller]: Failed to reset the "+e+" buffer",t)}})),this._initSourceBuffer()},e.onBufferCodecs=function(t,e){var r=this,n=this.getSourceBufferTypes().length;Object.keys(e).forEach((function(t){if(n){var i=r.tracks[t];if(i&&"function"==typeof i.buffer.changeType){var a=e[t],s=a.id,o=a.codec,u=a.levelCodec,l=a.container,c=a.metadata,A=(i.levelCodec||i.codec).replace(Ai,"$1"),d=(u||o).replace(Ai,"$1");if(A!==d){var f=l+";codecs="+(u||o);r.appendChangeType(t,f),k.log("[buffer-controller]: switching codec "+A+" to "+d),r.tracks[t]={buffer:i.buffer,codec:o,container:l,levelCodec:u,metadata:c,id:s}}}}else r.pendingTracks[t]=e[t]})),n||(this.bufferCodecEventsExpected=Math.max(this.bufferCodecEventsExpected-1,0),this.mediaSource&&"open"===this.mediaSource.readyState&&this.checkPendingTracks())},e.appendChangeType=function(t,e){var r=this,n=this.operationQueue,i={execute:function(){var i=r.sourceBuffer[t];i&&(k.log("[buffer-controller]: changing "+t+" sourceBuffer type to "+e),i.changeType(e)),n.shiftAndExecuteNext(t)},onStart:function(){},onComplete:function(){},onError:function(e){k.warn("[buffer-controller]: Failed to change "+t+" SourceBuffer type",e)}};n.append(i,t)},e.onBufferAppending=function(t,e){var r=this,n=this.hls,i=this.operationQueue,a=this.tracks,s=e.data,o=e.type,u=e.frag,l=e.part,c=e.chunkMeta,A=c.buffering[o],d=self.performance.now();A.start=d;var f=u.stats.buffering,h=l?l.stats.buffering:null;0===f.start&&(f.start=d),h&&0===h.start&&(h.start=d);var p=a.audio,g=!1;"audio"===o&&"audio/mpeg"===(null==p?void 0:p.container)&&(g=!this.lastMpegAudioChunk||1===c.id||this.lastMpegAudioChunk.sn!==c.sn,this.lastMpegAudioChunk=c);var v=u.start,m={execute:function(){if(A.executeStart=self.performance.now(),g){var t=r.sourceBuffer[o];if(t){var e=v-t.timestampOffset;Math.abs(e)>=.1&&(k.log("[buffer-controller]: Updating audio SourceBuffer timestampOffset to "+v+" (delta: "+e+") sn: "+u.sn+")"),t.timestampOffset=v)}}r.appendExecutor(s,o)},onStart:function(){},onComplete:function(){var t=self.performance.now();A.executeEnd=A.end=t,0===f.first&&(f.first=t),h&&0===h.first&&(h.first=t);var e=r.sourceBuffer,n={};for(var i in e)n[i]=hr.getBuffered(e[i]);r.appendError=0,r.hls.trigger(b.BUFFER_APPENDED,{type:o,frag:u,part:l,chunkMeta:c,parent:u.type,timeRanges:n})},onError:function(t){k.error("[buffer-controller]: Error encountered while trying to append to the "+o+" SourceBuffer",t);var e={type:_.MEDIA_ERROR,parent:u.type,details:B.BUFFER_APPEND_ERROR,frag:u,part:l,chunkMeta:c,error:t,err:t,fatal:!1};t.code===DOMException.QUOTA_EXCEEDED_ERR?e.details=B.BUFFER_FULL_ERROR:(r.appendError++,e.details=B.BUFFER_APPEND_ERROR,r.appendError>n.config.appendErrorMaxRetry&&(k.error("[buffer-controller]: Failed "+n.config.appendErrorMaxRetry+" times to append segment in sourceBuffer"),e.fatal=!0)),n.trigger(b.ERROR,e)}};i.append(m,o)},e.onBufferFlushing=function(t,e){var r=this,n=this.operationQueue,i=function(t){return{execute:r.removeExecutor.bind(r,t,e.startOffset,e.endOffset),onStart:function(){},onComplete:function(){r.hls.trigger(b.BUFFER_FLUSHED,{type:t})},onError:function(e){k.warn("[buffer-controller]: Failed to remove from "+t+" SourceBuffer",e)}}};e.type?n.append(i(e.type),e.type):this.getSourceBufferTypes().forEach((function(t){n.append(i(t),t)}))},e.onFragParsed=function(t,e){var r=this,n=e.frag,i=e.part,a=[],s=i?i.elementaryStreams:n.elementaryStreams;s[M]?a.push("audiovideo"):(s[O]&&a.push("audio"),s[P]&&a.push("video")),0===a.length&&k.warn("Fragments must have at least one ElementaryStreamType set. type: "+n.type+" level: "+n.level+" sn: "+n.sn),this.blockBuffers((function(){var t=self.performance.now();n.stats.buffering.end=t,i&&(i.stats.buffering.end=t);var e=i?i.stats:n.stats;r.hls.trigger(b.FRAG_BUFFERED,{frag:n,part:i,stats:e,id:n.type})}),a)},e.onFragChanged=function(t,e){this.flushBackBuffer()},e.onBufferEos=function(t,e){var r=this;this.getSourceBufferTypes().reduce((function(t,n){var i=r.sourceBuffer[n];return!i||e.type&&e.type!==n||(i.ending=!0,i.ended||(i.ended=!0,k.log("[buffer-controller]: "+n+" sourceBuffer now EOS"))),t&&!(i&&!i.ended)}),!0)&&(k.log("[buffer-controller]: Queueing mediaSource.endOfStream()"),this.blockBuffers((function(){r.getSourceBufferTypes().forEach((function(t){var e=r.sourceBuffer[t];e&&(e.ending=!1)}));var t=r.mediaSource;t&&"open"===t.readyState?(k.log("[buffer-controller]: Calling mediaSource.endOfStream()"),t.endOfStream()):t&&k.info("[buffer-controller]: Could not call mediaSource.endOfStream(). mediaSource.readyState: "+t.readyState)})))},e.onLevelUpdated=function(t,e){var r=e.details;r.fragments.length&&(this.details=r,this.getSourceBufferTypes().length?this.blockBuffers(this.updateMediaElementDuration.bind(this)):this.updateMediaElementDuration())},e.flushBackBuffer=function(){var t=this.hls,e=this.details,r=this.media,n=this.sourceBuffer;if(r&&null!==e){var i=this.getSourceBufferTypes();if(i.length){var a=e.live&&null!==t.config.liveBackBufferLength?t.config.liveBackBufferLength:t.config.backBufferLength;if(w(a)&&!(a<0)){var s=r.currentTime,o=e.levelTargetDuration,u=Math.max(a,o),l=Math.floor(s/o)*o-u;i.forEach((function(r){var i=n[r];if(i){var a=hr.getBuffered(i);if(a.length>0&&l>a.start(0)){if(t.trigger(b.BACK_BUFFER_REACHED,{bufferEnd:l}),e.live)t.trigger(b.LIVE_BACK_BUFFER_REACHED,{bufferEnd:l});else if(i.ended&&a.end(a.length-1)-s<2*o)return void k.info("[buffer-controller]: Cannot flush "+r+" back buffer while SourceBuffer is in ended state");t.trigger(b.BUFFER_FLUSHING,{startOffset:0,endOffset:l,type:r})}}}))}}}},e.updateMediaElementDuration=function(){if(this.details&&this.media&&this.mediaSource&&"open"===this.mediaSource.readyState){var t=this.details,e=this.hls,r=this.media,n=this.mediaSource,i=t.fragments[0].start+t.totalduration,a=r.duration,s=w(n.duration)?n.duration:0;t.live&&e.config.liveDurationInfinity?(k.log("[buffer-controller]: Media Source duration is set to Infinity"),n.duration=1/0,this.updateSeekableRange(t)):(i>s&&i>a||!w(a))&&(k.log("[buffer-controller]: Updating Media Source duration to "+i.toFixed(3)),n.duration=i)}},e.updateSeekableRange=function(t){var e=this.mediaSource,r=t.fragments;if(r.length&&t.live&&null!=e&&e.setLiveSeekableRange){var n=Math.max(0,r[0].start),i=Math.max(n,n+t.totalduration);e.setLiveSeekableRange(n,i)}},e.checkPendingTracks=function(){var t=this.bufferCodecEventsExpected,e=this.operationQueue,r=this.pendingTracks,n=Object.keys(r).length;if(n&&!t||2===n){this.createSourceBuffers(r),this.pendingTracks={};var i=this.getSourceBufferTypes();if(i.length)this.hls.trigger(b.BUFFER_CREATED,{tracks:this.tracks}),i.forEach((function(t){e.executeNext(t)}));else{var a=new Error("could not create source buffer for media codec(s)");this.hls.trigger(b.ERROR,{type:_.MEDIA_ERROR,details:B.BUFFER_INCOMPATIBLE_CODECS_ERROR,fatal:!0,error:a,reason:a.message})}}},e.createSourceBuffers=function(t){var e=this.sourceBuffer,r=this.mediaSource;if(!r)throw Error("createSourceBuffers called when mediaSource was null");for(var n in t)if(!e[n]){var i=t[n];if(!i)throw Error("source buffer exists for track "+n+", however track does not");var a=i.levelCodec||i.codec,s=i.container+";codecs="+a;k.log("[buffer-controller]: creating sourceBuffer("+s+")");try{var o=e[n]=r.addSourceBuffer(s),u=n;this.addBufferListener(u,"updatestart",this._onSBUpdateStart),this.addBufferListener(u,"updateend",this._onSBUpdateEnd),this.addBufferListener(u,"error",this._onSBUpdateError),this.tracks[n]={buffer:o,codec:a,container:i.container,levelCodec:i.levelCodec,metadata:i.metadata,id:i.id}}catch(t){k.error("[buffer-controller]: error while trying to add sourceBuffer: "+t.message),this.hls.trigger(b.ERROR,{type:_.MEDIA_ERROR,details:B.BUFFER_ADD_CODEC_ERROR,fatal:!1,error:t,mimeType:s})}}},e._onSBUpdateStart=function(t){this.operationQueue.current(t).onStart()},e._onSBUpdateEnd=function(t){var e=this.operationQueue;e.current(t).onComplete(),e.shiftAndExecuteNext(t)},e._onSBUpdateError=function(t,e){var r=new Error(t+" SourceBuffer error");k.error("[buffer-controller]: "+r,e),this.hls.trigger(b.ERROR,{type:_.MEDIA_ERROR,details:B.BUFFER_APPENDING_ERROR,error:r,fatal:!1});var n=this.operationQueue.current(t);n&&n.onError(e)},e.removeExecutor=function(t,e,r){var n=this.media,i=this.mediaSource,a=this.operationQueue,s=this.sourceBuffer[t];if(!n||!i||!s)return k.warn("[buffer-controller]: Attempting to remove from the "+t+" SourceBuffer, but it does not exist"),void a.shiftAndExecuteNext(t);var o=w(n.duration)?n.duration:1/0,u=w(i.duration)?i.duration:1/0,l=Math.max(0,e),c=Math.min(r,o,u);c>l&&!s.ending?(s.ended=!1,k.log("[buffer-controller]: Removing ["+l+","+c+"] from the "+t+" SourceBuffer"),s.remove(l,c)):a.shiftAndExecuteNext(t)},e.appendExecutor=function(t,e){var r=this.operationQueue,n=this.sourceBuffer[e];if(!n)return k.warn("[buffer-controller]: Attempting to append to the "+e+" SourceBuffer, but it does not exist"),void r.shiftAndExecuteNext(e);n.ended=!1,n.appendBuffer(t)},e.blockBuffers=function(t,e){var r=this;if(void 0===e&&(e=this.getSourceBufferTypes()),!e.length)return k.log("[buffer-controller]: Blocking operation requested, but no SourceBuffers exist"),void Promise.resolve().then(t);var n=this.operationQueue,i=e.map((function(t){return n.appendBlocker(t)}));Promise.all(i).then((function(){t(),e.forEach((function(t){var e=r.sourceBuffer[t];null!=e&&e.updating||n.shiftAndExecuteNext(t)}))}))},e.getSourceBufferTypes=function(){return Object.keys(this.sourceBuffer)},e.addBufferListener=function(t,e,r){var n=this.sourceBuffer[t];if(n){var i=r.bind(this,t);this.listeners[t].push({event:e,listener:i}),n.addEventListener(e,i)}},e.removeBufferListeners=function(t){var e=this.sourceBuffer[t];e&&this.listeners[t].forEach((function(t){e.removeEventListener(t.event,t.listener)}))},t}(),fi={42:225,92:233,94:237,95:243,96:250,123:231,124:247,125:209,126:241,127:9608,128:174,129:176,130:189,131:191,132:8482,133:162,134:163,135:9834,136:224,137:32,138:232,139:226,140:234,141:238,142:244,143:251,144:193,145:201,146:211,147:218,148:220,149:252,150:8216,151:161,152:42,153:8217,154:9473,155:169,156:8480,157:8226,158:8220,159:8221,160:192,161:194,162:199,163:200,164:202,165:203,166:235,167:206,168:207,169:239,170:212,171:217,172:249,173:219,174:171,175:187,176:195,177:227,178:205,179:204,180:236,181:210,182:242,183:213,184:245,185:123,186:125,187:92,188:94,189:95,190:124,191:8764,192:196,193:228,194:214,195:246,196:223,197:165,198:164,199:9475,200:197,201:229,202:216,203:248,204:9487,205:9491,206:9495,207:9499},hi=function(t){var e=t;return fi.hasOwnProperty(t)&&(e=fi[t]),String.fromCharCode(e)},pi=100,gi={17:1,18:3,21:5,22:7,23:9,16:11,19:12,20:14},vi={17:2,18:4,21:6,22:8,23:10,19:13,20:15},mi={25:1,26:3,29:5,30:7,31:9,24:11,27:12,28:14},yi={25:2,26:4,29:6,30:8,31:10,27:13,28:15},wi=["white","green","blue","cyan","red","yellow","magenta","black","transparent"],bi=function(){function t(){this.time=null,this.verboseLevel=0}return t.prototype.log=function(t,e){if(this.verboseLevel>=t){var r="function"==typeof e?e():e;k.log(this.time+" ["+t+"] "+r)}},t}(),_i=function(t){for(var e=[],r=0;r<t.length;r++)e.push(t[r].toString(16));return e},Bi=function(){function t(t,e,r,n,i){this.foreground=void 0,this.underline=void 0,this.italics=void 0,this.background=void 0,this.flash=void 0,this.foreground=t||"white",this.underline=e||!1,this.italics=r||!1,this.background=n||"black",this.flash=i||!1}var e=t.prototype;return e.reset=function(){this.foreground="white",this.underline=!1,this.italics=!1,this.background="black",this.flash=!1},e.setStyles=function(t){for(var e=["foreground","underline","italics","background","flash"],r=0;r<e.length;r++){var n=e[r];t.hasOwnProperty(n)&&(this[n]=t[n])}},e.isDefault=function(){return"white"===this.foreground&&!this.underline&&!this.italics&&"black"===this.background&&!this.flash},e.equals=function(t){return this.foreground===t.foreground&&this.underline===t.underline&&this.italics===t.italics&&this.background===t.background&&this.flash===t.flash},e.copy=function(t){this.foreground=t.foreground,this.underline=t.underline,this.italics=t.italics,this.background=t.background,this.flash=t.flash},e.toString=function(){return"color="+this.foreground+", underline="+this.underline+", italics="+this.italics+", background="+this.background+", flash="+this.flash},t}(),Ci=function(){function t(t,e,r,n,i,a){this.uchar=void 0,this.penState=void 0,this.uchar=t||" ",this.penState=new Bi(e,r,n,i,a)}var e=t.prototype;return e.reset=function(){this.uchar=" ",this.penState.reset()},e.setChar=function(t,e){this.uchar=t,this.penState.copy(e)},e.setPenState=function(t){this.penState.copy(t)},e.equals=function(t){return this.uchar===t.uchar&&this.penState.equals(t.penState)},e.copy=function(t){this.uchar=t.uchar,this.penState.copy(t.penState)},e.isEmpty=function(){return" "===this.uchar&&this.penState.isDefault()},t}(),Ei=function(){function t(t){this.chars=void 0,this.pos=void 0,this.currPenState=void 0,this.cueStartTime=void 0,this.logger=void 0,this.chars=[];for(var e=0;e<pi;e++)this.chars.push(new Ci);this.logger=t,this.pos=0,this.currPenState=new Bi}var e=t.prototype;return e.equals=function(t){for(var e=!0,r=0;r<pi;r++)if(!this.chars[r].equals(t.chars[r])){e=!1;break}return e},e.copy=function(t){for(var e=0;e<pi;e++)this.chars[e].copy(t.chars[e])},e.isEmpty=function(){for(var t=!0,e=0;e<pi;e++)if(!this.chars[e].isEmpty()){t=!1;break}return t},e.setCursor=function(t){this.pos!==t&&(this.pos=t),this.pos<0?(this.logger.log(3,"Negative cursor position "+this.pos),this.pos=0):this.pos>pi&&(this.logger.log(3,"Too large cursor position "+this.pos),this.pos=pi)},e.moveCursor=function(t){var e=this.pos+t;if(t>1)for(var r=this.pos+1;r<e+1;r++)this.chars[r].setPenState(this.currPenState);this.setCursor(e)},e.backSpace=function(){this.moveCursor(-1),this.chars[this.pos].setChar(" ",this.currPenState)},e.insertChar=function(t){var e=this;t>=144&&this.backSpace();var r=hi(t);this.pos>=pi?this.logger.log(0,(function(){return"Cannot insert "+t.toString(16)+" ("+r+") at position "+e.pos+". Skipping it!"})):(this.chars[this.pos].setChar(r,this.currPenState),this.moveCursor(1))},e.clearFromPos=function(t){var e;for(e=t;e<pi;e++)this.chars[e].reset()},e.clear=function(){this.clearFromPos(0),this.pos=0,this.currPenState.reset()},e.clearToEndOfRow=function(){this.clearFromPos(this.pos)},e.getTextString=function(){for(var t=[],e=!0,r=0;r<pi;r++){var n=this.chars[r].uchar;" "!==n&&(e=!1),t.push(n)}return e?"":t.join("")},e.setPenStyles=function(t){this.currPenState.setStyles(t),this.chars[this.pos].setPenState(this.currPenState)},t}(),xi=function(){function t(t){this.rows=void 0,this.currRow=void 0,this.nrRollUpRows=void 0,this.lastOutputScreen=void 0,this.logger=void 0,this.rows=[];for(var e=0;e<15;e++)this.rows.push(new Ei(t));this.logger=t,this.currRow=14,this.nrRollUpRows=null,this.lastOutputScreen=null,this.reset()}var e=t.prototype;return e.reset=function(){for(var t=0;t<15;t++)this.rows[t].clear();this.currRow=14},e.equals=function(t){for(var e=!0,r=0;r<15;r++)if(!this.rows[r].equals(t.rows[r])){e=!1;break}return e},e.copy=function(t){for(var e=0;e<15;e++)this.rows[e].copy(t.rows[e])},e.isEmpty=function(){for(var t=!0,e=0;e<15;e++)if(!this.rows[e].isEmpty()){t=!1;break}return t},e.backSpace=function(){this.rows[this.currRow].backSpace()},e.clearToEndOfRow=function(){this.rows[this.currRow].clearToEndOfRow()},e.insertChar=function(t){this.rows[this.currRow].insertChar(t)},e.setPen=function(t){this.rows[this.currRow].setPenStyles(t)},e.moveCursor=function(t){this.rows[this.currRow].moveCursor(t)},e.setCursor=function(t){this.logger.log(2,"setCursor: "+t),this.rows[this.currRow].setCursor(t)},e.setPAC=function(t){this.logger.log(2,(function(){return"pacData = "+JSON.stringify(t)}));var e=t.row-1;if(this.nrRollUpRows&&e<this.nrRollUpRows-1&&(e=this.nrRollUpRows-1),this.nrRollUpRows&&this.currRow!==e){for(var r=0;r<15;r++)this.rows[r].clear();var n=this.currRow+1-this.nrRollUpRows,i=this.lastOutputScreen;if(i){var a=i.rows[n].cueStartTime,s=this.logger.time;if(a&&null!==s&&a<s)for(var o=0;o<this.nrRollUpRows;o++)this.rows[e-this.nrRollUpRows+o+1].copy(i.rows[n+o])}}this.currRow=e;var u=this.rows[this.currRow];if(null!==t.indent){var l=t.indent,c=Math.max(l-1,0);u.setCursor(t.indent),t.color=u.chars[c].penState.foreground}var A={foreground:t.color,underline:t.underline,italics:t.italics,background:"black",flash:!1};this.setPen(A)},e.setBkgData=function(t){this.logger.log(2,(function(){return"bkgData = "+JSON.stringify(t)})),this.backSpace(),this.setPen(t),this.insertChar(32)},e.setRollUpRows=function(t){this.nrRollUpRows=t},e.rollUp=function(){var t=this;if(null!==this.nrRollUpRows){this.logger.log(1,(function(){return t.getDisplayText()}));var e=this.currRow+1-this.nrRollUpRows,r=this.rows.splice(e,1)[0];r.clear(),this.rows.splice(this.currRow,0,r),this.logger.log(2,"Rolling up")}else this.logger.log(3,"roll_up but nrRollUpRows not set yet")},e.getDisplayText=function(t){t=t||!1;for(var e=[],r="",n=-1,i=0;i<15;i++){var a=this.rows[i].getTextString();a&&(n=i+1,t?e.push("Row "+n+": '"+a+"'"):e.push(a.trim()))}return e.length>0&&(r=t?"["+e.join(" | ")+"]":e.join("\n")),r},e.getTextAndFormat=function(){return this.rows},t}(),Ti=function(){function t(t,e,r){this.chNr=void 0,this.outputFilter=void 0,this.mode=void 0,this.verbose=void 0,this.displayedMemory=void 0,this.nonDisplayedMemory=void 0,this.lastOutputScreen=void 0,this.currRollUpRow=void 0,this.writeScreen=void 0,this.cueStartTime=void 0,this.logger=void 0,this.chNr=t,this.outputFilter=e,this.mode=null,this.verbose=0,this.displayedMemory=new xi(r),this.nonDisplayedMemory=new xi(r),this.lastOutputScreen=new xi(r),this.currRollUpRow=this.displayedMemory.rows[14],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null,this.logger=r}var e=t.prototype;return e.reset=function(){this.mode=null,this.displayedMemory.reset(),this.nonDisplayedMemory.reset(),this.lastOutputScreen.reset(),this.outputFilter.reset(),this.currRollUpRow=this.displayedMemory.rows[14],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null},e.getHandler=function(){return this.outputFilter},e.setHandler=function(t){this.outputFilter=t},e.setPAC=function(t){this.writeScreen.setPAC(t)},e.setBkgData=function(t){this.writeScreen.setBkgData(t)},e.setMode=function(t){t!==this.mode&&(this.mode=t,this.logger.log(2,(function(){return"MODE="+t})),"MODE_POP-ON"===this.mode?this.writeScreen=this.nonDisplayedMemory:(this.writeScreen=this.displayedMemory,this.writeScreen.reset()),"MODE_ROLL-UP"!==this.mode&&(this.displayedMemory.nrRollUpRows=null,this.nonDisplayedMemory.nrRollUpRows=null),this.mode=t)},e.insertChars=function(t){for(var e=this,r=0;r<t.length;r++)this.writeScreen.insertChar(t[r]);var n=this.writeScreen===this.displayedMemory?"DISP":"NON_DISP";this.logger.log(2,(function(){return n+": "+e.writeScreen.getDisplayText(!0)})),"MODE_PAINT-ON"!==this.mode&&"MODE_ROLL-UP"!==this.mode||(this.logger.log(1,(function(){return"DISPLAYED: "+e.displayedMemory.getDisplayText(!0)})),this.outputDataUpdate())},e.ccRCL=function(){this.logger.log(2,"RCL - Resume Caption Loading"),this.setMode("MODE_POP-ON")},e.ccBS=function(){this.logger.log(2,"BS - BackSpace"),"MODE_TEXT"!==this.mode&&(this.writeScreen.backSpace(),this.writeScreen===this.displayedMemory&&this.outputDataUpdate())},e.ccAOF=function(){},e.ccAON=function(){},e.ccDER=function(){this.logger.log(2,"DER- Delete to End of Row"),this.writeScreen.clearToEndOfRow(),this.outputDataUpdate()},e.ccRU=function(t){this.logger.log(2,"RU("+t+") - Roll Up"),this.writeScreen=this.displayedMemory,this.setMode("MODE_ROLL-UP"),this.writeScreen.setRollUpRows(t)},e.ccFON=function(){this.logger.log(2,"FON - Flash On"),this.writeScreen.setPen({flash:!0})},e.ccRDC=function(){this.logger.log(2,"RDC - Resume Direct Captioning"),this.setMode("MODE_PAINT-ON")},e.ccTR=function(){this.logger.log(2,"TR"),this.setMode("MODE_TEXT")},e.ccRTD=function(){this.logger.log(2,"RTD"),this.setMode("MODE_TEXT")},e.ccEDM=function(){this.logger.log(2,"EDM - Erase Displayed Memory"),this.displayedMemory.reset(),this.outputDataUpdate(!0)},e.ccCR=function(){this.logger.log(2,"CR - Carriage Return"),this.writeScreen.rollUp(),this.outputDataUpdate(!0)},e.ccENM=function(){this.logger.log(2,"ENM - Erase Non-displayed Memory"),this.nonDisplayedMemory.reset()},e.ccEOC=function(){var t=this;if(this.logger.log(2,"EOC - End Of Caption"),"MODE_POP-ON"===this.mode){var e=this.displayedMemory;this.displayedMemory=this.nonDisplayedMemory,this.nonDisplayedMemory=e,this.writeScreen=this.nonDisplayedMemory,this.logger.log(1,(function(){return"DISP: "+t.displayedMemory.getDisplayText()}))}this.outputDataUpdate(!0)},e.ccTO=function(t){this.logger.log(2,"TO("+t+") - Tab Offset"),this.writeScreen.moveCursor(t)},e.ccMIDROW=function(t){var e={flash:!1};if(e.underline=t%2==1,e.italics=t>=46,e.italics)e.foreground="white";else{var r=Math.floor(t/2)-16;e.foreground=["white","green","blue","cyan","red","yellow","magenta"][r]}this.logger.log(2,"MIDROW: "+JSON.stringify(e)),this.writeScreen.setPen(e)},e.outputDataUpdate=function(t){void 0===t&&(t=!1);var e=this.logger.time;null!==e&&this.outputFilter&&(null!==this.cueStartTime||this.displayedMemory.isEmpty()?this.displayedMemory.equals(this.lastOutputScreen)||(this.outputFilter.newCue(this.cueStartTime,e,this.lastOutputScreen),t&&this.outputFilter.dispatchCue&&this.outputFilter.dispatchCue(),this.cueStartTime=this.displayedMemory.isEmpty()?null:e):this.cueStartTime=e,this.lastOutputScreen.copy(this.displayedMemory))},e.cueSplitAtTime=function(t){this.outputFilter&&(this.displayedMemory.isEmpty()||(this.outputFilter.newCue&&this.outputFilter.newCue(this.cueStartTime,t,this.displayedMemory),this.cueStartTime=t))},t}(),Si=function(){function t(t,e,r){this.channels=void 0,this.currentChannel=0,this.cmdHistory=void 0,this.logger=void 0;var n=new bi;this.channels=[null,new Ti(t,e,n),new Ti(t+1,r,n)],this.cmdHistory={a:null,b:null},this.logger=n}var e=t.prototype;return e.getHandler=function(t){return this.channels[t].getHandler()},e.setHandler=function(t,e){this.channels[t].setHandler(e)},e.addData=function(t,e){var r,n,i,a=!1;this.logger.time=t;for(var s=0;s<e.length;s+=2)if(n=127&e[s],i=127&e[s+1],0!==n||0!==i){if(this.logger.log(3,"["+_i([e[s],e[s+1]])+"] -> ("+_i([n,i])+")"),(r=this.parseCmd(n,i))||(r=this.parseMidrow(n,i)),r||(r=this.parsePAC(n,i)),r||(r=this.parseBackgroundAttributes(n,i)),!r&&(a=this.parseChars(n,i))){var o=this.currentChannel;o&&o>0?this.channels[o].insertChars(a):this.logger.log(2,"No channel found yet. TEXT-MODE?")}r||a||this.logger.log(2,"Couldn't parse cleaned data "+_i([n,i])+" orig: "+_i([e[s],e[s+1]]))}},e.parseCmd=function(t,e){var r=this.cmdHistory;if(!((20===t||28===t||21===t||29===t)&&e>=32&&e<=47||(23===t||31===t)&&e>=33&&e<=35))return!1;if(Ii(t,e,r))return ki(null,null,r),this.logger.log(3,"Repeated command ("+_i([t,e])+") is dropped"),!0;var n=20===t||21===t||23===t?1:2,i=this.channels[n];return 20===t||21===t||28===t||29===t?32===e?i.ccRCL():33===e?i.ccBS():34===e?i.ccAOF():35===e?i.ccAON():36===e?i.ccDER():37===e?i.ccRU(2):38===e?i.ccRU(3):39===e?i.ccRU(4):40===e?i.ccFON():41===e?i.ccRDC():42===e?i.ccTR():43===e?i.ccRTD():44===e?i.ccEDM():45===e?i.ccCR():46===e?i.ccENM():47===e&&i.ccEOC():i.ccTO(e-32),ki(t,e,r),this.currentChannel=n,!0},e.parseMidrow=function(t,e){var r=0;if((17===t||25===t)&&e>=32&&e<=47){if((r=17===t?1:2)!==this.currentChannel)return this.logger.log(0,"Mismatch channel in midrow parsing"),!1;var n=this.channels[r];return!!n&&(n.ccMIDROW(e),this.logger.log(3,"MIDROW ("+_i([t,e])+")"),!0)}return!1},e.parsePAC=function(t,e){var r,n=this.cmdHistory;if(!((t>=17&&t<=23||t>=25&&t<=31)&&e>=64&&e<=127||(16===t||24===t)&&e>=64&&e<=95))return!1;if(Ii(t,e,n))return ki(null,null,n),!0;var i=t<=23?1:2;r=e>=64&&e<=95?1===i?gi[t]:mi[t]:1===i?vi[t]:yi[t];var a=this.channels[i];return!!a&&(a.setPAC(this.interpretPAC(r,e)),ki(t,e,n),this.currentChannel=i,!0)},e.interpretPAC=function(t,e){var r,n={color:null,italics:!1,indent:null,underline:!1,row:t};return r=e>95?e-96:e-64,n.underline=1==(1&r),r<=13?n.color=["white","green","blue","cyan","red","yellow","magenta","white"][Math.floor(r/2)]:r<=15?(n.italics=!0,n.color="white"):n.indent=4*Math.floor((r-16)/2),n},e.parseChars=function(t,e){var r,n,i=null,a=null;if(t>=25?(r=2,a=t-8):(r=1,a=t),a>=17&&a<=19?(n=17===a?e+80:18===a?e+112:e+144,this.logger.log(2,"Special char '"+hi(n)+"' in channel "+r),i=[n]):t>=32&&t<=127&&(i=0===e?[t]:[t,e]),i){var s=_i(i);this.logger.log(3,"Char codes =  "+s.join(",")),ki(t,e,this.cmdHistory)}return i},e.parseBackgroundAttributes=function(t,e){var r;if(!((16===t||24===t)&&e>=32&&e<=47||(23===t||31===t)&&e>=45&&e<=47))return!1;var n={};16===t||24===t?(r=Math.floor((e-32)/2),n.background=wi[r],e%2==1&&(n.background=n.background+"_semi")):45===e?n.background="transparent":(n.foreground="black",47===e&&(n.underline=!0));var i=t<=23?1:2;return this.channels[i].setBkgData(n),ki(t,e,this.cmdHistory),!0},e.reset=function(){for(var t=0;t<Object.keys(this.channels).length;t++){var e=this.channels[t];e&&e.reset()}this.cmdHistory={a:null,b:null}},e.cueSplitAtTime=function(t){for(var e=0;e<this.channels.length;e++){var r=this.channels[e];r&&r.cueSplitAtTime(t)}},t}();function ki(t,e,r){r.a=t,r.b=e}function Ii(t,e,r){return r.a===t&&r.b===e}var Fi=function(){function t(t,e){this.timelineController=void 0,this.cueRanges=[],this.trackName=void 0,this.startTime=null,this.endTime=null,this.screen=null,this.timelineController=t,this.trackName=e}var e=t.prototype;return e.dispatchCue=function(){null!==this.startTime&&(this.timelineController.addCues(this.trackName,this.startTime,this.endTime,this.screen,this.cueRanges),this.startTime=null)},e.newCue=function(t,e,r){(null===this.startTime||this.startTime>t)&&(this.startTime=t),this.endTime=e,this.screen=r,this.timelineController.createCaptionsTrack(this.trackName)},e.reset=function(){this.cueRanges=[],this.startTime=null},t}(),Li=function(){if("undefined"!=typeof self&&self.VTTCue)return self.VTTCue;var t=["","lr","rl"],e=["start","middle","end","left","right"];function r(t,e){if("string"!=typeof e)return!1;if(!Array.isArray(t))return!1;var r=e.toLowerCase();return!!~t.indexOf(r)&&r}function n(t){return r(e,t)}function i(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];for(var i=1;i<arguments.length;i++){var a=arguments[i];for(var s in a)t[s]=a[s]}return t}function a(e,a,s){var o=this,u={enumerable:!0};o.hasBeenReset=!1;var l="",c=!1,A=e,d=a,f=s,h=null,p="",g=!0,v="auto",m="start",y=50,w="middle",b=50,_="middle";Object.defineProperty(o,"id",i({},u,{get:function(){return l},set:function(t){l=""+t}})),Object.defineProperty(o,"pauseOnExit",i({},u,{get:function(){return c},set:function(t){c=!!t}})),Object.defineProperty(o,"startTime",i({},u,{get:function(){return A},set:function(t){if("number"!=typeof t)throw new TypeError("Start time must be set to a number.");A=t,this.hasBeenReset=!0}})),Object.defineProperty(o,"endTime",i({},u,{get:function(){return d},set:function(t){if("number"!=typeof t)throw new TypeError("End time must be set to a number.");d=t,this.hasBeenReset=!0}})),Object.defineProperty(o,"text",i({},u,{get:function(){return f},set:function(t){f=""+t,this.hasBeenReset=!0}})),Object.defineProperty(o,"region",i({},u,{get:function(){return h},set:function(t){h=t,this.hasBeenReset=!0}})),Object.defineProperty(o,"vertical",i({},u,{get:function(){return p},set:function(e){var n=function(e){return r(t,e)}(e);if(!1===n)throw new SyntaxError("An invalid or illegal string was specified.");p=n,this.hasBeenReset=!0}})),Object.defineProperty(o,"snapToLines",i({},u,{get:function(){return g},set:function(t){g=!!t,this.hasBeenReset=!0}})),Object.defineProperty(o,"line",i({},u,{get:function(){return v},set:function(t){if("number"!=typeof t&&"auto"!==t)throw new SyntaxError("An invalid number or illegal string was specified.");v=t,this.hasBeenReset=!0}})),Object.defineProperty(o,"lineAlign",i({},u,{get:function(){return m},set:function(t){var e=n(t);if(!e)throw new SyntaxError("An invalid or illegal string was specified.");m=e,this.hasBeenReset=!0}})),Object.defineProperty(o,"position",i({},u,{get:function(){return y},set:function(t){if(t<0||t>100)throw new Error("Position must be between 0 and 100.");y=t,this.hasBeenReset=!0}})),Object.defineProperty(o,"positionAlign",i({},u,{get:function(){return w},set:function(t){var e=n(t);if(!e)throw new SyntaxError("An invalid or illegal string was specified.");w=e,this.hasBeenReset=!0}})),Object.defineProperty(o,"size",i({},u,{get:function(){return b},set:function(t){if(t<0||t>100)throw new Error("Size must be between 0 and 100.");b=t,this.hasBeenReset=!0}})),Object.defineProperty(o,"align",i({},u,{get:function(){return _},set:function(t){var e=n(t);if(!e)throw new SyntaxError("An invalid or illegal string was specified.");_=e,this.hasBeenReset=!0}})),o.displayState=void 0}return a.prototype.getCueAsHTML=function(){return self.WebVTT.convertCueToDOMTree(self,this.text)},a}(),Di=function(){function t(){}return t.prototype.decode=function(t,e){if(!t)return"";if("string"!=typeof t)throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(t))},t}();function Ri(t){function e(t,e,r,n){return 3600*(0|t)+60*(0|e)+(0|r)+parseFloat(n||0)}var r=t.match(/^(?:(\d+):)?(\d{2}):(\d{2})(\.\d+)?/);return r?parseFloat(r[2])>59?e(r[2],r[3],0,r[4]):e(r[1],r[2],r[3],r[4]):null}var Ui=function(){function t(){this.values=Object.create(null)}var e=t.prototype;return e.set=function(t,e){this.get(t)||""===e||(this.values[t]=e)},e.get=function(t,e,r){return r?this.has(t)?this.values[t]:e[r]:this.has(t)?this.values[t]:e},e.has=function(t){return t in this.values},e.alt=function(t,e,r){for(var n=0;n<r.length;++n)if(e===r[n]){this.set(t,e);break}},e.integer=function(t,e){/^-?\d+$/.test(e)&&this.set(t,parseInt(e,10))},e.percent=function(t,e){if(/^([\d]{1,3})(\.[\d]*)?%$/.test(e)){var r=parseFloat(e);if(r>=0&&r<=100)return this.set(t,r),!0}return!1},t}();function Oi(t,e,r,n){var i=n?t.split(n):[t];for(var a in i)if("string"==typeof i[a]){var s=i[a].split(r);2===s.length&&e(s[0],s[1])}}var Pi=new Li(0,0,""),Mi="middle"===Pi.align?"middle":"center";function Qi(t,e,r){var n=t;function i(){var e=Ri(t);if(null===e)throw new Error("Malformed timestamp: "+n);return t=t.replace(/^[^\sa-zA-Z-]+/,""),e}function a(){t=t.replace(/^\s+/,"")}if(a(),e.startTime=i(),a(),"--\x3e"!==t.slice(0,3))throw new Error("Malformed time stamp (time stamps must be separated by '--\x3e'): "+n);t=t.slice(3),a(),e.endTime=i(),a(),function(t,e){var n=new Ui;Oi(t,(function(t,e){var i;switch(t){case"region":for(var a=r.length-1;a>=0;a--)if(r[a].id===e){n.set(t,r[a].region);break}break;case"vertical":n.alt(t,e,["rl","lr"]);break;case"line":i=e.split(","),n.integer(t,i[0]),n.percent(t,i[0])&&n.set("snapToLines",!1),n.alt(t,i[0],["auto"]),2===i.length&&n.alt("lineAlign",i[1],["start",Mi,"end"]);break;case"position":i=e.split(","),n.percent(t,i[0]),2===i.length&&n.alt("positionAlign",i[1],["start",Mi,"end","line-left","line-right","auto"]);break;case"size":n.percent(t,e);break;case"align":n.alt(t,e,["start",Mi,"end","left","right"])}}),/:/,/\s/),e.region=n.get("region",null),e.vertical=n.get("vertical","");var i=n.get("line","auto");"auto"===i&&-1===Pi.line&&(i=-1),e.line=i,e.lineAlign=n.get("lineAlign","start"),e.snapToLines=n.get("snapToLines",!0),e.size=n.get("size",100),e.align=n.get("align",Mi);var a=n.get("position","auto");"auto"===a&&50===Pi.position&&(a="start"===e.align||"left"===e.align?0:"end"===e.align||"right"===e.align?100:50),e.position=a}(t,e)}function Ni(t){return t.replace(/<br(?: \/)?>/gi,"\n")}var Hi=function(){function t(){this.state="INITIAL",this.buffer="",this.decoder=new Di,this.regionList=[],this.cue=null,this.oncue=void 0,this.onparsingerror=void 0,this.onflush=void 0}var e=t.prototype;return e.parse=function(t){var e=this;function r(){var t=e.buffer,r=0;for(t=Ni(t);r<t.length&&"\r"!==t[r]&&"\n"!==t[r];)++r;var n=t.slice(0,r);return"\r"===t[r]&&++r,"\n"===t[r]&&++r,e.buffer=t.slice(r),n}t&&(e.buffer+=e.decoder.decode(t,{stream:!0}));try{var n="";if("INITIAL"===e.state){if(!/\r\n|\n/.test(e.buffer))return this;var i=(n=r()).match(/^(\xef\xbb\xbf)?WEBVTT([ \t].*)?$/);if(null==i||!i[0])throw new Error("Malformed WebVTT signature.");e.state="HEADER"}for(var a=!1;e.buffer;){if(!/\r\n|\n/.test(e.buffer))return this;switch(a?a=!1:n=r(),e.state){case"HEADER":/:/.test(n)?Oi(n,(function(t,e){}),/:/):n||(e.state="ID");continue;case"NOTE":n||(e.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(n)){e.state="NOTE";break}if(!n)continue;if(e.cue=new Li(0,0,""),e.state="CUE",-1===n.indexOf("--\x3e")){e.cue.id=n;continue}case"CUE":if(!e.cue){e.state="BADCUE";continue}try{Qi(n,e.cue,e.regionList)}catch(t){e.cue=null,e.state="BADCUE";continue}e.state="CUETEXT";continue;case"CUETEXT":var s=-1!==n.indexOf("--\x3e");if(!n||s&&(a=!0)){e.oncue&&e.cue&&e.oncue(e.cue),e.cue=null,e.state="ID";continue}if(null===e.cue)continue;e.cue.text&&(e.cue.text+="\n"),e.cue.text+=n;continue;case"BADCUE":n||(e.state="ID")}}}catch(t){"CUETEXT"===e.state&&e.cue&&e.oncue&&e.oncue(e.cue),e.cue=null,e.state="INITIAL"===e.state?"BADWEBVTT":"BADCUE"}return this},e.flush=function(){var t=this;try{if((t.cue||"HEADER"===t.state)&&(t.buffer+="\n\n",t.parse()),"INITIAL"===t.state||"BADWEBVTT"===t.state)throw new Error("Malformed WebVTT signature.")}catch(e){t.onparsingerror&&t.onparsingerror(e)}return t.onflush&&t.onflush(),this},t}(),$i=/\r\n|\n\r|\n|\r/g,ji=function(t,e,r){return void 0===r&&(r=0),t.slice(r,r+e.length)===e},Ki=function(t){for(var e=5381,r=t.length;r;)e=33*e^t.charCodeAt(--r);return(e>>>0).toString()};function Gi(t,e,r){return Ki(t.toString())+Ki(e.toString())+Ki(r)}var Vi="stpp.ttml.im1t",Wi=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,zi=/^(\d*(?:\.\d*)?)(h|m|s|ms|f|t)$/,Yi={left:"start",center:"center",right:"end",start:"start",end:"end"};function qi(t,e,r,n){var i=xt(new Uint8Array(t),["mdat"]);if(0!==i.length){var a,s,o,l=i.map((function(t){return gt(t)})),c=(a=e.baseTime,1,void 0===(s=e.timescale)&&(s=1),void 0===o&&(o=!1),Bn(a,1,1/s,o));try{l.forEach((function(t){return r(function(t,e){var r=(new DOMParser).parseFromString(t,"text/xml").getElementsByTagName("tt")[0];if(!r)throw new Error("Invalid ttml");var n={frameRate:30,subFrameRate:1,frameRateMultiplier:0,tickRate:0},i=Object.keys(n).reduce((function(t,e){return t[e]=r.getAttribute("ttp:"+e)||n[e],t}),{}),a="preserve"!==r.getAttribute("xml:space"),s=Ji(Xi(r,"styling","style")),o=Ji(Xi(r,"layout","region")),l=Xi(r,"body","[begin]");return[].map.call(l,(function(t){var r=function t(e,r){return[].slice.call(e.childNodes).reduce((function(e,n,i){var a;return"br"===n.nodeName&&i?e+"\n":null!=(a=n.childNodes)&&a.length?t(n,r):r?e+n.textContent.trim().replace(/\s+/g," "):e+n.textContent}),"")}(t,a);if(!r||!t.hasAttribute("begin"))return null;var n=ea(t.getAttribute("begin"),i),l=ea(t.getAttribute("dur"),i),c=ea(t.getAttribute("end"),i);if(null===n)throw ta(t);if(null===c){if(null===l)throw ta(t);c=n+l}var A=new Li(n-e,c-e,r);A.id=Gi(A.startTime,A.endTime,A.text);var d=function(t,e,r){var n="http://www.w3.org/ns/ttml#styling",i=null,a=null!=t&&t.hasAttribute("style")?t.getAttribute("style"):null;return a&&r.hasOwnProperty(a)&&(i=r[a]),["displayAlign","textAlign","color","backgroundColor","fontSize","fontFamily"].reduce((function(r,a){var s=Zi(e,n,a)||Zi(t,n,a)||Zi(i,n,a);return s&&(r[a]=s),r}),{})}(o[t.getAttribute("region")],s[t.getAttribute("style")],s),f=d.textAlign;if(f){var h=Yi[f];h&&(A.lineAlign=h),A.align=f}return u(A,d),A})).filter((function(t){return null!==t}))}(t,c))}))}catch(t){n(t)}}else n(new Error("Could not parse IMSC1 mdat"))}function Xi(t,e,r){var n=t.getElementsByTagName(e)[0];return n?[].slice.call(n.querySelectorAll(r)):[]}function Ji(t){return t.reduce((function(t,e){var r=e.getAttribute("xml:id");return r&&(t[r]=e),t}),{})}function Zi(t,e,r){return t&&t.hasAttributeNS(e,r)?t.getAttributeNS(e,r):null}function ta(t){return new Error("Could not parse ttml timestamp "+t)}function ea(t,e){if(!t)return null;var r=Ri(t);return null===r&&(Wi.test(t)?r=function(t,e){var r=Wi.exec(t),n=(0|r[4])+(0|r[5])/e.subFrameRate;return 3600*(0|r[1])+60*(0|r[2])+(0|r[3])+n/e.frameRate}(t,e):zi.test(t)&&(r=function(t,e){var r=zi.exec(t),n=Number(r[1]);switch(r[2]){case"h":return 3600*n;case"m":return 60*n;case"ms":return 1e3*n;case"f":return n/e.frameRate;case"t":return n/e.tickRate}return n}(t,e))),r}var ra=function(){function t(t){if(this.hls=void 0,this.media=null,this.config=void 0,this.enabled=!0,this.Cues=void 0,this.textTracks=[],this.tracks=[],this.initPTS=[],this.unparsedVttFrags=[],this.captionsTracks={},this.nonNativeCaptionsTracks={},this.cea608Parser1=void 0,this.cea608Parser2=void 0,this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs={ccOffset:0,presentationOffset:0,0:{start:0,prevCC:-1,new:!0}},this.captionsProperties=void 0,this.hls=t,this.config=t.config,this.Cues=t.config.cueHandler,this.captionsProperties={textTrack1:{label:this.config.captionsTextTrack1Label,languageCode:this.config.captionsTextTrack1LanguageCode},textTrack2:{label:this.config.captionsTextTrack2Label,languageCode:this.config.captionsTextTrack2LanguageCode},textTrack3:{label:this.config.captionsTextTrack3Label,languageCode:this.config.captionsTextTrack3LanguageCode},textTrack4:{label:this.config.captionsTextTrack4Label,languageCode:this.config.captionsTextTrack4LanguageCode}},this.config.enableCEA708Captions){var e=new Fi(this,"textTrack1"),r=new Fi(this,"textTrack2"),n=new Fi(this,"textTrack3"),i=new Fi(this,"textTrack4");this.cea608Parser1=new Si(1,e,r),this.cea608Parser2=new Si(3,n,i)}t.on(b.MEDIA_ATTACHING,this.onMediaAttaching,this),t.on(b.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(b.MANIFEST_LOADING,this.onManifestLoading,this),t.on(b.MANIFEST_LOADED,this.onManifestLoaded,this),t.on(b.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),t.on(b.FRAG_LOADING,this.onFragLoading,this),t.on(b.FRAG_LOADED,this.onFragLoaded,this),t.on(b.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),t.on(b.FRAG_DECRYPTED,this.onFragDecrypted,this),t.on(b.INIT_PTS_FOUND,this.onInitPtsFound,this),t.on(b.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),t.on(b.BUFFER_FLUSHING,this.onBufferFlushing,this)}var e=t.prototype;return e.destroy=function(){var t=this.hls;t.off(b.MEDIA_ATTACHING,this.onMediaAttaching,this),t.off(b.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(b.MANIFEST_LOADING,this.onManifestLoading,this),t.off(b.MANIFEST_LOADED,this.onManifestLoaded,this),t.off(b.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),t.off(b.FRAG_LOADING,this.onFragLoading,this),t.off(b.FRAG_LOADED,this.onFragLoaded,this),t.off(b.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),t.off(b.FRAG_DECRYPTED,this.onFragDecrypted,this),t.off(b.INIT_PTS_FOUND,this.onInitPtsFound,this),t.off(b.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),t.off(b.BUFFER_FLUSHING,this.onBufferFlushing,this),this.hls=this.config=this.cea608Parser1=this.cea608Parser2=null},e.addCues=function(t,e,r,n,i){for(var a,s,o,u,l=!1,c=i.length;c--;){var A=i[c],d=(a=A[0],s=A[1],o=e,u=r,Math.min(s,u)-Math.max(a,o));if(d>=0&&(A[0]=Math.min(A[0],e),A[1]=Math.max(A[1],r),l=!0,d/(r-e)>.5))return}if(l||i.push([e,r]),this.config.renderTextTracksNatively){var f=this.captionsTracks[t];this.Cues.newCue(f,e,r,n)}else{var h=this.Cues.newCue(null,e,r,n);this.hls.trigger(b.CUES_PARSED,{type:"captions",cues:h,track:t})}},e.onInitPtsFound=function(t,e){var r=this,n=e.frag,i=e.id,a=e.initPTS,s=e.timescale,o=this.unparsedVttFrags;"main"===i&&(this.initPTS[n.cc]={baseTime:a,timescale:s}),o.length&&(this.unparsedVttFrags=[],o.forEach((function(t){r.onFragLoaded(b.FRAG_LOADED,t)})))},e.getExistingTrack=function(t){var e=this.media;if(e)for(var r=0;r<e.textTracks.length;r++){var n=e.textTracks[r];if(n[t])return n}return null},e.createCaptionsTrack=function(t){this.config.renderTextTracksNatively?this.createNativeTrack(t):this.createNonNativeTrack(t)},e.createNativeTrack=function(t){if(!this.captionsTracks[t]){var e=this.captionsProperties,r=this.captionsTracks,n=this.media,i=e[t],a=i.label,s=i.languageCode,o=this.getExistingTrack(t);if(o)r[t]=o,ye(r[t]),ve(r[t],n);else{var u=this.createTextTrack("captions",a,s);u&&(u[t]=!0,r[t]=u)}}},e.createNonNativeTrack=function(t){if(!this.nonNativeCaptionsTracks[t]){var e=this.captionsProperties[t];if(e){var r={_id:t,label:e.label,kind:"captions",default:!!e.media&&!!e.media.default,closedCaptions:e.media};this.nonNativeCaptionsTracks[t]=r,this.hls.trigger(b.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:[r]})}}},e.createTextTrack=function(t,e,r){var n=this.media;if(n)return n.addTextTrack(t,e,r)},e.onMediaAttaching=function(t,e){this.media=e.media,this._cleanTracks()},e.onMediaDetaching=function(){var t=this.captionsTracks;Object.keys(t).forEach((function(e){ye(t[e]),delete t[e]})),this.nonNativeCaptionsTracks={}},e.onManifestLoading=function(){this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs={ccOffset:0,presentationOffset:0,0:{start:0,prevCC:-1,new:!0}},this._cleanTracks(),this.tracks=[],this.captionsTracks={},this.nonNativeCaptionsTracks={},this.textTracks=[],this.unparsedVttFrags=[],this.initPTS=[],this.cea608Parser1&&this.cea608Parser2&&(this.cea608Parser1.reset(),this.cea608Parser2.reset())},e._cleanTracks=function(){var t=this.media;if(t){var e=t.textTracks;if(e)for(var r=0;r<e.length;r++)ye(e[r])}},e.onSubtitleTracksUpdated=function(t,e){var r=this,n=e.subtitleTracks||[],i=n.some((function(t){return t.textCodec===Vi}));if(this.config.enableWebVTT||i&&this.config.enableIMSC1){if(ni(this.tracks,n))return void(this.tracks=n);if(this.textTracks=[],this.tracks=n,this.config.renderTextTracksNatively){var a=this.media?this.media.textTracks:null;this.tracks.forEach((function(t,e){var n;if(a&&e<a.length){for(var i=null,s=0;s<a.length;s++)if(na(a[s],t)){i=a[s];break}i&&(n=i)}if(n)ye(n);else{var o=r._captionsOrSubtitlesFromCharacteristics(t);(n=r.createTextTrack(o,t.name,t.lang))&&(n.mode="disabled")}n&&(n.groupId=t.groupId,r.textTracks.push(n))}))}else if(this.tracks.length){var s=this.tracks.map((function(t){return{label:t.name,kind:t.type.toLowerCase(),default:t.default,subtitleTrack:t}}));this.hls.trigger(b.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:s})}}},e._captionsOrSubtitlesFromCharacteristics=function(t){if(t.attrs.CHARACTERISTICS){var e=/transcribes-spoken-dialog/gi.test(t.attrs.CHARACTERISTICS),r=/describes-music-and-sound/gi.test(t.attrs.CHARACTERISTICS);if(e&&r)return"captions"}return"subtitles"},e.onManifestLoaded=function(t,e){var r=this;this.config.enableCEA708Captions&&e.captions&&e.captions.forEach((function(t){var e=/(?:CC|SERVICE)([1-4])/.exec(t.instreamId);if(e){var n="textTrack"+e[1],i=r.captionsProperties[n];i&&(i.label=t.name,t.lang&&(i.languageCode=t.lang),i.media=t)}}))},e.closedCaptionsForLevel=function(t){var e=this.hls.levels[t.level];return null==e?void 0:e.attrs["CLOSED-CAPTIONS"]},e.onFragLoading=function(t,e){var r=this.cea608Parser1,n=this.cea608Parser2,i=this.lastSn,a=this.lastPartIndex;if(this.enabled&&r&&n&&e.frag.type===Ae){var s,o,u=e.frag.sn,l=null!=(s=null==e||null==(o=e.part)?void 0:o.index)?s:-1;u===i+1||u===i&&l===a+1||(r.reset(),n.reset()),this.lastSn=u,this.lastPartIndex=l}},e.onFragLoaded=function(t,e){var r=e.frag,n=e.payload;if(r.type===fe)if(n.byteLength){var i=r.decryptdata,a="stats"in e;if(null==i||!i.encrypted||a){var s=this.tracks[r.level],o=this.vttCCs;o[r.cc]||(o[r.cc]={start:r.start,prevCC:this.prevCC,new:!0},this.prevCC=r.cc),s&&s.textCodec===Vi?this._parseIMSC1(r,n):this._parseVTTs(e)}}else this.hls.trigger(b.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:r,error:new Error("Empty subtitle payload")})},e._parseIMSC1=function(t,e){var r=this,n=this.hls;qi(e,this.initPTS[t.cc],(function(e){r._appendCues(e,t.level),n.trigger(b.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:t})}),(function(e){k.log("Failed to parse IMSC1: "+e),n.trigger(b.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:t,error:e})}))},e._parseVTTs=function(t){var e,r=this,n=t.frag,i=t.payload,a=this.initPTS,s=this.unparsedVttFrags,o=a.length-1;if(a[n.cc]||-1!==o){var u=this.hls;(function(t,e,r,n,i,a,s){var o,u,l,c=new Hi,A=gt(new Uint8Array(t)).trim().replace($i,"\n").split("\n"),d=[],f=e?(o=e.baseTime,void 0===(u=e.timescale)&&(u=1),Bn(o,9e4,1/u)):0,h="00:00.000",p=0,g=0,v=!0;c.oncue=function(t){var a=r[n],s=r.ccOffset,o=(p-f)/9e4;if(null!=a&&a.new&&(void 0!==g?s=r.ccOffset=a.start:function(t,e,r){var n=t[e],i=t[n.prevCC];if(!i||!i.new&&n.new)return t.ccOffset=t.presentationOffset=n.start,void(n.new=!1);for(;null!=(a=i)&&a.new;){var a;t.ccOffset+=n.start-i.start,n.new=!1,i=t[(n=i).prevCC]}t.presentationOffset=r}(r,n,o)),o){if(!e)return void(l=new Error("Missing initPTS for VTT MPEGTS"));s=o-r.presentationOffset}var u=t.endTime-t.startTime,c=Sn(9e4*(t.startTime+s-g),9e4*i)/9e4;t.startTime=Math.max(c,0),t.endTime=Math.max(c+u,0);var A=t.text.trim();t.text=decodeURIComponent(encodeURIComponent(A)),t.id||(t.id=Gi(t.startTime,t.endTime,A)),t.endTime>0&&d.push(t)},c.onparsingerror=function(t){l=t},c.onflush=function(){l?s(l):a(d)},A.forEach((function(t){if(v){if(ji(t,"X-TIMESTAMP-MAP=")){v=!1,t.slice(16).split(",").forEach((function(t){ji(t,"LOCAL:")?h=t.slice(6):ji(t,"MPEGTS:")&&(p=parseInt(t.slice(7)))}));try{g=function(t){var e=parseInt(t.slice(-3)),r=parseInt(t.slice(-6,-4)),n=parseInt(t.slice(-9,-7)),i=t.length>9?parseInt(t.substring(0,t.indexOf(":"))):0;if(!(w(e)&&w(r)&&w(n)&&w(i)))throw Error("Malformed X-TIMESTAMP-MAP: Local:"+t);return e+=1e3*r,(e+=6e4*n)+36e5*i}(h)/1e3}catch(t){l=t}return}""===t&&(v=!1)}c.parse(t+"\n")})),c.flush()})(null!=(e=n.initSegment)&&e.data?Ft(n.initSegment.data,new Uint8Array(i)):i,this.initPTS[n.cc],this.vttCCs,n.cc,n.start,(function(t){r._appendCues(t,n.level),u.trigger(b.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:n})}),(function(e){var a="Missing initPTS for VTT MPEGTS"===e.message;a?s.push(t):r._fallbackToIMSC1(n,i),k.log("Failed to parse VTT cue: "+e),a&&o>n.cc||u.trigger(b.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:n,error:e})}))}else s.push(t)},e._fallbackToIMSC1=function(t,e){var r=this,n=this.tracks[t.level];n.textCodec||qi(e,this.initPTS[t.cc],(function(){n.textCodec=Vi,r._parseIMSC1(t,e)}),(function(){n.textCodec="wvtt"}))},e._appendCues=function(t,e){var r=this.hls;if(this.config.renderTextTracksNatively){var n=this.textTracks[e];if(!n||"disabled"===n.mode)return;t.forEach((function(t){return me(n,t)}))}else{var i=this.tracks[e];if(!i)return;var a=i.default?"default":"subtitles"+e;r.trigger(b.CUES_PARSED,{type:"subtitles",cues:t,track:a})}},e.onFragDecrypted=function(t,e){e.frag.type===fe&&this.onFragLoaded(b.FRAG_LOADED,e)},e.onSubtitleTracksCleared=function(){this.tracks=[],this.captionsTracks={}},e.onFragParsingUserdata=function(t,e){var r=this.cea608Parser1,n=this.cea608Parser2;if(this.enabled&&r&&n){var i=e.frag,a=e.samples;if(i.type!==Ae||"NONE"!==this.closedCaptionsForLevel(i))for(var s=0;s<a.length;s++){var o=a[s].bytes;if(o){var u=this.extractCea608Data(o);r.addData(a[s].pts,u[0]),n.addData(a[s].pts,u[1])}}}},e.onBufferFlushing=function(t,e){var r=e.startOffset,n=e.endOffset,i=e.endOffsetSubtitles,a=e.type,s=this.media;if(s&&!(s.currentTime<n)){if(!a||"video"===a){var o=this.captionsTracks;Object.keys(o).forEach((function(t){return we(o[t],r,n)}))}if(this.config.renderTextTracksNatively&&0===r&&void 0!==i){var u=this.textTracks;Object.keys(u).forEach((function(t){return we(u[t],r,i)}))}}},e.extractCea608Data=function(t){for(var e=[[],[]],r=31&t[0],n=2,i=0;i<r;i++){var a=t[n++],s=127&t[n++],o=127&t[n++];if((0!==s||0!==o)&&0!=(4&a)){var u=3&a;0!==u&&1!==u||(e[u].push(s),e[u].push(o))}}return e},t}();function na(t,e){return!!t&&t.label===e.name&&!(t.textTrack1||t.textTrack2)}var ia=function(){function t(t){this.hls=void 0,this.autoLevelCapping=void 0,this.firstLevel=void 0,this.media=void 0,this.restrictedLevels=void 0,this.timer=void 0,this.clientRect=void 0,this.streamController=void 0,this.hls=t,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.firstLevel=-1,this.media=null,this.restrictedLevels=[],this.timer=void 0,this.clientRect=null,this.registerListeners()}var e=t.prototype;return e.setStreamController=function(t){this.streamController=t},e.destroy=function(){this.unregisterListener(),this.hls.config.capLevelToPlayerSize&&this.stopCapping(),this.media=null,this.clientRect=null,this.hls=this.streamController=null},e.registerListeners=function(){var t=this.hls;t.on(b.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),t.on(b.MEDIA_ATTACHING,this.onMediaAttaching,this),t.on(b.MANIFEST_PARSED,this.onManifestParsed,this),t.on(b.BUFFER_CODECS,this.onBufferCodecs,this),t.on(b.MEDIA_DETACHING,this.onMediaDetaching,this)},e.unregisterListener=function(){var t=this.hls;t.off(b.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),t.off(b.MEDIA_ATTACHING,this.onMediaAttaching,this),t.off(b.MANIFEST_PARSED,this.onManifestParsed,this),t.off(b.BUFFER_CODECS,this.onBufferCodecs,this),t.off(b.MEDIA_DETACHING,this.onMediaDetaching,this)},e.onFpsDropLevelCapping=function(t,e){var r=this.hls.levels[e.droppedLevel];this.isLevelAllowed(r)&&this.restrictedLevels.push({bitrate:r.bitrate,height:r.height,width:r.width})},e.onMediaAttaching=function(t,e){this.media=e.media instanceof HTMLVideoElement?e.media:null,this.clientRect=null},e.onManifestParsed=function(t,e){var r=this.hls;this.restrictedLevels=[],this.firstLevel=e.firstLevel,r.config.capLevelToPlayerSize&&e.video&&this.startCapping()},e.onBufferCodecs=function(t,e){this.hls.config.capLevelToPlayerSize&&e.video&&this.startCapping()},e.onMediaDetaching=function(){this.stopCapping()},e.detectPlayerSize=function(){if(this.media&&this.mediaHeight>0&&this.mediaWidth>0){var t=this.hls.levels;if(t.length){var e=this.hls;e.autoLevelCapping=this.getMaxLevel(t.length-1),e.autoLevelCapping>this.autoLevelCapping&&this.streamController&&this.streamController.nextLevelSwitch(),this.autoLevelCapping=e.autoLevelCapping}}},e.getMaxLevel=function(e){var r=this,n=this.hls.levels;if(!n.length)return-1;var i=n.filter((function(t,n){return r.isLevelAllowed(t)&&n<=e}));return this.clientRect=null,t.getMaxLevelByMediaSize(i,this.mediaWidth,this.mediaHeight)},e.startCapping=function(){this.timer||(this.autoLevelCapping=Number.POSITIVE_INFINITY,this.hls.firstLevel=this.getMaxLevel(this.firstLevel),self.clearInterval(this.timer),this.timer=self.setInterval(this.detectPlayerSize.bind(this),1e3),this.detectPlayerSize())},e.stopCapping=function(){this.restrictedLevels=[],this.firstLevel=-1,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.timer&&(self.clearInterval(this.timer),this.timer=void 0)},e.getDimensions=function(){if(this.clientRect)return this.clientRect;var t=this.media,e={width:0,height:0};if(t){var r=t.getBoundingClientRect();e.width=r.width,e.height=r.height,e.width||e.height||(e.width=r.right-r.left||t.width||0,e.height=r.bottom-r.top||t.height||0)}return this.clientRect=e,e},e.isLevelAllowed=function(t){return!this.restrictedLevels.some((function(e){return t.bitrate===e.bitrate&&t.width===e.width&&t.height===e.height}))},t.getMaxLevelByMediaSize=function(t,e,r){if(null==t||!t.length)return-1;for(var n,i,a=t.length-1,s=0;s<t.length;s+=1){var o=t[s];if((o.width>=e||o.height>=r)&&(n=o,!(i=t[s+1])||n.width!==i.width||n.height!==i.height)){a=s;break}}return a},n(t,[{key:"mediaWidth",get:function(){return this.getDimensions().width*this.contentScaleFactor}},{key:"mediaHeight",get:function(){return this.getDimensions().height*this.contentScaleFactor}},{key:"contentScaleFactor",get:function(){var t=1;if(!this.hls.config.ignoreDevicePixelRatio)try{t=self.devicePixelRatio}catch(t){}return t}}]),t}(),aa=function(){function t(t){this.hls=void 0,this.isVideoPlaybackQualityAvailable=!1,this.timer=void 0,this.media=null,this.lastTime=void 0,this.lastDroppedFrames=0,this.lastDecodedFrames=0,this.streamController=void 0,this.hls=t,this.registerListeners()}var e=t.prototype;return e.setStreamController=function(t){this.streamController=t},e.registerListeners=function(){this.hls.on(b.MEDIA_ATTACHING,this.onMediaAttaching,this)},e.unregisterListeners=function(){this.hls.off(b.MEDIA_ATTACHING,this.onMediaAttaching,this)},e.destroy=function(){this.timer&&clearInterval(this.timer),this.unregisterListeners(),this.isVideoPlaybackQualityAvailable=!1,this.media=null},e.onMediaAttaching=function(t,e){var r=this.hls.config;if(r.capLevelOnFPSDrop){var n=e.media instanceof self.HTMLVideoElement?e.media:null;this.media=n,n&&"function"==typeof n.getVideoPlaybackQuality&&(this.isVideoPlaybackQualityAvailable=!0),self.clearInterval(this.timer),this.timer=self.setInterval(this.checkFPSInterval.bind(this),r.fpsDroppedMonitoringPeriod)}},e.checkFPS=function(t,e,r){var n=performance.now();if(e){if(this.lastTime){var i=n-this.lastTime,a=r-this.lastDroppedFrames,s=e-this.lastDecodedFrames,o=1e3*a/i,u=this.hls;if(u.trigger(b.FPS_DROP,{currentDropped:a,currentDecoded:s,totalDroppedFrames:r}),o>0&&a>u.config.fpsDroppedMonitoringThreshold*s){var l=u.currentLevel;k.warn("drop FPS ratio greater than max allowed value for currentLevel: "+l),l>0&&(-1===u.autoLevelCapping||u.autoLevelCapping>=l)&&(l-=1,u.trigger(b.FPS_DROP_LEVEL_CAPPING,{level:l,droppedLevel:u.currentLevel}),u.autoLevelCapping=l,this.streamController.nextLevelSwitch())}}this.lastTime=n,this.lastDroppedFrames=r,this.lastDecodedFrames=e}},e.checkFPSInterval=function(){var t=this.media;if(t)if(this.isVideoPlaybackQualityAvailable){var e=t.getVideoPlaybackQuality();this.checkFPS(t,e.totalVideoFrames,e.droppedVideoFrames)}else this.checkFPS(t,t.webkitDecodedFrameCount,t.webkitDroppedFrameCount)},t}(),sa="[eme]",oa=function(){function t(e){this.hls=void 0,this.config=void 0,this.media=null,this.keyFormatPromise=null,this.keySystemAccessPromises={},this._requestLicenseFailureCount=0,this.mediaKeySessions=[],this.keyIdToKeySessionPromise={},this.setMediaKeysQueue=t.CDMCleanupPromise?[t.CDMCleanupPromise]:[],this.onMediaEncrypted=this._onMediaEncrypted.bind(this),this.onWaitingForKey=this._onWaitingForKey.bind(this),this.debug=k.debug.bind(k,sa),this.log=k.log.bind(k,sa),this.warn=k.warn.bind(k,sa),this.error=k.error.bind(k,sa),this.hls=e,this.config=e.config,this.registerListeners()}var r=t.prototype;return r.destroy=function(){this.unregisterListeners(),this.onMediaDetached();var t=this.config;t.requestMediaKeySystemAccessFunc=null,t.licenseXhrSetup=t.licenseResponseCallback=void 0,t.drmSystems=t.drmSystemOptions={},this.hls=this.onMediaEncrypted=this.onWaitingForKey=this.keyIdToKeySessionPromise=null,this.config=null},r.registerListeners=function(){this.hls.on(b.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.on(b.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.on(b.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.on(b.MANIFEST_LOADED,this.onManifestLoaded,this)},r.unregisterListeners=function(){this.hls.off(b.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.off(b.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.off(b.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.off(b.MANIFEST_LOADED,this.onManifestLoaded,this)},r.getLicenseServerUrl=function(t){var e=this.config,r=e.drmSystems,n=e.widevineLicenseUrl,i=r[t];if(i)return i.licenseUrl;if(t===G.WIDEVINE&&n)return n;throw new Error('no license server URL configured for key-system "'+t+'"')},r.getServerCertificateUrl=function(t){var e=this.config.drmSystems[t];if(e)return e.serverCertificateUrl;this.log('No Server Certificate in config.drmSystems["'+t+'"]')},r.attemptKeySystemAccess=function(t){var e=this,r=this.hls.levels,n=function(t,e,r){return!!t&&r.indexOf(t)===e},i=r.map((function(t){return t.audioCodec})).filter(n),a=r.map((function(t){return t.videoCodec})).filter(n);return i.length+a.length===0&&a.push("avc1.42e01e"),new Promise((function(r,n){!function t(s){var o=s.shift();e.getMediaKeysPromise(o,i,a).then((function(t){return r({keySystem:o,mediaKeys:t})})).catch((function(e){s.length?t(s):n(e instanceof ua?e:new ua({type:_.KEY_SYSTEM_ERROR,details:B.KEY_SYSTEM_NO_ACCESS,error:e,fatal:!0},e.message))}))}(t)}))},r.requestMediaKeySystemAccess=function(t,e){var r=this.config.requestMediaKeySystemAccessFunc;if("function"!=typeof r){var n="Configured requestMediaKeySystemAccess is not a function "+r;return null===tt&&"http:"===self.location.protocol&&(n="navigator.requestMediaKeySystemAccess is not available over insecure protocol "+location.protocol),Promise.reject(new Error(n))}return r(t,e)},r.getMediaKeysPromise=function(t,e,r){var n=this,i=function(t,e,r,n){var i;switch(t){case G.FAIRPLAY:i=["cenc","sinf"];break;case G.WIDEVINE:case G.PLAYREADY:i=["cenc"];break;case G.CLEARKEY:i=["cenc","keyids"];break;default:throw new Error("Unknown key-system: "+t)}return function(t,e,r,n){return[{initDataTypes:t,persistentState:n.persistentState||"not-allowed",distinctiveIdentifier:n.distinctiveIdentifier||"not-allowed",sessionTypes:n.sessionTypes||[n.sessionType||"temporary"],audioCapabilities:e.map((function(t){return{contentType:'audio/mp4; codecs="'+t+'"',robustness:n.audioRobustness||"",encryptionScheme:n.audioEncryptionScheme||null}})),videoCapabilities:r.map((function(t){return{contentType:'video/mp4; codecs="'+t+'"',robustness:n.videoRobustness||"",encryptionScheme:n.videoEncryptionScheme||null}}))}]}(i,e,r,n)}(t,e,r,this.config.drmSystemOptions),a=this.keySystemAccessPromises[t],s=null==a?void 0:a.keySystemAccess;if(!s){this.log('Requesting encrypted media "'+t+'" key-system access with config: '+JSON.stringify(i)),s=this.requestMediaKeySystemAccess(t,i);var o=this.keySystemAccessPromises[t]={keySystemAccess:s};return s.catch((function(e){n.log('Failed to obtain access to key-system "'+t+'": '+e)})),s.then((function(e){n.log('Access for key-system "'+e.keySystem+'" obtained');var r=n.fetchServerCertificate(t);return n.log('Create media-keys for "'+t+'"'),o.mediaKeys=e.createMediaKeys().then((function(e){return n.log('Media-keys created for "'+t+'"'),r.then((function(r){return r?n.setMediaKeysServerCertificate(e,t,r):e}))})),o.mediaKeys.catch((function(e){n.error('Failed to create media-keys for "'+t+'"}: '+e)})),o.mediaKeys}))}return s.then((function(){return a.mediaKeys}))},r.createMediaKeySessionContext=function(t){var e=t.decryptdata,r=t.keySystem,n=t.mediaKeys;this.log('Creating key-system session "'+r+'" keyId: '+vt(e.keyId||[]));var i=n.createSession(),a={decryptdata:e,keySystem:r,mediaKeys:n,mediaKeysSession:i,keyStatus:"status-pending"};return this.mediaKeySessions.push(a),a},r.renewKeySession=function(t){var e=t.decryptdata;if(e.pssh){var r=this.createMediaKeySessionContext(t),n=this.getKeyIdString(e);this.keyIdToKeySessionPromise[n]=this.generateRequestWithPreferredKeySession(r,"cenc",e.pssh,"expired")}else this.warn("Could not renew expired session. Missing pssh initData.");this.removeSession(t)},r.getKeyIdString=function(t){if(!t)throw new Error("Could not read keyId of undefined decryptdata");if(null===t.keyId)throw new Error("keyId is null");return vt(t.keyId)},r.updateKeySession=function(t,e){var r,n=t.mediaKeysSession;return this.log('Updating key-session "'+n.sessionId+'" for keyID '+vt((null==(r=t.decryptdata)?void 0:r.keyId)||[])+"\n      } (data length: "+(e?e.byteLength:e)+")"),n.update(e)},r.selectKeySystemFormat=function(t){var e=Object.keys(t.levelkeys||{});return this.keyFormatPromise||(this.log("Selecting key-system from fragment (sn: "+t.sn+" "+t.type+": "+t.level+") key formats "+e.join(", ")),this.keyFormatPromise=this.getKeyFormatPromise(e)),this.keyFormatPromise},r.getKeyFormatPromise=function(t){var e=this;return new Promise((function(r,n){var i=Z(e.config),a=t.map(q).filter((function(t){return!!t&&-1!==i.indexOf(t)}));return e.getKeySystemSelectionPromise(a).then((function(t){var e=t.keySystem,i=J(e);i?r(i):n(new Error('Unable to find format for key-system "'+e+'"'))})).catch(n)}))},r.loadKey=function(t){var e=this,r=t.keyInfo.decryptdata,n=this.getKeyIdString(r),i="(keyId: "+n+' format: "'+r.keyFormat+'" method: '+r.method+" uri: "+r.uri+")";this.log("Starting session for key "+i);var a=this.keyIdToKeySessionPromise[n];return a||(a=this.keyIdToKeySessionPromise[n]=this.getKeySystemForKeyPromise(r).then((function(n){var a=n.keySystem,s=n.mediaKeys;return e.throwIfDestroyed(),e.log("Handle encrypted media sn: "+t.frag.sn+" "+t.frag.type+": "+t.frag.level+" using key "+i),e.attemptSetMediaKeys(a,s).then((function(){e.throwIfDestroyed();var t=e.createMediaKeySessionContext({keySystem:a,mediaKeys:s,decryptdata:r});return e.generateRequestWithPreferredKeySession(t,"cenc",r.pssh,"playlist-key")}))}))).catch((function(t){return e.handleError(t)})),a},r.throwIfDestroyed=function(t){if(!this.hls)throw new Error("invalid state")},r.handleError=function(t){this.hls&&(this.error(t.message),t instanceof ua?this.hls.trigger(b.ERROR,t.data):this.hls.trigger(b.ERROR,{type:_.KEY_SYSTEM_ERROR,details:B.KEY_SYSTEM_NO_KEYS,error:t,fatal:!0}))},r.getKeySystemForKeyPromise=function(t){var e=this.getKeyIdString(t),r=this.keyIdToKeySessionPromise[e];if(!r){var n=q(t.keyFormat),i=n?[n]:Z(this.config);return this.attemptKeySystemAccess(i)}return r},r.getKeySystemSelectionPromise=function(t){if(t.length||(t=Z(this.config)),0===t.length)throw new ua({type:_.KEY_SYSTEM_ERROR,details:B.KEY_SYSTEM_NO_CONFIGURED_LICENSE,fatal:!0},"Missing key-system license configuration options "+JSON.stringify({drmSystems:this.config.drmSystems}));return this.attemptKeySystemAccess(t)},r._onMediaEncrypted=function(t){var e=this,r=t.initDataType,n=t.initData;if(this.debug('"'+t.type+'" event: init data type: "'+r+'"'),null!==n){var i,a;if("sinf"===r&&this.config.drmSystems[G.FAIRPLAY]){var s=bt(new Uint8Array(n));try{var o=j(JSON.parse(s).sinf),u=kt(new Uint8Array(o));if(!u)return;i=u.subarray(8,24),a=G.FAIRPLAY}catch(t){return void this.warn('Failed to parse sinf "encrypted" event message initData')}}else{var l=function(t){if(!(t instanceof ArrayBuffer)||t.byteLength<32)return null;var e={version:0,systemId:"",kids:null,data:null},r=new DataView(t),n=r.getUint32(0);if(t.byteLength!==n&&n>44)return null;if(1886614376!==r.getUint32(4))return null;if(e.version=r.getUint32(8)>>>24,e.version>1)return null;e.systemId=vt(new Uint8Array(t,12,16));var i=r.getUint32(28);if(0===e.version){if(n-32<i)return null;e.data=new Uint8Array(t,32,i)}else if(1===e.version){e.kids=[];for(var a=0;a<i;a++)e.kids.push(new Uint8Array(t,32+16*a,16))}return e}(n);if(null===l)return;0===l.version&&l.systemId===X&&l.data&&(i=l.data.subarray(8,24)),a=function(t){if(t===X)return G.WIDEVINE}(l.systemId)}if(a&&i){for(var c=vt(i),A=this.keyIdToKeySessionPromise,d=this.mediaKeySessions,f=A[c],h=function(){var t=d[p],a=t.decryptdata;if(a.pssh||!a.keyId)return"continue";var s=vt(a.keyId);return c===s||-1!==a.uri.replace(/-/g,"").indexOf(c)?(f=A[s],delete A[s],a.pssh=new Uint8Array(n),a.keyId=i,f=A[c]=f.then((function(){return e.generateRequestWithPreferredKeySession(t,r,n,"encrypted-event-key-match")})),"break"):void 0},p=0;p<d.length;p++){var g=h();if("continue"!==g&&"break"===g)break}f||(f=A[c]=this.getKeySystemSelectionPromise([a]).then((function(t){var a,s=t.keySystem,o=t.mediaKeys;e.throwIfDestroyed();var u=new Pt("ISO-23001-7",c,null!=(a=J(s))?a:"");return u.pssh=new Uint8Array(n),u.keyId=i,e.attemptSetMediaKeys(s,o).then((function(){e.throwIfDestroyed();var t=e.createMediaKeySessionContext({decryptdata:u,keySystem:s,mediaKeys:o});return e.generateRequestWithPreferredKeySession(t,r,n,"encrypted-event-no-match")}))}))),f.catch((function(t){return e.handleError(t)}))}}},r._onWaitingForKey=function(t){this.log('"'+t.type+'" event')},r.attemptSetMediaKeys=function(t,e){var r=this,n=this.setMediaKeysQueue.slice();this.log('Setting media-keys for "'+t+'"');var i=Promise.all(n).then((function(){if(!r.media)throw new Error("Attempted to set mediaKeys without media element attached");return r.media.setMediaKeys(e)}));return this.setMediaKeysQueue.push(i),i.then((function(){r.log('Media-keys set for "'+t+'"'),n.push(i),r.setMediaKeysQueue=r.setMediaKeysQueue.filter((function(t){return-1===n.indexOf(t)}))}))},r.generateRequestWithPreferredKeySession=function(t,e,r,n){var i,a,s=this,o=null==(i=this.config.drmSystems)||null==(a=i[t.keySystem])?void 0:a.generateRequest;if(o)try{var u=o.call(this.hls,e,r,t);if(!u)throw new Error("Invalid response from configured generateRequest filter");e=u.initDataType,r=t.decryptdata.pssh=u.initData?new Uint8Array(u.initData):null}catch(t){var l;if(this.warn(t.message),null!=(l=this.hls)&&l.config.debug)throw t}if(null===r)return this.log('Skipping key-session request for "'+n+'" (no initData)'),Promise.resolve(t);var c=this.getKeyIdString(t.decryptdata);this.log('Generating key-session request for "'+n+'": '+c+" (init data type: "+e+" length: "+(r?r.byteLength:null)+")");var A=new jn;t.mediaKeysSession.onmessage=function(e){var r=t.mediaKeysSession;if(r){var n=e.messageType,i=e.message;s.log('"'+n+'" message event for session "'+r.sessionId+'" message size: '+i.byteLength),"license-request"===n||"license-renewal"===n?s.renewLicense(t,i).catch((function(t){s.handleError(t),A.emit("error",t)})):"license-release"===n?t.keySystem===G.FAIRPLAY&&(s.updateKeySession(t,K("acknowledged")),s.removeSession(t)):s.warn('unhandled media key message type "'+n+'"')}else A.emit("error",new Error("invalid state"))},t.mediaKeysSession.onkeystatuseschange=function(e){if(t.mediaKeysSession){s.onKeyStatusChange(t);var r=t.keyStatus;A.emit("keyStatus",r),"expired"===r&&(s.warn(t.keySystem+" expired for key "+c),s.renewKeySession(t))}else A.emit("error",new Error("invalid state"))};var d=new Promise((function(t,e){A.on("error",e),A.on("keyStatus",(function(r){r.startsWith("usable")?t():"output-restricted"===r?e(new ua({type:_.KEY_SYSTEM_ERROR,details:B.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED,fatal:!1},"HDCP level output restricted")):"internal-error"===r?e(new ua({type:_.KEY_SYSTEM_ERROR,details:B.KEY_SYSTEM_STATUS_INTERNAL_ERROR,fatal:!0},'key status changed to "'+r+'"')):"expired"===r?e(new Error("key expired while generating request")):s.warn('unhandled key status change "'+r+'"')}))}));return t.mediaKeysSession.generateRequest(e,r).then((function(){var e;s.log('Request generated for key-session "'+(null==(e=t.mediaKeysSession)?void 0:e.sessionId)+'" keyId: '+c)})).catch((function(t){throw new ua({type:_.KEY_SYSTEM_ERROR,details:B.KEY_SYSTEM_NO_SESSION,error:t,fatal:!1},"Error generating key-session request: "+t)})).then((function(){return d})).catch((function(e){throw A.removeAllListeners(),s.removeSession(t),e})).then((function(){return A.removeAllListeners(),t}))},r.onKeyStatusChange=function(t){var e=this;t.mediaKeysSession.keyStatuses.forEach((function(r,n){e.log('key status change "'+r+'" for keyStatuses keyId: '+vt("buffer"in n?new Uint8Array(n.buffer,n.byteOffset,n.byteLength):new Uint8Array(n))+" session keyId: "+vt(new Uint8Array(t.decryptdata.keyId||[]))+" uri: "+t.decryptdata.uri),t.keyStatus=r}))},r.fetchServerCertificate=function(t){var r=this.config,n=new(0,r.loader)(r),i=this.getServerCertificateUrl(t);return i?(this.log('Fetching serverCertificate for "'+t+'"'),new Promise((function(a,s){var o={responseType:"arraybuffer",url:i},u=r.certLoadPolicy.default,l={loadPolicy:u,timeout:u.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},c={onSuccess:function(t,e,r,n){a(t.data)},onError:function(r,n,a,u){s(new ua({type:_.KEY_SYSTEM_ERROR,details:B.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:a,response:e({url:o.url,data:void 0},r)},'"'+t+'" certificate request failed ('+i+"). Status: "+r.code+" ("+r.text+")"))},onTimeout:function(e,r,n){s(new ua({type:_.KEY_SYSTEM_ERROR,details:B.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:n,response:{url:o.url,data:void 0}},'"'+t+'" certificate request timed out ('+i+")"))},onAbort:function(t,e,r){s(new Error("aborted"))}};n.load(o,l,c)}))):Promise.resolve()},r.setMediaKeysServerCertificate=function(t,e,r){var n=this;return new Promise((function(i,a){t.setServerCertificate(r).then((function(a){n.log("setServerCertificate "+(a?"success":"not supported by CDM")+" ("+(null==r?void 0:r.byteLength)+') on "'+e+'"'),i(t)})).catch((function(t){a(new ua({type:_.KEY_SYSTEM_ERROR,details:B.KEY_SYSTEM_SERVER_CERTIFICATE_UPDATE_FAILED,error:t,fatal:!0},t.message))}))}))},r.renewLicense=function(t,e){var r=this;return this.requestLicense(t,new Uint8Array(e)).then((function(e){return r.updateKeySession(t,new Uint8Array(e)).catch((function(t){throw new ua({type:_.KEY_SYSTEM_ERROR,details:B.KEY_SYSTEM_SESSION_UPDATE_FAILED,error:t,fatal:!0},t.message)}))}))},r.setupLicenseXHR=function(t,e,r,n){var i=this,a=this.config.licenseXhrSetup;return a?Promise.resolve().then((function(){if(!r.decryptdata)throw new Error("Key removed");return a.call(i.hls,t,e,r,n)})).catch((function(s){if(!r.decryptdata)throw s;return t.open("POST",e,!0),a.call(i.hls,t,e,r,n)})).then((function(r){return t.readyState||t.open("POST",e,!0),{xhr:t,licenseChallenge:r||n}})):(t.open("POST",e,!0),Promise.resolve({xhr:t,licenseChallenge:n}))},r.requestLicense=function(t,e){var r=this,n=this.config.keyLoadPolicy.default;return new Promise((function(i,a){var s=r.getLicenseServerUrl(t.keySystem);r.log("Sending license request to URL: "+s);var o=new XMLHttpRequest;o.responseType="arraybuffer",o.onreadystatechange=function(){if(!r.hls||!t.mediaKeysSession)return a(new Error("invalid state"));if(4===o.readyState)if(200===o.status){r._requestLicenseFailureCount=0;var u=o.response;r.log("License received "+(u instanceof ArrayBuffer?u.byteLength:u));var l=r.config.licenseResponseCallback;if(l)try{u=l.call(r.hls,o,s,t)}catch(t){r.error(t)}i(u)}else{var c=n.errorRetry,A=c?c.maxNumRetry:0;if(r._requestLicenseFailureCount++,r._requestLicenseFailureCount>A||o.status>=400&&o.status<500)a(new ua({type:_.KEY_SYSTEM_ERROR,details:B.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0,networkDetails:o,response:{url:s,data:void 0,code:o.status,text:o.statusText}},"License Request XHR failed ("+s+"). Status: "+o.status+" ("+o.statusText+")"));else{var d=A-r._requestLicenseFailureCount+1;r.warn("Retrying license request, "+d+" attempts left"),r.requestLicense(t,e).then(i,a)}}},t.licenseXhr&&t.licenseXhr.readyState!==XMLHttpRequest.DONE&&t.licenseXhr.abort(),t.licenseXhr=o,r.setupLicenseXHR(o,s,t,e).then((function(t){var e=t.xhr,r=t.licenseChallenge;e.send(r)}))}))},r.onMediaAttached=function(t,e){if(this.config.emeEnabled){var r=e.media;this.media=r,r.addEventListener("encrypted",this.onMediaEncrypted),r.addEventListener("waitingforkey",this.onWaitingForKey)}},r.onMediaDetached=function(){var e=this,r=this.media,n=this.mediaKeySessions;r&&(r.removeEventListener("encrypted",this.onMediaEncrypted),r.removeEventListener("waitingforkey",this.onWaitingForKey),this.media=null),this._requestLicenseFailureCount=0,this.setMediaKeysQueue=[],this.mediaKeySessions=[],this.keyIdToKeySessionPromise={},Pt.clearKeyUriToKeyIdMap();var i=n.length;t.CDMCleanupPromise=Promise.all(n.map((function(t){return e.removeSession(t)})).concat(null==r?void 0:r.setMediaKeys(null).catch((function(t){e.log("Could not clear media keys: "+t+". media.src: "+(null==r?void 0:r.src))})))).then((function(){i&&(e.log("finished closing key sessions and clearing media keys"),n.length=0)})).catch((function(t){e.log("Could not close sessions and clear media keys: "+t+". media.src: "+(null==r?void 0:r.src))}))},r.onManifestLoading=function(){this.keyFormatPromise=null},r.onManifestLoaded=function(t,e){var r=e.sessionKeys;if(r&&this.config.emeEnabled&&!this.keyFormatPromise){var n=r.reduce((function(t,e){return-1===t.indexOf(e.keyFormat)&&t.push(e.keyFormat),t}),[]);this.log("Selecting key-system from session-keys "+n.join(", ")),this.keyFormatPromise=this.getKeyFormatPromise(n)}},r.removeSession=function(t){var e=this,r=t.mediaKeysSession,n=t.licenseXhr;if(r){this.log("Remove licenses and keys and close session "+r.sessionId),r.onmessage=null,r.onkeystatuseschange=null,n&&n.readyState!==XMLHttpRequest.DONE&&n.abort(),t.mediaKeysSession=t.decryptdata=t.licenseXhr=void 0;var i=this.mediaKeySessions.indexOf(t);return i>-1&&this.mediaKeySessions.splice(i,1),r.remove().catch((function(t){e.log("Could not remove session: "+t)})).then((function(){return r.close()})).catch((function(t){e.log("Could not close session: "+t)}))}},t}();oa.CDMCleanupPromise=void 0;var ua=function(t){function e(e,r){var n;return(n=t.call(this,r)||this).data=void 0,e.error||(e.error=new Error(r)),n.data=e,e.err=e.error,n}return l(e,t),e}(h(Error)),la=function(){function t(e){var r=this;this.hls=void 0,this.config=void 0,this.media=void 0,this.sid=void 0,this.cid=void 0,this.useHeaders=!1,this.initialized=!1,this.starved=!1,this.buffering=!0,this.audioBuffer=void 0,this.videoBuffer=void 0,this.onWaiting=function(){r.initialized&&(r.starved=!0),r.buffering=!0},this.onPlaying=function(){r.initialized||(r.initialized=!0),r.buffering=!1},this.applyPlaylistData=function(t){try{r.apply(t,{ot:"m",su:!r.initialized})}catch(t){k.warn("Could not generate manifest CMCD data.",t)}},this.applyFragmentData=function(t){try{var e=t.frag,n=r.hls.levels[e.level],i=r.getObjectType(e),a={d:1e3*e.duration,ot:i};"v"!==i&&"a"!==i&&"av"!=i||(a.br=n.bitrate/1e3,a.tb=r.getTopBandwidth(i)/1e3,a.bl=r.getBufferLength(i)),r.apply(t,a)}catch(t){k.warn("Could not generate segment CMCD data.",t)}},this.hls=e;var n=this.config=e.config,i=n.cmcd;null!=i&&(n.pLoader=this.createPlaylistLoader(),n.fLoader=this.createFragmentLoader(),this.sid=i.sessionId||t.uuid(),this.cid=i.contentId,this.useHeaders=!0===i.useHeaders,this.registerListeners())}var e=t.prototype;return e.registerListeners=function(){var t=this.hls;t.on(b.MEDIA_ATTACHED,this.onMediaAttached,this),t.on(b.MEDIA_DETACHED,this.onMediaDetached,this),t.on(b.BUFFER_CREATED,this.onBufferCreated,this)},e.unregisterListeners=function(){var t=this.hls;t.off(b.MEDIA_ATTACHED,this.onMediaAttached,this),t.off(b.MEDIA_DETACHED,this.onMediaDetached,this),t.off(b.BUFFER_CREATED,this.onBufferCreated,this)},e.destroy=function(){this.unregisterListeners(),this.onMediaDetached(),this.hls=this.config=this.audioBuffer=this.videoBuffer=null},e.onMediaAttached=function(t,e){this.media=e.media,this.media.addEventListener("waiting",this.onWaiting),this.media.addEventListener("playing",this.onPlaying)},e.onMediaDetached=function(){this.media&&(this.media.removeEventListener("waiting",this.onWaiting),this.media.removeEventListener("playing",this.onPlaying),this.media=null)},e.onBufferCreated=function(t,e){var r,n;this.audioBuffer=null==(r=e.tracks.audio)?void 0:r.buffer,this.videoBuffer=null==(n=e.tracks.video)?void 0:n.buffer},e.createData=function(){var t;return{v:1,sf:"h",sid:this.sid,cid:this.cid,pr:null==(t=this.media)?void 0:t.playbackRate,mtp:this.hls.bandwidthEstimate/1e3}},e.apply=function(e,r){void 0===r&&(r={}),u(r,this.createData());var n="i"===r.ot||"v"===r.ot||"av"===r.ot;if(this.starved&&n&&(r.bs=!0,r.su=!0,this.starved=!1),null==r.su&&(r.su=this.buffering),this.useHeaders){var i=t.toHeaders(r);if(!Object.keys(i).length)return;e.headers||(e.headers={}),u(e.headers,i)}else{var a=t.toQuery(r);if(!a)return;e.url=t.appendQueryToUri(e.url,a)}},e.getObjectType=function(t){var e=t.type;return"subtitle"===e?"tt":"initSegment"===t.sn?"i":"audio"===e?"a":"main"===e?this.hls.audioTracks.length?"v":"av":void 0},e.getTopBandwidth=function(t){var e,r=0,n=this.hls;if("a"===t)e=n.audioTracks;else{var i=n.maxAutoLevel,a=i>-1?i+1:n.levels.length;e=n.levels.slice(0,a)}for(var s,o=g(e);!(s=o()).done;){var u=s.value;u.bitrate>r&&(r=u.bitrate)}return r>0?r:NaN},e.getBufferLength=function(t){var e=this.hls.media,r="a"===t?this.audioBuffer:this.videoBuffer;return r&&e?1e3*hr.bufferInfo(r,e.currentTime,this.config.maxBufferHole).len:NaN},e.createPlaylistLoader=function(){var t=this.config.pLoader,e=this.applyPlaylistData,r=t||this.config.loader;return function(){function t(t){this.loader=void 0,this.loader=new r(t)}var i=t.prototype;return i.destroy=function(){this.loader.destroy()},i.abort=function(){this.loader.abort()},i.load=function(t,r,n){e(t),this.loader.load(t,r,n)},n(t,[{key:"stats",get:function(){return this.loader.stats}},{key:"context",get:function(){return this.loader.context}}]),t}()},e.createFragmentLoader=function(){var t=this.config.fLoader,e=this.applyFragmentData,r=t||this.config.loader;return function(){function t(t){this.loader=void 0,this.loader=new r(t)}var i=t.prototype;return i.destroy=function(){this.loader.destroy()},i.abort=function(){this.loader.abort()},i.load=function(t,r,n){e(t),this.loader.load(t,r,n)},n(t,[{key:"stats",get:function(){return this.loader.stats}},{key:"context",get:function(){return this.loader.context}}]),t}()},t.uuid=function(){var t=URL.createObjectURL(new Blob),e=t.toString();return URL.revokeObjectURL(t),e.slice(e.lastIndexOf("/")+1)},t.serialize=function(t){for(var e,r=[],n=function(t){return!Number.isNaN(t)&&null!=t&&""!==t&&!1!==t},i=function(t){return Math.round(t)},s=function(t){return 100*i(t/100)},o={br:i,d:i,bl:s,dl:s,mtp:s,nor:function(t){return encodeURIComponent(t)},rtp:s,tb:i},u=g(Object.keys(t||{}).sort());!(e=u()).done;){var l=e.value,c=t[l];if(n(c)&&!("v"===l&&1===c||"pr"==l&&1===c)){var A=o[l];A&&(c=A(c));var d,f=a(c);d="ot"===l||"sf"===l||"st"===l?l+"="+c:"boolean"===f?l:"number"===f?l+"="+c:l+"="+JSON.stringify(c),r.push(d)}}return r.join(",")},t.toHeaders=function(e){for(var r={},n=["Object","Request","Session","Status"],i=[{},{},{},{}],a={br:0,d:0,ot:0,tb:0,bl:1,dl:1,mtp:1,nor:1,nrr:1,su:1,cid:2,pr:2,sf:2,sid:2,st:2,v:2,bs:3,rtp:3},s=0,o=Object.keys(e);s<o.length;s++){var u=o[s];i[null!=a[u]?a[u]:1][u]=e[u]}for(var l=0;l<i.length;l++){var c=t.serialize(i[l]);c&&(r["CMCD-"+n[l]]=c)}return r},t.toQuery=function(e){return"CMCD="+encodeURIComponent(t.serialize(e))},t.appendQueryToUri=function(t,e){if(!e)return t;var r=t.includes("?")?"&":"?";return""+t+r+e},t}(),ca=function(){function t(t){this.hls=void 0,this.log=void 0,this.loader=null,this.uri=null,this.pathwayId=".",this.pathwayPriority=null,this.timeToLoad=300,this.reloadTimer=-1,this.updated=0,this.started=!1,this.enabled=!0,this.levels=null,this.audioTracks=null,this.subtitleTracks=null,this.penalizedPathways={},this.hls=t,this.log=k.log.bind(k,"[content-steering]:"),this.registerListeners()}var e=t.prototype;return e.registerListeners=function(){var t=this.hls;t.on(b.MANIFEST_LOADING,this.onManifestLoading,this),t.on(b.MANIFEST_LOADED,this.onManifestLoaded,this),t.on(b.MANIFEST_PARSED,this.onManifestParsed,this),t.on(b.ERROR,this.onError,this)},e.unregisterListeners=function(){var t=this.hls;t&&(t.off(b.MANIFEST_LOADING,this.onManifestLoading,this),t.off(b.MANIFEST_LOADED,this.onManifestLoaded,this),t.off(b.MANIFEST_PARSED,this.onManifestParsed,this),t.off(b.ERROR,this.onError,this))},e.startLoad=function(){if(this.started=!0,self.clearTimeout(this.reloadTimer),this.enabled&&this.uri)if(this.updated){var t=Math.max(1e3*this.timeToLoad-(performance.now()-this.updated),0);this.scheduleRefresh(this.uri,t)}else this.loadSteeringManifest(this.uri)},e.stopLoad=function(){this.started=!1,this.loader&&(this.loader.destroy(),this.loader=null),self.clearTimeout(this.reloadTimer)},e.destroy=function(){this.unregisterListeners(),this.stopLoad(),this.hls=null,this.levels=this.audioTracks=this.subtitleTracks=null},e.removeLevel=function(t){var e=this.levels;e&&(this.levels=e.filter((function(e){return e!==t})))},e.onManifestLoading=function(){this.stopLoad(),this.enabled=!0,this.timeToLoad=300,this.updated=0,this.uri=null,this.pathwayId=".",this.levels=this.audioTracks=this.subtitleTracks=null},e.onManifestLoaded=function(t,e){var r=e.contentSteering;null!==r&&(this.pathwayId=r.pathwayId,this.uri=r.uri,this.started&&this.startLoad())},e.onManifestParsed=function(t,e){this.audioTracks=e.audioTracks,this.subtitleTracks=e.subtitleTracks},e.onError=function(t,e){var r=e.errorAction;if(2===(null==r?void 0:r.action)&&1===r.flags){var n=this.pathwayPriority,i=this.pathwayId;this.penalizedPathways[i]||(this.penalizedPathways[i]=performance.now()),!n&&this.levels&&(n=this.levels.reduce((function(t,e){return-1===t.indexOf(e.pathwayId)&&t.push(e.pathwayId),t}),[])),n&&n.length>1&&(this.updatePathwayPriority(n),r.resolved=this.pathwayId!==i)}},e.filterParsedLevels=function(t){this.levels=t;var e=this.getLevelsForPathway(this.pathwayId);if(0===e.length){var r=t[0].pathwayId;this.log("No levels found in Pathway "+this.pathwayId+'. Setting initial Pathway to "'+r+'"'),e=this.getLevelsForPathway(r),this.pathwayId=r}return e.length!==t.length?(this.log("Found "+e.length+"/"+t.length+' levels in Pathway "'+this.pathwayId+'"'),e):t},e.getLevelsForPathway=function(t){return null===this.levels?[]:this.levels.filter((function(e){return t===e.pathwayId}))},e.updatePathwayPriority=function(t){var e;this.pathwayPriority=t;var r=this.penalizedPathways,n=performance.now();Object.keys(r).forEach((function(t){n-r[t]>3e5&&delete r[t]}));for(var i=0;i<t.length;i++){var a=t[i];if(!r[a]){if(a===this.pathwayId)return;var s=this.hls.nextLoadLevel,o=this.hls.levels[s];if((e=this.getLevelsForPathway(a)).length>0){this.log('Setting Pathway to "'+a+'"'),this.pathwayId=a,this.hls.trigger(b.LEVELS_UPDATED,{levels:e});var u=this.hls.levels[s];o&&u&&this.levels&&(u.attrs["STABLE-VARIANT-ID"]!==o.attrs["STABLE-VARIANT-ID"]&&u.bitrate!==o.bitrate&&this.log("Unstable Pathways change from bitrate "+o.bitrate+" to "+u.bitrate),this.hls.nextLoadLevel=s);break}}}},e.clonePathways=function(t){var e=this,r=this.levels;if(r){var n={},i={};t.forEach((function(t){var a=t.ID,s=t["BASE-ID"],o=t["URI-REPLACEMENT"];if(!r.some((function(t){return t.pathwayId===a}))){var l=e.getLevelsForPathway(s).map((function(t){var e=u({},t);e.details=void 0,e.url=da(t.uri,t.attrs["STABLE-VARIANT-ID"],"PER-VARIANT-URIS",o);var r=new L(t.attrs);r["PATHWAY-ID"]=a;var s=r.AUDIO&&r.AUDIO+"_clone_"+a,l=r.SUBTITLES&&r.SUBTITLES+"_clone_"+a;s&&(n[r.AUDIO]=s,r.AUDIO=s),l&&(i[r.SUBTITLES]=l,r.SUBTITLES=l),e.attrs=r;var c=new Ie(e);return Xe(c,"audio",s),Xe(c,"text",l),c}));r.push.apply(r,l),Aa(e.audioTracks,n,o,a),Aa(e.subtitleTracks,i,o,a)}}))}},e.loadSteeringManifest=function(t){var e,r=this,n=this.hls.config,i=n.loader;this.loader&&this.loader.destroy(),this.loader=new i(n);try{e=new self.URL(t)}catch(e){return this.enabled=!1,void this.log("Failed to parse Steering Manifest URI: "+t)}if("data:"!==e.protocol){var a=0|(this.hls.bandwidthEstimate||n.abrEwmaDefaultEstimate);e.searchParams.set("_HLS_pathway",this.pathwayId),e.searchParams.set("_HLS_throughput",""+a)}var s={responseType:"json",url:e.href},o=n.steeringManifestLoadPolicy.default,u=o.errorRetry||o.timeoutRetry||{},l={loadPolicy:o,timeout:o.maxLoadTimeMs,maxRetry:u.maxNumRetry||0,retryDelay:u.retryDelayMs||0,maxRetryDelay:u.maxRetryDelayMs||0},c={onSuccess:function(t,n,i,a){r.log('Loaded steering manifest: "'+e+'"');var s=t.data;if(1===s.VERSION){r.updated=performance.now(),r.timeToLoad=s.TTL;var o=s["RELOAD-URI"],u=s["PATHWAY-CLONES"],l=s["PATHWAY-PRIORITY"];if(o)try{r.uri=new self.URL(o,e).href}catch(t){return r.enabled=!1,void r.log("Failed to parse Steering Manifest RELOAD-URI: "+o)}r.scheduleRefresh(r.uri||i.url),u&&r.clonePathways(u),l&&r.updatePathwayPriority(l)}else r.log("Steering VERSION "+s.VERSION+" not supported!")},onError:function(t,e,n,i){if(r.log("Error loading steering manifest: "+t.code+" "+t.text+" ("+e.url+")"),r.stopLoad(),410===t.code)return r.enabled=!1,void r.log("Steering manifest "+e.url+" no longer available");var a=1e3*r.timeToLoad;if(429!==t.code)r.scheduleRefresh(r.uri||e.url,a);else{var s=r.loader;if("function"==typeof(null==s?void 0:s.getResponseHeader)){var o=s.getResponseHeader("Retry-After");o&&(a=1e3*parseFloat(o))}r.log("Steering manifest "+e.url+" rate limited")}},onTimeout:function(t,e,n){r.log("Timeout loading steering manifest ("+e.url+")"),r.scheduleRefresh(r.uri||e.url)}};this.log("Requesting steering manifest: "+e),this.loader.load(s,l,c)},e.scheduleRefresh=function(t,e){var r=this;void 0===e&&(e=1e3*this.timeToLoad),self.clearTimeout(this.reloadTimer),this.reloadTimer=self.setTimeout((function(){r.loadSteeringManifest(t)}),e)},t}();function Aa(t,e,r,n){t&&Object.keys(e).forEach((function(i){var a=t.filter((function(t){return t.groupId===i})).map((function(t){var a=u({},t);return a.details=void 0,a.attrs=new L(a.attrs),a.url=a.attrs.URI=da(t.url,t.attrs["STABLE-RENDITION-ID"],"PER-RENDITION-URIS",r),a.groupId=a.attrs["GROUP-ID"]=e[i],a.attrs["PATHWAY-ID"]=n,a}));t.push.apply(t,a)}))}function da(t,e,r,n){var i,a=n.HOST,s=n.PARAMS,o=n[r];e&&(i=null==o?void 0:o[e])&&(t=i);var u=new self.URL(t);return a&&!i&&(u.host=a),s&&Object.keys(s).sort().forEach((function(t){t&&u.searchParams.set(t,s[t])})),u.href}var fa=/^age:\s*[\d.]+\s*$/im,ha=function(){function t(t){this.xhrSetup=void 0,this.requestTimeout=void 0,this.retryTimeout=void 0,this.retryDelay=void 0,this.config=null,this.callbacks=null,this.context=void 0,this.loader=null,this.stats=void 0,this.xhrSetup=t&&t.xhrSetup||null,this.stats=new U,this.retryDelay=0}var e=t.prototype;return e.destroy=function(){this.callbacks=null,this.abortInternal(),this.loader=null,this.config=null},e.abortInternal=function(){var t=this.loader;self.clearTimeout(this.requestTimeout),self.clearTimeout(this.retryTimeout),t&&(t.onreadystatechange=null,t.onprogress=null,4!==t.readyState&&(this.stats.aborted=!0,t.abort()))},e.abort=function(){var t;this.abortInternal(),null!=(t=this.callbacks)&&t.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.loader)},e.load=function(t,e,r){if(this.stats.loading.start)throw new Error("Loader can only be used once.");this.stats.loading.start=self.performance.now(),this.context=t,this.config=e,this.callbacks=r,this.loadInternal()},e.loadInternal=function(){var t=this,e=this.config,r=this.context;if(e){var n=this.loader=new self.XMLHttpRequest,i=this.stats;i.loading.first=0,i.loaded=0,i.aborted=!1;var a=this.xhrSetup;a?Promise.resolve().then((function(){if(!t.stats.aborted)return a(n,r.url)})).catch((function(t){return n.open("GET",r.url,!0),a(n,r.url)})).then((function(){t.stats.aborted||t.openAndSendXhr(n,r,e)})).catch((function(e){t.callbacks.onError({code:n.status,text:e.message},r,n,i)})):this.openAndSendXhr(n,r,e)}},e.openAndSendXhr=function(t,e,r){t.readyState||t.open("GET",e.url,!0);var n=this.context.headers,i=r.loadPolicy,a=i.maxTimeToFirstByteMs,s=i.maxLoadTimeMs;if(n)for(var o in n)t.setRequestHeader(o,n[o]);e.rangeEnd&&t.setRequestHeader("Range","bytes="+e.rangeStart+"-"+(e.rangeEnd-1)),t.onreadystatechange=this.readystatechange.bind(this),t.onprogress=this.loadprogress.bind(this),t.responseType=e.responseType,self.clearTimeout(this.requestTimeout),r.timeout=a&&w(a)?a:s,this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),r.timeout),t.send()},e.readystatechange=function(){var t=this.context,e=this.loader,r=this.stats;if(t&&e){var n=e.readyState,i=this.config;if(!r.aborted&&n>=2&&(0===r.loading.first&&(r.loading.first=Math.max(self.performance.now(),r.loading.start),i.timeout!==i.loadPolicy.maxLoadTimeMs&&(self.clearTimeout(this.requestTimeout),i.timeout=i.loadPolicy.maxLoadTimeMs,this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),i.loadPolicy.maxLoadTimeMs-(r.loading.first-r.loading.start)))),4===n)){self.clearTimeout(this.requestTimeout),e.onreadystatechange=null,e.onprogress=null;var a=e.status,s="text"!==e.responseType;if(a>=200&&a<300&&(s&&e.response||null!==e.responseText)){r.loading.end=Math.max(self.performance.now(),r.loading.first);var o=s?e.response:e.responseText,u="arraybuffer"===e.responseType?o.byteLength:o.length;if(r.loaded=r.total=u,r.bwEstimate=8e3*r.total/(r.loading.end-r.loading.first),!this.callbacks)return;var l=this.callbacks.onProgress;if(l&&l(r,t,o,e),!this.callbacks)return;var c={url:e.responseURL,data:o,code:a};this.callbacks.onSuccess(c,r,t,e)}else{var A=i.loadPolicy.errorRetry;$e(A,r.retry,!1,a)?this.retry(A):(k.error(a+" while loading "+t.url),this.callbacks.onError({code:a,text:e.statusText},t,e,r))}}}},e.loadtimeout=function(){var t,e=null==(t=this.config)?void 0:t.loadPolicy.timeoutRetry;if($e(e,this.stats.retry,!0))this.retry(e);else{k.warn("timeout while loading "+this.context.url);var r=this.callbacks;r&&(this.abortInternal(),r.onTimeout(this.stats,this.context,this.loader))}},e.retry=function(t){var e=this.context,r=this.stats;this.retryDelay=Ne(t,r.retry),r.retry++,k.warn((status?"HTTP Status "+status:"Timeout")+" while loading "+e.url+", retrying "+r.retry+"/"+t.maxNumRetry+" in "+this.retryDelay+"ms"),this.abortInternal(),this.loader=null,self.clearTimeout(this.retryTimeout),this.retryTimeout=self.setTimeout(this.loadInternal.bind(this),this.retryDelay)},e.loadprogress=function(t){var e=this.stats;e.loaded=t.loaded,t.lengthComputable&&(e.total=t.total)},e.getCacheAge=function(){var t=null;if(this.loader&&fa.test(this.loader.getAllResponseHeaders())){var e=this.loader.getResponseHeader("age");t=e?parseFloat(e):null}return t},e.getResponseHeader=function(t){return this.loader&&new RegExp("^"+t+":\\s*[\\d.]+\\s*$","im").test(this.loader.getAllResponseHeaders())?this.loader.getResponseHeader(t):null},t}(),pa=/(\d+)-(\d+)\/(\d+)/,ga=function(){function t(t){this.fetchSetup=void 0,this.requestTimeout=void 0,this.request=void 0,this.response=void 0,this.controller=void 0,this.context=void 0,this.config=null,this.callbacks=null,this.stats=void 0,this.loader=null,this.fetchSetup=t.fetchSetup||va,this.controller=new self.AbortController,this.stats=new U}var e=t.prototype;return e.destroy=function(){this.loader=this.callbacks=null,this.abortInternal()},e.abortInternal=function(){var t=this.response;null!=t&&t.ok||(this.stats.aborted=!0,this.controller.abort())},e.abort=function(){var t;this.abortInternal(),null!=(t=this.callbacks)&&t.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.response)},e.load=function(t,e,r){var n=this,i=this.stats;if(i.loading.start)throw new Error("Loader can only be used once.");i.loading.start=self.performance.now();var a=function(t,e){var r={method:"GET",mode:"cors",credentials:"same-origin",signal:e,headers:new self.Headers(u({},t.headers))};return t.rangeEnd&&r.headers.set("Range","bytes="+t.rangeStart+"-"+String(t.rangeEnd-1)),r}(t,this.controller.signal),s=r.onProgress,o="arraybuffer"===t.responseType,l=o?"byteLength":"length",c=e.loadPolicy,A=c.maxTimeToFirstByteMs,d=c.maxLoadTimeMs;this.context=t,this.config=e,this.callbacks=r,this.request=this.fetchSetup(t,a),self.clearTimeout(this.requestTimeout),e.timeout=A&&w(A)?A:d,this.requestTimeout=self.setTimeout((function(){n.abortInternal(),r.onTimeout(i,t,n.response)}),e.timeout),self.fetch(this.request).then((function(a){n.response=n.loader=a;var u=Math.max(self.performance.now(),i.loading.start);if(self.clearTimeout(n.requestTimeout),e.timeout=d,n.requestTimeout=self.setTimeout((function(){n.abortInternal(),r.onTimeout(i,t,n.response)}),d-(u-i.loading.start)),!a.ok){var l=a.status,c=a.statusText;throw new ma(c||"fetch, bad network response",l,a)}return i.loading.first=u,i.total=function(t){var e=t.get("Content-Range");if(e){var r=function(t){var e=pa.exec(t);if(e)return parseInt(e[2])-parseInt(e[1])+1}(e);if(w(r))return r}var n=t.get("Content-Length");if(n)return parseInt(n)}(a.headers)||i.total,s&&w(e.highWaterMark)?n.loadProgressively(a,i,t,e.highWaterMark,s):o?a.arrayBuffer():"json"===t.responseType?a.json():a.text()})).then((function(a){var o=n.response;self.clearTimeout(n.requestTimeout),i.loading.end=Math.max(self.performance.now(),i.loading.first);var u=a[l];u&&(i.loaded=i.total=u);var c={url:o.url,data:a,code:o.status};s&&!w(e.highWaterMark)&&s(i,t,a,o),r.onSuccess(c,i,t,o)})).catch((function(e){if(self.clearTimeout(n.requestTimeout),!i.aborted){var a=e&&e.code||0,s=e?e.message:null;r.onError({code:a,text:s},t,e?e.details:null,i)}}))},e.getCacheAge=function(){var t=null;if(this.response){var e=this.response.headers.get("age");t=e?parseFloat(e):null}return t},e.getResponseHeader=function(t){return this.response?this.response.headers.get(t):null},e.loadProgressively=function(t,e,r,n,i){void 0===n&&(n=0);var a=new ti,s=t.body.getReader();return function o(){return s.read().then((function(s){if(s.done)return a.dataLength&&i(e,r,a.flush(),t),Promise.resolve(new ArrayBuffer(0));var u=s.value,l=u.length;return e.loaded+=l,l<n||a.dataLength?(a.push(u),a.dataLength>=n&&i(e,r,a.flush(),t)):i(e,r,u,t),o()})).catch((function(){return Promise.reject()}))}()},t}();function va(t,e){return new self.Request(t.url,e)}var ma=function(t){function e(e,r,n){var i;return(i=t.call(this,e)||this).code=void 0,i.details=void 0,i.code=r,i.details=n,i}return l(e,t),e}(h(Error)),ya=/\s/,wa=e(e({autoStartLoad:!0,startPosition:-1,defaultAudioCodec:void 0,debug:!1,capLevelOnFPSDrop:!1,capLevelToPlayerSize:!1,ignoreDevicePixelRatio:!1,initialLiveManifestSize:1,maxBufferLength:30,backBufferLength:1/0,maxBufferSize:6e7,maxBufferHole:.1,highBufferWatchdogPeriod:2,nudgeOffset:.1,nudgeMaxRetry:3,maxFragLookUpTolerance:.25,liveSyncDurationCount:3,liveMaxLatencyDurationCount:1/0,liveSyncDuration:void 0,liveMaxLatencyDuration:void 0,maxLiveSyncPlaybackRate:1,liveDurationInfinity:!1,liveBackBufferLength:null,maxMaxBufferLength:600,enableWorker:!0,workerPath:null,enableSoftwareAES:!0,startLevel:void 0,startFragPrefetch:!1,fpsDroppedMonitoringPeriod:5e3,fpsDroppedMonitoringThreshold:.2,appendErrorMaxRetry:3,loader:ha,fLoader:void 0,pLoader:void 0,xhrSetup:void 0,licenseXhrSetup:void 0,licenseResponseCallback:void 0,abrController:Zn,bufferController:di,capLevelController:ia,errorController:ze,fpsController:aa,stretchShortVideoTrack:!1,maxAudioFramesDrift:1,forceKeyFrameOnDiscontinuity:!0,abrEwmaFastLive:3,abrEwmaSlowLive:9,abrEwmaFastVoD:3,abrEwmaSlowVoD:9,abrEwmaDefaultEstimate:5e5,abrBandWidthFactor:.95,abrBandWidthUpFactor:.7,abrMaxWithRealBitrate:!1,maxStarvationDelay:4,maxLoadingDelay:4,minAutoBitrate:0,emeEnabled:!1,widevineLicenseUrl:void 0,drmSystems:{},drmSystemOptions:{},requestMediaKeySystemAccessFunc:tt,testBandwidth:!0,progressive:!1,lowLatencyMode:!0,cmcd:void 0,enableDateRangeMetadataCues:!0,enableEmsgMetadataCues:!0,enableID3MetadataCues:!0,certLoadPolicy:{default:{maxTimeToFirstByteMs:8e3,maxLoadTimeMs:2e4,timeoutRetry:null,errorRetry:null}},keyLoadPolicy:{default:{maxTimeToFirstByteMs:8e3,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:2e4,backoff:"linear"},errorRetry:{maxNumRetry:8,retryDelayMs:1e3,maxRetryDelayMs:2e4,backoff:"linear"}}},manifestLoadPolicy:{default:{maxTimeToFirstByteMs:1/0,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},playlistLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:2,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},fragLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:12e4,timeoutRetry:{maxNumRetry:4,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:6,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},steeringManifestLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},manifestLoadingTimeOut:1e4,manifestLoadingMaxRetry:1,manifestLoadingRetryDelay:1e3,manifestLoadingMaxRetryTimeout:64e3,levelLoadingTimeOut:1e4,levelLoadingMaxRetry:4,levelLoadingRetryDelay:1e3,levelLoadingMaxRetryTimeout:64e3,fragLoadingTimeOut:2e4,fragLoadingMaxRetry:6,fragLoadingRetryDelay:1e3,fragLoadingMaxRetryTimeout:64e3},{cueHandler:{newCue:function(t,e,r,n){for(var i,a,s,o,u,l=[],c=self.VTTCue||self.TextTrackCue,A=0;A<n.rows.length;A++)if(s=!0,o=0,u="",!(i=n.rows[A]).isEmpty()){for(var d,f=0;f<i.chars.length;f++)ya.test(i.chars[f].uchar)&&s?o++:(u+=i.chars[f].uchar,s=!1);i.cueStartTime=e,e===r&&(r+=1e-4),o>=16?o--:o++;var h=Ni(u.trim()),p=Gi(e,r,h);null!=t&&null!=(d=t.cues)&&d.getCueById(p)||((a=new c(e,r,h)).id=p,a.line=A+1,a.align="left",a.position=10+Math.min(80,10*Math.floor(8*o/32)),l.push(a))}return t&&l.length&&(l.sort((function(t,e){return"auto"===t.line||"auto"===e.line?0:t.line>8&&e.line>8?e.line-t.line:t.line-e.line})),l.forEach((function(e){return me(t,e)}))),l}},enableWebVTT:!0,enableIMSC1:!0,enableCEA708Captions:!0,captionsTextTrack1Label:"English",captionsTextTrack1LanguageCode:"en",captionsTextTrack2Label:"Spanish",captionsTextTrack2LanguageCode:"es",captionsTextTrack3Label:"Unknown CC",captionsTextTrack3LanguageCode:"",captionsTextTrack4Label:"Unknown CC",captionsTextTrack4LanguageCode:"",renderTextTracksNatively:!0}),{},{subtitleStreamController:ai,subtitleTrackController:oi,timelineController:ra,audioStreamController:ei,audioTrackController:ri,emeController:oa,cmcdController:la,contentSteeringController:ca});function ba(t){return t&&"object"==a(t)?Array.isArray(t)?t.map(ba):Object.keys(t).reduce((function(e,r){return e[r]=ba(t[r]),e}),{}):t}var _a=function(){function t(r){void 0===r&&(r={}),this.config=void 0,this.userConfig=void 0,this.coreComponents=void 0,this.networkControllers=void 0,this._emitter=new jn,this._autoLevelCapping=void 0,this._maxHdcpLevel=null,this.abrController=void 0,this.bufferController=void 0,this.capLevelController=void 0,this.latencyController=void 0,this.levelController=void 0,this.streamController=void 0,this.audioTrackController=void 0,this.subtitleTrackController=void 0,this.emeController=void 0,this.cmcdController=void 0,this._media=null,this.url=null,S(r.debug||!1,"Hls instance");var n=this.config=function(t,r){if((r.liveSyncDurationCount||r.liveMaxLatencyDurationCount)&&(r.liveSyncDuration||r.liveMaxLatencyDuration))throw new Error("Illegal hls.js config: don't mix up liveSyncDurationCount/liveMaxLatencyDurationCount and liveSyncDuration/liveMaxLatencyDuration");if(void 0!==r.liveMaxLatencyDurationCount&&(void 0===r.liveSyncDurationCount||r.liveMaxLatencyDurationCount<=r.liveSyncDurationCount))throw new Error('Illegal hls.js config: "liveMaxLatencyDurationCount" must be greater than "liveSyncDurationCount"');if(void 0!==r.liveMaxLatencyDuration&&(void 0===r.liveSyncDuration||r.liveMaxLatencyDuration<=r.liveSyncDuration))throw new Error('Illegal hls.js config: "liveMaxLatencyDuration" must be greater than "liveSyncDuration"');var n=ba(t),i=["TimeOut","MaxRetry","RetryDelay","MaxRetryTimeout"];return["manifest","level","frag"].forEach((function(t){var e=("level"===t?"playlist":t)+"LoadPolicy",a=void 0===r[e],s=[];i.forEach((function(i){var o=t+"Loading"+i,u=r[o];if(void 0!==u&&a){s.push(o);var l=n[e].default;switch(r[e]={default:l},i){case"TimeOut":l.maxLoadTimeMs=u,l.maxTimeToFirstByteMs=u;break;case"MaxRetry":l.errorRetry.maxNumRetry=u,l.timeoutRetry.maxNumRetry=u;break;case"RetryDelay":l.errorRetry.retryDelayMs=u,l.timeoutRetry.retryDelayMs=u;break;case"MaxRetryTimeout":l.errorRetry.maxRetryDelayMs=u,l.timeoutRetry.maxRetryDelayMs=u}}})),s.length&&k.warn('hls.js config: "'+s.join('", "')+'" setting(s) are deprecated, use "'+e+'": '+JSON.stringify(r[e]))})),e(e({},n),r)}(t.DefaultConfig,r);this.userConfig=r,this._autoLevelCapping=-1,n.progressive&&function(t){var e=t.loader;e!==ga&&e!==ha?(k.log("[config]: Custom loader detected, cannot enable progressive streaming"),t.progressive=!1):function(){if(self.fetch&&self.AbortController&&self.ReadableStream&&self.Request)try{return new self.ReadableStream({}),!0}catch(t){}return!1}()&&(t.loader=ga,t.progressive=!0,t.enableSoftwareAES=!0,k.log("[config]: Progressive streaming enabled, using FetchLoader"))}(n);var i=n.abrController,a=n.bufferController,s=n.capLevelController,o=n.errorController,u=n.fpsController,l=new o(this),c=this.abrController=new i(this),A=this.bufferController=new a(this),d=this.capLevelController=new s(this),f=new u(this),h=new ge(this),p=new xe(this),g=n.contentSteeringController,v=g?new g(this):null,m=this.levelController=new qe(this,v),y=new nr(this),w=new Ar(this.config),_=this.streamController=new qn(this,y,w);d.setStreamController(_),f.setStreamController(_);var B=[h,m,_];v&&B.splice(1,0,v),this.networkControllers=B;var C=[c,A,d,f,p,y];this.audioTrackController=this.createController(n.audioTrackController,B);var E=n.audioStreamController;E&&B.push(new E(this,y,w)),this.subtitleTrackController=this.createController(n.subtitleTrackController,B);var x=n.subtitleStreamController;x&&B.push(new x(this,y,w)),this.createController(n.timelineController,C),w.emeController=this.emeController=this.createController(n.emeController,C),this.cmcdController=this.createController(n.cmcdController,C),this.latencyController=this.createController(Te,C),this.coreComponents=C,B.push(l);var T=l.onErrorOut;"function"==typeof T&&this.on(b.ERROR,T,l)}t.isSupported=function(){return function(){var t=Kt();if(!t)return!1;var e=Pr(),r=t&&"function"==typeof t.isTypeSupported&&t.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"'),n=!e||e.prototype&&"function"==typeof e.prototype.appendBuffer&&"function"==typeof e.prototype.remove;return!!r&&!!n}()};var r=t.prototype;return r.createController=function(t,e){if(t){var r=new t(this);return e&&e.push(r),r}return null},r.on=function(t,e,r){void 0===r&&(r=this),this._emitter.on(t,e,r)},r.once=function(t,e,r){void 0===r&&(r=this),this._emitter.once(t,e,r)},r.removeAllListeners=function(t){this._emitter.removeAllListeners(t)},r.off=function(t,e,r,n){void 0===r&&(r=this),this._emitter.off(t,e,r,n)},r.listeners=function(t){return this._emitter.listeners(t)},r.emit=function(t,e,r){return this._emitter.emit(t,e,r)},r.trigger=function(t,e){if(this.config.debug)return this.emit(t,t,e);try{return this.emit(t,t,e)}catch(e){k.error("An internal error happened while handling event "+t+'. Error message: "'+e.message+'". Here is a stacktrace:',e),this.trigger(b.ERROR,{type:_.OTHER_ERROR,details:B.INTERNAL_EXCEPTION,fatal:!1,event:t,error:e})}return!1},r.listenerCount=function(t){return this._emitter.listenerCount(t)},r.destroy=function(){k.log("destroy"),this.trigger(b.DESTROYING,void 0),this.detachMedia(),this.removeAllListeners(),this._autoLevelCapping=-1,this.url=null,this.networkControllers.forEach((function(t){return t.destroy()})),this.networkControllers.length=0,this.coreComponents.forEach((function(t){return t.destroy()})),this.coreComponents.length=0;var t=this.config;t.xhrSetup=t.fetchSetup=void 0,this.userConfig=null},r.attachMedia=function(t){k.log("attachMedia"),this._media=t,this.trigger(b.MEDIA_ATTACHING,{media:t})},r.detachMedia=function(){k.log("detachMedia"),this.trigger(b.MEDIA_DETACHING,void 0),this._media=null},r.loadSource=function(t){this.stopLoad();var e=this.media,r=this.url,n=this.url=y.buildAbsoluteURL(self.location.href,t,{alwaysNormalize:!0});k.log("loadSource:"+n),e&&r&&(r!==n||this.bufferController.hasSourceTypes())&&(this.detachMedia(),this.attachMedia(e)),this.trigger(b.MANIFEST_LOADING,{url:t})},r.startLoad=function(t){void 0===t&&(t=-1),k.log("startLoad("+t+")"),this.networkControllers.forEach((function(e){e.startLoad(t)}))},r.stopLoad=function(){k.log("stopLoad"),this.networkControllers.forEach((function(t){t.stopLoad()}))},r.swapAudioCodec=function(){k.log("swapAudioCodec"),this.streamController.swapAudioCodec()},r.recoverMediaError=function(){k.log("recoverMediaError");var t=this._media;this.detachMedia(),t&&this.attachMedia(t)},r.removeLevel=function(t,e){void 0===e&&(e=0),this.levelController.removeLevel(t,e)},n(t,[{key:"levels",get:function(){var t=this.levelController.levels;return t||[]}},{key:"currentLevel",get:function(){return this.streamController.currentLevel},set:function(t){k.log("set currentLevel:"+t),this.loadLevel=t,this.abrController.clearTimer(),this.streamController.immediateLevelSwitch()}},{key:"nextLevel",get:function(){return this.streamController.nextLevel},set:function(t){k.log("set nextLevel:"+t),this.levelController.manualLevel=t,this.streamController.nextLevelSwitch()}},{key:"loadLevel",get:function(){return this.levelController.level},set:function(t){k.log("set loadLevel:"+t),this.levelController.manualLevel=t}},{key:"nextLoadLevel",get:function(){return this.levelController.nextLoadLevel},set:function(t){this.levelController.nextLoadLevel=t}},{key:"firstLevel",get:function(){return Math.max(this.levelController.firstLevel,this.minAutoLevel)},set:function(t){k.log("set firstLevel:"+t),this.levelController.firstLevel=t}},{key:"startLevel",get:function(){return this.levelController.startLevel},set:function(t){k.log("set startLevel:"+t),-1!==t&&(t=Math.max(t,this.minAutoLevel)),this.levelController.startLevel=t}},{key:"capLevelToPlayerSize",get:function(){return this.config.capLevelToPlayerSize},set:function(t){var e=!!t;e!==this.config.capLevelToPlayerSize&&(e?this.capLevelController.startCapping():(this.capLevelController.stopCapping(),this.autoLevelCapping=-1,this.streamController.nextLevelSwitch()),this.config.capLevelToPlayerSize=e)}},{key:"autoLevelCapping",get:function(){return this._autoLevelCapping},set:function(t){this._autoLevelCapping!==t&&(k.log("set autoLevelCapping:"+t),this._autoLevelCapping=t)}},{key:"bandwidthEstimate",get:function(){var t=this.abrController.bwEstimator;return t?t.getEstimate():NaN}},{key:"ttfbEstimate",get:function(){var t=this.abrController.bwEstimator;return t?t.getEstimateTTFB():NaN}},{key:"maxHdcpLevel",get:function(){return this._maxHdcpLevel},set:function(t){Se.indexOf(t)>-1&&(this._maxHdcpLevel=t)}},{key:"autoLevelEnabled",get:function(){return-1===this.levelController.manualLevel}},{key:"manualLevel",get:function(){return this.levelController.manualLevel}},{key:"minAutoLevel",get:function(){var t=this.levels,e=this.config.minAutoBitrate;if(!t)return 0;for(var r=t.length,n=0;n<r;n++)if(t[n].maxBitrate>=e)return n;return 0}},{key:"maxAutoLevel",get:function(){var t,e=this.levels,r=this.autoLevelCapping,n=this.maxHdcpLevel;if(t=-1===r&&e&&e.length?e.length-1:r,n)for(var i=t;i--;){var a=e[i].attrs["HDCP-LEVEL"];if(a&&a<=n)return i}return t}},{key:"nextAutoLevel",get:function(){return Math.min(Math.max(this.abrController.nextAutoLevel,this.minAutoLevel),this.maxAutoLevel)},set:function(t){this.abrController.nextAutoLevel=Math.max(this.minAutoLevel,t)}},{key:"playingDate",get:function(){return this.streamController.currentProgramDateTime}},{key:"mainForwardBufferInfo",get:function(){return this.streamController.getMainFwdBufferInfo()}},{key:"audioTracks",get:function(){var t=this.audioTrackController;return t?t.audioTracks:[]}},{key:"audioTrack",get:function(){var t=this.audioTrackController;return t?t.audioTrack:-1},set:function(t){var e=this.audioTrackController;e&&(e.audioTrack=t)}},{key:"subtitleTracks",get:function(){var t=this.subtitleTrackController;return t?t.subtitleTracks:[]}},{key:"subtitleTrack",get:function(){var t=this.subtitleTrackController;return t?t.subtitleTrack:-1},set:function(t){var e=this.subtitleTrackController;e&&(e.subtitleTrack=t)}},{key:"media",get:function(){return this._media}},{key:"subtitleDisplay",get:function(){var t=this.subtitleTrackController;return!!t&&t.subtitleDisplay},set:function(t){var e=this.subtitleTrackController;e&&(e.subtitleDisplay=t)}},{key:"lowLatencyMode",get:function(){return this.config.lowLatencyMode},set:function(t){this.config.lowLatencyMode=t}},{key:"liveSyncPosition",get:function(){return this.latencyController.liveSyncPosition}},{key:"latency",get:function(){return this.latencyController.latency}},{key:"maxLatency",get:function(){return this.latencyController.maxLatency}},{key:"targetLatency",get:function(){return this.latencyController.targetLatency}},{key:"drift",get:function(){return this.latencyController.drift}},{key:"forceStartLoad",get:function(){return this.streamController.forceStartLoad}}],[{key:"version",get:function(){return"1.4.8"}},{key:"Events",get:function(){return b}},{key:"ErrorTypes",get:function(){return _}},{key:"ErrorDetails",get:function(){return B}},{key:"DefaultConfig",get:function(){return t.defaultConfig?t.defaultConfig:wa},set:function(e){t.defaultConfig=e}}]),t}();return _a.defaultConfig=void 0,_a},"object"==a(e)&&"undefined"!=typeof t?t.exports=u():(n=u,i="function"===typeof n?n.call(e,r,e,t):n,void 0===i||(t.exports=i))}(!1)},"5b20":function(t,e,r){"use strict";r.r(e);var n=r("227f"),i=r("4331");for(var a in i)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return i[t]}))}(a);var s=r("828b"),o=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);e["default"]=o.exports},"5bad":function(t,e,r){"use strict";r.r(e);var n=r("e67c"),i=r.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return n[t]}))}(a);e["default"]=i.a},"5bbf":function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={switch:{loading:!1,disabled:!1,size:25,activeColor:"#2979ff",inactiveColor:"#ffffff",value:!1,activeValue:!0,inactiveValue:!1,asyncChange:!1,space:0}}},"5bd2":function(t,e,r){"use strict";r.r(e);var n=r("b658"),i=r("16da");for(var a in i)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return i[t]}))}(a);var s=r("828b"),o=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);e["default"]=o.exports},"5c06":function(t,e,r){"use strict";var n=r("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(r("127e")),a=n(r("ee10")),s={props:{title:{type:String,default:""},url:{type:String,default:""}},data:function(){return{content:"",showChannelPopup:!1,showSharePopup:!1,shareBtn:{index:null,icon:"",title:""},shareList:[{icon:"/static/icon/weixin@2x.png",name:"\u5fae\u4fe1"},{icon:"/static/icon/pengyouquan@2x.png",name:"\u670b\u53cb\u5708"},{icon:"/static/icon/qq-2@2x.png",name:"QQ\u597d\u53cb"},{icon:"/static/icon/QQkongjian@2x.png",name:"QQ\u7a7a\u95f4"},{icon:"/static/icon/shuyi_lianjie@2x.png",name:"\u590d\u5236\u94fe\u63a5"}]}},watch:{url:{handler:function(t){this.content=this.title||getApp().globalData.share.content,this.content+=t}}},created:function(){var t=this;return(0,a.default)(i.default.mark((function e(){var r,n;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$onLaunched;case 2:r=getApp().globalData.share.url,n=getApp().globalData.share.code,n&&(r+=(-1!==r.indexOf("?")?"&code=":"?code=")+n),t.content=t.title||getApp().globalData.share.content,t.content+=t.url||r;case 7:case"end":return e.stop()}}),e)})))()},methods:{close:function(){this.showSharePopup=!1},closeChannel:function(){this.showChannelPopup=!1},selectChannel:function(t){switch(t){case 0:case 1:this.shareBtn={index:t,icon:"/static/icon/weixin2@2x.png",title:"\u6253\u5f00\u5fae\u4fe1\u53d1\u9001\u7ed9\u597d\u53cb"},this.showChannelPopup=!0;break;case 2:case 3:this.shareBtn={index:t,icon:"/static/icon/qq2@2x.png",title:"\u6253\u5f00QQ\u53d1\u9001\u7ed9\u597d\u53cb"},this.showChannelPopup=!0;break;case 4:uni.showToast({icon:"none",title:"\u5206\u4eab\u94fe\u63a5\u5df2\u590d\u5236",duration:3e3});break}this.close(),uni.setClipboardData({data:this.content,showToast:!1})},share:function(){switch(this.shareBtn.index){case 0:case 1:this.openApp("weixin://");break;case 2:case 3:this.openApp("mqq://");break}this.closeChannel()}}};e.default=s},"5c06b":function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={props:{user:{type:Object,default:{}}},data:function(){return{avatar:"",show:!1}},computed:{portrait:function(){if(this.user.user_portrait){var t=this.user.user_portrait.match(/\/avatar\/(.*)/);return t?t[1]:""}return""}},methods:{select:function(t){this.show=!1,this.$emit("change",(2===this.user.user_sex?"woman":"man")+"/"+t+".png")},close:function(){this.show=!1}}};e.default=n},"5c57":function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={datetimePicker:{show:!1,showToolbar:!0,value:"",title:"",mode:"datetime",maxDate:new Date((new Date).getFullYear()+10,0,1).getTime(),minDate:new Date((new Date).getFullYear()-10,0,1).getTime(),minHour:0,maxHour:23,minMinute:0,maxMinute:59,filter:null,formatter:null,loading:!1,itemHeight:44,cancelText:"\u53d6\u6d88",confirmText:"\u786e\u8ba4",cancelColor:"#909193",confirmColor:"#3c9cff",visibleItemCount:5,closeOnClickOverlay:!1,defaultIndex:function(){return[]}}};e.default=n},"5f18":function(t,e,r){"use strict";var n=r("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(r("127e")),a=n(r("ee10")),s=r("0f81"),o={data:function(){return{phone:"",email:"",password:"",ac:"phone",loading:!1,navs:[{name:"\u8d26\u53f7\u767b\u5f55"},{name:"\u90ae\u7bb1\u767b\u5f55"}],navIndex:0,radiovalue:[],agreement:!1}},onLoad:function(){var t=uni.getStorageSync("phoneNumber")||{};this.phone=t.phone||"",this.password=t.password,this.radiovalue=["remember"]},methods:{tabsClick:function(t){if(this.navIndex!=t.index)if(this.navIndex=t.index,this.ac=0==this.navIndex?"phone":"email",0==this.navIndex){var e=uni.getStorageSync("phoneNumber")||{};this.phone=e.phone||"",this.password=e.password,this.radiovalue=["remember"]}else{var r=uni.getStorageSync("emailNumber")||{};this.email=r.phone||"",this.password=r.password,this.radiovalue=["remember"]}},login:function(){var t=this;return(0,a.default)(i.default.mark((function e(){var r,n,a;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:r=/^1[345789]\d{9}$/,n=/^.{6,16}$/,a=/^[^\s@]+@[^\s@]+\.[^\s@]+$/,e.t0=t.navIndex,e.next=0===e.t0?6:1===e.t0?10:14;break;case 6:if(r.test(t.phone)){e.next=9;break}return uni.showToast({icon:"none",title:"\u8bf7\u8f93\u5165\u6b63\u786e\u7684\u624b\u673a\u53f7\u7801~!",duration:3e3}),e.abrupt("return");case 9:return e.abrupt("break",14);case 10:if(a.test(t.email)){e.next=13;break}return uni.showToast({icon:"none",title:"\u8bf7\u8f93\u5165\u6b63\u786e\u7684\u90ae\u7bb1\u5730\u5740~!",duration:3e3}),e.abrupt("return");case 13:return e.abrupt("break",14);case 14:if(n.test(t.password)){e.next=17;break}return uni.showToast({icon:"none",title:"\u8bf7\u8f93\u5165\u6b63\u786e\u7684\u5bc6\u7801~!",duration:3e3}),e.abrupt("return");case 17:return t.loading=!0,e.next=20,s.user.login(t.phone,t.email,t.password,t.ac).then((function(e){uni.showToast({icon:"none",title:e.msg,duration:3e3}),1===e.code&&(t.radiovalue.includes("remember")?0==t.navIndex?uni.setStorageSync("phoneNumber",{phone:t.phone,password:t.password}):uni.setStorageSync("emailNumber",{phone:t.email,password:t.password}):0==t.navIndex?uni.removeStorageSync("phoneNumber"):uni.removeStorageSync("emailNumber"),uni.setStorage({key:"user_token",data:e.data.user_token}),getApp().globalData.share.code=e.data.user_invite_code,getApp().globalData.userToken=e.data.user_token,setTimeout((function(){uni.switchTab({url:"/pages/user/index"})}),1500))})).catch((function(t){}));case 20:t.loading=!1;case 21:case"end":return e.stop()}}),e)})))()}}};e.default=o},"5f3e":function(t,e,r){"use strict";r.r(e);var n=r("0551"),i=r.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return n[t]}))}(a);e["default"]=i.a},"5f6a":function(t,e,r){"use strict";function n(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=/^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;if(t=String(t).toLowerCase(),t&&r.test(t)){if(4===t.length){for(var n="#",i=1;i<4;i+=1)n+=t.slice(i,i+1).concat(t.slice(i,i+1));t=n}for(var a=[],s=1;s<7;s+=2)a.push(parseInt("0x".concat(t.slice(s,s+2))));return e?"rgb(".concat(a[0],",").concat(a[1],",").concat(a[2],")"):a}if(/^(rgb|RGB)/.test(t)){var o=t.replace(/(?:\(|\)|rgb|RGB)*/g,"").split(",");return o.map((function(t){return Number(t)}))}return t}function i(t){var e=t;if(/^(rgb|RGB)/.test(e)){for(var r=e.replace(/(?:\(|\)|rgb|RGB)*/g,"").split(","),n="#",i=0;i<r.length;i++){var a=Number(r[i]).toString(16);a=1==String(a).length?"".concat(0,a):a,"0"===a&&(a+=a),n+=a}return 7!==n.length&&(n=e),n}if(!/^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/.test(e))return e;var s=e.replace(/#/,"").split("");if(6===s.length)return e;if(3===s.length){for(var o="#",u=0;u<s.length;u+=1)o+=s[u]+s[u];return o}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a={colorGradient:function(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"rgb(0, 0, 0)",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"rgb(255, 255, 255)",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10,a=n(t,!1),s=a[0],o=a[1],u=a[2],l=n(e,!1),c=l[0],A=l[1],d=l[2],f=(c-s)/r,h=(A-o)/r,p=(d-u)/r,g=[],v=0;v<r;v++){var m=i("rgb(".concat(Math.round(f*v+s),",").concat(Math.round(h*v+o),",").concat(Math.round(p*v+u),")"));0===v&&(m=i(t)),v===r-1&&(m=i(e)),g.push(m)}return g},hexToRgb:n,rgbToHex:i,colorToRgba:function(t,e){t=i(t);var r=String(t).toLowerCase();if(r&&/^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/.test(r)){if(4===r.length){for(var n="#",a=1;a<4;a+=1)n+=r.slice(a,a+1).concat(r.slice(a,a+1));r=n}for(var s=[],o=1;o<7;o+=2)s.push(parseInt("0x".concat(r.slice(o,o+2))));return"rgba(".concat(s.join(","),",").concat(e,")")}return r}};e.default=a},"60fa":function(t,e,r){"use strict";var n=r("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(r("5950")),a={name:"u-safe-bottom",mixins:[uni.$u.mpMixin,uni.$u.mixin,i.default],data:function(){return{safeAreaBottomHeight:0,isNvue:!1}},computed:{style:function(){return uni.$u.deepMerge({},uni.$u.addStyle(this.customStyle))}},mounted:function(){}};e.default=a},6159:function(t,e,r){"use strict";r.r(e);var n=r("e6bc"),i=r("7b72");for(var a in i)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return i[t]}))}(a);var s=r("828b"),o=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);e["default"]=o.exports},6170:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={swipeActionItem:{show:!1,name:"",disabled:!1,threshold:20,autoClose:!0,options:[],duration:300}}},"61d5":function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={props:{col:{type:[String,Number],default:uni.$u.props.grid.col},border:{type:Boolean,default:uni.$u.props.grid.border},align:{type:String,default:uni.$u.props.grid.align}}};e.default=n},"62ff":function(t,e,r){"use strict";r.r(e);var n=r("917b"),i=r.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return n[t]}))}(a);e["default"]=i.a},6382:function(t,e,r){var n=r("6454");t.exports=function(t,e){if(t){if("string"===typeof t)return n(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(t,e):void 0}},t.exports.__esModule=!0,t.exports["default"]=t.exports},6454:function(t,e){t.exports=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n},t.exports.__esModule=!0,t.exports["default"]=t.exports},6479:function(t,e,r){"use strict";var n=r("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(r("7ecd")),a={name:"u-gap",mixins:[uni.$u.mpMixin,uni.$u.mixin,i.default],computed:{gapStyle:function(){var t={backgroundColor:this.bgColor,height:uni.$u.addUnit(this.height),marginTop:uni.$u.addUnit(this.marginTop),marginBottom:uni.$u.addUnit(this.marginBottom)};return uni.$u.deepMerge(t,uni.$u.addStyle(this.customStyle))}}};e.default=a},"64a3":function(t,e,r){"use strict";r.r(e);var n=r("ee60"),i=r.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return n[t]}))}(a);e["default"]=i.a},"64ba":function(t,e,r){"use strict";r.d(e,"b",(function(){return i})),r.d(e,"c",(function(){return a})),r.d(e,"a",(function(){return n}));var n={uOverlay:r("0136").default,uLoadingIcon:r("42fe").default,uIcon:r("712b").default,uGap:r("df7f").default},i=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("view",{staticClass:t._$s(0,"sc","u-toast"),attrs:{_i:0}},[r("u-overlay",{attrs:{show:t.isShow,"custom-style":t.overlayStyle,_i:1}},[r("view",{staticClass:t._$s(2,"sc","u-toast__content"),class:t._$s(2,"c",["u-type-"+t.tmpConfig.type,"loading"===t.tmpConfig.type||t.tmpConfig.loading?"u-toast__content--loading":""]),style:t._$s(2,"s",[t.contentStyle]),attrs:{_i:2}},[t._$s(3,"i","loading"===t.tmpConfig.type)?r("u-loading-icon",{attrs:{mode:"circle",color:"rgb(255, 255, 255)",inactiveColor:"rgb(120, 120, 120)",size:"25",_i:3}}):t._$s(4,"e","defalut"!==t.tmpConfig.type&&t.iconName)?r("u-icon",{attrs:{name:t.iconName,size:"17",color:t.tmpConfig.type,customStyle:t.iconStyle,_i:4}}):t._e(),t._$s(5,"i","loading"===t.tmpConfig.type||t.tmpConfig.loading)?r("u-gap",{attrs:{height:"12",bgColor:"transparent",_i:5}}):t._e(),r("text",{staticClass:t._$s(6,"sc","u-toast__content__text"),class:t._$s(6,"c",["u-toast__content__text--"+t.tmpConfig.type]),attrs:{_i:6}},[t._v(t._$s(6,"t0-0",t._s(t.tmpConfig.message)))])],1)])],1)},a=[]},"64d2":function(t,e,r){"use strict";r.d(e,"b",(function(){return i})),r.d(e,"c",(function(){return a})),r.d(e,"a",(function(){return n}));var n={uIcon:r("712b").default},i=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("view",{staticClass:t._$s(0,"sc","u-checkbox"),class:t._$s(0,"c",["u-checkbox-label--"+t.parentData.iconPlacement,t.parentData.borderBottom&&"column"===t.parentData.placement&&"u-border-bottom"]),style:t._$s(0,"s",[t.checkboxStyle]),attrs:{_i:0},on:{click:function(e){return e.stopPropagation(),t.wrapperClickHandler(e)}}},[r("view",{staticClass:t._$s(1,"sc","u-checkbox__icon-wrap"),class:t._$s(1,"c",t.iconClasses),style:t._$s(1,"s",[t.iconWrapStyle]),attrs:{_i:1},on:{click:function(e){return e.stopPropagation(),t.iconClickHandler(e)}}},[t._t("icon",[r("u-icon",{staticClass:t._$s(3,"sc","u-checkbox__icon-wrap__icon"),attrs:{name:"checkbox-mark",size:t.elIconSize,color:t.elIconColor,_i:3}})],{_i:2})],2),r("text",{style:t._$s(4,"s",{color:t.elDisabled?t.elInactiveColor:t.elLabelColor,fontSize:t.elLabelSize,lineHeight:t.elLabelSize}),attrs:{_i:4},on:{click:function(e){return e.stopPropagation(),t.labelClickHandler(e)}}},[t._v(t._$s(4,"t0-0",t._s(t.label)))])])},a=[]},6503:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={props:{status:{type:String,default:uni.$u.props.loadmore.status},bgColor:{type:String,default:uni.$u.props.loadmore.bgColor},icon:{type:Boolean,default:uni.$u.props.loadmore.icon},fontSize:{type:[String,Number],default:uni.$u.props.loadmore.fontSize},iconSize:{type:[String,Number],default:uni.$u.props.loadmore.iconSize},color:{type:String,default:uni.$u.props.loadmore.color},loadingIcon:{type:String,default:uni.$u.props.loadmore.loadingIcon},loadmoreText:{type:String,default:uni.$u.props.loadmore.loadmoreText},loadingText:{type:String,default:uni.$u.props.loadmore.loadingText},nomoreText:{type:String,default:uni.$u.props.loadmore.nomoreText},isDot:{type:Boolean,default:uni.$u.props.loadmore.isDot},iconColor:{type:String,default:uni.$u.props.loadmore.iconColor},marginTop:{type:[String,Number],default:uni.$u.props.loadmore.marginTop},marginBottom:{type:[String,Number],default:uni.$u.props.loadmore.marginBottom},height:{type:[String,Number],default:uni.$u.props.loadmore.height},line:{type:Boolean,default:uni.$u.props.loadmore.line},lineColor:{type:String,default:uni.$u.props.loadmore.lineColor},dashed:{type:Boolean,default:uni.$u.props.loadmore.dashed}}};e.default=n},"65be":function(t,e,r){var n,i,a,s=r("3b2d");(function(o,u,l){"object"===s(e)?t.exports=e=u(r("707d"),r("e538"),r("91de"),r("05f0"),r("bbe5")):(i=[r("707d"),r("e538"),r("91de"),r("05f0"),r("bbe5")],n=u,a="function"===typeof n?n.apply(e,i):n,void 0===a||(t.exports=a))})(0,(function(t){return function(){var e=t,r=e.lib,n=r.StreamCipher,i=e.algo,a=i.RC4=n.extend({_doReset:function(){for(var t=this._key,e=t.words,r=t.sigBytes,n=this._S=[],i=0;i<256;i++)n[i]=i;i=0;for(var a=0;i<256;i++){var s=i%r,o=e[s>>>2]>>>24-s%4*8&255;a=(a+n[i]+o)%256;var u=n[i];n[i]=n[a],n[a]=u}this._i=this._j=0},_doProcessBlock:function(t,e){t[e]^=s.call(this)},keySize:8,ivSize:0});function s(){for(var t=this._S,e=this._i,r=this._j,n=0,i=0;i<4;i++){e=(e+1)%256,r=(r+t[e])%256;var a=t[e];t[e]=t[r],t[r]=a,n|=t[(t[e]+t[r])%256]<<24-8*i}return this._i=e,this._j=r,n}e.RC4=n._createHelper(a);var o=i.RC4Drop=a.extend({cfg:a.cfg.extend({drop:192}),_doReset:function(){a._doReset.call(this);for(var t=this.cfg.drop;t>0;t--)s.call(this)}});e.RC4Drop=n._createHelper(o)}(),t.RC4}))},"667d":function(t,e,r){"use strict";r.r(e);var n=r("362c"),i=r("b36d");for(var a in i)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return i[t]}))}(a);var s=r("828b"),o=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);e["default"]=o.exports},"66e9":function(t,e,r){"use strict";r.d(e,"b",(function(){return n})),r.d(e,"c",(function(){return i})),r.d(e,"a",(function(){}));var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("view",{staticClass:t._$s(0,"sc","page-container"),attrs:{_i:0}},[r("view",{staticClass:t._$s(1,"sc","exchange-header-bg"),attrs:{_i:1}},[r("view",{staticClass:t._$s(2,"sc","header-bg-upper"),attrs:{_i:2}})]),r("view",{staticClass:t._$s(3,"sc","status-bar"),attrs:{_i:3}}),r("view",{staticClass:t._$s(4,"sc","page-header"),attrs:{_i:4}}),r("navigator",{staticClass:t._$s(5,"sc","user-info"),attrs:{_i:5}},[r("view",{staticClass:t._$s(6,"sc","align-center"),attrs:{_i:6}},[r("image",{staticClass:t._$s(7,"sc","user-avatar"),attrs:{src:t._$s(7,"a-src",t.user.user_portrait||"/static/avatar/noavatar.png"),_i:7}}),r("view",{staticClass:t._$s(8,"sc","user-info-box"),attrs:{_i:8}},[r("navigator",{staticClass:t._$s(9,"sc","user-info-btn"),attrs:{_i:9}}),r("view",{staticClass:t._$s(10,"sc","user-name align-center"),attrs:{_i:10}},[r("text",{staticClass:t._$s(11,"sc","name"),attrs:{_i:11}},[t._v(t._$s(11,"t0-0",t._s(t.user.user_nick_name||t.user.user_name)))])]),t._$s(12,"i",t.user.user_invite_code)?r("view",{staticClass:t._$s(12,"sc","user-extend"),attrs:{_i:12}},[t._v(t._$s(12,"t0-0",t._s(t.user.user_invite_code)))]):t._e(),t._$s(13,"i",t.user.user_invite_num>=0)?r("progress",{staticClass:t._$s(13,"sc","share-progress progress"),attrs:{percent:t._$s(13,"a-percent",t.user.user_invite_progress),_i:13}}):t._e(),t._$s(14,"i",t.user.group)?r("view",{staticClass:t._$s(14,"sc","user-grade-num justify-between"),attrs:{_i:14}},[r("text",[t._v(t._$s(15,"t0-0",t._s(t.user.group.group_name)))]),r("text",[t._v(t._$s(16,"t0-0",t._s(t.group[t.user.group_id+1]?t.group[t.user.group_id+1].group_name:"")))])]):t._e()])])]),r("view",{staticClass:t._$s(17,"sc","user-upgrade"),attrs:{_i:17}},[r("view",{staticClass:t._$s(18,"sc","user-upgrade-header"),attrs:{_i:18}},[r("image",{attrs:{_i:19}})]),r("view",{staticClass:t._$s(20,"sc","user-upgrade-box"),attrs:{_i:20}},[r("view",{staticClass:t._$s(21,"sc","upgrade-item align-center"),attrs:{_i:21}},[r("view",{staticClass:t._$s(22,"sc","upgrade-icon align-center"),attrs:{_i:22}},[r("text",{staticClass:t._$s(23,"sc","upgrade-name"),attrs:{_i:23}})]),r("view",{staticClass:t._$s(24,"sc","upgrade-info"),attrs:{_i:24}},[r("view",{staticClass:t._$s(25,"sc","upgrade-info-text"),attrs:{_i:25}},[r("text",[t._v(t._$s(26,"t0-0",t._s(t.guest.points)))]),r("text",[t._v(t._$s(27,"t0-0",t._s(t.guest.down_points)))])])])]),t._l(t._$s(28,"f",{forItems:t.group}),(function(e,n,i,a){return r("view",{key:t._$s(28,"f",{forIndex:i,key:n}),staticClass:t._$s("28-"+a,"sc","upgrade-item align-center"),attrs:{_i:"28-"+a}},[r("view",{staticClass:t._$s("29-"+a,"sc","upgrade-icon align-center"),attrs:{_i:"29-"+a}},[r("text",{staticClass:t._$s("30-"+a,"sc","upgrade-name"),attrs:{_i:"30-"+a}},[t._v(t._$s("30-"+a,"t0-0",t._s(n)))])]),r("view",{staticClass:t._$s("31-"+a,"sc","upgrade-info"),attrs:{_i:"31-"+a}},[t._$s("32-"+a,"i",e.group_number)?r("view",{staticClass:t._$s("32-"+a,"sc","upgrade-info-title"),attrs:{_i:"32-"+a}},[t._v(t._$s("32-"+a,"t0-0",t._s(e.group_number)))]):t._e(),r("view",{staticClass:t._$s("33-"+a,"sc","upgrade-info-text"),attrs:{_i:"33-"+a}},[r("text",[t._v(t._$s("34-"+a,"t0-0",t._s(e.group_points)))]),r("text",[t._v(t._$s("35-"+a,"t0-0",t._s(e.group_down_points)))])])])])})),r("view",{staticClass:t._$s(36,"sc","upgrade-item align-center"),attrs:{_i:36}},[r("view",{staticClass:t._$s(37,"sc","upgrade-icon align-center"),attrs:{_i:37}},[r("text",{staticClass:t._$s(38,"sc","upgrade-name"),attrs:{_i:38}})]),r("view",{staticClass:t._$s(39,"sc","upgrade-info"),attrs:{_i:39}},[r("view",{staticClass:t._$s(40,"sc","upgrade-info-text"),attrs:{_i:40}})])])],2)]),r("navigator",{staticClass:t._$s(41,"sc","share-button"),attrs:{_i:41}})])},i=[]},"67ad":function(t,e){t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},t.exports.__esModule=!0,t.exports["default"]=t.exports},"67d2":function(t,e,r){"use strict";var n=r("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(r("127e")),a=n(r("ee10")),s=r("0f81"),o={props:{type:{type:Number,default:0}},data:function(){return{list:[],page:1,loaded:!1,refreshTriggered:!1,loadStatus:"loadmore"}},methods:{init:function(){!1===this.loaded&&this.getData()},getData:function(){var t=this;return(0,a.default)(i.default.mark((function e(){return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if("nomore"!==t.loadStatus&&"loading"!==t.loadStatus){e.next=2;break}return e.abrupt("return");case 2:return t.loadStatus="loading",e.next=5,s.app.noticeList(t.type,t.page).then((function(e){1==e.code?(e.data.page<e.data.page_total?(t.loadStatus="loadmore",t.page++):t.loadStatus="nomore",t.list=t.list.concat(e.data.list),t.loaded=!0):t.loadStatus="loadmore"})).catch((function(e){t.loadStatus="loadmore"}));case 5:t.refreshTriggered=!1;case 6:case"end":return e.stop()}}),e)})))()},refresh:function(){this.refreshTriggered=!0,this.loadStatus="loadmore",this.page=1,this.list=[],this.getData()}}};e.default=o},6831:function(t,e,r){"use strict";r.r(e);var n=r("bd0a"),i=r.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return n[t]}))}(a);e["default"]=i.a},"68c7":function(t,e,r){"use strict";r.d(e,"b",(function(){return n})),r.d(e,"c",(function(){return i})),r.d(e,"a",(function(){}));var n=function(){var t=this.$createElement,e=this._self._c||t;return e("view",[e("web-view",{attrs:{"webview-styles":this._$s(1,"a-webview-styles",this.webviewStyles),_i:1},on:{message:this.handleWebViewMessage}})])},i=[]},"692a":function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={badge:{isDot:!1,value:"",show:!0,max:999,type:"error",showZero:!1,bgColor:null,color:null,shape:"circle",numberType:"overflow",offset:function(){return[]},inverted:!1,absolute:!1}}},"692c":function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={numberBox:{name:"",value:0,min:1,max:Number.MAX_SAFE_INTEGER,step:1,integer:!1,disabled:!1,disabledInput:!1,asyncChange:!1,inputWidth:35,showMinus:!0,showPlus:!0,decimalLength:null,longPress:!0,color:"#323233",buttonSize:30,bgColor:"#EBECEE",cursorSpacing:100,disableMinus:!1,disablePlus:!1,iconStyle:""}};e.default=n},6949:function(t,e,r){"use strict";r.r(e);var n=r("ff8d"),i=r.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return n[t]}))}(a);e["default"]=i.a},"696e":function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={divider:{dashed:!1,hairline:!0,dot:!1,textPosition:"center",text:"",textSize:14,textColor:"#909399",lineColor:"#dcdfe6"}}},"6a34":function(t,e,r){"use strict";r.r(e);var n=r("ecef"),i=r.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return n[t]}))}(a);e["default"]=i.a},"6bb7":function(t,e,r){"use strict";var n=r("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(r("127e")),a=n(r("7ca3")),s=n(r("af34")),o=n(r("ee10")),u=n(r("915f")),l=n(r("3564")),c=n(r("9ca4")),A=n(r("4231")),d=n(r("8f11")),f=r("0f81");function h(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function p(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?h(Object(r),!0).forEach((function(e){(0,a.default)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):h(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var g={components:{headerNav:u.default,indexItem:l.default,indexItemHot:c.default,vodImage:A.default},data:function(){return{type:[{id:0,name:"\u4eca\u65e5\u63a8\u8350"}],typeIndex:0,notice:{},noticeShow:!1,advlist:[],currentIndex:0}},onLoad:function(){this.getHome(),(0,d.default)()},onShow:function(){return(0,o.default)(i.default.mark((function t(){return i.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:case"end":return t.stop()}}),t)})))()},methods:{openApp:function(t){plus.runtime.openURL(t)},swiperChange:function(t){this.typeIndex=t.detail.current,this.$refs["index"+this.typeIndex][0].init()},getHome:function(){var t=this;f.app.home().then((function(e){var r=e.data;r?(t.type=[{id:0,name:"\u4eca\u65e5\u63a8\u8350"}].concat((0,s.default)(r.type)),r.advlist.length?(t.advlist=r.advlist.map((function(t){return p(p({},t),{},{visible:!1})})),t.advlist[t.currentIndex].visible=!0):r.notice&&(t.noticeShow=!0),r.notice&&(t.notice=r.notice),t.$nextTick((function(){t.$refs["index"+t.typeIndex][0].init()}))):uni.reLaunch({url:"/pages/splash/splash"})}))},closePopup:function(t){this.currentIndex++,this.advlist[t].visible=!1,this.currentIndex<this.advlist.length&&(this.advlist[this.currentIndex].visible=!0),this.currentIndex==this.advlist.length&&this.notice&&(this.noticeShow=!0)}}};e.default=g},"6c28":function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={formItem:{label:"",prop:"",borderBottom:"",labelPosition:"",labelWidth:"",rightIcon:"",leftIcon:"",required:!1,leftIconStyle:""}}},"6c2a":function(t,e,r){"use strict";var n=r("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(r("127e")),a=n(r("ee10")),s=r("0f81"),o={data:function(){return{list:[],invite:0,active:0,coin:0,page:1,count:0,refreshTriggered:!1,loadStatus:"loadmore"}},onPullDownRefresh:function(){this.refreshTriggered=!0,this.loadStatus="loadmore",this.page=1,this.list=[],this.getData()},onReachBottom:function(){this.getData()},onLoad:function(){var t=this;return(0,a.default)(i.default.mark((function e(){var r;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$onLaunched;case 2:r=getApp().globalData.userToken,r?t.getData():uni.redirectTo({url:"/pages/user/login"});case 4:case"end":return e.stop()}}),e)})))()},methods:{getData:function(){var t=this;return(0,a.default)(i.default.mark((function e(){return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if("nomore"!==t.loadStatus&&"loading"!==t.loadStatus){e.next=2;break}return e.abrupt("return");case 2:return t.loadStatus="loading",e.next=5,s.user.clogList(t.page).then((function(e){1==e.code?(e.data.page<e.data.page_total?(t.loadStatus="loadmore",t.page++):t.loadStatus="nomore",t.list=t.list.concat(e.data.list),e.data.invite_num&&(t.invite=e.data.invite_num),e.data.active_num&&(t.active=e.data.active_num),e.data.coin_num&&(t.coin=e.data.coin_num),t.count=e.data.count):t.loadStatus="loadmore"})).catch((function(e){t.loadStatus="loadmore"}));case 5:t.refreshTriggered&&(t.refreshTriggered=!1,uni.stopPullDownRefresh());case 6:case"end":return e.stop()}}),e)})))()}}};e.default=o},"6c77":function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={props:{icon:{type:String,default:uni.$u.props.empty.icon},text:{type:String,default:uni.$u.props.empty.text},textColor:{type:String,default:uni.$u.props.empty.textColor},textSize:{type:[String,Number],default:uni.$u.props.empty.textSize},iconColor:{type:String,default:uni.$u.props.empty.iconColor},iconSize:{type:[String,Number],default:uni.$u.props.empty.iconSize},mode:{type:String,default:uni.$u.props.empty.mode},width:{type:[String,Number],default:uni.$u.props.empty.width},height:{type:[String,Number],default:uni.$u.props.empty.height},show:{type:Boolean,default:uni.$u.props.empty.show},marginTop:{type:[String,Number],default:uni.$u.props.empty.marginTop}}};e.default=n},"6cc4":function(t,e,r){"use strict";r.r(e);var n=r("7b2b"),i=r.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return n[t]}))}(a);e["default"]=i.a},"6d45":function(t,e,r){"use strict";var n=r("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(r("127e")),a=n(r("ee10")),s=r("0f81"),o={data:function(){return{list:[],page:1,count:0,refreshTriggered:!1,loadStatus:"loadmore"}},onPullDownRefresh:function(){this.refreshTriggered=!0,this.loadStatus="loadmore",this.page=1,this.list=[],this.getData()},onReachBottom:function(){this.getData()},onLoad:function(){var t=this;return(0,a.default)(i.default.mark((function e(){var r;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$onLaunched;case 2:r=getApp().globalData.userToken,r?t.getData():uni.redirectTo({url:"/pages/user/login"});case 4:case"end":return e.stop()}}),e)})))()},methods:{getData:function(){var t=this;return(0,a.default)(i.default.mark((function e(){return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if("nomore"!==t.loadStatus&&"loading"!==t.loadStatus){e.next=2;break}return e.abrupt("return");case 2:return t.loadStatus="loading",e.next=5,s.user.orderList(t.page).then((function(e){1==e.code?(e.data.page<e.data.page_total?(t.loadStatus="loadmore",t.page++):t.loadStatus="nomore",t.list=t.list.concat(e.data.list),t.count=e.data.count):t.loadStatus="loadmore"})).catch((function(e){t.loadStatus="loadmore"}));case 5:t.refreshTriggered&&(t.refreshTriggered=!1,uni.stopPullDownRefresh());case 6:case"end":return e.stop()}}),e)})))()}}};e.default=o},"6db3":function(t,e,r){var n,i,a,s=r("3b2d");(function(o,u,l){"object"===s(e)?t.exports=e=u(r("707d"),r("bbe5")):(i=[r("707d"),r("bbe5")],n=u,a="function"===typeof n?n.apply(e,i):n,void 0===a||(t.exports=a))})(0,(function(t){return t.mode.CTR=function(){var e=t.lib.BlockCipherMode.extend(),r=e.Encryptor=e.extend({processBlock:function(t,e){var r=this._cipher,n=r.blockSize,i=this._iv,a=this._counter;i&&(a=this._counter=i.slice(0),this._iv=void 0);var s=a.slice(0);r.encryptBlock(s,0),a[n-1]=a[n-1]+1|0;for(var o=0;o<n;o++)t[e+o]^=s[o]}});return e.Decryptor=r,e}(),t.mode.CTR}))},"6efd":function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={backtop:{mode:"circle",icon:"arrow-upward",text:"",duration:100,scrollTop:0,top:400,bottom:100,right:20,zIndex:9,iconStyle:function(){return{color:"#909399",fontSize:"19px"}}}}},"6f69":function(t,e,r){"use strict";r.r(e);var n=r("5997"),i=r("9e75");for(var a in i)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return i[t]}))}(a);var s=r("828b"),o=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);e["default"]=o.exports},"707d":function(t,e,r){(function(n,i,a){var s,o,u,l=r("3b2d");(function(r,n){"object"===l(e)?t.exports=e=n():(o=[],s=n,u="function"===typeof s?s.apply(e,o):s,void 0===u||(t.exports=u))})(0,(function(){var t=t||function(t,e){var s;if("undefined"!==typeof window&&n&&(s=n),"undefined"!==typeof self&&self.crypto&&(s=self.crypto),"undefined"!==typeof globalThis&&globalThis.crypto&&(s=globalThis.crypto),!s&&"undefined"!==typeof window&&window.msCrypto&&(s=window.msCrypto),!s&&"undefined"!==typeof i&&a&&(s=a),!s)try{s=r(0)}catch(y){}var o=function(){if(s){if("function"===typeof s.getRandomValues)try{return s.getRandomValues(new Uint32Array(1))[0]}catch(y){}if("function"===typeof s.randomBytes)try{return s.randomBytes(4).readInt32LE()}catch(y){}}throw new Error("Native crypto module could not be used to get secure random number.")},u=Object.create||function(){function t(){}return function(e){var r;return t.prototype=e,r=new t,t.prototype=null,r}}(),l={},c=l.lib={},A=c.Base=function(){return{extend:function(t){var e=u(this);return t&&e.mixIn(t),e.hasOwnProperty("init")&&this.init!==e.init||(e.init=function(){e.$super.init.apply(this,arguments)}),e.init.prototype=e,e.$super=this,e},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),d=c.WordArray=A.extend({init:function(t,e){t=this.words=t||[],this.sigBytes=void 0!=e?e:4*t.length},toString:function(t){return(t||h).stringify(this)},concat:function(t){var e=this.words,r=t.words,n=this.sigBytes,i=t.sigBytes;if(this.clamp(),n%4)for(var a=0;a<i;a++){var s=r[a>>>2]>>>24-a%4*8&255;e[n+a>>>2]|=s<<24-(n+a)%4*8}else for(var o=0;o<i;o+=4)e[n+o>>>2]=r[o>>>2];return this.sigBytes+=i,this},clamp:function(){var e=this.words,r=this.sigBytes;e[r>>>2]&=4294967295<<32-r%4*8,e.length=t.ceil(r/4)},clone:function(){var t=A.clone.call(this);return t.words=this.words.slice(0),t},random:function(t){for(var e=[],r=0;r<t;r+=4)e.push(o());return new d.init(e,t)}}),f=l.enc={},h=f.Hex={stringify:function(t){for(var e=t.words,r=t.sigBytes,n=[],i=0;i<r;i++){var a=e[i>>>2]>>>24-i%4*8&255;n.push((a>>>4).toString(16)),n.push((15&a).toString(16))}return n.join("")},parse:function(t){for(var e=t.length,r=[],n=0;n<e;n+=2)r[n>>>3]|=parseInt(t.substr(n,2),16)<<24-n%8*4;return new d.init(r,e/2)}},p=f.Latin1={stringify:function(t){for(var e=t.words,r=t.sigBytes,n=[],i=0;i<r;i++){var a=e[i>>>2]>>>24-i%4*8&255;n.push(String.fromCharCode(a))}return n.join("")},parse:function(t){for(var e=t.length,r=[],n=0;n<e;n++)r[n>>>2]|=(255&t.charCodeAt(n))<<24-n%4*8;return new d.init(r,e)}},g=f.Utf8={stringify:function(t){try{return decodeURIComponent(escape(p.stringify(t)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(t){return p.parse(unescape(encodeURIComponent(t)))}},v=c.BufferedBlockAlgorithm=A.extend({reset:function(){this._data=new d.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=g.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(e){var r,n=this._data,i=n.words,a=n.sigBytes,s=this.blockSize,o=4*s,u=a/o;u=e?t.ceil(u):t.max((0|u)-this._minBufferSize,0);var l=u*s,c=t.min(4*l,a);if(l){for(var A=0;A<l;A+=s)this._doProcessBlock(i,A);r=i.splice(0,l),n.sigBytes-=c}return new d.init(r,c)},clone:function(){var t=A.clone.call(this);return t._data=this._data.clone(),t},_minBufferSize:0}),m=(c.Hasher=v.extend({cfg:A.extend(),init:function(t){this.cfg=this.cfg.extend(t),this.reset()},reset:function(){v.reset.call(this),this._doReset()},update:function(t){return this._append(t),this._process(),this},finalize:function(t){t&&this._append(t);var e=this._doFinalize();return e},blockSize:16,_createHelper:function(t){return function(e,r){return new t.init(r).finalize(e)}},_createHmacHelper:function(t){return function(e,r){return new m.HMAC.init(t,r).finalize(e)}}}),l.algo={});return l}(Math);return t}))}).call(this,r("0b64")["default"],r("0ee4"),r("0b64")["default"])},"70b0":function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={avatar:{src:"",shape:"circle",size:40,mode:"scaleToFill",text:"",bgColor:"#c0c4cc",color:"#ffffff",fontSize:18,icon:"",mpAvatar:!1,randomBgColor:!1,defaultUrl:"",colorIndex:"",name:""}}},"70df":function(t,e,r){"use strict";(function(t){var n=r("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(r("127e")),a=n(r("ee10")),s=r("0f81"),o={data:function(){return{data:{},id:0,payid:"",payShow:!1,loading:!1}},onLoad:function(){var t=this;return(0,a.default)(i.default.mark((function e(){var r;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$onLaunched;case 2:r=getApp().globalData.userToken,r?t.getData():uni.redirectTo({url:"/pages/user/login"});case 4:case"end":return e.stop()}}),e)})))()},methods:{getData:function(){var t=this;s.user.recharge().then((function(e){1==e.code&&(t.data=e.data,t.id=e.data.selected,t.payid=e.data.pay_id)}))},pay:function(){var e=this;return(0,a.default)(i.default.mark((function r(){return i.default.wrap((function(r){while(1)switch(r.prev=r.next){case 0:if(0!==e.id){r.next=3;break}return uni.showToast({icon:"none",title:"\u8bf7\u9009\u62e9\u8981\u652f\u4ed8\u7684\u7c7b\u578b~!",duration:3e3}),r.abrupt("return");case 3:if(""!==e.payid){r.next=6;break}return uni.showToast({icon:"none",title:"\u8bf7\u9009\u62e9\u8981\u652f\u4ed8\u7684\u65b9\u5f0f~!",duration:3e3}),r.abrupt("return");case 6:return e.loading=!0,r.next=9,s.user.payOrder(e.id,e.payid,"vip").then((function(r){1===r.code?(t("log",r," at pages/user/recharge.vue:122"),uni.showModal({title:"\u652f\u4ed8\u63d0\u793a",confirmText:"\u5df2\u652f\u4ed8",confirmColor:"#fd6202",content:"\u652f\u4ed8\u6210\u529f\u540e\uff0cVIP\u4f1a\u57285\u5206\u949f\u5185\u751f\u6548\u3002\u5982\u9047\u670d\u52a1\u5668\u62e5\u5835\uff0cVIP\u751f\u6548\u53ef\u80fd\u4f1a\u6709\u5ef6\u8fdf\uff0c\u8bf7\u8010\u5fc3\u7b49\u5f85\uff0c\u53ef\u9000\u51faAPP\u91cd\u65b0\u8fdb\u5165\u67e5\u770bVIP\u751f\u6548\u60c5\u51b5\u3002\u82e5\u8d85\u8fc730\u5206\u949f\u4ecd\u672a\u5230\u8d26\uff0c\u8bf7\u53ca\u65f6\u8054\u7cfb\u5c0f\u7f16\u8fdb\u884c\u5904\u7406\uff01",success:function(t){t.confirm&&e.back()}}),r.data.url&&e.openApp(r.data.url)):uni.showToast({icon:"none",title:r.msg,duration:3e3})})).catch((function(t){}));case 9:e.loading=!1;case 10:case"end":return r.stop()}}),r)})))()},onSelect:function(t){this.id=t},paySelect:function(t){this.payid=t.detail.value}}};e.default=o}).call(this,r("f3b9")["default"])},"712b":function(t,e,r){"use strict";r.r(e);var n=r("a29f"),i=r("f14d");for(var a in i)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return i[t]}))}(a);var s=r("828b"),o=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,"81db60ce",null,!1,n["a"],void 0);e["default"]=o.exports},7172:function(t,e){t.exports=function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,a,s,o=[],u=!0,l=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=a.call(r)).done)&&(o.push(n.value),o.length!==e);u=!0);}catch(t){l=!0,i=t}finally{try{if(!u&&null!=r["return"]&&(s=r["return"](),Object(s)!==s))return}finally{if(l)throw i}}return o}},t.exports.__esModule=!0,t.exports["default"]=t.exports},"71b1":function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={fade:{enter:{opacity:0},"enter-to":{opacity:1},leave:{opacity:1},"leave-to":{opacity:0}},"fade-up":{enter:{opacity:0,transform:"translateY(100%)"},"enter-to":{opacity:1,transform:"translateY(0)"},leave:{opacity:1,transform:"translateY(0)"},"leave-to":{opacity:0,transform:"translateY(100%)"}},"fade-down":{enter:{opacity:0,transform:"translateY(-100%)"},"enter-to":{opacity:1,transform:"translateY(0)"},leave:{opacity:1,transform:"translateY(0)"},"leave-to":{opacity:0,transform:"translateY(-100%)"}},"fade-left":{enter:{opacity:0,transform:"translateX(-100%)"},"enter-to":{opacity:1,transform:"translateY(0)"},leave:{opacity:1,transform:"translateY(0)"},"leave-to":{opacity:0,transform:"translateX(-100%)"}},"fade-right":{enter:{opacity:0,transform:"translateX(100%)"},"enter-to":{opacity:1,transform:"translateY(0)"},leave:{opacity:1,transform:"translateY(0)"},"leave-to":{opacity:0,transform:"translateX(100%)"}},"slide-up":{enter:{transform:"translateY(100%)"},"enter-to":{transform:"translateY(0)"},leave:{transform:"translateY(0)"},"leave-to":{transform:"translateY(100%)"}},"slide-down":{enter:{transform:"translateY(-100%)"},"enter-to":{transform:"translateY(0)"},leave:{transform:"translateY(0)"},"leave-to":{transform:"translateY(-100%)"}},"slide-left":{enter:{transform:"translateX(-100%)"},"enter-to":{transform:"translateY(0)"},leave:{transform:"translateY(0)"},"leave-to":{transform:"translateX(-100%)"}},"slide-right":{enter:{transform:"translateX(100%)"},"enter-to":{transform:"translateY(0)"},leave:{transform:"translateY(0)"},"leave-to":{transform:"translateX(100%)"}},zoom:{enter:{transform:"scale(0.95)"},"enter-to":{transform:"scale(1)"},leave:{transform:"scale(1)"},"leave-to":{transform:"scale(0.95)"}},"fade-zoom":{enter:{opacity:0,transform:"scale(0.95)"},"enter-to":{opacity:1,transform:"scale(1)"},leave:{opacity:1,transform:"scale(1)"},"leave-to":{opacity:0,transform:"scale(0.95)"}}}},7328:function(t,e,r){"use strict";var n=r("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(r("127e")),a=n(r("ee10")),s=n(r("42eb")),o=r("0f81"),u={components:{vodItem:s.default},data:function(){return{id:0,data:{},comment:[],loading:!0}},onLoad:function(t){t.id&&(this.id=parseInt(t.id)),this.getData()},methods:{getData:function(){var t=this;return(0,a.default)(i.default.mark((function e(){return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.loading=!0,e.next=3,o.app.vodDetails(t.id).then((function(e){1==e.code?(t.data=e.data,o.comment.list(t.id,1,1).then((function(e){var r=e.data;r.list.length>0&&(t.comment=r.list,t.comment.shift())})).catch((function(t){}))):(uni.showToast({icon:"none",title:e.msg,duration:3e3}),setTimeout((function(){t.back()}),1500))})).catch((function(e){setTimeout((function(){t.back()}),1500)}));case 3:t.loading=!1;case 4:case"end":return e.stop()}}),e)})))()}}};e.default=u},"732d":function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={baseURL:"",header:{},method:"GET",dataType:"json",responseType:"text",custom:{},timeout:6e4,sslVerify:!0,firstIpv4:!1,validateStatus:function(t){return t>=200&&t<300}}},"732e":function(t,e,r){"use strict";(function(t){var n=r("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i,a=n(r("127e")),s=n(r("7ca3")),o=n(r("ee10"));function u(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function l(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?u(Object(r),!0).forEach((function(e){(0,s.default)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var c={data:function(){return{playing:!1,isScreen:!1,jsReady:!1,isiOS:!1,webviewStyles:{top:uni.getSystemInfoSync().statusBarHeight,width:uni.getSystemInfoSync().screenWidth,height:uni.getSystemInfoSync().screenWidth/16*9+50},prompt:!0}},mounted:function(){var t=this;setTimeout((function(){i=t.$parent.$scope.$getAppWebview().children()[0],i.setStyle(t.webviewStyles)}),100),this.isiOS="ios"==uni.getSystemInfoSync().platform},beforeDestroy:function(){plus.screen.lockOrientation("portrait-primary")},methods:{playerhide:function(){i.hide()},playershow:function(){i.show()},fullScreen:function(t){var e=this;if(this.isScreen=t,t){var r=this.$mp.page.$getAppWebview();r.setStyle({popGesture:"none"}),plus.screen.lockOrientation("landscape-primary"),setTimeout((function(){i.setStyle({top:0,width:"100%",height:"100%"}),e.sendMessageToWebView("callFullScreen",!0)}),this.isiOS?0:50),plus.navigator.setFullscreen(!0),this.isiOS||plus.navigator.hideSystemNavigation(),this.sendNoticeToNative({action:"HomeIndicatorAutoHidden",value:!0})}else{var n=this.$mp.page.$getAppWebview();n.setStyle({popGesture:"close"}),plus.screen.lockOrientation("portrait-primary"),setTimeout((function(){i.setStyle(e.webviewStyles),e.sendMessageToWebView("callFullScreen",!1)}),this.isiOS?0:50),this.isiOS||plus.navigator.showSystemNavigation(),plus.navigator.setFullscreen(!1),this.sendNoticeToNative({action:"HomeIndicatorAutoHidden",value:!1})}},sendNoticeToNative:function(t){if("ios"==uni.getSystemInfoSync().platform){var e=plus.ios.importClass("NSNotificationCenter");e.defaultCenter().postNotificationNameobject("uniCallBackMessage",t)}},sendMessageToWebView:function(e,r){i?i.evalJS("".concat(e,"(").concat(JSON.stringify(r),")")):t("log","js not ready"," at components/artplayer-app.vue:94")},handleWebViewMessage:function(e){var r=this;return(0,o.default)(a.default.mark((function n(){var i,s,o,u,l,c,A,d,f,h,p,g,v;return a.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(i=e.detail.data[0],s=i["action"],"bridgeReady"!=s){n.next=6;break}r.jsReady=!0,n.next=71;break;case 6:if("fullscreen"!=s){n.next=10;break}r.fullScreen(i["fullscreen"]),n.next=71;break;case 10:if("share"!=s){n.next=14;break}r.$emit("openShare"),n.next=71;break;case 14:if("back"!=s){n.next=18;break}r.$emit("toBack"),n.next=71;break;case 18:if("adsClick"!=s){n.next=22;break}r.$emit("openAD",i["url"]),n.next=71;break;case 22:if("airplay"!=s){n.next=26;break}"android"==uni.getSystemInfoSync().platform&&r.$emit("openairplay"),n.next=71;break;case 26:if("playpip"!=s){n.next=30;break}r.$emit("playpip",i["pipstate"]),n.next=71;break;case 30:if("switchPlayIndex"!=s){n.next=34;break}r.$emit("changePlay",i["index"]),n.next=71;break;case 34:if("updatePlaying"!=s){n.next=38;break}r.playing=i["playing"],n.next=71;break;case 38:if("videoNext"!=s){n.next=42;break}r.$emit("playNext"),n.next=71;break;case 42:if("console"!=s){n.next=46;break}t("log",i["log"]," at components/artplayer-app.vue:136"),n.next=71;break;case 46:if("currentTime"!=s){n.next=51;break}o=i["time"],r.$emit("update:currentTime",o),n.next=71;break;case 51:if("volumeChange"!=s){n.next=62;break}if(u=i["type"],l=i["rate"],"light"!=u){n.next=59;break}return n.next=57,r.setScreenBrightness(l);case 57:n.next=60;break;case 59:r.isiOS?plus.device.setVolume(l):(c=plus.android.runtimeMainActivity(),A=plus.android.importClass("android.content.Context"),plus.android.importClass("android.app.NotificationManager"),d=c.getSystemService(A.NOTIFICATION_SERVICE),f=plus.android.importClass("android.os.Build"),f.VERSION.SDK_INT>=f.VERSION_CODES.N&&!d.isNotificationPolicyAccessGranted()?r.sendMessageToWebView("showAlert",{type:"NOTIFICATION_SERVICE",title:"\u5f53\u524d\u8bbe\u5907\u5904\u4e8e\u514d\u6253\u6270\u72b6\u6001\uff0c\u9700\u8981\u5f00\u542f\u514d\u6253\u6270\u6743\u9650\uff0c\u662f\u5426\u5f00\u542f\uff1f",cancel:"\u53d6\u6d88",confirm:"\u53bb\u5f00\u542f"}):plus.device.setVolume(l));case 60:n.next=71;break;case 62:if("getVolumeInfo"!=s){n.next=70;break}return h=plus.device.getVolume(),n.next=66,r.getScreenBrightness();case 66:p=n.sent,r.sendMessageToWebView("updateVolumeInfo",{volume:h,light:p}),n.next=71;break;case 70:"alertClick"==s?(g=i["type"],"NOTIFICATION_SERVICE"==g&&(v=i["isCancel"],v?r.sendMessageToWebView("hideAlert"):(r.sendMessageToWebView("hideAlert"),r.fullScreen(!1),setTimeout((function(){var t=plus.android.runtimeMainActivity(),e=plus.android.importClass("android.content.Intent"),r=new e("android.settings.NOTIFICATION_POLICY_ACCESS_SETTINGS");t.startActivity(r)}),300)))):"addDanmu"==s?r.$emit("addDanmu",i["danmu"]):"err"==s&&r.prompt&&(r.prompt=!1,setTimeout((function(){uni.showToast({icon:"none",title:"\u5f53\u524d\u6e90\u64ad\u653e\u5931\u8d25\uff0c\u8bf7\u6362\u4e2a\u64ad\u653e\u6e90\u8bd5\u8bd5\u5427\uff5e",duration:3e3}),r.prompt=!0}),3e3));case 71:case"end":return n.stop()}}),n)})))()},loadData:function(t){var e=this;this.jsReady?(t=l(l({},t),{},{isScreen:this.isScreen}),this.sendMessageToWebView("loadData",t)):setTimeout((function(){e.loadData(t)}),100)},playStatus:function(){return this.playing},destroy:function(){this.sendMessageToWebView("destroy",{})},pause:function(){this.sendMessageToWebView("pause",{})},currentTime:function(){this.sendMessageToWebView("currentTime",{})},setScreenBrightness:function(t){return new Promise((function(e,r){uni.setScreenBrightness({value:t,success:function(){e(t)},fail:function(e){r(t)}})}))},getScreenBrightness:function(){return new Promise((function(t,e){uni.getScreenBrightness({success:function(e){t(e.value)},fail:function(t){e(.5)}})}))}}};e.default=c}).call(this,r("f3b9")["default"])},"736b":function(t,e,r){"use strict";var n=r("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(r("4231")),a={name:"Indexgame",props:{data:{type:Array}},components:{vodImage:i.default},data:function(){return{}}};e.default=a},"73fe":function(t,e,r){"use strict";r.r(e);var n=r("46de"),i=r.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return n[t]}))}(a);e["default"]=i.a},7556:function(t,e,r){"use strict";r.d(e,"b",(function(){return i})),r.d(e,"c",(function(){return a})),r.d(e,"a",(function(){return n}));var n={uLoadmore:r("bc5a").default},i=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("view",{staticClass:t._$s(0,"sc","page-container"),attrs:{_i:0}},[r("view",{staticClass:t._$s(1,"sc","record-container"),attrs:{_i:1}},[r("view",{staticClass:t._$s(2,"sc","card"),attrs:{_i:2}},[r("view",{staticClass:t._$s(3,"sc","card-title"),attrs:{_i:3}},[r("text",{staticClass:t._$s(4,"sc","count"),attrs:{_i:4}},[t._v(t._$s(4,"t0-0",t._s(t.count)))])]),r("view",{staticClass:t._$s(5,"sc","card-content"),attrs:{_i:5}},[r("view",{staticClass:t._$s(6,"sc","record-header flex-row"),attrs:{_i:6}},[r("text",{staticClass:t._$s(7,"sc","record-name"),attrs:{_i:7}}),r("text",{staticClass:t._$s(8,"sc","record-id"),attrs:{_i:8}}),r("text",{staticClass:t._$s(9,"sc","record-time"),attrs:{_i:9}})]),t._l(t._$s(10,"f",{forItems:t.list}),(function(e,n,i,a){return r("view",{key:t._$s(10,"f",{forIndex:i,key:n}),staticClass:t._$s("10-"+a,"sc","record-item flex-row"),attrs:{_i:"10-"+a}},[r("text",{staticClass:t._$s("11-"+a,"sc","record-name"),attrs:{_i:"11-"+a}},[t._v(t._$s("11-"+a,"t0-0",t._s(e.user_nick_name||e.user_name)))]),r("text",{staticClass:t._$s("12-"+a,"sc","record-id"),attrs:{_i:"12-"+a}},[t._v(t._$s("12-"+a,"t0-0",t._s(e.user_id)))]),r("text",{staticClass:t._$s("13-"+a,"sc","record-time"),attrs:{_i:"13-"+a}},[t._v(t._$s("13-"+a,"t0-0",t._s(t.formatTime(e.user_reg_time))))])])}))],2),r("view",{staticClass:t._$s(14,"sc","load-more"),attrs:{_i:14}},[r("u-loadmore",{attrs:{status:t.loadStatus,"loading-icon":"semicircle",_i:15}})],1)])])])},a=[]},"75cd":function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={props:{loadingText:{type:[String,Number],default:uni.$u.props.loadingPage.loadingText},image:{type:String,default:uni.$u.props.loadingPage.image},loadingMode:{type:String,default:uni.$u.props.loadingPage.loadingMode},loading:{type:Boolean,default:uni.$u.props.loadingPage.loading},bgColor:{type:String,default:uni.$u.props.loadingPage.bgColor},color:{type:String,default:uni.$u.props.loadingPage.color},fontSize:{type:[String,Number],default:uni.$u.props.loadingPage.fontSize},iconSize:{type:[String,Number],default:uni.$u.props.loadingPage.fontSize},loadingColor:{type:String,default:uni.$u.props.loadingPage.loadingColor}}};e.default=n},"75fb":function(t,e,r){"use strict";r.d(e,"b",(function(){return i})),r.d(e,"c",(function(){return a})),r.d(e,"a",(function(){return n}));var n={uniIcons:r("da03").default,uEmpty:r("9925").default,uLoadmore:r("bc5a").default},i=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("view",{staticClass:t._$s(0,"sc","video-comment"),attrs:{_i:0}},[r("view",{staticClass:t._$s(1,"sc","video-comment-scroll"),attrs:{_i:1}},[r("view",{staticClass:t._$s(2,"sc","comment-list"),attrs:{_i:2}},[t._l(t._$s(3,"f",{forItems:t.list}),(function(e,n,i,a){return r("view",{key:t._$s(3,"f",{forIndex:i,key:n})},[r("Comment-bubble",{attrs:{item:e,replyType:0,index:n,_i:"4-"+a},on:{digComment:t.digComment,reply:t.reply,more:t.more}}),r("view",{staticClass:t._$s("5-"+a,"sc","item-content"),attrs:{_i:"5-"+a}},[t._l(t._$s("6-"+a,"f",{forItems:e.ImaginaryArray}),(function(i,s,o,u){return t._$s("6-"+a+"-"+u,"i",e.ImaginaryArray)?r("view",{key:t._$s("6-"+a,"f",{forIndex:o,key:s})},[r("Comment-bubble",{attrs:{item:i,replyType:1,index:n,_i:"7-"+a+"-"+u},on:{digComment:t.digComment,reply:t.reply,more:t.more}})],1):t._e()})),t._l(t._$s("8-"+a,"f",{forItems:t.replyCommentList}),(function(i,s,o,u){return t._$s("8-"+a+"-"+u,"i","open"==e.expanded||"showMore"==e.expanded&&t.replyCommentList.length)?r("view",{key:t._$s("8-"+a,"f",{forIndex:o,key:s})},[r("Comment-bubble",{attrs:{item:i,replyType:1,index:n,_i:"9-"+a+"-"+u},on:{digComment:t.digComment,reply:t.reply,more:t.more}})],1):t._e()})),t._$s("10-"+a,"i",e.comment_reply)?r("view",[t._$s("11-"+a,"i","close"==e.expanded)?r("view",{staticClass:t._$s("11-"+a,"sc","item-expand"),attrs:{_i:"11-"+a},on:{click:function(r){return t.more(e,n)}}},[t._v(t._$s("11-"+a,"t0-0",t._s(e.comment_reply))),r("uni-icons",{attrs:{type:"bottom",color:"#ff5b5b",_i:"12-"+a}})],1):t._$s("13-"+a,"e","showMore"==e.expanded)?r("view",{staticClass:t._$s("13-"+a,"sc","item-expand"),attrs:{_i:"13-"+a},on:{click:function(r){return t.more(e,n)}}},[r("uni-icons",{attrs:{type:"bottom",color:"#ff5b5b",_i:"14-"+a}})],1):r("view",{staticClass:t._$s("15-"+a,"sc","item-expand"),attrs:{_i:"15-"+a},on:{click:function(r){return t.more(e,n)}}},[r("uni-icons",{attrs:{type:"top",color:"#ff5b5b",_i:"16-"+a}})],1)]):t._e()],2)],1)})),t._$s(17,"i","nomore"===t.loadStatus&&0===t.list.length)?r("u-empty",{attrs:{icon:"/static/images/empty.svg",width:"200",text:"\u6682\u65e0\u8bc4\u8bba,\u53d1\u9001\u8bc4\u8bba\u62a2\u9996\u8bc4\uff5e",textColor:"#746a74",_i:17}}):t._e(),r("view",{staticClass:t._$s(18,"sc","load-more"),attrs:{_i:18}},[r("u-loadmore",{attrs:{status:t.loadStatus,"loading-icon":"semicircle","margin-top":20,_i:19}})],1)],2)]),r("view"),r("view",{staticClass:t._$s(21,"sc","comment-input"),attrs:{_i:21}},[r("view",{staticClass:t._$s(22,"sc","comment-input-textarea"),attrs:{_i:22}},[r("textarea",{directives:[{name:"model",rawName:"v-model",value:t.comment,expression:"comment"}],ref:"input",attrs:{focus:t._$s(23,"a-focus",t.focus),placeholder:t._$s(23,"a-placeholder",t.inputPlaceholder),disabled:t._$s(23,"a-disabled",t.isLogin),_i:23},domProps:{value:t._$s(23,"v-model",t.comment)},on:{blur:function(e){t.focus=!1},input:function(e){e.target.composing||(t.comment=e.target.value)}}}),r("uni-icons",{staticClass:t._$s(24,"sc","comment-input-send"),attrs:{type:"paperplane-filled",color:t.isLogin?"#c8c9cc":"#DA2538",size:"24",_i:24},on:{click:t.postData}})],1)])])},a=[]},7647:function(t,e){function r(e,n){return t.exports=r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},t.exports.__esModule=!0,t.exports["default"]=t.exports,r(e,n)}t.exports=r,t.exports.__esModule=!0,t.exports["default"]=t.exports},7650:function(t,e,r){"use strict";r.r(e);var n=r("b6f4"),i=r.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return n[t]}))}(a);e["default"]=i.a},7707:function(t,e,r){"use strict";var n=r("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.deepMerge=function t(){var e={};function r(r,n){"object"===(0,i.default)(e[n])&&"object"===(0,i.default)(r)?e[n]=t(e[n],r):"object"===(0,i.default)(r)?e[n]=t({},r):e[n]=r}for(var n=0,a=arguments.length;n<a;n++)o(arguments[n],r);return e},e.forEach=o,e.isArray=s,e.isBoolean=function(t){return"boolean"===typeof t},e.isDate=function(t){return"[object Date]"===a.call(t)},e.isObject=function(t){return null!==t&&"object"===(0,i.default)(t)},e.isPlainObject=function(t){return"[object Object]"===Object.prototype.toString.call(t)},e.isURLSearchParams=function(t){return"undefined"!==typeof URLSearchParams&&t instanceof URLSearchParams},e.isUndefined=function(t){return"undefined"===typeof t};var i=n(r("3b2d")),a=Object.prototype.toString;function s(t){return"[object Array]"===a.call(t)}function o(t,e){if(null!==t&&"undefined"!==typeof t)if("object"!==(0,i.default)(t)&&(t=[t]),s(t))for(var r=0,n=t.length;r<n;r++)e.call(null,t[r],r,t);else for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&e.call(null,t[a],a,t)}},7736:function(t,e,r){"use strict";r.d(e,"b",(function(){return i})),r.d(e,"c",(function(){return a})),r.d(e,"a",(function(){return n}));var n={uniIcons:r("da03").default,uEmpty:r("9925").default,uLoadmore:r("bc5a").default,uButton:r("9a24").default},i=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("view",{staticClass:t._$s(0,"sc","page-container"),attrs:{_i:0}},[r("view",{staticClass:t._$s(1,"sc","status-bar"),attrs:{_i:1}}),r("view",{staticClass:t._$s(2,"sc","page-head"),attrs:{_i:2}},[r("view",{staticClass:t._$s(3,"sc","page-head-btn"),attrs:{_i:3},on:{click:t.back}},[r("uni-icons",{attrs:{type:"back",size:"26",_i:4}})],1),r("view",{staticClass:t._$s(5,"sc","page-head-title"),attrs:{_i:5}}),r("view",{staticClass:t._$s(6,"sc","page-head-btn"),attrs:{_i:6},on:{click:t.edit}},[r("view",{staticClass:t._$s(7,"sc","text-btn"),attrs:{_i:7}},[t._v(t._$s(7,"t0-0",t._s(t.isEdit?"\u53d6\u6d88":"\u7ba1\u7406")))])])]),r("view",{staticClass:t._$s(8,"sc","history-container"),attrs:{_i:8}},[r("scroll-view",{attrs:{"refresher-triggered":t._$s(9,"a-refresher-triggered",t.refreshTriggered),_i:9},on:{refresherrefresh:t.refresh,scrolltolower:t.getData}},[r("view",{staticClass:t._$s(10,"sc","history-list"),attrs:{_i:10}},[r("checkbox-group",{attrs:{_i:11},on:{change:t.changeCheck}},t._l(t._$s(12,"f",{forItems:t.list}),(function(e,n,i,a){return r("label",{key:t._$s(12,"f",{forIndex:i,key:n}),staticClass:t._$s("12-"+a,"sc","history-item align-center"),attrs:{_i:"12-"+a},on:{click:function(r){return t.click(e)}}},[t._$s("13-"+a,"i",t.isEdit)?r("checkbox",{attrs:{value:t._$s("13-"+a,"a-value",e.id+""),checked:t._$s("13-"+a,"a-checked",e.is_checked),_i:"13-"+a}}):t._e(),r("view",{staticClass:t._$s("14-"+a,"sc","vod-image"),attrs:{_i:"14-"+a}},[r("vodImage",{attrs:{src:e.data&&e.data.vod_pic,_i:"15-"+a}})],1),r("view",{staticClass:t._$s("16-"+a,"sc","vod-info"),attrs:{_i:"16-"+a}},[t._$s("17-"+a,"i",e.data)?r("view",{staticClass:t._$s("17-"+a,"sc","vod-name"),attrs:{_i:"17-"+a}},[t._v(t._$s("17-"+a,"t0-0",t._s(e.data.vod_name)))]):r("view",{staticClass:t._$s("18-"+a,"sc","vod-name vod-name-gray"),attrs:{_i:"18-"+a}}),t._$s("19-"+a,"i",e.episodes)?r("view",{staticClass:t._$s("19-"+a,"sc","vod-progress"),attrs:{_i:"19-"+a}},[t._v(t._$s("19-"+a,"t0-0",t._s(e.episodes)))]):t._e(),r("view",{staticClass:t._$s("20-"+a,"sc","vod-time"),attrs:{_i:"20-"+a}},[t._v(t._$s("20-"+a,"t0-0",t._s(t.formatTime(e.time))))])])])})),0)]),t._$s(21,"i",0===t.pageTotal)?r("u-empty",{attrs:{icon:"/static/images/empty.svg",width:"240",_i:21}}):r("view",{staticClass:t._$s(22,"sc","load-more"),attrs:{_i:22}},[r("u-loadmore",{attrs:{status:t.loadStatus,"loading-icon":"semicircle",line:!0,_i:23}})],1)],1),t._$s(24,"i",t.isEdit)?r("view",{staticClass:t._$s(24,"sc","history-bottom align-center"),attrs:{_i:24}},[r("u-button",{attrs:{plain:!0,shape:"circle",text:"\u5168\u9009",_i:25},on:{click:t.selectAll}}),r("u-button",{attrs:{type:"error",plain:!0,shape:"circle",text:"\u5220\u9664",_i:26},on:{click:t.delHistory}})],1):t._e()])])},a=[]},"774d":function(t,e,r){"use strict";var n=r("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(r("51f6")),a={name:"u-checkbox",mixins:[uni.$u.mpMixin,uni.$u.mixin,i.default],data:function(){return{isChecked:!1,parentData:{iconSize:12,labelDisabled:null,disabled:null,shape:"square",activeColor:null,inactiveColor:null,size:18,value:null,iconColor:null,placement:"row",borderBottom:!1,iconPlacement:"left"}}},computed:{elDisabled:function(){return""!==this.disabled?this.disabled:null!==this.parentData.disabled&&this.parentData.disabled},elLabelDisabled:function(){return""!==this.labelDisabled?this.labelDisabled:null!==this.parentData.labelDisabled&&this.parentData.labelDisabled},elSize:function(){return this.size?this.size:this.parentData.size?this.parentData.size:21},elIconSize:function(){return this.iconSize?this.iconSize:this.parentData.iconSize?this.parentData.iconSize:12},elActiveColor:function(){return this.activeColor?this.activeColor:this.parentData.activeColor?this.parentData.activeColor:"#2979ff"},elInactiveColor:function(){return this.inactiveColor?this.inactiveColor:this.parentData.inactiveColor?this.parentData.inactiveColor:"#c8c9cc"},elLabelColor:function(){return this.labelColor?this.labelColor:this.parentData.labelColor?this.parentData.labelColor:"#606266"},elShape:function(){return this.shape?this.shape:this.parentData.shape?this.parentData.shape:"circle"},elLabelSize:function(){return uni.$u.addUnit(this.labelSize?this.labelSize:this.parentData.labelSize?this.parentData.labelSize:"15")},elIconColor:function(){var t=this.iconColor?this.iconColor:this.parentData.iconColor?this.parentData.iconColor:"#ffffff";return this.elDisabled?this.isChecked?this.elInactiveColor:"transparent":this.isChecked?t:"transparent"},iconClasses:function(){var t=[];return t.push("u-checkbox__icon-wrap--"+this.elShape),this.elDisabled&&t.push("u-checkbox__icon-wrap--disabled"),this.isChecked&&this.elDisabled&&t.push("u-checkbox__icon-wrap--disabled--checked"),t},iconWrapStyle:function(){var t={};return t.backgroundColor=this.isChecked&&!this.elDisabled?this.elActiveColor:"#ffffff",t.borderColor=this.isChecked&&!this.elDisabled?this.elActiveColor:this.elInactiveColor,t.width=uni.$u.addUnit(this.elSize),t.height=uni.$u.addUnit(this.elSize),"right"===this.parentData.iconPlacement&&(t.marginRight=0),t},checkboxStyle:function(){var t={};return this.parentData.borderBottom&&"row"===this.parentData.placement&&uni.$u.error("\u68c0\u6d4b\u5230\u60a8\u5c06borderBottom\u8bbe\u7f6e\u4e3atrue\uff0c\u9700\u8981\u540c\u65f6\u5c06u-checkbox-group\u7684placement\u8bbe\u7f6e\u4e3acolumn\u624d\u6709\u6548"),this.parentData.borderBottom&&"column"===this.parentData.placement&&(t.paddingBottom="8px"),uni.$u.deepMerge(t,uni.$u.addStyle(this.customStyle))}},mounted:function(){this.init()},methods:{init:function(){var t=this;this.updateParentData(),this.parent||uni.$u.error("u-checkbox\u5fc5\u987b\u642d\u914du-checkbox-group\u7ec4\u4ef6\u4f7f\u7528"),this.checked?this.isChecked=!0:uni.$u.test.array(this.parentData.value)&&(this.isChecked=this.parentData.value.some((function(e){return e===t.name})))},updateParentData:function(){this.getParentData("u-checkbox-group")},wrapperClickHandler:function(t){"right"===this.parentData.iconPlacement&&this.iconClickHandler(t)},iconClickHandler:function(t){this.preventEvent(t),this.elDisabled||this.setRadioCheckedStatus()},labelClickHandler:function(t){this.preventEvent(t),this.elLabelDisabled||this.elDisabled||this.setRadioCheckedStatus()},emitEvent:function(){var t=this;this.$emit("change",this.isChecked),this.$nextTick((function(){uni.$u.formValidate(t,"change")}))},setRadioCheckedStatus:function(){this.isChecked=!this.isChecked,this.emitEvent(),"function"===typeof this.parent.unCheckedOther&&this.parent.unCheckedOther(this)}},watch:{checked:function(){this.isChecked=this.checked}}};e.default=a},"77d0":function(t,e,r){"use strict";r.r(e);var n=r("1e9f"),i=r("93d3");for(var a in i)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return i[t]}))}(a);var s=r("828b"),o=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);e["default"]=o.exports},"77de":function(t,e,r){"use strict";r.r(e);var n=r("14c7"),i=r.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return n[t]}))}(a);e["default"]=i.a},7869:function(t,e,r){"use strict";r.r(e);var n=r("0874"),i=r.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return n[t]}))}(a);e["default"]=i.a},"78ae":function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={checkboxGroup:{name:"",value:function(){return[]},shape:"square",disabled:!1,activeColor:"#2979ff",inactiveColor:"#c8c9cc",size:18,placement:"row",labelSize:14,labelColor:"#303133",labelDisabled:!1,iconColor:"#ffffff",iconSize:12,iconPlacement:"left",borderBottom:!1}}},"78b0":function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={swiperIndicator:{length:0,current:0,indicatorActiveColor:"",indicatorInactiveColor:"",indicatorMode:"line"}}},"78c9":function(t,e,r){"use strict";r.r(e);var n=r("1e56"),i=r.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return n[t]}))}(a);e["default"]=i.a},"78ee":function(t,e,r){"use strict";r.r(e);var n=r("8a25"),i=r.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return n[t]}))}(a);e["default"]=i.a},"796c":function(t,e,r){"use strict";r.r(e);var n=r("ad30"),i=r("319d");for(var a in i)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return i[t]}))}(a);var s=r("828b"),o=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);e["default"]=o.exports},"79ee":function(t,e,r){var n,i,a,s=r("3b2d");(function(o,u,l){"object"===s(e)?t.exports=e=u(r("707d"),r("e538"),r("91de"),r("05f0"),r("bbe5")):(i=[r("707d"),r("e538"),r("91de"),r("05f0"),r("bbe5")],n=u,a="function"===typeof n?n.apply(e,i):n,void 0===a||(t.exports=a))})(0,(function(t){return function(){var e=t,r=e.lib,n=r.WordArray,i=r.BlockCipher,a=e.algo,s=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],o=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],u=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],l=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],c=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],A=a.DES=i.extend({_doReset:function(){for(var t=this._key,e=t.words,r=[],n=0;n<56;n++){var i=s[n]-1;r[n]=e[i>>>5]>>>31-i%32&1}for(var a=this._subKeys=[],l=0;l<16;l++){var c=a[l]=[],A=u[l];for(n=0;n<24;n++)c[n/6|0]|=r[(o[n]-1+A)%28]<<31-n%6,c[4+(n/6|0)]|=r[28+(o[n+24]-1+A)%28]<<31-n%6;c[0]=c[0]<<1|c[0]>>>31;for(n=1;n<7;n++)c[n]=c[n]>>>4*(n-1)+3;c[7]=c[7]<<5|c[7]>>>27}var d=this._invSubKeys=[];for(n=0;n<16;n++)d[n]=a[15-n]},encryptBlock:function(t,e){this._doCryptBlock(t,e,this._subKeys)},decryptBlock:function(t,e){this._doCryptBlock(t,e,this._invSubKeys)},_doCryptBlock:function(t,e,r){this._lBlock=t[e],this._rBlock=t[e+1],d.call(this,4,252645135),d.call(this,16,65535),f.call(this,2,858993459),f.call(this,8,16711935),d.call(this,1,1431655765);for(var n=0;n<16;n++){for(var i=r[n],a=this._lBlock,s=this._rBlock,o=0,u=0;u<8;u++)o|=l[u][((s^i[u])&c[u])>>>0];this._lBlock=s,this._rBlock=a^o}var A=this._lBlock;this._lBlock=this._rBlock,this._rBlock=A,d.call(this,1,1431655765),f.call(this,8,16711935),f.call(this,2,858993459),d.call(this,16,65535),d.call(this,4,252645135),t[e]=this._lBlock,t[e+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function d(t,e){var r=(this._lBlock>>>t^this._rBlock)&e;this._rBlock^=r,this._lBlock^=r<<t}function f(t,e){var r=(this._rBlock>>>t^this._lBlock)&e;this._lBlock^=r,this._rBlock^=r<<t}e.DES=i._createHelper(A);var h=a.TripleDES=i.extend({_doReset:function(){var t=this._key,e=t.words;if(2!==e.length&&4!==e.length&&e.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var r=e.slice(0,2),i=e.length<4?e.slice(0,2):e.slice(2,4),a=e.length<6?e.slice(0,2):e.slice(4,6);this._des1=A.createEncryptor(n.create(r)),this._des2=A.createEncryptor(n.create(i)),this._des3=A.createEncryptor(n.create(a))},encryptBlock:function(t,e){this._des1.encryptBlock(t,e),this._des2.decryptBlock(t,e),this._des3.encryptBlock(t,e)},decryptBlock:function(t,e){this._des3.decryptBlock(t,e),this._des2.encryptBlock(t,e),this._des1.decryptBlock(t,e)},keySize:6,ivSize:2,blockSize:2});e.TripleDES=i._createHelper(h)}(),t.TripleDES}))},"7a1a":function(t,e,r){"use strict";r.r(e);var n=r("64d2"),i=r("dd86");for(var a in i)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return i[t]}))}(a);var s=r("828b"),o=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,"621a9ccf",null,!1,n["a"],void 0);e["default"]=o.exports},"7a77":function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={props:{time:{type:[String,Number],default:uni.$u.props.countDown.time},format:{type:String,default:uni.$u.props.countDown.format},autoStart:{type:Boolean,default:uni.$u.props.countDown.autoStart},millisecond:{type:Boolean,default:uni.$u.props.countDown.millisecond}}};e.default=n},"7b2b":function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={data:function(){return{num:0,show:!1}},methods:{onshow:function(t){this.num=t,this.show=!0},onclose:function(){this.show=!1,this.$emit("close")}}}},"7b72":function(t,e,r){"use strict";r.r(e);var n=r("736b"),i=r.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return n[t]}))}(a);e["default"]=i.a},"7b89":function(t,e,r){var n,i,a,s=r("3b2d");(function(o,u,l){"object"===s(e)?t.exports=e=u(r("707d"),r("e538"),r("91de"),r("05f0"),r("bbe5")):(i=[r("707d"),r("e538"),r("91de"),r("05f0"),r("bbe5")],n=u,a="function"===typeof n?n.apply(e,i):n,void 0===a||(t.exports=a))})(0,(function(t){return function(){var e=t,r=e.lib,n=r.BlockCipher,i=e.algo,a=[],s=[],o=[],u=[],l=[],c=[],A=[],d=[],f=[],h=[];(function(){for(var t=[],e=0;e<256;e++)t[e]=e<128?e<<1:e<<1^283;var r=0,n=0;for(e=0;e<256;e++){var i=n^n<<1^n<<2^n<<3^n<<4;i=i>>>8^255&i^99,a[r]=i,s[i]=r;var p=t[r],g=t[p],v=t[g],m=257*t[i]^16843008*i;o[r]=m<<24|m>>>8,u[r]=m<<16|m>>>16,l[r]=m<<8|m>>>24,c[r]=m;m=16843009*v^65537*g^257*p^16843008*r;A[i]=m<<24|m>>>8,d[i]=m<<16|m>>>16,f[i]=m<<8|m>>>24,h[i]=m,r?(r=p^t[t[t[v^p]]],n^=t[t[n]]):r=n=1}})();var p=[0,1,2,4,8,16,32,64,128,27,54],g=i.AES=n.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var t=this._keyPriorReset=this._key,e=t.words,r=t.sigBytes/4,n=this._nRounds=r+6,i=4*(n+1),s=this._keySchedule=[],o=0;o<i;o++)o<r?s[o]=e[o]:(c=s[o-1],o%r?r>6&&o%r==4&&(c=a[c>>>24]<<24|a[c>>>16&255]<<16|a[c>>>8&255]<<8|a[255&c]):(c=c<<8|c>>>24,c=a[c>>>24]<<24|a[c>>>16&255]<<16|a[c>>>8&255]<<8|a[255&c],c^=p[o/r|0]<<24),s[o]=s[o-r]^c);for(var u=this._invKeySchedule=[],l=0;l<i;l++){o=i-l;if(l%4)var c=s[o];else c=s[o-4];u[l]=l<4||o<=4?c:A[a[c>>>24]]^d[a[c>>>16&255]]^f[a[c>>>8&255]]^h[a[255&c]]}}},encryptBlock:function(t,e){this._doCryptBlock(t,e,this._keySchedule,o,u,l,c,a)},decryptBlock:function(t,e){var r=t[e+1];t[e+1]=t[e+3],t[e+3]=r,this._doCryptBlock(t,e,this._invKeySchedule,A,d,f,h,s);r=t[e+1];t[e+1]=t[e+3],t[e+3]=r},_doCryptBlock:function(t,e,r,n,i,a,s,o){for(var u=this._nRounds,l=t[e]^r[0],c=t[e+1]^r[1],A=t[e+2]^r[2],d=t[e+3]^r[3],f=4,h=1;h<u;h++){var p=n[l>>>24]^i[c>>>16&255]^a[A>>>8&255]^s[255&d]^r[f++],g=n[c>>>24]^i[A>>>16&255]^a[d>>>8&255]^s[255&l]^r[f++],v=n[A>>>24]^i[d>>>16&255]^a[l>>>8&255]^s[255&c]^r[f++],m=n[d>>>24]^i[l>>>16&255]^a[c>>>8&255]^s[255&A]^r[f++];l=p,c=g,A=v,d=m}p=(o[l>>>24]<<24|o[c>>>16&255]<<16|o[A>>>8&255]<<8|o[255&d])^r[f++],g=(o[c>>>24]<<24|o[A>>>16&255]<<16|o[d>>>8&255]<<8|o[255&l])^r[f++],v=(o[A>>>24]<<24|o[d>>>16&255]<<16|o[l>>>8&255]<<8|o[255&c])^r[f++],m=(o[d>>>24]<<24|o[l>>>16&255]<<16|o[c>>>8&255]<<8|o[255&A])^r[f++];t[e]=p,t[e+1]=g,t[e+2]=v,t[e+3]=m},keySize:8});e.AES=n._createHelper(g)}(),t.AES}))},"7be1":function(t,e,r){"use strict";var n=r("3b2d");Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){if(!e)return t;var r;if(i.isURLSearchParams(e))r=e.toString();else{var n=[];i.forEach(e,(function(t,e){null!==t&&"undefined"!==typeof t&&(i.isArray(t)?e="".concat(e,"[]"):t=[t],i.forEach(t,(function(t){i.isDate(t)?t=t.toISOString():i.isObject(t)&&(t=JSON.stringify(t)),n.push("".concat(s(e),"=").concat(s(t)))})))})),r=n.join("&")}if(r){var a=t.indexOf("#");-1!==a&&(t=t.slice(0,a)),t+=(-1===t.indexOf("?")?"?":"&")+r}return t};var i=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==n(t)&&"function"!==typeof t)return{default:t};var r=a(e);if(r&&r.has(t))return r.get(t);var i={},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if("default"!==o&&Object.prototype.hasOwnProperty.call(t,o)){var u=s?Object.getOwnPropertyDescriptor(t,o):null;u&&(u.get||u.set)?Object.defineProperty(i,o,u):i[o]=t[o]}i.default=t,r&&r.set(t,i);return i}(r("7707"));function a(t){if("function"!==typeof WeakMap)return null;var e=new WeakMap,r=new WeakMap;return(a=function(t){return t?r:e})(t)}function s(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}},"7c41":function(t,e,r){"use strict";(function(t){var n=r("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.encrypt=e.decrypt=void 0;var i=n(r("c8bb")),a="WB0nMZHXlxNndORe",s=i.default.enc.Utf8.parse(a);e.encrypt=function(t){var e=i.default.lib.WordArray.random(16),r=i.default.enc.Utf8.parse("string"===typeof t?t:JSON.stringify(t)),n=i.default.AES.encrypt(r,s,{iv:e,mode:i.default.mode.CFB,padding:i.default.pad.NoPadding}).ciphertext.toString(i.default.enc.Hex);return n.substring(0,16)+i.default.enc.Hex.stringify(e)+n.substring(16)};e.decrypt=function(t){var e=t.length,r="",n="",s="";e<48?(r=t.substring(0,e-32),s=t.substring(e-32)):(r=t.substring(0,16),n=t.substring(48),s=t.substring(16,48));var o=i.default.enc.Hex.parse(r+n),u=i.default.enc.Base64.stringify(o),l=i.default.enc.Utf8.parse(a),c=i.default.enc.Hex.parse(s),A=i.default.AES.decrypt(u,l,{iv:c,mode:i.default.mode.CFB,padding:i.default.pad.NoPadding});return JSON.parse(A.toString(i.default.enc.Utf8))}}).call(this,r("0b64")["default"])},"7ca3":function(t,e,r){var n=r("d551");t.exports=function(t,e,r){return e=n(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t},t.exports.__esModule=!0,t.exports["default"]=t.exports},"7ce1":function(t,e,r){var n=r("b4d2"),i=r("7647"),a=r("4965"),s=r("931d");function o(e){var r="function"===typeof Map?new Map:void 0;return t.exports=o=function(t){if(null===t||!a(t))return t;if("function"!==typeof t)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof r){if(r.has(t))return r.get(t);r.set(t,e)}function e(){return s(t,arguments,n(this).constructor)}return e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),i(e,t)},t.exports.__esModule=!0,t.exports["default"]=t.exports,o(e)}t.exports=o,t.exports.__esModule=!0,t.exports["default"]=t.exports},"7ce5":function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={keyboard:{mode:"number",dotDisabled:!1,tooltip:!0,showTips:!0,tips:"",showCancel:!0,showConfirm:!0,random:!1,safeAreaInsetBottom:!0,closeOnClickOverlay:!0,show:!1,overlay:!0,zIndex:10075,cancelText:"\u53d6\u6d88",confirmText:"\u786e\u5b9a",autoChange:!1}}},"7d40":function(t,e,r){"use strict";r.r(e);var n=r("306c"),i=r("6cc4");for(var a in i)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return i[t]}))}(a);var s=r("828b"),o=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);e["default"]=o.exports},"7d43":function(t,e,r){"use strict";r.d(e,"b",(function(){return n})),r.d(e,"c",(function(){return i})),r.d(e,"a",(function(){}));var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("view",{staticClass:t._$s(0,"sc","page-container"),attrs:{_i:0}},[r("scroll-view",{},[r("view",{staticClass:t._$s(2,"sc","scroll-container"),attrs:{_i:2}},[r("canvas",{style:t._$s(3,"s",{width:t.canvasWidth+"px",height:t.canvasHeight+"px"}),attrs:{id:"canvas",_i:3},on:{click:t.toLogin,longpress:t.saveImage}}),t._$s(4,"i",t.isLogin)?r("view",{staticClass:t._$s(4,"sc","share-bottom"),attrs:{_i:4}},[r("view",{staticClass:t._$s(5,"sc","flex-row"),attrs:{_i:5}},[r("view",{staticClass:t._$s(6,"sc","share-bottom-button"),attrs:{_i:6},on:{click:t.saveImage}}),r("view",{staticClass:t._$s(7,"sc","share-bottom-button2"),attrs:{_i:7},on:{click:t.openShare}})]),r("view",{staticClass:t._$s(8,"sc","share-way flex-row"),attrs:{_i:8}},[r("navigator",{},[r("image",{attrs:{_i:10}}),r("text")])])]):t._e()])]),r("share",{ref:"share",attrs:{url:t.shareUrl,_i:12}})],1)},i=[]},"7d69":function(t,e,r){"use strict";r.r(e);var n=r("001f");for(var i in n)["default"].indexOf(i)<0&&function(t){r.d(e,t,(function(){return n[t]}))}(i);var a=r("828b"),s=Object(a["a"])(n["default"],void 0,void 0,!1,null,null,null,!1,void 0,void 0);e["default"]=s.exports},"7e66":function(t,e,r){"use strict";r.r(e);var n=r("24f5"),i=r("cbe7");for(var a in i)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return i[t]}))}(a);var s=r("828b"),o=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);e["default"]=o.exports},"7ea6":function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={col:{span:12,offset:0,justify:"start",align:"stretch",textAlign:"left"}}},"7ecd":function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={props:{bgColor:{type:String,default:uni.$u.props.gap.bgColor},height:{type:[String,Number],default:uni.$u.props.gap.height},marginTop:{type:[String,Number],default:uni.$u.props.gap.marginTop},marginBottom:{type:[String,Number],default:uni.$u.props.gap.marginBottom}}};e.default=n},"7f19":function(t,e,r){"use strict";r.d(e,"b",(function(){return i})),r.d(e,"c",(function(){return a})),r.d(e,"a",(function(){return n}));var n={uButton:r("9a24").default},i=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("view",{staticClass:t._$s(0,"sc","page-container"),attrs:{_i:0}},[r("view",{staticClass:t._$s(1,"sc","password-container"),attrs:{_i:1}},[r("view",{staticClass:t._$s(2,"sc","card"),attrs:{_i:2}},[r("view",{staticClass:t._$s(3,"sc","card-content"),attrs:{_i:3}},[t._$s(4,"i",!t.resetToken)?r("view",{staticClass:t._$s(4,"sc","input-item"),attrs:{_i:4}},[r("text",{staticClass:t._$s(5,"sc","title"),attrs:{_i:5}}),r("input",{directives:[{name:"model",rawName:"v-model",value:t.oldPassword,expression:"oldPassword"}],attrs:{_i:6},domProps:{value:t._$s(6,"v-model",t.oldPassword)},on:{input:function(e){e.target.composing||(t.oldPassword=e.target.value)}}})]):t._e(),r("view",{staticClass:t._$s(7,"sc","input-item"),attrs:{_i:7}},[r("text",{staticClass:t._$s(8,"sc","title"),attrs:{_i:8}}),r("input",{directives:[{name:"model",rawName:"v-model",value:t.newPassword,expression:"newPassword"}],attrs:{_i:9},domProps:{value:t._$s(9,"v-model",t.newPassword)},on:{input:function(e){e.target.composing||(t.newPassword=e.target.value)}}})]),r("view",{staticClass:t._$s(10,"sc","input-item"),attrs:{_i:10}},[r("text",{staticClass:t._$s(11,"sc","title"),attrs:{_i:11}}),r("input",{directives:[{name:"model",rawName:"v-model",value:t.confirmPassword,expression:"confirmPassword"}],attrs:{_i:12},domProps:{value:t._$s(12,"v-model",t.confirmPassword)},on:{input:function(e){e.target.composing||(t.confirmPassword=e.target.value)}}})]),r("view",{staticClass:t._$s(13,"sc","input-msg"),attrs:{_i:13}}),r("view",{staticClass:t._$s(14,"sc","input-goto"),attrs:{_i:14}},[r("navigator",{})])])])]),r("u-button",{staticClass:t._$s(16,"sc","password-submit-button"),attrs:{shape:"circle",disabled:t.loading,loading:t.loading,text:"\u7acb\u5373\u63d0\u4ea4",color:"linear-gradient(90deg, #DA2538 0%, #F75F68 100%)",_i:16},on:{click:t.submit}})],1)},a=[]},"7f5d":function(t,e,r){"use strict";r.r(e);var n=r("d0d8"),i=r.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return n[t]}))}(a);e["default"]=i.a},"7f9b":function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={code:{seconds:60,startText:"\u83b7\u53d6\u9a8c\u8bc1\u7801",changeText:"X\u79d2\u91cd\u65b0\u83b7\u53d6",endText:"\u91cd\u65b0\u83b7\u53d6",keepRunning:!1,uniqueKey:""}}},"7fe9":function(t,e,r){"use strict";r.r(e);var n=r("c776"),i=r.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return n[t]}))}(a);e["default"]=i.a},"7ffc":function(t,e,r){"use strict";r.d(e,"b",(function(){return i})),r.d(e,"c",(function(){return a})),r.d(e,"a",(function(){return n}));var n={uIcon:r("712b").default},i=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("view",{staticClass:t._$s(0,"sc","u-search"),style:t._$s(0,"s",[{margin:t.margin},t.$u.addStyle(t.customStyle)]),attrs:{_i:0},on:{click:t.clickHandler}},[r("view",{staticClass:t._$s(1,"sc","u-search__content"),style:t._$s(1,"s",{backgroundColor:t.bgColor,borderRadius:"round"==t.shape?"100px":"4px",borderColor:t.borderColor}),attrs:{_i:1}},[t._$s(2,"i",t.$slots.label||null!==t.label)?[t._t("label",[r("text",{staticClass:t._$s(4,"sc","u-search__content__label"),attrs:{_i:4}},[t._v(t._$s(4,"t0-0",t._s(t.label)))])],{_i:3})]:t._e(),r("view",{staticClass:t._$s(5,"sc","u-search__content__icon"),attrs:{_i:5}},[r("u-icon",{attrs:{size:t.searchIconSize,name:t.searchIcon,color:t.searchIconColor?t.searchIconColor:t.color,_i:6},on:{click:t.clickIcon}})],1),r("input",{staticClass:t._$s(7,"sc","u-search__content__input"),style:t._$s(7,"s",[{textAlign:t.inputAlign,color:t.color,backgroundColor:t.bgColor,height:t.$u.addUnit(t.height)},t.inputStyle]),attrs:{value:t._$s(7,"a-value",t.value),disabled:t._$s(7,"a-disabled",t.disabled),focus:t._$s(7,"a-focus",t.focus),maxlength:t._$s(7,"a-maxlength",t.maxlength),placeholder:t._$s(7,"a-placeholder",t.placeholder),"placeholder-style":t._$s(7,"a-placeholder-style","color: "+t.placeholderColor),_i:7},on:{blur:t.blur,confirm:t.search,input:t.inputChange,focus:t.getFocus}}),t._$s(8,"i",t.keyword&&t.clearabled&&t.focused)?r("view",{staticClass:t._$s(8,"sc","u-search__content__icon u-search__content__close"),attrs:{_i:8},on:{click:t.clear}},[r("u-icon",{attrs:{name:"close",size:"11",color:"#ffffff",customStyle:"line-height: 12px",_i:9}})],1):t._e()],2),r("text",{staticClass:t._$s(10,"sc","u-search__action"),class:t._$s(10,"c",[(t.showActionBtn||t.show)&&"u-search__action--active"]),style:t._$s(10,"s",[t.actionStyle]),attrs:{_i:10},on:{click:function(e){return e.stopPropagation(),e.preventDefault(),t.custom(e)}}},[t._v(t._$s(10,"t0-0",t._s(t.actionText)))])])},a=[]},"806c":function(t,e,r){"use strict";r.r(e);var n=r("e531"),i=r.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return n[t]}))}(a);e["default"]=i.a},8075:function(t,e,r){"use strict";r.r(e);var n=r("efd4"),i=r("1297");for(var a in i)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return i[t]}))}(a);var s=r("828b"),o=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);e["default"]=o.exports},8121:function(t,e,r){"use strict";r.d(e,"b",(function(){return n})),r.d(e,"c",(function(){return i})),r.d(e,"a",(function(){}));var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("view",{staticClass:t._$s(0,"sc","adv-item"),attrs:{_i:0},on:{click:function(e){return e.stopPropagation(),t.openVideo(t.item.vod_id)}}},[r("view",{staticClass:t._$s(1,"sc","adv-image"),attrs:{_i:1},on:{click:function(e){return t.openApp(t.adv.adv_link)}}},[r("image",{attrs:{src:t._$s(2,"a-src",t.adv.adv_image),_i:2},on:{load:t.handleImageLoad}})]),r("view",{style:t._$s(3,"s",{height:t.newHeight+"rpx"}),attrs:{_i:3}})])},i=[]},"816f":function(t,e,r){"use strict";r.d(e,"b",(function(){return n})),r.d(e,"c",(function(){return i})),r.d(e,"a",(function(){}));var n=function(){var t=this.$createElement,e=this._self._c||t;return e("view",{staticClass:this._$s(0,"sc","u-line"),style:this._$s(0,"s",[this.lineStyle]),attrs:{_i:0}})},i=[]},"818e":function(t,e,r){var n,i,a,s=r("3b2d");(function(o,u,l){"object"===s(e)?t.exports=e=u(r("707d"),r("52d5")):(i=[r("707d"),r("52d5")],n=u,a="function"===typeof n?n.apply(e,i):n,void 0===a||(t.exports=a))})(0,(function(t){return function(){var e=t,r=e.lib,n=r.Hasher,i=e.x64,a=i.Word,s=i.WordArray,o=e.algo;function u(){return a.create.apply(a,arguments)}var l=[u(1116352408,3609767458),u(1899447441,602891725),u(3049323471,3964484399),u(3921009573,2173295548),u(961987163,4081628472),u(1508970993,3053834265),u(2453635748,2937671579),u(2870763221,3664609560),u(3624381080,2734883394),u(310598401,1164996542),u(607225278,1323610764),u(1426881987,3590304994),u(1925078388,4068182383),u(2162078206,991336113),u(2614888103,633803317),u(3248222580,3479774868),u(3835390401,2666613458),u(4022224774,944711139),u(264347078,2341262773),u(604807628,2007800933),u(770255983,1495990901),u(1249150122,1856431235),u(1555081692,3175218132),u(1996064986,2198950837),u(2554220882,3999719339),u(2821834349,766784016),u(2952996808,2566594879),u(3210313671,3203337956),u(3336571891,1034457026),u(3584528711,2466948901),u(113926993,3758326383),u(338241895,168717936),u(666307205,1188179964),u(773529912,1546045734),u(1294757372,1522805485),u(1396182291,2643833823),u(1695183700,2343527390),u(1986661051,1014477480),u(2177026350,1206759142),u(2456956037,344077627),u(2730485921,1290863460),u(2820302411,3158454273),u(3259730800,3505952657),u(3345764771,106217008),u(3516065817,3606008344),u(3600352804,1432725776),u(4094571909,1467031594),u(275423344,851169720),u(430227734,3100823752),u(506948616,1363258195),u(659060556,3750685593),u(883997877,3785050280),u(958139571,3318307427),u(1322822218,3812723403),u(1537002063,2003034995),u(1747873779,3602036899),u(1955562222,1575990012),u(2024104815,1125592928),u(2227730452,2716904306),u(2361852424,442776044),u(2428436474,593698344),u(2756734187,3733110249),u(3204031479,2999351573),u(3329325298,3815920427),u(3391569614,3928383900),u(3515267271,566280711),u(3940187606,3454069534),u(4118630271,4000239992),u(116418474,1914138554),u(174292421,2731055270),u(289380356,3203993006),u(460393269,320620315),u(685471733,587496836),u(852142971,1086792851),u(1017036298,365543100),u(1126000580,2618297676),u(1288033470,3409855158),u(1501505948,4234509866),u(1607167915,987167468),u(1816402316,1246189591)],c=[];(function(){for(var t=0;t<80;t++)c[t]=u()})();var A=o.SHA512=n.extend({_doReset:function(){this._hash=new s.init([new a.init(1779033703,4089235720),new a.init(3144134277,2227873595),new a.init(1013904242,4271175723),new a.init(2773480762,1595750129),new a.init(1359893119,2917565137),new a.init(2600822924,725511199),new a.init(528734635,4215389547),new a.init(1541459225,327033209)])},_doProcessBlock:function(t,e){for(var r=this._hash.words,n=r[0],i=r[1],a=r[2],s=r[3],o=r[4],u=r[5],A=r[6],d=r[7],f=n.high,h=n.low,p=i.high,g=i.low,v=a.high,m=a.low,y=s.high,w=s.low,b=o.high,_=o.low,B=u.high,C=u.low,E=A.high,x=A.low,T=d.high,S=d.low,k=f,I=h,F=p,L=g,D=v,R=m,U=y,O=w,P=b,M=_,Q=B,N=C,H=E,$=x,j=T,K=S,G=0;G<80;G++){var V,W,z=c[G];if(G<16)W=z.high=0|t[e+2*G],V=z.low=0|t[e+2*G+1];else{var Y=c[G-15],q=Y.high,X=Y.low,J=(q>>>1|X<<31)^(q>>>8|X<<24)^q>>>7,Z=(X>>>1|q<<31)^(X>>>8|q<<24)^(X>>>7|q<<25),tt=c[G-2],et=tt.high,rt=tt.low,nt=(et>>>19|rt<<13)^(et<<3|rt>>>29)^et>>>6,it=(rt>>>19|et<<13)^(rt<<3|et>>>29)^(rt>>>6|et<<26),at=c[G-7],st=at.high,ot=at.low,ut=c[G-16],lt=ut.high,ct=ut.low;V=Z+ot,W=J+st+(V>>>0<Z>>>0?1:0),V+=it,W=W+nt+(V>>>0<it>>>0?1:0),V+=ct,W=W+lt+(V>>>0<ct>>>0?1:0),z.high=W,z.low=V}var At=P&Q^~P&H,dt=M&N^~M&$,ft=k&F^k&D^F&D,ht=I&L^I&R^L&R,pt=(k>>>28|I<<4)^(k<<30|I>>>2)^(k<<25|I>>>7),gt=(I>>>28|k<<4)^(I<<30|k>>>2)^(I<<25|k>>>7),vt=(P>>>14|M<<18)^(P>>>18|M<<14)^(P<<23|M>>>9),mt=(M>>>14|P<<18)^(M>>>18|P<<14)^(M<<23|P>>>9),yt=l[G],wt=yt.high,bt=yt.low,_t=K+mt,Bt=j+vt+(_t>>>0<K>>>0?1:0),Ct=(_t=_t+dt,Bt=Bt+At+(_t>>>0<dt>>>0?1:0),_t=_t+bt,Bt=Bt+wt+(_t>>>0<bt>>>0?1:0),_t=_t+V,Bt=Bt+W+(_t>>>0<V>>>0?1:0),gt+ht),Et=pt+ft+(Ct>>>0<gt>>>0?1:0);j=H,K=$,H=Q,$=N,Q=P,N=M,M=O+_t|0,P=U+Bt+(M>>>0<O>>>0?1:0)|0,U=D,O=R,D=F,R=L,F=k,L=I,I=_t+Ct|0,k=Bt+Et+(I>>>0<_t>>>0?1:0)|0}h=n.low=h+I,n.high=f+k+(h>>>0<I>>>0?1:0),g=i.low=g+L,i.high=p+F+(g>>>0<L>>>0?1:0),m=a.low=m+R,a.high=v+D+(m>>>0<R>>>0?1:0),w=s.low=w+O,s.high=y+U+(w>>>0<O>>>0?1:0),_=o.low=_+M,o.high=b+P+(_>>>0<M>>>0?1:0),C=u.low=C+N,u.high=B+Q+(C>>>0<N>>>0?1:0),x=A.low=x+$,A.high=E+H+(x>>>0<$>>>0?1:0),S=d.low=S+K,d.high=T+j+(S>>>0<K>>>0?1:0)},_doFinalize:function(){var t=this._data,e=t.words,r=8*this._nDataBytes,n=8*t.sigBytes;e[n>>>5]|=128<<24-n%32,e[30+(n+128>>>10<<5)]=Math.floor(r/4294967296),e[31+(n+128>>>10<<5)]=r,t.sigBytes=4*e.length,this._process();var i=this._hash.toX32();return i},clone:function(){var t=n.clone.call(this);return t._hash=this._hash.clone(),t},blockSize:32});e.SHA512=n._createHelper(A),e.HmacSHA512=n._createHmacHelper(A)}(),t.SHA512}))},"81bb":function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={radio:{name:"",shape:"",disabled:"",labelDisabled:"",activeColor:"",inactiveColor:"",iconSize:"",labelSize:"",label:"",labelColor:"",size:"",iconColor:"",placement:""}}},8218:function(t,e,r){"use strict";var n=r("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(r("3b2d"));function a(t){return/^[\+-]?(\d+\.?\d*|\.\d+|\d\.\d+e\+\d+)$/.test(t)}function s(t){switch((0,i.default)(t)){case"undefined":return!0;case"string":if(0==t.replace(/(^[ \t\n\r]*)|([ \t\n\r]*$)/g,"").length)return!0;break;case"boolean":if(!t)return!0;break;case"number":if(0===t||isNaN(t))return!0;break;case"object":if(null===t||0===t.length)return!0;for(var e in t)return!1;return!0}return!1}function o(t){return"[object Object]"===Object.prototype.toString.call(t)}function u(t){return"function"===typeof t}var l={email:function(t){return/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/.test(t)},mobile:function(t){return/^1([3589]\d|4[5-9]|6[1-2,4-7]|7[0-8])\d{8}$/.test(t)},url:function(t){return/^((https|http|ftp|rtsp|mms):\/\/)(([0-9a-zA-Z_!~*'().&=+$%-]+: )?[0-9a-zA-Z_!~*'().&=+$%-]+@)?(([0-9]{1,3}.){3}[0-9]{1,3}|([0-9a-zA-Z_!~*'()-]+.)*([0-9a-zA-Z][0-9a-zA-Z-]{0,61})?[0-9a-zA-Z].[a-zA-Z]{2,6})(:[0-9]{1,4})?((\/?)|(\/[0-9a-zA-Z_!~*'().;?:@&=+$,%#-]+)+\/?)$/.test(t)},date:function(t){return!!t&&(a(t)&&(t=+t),!/Invalid|NaN/.test(new Date(t).toString()))},dateISO:function(t){return/^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/.test(t)},number:a,digits:function(t){return/^\d+$/.test(t)},idCard:function(t){return/^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}([0-9]|X)$/.test(t)},carNo:function(t){return 7===t.length?/^[\u4eac\u6d25\u6caa\u6e1d\u5180\u8c6b\u4e91\u8fbd\u9ed1\u6e58\u7696\u9c81\u65b0\u82cf\u6d59\u8d63\u9102\u6842\u7518\u664b\u8499\u9655\u5409\u95fd\u8d35\u7ca4\u9752\u85cf\u5ddd\u5b81\u743c\u4f7f\u9886A-Z]{1}[A-Z]{1}[A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9\u6302\u5b66\u8b66\u6e2f\u6fb3]{1}$/.test(t):8===t.length&&/^[\u4eac\u6d25\u6caa\u6e1d\u5180\u8c6b\u4e91\u8fbd\u9ed1\u6e58\u7696\u9c81\u65b0\u82cf\u6d59\u8d63\u9102\u6842\u7518\u664b\u8499\u9655\u5409\u95fd\u8d35\u7ca4\u9752\u85cf\u5ddd\u5b81\u743c\u4f7f\u9886A-Z]{1}[A-Z]{1}(([0-9]{5}[DF]$)|([DF][A-HJ-NP-Z0-9][0-9]{4}$))/.test(t)},amount:function(t){return/^[1-9]\d*(,\d{3})*(\.\d{1,2})?$|^0\.\d{1,2}$/.test(t)},chinese:function(t){return/^[\u4e00-\u9fa5]+$/gi.test(t)},letter:function(t){return/^[a-zA-Z]*$/.test(t)},enOrNum:function(t){return/^[0-9a-zA-Z]*$/g.test(t)},contains:function(t,e){return t.indexOf(e)>=0},range:function(t,e){return t>=e[0]&&t<=e[1]},rangeLength:function(t,e){return t.length>=e[0]&&t.length<=e[1]},empty:s,isEmpty:s,jsonString:function(t){if("string"===typeof t)try{var e=JSON.parse(t);return!("object"!==(0,i.default)(e)||!e)}catch(r){return!1}return!1},landline:function(t){return/^\d{3,4}-\d{7,8}(-\d{3,4})?$/.test(t)},object:o,array:function(t){return"function"===typeof Array.isArray?Array.isArray(t):"[object Array]"===Object.prototype.toString.call(t)},code:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6;return new RegExp("^\\d{".concat(e,"}$")).test(t)},func:u,promise:function(t){return o(t)&&u(t.then)&&u(t.catch)},video:function(t){return/\.(mp4|mpg|mpeg|dat|asf|avi|rm|rmvb|mov|wmv|flv|mkv|m3u8)/i.test(t)},image:function(t){var e=t.split("?")[0];return/\.(jpeg|jpg|gif|png|svg|webp|jfif|bmp|dpg)/i.test(e)},regExp:function(t){return t&&"[object RegExp]"===Object.prototype.toString.call(t)},string:function(t){return"string"===typeof t}};e.default=l},8273:function(t,e,r){var n,i,a,s=r("3b2d");(function(o,u,l){"object"===s(e)?t.exports=e=u(r("707d"),r("bbe5")):(i=[r("707d"),r("bbe5")],n=u,a="function"===typeof n?n.apply(e,i):n,void 0===a||(t.exports=a))})(0,(function(t){return t.pad.Iso10126={pad:function(e,r){var n=4*r,i=n-e.sigBytes%n;e.concat(t.lib.WordArray.random(i-1)).concat(t.lib.WordArray.create([i<<24],1))},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}},t.pad.Iso10126}))},8282:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={input:{value:"",type:"text",fixed:!1,disabled:!1,disabledColor:"#f5f7fa",clearable:!1,password:!1,maxlength:-1,placeholder:null,placeholderClass:"input-placeholder",placeholderStyle:"color: #c0c4cc",showWordLimit:!1,confirmType:"done",confirmHold:!1,holdKeyboard:!1,focus:!1,autoBlur:!1,disableDefaultPadding:!1,cursor:-1,cursorSpacing:30,selectionStart:-1,selectionEnd:-1,adjustPosition:!0,inputAlign:"left",fontSize:"15px",color:"#303133",prefixIcon:"",prefixIconStyle:"",suffixIcon:"",suffixIconStyle:"",border:"surround",readonly:!1,shape:"square",formatter:null}}},"828b":function(t,e,r){"use strict";function n(t,e,r,n,i,a,s,o,u,l){var c,A="function"===typeof t?t.options:t;if(u){A.components||(A.components={});var d=Object.prototype.hasOwnProperty;for(var f in u)d.call(u,f)&&!d.call(A.components,f)&&(A.components[f]=u[f])}if(l&&("function"===typeof l.beforeCreate&&(l.beforeCreate=[l.beforeCreate]),(l.beforeCreate||(l.beforeCreate=[])).unshift((function(){this[l.__module]=this})),(A.mixins||(A.mixins=[])).push(l)),e&&(A.render=e,A.staticRenderFns=r,A._compiled=!0),n&&(A.functional=!0),a&&(A._scopeId="data-v-"+a),s?(c=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(s)},A._ssrRegister=c):i&&(c=o?function(){i.call(this,this.$root.$options.shadowRoot)}:i),c)if(A.functional){A._injectStyles=c;var h=A.render;A.render=function(t,e){return c.call(e),h(t,e)}}else{var p=A.beforeCreate;A.beforeCreate=p?[].concat(p,c):[c]}return{exports:t,options:A}}r.d(e,"a",(function(){return n}))},8354:function(t,e,r){"use strict";r.r(e);var n=r("7328"),i=r.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return n[t]}))}(a);e["default"]=i.a},8373:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={props:{show:{type:Boolean,default:uni.$u.props.popup.show},overlay:{type:Boolean,default:uni.$u.props.popup.overlay},mode:{type:String,default:uni.$u.props.popup.mode},duration:{type:[String,Number],default:uni.$u.props.popup.duration},closeable:{type:Boolean,default:uni.$u.props.popup.closeable},overlayStyle:{type:[Object,String],default:uni.$u.props.popup.overlayStyle},closeOnClickOverlay:{type:Boolean,default:uni.$u.props.popup.closeOnClickOverlay},zIndex:{type:[String,Number],default:uni.$u.props.popup.zIndex},safeAreaInsetBottom:{type:Boolean,default:uni.$u.props.popup.safeAreaInsetBottom},safeAreaInsetTop:{type:Boolean,default:uni.$u.props.popup.safeAreaInsetTop},closeIconPos:{type:String,default:uni.$u.props.popup.closeIconPos},round:{type:[Boolean,String,Number],default:uni.$u.props.popup.round},zoom:{type:Boolean,default:uni.$u.props.popup.zoom},bgColor:{type:String,default:uni.$u.props.popup.bgColor},overlayOpacity:{type:[Number,String],default:uni.$u.props.popup.overlayOpacity}}};e.default=n},8401:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={empty:{icon:"",text:"",textColor:"#c0c4cc",textSize:14,iconColor:"#c0c4cc",iconSize:90,mode:"data",width:160,height:160,show:!0,marginTop:0}}},"841e":function(t,e,r){"use strict";var n=r("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(r("127e")),a=n(r("ee10")),s=r("0f81"),o={data:function(){return{oldPassword:"",newPassword:"",confirmPassword:"",resetToken:"",loading:!1}},onLoad:function(t){var e=this;return(0,a.default)(i.default.mark((function r(){var n;return i.default.wrap((function(r){while(1)switch(r.prev=r.next){case 0:if(!t.token){r.next=4;break}e.resetToken=t.token,r.next=8;break;case 4:return r.next=6,e.$onLaunched;case 6:n=getApp().globalData.userToken,n||uni.redirectTo({url:"/pages/user/login"});case 8:case"end":return r.stop()}}),r)})))()},methods:{submit:function(){var t=this;return(0,a.default)(i.default.mark((function e(){var r;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(r=/^.{6,16}$/,t.resetToken||t.oldPassword){e.next=4;break}return uni.showToast({icon:"none",title:"\u8bf7\u8f93\u5165\u539f\u5bc6\u7801~!",duration:3e3}),e.abrupt("return");case 4:if(r.test(t.newPassword)){e.next=7;break}return uni.showToast({icon:"none",title:"\u65b0\u5bc6\u7801\u5fc5\u987b\u662f6-16\u4f4d~!",duration:3e3}),e.abrupt("return");case 7:if(t.confirmPassword===t.newPassword){e.next=10;break}return uni.showToast({icon:"none",title:"\u4e24\u6b21\u5bc6\u7801\u4e0d\u4e00\u81f4~!",duration:3e3}),e.abrupt("return");case 10:return t.loading=!0,e.next=13,s.user.password(t.oldPassword,t.newPassword,t.resetToken).then((function(t){uni.showToast({icon:"none",title:t.msg,duration:3e3}),1===t.code&&(uni.removeStorageSync("phoneNumber"),uni.removeStorageSync("emailNumber"),setTimeout((function(){uni.removeStorage({key:"user_token",success:function(){getApp().globalData.share.code="",getApp().globalData.userToken="",uni.switchTab({url:"/pages/user/index"})}})}),1500))})).catch((function(t){}));case 13:t.loading=!1;case 14:case"end":return e.stop()}}),e)})))()}}};e.default=o},8485:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){return e?"".concat(t.replace(/\/+$/,""),"/").concat(e.replace(/^\/+/,"")):t}},"84a3":function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={popup:{show:!1,overlay:!0,mode:"bottom",duration:300,closeable:!1,overlayStyle:function(){},closeOnClickOverlay:!0,zIndex:10075,safeAreaInsetBottom:!0,safeAreaInsetTop:!1,closeIconPos:"top-right",round:0,zoom:!0,bgColor:"",overlayOpacity:.5}}},"84ac":function(t,e,r){"use strict";r.r(e);var n=r("15eb"),i=r("570c");for(var a in i)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return i[t]}))}(a);var s=r("828b"),o=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);e["default"]=o.exports},8581:function(t,e,r){"use strict";r.r(e);var n=r("e92e"),i=r("4da6");for(var a in i)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return i[t]}))}(a);var s=r("828b"),o=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,"303afcbe",null,!1,n["a"],void 0);e["default"]=o.exports},"85bb":function(t,e,r){"use strict";r.r(e);var n=r("0445"),i=r.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return n[t]}))}(a);e["default"]=i.a},8712:function(t,e,r){var n,i,a,s=r("3b2d");(function(o,u){"object"===s(e)?t.exports=e=u(r("707d")):(i=[r("707d")],n=u,a="function"===typeof n?n.apply(e,i):n,void 0===a||(t.exports=a))})(0,(function(t){return function(e){var r=t,n=r.lib,i=n.WordArray,a=n.Hasher,s=r.algo,o=[],u=[];(function(){function t(t){for(var r=e.sqrt(t),n=2;n<=r;n++)if(!(t%n))return!1;return!0}function r(t){return 4294967296*(t-(0|t))|0}var n=2,i=0;while(i<64)t(n)&&(i<8&&(o[i]=r(e.pow(n,.5))),u[i]=r(e.pow(n,1/3)),i++),n++})();var l=[],c=s.SHA256=a.extend({_doReset:function(){this._hash=new i.init(o.slice(0))},_doProcessBlock:function(t,e){for(var r=this._hash.words,n=r[0],i=r[1],a=r[2],s=r[3],o=r[4],c=r[5],A=r[6],d=r[7],f=0;f<64;f++){if(f<16)l[f]=0|t[e+f];else{var h=l[f-15],p=(h<<25|h>>>7)^(h<<14|h>>>18)^h>>>3,g=l[f-2],v=(g<<15|g>>>17)^(g<<13|g>>>19)^g>>>10;l[f]=p+l[f-7]+v+l[f-16]}var m=o&c^~o&A,y=n&i^n&a^i&a,w=(n<<30|n>>>2)^(n<<19|n>>>13)^(n<<10|n>>>22),b=(o<<26|o>>>6)^(o<<21|o>>>11)^(o<<7|o>>>25),_=d+b+m+u[f]+l[f],B=w+y;d=A,A=c,c=o,o=s+_|0,s=a,a=i,i=n,n=_+B|0}r[0]=r[0]+n|0,r[1]=r[1]+i|0,r[2]=r[2]+a|0,r[3]=r[3]+s|0,r[4]=r[4]+o|0,r[5]=r[5]+c|0,r[6]=r[6]+A|0,r[7]=r[7]+d|0},_doFinalize:function(){var t=this._data,r=t.words,n=8*this._nDataBytes,i=8*t.sigBytes;return r[i>>>5]|=128<<24-i%32,r[14+(i+64>>>9<<4)]=e.floor(n/4294967296),r[15+(i+64>>>9<<4)]=n,t.sigBytes=4*r.length,this._process(),this._hash},clone:function(){var t=a.clone.call(this);return t._hash=this._hash.clone(),t}});r.SHA256=a._createHelper(c),r.HmacSHA256=a._createHmacHelper(c)}(Math),t.SHA256}))},8813:function(t,e,r){"use strict";r.r(e);var n=r("994d"),i=r.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return n[t]}))}(a);e["default"]=i.a},8896:function(t,e,r){"use strict";var n=r("47a9"),i=r("3b2d");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n(r("127e")),s=n(r("ee10")),o=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==i(t)&&"function"!==typeof t)return{default:t};var r=u(e);if(r&&r.has(t))return r.get(t);var n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if("default"!==s&&Object.prototype.hasOwnProperty.call(t,s)){var o=a?Object.getOwnPropertyDescriptor(t,s):null;o&&(o.get||o.set)?Object.defineProperty(n,s,o):n[s]=t[s]}n.default=t,r&&r.set(t,n);return n}(r("8f11"));function u(t){if("function"!==typeof WeakMap)return null;var e=new WeakMap,r=new WeakMap;return(u=function(t){return t?r:e})(t)}var l={data:function(){return{version:""}},onLoad:function(){var t=this;return(0,s.default)(a.default.mark((function e(){return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,(0,o.getCurrentNo)((function(e){t.version=e.versionName}));case 2:case"end":return e.stop()}}),e)})))()},methods:{checkVersion:function(){(0,o.default)(!0)}}};e.default=l},8898:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={picker:{show:!1,showToolbar:!0,title:"",columns:function(){return[]},loading:!1,itemHeight:44,cancelText:"\u53d6\u6d88",confirmText:"\u786e\u5b9a",cancelColor:"#909193",confirmColor:"#3c9cff",visibleItemCount:5,keyName:"text",closeOnClickOverlay:!1,defaultIndex:function(){return[]},immediateChange:!1}}},"88b8":function(t,e,r){"use strict";r.r(e);var n=r("2c5d"),i=r("8d5a");for(var a in i)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return i[t]}))}(a);var s=r("828b"),o=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,"1bea48a9",null,!1,n["a"],void 0);e["default"]=o.exports},8918:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default="plus"},"897e":function(t,e,r){"use strict";r.d(e,"b",(function(){return i})),r.d(e,"c",(function(){return a})),r.d(e,"a",(function(){return n}));var n={uniIcons:r("da03").default,uPopup:r("591c").default,uTag:r("00ee").default},i=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("view",[r("view",{staticClass:t._$s(1,"sc","video-scroll-view"),attrs:{_i:1}},[t._$s(2,"i",t.data.vod_name)?r("view",{staticClass:t._$s(2,"sc","video-info"),attrs:{_i:2}},[r("view",{staticClass:t._$s(3,"sc","justify-between align-center"),attrs:{_i:3}},[r("view",{staticClass:t._$s(4,"sc","flex-row align-center video-info-title"),attrs:{_i:4}},[r("text",{staticClass:t._$s(5,"sc","video-name"),attrs:{_i:5}},[t._v(t._$s(5,"t0-0",t._s(t.data.vod_name)))]),r("view",{staticClass:t._$s(6,"sc","video-describe"),attrs:{_i:6}})])]),r("view",{staticClass:t._$s(7,"sc","video-statistics"),attrs:{_i:7}},[r("view",{staticClass:t._$s(8,"sc","icons"),attrs:{_i:8}},[r("view",{staticClass:t._$s(9,"sc","video-statistics-item"),attrs:{_i:9},on:{click:function(e){return t.dig("up")}}},[r("uni-icons",{attrs:{type:1===t.data.is_up?"heart-filled":"heart",color:1===t.data.is_up?"#fa3534":"#b9bbbd",size:"18",_i:10}}),r("text",[t._v(t._$s(11,"t0-0",t._s((t.data.is_up,t.data.vod_up))))])],1),r("view",{staticClass:t._$s(12,"sc","video-statistics-item"),attrs:{_i:12},on:{click:function(e){return t.dig("down")}}},[r("uni-icons",{attrs:{type:1===t.data.is_down?"hand-down-filled":"hand-down",color:1===t.data.is_down?"#909399":"#b9bbbd",size:"18",_i:13}}),r("text",[t._v(t._$s(14,"t0-0",t._s((t.data.is_down,t.data.vod_down))))])],1)]),r("view",{staticClass:t._$s(15,"sc","video-bar"),attrs:{_i:15}},[[r("uni-icons",{attrs:{type:"compose",size:"24",color:"#fff",_i:17},on:{click:function(e){return t.openUrl("/pages/feedback/feedback?type=1&vod_id="+t.data.vod_id+"&vod_name="+t.data.vod_name)}}}),r("uni-icons",{attrs:{type:1===t.is_fav?"star-filled":"star",size:"24",color:1===t.is_fav?"#DA2538":"#fff",_i:18},on:{click:t.favVod}}),r("uni-icons",{attrs:{type:"download",size:"24",color:"#fff",_i:19},on:{click:t.godownload}}),r("uni-icons",{attrs:{"custom-prefix":"xicon",color:"#fff",type:"x-icon-share",size:"24",_i:20},on:{click:t.Share}})]],2)]),r("u-popup",{attrs:{show:t.introShow,round:10,_i:21},on:{close:t.closeintro}},[r("view",{staticClass:t._$s(22,"sc","video-intro"),attrs:{_i:22}},[r("scroll-view",{attrs:{"scroll-top":t._$s(23,"a-scroll-top",t.episodesScroll),_i:23}},[r("view",{staticClass:t._$s(24,"sc","justify-between"),attrs:{_i:24}},[r("view",{staticClass:t._$s(25,"sc","video-name-info"),attrs:{_i:25}},[t._v(t._$s(25,"t0-0",t._s(t.data.vod_name)))]),r("uni-icons",{attrs:{type:"closeempty",size:"20",_i:26},on:{click:t.closeintro}})],1),r("view",{staticClass:t._$s(27,"sc","video-describe"),attrs:{_i:27}},[r("u-tag",{staticClass:t._$s(28,"sc","video-describe-tag"),attrs:{bgColor:"#f2f5fa",color:"#1a1a1a",borderColor:"#f2f5fa",text:t.data.vod_year+"\u5e74",size:"mini",_i:28}}),r("u-tag",{staticClass:t._$s(29,"sc","video-describe-tag"),attrs:{bgColor:"#f2f5fa",color:"#1a1a1a",borderColor:"#f2f5fa",text:t.data.vod_score+"\u5206",size:"mini",_i:29}}),t._$s(30,"i",t.data.type_name_1)?r("u-tag",{staticClass:t._$s(30,"sc","video-describe-tag"),attrs:{bgColor:"#f2f5fa",color:"#1a1a1a",borderColor:"#f2f5fa",text:t.data.type_name_1,size:"mini",_i:30}}):t._e(),t._l(t._$s(31,"f",{forItems:t.data.vod_class}),(function(e,n,i,a){return t._$s("31-"+a,"i",n<3)?r("u-tag",{key:t._$s(31,"f",{forIndex:i,key:n}),staticClass:t._$s("31-"+a,"sc","video-describe-tag"),attrs:{bgColor:"#f2f5fa",color:"#1a1a1a",borderColor:"#f2f5fa",text:e,size:"mini",_i:"31-"+a}}):t._e()}))],2),r("view",{staticClass:t._$s(32,"sc","video-intro-item"),attrs:{_i:32}},[r("text",{staticClass:t._$s(33,"sc","item-title"),attrs:{_i:33}}),r("view",{staticClass:t._$s(34,"sc","item-value"),attrs:{_i:34}},t._l(t._$s(35,"f",{forItems:t.data.vod_director}),(function(e,n,i,a){return r("text",{key:t._$s(35,"f",{forIndex:i,key:n})},[t._v(t._$s("35-"+a,"t0-0",t._s(e)))])})),0)]),r("view",{staticClass:t._$s(36,"sc","video-intro-item"),attrs:{_i:36}},[r("text",{staticClass:t._$s(37,"sc","item-title"),attrs:{_i:37}}),r("view",{staticClass:t._$s(38,"sc","item-value"),attrs:{_i:38}},t._l(t._$s(39,"f",{forItems:t.data.vod_actor}),(function(e,n,i,a){return r("text",{key:t._$s(39,"f",{forIndex:i,key:n})},[t._v(t._$s("39-"+a,"t0-0",t._s(e)))])})),0)]),r("view",{staticClass:t._$s(40,"sc","video-intro-item"),attrs:{_i:40}},[r("text",{staticClass:t._$s(41,"sc","item-title"),attrs:{_i:41}}),r("text",{staticClass:t._$s(42,"sc","intro-value"),attrs:{_i:42}},[t._v(t._$s(42,"t0-0",t._s(t.data.vod_content)))])])])])])],1):t._e(),[r("view",{staticClass:t._$s(44,"sc","video-episodes"),attrs:{_i:44}}),t._$s(45,"i",t.adv.banner_adv2)?r("view",{staticClass:t._$s(45,"sc","ad-banner"),attrs:{_i:45},on:{click:function(e){return t.openAD(t.adv.banner_adv2.adv_link)}}},[r("image",{attrs:{src:t._$s(46,"a-src",t.adv.banner_adv2.adv_image),_i:46}})]):t._e(),t._$s(47,"i",t.data.hot_list)?r("view",{staticClass:t._$s(47,"sc","video-like"),attrs:{_i:47}},[r("view",{staticClass:t._$s(48,"sc","video-like-titlebox"),attrs:{_i:48}},[r("text",{staticClass:t._$s(49,"sc","video-like-title"),attrs:{_i:49}})]),r("view",{staticClass:t._$s(50,"sc","vod-container"),attrs:{_i:50}},t._l(t._$s(51,"f",{forItems:t.data.hot_list}),(function(e,n,i,a){return r("vod-item",{key:t._$s(51,"f",{forIndex:i,key:n}),attrs:{item:e,_i:"51-"+a}})})),1)]):t._e()]],2)])},a=[]},8994:function(t,e,r){"use strict";r.r(e);var n=r("e1f2"),i=r.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return n[t]}))}(a);e["default"]=i.a},"89a4":function(t,e,r){"use strict";r.r(e);var n=r("16a9"),i=r("c949");for(var a in i)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return i[t]}))}(a);var s=r("828b"),o=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);e["default"]=o.exports},"89e5":function(t,e,r){"use strict";r.r(e);var n=r("e9d6"),i=r("338b");for(var a in i)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return i[t]}))}(a);var s=r("828b"),o=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);e["default"]=o.exports},"8a14":function(t,e,r){"use strict";r.r(e);var n=r("7556"),i=r("9f0b");for(var a in i)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return i[t]}))}(a);var s=r("828b"),o=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);e["default"]=o.exports},"8a1e":function(t,e,r){"use strict";r.r(e);var n=r("e78e"),i=r("d10f");for(var a in i)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return i[t]}))}(a);var s=r("828b"),o=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);e["default"]=o.exports},"8a25":function(t,e,r){"use strict";var n=r("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(r("8373")),a={name:"u-popup",mixins:[uni.$u.mpMixin,uni.$u.mixin,i.default],data:function(){return{overlayDuration:this.duration+50}},watch:{show:function(t,e){}},computed:{transitionStyle:function(){var t={zIndex:this.zIndex,position:"fixed",display:"flex"};return t[this.mode]=0,"left"===this.mode||"right"===this.mode?uni.$u.deepMerge(t,{bottom:0,top:0}):"top"===this.mode||"bottom"===this.mode?uni.$u.deepMerge(t,{left:0,right:0}):"center"===this.mode?uni.$u.deepMerge(t,{alignItems:"center","justify-content":"center",top:0,left:0,right:0,bottom:0}):void 0},contentStyle:function(){var t={},e=uni.$u.sys();e.safeAreaInsets;if("center"!==this.mode&&(t.flex=1),this.bgColor&&(t.backgroundColor=this.bgColor),this.round){var r=uni.$u.addUnit(this.round);"top"===this.mode?(t.borderBottomLeftRadius=r,t.borderBottomRightRadius=r):"bottom"===this.mode?(t.borderTopLeftRadius=r,t.borderTopRightRadius=r):"center"===this.mode&&(t.borderRadius=r)}return uni.$u.deepMerge(t,uni.$u.addStyle(this.customStyle))},position:function(){return"center"===this.mode?this.zoom?"fade-zoom":"fade":"left"===this.mode?"slide-left":"right"===this.mode?"slide-right":"bottom"===this.mode?"slide-up":"top"===this.mode?"slide-down":void 0}},methods:{overlayClick:function(){this.closeOnClickOverlay&&this.$emit("close")},close:function(t){this.$emit("close")},afterEnter:function(){this.$emit("open")},clickHandler:function(){"center"===this.mode&&this.overlayClick(),this.$emit("click")}}};e.default=a},"8a7f":function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={steps:{direction:"row",current:0,activeColor:"#3c9cff",inactiveColor:"#969799",activeIcon:"",inactiveIcon:"",dot:!1}}},"8af6":function(t,e,r){"use strict";r.d(e,"b",(function(){return i})),r.d(e,"c",(function(){return a})),r.d(e,"a",(function(){return n}));var n={uTabs:r("58b7").default,uCode:r("ef66").default,uButton:r("9a24").default},i=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("view",{staticClass:t._$s(0,"sc","page-container"),attrs:{_i:0}},[r("view",{staticClass:t._$s(1,"sc","find-password"),attrs:{_i:1}},[r("view",{staticClass:t._$s(2,"sc","nav-tabs"),attrs:{_i:2}},[r("u-tabs",{attrs:{lineColor:"#DA2538","line-width":"60px","line-hight":"3px",scrollable:!1,"active-style":{fontSize:"18px",fontWeight:"bold",color:"#fff"},list:t.navs,current:t.navIndex,_i:3},on:{click:t.tabsClick}})],1),r("view",{staticClass:t._$s(4,"sc","card"),attrs:{_i:4}},[r("view",{staticClass:t._$s(5,"sc","login-input card-content"),attrs:{_i:5}},[t._$s(6,"i",0==t.navIndex)?r("view",{staticClass:t._$s(6,"sc","input-box align-center"),attrs:{_i:6}},[r("view",{staticClass:t._$s(7,"sc","code"),attrs:{_i:7}}),r("input",{directives:[{name:"model",rawName:"v-model",value:t.phone,expression:"phone"}],attrs:{_i:8},domProps:{value:t._$s(8,"v-model",t.phone)},on:{input:function(e){e.target.composing||(t.phone=e.target.value)}}})]):r("view",{staticClass:t._$s(9,"sc","input-box align-center"),attrs:{_i:9}},[r("input",{directives:[{name:"model",rawName:"v-model",value:t.email,expression:"email"}],attrs:{_i:10},domProps:{value:t._$s(10,"v-model",t.email)},on:{input:function(e){e.target.composing||(t.email=e.target.value)}}})]),t._$s(11,"i",t.email_sms||t.phone_sms)?r("view",{staticClass:t._$s(11,"sc","input-box align-center"),attrs:{_i:11}},[r("input",{directives:[{name:"model",rawName:"v-model",value:t.code,expression:"code"}],attrs:{_i:12},domProps:{value:t._$s(12,"v-model",t.code)},on:{input:function(e){e.target.composing||(t.code=e.target.value)}}}),r("u-code",{ref:"uCode",attrs:{"keep-running":!0,"start-text":"\u83b7\u53d6\u9a8c\u8bc1\u7801","change-text":"Xs\u540e\u91cd\u53d1",_i:13},on:{change:t.codeChange}}),r("text",{staticClass:t._$s(14,"sc","code-tip"),attrs:{text:t._$s(14,"a-text",t.codeTip),_i:14},on:{click:t.getCode}},[t._v(t._$s(14,"t0-0",t._s(t.codeTip)))])],1):t._e()])])]),r("view",{staticClass:t._$s(15,"sc","login-button"),attrs:{_i:15}},[r("u-button",{attrs:{shape:"circle",disabled:t.loading,loading:t.loading,color:"linear-gradient(90deg, #DA2538 0%, #F75F68 100%)",text:"\u4e0b\u4e00\u6b65",_i:16},on:{click:t.next}})],1)])},a=[]},"8baf":function(t,e,r){"use strict";var n=r("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(r("127e")),a=n(r("ee10")),s=r("0f81"),o={data:function(){return{data:{},id:0,payid:"",payShow:!1,loading:!1}},onLoad:function(){var t=this;return(0,a.default)(i.default.mark((function e(){var r;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$onLaunched;case 2:r=getApp().globalData.userToken,r?t.getData():uni.redirectTo({url:"/pages/user/login"});case 4:case"end":return e.stop()}}),e)})))()},methods:{getData:function(){var t=this;s.user.Bullion().then((function(e){1==e.code&&(t.data=e.data,t.id=e.data.selected,t.payid=e.data.pay_id)}))},pay:function(){var t=this;return(0,a.default)(i.default.mark((function e(){return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(0!==t.id){e.next=3;break}return uni.showToast({icon:"none",title:"\u8bf7\u9009\u62e9\u8981\u652f\u4ed8\u7684\u7c7b\u578b~!",duration:3e3}),e.abrupt("return");case 3:if(""!==t.payid){e.next=6;break}return uni.showToast({icon:"none",title:"\u8bf7\u9009\u62e9\u8981\u652f\u4ed8\u7684\u65b9\u5f0f~!",duration:3e3}),e.abrupt("return");case 6:return t.loading=!0,e.next=9,s.user.payOrder(t.id,t.payid,"bullion").then((function(e){1===e.code?(uni.showModal({title:"\u652f\u4ed8\u63d0\u793a",confirmText:"\u5df2\u652f\u4ed8",confirmColor:"#fd6202",content:"\u652f\u4ed8\u6210\u529f\u540e\uff0cVIP\u4f1a\u57285\u5206\u949f\u5185\u751f\u6548\u3002\u5982\u9047\u670d\u52a1\u5668\u62e5\u5835\uff0cVIP\u751f\u6548\u53ef\u80fd\u4f1a\u6709\u5ef6\u8fdf\uff0c\u8bf7\u8010\u5fc3\u7b49\u5f85\uff0c\u53ef\u9000\u51faAPP\u91cd\u65b0\u8fdb\u5165\u67e5\u770bVIP\u751f\u6548\u60c5\u51b5\u3002\u82e5\u8d85\u8fc730\u5206\u949f\u4ecd\u672a\u5230\u8d26\uff0c\u8bf7\u53ca\u65f6\u8054\u7cfb\u5c0f\u7f16\u8fdb\u884c\u5904\u7406\uff01",success:function(e){e.confirm&&t.back()}}),e.data.url&&t.openApp(e.data.url)):uni.showToast({icon:"none",title:e.msg,duration:3e3})})).catch((function(t){}));case 9:t.loading=!1;case 10:case"end":return e.stop()}}),e)})))()},onSelect:function(t){this.id=t},paySelect:function(t){this.payid=t.detail.value}}};e.default=o},"8bea":function(t,e,r){"use strict";r.r(e);var n=r("8896"),i=r.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return n[t]}))}(a);e["default"]=i.a},"8c2c":function(t,e,r){var n,i,a,s=r("3b2d");(function(o,u,l){"object"===s(e)?t.exports=e=u(r("707d"),r("bbe5")):(i=[r("707d"),r("bbe5")],n=u,a="function"===typeof n?n.apply(e,i):n,void 0===a||(t.exports=a))})(0,(function(t){return t.pad.Iso97971={pad:function(e,r){e.concat(t.lib.WordArray.create([2147483648],1)),t.pad.ZeroPadding.pad(e,r)},unpad:function(e){t.pad.ZeroPadding.unpad(e),e.sigBytes--}},t.pad.Iso97971}))},"8ca1":function(t,e,r){"use strict";r.d(e,"b",(function(){return i})),r.d(e,"c",(function(){return a})),r.d(e,"a",(function(){return n}));var n={uPopup:r("591c").default,uGrid:r("88b8").default,uGridItem:r("94f4").default,uniIcons:r("da03").default},i=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("u-popup",{attrs:{show:t.show,round:10,_i:0}},[r("view",{staticClass:t._$s(1,"sc","avatar-popup"),attrs:{_i:1}},[r("view",{staticClass:t._$s(2,"sc","popup-header"),attrs:{_i:2}},[r("view",{staticClass:t._$s(3,"sc","popup-header-title"),attrs:{_i:3}})]),r("scroll-view",{},[r("u-grid",{staticClass:t._$s(5,"sc","avatar-popup-grid"),attrs:{border:!1,col:"4",_i:5}},t._l(9,(function(e,n,i,a){return r("u-grid-item",{key:e,attrs:{_i:"6-"+a}},[r("view",{staticClass:t._$s("7-"+a,"sc","avatar-item"),attrs:{_i:"7-"+a},on:{click:function(r){return t.select(e)}}},[r("image",{attrs:{src:t._$s("8-"+a,"a-src","/static/avatar/"+(2===t.user.user_sex?"woman":"man")+"/"+e+".png"),_i:"8-"+a}}),t._$s("9-"+a,"i",t.portrait===(2===t.user.user_sex?"woman":"man")+"/"+e+".png")?r("view",{staticClass:t._$s("9-"+a,"sc","selected"),attrs:{_i:"9-"+a}},[r("uni-icons",{attrs:{type:"checkmarkempty",color:"#ffffff",size:"12",_i:"10-"+a}})],1):t._e()])])})),1)],1),r("view",{staticClass:t._$s(11,"sc","close-button"),attrs:{_i:11},on:{click:t.close}})])])},a=[]},"8cb8":function(t,e,r){"use strict";r.d(e,"b",(function(){return i})),r.d(e,"c",(function(){return a})),r.d(e,"a",(function(){return n}));var n={uEmpty:r("9925").default},i=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("scroll-view",{attrs:{_i:0}},[r("view",{staticClass:t._$s(1,"sc","empty-container"),attrs:{_i:1}},[r("u-empty",{attrs:{mode:"search",icon:"/static/images/empty.svg",width:"240",_i:2}}),r("view",{staticClass:t._$s(3,"sc","justify-center"),attrs:{_i:3}},[r("navigator",{staticClass:t._$s(4,"sc","feedback-button"),attrs:{_i:4}})]),t._$s(5,"i",t.list)?r("view",{staticClass:t._$s(5,"sc","empty-topic"),attrs:{_i:5}},[r("view",{staticClass:t._$s(6,"sc","title-box justify-between"),attrs:{_i:6}},[r("text"),r("view",{staticClass:t._$s(8,"sc","more"),attrs:{_i:8},on:{click:t.toChannel}})]),r("topic",{attrs:{list:t.list,_i:9}})],1):t._e()],1)])},a=[]},"8cc3":function(t,e,r){"use strict";var n=r("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(r("796c")),a=n(r("be86")),s={components:{downloadClass:a.default,downloadingClass:i.default},data:function(){return{tabs:[{id:1,name:"\u4e0b\u8f7d\u4e2d"},{id:2,name:"\u5386\u53f2\u4e0b\u8f7d"}],tabsIndex:0,isDeleteModel:!1,navRightTitle:"\u7ba1\u7406"}},watch:{tabsIndex:{handler:function(){var t=this;this.$nextTick((function(){t.loadData()}))}}},onShow:function(){var t=this;this.$nextTick((function(){t.loadData()}))},methods:{tabsClick:function(t){this.tabsIndex!=t.index&&(this.tabsIndex=t.index)},swiperChange:function(t){this.tabsIndex=t.detail.current},deleteMode:function(){this.isDeleteModel=!this.isDeleteModel,this.navRightTitle=this.isDeleteModel?"\u53d6\u6d88":"\u7ba1\u7406",this.$refs.downloadClass.showDelete(this.isDeleteModel),this.$refs.downloadingClass.showCancel(this.isDeleteModel)},loadData:function(){1==this.tabsIndex?this.$refs.downloadClass.init():this.$refs.downloadingClass.init()}}};e.default=s},"8d5a":function(t,e,r){"use strict";r.r(e);var n=r("2c40"),i=r.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return n[t]}))}(a);e["default"]=i.a},"8e35":function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={tabbar:{value:null,safeAreaInsetBottom:!0,border:!0,zIndex:1,activeColor:"#1989fa",inactiveColor:"#7d7e80",fixed:!0,placeholder:!0}}},"8ef7":function(t,e,r){"use strict";var n=r("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(r("127e")),a=n(r("ee10")),s=n(r("d18a")),o=n(r("0d8c")),u=n(r("cf10")),l={components:{searchHistory:s.default,searchEmpty:o.default,searchList:u.default},data:function(){return{wd:"",list:!1,history:!0,empty:!1,loading:!1}},methods:{search:function(t){var e=this;return(0,a.default)(i.default.mark((function r(){var n,a;return i.default.wrap((function(r){while(1)switch(r.prev=r.next){case 0:if(""!==t){r.next=2;break}return r.abrupt("return");case 2:e.wd=t,e.history=!1,e.empty=!1,e.list=!0,e.$nextTick((function(){e.$refs.list.search()})),n=uni.getStorageSync("search_history"),n?(n=JSON.parse(n),a=n.indexOf(t),a>=0?n.splice(a,1):n.length>=10&&n.pop(),n.unshift(t)):n=[t],uni.setStorage({key:"search_history",data:JSON.stringify(n)});case 10:case"end":return r.stop()}}),r)})))()},reset:function(){var t=this;this.list=!1,this.empty=!1,this.history=!0,this.$nextTick((function(){t.$refs.history.getHistory()}))},showEmpty:function(){this.list=!1,this.empty=!0},goBack:function(){this.history?this.back():this.reset()}}};e.default=l},"8f11":function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];a((function(e){s(e,t,(function(t){t.forceUpdate?/\.wgt$/i.test(t.downloadUrl)?o(t):/\.html$/i.test(t.downloadUrl)?plus.runtime.openURL(t.downloadUrl):"android"==i?o(t):plus.runtime.openURL(t.downloadUrl):u(t,(function(){/\.wgt$/i.test(t.downloadUrl)?o(t):/\.html$/i.test(t.downloadUrl)?plus.runtime.openURL(t.downloadUrl):"android"==i?o(t):plus.runtime.openURL(t.downloadUrl)}))}))}))},e.getCurrentNo=void 0;var n=r("0f81"),i=uni.getSystemInfoSync().platform,a=function(t){plus.runtime.getProperty(plus.runtime.appid,(function(e){t&&t({versionCode:e.versionCode,versionName:e.version})}))};e.getCurrentNo=a;var s=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2?arguments[2]:void 0,a={version:t.versionName,versionCode:t.versionCode};a.type="android"==i?1101:1102;var s="";uni.getSystemInfoSync();"ios"==uni.getSystemInfoSync().platform&&(s="ios"+uni.getSystemInfoSync().appId),"android"==uni.getSystemInfoSync().platform&&(s="android"+uni.getSystemInfoSync().appId),n.app.appupdata(a.version,a.versionCode,a.type,s).then((function(t){var n=t.data||{};n.versionCode==a.versionCode&&(n.downloadUrl=""),n&&n.downloadUrl?r&&r(n):e&&uni.showToast({title:"\u6682\u65e0\u65b0\u7248\u672c",icon:"none"})}))},o=function(t){var e,r={progress:!0,buttonNum:2};t.forceUpdate&&(r.buttonNum=0);var n=0,i=function(t){var e=new plus.nativeObj.View("maskLayer",{top:"0px",left:"0px",height:"100%",width:"100%",backgroundColor:"rgba(0,0,0,0.5)"}),r=l(t),n=new plus.nativeObj.View("popupView",{tag:"rect",top:(r.screenHeight-r.popupViewHeight)/2+"px",left:"15%",height:r.popupViewHeight+"px",width:"70%"}),i=0,a=0,s=0,o=2;t.buttonNum>=0&&(o=t.buttonNum);n.draw(r.elementList);var u={change:function(t){var e=[];if(t.progressValue&&(i=t.progressValue,e.push({tag:"rect",id:"progressValueBg",rectStyles:{radius:"4px",color:"DA2538"},position:{top:4*r.viewContentPadding+60+"px",left:r.viewContentPadding+"px",width:r.viewContentWidth*(t.progressValue/100)+"px",height:"8px"}})),t.progressTip&&(a=t.progressTip,e.push({tag:"font",id:"progressValue",text:t.progressTip,textStyles:{size:"14px",color:"DA2538",whiteSpace:"normal"},position:{top:4*r.viewContentPadding+20+"px",height:"30px"}})),t.contentText&&(s=t.contentText,e.push({tag:"font",id:"content",text:t.contentText,textStyles:{size:"16px",color:"#333",whiteSpace:"normal"},position:{top:2*r.viewContentPadding+30+"px",height:"30px"}})),t.buttonNum>=0&&o!=t.buttonNum){o=t.buttonNum,n.reset(),r=l(Object.assign({progressValue:i,progressTip:a,contentText:s},t));var u=[];r.elementList.map((function(t,r){var n=!1;e.forEach((function(e,r){t.id==e.id&&(n=!0)})),n||u.push(t)})),e=u.concat(e),n.setStyle({tag:"rect",top:(r.screenHeight-r.popupViewHeight)/2+"px",left:"15%",height:r.popupViewHeight+"px",width:"70%"}),n.draw(e)}else n.draw(e)},cancel:function(){e.hide(),n.hide()}};return n.addEventListener("click",(function(t){var i=r.popupViewHeight-r.viewContentPadding,a=r.popupViewWidth-r.viewContentPadding;if(t.clientY>i-40&&t.clientY<i)if(1==o)t.clientX>r.viewContentPadding&&t.clientX<a&&(e.hide(),n.hide(),u.reboot());else if(2==o){var s=(r.viewContentWidth-r.viewContentPadding)/2;t.clientX>r.viewContentPadding&&t.clientX<a-s-r.viewContentPadding?(e.hide(),n.hide(),u.cancelDownload()):t.clientX>a-s&&t.clientX<a&&(e.hide(),n.hide())}})),e.show(),n.show(),u}(r);e=plus.downloader.createDownload(t.downloadUrl,{filename:"_doc/update/"},(function(t,e){200==e?(i.change({progressValue:100,progressTip:"\u6b63\u5728\u5b89\u88c5\u6587\u4ef6...",progress:!0,buttonNum:0}),plus.runtime.install(t.filename,{},(function(){i.change({contentText:"\u5e94\u7528\u8d44\u6e90\u66f4\u65b0\u5b8c\u6210\uff01",buttonNum:1,progress:!1})}),(function(t){i.cancel(),plus.nativeUI.alert("\u5b89\u88c5\u6587\u4ef6\u5931\u8d25["+t.code+"]\uff1a,\u8bf7\u4e0b\u8f7d\u5b8c\u6574\u5305")}))):i.change({contentText:"\u6587\u4ef6\u4e0b\u8f7d\u5931\u8d25...",buttonNum:1,progress:!1})})),e.start(),e.addEventListener("statechanged",(function(t,e){switch(t.state){case 1:i.change({progressValue:0,progressTip:"\u51c6\u5907\u4e0b\u8f7d...",progress:!0});break;case 2:i.change({progressValue:0,progressTip:"\u5f00\u59cb\u4e0b\u8f7d...",progress:!0});break;case 3:var r=parseInt(t.downloadedSize/t.totalSize*100);r-n>=2&&(n=r,i.change({progressValue:r,progressTip:"\u5df2\u4e0b\u8f7d"+r+"%",progress:!0}));break}})),i.cancelDownload=function(){e&&e.abort(),uni.showToast({title:"\u5df2\u53d6\u6d88\u4e0b\u8f7d",icon:"none"})},i.reboot=function(){plus.runtime.restart()}};function u(t,e){var r=new plus.nativeObj.View("maskLayer",{top:"0px",left:"0px",height:"100%",width:"100%",backgroundColor:"rgba(0,0,0,0.5)"}),n=plus.screen.resolutionWidth,i=plus.screen.resolutionHeight,a=.7*n,s=parseInt(a-40),o=function(t,e){for(var r=t.split(""),n=r.length,i=0,a=0,s=[],o=0,u=0;u<n;u++)/[\u4e00-\u9fa5]|[\uFE30-\uFFA0]/g.test(r[u])?o>0?a+14+7*o>e?(s.push({type:"text",content:t.substring(i,u)}),i=u,a=14,o=0):(a+=14+7*o,o=0):a+14>e?(s.push({type:"text",content:t.substring(i,u)}),i=u,a=14):a+=14:/\n/g.test(r[u])?(s.push({type:"break",content:t.substring(i,u)}),i=u+1,a=0,o=0):"\\"==r[u]&&"n"==r[u+1]?(s.push({type:"break",content:t.substring(i,u)}),i=u+2,a=0,o=0):/[a-zA-Z0-9]/g.test(r[u])?(o+=1,a+7*o>e&&(s.push({type:"text",content:t.substring(i,u+1-o)}),i=u+1-o,a=7*o,o=0)):a+7>e?(s.push({type:"text",content:t.substring(i,u)}),i=u,a=7):a+=7;return i<n&&s.push({type:"text",content:t.substring(i,n)}),s}(t.versionInfo,s),u=220,l=[{src:"/static/images/ic_ar.png",id:"logo",tag:"img",position:{top:"0px",left:(a-124)/2+"px",width:"124px",height:"80px"}},{tag:"font",id:"title",text:"\u53d1\u73b0\u65b0\u7248\u672c"+t.versionName,textStyles:{size:"18px",color:"#333",weight:"bold",whiteSpace:"normal"},position:{top:"90px",left:"20px",width:s+"px",height:"30px"}}],c=130;o.forEach((function(t,e){e>0&&(u+=18,c+=18),l.push({tag:"font",id:"content"+e+1,text:t.content,textStyles:{size:"14px",color:"#666",lineSpacing:"50%",align:"left"},position:{top:c+"px",left:"20px",width:s+"px",height:"18px"}}),"break"==t.type&&(c+=10,u+=10)}));var A=new plus.nativeObj.View("popupView",{tag:"rect",top:(i-u)/2+"px",left:"15%",height:u+"px",width:"70%"});A.drawRect({color:"#FFFFFF",radius:"8px"},{top:"40px",height:u-40+"px"}),A.drawRect({radius:"3px",borderColor:"#f1f1f1",borderWidth:"1px"},{bottom:"20px",left:"20px",width:(s-20)/2+"px",height:"30px"}),A.drawRect({radius:"3px",color:"DA2538"},{bottom:"20px",left:(s-20)/2+40+"px",width:(s-20)/2+"px",height:"30px"}),l.push({tag:"font",id:"cancelText",text:"\u6682\u4e0d\u5347\u7ea7",textStyles:{size:"14px",color:"#666",lineSpacing:"0%",whiteSpace:"normal"},position:{bottom:"20px",left:"20px",width:(s-20)/2+"px",height:"30px"}}),l.push({tag:"font",id:"confirmText",text:"\u7acb\u5373\u5347\u7ea7",textStyles:{size:"14px",color:"#FFF",lineSpacing:"0%",whiteSpace:"normal"},position:{bottom:"20px",left:(s-20)/2+40+"px",width:(s-20)/2+"px",height:"30px"}}),A.draw(l),A.addEventListener("click",(function(t){var n=u-20,i=a-20,o=(s-20)/2;t.clientY>n-30&&t.clientY<n&&(t.clientX>20&&t.clientX<i-o-20?(r.hide(),A.hide()):t.clientX>i-o&&t.clientX<i&&(r.hide(),A.hide(),e&&e()))})),r.addEventListener("click",(function(){r.hide(),A.hide()})),r.show(),A.show()}function l(t){var e=plus.screen.resolutionWidth,r=plus.screen.resolutionHeight,n=.7*e,i=n-40,a=120,s=t.progressTip||"\u51c6\u5907\u4e0b\u8f7d...",o=t.contentText||"\u6b63\u5728\u4e3a\u60a8\u66f4\u65b0\uff0c\u8bf7\u8010\u5fc3\u7b49\u5f85",u=[{tag:"rect",color:"#FFFFFF",rectStyles:{radius:"8px"}},{tag:"font",id:"title",text:"\u5347\u7ea7APP",textStyles:{size:"16px",color:"#333",weight:"bold",verticalAlign:"middle",whiteSpace:"normal"},position:{top:"20px",height:"30px"}},{tag:"font",id:"content",text:o,textStyles:{size:"14px",color:"#333",verticalAlign:"middle",whiteSpace:"normal"},position:{top:"70px",height:"20px"}}];return t.progress&&(a+=60,u=u.concat([{tag:"font",id:"progressValue",text:s,textStyles:{size:"14px",color:"DA2538",whiteSpace:"normal"},position:{top:"100px",height:"30px"}},{tag:"rect",id:"progressBg",rectStyles:{radius:"4px",borderColor:"#f1f1f1",borderWidth:"1px"},position:{top:"140px",left:"20px",width:i+"px",height:"8px"}}])),2==t.buttonNum&&(a+=50,u=u.concat([{tag:"rect",rectStyles:{radius:"3px",borderColor:"#f1f1f1",borderWidth:"1px"},position:{bottom:"20px",left:"20px",width:(i-20)/2+"px",height:"30px"}},{tag:"rect",rectStyles:{radius:"3px",color:"DA2538"},position:{bottom:"20px",left:(i-20)/2+40+"px",width:(i-20)/2+"px",height:"30px"}},{tag:"font",id:"cancelText",text:"\u53d6\u6d88\u4e0b\u8f7d",textStyles:{size:"14px",color:"#666",lineSpacing:"0%",whiteSpace:"normal"},position:{bottom:"20px",left:"20px",width:(i-20)/2+"px",height:"30px"}},{tag:"font",id:"confirmText",text:"\u540e\u53f0\u4e0b\u8f7d",textStyles:{size:"14px",color:"#FFF",lineSpacing:"0%",whiteSpace:"normal"},position:{bottom:"20px",left:(i-20)/2+40+"px",width:(i-20)/2+"px",height:"30px"}}])),1==t.buttonNum&&(a+=60,u=u.concat([{tag:"rect",rectStyles:{radius:"6px",color:"DA2538"},position:{bottom:"20px",left:"20px",width:i+"px",height:"40px"}},{tag:"font",id:"confirmText",text:"\u5173\u95ed",textStyles:{size:"14px",color:"#FFF",lineSpacing:"0%"},position:{bottom:"20px",left:"20px",width:i+"px",height:"40px"}}])),{popupViewHeight:a,popupViewWidth:n,screenHeight:r,viewContentWidth:i,viewContentPadding:20,elementList:u}}},"8f28":function(t,e,r){"use strict";var n=r("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(r("5202")),a={navbar:{safeAreaInsetTop:!0,placeholder:!1,fixed:!0,border:!1,leftIcon:"arrow-left",leftText:"",rightText:"",rightIcon:"",title:"",bgColor:"#ffffff",titleWidth:"400rpx",height:"44px",leftIconSize:20,leftIconColor:i.default.mainColor,autoBack:!1,titleStyle:""}};e.default=a},"8ffa":function(t,e,r){var n=r("7647");t.exports=function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&n(t,e)},t.exports.__esModule=!0,t.exports["default"]=t.exports},9008:function(t,e){t.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.__esModule=!0,t.exports["default"]=t.exports},"910d":function(t,e,r){"use strict";r.r(e);var n=r("5c06"),i=r.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return n[t]}))}(a);e["default"]=i.a},"913b":function(t,e,r){"use strict";r.r(e);var n=r("8121"),i=r("c477");for(var a in i)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return i[t]}))}(a);var s=r("828b"),o=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);e["default"]=o.exports},"915f":function(t,e,r){"use strict";r.r(e);var n=r("0852"),i=r("04cc");for(var a in i)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return i[t]}))}(a);var s=r("828b"),o=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);e["default"]=o.exports},"917b":function(t,e,r){"use strict";var n=r("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(r("7ca3")),a=n(r("b94c")),s=n(r("9657"));function o(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function u(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?o(Object(r),!0).forEach((function(e){(0,i.default)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var l={name:"u-transition",data:function(){return{inited:!1,viewStyle:{},status:"",transitionEnded:!1,display:!1,classes:""}},computed:{mergeStyle:function(){var t=this.viewStyle,e=this.customStyle;return u(u({transitionDuration:"".concat(this.duration,"ms"),transitionTimingFunction:this.timingFunction},uni.$u.addStyle(e)),t)}},mixins:[uni.$u.mpMixin,uni.$u.mixin,s.default,a.default],watch:{show:{handler:function(t){t?this.vueEnter():this.vueLeave()},immediate:!0}}};e.default=l},"91de":function(t,e,r){var n,i,a,s=r("3b2d");(function(o,u){"object"===s(e)?t.exports=e=u(r("707d")):(i=[r("707d")],n=u,a="function"===typeof n?n.apply(e,i):n,void 0===a||(t.exports=a))})(0,(function(t){return function(e){var r=t,n=r.lib,i=n.WordArray,a=n.Hasher,s=r.algo,o=[];(function(){for(var t=0;t<64;t++)o[t]=4294967296*e.abs(e.sin(t+1))|0})();var u=s.MD5=a.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(t,e){for(var r=0;r<16;r++){var n=e+r,i=t[n];t[n]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var a=this._hash.words,s=t[e+0],u=t[e+1],f=t[e+2],h=t[e+3],p=t[e+4],g=t[e+5],v=t[e+6],m=t[e+7],y=t[e+8],w=t[e+9],b=t[e+10],_=t[e+11],B=t[e+12],C=t[e+13],E=t[e+14],x=t[e+15],T=a[0],S=a[1],k=a[2],I=a[3];T=l(T,S,k,I,s,7,o[0]),I=l(I,T,S,k,u,12,o[1]),k=l(k,I,T,S,f,17,o[2]),S=l(S,k,I,T,h,22,o[3]),T=l(T,S,k,I,p,7,o[4]),I=l(I,T,S,k,g,12,o[5]),k=l(k,I,T,S,v,17,o[6]),S=l(S,k,I,T,m,22,o[7]),T=l(T,S,k,I,y,7,o[8]),I=l(I,T,S,k,w,12,o[9]),k=l(k,I,T,S,b,17,o[10]),S=l(S,k,I,T,_,22,o[11]),T=l(T,S,k,I,B,7,o[12]),I=l(I,T,S,k,C,12,o[13]),k=l(k,I,T,S,E,17,o[14]),S=l(S,k,I,T,x,22,o[15]),T=c(T,S,k,I,u,5,o[16]),I=c(I,T,S,k,v,9,o[17]),k=c(k,I,T,S,_,14,o[18]),S=c(S,k,I,T,s,20,o[19]),T=c(T,S,k,I,g,5,o[20]),I=c(I,T,S,k,b,9,o[21]),k=c(k,I,T,S,x,14,o[22]),S=c(S,k,I,T,p,20,o[23]),T=c(T,S,k,I,w,5,o[24]),I=c(I,T,S,k,E,9,o[25]),k=c(k,I,T,S,h,14,o[26]),S=c(S,k,I,T,y,20,o[27]),T=c(T,S,k,I,C,5,o[28]),I=c(I,T,S,k,f,9,o[29]),k=c(k,I,T,S,m,14,o[30]),S=c(S,k,I,T,B,20,o[31]),T=A(T,S,k,I,g,4,o[32]),I=A(I,T,S,k,y,11,o[33]),k=A(k,I,T,S,_,16,o[34]),S=A(S,k,I,T,E,23,o[35]),T=A(T,S,k,I,u,4,o[36]),I=A(I,T,S,k,p,11,o[37]),k=A(k,I,T,S,m,16,o[38]),S=A(S,k,I,T,b,23,o[39]),T=A(T,S,k,I,C,4,o[40]),I=A(I,T,S,k,s,11,o[41]),k=A(k,I,T,S,h,16,o[42]),S=A(S,k,I,T,v,23,o[43]),T=A(T,S,k,I,w,4,o[44]),I=A(I,T,S,k,B,11,o[45]),k=A(k,I,T,S,x,16,o[46]),S=A(S,k,I,T,f,23,o[47]),T=d(T,S,k,I,s,6,o[48]),I=d(I,T,S,k,m,10,o[49]),k=d(k,I,T,S,E,15,o[50]),S=d(S,k,I,T,g,21,o[51]),T=d(T,S,k,I,B,6,o[52]),I=d(I,T,S,k,h,10,o[53]),k=d(k,I,T,S,b,15,o[54]),S=d(S,k,I,T,u,21,o[55]),T=d(T,S,k,I,y,6,o[56]),I=d(I,T,S,k,x,10,o[57]),k=d(k,I,T,S,v,15,o[58]),S=d(S,k,I,T,C,21,o[59]),T=d(T,S,k,I,p,6,o[60]),I=d(I,T,S,k,_,10,o[61]),k=d(k,I,T,S,f,15,o[62]),S=d(S,k,I,T,w,21,o[63]),a[0]=a[0]+T|0,a[1]=a[1]+S|0,a[2]=a[2]+k|0,a[3]=a[3]+I|0},_doFinalize:function(){var t=this._data,r=t.words,n=8*this._nDataBytes,i=8*t.sigBytes;r[i>>>5]|=128<<24-i%32;var a=e.floor(n/4294967296),s=n;r[15+(i+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),r[14+(i+64>>>9<<4)]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),t.sigBytes=4*(r.length+1),this._process();for(var o=this._hash,u=o.words,l=0;l<4;l++){var c=u[l];u[l]=16711935&(c<<8|c>>>24)|4278255360&(c<<24|c>>>8)}return o},clone:function(){var t=a.clone.call(this);return t._hash=this._hash.clone(),t}});function l(t,e,r,n,i,a,s){var o=t+(e&r|~e&n)+i+s;return(o<<a|o>>>32-a)+e}function c(t,e,r,n,i,a,s){var o=t+(e&n|r&~n)+i+s;return(o<<a|o>>>32-a)+e}function A(t,e,r,n,i,a,s){var o=t+(e^r^n)+i+s;return(o<<a|o>>>32-a)+e}function d(t,e,r,n,i,a,s){var o=t+(r^(e|~n))+i+s;return(o<<a|o>>>32-a)+e}r.MD5=a._createHelper(u),r.HmacMD5=a._createHmacHelper(u)}(Math),t.MD5}))},9239:function(t,e,r){"use strict";(function(t){var n=r("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(r("af34")),a=n(r("3b2d")),s=n(r("7ca3")),o=r("2863");function u(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function l(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?u(Object(r),!0).forEach((function(e){(0,s.default)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var c={name:"uniTransition",emits:["click","change"],props:{show:{type:Boolean,default:!1},modeClass:{type:[Array,String],default:function(){return"fade"}},duration:{type:Number,default:300},styles:{type:Object,default:function(){return{}}},customClass:{type:String,default:""},onceRender:{type:Boolean,default:!1}},data:function(){return{isShow:!1,transform:"",opacity:1,animationData:{},durationTime:300,config:{}}},watch:{show:{handler:function(t){t?this.open():this.isShow&&this.close()},immediate:!0}},computed:{stylesObject:function(){var t=l(l({},this.styles),{},{"transition-duration":this.duration/1e3+"s"}),e="";for(var r in t){var n=this.toLine(r);e+=n+":"+t[r]+";"}return e},transformStyles:function(){return"transform:"+this.transform+";opacity:"+this.opacity+";"+this.stylesObject}},created:function(){this.config={duration:this.duration,timingFunction:"ease",transformOrigin:"50% 50%",delay:0},this.durationTime=this.duration},methods:{init:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t.duration&&(this.durationTime=t.duration),this.animation=(0,o.createAnimation)(Object.assign(this.config,t),this)},onClick:function(){this.$emit("click",{detail:this.isShow})},step:function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.animation){for(var n in e)try{var s;if("object"===(0,a.default)(e[n]))(s=this.animation)[n].apply(s,(0,i.default)(e[n]));else this.animation[n](e[n])}catch(o){t("error","\u65b9\u6cd5 ".concat(n," \u4e0d\u5b58\u5728")," at uni_modules/uni-transition/components/uni-transition/uni-transition.vue:148")}return this.animation.step(r),this}},run:function(t){this.animation&&this.animation.run(t)},open:function(){var t=this;clearTimeout(this.timer),this.transform="",this.isShow=!0;var e=this.styleInit(!1),r=e.opacity,n=e.transform;"undefined"!==typeof r&&(this.opacity=r),this.transform=n,this.$nextTick((function(){t.timer=setTimeout((function(){t.animation=(0,o.createAnimation)(t.config,t),t.tranfromInit(!1).step(),t.animation.run(),t.$emit("change",{detail:t.isShow})}),20)}))},close:function(t){var e=this;this.animation&&this.tranfromInit(!0).step().run((function(){e.isShow=!1,e.animationData=null,e.animation=null;var t=e.styleInit(!1),r=t.opacity,n=t.transform;e.opacity=r||1,e.transform=n,e.$emit("change",{detail:e.isShow})}))},styleInit:function(t){var e=this,r={transform:""},n=function(t,n){"fade"===n?r.opacity=e.animationType(t)[n]:r.transform+=e.animationType(t)[n]+" "};return"string"===typeof this.modeClass?n(t,this.modeClass):this.modeClass.forEach((function(e){n(t,e)})),r},tranfromInit:function(t){var e=this,r=function(t,r){var n=null;"fade"===r?n=t?0:1:(n=t?"-100%":"0","zoom-in"===r&&(n=t?.8:1),"zoom-out"===r&&(n=t?1.2:1),"slide-right"===r&&(n=t?"100%":"0"),"slide-bottom"===r&&(n=t?"100%":"0")),e.animation[e.animationMode()[r]](n)};return"string"===typeof this.modeClass?r(t,this.modeClass):this.modeClass.forEach((function(e){r(t,e)})),this.animation},animationType:function(t){return{fade:t?1:0,"slide-top":"translateY(".concat(t?"0":"-100%",")"),"slide-right":"translateX(".concat(t?"0":"100%",")"),"slide-bottom":"translateY(".concat(t?"0":"100%",")"),"slide-left":"translateX(".concat(t?"0":"-100%",")"),"zoom-in":"scaleX(".concat(t?1:.8,") scaleY(").concat(t?1:.8,")"),"zoom-out":"scaleX(".concat(t?1:1.2,") scaleY(").concat(t?1:1.2,")")}},animationMode:function(){return{fade:"opacity","slide-top":"translateY","slide-right":"translateX","slide-bottom":"translateY","slide-left":"translateX","zoom-in":"scale","zoom-out":"scale"}},toLine:function(t){return t.replace(/([A-Z])/g,"-$1").toLowerCase()}}};e.default=c}).call(this,r("f3b9")["default"])},9278:function(t,e,r){"use strict";r.r(e);var n=r("8ca1"),i=r("a942");for(var a in i)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return i[t]}))}(a);var s=r("828b"),o=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);e["default"]=o.exports},9304:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={transition:{show:!1,mode:"fade",duration:"300",timingFunction:"ease-out"}}},"931d":function(t,e,r){var n=r("7647"),i=r("011a");t.exports=function(t,e,r){if(i())return Reflect.construct.apply(null,arguments);var a=[null];a.push.apply(a,e);var s=new(t.bind.apply(t,a));return r&&n(s,r.prototype),s},t.exports.__esModule=!0,t.exports["default"]=t.exports},"93b7":function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={indexAnchor:{text:"",color:"#606266",size:14,bgColor:"#dedede",height:32}}},"93c7":function(t,e,r){"use strict";r.d(e,"b",(function(){return i})),r.d(e,"c",(function(){return a})),r.d(e,"a",(function(){return n}));var n={uTabs:r("58b7").default,uCheckboxGroup:r("04e7").default,uCheckbox:r("7a1a").default,uButton:r("9a24").default},i=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("view",{staticClass:t._$s(0,"sc","page-container"),attrs:{_i:0}},[r("view",{staticClass:t._$s(1,"sc","login-header-bg"),attrs:{_i:1}},[r("view",{staticClass:t._$s(2,"sc","flex-row "),attrs:{_i:2}},[r("view",{staticClass:t._$s(3,"sc","bgleft"),attrs:{_i:3}}),r("view",{staticClass:t._$s(4,"sc","bgright"),attrs:{_i:4}})]),r("view",{staticClass:t._$s(5,"sc","logo"),attrs:{_i:5}},[r("image",{staticClass:t._$s(6,"sc","logo"),attrs:{_i:6}})])]),r("view",{staticClass:t._$s(7,"sc","nav-tabs"),attrs:{_i:7}},[r("u-tabs",{attrs:{lineColor:"#DA2538","line-width":"60px","line-hight":"3px",scrollable:!1,"active-style":{fontSize:"18px",fontWeight:"bold",color:"#fff"},list:t.navs,current:t.navIndex,_i:8},on:{click:t.tabsClick}})],1),t._$s(9,"i",0==t.navIndex)?r("view",{staticClass:t._$s(9,"sc","login-input"),attrs:{_i:9}},[r("view",{staticClass:t._$s(10,"sc","input-box align-center"),attrs:{_i:10}},[r("view",{staticClass:t._$s(11,"sc","code"),attrs:{_i:11}}),r("input",{directives:[{name:"model",rawName:"v-model",value:t.phone,expression:"phone"}],attrs:{_i:12},domProps:{value:t._$s(12,"v-model",t.phone)},on:{input:function(e){e.target.composing||(t.phone=e.target.value)}}})]),r("view",{staticClass:t._$s(13,"sc","input-box align-center"),attrs:{_i:13}},[r("input",{directives:[{name:"model",rawName:"v-model",value:t.password,expression:"password"}],attrs:{_i:14},domProps:{value:t._$s(14,"v-model",t.password)},on:{input:function(e){e.target.composing||(t.password=e.target.value)}}})])]):r("view",{staticClass:t._$s(15,"sc","login-input"),attrs:{_i:15}},[r("view",{staticClass:t._$s(16,"sc","input-box align-center"),attrs:{_i:16}},[r("input",{directives:[{name:"model",rawName:"v-model",value:t.email,expression:"email"}],attrs:{_i:17},domProps:{value:t._$s(17,"v-model",t.email)},on:{input:function(e){e.target.composing||(t.email=e.target.value)}}})]),r("view",{staticClass:t._$s(18,"sc","input-box align-center"),attrs:{_i:18}},[r("input",{directives:[{name:"model",rawName:"v-model",value:t.password,expression:"password"}],attrs:{_i:19},domProps:{value:t._$s(19,"v-model",t.password)},on:{input:function(e){e.target.composing||(t.password=e.target.value)}}})])]),r("view",{staticClass:t._$s(20,"sc","forgot flex-row justify-between"),attrs:{_i:20}},[r("u-checkbox-group",{attrs:{placement:"column",activeColor:"#DA2538",_i:21},model:{value:t._$s(21,"v-model",t.radiovalue),callback:function(e){t.radiovalue=e},expression:"radiovalue"}},[r("u-checkbox",{attrs:{customStyle:{marginBottom:"8px",color:"#a7a8b0"},label:"\u8bb0\u4f4f\u5bc6\u7801",name:"remember",_i:22}})],1),r("navigator",{})],1),r("view",{staticClass:t._$s(24,"sc","login-button"),attrs:{_i:24}},[r("u-button",{attrs:{shape:"circle",loading:t.loading,disabled:""===t.phone&&""===t.email||t.loading,color:"linear-gradient(90deg, #DA2538 0%, #F75F68 100%)",text:"\u767b\u5f55",_i:25},on:{click:t.login}})],1),r("view",{staticClass:t._$s(26,"sc","login-bottom align-center"),attrs:{_i:26}},[r("text"),r("navigator",{staticClass:t._$s(28,"sc","link-button"),attrs:{_i:28}})])])},a=[]},"93d3":function(t,e,r){"use strict";r.r(e);var n=r("2c9a"),i=r.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return n[t]}))}(a);e["default"]=i.a},"947e":function(t,e,r){"use strict";var n=r("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(r("127e")),a=n(r("ee10")),s=r("0f81"),o={data:function(){return{list:[],page:1,count:0,refreshTriggered:!1,loadStatus:"loadmore"}},onPullDownRefresh:function(){this.refreshTriggered=!0,this.loadStatus="loadmore",this.page=1,this.list=[],this.getData()},onReachBottom:function(){this.getData()},onLoad:function(){var t=this;return(0,a.default)(i.default.mark((function e(){var r;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$onLaunched;case 2:r=getApp().globalData.userToken,r?t.getData():uni.redirectTo({url:"/pages/user/login"});case 4:case"end":return e.stop()}}),e)})))()},methods:{getData:function(){var t=this;return(0,a.default)(i.default.mark((function e(){return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if("nomore"!==t.loadStatus&&"loading"!==t.loadStatus){e.next=2;break}return e.abrupt("return");case 2:return t.loadStatus="loading",e.next=5,s.user.cashList(t.page).then((function(e){1==e.code?(e.data.page<e.data.page_total?(t.loadStatus="loadmore",t.page++):t.loadStatus="nomore",t.list=t.list.concat(e.data.list),t.count=e.data.count):t.loadStatus="loadmore"})).catch((function(e){t.loadStatus="loadmore"}));case 5:t.refreshTriggered&&(t.refreshTriggered=!1,uni.stopPullDownRefresh());case 6:case"end":return e.stop()}}),e)})))()}}};e.default=o},"94f4":function(t,e,r){"use strict";r.r(e);var n=r("e67cc"),i=r("51f1");for(var a in i)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return i[t]}))}(a);var s=r("828b"),o=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,"76762528",null,!1,n["a"],void 0);e["default"]=o.exports},"951c":function(t,e){t.exports=Vue},9544:function(t,e,r){"use strict";(function(t){var n=r("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(r("127e")),a=n(r("ee10")),s={props:{src:{type:String,default:""},mode:{type:String,default:"aspectFill"}},data:function(){return{url:"",loadedImage:!1,hasReloaded:!1,request:null}},watch:{src:{handler:function(t,e){if(-1!=t.indexOf("_xfile")){this.loadedImage=!1;var r=t;this.error(r)}else this.url=t,this.loadedImage=!0},immediate:!0}},mounted:function(){},beforeDestroy:function(){t("log","\u9500\u6bc1"," at components/vod-image.vue:43"),this.request&&this.request.abort(),"string"===typeof this.url&&this.url.startsWith("blob:")&&URL.revokeObjectURL(this.url)},methods:{loadfail:function(t){if(this.hasReloaded)this.$emit("error");else{if(this.hasReloaded=!0,this.url.startsWith("data:image/")&&this.url.includes(";base64,")){this.url;return void(this.loadedImage=!0)}if(-1!=this.url.indexOf("_xfile")){this.loadedImage=!1;var e=this.url+"?"+(new Date).getTime();this.error(e)}else this.url=this.url+"?"+(new Date).getTime(),this.loadedImage=!0}},load:function(t){this.$emit("load",!0)},error:function(t){var e=this;return(0,a.default)(i.default.mark((function r(){return i.default.wrap((function(r){while(1)switch(r.prev=r.next){case 0:return r.next=2,e.loadImage(t);case 2:return e.url=r.sent,e.loadedImage=!0,r.abrupt("return");case 5:case"end":return r.stop()}}),r)})))()},loadImage:function(t){var e=this;return new Promise((function(r,n){e.request=uni.request({method:"get",url:t,responseType:"arraybuffer",success:function(e){if(e&&200==e.statusCode)try{for(var n=new Uint8Array(e.data),i="",a=n.byteLength,s=0;s<a;s++)n[s]=136^n[s];for(s=0;s<a;s++)i+=String.fromCharCode(n[s]);var o=btoa(i);r("data:image/jpeg;base64,"+o)}catch(u){r(t)}else r(t)},fail:function(){r(t)}})}))}}};e.default=s}).call(this,r("f3b9")["default"])},9548:function(t,e,r){var n,i,a,s=r("3b2d");(function(o,u,l){"object"===s(e)?t.exports=e=u(r("707d"),r("8712")):(i=[r("707d"),r("8712")],n=u,a="function"===typeof n?n.apply(e,i):n,void 0===a||(t.exports=a))})(0,(function(t){return function(){var e=t,r=e.lib,n=r.WordArray,i=e.algo,a=i.SHA256,s=i.SHA224=a.extend({_doReset:function(){this._hash=new n.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var t=a._doFinalize.call(this);return t.sigBytes-=4,t}});e.SHA224=a._createHelper(s),e.HmacSHA224=a._createHmacHelper(s)}(),t.SHA224}))},9618:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,r){var n=r.config.validateStatus,i=r.statusCode;!i||n&&!n(i)?e(r):t(r)}},9657:function(t,e,r){"use strict";var n=r("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(r("127e")),a=n(r("ee10")),s=(n(r("71b1")),function(t){return{enter:"u-".concat(t,"-enter u-").concat(t,"-enter-active"),"enter-to":"u-".concat(t,"-enter-to u-").concat(t,"-enter-active"),leave:"u-".concat(t,"-leave u-").concat(t,"-leave-active"),"leave-to":"u-".concat(t,"-leave-to u-").concat(t,"-leave-active")}}),o={methods:{clickHandler:function(){this.$emit("click")},vueEnter:function(){var t=this,e=s(this.mode);this.status="enter",this.$emit("beforeEnter"),this.inited=!0,this.display=!0,this.classes=e.enter,this.$nextTick((0,a.default)(i.default.mark((function r(){return i.default.wrap((function(r){while(1)switch(r.prev=r.next){case 0:t.$emit("enter"),t.transitionEnded=!1,t.$emit("afterEnter"),t.classes=e["enter-to"];case 4:case"end":return r.stop()}}),r)}))))},vueLeave:function(){var t=this;if(this.display){var e=s(this.mode);this.status="leave",this.$emit("beforeLeave"),this.classes=e.leave,this.$nextTick((function(){t.transitionEnded=!1,t.$emit("leave"),setTimeout(t.onTransitionEnd,t.duration),t.classes=e["leave-to"]}))}},onTransitionEnd:function(){this.transitionEnded||(this.transitionEnded=!0,this.$emit("leave"===this.status?"afterLeave":"afterEnter"),!this.show&&this.display&&(this.display=!1,this.inited=!1))}}};e.default=o},"976a":function(t,e,r){"use strict";var n=r("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(r("127e")),a=n(r("ee10")),s=n(r("7d40")),o=r("0f81"),u=(n(r("4231")),{components:{reward:s.default},data:function(){return{user:{user_points:0,user_down_points:0,is_sign:0},groupLink:[],adv:null,advShow:!1,signed:!1,isLogin:!1,refreshTriggered:!1,timeDifference:""}},onShow:function(){var t=this;return(0,a.default)(i.default.mark((function e(){var r;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$onLaunched;case 2:r=getApp().globalData.userToken,t.isLogin=!!r,t.getInfo();case 5:case"end":return e.stop()}}),e)})))()},methods:{getInfo:function(){var t=this;return(0,a.default)(i.default.mark((function e(){return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,o.user.info().then((function(e){if(1==e.code){if(t.user=e.data.user,1===t.user.user_vip){var r=t.user.user_end_time,n=new Date(1e3*r),i=new Date;t.timeDifference=Math.ceil((n-i)/864e5)}e.data.group_link&&(t.groupLink=e.data.group_link),e.data.adv&&(t.adv=e.data.adv)}})).catch((function(t){}));case 2:t.refreshTriggered=!1;case 3:case"end":return e.stop()}}),e)})))()},sign:function(){this.isLogin?1===this.user.user_sign?uni.showToast({icon:"none",title:"\u4eca\u5929\u5df2\u7b7e\u5230~!",duration:3e3}):uni.navigateTo({url:"/pages/user/sign"}):uni.navigateTo({url:"/pages/user/login"})},userInfo:function(){this.isLogin?uni.navigateTo({url:"/pages/user/info"}):uni.navigateTo({url:"/pages/user/login"})},refresh:function(){this.advShow=!0,this.refreshTriggered=!0,this.getInfo()}}});e.default=u},"97ab":function(t,e,r){"use strict";var n=r("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(r("51f7")),a={name:"u-search",mixins:[uni.$u.mpMixin,uni.$u.mixin,i.default],data:function(){return{keyword:"",showClear:!1,show:!1,focused:this.focus}},watch:{keyword:function(t){this.$emit("input",t),this.$emit("change",t)},value:{immediate:!0,handler:function(t){this.keyword=t}}},computed:{showActionBtn:function(){return!this.animation&&this.showAction}},methods:{inputChange:function(t){this.keyword=t.detail.value},clear:function(){var t=this;this.keyword="",this.$nextTick((function(){t.$emit("clear")}))},search:function(t){this.$emit("search",t.detail.value);try{uni.hideKeyboard()}catch(t){}},custom:function(){this.$emit("custom",this.keyword);try{uni.hideKeyboard()}catch(t){}},getFocus:function(){this.focused=!0,this.animation&&this.showAction&&(this.show=!0),this.$emit("focus",this.keyword)},blur:function(){var t=this;setTimeout((function(){t.focused=!1}),100),this.show=!1,this.$emit("blur",this.keyword)},clickHandler:function(){this.disabled&&this.$emit("click")},clickIcon:function(){this.$emit("clickIcon")}}};e.default=a},"98b2":function(t,e,r){"use strict";r.r(e);var n=r("5779"),i=r("15b7");for(var a in i)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return i[t]}))}(a);var s=r("828b"),o=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);e["default"]=o.exports},9925:function(t,e,r){"use strict";r.r(e);var n=r("fe73"),i=r("9b03");for(var a in i)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return i[t]}))}(a);var s=r("828b"),o=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,"4d0e7793",null,!1,n["a"],void 0);e["default"]=o.exports},9929:function(t,e,r){"use strict";r.r(e);var n=r("a472"),i=r.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return n[t]}))}(a);e["default"]=i.a},"993d":function(t,e,r){"use strict";r.r(e);var n=r("014e"),i=r.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return n[t]}))}(a);e["default"]=i.a},"994d":function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={}},"99fc":function(t,e,r){"use strict";r.r(e);var n=r("6bb7"),i=r.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return n[t]}))}(a);e["default"]=i.a},"9a24":function(t,e,r){"use strict";r.r(e);var n=r("f73e"),i=r("3612");for(var a in i)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return i[t]}))}(a);var s=r("828b"),o=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,"31f7bae8",null,!1,n["a"],void 0);e["default"]=o.exports},"9a7b":function(t,e,r){"use strict";r.r(e);var n=r("9cb2"),i=r("99fc");for(var a in i)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return i[t]}))}(a);var s=r("828b"),o=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);e["default"]=o.exports},"9ab1":function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={overlay:{show:!1,zIndex:10070,duration:300,opacity:.5}}},"9afb":function(t,e,r){"use strict";r.d(e,"b",(function(){return i})),r.d(e,"c",(function(){return a})),r.d(e,"a",(function(){return n}));var n={uTabs:r("58b7").default,uIcon:r("712b").default,uLoadmore:r("bc5a").default},i=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("view",[r("view",{staticClass:t._$s(1,"sc","condition-box"),attrs:{_i:1},on:{touchmove:function(t){t.stopPropagation()}}},[t._l(t._$s(2,"f",{forItems:t.condition}),(function(e,n,i,a){return t._$s("2-"+a,"i",t.loaded)?[r("u-tabs",{key:t._$s(2,"f",{forIndex:i,keyIndex:0,key:"2-0"+a}),staticClass:t._$s("3-"+a,"sc","tabs"),attrs:{"line-width":0,"line-height":0,"item-style":{height:"35px",padding:"0 5px"},"inactive-style":{padding:"2px 10px",fontSize:"14px",color:"#AAABAF"},"active-style":{padding:"2px 10px",fontSize:"13px",fontWeight:500,color:"#DA2538",background:"#FEEEEF",borderRadius:"4px"},list:e.data,current:e.current,_i:"3-"+a},on:{click:function(e){return t.tabsClick(n,e)}}},[t._$s("4-"+a,"i",e.data&&e.data.length>6)?r("view",{attrs:{_i:"4-"+a},on:{click:function(r){return t.openAll(n,e)}},slot:"right"},[r("u-icon",{attrs:{name:"list-dot",size:"24",color:"#fff",_i:"5-"+a}})],1):t._e()])]:t._e()}))],2),r("view",{staticClass:t._$s(6,"sc","vod-container"),attrs:{_i:6}},t._l(t._$s(7,"f",{forItems:t.list}),(function(e,n,i,a){return r("view",{key:t._$s(7,"f",{forIndex:i,key:n})},[r("vod-item",{attrs:{item:e,_i:"8-"+a}}),t._$s("9-"+a,"i",(n+1)%8===0&&t.banner_adv.length)?r("adv-item",{attrs:{adv:t.banner_adv[Math.floor(Math.random()*t.banner_adv.length)],_i:"9-"+a}}):t._e()],1)})),0),r("sortListAll",{ref:"popup",attrs:{item:t.item,itemIndex:t.itemIndex,_i:10},on:{tabClick:t.tabsClick}}),r("view",{staticClass:t._$s(11,"sc","load-more"),attrs:{_i:11}},[r("u-loadmore",{attrs:{status:t.loadStatus,"loading-icon":"semicircle",line:!0,_i:12}})],1)],1)},a=[]},"9b03":function(t,e,r){"use strict";r.r(e);var n=r("c8fb"),i=r.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return n[t]}))}(a);e["default"]=i.a},"9c53":function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={calendar:{title:"\u65e5\u671f\u9009\u62e9",showTitle:!0,showSubtitle:!0,mode:"single",startText:"\u5f00\u59cb",endText:"\u7ed3\u675f",customList:function(){return[]},color:"#3c9cff",minDate:0,maxDate:0,defaultDate:null,maxCount:Number.MAX_SAFE_INTEGER,rowHeight:56,formatter:null,showLunar:!1,showMark:!0,confirmText:"\u786e\u5b9a",confirmDisabledText:"\u786e\u5b9a",show:!1,closeOnClickOverlay:!1,readonly:!1,showConfirm:!0,maxRange:Number.MAX_SAFE_INTEGER,rangePrompt:"",showRangePrompt:!0,allowSameDay:!1,round:0,monthNum:3}};e.default=n},"9c58":function(t,e,r){"use strict";(function(t){var n=r("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(r("127e")),a=n(r("ee10")),s=r("0f81"),o={data:function(){return{data:{},type:"points",points_num:0,down_num:0,points_maxNum:0,down_maxNum:0,loading:!1}},onLoad:function(){var t=this;return(0,a.default)(i.default.mark((function e(){var r;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$onLaunched;case 2:r=getApp().globalData.userToken,r?t.getData():uni.redirectTo({url:"/pages/user/login"});case 4:case"end":return e.stop()}}),e)})))()},methods:{getData:function(){var t=this;s.user.exchange().then((function(e){1==e.code&&(t.data=e.data,t.points_maxNum=Math.floor(t.data.user_coin/t.data.exchange_points),t.down_maxNum=Math.floor(t.data.user_coin/t.data.exchange_down_points))}))},exchange:function(){var e=this;return(0,a.default)(i.default.mark((function r(){var n;return i.default.wrap((function(r){while(1)switch(r.prev=r.next){case 0:if(n="down_points"==e.type?"down_":"points_",t("log",e.type,e[n+"num"]," at pages/user/coin-exchange.vue:105"),0!==e[n+"num"]){r.next=5;break}return uni.showToast({icon:"none",title:"\u8bf7\u6dfb\u52a0\u5151\u6362\u6b21\u6570~!"}),r.abrupt("return");case 5:if(!(e[n+"num"]>e[n+"maxNum"])){r.next=9;break}return e[n+"num"]=0,uni.showToast({icon:"none",title:"\u60a8\u5f53\u524d\u7684\u91d1\u5e01\u4e0d\u8db3~!"}),r.abrupt("return");case 9:return e.loading=!0,r.next=12,s.user.exchangePoints(e.type,e[n+"num"]).then((function(t){uni.showToast({icon:"none",title:t.msg,duration:3e3}),1===t.code&&(e.data.user_coin=t.data.user_coin)})).catch((function(t){}));case 12:e.loading=!1;case 13:case"end":return r.stop()}}),r)})))()},onSelect:function(t){this.type=t},onReduce:function(t){this[t+"num"]>0&&this[t+"num"]--},onAdd:function(t){this[t+"num"]<this[t+"maxNum"]&&this[t+"num"]++},onAll:function(t){this[t+"num"]=this[t+"maxNum"]}}};e.default=o}).call(this,r("f3b9")["default"])},"9c63":function(t,e,r){"use strict";(function(t){var n=r("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.upload=e.request=e.getApiDomain=e.baseURL=void 0;var i=n(r("127e")),a=n(r("ee10")),s=n(r("34cf")),o=r("c557"),u=r("7c41"),l=["https://dns.alidns.com/resolve?name=tj.ht16bb.com&type=TXT","https://doh.pub/dns-query?name=tj.ht16bb.com&type=TXT"],c=function(t){return new Promise((function(e,r){uni.request({method:"GET",url:t}).then((function(t){var n=(0,s.default)(t,2),i=n[0],a=n[1];a&&200===a.statusCode?e(a.data):r(i)}))}))},A=function(){var t=(0,a.default)(i.default.mark((function t(){var e,r,n,a,s,o;return i.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e=uni.getStorageSync("API_DOMAIN"),""!=e&&0!=e.length){t.next=30;break}e=[],r=0;case 4:if(!(r<l.length)){t.next=30;break}return t.next=7,c(l[r]).then((function(t){return t})).catch((function(t){}));case 7:if(n=t.sent,!n||0!=n.Status||!n.Answer[0].data){t.next=27;break}a=n.Answer[0].data.slice(1,-1).split(","),a=a.map((function(t){return"https://"+t.trim()})),s=0;case 12:if(!(s<a.length)){t.next=22;break}return t.next=15,c(a[s]+"/ok.txt").then((function(t){return t})).catch((function(t){}));case 15:if(o=t.sent,"200"!=o){t.next=18;break}return t.abrupt("break",22);case 18:a.splice(s,1);case 19:s++,t.next=12;break;case 22:if(!(a.length>0)){t.next=27;break}return e=a,uni.setStorageSync("API_DOMAIN",e),uni.setStorageSync("API_DOMAIN_INDEX",0),t.abrupt("break",30);case 27:r++,t.next=4;break;case 30:return t.abrupt("return",e);case 31:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();e.getApiDomain=A;e.baseURL=function(){if((0,o.isFullApp)()){var t=uni.getStorageSync("API_DOMAIN"),e=uni.getStorageSync("API_DOMAIN_INDEX")||0;return Array.isArray(t)&&t.length>0&&t[e]||""}return""};e.request=function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],l=arguments.length>3?arguments[3]:void 0;return new Promise(function(){var c=(0,a.default)(i.default.mark((function a(c,A){var d,f,h,p,g,v,m,y,w,b,_,B,C,E;return i.default.wrap((function(i){while(1)switch(i.prev=i.next){case 0:if(d=uni.getStorageSync("API_DOMAIN"),f=uni.getStorageSync("API_DOMAIN_INDEX")||0,!(0,o.isFullApp)()){i.next=12;break}if(!(0,o.isVpn)()){i.next=6;break}return uni.showToast({title:"\u8bf7\u5173\u95ed\u4ee3\u7406\u518d\u8bd5\u8bd5\u5427~",icon:"none"}),i.abrupt("return");case 6:if(""!=d&&0!=d.length){i.next=10;break}return uni.showToast({title:"\u7ebf\u8def\u914d\u7f6e\u5931\u6548\uff0c\u5373\u5c06\u91cd\u542fAPP",icon:"none",complete:function(){setTimeout((function(){plus.runtime.restart()}),1500)}}),A("\u7ebf\u8def\u914d\u7f6e\u5931\u6548"),i.abrupt("return");case 10:i.next=13;break;case 12:d=[""];case 13:return h=uni.getStorageSync("user_token"),p=uni.getStorageSync("user_uuid"),i.next=17,(0,o.getAppVersion)();case 17:g=i.sent,g.versionName&&(r.app_version=g.versionName),"ios"==uni.getSystemInfoSync().platform&&(r.app_name="ios"+uni.getSystemInfoSync().appId),"android"==uni.getSystemInfoSync().platform&&(r.app_name="android"+uni.getSystemInfoSync().appId),h&&(r.user_token=h),p&&(r.user_uuid=p),r.timestamp=parseInt((new Date).getTime()/1e3),l=l||{"Content-Type":"application/x-www-form-urlencoded"};case 25:if(!(f<d.length)){i.next=68;break}if(!n){i.next=35;break}if(v=uni.getStorageSync(e),!v){i.next=35;break}if(t("log","\u3010\u51fa\u53d1\u7f13\u5b58\u3011"," at utils/request.js:155"),m=JSON.parse(v),y=(new Date).getTime(),!(y-m.timestamp<3e5)){i.next=35;break}return c(m.data),i.abrupt("break",68);case 35:return i.next=37,uni.request({method:"POST",url:d[f]+e,data:{data:(0,u.encrypt)(r)},header:l}).then((function(t){return t}));case 37:if(w=i.sent,b=(0,s.default)(w,2),_=b[0],B=b[1],!_){i.next=52;break}if(!(f<d.length-1)){i.next=45;break}f++,uni.setStorageSync("API_DOMAIN_INDEX",f),i.next=50;break;case 45:return uni.removeStorageSync("API_DOMAIN"),uni.removeStorageSync("API_DOMAIN_INDEX"),uni.showToast({title:"\u7ebf\u8def\u914d\u7f6e\u5931\u6548\uff0c\u5373\u5c06\u91cd\u542fAPP",icon:"none",complete:function(){setTimeout((function(){plus.runtime.restart()}),1500)}}),A("\u7ebf\u8def\u914d\u7f6e\u5931\u6548"),i.abrupt("break",68);case 50:i.next=66;break;case 52:if(200!==B.statusCode){i.next=64;break}B.data.data&&(B.data.data=(0,u.decrypt)(B.data.data)),i.t0=B.data.code,i.next=100===i.t0?57:59;break;case 57:return uni.removeStorage({key:"user_token",success:function(t){var e=getCurrentPages();getApp().globalData.share.code="",getApp().globalData.userToken="",1===e.length?uni.navigateTo({url:"/pages/user/login"}):uni.redirectTo({url:"/pages/user/login"})}}),i.abrupt("break",60);case 59:return i.abrupt("break",60);case 60:n&&(C=(new Date).getTime(),E={data:B.data,timestamp:C},uni.setStorage({key:e,data:JSON.stringify(E)})),c(B.data),i.next=65;break;case 64:A("\u670d\u52a1\u5668\u51fa\u9519("+B.statusCode+")");case 65:return i.abrupt("break",68);case 66:i.next=25;break;case 68:case"end":return i.stop()}}),a)})));return function(t,e){return c.apply(this,arguments)}}())};e.upload=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise(function(){var r=(0,a.default)(i.default.mark((function r(n,a){var l,c,A,d,f,h,p,g,v;return i.default.wrap((function(r){while(1)switch(r.prev=r.next){case 0:if(l=uni.getStorageSync("API_DOMAIN"),c=uni.getStorageSync("API_DOMAIN_INDEX")||0,!(0,o.isFullApp)()){r.next=9;break}if(""!=l&&0!=l.length){r.next=7;break}return uni.showToast({title:"\u7ebf\u8def\u914d\u7f6e\u5931\u6548\uff0c\u5373\u5c06\u91cd\u542fAPP",icon:"none",complete:function(){setTimeout((function(){plus.runtime.restart()}),1500)}}),a("\u7ebf\u8def\u914d\u7f6e\u5931\u6548"),r.abrupt("return");case 7:r.next=10;break;case 9:l=[""];case 10:A=uni.getStorageSync("user_token"),d=uni.getStorageSync("user_uuid"),A&&(e.user_token=A),d&&(e.user_uuid=d),e.timestamp=parseInt((new Date).getTime()/1e3);case 15:if(!(c<l.length)){r.next=37;break}return r.next=18,uni.uploadFile({url:l[c]+"/api/upload/save",filePath:t,name:"file",formData:{data:(0,u.encrypt)(e)}}).then((function(t){return t}));case 18:if(f=r.sent,h=(0,s.default)(f,2),p=h[0],g=h[1],!p){r.next=33;break}if(!(c<l.length-1)){r.next=26;break}c++,uni.setStorageSync("API_DOMAIN_INDEX",c),r.next=31;break;case 26:return uni.removeStorageSync("API_DOMAIN"),uni.removeStorageSync("API_DOMAIN_INDEX"),uni.showToast({title:"\u7ebf\u8def\u914d\u7f6e\u5931\u6548\uff0c\u5373\u5c06\u91cd\u542fAPP",icon:"none",complete:function(){setTimeout((function(){plus.runtime.restart()}),1500)}}),a("\u7ebf\u8def\u914d\u7f6e\u5931\u6548"),r.abrupt("break",37);case 31:r.next=35;break;case 33:return 200===g.statusCode?(v="string"===typeof g.data?JSON.parse(g.data):g.data,v.data&&(v.data=(0,u.decrypt)(v.data)),n(v)):(uni.showToast({icon:"none",title:"\u7f51\u7edc\u7e41\u5fd9\uff0c\u8bf7\u7a0d\u5019\u8bbf\u95ee~!\uff08"+g.statusCode+"\uff09",duration:3e3}),a("\u670d\u52a1\u5668\u51fa\u9519("+g.statusCode+")")),r.abrupt("break",37);case 35:r.next=15;break;case 37:case"end":return r.stop()}}),r)})));return function(t,e){return r.apply(this,arguments)}}())}}).call(this,r("f3b9")["default"])},"9ca4":function(t,e,r){"use strict";r.r(e);var n=r("a319"),i=r("d98b");for(var a in i)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return i[t]}))}(a);var s=r("828b"),o=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);e["default"]=o.exports},"9cb2":function(t,e,r){"use strict";r.d(e,"b",(function(){return i})),r.d(e,"c",(function(){return a})),r.d(e,"a",(function(){return n}));var n={uPopup:r("591c").default},i=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("view",{staticClass:t._$s(0,"sc","page-container"),attrs:{_i:0}},[r("view",{staticClass:t._$s(1,"sc","index-header-bg"),attrs:{_i:1}},[r("view",{staticClass:t._$s(2,"sc","index-header-bg-upper"),attrs:{_i:2}})]),r("view",{staticClass:t._$s(3,"sc","status-bar"),attrs:{_i:3}}),r("header-nav",{attrs:{navs:t.type,_i:4},model:{value:t._$s(4,"v-model",t.typeIndex),callback:function(e){t.typeIndex=e},expression:"typeIndex"}}),r("swiper",{staticClass:t._$s(5,"sc","swiper-container"),attrs:{current:t._$s(5,"a-current",t.typeIndex),_i:5},on:{change:t.swiperChange}},t._l(t._$s(6,"f",{forItems:t.type}),(function(e,n,i,a){return r("swiper-item",{key:t._$s(6,"f",{forIndex:i,key:n})},[t._$s("7-"+a,"i",0==n)?r("index-item-hot",{ref:t._$s("7-"+a,"ref","index"+n),refInFor:!0,attrs:{id:t._$s("7-"+a,"a-id",e.id),_i:"7-"+a}}):r("index-item",{ref:t._$s("8-"+a,"ref","index"+n),refInFor:!0,attrs:{id:t._$s("8-"+a,"a-id",e.id),index:n,_i:"8-"+a}})],1)})),0),t._l(t._$s(9,"f",{forItems:t.advlist}),(function(e,n,i,a){return r("u-popup",{key:t._$s(9,"f",{forIndex:i,key:"9-"+a}),attrs:{show:e.visible,mode:"center",bgColor:"transparent","custom-style":{width:"80%"},_i:"9-"+a}},[r("view",{staticClass:t._$s("10-"+a,"sc","popup"),attrs:{_i:"10-"+a}},[r("view",{staticClass:t._$s("11-"+a,"sc","popup-image"),attrs:{_i:"11-"+a},on:{click:function(r){return t.openApp(e.adv_link)}}},[r("vodImage",{attrs:{src:e.adv_image,mode:"widthFix",_i:"12-"+a}})],1),r("view",{staticClass:t._$s("13-"+a,"sc","popup-close"),attrs:{_i:"13-"+a}},[r("image",{attrs:{_i:"14-"+a},on:{click:function(e){return t.closePopup(n)}}})])])])})),r("u-popup",{attrs:{show:t.noticeShow,mode:"center",bgColor:"transparent","custom-style":{width:"70%",maxWidth:"300px"},_i:15}},[r("view",{staticClass:t._$s(16,"sc","notice-popup"),attrs:{_i:16}},[r("view",{staticClass:t._$s(17,"sc","header-bg"),attrs:{_i:17}},[r("view",{staticClass:t._$s(18,"sc","header-bg-upper"),attrs:{_i:18}})]),r("view",{staticClass:t._$s(19,"sc","notice-container"),attrs:{_i:19}},[r("view",{staticClass:t._$s(20,"sc","notice-title"),attrs:{_i:20}},[t._v(t._$s(20,"t0-0",t._s(t.notice.notice_title)))]),r("text",{staticClass:t._$s(21,"sc","notice-content"),attrs:{_i:21}},[t._v(t._$s(21,"t0-0",t._s(t.notice.notice_content)))]),r("view",{staticClass:t._$s(22,"sc","notice-link"),attrs:{_i:22},on:{click:function(e){return t.openApp(t.notice.notice_link)}}},[t._v(t._$s(22,"t0-0",t._s(t.notice.notice_link_name)))]),r("view",{staticClass:t._$s(23,"sc","notice-button"),attrs:{_i:23},on:{click:function(e){t.noticeShow=!1}}})])])])],2)},a=[]},"9d93":function(t,e,r){"use strict";r.d(e,"b",(function(){return n})),r.d(e,"c",(function(){return i})),r.d(e,"a",(function(){}));var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return t._$s(0,"i",t.loadedImage)?r("image",{staticClass:t._$s(0,"sc","fade-in-image"),attrs:{src:t._$s(0,"a-src",t.url),mode:t._$s(0,"a-mode",t.mode),_i:0},on:{load:t.load,error:t.loadfail}}):t._e()},i=[]},"9db4":function(t,e,r){"use strict";(function(t){var n=r("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;n(r("329a"));var i={components:{},props:{item:{}},data:function(){return{canDelete:!1}},methods:{govideo:function(){var e=this.item.name,r=e.lastIndexOf("_"),n=e.indexOf(".mp4");if(-1!==r&&-1!==n&&n>r){var i=e.substring(r+1,n);t("log",i," at components/download-item.vue:38"),this.openVideo(i)}else t("log","\u672a\u627e\u5230\u4e0b\u5212\u7ebf\u6216'.mp4'\uff0c\u6216\u8005\u4f4d\u7f6e\u987a\u5e8f\u4e0d\u6b63\u786e\u3002"," at components/download-item.vue:41")},showDelete:function(t){this.canDelete=t},deleteFile:function(){t("log",this.item," at components/download-item.vue:49"),this.$emit("DeleteFile",this.item.fullPath,this.item.localPath)},changeSize:function(t){var e;return t/1024<=1024?(e=t/1024,e.toFixed(2)+"KB"):t/1024>1024&&t/1024<=1048576?(e=t/1024/1024,e.toFixed(2)+"M"):t/1024>1048576?(e=t/1024/1024/1024,e.toFixed(2)+"G"):void 0},changeTime:function(t){return t}}};e.default=i}).call(this,r("f3b9")["default"])},"9db8":function(t,e,r){"use strict";r.d(e,"b",(function(){return n})),r.d(e,"c",(function(){return i})),r.d(e,"a",(function(){}));var n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("view",{staticClass:t._$s(0,"sc","vod-item"),attrs:{_i:0}},[t._$s(1,"i",t.item.vod_pic)?n("view",{staticClass:t._$s(1,"sc","vod-image"),attrs:{_i:1},on:{click:function(e){return e.stopPropagation(),t.gotovideo(t.item.vod_id)}}},[n("vod-image",{attrs:{src:t.item.vod_pic,_i:2}}),t._$s(3,"i","channel"==t.mode&&t.index<3)?n("view",{staticClass:t._$s(3,"sc","vod-icon"),attrs:{_i:3}},[n("image",{staticClass:t._$s(4,"sc","vod-ranking"),attrs:{_i:4}}),n("text",[t._v(t._$s(5,"t0-0",t._s(t.index+1)))])]):t._e(),t._$s(6,"i",t.previewShow&&"error"!==t.previewState)?n("view",{staticClass:t._$s(6,"sc","preview"),attrs:{_i:6}},[n("view",{directives:[{name:"show",rawName:"v-show",value:t._$s(7,"v-show","loaded"===t.previewState),expression:"_$s(7,'v-show',previewState === 'loaded')"}],staticClass:t._$s(7,"sc","preview-image"),style:t._$s(7,"s",{backgroundImage:"url("+t.item.vod_thumbnails+")",backgroundPosition:"-"+t.previewPosition+"px center",backgroundSize:t.previewwidth+"px auto"}),attrs:{_i:7}})]):t._e(),n("view",{staticClass:t._$s(8,"sc","vod-tag-hot"),attrs:{_i:8},on:{click:function(e){return e.stopPropagation(),t.show(e)}}},[n("image",{attrs:{_i:9}})]),n("view",{staticClass:t._$s(10,"sc","vod-img-bottom"),attrs:{_i:10}},[n("image",{attrs:{_i:11}}),n("text",[t._v(t._$s(12,"t0-0",t._s(t._f("formatNum")(t.item.vod_hits))))])]),n("view",{staticClass:t._$s(13,"sc","vod-time"),attrs:{_i:13}},[t._v(t._$s(13,"t0-0",t._s(t.item.vod_duration)))]),t._$s(14,"i",2==t.item.vod_mode)?n("text",{staticClass:t._$s(14,"sc","vod-tag-hd"),attrs:{_i:14}}):t._e(),t._$s(15,"i",1==t.item.vod_mode)?n("view",{staticClass:t._$s(15,"sc","vod-tag-hd"),attrs:{_i:15}},[n("image",{attrs:{src:t._$s(16,"a-src",r("edec")),_i:16}}),n("text",[t._v(t._$s(17,"t0-0",t._s(t.item.vod_bullion)))])]):t._e(),t._$s(18,"i",1==t.item.type_id_1&&1===t.item.is_hd)?n("text",{staticClass:t._$s(18,"sc","vod-tag-hd"),attrs:{_i:18}}):t._e()],1):n("view",{staticClass:t._$s(19,"sc","vod-image"),attrs:{_i:19},on:{click:function(e){return t.openApp(t.item.adv_link)}}},[n("vod-image",{attrs:{src:t.item.adv_image,_i:20}}),n("view",{staticClass:t._$s(21,"sc","vod-img-bottom"),attrs:{_i:21}},[n("image",{attrs:{_i:22}}),n("text",[t._v(t._$s(23,"t0-0",t._s(t.getRandomInt(2e3,8e3))))])]),n("view",{staticClass:t._$s(24,"sc","vod-tag-hot"),attrs:{_i:24}},[n("image",{attrs:{_i:25}})]),n("view",{staticClass:t._$s(26,"sc","vod-time"),attrs:{_i:26}},[t._v(t._$s(26,"t0-0",t._s(Math.floor(60*Math.random())+"\u5206"+Math.floor(60*Math.random())+"\u79d2")))])],1),t._$s(27,"i",t.item.vod_name)?n("view",{staticClass:t._$s(27,"sc","vod-title"),attrs:{_i:27},on:{click:function(e){return e.stopPropagation(),t.gotovideo(t.item.vod_id)}}},[t._v(t._$s(27,"t0-0",t._s(t.item.vod_name)))]):t._e(),t._$s(28,"i",t.item.adv_name)?n("view",{staticClass:t._$s(28,"sc","vod-title"),attrs:{_i:28}},[t._v(t._$s(28,"t0-0",t._s(t.item.adv_name)))]):t._e()])},i=[]},"9e75":function(t,e,r){"use strict";r.r(e);var n=r("35b6"),i=r.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return n[t]}))}(a);e["default"]=i.a},"9e96":function(t,e,r){"use strict";(function(t){var n=r("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(r("127e")),a=n(r("7ca3")),s=n(r("ee10")),o=r("0f81"),u=(r("4eb2"),n(r("4231"))),l=n(r("112e"));function c(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function A(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?c(Object(r),!0).forEach((function(e){(0,a.default)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var d={components:{vodImage:u.default},data:function(){return{list:[],history:[],checked:[],page:1,limit:10,pageTotal:0,loadStatus:"loadmore",refreshTriggered:!1,isEdit:!1}},onLoad:function(){l.default.openSqlite(),this.init()},onUnload:function(){l.default.closeSqlite()},methods:{init:function(){var e=this;l.default.selectTableData("vodFav").then((function(r){t("log",r," at pages/user/favorites.vue:96"),r.sort((function(t,e){return e.time-t.time}));var n=r.map((function(t){return t.vod_id}));t("log",n.length,Math.ceil(r.length/e.limit)," at pages/user/favorites.vue:100"),n.length>0?(e.history=n,e.pageTotal=Math.ceil(r.length/e.limit),e.getData()):(e.refreshTriggered=!1,e.loadStatus="nomore")}))},getData:function(){var e=this;return(0,s.default)(i.default.mark((function r(){var n;return i.default.wrap((function(r){while(1)switch(r.prev=r.next){case 0:if("nomore"!==e.loadStatus&&"loading"!==e.loadStatus){r.next=2;break}return r.abrupt("return");case 2:return e.loadStatus="loading",n=e.history.slice((e.page-1)*e.limit,e.page*e.limit),t("log",n," at pages/user/favorites.vue:163"),r.next=7,o.app.vodHistory(n.join(","),e.limit).then((function(r){var i=r.data;t("log",r.data," at pages/user/favorites.vue:168"),e.page<e.pageTotal?(e.loadStatus="loadmore",e.page++):e.loadStatus="nomore",n.forEach((function(t){i&&i[t]?e.list.push(A(A({},t),{},{is_checked:!1,data:i[t],id:t})):e.list.push(A(A({},t),{},{is_checked:!1}))}))})).catch((function(t){e.loadStatus="nomore"}));case 7:e.refreshTriggered=!1;case 8:case"end":return r.stop()}}),r)})))()},delHistory:function(){this.checked.length>0&&(this.checked.map((function(t){l.default.deleteTableData("vodFav","vod_id",t)})),this.page=1,this.list=[],this.loadStatus="loadmore",this.init())},refresh:function(){this.refreshTriggered=!0,this.loadStatus="loadmore",this.page=1,this.list=[],this.init()},edit:function(){this.isEdit=!this.isEdit},selectAll:function(){var t=this;this.list.map((function(e){t.checked.includes(e.id+"")||(t.checked.push(e.id+""),e.is_checked=!0)}))},changeCheck:function(e){var r=this;this.checked=e.detail.value,this.list.map((function(e){t("log",e," at pages/user/favorites.vue:241"),r.checked.includes(e.id+"")?e.is_checked=!0:e.is_checked=!1}))},click:function(e){var r=this;return(0,s.default)(i.default.mark((function n(){return i.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:!1===r.isEdit&&e.data&&(t("log",e," at pages/user/favorites.vue:251"),r.openUrl("/pages/video/video-app?id="+e.id));case 1:case"end":return n.stop()}}),n)})))()}}};e.default=d}).call(this,r("f3b9")["default"])},"9ea3":function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={album:{urls:function(){return[]},keyName:"",singleSize:180,multipleSize:70,space:6,singleMode:"scaleToFill",multipleMode:"aspectFill",maxCount:9,previewFullImage:!0,rowCount:3,showMore:!0}}},"9f0b":function(t,e,r){"use strict";r.r(e);var n=r("dfad"),i=r.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return n[t]}))}(a);e["default"]=i.a},"9fa4":function(t,e,r){"use strict";r.r(e);var n=r("97ab"),i=r.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return n[t]}))}(a);e["default"]=i.a},"9fb1":function(t,e,r){"use strict";r.r(e);var n=r("841e"),i=r.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return n[t]}))}(a);e["default"]=i.a},"9fc1":function(t,e,r){var n=r("3b2d")["default"];function i(){"use strict";
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */t.exports=i=function(){return r},t.exports.__esModule=!0,t.exports["default"]=t.exports;var e,r={},a=Object.prototype,s=a.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},u="function"==typeof Symbol?Symbol:{},l=u.iterator||"@@iterator",c=u.asyncIterator||"@@asyncIterator",A=u.toStringTag||"@@toStringTag";function d(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{d({},"")}catch(e){d=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var i=e&&e.prototype instanceof y?e:y,a=Object.create(i.prototype),s=new L(n||[]);return o(a,"_invoke",{value:S(t,r,s)}),a}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}r.wrap=f;var p="suspendedStart",g="executing",v="completed",m={};function y(){}function w(){}function b(){}var _={};d(_,l,(function(){return this}));var B=Object.getPrototypeOf,C=B&&B(B(D([])));C&&C!==a&&s.call(C,l)&&(_=C);var E=b.prototype=y.prototype=Object.create(_);function x(t){["next","throw","return"].forEach((function(e){d(t,e,(function(t){return this._invoke(e,t)}))}))}function T(t,e){function r(i,a,o,u){var l=h(t[i],t,a);if("throw"!==l.type){var c=l.arg,A=c.value;return A&&"object"==n(A)&&s.call(A,"__await")?e.resolve(A.__await).then((function(t){r("next",t,o,u)}),(function(t){r("throw",t,o,u)})):e.resolve(A).then((function(t){c.value=t,o(c)}),(function(t){return r("throw",t,o,u)}))}u(l.arg)}var i;o(this,"_invoke",{value:function(t,n){function a(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(a,a):a()}})}function S(t,r,n){var i=p;return function(a,s){if(i===g)throw Error("Generator is already running");if(i===v){if("throw"===a)throw s;return{value:e,done:!0}}for(n.method=a,n.arg=s;;){var o=n.delegate;if(o){var u=k(o,n);if(u){if(u===m)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===p)throw i=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=g;var l=h(t,r,n);if("normal"===l.type){if(i=n.done?v:"suspendedYield",l.arg===m)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(i=v,n.method="throw",n.arg=l.arg)}}}function k(t,r){var n=r.method,i=t.iterator[n];if(i===e)return r.delegate=null,"throw"===n&&t.iterator["return"]&&(r.method="return",r.arg=e,k(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var a=h(i,t.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,m;var s=a.arg;return s?s.done?(r[t.resultName]=s.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,m):s:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function I(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function F(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(I,this),this.reset(!0)}function D(t){if(t||""===t){var r=t[l];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,a=function r(){for(;++i<t.length;)if(s.call(t,i))return r.value=t[i],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}throw new TypeError(n(t)+" is not iterable")}return w.prototype=b,o(E,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:w,configurable:!0}),w.displayName=d(b,A,"GeneratorFunction"),r.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},r.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,d(t,A,"GeneratorFunction")),t.prototype=Object.create(E),t},r.awrap=function(t){return{__await:t}},x(T.prototype),d(T.prototype,c,(function(){return this})),r.AsyncIterator=T,r.async=function(t,e,n,i,a){void 0===a&&(a=Promise);var s=new T(f(t,e,n,i),a);return r.isGeneratorFunction(e)?s:s.next().then((function(t){return t.done?t.value:s.next()}))},x(E),d(E,A,"Generator"),d(E,l,(function(){return this})),d(E,"toString",(function(){return"[object Generator]"})),r.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},r.values=D,L.prototype={constructor:L,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(F),!t)for(var r in this)"t"===r.charAt(0)&&s.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function n(n,i){return o.type="throw",o.arg=t,r.next=n,i&&(r.method="next",r.arg=e),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],o=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var u=s.call(a,"catchLoc"),l=s.call(a,"finallyLoc");if(u&&l){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&s.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,m):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),F(r),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;F(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:D(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),m}},r}t.exports=i,t.exports.__esModule=!0,t.exports["default"]=t.exports},a03e:function(t,e,r){"use strict";r.r(e);var n=r("e0b4"),i=r.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return n[t]}))}(a);e["default"]=i.a},a074:function(t,e,r){"use strict";r.r(e);var n=r("c4ee"),i=r.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return n[t]}))}(a);e["default"]=i.a},a133:function(t,e,r){"use strict";r.r(e);var n=r("b7d9"),i=r.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return n[t]}))}(a);e["default"]=i.a},a17a:function(t,e,r){"use strict";r.d(e,"b",(function(){return i})),r.d(e,"c",(function(){return a})),r.d(e,"a",(function(){return n}));var n={uniIcons:r("da03").default,uLine:r("ef2f").default,uButton:r("9a24").default},i=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("view",{staticClass:t._$s(0,"sc","page-container"),attrs:{_i:0}},[r("view",{staticClass:t._$s(1,"sc","recharge-header-bg"),attrs:{_i:1}},[r("view",{staticClass:t._$s(2,"sc","header-bg-upper"),attrs:{_i:2}})]),r("view",{staticClass:t._$s(3,"sc","status-bar"),attrs:{_i:3}}),r("view",{staticClass:t._$s(4,"sc","page-header"),attrs:{_i:4}}),r("view",{staticClass:t._$s(5,"sc","recharge-header-content justify-between"),attrs:{_i:5}},[r("view",[r("view",{staticClass:t._$s(7,"sc","text"),attrs:{_i:7}}),r("view",{staticClass:t._$s(8,"sc","sub-text"),attrs:{_i:8}})]),r("image",{attrs:{_i:9}})]),r("view",{staticClass:t._$s(10,"sc","recharge-box"),attrs:{_i:10}},[r("view",{staticClass:t._$s(11,"sc","package justify-around"),attrs:{_i:11}},t._l(t._$s(12,"f",{forItems:t.data.list}),(function(e,n,i,a){return r("view",{key:t._$s(12,"f",{forIndex:i,key:n}),staticClass:t._$s("12-"+a,"sc","package-item"),attrs:{_i:"12-"+a},on:{click:function(r){return t.onSelect(e.recharge_id)}}},[r("view",{staticClass:t._$s("13-"+a,"sc","packages-box"),class:t._$s("13-"+a,"c",e.recharge_id==t.id&&"selected"),attrs:{_i:"13-"+a}},[r("view",{staticClass:t._$s("14-"+a,"sc","package-title"),attrs:{_i:"14-"+a}},[t._v(t._$s("14-"+a,"t0-0",t._s(e.recharge_name)))]),r("view",{staticClass:t._$s("15-"+a,"sc","package-price"),attrs:{_i:"15-"+a}},[r("text"),t._v(t._$s("15-"+a,"t1-0",t._s(e.recharge_price)))]),t._$s("17-"+a,"i",1===e.recharge_selected)?r("text",{staticClass:t._$s("17-"+a,"sc","package-recommend"),attrs:{_i:"17-"+a}}):t._e()])])})),0)]),r("view",{staticClass:t._$s(18,"sc","recharge-payway"),attrs:{_i:18}},[r("view",{staticClass:t._$s(19,"sc","payway-title justify-between"),attrs:{_i:19}},[r("text",{staticClass:t._$s(20,"sc","title"),attrs:{_i:20}}),r("navigator",{staticClass:t._$s(21,"sc","align-center"),attrs:{_i:21}},[r("uni-icons",{attrs:{type:"help",color:"#9999a2",size:"20",_i:22}}),r("text")],1)]),t._$s(24,"i",t.data.paylist)?r("radio-group",{attrs:{_i:24},on:{change:t.paySelect}},[t._$s(25,"i",t.data.paylist.length<=1)?r("view",{staticClass:t._$s(25,"sc","payway-item flex-row"),attrs:{_i:25}},[r("image",{staticClass:t._$s(26,"sc","payway-icon"),attrs:{_i:26}}),r("view",{staticClass:t._$s(27,"sc","payway-content"),attrs:{_i:27}},[r("view",{staticClass:t._$s(28,"sc","payway-name"),attrs:{_i:28}}),r("view",{staticClass:t._$s(29,"sc","payway-extend"),attrs:{_i:29}})]),r("view",{staticClass:t._$s(30,"sc","line"),attrs:{_i:30}},[r("u-line",{attrs:{_i:31}})],1)]):t._e(),t._l(t._$s(32,"f",{forItems:t.data.paylist}),(function(e,n,i,a){return r("view",{key:t._$s(32,"f",{forIndex:i,key:n}),staticClass:t._$s("32-"+a,"sc","payway-item flex-row"),attrs:{_i:"32-"+a}},[r("image",{staticClass:t._$s("33-"+a,"sc","payway-icon"),attrs:{src:t._$s("33-"+a,"a-src","manual"===e.id?"/static/images/customer-service.png":"/static/images/online-payment.png"),_i:"33-"+a}}),r("view",{staticClass:t._$s("34-"+a,"sc","payway-content"),attrs:{_i:"34-"+a}},[r("view",{staticClass:t._$s("35-"+a,"sc","payway-name"),attrs:{_i:"35-"+a}},[t._v(t._$s("35-"+a,"t0-0",t._s(e.name)))]),t._$s("36-"+a,"i",e.remarks)?r("view",{staticClass:t._$s("36-"+a,"sc","payway-extend"),attrs:{_i:"36-"+a}},[r("text",[t._v(t._$s("37-"+a,"t0-0",t._s(e.remarks)))])]):t._e()]),r("label",[r("radio",{attrs:{value:t._$s("39-"+a,"a-value",e.id),checked:t._$s("39-"+a,"a-checked",t.payid===e.id),_i:"39-"+a}})]),r("view",{staticClass:t._$s("40-"+a,"sc","line"),attrs:{_i:"40-"+a}},[r("u-line",{attrs:{_i:"41-"+a}})],1)])}))],2):t._e()]),r("u-button",{staticClass:t._$s(42,"sc","pay-button"),attrs:{shape:"circle",disabled:t.loading,loading:t.loading,color:"linear-gradient(90deg, #DA2538 0%, #F75F68 100%)",text:"\u786e\u8ba4\u5145\u503c",_i:42},on:{click:t.pay}}),r("navigator",{staticClass:t._$s(43,"sc","record-button"),attrs:{_i:43}})],1)},a=[]},a287:function(t,e,r){"use strict";r.d(e,"b",(function(){return n})),r.d(e,"c",(function(){return i})),r.d(e,"a",(function(){}));var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("view",{staticClass:t._$s(0,"sc","page-container"),attrs:{_i:0}},[r("view",{staticClass:t._$s(1,"sc","share-way"),attrs:{_i:1}},[r("view",{staticClass:t._$s(2,"sc","card"),attrs:{_i:2}},[r("view",{staticClass:t._$s(3,"sc","card-content flex-row"),attrs:{_i:3}},[r("view",{staticClass:t._$s(4,"sc","share-way-item"),attrs:{_i:4}},[r("image",{attrs:{_i:5}}),r("text")]),r("view",{staticClass:t._$s(7,"sc","share-way-item"),attrs:{_i:7}},[r("image",{attrs:{_i:8}}),r("text")]),r("view",{staticClass:t._$s(10,"sc","share-way-item"),attrs:{_i:10}},[r("image",{attrs:{_i:11}}),r("text")]),r("view",{staticClass:t._$s(13,"sc","share-way-item"),attrs:{_i:13}},[r("image",{attrs:{_i:14}}),r("text")]),r("view",{staticClass:t._$s(16,"sc","share-way-item"),attrs:{_i:16}},[r("image",{attrs:{_i:17}}),r("text")])])])]),r("navigator",{staticClass:t._$s(19,"sc","back-button"),attrs:{_i:19}})])},i=[]},a28e:function(t,e,r){"use strict";r.r(e);var n=r("5f18"),i=r.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return n[t]}))}(a);e["default"]=i.a},a29f:function(t,e,r){"use strict";r.d(e,"b",(function(){return n})),r.d(e,"c",(function(){return i})),r.d(e,"a",(function(){}));var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("view",{staticClass:t._$s(0,"sc","u-icon"),class:t._$s(0,"c",["u-icon--"+t.labelPos]),attrs:{_i:0},on:{click:t.clickHandler}},[t._$s(1,"i",t.isImg)?r("image",{staticClass:t._$s(1,"sc","u-icon__img"),style:t._$s(1,"s",[t.imgStyle,t.$u.addStyle(t.customStyle)]),attrs:{src:t._$s(1,"a-src",t.name),mode:t._$s(1,"a-mode",t.imgMode),_i:1}}):r("text",{staticClass:t._$s(2,"sc","u-icon__icon"),class:t._$s(2,"c",t.uClasses),style:t._$s(2,"s",[t.iconStyle,t.$u.addStyle(t.customStyle)]),attrs:{"hover-class":t._$s(2,"a-hover-class",t.hoverClass),_i:2}},[t._v(t._$s(2,"t0-0",t._s(t.icon)))]),t._$s(3,"i",""!==t.label)?r("text",{staticClass:t._$s(3,"sc","u-icon__label"),style:t._$s(3,"s",{color:t.labelColor,fontSize:t.$u.addUnit(t.labelSize),marginLeft:"right"==t.labelPos?t.$u.addUnit(t.space):0,marginTop:"bottom"==t.labelPos?t.$u.addUnit(t.space):0,marginRight:"left"==t.labelPos?t.$u.addUnit(t.space):0,marginBottom:"top"==t.labelPos?t.$u.addUnit(t.space):0}),attrs:{_i:3}},[t._v(t._$s(3,"t0-0",t._s(t.label)))]):t._e()])},i=[]},a2c0:function(t,e,r){"use strict";r.r(e);var n=r("897e"),i=r("563d");for(var a in i)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return i[t]}))}(a);var s=r("828b"),o=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);e["default"]=o.exports},a319:function(t,e,r){"use strict";r.d(e,"b",(function(){return i})),r.d(e,"c",(function(){return a})),r.d(e,"a",(function(){return n}));var n={uniIcons:r("da03").default,uLoadmore:r("bc5a").default,uLoadingPage:r("ef90").default},i=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("scroll-view",{attrs:{"refresher-triggered":t._$s(0,"a-refresher-triggered",t.refreshTriggered),_i:0},on:{refresherrefresh:t.refresh,scrolltolower:t.getTypeList}},[t._$s(1,"i",t.slideshow.length)?r("swiper",{staticClass:t._$s(1,"sc","card-swiper"),attrs:{_i:1},on:{change:t.cardSwiper}},t._l(t._$s(2,"f",{forItems:t.slideshow}),(function(e,n,i,a){return r("swiper-item",{key:t._$s(2,"f",{forIndex:i,key:n}),staticClass:t._$s("2-"+a,"sc","index-banner-item"),class:t._$s("2-"+a,"c",t.cardCur==n?"cur":""),attrs:{_i:"2-"+a},on:{click:function(r){return t.bannerOpen(e)}}},[r("view",{staticClass:t._$s("3-"+a,"sc","swiper-item"),attrs:{_i:"3-"+a}},[r("vod-image",{staticClass:t._$s("4-"+a,"sc","index-banner-image"),attrs:{src:e.pic,_i:"4-"+a}})],1)])})),0):t._e(),t._$s(5,"i",t.icon_adv.length)?r("game",{attrs:{data:t.icon_adv,_i:5}}):t._e(),t._$s(6,"i",t.text_adv.length)?r("view",{staticClass:t._$s(6,"sc","text-adv"),attrs:{_i:6}},t._l(t._$s(7,"f",{forItems:t.text_adv}),(function(e,n,i,a){return r("view",{key:t._$s(7,"f",{forIndex:i,key:"7-"+a}),staticClass:t._$s("7-"+a,"sc","test-adv-name"),attrs:{_i:"7-"+a}},[r("text",{attrs:{_i:"8-"+a},on:{click:function(r){return t.openAD(e.adv_link)}}},[t._v(t._$s("8-"+a,"t0-0",t._s(e.adv_name)))])])})),0):t._e(),t._$s(9,"i",t.actor.length)?r("index-actor",{attrs:{data:t.actor,_i:9}}):t._e(),t._$s(10,"i",t.newList.length)?r("view",{staticClass:t._$s(10,"sc","index-box2"),attrs:{_i:10}},[r("view",{staticClass:t._$s(11,"sc","index-box-title"),attrs:{_i:11}},[r("text")]),r("scroll-view",{attrs:{_i:13}},[r("view",{staticClass:t._$s(14,"sc","index-box"),attrs:{_i:14}},[r("view",{staticClass:t._$s(15,"sc","vod-container2"),attrs:{_i:15}},t._l(t._$s(16,"f",{forItems:t.newList}),(function(e,n,i,a){return r("vod-item",{key:t._$s(16,"f",{forIndex:i,key:n}),attrs:{item:e,_i:"16-"+a}})})),1)])])]):t._e(),t._$s(17,"i",t.advList.length>0)?r("view",{staticClass:t._$s(17,"sc","ad-banner"),attrs:{_i:17},on:{click:function(e){return t.openAD(t.advList[0].adv_link)}}},[r("vodImage",{attrs:{src:t.advList[0].adv_image,mode:"widthFix",_i:18}})],1):t._e(),t._$s(19,"i",t.hotList&&t.hotList.length>0)?r("view",{staticClass:t._$s(19,"sc","index-box"),attrs:{_i:19}},[r("view",{staticClass:t._$s(20,"sc","index-box-title"),attrs:{_i:20}},[r("text")]),r("view",{staticClass:t._$s(22,"sc","vod-container"),attrs:{_i:22}},t._l(t._$s(23,"f",{forItems:t.hotList}),(function(e,n,i,a){return t._$s("23-"+a,"i",n<4)?r("vod-item",{key:t._$s(23,"f",{forIndex:i,key:n}),attrs:{item:e,_i:"23-"+a}}):t._e()})),1),t._$s(24,"i",t.advList.length>1)?r("view",{staticClass:t._$s(24,"sc","ad-banner"),attrs:{_i:24},on:{click:function(e){return t.openAD(t.advList[1].adv_link)}}},[r("vodImage",{attrs:{src:t.advList[1].adv_image,mode:"widthFix",_i:25}})],1):t._e()]):t._e(),t._l(t._$s(26,"f",{forItems:t.hotList}),(function(e,n,i,a){return t._$s("26-"+a,"i",n>4)?r("view",{key:t._$s(26,"f",{forIndex:i,key:n})},[r("vod-card",{attrs:{item:e,_i:"27-"+a}})],1):t._e()})),t._l(t._$s(28,"f",{forItems:t.typeList}),(function(e,n,i,a){return t._$s("28-"+a,"i",t.typeList.length>0)?r("view",{key:t._$s(28,"f",{forIndex:i,key:n})},[r("view",{staticClass:t._$s("29-"+a,"sc","index-box"),style:t._$s("29-"+a,"s",{backgroundColor:e.color}),attrs:{_i:"29-"+a}},[r("view",{staticClass:t._$s("30-"+a,"sc","index-box-title"),attrs:{_i:"30-"+a}},[r("text",[t._v(t._$s("31-"+a,"t0-0",t._s(e.name?e.name:""))+t._$s("31-"+a,"t0-1",t._s(0==t.id?"\u63a8\u8350":"")))]),r("view",{staticClass:t._$s("32-"+a,"sc","more"),attrs:{_i:"32-"+a},on:{click:function(r){return t.toChannel(e.id,e.pid)}}},[r("uni-icons",{attrs:{type:"forward",size:"16",color:"#a1a0a4",_i:"33-"+a}})],1)]),r("view",{staticClass:t._$s("34-"+a,"sc","vod-container"),attrs:{_i:"34-"+a}},t._l(t._$s("35-"+a,"f",{forItems:e.list}),(function(e,n,i,s){return t._$s("35-"+a+"-"+s,"i",n<4)?r("vod-item",{key:t._$s("35-"+a,"f",{forIndex:i,key:n}),attrs:{item:e,_i:"35-"+a+"-"+s}}):t._e()})),1),t._$s("36-"+a,"i",t.advList.length>n+2)?r("view",{staticClass:t._$s("36-"+a,"sc","ad-banner"),attrs:{_i:"36-"+a},on:{click:function(e){return t.openAD(t.advList[n+2].adv_link)}}},[r("vodImage",{attrs:{src:t.advList[n+2].adv_image,mode:"widthFix",_i:"37-"+a}})],1):t._e()]),t._l(t._$s("38-"+a,"f",{forItems:e.list}),(function(e,n,i,s){return t._$s("38-"+a+"-"+s,"i",n>4)?r("view",{key:t._$s("38-"+a,"f",{forIndex:i,key:n}),attrs:{item:t._$s("38-"+a+"-"+s,"a-item",e),_i:"38-"+a+"-"+s}},[r("vod-card",{attrs:{item:e,_i:"39-"+a+"-"+s}})],1):t._e()}))],2):t._e()})),r("view",{directives:[{name:"show",rawName:"v-show",value:t._$s(40,"v-show",t.loadmore),expression:"_$s(40,'v-show',loadmore)"}],staticClass:t._$s(40,"sc","load-more"),attrs:{_i:40}},[r("u-loadmore",{attrs:{status:"loading","loading-icon":"semicircle",line:!0,"margin-top":20,_i:41}})],1),r("u-loading-page",{attrs:{loading:!1===t.loaded,bgColor:"none",fontSize:"16",_i:42}})],2)},a=[]},a374:function(t,e,r){"use strict";r.r(e);var n=r("a4d8"),i=r.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return n[t]}))}(a);e["default"]=i.a},a3e4:function(t,e,r){"use strict";r.d(e,"b",(function(){return i})),r.d(e,"c",(function(){return a})),r.d(e,"a",(function(){return n}));var n={uniIcons:r("da03").default,uTag:r("00ee").default},i=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("scroll-view",{attrs:{_i:0}},[r("view",{staticClass:t._$s(1,"sc","history-container"),attrs:{_i:1}},[r("view",{staticClass:t._$s(2,"sc","history-keyword"),attrs:{_i:2}},[r("view",{staticClass:t._$s(3,"sc","title-box justify-between align-center"),attrs:{_i:3}},[r("text",{staticClass:t._$s(4,"sc","title"),attrs:{_i:4}}),r("uni-icons",{attrs:{type:"trash",color:"#fff",size:"24",_i:5},on:{click:t.clearHistory}})],1),r("view",{staticClass:t._$s(6,"sc","keyword-tags flex-row"),attrs:{_i:6}},t._l(t._$s(7,"f",{forItems:t.history}),(function(e,n,i,a){return r("view",{key:t._$s(7,"f",{forIndex:i,key:n}),staticClass:t._$s("7-"+a,"sc","keyword-tags-item"),attrs:{_i:"7-"+a}},[r("u-tag",{attrs:{text:e,bgColor:"#f8f8f8",borderColor:"#f8f8f8",closable:!0,show:!0,color:"#000000",plain:!0,shape:"circle",_i:"8-"+a},on:{close:function(r){return t.clearHistory(e)},click:function(r){return t.click(e)}}})],1)})),0)]),t._$s(9,"i",t.list)?r("scroll-view",{attrs:{_i:9}},[r("view",{staticClass:t._$s(10,"sc","history-list"),attrs:{_i:10}},t._l(t._$s(11,"f",{forItems:t.list}),(function(e,n,i,a){return t._$s("11-"+a,"i",e.list)?r("view",{key:t._$s(11,"f",{forIndex:i,key:n}),staticClass:t._$s("11-"+a,"sc","list-item"),attrs:{_i:"11-"+a}},[r("view",[r("view",{staticClass:t._$s("13-"+a,"sc","header-bg-upper"),attrs:{_i:"13-"+a}})]),r("view",{staticClass:t._$s("14-"+a,"sc","title"),attrs:{_i:"14-"+a}},[t._v(t._$s("14-"+a,"t0-0",t._s(e.name)))]),r("view",{staticClass:t._$s("15-"+a,"sc","toplist"),attrs:{_i:"15-"+a}},t._l(t._$s("16-"+a,"f",{forItems:e.list}),(function(e,n,i,s){return r("view",{key:t._$s("16-"+a,"f",{forIndex:i,key:n}),staticClass:t._$s("16-"+a+"-"+s,"sc","vod-item"),attrs:{_i:"16-"+a+"-"+s},on:{click:function(r){return t.navTo(e.vod_id)}}},[r("view",{staticClass:t._$s("17-"+a+"-"+s,"sc","num"),class:t._$s("17-"+a+"-"+s,"c",n<3&&"num-"+(n+1)),attrs:{_i:"17-"+a+"-"+s}},[t._v(t._$s("17-"+a+"-"+s,"t0-0",t._s(n+1)))]),r("vod-image",{attrs:{src:e.vod_pic,_i:"18-"+a+"-"+s}}),r("view",[r("view",{staticClass:t._$s("20-"+a+"-"+s,"sc","name"),attrs:{_i:"20-"+a+"-"+s}},[t._v(t._$s("20-"+a+"-"+s,"t0-0",t._s(e.vod_name)))]),r("view",{staticClass:t._$s("21-"+a+"-"+s,"sc","vod-tag"),attrs:{_i:"21-"+a+"-"+s}},[r("view",{staticClass:t._$s("22-"+a+"-"+s,"sc","vod-pingfen"),attrs:{_i:"22-"+a+"-"+s}},[r("text",[t._v(t._$s("23-"+a+"-"+s,"t0-0",t._s(e.vod_score)))])]),r("view",{staticClass:t._$s("24-"+a+"-"+s,"sc","vod-pingfen"),attrs:{_i:"24-"+a+"-"+s}},[r("text",[t._v(t._$s("25-"+a+"-"+s,"t0-0",t._s(e.vod_hits_day)))])])]),r("view",{staticClass:t._$s("26-"+a+"-"+s,"sc","vod-msg "),attrs:{_i:"26-"+a+"-"+s}},[r("view",[t._v(t._$s("27-"+a+"-"+s,"t0-0",t._s(e.vod_year))),t._$s("28-"+a+"-"+s,"i",e.type_name_1)?r("text",[t._v(t._$s("28-"+a+"-"+s,"t0-0",t._s(e.type_name_1)))]):t._e()]),t._$s("29-"+a+"-"+s,"i",e.vod_actor)?r("view",[t._v(t._$s("29-"+a+"-"+s,"t0-0",t._s(e.vod_actor)))]):t._e()])])],1)})),0)]):t._e()})),0)]):t._e()])])},a=[]},a472:function(t,e,r){"use strict";var n=r("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(r("d522")),a={name:"u-checkbox-group",mixins:[uni.$u.mpMixin,uni.$u.mixin,i.default],computed:{parentData:function(){return[this.value,this.disabled,this.inactiveColor,this.activeColor,this.size,this.labelDisabled,this.shape,this.iconSize,this.borderBottom,this.placement]},bemClass:function(){return this.bem("checkbox-group",["placement"])}},watch:{parentData:function(){this.children.length&&this.children.map((function(t){"function"===typeof t.init&&t.init()}))}},data:function(){return{}},created:function(){this.children=[]},methods:{unCheckedOther:function(t){var e=[];this.children.map((function(t){t.isChecked&&e.push(t.name)})),this.$emit("change",e),this.$emit("input",e)}}};e.default=a},a47b:function(t,e,r){"use strict";r.d(e,"b",(function(){return i})),r.d(e,"c",(function(){return a})),r.d(e,"a",(function(){return n}));var n={uLine:r("ef2f").default,uLoadingIcon:r("42fe").default},i=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("view",{staticClass:t._$s(0,"sc","u-loadmore"),style:t._$s(0,"s",[t.$u.addStyle(t.customStyle),{backgroundColor:t.bgColor,marginBottom:t.$u.addUnit(t.marginBottom),marginTop:t.$u.addUnit(t.marginTop),height:t.$u.addUnit(t.height)}]),attrs:{_i:0}},[t._$s(1,"i",t.line)?r("u-line",{attrs:{length:"140rpx",color:t.lineColor,hairline:!1,dashed:t.dashed,_i:1}}):t._e(),r("view",{staticClass:t._$s(2,"sc","u-loadmore__content"),class:t._$s(2,"c","loadmore"==t.status||"nomore"==t.status?"u-more":""),attrs:{_i:2}},[t._$s(3,"i","loading"===t.status&&t.icon)?r("view",{staticClass:t._$s(3,"sc","u-loadmore__content__icon-wrap"),attrs:{_i:3}},[r("u-loading-icon",{attrs:{color:t.iconColor,size:t.iconSize,mode:t.loadingIcon,_i:4}})],1):t._e(),r("text",{staticClass:t._$s(5,"sc","u-line-1"),class:t._$s(5,"c",["nomore"==t.status&&1==t.isDot?"u-loadmore__content__dot-text":"u-loadmore__content__text"]),style:t._$s(5,"s",[t.loadTextStyle]),attrs:{_i:5},on:{click:t.loadMore}},[t._v(t._$s(5,"t0-0",t._s(t.showText)))])]),t._$s(6,"i",t.line)?r("u-line",{attrs:{length:"140rpx",color:t.lineColor,hairline:!1,dashed:t.dashed,_i:6}}):t._e()],1)},a=[]},a48c:function(t,e,r){"use strict";var n=r("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(r("127e")),a=n(r("ee10")),s=r("0f81"),o={data:function(){return{data:{}}},onLoad:function(){var t=this;return(0,a.default)(i.default.mark((function e(){var r;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$onLaunched;case 2:r=getApp().globalData.userToken,r?t.getData():uni.redirectTo({url:"/pages/user/login"});case 4:case"end":return e.stop()}}),e)})))()},methods:{getData:function(){var t=this;s.user.wallet().then((function(e){1==e.code&&(t.data=e.data,t.data.user_money=t.data.user_coin>0?parseFloat(t.data.user_coin/t.data.cash_ratio).toFixed(2):"0.00")}))}}};e.default=o},a4d8:function(t,e,r){"use strict";var n=r("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(r("127e")),a=n(r("ee10")),s=n(r("4231")),o=r("0f81"),u={components:{vodImage:s.default},data:function(){return{list:[],checked:[],page:1,loadStatus:"loadmore",refreshTriggered:!1,isEdit:!1,loading:!1,isEmpty:!1}},onLoad:function(){var t=this;return(0,a.default)(i.default.mark((function e(){var r;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$onLaunched;case 2:r=getApp().globalData.userToken,r?t.getData():uni.redirectTo({url:"/pages/user/login"});case 4:case"end":return e.stop()}}),e)})))()},methods:{getData:function(){var t=this;return(0,a.default)(i.default.mark((function e(){return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if("nomore"!==t.loadStatus&&"loading"!==t.loadStatus){e.next=2;break}return e.abrupt("return");case 2:return t.loadStatus="loading",e.next=5,o.app.vodBuyLog(t.page).then((function(e){1==e.code?(0==e.data.count&&(t.isEmpty=!0),e.data.page<e.data.page_total?(t.loadStatus="loadmore",t.page++):t.loadStatus="nomore",t.list=t.list.concat(e.data.list)):t.loadStatus="loadmore"})).catch((function(e){t.loadStatus="loadmore"}));case 5:t.refreshTriggered=!1;case 6:case"end":return e.stop()}}),e)})))()},delFav:function(){var t=this;return(0,a.default)(i.default.mark((function e(){var r;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!(t.checked.length>0)){e.next=6;break}return r=t.checked.join(","),t.loading=!0,e.next=5,o.app.delFav(r).then((function(e){uni.showToast({icon:"none",title:e.msg,duration:3e3}),1===e.code&&(t.list=t.list.filter((function(e){return!t.checked.includes(e.fav_id+"")})),t.checked=[],"nomore"==t.loadStatus&&0==t.list.length&&(t.isEmpty=!0))})).catch((function(t){}));case 5:t.loading=!1;case 6:case"end":return e.stop()}}),e)})))()},refresh:function(){this.refreshTriggered=!0,this.isEmpty=!1,this.loadStatus="loadmore",this.page=1,this.list=[],this.getData()},edit:function(){this.isEdit=!this.isEdit},selectAll:function(){var t=this;this.list.map((function(e){t.checked.includes(e.fav_id+"")||(t.checked.push(e.fav_id+""),t.$set(e,"is_checked",!0))}))},changeCheck:function(t){var e=this;this.checked=t.detail.value,this.list.map((function(t){e.checked.includes(t.fav_id+"")?e.$set(t,"is_checked",!0):e.$set(t,"is_checked",!1)}))},click:function(t){!1===this.isEdit&&t.data&&uni.navigateTo({url:"/pages/video/video-app?id="+t.data.vod_id})}}};e.default=u},a61c:function(t,e,r){"use strict";var n,i;Object.defineProperty(e,"__esModule",{value:!0}),e.NativeHandler=void 0,n=uni.requireNativePlugin("NativeBridge"),i=function(t,e,r){n?e?n[t](e,r):n[t](r):r&&r("\u6ca1\u6709nativeBridge")};var a=i;e.NativeHandler=a},a6d2:function(t,e,r){"use strict";var n=r("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(r("127e")),a=n(r("ee10")),s=n(r("5601")),o=r("0f81"),u={components:{discoverItem:s.default},data:function(){return{type:[{}],sort:[{id:"hits_day",name:"1\u5929"},{id:"hits_week",name:"7\u5929"},{id:"hits_month",name:"30\u5929"}],typeIndex:0,sortIndex:0}},onLoad:function(){this.getVodClass()},methods:{tabsClick:function(t,e){var r=this;this[t]!=e.index&&(this[t]=e.index,"sortIndex"==t&&this.$nextTick((function(){r.$refs["discover"+r.typeIndex][0].init()})))},swiperChange:function(t){this.typeIndex=t.detail.current,this.$refs["discover"+this.typeIndex][0].init()},getVodClass:function(){var t=this;return(0,a.default)(i.default.mark((function e(){return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,o.app.vodClass().then((function(e){var r=e.data;r?(t.type=r.type.filter((function(t){return t.id>0})),t.$nextTick((function(){t.$refs["discover"+t.typeIndex][0].init()}))):uni.reLaunch({url:"/pages/splash/splash"})}));case 2:case"end":return e.stop()}}),e)})))()}}};e.default=u},a708:function(t,e,r){var n=r("6454");t.exports=function(t){if(Array.isArray(t))return n(t)},t.exports.__esModule=!0,t.exports["default"]=t.exports},a70f:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={grid:{col:3,border:!1,align:"left"}}},a792:function(t,e,r){"use strict";r.r(e);var n=r("ff91"),i=r.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return n[t]}))}(a);e["default"]=i.a},a827:function(t,e,r){"use strict";var n=r("47a9");Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"commentDig",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"vodDig",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"vodFav",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"vodHistory",{enumerable:!0,get:function(){return s.default}});var i=n(r("3203")),a=n(r("4185")),s=n(r("ba79")),o=n(r("14d2"))},a915:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={props:{name:{type:String,default:uni.$u.props.icon.name},color:{type:String,default:uni.$u.props.icon.color},size:{type:[String,Number],default:uni.$u.props.icon.size},bold:{type:Boolean,default:uni.$u.props.icon.bold},index:{type:[String,Number],default:uni.$u.props.icon.index},hoverClass:{type:String,default:uni.$u.props.icon.hoverClass},customPrefix:{type:String,default:uni.$u.props.icon.customPrefix},label:{type:[String,Number],default:uni.$u.props.icon.label},labelPos:{type:String,default:uni.$u.props.icon.labelPos},labelSize:{type:[String,Number],default:uni.$u.props.icon.labelSize},labelColor:{type:String,default:uni.$u.props.icon.labelColor},space:{type:[String,Number],default:uni.$u.props.icon.space},imgMode:{type:String,default:uni.$u.props.icon.imgMode},width:{type:[String,Number],default:uni.$u.props.icon.width},height:{type:[String,Number],default:uni.$u.props.icon.height},top:{type:[String,Number],default:uni.$u.props.icon.top},stop:{type:Boolean,default:uni.$u.props.icon.stop}}};e.default=n},a942:function(t,e,r){"use strict";r.r(e);var n=r("5c06b"),i=r.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return n[t]}))}(a);e["default"]=i.a},a957:function(t,e,r){"use strict";r.d(e,"b",(function(){return n})),r.d(e,"c",(function(){return i})),r.d(e,"a",(function(){}));var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return t._$s(0,"i",t.show)?r("view",{staticClass:t._$s(0,"sc","u-loading-icon"),class:t._$s(0,"c",[t.vertical&&"u-loading-icon--vertical"]),style:t._$s(0,"s",[t.$u.addStyle(t.customStyle)]),attrs:{_i:0}},[t._$s(1,"i",!t.webviewHide)?r("view",{ref:"ani",staticClass:t._$s(1,"sc","u-loading-icon__spinner"),class:t._$s(1,"c",["u-loading-icon__spinner--"+t.mode]),style:t._$s(1,"s",{color:t.color,width:t.$u.addUnit(t.size),height:t.$u.addUnit(t.size),borderTopColor:t.color,borderBottomColor:t.otherBorderColor,borderLeftColor:t.otherBorderColor,borderRightColor:t.otherBorderColor,"animation-duration":t.duration+"ms","animation-timing-function":"semicircle"===t.mode||"circle"===t.mode?t.timingFunction:""}),attrs:{_i:1}},[t._$s(2,"i","spinner"===t.mode)?t._l(t._$s(3,"f",{forItems:t.array12}),(function(e,n,i,a){return r("view",{key:t._$s(3,"f",{forIndex:i,key:n}),staticClass:t._$s("3-"+a,"sc","u-loading-icon__dot"),attrs:{_i:"3-"+a}})})):t._e()],2):t._e(),t._$s(4,"i",t.text)?r("text",{staticClass:t._$s(4,"sc","u-loading-icon__text"),style:t._$s(4,"s",{fontSize:t.$u.addUnit(t.textSize),color:t.textColor}),attrs:{_i:4}},[t._v(t._$s(4,"t0-0",t._s(t.text)))]):t._e()]):t._e()},i=[]},a9c6:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={loadingPage:{loadingText:"\u6b63\u5728\u52a0\u8f7d",image:"",loadingMode:"circle",loading:!1,bgColor:"#ffffff",color:"#C8C8C8",fontSize:19,iconSize:28,loadingColor:"#C8C8C8"}}},a9d7:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={props:{openType:String},methods:{onGetUserInfo:function(t){this.$emit("getuserinfo",t.detail)},onContact:function(t){this.$emit("contact",t.detail)},onGetPhoneNumber:function(t){this.$emit("getphonenumber",t.detail)},onError:function(t){this.$emit("error",t.detail)},onLaunchApp:function(t){this.$emit("launchapp",t.detail)},onOpenSetting:function(t){this.$emit("opensetting",t.detail)}}};e.default=n},aa32:function(t,e,r){"use strict";r.r(e);var n=r("c343"),i=r("56ea");for(var a in i)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return i[t]}))}(a);var s=r("828b"),o=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);e["default"]=o.exports},aa80:function(t,e,r){"use strict";r.d(e,"b",(function(){return i})),r.d(e,"c",(function(){return a})),r.d(e,"a",(function(){return n}));var n={uLoadmore:r("bc5a").default},i=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("view",{staticClass:t._$s(0,"sc","page-container"),attrs:{_i:0}},[r("view",{staticClass:t._$s(1,"sc","feedback-container"),attrs:{_i:1}},[r("view",{staticClass:t._$s(2,"sc","card"),attrs:{_i:2}},[r("view",{staticClass:t._$s(3,"sc","card-content"),attrs:{_i:3}},t._l(t._$s(4,"f",{forItems:t.list}),(function(e,n,i,a){return r("view",{key:t._$s(4,"f",{forIndex:i,key:n}),staticClass:t._$s("4-"+a,"sc","feedback-item"),attrs:{_i:"4-"+a}},[r("view",{staticClass:t._$s("5-"+a,"sc","content"),attrs:{_i:"5-"+a}},[r("text",{staticClass:t._$s("6-"+a,"sc","item-tag"),attrs:{_i:"6-"+a}},[t._v(t._$s("6-"+a,"t0-0",t._s(e.gbook_type_name)))]),t._v(t._$s("5-"+a,"t1-0",t._s(e.gbook_content)))]),r("view",{staticClass:t._$s("7-"+a,"sc","time"),attrs:{_i:"7-"+a}},[t._v(t._$s("7-"+a,"t0-0",t._s(t.formatTime(e.gbook_time))))]),r("view",{staticClass:t._$s("8-"+a,"sc","reply"),class:t._$s("8-"+a,"c",e.gbook_reply&&"replyed"),attrs:{_i:"8-"+a}},[t._v(t._$s("8-"+a,"t0-0",t._s(e.gbook_reply||"\u8bf7\u8010\u5fc3\u7b49\u5f85\u5c0f\u7f16\u56de\u590d..")))])])})),0),r("view",{staticClass:t._$s(9,"sc","load-more"),attrs:{_i:9}},[r("u-loadmore",{attrs:{status:t.loadStatus,"loading-icon":"semicircle",_i:10}})],1)])])])},a=[]},aaee:function(t,e,r){"use strict";r.r(e);var n=r("ac19"),i=r("43d1");for(var a in i)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return i[t]}))}(a);var s=r("828b"),o=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);e["default"]=o.exports},ac19:function(t,e,r){"use strict";r.d(e,"b",(function(){return i})),r.d(e,"c",(function(){return a})),r.d(e,"a",(function(){return n}));var n={uniIcons:r("da03").default,uSearch:r("44c2").default},i=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("view",{staticClass:t._$s(0,"sc","page-container"),attrs:{_i:0}},[r("view",{staticClass:t._$s(1,"sc","status-bar"),attrs:{_i:1}}),r("view",{staticClass:t._$s(2,"sc","page-head"),attrs:{_i:2}},[r("view",{staticClass:t._$s(3,"sc","page-head-btn"),attrs:{_i:3},on:{click:t.goBack}},[r("uni-icons",{attrs:{type:"back",size:"26",color:"#fff",_i:4}})],1),r("u-search",{attrs:{placeholder:"\u8bf7\u8f93\u5165\u8981\u641c\u7d22\u7684\u5185\u5bb9",actionStyle:{width:"50px",fontSize:"16px",color:"#FC5667"},_i:5},on:{search:t.search,custom:t.search},model:{value:t._$s(5,"v-model",t.wd),callback:function(e){t.wd=e},expression:"wd"}})],1),r("view",{staticClass:t._$s(6,"sc","search-container"),attrs:{_i:6}},[r("search-history",{directives:[{name:"show",rawName:"v-show",value:t._$s(7,"v-show",t.history),expression:"_$s(7,'v-show',history)"}],ref:"history",attrs:{_i:7},on:{"item-click":t.search}}),r("search-empty",{directives:[{name:"show",rawName:"v-show",value:t._$s(8,"v-show",t.empty),expression:"_$s(8,'v-show',empty)"}],attrs:{_i:8}}),t._$s(9,"i",t.list)?r("search-list",{ref:"list",attrs:{wd:t.wd,_i:9},on:{empty:t.showEmpty}}):t._e()],1)])},a=[]},ad08:function(t,e,r){"use strict";r.d(e,"b",(function(){return i})),r.d(e,"c",(function(){return a})),r.d(e,"a",(function(){return n}));var n={uniPopup:r("89a4").default},i=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("uni-popup",{ref:"popup",attrs:{type:"top","is-mask-click":!0,_i:0}},[r("scroll-view",{staticClass:t._$s(1,"sc","scroll"),attrs:{_i:1}},[r("view",{staticClass:t._$s(2,"sc","tabs"),attrs:{_i:2},on:{touchmove:function(t){t.stopPropagation()}}},t._l(t._$s(3,"f",{forItems:t.tabsData}),(function(e,n,i,a){return r("view",{key:t._$s(3,"f",{forIndex:i,key:n}),staticClass:t._$s("3-"+a,"sc","tab-item"),class:t._$s("3-"+a,"c",{active:t.currentTab===n}),attrs:{_i:"3-"+a},on:{click:function(e){return t.tabsClick(n)}}},[t._v(t._$s("3-"+a,"t0-0",t._s(e.name)))])})),0)])])},a=[]},ad30:function(t,e,r){"use strict";r.d(e,"b",(function(){return i})),r.d(e,"c",(function(){return a})),r.d(e,"a",(function(){return n}));var n={uEmpty:r("9925").default,uButton:r("9a24").default},i=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("view",{staticClass:t._$s(0,"sc","page-container"),attrs:{_i:0}},[r("scroll-view",{},[r("view",{staticClass:t._$s(2,"sc","download-list"),attrs:{_i:2}},[r("scroll-view",{attrs:{_i:3}},[r("checkbox-group",{staticClass:t._$s(4,"sc","item-container"),attrs:{_i:4},on:{change:t.changeCheck}},t._l(t._$s(5,"f",{forItems:t.taskArr}),(function(e,n,i,a){return r("label",{key:t._$s(5,"f",{forIndex:i,key:n}),staticClass:t._$s("5-"+a,"sc","history-item align-center"),attrs:{_i:"5-"+a}},[t._$s("6-"+a,"i",t.isDeleteMode)?r("checkbox",{attrs:{value:t._$s("6-"+a,"a-value",e.id+""),checked:t._$s("6-"+a,"a-checked",e.is_checked),_i:"6-"+a}}):t._e(),r("downloading-item",{ref:t._$s("7-"+a,"ref","downloadItem"+e.options.filename),refInFor:!0,attrs:{progress:t.getProgress(e),item:e,_i:"7-"+a},on:{CancelTask:t.cancelTask,pauseDownload:t.pauseDownload,resumeDownload:t.resumeDownload}})],1)})),0)]),t._$s(8,"i",t.isEmpty)?r("u-empty",{attrs:{icon:"/static/images/empty.svg",width:"240",_i:8}}):t._e()],1)]),t._$s(9,"i",t.isDeleteMode)?r("view",{staticClass:t._$s(9,"sc","history-bottom align-center"),attrs:{_i:9}},[r("u-button",{attrs:{plain:!0,shape:"circle",text:"\u5168\u9009",_i:10},on:{click:t.selectAll}}),r("u-button",{attrs:{type:"error",plain:!0,shape:"circle",text:"\u5220\u9664",_i:11},on:{click:t.deldownload}})],1):t._e()])},a=[]},ad40:function(t,e,r){"use strict";(function(t){var n=r("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(r("127e")),a=n(r("ee10")),s=n(r("42eb")),o=n(r("913b")),u=n(r("4a05")),l=r("0f81"),c={components:{vodItem:s.default,advItem:o.default,sortListAll:u.default},props:{pid:{type:Number},index:{type:Number}},data:function(){return{condition:{type:{current:0,data:[{id:"",name:"\u5168\u90e8"}]},type_child:{current:0,data:[]},class:{current:0,data:[]},sort:{current:0,data:[{id:"",name:"\u9ed8\u8ba4"}]}},list:[],page:1,loaded:!1,refreshTriggered:!1,loadStatus:"loadmore",banner_adv:[],interval_adv:[],item:{},itemIndex:""}},methods:{openAll:function(e,r){t("log",e,r," at pages/home/channel-class-index.vue:100"),this.itemIndex=e,this.item=r,this.$refs.popup.open()},init:function(){if(!1===this.loaded)this.getVodClass();else{var t,e=this.condition.type.data.findIndex((function(t){if(t.id==getApp().globalData.switchChannel.type_pid)return!0})),r=0;if(this.condition.type.current!=e)this.condition.type_child.data=null===(t=this.condition.type)||void 0===t?void 0:t.data[e].child;this.condition.type_child.data&&(r=this.condition.type_child.data.findIndex((function(t){if(t.id==getApp().globalData.switchChannel.type)return!0}))),this.condition.type.current==e&&this.condition.type_child.current==r||(this.condition.type.current=e,this.condition.type_child.current=r,this.condition.sort.current=0,this.condition.class.current=0,this.loadStatus="loadmore",this.list=[],this.page=1,this.getData())}},tabsClick:function(t,e){this.condition[t].current!=e.index&&("type"==t&&(this.condition.type_child.data=this.condition.type.data[e.index]["child"],this.condition.type_child.current=0,getApp().globalData.switchChannel.type_pid=e.id,getApp().globalData.switchChannel.type=0),"type_child"==t&&(getApp().globalData.switchChannel.type=e.id),this.condition[t].current=e.index,this.loadStatus="loadmore",this.list=[],this.page=1,this.getData())},getVodClass:function(){var t=this;return(0,a.default)(i.default.mark((function e(){return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,l.app.vodClass().then((function(e){var r,n=e.data;n?(t.condition.type.data=n.type||[],t.condition.class.data=(null===(r=t.condition.type)||void 0===r?void 0:r.data[t.index].class)||[],t.condition.type.data=t.condition.type.data[t.index].child||[],t.condition.sort.data=n.sort||[],t.$nextTick((function(){t.getData()})),t.loaded=!0,t.refreshTriggered=!1):uni.reLaunch({url:"/pages/splash/splash"})}));case 2:case"end":return e.stop()}}),e)})))()},getData:function(){var t=this;return(0,a.default)(i.default.mark((function e(){var r,n,a,s;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if("nomore"!==t.loadStatus&&"loading"!==t.loadStatus){e.next=2;break}return e.abrupt("return");case 2:return t.loadStatus="loading",r=t.pid,n=r>0&&t.condition.type.data.length>0?t.condition.type.data[t.condition.type.current].id:0,a=t.condition.sort.data[t.condition.sort.current].id,s=t.condition.class.data.length?t.condition.class.data[t.condition.class.current].id:0,e.next=9,l.app.vodList(n,r,a,s,t.page).then((function(e){var r=e.data;t.banner_adv=r.adv_list.banner_adv,t.interval_adv=r.adv_list.interval_adv,r.page<r.page_total?(t.loadStatus="loadmore",t.page++):t.loadStatus="nomore",t.interval_adv.length&&r.list.forEach((function(e,n){(n+1)%8===0&&r.list.push(t.interval_adv[Math.floor(Math.random()*t.interval_adv.length)])})),t.list=t.list.concat(r.list),t.loaded=!0})).catch((function(e){t.loadStatus="loadmore"}));case 9:t.refreshTriggered=!1;case 10:case"end":return e.stop()}}),e)})))()},refresh:function(){this.refreshTriggered=!0,this.loadStatus="loadmore",this.page=1,this.list=[],this.getVodClass()}}};e.default=c}).call(this,r("f3b9")["default"])},ae6c:function(t,e,r){"use strict";r.r(e);var n=r("67d2"),i=r.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return n[t]}))}(a);e["default"]=i.a},ae95:function(t,e,r){"use strict";r.d(e,"b",(function(){return i})),r.d(e,"c",(function(){return a})),r.d(e,"a",(function(){return n}));var n={uniIcons:r("da03").default},i=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("view",[r("view",{staticClass:t._$s(1,"sc","comment-item"),attrs:{_i:1}},[r("image",{staticClass:t._$s(2,"sc","user-avatar"),attrs:{src:t._$s(2,"a-src",t.item.user_portrait||t.item.avatar),_i:2}}),r("view",{staticClass:t._$s(3,"sc","item-content"),attrs:{_i:3}},[r("view",{staticClass:t._$s(4,"sc","item-title-box"),attrs:{_i:4}},[r("text",{staticClass:t._$s(5,"sc","user-name"),attrs:{_i:5}},[t._v(t._$s(5,"t0-0",t._s(t.item.user_nick_name||t.item.user_name)))]),t._$s(6,"i",t.item.is_top)?r("text",{staticClass:t._$s(6,"sc","item-top-icon"),attrs:{_i:6}}):t._e(),r("view"),r("view",{staticClass:t._$s(8,"sc","item-statistics"),attrs:{_i:8}},[r("view",{attrs:{_i:9},on:{click:function(e){return t.digComment(t.item,"up")}}},[r("uni-icons",{attrs:{type:t.item.is_up?"heart-filled":"heart",color:t.item.is_up?"#fa3534":"#b9bbbd",size:"16",_i:10}}),r("text",[t._v(t._$s(11,"t0-0",t._s(1===t.item.is_top?"999+":t.item.comment_up)))])],1),r("view",{attrs:{_i:12},on:{click:function(e){return t.digComment(t.item,"down")}}},[r("uni-icons",{attrs:{type:t.item.is_down?"hand-down-filled":"hand-down",color:t.item.comment_down?"#909399":"#b9bbbd",size:"18",_i:13}}),r("text",[t._v(t._$s(14,"t0-0",t._s(t.item.comment_down||0)))])],1)]),r("view",{staticClass:t._$s(15,"sc","item-reply"),attrs:{_i:15},on:{click:function(e){return t.reply(0,t.item,t.index)}}})]),r("view",[t._v(t._$s(16,"t0-0",t._s(t.formatTime(t.item.comment_time))))]),r("text",{staticClass:t._$s(17,"sc","comment-content"),attrs:{_i:17}},[t._v(t._$s(17,"t0-0",t._s(t.item.comment_content)))])])])])},a=[]},af34:function(t,e,r){var n=r("a708"),i=r("b893"),a=r("6382"),s=r("9008");t.exports=function(t){return n(t)||i(t)||a(t)||s()},t.exports.__esModule=!0,t.exports["default"]=t.exports},b0e4:function(t,e){var r={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==r.call(t)}},b25d:function(t,e,r){"use strict";r.d(e,"b",(function(){return i})),r.d(e,"c",(function(){return a})),r.d(e,"a",(function(){return n}));var n={uUpload:r("f76a").default,uButton:r("9a24").default},i=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("view",{staticClass:t._$s(0,"sc","page-container"),attrs:{_i:0}},[r("view",{staticClass:t._$s(1,"sc","feedback-container"),attrs:{_i:1}},[r("view",{staticClass:t._$s(2,"sc","card"),attrs:{_i:2}},[r("view",{staticClass:t._$s(3,"sc","card-title"),attrs:{_i:3}}),r("view",{staticClass:t._$s(4,"sc","card-content"),attrs:{_i:4}},[r("view",{staticClass:t._$s(5,"sc","feedback-type justify-start"),attrs:{_i:5}},t._l(t._$s(6,"f",{forItems:t.typeList}),(function(e,n,i,a){return r("view",{key:t._$s(6,"f",{forIndex:i,key:n}),staticClass:t._$s("6-"+a,"sc","feedback-type-item"),class:t._$s("6-"+a,"c",t.type===e.id?"selected":""),attrs:{_i:"6-"+a},on:{click:function(r){return t.typeSelect(e.id)}}},[t._v(t._$s("6-"+a,"t0-0",t._s(e.name)))])})),0),r("textarea",{directives:[{name:"model",rawName:"v-model",value:t.content,expression:"content"}],staticClass:t._$s(7,"sc","feedback-textarea"),attrs:{_i:7},domProps:{value:t._$s(7,"v-model",t.content)},on:{input:function(e){e.target.composing||(t.content=e.target.value)}}}),r("u-upload",{staticClass:t._$s(8,"sc","feedback-upload"),attrs:{fileList:t.fileList,maxCount:1,_i:8},on:{afterRead:t.uploadFile,delete:t.deleteFile}})],1)])]),r("u-button",{staticClass:t._$s(9,"sc","feedback-submit-button"),attrs:{shape:"circle",disabled:t.loading,loading:t.loading,color:"linear-gradient(90deg, #DA2538 0%, #F75F68 100%)",text:"\u7acb\u5373\u63d0\u4ea4",_i:9},on:{click:t.submit}})],1)},a=[]},b260:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={countTo:{startVal:0,endVal:0,duration:2e3,autoplay:!0,decimals:0,useEasing:!0,decimal:".",color:"#606266",fontSize:22,bold:!1,separator:""}}},b2e3:function(t,e,r){var n,i,a,s=r("3b2d");(function(o,u){"object"===s(e)?t.exports=e=u(r("707d")):(i=[r("707d")],n=u,a="function"===typeof n?n.apply(e,i):n,void 0===a||(t.exports=a))})(0,(function(t){return function(){var e=t,r=e.lib,n=r.WordArray,i=e.enc;i.Utf16=i.Utf16BE={stringify:function(t){for(var e=t.words,r=t.sigBytes,n=[],i=0;i<r;i+=2){var a=e[i>>>2]>>>16-i%4*8&65535;n.push(String.fromCharCode(a))}return n.join("")},parse:function(t){for(var e=t.length,r=[],i=0;i<e;i++)r[i>>>1]|=t.charCodeAt(i)<<16-i%2*16;return n.create(r,2*e)}};function a(t){return t<<8&4278255360|t>>>8&16711935}i.Utf16LE={stringify:function(t){for(var e=t.words,r=t.sigBytes,n=[],i=0;i<r;i+=2){var s=a(e[i>>>2]>>>16-i%4*8&65535);n.push(String.fromCharCode(s))}return n.join("")},parse:function(t){for(var e=t.length,r=[],i=0;i<e;i++)r[i>>>1]|=a(t.charCodeAt(i)<<16-i%2*16);return n.create(r,2*e)}}}(),t.enc.Utf16}))},b36d:function(t,e,r){"use strict";r.r(e);var n=r("170b"),i=r.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return n[t]}))}(a);e["default"]=i.a},b36e:function(t,e,r){"use strict";var n=r("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(r("127e")),a=n(r("ee10")),s=n(r("42eb")),o=n(r("4231")),u=n(r("f98b")),l=r("0f81"),c={components:{vodItem:s.default,channelClass:u.default,vodImage:o.default},props:{id:{type:Number,default:0},index:{type:Number}},data:function(){return{refreshTriggered:!1,advList:[],color:["#534545","#45534C","#0A354A","#47390B"],actor:[],loadmore:!1,slideshow:[],loaded:!1}},methods:{init:function(){!1===this.loaded&&(this.getSlideshow(),this.refreshTriggered=!1)},getSlideshow:function(){var t=this;l.app.slideshow(this.id).then((function(e){t.slideshow=e.data?e.data:[],t.$nextTick((function(){t.$refs.class.init()})),t.loaded=!0}))},refresh:function(){var t=this;this.refreshTriggered=!0,this.$nextTick((function(){t.$refs.class.getVodClass()})),setTimeout((function(){t.refreshTriggered=!1}),1e3)},getTypeList:function(){this.$refs.class.getData()},bannerOpen:function(t){var e=this;return(0,a.default)(i.default.mark((function r(){return i.default.wrap((function(r){while(1)switch(r.prev=r.next){case 0:r.t0=t.type,r.next="adv"===r.t0?3:"topic"===r.t0?5:7;break;case 3:return e.openAD(t.url),r.abrupt("break",8);case 5:return uni.navigateTo({url:"/pages/album/details?id="+t.topic_id}),r.abrupt("break",8);case 7:e.openVideo(t.vod_id);case 8:case"end":return r.stop()}}),r)})))()}}};e.default=c},b37f:function(t,e,r){"use strict";r.r(e);var n=r("4a3c"),i=r("910d");for(var a in i)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return i[t]}))}(a);var s=r("828b"),o=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);e["default"]=o.exports},b3b3:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={}},b465:function(t,e,r){"use strict";r.r(e);var n=r("976a"),i=r.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return n[t]}))}(a);e["default"]=i.a},b4d2:function(t,e){function r(e){return t.exports=r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},t.exports.__esModule=!0,t.exports["default"]=t.exports,r(e)}t.exports=r,t.exports.__esModule=!0,t.exports["default"]=t.exports},b4d6:function(t,e,r){"use strict";r.r(e);var n=r("cff4"),i=r("0cd8");for(var a in i)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return i[t]}))}(a);var s=r("828b"),o=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);e["default"]=o.exports},b572:function(t,e,r){"use strict";(function(t){var n=r("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(r("127e")),a=n(r("ee10")),s=r("0f81"),o=(n(r("8f11")),r("a61c")),u=(r("ea61"),uni.requireNativePlugin("openinstall-plugin")),l={methods:{init:function(){return(0,a.default)(i.default.mark((function e(){var r,n;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=uni.getStorageSync("channel"),n=uni.getStorageSync("inviteCode"),e.next=4,s.app.init(n,r).then((function(e){if(1===e.code){var r=e.data,n=uni.getStorageSync("user_token");0==r.is_login?n&&(uni.removeStorage({key:"user_token"}),getApp().globalData.userToken=""):getApp().globalData.userToken=n,t("log",r.launch," at App.vue:37"),getApp().globalData.advList=r.advlist,getApp().globalData.share=r.share,getApp().globalData.launch=r.launch}})).catch((function(t){}));case 4:case"end":return e.stop()}}),e)})))()},getuuid:function(){return new Promise((function(t,e){plus.device.getInfo({success:function(e){t(e.uuid)},fail:function(e){var r=uni.getDeviceInfo();t(r.deviceId)}})}))},removeLaunch:function(){(0,o.NativeHandler)(this.funcMap["removeLaunch"])},getFuncMap:function(){return new Promise((function(e){(0,o.NativeHandler)("getFuncDic",null,(function(r,n){t("log","get map resolve getFunc"," at App.vue:94"),e(r)}))}))}},onLaunch:function(){var t=(0,a.default)(i.default.mark((function t(){var e,r;return i.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!this.isFullApp()){t.next=25;break}if("ios"!=uni.getSystemInfoSync().platform){t.next=5;break}return t.next=4,this.getFuncMap();case 4:this.funcMap=t.sent;case 5:if(u.init(),setTimeout((function(){u.getInstall(8,(function(t){var e=JSON.parse(decodeURIComponent(t.bindData));uni.setStorageSync("inviteCode",e.inviteCode||""),uni.setStorageSync("channel",t.channelCode||"")}))}),50),e=uni.getStorageSync("user_uuid"),""!=e){t.next=12;break}return t.next=10,this.getuuid().then((function(t){return t}));case 10:e=t.sent,e?uni.setStorageSync("user_uuid",e):uni.setStorageSync("user_uuid","");case 12:if(r=uni.getStorageSync("API_DOMAIN"),""!=r&&0!=r.length){t.next=19;break}return this.$isResolve(),"ios"==uni.getSystemInfoSync().platform&&this.removeLaunch(),t.abrupt("return");case 19:return t.next=21,this.init();case 21:"ios"==uni.getSystemInfoSync().platform&&this.removeLaunch(),this.$isResolve();case 23:t.next=26;break;case 25:uni.reLaunch({url:"/pages/splash/splash"});case 26:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}(),onShow:function(){},onHide:function(){},globalData:{advlist:[],share:{},userToken:"",switchChannel:{id:0,type:0,type_pid:0}}};e.default=l}).call(this,r("f3b9")["default"])},b5cc:function(t,e,r){"use strict";var n=r("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(r("42eb")),a={components:{vodItem:i.default},props:{introShow:{type:Boolean,default:!1},videoEpisodes:{type:[Number,String],default:0},data:{type:Object,default:""},adv:{type:Object,default:{}},playIndex:{type:Number,default:0},is_fav:{type:Number,default:0}},data:function(){return{episodesScroll:0,banner:""}},methods:{favVod:function(){this.$emit("favVod")},closeintro:function(){this.$emit("update:intro-show",!1)},triggerEpisodes:function(t){var e=this.$refs["tabEpisodes"+this.playIndex][0],r=e.scrollLeft;e.scrollLeft=0,this.$nextTick((function(){e.scrollLeft=r})),this.$emit("episodes",t)},Share:function(){this.$emit("Share")},triggerIntro:function(t){this.$emit("update:intro-show",t)},selectFrom:function(t){this.$emit("update:play-index",t.index)},selectEpisodes:function(t,e){this.$emit("update:video-episodes",e.index)},dig:function(t){this.$emit("dig",t)},godownload:function(){this.$emit("download")}}};e.default=a},b5e8:function(t,e,r){"use strict";var n=r("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(r("b823")),a=n(r("6f69")),s={components:{channelAlbum:i.default,channelClass:a.default},data:function(){return{navs:[{name:"\u5f71\u89c6\u5206\u7c7b"}],navIndex:0}},watch:{navIndex:{handler:function(){var t=this;this.$nextTick((function(){t.loadData()}))}}},onShow:function(){var t=this;getApp().globalData.switchChannel.id;this.navIndex=0,this.$nextTick((function(){t.loadData()}))},methods:{swiperChange:function(t){this.navIndex=t.detail.current,getApp().globalData.switchChannel.id=parseInt(t.detail.current)},tabsClick:function(t){this.navIndex!=t.index&&(this.navIndex=t.index)},loadData:function(){this.$refs.class.init()}}};e.default=s},b658:function(t,e,r){"use strict";r.d(e,"b",(function(){return i})),r.d(e,"c",(function(){return a})),r.d(e,"a",(function(){return n}));var n={uniIcons:r("da03").default,uTabs:r("58b7").default},i=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("view",{staticClass:t._$s(0,"sc","page-container"),attrs:{_i:0}},[r("view",{staticClass:t._$s(1,"sc","header-bg"),attrs:{_i:1}},[r("view",{staticClass:t._$s(2,"sc","header-bg-upper"),attrs:{_i:2}})]),r("view",{staticClass:t._$s(3,"sc","status-bar"),attrs:{_i:3}}),r("view",{staticClass:t._$s(4,"sc","page-head"),attrs:{_i:4}},[r("view",{staticClass:t._$s(5,"sc","page-head-btn"),attrs:{_i:5},on:{click:t.back}},[r("uni-icons",{attrs:{type:"back",size:"26",_i:6}})],1),r("view",{staticClass:t._$s(7,"sc","page-head-title"),attrs:{_i:7}}),r("view",{staticClass:t._$s(8,"sc","page-head-btn"),attrs:{_i:8}},[r("view",{staticClass:t._$s(9,"sc","text-btn"),attrs:{_i:9},on:{click:t.deleteMode}},[t._v(t._$s(9,"t0-0",t._s(t.navRightTitle)))])])]),r("view",{staticClass:t._$s(10,"sc","download-tabs"),attrs:{_i:10}},[r("u-tabs",{attrs:{"line-width":0,"line-height":0,"line-color":"#000",inactiveStyle:{color:"#fff",fontSize:"16px"},"item-style":{height:"36px",padding:"0 10px"},"active-style":{fontSize:"18px",fontWeight:"500",color:"#DA2538"},list:t.tabs,current:t.tabsIndex,_i:11},on:{click:t.tabsClick}})],1),r("swiper",{staticClass:t._$s(12,"sc","swiper-container"),attrs:{current:t._$s(12,"a-current",t.tabsIndex),_i:12},on:{change:t.swiperChange}},[r("swiper-item",[r("downloading-class",{ref:"downloadingClass",attrs:{_i:14}})],1),r("swiper-item",[r("download-class",{ref:"downloadClass",attrs:{_i:16}})],1)])])},a=[]},b6d4:function(t,e,r){"use strict";r.r(e);var n=r("c63d"),i=r("ae6c");for(var a in i)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return i[t]}))}(a);var s=r("828b"),o=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);e["default"]=o.exports},b6f4:function(t,e,r){"use strict";(function(t){var n=r("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r("ba27"),a=n(r("fc49")),s=n(r("cd2f")),o={name:"u-upload",mixins:[uni.$u.mpMixin,uni.$u.mixin,a.default,s.default],data:function(){return{lists:[],isInCount:!0}},watch:{fileList:{immediate:!0,handler:function(){this.formatFileList()}}},methods:{formatFileList:function(){var t=this,e=this.fileList,r=void 0===e?[]:e,n=this.maxCount,i=r.map((function(e){return Object.assign(Object.assign({},e),{isImage:"image"===t.accept||uni.$u.test.image(e.url||e.thumb),isVideo:"video"===t.accept||uni.$u.test.video(e.url||e.thumb),deletable:"boolean"===typeof e.deletable?e.deletable:t.deletable})}));this.lists=i,this.isInCount=i.length<n},chooseFile:function(){var t=this,e=this.maxCount,r=this.multiple,n=this.lists,a=this.disabled;if(!a){var s;try{s=uni.$u.test.array(this.capture)?this.capture:this.capture.split(",")}catch(o){s=[]}(0,i.chooseFile)(Object.assign({accept:this.accept,multiple:this.multiple,capture:s,compressed:this.compressed,maxDuration:this.maxDuration,sizeType:this.sizeType,camera:this.camera},{maxCount:e-n.length})).then((function(e){t.onBeforeRead(r?e:e[0])})).catch((function(e){t.$emit("error",e)}))}},onBeforeRead:function(t){var e=this,r=this.beforeRead,n=this.useBeforeRead,i=!0;uni.$u.test.func(r)&&(i=r(t,this.getDetail())),n&&(i=new Promise((function(r,n){e.$emit("beforeRead",Object.assign(Object.assign({file:t},e.getDetail()),{callback:function(t){t?r():n()}}))}))),i&&(uni.$u.test.promise(i)?i.then((function(r){return e.onAfterRead(r||t)})):this.onAfterRead(t))},getDetail:function(t){return{name:this.name,index:null==t?this.fileList.length:t}},onAfterRead:function(t){var e=this.maxSize,r=this.afterRead,n=Array.isArray(t)?t.some((function(t){return t.size>e})):t.size>e;n?this.$emit("oversize",Object.assign({file:t},this.getDetail())):("function"===typeof r&&r(t,this.getDetail()),this.$emit("afterRead",Object.assign({file:t},this.getDetail())))},deleteItem:function(t){this.$emit("delete",Object.assign(Object.assign({},this.getDetail(t)),{file:this.fileList[t]}))},onPreviewImage:function(t){var e=this;t.isImage&&this.previewFullImage&&uni.previewImage({urls:this.lists.filter((function(t){return"image"===e.accept||uni.$u.test.image(t.url||t.thumb)})).map((function(t){return t.url||t.thumb})),current:t.url||t.thumb,fail:function(){uni.$u.toast("\u9884\u89c8\u56fe\u7247\u5931\u8d25")}})},onPreviewVideo:function(e){if(this.data.previewFullImage){var r=e.currentTarget.dataset.index,n=this.data.lists;t.previewMedia({sources:n.filter((function(t){return isVideoFile(t)})).map((function(t){return Object.assign(Object.assign({},t),{type:"video"})})),current:r,fail:function(){uni.$u.toast("\u9884\u89c8\u89c6\u9891\u5931\u8d25")}})}},onClickPreview:function(t){var e=t.currentTarget.dataset.index,r=this.data.lists[e];this.$emit("clickPreview",Object.assign(Object.assign({},r),this.getDetail(e)))}}};e.default=o}).call(this,r("ed83")["default"])},b7d9:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={components:{},props:{item:{},progress:0},data:function(){return{isCancel:!1,isDownload:!0}},methods:{showCancel:function(t){this.isCancel=t},getRelFileName:function(t){var e,r=t.lastIndexOf("/");return e=t.substring(r+1,t.length),e},cancelTask:function(){this.$emit("CancelTask",this.item.id)},pauseDownload:function(){this.isDownload=!1,this.$emit("pauseDownload",this.item.id)},resumeDownload:function(){this.isDownload=!0,this.$emit("resumeDownload",this.item.id)}}}},b823:function(t,e,r){"use strict";r.r(e);var n=r("5946"),i=r("806c");for(var a in i)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return i[t]}))}(a);var s=r("828b"),o=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);e["default"]=o.exports},b893:function(t,e){t.exports=function(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)},t.exports.__esModule=!0,t.exports["default"]=t.exports},b906:function(t,e,r){"use strict";r.r(e);var n=r("32cf"),i=r("a374");for(var a in i)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return i[t]}))}(a);var s=r("828b"),o=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);e["default"]=o.exports},b943:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={subsection:{list:[],current:0,activeColor:"#3c9cff",inactiveColor:"#303133",mode:"button",fontSize:12,bold:!0,bgColor:"#eeeeef",keyName:"name"}}},b94c:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={props:{show:{type:Boolean,default:uni.$u.props.transition.show},mode:{type:String,default:uni.$u.props.transition.mode},duration:{type:[String,Number],default:uni.$u.props.transition.duration},timingFunction:{type:String,default:uni.$u.props.transition.timingFunction}}};e.default=n},b958:function(t,e,r){"use strict";r.r(e);var n=r("cf8e"),i=r.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return n[t]}))}(a);e["default"]=i.a},ba20:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={line:{color:"#d6d7d9",length:"100%",direction:"row",hairline:!0,margin:0,dashed:!1}}},ba27:function(t,e,r){"use strict";var n=r("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.chooseFile=function(t){var e=t.accept,r=t.multiple,n=t.capture,i=t.compressed,a=t.maxDuration,u=t.sizeType,l=t.camera,c=t.maxCount;return new Promise((function(t,A){switch(e){case"image":uni.chooseImage({count:r?Math.min(c,9):1,sourceType:n,sizeType:u,success:function(e){return t(function(t){return t.tempFiles.map((function(t){return s(s({},o(t,["path"])),{},{type:"image",url:t.path,thumb:t.path,size:t.size})}))}(e))},fail:A});break;case"video":uni.chooseVideo({sourceType:n,compressed:i,maxDuration:a,camera:l,success:function(e){return t(function(t){return[s(s({},o(t,["tempFilePath","thumbTempFilePath","errMsg"])),{},{type:"video",url:t.tempFilePath,thumb:t.thumbTempFilePath,size:t.size})]}(e))},fail:A});break;default:}}))};var i=n(r("7ca3"));function a(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function s(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?a(Object(r),!0).forEach((function(e){(0,i.default)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function o(t,e){return["[object Object]","[object File]"].includes(Object.prototype.toString.call(t))?Object.keys(t).reduce((function(r,n){return e.includes(n)||(r[n]=t[n]),r}),{}):{}}},ba37:function(t,e){
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
e.read=function(t,e,r,n,i){var a,s,o=8*i-n-1,u=(1<<o)-1,l=u>>1,c=-7,A=r?i-1:0,d=r?-1:1,f=t[e+A];for(A+=d,a=f&(1<<-c)-1,f>>=-c,c+=o;c>0;a=256*a+t[e+A],A+=d,c-=8);for(s=a&(1<<-c)-1,a>>=-c,c+=n;c>0;s=256*s+t[e+A],A+=d,c-=8);if(0===a)a=1-l;else{if(a===u)return s?NaN:1/0*(f?-1:1);s+=Math.pow(2,n),a-=l}return(f?-1:1)*s*Math.pow(2,a-n)},e.write=function(t,e,r,n,i,a){var s,o,u,l=8*a-i-1,c=(1<<l)-1,A=c>>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,f=n?0:a-1,h=n?1:-1,p=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(o=isNaN(e)?1:0,s=c):(s=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-s))<1&&(s--,u*=2),e+=s+A>=1?d/u:d*Math.pow(2,1-A),e*u>=2&&(s++,u/=2),s+A>=c?(o=0,s=c):s+A>=1?(o=(e*u-1)*Math.pow(2,i),s+=A):(o=e*Math.pow(2,A-1)*Math.pow(2,i),s=0));i>=8;t[r+f]=255&o,f+=h,o/=256,i-=8);for(s=s<<i|o,l+=i;l>0;t[r+f]=255&s,f+=h,s/=256,l-=8);t[r+f-h]|=128*p}},ba79:function(t,e,r){"use strict";var n=r("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(r("127e")),a=n(r("ee10")),s=n(r("d3ef")),o=s.default.vodHistory,u={get:function(t){return(0,a.default)(i.default.mark((function e(){return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,o.get(t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})))()},list:function(t){var e=arguments;return(0,a.default)(i.default.mark((function r(){var n,a,s,u,l;return i.default.wrap((function(r){while(1)switch(r.prev=r.next){case 0:return n=e.length>1&&void 0!==e[1]?e[1]:20,a=(t-1)*n,r.next=4,o.count();case 4:return s=r.sent,u=Math.ceil(s/n),r.next=8,o.orderBy("time").reverse().offset(a).limit(n).primaryKeys();case 8:return l=r.sent,r.abrupt("return",{list:l,count:s,pageCount:u});case 10:case"end":return r.stop()}}),r)})))()},put:function(t){return(0,a.default)(i.default.mark((function e(){return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,o.put(t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})))()},remove:function(t){return(0,a.default)(i.default.mark((function e(){return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,o.bulkDelete(t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})))()},clear:function(){return(0,a.default)(i.default.mark((function t(){return i.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,o.clear();case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)})))()}};e.default=u},ba94:function(t,e,r){"use strict";r.r(e);var n=r("0674"),i=r("62ff");for(var a in i)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return i[t]}))}(a);var s=r("828b"),o=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,"14045e0b",null,!1,n["a"],void 0);e["default"]=o.exports},bbe5:function(t,e,r){var n,i,a,s=r("3b2d");(function(o,u,l){"object"===s(e)?t.exports=e=u(r("707d"),r("05f0")):(i=[r("707d"),r("05f0")],n=u,a="function"===typeof n?n.apply(e,i):n,void 0===a||(t.exports=a))})(0,(function(t){t.lib.Cipher||function(e){var r=t,n=r.lib,i=n.Base,a=n.WordArray,s=n.BufferedBlockAlgorithm,o=r.enc,u=(o.Utf8,o.Base64),l=r.algo,c=l.EvpKDF,A=n.Cipher=s.extend({cfg:i.extend(),createEncryptor:function(t,e){return this.create(this._ENC_XFORM_MODE,t,e)},createDecryptor:function(t,e){return this.create(this._DEC_XFORM_MODE,t,e)},init:function(t,e,r){this.cfg=this.cfg.extend(r),this._xformMode=t,this._key=e,this.reset()},reset:function(){s.reset.call(this),this._doReset()},process:function(t){return this._append(t),this._process()},finalize:function(t){t&&this._append(t);var e=this._doFinalize();return e},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function t(t){return"string"==typeof t?B:w}return function(e){return{encrypt:function(r,n,i){return t(n).encrypt(e,r,n,i)},decrypt:function(r,n,i){return t(n).decrypt(e,r,n,i)}}}}()}),d=(n.StreamCipher=A.extend({_doFinalize:function(){var t=this._process(!0);return t},blockSize:1}),r.mode={}),f=n.BlockCipherMode=i.extend({createEncryptor:function(t,e){return this.Encryptor.create(t,e)},createDecryptor:function(t,e){return this.Decryptor.create(t,e)},init:function(t,e){this._cipher=t,this._iv=e}}),h=d.CBC=function(){var t=f.extend();function e(t,e,r){var n,i=this._iv;i?(n=i,this._iv=void 0):n=this._prevBlock;for(var a=0;a<r;a++)t[e+a]^=n[a]}return t.Encryptor=t.extend({processBlock:function(t,r){var n=this._cipher,i=n.blockSize;e.call(this,t,r,i),n.encryptBlock(t,r),this._prevBlock=t.slice(r,r+i)}}),t.Decryptor=t.extend({processBlock:function(t,r){var n=this._cipher,i=n.blockSize,a=t.slice(r,r+i);n.decryptBlock(t,r),e.call(this,t,r,i),this._prevBlock=a}}),t}(),p=r.pad={},g=p.Pkcs7={pad:function(t,e){for(var r=4*e,n=r-t.sigBytes%r,i=n<<24|n<<16|n<<8|n,s=[],o=0;o<n;o+=4)s.push(i);var u=a.create(s,n);t.concat(u)},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}},v=(n.BlockCipher=A.extend({cfg:A.cfg.extend({mode:h,padding:g}),reset:function(){var t;A.reset.call(this);var e=this.cfg,r=e.iv,n=e.mode;this._xformMode==this._ENC_XFORM_MODE?t=n.createEncryptor:(t=n.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==t?this._mode.init(this,r&&r.words):(this._mode=t.call(n,this,r&&r.words),this._mode.__creator=t)},_doProcessBlock:function(t,e){this._mode.processBlock(t,e)},_doFinalize:function(){var t,e=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(e.pad(this._data,this.blockSize),t=this._process(!0)):(t=this._process(!0),e.unpad(t)),t},blockSize:4}),n.CipherParams=i.extend({init:function(t){this.mixIn(t)},toString:function(t){return(t||this.formatter).stringify(this)}})),m=r.format={},y=m.OpenSSL={stringify:function(t){var e,r=t.ciphertext,n=t.salt;return e=n?a.create([1398893684,1701076831]).concat(n).concat(r):r,e.toString(u)},parse:function(t){var e,r=u.parse(t),n=r.words;return 1398893684==n[0]&&1701076831==n[1]&&(e=a.create(n.slice(2,4)),n.splice(0,4),r.sigBytes-=16),v.create({ciphertext:r,salt:e})}},w=n.SerializableCipher=i.extend({cfg:i.extend({format:y}),encrypt:function(t,e,r,n){n=this.cfg.extend(n);var i=t.createEncryptor(r,n),a=i.finalize(e),s=i.cfg;return v.create({ciphertext:a,key:r,iv:s.iv,algorithm:t,mode:s.mode,padding:s.padding,blockSize:t.blockSize,formatter:n.format})},decrypt:function(t,e,r,n){n=this.cfg.extend(n),e=this._parse(e,n.format);var i=t.createDecryptor(r,n).finalize(e.ciphertext);return i},_parse:function(t,e){return"string"==typeof t?e.parse(t,this):t}}),b=r.kdf={},_=b.OpenSSL={execute:function(t,e,r,n){n||(n=a.random(8));var i=c.create({keySize:e+r}).compute(t,n),s=a.create(i.words.slice(e),4*r);return i.sigBytes=4*e,v.create({key:i,iv:s,salt:n})}},B=n.PasswordBasedCipher=w.extend({cfg:w.cfg.extend({kdf:_}),encrypt:function(t,e,r,n){n=this.cfg.extend(n);var i=n.kdf.execute(r,t.keySize,t.ivSize);n.iv=i.iv;var a=w.encrypt.call(this,t,e,i.key,n);return a.mixIn(i),a},decrypt:function(t,e,r,n){n=this.cfg.extend(n),e=this._parse(e,n.format);var i=n.kdf.execute(r,t.keySize,t.ivSize,e.salt);n.iv=i.iv;var a=w.decrypt.call(this,t,e,i.key,n);return a}})}()}))},bc5a:function(t,e,r){"use strict";r.r(e);var n=r("a47b"),i=r("4c80");for(var a in i)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return i[t]}))}(a);var s=r("828b"),o=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,"6af24d38",null,!1,n["a"],void 0);e["default"]=o.exports},bcbe:function(t,e,r){"use strict";r.r(e);var n=r("68c7"),i=r("5947");for(var a in i)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return i[t]}))}(a);var s=r("828b"),o=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);e["default"]=o.exports},bcc1:function(t,e,r){"use strict";r.r(e);var n=r("60fa"),i=r.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return n[t]}))}(a);e["default"]=i.a},bd05:function(t,e,r){"use strict";r.r(e);var n=r("49b8"),i=r.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return n[t]}))}(a);e["default"]=i.a},bd0a:function(t,e,r){"use strict";var n=r("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(r("127e")),a=n(r("ee10")),s=n(r("42eb")),o=r("0f81"),u={components:{vodItem:s.default},props:{wd:{type:String,default:""}},data:function(){return{list:[],page:1,refreshTriggered:!1,loadStatus:"loadmore",loading:!0}},methods:{search:function(){this.loadStatus="loadmore",this.page=1,this.list=[],this.getData()},getData:function(){var t=this;return(0,a.default)(i.default.mark((function e(){return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if("nomore"!==t.loadStatus&&"loading"!==t.loadStatus){e.next=2;break}return e.abrupt("return");case 2:return t.loadStatus="loading",e.next=5,o.app.searchList(t.wd,t.page).then((function(e){1==e.code?(e.data.page<e.data.page_total?(t.loadStatus="loadmore",t.page++):t.loadStatus="nomore",t.list=t.list.concat(e.data.list)):t.$emit("empty")})).catch((function(e){t.$emit("empty")}));case 5:t.refreshTriggered=!1;case 6:case"end":return e.stop()}}),e)})))()},refresh:function(){this.refreshTriggered=!0,this.loadStatus="loadmore",this.page=1,this.list=[],this.getData()}}};e.default=u},bdee:function(t,e,r){"use strict";r.d(e,"b",(function(){return i})),r.d(e,"c",(function(){return a})),r.d(e,"a",(function(){return n}));var n={uOverlay:r("0136").default,uTransition:r("ba94").default,uStatusBar:r("8581").default,uIcon:r("712b").default,uSafeBottom:r("d3fa").default},i=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("view",{staticClass:t._$s(0,"sc","u-popup"),attrs:{_i:0}},[t._$s(1,"i",t.overlay)?r("u-overlay",{attrs:{show:t.show,duration:t.overlayDuration,customStyle:t.overlayStyle,opacity:t.overlayOpacity,_i:1},on:{click:t.overlayClick}}):t._e(),r("u-transition",{attrs:{show:t.show,customStyle:t.transitionStyle,mode:t.position,duration:t.duration,_i:2},on:{afterEnter:t.afterEnter,click:t.clickHandler}},[r("view",{staticClass:t._$s(3,"sc","u-popup__content"),style:t._$s(3,"s",[t.contentStyle]),attrs:{_i:3},on:{click:function(e){return e.stopPropagation(),t.noop(e)}}},[t._$s(4,"i",t.safeAreaInsetTop)?r("u-status-bar",{attrs:{_i:4}}):t._e(),t._t("default",null,{_i:5}),t._$s(6,"i",t.closeable)?r("view",{staticClass:t._$s(6,"sc","u-popup__content__close"),class:t._$s(6,"c",["u-popup__content__close--"+t.closeIconPos]),attrs:{_i:6},on:{click:function(e){return e.stopPropagation(),t.close(e)}}},[r("u-icon",{attrs:{name:"close",color:"#909399",size:"18",bold:!0,_i:7}})],1):t._e(),t._$s(8,"i",t.safeAreaInsetBottom)?r("u-safe-bottom",{attrs:{_i:8}}):t._e()],2)])],1)},a=[]},be86:function(t,e,r){"use strict";r.r(e);var n=r("f438"),i=r("77de");for(var a in i)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return i[t]}))}(a);var s=r("828b"),o=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);e["default"]=o.exports},bf71:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={props:{bgColor:{type:String,default:uni.$u.props.statusBar.bgColor}}};e.default=n},bfb3:function(t,e,r){"use strict";r.d(e,"b",(function(){return i})),r.d(e,"c",(function(){return a})),r.d(e,"a",(function(){return n}));var n={uniIcons:r("da03").default,uButton:r("9a24").default},i=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("view",{staticClass:t._$s(0,"sc","page-container"),attrs:{_i:0}},[r("view",{staticClass:t._$s(1,"sc","status-bar"),attrs:{_i:1}}),r("view",{staticClass:t._$s(2,"sc","page-head"),attrs:{_i:2}},[r("view",{staticClass:t._$s(3,"sc","page-head-btn"),attrs:{_i:3},on:{click:t.back}},[r("uni-icons",{attrs:{type:"back",color:"#fff",size:"26",_i:4}})],1),r("view",{staticClass:t._$s(5,"sc","page-head-title"),attrs:{_i:5}}),r("view",{staticClass:t._$s(6,"sc","page-head-btn"),attrs:{_i:6}},[r("view",{staticClass:t._$s(7,"sc","text-btn"),attrs:{_i:7}},[r("navigator",{})])])]),r("view",{staticClass:t._$s(9,"sc","coin-wallet"),attrs:{_i:9}},[r("view",{staticClass:t._$s(10,"sc","title"),attrs:{_i:10}}),r("view",{staticClass:t._$s(11,"sc","justify-between align-center"),attrs:{_i:11}},[r("view",{staticClass:t._$s(12,"sc","money align-center"),attrs:{_i:12}},[r("text"),r("input",{directives:[{name:"model",rawName:"v-model",value:t.money,expression:"money"}],attrs:{_i:14},domProps:{value:t._$s(14,"v-model",t.money)},on:{input:function(e){e.target.composing||(t.money=e.target.value)}}})]),r("view",{staticClass:t._$s(15,"sc","withdraw-all"),attrs:{_i:15},on:{click:t.onAll}})]),r("view",{staticClass:t._$s(16,"sc","withdraw-money align-center"),attrs:{_i:16}},[r("text",[t._v(t._$s(17,"t0-0",t._s(t.data.user_money||"0.00")))])])]),r("view",{staticClass:t._$s(18,"sc","withdraw-way"),attrs:{_i:18}},[r("view",{staticClass:t._$s(19,"sc","title"),attrs:{_i:19}}),r("image",{staticClass:t._$s(20,"sc","withdraw-img"),attrs:{_i:20}}),r("view",{staticClass:t._$s(21,"sc","input-box"),attrs:{_i:21}},[r("input",{directives:[{name:"model",rawName:"v-model",value:t.data.user_real_name,expression:"data.user_real_name"}],attrs:{_i:22},domProps:{value:t._$s(22,"v-model",t.data.user_real_name)},on:{input:function(e){e.target.composing||t.$set(t.data,"user_real_name",e.target.value)}}})]),r("view",{staticClass:t._$s(23,"sc","input-box"),attrs:{_i:23}},[r("input",{directives:[{name:"model",rawName:"v-model",value:t.data.user_alipay,expression:"data.user_alipay"}],attrs:{_i:24},domProps:{value:t._$s(24,"v-model",t.data.user_alipay)},on:{input:function(e){e.target.composing||t.$set(t.data,"user_alipay",e.target.value)}}})])]),r("view",{staticClass:t._$s(25,"sc","withdraw-remarks"),attrs:{_i:25}}),r("view",{staticClass:t._$s(26,"sc","withdraw-button"),attrs:{_i:26}},[r("u-button",{attrs:{shape:"circle",disabled:t.loading,loading:t.loading,color:"#DA2538",text:"\u786e\u8ba4\u63d0\u73b0",_i:27},on:{click:t.onSubmit}})],1),t._$s(28,"i",t.data.cash_min)?r("view",{staticClass:t._$s(28,"sc","withdraw-remarks"),attrs:{_i:28}},[t._v(t._$s(28,"t0-0",t._s(t.data.cash_min.toFixed(2)||"0.00")))]):t._e()])},a=[]},bfd7:function(t,e,r){"use strict";var n=r("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(r("7ca3")),a=n(r("0d2b")),s=n(r("3155")),o=n(r("9ea3")),u=n(r("133f")),l=n(r("70b0")),c=n(r("283a")),A=n(r("6efd")),d=n(r("692a")),f=n(r("278c")),h=n(r("9c53")),p=n(r("579a")),g=n(r("f5f7")),v=n(r("4817")),m=n(r("1341")),y=n(r("78ae")),w=n(r("1696")),b=n(r("7f9b")),_=n(r("2137")),B=n(r("7ea6")),C=n(r("3c03")),E=n(r("fdc0")),x=n(r("4c27")),T=n(r("49ba")),S=n(r("b260")),k=n(r("5c57")),I=n(r("696e")),F=n(r("8401")),L=n(r("3c46")),D=n(r("6c28")),R=n(r("ff24")),U=n(r("a70f")),O=n(r("f073")),P=n(r("e8b3")),M=n(r("c226")),Q=n(r("93b7")),N=n(r("e399")),H=n(r("8282")),$=n(r("7ce5")),j=n(r("ba20")),K=n(r("3ada")),G=n(r("dd1d")),V=n(r("4c54")),W=n(r("11ca")),z=n(r("49e7")),Y=n(r("a9c6")),q=n(r("236e")),X=n(r("1a4f")),J=n(r("8f28")),Z=n(r("f8f3")),tt=n(r("129d")),et=n(r("d93e")),rt=n(r("692c")),nt=n(r("5173")),it=n(r("9ab1")),at=n(r("e6b4")),st=n(r("8898")),ot=n(r("84a3")),ut=n(r("81bb")),lt=n(r("1712")),ct=n(r("5069")),At=n(r("4fda")),dt=n(r("f28c")),ft=n(r("1abb")),ht=n(r("e4ca")),pt=n(r("296a")),gt=n(r("c7f7")),vt=n(r("ee2f")),mt=n(r("ece2")),yt=n(r("5ae5")),wt=n(r("8a7f")),bt=n(r("4108")),_t=n(r("ce10")),Bt=n(r("b943")),Ct=n(r("3508")),Et=n(r("6170")),xt=n(r("dd99")),Tt=n(r("78b0")),St=n(r("5bbf")),kt=n(r("8e35")),It=n(r("cffa")),Ft=n(r("443b")),Lt=n(r("df20")),Dt=n(r("41a4")),Rt=n(r("c064")),Ut=n(r("32b5")),Ot=n(r("4cd6")),Pt=n(r("c222")),Mt=n(r("9304")),Qt=n(r("f668"));function Nt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Ht(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Nt(Object(r),!0).forEach((function(e){(0,i.default)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Nt(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}a.default.color;var $t=Ht(Ht(Ht(Ht(Ht(Ht(Ht(Ht(Ht(Ht(Ht(Ht(Ht(Ht(Ht(Ht(Ht(Ht(Ht(Ht(Ht(Ht(Ht(Ht(Ht(Ht(Ht(Ht(Ht(Ht(Ht(Ht(Ht(Ht(Ht(Ht(Ht(Ht(Ht(Ht(Ht(Ht(Ht(Ht(Ht(Ht(Ht(Ht(Ht(Ht(Ht(Ht(Ht(Ht(Ht(Ht(Ht(Ht(Ht(Ht(Ht(Ht(Ht(Ht(Ht(Ht(Ht(Ht(Ht(Ht(Ht(Ht(Ht(Ht(Ht(Ht(Ht(Ht(Ht(Ht(Ht(Ht(Ht(Ht(Ht(Ht(Ht(Ht({},s.default),o.default),u.default),l.default),c.default),A.default),d.default),f.default),h.default),p.default),g.default),v.default),m.default),y.default),w.default),b.default),_.default),B.default),C.default),E.default),x.default),T.default),S.default),k.default),I.default),F.default),L.default),D.default),R.default),U.default),O.default),P.default),M.default),Q.default),N.default),H.default),$.default),j.default),K.default),G.default),V.default),W.default),z.default),Y.default),q.default),X.default),J.default),Z.default),tt.default),et.default),rt.default),nt.default),it.default),at.default),st.default),ot.default),ut.default),lt.default),ct.default),At.default),dt.default),ft.default),ht.default),pt.default),gt.default),vt.default),mt.default),yt.default),wt.default),bt.default),_t.default),Bt.default),Ct.default),Et.default),xt.default),Tt.default),St.default),kt.default),It.default),Ft.default),Lt.default),Dt.default),Rt.default),Ut.default),Ot.default),Pt.default),Mt.default),Qt.default);e.default=$t},c034:function(t,e,r){"use strict";r.r(e);var n=r("f671"),i=r("5613");for(var a in i)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return i[t]}))}(a);var s=r("828b"),o=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);e["default"]=o.exports},c064:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={textarea:{value:"",placeholder:"",placeholderClass:"textarea-placeholder",placeholderStyle:"color: #c0c4cc",height:70,confirmType:"done",disabled:!1,count:!1,focus:!1,autoHeight:!1,fixed:!1,cursorSpacing:0,cursor:"",showConfirmBar:!0,selectionStart:-1,selectionEnd:-1,adjustPosition:!0,disableDefaultPadding:!1,holdKeyboard:!1,maxlength:140,border:"surround",formatter:null}}},c087:function(t,e,r){"use strict";r.r(e);var n=r("546b"),i=r("64a3");for(var a in i)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return i[t]}))}(a);var s=r("828b"),o=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);e["default"]=o.exports},c0f1:function(t,e,r){"use strict";(function(t){var n=r("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(r("127e")),a=n(r("ee10")),s=r("0f81"),o=/^1[345789]\d{9}$/,u=/^[^\s@]+@[^\s@]+\.[^\s@]+$/,l=/^.{6,16}$/,c=/^[a-zA-Z0-9]{4,10}$/,A=/^[a-zA-Z0-9]{4,8}$/,d=uni.requireNativePlugin("openinstall-plugin"),f={data:function(){return{phone:"",email:"",password:"",code:"",invite:"",ac:"phone",agreement:!1,loading:!1,codeTip:"",navs:[{name:"\u624b\u673a\u6ce8\u518c"},{name:"\u90ae\u7bb1\u6ce8\u518c"}],navIndex:0,email_sms:!1,phone_sms:!1}},onLoad:function(){this.invite=uni.getStorageSync("inviteCode"),this.bindInfo()},methods:{bindInfo:function(){var t=this;return(0,a.default)(i.default.mark((function e(){var r;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,s.user.codeMsg().then();case 2:r=e.sent,1==r.code&&(t.email_sms=r.data.email_sms,t.phone_sms=r.data.phone_sms);case 4:case"end":return e.stop()}}),e)})))()},tabsClick:function(t){this.navIndex!=t.index&&(this.navIndex=t.index,this.ac=0==this.navIndex?"phone":"email",this.code="",this.password="")},reg:function(){var t=this;return(0,a.default)(i.default.mark((function e(){return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:e.t0=t.navIndex,e.next=0===e.t0?3:1===e.t0?7:11;break;case 3:if(o.test(t.phone)){e.next=6;break}return uni.showToast({icon:"none",title:"\u8bf7\u8f93\u5165\u6b63\u786e\u7684\u624b\u673a\u53f7\u7801~!",duration:3e3}),e.abrupt("return");case 6:return e.abrupt("break",11);case 7:if(u.test(t.email)){e.next=10;break}return uni.showToast({icon:"none",title:"\u8bf7\u8f93\u5165\u6b63\u786e\u7684\u90ae\u7bb1\u5730\u5740~!",duration:3e3}),e.abrupt("return");case 10:return e.abrupt("break",11);case 11:if(1!=t.phone_sms||"phone"!=t.ac){e.next=15;break}if(c.test(t.code)){e.next=15;break}return uni.showToast({icon:"none",title:"\u8bf7\u8f93\u5165\u6b63\u786e\u7684\u9a8c\u8bc1\u7801~!",duration:3e3}),e.abrupt("return");case 15:if(1!=t.email_sms||"email"!=t.ac){e.next=19;break}if(c.test(t.code)){e.next=19;break}return uni.showToast({icon:"none",title:"\u8bf7\u8f93\u5165\u6b63\u786e\u7684\u9a8c\u8bc1\u7801~!",duration:3e3}),e.abrupt("return");case 19:if(l.test(t.password)){e.next=22;break}return uni.showToast({icon:"none",title:"\u5bc6\u7801\u5fc5\u987b\u662f6-16\u4f4d~!",duration:3e3}),e.abrupt("return");case 22:if(!t.invite||A.test(t.invite)){e.next=25;break}return uni.showToast({icon:"none",title:"\u8bf7\u8f93\u5165\u6b63\u786e\u7684\u9080\u8bf7\u7801~!",duration:3e3}),e.abrupt("return");case 25:return t.loading=!0,e.next=28,s.user.reg(t.phone,t.email,t.password,t.code,t.invite,t.ac).then((function(t){uni.showToast({icon:"none",title:t.msg,duration:3e3}),1===t.code&&(d.reportRegister(),uni.setStorage({key:"user_token",data:t.data.user_token}),getApp().globalData.share.code=t.data.user_invite_code,getApp().globalData.userToken=t.data.user_token,uni.switchTab({url:"/pages/user/index"}))})).catch((function(t){}));case 28:t.loading=!1;case 29:case"end":return e.stop()}}),e)})))()},codeChange:function(t){this.codeTip=t},getCode:function(){if(this.$refs.uCode.canGetCode){switch(this.navIndex){case 0:if(!o.test(this.phone))return void uni.showToast({icon:"none",title:"\u8bf7\u8f93\u5165\u6b63\u786e\u7684\u624b\u673a\u53f7\u7801~!",duration:3e3});break;case 1:if(!u.test(this.email))return void uni.showToast({icon:"none",title:"\u8bf7\u8f93\u5165\u6b63\u786e\u7684\u90ae\u7bb1\u5730\u5740~!",duration:3e3});break;default:}this.$refs.uCode.start(),t("log",this.phone,this.email,1,this.ac," at pages/user/reg.vue:245"),s.user.sendMsg(this.phone,this.email,1,this.ac).then((function(e){t("log",e," at pages/user/reg.vue:247"),uni.showToast({icon:"none",title:e.msg,duration:3e3})}))}},onChange:function(t){t.includes("agreement")?this.agreement=!0:this.agreement=!1}}};e.default=f}).call(this,r("f3b9")["default"])},c114:function(t,e,r){var n,i,a,s=r("3b2d");(function(o,u,l){"object"===s(e)?t.exports=e=u(r("707d"),r("bbe5")):(i=[r("707d"),r("bbe5")],n=u,a="function"===typeof n?n.apply(e,i):n,void 0===a||(t.exports=a))})(0,(function(t){return t.mode.CFB=function(){var e=t.lib.BlockCipherMode.extend();function r(t,e,r,n){var i,a=this._iv;a?(i=a.slice(0),this._iv=void 0):i=this._prevBlock,n.encryptBlock(i,0);for(var s=0;s<r;s++)t[e+s]^=i[s]}return e.Encryptor=e.extend({processBlock:function(t,e){var n=this._cipher,i=n.blockSize;r.call(this,t,e,i,n),this._prevBlock=t.slice(e,e+i)}}),e.Decryptor=e.extend({processBlock:function(t,e){var n=this._cipher,i=n.blockSize,a=t.slice(e,e+i);r.call(this,t,e,i,n),this._prevBlock=a}}),e}(),t.mode.CFB}))},c20f:function(t,e,r){"use strict";r.d(e,"b",(function(){return i})),r.d(e,"c",(function(){return a})),r.d(e,"a",(function(){return n}));var n={uBadge:r("2de7").default},i=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("view",{staticClass:t._$s(0,"sc","u-tabs"),attrs:{_i:0}},[r("view",{staticClass:t._$s(1,"sc","u-tabs__wrapper"),attrs:{_i:1}},[t._t("left",null,{_i:2}),r("view",{staticClass:t._$s(3,"sc","u-tabs__wrapper__scroll-view-wrapper"),attrs:{_i:3}},[r("scroll-view",{ref:"u-tabs__wrapper__scroll-view",staticClass:t._$s(4,"sc","u-tabs__wrapper__scroll-view"),attrs:{"scroll-x":t._$s(4,"a-scroll-x",t.scrollable),"scroll-left":t._$s(4,"a-scroll-left",t.scrollLeft),_i:4}},[r("view",{ref:"u-tabs__wrapper__nav",staticClass:t._$s(5,"sc","u-tabs__wrapper__nav"),attrs:{_i:5}},[t._l(t._$s(6,"f",{forItems:t.list}),(function(e,n,i,a){return r("view",{key:t._$s(6,"f",{forIndex:i,key:n}),ref:t._$s("6-"+a,"ref","u-tabs__wrapper__nav__item-"+n),refInFor:!0,staticClass:t._$s("6-"+a,"sc","u-tabs__wrapper__nav__item"),class:t._$s("6-"+a,"c",["u-tabs__wrapper__nav__item-"+n,e.disabled&&"u-tabs__wrapper__nav__item--disabled"]),style:t._$s("6-"+a,"s",[t.$u.addStyle(t.itemStyle),{flex:t.scrollable?"":1}]),attrs:{_i:"6-"+a},on:{click:function(r){return t.clickHandler(e,n)}}},[r("text",{staticClass:t._$s("7-"+a,"sc","u-tabs__wrapper__nav__item__text"),class:t._$s("7-"+a,"c",[e.disabled&&"u-tabs__wrapper__nav__item__text--disabled"]),style:t._$s("7-"+a,"s",[t.textStyle(n)]),attrs:{_i:"7-"+a}},[t._v(t._$s("7-"+a,"t0-0",t._s(e[t.keyName])))]),r("u-badge",{attrs:{show:!(!e.badge||!(e.badge.show||e.badge.isDot||e.badge.value)),isDot:e.badge&&e.badge.isDot||t.propsBadge.isDot,value:e.badge&&e.badge.value||t.propsBadge.value,max:e.badge&&e.badge.max||t.propsBadge.max,type:e.badge&&e.badge.type||t.propsBadge.type,showZero:e.badge&&e.badge.showZero||t.propsBadge.showZero,bgColor:e.badge&&e.badge.bgColor||t.propsBadge.bgColor,color:e.badge&&e.badge.color||t.propsBadge.color,shape:e.badge&&e.badge.shape||t.propsBadge.shape,numberType:e.badge&&e.badge.numberType||t.propsBadge.numberType,inverted:e.badge&&e.badge.inverted||t.propsBadge.inverted,customStyle:"margin-left: 4px;",_i:"8-"+a}})],1)})),r("view",{ref:"u-tabs__wrapper__nav__line",staticClass:t._$s(9,"sc","u-tabs__wrapper__nav__line"),style:t._$s(9,"s",[{width:t.$u.addUnit(t.lineWidth),transform:"translate("+t.lineOffsetLeft+"px)",transitionDuration:(t.firstTime?0:t.duration)+"ms",height:t.$u.addUnit(t.lineHeight),background:t.lineColor,backgroundSize:t.lineBgSize}]),attrs:{_i:9}})],2)])]),t._t("right",null,{_i:10})],2)])},a=[]},c222:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={tooltip:{text:"",copyText:"",size:14,color:"#606266",bgColor:"transparent",direction:"top",zIndex:10071,showCopy:!0,buttons:function(){return[]},overlay:!0,showToast:!0}}},c226:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={image:{src:"",mode:"aspectFill",width:"300",height:"225",shape:"square",radius:0,lazyLoad:!0,showMenuByLongpress:!0,loadingIcon:"photo",errorIcon:"error-circle",showLoading:!0,showError:!0,fade:!0,webp:!1,duration:500,bgColor:"#f3f4f6"}}},c240:function(t,e,r){"use strict";r.r(e);var n=r("c81b"),i=r.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return n[t]}))}(a);e["default"]=i.a},c2d4:function(t,e,r){"use strict";r.d(e,"b",(function(){return n})),r.d(e,"c",(function(){return i})),r.d(e,"a",(function(){}));var n=function(){var t=this.$createElement,e=this._self._c||t;return e("view",{staticClass:this._$s(0,"sc","page-container"),attrs:{_i:0}},[e("view",[e("view"),e("image",{staticClass:this._$s(3,"sc","guide"),attrs:{_i:3}})]),e("view",[e("view"),e("image",{staticClass:this._$s(6,"sc","guide"),attrs:{_i:6}})]),e("view")])},i=[]},c336:function(t,e,r){"use strict";r.r(e);var n=r("f4ee"),i=r.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return n[t]}))}(a);e["default"]=i.a},c341:function(t,e,r){var n,i,a,s=r("3b2d");(function(o,u){"object"===s(e)?t.exports=e=u(r("707d")):(i=[r("707d")],n=u,a="function"===typeof n?n.apply(e,i):n,void 0===a||(t.exports=a))})(0,(function(t){return function(){var e=t,r=e.lib,n=r.WordArray,i=e.enc;i.Base64url={stringify:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=t.words,n=t.sigBytes,i=e?this._safe_map:this._map;t.clamp();for(var a=[],s=0;s<n;s+=3)for(var o=r[s>>>2]>>>24-s%4*8&255,u=r[s+1>>>2]>>>24-(s+1)%4*8&255,l=r[s+2>>>2]>>>24-(s+2)%4*8&255,c=o<<16|u<<8|l,A=0;A<4&&s+.75*A<n;A++)a.push(i.charAt(c>>>6*(3-A)&63));var d=i.charAt(64);if(d)while(a.length%4)a.push(d);return a.join("")},parse:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=t.length,n=e?this._safe_map:this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var s=0;s<n.length;s++)i[n.charCodeAt(s)]=s}var o=n.charAt(64);if(o){var u=t.indexOf(o);-1!==u&&(r=u)}return a(t,r,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function a(t,e,r){for(var i=[],a=0,s=0;s<e;s++)if(s%4){var o=r[t.charCodeAt(s-1)]<<s%4*2,u=r[t.charCodeAt(s)]>>>6-s%4*2,l=o|u;i[a>>>2]|=l<<24-a%4*8,a++}return n.create(i,a)}}(),t.enc.Base64url}))},c343:function(t,e,r){"use strict";r.d(e,"b",(function(){return i})),r.d(e,"c",(function(){return a})),r.d(e,"a",(function(){return n}));var n={uLoadmore:r("bc5a").default},i=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("view",{staticClass:t._$s(0,"sc","page-container"),attrs:{_i:0}},[r("view",{staticClass:t._$s(1,"sc","record-count card"),attrs:{_i:1}},[r("view",{staticClass:t._$s(2,"sc","card-content justify-around"),attrs:{_i:2}},[r("view",{staticClass:t._$s(3,"sc","count-item"),attrs:{_i:3}},[r("view",{staticClass:t._$s(4,"sc","num"),attrs:{_i:4}},[t._v(t._$s(4,"t0-0",t._s(t.invite)))]),r("view",{staticClass:t._$s(5,"sc","title"),attrs:{_i:5}})]),r("view",{staticClass:t._$s(6,"sc","count-item"),attrs:{_i:6}},[r("view",{staticClass:t._$s(7,"sc","num"),attrs:{_i:7}},[t._v(t._$s(7,"t0-0",t._s(t.active)))]),r("view",{staticClass:t._$s(8,"sc","title"),attrs:{_i:8}})]),r("view",{staticClass:t._$s(9,"sc","count-item"),attrs:{_i:9}},[r("view",{staticClass:t._$s(10,"sc","num"),attrs:{_i:10}},[t._v(t._$s(10,"t0-0",t._s(t.coin)))]),r("view",{staticClass:t._$s(11,"sc","title"),attrs:{_i:11}})])])]),r("view",{staticClass:t._$s(12,"sc","coin-record card"),attrs:{_i:12}},[r("view",{staticClass:t._$s(13,"sc","card-content"),attrs:{_i:13}},t._l(t._$s(14,"f",{forItems:t.list}),(function(e,n,i,a){return r("view",{key:t._$s(14,"f",{forIndex:i,key:n}),staticClass:t._$s("14-"+a,"sc","record-item"),attrs:{_i:"14-"+a}},[r("view",{staticClass:t._$s("15-"+a,"sc","align-center"),attrs:{_i:"15-"+a}},[r("view",{staticClass:t._$s("16-"+a,"sc","record-tag"),attrs:{_i:"16-"+a}},[t._v(t._$s("16-"+a,"t0-0",t._s(e.clog_name)))]),r("view",{staticClass:t._$s("17-"+a,"sc","record-coin"),attrs:{_i:"17-"+a}},[r("text",[t._v(t._$s("18-"+a,"t0-0",t._s(e.clog_coin)))])]),r("text",{staticClass:t._$s("19-"+a,"sc","record-time"),attrs:{_i:"19-"+a}},[t._v(t._$s("19-"+a,"t0-0",t._s(t.formatTime(e.clog_time))))])])])})),0),r("view",{staticClass:t._$s(20,"sc","load-more"),attrs:{_i:20}},[r("u-loadmore",{attrs:{status:t.loadStatus,"loading-icon":"semicircle",_i:21}})],1)])])},a=[]},c40a:function(t,e,r){"use strict";r.d(e,"b",(function(){return i})),r.d(e,"c",(function(){return a})),r.d(e,"a",(function(){return n}));var n={uIcon:r("712b").default,uLoadingIcon:r("42fe").default},i=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("view",{staticClass:t._$s(0,"sc","u-upload"),style:t._$s(0,"s",[t.$u.addStyle(t.customStyle)]),attrs:{_i:0}},[r("view",{staticClass:t._$s(1,"sc","u-upload__wrap"),attrs:{_i:1}},[t._$s(2,"i",t.previewImage)?t._l(t._$s(3,"f",{forItems:t.lists}),(function(e,n,i,a){return r("view",{key:t._$s(3,"f",{forIndex:i,key:n}),staticClass:t._$s("3-"+a,"sc","u-upload__wrap__preview"),attrs:{_i:"3-"+a}},[t._$s("4-"+a,"i",e.isImage||e.type&&"image"===e.type)?r("image",{staticClass:t._$s("4-"+a,"sc","u-upload__wrap__preview__image"),style:t._$s("4-"+a,"s",[{width:t.$u.addUnit(t.width),height:t.$u.addUnit(t.height)}]),attrs:{src:t._$s("4-"+a,"a-src",e.thumb||e.url),mode:t._$s("4-"+a,"a-mode",t.imageMode),_i:"4-"+a},on:{click:function(r){return t.onPreviewImage(e)}}}):r("view",{staticClass:t._$s("5-"+a,"sc","u-upload__wrap__preview__other"),attrs:{_i:"5-"+a}},[r("u-icon",{attrs:{color:"#80CBF9",size:"26",name:e.isVideo||e.type&&"video"===e.type?"movie":"folder",_i:"6-"+a}}),r("text",{staticClass:t._$s("7-"+a,"sc","u-upload__wrap__preview__other__text"),attrs:{_i:"7-"+a}},[t._v(t._$s("7-"+a,"t0-0",t._s(e.isVideo||e.type&&"video"===e.type?"\u89c6\u9891":"\u6587\u4ef6")))])],1),t._$s("8-"+a,"i","uploading"===e.status||"failed"===e.status)?r("view",{staticClass:t._$s("8-"+a,"sc","u-upload__status"),attrs:{_i:"8-"+a}},[r("view",{staticClass:t._$s("9-"+a,"sc","u-upload__status__icon"),attrs:{_i:"9-"+a}},[t._$s("10-"+a,"i","failed"===e.status)?r("u-icon",{attrs:{name:"close-circle",color:"#ffffff",size:"25",_i:"10-"+a}}):r("u-loading-icon",{attrs:{size:"22",mode:"circle",color:"#ffffff",_i:"11-"+a}})],1),t._$s("12-"+a,"i",e.message)?r("text",{staticClass:t._$s("12-"+a,"sc","u-upload__status__message"),attrs:{_i:"12-"+a}},[t._v(t._$s("12-"+a,"t0-0",t._s(e.message)))]):t._e()]):t._e(),t._$s("13-"+a,"i","uploading"!==e.status&&(t.deletable||e.deletable))?r("view",{staticClass:t._$s("13-"+a,"sc","u-upload__deletable"),attrs:{_i:"13-"+a},on:{click:function(e){return e.stopPropagation(),t.deleteItem(n)}}},[r("view",{staticClass:t._$s("14-"+a,"sc","u-upload__deletable__icon"),attrs:{_i:"14-"+a}},[r("u-icon",{attrs:{name:"close",color:"#ffffff",size:"10",_i:"15-"+a}})],1)]):t._e(),t._$s("16-"+a,"i","success"===e.status)?r("view",{staticClass:t._$s("16-"+a,"sc","u-upload__success"),attrs:{_i:"16-"+a}},[r("view",{staticClass:t._$s("17-"+a,"sc","u-upload__success__icon"),attrs:{_i:"17-"+a}},[r("u-icon",{attrs:{name:"checkmark",color:"#ffffff",size:"12",_i:"18-"+a}})],1)]):t._e()])})):t._e(),t._$s(19,"i",t.isInCount)?[t._$s(20,"i",t.$slots.default||t.$slots.$default)?r("view",{attrs:{_i:20},on:{click:t.chooseFile}},[t._t("default",null,{_i:21})],2):r("view",{staticClass:t._$s(22,"sc","u-upload__button"),class:t._$s(22,"c",[t.disabled&&"u-upload__button--disabled"]),style:t._$s(22,"s",[{width:t.$u.addUnit(t.width),height:t.$u.addUnit(t.height)}]),attrs:{"hover-class":t._$s(22,"a-hover-class",t.disabled?"":"u-upload__button--hover"),_i:22},on:{click:t.chooseFile}},[r("u-icon",{attrs:{name:t.uploadIcon,size:"26",color:t.uploadIconColor,_i:23}}),t._$s(24,"i",t.uploadText)?r("text",{staticClass:t._$s(24,"sc","u-upload__button__text"),attrs:{_i:24}},[t._v(t._$s(24,"t0-0",t._s(t.uploadText)))]):t._e()],1)]:t._e()],2)])},a=[]},c44a:function(t,e,r){"use strict";r.r(e);var n=r("c9ad"),i=r("8354");for(var a in i)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return i[t]}))}(a);var s=r("828b"),o=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);e["default"]=o.exports},c477:function(t,e,r){"use strict";r.r(e);var n=r("5483"),i=r.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return n[t]}))}(a);e["default"]=i.a},c4ee:function(t,e,r){"use strict";var n=r("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(r("127e")),a=n(r("ee10")),s=r("0f81"),o=/^1[345789]\d{9}$/,u=/^[a-zA-Z0-9]{4,10}$/,l=/^[^\s@]+@[^\s@]+\.[^\s@]+$/,c={data:function(){return{phone:"",code:"",codeTip:"",loading:!1,navs:[{name:"\u624b\u673a\u53f7\u627e\u56de"},{name:"\u90ae\u7bb1\u627e\u56de"}],navIndex:0,ac:"phone",email:"",email_sms:!1,phone_sms:!1}},methods:{bindInfo:function(){var t=this;return(0,a.default)(i.default.mark((function e(){var r;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,s.user.codeMsg().then();case 2:r=e.sent,1==r.code&&(t.email_sms=r.data.email_sms,t.phone_sms=r.data.phone_sms);case 4:case"end":return e.stop()}}),e)})))()},tabsClick:function(t){this.navIndex!=t.index&&(this.navIndex=t.index,this.ac=0==this.navIndex?"phone":"email")},next:function(){var t=this;return(0,a.default)(i.default.mark((function e(){return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:e.t0=t.navIndex,e.next=0===e.t0?3:1===e.t0?7:11;break;case 3:if(o.test(t.phone)){e.next=6;break}return uni.showToast({icon:"none",title:"\u8bf7\u8f93\u5165\u6b63\u786e\u7684\u624b\u673a\u53f7\u7801~!",duration:3e3}),e.abrupt("return");case 6:return e.abrupt("break",12);case 7:if(l.test(t.email)){e.next=10;break}return uni.showToast({icon:"none",title:"\u8bf7\u8f93\u5165\u6b63\u786e\u7684\u90ae\u7bb1\u5730\u5740~!",duration:3e3}),e.abrupt("return");case 10:return e.abrupt("break",12);case 11:return e.abrupt("break",12);case 12:if(1!=t.phone_sms||"phone"!=t.ac){e.next=16;break}if(u.test(t.code)){e.next=16;break}return uni.showToast({icon:"none",title:"\u8bf7\u8f93\u5165\u6b63\u786e\u7684\u9a8c\u8bc1\u7801~!",duration:3e3}),e.abrupt("return");case 16:if(1!=t.email_sms||"email"!=t.ac){e.next=20;break}if(u.test(t.code)){e.next=20;break}return uni.showToast({icon:"none",title:"\u8bf7\u8f93\u5165\u6b63\u786e\u7684\u9a8c\u8bc1\u7801~!",duration:3e3}),e.abrupt("return");case 20:return t.loading=!0,e.next=23,s.user.findPassword(t.phone,t.email,t.code,t.ac).then((function(t){uni.showToast({icon:"none",title:t.msg,duration:3e3}),1===t.code&&uni.redirectTo({url:"/pages/user/password?token="+t.data.token})})).catch((function(t){}));case 23:t.loading=!1;case 24:case"end":return e.stop()}}),e)})))()},codeChange:function(t){this.codeTip=t},getCode:function(){if(this.$refs.uCode.canGetCode){switch(this.navIndex){case 0:if(!o.test(this.phone))return void uni.showToast({icon:"none",title:"\u8bf7\u8f93\u5165\u6b63\u786e\u7684\u624b\u673a\u53f7\u7801~!",duration:3e3});break;case 1:if(!l.test(this.email))return void uni.showToast({icon:"none",title:"\u8bf7\u8f93\u5165\u6b63\u786e\u7684\u90ae\u7bb1\u5730\u5740~!",duration:3e3});break;default:break}this.$refs.uCode.start(),s.user.sendMsg(this.phone,this.email,2,this.ac).then((function(t){uni.showToast({icon:"none",title:t.msg,duration:3e3})}))}}}};e.default=c},c541:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}},c557:function(t,e,r){"use strict";var n=r("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.parseTime=void 0;var i=n(r("34cf")),a=n(r("3b2d")),s=r("0f81"),o="undefined"===typeof arguments?void 0:arguments,u=function(t,e){if(0===o.length||!t)return null;var r,n=e||"{y}-{m}-{d} {h}:{i}:{s}";"object"===(0,a.default)(t)?r=t:("string"===typeof t&&(t=/^[0-9]+$/.test(t)?parseInt(t):t.replace(new RegExp(/-/gm),"/")),"number"===typeof t&&10===t.toString().length&&(t*=1e3),r=new Date(t));var i={y:r.getFullYear(),m:r.getMonth()+1,d:r.getDate(),h:r.getHours(),i:r.getMinutes(),s:r.getSeconds(),a:r.getDay()},s=n.replace(/{([ymdhisa])+}/g,(function(t,e){var r=i[e];return"a"===e?["\u65e5","\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d"][r]:r.toString().padStart(2,"0")}));return s};e.parseTime=u,t.exports={loadImage:function(t){return new Promise((function(e,r){uni.request({method:"get",url:t,responseType:"arraybuffer"}).then((function(r){var n=(0,i.default)(r,2),a=(n[0],n[1]);if(a&&200==a.statusCode)try{for(var s=new Uint8Array(a.data),o="",u=s.byteLength,l=0;l<u;l++)s[l]=136^s[l];for(l=0;l<u;l++)o+=String.fromCharCode(s[l]);var c=btoa(o);e("data:image/jpeg;base64,"+c)}catch(A){e(t)}else e(t)})).catch((function(r){e(t)}))}))},getAppVersion:function(){return new Promise((function(t){plus.runtime.getProperty(plus.runtime.appid,(function(e){t({versionCode:e.versionCode,versionName:e.version})}))}))},isVpn:function(){return plus.networkinfo.isSetProxy()},openVideo:function(t){this.openUrl("/pages/video/video-app?id="+t)},getuuid:function(){return new Promise((function(t,e){plus.device.getInfo({success:function(e){t(e.uuid)},fail:function(e){t("")}})}))},isFullApp:function(){return!0},openApp:function(t){plus.runtime.openURL(t)},error:function(t){var e=this;return new Promise((function(r,n){uni.request({method:"get",url:t,responseType:"arraybuffer"}).then((function(t){var n=(0,i.default)(t,2),a=(n[0],n[1]);try{for(var s=new Uint8Array(a.data),o="",u=s.byteLength,l=0;l<u;l++)s[l]="136"^s[l];if(e.isFullApp()){for(l=0;l<u;l++)o+=String.fromCharCode(s[l]);var c=btoa(o);r("data:image/jpeg;base64,"+c)}else{var A=new Blob([s],{type:"image/jpeg"});r(URL.createObjectURL(A))}}catch(d){}})).catch((function(t){}))}))},openAD:function(t){var e=uni.getStorageSync("user_token");e&&s.user.task(3).then(),plus.runtime.openURL(t)},openUrl:function(t){uni.navigateTo({url:t})},back:function(){var t=getCurrentPages();1===t.length?uni.switchTab({url:"/pages/home/index"}):uni.navigateBack()},formatTime:function(t){t=10===(""+t).length?1e3*parseInt(t):+t;var e=new Date(t),r=Date.now(),n=new Date(r),i=r+6e4*n.getTimezoneOffset(),a=i+288e5,s=new Date(a),o=(a-t)/1e3;return o<60?"\u521a\u521a":o<3600?parseInt(o/60)+"\u5206\u949f\u524d":o<86400?parseInt(o/3600)+"\u5c0f\u65f6\u524d":s.getFullYear()==e.getFullYear()?u(t,"{m}-{d} {h}:{i}"):u(t,"{y}-{m}-{d} {h}:{i}")}}},c588:function(t,e,r){"use strict";function n(){this.handlers=[]}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n.prototype.use=function(t,e){return this.handlers.push({fulfilled:t,rejected:e}),this.handlers.length-1},n.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},n.prototype.forEach=function(t){this.handlers.forEach((function(e){null!==e&&t(e)}))};var i=n;e.default=i},c5f2:function(t,e,r){"use strict";r.d(e,"b",(function(){return i})),r.d(e,"c",(function(){return a})),r.d(e,"a",(function(){return n}));var n={uTabs:r("58b7").default,uCode:r("ef66").default,uButton:r("9a24").default},i=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("view",{staticClass:t._$s(0,"sc","page-container"),attrs:{_i:0}},[r("view",{staticClass:t._$s(1,"sc","login-header-bg"),attrs:{_i:1}},[r("view",{staticClass:t._$s(2,"sc","flex-row "),attrs:{_i:2}},[r("view",{staticClass:t._$s(3,"sc","bgleft"),attrs:{_i:3}}),r("view",{staticClass:t._$s(4,"sc","bgright"),attrs:{_i:4}})]),r("view",{staticClass:t._$s(5,"sc","logo"),attrs:{_i:5}},[r("image",{staticClass:t._$s(6,"sc","logo"),attrs:{_i:6}})])]),r("view",{staticClass:t._$s(7,"sc","nav-tabs"),attrs:{_i:7}},[r("u-tabs",{attrs:{lineColor:"#DA2538","line-width":"60px","line-hight":"3px",scrollable:!1,"active-style":{fontSize:"18px",fontWeight:"bold",color:"#fff"},list:t.navs,current:t.navIndex,_i:8},on:{click:t.tabsClick}})],1),t._$s(9,"i",0==t.navIndex)?r("view",{staticClass:t._$s(9,"sc","login-input"),attrs:{_i:9}},[r("view",{staticClass:t._$s(10,"sc","input-box align-center"),attrs:{_i:10}},[r("view",{staticClass:t._$s(11,"sc","code"),attrs:{_i:11}}),r("input",{directives:[{name:"model",rawName:"v-model",value:t.phone,expression:"phone"}],attrs:{_i:12},domProps:{value:t._$s(12,"v-model",t.phone)},on:{input:function(e){e.target.composing||(t.phone=e.target.value)}}})]),t._$s(13,"i",1==t.phone_sms)?r("view",{staticClass:t._$s(13,"sc","input-box align-center"),attrs:{_i:13}},[r("input",{directives:[{name:"model",rawName:"v-model",value:t.code,expression:"code"}],attrs:{_i:14},domProps:{value:t._$s(14,"v-model",t.code)},on:{input:function(e){e.target.composing||(t.code=e.target.value)}}}),r("u-code",{ref:"uCode",attrs:{"keep-running":!0,"start-text":"\u83b7\u53d6\u9a8c\u8bc1\u7801","change-text":"Xs\u540e\u91cd\u53d1",_i:15},on:{change:t.codeChange}}),r("text",{staticClass:t._$s(16,"sc","code-tip"),attrs:{text:t._$s(16,"a-text",t.codeTip),_i:16},on:{click:t.getCode}},[t._v(t._$s(16,"t0-0",t._s(t.codeTip)))])],1):t._e(),r("view",{staticClass:t._$s(17,"sc","input-box align-center"),attrs:{_i:17}},[r("input",{directives:[{name:"model",rawName:"v-model",value:t.password,expression:"password"}],attrs:{_i:18},domProps:{value:t._$s(18,"v-model",t.password)},on:{input:function(e){e.target.composing||(t.password=e.target.value)}}})]),r("view",{staticClass:t._$s(19,"sc","input-box align-center"),attrs:{_i:19}},[r("input",{directives:[{name:"model",rawName:"v-model",value:t.invite,expression:"invite"}],attrs:{_i:20},domProps:{value:t._$s(20,"v-model",t.invite)},on:{input:function(e){e.target.composing||(t.invite=e.target.value)}}})])]):r("view",{staticClass:t._$s(21,"sc","login-input"),attrs:{_i:21}},[r("view",{staticClass:t._$s(22,"sc","input-box align-center"),attrs:{_i:22}},[r("input",{directives:[{name:"model",rawName:"v-model",value:t.email,expression:"email"}],attrs:{_i:23},domProps:{value:t._$s(23,"v-model",t.email)},on:{input:function(e){e.target.composing||(t.email=e.target.value)}}})]),t._$s(24,"i",1==t.email_sms)?r("view",{staticClass:t._$s(24,"sc","input-box align-center"),attrs:{_i:24}},[r("input",{directives:[{name:"model",rawName:"v-model",value:t.code,expression:"code"}],attrs:{_i:25},domProps:{value:t._$s(25,"v-model",t.code)},on:{input:function(e){e.target.composing||(t.code=e.target.value)}}}),r("u-code",{ref:"uCode",attrs:{"keep-running":!0,"start-text":"\u83b7\u53d6\u9a8c\u8bc1\u7801","change-text":"Xs\u540e\u91cd\u53d1",_i:26},on:{change:t.codeChange}}),r("text",{staticClass:t._$s(27,"sc","code-tip"),attrs:{text:t._$s(27,"a-text",t.codeTip),_i:27},on:{click:t.getCode}},[t._v(t._$s(27,"t0-0",t._s(t.codeTip)))])],1):t._e(),r("view",{staticClass:t._$s(28,"sc","input-box align-center"),attrs:{_i:28}},[r("input",{directives:[{name:"model",rawName:"v-model",value:t.password,expression:"password"}],attrs:{_i:29},domProps:{value:t._$s(29,"v-model",t.password)},on:{input:function(e){e.target.composing||(t.password=e.target.value)}}})]),r("view",{staticClass:t._$s(30,"sc","input-box align-center"),attrs:{_i:30}},[r("input",{directives:[{name:"model",rawName:"v-model",value:t.invite,expression:"invite"}],attrs:{_i:31},domProps:{value:t._$s(31,"v-model",t.invite)},on:{input:function(e){e.target.composing||(t.invite=e.target.value)}}})])]),r("view",{staticClass:t._$s(32,"sc","login-button"),attrs:{_i:32}},[r("u-button",{attrs:{shape:"circle",disabled:""===t.phone&&""===t.email||t.loading,loading:t.loading,color:"linear-gradient(90deg, #DA2538 0%, #F75F68 100%)",text:"\u6ce8\u518c",_i:33},on:{click:t.reg}})],1),r("view",{staticClass:t._$s(34,"sc","login-bottom flex-row"),attrs:{_i:34}},[r("text"),r("navigator",{staticClass:t._$s(36,"sc","link-button"),attrs:{_i:36}})]),r("view",{staticClass:t._$s(37,"sc","reg-agreement flex-row"),attrs:{_i:37}},[r("view",[r("text"),r("navigator",{}),r("text"),r("navigator",{})])])])},a=[]},c63d:function(t,e,r){"use strict";r.d(e,"b",(function(){return i})),r.d(e,"c",(function(){return a})),r.d(e,"a",(function(){return n}));var n={uLoadmore:r("bc5a").default},i=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("scroll-view",{attrs:{"refresher-triggered":t._$s(0,"a-refresher-triggered",t.refreshTriggered),_i:0},on:{refresherrefresh:t.refresh,scrolltolower:t.getData}},[r("view",{staticClass:t._$s(1,"sc","notice-container"),attrs:{_i:1}},[r("view",{staticClass:t._$s(2,"sc","card"),attrs:{_i:2}},[r("view",{staticClass:t._$s(3,"sc","card-content"),attrs:{_i:3}},t._l(t._$s(4,"f",{forItems:t.list}),(function(e,n,i,a){return r("view",{key:t._$s(4,"f",{forIndex:i,key:n}),staticClass:t._$s("4-"+a,"sc","notice-item flex-row"),attrs:{_i:"4-"+a}},[r("image",{attrs:{_i:"5-"+a}}),r("view",{staticClass:t._$s("6-"+a,"sc","notice-content"),attrs:{_i:"6-"+a}},[r("view",{staticClass:t._$s("7-"+a,"sc","title"),attrs:{_i:"7-"+a}},[t._v(t._$s("7-"+a,"t0-0",t._s(e.notice_title)))]),r("text",{staticClass:t._$s("8-"+a,"sc","content"),attrs:{_i:"8-"+a}},[t._v(t._$s("8-"+a,"t0-0",t._s(e.notice_content)))]),r("view",{staticClass:t._$s("9-"+a,"sc","link"),attrs:{_i:"9-"+a},on:{click:function(r){return t.openApp(e.notice_link)}}},[t._v(t._$s("9-"+a,"t0-0",t._s(e.notice_link_name)))]),r("view",{staticClass:t._$s("10-"+a,"sc","time"),attrs:{_i:"10-"+a}},[t._v(t._$s("10-"+a,"t0-0",t._s(t.formatTime(e.notice_time))))])])])})),0),r("view",{staticClass:t._$s(11,"sc","load-more"),attrs:{_i:11}},[r("u-loadmore",{attrs:{status:t.loadStatus,"loading-icon":"semicircle",_i:12}})],1)])])])},a=[]},c645:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={props:{duration:{type:Number,default:uni.$u.props.tabs.duration},list:{type:Array,default:uni.$u.props.tabs.list},lineColor:{type:String,default:uni.$u.props.tabs.lineColor},activeStyle:{type:[String,Object],default:uni.$u.props.tabs.activeStyle},inactiveStyle:{type:[String,Object],default:uni.$u.props.tabs.inactiveStyle},lineWidth:{type:[String,Number],default:uni.$u.props.tabs.lineWidth},lineHeight:{type:[String,Number],default:uni.$u.props.tabs.lineHeight},lineBgSize:{type:String,default:uni.$u.props.tabs.lineBgSize},itemStyle:{type:[String,Object],default:uni.$u.props.tabs.itemStyle},scrollable:{type:Boolean,default:uni.$u.props.tabs.scrollable},current:{type:[Number,String],default:uni.$u.props.tabs.current},keyName:{type:String,default:uni.$u.props.tabs.keyName}}};e.default=n},c688:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={id:"2852637",name:"uniui\u56fe\u6807\u5e93",font_family:"uniicons",css_prefix_text:"uniui-",description:"",glyphs:[{icon_id:"25027049",name:"yanse",font_class:"color",unicode:"e6cf",unicode_decimal:59087},{icon_id:"25027048",name:"wallet",font_class:"wallet",unicode:"e6b1",unicode_decimal:59057},{icon_id:"25015720",name:"settings-filled",font_class:"settings-filled",unicode:"e6ce",unicode_decimal:59086},{icon_id:"25015434",name:"shimingrenzheng-filled",font_class:"auth-filled",unicode:"e6cc",unicode_decimal:59084},{icon_id:"24934246",name:"shop-filled",font_class:"shop-filled",unicode:"e6cd",unicode_decimal:59085},{icon_id:"24934159",name:"staff-filled-01",font_class:"staff-filled",unicode:"e6cb",unicode_decimal:59083},{icon_id:"24932461",name:"VIP-filled",font_class:"vip-filled",unicode:"e6c6",unicode_decimal:59078},{icon_id:"24932462",name:"plus_circle_fill",font_class:"plus-filled",unicode:"e6c7",unicode_decimal:59079},{icon_id:"24932463",name:"folder_add-filled",font_class:"folder-add-filled",unicode:"e6c8",unicode_decimal:59080},{icon_id:"24932464",name:"yanse-filled",font_class:"color-filled",unicode:"e6c9",unicode_decimal:59081},{icon_id:"24932465",name:"tune-filled",font_class:"tune-filled",unicode:"e6ca",unicode_decimal:59082},{icon_id:"24932455",name:"a-rilidaka-filled",font_class:"calendar-filled",unicode:"e6c0",unicode_decimal:59072},{icon_id:"24932456",name:"notification-filled",font_class:"notification-filled",unicode:"e6c1",unicode_decimal:59073},{icon_id:"24932457",name:"wallet-filled",font_class:"wallet-filled",unicode:"e6c2",unicode_decimal:59074},{icon_id:"24932458",name:"paihangbang-filled",font_class:"medal-filled",unicode:"e6c3",unicode_decimal:59075},{icon_id:"24932459",name:"gift-filled",font_class:"gift-filled",unicode:"e6c4",unicode_decimal:59076},{icon_id:"24932460",name:"fire-filled",font_class:"fire-filled",unicode:"e6c5",unicode_decimal:59077},{icon_id:"24928001",name:"refreshempty",font_class:"refreshempty",unicode:"e6bf",unicode_decimal:59071},{icon_id:"24926853",name:"location-ellipse",font_class:"location-filled",unicode:"e6af",unicode_decimal:59055},{icon_id:"24926735",name:"person-filled",font_class:"person-filled",unicode:"e69d",unicode_decimal:59037},{icon_id:"24926703",name:"personadd-filled",font_class:"personadd-filled",unicode:"e698",unicode_decimal:59032},{icon_id:"24923351",name:"back",font_class:"back",unicode:"e6b9",unicode_decimal:59065},{icon_id:"24923352",name:"forward",font_class:"forward",unicode:"e6ba",unicode_decimal:59066},{icon_id:"24923353",name:"arrowthinright",font_class:"arrow-right",unicode:"e6bb",unicode_decimal:59067},{icon_id:"24923353",name:"arrowthinright",font_class:"arrowthinright",unicode:"e6bb",unicode_decimal:59067},{icon_id:"24923354",name:"arrowthinleft",font_class:"arrow-left",unicode:"e6bc",unicode_decimal:59068},{icon_id:"24923354",name:"arrowthinleft",font_class:"arrowthinleft",unicode:"e6bc",unicode_decimal:59068},{icon_id:"24923355",name:"arrowthinup",font_class:"arrow-up",unicode:"e6bd",unicode_decimal:59069},{icon_id:"24923355",name:"arrowthinup",font_class:"arrowthinup",unicode:"e6bd",unicode_decimal:59069},{icon_id:"24923356",name:"arrowthindown",font_class:"arrow-down",unicode:"e6be",unicode_decimal:59070},{icon_id:"24923356",name:"arrowthindown",font_class:"arrowthindown",unicode:"e6be",unicode_decimal:59070},{icon_id:"24923349",name:"arrowdown",font_class:"bottom",unicode:"e6b8",unicode_decimal:59064},{icon_id:"24923349",name:"arrowdown",font_class:"arrowdown",unicode:"e6b8",unicode_decimal:59064},{icon_id:"24923346",name:"arrowright",font_class:"right",unicode:"e6b5",unicode_decimal:59061},{icon_id:"24923346",name:"arrowright",font_class:"arrowright",unicode:"e6b5",unicode_decimal:59061},{icon_id:"24923347",name:"arrowup",font_class:"top",unicode:"e6b6",unicode_decimal:59062},{icon_id:"24923347",name:"arrowup",font_class:"arrowup",unicode:"e6b6",unicode_decimal:59062},{icon_id:"24923348",name:"arrowleft",font_class:"left",unicode:"e6b7",unicode_decimal:59063},{icon_id:"24923348",name:"arrowleft",font_class:"arrowleft",unicode:"e6b7",unicode_decimal:59063},{icon_id:"24923334",name:"eye",font_class:"eye",unicode:"e651",unicode_decimal:58961},{icon_id:"24923335",name:"eye-filled",font_class:"eye-filled",unicode:"e66a",unicode_decimal:58986},{icon_id:"24923336",name:"eye-slash",font_class:"eye-slash",unicode:"e6b3",unicode_decimal:59059},{icon_id:"24923337",name:"eye-slash-filled",font_class:"eye-slash-filled",unicode:"e6b4",unicode_decimal:59060},{icon_id:"24923305",name:"info-filled",font_class:"info-filled",unicode:"e649",unicode_decimal:58953},{icon_id:"24923299",name:"reload-01",font_class:"reload",unicode:"e6b2",unicode_decimal:59058},{icon_id:"24923195",name:"mic_slash_fill",font_class:"micoff-filled",unicode:"e6b0",unicode_decimal:59056},{icon_id:"24923165",name:"map-pin-ellipse",font_class:"map-pin-ellipse",unicode:"e6ac",unicode_decimal:59052},{icon_id:"24923166",name:"map-pin",font_class:"map-pin",unicode:"e6ad",unicode_decimal:59053},{icon_id:"24923167",name:"location",font_class:"location",unicode:"e6ae",unicode_decimal:59054},{icon_id:"24923064",name:"starhalf",font_class:"starhalf",unicode:"e683",unicode_decimal:59011},{icon_id:"24923065",name:"star",font_class:"star",unicode:"e688",unicode_decimal:59016},{icon_id:"24923066",name:"star-filled",font_class:"star-filled",unicode:"e68f",unicode_decimal:59023},{icon_id:"24899646",name:"a-rilidaka",font_class:"calendar",unicode:"e6a0",unicode_decimal:59040},{icon_id:"24899647",name:"fire",font_class:"fire",unicode:"e6a1",unicode_decimal:59041},{icon_id:"24899648",name:"paihangbang",font_class:"medal",unicode:"e6a2",unicode_decimal:59042},{icon_id:"24899649",name:"font",font_class:"font",unicode:"e6a3",unicode_decimal:59043},{icon_id:"24899650",name:"gift",font_class:"gift",unicode:"e6a4",unicode_decimal:59044},{icon_id:"24899651",name:"link",font_class:"link",unicode:"e6a5",unicode_decimal:59045},{icon_id:"24899652",name:"notification",font_class:"notification",unicode:"e6a6",unicode_decimal:59046},{icon_id:"24899653",name:"staff",font_class:"staff",unicode:"e6a7",unicode_decimal:59047},{icon_id:"24899654",name:"VIP",font_class:"vip",unicode:"e6a8",unicode_decimal:59048},{icon_id:"24899655",name:"folder_add",font_class:"folder-add",unicode:"e6a9",unicode_decimal:59049},{icon_id:"24899656",name:"tune",font_class:"tune",unicode:"e6aa",unicode_decimal:59050},{icon_id:"24899657",name:"shimingrenzheng",font_class:"auth",unicode:"e6ab",unicode_decimal:59051},{icon_id:"24899565",name:"person",font_class:"person",unicode:"e699",unicode_decimal:59033},{icon_id:"24899566",name:"email-filled",font_class:"email-filled",unicode:"e69a",unicode_decimal:59034},{icon_id:"24899567",name:"phone-filled",font_class:"phone-filled",unicode:"e69b",unicode_decimal:59035},{icon_id:"24899568",name:"phone",font_class:"phone",unicode:"e69c",unicode_decimal:59036},{icon_id:"24899570",name:"email",font_class:"email",unicode:"e69e",unicode_decimal:59038},{icon_id:"24899571",name:"personadd",font_class:"personadd",unicode:"e69f",unicode_decimal:59039},{icon_id:"24899558",name:"chatboxes-filled",font_class:"chatboxes-filled",unicode:"e692",unicode_decimal:59026},{icon_id:"24899559",name:"contact",font_class:"contact",unicode:"e693",unicode_decimal:59027},{icon_id:"24899560",name:"chatbubble-filled",font_class:"chatbubble-filled",unicode:"e694",unicode_decimal:59028},{icon_id:"24899561",name:"contact-filled",font_class:"contact-filled",unicode:"e695",unicode_decimal:59029},{icon_id:"24899562",name:"chatboxes",font_class:"chatboxes",unicode:"e696",unicode_decimal:59030},{icon_id:"24899563",name:"chatbubble",font_class:"chatbubble",unicode:"e697",unicode_decimal:59031},{icon_id:"24881290",name:"upload-filled",font_class:"upload-filled",unicode:"e68e",unicode_decimal:59022},{icon_id:"24881292",name:"upload",font_class:"upload",unicode:"e690",unicode_decimal:59024},{icon_id:"24881293",name:"weixin",font_class:"weixin",unicode:"e691",unicode_decimal:59025},{icon_id:"24881274",name:"compose",font_class:"compose",unicode:"e67f",unicode_decimal:59007},{icon_id:"24881275",name:"qq",font_class:"qq",unicode:"e680",unicode_decimal:59008},{icon_id:"24881276",name:"download-filled",font_class:"download-filled",unicode:"e681",unicode_decimal:59009},{icon_id:"24881277",name:"pengyouquan",font_class:"pyq",unicode:"e682",unicode_decimal:59010},{icon_id:"24881279",name:"sound",font_class:"sound",unicode:"e684",unicode_decimal:59012},{icon_id:"24881280",name:"trash-filled",font_class:"trash-filled",unicode:"e685",unicode_decimal:59013},{icon_id:"24881281",name:"sound-filled",font_class:"sound-filled",unicode:"e686",unicode_decimal:59014},{icon_id:"24881282",name:"trash",font_class:"trash",unicode:"e687",unicode_decimal:59015},{icon_id:"24881284",name:"videocam-filled",font_class:"videocam-filled",unicode:"e689",unicode_decimal:59017},{icon_id:"24881285",name:"spinner-cycle",font_class:"spinner-cycle",unicode:"e68a",unicode_decimal:59018},{icon_id:"24881286",name:"weibo",font_class:"weibo",unicode:"e68b",unicode_decimal:59019},{icon_id:"24881288",name:"videocam",font_class:"videocam",unicode:"e68c",unicode_decimal:59020},{icon_id:"24881289",name:"download",font_class:"download",unicode:"e68d",unicode_decimal:59021},{icon_id:"24879601",name:"help",font_class:"help",unicode:"e679",unicode_decimal:59001},{icon_id:"24879602",name:"navigate-filled",font_class:"navigate-filled",unicode:"e67a",unicode_decimal:59002},{icon_id:"24879603",name:"plusempty",font_class:"plusempty",unicode:"e67b",unicode_decimal:59003},{icon_id:"24879604",name:"smallcircle",font_class:"smallcircle",unicode:"e67c",unicode_decimal:59004},{icon_id:"24879605",name:"minus-filled",font_class:"minus-filled",unicode:"e67d",unicode_decimal:59005},{icon_id:"24879606",name:"micoff",font_class:"micoff",unicode:"e67e",unicode_decimal:59006},{icon_id:"24879588",name:"closeempty",font_class:"closeempty",unicode:"e66c",unicode_decimal:58988},{icon_id:"24879589",name:"clear",font_class:"clear",unicode:"e66d",unicode_decimal:58989},{icon_id:"24879590",name:"navigate",font_class:"navigate",unicode:"e66e",unicode_decimal:58990},{icon_id:"24879591",name:"minus",font_class:"minus",unicode:"e66f",unicode_decimal:58991},{icon_id:"24879592",name:"image",font_class:"image",unicode:"e670",unicode_decimal:58992},{icon_id:"24879593",name:"mic",font_class:"mic",unicode:"e671",unicode_decimal:58993},{icon_id:"24879594",name:"paperplane",font_class:"paperplane",unicode:"e672",unicode_decimal:58994},{icon_id:"24879595",name:"close",font_class:"close",unicode:"e673",unicode_decimal:58995},{icon_id:"24879596",name:"help-filled",font_class:"help-filled",unicode:"e674",unicode_decimal:58996},{icon_id:"24879597",name:"plus-filled",font_class:"paperplane-filled",unicode:"e675",unicode_decimal:58997},{icon_id:"24879598",name:"plus",font_class:"plus",unicode:"e676",unicode_decimal:58998},{icon_id:"24879599",name:"mic-filled",font_class:"mic-filled",unicode:"e677",unicode_decimal:58999},{icon_id:"24879600",name:"image-filled",font_class:"image-filled",unicode:"e678",unicode_decimal:59e3},{icon_id:"24855900",name:"locked-filled",font_class:"locked-filled",unicode:"e668",unicode_decimal:58984},{icon_id:"24855901",name:"info",font_class:"info",unicode:"e669",unicode_decimal:58985},{icon_id:"24855903",name:"locked",font_class:"locked",unicode:"e66b",unicode_decimal:58987},{icon_id:"24855884",name:"camera-filled",font_class:"camera-filled",unicode:"e658",unicode_decimal:58968},{icon_id:"24855885",name:"chat-filled",font_class:"chat-filled",unicode:"e659",unicode_decimal:58969},{icon_id:"24855886",name:"camera",font_class:"camera",unicode:"e65a",unicode_decimal:58970},{icon_id:"24855887",name:"circle",font_class:"circle",unicode:"e65b",unicode_decimal:58971},{icon_id:"24855888",name:"checkmarkempty",font_class:"checkmarkempty",unicode:"e65c",unicode_decimal:58972},{icon_id:"24855889",name:"chat",font_class:"chat",unicode:"e65d",unicode_decimal:58973},{icon_id:"24855890",name:"circle-filled",font_class:"circle-filled",unicode:"e65e",unicode_decimal:58974},{icon_id:"24855891",name:"flag",font_class:"flag",unicode:"e65f",unicode_decimal:58975},{icon_id:"24855892",name:"flag-filled",font_class:"flag-filled",unicode:"e660",unicode_decimal:58976},{icon_id:"24855893",name:"gear-filled",font_class:"gear-filled",unicode:"e661",unicode_decimal:58977},{icon_id:"24855894",name:"home",font_class:"home",unicode:"e662",unicode_decimal:58978},{icon_id:"24855895",name:"home-filled",font_class:"home-filled",unicode:"e663",unicode_decimal:58979},{icon_id:"24855896",name:"gear",font_class:"gear",unicode:"e664",unicode_decimal:58980},{icon_id:"24855897",name:"smallcircle-filled",font_class:"smallcircle-filled",unicode:"e665",unicode_decimal:58981},{icon_id:"24855898",name:"map-filled",font_class:"map-filled",unicode:"e666",unicode_decimal:58982},{icon_id:"24855899",name:"map",font_class:"map",unicode:"e667",unicode_decimal:58983},{icon_id:"24855825",name:"refresh-filled",font_class:"refresh-filled",unicode:"e656",unicode_decimal:58966},{icon_id:"24855826",name:"refresh",font_class:"refresh",unicode:"e657",unicode_decimal:58967},{icon_id:"24855808",name:"cloud-upload",font_class:"cloud-upload",unicode:"e645",unicode_decimal:58949},{icon_id:"24855809",name:"cloud-download-filled",font_class:"cloud-download-filled",unicode:"e646",unicode_decimal:58950},{icon_id:"24855810",name:"cloud-download",font_class:"cloud-download",unicode:"e647",unicode_decimal:58951},{icon_id:"24855811",name:"cloud-upload-filled",font_class:"cloud-upload-filled",unicode:"e648",unicode_decimal:58952},{icon_id:"24855813",name:"redo",font_class:"redo",unicode:"e64a",unicode_decimal:58954},{icon_id:"24855814",name:"images-filled",font_class:"images-filled",unicode:"e64b",unicode_decimal:58955},{icon_id:"24855815",name:"undo-filled",font_class:"undo-filled",unicode:"e64c",unicode_decimal:58956},{icon_id:"24855816",name:"more",font_class:"more",unicode:"e64d",unicode_decimal:58957},{icon_id:"24855817",name:"more-filled",font_class:"more-filled",unicode:"e64e",unicode_decimal:58958},{icon_id:"24855818",name:"undo",font_class:"undo",unicode:"e64f",unicode_decimal:58959},{icon_id:"24855819",name:"images",font_class:"images",unicode:"e650",unicode_decimal:58960},{icon_id:"24855821",name:"paperclip",font_class:"paperclip",unicode:"e652",unicode_decimal:58962},{icon_id:"24855822",name:"settings",font_class:"settings",unicode:"e653",unicode_decimal:58963},{icon_id:"24855823",name:"search",font_class:"search",unicode:"e654",unicode_decimal:58964},{icon_id:"24855824",name:"redo-filled",font_class:"redo-filled",unicode:"e655",unicode_decimal:58965},{icon_id:"24841702",name:"list",font_class:"list",unicode:"e644",unicode_decimal:58948},{icon_id:"24841489",name:"mail-open-filled",font_class:"mail-open-filled",unicode:"e63a",unicode_decimal:58938},{icon_id:"24841491",name:"hand-thumbsdown-filled",font_class:"hand-down-filled",unicode:"e63c",unicode_decimal:58940},{icon_id:"24841492",name:"hand-thumbsdown",font_class:"hand-down",unicode:"e63d",unicode_decimal:58941},{icon_id:"24841493",name:"hand-thumbsup-filled",font_class:"hand-up-filled",unicode:"e63e",unicode_decimal:58942},{icon_id:"24841494",name:"hand-thumbsup",font_class:"hand-up",unicode:"e63f",unicode_decimal:58943},{icon_id:"24841496",name:"heart-filled",font_class:"heart-filled",unicode:"e641",unicode_decimal:58945},{icon_id:"24841498",name:"mail-open",font_class:"mail-open",unicode:"e643",unicode_decimal:58947},{icon_id:"24841488",name:"heart",font_class:"heart",unicode:"e639",unicode_decimal:58937},{icon_id:"24839963",name:"loop",font_class:"loop",unicode:"e633",unicode_decimal:58931},{icon_id:"24839866",name:"pulldown",font_class:"pulldown",unicode:"e632",unicode_decimal:58930},{icon_id:"24813798",name:"scan",font_class:"scan",unicode:"e62a",unicode_decimal:58922},{icon_id:"24813786",name:"bars",font_class:"bars",unicode:"e627",unicode_decimal:58919},{icon_id:"24813788",name:"cart-filled",font_class:"cart-filled",unicode:"e629",unicode_decimal:58921},{icon_id:"24813790",name:"checkbox",font_class:"checkbox",unicode:"e62b",unicode_decimal:58923},{icon_id:"24813791",name:"checkbox-filled",font_class:"checkbox-filled",unicode:"e62c",unicode_decimal:58924},{icon_id:"24813794",name:"shop",font_class:"shop",unicode:"e62f",unicode_decimal:58927},{icon_id:"24813795",name:"headphones",font_class:"headphones",unicode:"e630",unicode_decimal:58928},{icon_id:"24813796",name:"cart",font_class:"cart",unicode:"e631",unicode_decimal:58929}]}},c6f6:function(t,e,r){"use strict";r.r(e);var n=r("2b09"),i=r("0655");for(var a in i)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return i[t]}))}(a);var s=r("828b"),o=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);e["default"]=o.exports},c70d:function(t,e,r){var n=r("ed45"),i=r("b893"),a=r("6382"),s=r("dd3e");t.exports=function(t){return n(t)||i(t)||a(t)||s()},t.exports.__esModule=!0,t.exports["default"]=t.exports},c776:function(t,e,r){"use strict";var n=r("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(r("51fa")),a={name:"u-code",mixins:[uni.$u.mpMixin,uni.$u.mixin,i.default],data:function(){return{secNum:this.seconds,timer:null,canGetCode:!0}},mounted:function(){this.checkKeepRunning()},watch:{seconds:{immediate:!0,handler:function(t){this.secNum=t}}},methods:{checkKeepRunning:function(){var t=Number(uni.getStorageSync(this.uniqueKey+"_$uCountDownTimestamp"));if(!t)return this.changeEvent(this.startText);var e=Math.floor(+new Date/1e3);this.keepRunning&&t&&t>e?(this.secNum=t-e,uni.removeStorageSync(this.uniqueKey+"_$uCountDownTimestamp"),this.start()):this.changeEvent(this.startText)},start:function(){var t=this;this.timer&&(clearInterval(this.timer),this.timer=null),this.$emit("start"),this.canGetCode=!1,this.changeEvent(this.changeText.replace(/x|X/,this.secNum)),this.timer=setInterval((function(){--t.secNum?t.changeEvent(t.changeText.replace(/x|X/,t.secNum)):(clearInterval(t.timer),t.timer=null,t.changeEvent(t.endText),t.secNum=t.seconds,t.$emit("end"),t.canGetCode=!0)}),1e3),this.setTimeToStorage()},reset:function(){this.canGetCode=!0,clearInterval(this.timer),this.secNum=this.seconds,this.changeEvent(this.endText)},changeEvent:function(t){this.$emit("change",t)},setTimeToStorage:function(){if(this.keepRunning&&this.timer&&this.secNum>0&&this.secNum<=this.seconds){var t=Math.floor(+new Date/1e3);uni.setStorage({key:this.uniqueKey+"_$uCountDownTimestamp",data:t+Number(this.secNum)})}}},beforeDestroy:function(){this.setTimeToStorage(),clearTimeout(this.timer),this.timer=null}};e.default=a},c7f7:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={section:{title:"",subTitle:"\u66f4\u591a",right:!0,fontSize:15,bold:!0,color:"#303133",subColor:"#909399",showLine:!0,lineColor:"",arrow:!0}}},c81b:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={props:{value:{type:String,default:""}},watch:{value:{handler:function(t){this.nickName=t},immediate:!0}},data:function(){return{nickName:"",show:!1,loading:!1}},methods:{submit:function(){/^[\u4E00-\u9FA5A-Za-z0-9_]{2,16}$/.test(this.nickName)?(this.loading=!0,this.$emit("change",this.nickName)):uni.showToast({icon:"none",title:"\u6635\u79f0\u5fc5\u987b\u662f2-16\u4f4d\u4e2d\u6587\u3001\u82f1\u6587\u548c\u6570\u5b57\u7684\u7ec4\u5408~!",duration:3e3})},close:function(){this.show=!1}}};e.default=n},c8bb:function(t,e,r){var n,i,a,s=r("3b2d");(function(o,u,l){"object"===s(e)?t.exports=e=u(r("707d"),r("52d5"),r("d3c0"),r("b2e3"),r("e538"),r("c341"),r("91de"),r("396f"),r("8712"),r("9548"),r("818e"),r("d9f5"),r("12a8"),r("d673"),r("f9e5"),r("f786"),r("05f0"),r("bbe5"),r("c114"),r("6db3"),r("0b07"),r("f682"),r("3baa"),r("32ac"),r("8273"),r("8c2c"),r("fd59"),r("e5f6"),r("01dd"),r("7b89"),r("79ee"),r("65be"),r("03d1"),r("e820")):(i=[r("707d"),r("52d5"),r("d3c0"),r("b2e3"),r("e538"),r("c341"),r("91de"),r("396f"),r("8712"),r("9548"),r("818e"),r("d9f5"),r("12a8"),r("d673"),r("f9e5"),r("f786"),r("05f0"),r("bbe5"),r("c114"),r("6db3"),r("0b07"),r("f682"),r("3baa"),r("32ac"),r("8273"),r("8c2c"),r("fd59"),r("e5f6"),r("01dd"),r("7b89"),r("79ee"),r("65be"),r("03d1"),r("e820")],n=u,a="function"===typeof n?n.apply(e,i):n,void 0===a||(t.exports=a))})(0,(function(t){return t}))},c8fb:function(t,e,r){"use strict";var n=r("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(r("6c77")),a={name:"u-empty",mixins:[uni.$u.mpMixin,uni.$u.mixin,i.default],data:function(){return{icons:{car:"\u8d2d\u7269\u8f66\u4e3a\u7a7a",page:"\u9875\u9762\u4e0d\u5b58\u5728",search:"\u6ca1\u6709\u641c\u7d22\u7ed3\u679c",address:"\u6ca1\u6709\u6536\u8d27\u5730\u5740",wifi:"\u6ca1\u6709WiFi",order:"\u8ba2\u5355\u4e3a\u7a7a",coupon:"\u6ca1\u6709\u4f18\u60e0\u5238",favor:"\u6682\u65e0\u6536\u85cf",permission:"\u65e0\u6743\u9650",history:"\u65e0\u5386\u53f2\u8bb0\u5f55",news:"\u65e0\u65b0\u95fb\u5217\u8868",message:"\u6d88\u606f\u5217\u8868\u4e3a\u7a7a",list:"\u5217\u8868\u4e3a\u7a7a",data:"\u6570\u636e\u4e3a\u7a7a",comment:"\u6682\u65e0\u8bc4\u8bba"}}},computed:{emptyStyle:function(){var t={};return t.marginTop=uni.$u.addUnit(this.marginTop),uni.$u.deepMerge(uni.$u.addStyle(this.customStyle),t)},textStyle:function(){var t={};return t.color=this.textColor,t.fontSize=uni.$u.addUnit(this.textSize),t},isSrc:function(){return this.icon.indexOf("/")>=0}}};e.default=a},c949:function(t,e,r){"use strict";r.r(e);var n=r("ea84"),i=r.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return n[t]}))}(a);e["default"]=i.a},c9ad:function(t,e,r){"use strict";r.d(e,"b",(function(){return i})),r.d(e,"c",(function(){return a})),r.d(e,"a",(function(){return n}));var n={uTag:r("00ee").default,uniIcons:r("da03").default,uLoadingPage:r("ef90").default},i=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("view",{staticClass:t._$s(0,"sc","page-container"),attrs:{_i:0}},[r("view",{staticClass:t._$s(1,"sc","details-header"),attrs:{_i:1}},[r("view",{staticClass:t._$s(2,"sc","details-bg"),style:t._$s(2,"s",{backgroundImage:"url("+t.data.vod_pic+")"}),attrs:{_i:2}}),r("view",{staticClass:t._$s(3,"sc","details-mask"),attrs:{_i:3}}),r("view",{staticClass:t._$s(4,"sc","details-intro"),attrs:{_i:4}},[r("view",{staticClass:t._$s(5,"sc","vod-image"),attrs:{_i:5}},[r("image",{attrs:{src:t._$s(6,"a-src",t.data.vod_pic),_i:6}})]),r("view",{staticClass:t._$s(7,"sc","vod-info"),attrs:{_i:7}},[r("view",{staticClass:t._$s(8,"sc","vod-name"),attrs:{_i:8}},[t._v(t._$s(8,"t0-0",t._s(t.data.vod_name)))]),r("view",{staticClass:t._$s(9,"sc","vod-type"),attrs:{_i:9}},[t._v(t._$s(9,"t0-0",t._s(t.data.type_name_1))+t._$s(9,"t0-1",t._s(t.data.vod_year)))]),r("view",{staticClass:t._$s(10,"sc","vod-tags"),attrs:{_i:10}},t._l(t._$s(11,"f",{forItems:t.data.vod_class}),(function(e,n,i,a){return r("u-tag",{key:t._$s(11,"f",{forIndex:i,key:n}),staticClass:t._$s("11-"+a,"sc","vod-tags-item"),attrs:{bgColor:"#f2f5fa",color:"#1a1a1a",borderColor:"#f2f5fa",size:"mini",text:e,_i:"11-"+a}})})),1),r("view",{staticClass:t._$s(12,"sc","vod-info-item"),attrs:{_i:12}},[r("text",{staticClass:t._$s(13,"sc","item-title"),attrs:{_i:13}}),r("view",{staticClass:t._$s(14,"sc","item-value"),attrs:{_i:14}},t._l(t._$s(15,"f",{forItems:t.data.vod_director}),(function(e,n,i,a){return r("text",{key:t._$s(15,"f",{forIndex:i,key:n})},[t._v(t._$s("15-"+a,"t0-0",t._s(e)))])})),0)]),r("view",{staticClass:t._$s(16,"sc","vod-info-item"),attrs:{_i:16}},[r("text",{staticClass:t._$s(17,"sc","item-title"),attrs:{_i:17}}),r("view",{staticClass:t._$s(18,"sc","item-value"),attrs:{_i:18}},t._l(t._$s(19,"f",{forItems:t.data.vod_actor}),(function(e,n,i,a){return r("text",{key:t._$s(19,"f",{forIndex:i,key:n})},[t._v(t._$s("19-"+a,"t0-0",t._s(e)))])})),0)])])])]),r("view",{staticClass:t._$s(20,"sc","video-intro"),attrs:{_i:20}},[r("view",{staticClass:t._$s(21,"sc","intro-title"),attrs:{_i:21}}),r("view",{staticClass:t._$s(22,"sc","intro-value"),attrs:{_i:22}},[t._v(t._$s(22,"t0-0",t._s(t.data.vod_content)))])]),r("view",{staticClass:t._$s(23,"sc","video-comment"),attrs:{_i:23}},[r("view",{staticClass:t._$s(24,"sc","comment-title"),attrs:{_i:24}}),r("view",{staticClass:t._$s(25,"sc","comment-list"),attrs:{_i:25}},t._l(t._$s(26,"f",{forItems:t.comment}),(function(e,n,i,a){return r("view",{key:t._$s(26,"f",{forIndex:i,key:n}),staticClass:t._$s("26-"+a,"sc","comment-item"),attrs:{_i:"26-"+a}},[r("image",{staticClass:t._$s("27-"+a,"sc","user-avatar"),attrs:{src:t._$s("27-"+a,"a-src",e.user_portrait||"/static/avatar/noavatar.png"),_i:"27-"+a}}),r("view",{staticClass:t._$s("28-"+a,"sc","item-content"),attrs:{_i:"28-"+a}},[r("view",{staticClass:t._$s("29-"+a,"sc","item-title-box"),attrs:{_i:"29-"+a}},[r("text",{staticClass:t._$s("30-"+a,"sc","user-name"),attrs:{_i:"30-"+a}},[t._v(t._$s("30-"+a,"t0-0",t._s(e.user_nick_name||e.user_name)))]),r("view"),r("view",{staticClass:t._$s("32-"+a,"sc","item-statistics"),attrs:{_i:"32-"+a}},[r("uni-icons",{attrs:{type:"heart",color:"#b9bbbd",size:"16",_i:"33-"+a}}),r("text",[t._v(t._$s("34-"+a,"t0-0",t._s(e.comment_up)))])],1)]),r("text",{staticClass:t._$s("35-"+a,"sc","comment-content"),attrs:{_i:"35-"+a}},[t._v(t._$s("35-"+a,"t0-0",t._s(e.comment_content)))])])])})),0)]),t._$s(36,"i",t.data.hot_list)?r("view",{staticClass:t._$s(36,"sc","video-like"),attrs:{_i:36}},[r("view",{staticClass:t._$s(37,"sc","video-like-titlebox"),attrs:{_i:37}},[r("text",{staticClass:t._$s(38,"sc","video-like-title"),attrs:{_i:38}})]),r("view",{staticClass:t._$s(39,"sc","vod-container"),attrs:{_i:39}},t._l(t._$s(40,"f",{forItems:t.data.hot_list}),(function(e,n,i,a){return r("vod-item",{key:t._$s(40,"f",{forIndex:i,key:n}),attrs:{item:e,_i:"40-"+a}})})),1)]):t._e(),r("u-loading-page",{attrs:{loading:t.loading,bgColor:"none",fontSize:"16",_i:41}})],1)},a=[]},ca42:function(t,e,r){"use strict";r.r(e);var n=r("ae95"),i=r("73fe");for(var a in i)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return i[t]}))}(a);var s=r("828b"),o=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);e["default"]=o.exports},caf1:function(t,e,r){"use strict";r.d(e,"b",(function(){return i})),r.d(e,"c",(function(){return a})),r.d(e,"a",(function(){return n}));var n={uTransition:r("ba94").default},i=function(){var t=this.$createElement,e=this._self._c||t;return e("u-transition",{attrs:{show:this.show,"custom-class":"u-overlay",duration:this.duration,"custom-style":this.overlayStyle,_i:0},on:{click:this.clickHandler}},[this._t("default",null,{_i:1})],2)},a=[]},cb5b:function(t,e,r){(function(t,n,i){var a,s=r("0670"),o=r("34cf"),u=r("127e"),l=r("ee10"),c=r("7ca3"),A=r("af34"),d=r("7ce1"),f=r("67ad"),h=r("0bdb"),p=r("3352"),g=r("8ffa"),v=r("4ffb"),m=r("b4d2"),y=r("3b2d");function w(t,e){var r="undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(!t)return;if("string"===typeof t)return b(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return b(t,e)}(t))||e&&t&&"number"===typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},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 a,s=!0,o=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return s=t.done,t},e:function(t){o=!0,a=t},f:function(){try{s||null==r.return||r.return()}finally{if(o)throw a}}}}function b(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function _(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function B(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?_(Object(r),!0).forEach((function(e){c(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):_(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function C(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}
/*!
 * artplayer.js v5.1.1
 * Github: https://github.com/zhw2590582/ArtPlayer
 * (c) 2017-2024 Harvey Zack
 * Released under the MIT License.
 */();return function(){var r,n=m(t);if(e){var i=m(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return v(this,r)}}!function(t,s,o,u,l){var c="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof n?n:{},A="function"==typeof c[u]&&c[u],d=A.cache||{},f="function"==typeof i.require&&i.require.bind(i);function h(e,r){if(!d[e]){if(!t[e]){var n="function"==typeof c[u]&&c[u];if(!r&&n)return n(e,!0);if(A)return A(e,!0);if(f&&"string"==typeof e)return f(e);var i=new Error("Cannot find module '"+e+"'");throw i.code="MODULE_NOT_FOUND",i}s.resolve=function(r){var n=t[e][1][r];return null!=n?n:r},s.cache={};var a=d[e]=new h.Module(e);t[e][0].call(a.exports,s,a,a.exports,this)}return d[e].exports;function s(t){var e=s.resolve(t);return!1===e?{}:h(e)}}h.isParcelRequire=!0,h.Module=function(t){this.id=t,this.bundle=h,this.exports={}},h.modules=t,h.cache=d,h.parent=A,h.register=function(e,r){t[e]=[function(t,e){e.exports=r},{}]},Object.defineProperty(h,"root",{get:function(){return c[u]}}),c[u]=h;for(var p=0;p<s.length;p++)h(s[p]);var g=h(o);"object"==y(e)&&"undefined"!=typeof i?i.exports=g:(a=function(){return g}.call(e,r,e,i),void 0===a||(i.exports=a))}({abjMI:[function(e,r,n){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n);var a=e("bundle-text:./style/index.less"),s=i.interopDefault(a),o=e("option-validator"),u=i.interopDefault(o),l=e("./utils/emitter"),c=i.interopDefault(l),A=e("./utils"),d=e("./scheme"),v=i.interopDefault(d),m=e("./config"),y=i.interopDefault(m),w=e("./template"),b=i.interopDefault(w),_=e("./i18n"),B=i.interopDefault(_),E=e("./player"),x=i.interopDefault(E),T=e("./control"),S=i.interopDefault(T),k=e("./contextmenu"),I=i.interopDefault(k),F=e("./info"),L=i.interopDefault(F),D=e("./subtitle"),R=i.interopDefault(D),U=e("./events"),O=i.interopDefault(U),P=e("./hotkey"),M=i.interopDefault(P),Q=e("./layer"),N=i.interopDefault(Q),H=e("./loading"),$=i.interopDefault(H),j=e("./notice"),K=i.interopDefault(j),G=e("./mask"),V=i.interopDefault(G),W=e("./icons"),z=i.interopDefault(W),Y=e("./setting"),q=i.interopDefault(Y),X=e("./storage"),J=i.interopDefault(X),Z=e("./plugins"),tt=i.interopDefault(Z),et=0,rt=[],nt=function(e){"use strict";g(n,e);var r=C(n);function n(e,i){var a;f(this,n),a=r.call(this),a.id=++et;var s=A.mergeDeep(n.option,e);return s.container=e.container,a.option=(0,u.default)(s,v.default),a.isLock=!1,a.isReady=!1,a.isFocus=!1,a.isInput=!1,a.isRotate=!1,a.isDestroy=!1,a.template=new(0,b.default)(p(a)),a.events=new(0,O.default)(p(a)),a.storage=new(0,J.default)(p(a)),a.icons=new(0,z.default)(p(a)),a.i18n=new(0,B.default)(p(a)),a.notice=new(0,K.default)(p(a)),a.player=new(0,x.default)(p(a)),a.layers=new(0,N.default)(p(a)),a.controls=new(0,S.default)(p(a)),a.contextmenu=new(0,I.default)(p(a)),a.subtitle=new(0,R.default)(p(a)),a.info=new(0,L.default)(p(a)),a.loading=new(0,$.default)(p(a)),a.hotkey=new(0,M.default)(p(a)),a.mask=new(0,V.default)(p(a)),a.setting=new(0,q.default)(p(a)),a.plugins=new(0,tt.default)(p(a)),"function"==typeof i&&a.on("ready",(function(){return i.call(p(a),p(a))})),n.DEBUG&&function(){var e=function(e){return t("log","[ART.".concat(a.id,"] -> ").concat(e)," at node_modules/artplayer/dist/artplayer.js:7")};e("Version@"+n.version),e("Env@"+n.env),e("Build@"+n.build);for(var r=0;r<y.default.events.length;r++)a.on("video:"+y.default.events[r],(function(t){return e("Event@"+t.type)}))}(),rt.push(p(a)),a}return h(n,[{key:"proxy",get:function(){return this.events.proxy}},{key:"query",get:function(){return this.template.query}},{key:"video",get:function(){return this.template.$video}},{key:"destroy",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.events.destroy(),this.template.destroy(t),rt.splice(rt.indexOf(this),1),this.isDestroy=!0,this.emit("destroy")}}],[{key:"instances",get:function(){return rt}},{key:"version",get:function(){return"5.1.1"}},{key:"env",get:function(){return"production"}},{key:"build",get:function(){return"2024-01-11 10:39:44"}},{key:"config",get:function(){return y.default}},{key:"utils",get:function(){return A}},{key:"scheme",get:function(){return v.default}},{key:"Emitter",get:function(){return c.default}},{key:"validator",get:function(){return u.default}},{key:"kindOf",get:function(){return u.default.kindOf}},{key:"html",get:function(){return b.default.html}},{key:"option",get:function(){return{id:"",container:"#artplayer",url:"",poster:"",type:"",theme:"#f00",volume:.7,isLive:!1,muted:!1,autoplay:!1,autoSize:!1,autoMini:!1,loop:!1,flip:!1,playbackRate:!1,aspectRatio:!1,screenshot:!1,setting:!1,hotkey:!0,pip:!1,mutex:!0,backdrop:!0,fullscreen:!1,fullscreenWeb:!1,subtitleOffset:!1,miniProgressBar:!1,useSSR:!1,playsInline:!0,lock:!1,fastForward:!1,autoPlayback:!1,autoOrientation:!1,airplay:!1,layers:[],contextmenu:[],controls:[],settings:[],quality:[],highlight:[],plugins:[],thumbnails:{url:"",number:60,column:10,width:0,height:0},subtitle:{url:"",type:"",style:{},name:"",escape:!0,encoding:"utf-8",onVttLoad:function(t){return t}},moreVideoAttr:{controls:!1,preload:A.isSafari?"auto":"metadata"},i18n:{},icons:{},cssVar:{},customType:{},lang:navigator.language.toLowerCase()}}}]),n}(c.default);n.default=nt,nt.DEBUG=!1,nt.CONTEXTMENU=!0,nt.NOTICE_TIME=2e3,nt.SETTING_WIDTH=250,nt.SETTING_ITEM_WIDTH=200,nt.SETTING_ITEM_HEIGHT=35,nt.RESIZE_TIME=200,nt.SCROLL_TIME=200,nt.SCROLL_GAP=50,nt.AUTO_PLAYBACK_MAX=10,nt.AUTO_PLAYBACK_MIN=5,nt.AUTO_PLAYBACK_TIMEOUT=3e3,nt.RECONNECT_TIME_MAX=5,nt.RECONNECT_SLEEP_TIME=1e3,nt.CONTROL_HIDE_TIME=3e3,nt.DBCLICK_TIME=300,nt.DBCLICK_FULLSCREEN=!0,nt.MOBILE_DBCLICK_PLAY=!0,nt.MOBILE_CLICK_PLAY=!1,nt.AUTO_ORIENTATION_TIME=200,nt.INFO_LOOP_TIME=1e3,nt.FAST_FORWARD_VALUE=3,nt.FAST_FORWARD_TIME=1e3,nt.TOUCH_MOVE_RATIO=.5,nt.VOLUME_STEP=.1,nt.SEEK_STEP=5,nt.PLAYBACK_RATE=[.5,.75,1,1.25,1.5,2],nt.ASPECT_RATIO=["default","4:3","16:9"],nt.FLIP=["normal","horizontal","vertical"],nt.FULLSCREEN_WEB_IN_BODY=!1,nt.LOG_VERSION=!0,nt.USE_RAF=!1,A.isBrowser&&(window.Artplayer=nt,A.setStyleText("artplayer-style",s.default),setTimeout((function(){nt.LOG_VERSION&&t("log","%c ArtPlayer %c ".concat(nt.version," %c https://artplayer.org"),"color: #fff; background: #5f5f5f","color: #fff; background: #4bc729",""," at node_modules/artplayer/dist/artplayer.js:7")}),100))},{"bundle-text:./style/index.less":"kfOe8","option-validator":"bAWi2","./utils/emitter":"2bGVu","./utils":"h3rH9","./scheme":"AdvwB","./config":"9Xmqu","./template":"2gKYH","./i18n":"1AdeF","./player":"556MW","./control":"14IBq","./contextmenu":"7iUum","./info":"hD2Lg","./subtitle":"lum0D","./events":"1Epl5","./hotkey":"eTow4","./layer":"4fDoD","./loading":"fE0Sp","./notice":"9PuGy","./mask":"2etr0","./icons":"6dYSr","./setting":"bRHiA","./storage":"f2Thp","./plugins":"96ThS","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],kfOe8:[function(t,e,r){e.exports='.art-video-player{--art-theme:red;--art-font-color:#fff;--art-background-color:#000;--art-text-shadow-color:#00000080;--art-transition-duration:.2s;--art-padding:10px;--art-border-radius:3px;--art-progress-height:6px;--art-progress-color:#fff3;--art-hover-color:#fff3;--art-loaded-color:#fff3;--art-state-size:80px;--art-state-opacity:.8;--art-bottom-height:100px;--art-bottom-offset:20px;--art-bottom-gap:5px;--art-highlight-width:8px;--art-highlight-color:#ffffff80;--art-control-height:46px;--art-control-opacity:.75;--art-control-icon-size:36px;--art-control-icon-scale:1.1;--art-volume-height:120px;--art-volume-handle-size:14px;--art-lock-size:36px;--art-indicator-scale:0;--art-indicator-size:16px;--art-fullscreen-web-index:9999;--art-settings-icon-size:24px;--art-settings-max-height:300px;--art-selector-max-height:300px;--art-contextmenus-min-width:250px;--art-subtitle-font-size:20px;--art-subtitle-gap:5px;--art-subtitle-bottom:15px;--art-subtitle-border:#000;--art-widget-background:#000000d9;--art-tip-background:#00000080;--art-scrollbar-size:4px;--art-scrollbar-background:#ffffff40;--art-scrollbar-background-hover:#ffffff80;--art-mini-progress-height:2px}.art-bg-cover{background-position:50%;background-repeat:no-repeat;background-size:cover}.art-bottom-gradient{background-image:linear-gradient(#0000,#0006,#000);background-position:bottom;background-repeat:repeat-x}.art-backdrop-filter{-webkit-backdrop-filter:saturate(180%)blur(20px);backdrop-filter:saturate(180%)blur(20px);background-color:#000000bf!important}.art-truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.art-video-player{width:100%;height:100%;zoom:1;text-align:left;direction:ltr;user-select:none;box-sizing:border-box;color:var(--art-font-color);background-color:var(--art-background-color);text-shadow:0 0 2px var(--art-text-shadow-color);-webkit-tap-highlight-color:#0000;-ms-touch-action:manipulation;touch-action:manipulation;-ms-high-contrast-adjust:none;outline:0;margin:0 auto;padding:0;font-family:PingFang SC,Helvetica Neue,Microsoft YaHei,Roboto,Arial,sans-serif;font-size:14px;line-height:1.3;position:relative}.art-video-player *,.art-video-player :before,.art-video-player :after{box-sizing:border-box}.art-video-player ::-webkit-scrollbar{width:var(--art-scrollbar-size);height:var(--art-scrollbar-size)}.art-video-player ::-webkit-scrollbar-thumb{background-color:var(--art-scrollbar-background)}.art-video-player ::-webkit-scrollbar-thumb:hover{background-color:var(--art-scrollbar-background-hover)}.art-video-player img{max-width:100%;vertical-align:top}.art-video-player svg{fill:var(--art-font-color)}.art-video-player a{color:var(--art-font-color);text-decoration:none}.art-icon{justify-content:center;align-items:center;line-height:1;display:flex}.art-video-player.art-backdrop .art-contextmenus,.art-video-player.art-backdrop .art-info,.art-video-player.art-backdrop .art-settings,.art-video-player.art-backdrop .art-layer-auto-playback,.art-video-player.art-backdrop .art-selector-list,.art-video-player.art-backdrop .art-volume-inner{-webkit-backdrop-filter:saturate(180%)blur(20px);backdrop-filter:saturate(180%)blur(20px);background-color:#000000bf!important}.art-video{z-index:10;width:100%;height:100%;cursor:pointer;position:absolute;inset:0}.art-poster{z-index:11;width:100%;height:100%;pointer-events:none;background-position:50%;background-repeat:no-repeat;background-size:cover;position:absolute;inset:0}.art-video-player .art-subtitle{z-index:20;width:100%;text-align:center;pointer-events:none;justify-content:center;align-items:center;gap:var(--art-subtitle-gap);bottom:var(--art-subtitle-bottom);font-size:var(--art-subtitle-font-size);transition:bottom var(--art-transition-duration)ease;text-shadow:var(--art-subtitle-border)1px 0 1px,var(--art-subtitle-border)0 1px 1px,var(--art-subtitle-border)-1px 0 1px,var(--art-subtitle-border)0 -1px 1px,var(--art-subtitle-border)1px 1px 1px,var(--art-subtitle-border)-1px -1px 1px,var(--art-subtitle-border)1px -1px 1px,var(--art-subtitle-border)-1px 1px 1px;flex-direction:column;padding:0 5%;display:none;position:absolute}.art-video-player.art-subtitle-show .art-subtitle{display:flex}.art-video-player.art-control-show .art-subtitle{bottom:calc(var(--art-control-height) + var(--art-subtitle-bottom))}.art-danmuku{z-index:30;width:100%;height:100%;pointer-events:none;position:absolute;inset:0;overflow:hidden}.art-video-player .art-layers{z-index:40;width:100%;height:100%;pointer-events:none;display:none;position:absolute;inset:0}.art-video-player .art-layers .art-layer{pointer-events:auto}.art-video-player.art-layer-show .art-layers{display:flex}.art-video-player .art-mask{z-index:50;width:100%;height:100%;pointer-events:none;justify-content:center;align-items:center;display:flex;position:absolute;inset:0}.art-video-player .art-mask .art-state{opacity:0;width:var(--art-state-size);height:var(--art-state-size);transition:all var(--art-transition-duration)ease;justify-content:center;align-items:center;display:flex;transform:scale(2)}.art-video-player.art-mask-show .art-state{cursor:pointer;pointer-events:auto;opacity:var(--art-state-opacity);transform:scale(1)}.art-video-player.art-loading-show .art-state{display:none}.art-video-player .art-loading{z-index:70;width:100%;height:100%;pointer-events:none;justify-content:center;align-items:center;display:none;position:absolute;inset:0}.art-video-player.art-loading-show .art-loading{display:flex}.art-video-player .art-bottom{z-index:60;width:100%;height:100%;opacity:0;pointer-events:none;padding:0 var(--art-padding);transition:all var(--art-transition-duration)ease;background-size:100% var(--art-bottom-height);background-image:linear-gradient(#0000,#0006,#000);background-position:bottom;background-repeat:repeat-x;flex-direction:column;justify-content:flex-end;display:flex;position:absolute;inset:0;overflow:hidden}.art-video-player .art-bottom .art-controls,.art-video-player .art-bottom .art-progress{transform:translateY(var(--art-bottom-offset));transition:transform var(--art-transition-duration)ease}.art-video-player.art-control-show .art-bottom,.art-video-player.art-hover .art-bottom{opacity:1}.art-video-player.art-control-show .art-bottom .art-controls,.art-video-player.art-hover .art-bottom .art-controls,.art-video-player.art-control-show .art-bottom .art-progress,.art-video-player.art-hover .art-bottom .art-progress{transform:translateY(0)}.art-bottom .art-progress{z-index:0;pointer-events:auto;padding-bottom:var(--art-bottom-gap);position:relative}.art-bottom .art-progress .art-control-progress{cursor:pointer;height:var(--art-progress-height);justify-content:center;align-items:center;display:flex;position:relative}.art-bottom .art-progress .art-control-progress .art-control-progress-inner{height:50%;width:100%;transition:height var(--art-transition-duration)ease;background-color:var(--art-progress-color);align-items:center;display:flex;position:relative}.art-bottom .art-progress .art-control-progress .art-control-progress-inner .art-progress-hover{z-index:0;width:100%;height:100%;width:0%;background-color:var(--art-hover-color);display:none;position:absolute;inset:0}.art-bottom .art-progress .art-control-progress .art-control-progress-inner .art-progress-loaded{z-index:10;width:100%;height:100%;width:0%;background-color:var(--art-loaded-color);position:absolute;inset:0}.art-bottom .art-progress .art-control-progress .art-control-progress-inner .art-progress-played{z-index:20;width:100%;height:100%;width:0%;background-color:var(--art-theme);position:absolute;inset:0}.art-bottom .art-progress .art-control-progress .art-control-progress-inner .art-progress-highlight{z-index:30;width:100%;height:100%;pointer-events:none;position:absolute;inset:0}.art-bottom .art-progress .art-control-progress .art-control-progress-inner .art-progress-highlight span{z-index:0;width:100%;height:100%;pointer-events:auto;transform:translateX(calc(var(--art-highlight-width)/-2));background-color:var(--art-highlight-color);position:absolute;inset:0 auto 0 0;width:var(--art-highlight-width)!important}.art-bottom .art-progress .art-control-progress .art-control-progress-inner .art-progress-indicator{z-index:40;width:var(--art-indicator-size);height:var(--art-indicator-size);transform:scale(var(--art-indicator-scale));margin-left:calc(var(--art-indicator-size)/-2);transition:transform var(--art-transition-duration)ease;border-radius:50%;justify-content:center;align-items:center;display:flex;position:absolute;left:0}.art-bottom .art-progress .art-control-progress .art-control-progress-inner .art-progress-indicator .art-icon{width:100%;height:100%;pointer-events:none}.art-bottom .art-progress .art-control-progress .art-control-progress-inner .art-progress-indicator:hover{transform:scale(1.2)!important}.art-bottom .art-progress .art-control-progress .art-control-progress-inner .art-progress-indicator:active{transform:scale(1)!important}.art-bottom .art-progress .art-control-progress .art-control-progress-inner .art-progress-tip{z-index:50;border-radius:var(--art-border-radius);white-space:nowrap;background-color:var(--art-tip-background);padding:3px 5px;font-size:12px;line-height:1;display:none;position:absolute;top:-25px;left:0}.art-bottom .art-progress .art-control-progress:hover .art-control-progress-inner{height:100%}.art-bottom .art-progress .art-control-thumbnails{bottom:calc(var(--art-bottom-gap) + 10px);border-radius:var(--art-border-radius);pointer-events:none;background-color:var(--art-widget-background);display:none;position:absolute;left:0;box-shadow:0 1px 3px #0003,0 1px 2px -1px #0003}.art-bottom:hover .art-progress .art-control-progress .art-control-progress-inner .art-progress-indicator{transform:scale(1)}.art-controls{z-index:10;pointer-events:auto;height:var(--art-control-height);justify-content:space-between;align-items:center;display:flex;position:relative}.art-controls .art-controls-left,.art-controls .art-controls-right{height:100%;display:flex}.art-controls .art-controls-center{height:100%;flex:1;justify-content:center;align-items:center;padding:0 10px;display:none}.art-controls .art-controls-right{justify-content:flex-end}.art-controls .art-control{cursor:pointer;white-space:nowrap;opacity:var(--art-control-opacity);min-height:var(--art-control-height);min-width:var(--art-control-height);transition:opacity var(--art-transition-duration)ease;flex-shrink:0;justify-content:center;align-items:center;display:flex}.art-controls .art-control .art-icon{height:var(--art-control-icon-size);width:var(--art-control-icon-size);transform:scale(var(--art-control-icon-scale));transition:transform var(--art-transition-duration)ease}.art-controls .art-control .art-icon:active{transform:scale(calc(var(--art-control-icon-scale)*.8))}.art-controls .art-control:hover{opacity:1}.art-control-volume{position:relative}.art-control-volume .art-volume-panel{text-align:center;cursor:default;opacity:0;pointer-events:none;left:0;right:0;bottom:var(--art-control-height);width:var(--art-control-height);height:var(--art-volume-height);transition:all var(--art-transition-duration)ease;justify-content:center;align-items:center;padding:0 5px;font-size:12px;display:flex;position:absolute;transform:translateY(10px)}.art-control-volume .art-volume-panel .art-volume-inner{height:100%;width:100%;border-radius:var(--art-border-radius);background-color:var(--art-widget-background);flex-direction:column;align-items:center;gap:10px;padding:10px 0 12px;display:flex}.art-control-volume .art-volume-panel .art-volume-inner .art-volume-slider{width:100%;cursor:pointer;flex:1;justify-content:center;display:flex;position:relative}.art-control-volume .art-volume-panel .art-volume-inner .art-volume-slider .art-volume-handle{width:2px;border-radius:var(--art-border-radius);background-color:#ffffff40;justify-content:center;display:flex;position:relative;overflow:hidden}.art-control-volume .art-volume-panel .art-volume-inner .art-volume-slider .art-volume-handle .art-volume-loaded{z-index:0;width:100%;height:100%;background-color:var(--art-theme);position:absolute;inset:0}.art-control-volume .art-volume-panel .art-volume-inner .art-volume-slider .art-volume-indicator{width:var(--art-volume-handle-size);height:var(--art-volume-handle-size);margin-top:calc(var(--art-volume-handle-size)/-2);background-color:var(--art-theme);transition:transform var(--art-transition-duration)ease;border-radius:100%;flex-shrink:0;position:absolute;transform:scale(1)}.art-control-volume .art-volume-panel .art-volume-inner .art-volume-slider:active .art-volume-indicator{transform:scale(.9)}.art-control-volume:hover .art-volume-panel{opacity:1;pointer-events:auto;transform:translateY(0)}.art-video-player .art-notice{z-index:80;width:100%;height:100%;height:auto;padding:var(--art-padding);pointer-events:none;display:none;position:absolute;inset:0 0 auto}.art-video-player .art-notice .art-notice-inner{border-radius:var(--art-border-radius);background-color:var(--art-tip-background);padding:5px;line-height:1;display:inline-flex}.art-video-player.art-notice-show .art-notice{display:flex}.art-video-player .art-contextmenus{z-index:120;border-radius:var(--art-border-radius);background-color:var(--art-widget-background);min-width:var(--art-contextmenus-min-width);flex-direction:column;padding:5px 0;font-size:12px;display:none;position:absolute}.art-video-player .art-contextmenus .art-contextmenu{cursor:pointer;border-bottom:1px solid #ffffff1a;padding:10px 15px;display:flex}.art-video-player .art-contextmenus .art-contextmenu span{padding:0 8px}.art-video-player .art-contextmenus .art-contextmenu span:hover,.art-video-player .art-contextmenus .art-contextmenu span.art-current{color:var(--art-theme)}.art-video-player .art-contextmenus .art-contextmenu:hover{background-color:#ffffff1a}.art-video-player .art-contextmenus .art-contextmenu:last-child{border-bottom:none}.art-video-player.art-contextmenu-show .art-contextmenus{display:flex}.art-video-player .art-settings{z-index:90;border-radius:var(--art-border-radius);transform-origin:100% 100%;max-height:var(--art-settings-max-height);left:auto;right:var(--art-padding);bottom:var(--art-control-height);transform:scale(var(--art-settings-scale));transition:all var(--art-transition-duration)ease;background-color:var(--art-widget-background);flex-direction:column;display:none;position:absolute;overflow:hidden auto}.art-video-player .art-settings .art-setting-panel{flex-direction:column;display:none}.art-video-player .art-settings .art-setting-panel.art-current{display:flex}.art-video-player .art-settings .art-setting-panel .art-setting-item{cursor:pointer;transition:background-color var(--art-transition-duration)ease;justify-content:space-between;align-items:center;padding:0 5px;display:flex;overflow:hidden}.art-video-player .art-settings .art-setting-panel .art-setting-item:hover{background-color:#ffffff1a}.art-video-player .art-settings .art-setting-panel .art-setting-item.art-current{color:var(--art-theme)}.art-video-player .art-settings .art-setting-panel .art-setting-item .art-icon-check{visibility:hidden;height:15px}.art-video-player .art-settings .art-setting-panel .art-setting-item.art-current .art-icon-check{visibility:visible}.art-video-player .art-settings .art-setting-panel .art-setting-item .art-setting-item-left{justify-content:center;align-items:center;gap:5px;display:flex}.art-video-player .art-settings .art-setting-panel .art-setting-item .art-setting-item-left .art-setting-item-left-icon{height:var(--art-settings-icon-size);width:var(--art-settings-icon-size);justify-content:center;align-items:center;display:flex}.art-video-player .art-settings .art-setting-panel .art-setting-item .art-setting-item-right{justify-content:center;align-items:center;gap:5px;font-size:12px;display:flex}.art-video-player .art-settings .art-setting-panel .art-setting-item .art-setting-item-right .art-setting-item-right-tooltip{white-space:nowrap;color:#ffffff80}.art-video-player .art-settings .art-setting-panel .art-setting-item .art-setting-item-right .art-setting-item-right-icon{min-width:32px;height:24px;justify-content:center;align-items:center;display:flex}.art-video-player .art-settings .art-setting-panel .art-setting-item .art-setting-item-right .art-setting-range{height:3px;width:80px;appearance:none;background-color:#fff3;outline:none}.art-video-player .art-settings .art-setting-panel .art-setting-item-back{border-bottom:1px solid #ffffff1a}.art-video-player.art-setting-show .art-settings{display:flex}.art-video-player .art-info{left:var(--art-padding);top:var(--art-padding);z-index:100;border-radius:var(--art-border-radius);background-color:var(--art-widget-background);padding:10px;font-size:12px;display:none;position:absolute}.art-video-player .art-info .art-info-panel{flex-direction:column;gap:5px;display:flex}.art-video-player .art-info .art-info-panel .art-info-item{align-items:center;gap:5px;display:flex}.art-video-player .art-info .art-info-panel .art-info-item .art-info-title{width:100px;text-align:right}.art-video-player .art-info .art-info-panel .art-info-item .art-info-content{width:250px;text-overflow:ellipsis;white-space:nowrap;user-select:all;overflow:hidden}.art-video-player .art-info .art-info-close{cursor:pointer;position:absolute;top:5px;right:5px}.art-video-player.art-info-show .art-info{display:flex}.art-hide-cursor *{cursor:none!important}.art-video-player[data-aspect-ratio]{overflow:hidden}.art-video-player[data-aspect-ratio] .art-video{object-fit:fill;box-sizing:content-box}.art-fullscreen{--art-control-height:60px;--art-control-icon-scale:1.3}.art-fullscreen-web{--art-control-height:60px;--art-control-icon-scale:1.3;z-index:var(--art-fullscreen-web-index);width:100%;height:100%;position:fixed;inset:0}.art-mini-popup{z-index:9999;width:320px;height:180px;border-radius:var(--art-border-radius);cursor:move;user-select:none;background:#000;transition:opacity .2s;position:fixed;overflow:hidden;box-shadow:0 0 5px #00000080}.art-mini-popup svg{fill:#fff}.art-mini-popup .art-video{pointer-events:none}.art-mini-popup .art-mini-close{z-index:20;cursor:pointer;opacity:0;transition:opacity .2s;position:absolute;top:10px;right:10px}.art-mini-popup .art-mini-state{z-index:30;width:100%;height:100%;pointer-events:none;opacity:0;background-color:#00000040;justify-content:center;align-items:center;transition:opacity .2s;display:flex;position:absolute;inset:0}.art-mini-popup .art-mini-state .art-icon{opacity:.75;cursor:pointer;pointer-events:auto;transition:transform .2s;transform:scale(3)}.art-mini-popup .art-mini-state .art-icon:active{transform:scale(2.5)}.art-mini-popup.art-mini-droging{opacity:.9}.art-mini-popup:hover .art-mini-close,.art-mini-popup:hover .art-mini-state{opacity:1}.art-video-player[data-flip=horizontal] .art-video{transform:scaleX(-1)}.art-video-player[data-flip=vertical] .art-video{transform:scaleY(-1)}.art-video-player .art-layer-lock{height:var(--art-lock-size);width:var(--art-lock-size);top:50%;left:var(--art-padding);background-color:var(--art-tip-background);border-radius:50%;justify-content:center;align-items:center;display:none;position:absolute;transform:translateY(-50%)}.art-video-player .art-layer-auto-playback{border-radius:var(--art-border-radius);left:var(--art-padding);bottom:calc(var(--art-control-height) + var(--art-bottom-gap) + 10px);background-color:var(--art-widget-background);align-items:center;gap:10px;padding:10px;line-height:1;display:none;position:absolute}.art-video-player .art-layer-auto-playback .art-auto-playback-close{cursor:pointer;justify-content:center;align-items:center;display:flex}.art-video-player .art-layer-auto-playback .art-auto-playback-close svg{width:15px;height:15px;fill:var(--art-theme)}.art-video-player .art-layer-auto-playback .art-auto-playback-jump{color:var(--art-theme);cursor:pointer}.art-video-player.art-lock .art-subtitle{bottom:var(--art-subtitle-bottom)!important}.art-video-player.art-mini-progress-bar .art-bottom,.art-video-player.art-lock .art-bottom{opacity:1;background-image:none;padding:0}.art-video-player.art-mini-progress-bar .art-bottom .art-controls,.art-video-player.art-lock .art-bottom .art-controls,.art-video-player.art-mini-progress-bar .art-bottom .art-progress,.art-video-player.art-lock .art-bottom .art-progress{transform:translateY(calc(var(--art-control-height) + var(--art-bottom-gap) + var(--art-progress-height)/4))}.art-video-player.art-mini-progress-bar .art-bottom .art-progress-indicator,.art-video-player.art-lock .art-bottom .art-progress-indicator{display:none!important}.art-video-player.art-control-show .art-layer-lock{display:flex}.art-control-selector{position:relative}.art-control-selector .art-selector-list{text-align:center;border-radius:var(--art-border-radius);opacity:0;pointer-events:none;bottom:var(--art-control-height);max-height:var(--art-selector-max-height);background-color:var(--art-widget-background);transition:all var(--art-transition-duration)ease;flex-direction:column;align-items:center;display:flex;position:absolute;overflow:hidden auto;transform:translateY(10px)}.art-control-selector .art-selector-list .art-selector-item{width:100%;flex-shrink:0;justify-content:center;align-items:center;padding:10px 15px;line-height:1;display:flex}.art-control-selector .art-selector-list .art-selector-item:hover{background-color:#ffffff1a}.art-control-selector .art-selector-list .art-selector-item:hover,.art-control-selector .art-selector-list .art-selector-item.art-current{color:var(--art-theme)}.art-control-selector:hover .art-selector-list{opacity:1;pointer-events:auto;transform:translateY(0)}[class*=hint--]{font-style:normal;display:inline-block;position:relative}[class*=hint--]:before,[class*=hint--]:after{visibility:hidden;opacity:0;z-index:1000000;pointer-events:none;transition:all .3s;position:absolute;transform:translate(0,0)}[class*=hint--]:hover:before,[class*=hint--]:hover:after{visibility:visible;opacity:1;transition-delay:.1s}[class*=hint--]:before{content:"";z-index:1000001;background:0 0;border:6px solid #0000;position:absolute}[class*=hint--]:after{color:#fff;white-space:nowrap;background:#000;padding:8px 10px;font-family:Helvetica Neue,Helvetica,Arial,sans-serif;font-size:12px;line-height:12px}[class*=hint--][aria-label]:after{content:attr(aria-label)}[class*=hint--][data-hint]:after{content:attr(data-hint)}[aria-label=""]:before,[aria-label=""]:after,[data-hint=""]:before,[data-hint=""]:after{display:none!important}.hint--top-left:before,.hint--top-right:before,.hint--top:before{border-top-color:#000}.hint--bottom-left:before,.hint--bottom-right:before,.hint--bottom:before{border-bottom-color:#000}.hint--left:before{border-left-color:#000}.hint--right:before{border-right-color:#000}.hint--top:before{margin-bottom:-11px}.hint--top:before,.hint--top:after{bottom:100%;left:50%}.hint--top:before{left:calc(50% - 6px)}.hint--top:after{transform:translate(-50%)}.hint--top:hover:before{transform:translateY(-8px)}.hint--top:hover:after{transform:translate(-50%)translateY(-8px)}.hint--bottom:before{margin-top:-11px}.hint--bottom:before,.hint--bottom:after{top:100%;left:50%}.hint--bottom:before{left:calc(50% - 6px)}.hint--bottom:after{transform:translate(-50%)}.hint--bottom:hover:before{transform:translateY(8px)}.hint--bottom:hover:after{transform:translate(-50%)translateY(8px)}.hint--right:before{margin-bottom:-6px;margin-left:-11px}.hint--right:after{margin-bottom:-14px}.hint--right:before,.hint--right:after{bottom:50%;left:100%}.hint--right:hover:before,.hint--right:hover:after{transform:translate(8px)}.hint--left:before{margin-bottom:-6px;margin-right:-11px}.hint--left:after{margin-bottom:-14px}.hint--left:before,.hint--left:after{bottom:50%;right:100%}.hint--left:hover:before,.hint--left:hover:after{transform:translate(-8px)}.hint--top-left:before{margin-bottom:-11px}.hint--top-left:before,.hint--top-left:after{bottom:100%;left:50%}.hint--top-left:before{left:calc(50% - 6px)}.hint--top-left:after{margin-left:12px;transform:translate(-100%)}.hint--top-left:hover:before{transform:translateY(-8px)}.hint--top-left:hover:after{transform:translate(-100%)translateY(-8px)}.hint--top-right:before{margin-bottom:-11px}.hint--top-right:before,.hint--top-right:after{bottom:100%;left:50%}.hint--top-right:before{left:calc(50% - 6px)}.hint--top-right:after{margin-left:-12px;transform:translate(0)}.hint--top-right:hover:before,.hint--top-right:hover:after{transform:translateY(-8px)}.hint--bottom-left:before{margin-top:-11px}.hint--bottom-left:before,.hint--bottom-left:after{top:100%;left:50%}.hint--bottom-left:before{left:calc(50% - 6px)}.hint--bottom-left:after{margin-left:12px;transform:translate(-100%)}.hint--bottom-left:hover:before{transform:translateY(8px)}.hint--bottom-left:hover:after{transform:translate(-100%)translateY(8px)}.hint--bottom-right:before{margin-top:-11px}.hint--bottom-right:before,.hint--bottom-right:after{top:100%;left:50%}.hint--bottom-right:before{left:calc(50% - 6px)}.hint--bottom-right:after{margin-left:-12px;transform:translate(0)}.hint--bottom-right:hover:before,.hint--bottom-right:hover:after{transform:translateY(8px)}.hint--small:after,.hint--medium:after,.hint--large:after{white-space:normal;word-wrap:break-word;line-height:1.4em}.hint--small:after{width:80px}.hint--medium:after{width:150px}.hint--large:after{width:300px}[class*=hint--]:after{text-shadow:0 -1px #000;box-shadow:4px 4px 8px #0000004d}.hint--error:after{text-shadow:0 -1px #592726;background-color:#b34e4d}.hint--error.hint--top-left:before,.hint--error.hint--top-right:before,.hint--error.hint--top:before{border-top-color:#b34e4d}.hint--error.hint--bottom-left:before,.hint--error.hint--bottom-right:before,.hint--error.hint--bottom:before{border-bottom-color:#b34e4d}.hint--error.hint--left:before{border-left-color:#b34e4d}.hint--error.hint--right:before{border-right-color:#b34e4d}.hint--warning:after{text-shadow:0 -1px #6c5328;background-color:#c09854}.hint--warning.hint--top-left:before,.hint--warning.hint--top-right:before,.hint--warning.hint--top:before{border-top-color:#c09854}.hint--warning.hint--bottom-left:before,.hint--warning.hint--bottom-right:before,.hint--warning.hint--bottom:before{border-bottom-color:#c09854}.hint--warning.hint--left:before{border-left-color:#c09854}.hint--warning.hint--right:before{border-right-color:#c09854}.hint--info:after{text-shadow:0 -1px #1a3c4d;background-color:#3986ac}.hint--info.hint--top-left:before,.hint--info.hint--top-right:before,.hint--info.hint--top:before{border-top-color:#3986ac}.hint--info.hint--bottom-left:before,.hint--info.hint--bottom-right:before,.hint--info.hint--bottom:before{border-bottom-color:#3986ac}.hint--info.hint--left:before{border-left-color:#3986ac}.hint--info.hint--right:before{border-right-color:#3986ac}.hint--success:after{text-shadow:0 -1px #1a321a;background-color:#458746}.hint--success.hint--top-left:before,.hint--success.hint--top-right:before,.hint--success.hint--top:before{border-top-color:#458746}.hint--success.hint--bottom-left:before,.hint--success.hint--bottom-right:before,.hint--success.hint--bottom:before{border-bottom-color:#458746}.hint--success.hint--left:before{border-left-color:#458746}.hint--success.hint--right:before{border-right-color:#458746}.hint--always:after,.hint--always:before{opacity:1;visibility:visible}.hint--always.hint--top:before{transform:translateY(-8px)}.hint--always.hint--top:after{transform:translate(-50%)translateY(-8px)}.hint--always.hint--top-left:before{transform:translateY(-8px)}.hint--always.hint--top-left:after{transform:translate(-100%)translateY(-8px)}.hint--always.hint--top-right:before,.hint--always.hint--top-right:after{transform:translateY(-8px)}.hint--always.hint--bottom:before{transform:translateY(8px)}.hint--always.hint--bottom:after{transform:translate(-50%)translateY(8px)}.hint--always.hint--bottom-left:before{transform:translateY(8px)}.hint--always.hint--bottom-left:after{transform:translate(-100%)translateY(8px)}.hint--always.hint--bottom-right:before,.hint--always.hint--bottom-right:after{transform:translateY(8px)}.hint--always.hint--left:before,.hint--always.hint--left:after{transform:translate(-8px)}.hint--always.hint--right:before,.hint--always.hint--right:after{transform:translate(8px)}.hint--rounded:after{border-radius:4px}.hint--no-animate:before,.hint--no-animate:after{transition-duration:0s}.hint--bounce:before,.hint--bounce:after{-webkit-transition:opacity .3s,visibility .3s,-webkit-transform .3s cubic-bezier(.71,1.7,.77,1.24);-moz-transition:opacity .3s,visibility .3s,-moz-transform .3s cubic-bezier(.71,1.7,.77,1.24);transition:opacity .3s,visibility .3s,transform .3s cubic-bezier(.71,1.7,.77,1.24)}.hint--no-shadow:before,.hint--no-shadow:after{text-shadow:initial;box-shadow:initial}.hint--no-arrow:before{display:none}.art-video-player.art-mobile{--art-bottom-gap:10px;--art-control-height:38px;--art-control-icon-scale:1;--art-state-size:60px;--art-settings-max-height:180px;--art-selector-max-height:180px;--art-indicator-scale:1;--art-control-opacity:1}.art-video-player.art-mobile .art-controls-left{margin-left:calc(var(--art-padding)/-1)}.art-video-player.art-mobile .art-controls-right{margin-right:calc(var(--art-padding)/-1)}'},{}],bAWi2:[function(t,e,r){e.exports=function(){"use strict";function t(e){return(t="function"==typeof Symbol&&"symbol"==y(Symbol.iterator)?function(t){return y(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":y(t)})(e)}var e=Object.prototype.toString,r=function(r){if(void 0===r)return"undefined";if(null===r)return"null";var i=t(r);if("boolean"===i)return"boolean";if("string"===i)return"string";if("number"===i)return"number";if("symbol"===i)return"symbol";if("function"===i)return function(t){return"GeneratorFunction"===n(t)}(r)?"generatorfunction":"function";if(function(t){return Array.isArray?Array.isArray(t):t instanceof Array}(r))return"array";if(function(t){return!(!t.constructor||"function"!=typeof t.constructor.isBuffer)&&t.constructor.isBuffer(t)}(r))return"buffer";if(function(t){try{if("number"==typeof t.length&&"function"==typeof t.callee)return!0}catch(t){if(-1!==t.message.indexOf("callee"))return!0}return!1}(r))return"arguments";if(function(t){return t instanceof Date||"function"==typeof t.toDateString&&"function"==typeof t.getDate&&"function"==typeof t.setDate}(r))return"date";if(function(t){return t instanceof Error||"string"==typeof t.message&&t.constructor&&"number"==typeof t.constructor.stackTraceLimit}(r))return"error";if(function(t){return t instanceof RegExp||"string"==typeof t.flags&&"boolean"==typeof t.ignoreCase&&"boolean"==typeof t.multiline&&"boolean"==typeof t.global}(r))return"regexp";switch(n(r)){case"Symbol":return"symbol";case"Promise":return"promise";case"WeakMap":return"weakmap";case"WeakSet":return"weakset";case"Map":return"map";case"Set":return"set";case"Int8Array":return"int8array";case"Uint8Array":return"uint8array";case"Uint8ClampedArray":return"uint8clampedarray";case"Int16Array":return"int16array";case"Uint16Array":return"uint16array";case"Int32Array":return"int32array";case"Uint32Array":return"uint32array";case"Float32Array":return"float32array";case"Float64Array":return"float64array"}if(function(t){return"function"==typeof t.throw&&"function"==typeof t.return&&"function"==typeof t.next}(r))return"generator";switch(i=e.call(r)){case"[object Object]":return"object";case"[object Map Iterator]":return"mapiterator";case"[object Set Iterator]":return"setiterator";case"[object String Iterator]":return"stringiterator";case"[object Array Iterator]":return"arrayiterator"}return i.slice(8,-1).toLowerCase().replace(/\s/g,"")};function n(t){return t.constructor?t.constructor.name:null}function i(t,e){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:["option"];return a(t,e,n),s(t,e,n),function(t,e,n){var o=r(e),u=r(t);if("object"===o){if("object"!==u)throw new Error("[Type Error]: '".concat(n.join("."),"' require 'object' type, but got '").concat(u,"'"));Object.keys(e).forEach((function(r){var o=t[r],u=e[r],l=n.slice();l.push(r),a(o,u,l),s(o,u,l),i(o,u,l)}))}if("array"===o){if("array"!==u)throw new Error("[Type Error]: '".concat(n.join("."),"' require 'array' type, but got '").concat(u,"'"));t.forEach((function(r,o){var u=t[o],l=e[o]||e[0],c=n.slice();c.push(o),a(u,l,c),s(u,l,c),i(u,l,c)}))}}(t,e,n),t}function a(t,e,n){if("string"===r(e)){var i=r(t);if("?"===e[0]&&(e=e.slice(1)+"|undefined"),!(-1<e.indexOf("|")?e.split("|").map((function(t){return t.toLowerCase().trim()})).filter(Boolean).some((function(t){return i===t})):e.toLowerCase().trim()===i))throw new Error("[Type Error]: '".concat(n.join("."),"' require '").concat(e,"' type, but got '").concat(i,"'"))}}function s(t,e,n){if("function"===r(e)){var i=e(t,r(t),n);if(!0!==i){var a=r(i);throw"string"===a?new Error(i):"error"===a?i:new Error("[Validator Error]: The scheme for '".concat(n.join("."),"' validator require return true, but got '").concat(i,"'"))}}}return i.kindOf=r,i}()},{}],"2bGVu":[function(t,e,r){t("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r),r.default=function(){"use strict";function t(){f(this,t)}return h(t,[{key:"on",value:function(t,e,r){var n=this.e||(this.e={});return(n[t]||(n[t]=[])).push({fn:e,ctx:r}),this}},{key:"once",value:function(t,e,r){var n=this;function i(){for(var a=arguments.length,s=new Array(a),o=0;o<a;o++)s[o]=arguments[o];n.off(t,i),e.apply(r,s)}return i._=e,this.on(t,i,r)}},{key:"emit",value:function(t){for(var e=((this.e||(this.e={}))[t]||[]).slice(),r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];for(var a=0;a<e.length;a+=1)e[a].fn.apply(e[a].ctx,n);return this}},{key:"off",value:function(t,e){var r=this.e||(this.e={}),n=r[t],i=[];if(n&&e)for(var a=0,s=n.length;a<s;a+=1)n[a].fn!==e&&n[a].fn._!==e&&i.push(n[a]);return i.length?r[t]=i:delete r[t],this}}]),t}()},{"@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],guZOB:[function(t,e,r){r.interopDefault=function(t){return t&&t.__esModule?t:{default:t}},r.defineInteropFlag=function(t){Object.defineProperty(t,"__esModule",{value:!0})},r.exportAll=function(t,e){return Object.keys(t).forEach((function(r){"default"===r||"__esModule"===r||e.hasOwnProperty(r)||Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[r]}})})),e},r.export=function(t,e,r){Object.defineProperty(t,e,{enumerable:!0,get:r})}},{}],h3rH9:[function(t,e,r){var n=t("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var i=t("./dom");n.exportAll(i,r);var a=t("./error");n.exportAll(a,r);var s=t("./subtitle");n.exportAll(s,r);var o=t("./file");n.exportAll(o,r);var u=t("./property");n.exportAll(u,r);var l=t("./time");n.exportAll(l,r);var c=t("./format");n.exportAll(c,r);var A=t("./compatibility");n.exportAll(A,r)},{"./dom":"XgAQE","./error":"2nFlF","./subtitle":"yqFoT","./file":"1VRQn","./property":"3weX2","./time":"7kBIx","./format":"13atT","./compatibility":"luXC1","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],XgAQE:[function(t,e,r){var n=t("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"query",(function(){return a})),n.export(r,"queryAll",(function(){return s})),n.export(r,"addClass",(function(){return o})),n.export(r,"removeClass",(function(){return u})),n.export(r,"hasClass",(function(){return l})),n.export(r,"append",(function(){return c})),n.export(r,"remove",(function(){return A})),n.export(r,"setStyle",(function(){return d})),n.export(r,"setStyles",(function(){return f})),n.export(r,"getStyle",(function(){return h})),n.export(r,"sublings",(function(){return p})),n.export(r,"inverseClass",(function(){return g})),n.export(r,"tooltip",(function(){return v})),n.export(r,"isInViewport",(function(){return m})),n.export(r,"includeFromEvent",(function(){return y})),n.export(r,"replaceElement",(function(){return w})),n.export(r,"createElement",(function(){return b})),n.export(r,"getIcon",(function(){return _})),n.export(r,"setStyleText",(function(){return B}));var i=t("./compatibility");function a(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document;return e.querySelector(t)}function s(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document;return Array.from(e.querySelectorAll(t))}function o(t,e){return t.classList.add(e)}function u(t,e){return t.classList.remove(e)}function l(t,e){return t.classList.contains(e)}function c(t,e){return e instanceof Element?t.appendChild(e):t.insertAdjacentHTML("beforeend",String(e)),t.lastElementChild||t.lastChild}function A(t){return t.parentNode.removeChild(t)}function d(t,e,r){return t.style[e]=r,t}function f(t,e){for(var r in e)d(t,r,e[r]);return t}function h(t,e){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],n=window.getComputedStyle(t,null).getPropertyValue(e);return r?parseFloat(n):n}function p(t){return Array.from(t.parentElement.children).filter((function(e){return e!==t}))}function g(t,e){p(t).forEach((function(t){return u(t,e)})),o(t,e)}function v(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"top";i.isMobile||(t.setAttribute("aria-label",e),o(t,"hint--rounded"),o(t,"hint--".concat(r)))}function m(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=t.getBoundingClientRect(),n=window.innerHeight||document.documentElement.clientHeight,i=window.innerWidth||document.documentElement.clientWidth,a=r.top-e<=n&&r.top+r.height+e>=0,s=r.left-e<=i+e&&r.left+r.width+e>=0;return a&&s}function y(t,e){return t.composedPath&&t.composedPath().indexOf(e)>-1}function w(t,e){return e.parentNode.replaceChild(t,e),t}function b(t){return document.createElement(t)}function _(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=b("i");return o(r,"art-icon"),o(r,"art-icon-".concat(t)),c(r,e),r}function B(t,e){var r=document.getElementById(t);if(r)r.textContent=e;else{var n=b("style");n.id=t,n.textContent=e,document.head.appendChild(n)}}},{"./compatibility":"luXC1","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],luXC1:[function(t,e,r){var n=t("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"userAgent",(function(){return i})),n.export(r,"isSafari",(function(){return a})),n.export(r,"isWechat",(function(){return s})),n.export(r,"isIE",(function(){return o})),n.export(r,"isAndroid",(function(){return u})),n.export(r,"isIOS",(function(){return l})),n.export(r,"isIOS13",(function(){return c})),n.export(r,"isMobile",(function(){return A})),n.export(r,"isBrowser",(function(){return d}));var i="undefined"!=typeof navigator?navigator.userAgent:"",a=/^((?!chrome|android).)*safari/i.test(i),s=/MicroMessenger/i.test(i),o=/MSIE|Trident/i.test(i),u=/android/i.test(i),l=/iPad|iPhone|iPod/i.test(i)&&!window.MSStream,c=l||i.includes("Macintosh")&&navigator.maxTouchPoints>=1,A=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(i)||c,d="undefined"!=typeof window},{"@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"2nFlF":[function(t,e,r){var n=t("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"ArtPlayerError",(function(){return i})),n.export(r,"errorHandle",(function(){return a}));var i=function(t){"use strict";g(r,t);var e=C(r);function r(t,n){var i;return f(this,r),i=e.call(this,t),"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(p(i),n||i.constructor),i.name="ArtPlayerError",i}return h(r)}(d(Error));function a(t,e){if(!t)throw new i(e);return t}},{"@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],yqFoT:[function(t,e,r){var n=t("@parcel/transformer-js/src/esmodule-helpers.js");function i(t){return"WEBVTT \r\n\r\n".concat((e=t,e.replace(/(\d\d:\d\d:\d\d)[,.](\d+)/g,(function(t,e,r){var n=r.slice(0,3);return 1===r.length&&(n=r+"00"),2===r.length&&(n=r+"0"),"".concat(e,",").concat(n)}))).replace(/\{\\([ibu])\}/g,"</$1>").replace(/\{\\([ibu])1\}/g,"<$1>").replace(/\{([ibu])\}/g,"<$1>").replace(/\{\/([ibu])\}/g,"</$1>").replace(/(\d\d:\d\d:\d\d),(\d\d\d)/g,"$1.$2").replace(/{[\s\S]*?}/g,"").concat("\r\n\r\n"));var e}function a(t){return URL.createObjectURL(new Blob([t],{type:"text/vtt"}))}function s(t){var e=new RegExp("Dialogue:\\s\\d,(\\d+:\\d\\d:\\d\\d.\\d\\d),(\\d+:\\d\\d:\\d\\d.\\d\\d),([^,]*),([^,]*),(?:[^,]*,){4}([\\s\\S]*)$","i");function r(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return t.split(/[:.]/).map((function(t,e,r){if(e===r.length-1){if(1===t.length)return".".concat(t,"00");if(2===t.length)return".".concat(t,"0")}else if(1===t.length)return(0===e?"0":":0")+t;return 0===e?t:e===r.length-1?".".concat(t):":".concat(t)})).join("")}return"WEBVTT\n\n".concat(t.split(/\r?\n/).map((function(t){var n=t.match(e);return n?{start:r(n[1].trim()),end:r(n[2].trim()),text:n[5].replace(/{[\s\S]*?}/g,"").replace(/(\\N)/g,"\n").trim().split(/\r?\n/).map((function(t){return t.trim()})).join("\n")}:null})).filter((function(t){return t})).map((function(t,e){return t?"".concat(e+1,"\n").concat(t.start," --\x3e ").concat(t.end,"\n").concat(t.text):""})).filter((function(t){return t.trim()})).join("\n\n"))}n.defineInteropFlag(r),n.export(r,"srtToVtt",(function(){return i})),n.export(r,"vttToBlob",(function(){return a})),n.export(r,"assToVtt",(function(){return s}))},{"@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"1VRQn":[function(t,e,r){var n=t("@parcel/transformer-js/src/esmodule-helpers.js");function i(t){return t.includes("?")?i(t.split("?")[0]):t.includes("#")?i(t.split("#")[0]):t.trim().toLowerCase().split(".").pop()}function a(t,e){var r=document.createElement("a");r.style.display="none",r.href=t,r.download=e,document.body.appendChild(r),r.click(),document.body.removeChild(r)}n.defineInteropFlag(r),n.export(r,"getExt",(function(){return i})),n.export(r,"download",(function(){return a}))},{"@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"3weX2":[function(t,e,r){var n=t("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"def",(function(){return i})),n.export(r,"has",(function(){return s})),n.export(r,"get",(function(){return o})),n.export(r,"mergeDeep",(function(){return u}));var i=Object.defineProperty,a=Object.prototype.hasOwnProperty;function s(t,e){return a.call(t,e)}function o(t,e){return Object.getOwnPropertyDescriptor(t,e)}function u(){for(var t=function(t){return t&&"object"==y(t)&&!Array.isArray(t)},e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return r.reduce((function(e,r){return Object.keys(r).forEach((function(n){var i=e[n],a=r[n];Array.isArray(i)&&Array.isArray(a)?e[n]=i.concat.apply(i,A(a)):t(i)&&t(a)?e[n]=u(i,a):e[n]=a})),e}),{})}},{"@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"7kBIx":[function(t,e,r){var n=t("@parcel/transformer-js/src/esmodule-helpers.js");function i(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return new Promise((function(e){return setTimeout(e,t)}))}function a(t,e){var r;return function(){for(var n=this,i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];clearTimeout(r),r=setTimeout((function(){return r=null,t.apply(n,a)}),e)}}function s(t,e){var r=!1;return function(){for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];r||(t.apply(this,i),r=!0,setTimeout((function(){r=!1}),e))}}n.defineInteropFlag(r),n.export(r,"sleep",(function(){return i})),n.export(r,"debounce",(function(){return a})),n.export(r,"throttle",(function(){return s}))},{"@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"13atT":[function(t,e,r){var n=t("@parcel/transformer-js/src/esmodule-helpers.js");function i(t,e,r){return Math.max(Math.min(t,Math.max(e,r)),Math.min(e,r))}function a(t){return t.charAt(0).toUpperCase()+t.slice(1)}function s(t){return["string","number"].includes(y(t))}function o(t){if(!t)return"00:00";var e=Math.floor(t/3600),r=Math.floor((t-3600*e)/60),n=Math.floor(t-3600*e-60*r);return(e>0?[e,r,n]:[r,n]).map((function(t){return t<10?"0".concat(t):String(t)})).join(":")}function u(t){return t.replace(/[&<>'"]/g,(function(t){return{"&":"&amp;","<":"&lt;",">":"&gt;","'":"&#39;",'"':"&quot;"}[t]||t}))}function l(t){var e={"&amp;":"&","&lt;":"<","&gt;":">","&#39;":"'","&quot;":'"'},r=new RegExp("(".concat(Object.keys(e).join("|"),")"),"g");return t.replace(r,(function(t){return e[t]||t}))}n.defineInteropFlag(r),n.export(r,"clamp",(function(){return i})),n.export(r,"capitalize",(function(){return a})),n.export(r,"isStringOrNumber",(function(){return s})),n.export(r,"secondToTime",(function(){return o})),n.export(r,"escape",(function(){return u})),n.export(r,"unescape",(function(){return l}))},{"@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],AdvwB:[function(t,e,r){var n=t("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"ComponentOption",(function(){return d}));var i=t("../utils"),a="array",s="boolean",o="string",u="number",l="object",c="function";function A(t,e,r){return(0,i.errorHandle)(e===o||e===u||t instanceof Element,"".concat(r.join(".")," require '").concat(o,"' or 'Element' type"))}var d={html:A,disable:"?".concat(s),name:"?".concat(o),index:"?".concat(u),style:"?".concat(l),click:"?".concat(c),mounted:"?".concat(c),tooltip:"?".concat(o,"|").concat(u),width:"?".concat(u),selector:"?".concat(a),onSelect:"?".concat(c),switch:"?".concat(s),onSwitch:"?".concat(c),range:"?".concat(a),onRange:"?".concat(c),onChange:"?".concat(c)};r.default={id:o,container:A,url:o,poster:o,type:o,theme:o,lang:o,volume:u,isLive:s,muted:s,autoplay:s,autoSize:s,autoMini:s,loop:s,flip:s,playbackRate:s,aspectRatio:s,screenshot:s,setting:s,hotkey:s,pip:s,mutex:s,backdrop:s,fullscreen:s,fullscreenWeb:s,subtitleOffset:s,miniProgressBar:s,useSSR:s,playsInline:s,lock:s,fastForward:s,autoPlayback:s,autoOrientation:s,airplay:s,plugins:[c],layers:[d],contextmenu:[d],settings:[d],controls:[B(B({},d),{},{position:function(t,e,r){var n=["top","left","right"];return(0,i.errorHandle)(n.includes(t),"".concat(r.join(".")," only accept ").concat(n.toString()," as parameters"))}})],quality:[{default:"?".concat(s),html:o,url:o}],highlight:[{time:u,text:o}],thumbnails:{url:o,number:u,column:u,width:u,height:u},subtitle:{url:o,name:o,type:o,style:l,escape:s,encoding:o,onVttLoad:c},moreVideoAttr:l,i18n:l,icons:l,cssVar:l,customType:l}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"9Xmqu":[function(t,e,r){t("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r),r.default={propertys:["audioTracks","autoplay","buffered","controller","controls","crossOrigin","currentSrc","currentTime","defaultMuted","defaultPlaybackRate","duration","ended","error","loop","mediaGroup","muted","networkState","paused","playbackRate","played","preload","readyState","seekable","seeking","src","startDate","textTracks","videoTracks","volume"],methods:["addTextTrack","canPlayType","load","play","pause"],events:["abort","canplay","canplaythrough","durationchange","emptied","ended","error","loadeddata","loadedmetadata","loadstart","pause","play","playing","progress","ratechange","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting"],prototypes:["width","height","videoWidth","videoHeight","poster","webkitDecodedFrameCount","webkitDroppedFrameCount","playsInline","webkitSupportsFullscreen","webkitDisplayingFullscreen","onenterpictureinpicture","onleavepictureinpicture","disablePictureInPicture","cancelVideoFrameCallback","requestVideoFrameCallback","getVideoPlaybackQuality","requestPictureInPicture","webkitEnterFullScreen","webkitEnterFullscreen","webkitExitFullScreen","webkitExitFullscreen"]}},{"@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"2gKYH":[function(t,e,r){t("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=t("./utils"),i=function(){"use strict";function t(e){var r=this;f(this,t),this.art=e;var i=e.option,a=e.constructor;i.container instanceof Element?this.$container=i.container:(this.$container=(0,n.query)(i.container),(0,n.errorHandle)(this.$container,"No container element found by ".concat(i.container)));var s=this.$container.tagName.toLowerCase();(0,n.errorHandle)("div"===s,"Unsupported container element type, only support 'div' but got '".concat(s,"'")),(0,n.errorHandle)(a.instances.every((function(t){return t.template.$container!==r.$container})),"Cannot mount multiple instances on the same dom element"),this.query=this.query.bind(this),this.$container.dataset.artId=e.id,this.init()}return h(t,[{key:"query",value:function(t){return(0,n.query)(t,this.$container)}},{key:"init",value:function(){var e=this.art.option;e.useSSR||(this.$container.innerHTML=t.html),this.$player=this.query(".art-video-player"),this.$video=this.query(".art-video"),this.$track=this.query("track"),this.$poster=this.query(".art-poster"),this.$subtitle=this.query(".art-subtitle"),this.$danmuku=this.query(".art-danmuku"),this.$bottom=this.query(".art-bottom"),this.$progress=this.query(".art-progress"),this.$controls=this.query(".art-controls"),this.$controlsLeft=this.query(".art-controls-left"),this.$controlsCenter=this.query(".art-controls-center"),this.$controlsRight=this.query(".art-controls-right"),this.$layer=this.query(".art-layers"),this.$loading=this.query(".art-loading"),this.$notice=this.query(".art-notice"),this.$noticeInner=this.query(".art-notice-inner"),this.$mask=this.query(".art-mask"),this.$state=this.query(".art-state"),this.$setting=this.query(".art-settings"),this.$info=this.query(".art-info"),this.$infoPanel=this.query(".art-info-panel"),this.$infoClose=this.query(".art-info-close"),this.$contextmenu=this.query(".art-contextmenus"),e.backdrop&&(0,n.addClass)(this.$player,"art-backdrop"),n.isMobile&&(0,n.addClass)(this.$player,"art-mobile")}},{key:"destroy",value:function(t){t?this.$container.innerHTML="":(0,n.addClass)(this.$player,"art-destroy")}}],[{key:"html",get:function(){return'<div class="art-video-player art-subtitle-show art-layer-show art-control-show art-mask-show"><video class="art-video"><track default kind="metadata" src=""></track></video><div class="art-poster"></div><div class="art-subtitle"></div><div class="art-danmuku"></div><div class="art-layers"></div><div class="art-mask"><div class="art-state"></div></div><div class="art-bottom"><div class="art-progress"></div><div class="art-controls"><div class="art-controls-left"></div><div class="art-controls-center"></div><div class="art-controls-right"></div></div></div><div class="art-loading"></div><div class="art-notice"><div class="art-notice-inner"></div></div><div class="art-settings"></div><div class="art-info"><div class="art-info-panel"><div class="art-info-item"><div class="art-info-title">Player version:</div><div class="art-info-content">5.1.1</div></div><div class="art-info-item"><div class="art-info-title">Video url:</div><div class="art-info-content" data-video="src"></div></div><div class="art-info-item"><div class="art-info-title">Video volume:</div><div class="art-info-content" data-video="volume"></div></div><div class="art-info-item"><div class="art-info-title">Video time:</div><div class="art-info-content" data-video="currentTime"></div></div><div class="art-info-item"><div class="art-info-title">Video duration:</div><div class="art-info-content" data-video="duration"></div></div><div class="art-info-item"><div class="art-info-title">Video resolution:</div><div class="art-info-content"><span data-video="videoWidth"></span> x <span data-video="videoHeight"></span></div></div></div><div class="art-info-close">[x]</div></div><div class="art-contextmenus"></div></div>'}}]),t}();r.default=i},{"./utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"1AdeF":[function(t,e,r){var n=t("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var i=t("../utils"),a=t("./zh-cn"),s=n.interopDefault(a);r.default=function(){"use strict";function t(e){f(this,t),this.art=e,this.languages={"zh-cn":s.default},this.language={},this.update(e.option.i18n)}return h(t,[{key:"init",value:function(){var t=this.art.option.lang.toLowerCase();this.language=this.languages[t]||{}}},{key:"get",value:function(t){return this.language[t]||t}},{key:"update",value:function(t){this.languages=(0,i.mergeDeep)(this.languages,t),this.init()}}]),t}()},{"../utils":"h3rH9","./zh-cn":"3ZSKq","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"3ZSKq":[function(t,e,r){t("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n={"Video Info":"\u7edf\u8ba1\u4fe1\u606f",Close:"\u5173\u95ed","Video Load Failed":"\u52a0\u8f7d\u5931\u8d25",Volume:"\u97f3\u91cf",Play:"\u64ad\u653e",Pause:"\u6682\u505c",Rate:"\u901f\u5ea6",Mute:"\u9759\u97f3","Video Flip":"\u753b\u9762\u7ffb\u8f6c",Horizontal:"\u6c34\u5e73",Vertical:"\u5782\u76f4",Reconnect:"\u91cd\u65b0\u8fde\u63a5","Show Setting":"\u663e\u793a\u8bbe\u7f6e","Hide Setting":"\u9690\u85cf\u8bbe\u7f6e",Screenshot:"\u622a\u56fe","Play Speed":"\u64ad\u653e\u901f\u5ea6","Aspect Ratio":"\u753b\u9762\u6bd4\u4f8b",Default:"\u9ed8\u8ba4",Normal:"\u6b63\u5e38",Open:"\u6253\u5f00","Switch Video":"\u5207\u6362","Switch Subtitle":"\u5207\u6362\u5b57\u5e55",Fullscreen:"\u5168\u5c4f","Exit Fullscreen":"\u9000\u51fa\u5168\u5c4f","Web Fullscreen":"\u7f51\u9875\u5168\u5c4f","Exit Web Fullscreen":"\u9000\u51fa\u7f51\u9875\u5168\u5c4f","Mini Player":"\u8ff7\u4f60\u64ad\u653e\u5668","PIP Mode":"\u5f00\u542f\u753b\u4e2d\u753b","Exit PIP Mode":"\u9000\u51fa\u753b\u4e2d\u753b","PIP Not Supported":"\u4e0d\u652f\u6301\u753b\u4e2d\u753b","Fullscreen Not Supported":"\u4e0d\u652f\u6301\u5168\u5c4f","Subtitle Offset":"\u5b57\u5e55\u504f\u79fb","Last Seen":"\u4e0a\u6b21\u770b\u5230","Jump Play":"\u8df3\u8f6c\u64ad\u653e",AirPlay:"\u9694\u7a7a\u64ad\u653e","AirPlay Not Available":"\u9694\u7a7a\u64ad\u653e\u4e0d\u53ef\u7528"};r.default=n,"undefined"!=typeof window&&(window["artplayer-i18n-zh-cn"]=n)},{"@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"556MW":[function(t,e,r){var n=t("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var i=t("./urlMix"),a=n.interopDefault(i),s=t("./attrMix"),o=n.interopDefault(s),u=t("./playMix"),l=n.interopDefault(u),c=t("./pauseMix"),A=n.interopDefault(c),d=t("./toggleMix"),p=n.interopDefault(d),g=t("./seekMix"),v=n.interopDefault(g),m=t("./volumeMix"),y=n.interopDefault(m),w=t("./currentTimeMix"),b=n.interopDefault(w),_=t("./durationMix"),B=n.interopDefault(_),C=t("./switchMix"),E=n.interopDefault(C),x=t("./playbackRateMix"),T=n.interopDefault(x),S=t("./aspectRatioMix"),k=n.interopDefault(S),I=t("./screenshotMix"),F=n.interopDefault(I),L=t("./fullscreenMix"),D=n.interopDefault(L),R=t("./fullscreenWebMix"),U=n.interopDefault(R),O=t("./pipMix"),P=n.interopDefault(O),M=t("./loadedMix"),Q=n.interopDefault(M),N=t("./playedMix"),H=n.interopDefault(N),$=t("./playingMix"),j=n.interopDefault($),K=t("./autoSizeMix"),G=n.interopDefault(K),V=t("./rectMix"),W=n.interopDefault(V),z=t("./flipMix"),Y=n.interopDefault(z),q=t("./miniMix"),X=n.interopDefault(q),J=t("./posterMix"),Z=n.interopDefault(J),tt=t("./autoHeightMix"),et=n.interopDefault(tt),rt=t("./cssVarMix"),nt=n.interopDefault(rt),it=t("./themeMix"),at=n.interopDefault(it),st=t("./typeMix"),ot=n.interopDefault(st),ut=t("./stateMix"),lt=n.interopDefault(ut),ct=t("./subtitleOffsetMix"),At=n.interopDefault(ct),dt=t("./airplayMix"),ft=n.interopDefault(dt),ht=t("./qualityMix"),pt=n.interopDefault(ht),gt=t("./optionInit"),vt=n.interopDefault(gt),mt=t("./eventInit"),yt=n.interopDefault(mt);r.default=function(){"use strict";return h((function t(e){f(this,t),(0,a.default)(e),(0,o.default)(e),(0,l.default)(e),(0,A.default)(e),(0,p.default)(e),(0,v.default)(e),(0,y.default)(e),(0,b.default)(e),(0,B.default)(e),(0,E.default)(e),(0,T.default)(e),(0,k.default)(e),(0,F.default)(e),(0,D.default)(e),(0,U.default)(e),(0,P.default)(e),(0,Q.default)(e),(0,H.default)(e),(0,j.default)(e),(0,G.default)(e),(0,W.default)(e),(0,Y.default)(e),(0,X.default)(e),(0,Z.default)(e),(0,et.default)(e),(0,nt.default)(e),(0,at.default)(e),(0,ot.default)(e),(0,lt.default)(e),(0,At.default)(e),(0,ft.default)(e),(0,pt.default)(e),(0,yt.default)(e),(0,vt.default)(e)}))}()},{"./urlMix":"2mRAc","./attrMix":"2EA19","./playMix":"fD2Tc","./pauseMix":"c3LGJ","./toggleMix":"fVsAa","./seekMix":"dmROF","./volumeMix":"9jtfB","./currentTimeMix":"7NCDR","./durationMix":"YS7JL","./switchMix":"dzUqN","./playbackRateMix":"5I2mT","./aspectRatioMix":"7m6R8","./screenshotMix":"2dgtR","./fullscreenMix":"fKDW8","./fullscreenWebMix":"lNvYI","./pipMix":"8j7oC","./loadedMix":"dwVOT","./playedMix":"dDeLx","./playingMix":"ceoBp","./autoSizeMix":"lcWXX","./rectMix":"f7y88","./flipMix":"l4qt5","./miniMix":"9ZPBQ","./posterMix":"5K8hA","./autoHeightMix":"3T5ls","./cssVarMix":"6KfHs","./themeMix":"7lcSc","./typeMix":"8JgTw","./stateMix":"cebt1","./subtitleOffsetMix":"hJvIy","./airplayMix":"4Tp0U","./qualityMix":"3wZgN","./optionInit":"iPdgW","./eventInit":"3mj0J","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"2mRAc":[function(t,e,r){t("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=t("../utils");r.default=function(t){var e=t.option,r=t.template.$video;(0,n.def)(t,"url",{get:function(){return r.src},set:function(i){return l(u.mark((function a(){var s,o,l;return u.wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(!i){a.next=13;break}if(s=t.url,o=e.type||(0,n.getExt)(i),l=e.customType[o],!o||!l){a.next=9;break}return a.next=5,(0,n.sleep)();case 5:t.loading.show=!0,l.call(t,r,i,t),a.next=10;break;case 9:URL.revokeObjectURL(s),r.src=i;case 10:s!==t.url&&(t.option.url=i,t.isReady&&s&&t.once("video:canplay",(function(){t.emit("restart",i)}))),a.next=16;break;case 13:return a.next=15,(0,n.sleep)();case 15:t.loading.show=!0;case 16:case"end":return a.stop()}}),a)})))()}})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"2EA19":[function(t,e,r){t("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=t("../utils");r.default=function(t){var e=t.template.$video;(0,n.def)(t,"attr",{value:function(t,r){if(void 0===r)return e[t];e[t]=r}})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],fD2Tc:[function(t,e,r){t("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=t("../utils");r.default=function(t){var e=t.i18n,r=t.notice,i=t.option,a=t.constructor.instances,s=t.template.$video;(0,n.def)(t,"play",{value:function(){var n=l(u.mark((function n(){var o,l,c;return u.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,s.play();case 2:if(o=n.sent,r.show=e.get("Play"),t.emit("play"),i.mutex)for(l=0;l<a.length;l++)c=a[l],c!==t&&c.pause();return n.abrupt("return",o);case 5:case"end":return n.stop()}}),n)})));return function(){return n.apply(this,arguments)}}()})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],c3LGJ:[function(t,e,r){t("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=t("../utils");r.default=function(t){var e=t.template.$video,r=t.i18n,i=t.notice;(0,n.def)(t,"pause",{value:function(){var n=e.pause();return i.show=r.get("Pause"),t.emit("pause"),n}})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],fVsAa:[function(t,e,r){t("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=t("../utils");r.default=function(t){(0,n.def)(t,"toggle",{value:function(){return t.playing?t.pause():t.play()}})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],dmROF:[function(t,e,r){t("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=t("../utils");r.default=function(t){var e=t.notice;(0,n.def)(t,"seek",{set:function(r){t.currentTime=r,t.emit("seek",t.currentTime),t.duration&&(e.show="".concat((0,n.secondToTime)(t.currentTime)," / ").concat((0,n.secondToTime)(t.duration)))}}),(0,n.def)(t,"forward",{set:function(e){t.seek=t.currentTime+e}}),(0,n.def)(t,"backward",{set:function(e){t.seek=t.currentTime-e}})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"9jtfB":[function(t,e,r){t("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=t("../utils");r.default=function(t){var e=t.template.$video,r=t.i18n,i=t.notice,a=t.storage;(0,n.def)(t,"volume",{get:function(){return e.volume||0},set:function(t){e.volume=(0,n.clamp)(t,0,1),i.show="".concat(r.get("Volume"),": ").concat(parseInt(100*e.volume,10)),0!==e.volume&&a.set("volume",e.volume)}}),(0,n.def)(t,"muted",{get:function(){return e.muted},set:function(r){e.muted=r,t.emit("muted",r)}})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"7NCDR":[function(t,e,r){t("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=t("../utils");r.default=function(t){var e=t.template.$video;(0,n.def)(t,"currentTime",{get:function(){return e.currentTime||0},set:function(r){r=parseFloat(r),Number.isNaN(r)||(e.currentTime=(0,n.clamp)(r,0,t.duration))}})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],YS7JL:[function(t,e,r){t("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=t("../utils");r.default=function(t){(0,n.def)(t,"duration",{get:function(){var e=t.template.$video.duration;return e===1/0?0:e||0}})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],dzUqN:[function(t,e,r){t("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=t("../utils");r.default=function(t){function e(e,r){return new Promise((function(n,i){if(e!==t.url){var a=t.playing,s=t.aspectRatio,o=t.playbackRate;t.pause(),t.url=e,t.notice.show="",t.once("video:error",i),t.once("video:canplay",l(u.mark((function e(){return u.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t.playbackRate=o,t.aspectRatio=s,t.currentTime=r,e.t0=a,!e.t0){e.next=7;break}return e.next=7,t.play();case 7:t.notice.show="",n();case 9:case"end":return e.stop()}}),e)}))))}}))}(0,n.def)(t,"switchQuality",{value:function(r){return e(r,t.currentTime)}}),(0,n.def)(t,"switchUrl",{value:function(t){return e(t,0)}}),(0,n.def)(t,"switch",{set:t.switchUrl})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"5I2mT":[function(t,e,r){t("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=t("../utils");r.default=function(t){var e=t.template.$video,r=t.i18n,i=t.notice;(0,n.def)(t,"playbackRate",{get:function(){return e.playbackRate},set:function(n){if(n){if(n===e.playbackRate)return;e.playbackRate=n,i.show="".concat(r.get("Rate"),": ").concat(1===n?r.get("Normal"):"".concat(n,"x"))}else t.playbackRate=1}})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"7m6R8":[function(t,e,r){t("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=t("../utils");r.default=function(t){var e=t.i18n,r=t.notice,i=t.template,a=i.$video,s=i.$player;(0,n.def)(t,"aspectRatio",{get:function(){return s.dataset.aspectRatio||"default"},set:function(i){if(i||(i="default"),"default"===i)(0,n.setStyle)(a,"width",null),(0,n.setStyle)(a,"height",null),(0,n.setStyle)(a,"margin",null),delete s.dataset.aspectRatio;else{var o=i.split(":").map(Number),u=s.clientWidth,l=s.clientHeight,c=u/l,A=o[0]/o[1];c>A?((0,n.setStyle)(a,"width",A*l+"px"),(0,n.setStyle)(a,"height","100%"),(0,n.setStyle)(a,"margin","0 auto")):((0,n.setStyle)(a,"width","100%"),(0,n.setStyle)(a,"height",u/A+"px"),(0,n.setStyle)(a,"margin","auto 0")),s.dataset.aspectRatio=i}r.show="".concat(e.get("Aspect Ratio"),": ").concat("default"===i?e.get("Default"):i),t.emit("aspectRatio",i)}})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"2dgtR":[function(t,e,r){t("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=t("../utils");r.default=function(t){var e=t.notice,r=t.template.$video,i=(0,n.createElement)("canvas");(0,n.def)(t,"getDataURL",{value:function(){return new Promise((function(t,n){try{i.width=r.videoWidth,i.height=r.videoHeight,i.getContext("2d").drawImage(r,0,0),t(i.toDataURL("image/png"))}catch(t){e.show=t,n(t)}}))}}),(0,n.def)(t,"getBlobUrl",{value:function(){return new Promise((function(t,n){try{i.width=r.videoWidth,i.height=r.videoHeight,i.getContext("2d").drawImage(r,0,0),i.toBlob((function(e){t(URL.createObjectURL(e))}))}catch(t){e.show=t,n(t)}}))}}),(0,n.def)(t,"screenshot",{value:function(){var e=l(u.mark((function e(){var i;return u.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.getDataURL();case 2:return i=e.sent,e.abrupt("return",((0,n.download)(i,"artplayer_".concat((0,n.secondToTime)(r.currentTime),".png")),t.emit("screenshot",i),i));case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],fKDW8:[function(t,e,r){var n=t("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var i=t("../libs/screenfull"),a=n.interopDefault(i),s=t("../utils");r.default=function(t){var e=t.i18n,r=t.notice,n=t.template,i=n.$video,o=n.$player;t.once("video:loadedmetadata",(function(){a.default.isEnabled?function(t){a.default.on("change",(function(){t.emit("fullscreen",a.default.isFullscreen)})),(0,s.def)(t,"fullscreen",{get:function(){return a.default.isFullscreen},set:function(e){return l(u.mark((function r(){return u.wrap((function(r){while(1)switch(r.prev=r.next){case 0:if(!e){r.next=7;break}return t.state="fullscreen",r.next=4,a.default.request(o);case 4:(0,s.addClass)(o,"art-fullscreen"),r.next=10;break;case 7:return r.next=9,a.default.exit();case 9:(0,s.removeClass)(o,"art-fullscreen");case 10:t.emit("resize");case 11:case"end":return r.stop()}}),r)})))()}})}(t):document.fullscreenEnabled||i.webkitSupportsFullscreen?function(t){(0,s.def)(t,"fullscreen",{get:function(){return i.webkitDisplayingFullscreen},set:function(e){e?(t.state="fullscreen",i.webkitEnterFullscreen(),t.emit("fullscreen",!0)):(i.webkitExitFullscreen(),t.emit("fullscreen",!1)),t.emit("resize")}})}(t):(0,s.def)(t,"fullscreen",{get:function(){return!1},set:function(){r.show=e.get("Fullscreen Not Supported")}}),(0,s.def)(t,"fullscreen",(0,s.get)(t,"fullscreen"))}))}},{"../libs/screenfull":"lUahW","../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],lUahW:[function(t,e,r){t("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],i=function(){if("undefined"==typeof document)return!1;var t,e=n[0],r={},i=w(n);try{for(i.s();!(t=i.n()).done;){var a=t.value;if(a[1]in document){var s,u=w(a.entries());try{for(u.s();!(s=u.n()).done;){var l=o(s.value,2),c=l[0],A=l[1];r[e[c]]=A}}catch(d){u.e(d)}finally{u.f()}return r}}}catch(d){i.e(d)}finally{i.f()}return!1}(),a={change:i.fullscreenchange,error:i.fullscreenerror},s={request:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.documentElement,e=arguments.length>1?arguments[1]:void 0;return new Promise((function(r,n){var a=function t(){s.off("change",t),r()};s.on("change",a);var o=t[i.requestFullscreen](e);o instanceof Promise&&o.then(a).catch(n)}))},exit:function(){return new Promise((function(t,e){if(s.isFullscreen){var r=function e(){s.off("change",e),t()};s.on("change",r);var n=document[i.exitFullscreen]();n instanceof Promise&&n.then(r).catch(e)}else t()}))},toggle:function(t,e){return s.isFullscreen?s.exit():s.request(t,e)},onchange:function(t){s.on("change",t)},onerror:function(t){s.on("error",t)},on:function(t,e){var r=a[t];r&&document.addEventListener(r,e,!1)},off:function(t,e){var r=a[t];r&&document.removeEventListener(r,e,!1)},raw:i};Object.defineProperties(s,{isFullscreen:{get:function(){return Boolean(document[i.fullscreenElement])}},element:{enumerable:!0,get:function(){return document[i.fullscreenElement]}},isEnabled:{enumerable:!0,get:function(){return Boolean(document[i.fullscreenEnabled])}}}),i||(s={isEnabled:!1}),r.default=s},{"@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],lNvYI:[function(t,e,r){t("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=t("../utils");r.default=function(t){var e=t.constructor,r=t.template,i=r.$container,a=r.$player,s="";(0,n.def)(t,"fullscreenWeb",{get:function(){return(0,n.hasClass)(a,"art-fullscreen-web")},set:function(r){r?(s=a.style.cssText,e.FULLSCREEN_WEB_IN_BODY&&(0,n.append)(document.body,a),t.state="fullscreenWeb",(0,n.setStyle)(a,"width","100%"),(0,n.setStyle)(a,"height","100%"),(0,n.addClass)(a,"art-fullscreen-web"),t.emit("fullscreenWeb",!0)):(e.FULLSCREEN_WEB_IN_BODY&&(0,n.append)(i,a),s&&(a.style.cssText=s,s=""),(0,n.removeClass)(a,"art-fullscreen-web"),t.emit("fullscreenWeb",!1)),t.emit("resize")}})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"8j7oC":[function(t,e,r){t("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=t("../utils");r.default=function(t){var e=t.i18n,r=t.notice,i=t.template.$video;document.pictureInPictureEnabled?function(t){var e=t.template.$video,r=t.proxy,i=t.notice;e.disablePictureInPicture=!1,(0,n.def)(t,"pip",{get:function(){return document.pictureInPictureElement},set:function(r){r?(t.state="pip",e.requestPictureInPicture().catch((function(t){throw i.show=t,t}))):document.exitPictureInPicture().catch((function(t){throw i.show=t,t}))}}),r(e,"enterpictureinpicture",(function(){t.emit("pip",!0)})),r(e,"leavepictureinpicture",(function(){t.emit("pip",!1)}))}(t):i.webkitSupportsPresentationMode?function(t){var e=t.template.$video;e.webkitSetPresentationMode("inline"),(0,n.def)(t,"pip",{get:function(){return"picture-in-picture"===e.webkitPresentationMode},set:function(r){r?(t.state="pip",e.webkitSetPresentationMode("picture-in-picture"),t.emit("pip",!0)):(e.webkitSetPresentationMode("inline"),t.emit("pip",!1))}})}(t):(0,n.def)(t,"pip",{get:function(){return!1},set:function(){r.show=e.get("PIP Not Supported")}})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],dwVOT:[function(t,e,r){t("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=t("../utils");r.default=function(t){var e=t.template.$video;(0,n.def)(t,"loaded",{get:function(){return t.loadedTime/e.duration}}),(0,n.def)(t,"loadedTime",{get:function(){return e.buffered.length?e.buffered.end(e.buffered.length-1):0}})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],dDeLx:[function(t,e,r){t("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=t("../utils");r.default=function(t){(0,n.def)(t,"played",{get:function(){return t.currentTime/t.duration}})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],ceoBp:[function(t,e,r){t("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=t("../utils");r.default=function(t){var e=t.template.$video;(0,n.def)(t,"playing",{get:function(){return!!(e.currentTime>0&&!e.paused&&!e.ended&&e.readyState>2)}})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],lcWXX:[function(t,e,r){t("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=t("../utils");r.default=function(t){var e=t.template,r=e.$container,i=e.$player,a=e.$video;(0,n.def)(t,"autoSize",{value:function(){var e=a.videoWidth,s=a.videoHeight,o=r.getBoundingClientRect(),u=o.width,l=o.height,c=e/s;if(u/l>c){var A=l*c/u*100;(0,n.setStyle)(i,"width","".concat(A,"%")),(0,n.setStyle)(i,"height","100%")}else{var d=u/c/l*100;(0,n.setStyle)(i,"width","100%"),(0,n.setStyle)(i,"height","".concat(d,"%"))}t.emit("autoSize",{width:t.width,height:t.height})}})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],f7y88:[function(t,e,r){t("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=t("../utils");r.default=function(t){(0,n.def)(t,"rect",{get:function(){return t.template.$player.getBoundingClientRect()}});for(var e=["bottom","height","left","right","top","width"],r=function(r){var i=e[r];(0,n.def)(t,i,{get:function(){return t.rect[i]}})},i=0;i<e.length;i++)r(i);(0,n.def)(t,"x",{get:function(){return t.left+window.pageXOffset}}),(0,n.def)(t,"y",{get:function(){return t.top+window.pageYOffset}})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],l4qt5:[function(t,e,r){t("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=t("../utils");r.default=function(t){var e=t.template.$player,r=t.i18n,i=t.notice;(0,n.def)(t,"flip",{get:function(){return e.dataset.flip||"normal"},set:function(a){a||(a="normal"),"normal"===a?delete e.dataset.flip:e.dataset.flip=a,i.show="".concat(r.get("Video Flip"),": ").concat(r.get((0,n.capitalize)(a))),t.emit("flip",a)}})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"9ZPBQ":[function(t,e,r){t("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=t("../utils");r.default=function(t){var e=t.icons,r=t.proxy,i=t.storage,a=t.template,s=a.$player,o=a.$video,u=!1,l=0,c=0;function A(){var e=t.template.$mini;e&&((0,n.removeClass)(s,"art-mini"),(0,n.setStyle)(e,"display","none"),s.prepend(o),t.emit("mini",!1))}function d(e,r){t.playing?((0,n.setStyle)(e,"display","none"),(0,n.setStyle)(r,"display","flex")):((0,n.setStyle)(e,"display","flex"),(0,n.setStyle)(r,"display","none"))}function f(){var e=t.template.$mini,r=e.getBoundingClientRect(),a=window.innerHeight-r.height-50,s=window.innerWidth-r.width-50;i.set("top",a),i.set("left",s),(0,n.setStyle)(e,"top","".concat(a,"px")),(0,n.setStyle)(e,"left","".concat(s,"px"))}(0,n.def)(t,"mini",{get:function(){return(0,n.hasClass)(s,"art-mini")},set:function(a){if(a){t.state="mini",(0,n.addClass)(s,"art-mini");var h=function(){var a=t.template.$mini;if(a)return(0,n.append)(a,o),(0,n.setStyle)(a,"display","flex");var s=(0,n.createElement)("div");(0,n.addClass)(s,"art-mini-popup"),(0,n.append)(document.body,s),t.template.$mini=s,(0,n.append)(s,o);var f=(0,n.append)(s,'<div class="art-mini-close"></div>');(0,n.append)(f,e.close),r(f,"click",A);var h=(0,n.append)(s,'<div class="art-mini-state"></div>'),p=(0,n.append)(h,e.play),g=(0,n.append)(h,e.pause);return r(p,"click",(function(){return t.play()})),r(g,"click",(function(){return t.pause()})),d(p,g),t.on("video:playing",(function(){return d(p,g)})),t.on("video:pause",(function(){return d(p,g)})),t.on("video:timeupdate",(function(){return d(p,g)})),r(s,"mousedown",(function(t){u=0===t.button,l=t.pageX,c=t.pageY})),t.on("document:mousemove",(function(t){if(u){(0,n.addClass)(s,"art-mini-droging");var e=t.pageX-l,r=t.pageY-c;(0,n.setStyle)(s,"transform","translate(".concat(e,"px, ").concat(r,"px)"))}})),t.on("document:mouseup",(function(){if(u){u=!1,(0,n.removeClass)(s,"art-mini-droging");var t=s.getBoundingClientRect();i.set("left",t.left),i.set("top",t.top),(0,n.setStyle)(s,"left","".concat(t.left,"px")),(0,n.setStyle)(s,"top","".concat(t.top,"px")),(0,n.setStyle)(s,"transform",null)}})),s}(),p=i.get("top"),g=i.get("left");p&&g?((0,n.setStyle)(h,"top","".concat(p,"px")),(0,n.setStyle)(h,"left","".concat(g,"px")),(0,n.isInViewport)(h)||f()):f(),t.emit("mini",!0)}else A()}})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"5K8hA":[function(t,e,r){t("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=t("../utils");r.default=function(t){var e=t.template.$poster;(0,n.def)(t,"poster",{get:function(){try{return e.style.backgroundImage.match(/"(.*)"/)[1]}catch(t){return""}},set:function(t){(0,n.setStyle)(e,"backgroundImage","url(".concat(t,")"))}})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"3T5ls":[function(t,e,r){t("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=t("../utils");r.default=function(t){var e=t.template,r=e.$container,i=e.$video;(0,n.def)(t,"autoHeight",{value:function(){var e=r.clientWidth,a=i.videoHeight,s=i.videoWidth,o=a*(e/s);(0,n.setStyle)(r,"height",o+"px"),t.emit("autoHeight",o)}})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"6KfHs":[function(t,e,r){t("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=t("../utils");r.default=function(t){var e=t.template.$player;(0,n.def)(t,"cssVar",{value:function(t,r){return r?e.style.setProperty(t,r):getComputedStyle(e).getPropertyValue(t)}})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"7lcSc":[function(t,e,r){t("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=t("../utils");r.default=function(t){(0,n.def)(t,"theme",{get:function(){return t.cssVar("--art-theme")},set:function(e){t.cssVar("--art-theme",e)}})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"8JgTw":[function(t,e,r){t("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=t("../utils");r.default=function(t){(0,n.def)(t,"type",{get:function(){return t.option.type},set:function(e){t.option.type=e}})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],cebt1:[function(t,e,r){t("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=t("../utils");r.default=function(t){var e=["mini","pip","fullscreen","fullscreenWeb"];(0,n.def)(t,"state",{get:function(){return e.find((function(e){return t[e]}))||"standard"},set:function(r){for(var n=0;n<e.length;n++){var i=e[n];i!==r&&t[i]&&(t[i]=!1)}}})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],hJvIy:[function(t,e,r){t("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=t("../utils");r.default=function(t){var e=t.constructor.utils.clamp,r=t.notice,i=t.template,a=t.i18n,s=0,o=[];t.on("subtitle:switch",(function(){o=[]})),(0,n.def)(t,"subtitleOffset",{get:function(){return s},set:function(n){if(i.$track&&i.$track.track){var u=Array.from(i.$track.track.cues);s=e(n,-5,5);for(var l=0;l<u.length;l++){var c=u[l];o[l]||(o[l]={startTime:c.startTime,endTime:c.endTime}),c.startTime=e(o[l].startTime+s,0,t.duration),c.endTime=e(o[l].endTime+s,0,t.duration)}t.subtitle.update(),r.show="".concat(a.get("Subtitle Offset"),": ").concat(n,"s"),t.emit("subtitleOffset",n)}else t.emit("subtitleOffset",0)}})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"4Tp0U":[function(t,e,r){t("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=t("../utils");r.default=function(t){var e=t.i18n,r=t.notice,i=t.proxy,a=t.template.$video,s=!0;window.WebKitPlaybackTargetAvailabilityEvent&&a.webkitShowPlaybackTargetPicker?i(a,"webkitplaybacktargetavailabilitychanged",(function(t){switch(t.availability){case"available":s=!0;break;case"not-available":s=!1}})):s=!1,(0,n.def)(t,"airplay",{value:function(){s?(a.webkitShowPlaybackTargetPicker(),t.emit("airplay")):r.show=e.get("AirPlay Not Available")}})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"3wZgN":[function(t,e,r){t("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=t("../utils");r.default=function(t){(0,n.def)(t,"quality",{set:function(e){var r=t.controls,n=t.notice,i=t.i18n,a=e.find((function(t){return t.default}))||e[0];r.update({name:"quality",position:"right",index:10,style:{marginRight:"10px"},html:a?a.html:"",selector:e,onSelect:function(e){return l(u.mark((function r(){return u.wrap((function(r){while(1)switch(r.prev=r.next){case 0:return r.next=2,t.switchQuality(e.url);case 2:n.show="".concat(i.get("Switch Video"),": ").concat(e.html);case 3:case"end":return r.stop()}}),r)})))()}})}})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],iPdgW:[function(t,e,r){t("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=t("../utils");r.default=function(t){var e=t.option,r=t.storage,i=t.template,a=i.$video,s=i.$poster;for(var o in e.moreVideoAttr)t.attr(o,e.moreVideoAttr[o]);e.muted&&(t.muted=e.muted),e.volume&&(a.volume=(0,n.clamp)(e.volume,0,1));var u=r.get("volume");for(var l in"number"==typeof u&&(a.volume=(0,n.clamp)(u,0,1)),e.poster&&(0,n.setStyle)(s,"backgroundImage","url(".concat(e.poster,")")),e.autoplay&&(a.autoplay=e.autoplay),e.playsInline&&(a.playsInline=!0,a["webkit-playsinline"]=!0),e.theme&&(e.cssVar["--art-theme"]=e.theme),e.cssVar)t.cssVar(l,e.cssVar[l]);t.url=e.url}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"3mj0J":[function(t,e,r){var n=t("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var i=t("../config"),a=n.interopDefault(i),s=t("../utils");r.default=function(t){for(var e=t.i18n,r=t.notice,n=t.option,i=t.constructor,o=t.proxy,c=t.template,A=c.$player,d=c.$video,f=c.$poster,h=0,p=0;p<a.default.events.length;p++)o(d,a.default.events[p],(function(e){t.emit("video:".concat(e.type),e)}));t.on("video:canplay",(function(){h=0,t.loading.show=!1})),t.once("video:canplay",(function(){t.loading.show=!1,t.controls.show=!0,t.mask.show=!0,t.isReady=!0,t.emit("ready")})),t.on("video:ended",(function(){n.loop?(t.seek=0,t.play(),t.controls.show=!1,t.mask.show=!1):(t.controls.show=!0,t.mask.show=!0)})),t.on("video:error",function(){var a=l(u.mark((function a(o){return u.wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(!(h<i.RECONNECT_TIME_MAX)){a.next=9;break}return a.next=3,(0,s.sleep)(i.RECONNECT_SLEEP_TIME);case 3:h+=1,t.url=n.url,r.show="".concat(e.get("Reconnect"),": ").concat(h),t.emit("error",o,h),a.next=16;break;case 9:return t.mask.show=!0,t.loading.show=!1,t.controls.show=!0,(0,s.addClass)(A,"art-error"),a.next=15,(0,s.sleep)(i.RECONNECT_SLEEP_TIME);case 15:r.show=e.get("Video Load Failed");case 16:case"end":return a.stop()}}),a)})));return function(t){return a.apply(this,arguments)}}()),t.on("video:loadedmetadata",(function(){t.emit("resize"),s.isMobile&&(t.loading.show=!1,t.controls.show=!0,t.mask.show=!0)})),t.on("video:loadstart",(function(){t.loading.show=!0,t.mask.show=!1,t.controls.show=!0})),t.on("video:pause",(function(){t.controls.show=!0,t.mask.show=!0})),t.on("video:play",(function(){t.mask.show=!1,(0,s.setStyle)(f,"display","none")})),t.on("video:playing",(function(){t.mask.show=!1})),t.on("video:progress",(function(){t.playing&&(t.loading.show=!1)})),t.on("video:seeked",(function(){t.loading.show=!1,t.mask.show=!0})),t.on("video:seeking",(function(){t.loading.show=!0,t.mask.show=!1})),t.on("video:timeupdate",(function(){t.mask.show=!1})),t.on("video:waiting",(function(){t.loading.show=!0,t.mask.show=!1}))}},{"../config":"9Xmqu","../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"14IBq":[function(t,e,r){var n=t("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var i=t("../utils"),a=t("../utils/component"),o=n.interopDefault(a),u=t("./fullscreen"),l=n.interopDefault(u),c=t("./fullscreenWeb"),A=n.interopDefault(c),d=t("./pip"),p=n.interopDefault(d),v=t("./playAndPause"),y=n.interopDefault(v),w=t("./progress"),b=n.interopDefault(w),_=t("./time"),B=n.interopDefault(_),E=t("./volume"),x=n.interopDefault(E),T=t("./setting"),S=n.interopDefault(T),k=t("./thumbnails"),I=n.interopDefault(k),F=t("./screenshot"),L=n.interopDefault(F),D=t("./airplay"),R=n.interopDefault(D),U=function(t){"use strict";g(r,t);var e=C(r);function r(t){var n;f(this,r),n=e.call(this,t),n.name="control",n.timer=Date.now();var a=t.constructor,s=n.art.template.$player;return t.on("mousemove",(function(){i.isMobile||(n.show=!0)})),t.on("click",(function(){i.isMobile?n.toggle():n.show=!0})),t.on("video:timeupdate",(function(){!t.isInput&&t.playing&&n.show&&Date.now()-n.timer>=a.CONTROL_HIDE_TIME&&(n.show=!1)})),t.on("control",(function(t){t?((0,i.removeClass)(s,"art-hide-cursor"),(0,i.addClass)(s,"art-hover"),n.timer=Date.now()):((0,i.addClass)(s,"art-hide-cursor"),(0,i.removeClass)(s,"art-hover"))})),n.init(),n}return h(r,[{key:"init",value:function(){var t=this,e=this.art.option;e.isLive||this.add((0,b.default)({name:"progress",position:"top",index:10})),!e.thumbnails.url||e.isLive||i.isMobile||this.add((0,I.default)({name:"thumbnails",position:"top",index:20})),this.add((0,y.default)({name:"playAndPause",position:"left",index:10})),this.add((0,x.default)({name:"volume",position:"left",index:20})),e.isLive||this.add((0,B.default)({name:"time",position:"left",index:30})),e.quality.length&&(0,i.sleep)().then((function(){t.art.quality=e.quality})),e.screenshot&&!i.isMobile&&this.add((0,L.default)({name:"screenshot",position:"right",index:20})),e.setting&&this.add((0,S.default)({name:"setting",position:"right",index:30})),e.pip&&this.add((0,p.default)({name:"pip",position:"right",index:40})),e.airplay&&window.WebKitPlaybackTargetAvailabilityEvent&&this.add((0,R.default)({name:"airplay",position:"right",index:50})),e.fullscreenWeb&&this.add((0,A.default)({name:"fullscreenWeb",position:"right",index:60})),e.fullscreen&&this.add((0,l.default)({name:"fullscreen",position:"right",index:70}));for(var r=0;r<e.controls.length;r++)this.add(e.controls[r])}},{key:"add",value:function(t){var e="function"==typeof t?t(this.art):t,n=this.art.template,a=n.$progress,o=n.$controlsLeft,u=n.$controlsRight;switch(e.position){case"top":this.$parent=a;break;case"left":this.$parent=o;break;case"right":this.$parent=u;break;default:(0,i.errorHandle)(!1,"Control option.position must one of 'top', 'left', 'right'")}s(m(r.prototype),"add",this).call(this,e)}}]),r}(o.default);r.default=U},{"../utils":"h3rH9","../utils/component":"guki8","./fullscreen":"cxHNK","./fullscreenWeb":"66eEC","./pip":"kCFkA","./playAndPause":"iRhgD","./progress":"aBBSH","./time":"7H0CE","./volume":"lMwFm","./setting":"8BrCu","./thumbnails":"2HiWx","./screenshot":"c1GeG","./airplay":"6GRju","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],guki8:[function(t,e,r){var n=t("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var i=t("./dom"),a=t("./format"),s=t("./error"),o=t("option-validator"),c=n.interopDefault(o),A=t("../scheme");r.default=function(){"use strict";function t(e){f(this,t),this.id=0,this.art=e,this.cache=new Map,this.add=this.add.bind(this),this.remove=this.remove.bind(this),this.update=this.update.bind(this)}return h(t,[{key:"show",get:function(){return(0,i.hasClass)(this.art.template.$player,"art-".concat(this.name,"-show"))},set:function(t){var e=this.art.template.$player,r="art-".concat(this.name,"-show");t?(0,i.addClass)(e,r):(0,i.removeClass)(e,r),this.art.emit(this.name,t)}},{key:"toggle",value:function(){this.show=!this.show}},{key:"add",value:function(t){var e=this,r="function"==typeof t?t(this.art):t;if(r.html=r.html||"",(0,c.default)(r,A.ComponentOption),this.$parent&&this.name&&!r.disable){var n=r.name||"".concat(this.name).concat(this.id),a=this.cache.get(n);(0,s.errorHandle)(!a,"Can't add an existing [".concat(n,"] to the [").concat(this.name,"]")),this.id+=1;var o=(0,i.createElement)("div");(0,i.addClass)(o,"art-".concat(this.name)),(0,i.addClass)(o,"art-".concat(this.name,"-").concat(n));var u=Array.from(this.$parent.children);o.dataset.index=r.index||this.id;var l=u.find((function(t){return Number(t.dataset.index)>=Number(o.dataset.index)}));l?l.insertAdjacentElement("beforebegin",o):(0,i.append)(this.$parent,o),r.html&&(0,i.append)(o,r.html),r.style&&(0,i.setStyles)(o,r.style),r.tooltip&&(0,i.tooltip)(o,r.tooltip);var d=[];if(r.click){var f=this.art.events.proxy(o,"click",(function(t){t.preventDefault(),r.click.call(e.art,e,t)}));d.push(f)}return r.selector&&["left","right"].includes(r.position)&&this.addSelector(r,o,d),this[n]=o,this.cache.set(n,{$ref:o,events:d,option:r}),r.mounted&&r.mounted.call(this.art,o),o}}},{key:"addSelector",value:function(t,e,r){var n=this,s=this.art.events,o=s.hover,c=s.proxy;(0,i.addClass)(e,"art-control-selector");var A=(0,i.createElement)("div");(0,i.addClass)(A,"art-selector-value"),(0,i.append)(A,t.html),e.innerText="",(0,i.append)(e,A);var d=t.selector.map((function(t,e){return'<div class="art-selector-item '.concat(t.default?"art-current":"",'" data-index="').concat(e,'">').concat(t.html,"</div>")})).join(""),f=(0,i.createElement)("div");(0,i.addClass)(f,"art-selector-list"),(0,i.append)(f,d),(0,i.append)(e,f);var h=function(){var t=(0,i.getStyle)(e,"width")/2-(0,i.getStyle)(f,"width")/2;f.style.left="".concat(t,"px")};o(e,h);var p=c(f,"click",function(){var e=l(u.mark((function e(r){var s,o,l,c;return u.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(s=(r.composedPath()||[]).find((function(t){return(0,i.hasClass)(t,"art-selector-item")})),s){e.next=3;break}return e.abrupt("return");case 3:if((0,i.inverseClass)(s,"art-current"),o=Number(s.dataset.index),l=t.selector[o]||{},A.innerText=s.innerText,!t.onSelect){e.next=10;break}return e.next=8,t.onSelect.call(n.art,l,s,r);case 8:c=e.sent,(0,a.isStringOrNumber)(c)&&(A.innerHTML=c);case 10:h();case 11:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());r.push(p)}},{key:"remove",value:function(t){var e=this.cache.get(t);(0,s.errorHandle)(e,"Can't find [".concat(t,"] from the [").concat(this.name,"]")),e.option.beforeUnmount&&e.option.beforeUnmount.call(this.art,e.$ref);for(var r=0;r<e.events.length;r++)this.art.events.remove(e.events[r]);this.cache.delete(t),delete this[t],(0,i.remove)(e.$ref)}},{key:"update",value:function(t){var e=this.cache.get(t.name);return e&&(t=Object.assign(e.option,t),this.remove(t.name)),this.add(t)}}]),t}()},{"./dom":"XgAQE","./format":"13atT","./error":"2nFlF","option-validator":"bAWi2","../scheme":"AdvwB","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],cxHNK:[function(t,e,r){t("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=t("../utils");r.default=function(t){return function(e){return B(B({},t),{},{tooltip:e.i18n.get("Fullscreen"),mounted:function(t){var r=e.proxy,i=e.icons,a=e.i18n,s=(0,n.append)(t,i.fullscreenOn),o=(0,n.append)(t,i.fullscreenOff);(0,n.setStyle)(o,"display","none"),r(t,"click",(function(){e.fullscreen=!e.fullscreen})),e.on("fullscreen",(function(e){e?((0,n.tooltip)(t,a.get("Exit Fullscreen")),(0,n.setStyle)(s,"display","none"),(0,n.setStyle)(o,"display","inline-flex")):((0,n.tooltip)(t,a.get("Fullscreen")),(0,n.setStyle)(s,"display","inline-flex"),(0,n.setStyle)(o,"display","none"))}))}})}}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"66eEC":[function(t,e,r){t("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=t("../utils");r.default=function(t){return function(e){return B(B({},t),{},{tooltip:e.i18n.get("Web Fullscreen"),mounted:function(t){var r=e.proxy,i=e.icons,a=e.i18n,s=(0,n.append)(t,i.fullscreenWebOn),o=(0,n.append)(t,i.fullscreenWebOff);(0,n.setStyle)(o,"display","none"),r(t,"click",(function(){e.fullscreenWeb=!e.fullscreenWeb})),e.on("fullscreenWeb",(function(e){e?((0,n.tooltip)(t,a.get("Exit Web Fullscreen")),(0,n.setStyle)(s,"display","none"),(0,n.setStyle)(o,"display","inline-flex")):((0,n.tooltip)(t,a.get("Web Fullscreen")),(0,n.setStyle)(s,"display","inline-flex"),(0,n.setStyle)(o,"display","none"))}))}})}}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],kCFkA:[function(t,e,r){t("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=t("../utils");r.default=function(t){return function(e){return B(B({},t),{},{tooltip:e.i18n.get("PIP Mode"),mounted:function(t){var r=e.proxy,i=e.icons,a=e.i18n;(0,n.append)(t,i.pip),r(t,"click",(function(){e.pip=!e.pip})),e.on("pip",(function(e){(0,n.tooltip)(t,a.get(e?"Exit PIP Mode":"PIP Mode"))}))}})}}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],iRhgD:[function(t,e,r){t("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=t("../utils");r.default=function(t){return function(e){return B(B({},t),{},{mounted:function(t){var r=e.proxy,i=e.icons,a=e.i18n,s=(0,n.append)(t,i.play),o=(0,n.append)(t,i.pause);function u(){(0,n.setStyle)(s,"display","flex"),(0,n.setStyle)(o,"display","none")}function l(){(0,n.setStyle)(s,"display","none"),(0,n.setStyle)(o,"display","flex")}(0,n.tooltip)(s,a.get("Play")),(0,n.tooltip)(o,a.get("Pause")),r(s,"click",(function(){e.play()})),r(o,"click",(function(){e.pause()})),e.playing?l():u(),e.on("video:playing",(function(){l()})),e.on("video:pause",(function(){u()}))}})}}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],aBBSH:[function(t,e,r){var n=t("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"getPosFromEvent",(function(){return a})),n.export(r,"setCurrentTime",(function(){return s}));var i=t("../utils");function a(t,e){var r=t.template.$progress,n=r.getBoundingClientRect(),a=n.left,s=i.isMobile?e.touches[0].clientX:e.clientX,o=(0,i.clamp)(s-a,0,r.clientWidth),u=o/r.clientWidth*t.duration;return{second:u,time:(0,i.secondToTime)(u),width:o,percentage:(0,i.clamp)(o/r.clientWidth,0,1)}}function s(t,e){if(t.isRotate){var r=e.touches[0].clientY/t.height,n=r*t.duration;t.emit("setBar","played",r),t.seek=n}else{var i=a(t,e),s=i.second,o=i.percentage;t.emit("setBar","played",o),t.seek=s}}r.default=function(t){return function(e){var r=e.icons,n=e.option,o=e.proxy;return B(B({},t),{},{html:'<div class="art-control-progress-inner"><div class="art-progress-hover"></div><div class="art-progress-loaded"></div><div class="art-progress-played"></div><div class="art-progress-highlight"></div><div class="art-progress-indicator"></div><div class="art-progress-tip"></div></div>',mounted:function(t){var u=!1,l=(0,i.query)(".art-progress-hover",t),c=(0,i.query)(".art-progress-loaded",t),A=(0,i.query)(".art-progress-played",t),d=(0,i.query)(".art-progress-highlight",t),f=(0,i.query)(".art-progress-indicator",t),h=(0,i.query)(".art-progress-tip",t);function p(t,e){"loaded"===t&&(0,i.setStyle)(c,"width",100*e+"%"),"played"===t&&((0,i.setStyle)(A,"width",100*e+"%"),(0,i.setStyle)(f,"left",100*e+"%"))}r.indicator?(0,i.append)(f,r.indicator):(0,i.setStyle)(f,"backgroundColor","var(--art-theme)"),e.on("video:loadedmetadata",(function(){for(var t=0;t<n.highlight.length;t++){var r=n.highlight[t],a=(0,i.clamp)(r.time,0,e.duration)/e.duration*100,s='<span data-text="'.concat(r.text,'" data-time="').concat(r.time,'" style="left: ').concat(a,'%"></span>');(0,i.append)(d,s)}})),p("loaded",e.loaded),e.on("setBar",(function(t,e){p(t,e)})),e.on("video:progress",(function(){p("loaded",e.loaded)})),e.constructor.USE_RAF?e.on("raf",(function(){p("played",e.played)})):e.on("video:timeupdate",(function(){p("played",e.played)})),e.on("video:ended",(function(){p("played",1)})),i.isMobile||(o(t,"click",(function(t){t.target!==f&&s(e,t)})),o(t,"mousemove",(function(r){!function(t){var r=a(e,t),n=r.width;(0,i.setStyle)(l,"width","".concat(n,"px")),(0,i.setStyle)(l,"display","flex")}(r),(0,i.setStyle)(h,"display","flex"),(0,i.includeFromEvent)(r,d)?function(r){var n=a(e,r),s=n.width,o=r.target.dataset.text;h.innerHTML=o;var u=h.clientWidth;s<=u/2?(0,i.setStyle)(h,"left",0):s>t.clientWidth-u/2?(0,i.setStyle)(h,"left",t.clientWidth-u+"px"):(0,i.setStyle)(h,"left",s-u/2+"px")}(r):function(r){var n=a(e,r),s=n.width,o=n.time;h.innerHTML=o;var u=h.clientWidth;s<=u/2?(0,i.setStyle)(h,"left",0):s>t.clientWidth-u/2?(0,i.setStyle)(h,"left",t.clientWidth-u+"px"):(0,i.setStyle)(h,"left",s-u/2+"px")}(r)})),o(t,"mouseleave",(function(){(0,i.setStyle)(h,"display","none"),(0,i.setStyle)(l,"display","none")})),o(t,"mousedown",(function(t){u=0===t.button})),e.on("document:mousemove",(function(t){if(u){var r=a(e,t),n=r.second,i=r.percentage;p("played",i),e.seek=n}})),e.on("document:mouseup",(function(){u&&(u=!1)})))}})}}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"7H0CE":[function(t,e,r){t("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=t("../utils");r.default=function(t){return function(e){return B(B({},t),{},{style:n.isMobile?{fontSize:"12px",padding:"0 5px"}:{cursor:"auto",padding:"0 10px"},mounted:function(t){function r(){var r="".concat((0,n.secondToTime)(e.currentTime)," / ").concat((0,n.secondToTime)(e.duration));r!==t.innerText&&(t.innerText=r)}r();for(var i=["video:loadedmetadata","video:timeupdate","video:progress"],a=0;a<i.length;a++)e.on(i[a],r)}})}}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],lMwFm:[function(t,e,r){t("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=t("../utils");r.default=function(t){return function(e){return B(B({},t),{},{mounted:function(t){var r=e.proxy,i=e.icons,a=(0,n.append)(t,i.volume),s=(0,n.append)(t,i.volumeClose),o=(0,n.append)(t,'<div class="art-volume-panel"></div>'),u=(0,n.append)(o,'<div class="art-volume-inner"></div>'),l=(0,n.append)(u,'<div class="art-volume-val"></div>'),c=(0,n.append)(u,'<div class="art-volume-slider"></div>'),A=(0,n.append)(c,'<div class="art-volume-handle"></div>'),d=(0,n.append)(A,'<div class="art-volume-loaded"></div>'),f=(0,n.append)(c,'<div class="art-volume-indicator"></div>');function h(t){var e=c.getBoundingClientRect(),r=e.top,n=e.height;return 1-(t.clientY-r)/n}function p(){if(e.muted||0===e.volume)(0,n.setStyle)(a,"display","none"),(0,n.setStyle)(s,"display","flex"),(0,n.setStyle)(f,"top","100%"),(0,n.setStyle)(d,"top","100%"),l.innerText=0;else{var t=100*e.volume;(0,n.setStyle)(a,"display","flex"),(0,n.setStyle)(s,"display","none"),(0,n.setStyle)(f,"top",100-t+"%"),(0,n.setStyle)(d,"top",100-t+"%"),l.innerText=Math.floor(t)}}if(p(),e.on("video:volumechange",p),r(a,"click",(function(){e.muted=!0})),r(s,"click",(function(){e.muted=!1})),n.isMobile)(0,n.setStyle)(o,"display","none");else{var g=!1;r(c,"mousedown",(function(t){g=0===t.button,e.volume=h(t)})),e.on("document:mousemove",(function(t){g&&(e.muted=!1,e.volume=h(t))})),e.on("document:mouseup",(function(){g&&(g=!1)}))}}})}}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"8BrCu":[function(t,e,r){t("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=t("../utils");r.default=function(t){return function(e){return B(B({},t),{},{tooltip:e.i18n.get("Show Setting"),mounted:function(t){var r=e.proxy,i=e.icons,a=e.i18n;(0,n.append)(t,i.setting),r(t,"click",(function(){e.setting.toggle(),e.setting.updateStyle()})),e.on("setting",(function(e){(0,n.tooltip)(t,a.get(e?"Hide Setting":"Show Setting"))}))}})}}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"2HiWx":[function(t,e,r){t("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=t("../utils"),i=t("./progress");r.default=function(t){return function(e){return B(B({},t),{},{mounted:function(t){var r=e.option,a=e.template,s=a.$progress,o=a.$video,c=e.events,A=c.proxy,d=c.loadImg,f=null,h=!1,p=!1;A(s,"mousemove",function(){var a=l(u.mark((function a(l){var c;return u.wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(h){a.next=6;break}return h=!0,a.next=4,d(r.thumbnails.url);case 4:c=a.sent,f=c,p=!0;case 6:p&&((0,n.setStyle)(t,"display","flex"),function(a){var u=(0,i.getPosFromEvent)(e,a),l=u.width,c=r.thumbnails,A=c.url,d=c.number,h=c.column,p=c.width,g=c.height,v=p||f.naturalWidth/h,m=g||v/(o.videoWidth/o.videoHeight),y=s.clientWidth/d,w=Math.floor(l/y),b=Math.ceil(w/h)-1,_=w%h||h-1;(0,n.setStyle)(t,"backgroundImage","url(".concat(A,")")),(0,n.setStyle)(t,"height","".concat(m,"px")),(0,n.setStyle)(t,"width","".concat(v,"px")),(0,n.setStyle)(t,"backgroundPosition","-".concat(_*v,"px -").concat(b*m,"px")),l<=v/2?(0,n.setStyle)(t,"left",0):l>s.clientWidth-v/2?(0,n.setStyle)(t,"left",s.clientWidth-v+"px"):(0,n.setStyle)(t,"left",l-v/2+"px")}(l));case 7:case"end":return a.stop()}}),a)})));return function(t){return a.apply(this,arguments)}}()),A(s,"mouseleave",(function(){(0,n.setStyle)(t,"display","none")})),e.on("hover",(function(e){e||(0,n.setStyle)(t,"display","none")}))}})}}},{"../utils":"h3rH9","./progress":"aBBSH","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],c1GeG:[function(t,e,r){t("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=t("../utils");r.default=function(t){return function(e){return B(B({},t),{},{tooltip:e.i18n.get("Screenshot"),mounted:function(t){var r=e.proxy,i=e.icons;(0,n.append)(t,i.screenshot),r(t,"click",(function(){e.screenshot()}))}})}}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"6GRju":[function(t,e,r){t("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=t("../utils");r.default=function(t){return function(e){return B(B({},t),{},{tooltip:e.i18n.get("AirPlay"),mounted:function(t){var r=e.proxy,i=e.icons;(0,n.append)(t,i.airplay),r(t,"click",(function(){return e.airplay()}))}})}}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"7iUum":[function(t,e,r){var n=t("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var i=t("../utils"),a=t("../utils/component"),s=n.interopDefault(a),o=t("./playbackRate"),u=n.interopDefault(o),l=t("./aspectRatio"),c=n.interopDefault(l),A=t("./flip"),d=n.interopDefault(A),p=t("./info"),v=n.interopDefault(p),m=t("./version"),y=n.interopDefault(m),w=t("./close"),b=n.interopDefault(w),_=function(t){"use strict";g(r,t);var e=C(r);function r(t){var n;return f(this,r),n=e.call(this,t),n.name="contextmenu",n.$parent=t.template.$contextmenu,i.isMobile||n.init(),n}return h(r,[{key:"init",value:function(){var t=this,e=this.art,r=e.option,n=e.proxy,a=e.template,s=a.$player,o=a.$contextmenu;r.playbackRate&&this.add((0,u.default)({name:"playbackRate",index:10})),r.aspectRatio&&this.add((0,c.default)({name:"aspectRatio",index:20})),r.flip&&this.add((0,d.default)({name:"flip",index:30})),this.add((0,v.default)({name:"info",index:40})),this.add((0,y.default)({name:"version",index:50})),this.add((0,b.default)({name:"close",index:60}));for(var l=0;l<r.contextmenu.length;l++)this.add(r.contextmenu[l]);n(s,"contextmenu",(function(e){if(e.preventDefault(),t.art.constructor.CONTEXTMENU){t.show=!0;var r=e.clientX,n=e.clientY,a=s.getBoundingClientRect(),u=a.height,l=a.width,c=a.left,A=a.top,d=o.getBoundingClientRect(),f=d.height,h=d.width,p=r-c,g=n-A;r+h>c+l&&(p=l-h),n+f>A+u&&(g=u-f),(0,i.setStyles)(o,{top:"".concat(g,"px"),left:"".concat(p,"px")})}})),n(s,"click",(function(e){(0,i.includeFromEvent)(e,o)||(t.show=!1)})),this.art.on("blur",(function(){t.show=!1}))}}]),r}(s.default);r.default=_},{"../utils":"h3rH9","../utils/component":"guki8","./playbackRate":"f1W36","./aspectRatio":"afxZC","./flip":"9jCuX","./info":"k8wIZ","./version":"bb0TU","./close":"9zTkI","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],f1W36:[function(t,e,r){t("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=t("../utils");r.default=function(t){return function(e){var r=e.i18n,i=e.constructor.PLAYBACK_RATE,a=i.map((function(t){return'<span data-value="'.concat(t,'">').concat(1===t?r.get("Normal"):t.toFixed(1),"</span>")})).join("");return B(B({},t),{},{html:"".concat(r.get("Play Speed"),": ").concat(a),click:function(t,r){var n=r.target.dataset.value;n&&(e.playbackRate=Number(n),t.show=!1)},mounted:function(t){var r=(0,n.query)('[data-value="1"]',t);r&&(0,n.inverseClass)(r,"art-current"),e.on("video:ratechange",(function(){var r=(0,n.queryAll)("span",t).find((function(t){return Number(t.dataset.value)===e.playbackRate}));r&&(0,n.inverseClass)(r,"art-current")}))}})}}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],afxZC:[function(t,e,r){t("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=t("../utils");r.default=function(t){return function(e){var r=e.i18n,i=e.constructor.ASPECT_RATIO,a=i.map((function(t){return'<span data-value="'.concat(t,'">').concat("default"===t?r.get("Default"):t,"</span>")})).join("");return B(B({},t),{},{html:"".concat(r.get("Aspect Ratio"),": ").concat(a),click:function(t,r){var n=r.target.dataset.value;n&&(e.aspectRatio=n,t.show=!1)},mounted:function(t){var r=(0,n.query)('[data-value="default"]',t);r&&(0,n.inverseClass)(r,"art-current"),e.on("aspectRatio",(function(e){var r=(0,n.queryAll)("span",t).find((function(t){return t.dataset.value===e}));r&&(0,n.inverseClass)(r,"art-current")}))}})}}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"9jCuX":[function(t,e,r){t("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=t("../utils");r.default=function(t){return function(e){var r=e.i18n,i=e.constructor.FLIP,a=i.map((function(t){return'<span data-value="'.concat(t,'">').concat(r.get((0,n.capitalize)(t)),"</span>")})).join("");return B(B({},t),{},{html:"".concat(r.get("Video Flip"),": ").concat(a),click:function(t,r){var n=r.target.dataset.value;n&&(e.flip=n.toLowerCase(),t.show=!1)},mounted:function(t){var r=(0,n.query)('[data-value="normal"]',t);r&&(0,n.inverseClass)(r,"art-current"),e.on("flip",(function(e){var r=(0,n.queryAll)("span",t).find((function(t){return t.dataset.value===e}));r&&(0,n.inverseClass)(r,"art-current")}))}})}}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],k8wIZ:[function(t,e,r){t("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r),r.default=function(t){return function(e){return B(B({},t),{},{html:e.i18n.get("Video Info"),click:function(t){e.info.show=!0,t.show=!1}})}}},{"@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],bb0TU:[function(t,e,r){t("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r),r.default=function(t){return B(B({},t),{},{html:'<a href="https://artplayer.org" target="_blank">ArtPlayer 5.1.1</a>'})}},{"@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"9zTkI":[function(t,e,r){t("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r),r.default=function(t){return function(e){return B(B({},t),{},{html:e.i18n.get("Close"),click:function(t){t.show=!1}})}}},{"@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],hD2Lg:[function(t,e,r){var n=t("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var i=t("./utils"),a=t("./utils/component"),s=n.interopDefault(a),o=function(t){"use strict";g(r,t);var e=C(r);function r(t){var n;return f(this,r),n=e.call(this,t),n.name="info",i.isMobile||n.init(),n}return h(r,[{key:"init",value:function(){var t=this,e=this.art,r=e.proxy,n=e.constructor,a=e.template,s=a.$infoPanel,o=a.$infoClose,u=a.$video;r(o,"click",(function(){t.show=!1}));var l=null,c=(0,i.queryAll)("[data-video]",s)||[];this.art.on("destroy",(function(){return clearTimeout(l)})),function t(){for(var e=0;e<c.length;e++){var r=c[e],i=u[r.dataset.video],a="number"==typeof i?i.toFixed(2):i;r.innerText!==a&&(r.innerText=a)}l=setTimeout(t,n.INFO_LOOP_TIME)}()}}]),r}(s.default);r.default=o},{"./utils":"h3rH9","./utils/component":"guki8","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],lum0D:[function(t,e,r){var n=t("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var i=t("./utils"),a=t("./utils/component"),s=n.interopDefault(a),o=t("option-validator"),c=n.interopDefault(o),A=t("./scheme"),d=n.interopDefault(A),p=function(t){"use strict";g(r,t);var e=C(r);function r(t){var n;f(this,r),n=e.call(this,t),n.name="subtitle",n.eventDestroy=function(){return null},n.init(t.option.subtitle);var i=!1;return t.on("video:timeupdate",(function(){if(n.url){var t=n.art.template.$video.webkitDisplayingFullscreen;"boolean"==typeof t&&t!==i&&(i=t,n.createTrack(t?"subtitles":"metadata",n.url))}})),n}return h(r,[{key:"url",get:function(){return this.art.template.$track.src},set:function(t){this.switch(t)}},{key:"textTrack",get:function(){return this.art.template.$video.textTracks[0]}},{key:"activeCue",get:function(){return this.textTrack.activeCues[0]}},{key:"style",value:function(t,e){var r=this.art.template.$subtitle;return"object"==y(t)?(0,i.setStyles)(r,t):(0,i.setStyle)(r,t,e)}},{key:"update",value:function(){var t=this.art.template.$subtitle;t.innerHTML="",this.activeCue&&(this.art.option.subtitle.escape?t.innerHTML=this.activeCue.text.split(/\r?\n/).map((function(t){return'<div class="art-subtitle-line">'.concat((0,i.escape)(t),"</div>")})).join(""):t.innerHTML=this.activeCue.text,this.art.emit("subtitleUpdate",this.activeCue.text))}},{key:"switch",value:function(){var t=l(u.mark((function t(e){var r,n,i,a,s,o,l,c=arguments;return u.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return r=c.length>1&&void 0!==c[1]?c[1]:{},n=this.art,i=n.i18n,a=n.notice,s=n.option,o=B(B(B({},s.subtitle),r),{},{url:e}),t.next=8,this.init(o);case 8:return l=t.sent,t.abrupt("return",(r.name&&(a.show="".concat(i.get("Switch Subtitle"),": ").concat(r.name)),l));case 10:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"createTrack",value:function(t,e){var r=this,n=this.art,a=n.template,s=n.proxy,o=n.option,u=a.$video,l=a.$track,c=(0,i.createElement)("track");c.default=!0,c.kind=t,c.src=e,c.label=o.subtitle.name||"Artplayer",c.track.mode="hidden",this.eventDestroy(),(0,i.remove)(l),(0,i.append)(u,c),a.$track=c,this.eventDestroy=s(this.textTrack,"cuechange",(function(){return r.update()}))}},{key:"init",value:function(){var t=l(u.mark((function t(e){var r,n,a,s=this;return u.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(r=this.art,n=r.notice,a=r.template.$subtitle,(0,c.default)(e,d.default.subtitle),!e.url){t.next=3;break}return t.abrupt("return",(this.style(e.style),fetch(e.url).then((function(t){return t.arrayBuffer()})).then((function(t){var r=new TextDecoder(e.encoding).decode(t);switch(s.art.emit("subtitleLoad",e.url),e.type||(0,i.getExt)(e.url)){case"srt":var n=(0,i.srtToVtt)(r),a=e.onVttLoad(n);return(0,i.vttToBlob)(a);case"ass":var o=(0,i.assToVtt)(r),u=e.onVttLoad(o);return(0,i.vttToBlob)(u);case"vtt":var l=e.onVttLoad(r);return(0,i.vttToBlob)(l);default:return e.url}})).then((function(t){return a.innerHTML="",s.url===t||(URL.revokeObjectURL(s.url),s.createTrack("metadata",t),s.art.emit("subtitleSwitch",t)),t})).catch((function(t){throw a.innerHTML="",n.show=t,t}))));case 3:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()}]),r}(s.default);r.default=p},{"./utils":"h3rH9","./utils/component":"guki8","option-validator":"bAWi2","./scheme":"AdvwB","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"1Epl5":[function(t,e,r){var n=t("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var i=t("../utils/error"),a=t("./clickInit"),s=n.interopDefault(a),o=t("./hoverInit"),u=n.interopDefault(o),l=t("./moveInit"),c=n.interopDefault(l),A=t("./resizeInit"),d=n.interopDefault(A),p=t("./gestureInit"),g=n.interopDefault(p),v=t("./viewInit"),m=n.interopDefault(v),y=t("./documentInit"),w=n.interopDefault(y),b=t("./updateInit"),_=n.interopDefault(b);r.default=function(){"use strict";function t(e){f(this,t),this.destroyEvents=[],this.proxy=this.proxy.bind(this),this.hover=this.hover.bind(this),this.loadImg=this.loadImg.bind(this),(0,s.default)(e,this),(0,u.default)(e,this),(0,c.default)(e,this),(0,d.default)(e,this),(0,g.default)(e,this),(0,m.default)(e,this),(0,w.default)(e,this),(0,_.default)(e,this)}return h(t,[{key:"proxy",value:function(t,e,r){var n=this,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(Array.isArray(e))return e.map((function(e){return n.proxy(t,e,r,i)}));t.addEventListener(e,r,i);var a=function(){return t.removeEventListener(e,r,i)};return this.destroyEvents.push(a),a}},{key:"hover",value:function(t,e,r){e&&this.proxy(t,"mouseenter",e),r&&this.proxy(t,"mouseleave",r)}},{key:"loadImg",value:function(t){var e=this;return new Promise((function(r,n){var a;if(t instanceof HTMLImageElement)a=t;else{if("string"!=typeof t)return n(new(0,i.ArtPlayerError)("Unable to get Image"));a=new Image,a.src=t}if(a.complete)return r(a);e.proxy(a,"load",(function(){return r(a)})),e.proxy(a,"error",(function(){return n(new(0,i.ArtPlayerError)("Failed to load Image: ".concat(a.src)))}))}))}},{key:"remove",value:function(t){var e=this.destroyEvents.indexOf(t);e>-1&&(t(),this.destroyEvents.splice(e,1))}},{key:"destroy",value:function(){for(var t=0;t<this.destroyEvents.length;t++)this.destroyEvents[t]()}}]),t}()},{"../utils/error":"2nFlF","./clickInit":"gzL6e","./hoverInit":"kpTJf","./moveInit":"ef6qz","./resizeInit":"9TXOX","./gestureInit":"dePMU","./viewInit":"hDyWF","./documentInit":"7RjDP","./updateInit":"8SmBT","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],gzL6e:[function(t,e,r){t("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=t("../utils");r.default=function(t,e){var r=t.constructor,i=t.template,a=i.$player,s=i.$video;e.proxy(document,["click","contextmenu"],(function(e){(0,n.includeFromEvent)(e,a)?(t.isInput="INPUT"===e.target.tagName,t.isFocus=!0,t.emit("focus",e)):(t.isInput=!1,t.isFocus=!1,t.emit("blur",e))}));var o=0;e.proxy(s,"click",(function(e){var i=Date.now(),a=r.MOBILE_CLICK_PLAY,s=r.DBCLICK_TIME,u=r.MOBILE_DBCLICK_PLAY,l=r.DBCLICK_FULLSCREEN;i-o<=s?(t.emit("dblclick",e),n.isMobile?!t.isLock&&u&&t.toggle():l&&(t.fullscreen=!t.fullscreen)):(t.emit("click",e),n.isMobile?!t.isLock&&a&&t.toggle():t.toggle()),o=i}))}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],kpTJf:[function(t,e,r){t("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=t("../utils");r.default=function(t,e){var r=t.template.$player;e.hover(r,(function(e){(0,n.addClass)(r,"art-hover"),t.emit("hover",!0,e)}),(function(e){(0,n.removeClass)(r,"art-hover"),t.emit("hover",!1,e)}))}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],ef6qz:[function(t,e,r){t("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r),r.default=function(t,e){var r=t.template.$player;e.proxy(r,"mousemove",(function(e){t.emit("mousemove",e)}))}},{"@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"9TXOX":[function(t,e,r){t("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=t("../utils");r.default=function(t,e){var r=t.option,i=t.constructor;t.on("resize",(function(){var e=t.aspectRatio,n=t.notice;"standard"===t.state&&r.autoSize&&t.autoSize(),t.aspectRatio=e,n.show=""}));var a=(0,n.debounce)((function(){return t.emit("resize")}),i.RESIZE_TIME);e.proxy(window,["orientationchange","resize"],(function(){return a()})),screen&&screen.orientation&&screen.orientation.onchange&&e.proxy(screen.orientation,"change",(function(){return a()}))}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],dePMU:[function(t,e,r){t("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=t("../utils"),i=t("../control/progress");r.default=function(t,e){if(n.isMobile&&!t.option.isLive){var r=t.template,a=r.$video,s=r.$progress,o=null,u=!1,l=0,c=0,A=0,d=function(e){if(1===e.touches.length&&!t.isLock){o===s&&(0,i.setCurrentTime)(t,e),u=!0;var r=e.touches[0],n=r.pageX,a=r.pageY;l=n,c=a,A=t.currentTime}},f=function(e){if(1===e.touches.length&&u&&t.duration){var r=e.touches[0],i=r.pageX,s=r.pageY,d=function(t,e,r,n){var i=e-n,a=r-t,s=0;if(Math.abs(a)<2&&Math.abs(i)<2)return s;var o=function(t,e){return 180*Math.atan2(e,t)/Math.PI}(a,i);return o>=-45&&o<45?s=4:o>=45&&o<135?s=1:o>=-135&&o<-45?s=2:(o>=135&&o<=180||o>=-180&&o<-135)&&(s=3),s}(l,c,i,s),f=[3,4].includes(d),h=[1,2].includes(d);if(f&&!t.isRotate||h&&t.isRotate){var p=(0,n.clamp)((i-l)/t.width,-1,1),g=(0,n.clamp)((s-c)/t.height,-1,1),v=t.isRotate?g:p,m=o===a?t.constructor.TOUCH_MOVE_RATIO:1,y=(0,n.clamp)(A+t.duration*v*m,0,t.duration);t.seek=y,t.emit("setBar","played",(0,n.clamp)(y/t.duration,0,1)),t.notice.show="".concat((0,n.secondToTime)(y)," / ").concat((0,n.secondToTime)(t.duration))}}};e.proxy(s,"touchstart",(function(t){o=s,d(t)})),e.proxy(a,"touchstart",(function(t){o=a,d(t)})),e.proxy(a,"touchmove",f),e.proxy(s,"touchmove",f),e.proxy(document,"touchend",(function(){u&&(l=0,c=0,A=0,u=!1,o=null)}))}}},{"../utils":"h3rH9","../control/progress":"aBBSH","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],hDyWF:[function(t,e,r){t("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=t("../utils");r.default=function(t,e){var r=t.option,i=t.constructor,a=t.template.$container,s=(0,n.throttle)((function(){t.emit("view",(0,n.isInViewport)(a,i.SCROLL_GAP))}),i.SCROLL_TIME);e.proxy(window,"scroll",(function(){return s()})),t.on("view",(function(e){r.autoMini&&(t.mini=!e)}))}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"7RjDP":[function(t,e,r){t("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r),r.default=function(t,e){e.proxy(document,"mousemove",(function(e){t.emit("document:mousemove",e)})),e.proxy(document,"mouseup",(function(e){t.emit("document:mouseup",e)}))}},{"@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"8SmBT":[function(t,e,r){t("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r),r.default=function(t){if(t.constructor.USE_RAF){var e=null;!function r(){t.playing&&t.emit("raf"),t.isDestroy||(e=requestAnimationFrame(r))}(),t.on("destroy",(function(){cancelAnimationFrame(e)}))}}},{"@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],eTow4:[function(t,e,r){t("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=t("./utils");r.default=function(){"use strict";function t(e){f(this,t),this.art=e,this.keys={},e.option.hotkey&&!n.isMobile&&this.init()}return h(t,[{key:"init",value:function(){var t=this,e=this.art,r=e.proxy,n=e.constructor;this.add(27,(function(){t.art.fullscreenWeb&&(t.art.fullscreenWeb=!1)})),this.add(32,(function(){t.art.toggle()})),this.add(37,(function(){t.art.backward=n.SEEK_STEP})),this.add(38,(function(){t.art.volume+=n.VOLUME_STEP})),this.add(39,(function(){t.art.forward=n.SEEK_STEP})),this.add(40,(function(){t.art.volume-=n.VOLUME_STEP})),r(window,"keydown",(function(e){if(t.art.isFocus){var r=document.activeElement.tagName.toUpperCase(),n=document.activeElement.getAttribute("contenteditable");if(!("INPUT"===r||"TEXTAREA"===r||""===n||"true"===n||e.altKey||e.ctrlKey||e.metaKey||e.shiftKey)){var i=t.keys[e.keyCode];if(i){e.preventDefault();for(var a=0;a<i.length;a++)i[a].call(t.art,e);t.art.emit("hotkey",e)}}}}))}},{key:"add",value:function(t,e){return this.keys[t]?this.keys[t].push(e):this.keys[t]=[e],this}},{key:"remove",value:function(t,e){if(this.keys[t]){var r=this.keys[t].indexOf(e);-1!==r&&this.keys[t].splice(r,1)}return this}}]),t}()},{"./utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"4fDoD":[function(t,e,r){var n=t("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var i=t("./utils/component"),a=n.interopDefault(i),s=function(t){"use strict";g(r,t);var e=C(r);function r(t){var n;f(this,r),n=e.call(this,t);var i=t.option,a=t.template.$layer;n.name="layer",n.$parent=a;for(var s=0;s<i.layers.length;s++)n.add(i.layers[s]);return n}return h(r)}(a.default);r.default=s},{"./utils/component":"guki8","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],fE0Sp:[function(t,e,r){var n=t("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var i=t("./utils"),a=t("./utils/component"),s=n.interopDefault(a),o=function(t){"use strict";g(r,t);var e=C(r);function r(t){var n;return f(this,r),n=e.call(this,t),n.name="loading",(0,i.append)(t.template.$loading,t.icons.loading),n}return h(r)}(s.default);r.default=o},{"./utils":"h3rH9","./utils/component":"guki8","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"9PuGy":[function(t,e,r){t("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=t("./utils");r.default=function(){"use strict";function t(e){f(this,t),this.art=e,this.timer=null}return h(t,[{key:"show",set:function(t){var e=this.art,r=e.constructor,i=e.template,a=i.$player,s=i.$noticeInner;t?(s.innerText=t instanceof Error?t.message.trim():t,(0,n.addClass)(a,"art-notice-show"),clearTimeout(this.timer),this.timer=setTimeout((function(){s.innerText="",(0,n.removeClass)(a,"art-notice-show")}),r.NOTICE_TIME)):(0,n.removeClass)(a,"art-notice-show")}}]),t}()},{"./utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"2etr0":[function(t,e,r){var n=t("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var i=t("./utils"),a=t("./utils/component"),s=n.interopDefault(a),o=function(t){"use strict";g(r,t);var e=C(r);function r(t){var n;f(this,r),n=e.call(this,t),n.name="mask";var a=t.template,s=t.icons,o=t.events,u=(0,i.append)(a.$state,s.state),l=(0,i.append)(a.$state,s.error);return(0,i.setStyle)(l,"display","none"),t.on("destroy",(function(){(0,i.setStyle)(u,"display","none"),(0,i.setStyle)(l,"display",null)})),o.proxy(a.$state,"click",(function(){return t.play()})),n}return h(r)}(s.default);r.default=o},{"./utils":"h3rH9","./utils/component":"guki8","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"6dYSr":[function(t,e,r){var n=t("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var i=t("../utils"),a=t("bundle-text:./loading.svg"),s=n.interopDefault(a),o=t("bundle-text:./state.svg"),u=n.interopDefault(o),l=t("bundle-text:./check.svg"),c=n.interopDefault(l),A=t("bundle-text:./play.svg"),d=n.interopDefault(A),p=t("bundle-text:./pause.svg"),g=n.interopDefault(p),v=t("bundle-text:./volume.svg"),m=n.interopDefault(v),y=t("bundle-text:./volume-close.svg"),w=n.interopDefault(y),b=t("bundle-text:./screenshot.svg"),_=n.interopDefault(b),C=t("bundle-text:./setting.svg"),E=n.interopDefault(C),x=t("bundle-text:./arrow-left.svg"),T=n.interopDefault(x),S=t("bundle-text:./arrow-right.svg"),k=n.interopDefault(S),I=t("bundle-text:./playback-rate.svg"),F=n.interopDefault(I),L=t("bundle-text:./aspect-ratio.svg"),D=n.interopDefault(L),R=t("bundle-text:./config.svg"),U=n.interopDefault(R),O=t("bundle-text:./pip.svg"),P=n.interopDefault(O),M=t("bundle-text:./lock.svg"),Q=n.interopDefault(M),N=t("bundle-text:./unlock.svg"),H=n.interopDefault(N),$=t("bundle-text:./fullscreen-off.svg"),j=n.interopDefault($),K=t("bundle-text:./fullscreen-on.svg"),G=n.interopDefault(K),V=t("bundle-text:./fullscreen-web-off.svg"),W=n.interopDefault(V),z=t("bundle-text:./fullscreen-web-on.svg"),Y=n.interopDefault(z),q=t("bundle-text:./switch-on.svg"),X=n.interopDefault(q),J=t("bundle-text:./switch-off.svg"),Z=n.interopDefault(J),tt=t("bundle-text:./flip.svg"),et=n.interopDefault(tt),rt=t("bundle-text:./error.svg"),nt=n.interopDefault(rt),it=t("bundle-text:./close.svg"),at=n.interopDefault(it),st=t("bundle-text:./airplay.svg"),ot=n.interopDefault(st);r.default=function(){"use strict";return h((function t(e){var r=this;f(this,t);var n=B({loading:s.default,state:u.default,play:d.default,pause:g.default,check:c.default,volume:m.default,volumeClose:w.default,screenshot:_.default,setting:E.default,pip:P.default,arrowLeft:T.default,arrowRight:k.default,playbackRate:F.default,aspectRatio:D.default,config:U.default,lock:Q.default,flip:et.default,unlock:H.default,fullscreenOff:j.default,fullscreenOn:G.default,fullscreenWebOff:W.default,fullscreenWebOn:Y.default,switchOn:X.default,switchOff:Z.default,error:nt.default,close:at.default,airplay:ot.default},e.option.icons),a=function(t){(0,i.def)(r,t,{get:function(){return(0,i.getIcon)(t,n[t])}})};for(var o in n)a(o)}))}()},{"../utils":"h3rH9","bundle-text:./loading.svg":"fY5Gt","bundle-text:./state.svg":"iNfLt","bundle-text:./check.svg":"jtE9u","bundle-text:./play.svg":"elgfY","bundle-text:./pause.svg":"eKokJ","bundle-text:./volume.svg":"hNB4y","bundle-text:./volume-close.svg":"i9vta","bundle-text:./screenshot.svg":"kB3Mf","bundle-text:./setting.svg":"3MONs","bundle-text:./arrow-left.svg":"iMCpk","bundle-text:./arrow-right.svg":"3oe4L","bundle-text:./playback-rate.svg":"liE22","bundle-text:./aspect-ratio.svg":"8HqYc","bundle-text:./config.svg":"hYAAH","bundle-text:./pip.svg":"jmNrH","bundle-text:./lock.svg":"cIqko","bundle-text:./unlock.svg":"65zy4","bundle-text:./fullscreen-off.svg":"jaJRT","bundle-text:./fullscreen-on.svg":"cRY1X","bundle-text:./fullscreen-web-off.svg":"3aVGL","bundle-text:./fullscreen-web-on.svg":"4DiVn","bundle-text:./switch-on.svg":"kwdKE","bundle-text:./switch-off.svg":"bWfXZ","bundle-text:./flip.svg":"h3zZ9","bundle-text:./error.svg":"7Oyth","bundle-text:./close.svg":"U5Jcy","bundle-text:./airplay.svg":"jK5Fx","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],fY5Gt:[function(t,e,r){e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="50" height="50" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid" class="uil-default"><path fill="none" class="bk" d="M0 0h100v100H0z"/><rect x="47" y="40" width="6" height="20" rx="5" ry="5" fill="#fff" transform="translate(0 -30)"><animate attributeName="opacity" from="1" to="0" dur="1s" begin="-1s" repeatCount="indefinite"/></rect><rect x="47" y="40" width="6" height="20" rx="5" ry="5" fill="#fff" transform="rotate(30 105.98 65)"><animate attributeName="opacity" from="1" to="0" dur="1s" begin="-0.9166666666666666s" repeatCount="indefinite"/></rect><rect x="47" y="40" width="6" height="20" rx="5" ry="5" fill="#fff" transform="rotate(60 75.98 65)"><animate attributeName="opacity" from="1" to="0" dur="1s" begin="-0.8333333333333334s" repeatCount="indefinite"/></rect><rect x="47" y="40" width="6" height="20" rx="5" ry="5" fill="#fff" transform="rotate(90 65 65)"><animate attributeName="opacity" from="1" to="0" dur="1s" begin="-0.75s" repeatCount="indefinite"/></rect><rect x="47" y="40" width="6" height="20" rx="5" ry="5" fill="#fff" transform="rotate(120 58.66 65)"><animate attributeName="opacity" from="1" to="0" dur="1s" begin="-0.6666666666666666s" repeatCount="indefinite"/></rect><rect x="47" y="40" width="6" height="20" rx="5" ry="5" fill="#fff" transform="rotate(150 54.02 65)"><animate attributeName="opacity" from="1" to="0" dur="1s" begin="-0.5833333333333334s" repeatCount="indefinite"/></rect><rect x="47" y="40" width="6" height="20" rx="5" ry="5" fill="#fff" transform="rotate(180 50 65)"><animate attributeName="opacity" from="1" to="0" dur="1s" begin="-0.5s" repeatCount="indefinite"/></rect><rect x="47" y="40" width="6" height="20" rx="5" ry="5" fill="#fff" transform="rotate(-150 45.98 65)"><animate attributeName="opacity" from="1" to="0" dur="1s" begin="-0.4166666666666667s" repeatCount="indefinite"/></rect><rect x="47" y="40" width="6" height="20" rx="5" ry="5" fill="#fff" transform="rotate(-120 41.34 65)"><animate attributeName="opacity" from="1" to="0" dur="1s" begin="-0.3333333333333333s" repeatCount="indefinite"/></rect><rect x="47" y="40" width="6" height="20" rx="5" ry="5" fill="#fff" transform="rotate(-90 35 65)"><animate attributeName="opacity" from="1" to="0" dur="1s" begin="-0.25s" repeatCount="indefinite"/></rect><rect x="47" y="40" width="6" height="20" rx="5" ry="5" fill="#fff" transform="rotate(-60 24.02 65)"><animate attributeName="opacity" from="1" to="0" dur="1s" begin="-0.16666666666666666s" repeatCount="indefinite"/></rect><rect x="47" y="40" width="6" height="20" rx="5" ry="5" fill="#fff" transform="rotate(-30 -5.98 65)"><animate attributeName="opacity" from="1" to="0" dur="1s" begin="-0.08333333333333333s" repeatCount="indefinite"/></rect></svg>'},{}],iNfLt:[function(t,e,r){e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="80" height="80" viewBox="0 0 24 24"><path fill="#fff" d="M9.5 9.325v5.35q0 .575.525.875t1.025-.05l4.15-2.65q.475-.3.475-.85t-.475-.85L11.05 8.5q-.5-.35-1.025-.05t-.525.875ZM12 22q-2.075 0-3.9-.788t-3.175-2.137q-1.35-1.35-2.137-3.175T2 12q0-2.075.788-3.9t2.137-3.175q1.35-1.35 3.175-2.137T12 2q2.075 0 3.9.788t3.175 2.137q1.35 1.35 2.138 3.175T22 12q0 2.075-.788 3.9t-2.137 3.175q-1.35 1.35-3.175 2.138T12 22Z"/></svg>'},{}],jtE9u:[function(t,e,r){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" style="width:100%;height:100%"><path d="M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4L9 16.2z" fill="#fff"/></svg>'},{}],elgfY:[function(t,e,r){e.exports='<svg xmlns="http://www.w3.org/2000/svg" height="22" width="22"><path d="M17.982 9.275 8.06 3.27A2.013 2.013 0 0 0 5 4.994v12.011a2.017 2.017 0 0 0 3.06 1.725l9.922-6.005a2.017 2.017 0 0 0 0-3.45z"/></svg>'},{}],eKokJ:[function(t,e,r){e.exports='<svg xmlns="http://www.w3.org/2000/svg" height="22" width="22"><path d="M7 3a2 2 0 0 0-2 2v12a2 2 0 1 0 4 0V5a2 2 0 0 0-2-2zm8 0a2 2 0 0 0-2 2v12a2 2 0 1 0 4 0V5a2 2 0 0 0-2-2z"/></svg>'},{}],hNB4y:[function(t,e,r){e.exports='<svg xmlns="http://www.w3.org/2000/svg" height="22" width="22"><path d="M10.188 4.65 6 8H5a2 2 0 0 0-2 2v2a2 2 0 0 0 2 2h1l4.188 3.35a.5.5 0 0 0 .812-.39V5.04a.498.498 0 0 0-.812-.39zm4.258-.872a1 1 0 0 0-.862 1.804 6.002 6.002 0 0 1-.007 10.838 1 1 0 0 0 .86 1.806A8.001 8.001 0 0 0 19 11a8.001 8.001 0 0 0-4.554-7.222z"/><path d="M15 11a3.998 3.998 0 0 0-2-3.465v6.93A3.998 3.998 0 0 0 15 11z"/></svg>'},{}],i9vta:[function(t,e,r){e.exports='<svg xmlns="http://www.w3.org/2000/svg" height="22" width="22"><path d="M15 11a3.998 3.998 0 0 0-2-3.465v2.636l1.865 1.865A4.02 4.02 0 0 0 15 11z"/><path d="M13.583 5.583A5.998 5.998 0 0 1 17 11a6 6 0 0 1-.585 2.587l1.477 1.477a8.001 8.001 0 0 0-3.446-11.286 1 1 0 0 0-.863 1.805zm5.195 13.195-2.121-2.121-1.414-1.414-1.415-1.415L13 13l-2-2-3.889-3.889-3.889-3.889a.999.999 0 1 0-1.414 1.414L5.172 8H5a2 2 0 0 0-2 2v2a2 2 0 0 0 2 2h1l4.188 3.35a.5.5 0 0 0 .812-.39v-3.131l2.587 2.587-.01.005a1 1 0 0 0 .86 1.806c.215-.102.424-.214.627-.333l2.3 2.3a1.001 1.001 0 0 0 1.414-1.416zM11 5.04a.5.5 0 0 0-.813-.39L8.682 5.854 11 8.172V5.04z"/></svg>'},{}],kB3Mf:[function(t,e,r){e.exports='<svg xmlns="http://www.w3.org/2000/svg" height="22" width="22" viewBox="0 0 50 50"><path d="M19.402 6a5 5 0 0 0-4.902 4.012L14.098 12H9a5 5 0 0 0-5 5v21a5 5 0 0 0 5 5h32a5 5 0 0 0 5-5V17a5 5 0 0 0-5-5h-5.098l-.402-1.988A5 5 0 0 0 30.598 6ZM25 17c5.52 0 10 4.48 10 10s-4.48 10-10 10-10-4.48-10-10 4.48-10 10-10Zm0 2c-4.41 0-8 3.59-8 8s3.59 8 8 8 8-3.59 8-8-3.59-8-8-8Z"/></svg>'},{}],"3MONs":[function(t,e,r){e.exports='<svg xmlns="http://www.w3.org/2000/svg" height="22" width="22"><circle cx="11" cy="11" r="2"/><path d="M19.164 8.861 17.6 8.6a6.978 6.978 0 0 0-1.186-2.099l.574-1.533a1 1 0 0 0-.436-1.217l-1.997-1.153a1.001 1.001 0 0 0-1.272.23l-1.008 1.225a7.04 7.04 0 0 0-2.55.001L8.716 2.829a1 1 0 0 0-1.272-.23L5.447 3.751a1 1 0 0 0-.436 1.217l.574 1.533A6.997 6.997 0 0 0 4.4 8.6l-1.564.261A.999.999 0 0 0 2 9.847v2.306c0 .489.353.906.836.986l1.613.269a7 7 0 0 0 1.228 2.075l-.558 1.487a1 1 0 0 0 .436 1.217l1.997 1.153c.423.244.961.147 1.272-.23l1.04-1.263a7.089 7.089 0 0 0 2.272 0l1.04 1.263a1 1 0 0 0 1.272.23l1.997-1.153a1 1 0 0 0 .436-1.217l-.557-1.487c.521-.61.94-1.31 1.228-2.075l1.613-.269a.999.999 0 0 0 .835-.986V9.847a.999.999 0 0 0-.836-.986zM11 15a4 4 0 1 1 0-8 4 4 0 0 1 0 8z"/></svg>'},{}],iMCpk:[function(t,e,r){e.exports='<svg xmlns="http://www.w3.org/2000/svg" height="32" width="32"><path d="m19.41 20.09-4.58-4.59 4.58-4.59L18 9.5l-6 6 6 6z" fill="#fff"/></svg>'},{}],"3oe4L":[function(t,e,r){e.exports='<svg xmlns="http://www.w3.org/2000/svg" height="32" width="32"><path d="m12.59 20.34 4.58-4.59-4.58-4.59L14 9.75l6 6-6 6z" fill="#fff"/></svg>'},{}],liE22:[function(t,e,r){e.exports='<svg height="24" width="24"><path d="M10 8v8l6-4-6-4zM6.3 5l-.6-.8C7.2 3 9 2.2 11 2l.1 1c-1.8.2-3.4.9-4.8 2zM5 6.3l-.8-.6C3 7.2 2.2 9 2 11l1 .1c.2-1.8.9-3.4 2-4.8zm0 11.4c-1.1-1.4-1.8-3.1-2-4.8L2 13c.2 2 1 3.8 2.2 5.4l.8-.7zm6.1 3.3c-1.8-.2-3.4-.9-4.8-2l-.6.8C7.2 21 9 21.8 11 22l.1-1zM22 12c0-5.2-3.9-9.4-9-10l-.1 1c4.6.5 8.1 4.3 8.1 9s-3.5 8.5-8.1 9l.1 1c5.2-.5 9-4.8 9-10z" fill="#fff" style="--darkreader-inline-fill:#a8a6a4"/></svg>'},{}],"8HqYc":[function(t,e,r){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 88 88" style="width:100%;height:100%;transform:translate(0,0)"><defs><clipPath id="__lottie_element_216"><path d="M0 0h88v88H0z"/></clipPath></defs><g style="display:block" clip-path="url(\'#__lottie_element_216\')"><path fill="#FFF" d="m12.438-12.702-2.82 2.82c-.79.79-.79 2.05 0 2.83l7.07 7.07-7.07 7.07c-.79.79-.79 2.05 0 2.83l2.82 2.83c.79.78 2.05.78 2.83 0l11.32-11.31c.78-.78.78-2.05 0-2.83l-11.32-11.31c-.78-.79-2.04-.79-2.83 0zm-24.88 0c-.74-.74-1.92-.78-2.7-.12l-.13.12-11.31 11.31a2 2 0 0 0-.12 2.7l.12.13 11.31 11.31a2 2 0 0 0 2.7.12l.13-.12 2.83-2.83c.74-.74.78-1.91.11-2.7l-.11-.13-7.07-7.07 7.07-7.07c.74-.74.78-1.91.11-2.7l-.11-.13-2.83-2.82zM28-28c4.42 0 8 3.58 8 8v40c0 4.42-3.58 8-8 8h-56c-4.42 0-8-3.58-8-8v-40c0-4.42 3.58-8 8-8h56z" style="--darkreader-inline-fill:#a8a6a4" transform="translate(44 44)"/></g></svg>'},{}],hYAAH:[function(t,e,r){e.exports='<svg height="24" width="24"><path d="M15 17h6v1h-6v-1zm-4 0H3v1h8v2h1v-5h-1v2zm3-9h1V3h-1v2H3v1h11v2zm4-3v1h3V5h-3zM6 14h1V9H6v2H3v1h3v2zm4-2h11v-1H10v1z" fill="#fff" style="--darkreader-inline-fill:#a8a6a4"/></svg>'},{}],jmNrH:[function(t,e,r){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 36 36" height="32" width="32"><path d="M25 17h-8v6h8v-6Zm4 8V10.98C29 9.88 28.1 9 27 9H9c-1.1 0-2 .88-2 1.98V25c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2Zm-2 .02H9V10.97h18v14.05Z"/></svg>'},{}],cIqko:[function(t,e,r){e.exports='<svg class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" width="20" height="20"><path d="M298.667 426.667v-85.334a213.333 213.333 0 1 1 426.666 0v85.334H768A85.333 85.333 0 0 1 853.333 512v256A85.333 85.333 0 0 1 768 853.333H256A85.333 85.333 0 0 1 170.667 768V512A85.333 85.333 0 0 1 256 426.667h42.667zM512 213.333a128 128 0 0 0-128 128v85.334h256v-85.334a128 128 0 0 0-128-128z" fill="#fff"/></svg>'},{}],"65zy4":[function(t,e,r){e.exports='<svg class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" width="20" height="20"><path d="m666.752 194.517-49.365 74.112A128 128 0 0 0 384 341.333l.043 85.334h384A85.333 85.333 0 0 1 853.376 512v256a85.333 85.333 0 0 1-85.333 85.333H256A85.333 85.333 0 0 1 170.667 768V512A85.333 85.333 0 0 1 256 426.667h42.667v-85.334a213.333 213.333 0 0 1 368.085-146.816z" fill="#fff"/></svg>'},{}],jaJRT:[function(t,e,r){e.exports='<svg class="icon" width="22" height="22" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg"><path fill="#fff" d="M768 298.667h170.667V384h-256V128H768v170.667zM341.333 384h-256v-85.333H256V128h85.333v256zM768 725.333V896h-85.333V640h256v85.333H768zM341.333 640v256H256V725.333H85.333V640h256z"/></svg>'},{}],cRY1X:[function(t,e,r){e.exports='<svg class="icon" width="22" height="22" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg"><path fill="#fff" d="M625.778 256H768v142.222h113.778v-256h-256V256zM256 398.222V256h142.222V142.222h-256v256H256zm512 227.556V768H625.778v113.778h256v-256H768zM398.222 768H256V625.778H142.222v256h256V768z"/></svg>'},{}],"3aVGL":[function(t,e,r){e.exports='<svg class="icon" width="18" height="18" viewBox="0 0 1152 1024" xmlns="http://www.w3.org/2000/svg"><path fill="#fff" d="M1075.2 0H76.8A76.8 76.8 0 0 0 0 76.8v870.4a76.8 76.8 0 0 0 76.8 76.8h998.4a76.8 76.8 0 0 0 76.8-76.8V76.8A76.8 76.8 0 0 0 1075.2 0zM1024 128v768H128V128h896zM896 512a64 64 0 0 1 7.488 127.552L896 640H768v128a64 64 0 0 1-56.512 63.552L704 832a64 64 0 0 1-63.552-56.512L640 768V582.592c0-34.496 25.024-66.112 61.632-70.208l8-.384H896zm-640 0a64 64 0 0 1-7.488-127.552L256 384h128V256a64 64 0 0 1 56.512-63.552L448 192a64 64 0 0 1 63.552 56.512L512 256v185.408c0 34.432-25.024 66.112-61.632 70.144l-8 .448H256z"/></svg>'},{}],"4DiVn":[function(t,e,r){e.exports='<svg class="icon" width="18" height="18" viewBox="0 0 1152 1024" xmlns="http://www.w3.org/2000/svg"><path fill="#fff" d="M1075.2 0H76.8A76.8 76.8 0 0 0 0 76.8v870.4a76.8 76.8 0 0 0 76.8 76.8h998.4a76.8 76.8 0 0 0 76.8-76.8V76.8A76.8 76.8 0 0 0 1075.2 0zM1024 128v768H128V128h896zm-576 64a64 64 0 0 1 7.488 127.552L448 320H320v128a64 64 0 0 1-56.512 63.552L256 512a64 64 0 0 1-63.552-56.512L192 448V262.592c0-34.432 25.024-66.112 61.632-70.144l8-.448H448zm256 640a64 64 0 0 1-7.488-127.552L704 704h128V576a64 64 0 0 1 56.512-63.552L896 512a64 64 0 0 1 63.552 56.512L960 576v185.408c0 34.496-25.024 66.112-61.632 70.208l-8 .384H704z"/></svg>'},{}],kwdKE:[function(t,e,r){e.exports='<svg class="icon" width="26" height="26" viewBox="0 0 1664 1024" xmlns="http://www.w3.org/2000/svg"><path fill="#648FFC" d="M1152 0H512a512 512 0 0 0 0 1024h640a512 512 0 0 0 0-1024zm0 960a448 448 0 1 1 448-448 448 448 0 0 1-448 448z"/></svg>'},{}],bWfXZ:[function(t,e,r){e.exports='<svg class="icon" width="26" height="26" viewBox="0 0 1740 1024" xmlns="http://www.w3.org/2000/svg"><path fill="#fff" d="M511.898 1024h670.515c282.419-.41 511.18-229.478 511.18-511.898 0-282.419-228.761-511.488-511.18-511.897H511.898C229.478.615.717 229.683.717 512.102c0 282.42 228.761 511.488 511.18 511.898zm-.564-975.36A464.589 464.589 0 1 1 48.026 513.024 463.872 463.872 0 0 1 511.334 48.435v.205z"/></svg>'},{}],h3zZ9:[function(t,e,r){e.exports='<svg class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" width="24" height="24"><path d="M554.667 810.667V896h-85.334v-85.333h85.334zm-384-632.662a42.667 42.667 0 0 1 34.986 18.219l203.904 291.328a42.667 42.667 0 0 1 0 48.896L205.611 827.776A42.667 42.667 0 0 1 128 803.328V220.672a42.667 42.667 0 0 1 42.667-42.667zm682.666 0a42.667 42.667 0 0 1 42.368 37.718l.299 4.949v582.656a42.667 42.667 0 0 1-74.24 28.63l-3.413-4.182-203.904-291.328a42.667 42.667 0 0 1-3.03-43.861l3.03-5.035 203.946-291.328a42.667 42.667 0 0 1 34.944-18.219zM554.667 640v85.333h-85.334V640h85.334zm-358.4-320.896V716.8L335.957 512 196.31 319.104zm358.4 150.23v85.333h-85.334v-85.334h85.334zm0-170.667V384h-85.334v-85.333h85.334zm0-170.667v85.333h-85.334V128h85.334z" fill="#fff"/></svg>'},{}],"7Oyth":[function(t,e,r){e.exports='<svg viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" width="50" height="50"><path d="M593.818 168.55 949.82 763.76c26.153 43.746 10.732 99.738-34.447 125.052-14.397 8.069-30.72 12.308-47.37 12.308H155.976c-52.224 0-94.536-40.96-94.536-91.505 0-16.097 4.383-31.928 12.718-45.875l356.004-595.19c26.173-43.724 84.009-58.654 129.208-33.341a93.082 93.082 0 0 1 34.448 33.341zM512 819.2a61.44 61.44 0 1 0 0-122.88 61.44 61.44 0 0 0 0 122.88zm0-512a72.315 72.315 0 0 0-71.762 81.306l25.723 205.721a46.408 46.408 0 0 0 92.078 0l25.723-205.742A72.315 72.315 0 0 0 512 307.2z"/></svg>'},{}],U5Jcy:[function(t,e,r){e.exports='<svg class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" width="22" height="22"><path d="m571.733 512 268.8-268.8c17.067-17.067 17.067-42.667 0-59.733-17.066-17.067-42.666-17.067-59.733 0L512 452.267l-268.8-268.8c-17.067-17.067-42.667-17.067-59.733 0-17.067 17.066-17.067 42.666 0 59.733l268.8 268.8-268.8 268.8c-17.067 17.067-17.067 42.667 0 59.733 8.533 8.534 19.2 12.8 29.866 12.8s21.334-4.266 29.867-12.8l268.8-268.8 268.8 268.8c8.533 8.534 19.2 12.8 29.867 12.8s21.333-4.266 29.866-12.8c17.067-17.066 17.067-42.666 0-59.733L571.733 512z"/></svg>'},{}],jK5Fx:[function(t,e,r){e.exports='<svg width="18" height="18" xmlns="http://www.w3.org/2000/svg"><g fill="#fff"><path d="M16 1H2a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h3v-2H3V3h12v8h-2v2h3a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1Z"/><path d="M4 17h10l-5-6z"/></g></svg>'},{}],bRHiA:[function(t,e,r){var n=t("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var i=t("./flip"),a=n.interopDefault(i),s=t("./aspectRatio"),o=n.interopDefault(s),c=t("./playbackRate"),d=n.interopDefault(c),p=t("./subtitleOffset"),v=n.interopDefault(p),m=t("../utils/component"),y=n.interopDefault(m),w=t("../utils/error"),b=t("../utils"),_=function(t){"use strict";g(r,t);var e=C(r);function r(t){var n;f(this,r),n=e.call(this,t);var i=t.option,a=t.controls,s=t.template.$setting;return n.name="setting",n.$parent=s,n.option=[],n.events=[],n.cache=new Map,i.setting&&(n.init(),t.on("blur",(function(){n.show&&(n.show=!1,n.render(n.option))})),t.on("focus",(function(t){var e=(0,b.includeFromEvent)(t,a.setting),r=(0,b.includeFromEvent)(t,n.$parent);!n.show||e||r||(n.show=!1,n.render(n.option))}))),n}return h(r,[{key:"defaultSettings",get:function(){var t=[],e=this.art.option;return e.playbackRate&&t.push((0,d.default)(this.art)),e.aspectRatio&&t.push((0,o.default)(this.art)),e.flip&&t.push((0,a.default)(this.art)),e.subtitleOffset&&t.push((0,v.default)(this.art)),t}},{key:"init",value:function(){var t=this.art.option,e=[].concat(A(this.defaultSettings),A(t.settings));this.option=r.makeRecursion(e),this.destroy(),this.render(this.option)}},{key:"destroy",value:function(){for(var t=0;t<this.events.length;t++)this.art.events.remove(this.events[t]);this.$parent.innerHTML="",this.events=[],this.cache=new Map}},{key:"find",value:function(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.option,r=0;r<e.length;r++){var n=e[r];if(n.name===t)return n;var i=this.find(t,n.selector||[]);if(i)return i}}},{key:"remove",value:function(t){var e=this.find(t);(0,w.errorHandle)(e,"Can't find [".concat(t,"] from the [setting]"));var n=e.$parentItem?e.$parentItem.selector:this.option;return n.splice(n.indexOf(e),1),this.option=r.makeRecursion(this.option),this.destroy(),this.render(this.option),this.option}},{key:"update",value:function(t){var e=this.find(t.name);return e?(Object.assign(e,t),this.option=r.makeRecursion(this.option),this.destroy(),this.render(this.option)):this.add(t),this.option}},{key:"add",value:function(t){return this.option.push(t),this.option=r.makeRecursion(this.option),this.destroy(),this.render(this.option),this.option}},{key:"creatHeader",value:function(t){var e=this,r=this.art,n=r.icons,i=r.proxy,a=r.constructor,s=(0,b.createElement)("div");(0,b.setStyle)(s,"height","".concat(a.SETTING_ITEM_HEIGHT,"px")),(0,b.addClass)(s,"art-setting-item"),(0,b.addClass)(s,"art-setting-item-back");var o=(0,b.append)(s,'<div class="art-setting-item-left"></div>'),u=(0,b.createElement)("div");(0,b.addClass)(u,"art-setting-item-left-icon"),(0,b.append)(u,n.arrowLeft),(0,b.append)(o,u),(0,b.append)(o,t.$parentItem.html);var l=i(s,"click",(function(){return e.render(t.$parentList)}));return this.events.push(l),s}},{key:"creatItem",value:function(t,e){var r=this,n=this.art,i=n.icons,a=n.proxy,s=n.constructor,o=(0,b.createElement)("div");(0,b.addClass)(o,"art-setting-item"),(0,b.setStyle)(o,"height","".concat(s.SETTING_ITEM_HEIGHT,"px")),(0,b.isStringOrNumber)(e.name)&&(o.dataset.name=e.name),(0,b.isStringOrNumber)(e.value)&&(o.dataset.value=e.value);var c=(0,b.append)(o,'<div class="art-setting-item-left"></div>'),A=(0,b.append)(o,'<div class="art-setting-item-right"></div>'),d=(0,b.createElement)("div");switch((0,b.addClass)(d,"art-setting-item-left-icon"),t){case"switch":case"range":(0,b.append)(d,(0,b.isStringOrNumber)(e.icon)||e.icon instanceof Element?e.icon:i.config);break;case"selector":e.selector&&e.selector.length?(0,b.append)(d,(0,b.isStringOrNumber)(e.icon)||e.icon instanceof Element?e.icon:i.config):(0,b.append)(d,i.check)}(0,b.append)(c,d),e.$icon=d,(0,b.def)(e,"icon",{configurable:!0,get:function(){return d.innerHTML},set:function(t){(0,b.isStringOrNumber)(t)&&(d.innerHTML=t)}});var f=(0,b.createElement)("div");(0,b.addClass)(f,"art-setting-item-left-text"),(0,b.append)(f,e.html||""),(0,b.append)(c,f),e.$html=f,(0,b.def)(e,"html",{configurable:!0,get:function(){return f.innerHTML},set:function(t){(0,b.isStringOrNumber)(t)&&(f.innerHTML=t)}});var h=(0,b.createElement)("div");switch((0,b.addClass)(h,"art-setting-item-right-tooltip"),(0,b.append)(h,e.tooltip||""),(0,b.append)(A,h),e.$tooltip=h,(0,b.def)(e,"tooltip",{configurable:!0,get:function(){return h.innerHTML},set:function(t){(0,b.isStringOrNumber)(t)&&(h.innerHTML=t)}}),t){case"switch":var p=(0,b.createElement)("div");(0,b.addClass)(p,"art-setting-item-right-icon");var g=(0,b.append)(p,i.switchOn),v=(0,b.append)(p,i.switchOff);(0,b.setStyle)(e.switch?v:g,"display","none"),(0,b.append)(A,p),e.$switch=e.switch,(0,b.def)(e,"switch",{configurable:!0,get:function(){return e.$switch},set:function(t){e.$switch=t,t?((0,b.setStyle)(v,"display","none"),(0,b.setStyle)(g,"display",null)):((0,b.setStyle)(v,"display",null),(0,b.setStyle)(g,"display","none"))}});break;case"range":var m=(0,b.createElement)("div");(0,b.addClass)(m,"art-setting-item-right-icon");var y=(0,b.append)(m,'<input type="range">');y.value=e.range[0]||0,y.min=e.range[1]||0,y.max=e.range[2]||10,y.step=e.range[3]||1,(0,b.addClass)(y,"art-setting-range"),(0,b.append)(A,m),e.$range=y,(0,b.def)(e,"range",{configurable:!0,get:function(){return y.valueAsNumber},set:function(t){y.value=Number(t)}});break;case"selector":if(e.selector&&e.selector.length){var w=(0,b.createElement)("div");(0,b.addClass)(w,"art-setting-item-right-icon"),(0,b.append)(w,i.arrowRight),(0,b.append)(A,w)}}switch(t){case"switch":if(e.onSwitch){var _=a(o,"click",function(){var t=l(u.mark((function t(n){return u.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.onSwitch.call(r.art,e,o,n);case 2:e.switch=t.sent;case 3:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());this.events.push(_)}break;case"range":if(e.$range){if(e.onRange){var B=a(e.$range,"change",function(){var t=l(u.mark((function t(n){return u.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.onRange.call(r.art,e,o,n);case 2:e.tooltip=t.sent;case 3:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());this.events.push(B)}if(e.onChange){var C=a(e.$range,"input",function(){var t=l(u.mark((function t(n){return u.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.onChange.call(r.art,e,o,n);case 2:e.tooltip=t.sent;case 3:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());this.events.push(C)}}break;case"selector":var E=a(o,"click",function(){var t=l(u.mark((function t(n){var i,a,s;return u.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!e.selector||!e.selector.length){t.next=4;break}r.render(e.selector,e.width),t.next=11;break;case 4:for((0,b.inverseClass)(o,"art-current"),i=0;i<e.$parentItem.selector.length;i++)a=e.$parentItem.selector[i],a.default=a===e;if(e.$parentList&&r.render(e.$parentList),!e.$parentItem||!e.$parentItem.onSelect){t.next=11;break}return t.next=9,e.$parentItem.onSelect.call(r.art,e,o,n);case 9:s=t.sent,e.$parentItem.$tooltip&&(0,b.isStringOrNumber)(s)&&(e.$parentItem.$tooltip.innerHTML=s);case 11:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());this.events.push(E),e.default&&(0,b.addClass)(o,"art-current")}return o}},{key:"updateStyle",value:function(t){var e=this.art,r=e.controls,n=e.constructor,i=e.template,a=i.$player,s=i.$setting;if(r.setting&&!b.isMobile){var o=t||n.SETTING_WIDTH,u=r.setting.getBoundingClientRect(),l=u.left,c=u.width,A=a.getBoundingClientRect(),d=A.left,f=A.width,h=l-d+c/2-o/2;h+o>f?((0,b.setStyle)(s,"left",null),(0,b.setStyle)(s,"right",null)):((0,b.setStyle)(s,"left","".concat(h,"px")),(0,b.setStyle)(s,"right","auto"))}}},{key:"render",value:function(t,e){var r=this.art.constructor;if(this.cache.has(t)){var n=this.cache.get(t);(0,b.inverseClass)(n,"art-current"),(0,b.setStyle)(this.$parent,"width","".concat(n.dataset.width,"px")),(0,b.setStyle)(this.$parent,"height","".concat(n.dataset.height,"px")),this.updateStyle(Number(n.dataset.width))}else{var i=(0,b.createElement)("div");(0,b.addClass)(i,"art-setting-panel"),i.dataset.width=e||r.SETTING_WIDTH,i.dataset.height=t.length*r.SETTING_ITEM_HEIGHT,t[0]&&t[0].$parentItem&&((0,b.append)(i,this.creatHeader(t[0])),i.dataset.height=Number(i.dataset.height)+r.SETTING_ITEM_HEIGHT);for(var a=0;a<t.length;a++){var s=t[a];(0,b.has)(s,"switch")?(0,b.append)(i,this.creatItem("switch",s)):(0,b.has)(s,"range")?(0,b.append)(i,this.creatItem("range",s)):(0,b.append)(i,this.creatItem("selector",s))}(0,b.append)(this.$parent,i),this.cache.set(t,i),(0,b.inverseClass)(i,"art-current"),(0,b.setStyle)(this.$parent,"width","".concat(i.dataset.width,"px")),(0,b.setStyle)(this.$parent,"height","".concat(i.dataset.height,"px")),this.updateStyle(Number(i.dataset.width)),t[0]&&t[0].$parentItem&&t[0].$parentItem.mounted&&t[0].$parentItem.mounted.call(this.art,i,t[0].$parentItem)}}}],[{key:"makeRecursion",value:function(t,e,n){for(var i=0;i<t.length;i++){var a=t[i];a.$parentItem=e,a.$parentList=n,r.makeRecursion(a.selector||[],a,t)}return t}}]),r}(y.default);r.default=_},{"./flip":"bNOaj","./aspectRatio":"5lAsp","./playbackRate":"e6hsR","./subtitleOffset":"fFNEr","../utils/component":"guki8","../utils/error":"2nFlF","../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],bNOaj:[function(t,e,r){t("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=t("../utils");r.default=function(t){var e=t.i18n,r=t.icons,i=t.constructor,a=i.SETTING_ITEM_WIDTH,s=i.FLIP;function o(t,r,i){r&&(r.innerText=e.get((0,n.capitalize)(i)));var a=(0,n.queryAll)(".art-setting-item",t).find((function(t){return t.dataset.value===i}));a&&(0,n.inverseClass)(a,"art-current")}return{width:a,name:"flip",html:e.get("Video Flip"),tooltip:e.get((0,n.capitalize)(t.flip)),icon:r.flip,selector:s.map((function(r){return{value:r,name:"aspect-ratio-".concat(r),default:r===t.flip,html:e.get((0,n.capitalize)(r))}})),onSelect:function(e){return t.flip=e.value,e.html},mounted:function(e,r){o(e,r.$tooltip,t.flip),t.on("flip",(function(){o(e,r.$tooltip,t.flip)}))}}}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"5lAsp":[function(t,e,r){t("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=t("../utils");r.default=function(t){var e=t.i18n,r=t.icons,i=t.constructor,a=i.SETTING_ITEM_WIDTH,s=i.ASPECT_RATIO;function o(t){return"default"===t?e.get("Default"):t}function u(t,e,r){e&&(e.innerText=o(r));var i=(0,n.queryAll)(".art-setting-item",t).find((function(t){return t.dataset.value===r}));i&&(0,n.inverseClass)(i,"art-current")}return{width:a,name:"aspect-ratio",html:e.get("Aspect Ratio"),icon:r.aspectRatio,tooltip:o(t.aspectRatio),selector:s.map((function(e){return{value:e,name:"aspect-ratio-".concat(e),default:e===t.aspectRatio,html:o(e)}})),onSelect:function(e){return t.aspectRatio=e.value,e.html},mounted:function(e,r){u(e,r.$tooltip,t.aspectRatio),t.on("aspectRatio",(function(){u(e,r.$tooltip,t.aspectRatio)}))}}}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],e6hsR:[function(t,e,r){t("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=t("../utils");r.default=function(t){var e=t.i18n,r=t.icons,i=t.constructor,a=i.SETTING_ITEM_WIDTH,s=i.PLAYBACK_RATE;function o(t){return 1===t?e.get("Normal"):t.toFixed(1)}function u(t,e,r){e&&(e.innerText=o(r));var i=(0,n.queryAll)(".art-setting-item",t).find((function(t){return Number(t.dataset.value)===r}));i&&(0,n.inverseClass)(i,"art-current")}return{width:a,name:"playback-rate",html:e.get("Play Speed"),tooltip:o(t.playbackRate),icon:r.playbackRate,selector:s.map((function(e){return{value:e,name:"aspect-ratio-".concat(e),default:e===t.playbackRate,html:o(e)}})),onSelect:function(e){return t.playbackRate=e.value,e.html},mounted:function(e,r){u(e,r.$tooltip,t.playbackRate),t.on("video:ratechange",(function(){u(e,r.$tooltip,t.playbackRate)}))}}}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],fFNEr:[function(t,e,r){t("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r),r.default=function(t){var e=t.i18n,r=t.icons,n=t.constructor;return{width:n.SETTING_ITEM_WIDTH,name:"subtitle-offset",html:e.get("Subtitle Offset"),icon:r.subtitle,tooltip:"0s",range:[0,-5,5,.1],onChange:function(e){return t.subtitleOffset=e.range,e.range+"s"}}}},{"@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],f2Thp:[function(t,e,r){t("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r),r.default=function(){"use strict";function n(){f(this,n),this.name="artplayer_settings",this.settings={}}return h(n,[{key:"get",value:function(t){try{var r=JSON.parse(window.localStorage.getItem(this.name))||{};return t?r[t]:r}catch(e){return t?this.settings[t]:this.settings}}},{key:"set",value:function(t,e){try{var n=Object.assign({},this.get(),c({},t,e));window.localStorage.setItem(this.name,JSON.stringify(n))}catch(r){this.settings[t]=e}}},{key:"del",value:function(t){try{var r=this.get();delete r[t],window.localStorage.setItem(this.name,JSON.stringify(r))}catch(e){delete this.settings[t]}}},{key:"clear",value:function(){try{window.localStorage.removeItem(this.name)}catch(t){this.settings={}}}}]),n}()},{"@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"96ThS":[function(t,e,r){var n=t("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var i=t("../utils"),a=t("./miniProgressBar"),s=n.interopDefault(a),o=t("./autoOrientation"),u=n.interopDefault(o),l=t("./autoPlayback"),c=n.interopDefault(l),A=t("./fastForward"),d=n.interopDefault(A),p=t("./lock"),g=n.interopDefault(p);r.default=function(){"use strict";function t(e){f(this,t),this.art=e,this.id=0;var r=e.option;r.miniProgressBar&&!r.isLive&&this.add(s.default),r.lock&&i.isMobile&&this.add(g.default),r.autoPlayback&&!r.isLive&&this.add(c.default),r.autoOrientation&&i.isMobile&&this.add(u.default),r.fastForward&&i.isMobile&&!r.isLive&&this.add(d.default);for(var n=0;n<r.plugins.length;n++)this.add(r.plugins[n])}return h(t,[{key:"add",value:function(t){var e=this;this.id+=1;var r=t.call(this.art,this.art);return r instanceof Promise?r.then((function(r){return e.next(t,r)})):this.next(t,r)}},{key:"next",value:function(t,e){var r=e&&e.name||t.name||"plugin".concat(this.id);return(0,i.errorHandle)(!(0,i.has)(this,r),"Cannot add a plugin that already has the same name: ".concat(r)),(0,i.def)(this,r,{value:e}),this}}]),t}()},{"../utils":"h3rH9","./miniProgressBar":"iBx4M","./autoOrientation":"2O9qO","./autoPlayback":"iiOc1","./fastForward":"d9NUE","./lock":"5dnKh","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],iBx4M:[function(t,e,r){t("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=t("../utils");r.default=function(t){return t.on("control",(function(e){e?(0,n.removeClass)(t.template.$player,"art-mini-progress-bar"):(0,n.addClass)(t.template.$player,"art-mini-progress-bar")})),{name:"mini-progress-bar"}}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"2O9qO":[function(t,e,r){t("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=t("../utils");r.default=function(t){var e=t.constructor,r=t.template,i=r.$player,a=r.$video;return t.on("fullscreenWeb",(function(r){if(r){var s=a.videoWidth,o=a.videoHeight,u=document.documentElement,l=u.clientWidth,c=u.clientHeight;(s>o&&l<c||s<o&&l>c)&&setTimeout((function(){(0,n.setStyle)(i,"width","".concat(c,"px")),(0,n.setStyle)(i,"height","".concat(l,"px")),(0,n.setStyle)(i,"transform-origin","0 0"),(0,n.setStyle)(i,"transform","rotate(90deg) translate(0, -".concat(l,"px)")),(0,n.addClass)(i,"art-auto-orientation"),t.isRotate=!0,t.emit("resize")}),e.AUTO_ORIENTATION_TIME)}else(0,n.hasClass)(i,"art-auto-orientation")&&((0,n.removeClass)(i,"art-auto-orientation"),t.isRotate=!1,t.emit("resize"))})),t.on("fullscreen",function(){var t=l(u.mark((function t(e){var r,s,o,l,c,A,d;return u.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(r=screen.orientation.type,!e){t.next=10;break}if(s=a.videoWidth,o=a.videoHeight,l=document.documentElement,c=l.clientWidth,A=l.clientHeight,!(s>o&&c<A||s<o&&c>A)){t.next=8;break}return d=r.startsWith("portrait")?"landscape":"portrait",t.next=7,screen.orientation.lock(d);case 7:(0,n.addClass)(i,"art-auto-orientation-fullscreen");case 8:t.next=15;break;case 10:if(t.t0=(0,n.hasClass)(i,"art-auto-orientation-fullscreen"),!t.t0){t.next=15;break}return t.next=14,screen.orientation.lock(r);case 14:(0,n.removeClass)(i,"art-auto-orientation-fullscreen");case 15:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()),{name:"autoOrientation",get state(){return(0,n.hasClass)(i,"art-auto-orientation")}}}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],iiOc1:[function(t,e,r){t("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=t("../utils");r.default=function(t){var e=t.i18n,r=t.icons,i=t.storage,a=t.constructor,s=t.proxy,o=t.template.$poster,u=t.layers.add({name:"auto-playback",html:'<div class="art-auto-playback-close"></div><div class="art-auto-playback-last"></div><div class="art-auto-playback-jump"></div>'}),l=(0,n.query)(".art-auto-playback-last",u),c=(0,n.query)(".art-auto-playback-jump",u),A=(0,n.query)(".art-auto-playback-close",u);return t.on("video:timeupdate",(function(){if(t.playing){var e=i.get("times")||{},r=Object.keys(e);r.length>a.AUTO_PLAYBACK_MAX&&delete e[r[0]],e[t.option.id||t.option.url]=t.currentTime,i.set("times",e)}})),t.on("ready",(function(){var d=(i.get("times")||{})[t.option.id||t.option.url];d&&d>=a.AUTO_PLAYBACK_MIN&&((0,n.append)(A,r.close),(0,n.setStyle)(u,"display","flex"),l.innerText="".concat(e.get("Last Seen")," ").concat((0,n.secondToTime)(d)),c.innerText=e.get("Jump Play"),s(A,"click",(function(){(0,n.setStyle)(u,"display","none")})),s(c,"click",(function(){t.seek=d,t.play(),(0,n.setStyle)(o,"display","none"),(0,n.setStyle)(u,"display","none")})),t.once("video:timeupdate",(function(){setTimeout((function(){(0,n.setStyle)(u,"display","none")}),a.AUTO_PLAYBACK_TIMEOUT)})))})),{name:"auto-playback",get times(){return i.get("times")||{}},clear:function(){return i.del("times")},delete:function(t){var e=i.get("times")||{};return delete e[t],i.set("times",e),e}}}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],d9NUE:[function(t,e,r){t("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=t("../utils");r.default=function(t){var e=t.constructor,r=t.proxy,i=t.template,a=i.$player,s=i.$video,o=null,u=!1,l=1,c=function(){clearTimeout(o),u&&(u=!1,t.playbackRate=l,(0,n.removeClass)(a,"art-fast-forward"))};return r(s,"touchstart",(function(r){1===r.touches.length&&t.playing&&!t.isLock&&(o=setTimeout((function(){u=!0,l=t.playbackRate,t.playbackRate=e.FAST_FORWARD_VALUE,(0,n.addClass)(a,"art-fast-forward")}),e.FAST_FORWARD_TIME))})),r(document,"touchmove",c),r(document,"touchend",c),{name:"fastForward",get state(){return(0,n.hasClass)(a,"art-fast-forward")}}}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"5dnKh":[function(t,e,r){t("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=t("../utils");r.default=function(t){var e=t.layers,r=t.icons,i=t.template.$player;return e.add({name:"lock",mounted:function(e){var i=(0,n.append)(e,r.lock),a=(0,n.append)(e,r.unlock);(0,n.setStyle)(i,"display","none"),t.on("lock",(function(t){t?((0,n.setStyle)(i,"display","inline-flex"),(0,n.setStyle)(a,"display","none")):((0,n.setStyle)(i,"display","none"),(0,n.setStyle)(a,"display","inline-flex"))}))},click:function(){(0,n.hasClass)(i,"art-lock")?((0,n.removeClass)(i,"art-lock"),this.isLock=!1,t.emit("lock",!1)):((0,n.addClass)(i,"art-lock"),this.isLock=!0,t.emit("lock",!0))}}),{name:"lock",get state(){return(0,n.hasClass)(i,"art-lock")}}}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}]},["abjMI"],"abjMI","parcelRequireb749")}).call(this,r("f3b9")["default"],r("0ee4"),r("dc84")(t))},cbc9:function(t,e,r){"use strict";(function(t){var n=r("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(r("127e")),a=n(r("34cf")),s=n(r("ee10")),o=n(r("329a")),u=n(r("e58f"));function l(t,e){var r="undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(!t)return;if("string"===typeof t)return c(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return c(t,e)}(t))||e&&t&&"number"===typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},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 a,s=!0,o=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return s=t.done,t},e:function(t){o=!0,a=t},f:function(){try{s||null==r.return||r.return()}finally{if(o)throw a}}}}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var A={components:{downloadingItem:u.default},data:function(){return{isEmpty:!1,loaded:!1,taskArr:[],progress:0,isDeleteMode:!1,checked:[]}},methods:{selectAll:function(){var e=this;this.taskArr.map((function(r){e.checked.includes(r.id+"")||(e.checked.push(r.id+""),t("log",e.checked," at pages/user/downloading-class.vue:49"),r.is_checked=!0)}))},deldownload:function(){var t=this;return(0,s.default)(i.default.mark((function e(){var r,n,s,u,c,A,d;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!(t.checked.length>0&&t.taskArr.length>0)){e.next=21;break}r=[],n=l(t.taskArr.entries()),e.prev=3,n.s();case 5:if((s=n.n()).done){e.next=11;break}if(u=(0,a.default)(s.value,2),c=u[0],A=u[1],!0!==A.is_checked){e.next=9;break}return e.delegateYield(i.default.mark((function e(){var n,a;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=A,n.pause(),a=t.getRelFileName(n.filename),e.next=5,o.default.deleteFile(a).then((function(t){n.abort()}));case 5:r.push(c);case 6:case"end":return e.stop()}}),e)}))(),"t0",9);case 9:e.next=5;break;case 11:e.next=16;break;case 13:e.prev=13,e.t1=e["catch"](3),n.e(e.t1);case 16:return e.prev=16,n.f(),e.finish(16);case 19:for(d=r.length-1;d>=0;d--)t.taskArr.splice(r[d],1);t.checked=[];case 21:case"end":return e.stop()}}),e,null,[[3,13,16,19]])})))()},changeCheck:function(t){var e=this;this.checked=t.detail.value,this.taskArr.map((function(t){e.checked.includes(t.id+"")?t.is_checked=!0:t.is_checked=!1}))},showCancel:function(t){this.isDeleteMode=t;for(var e=0;e<this.taskArr.length;e++){var r=this.taskArr[e];this.$refs["downloadItem"+r.options.filename][0].showCancel(this.isDeleteMode)}},init:function(){var t=this;return(0,s.default)(i.default.mark((function e(){return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!1!==t.loaded){e.next=5;break}return e.next=3,o.default.task_downloads().then((function(e){for(var r=0;r<e.length;r++){var n=e[r];n.is_checked=!1,n.state>0&&n.state<=3?(t.taskArr.push(n),n.addEventListener("statechanged",t.onStateChanged,!1),0==Object.keys(n.eventHandlers).length&&n.start()):5==n.state&&t.taskArr.push(n)}t.isEmpty=0==t.taskArr.length,t.loaded=!0}));case 3:e.next=5;break;case 5:case"end":return e.stop()}}),e)})))()},getRelFileName:function(t){var e,r=t.lastIndexOf("/");return e=t.substring(r+1,t.length),e},cancelTask:function(t){var e=this;return(0,s.default)(i.default.mark((function r(){var n,a,s;return i.default.wrap((function(r){while(1)switch(r.prev=r.next){case 0:n=i.default.mark((function r(n){var a,s;return i.default.wrap((function(r){while(1)switch(r.prev=r.next){case 0:if(a=e.taskArr[n],a.id!=t){r.next=8;break}return a.pause(),s=e.getRelFileName(a.filename),r.next=6,o.default.deleteFile(s).then((function(t){a.abort()}));case 6:return e.taskArr.splice(n,1),r.abrupt("return","break");case 8:case"end":return r.stop()}}),r)})),a=0;case 2:if(!(a<e.taskArr.length)){r.next=10;break}return r.delegateYield(n(a),"t0",4);case 4:if(s=r.t0,"break"!==s){r.next=7;break}return r.abrupt("break",10);case 7:a++,r.next=2;break;case 10:case"end":return r.stop()}}),r)})))()},pauseDownload:function(t){var e=this;return(0,s.default)(i.default.mark((function r(){var n,a;return i.default.wrap((function(r){while(1)switch(r.prev=r.next){case 0:for(n=0;n<e.taskArr.length;n++)a=e.taskArr[n],a.id==t&&a.pause();case 1:case"end":return r.stop()}}),r)})))()},resumeDownload:function(t){var e=this;return(0,s.default)(i.default.mark((function r(){var n,a;return i.default.wrap((function(r){while(1)switch(r.prev=r.next){case 0:for(n=0;n<e.taskArr.length;n++)a=e.taskArr[n],a.id==t&&a.resume();case 1:case"end":return r.stop()}}),r)})))()},getProgress:function(e){var r=0==e.totalSize?0:Math.round(e.downloadedSize/e.totalSize*1e4)/100,n=parseInt(r);return n>100&&(t("log","task.downloadedSize ",e.downloadedSize," at pages/user/downloading-class.vue:168"),t("log","task.totalSize ",e.totalSize," at pages/user/downloading-class.vue:169")),n},onStateChanged:function(e,r){switch(e.state){case 1:break;case 2:break;case 3:var n=this.getProgress(e);t("log",n," at pages/user/downloading-class.vue:181"),this.$refs["downloadItem"+item.options.filename][0].setProgress(n);break;case 4:t("log","download finish"," at pages/user/downloading-class.vue:185");for(var i=0;i<this.taskArr.length;i++){var a=this.taskArr[i];if(a.id==e.id){this.taskArr.splice(i,1);break}}o.default.saveSuccessFileName(e.options.filename);break}}}};e.default=A}).call(this,r("f3b9")["default"])},cbe7:function(t,e,r){"use strict";r.r(e);var n=r("23b5"),i=r.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return n[t]}))}(a);e["default"]=i.a},cd2f:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={props:{accept:{type:String,default:uni.$u.props.upload.accept},capture:{type:[String,Array],default:uni.$u.props.upload.capture},compressed:{type:Boolean,default:uni.$u.props.upload.compressed},camera:{type:String,default:uni.$u.props.upload.camera},maxDuration:{type:Number,default:uni.$u.props.upload.maxDuration},uploadIcon:{type:String,default:uni.$u.props.upload.uploadIcon},uploadIconColor:{type:String,default:uni.$u.props.upload.uploadIconColor},useBeforeRead:{type:Boolean,default:uni.$u.props.upload.useBeforeRead},afterRead:{type:Function,default:null},beforeRead:{type:Function,default:null},previewFullImage:{type:Boolean,default:uni.$u.props.upload.previewFullImage},maxCount:{type:[String,Number],default:uni.$u.props.upload.maxCount},disabled:{type:Boolean,default:uni.$u.props.upload.disabled},imageMode:{type:String,default:uni.$u.props.upload.imageMode},name:{type:String,default:uni.$u.props.upload.name},sizeType:{type:Array,default:uni.$u.props.upload.sizeType},multiple:{type:Boolean,default:uni.$u.props.upload.multiple},deletable:{type:Boolean,default:uni.$u.props.upload.deletable},maxSize:{type:[String,Number],default:uni.$u.props.upload.maxSize},fileList:{type:Array,default:uni.$u.props.upload.fileList},uploadText:{type:String,default:uni.$u.props.upload.uploadText},width:{type:[String,Number],default:uni.$u.props.upload.width},height:{type:[String,Number],default:uni.$u.props.upload.height},previewImage:{type:Boolean,default:uni.$u.props.upload.previewImage}}};e.default=n},ce10:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={sticky:{offsetTop:0,customNavHeight:0,disabled:!1,bgColor:"transparent",zIndex:"",index:""}}},ce99:function(t,e,r){"use strict";r.d(e,"b",(function(){return i})),r.d(e,"c",(function(){return a})),r.d(e,"a",(function(){return n}));var n={uTransition:r("ba94").default,uLoadingIcon:r("42fe").default},i=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("u-transition",{attrs:{show:t.loading,"custom-style":{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:t.bgColor,display:"flex"},_i:0}},[r("view",{staticClass:t._$s(1,"sc","u-loading-page"),attrs:{_i:1}},[r("view",{staticClass:t._$s(2,"sc","u-loading-page__warpper"),attrs:{_i:2}},[r("view",{staticClass:t._$s(3,"sc","u-loading-page__warpper__loading-icon"),attrs:{_i:3}},[t._$s(4,"i",t.image)?r("image",{staticClass:t._$s(4,"sc","u-loading-page__warpper__loading-icon__img"),style:t._$s(4,"s",{width:t.$u.addUnit(t.iconSize),height:t.$u.addUnit(t.iconSize)}),attrs:{src:t._$s(4,"a-src",t.image),_i:4}}):r("u-loading-icon",{attrs:{mode:t.loadingMode,size:t.$u.addUnit(t.iconSize),color:t.loadingColor,_i:5}})],1),t._t("default",[r("text",{staticClass:t._$s(7,"sc","u-loading-page__warpper__text"),style:t._$s(7,"s",{fontSize:t.$u.addUnit(t.fontSize),color:t.color}),attrs:{_i:7}},[t._v(t._$s(7,"t0-0",t._s(t.loadingText)))])],{_i:6})],2)])])},a=[]},cee4:function(t,e,r){if("undefined"===typeof Promise||Promise.prototype.finally||(Promise.prototype.finally=function(t){var e=this.constructor;return this.then((function(r){return e.resolve(t()).then((function(){return r}))}),(function(r){return e.resolve(t()).then((function(){throw r}))}))}),"undefined"!==typeof uni&&uni&&uni.requireGlobal){var n=uni.requireGlobal();ArrayBuffer=n.ArrayBuffer,Int8Array=n.Int8Array,Uint8Array=n.Uint8Array,Uint8ClampedArray=n.Uint8ClampedArray,Int16Array=n.Int16Array,Uint16Array=n.Uint16Array,Int32Array=n.Int32Array,Uint32Array=n.Uint32Array,Float32Array=n.Float32Array,Float64Array=n.Float64Array,BigInt64Array=n.BigInt64Array,BigUint64Array=n.BigUint64Array}uni.restoreGlobal&&uni.restoreGlobal(weex,plus,setTimeout,clearTimeout,setInterval,clearInterval),__definePage("pages/splash/splash",(function(){return Vue.extend(r("8075").default)})),__definePage("pages/home/index",(function(){return Vue.extend(r("9a7b").default)})),__definePage("pages/home/channel",(function(){return Vue.extend(r("e112").default)})),__definePage("pages/home/discover",(function(){return Vue.extend(r("c6f6").default)})),__definePage("pages/search/search",(function(){return Vue.extend(r("aaee").default)})),__definePage("pages/album/details",(function(){return Vue.extend(r("e6b5").default)})),__definePage("pages/album/actor-details",(function(){return Vue.extend(r("667d").default)})),__definePage("pages/video/videoIntroduction",(function(){return Vue.extend(r("c44a").default)})),__definePage("pages/video/video",(function(){return Vue.extend(r("98b2").default)})),__definePage("pages/video/video-app",(function(){return Vue.extend(r("5b20").default)})),__definePage("pages/video/video-guide",(function(){return Vue.extend(r("18ce").default)})),__definePage("pages/user/index",(function(){return Vue.extend(r("d80b").default)})),__definePage("pages/user/share",(function(){return Vue.extend(r("1c96").default)})),__definePage("pages/user/share-way",(function(){return Vue.extend(r("0629").default)})),__definePage("pages/user/share-center",(function(){return Vue.extend(r("1ab4").default)})),__definePage("pages/user/share-record",(function(){return Vue.extend(r("8a14").default)})),__definePage("pages/user/share-money",(function(){return Vue.extend(r("c087").default)})),__definePage("pages/user/recharge",(function(){return Vue.extend(r("15ce").default)})),__definePage("pages/user/bullion",(function(){return Vue.extend(r("56b7").default)})),__definePage("pages/user/pay-help",(function(){return Vue.extend(r("f0b3").default)})),__definePage("pages/user/pay-record",(function(){return Vue.extend(r("d837").default)})),__definePage("pages/user/coin-wallet",(function(){return Vue.extend(r("89e5").default)})),__definePage("pages/user/coin-exchange",(function(){return Vue.extend(r("014b").default)})),__definePage("pages/user/vip-exchange",(function(){return Vue.extend(r("27d2").default)})),__definePage("pages/user/coin-record",(function(){return Vue.extend(r("aa32").default)})),__definePage("pages/user/withdrawal",(function(){return Vue.extend(r("25bb").default)})),__definePage("pages/user/withdrawal-record",(function(){return Vue.extend(r("58d3").default)})),__definePage("pages/user/task",(function(){return Vue.extend(r("3296").default)})),__definePage("pages/user/download",(function(){return Vue.extend(r("5bd2").default)})),__definePage("pages/user/history",(function(){return Vue.extend(r("7e66").default)})),__definePage("pages/user/purchase",(function(){return Vue.extend(r("b906").default)})),__definePage("pages/user/favorites",(function(){return Vue.extend(r("07c3").default)})),__definePage("pages/user/notice",(function(){return Vue.extend(r("52c5").default)})),__definePage("pages/user/setup",(function(){return Vue.extend(r("29da").default)})),__definePage("pages/user/info",(function(){return Vue.extend(r("8a1e").default)})),__definePage("pages/user/password",(function(){return Vue.extend(r("2200").default)})),__definePage("pages/user/agreement",(function(){return Vue.extend(r("ee49").default)})),__definePage("pages/user/privacy",(function(){return Vue.extend(r("5843").default)})),__definePage("pages/feedback/feedback",(function(){return Vue.extend(r("199c").default)})),__definePage("pages/feedback/feedback-record",(function(){return Vue.extend(r("e5ca").default)})),__definePage("pages/user/login",(function(){return Vue.extend(r("da72").default)})),__definePage("pages/user/reg",(function(){return Vue.extend(r("d08c").default)})),__definePage("pages/user/find-password",(function(){return Vue.extend(r("24cb").default)})),__definePage("pages/user/sign",(function(){return Vue.extend(r("44d8").default)}))},cf10:function(t,e,r){"use strict";r.r(e);var n=r("231d"),i=r("6831");for(var a in i)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return i[t]}))}(a);var s=r("828b"),o=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);e["default"]=o.exports},cf65:function(t,e,r){"use strict";r.d(e,"b",(function(){return i})),r.d(e,"c",(function(){return a})),r.d(e,"a",(function(){return n}));var n={uLoadmore:r("bc5a").default,uLoadingPage:r("ef90").default},i=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("scroll-view",{attrs:{"refresher-triggered":t._$s(0,"a-refresher-triggered",t.refreshTriggered),_i:0},on:{refresherrefresh:t.refresh,scrolltolower:t.getTypeList}},[t._$s(1,"i",t.slideshow.length)?r("swiper",{staticClass:t._$s(1,"sc","index-banner"),attrs:{_i:1}},t._l(t._$s(2,"f",{forItems:t.slideshow}),(function(e,n,i,a){return t._$s("2-"+a,"i",n<10)?r("swiper-item",{key:t._$s(2,"f",{forIndex:i,key:n}),staticClass:t._$s("2-"+a,"sc","index-banner-item"),attrs:{_i:"2-"+a},on:{click:function(r){return t.bannerOpen(e)}}},[r("vod-image",{staticClass:t._$s("3-"+a,"sc","index-banner-image"),attrs:{src:e.pic,_i:"3-"+a}})],1):t._e()})),0):t._e(),r("channel-class",{ref:"class",attrs:{pid:t.id,index:t.index,_i:4}}),r("view",{directives:[{name:"show",rawName:"v-show",value:t._$s(5,"v-show",t.loadmore),expression:"_$s(5,'v-show',loadmore)"}],staticClass:t._$s(5,"sc","load-more"),attrs:{_i:5}},[r("u-loadmore",{attrs:{status:"loading","loading-icon":"semicircle",line:!0,"margin-top":20,_i:6}})],1),r("u-loading-page",{attrs:{loading:!1===t.loaded,bgColor:"none",fontSize:"16",_i:7}})],1)},a=[]},cf8e:function(t,e,r){"use strict";var n=r("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(r("3f4d")),a={name:"u-loading-icon",mixins:[uni.$u.mpMixin,uni.$u.mixin,i.default],data:function(){return{array12:Array.from({length:12}),aniAngel:360,webviewHide:!1,loading:!1}},computed:{otherBorderColor:function(){var t=uni.$u.colorGradient(this.color,"#ffffff",100)[80];return"circle"===this.mode?this.inactiveColor?this.inactiveColor:t:"transparent"}},watch:{show:function(t){}},mounted:function(){this.init()},methods:{init:function(){var t=this;setTimeout((function(){t.show&&t.addEventListenerToWebview()}),20)},addEventListenerToWebview:function(){var t=this,e=getCurrentPages(),r=e[e.length-1],n=r.$getAppWebview();n.addEventListener("hide",(function(){t.webviewHide=!0})),n.addEventListener("show",(function(){t.webviewHide=!1}))}}};e.default=a},cf98:function(t,e,r){"use strict";var n=r("47a9"),i=r("3b2d"),a=n(r("7ca3"));r("cee4");var s=n(r("7d69")),o=n(r("951c")),u=(n(r("31e9")),function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==i(t)&&"function"!==typeof t)return{default:t};var r=l(e);if(r&&r.has(t))return r.get(t);var n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if("default"!==s&&Object.prototype.hasOwnProperty.call(t,s)){var o=a?Object.getOwnPropertyDescriptor(t,s):null;o&&(o.get||o.set)?Object.defineProperty(n,s,o):n[s]=t[s]}n.default=t,r&&r.set(t,n);return n}(r("c557")));function l(t){if("function"!==typeof WeakMap)return null;var e=new WeakMap,r=new WeakMap;return(l=function(t){return t?r:e})(t)}function c(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}o.default.config.productionTip=!1,Object.keys(u).forEach((function(t){o.default.prototype[t]=u[t]})),o.default.prototype.$onLaunched=new Promise((function(t){o.default.prototype.$isResolve=t})),s.default.mpType="app";var A=new o.default(function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?c(Object(r),!0).forEach((function(e){(0,a.default)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({},s.default));A.$mount()},cff4:function(t,e,r){"use strict";r.d(e,"b",(function(){return n})),r.d(e,"c",(function(){return i})),r.d(e,"a",(function(){}));var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("view",{staticClass:t._$s(0,"sc","index-vertical-box"),attrs:{_i:0},on:{click:function(e){return t.openVideo(t.item.vod_id)}}},[r("vodImage",{staticClass:t._$s(1,"sc","index-header-img"),attrs:{src:t.item.vod_pic,_i:1}}),r("view",{staticClass:t._$s(2,"sc","index-footer-box"),attrs:{_i:2}},[r("view",{staticClass:t._$s(3,"sc","index-vertical-titleimg"),attrs:{_i:3}},[r("vodImage",{attrs:{src:t.item.vod_pic,_i:4}})],1),r("view",{staticClass:t._$s(5,"sc","index-vertical-info"),attrs:{_i:5}},[r("text",{staticClass:t._$s(6,"sc","title"),attrs:{_i:6}},[t._v(t._$s(6,"t0-0",t._s(t.item.vod_name))),r("text",{staticClass:t._$s(7,"sc","score"),attrs:{_i:7}},[t._v(t._$s(7,"t0-0",t._s(t.item.vod_score)))])])])])],1)},i=[]},cffa:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={tabbarItem:{name:null,icon:"",badge:null,dot:!1,text:"",badgeStyle:"top: 6px;right:2px;"}}},d08c:function(t,e,r){"use strict";r.r(e);var n=r("c5f2"),i=r("1fb4");for(var a in i)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return i[t]}))}(a);var s=r("828b"),o=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);e["default"]=o.exports},d0d8:function(t,e){},d10f:function(t,e,r){"use strict";r.r(e);var n=r("1da7"),i=r.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return n[t]}))}(a);e["default"]=i.a},d18a:function(t,e,r){"use strict";r.r(e);var n=r("a3e4"),i=r("5bad");for(var a in i)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return i[t]}))}(a);var s=r("828b"),o=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);e["default"]=o.exports},d1db:function(t,e,r){"use strict";var n=r("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(r("127e")),a=n(r("ee10")),s=n(r("b6d4")),o={components:{noticeItem:s.default},data:function(){return{tabs:[{name:"\u6d88\u606f\u901a\u77e5"},{name:"\u7cfb\u7edf\u901a\u77e5"}],tabIndex:0}},onLoad:function(){var t=this;return(0,a.default)(i.default.mark((function e(){var r;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$onLaunched;case 2:r=getApp().globalData.userToken,r?t.$nextTick((function(){t.$refs["notice"+t.tabIndex].init()})):uni.redirectTo({url:"/pages/user/login"});case 4:case"end":return e.stop()}}),e)})))()},methods:{swiperChange:function(t){this.tabIndex=t.detail.current,this.$refs["notice"+this.tabIndex].init()},tabsClick:function(t){this.tabIndex!=t.index&&(this.tabIndex=t.index)}}};e.default=o},d2f1:function(t,e,r){"use strict";r.r(e);var n=r("fcb3"),i=r.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return n[t]}))}(a);e["default"]=i.a},d3c0:function(t,e,r){var n,i,a,s=r("3b2d");(function(o,u){"object"===s(e)?t.exports=e=u(r("707d")):(i=[r("707d")],n=u,a="function"===typeof n?n.apply(e,i):n,void 0===a||(t.exports=a))})(0,(function(t){return function(){if("function"==typeof ArrayBuffer){var e=t,r=e.lib,n=r.WordArray,i=n.init,a=n.init=function(t){if(t instanceof ArrayBuffer&&(t=new Uint8Array(t)),(t instanceof Int8Array||"undefined"!==typeof Uint8ClampedArray&&t instanceof Uint8ClampedArray||t instanceof Int16Array||t instanceof Uint16Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Float32Array||t instanceof Float64Array)&&(t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength)),t instanceof Uint8Array){for(var e=t.byteLength,r=[],n=0;n<e;n++)r[n>>>2]|=t[n]<<24-n%4*8;i.call(this,r,e)}else i.apply(this,arguments)};a.prototype=n}}(),t.lib.WordArray}))},d3ef:function(t,e,r){"use strict";var n=r("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(r("f571")),a=new i.default("hongtao");a.version(1).stores({vodDig:"id, up, down",vodFav:"id, status, time",vodHistory:"id, time",commentDig:"id, up, down"}),a.open();var s=a;e.default=s},d3fa:function(t,e,r){"use strict";r.r(e);var n=r("25d6"),i=r("bcc1");for(var a in i)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return i[t]}))}(a);var s=r("828b"),o=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,"3a3879f2",null,!1,n["a"],void 0);e["default"]=o.exports},d486:function(t,e,r){"use strict";r.r(e);var n=r("1796"),i=r.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return n[t]}))}(a);e["default"]=i.a},d4a4:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={data:function(){return{}},onLoad:function(){},methods:{}}},d4bd:function(t,e,r){"use strict";r.r(e);var n=r("f972"),i=r("d2f1");for(var a in i)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return i[t]}))}(a);var s=r("828b"),o=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);e["default"]=o.exports},d522:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={props:{name:{type:String,default:uni.$u.props.checkboxGroup.name},value:{type:Array,default:uni.$u.props.checkboxGroup.value},shape:{type:String,default:uni.$u.props.checkboxGroup.shape},disabled:{type:Boolean,default:uni.$u.props.checkboxGroup.disabled},activeColor:{type:String,default:uni.$u.props.checkboxGroup.activeColor},inactiveColor:{type:String,default:uni.$u.props.checkboxGroup.inactiveColor},size:{type:[String,Number],default:uni.$u.props.checkboxGroup.size},placement:{type:String,default:uni.$u.props.checkboxGroup.placement},labelSize:{type:[String,Number],default:uni.$u.props.checkboxGroup.labelSize},labelColor:{type:[String],default:uni.$u.props.checkboxGroup.labelColor},labelDisabled:{type:Boolean,default:uni.$u.props.checkboxGroup.labelDisabled},iconColor:{type:String,default:uni.$u.props.checkboxGroup.iconColor},iconSize:{type:[String,Number],default:uni.$u.props.checkboxGroup.iconSize},iconPlacement:{type:String,default:uni.$u.props.checkboxGroup.iconPlacement},borderBottom:{type:Boolean,default:uni.$u.props.checkboxGroup.borderBottom}}};e.default=n},d551:function(t,e,r){var n=r("3b2d")["default"],i=r("e6db");t.exports=function(t){var e=i(t,"string");return"symbol"==n(e)?e:e+""},t.exports.__esModule=!0,t.exports["default"]=t.exports},d673:function(t,e,r){var n,i,a,s=r("3b2d");(function(o,u){"object"===s(e)?t.exports=e=u(r("707d")):(i=[r("707d")],n=u,a="function"===typeof n?n.apply(e,i):n,void 0===a||(t.exports=a))})(0,(function(t){
/** @preserve
  (c) 2012 by Cédric Mesnil. All rights reserved.
  	Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
  	    - Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
      - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
  	THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
return function(e){var r=t,n=r.lib,i=n.WordArray,a=n.Hasher,s=r.algo,o=i.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),u=i.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),l=i.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),c=i.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),A=i.create([0,1518500249,1859775393,2400959708,2840853838]),d=i.create([1352829926,1548603684,1836072691,2053994217,0]),f=s.RIPEMD160=a.extend({_doReset:function(){this._hash=i.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,e){for(var r=0;r<16;r++){var n=e+r,i=t[n];t[n]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var a,s,f,w,b,_,B,C,E,x,T,S=this._hash.words,k=A.words,I=d.words,F=o.words,L=u.words,D=l.words,R=c.words;_=a=S[0],B=s=S[1],C=f=S[2],E=w=S[3],x=b=S[4];for(r=0;r<80;r+=1)T=a+t[e+F[r]]|0,T+=r<16?h(s,f,w)+k[0]:r<32?p(s,f,w)+k[1]:r<48?g(s,f,w)+k[2]:r<64?v(s,f,w)+k[3]:m(s,f,w)+k[4],T|=0,T=y(T,D[r]),T=T+b|0,a=b,b=w,w=y(f,10),f=s,s=T,T=_+t[e+L[r]]|0,T+=r<16?m(B,C,E)+I[0]:r<32?v(B,C,E)+I[1]:r<48?g(B,C,E)+I[2]:r<64?p(B,C,E)+I[3]:h(B,C,E)+I[4],T|=0,T=y(T,R[r]),T=T+x|0,_=x,x=E,E=y(C,10),C=B,B=T;T=S[1]+f+E|0,S[1]=S[2]+w+x|0,S[2]=S[3]+b+_|0,S[3]=S[4]+a+B|0,S[4]=S[0]+s+C|0,S[0]=T},_doFinalize:function(){var t=this._data,e=t.words,r=8*this._nDataBytes,n=8*t.sigBytes;e[n>>>5]|=128<<24-n%32,e[14+(n+64>>>9<<4)]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),t.sigBytes=4*(e.length+1),this._process();for(var i=this._hash,a=i.words,s=0;s<5;s++){var o=a[s];a[s]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8)}return i},clone:function(){var t=a.clone.call(this);return t._hash=this._hash.clone(),t}});function h(t,e,r){return t^e^r}function p(t,e,r){return t&e|~t&r}function g(t,e,r){return(t|~e)^r}function v(t,e,r){return t&r|e&~r}function m(t,e,r){return t^(e|~r)}function y(t,e){return t<<e|t>>>32-e}r.RIPEMD160=a._createHelper(f),r.HmacRIPEMD160=a._createHmacHelper(f)}(Math),t.RIPEMD160}))},d80b:function(t,e,r){"use strict";r.r(e);var n=r("088b"),i=r("b465");for(var a in i)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return i[t]}))}(a);var s=r("828b"),o=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);e["default"]=o.exports},d837:function(t,e,r){"use strict";r.r(e);var n=r("0e83"),i=r("d963");for(var a in i)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return i[t]}))}(a);var s=r("828b"),o=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);e["default"]=o.exports},d877:function(t,e,r){"use strict";r.r(e);var n=r("421d"),i=r.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return n[t]}))}(a);e["default"]=i.a},d93e:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={notify:{top:0,type:"primary",color:"#ffffff",bgColor:"",message:"",duration:3e3,fontSize:15,safeAreaInsetTop:!1}}},d963:function(t,e,r){"use strict";r.r(e);var n=r("6d45"),i=r.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return n[t]}))}(a);e["default"]=i.a},d98b:function(t,e,r){"use strict";r.r(e);var n=r("fb4c"),i=r.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return n[t]}))}(a);e["default"]=i.a},d9d6:function(t,e,r){"use strict";r.d(e,"b",(function(){return n})),r.d(e,"c",(function(){return i})),r.d(e,"a",(function(){}));var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("view",{staticClass:t._$s(0,"sc","page-container"),attrs:{_i:0}},[r("full-adv",{ref:"fullAdv",attrs:{_i:1},on:{close:function(e){return t.sign()}}}),r("reward",{ref:"reward",attrs:{_i:2},on:{close:function(e){return t.back()}}})],1)},i=[]},d9f5:function(t,e,r){var n,i,a,s=r("3b2d");(function(o,u,l){"object"===s(e)?t.exports=e=u(r("707d"),r("52d5"),r("818e")):(i=[r("707d"),r("52d5"),r("818e")],n=u,a="function"===typeof n?n.apply(e,i):n,void 0===a||(t.exports=a))})(0,(function(t){return function(){var e=t,r=e.x64,n=r.Word,i=r.WordArray,a=e.algo,s=a.SHA512,o=a.SHA384=s.extend({_doReset:function(){this._hash=new i.init([new n.init(3418070365,3238371032),new n.init(1654270250,914150663),new n.init(2438529370,812702999),new n.init(355462360,4144912697),new n.init(1731405415,4290775857),new n.init(2394180231,1750603025),new n.init(3675008525,1694076839),new n.init(1203062813,3204075428)])},_doFinalize:function(){var t=s._doFinalize.call(this);return t.sigBytes-=16,t}});e.SHA384=s._createHelper(o),e.HmacSHA384=s._createHmacHelper(o)}(),t.SHA384}))},d9fb:function(t,e,r){"use strict";var n=r("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;n(r("0f62")),n(r("a9d7"));var i=n(r("509e")),a={name:"u-button",mixins:[uni.$u.mpMixin,uni.$u.mixin,i.default],data:function(){return{}},computed:{bemClass:function(){return this.color?this.bem("button",["shape","size"],["disabled","plain","hairline"]):this.bem("button",["type","shape","size"],["disabled","plain","hairline"])},loadingColor:function(){return this.plain?this.color?this.color:uni.$u.config.color["u-".concat(this.type)]:"info"===this.type?"#c9c9c9":"rgb(200, 200, 200)"},iconColorCom:function(){return this.iconColor?this.iconColor:this.plain?this.color?this.color:this.type:"info"===this.type?"#000000":"#ffffff"},baseColor:function(){var t={};return this.color&&(t.color=this.plain?this.color:"white",this.plain||(t["background-color"]=this.color),-1!==this.color.indexOf("gradient")?(t.borderTopWidth=0,t.borderRightWidth=0,t.borderBottomWidth=0,t.borderLeftWidth=0,this.plain||(t.backgroundImage=this.color)):(t.borderColor=this.color,t.borderWidth="1px",t.borderStyle="solid")),t},nvueTextStyle:function(){var t={};return"info"===this.type&&(t.color="#323233"),this.color&&(t.color=this.plain?this.color:"white"),t.fontSize=this.textSize+"px",t},textSize:function(){var t=14,e=this.size;return"large"===e&&(t=16),"normal"===e&&(t=14),"small"===e&&(t=12),"mini"===e&&(t=10),t}},methods:{clickHandler:function(){var t=this;this.disabled||this.loading||uni.$u.throttle((function(){t.$emit("click")}),this.throttleTime)},getphonenumber:function(t){this.$emit("getphonenumber",t)},getuserinfo:function(t){this.$emit("getuserinfo",t)},error:function(t){this.$emit("error",t)},opensetting:function(t){this.$emit("opensetting",t)},launchapp:function(t){this.$emit("launchapp",t)}}};e.default=a},da03:function(t,e,r){"use strict";r.r(e);var n=r("5a73"),i=r("6a34");for(var a in i)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return i[t]}))}(a);var s=r("828b"),o=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);e["default"]=o.exports},da72:function(t,e,r){"use strict";r.r(e);var n=r("93c7"),i=r("a28e");for(var a in i)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return i[t]}))}(a);var s=r("828b"),o=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);e["default"]=o.exports},db03:function(t,e,r){"use strict";var n=r("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(r("7ca3")),a=n(r("7be1")),s=n(r("4021")),o=n(r("9618")),u=r("7707");function l(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function c(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?l(Object(r),!0).forEach((function(e){(0,i.default)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var A=function(t,e){var r={};return t.forEach((function(t){(0,u.isUndefined)(e[t])||(r[t]=e[t])})),r};e.default=function(t){return new Promise((function(e,r){var n,i=(0,a.default)((0,s.default)(t.baseURL,t.url),t.params),l={url:i,header:t.header,complete:function(n){t.fullPath=i,n.config=t;try{"string"===typeof n.data&&(n.data=JSON.parse(n.data))}catch(a){}(0,o.default)(e,r,n)}};if("UPLOAD"===t.method){delete l.header["content-type"],delete l.header["Content-Type"];var d={filePath:t.filePath,name:t.name};n=uni.uploadFile(c(c(c({},l),d),A(["files","timeout","formData"],t)))}else if("DOWNLOAD"===t.method)(0,u.isUndefined)(t.timeout)||(l.timeout=t.timeout),n=uni.downloadFile(l);else{n=uni.request(c(c({},l),A(["data","method","timeout","dataType","responseType","sslVerify","firstIpv4"],t)))}t.getTask&&t.getTask(n,t)}))}},dc2c:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={props:{navs:{type:Array,default:function(){return[]}},value:{type:[String,Number],default:0}},data:function(){return{show:!1}},methods:{tabsClick:function(t){this.value!=t.index&&this.$emit("input",t.index)},tabs:function(t){this.value!=t&&(this.$emit("input",t),this.show=!1)},close:function(){this.show=!1}}};e.default=n},dc84:function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},dd1d:function(t,e,r){"use strict";var n=r("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(r("0d2b")),a=i.default.color,s={link:{color:a["u-primary"],fontSize:15,underLine:!1,href:"",mpTips:"\u94fe\u63a5\u5df2\u590d\u5236\uff0c\u8bf7\u5728\u6d4f\u89c8\u5668\u6253\u5f00",lineColor:"",text:""}};e.default=s},dd3e:function(t,e){t.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.__esModule=!0,t.exports["default"]=t.exports},dd86:function(t,e,r){"use strict";r.r(e);var n=r("774d"),i=r.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return n[t]}))}(a);e["default"]=i.a},dd99:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={swiper:{list:function(){return[]},indicator:!1,indicatorActiveColor:"#FFFFFF",indicatorInactiveColor:"rgba(255, 255, 255, 0.35)",indicatorStyle:"",indicatorMode:"line",autoplay:!0,current:0,currentItemId:"",interval:3e3,duration:300,circular:!1,previousMargin:0,nextMargin:0,acceleration:!1,displayMultipleItems:1,easingFunction:"default",keyName:"url",imgMode:"aspectFill",height:130,bgColor:"#f3f4f6",radius:4,loading:!1,showTitle:!1}}},dde9:function(t,e,r){"use strict";var n=r("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(r("127e")),a=n(r("ee10")),s=r("0f81"),o={data:function(){return{data:{},id:0,loading:!1}},onLoad:function(){var t=this;return(0,a.default)(i.default.mark((function e(){var r;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$onLaunched;case 2:r=getApp().globalData.userToken,r?t.getData():uni.redirectTo({url:"/pages/user/login"});case 4:case"end":return e.stop()}}),e)})))()},methods:{getData:function(){var t=this;s.user.exchange("vip").then((function(e){1==e.code&&(t.data=e.data,t.id=e.data.selected)}))},exchange:function(){var t=this;return(0,a.default)(i.default.mark((function e(){return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(0!==t.id){e.next=3;break}return uni.showToast({icon:"none",title:"\u8bf7\u9009\u62e9\u8981\u5151\u6362\u7684\u5185\u5bb9~!",duration:3e3}),e.abrupt("return");case 3:if(!(t.data.user_coin<t.data.list[t.id].exchange_coin)){e.next=6;break}return uni.showToast({icon:"none",title:"\u60a8\u5f53\u524d\u7684\u91d1\u5e01\u4e0d\u8db3~!",duration:3e3}),e.abrupt("return");case 6:return t.loading=!0,e.next=9,s.user.exchangeVip(t.id).then((function(e){uni.showToast({icon:"none",title:e.msg,duration:3e3}),1===e.code&&(t.data.user_coin=e.data.user_coin)})).catch((function(t){}));case 9:t.loading=!1;case 10:case"end":return e.stop()}}),e)})))()},onSelect:function(t){this.id=t}}};e.default=o},df20:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={tag:{type:"primary",disabled:!1,size:"medium",shape:"square",text:"",bgColor:"",color:"",borderColor:"",closeColor:"#C6C7CB",name:"",plainFill:!1,plain:!1,closable:!1,show:!0,icon:""}}},df7f:function(t,e,r){"use strict";r.r(e);var n=r("ec44"),i=r("50e1");for(var a in i)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return i[t]}))}(a);var s=r("828b"),o=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,"e78bbd96",null,!1,n["a"],void 0);e["default"]=o.exports},dfad:function(t,e,r){"use strict";var n=r("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(r("127e")),a=n(r("ee10")),s=r("0f81"),o={data:function(){return{list:[],page:1,count:0,refreshTriggered:!1,loadStatus:"loadmore"}},onPullDownRefresh:function(){this.refreshTriggered=!0,this.loadStatus="loadmore",this.page=1,this.list=[],this.getData()},onReachBottom:function(){this.getData()},onLoad:function(){var t=this;return(0,a.default)(i.default.mark((function e(){var r;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$onLaunched;case 2:r=getApp().globalData.userToken,r?t.getData():uni.redirectTo({url:"/pages/user/login"});case 4:case"end":return e.stop()}}),e)})))()},methods:{getData:function(){var t=this;return(0,a.default)(i.default.mark((function e(){return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if("nomore"!==t.loadStatus&&"loading"!==t.loadStatus){e.next=2;break}return e.abrupt("return");case 2:return t.loadStatus="loading",e.next=5,s.user.shareUser(t.page).then((function(e){1==e.code?(e.data.page<e.data.page_total?(t.loadStatus="loadmore",t.page++):t.loadStatus="nomore",t.list=t.list.concat(e.data.list),t.count=e.data.count):t.loadStatus="loadmore"})).catch((function(e){t.loadStatus="loadmore"}));case 5:t.refreshTriggered&&(t.refreshTriggered=!1,uni.stopPullDownRefresh());case 6:case"end":return e.stop()}}),e)})))()}}};e.default=o},e04f:function(t,e,r){(function(n){var i,a,s=r("3b2d");!function o(u){var l;l=function(){"use strict";function t(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function e(e){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?t(Object(i),!0).forEach((function(t){var n,a,s;n=e,a=t,s=i[t],(a=r(a))in n?Object.defineProperty(n,a,{value:s,enumerable:!0,configurable:!0,writable:!0}):n[a]=s})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):t(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function r(t){var e=function(t,e){if("object"!=s(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=s(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==s(e)?e:String(e)}function i(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,r(i.key),i)}}function a(t,e,r){return e&&i(t.prototype,e),r&&i(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function l(){return l=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},l.apply(this,arguments)}function c(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,d(t,e)}function A(t){return A=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},A(t)}function d(t,e){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},d(t,e)}function f(t,e,r){return f=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}()?Reflect.construct.bind():function(t,e,r){var n=[null];n.push.apply(n,e);var i=new(Function.bind.apply(t,n));return r&&d(i,r.prototype),i},f.apply(null,arguments)}function h(t){var e="function"==typeof Map?new Map:void 0;return h=function(t){if(null===t||!function(t){try{return-1!==Function.toString.call(t).indexOf("[native code]")}catch(e){return"function"==typeof t}}(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,r)}function r(){return f(t,arguments,A(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),d(r,t)},h(t)}function p(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var g={exports:{}};!function(t,e){var r,n,i,a,s;r=/^(?=((?:[a-zA-Z0-9+\-.]+:)?))\1(?=((?:\/\/[^\/?#]*)?))\2(?=((?:(?:[^?#\/]*\/)*[^;?#\/]*)?))\3((?:;[^?#]*)?)(\?[^#]*)?(#[^]*)?$/,n=/^(?=([^\/?#]*))\1([^]*)$/,i=/(?:\/|^)\.(?=\/)/g,a=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,s={buildAbsoluteURL:function(t,e,r){if(r=r||{},t=t.trim(),!(e=e.trim())){if(!r.alwaysNormalize)return t;var i=s.parseURL(t);if(!i)throw new Error("Error trying to parse base URL.");return i.path=s.normalizePath(i.path),s.buildURLFromParts(i)}var a=s.parseURL(e);if(!a)throw new Error("Error trying to parse relative URL.");if(a.scheme)return r.alwaysNormalize?(a.path=s.normalizePath(a.path),s.buildURLFromParts(a)):e;var o=s.parseURL(t);if(!o)throw new Error("Error trying to parse base URL.");if(!o.netLoc&&o.path&&"/"!==o.path[0]){var u=n.exec(o.path);o.netLoc=u[1],o.path=u[2]}o.netLoc&&!o.path&&(o.path="/");var l={scheme:o.scheme,netLoc:a.netLoc,path:null,params:a.params,query:a.query,fragment:a.fragment};if(!a.netLoc&&(l.netLoc=o.netLoc,"/"!==a.path[0]))if(a.path){var c=o.path,A=c.substring(0,c.lastIndexOf("/")+1)+a.path;l.path=s.normalizePath(A)}else l.path=o.path,a.params||(l.params=o.params,a.query||(l.query=o.query));return null===l.path&&(l.path=r.alwaysNormalize?s.normalizePath(a.path):a.path),s.buildURLFromParts(l)},parseURL:function(t){var e=r.exec(t);return e?{scheme:e[1]||"",netLoc:e[2]||"",path:e[3]||"",params:e[4]||"",query:e[5]||"",fragment:e[6]||""}:null},normalizePath:function(t){for(t=t.split("").reverse().join("").replace(i,"");t.length!==(t=t.replace(a,"")).length;);return t.split("").reverse().join("")},buildURLFromParts:function(t){return t.scheme+t.netLoc+t.path+t.params+t.query+t.fragment}},t.exports=s}(g);var v=g.exports,m=Number.isFinite||function(t){return"number"==typeof t&&isFinite(t)},y=Number.isSafeInteger||function(t){return"number"==typeof t&&Math.abs(t)<=w},w=Number.MAX_SAFE_INTEGER||9007199254740991,b=function(t){return t.MEDIA_ATTACHING="hlsMediaAttaching",t.MEDIA_ATTACHED="hlsMediaAttached",t.MEDIA_DETACHING="hlsMediaDetaching",t.MEDIA_DETACHED="hlsMediaDetached",t.BUFFER_RESET="hlsBufferReset",t.BUFFER_CODECS="hlsBufferCodecs",t.BUFFER_CREATED="hlsBufferCreated",t.BUFFER_APPENDING="hlsBufferAppending",t.BUFFER_APPENDED="hlsBufferAppended",t.BUFFER_EOS="hlsBufferEos",t.BUFFER_FLUSHING="hlsBufferFlushing",t.BUFFER_FLUSHED="hlsBufferFlushed",t.MANIFEST_LOADING="hlsManifestLoading",t.MANIFEST_LOADED="hlsManifestLoaded",t.MANIFEST_PARSED="hlsManifestParsed",t.LEVEL_SWITCHING="hlsLevelSwitching",t.LEVEL_SWITCHED="hlsLevelSwitched",t.LEVEL_LOADING="hlsLevelLoading",t.LEVEL_LOADED="hlsLevelLoaded",t.LEVEL_UPDATED="hlsLevelUpdated",t.LEVEL_PTS_UPDATED="hlsLevelPtsUpdated",t.LEVELS_UPDATED="hlsLevelsUpdated",t.AUDIO_TRACKS_UPDATED="hlsAudioTracksUpdated",t.AUDIO_TRACK_SWITCHING="hlsAudioTrackSwitching",t.AUDIO_TRACK_SWITCHED="hlsAudioTrackSwitched",t.AUDIO_TRACK_LOADING="hlsAudioTrackLoading",t.AUDIO_TRACK_LOADED="hlsAudioTrackLoaded",t.SUBTITLE_TRACKS_UPDATED="hlsSubtitleTracksUpdated",t.SUBTITLE_TRACKS_CLEARED="hlsSubtitleTracksCleared",t.SUBTITLE_TRACK_SWITCH="hlsSubtitleTrackSwitch",t.SUBTITLE_TRACK_LOADING="hlsSubtitleTrackLoading",t.SUBTITLE_TRACK_LOADED="hlsSubtitleTrackLoaded",t.SUBTITLE_FRAG_PROCESSED="hlsSubtitleFragProcessed",t.CUES_PARSED="hlsCuesParsed",t.NON_NATIVE_TEXT_TRACKS_FOUND="hlsNonNativeTextTracksFound",t.INIT_PTS_FOUND="hlsInitPtsFound",t.FRAG_LOADING="hlsFragLoading",t.FRAG_LOAD_EMERGENCY_ABORTED="hlsFragLoadEmergencyAborted",t.FRAG_LOADED="hlsFragLoaded",t.FRAG_DECRYPTED="hlsFragDecrypted",t.FRAG_PARSING_INIT_SEGMENT="hlsFragParsingInitSegment",t.FRAG_PARSING_USERDATA="hlsFragParsingUserdata",t.FRAG_PARSING_METADATA="hlsFragParsingMetadata",t.FRAG_PARSED="hlsFragParsed",t.FRAG_BUFFERED="hlsFragBuffered",t.FRAG_CHANGED="hlsFragChanged",t.FPS_DROP="hlsFpsDrop",t.FPS_DROP_LEVEL_CAPPING="hlsFpsDropLevelCapping",t.MAX_AUTO_LEVEL_UPDATED="hlsMaxAutoLevelUpdated",t.ERROR="hlsError",t.DESTROYING="hlsDestroying",t.KEY_LOADING="hlsKeyLoading",t.KEY_LOADED="hlsKeyLoaded",t.LIVE_BACK_BUFFER_REACHED="hlsLiveBackBufferReached",t.BACK_BUFFER_REACHED="hlsBackBufferReached",t.STEERING_MANIFEST_LOADED="hlsSteeringManifestLoaded",t}({}),_=function(t){return t.NETWORK_ERROR="networkError",t.MEDIA_ERROR="mediaError",t.KEY_SYSTEM_ERROR="keySystemError",t.MUX_ERROR="muxError",t.OTHER_ERROR="otherError",t}({}),B=function(t){return t.KEY_SYSTEM_NO_KEYS="keySystemNoKeys",t.KEY_SYSTEM_NO_ACCESS="keySystemNoAccess",t.KEY_SYSTEM_NO_SESSION="keySystemNoSession",t.KEY_SYSTEM_NO_CONFIGURED_LICENSE="keySystemNoConfiguredLicense",t.KEY_SYSTEM_LICENSE_REQUEST_FAILED="keySystemLicenseRequestFailed",t.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED="keySystemServerCertificateRequestFailed",t.KEY_SYSTEM_SERVER_CERTIFICATE_UPDATE_FAILED="keySystemServerCertificateUpdateFailed",t.KEY_SYSTEM_SESSION_UPDATE_FAILED="keySystemSessionUpdateFailed",t.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED="keySystemStatusOutputRestricted",t.KEY_SYSTEM_STATUS_INTERNAL_ERROR="keySystemStatusInternalError",t.MANIFEST_LOAD_ERROR="manifestLoadError",t.MANIFEST_LOAD_TIMEOUT="manifestLoadTimeOut",t.MANIFEST_PARSING_ERROR="manifestParsingError",t.MANIFEST_INCOMPATIBLE_CODECS_ERROR="manifestIncompatibleCodecsError",t.LEVEL_EMPTY_ERROR="levelEmptyError",t.LEVEL_LOAD_ERROR="levelLoadError",t.LEVEL_LOAD_TIMEOUT="levelLoadTimeOut",t.LEVEL_PARSING_ERROR="levelParsingError",t.LEVEL_SWITCH_ERROR="levelSwitchError",t.AUDIO_TRACK_LOAD_ERROR="audioTrackLoadError",t.AUDIO_TRACK_LOAD_TIMEOUT="audioTrackLoadTimeOut",t.SUBTITLE_LOAD_ERROR="subtitleTrackLoadError",t.SUBTITLE_TRACK_LOAD_TIMEOUT="subtitleTrackLoadTimeOut",t.FRAG_LOAD_ERROR="fragLoadError",t.FRAG_LOAD_TIMEOUT="fragLoadTimeOut",t.FRAG_DECRYPT_ERROR="fragDecryptError",t.FRAG_PARSING_ERROR="fragParsingError",t.FRAG_GAP="fragGap",t.REMUX_ALLOC_ERROR="remuxAllocError",t.KEY_LOAD_ERROR="keyLoadError",t.KEY_LOAD_TIMEOUT="keyLoadTimeOut",t.BUFFER_ADD_CODEC_ERROR="bufferAddCodecError",t.BUFFER_INCOMPATIBLE_CODECS_ERROR="bufferIncompatibleCodecsError",t.BUFFER_APPEND_ERROR="bufferAppendError",t.BUFFER_APPENDING_ERROR="bufferAppendingError",t.BUFFER_STALLED_ERROR="bufferStalledError",t.BUFFER_FULL_ERROR="bufferFullError",t.BUFFER_SEEK_OVER_HOLE="bufferSeekOverHole",t.BUFFER_NUDGE_ON_STALL="bufferNudgeOnStall",t.INTERNAL_EXCEPTION="internalException",t.INTERNAL_ABORTED="aborted",t.UNKNOWN="unknown",t}({}),C=function(){},E={trace:C,debug:C,log:C,warn:C,info:C,error:C},x=E;function T(t,e){if("object"==("undefined"===typeof console?"undefined":s(console))&&!0===t||"object"==s(t)){(function(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];r.forEach((function(e){x[e]=t[e]?t[e].bind(t):function(t){var e=self.console[t];return e?e.bind(self.console,"["+t+"] >"):C}(e)}))})(t,"debug","log","info","warn","error");try{x.log('Debug logs enabled for "'+e+'" in hls.js version 1.5.2')}catch(t){x=E}}else x=E}var S=x,k=/^(\d+)x(\d+)$/,I=/(.+?)=(".*?"|.*?)(?:,|$)/g,F=function(){function t(e){"string"==typeof e&&(e=t.parseAttrList(e)),l(this,e)}var e=t.prototype;return e.decimalInteger=function(t){var e=parseInt(this[t],10);return e>Number.MAX_SAFE_INTEGER?1/0:e},e.hexadecimalInteger=function(t){if(this[t]){var e=(this[t]||"0x").slice(2);e=(1&e.length?"0":"")+e;for(var r=new Uint8Array(e.length/2),n=0;n<e.length/2;n++)r[n]=parseInt(e.slice(2*n,2*n+2),16);return r}return null},e.hexadecimalIntegerAsNumber=function(t){var e=parseInt(this[t],16);return e>Number.MAX_SAFE_INTEGER?1/0:e},e.decimalFloatingPoint=function(t){return parseFloat(this[t])},e.optionalFloat=function(t,e){var r=this[t];return r?parseFloat(r):e},e.enumeratedString=function(t){return this[t]},e.bool=function(t){return"YES"===this[t]},e.decimalResolution=function(t){var e=k.exec(this[t]);if(null!==e)return{width:parseInt(e[1],10),height:parseInt(e[2],10)}},t.parseAttrList=function(t){var e,r={};for(I.lastIndex=0;null!==(e=I.exec(t));){var n=e[2];0===n.indexOf('"')&&n.lastIndexOf('"')===n.length-1&&(n=n.slice(1,-1)),r[e[1].trim()]=n}return r},a(t,[{key:"clientAttrs",get:function(){return Object.keys(this).filter((function(t){return"X-"===t.substring(0,2)}))}}]),t}();function L(t){return"SCTE35-OUT"===t||"SCTE35-IN"===t}var D=function(){function t(t,e){if(this.attr=void 0,this._startDate=void 0,this._endDate=void 0,this._badValueForSameId=void 0,e){var r=e.attr;for(var n in r)if(Object.prototype.hasOwnProperty.call(t,n)&&t[n]!==r[n]){S.warn('DATERANGE tag attribute: "'+n+'" does not match for tags with ID: "'+t.ID+'"'),this._badValueForSameId=n;break}t=l(new F({}),r,t)}if(this.attr=t,this._startDate=new Date(t["START-DATE"]),"END-DATE"in this.attr){var i=new Date(this.attr["END-DATE"]);m(i.getTime())&&(this._endDate=i)}}return a(t,[{key:"id",get:function(){return this.attr.ID}},{key:"class",get:function(){return this.attr.CLASS}},{key:"startDate",get:function(){return this._startDate}},{key:"endDate",get:function(){if(this._endDate)return this._endDate;var t=this.duration;return null!==t?new Date(this._startDate.getTime()+1e3*t):null}},{key:"duration",get:function(){if("DURATION"in this.attr){var t=this.attr.decimalFloatingPoint("DURATION");if(m(t))return t}else if(this._endDate)return(this._endDate.getTime()-this._startDate.getTime())/1e3;return null}},{key:"plannedDuration",get:function(){return"PLANNED-DURATION"in this.attr?this.attr.decimalFloatingPoint("PLANNED-DURATION"):null}},{key:"endOnNext",get:function(){return this.attr.bool("END-ON-NEXT")}},{key:"isValid",get:function(){return!!this.id&&!this._badValueForSameId&&m(this.startDate.getTime())&&(null===this.duration||this.duration>=0)&&(!this.endOnNext||!!this.class)}}]),t}(),R=function(){this.aborted=!1,this.loaded=0,this.retry=0,this.total=0,this.chunkCount=0,this.bwEstimate=0,this.loading={start:0,first:0,end:0},this.parsing={start:0,end:0},this.buffering={start:0,first:0,end:0}},U="audio",O="video",P="audiovideo",M=function(){function t(t){var e;this._byteRange=null,this._url=null,this.baseurl=void 0,this.relurl=void 0,this.elementaryStreams=((e={})[U]=null,e[O]=null,e[P]=null,e),this.baseurl=t}return t.prototype.setByteRange=function(t,e){var r,n=t.split("@",2);r=1===n.length?(null==e?void 0:e.byteRangeEndOffset)||0:parseInt(n[1]),this._byteRange=[r,parseInt(n[0])+r]},a(t,[{key:"byteRange",get:function(){return this._byteRange?this._byteRange:[]}},{key:"byteRangeStartOffset",get:function(){return this.byteRange[0]}},{key:"byteRangeEndOffset",get:function(){return this.byteRange[1]}},{key:"url",get:function(){return!this._url&&this.baseurl&&this.relurl&&(this._url=v.buildAbsoluteURL(this.baseurl,this.relurl,{alwaysNormalize:!0})),this._url||""},set:function(t){this._url=t}}]),t}(),Q=function(t){function e(e,r){var n;return(n=t.call(this,r)||this)._decryptdata=null,n.rawProgramDateTime=null,n.programDateTime=null,n.tagList=[],n.duration=0,n.sn=0,n.levelkeys=void 0,n.type=void 0,n.loader=null,n.keyLoader=null,n.level=-1,n.cc=0,n.startPTS=void 0,n.endPTS=void 0,n.startDTS=void 0,n.endDTS=void 0,n.start=0,n.deltaPTS=void 0,n.maxStartPTS=void 0,n.minEndPTS=void 0,n.stats=new R,n.data=void 0,n.bitrateTest=!1,n.title=null,n.initSegment=null,n.endList=void 0,n.gap=void 0,n.urlId=0,n.type=e,n}c(e,t);var r=e.prototype;return r.setKeyFormat=function(t){if(this.levelkeys){var e=this.levelkeys[t];e&&!this._decryptdata&&(this._decryptdata=e.getDecryptData(this.sn))}},r.abortRequests=function(){var t,e;null==(t=this.loader)||t.abort(),null==(e=this.keyLoader)||e.abort()},r.setElementaryStreamInfo=function(t,e,r,n,i,a){void 0===a&&(a=!1);var s=this.elementaryStreams,o=s[t];o?(o.startPTS=Math.min(o.startPTS,e),o.endPTS=Math.max(o.endPTS,r),o.startDTS=Math.min(o.startDTS,n),o.endDTS=Math.max(o.endDTS,i)):s[t]={startPTS:e,endPTS:r,startDTS:n,endDTS:i,partial:a}},r.clearElementaryStreamInfo=function(){var t=this.elementaryStreams;t[U]=null,t[O]=null,t[P]=null},a(e,[{key:"decryptdata",get:function(){if(!this.levelkeys&&!this._decryptdata)return null;if(!this._decryptdata&&this.levelkeys&&!this.levelkeys.NONE){var t=this.levelkeys.identity;if(t)this._decryptdata=t.getDecryptData(this.sn);else{var e=Object.keys(this.levelkeys);if(1===e.length)return this._decryptdata=this.levelkeys[e[0]].getDecryptData(this.sn)}}return this._decryptdata}},{key:"end",get:function(){return this.start+this.duration}},{key:"endProgramDateTime",get:function(){if(null===this.programDateTime)return null;if(!m(this.programDateTime))return null;var t=m(this.duration)?this.duration:0;return this.programDateTime+1e3*t}},{key:"encrypted",get:function(){var t;if(null!=(t=this._decryptdata)&&t.encrypted)return!0;if(this.levelkeys){var e=Object.keys(this.levelkeys),r=e.length;if(r>1||1===r&&this.levelkeys[e[0]].encrypted)return!0}return!1}}]),e}(M),N=function(t){function e(e,r,n,i,a){var s;(s=t.call(this,n)||this).fragOffset=0,s.duration=0,s.gap=!1,s.independent=!1,s.relurl=void 0,s.fragment=void 0,s.index=void 0,s.stats=new R,s.duration=e.decimalFloatingPoint("DURATION"),s.gap=e.bool("GAP"),s.independent=e.bool("INDEPENDENT"),s.relurl=e.enumeratedString("URI"),s.fragment=r,s.index=i;var o=e.enumeratedString("BYTERANGE");return o&&s.setByteRange(o,a),a&&(s.fragOffset=a.fragOffset+a.duration),s}return c(e,t),a(e,[{key:"start",get:function(){return this.fragment.start+this.fragOffset}},{key:"end",get:function(){return this.start+this.duration}},{key:"loaded",get:function(){var t=this.elementaryStreams;return!!(t.audio||t.video||t.audiovideo)}}]),e}(M),H=function(){function t(t){this.PTSKnown=!1,this.alignedSliding=!1,this.averagetargetduration=void 0,this.endCC=0,this.endSN=0,this.fragments=void 0,this.fragmentHint=void 0,this.partList=null,this.dateRanges=void 0,this.live=!0,this.ageHeader=0,this.advancedDateTime=void 0,this.updated=!0,this.advanced=!0,this.availabilityDelay=void 0,this.misses=0,this.startCC=0,this.startSN=0,this.startTimeOffset=null,this.targetduration=0,this.totalduration=0,this.type=null,this.url=void 0,this.m3u8="",this.version=null,this.canBlockReload=!1,this.canSkipUntil=0,this.canSkipDateRanges=!1,this.skippedSegments=0,this.recentlyRemovedDateranges=void 0,this.partHoldBack=0,this.holdBack=0,this.partTarget=0,this.preloadHint=void 0,this.renditionReports=void 0,this.tuneInGoal=0,this.deltaUpdateFailed=void 0,this.driftStartTime=0,this.driftEndTime=0,this.driftStart=0,this.driftEnd=0,this.encryptedFragments=void 0,this.playlistParsingError=null,this.variableList=null,this.hasVariableRefs=!1,this.fragments=[],this.encryptedFragments=[],this.dateRanges={},this.url=t}return t.prototype.reloaded=function(t){if(!t)return this.advanced=!0,void(this.updated=!0);var e=this.lastPartSn-t.lastPartSn,r=this.lastPartIndex-t.lastPartIndex;this.updated=this.endSN!==t.endSN||!!r||!!e||!this.live,this.advanced=this.endSN>t.endSN||e>0||0===e&&r>0,this.updated||this.advanced?this.misses=Math.floor(.6*t.misses):this.misses=t.misses+1,this.availabilityDelay=t.availabilityDelay},a(t,[{key:"hasProgramDateTime",get:function(){return!!this.fragments.length&&m(this.fragments[this.fragments.length-1].programDateTime)}},{key:"levelTargetDuration",get:function(){return this.averagetargetduration||this.targetduration||10}},{key:"drift",get:function(){var t=this.driftEndTime-this.driftStartTime;return t>0?1e3*(this.driftEnd-this.driftStart)/t:1}},{key:"edge",get:function(){return this.partEnd||this.fragmentEnd}},{key:"partEnd",get:function(){var t;return null!=(t=this.partList)&&t.length?this.partList[this.partList.length-1].end:this.fragmentEnd}},{key:"fragmentEnd",get:function(){var t;return null!=(t=this.fragments)&&t.length?this.fragments[this.fragments.length-1].end:0}},{key:"age",get:function(){return this.advancedDateTime?Math.max(Date.now()-this.advancedDateTime,0)/1e3:0}},{key:"lastPartIndex",get:function(){var t;return null!=(t=this.partList)&&t.length?this.partList[this.partList.length-1].index:-1}},{key:"lastPartSn",get:function(){var t;return null!=(t=this.partList)&&t.length?this.partList[this.partList.length-1].fragment.sn:this.endSN}}]),t}();function $(t){return Uint8Array.from(atob(t),(function(t){return t.charCodeAt(0)}))}function j(t){return Uint8Array.from(unescape(encodeURIComponent(t)),(function(t){return t.charCodeAt(0)}))}var K="undefined"!=typeof self?self:void 0,G={CLEARKEY:"org.w3.clearkey",FAIRPLAY:"com.apple.fps",PLAYREADY:"com.microsoft.playready",WIDEVINE:"com.widevine.alpha"},V="org.w3.clearkey",W="com.apple.streamingkeydelivery",z="com.microsoft.playready",Y="urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed";function q(t){switch(t){case W:return G.FAIRPLAY;case z:return G.PLAYREADY;case Y:return G.WIDEVINE;case V:return G.CLEARKEY}}var X="edef8ba979d64acea3c827dcd51d21ed";function J(t){switch(t){case G.FAIRPLAY:return W;case G.PLAYREADY:return z;case G.WIDEVINE:return Y;case G.CLEARKEY:return V}}function Z(t){var e=t.drmSystems,r=t.widevineLicenseUrl,n=e?[G.FAIRPLAY,G.WIDEVINE,G.PLAYREADY,G.CLEARKEY].filter((function(t){return!!e[t]})):[];return!n[G.WIDEVINE]&&r&&n.push(G.WIDEVINE),n}var tt,et=null!=K&&null!=(tt=K.navigator)&&tt.requestMediaKeySystemAccess?self.navigator.requestMediaKeySystemAccess.bind(self.navigator):null;function rt(t,e,r){return Uint8Array.prototype.slice?t.slice(e,r):new Uint8Array(Array.prototype.slice.call(t,e,r))}var nt,it=function(t,e){return e+10<=t.length&&73===t[e]&&68===t[e+1]&&51===t[e+2]&&t[e+3]<255&&t[e+4]<255&&t[e+6]<128&&t[e+7]<128&&t[e+8]<128&&t[e+9]<128},at=function(t,e){return e+10<=t.length&&51===t[e]&&68===t[e+1]&&73===t[e+2]&&t[e+3]<255&&t[e+4]<255&&t[e+6]<128&&t[e+7]<128&&t[e+8]<128&&t[e+9]<128},st=function(t,e){for(var r=e,n=0;it(t,e);)n+=10,n+=ot(t,e+6),at(t,e+10)&&(n+=10),e+=n;if(n>0)return t.subarray(r,r+n)},ot=function(t,e){var r=0;return r=(127&t[e])<<21,r|=(127&t[e+1])<<14,r|=(127&t[e+2])<<7,r|127&t[e+3]},ut=function(t,e){return it(t,e)&&ot(t,e+6)+10<=t.length-e},lt=function(t){for(var e=dt(t),r=0;r<e.length;r++){var n=e[r];if(ct(n))return vt(n)}},ct=function(t){return t&&"PRIV"===t.key&&"com.apple.streaming.transportStreamTimestamp"===t.info},At=function(t){var e=String.fromCharCode(t[0],t[1],t[2],t[3]),r=ot(t,4);return{type:e,size:r,data:t.subarray(10,10+r)}},dt=function(t){for(var e=0,r=[];it(t,e);){for(var n=ot(t,e+6),i=(e+=10)+n;e+8<i;){var a=At(t.subarray(e)),s=ft(a);s&&r.push(s),e+=a.size+10}at(t,e)&&(e+=10)}return r},ft=function(t){return"PRIV"===t.type?ht(t):"W"===t.type[0]?gt(t):pt(t)},ht=function(t){if(!(t.size<2)){var e=mt(t.data,!0),r=new Uint8Array(t.data.subarray(e.length+1));return{key:t.type,info:e,data:r.buffer}}},pt=function(t){if(!(t.size<2)){if("TXXX"===t.type){var e=1,r=mt(t.data.subarray(e),!0);e+=r.length+1;var n=mt(t.data.subarray(e));return{key:t.type,info:r,data:n}}var i=mt(t.data.subarray(1));return{key:t.type,data:i}}},gt=function(t){if("WXXX"===t.type){if(t.size<2)return;var e=1,r=mt(t.data.subarray(e),!0);e+=r.length+1;var n=mt(t.data.subarray(e));return{key:t.type,info:r,data:n}}var i=mt(t.data);return{key:t.type,data:i}},vt=function(t){if(8===t.data.byteLength){var e=new Uint8Array(t.data),r=1&e[3],n=(e[4]<<23)+(e[5]<<15)+(e[6]<<7)+e[7];return n/=45,r&&(n+=47721858.84),Math.round(n)}},mt=function(t,e){void 0===e&&(e=!1);var r=function(){if(!navigator.userAgent.includes("PlayStation 4"))return nt||void 0===self.TextDecoder||(nt=new self.TextDecoder("utf-8")),nt}();if(r){var n=r.decode(t);if(e){var i=n.indexOf("\0");return-1!==i?n.substring(0,i):n}return n.replace(/\0/g,"")}for(var a,s,o,u=t.length,l="",c=0;c<u;){if(0===(a=t[c++])&&e)return l;if(0!==a&&3!==a)switch(a>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:l+=String.fromCharCode(a);break;case 12:case 13:s=t[c++],l+=String.fromCharCode((31&a)<<6|63&s);break;case 14:s=t[c++],o=t[c++],l+=String.fromCharCode((15&a)<<12|(63&s)<<6|(63&o)<<0)}}return l};var yt=function(t){for(var e="",r=0;r<t.length;r++){var n=t[r].toString(16);n.length<2&&(n="0"+n),e+=n}return e},wt=Math.pow(2,32)-1,bt=[].push,_t={video:1,audio:2,id3:3,text:4};function Bt(t){return String.fromCharCode.apply(null,t)}function Ct(t,e){var r=t[e]<<8|t[e+1];return r<0?65536+r:r}function Et(t,e){var r=xt(t,e);return r<0?4294967296+r:r}function xt(t,e){return t[e]<<24|t[e+1]<<16|t[e+2]<<8|t[e+3]}function Tt(t,e,r){t[e]=r>>24,t[e+1]=r>>16&255,t[e+2]=r>>8&255,t[e+3]=255&r}function St(t,e){var r=[];if(!e.length)return r;for(var n=t.byteLength,i=0;i<n;){var a=Et(t,i),s=a>1?i+a:n;if(Bt(t.subarray(i+4,i+8))===e[0])if(1===e.length)r.push(t.subarray(i+8,s));else{var o=St(t.subarray(i+8,s),e.slice(1));o.length&&bt.apply(r,o)}i=s}return r}function kt(t){var e=[],r=t[0],n=8,i=Et(t,n);n+=4,n+=0===r?8:16,n+=2;var a=t.length+0,s=Ct(t,n);n+=2;for(var o=0;o<s;o++){var u=n,l=Et(t,u);u+=4;var c=2147483647&l;if(1==(2147483648&l)>>>31)return S.warn("SIDX has hierarchical references (not supported)"),null;var A=Et(t,u);u+=4,e.push({referenceSize:c,subsegmentDuration:A,info:{duration:A/i,start:a,end:a+c-1}}),a+=c,n=u+=4}return{earliestPresentationTime:0,timescale:i,version:r,referencesCount:s,references:e}}function It(t){for(var r=[],n=St(t,["moov","trak"]),i=0;i<n.length;i++){var a=n[i],s=St(a,["tkhd"])[0];if(s){var o=s[0],u=Et(s,0===o?12:20),l=St(a,["mdia","mdhd"])[0];if(l){var c=Et(l,0===(o=l[0])?12:20),A=St(a,["mdia","hdlr"])[0];if(A){var d=Bt(A.subarray(8,12)),f={soun:U,vide:O}[d];if(f){var h=Ft(St(a,["mdia","minf","stbl","stsd"])[0]);r[u]={timescale:c,type:f},r[f]=e({timescale:c,id:u},h)}}}}}return St(t,["moov","mvex","trex"]).forEach((function(t){var e=Et(t,4),n=r[e];n&&(n.default={duration:Et(t,12),flags:Et(t,20)})})),r}function Ft(t){var e=t.subarray(8),r=e.subarray(86),n=Bt(e.subarray(4,8)),i=n,a="enca"===n||"encv"===n;if(a){var s=St(e,[n])[0];St(s.subarray("enca"===n?28:78),["sinf"]).forEach((function(t){var e=St(t,["schm"])[0];if(e){var r=Bt(e.subarray(4,8));if("cbcs"===r||"cenc"===r){var n=St(t,["frma"])[0];n&&(i=Bt(n))}}}))}switch(i){case"avc1":case"avc2":case"avc3":case"avc4":var o=St(r,["avcC"])[0];i+="."+Dt(o[1])+Dt(o[2])+Dt(o[3]);break;case"mp4a":var u=St(e,[n])[0],l=St(u.subarray(28),["esds"])[0];if(l&&l.length>12){var c=4;if(3!==l[c++])break;c=Lt(l,c),c+=2;var A=l[c++];if(128&A&&(c+=2),64&A&&(c+=l[c++]),4!==l[c++])break;c=Lt(l,c);var d=l[c++];if(64!==d)break;if(i+="."+Dt(d),c+=12,5!==l[c++])break;c=Lt(l,c);var f=l[c++],h=(248&f)>>3;31===h&&(h+=1+((7&f)<<3)+((224&l[c])>>5)),i+="."+h}break;case"hvc1":case"hev1":var p=St(r,["hvcC"])[0],g=p[1],v=["","A","B","C"][g>>6],m=31&g,y=Et(p,2),w=(32&g)>>5?"H":"L",b=p[12],_=p.subarray(6,12);i+="."+v+m,i+="."+y.toString(16).toUpperCase(),i+="."+w+b;for(var B="",C=_.length;C--;){var E=_[C];(E||B)&&(B="."+E.toString(16).toUpperCase()+B)}i+=B;break;case"dvh1":case"dvhe":var x=St(r,["dvcC"])[0],T=x[2]>>1&127,S=x[2]<<5&32|x[3]>>3&31;i+="."+Rt(T)+"."+Rt(S);break;case"vp09":var k=St(r,["vpcC"])[0],I=k[4],F=k[5],L=k[6]>>4&15;i+="."+Rt(I)+"."+Rt(F)+"."+Rt(L);break;case"av01":var D=St(r,["av1C"])[0],R=D[1]>>>5,U=31&D[1],O=D[2]>>>7?"H":"M",P=(64&D[2])>>6,M=(32&D[2])>>5,Q=2===R&&P?M?12:10:P?10:8,N=(16&D[2])>>4,H=(8&D[2])>>3,$=(4&D[2])>>2,j=3&D[2];i+="."+R+"."+Rt(U)+O+"."+Rt(Q)+"."+N+"."+H+$+j+"."+Rt(1)+"."+Rt(1)+"."+Rt(1)+".0"}return{codec:i,encrypted:a}}function Lt(t,e){for(var r=e+5;128&t[e++]&&e<r;);return e}function Dt(t){return("0"+t.toString(16).toUpperCase()).slice(-2)}function Rt(t){return(t<10?"0":"")+t}function Ut(t){var e=St(t,["schm"])[0];if(e){var r=Bt(e.subarray(4,8));if("cbcs"===r||"cenc"===r)return St(t,["schi","tenc"])[0]}return S.error("[eme] missing 'schm' box"),null}function Ot(t){var e=Et(t,0),r=8;1&e&&(r+=4),4&e&&(r+=4);for(var n=0,i=Et(t,4),a=0;a<i;a++)256&e&&(n+=Et(t,r),r+=4),512&e&&(r+=4),1024&e&&(r+=4),2048&e&&(r+=4);return n}function Pt(t,e){var r=new Uint8Array(t.length+e.length);return r.set(t),r.set(e,t.length),r}function Mt(t,e){var r=[],n=e.samples,i=e.timescale,a=e.id,s=!1;return St(n,["moof"]).map((function(o){var u=o.byteOffset-8;St(o,["traf"]).map((function(o){var l=St(o,["tfdt"]).map((function(t){var e=t[0],r=Et(t,4);return 1===e&&(r*=Math.pow(2,32),r+=Et(t,8)),r/i}))[0];return void 0!==l&&(t=l),St(o,["tfhd"]).map((function(l){var c=Et(l,4),A=16777215&Et(l,0),d=0,f=0!=(16&A),h=0,p=0!=(32&A),g=8;c===a&&(0!=(1&A)&&(g+=8),0!=(2&A)&&(g+=4),0!=(8&A)&&(d=Et(l,g),g+=4),f&&(h=Et(l,g),g+=4),p&&(g+=4),"video"===e.type&&(s=function(t){if(!t)return!1;var e=t.indexOf("."),r=e<0?t:t.substring(0,e);return"hvc1"===r||"hev1"===r||"dvh1"===r||"dvhe"===r}(e.codec)),St(o,["trun"]).map((function(a){var o=a[0],l=16777215&Et(a,0),c=0!=(1&l),A=0,f=0!=(4&l),p=0!=(256&l),g=0,v=0!=(512&l),m=0,y=0!=(1024&l),w=0!=(2048&l),b=0,_=Et(a,4),B=8;c&&(A=Et(a,B),B+=4),f&&(B+=4);for(var C=A+u,E=0;E<_;E++){if(p?(g=Et(a,B),B+=4):g=d,v?(m=Et(a,B),B+=4):m=h,y&&(B+=4),w&&(b=0===o?Et(a,B):xt(a,B),B+=4),e.type===O)for(var x=0;x<m;){var T=Et(n,C);Qt(s,n[C+=4])&&Nt(n.subarray(C,C+T),s?2:1,t+b/i,r),C+=T,x+=T+4}t+=g/i}})))}))}))})),r}function Qt(t,e){if(t){var r=e>>1&63;return 39===r||40===r}return 6==(31&e)}function Nt(t,e,r,n){var i=Ht(t),a=0;a+=e;for(var s=0,o=0,u=0;a<i.length;){s=0;do{if(a>=i.length)break;s+=u=i[a++]}while(255===u);o=0;do{if(a>=i.length)break;o+=u=i[a++]}while(255===u);var l=i.length-a,c=a;if(o<l)a+=o;else if(o>l){S.error("Malformed SEI payload. "+o+" is too small, only "+l+" bytes left to parse.");break}if(4===s){if(181===i[c++]){var A=Ct(i,c);if(c+=2,49===A){var d=Et(i,c);if(c+=4,1195456820===d){var f=i[c++];if(3===f){var h=i[c++],p=64&h,g=p?2+3*(31&h):0,v=new Uint8Array(g);if(p){v[0]=h;for(var m=1;m<g;m++)v[m]=i[c++]}n.push({type:f,payloadType:s,pts:r,bytes:v})}}}}}else if(5===s&&o>16){for(var y=[],w=0;w<16;w++){var b=i[c++].toString(16);y.push(1==b.length?"0"+b:b),3!==w&&5!==w&&7!==w&&9!==w||y.push("-")}for(var _=o-16,B=new Uint8Array(_),C=0;C<_;C++)B[C]=i[c++];n.push({payloadType:s,pts:r,uuid:y.join(""),userData:mt(B),userDataBytes:B})}}}function Ht(t){for(var e=t.byteLength,r=[],n=1;n<e-2;)0===t[n]&&0===t[n+1]&&3===t[n+2]?(r.push(n+2),n+=2):n++;if(0===r.length)return t;var i=e-r.length,a=new Uint8Array(i),s=0;for(n=0;n<i;s++,n++)s===r[0]&&(s++,r.shift()),a[n]=t[s];return a}var $t={},jt=function(){function t(t,e,r,n,i){void 0===n&&(n=[1]),void 0===i&&(i=null),this.uri=void 0,this.method=void 0,this.keyFormat=void 0,this.keyFormatVersions=void 0,this.encrypted=void 0,this.isCommonEncryption=void 0,this.iv=null,this.key=null,this.keyId=null,this.pssh=null,this.method=t,this.uri=e,this.keyFormat=r,this.keyFormatVersions=n,this.iv=i,this.encrypted=!!t&&"NONE"!==t,this.isCommonEncryption=this.encrypted&&"AES-128"!==t}t.clearKeyUriToKeyIdMap=function(){$t={}};var e=t.prototype;return e.isSupported=function(){if(this.method){if("AES-128"===this.method||"NONE"===this.method)return!0;if("identity"===this.keyFormat)return"SAMPLE-AES"===this.method;switch(this.keyFormat){case W:case Y:case z:case V:return-1!==["ISO-23001-7","SAMPLE-AES","SAMPLE-AES-CENC","SAMPLE-AES-CTR"].indexOf(this.method)}}return!1},e.getDecryptData=function(e){if(!this.encrypted||!this.uri)return null;if("AES-128"===this.method&&this.uri&&!this.iv){"number"!=typeof e&&("AES-128"!==this.method||this.iv||S.warn('missing IV for initialization segment with method="'+this.method+'" - compliance issue'),e=0);var r=function(t){for(var e=new Uint8Array(16),r=12;r<16;r++)e[r]=t>>8*(15-r)&255;return e}(e);return new t(this.method,this.uri,"identity",this.keyFormatVersions,r)}var n=function(t){var e,r,n=t.split(":"),i=null;if("data"===n[0]&&2===n.length){var a=n[1].split(";"),s=a[a.length-1].split(",");if(2===s.length){var o="base64"===s[0],u=s[1];o?(a.splice(-1,1),i=$(u)):(e=j(u).subarray(0,16),(r=new Uint8Array(16)).set(e,16-e.length),i=r)}}return i}(this.uri);if(n)switch(this.keyFormat){case Y:this.pssh=n,n.length>=22&&(this.keyId=n.subarray(n.length-22,n.length-6));break;case z:var i=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);this.pssh=function(t,e,r){if(16!==t.byteLength)throw new RangeError("Invalid system id");var n,i,a;if(e){n=1,i=new Uint8Array(16*e.length);for(var s=0;s<e.length;s++){var o=e[s];if(16!==o.byteLength)throw new RangeError("Invalid key");i.set(o,16*s)}}else n=0,i=new Uint8Array;n>0?(a=new Uint8Array(4),e.length>0&&new DataView(a.buffer).setUint32(0,e.length,!1)):a=new Uint8Array;var u=new Uint8Array(4);return r&&r.byteLength>0&&new DataView(u.buffer).setUint32(0,r.byteLength,!1),function(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];for(var i=r.length,a=8,s=i;s--;)a+=r[s].byteLength;var o=new Uint8Array(a);for(o[0]=a>>24&255,o[1]=a>>16&255,o[2]=a>>8&255,o[3]=255&a,o.set(t,4),s=0,a=8;s<i;s++)o.set(r[s],a),a+=r[s].byteLength;return o}([112,115,115,104],new Uint8Array([n,0,0,0]),t,a,i,u,r||new Uint8Array)}(i,null,n);var a=new Uint16Array(n.buffer,n.byteOffset,n.byteLength/2),s=String.fromCharCode.apply(null,Array.from(a)),o=s.substring(s.indexOf("<"),s.length),u=(new DOMParser).parseFromString(o,"text/xml").getElementsByTagName("KID")[0];if(u){var l=u.childNodes[0]?u.childNodes[0].nodeValue:u.getAttribute("VALUE");if(l){var c=$(l).subarray(0,16);!function(t){var e=function(t,e,r){var n=t[e];t[e]=t[r],t[r]=n};e(t,0,3),e(t,1,2),e(t,4,5),e(t,6,7)}(c),this.keyId=c}}break;default:var A=n.subarray(0,16);if(16!==A.length){var d=new Uint8Array(16);d.set(A,16-A.length),A=d}this.keyId=A}if(!this.keyId||16!==this.keyId.byteLength){var f=$t[this.uri];if(!f){var h=Object.keys($t).length%Number.MAX_SAFE_INTEGER;f=new Uint8Array(16),new DataView(f.buffer,12,4).setUint32(0,h),$t[this.uri]=f}this.keyId=f}return this},t}(),Kt=/\{\$([a-zA-Z0-9-_]+)\}/g;function Gt(t){return Kt.test(t)}function Vt(t,e,r){if(null!==t.variableList||t.hasVariableRefs)for(var n=r.length;n--;){var i=r[n],a=e[i];a&&(e[i]=Wt(t,a))}}function Wt(t,e){if(null!==t.variableList||t.hasVariableRefs){var r=t.variableList;return e.replace(Kt,(function(e){var n=e.substring(2,e.length-1),i=null==r?void 0:r[n];return void 0===i?(t.playlistParsingError||(t.playlistParsingError=new Error('Missing preceding EXT-X-DEFINE tag for Variable Reference: "'+n+'"')),e):i}))}return e}function zt(t,e,r){var n,i,a=t.variableList;if(a||(t.variableList=a={}),"QUERYPARAM"in e){n=e.QUERYPARAM;try{var s=new self.URL(r).searchParams;if(!s.has(n))throw new Error('"'+n+'" does not match any query parameter in URI: "'+r+'"');i=s.get(n)}catch(e){t.playlistParsingError||(t.playlistParsingError=new Error("EXT-X-DEFINE QUERYPARAM: "+e.message))}}else n=e.NAME,i=e.VALUE;n in a?t.playlistParsingError||(t.playlistParsingError=new Error('EXT-X-DEFINE duplicate Variable Name declarations: "'+n+'"')):a[n]=i||""}function Yt(t,e,r){var n=e.IMPORT;if(r&&n in r){var i=t.variableList;i||(t.variableList=i={}),i[n]=r[n]}else t.playlistParsingError||(t.playlistParsingError=new Error('EXT-X-DEFINE IMPORT attribute not found in Multivariant Playlist: "'+n+'"'))}function qt(t){if(void 0===t&&(t=!0),"undefined"!=typeof self)return(t||!self.MediaSource)&&self.ManagedMediaSource||self.MediaSource||self.WebKitMediaSource}var Xt={audio:{a3ds:1,"ac-3":.95,"ac-4":1,alac:.9,alaw:1,dra1:1,"dts+":1,"dts-":1,dtsc:1,dtse:1,dtsh:1,"ec-3":.9,enca:1,fLaC:.9,flac:.9,FLAC:.9,g719:1,g726:1,m4ae:1,mha1:1,mha2:1,mhm1:1,mhm2:1,mlpa:1,mp4a:1,"raw ":1,Opus:1,opus:1,samr:1,sawb:1,sawp:1,sevc:1,sqcp:1,ssmv:1,twos:1,ulaw:1},video:{avc1:1,avc2:1,avc3:1,avc4:1,avcp:1,av01:.8,drac:1,dva1:1,dvav:1,dvh1:.7,dvhe:.7,encv:1,hev1:.75,hvc1:.75,mjp2:1,mp4v:1,mvc1:1,mvc2:1,mvc3:1,mvc4:1,resv:1,rv60:1,s263:1,svc1:1,svc2:1,"vc-1":1,vp08:1,vp09:.9},text:{stpp:1,wvtt:1}};function Jt(t,e,r){return void 0===r&&(r=!0),!t.split(",").some((function(t){return!Zt(t,e,r)}))}function Zt(t,e,r){var n;void 0===r&&(r=!0);var i=qt(r);return null!=(n=null==i?void 0:i.isTypeSupported(te(t,e)))&&n}function te(t,e){return e+'/mp4;codecs="'+t+'"'}function ee(t){if(t){var e=t.substring(0,4);return Xt.video[e]}return 2}function re(t){return t.split(",").reduce((function(t,e){var r=Xt.video[e];return r?(2*r+t)/(t?3:2):(Xt.audio[e]+t)/(t?2:1)}),0)}var ne={},ie=/flac|opus/i;function ae(t,e){return void 0===e&&(e=!0),t.replace(ie,(function(t){return function(t,e){if(void 0===e&&(e=!0),ne[t])return ne[t];for(var r={flac:["flac","fLaC","FLAC"],opus:["opus","Opus"]}[t],n=0;n<r.length;n++)if(Zt(r[n],"audio",e))return ne[t]=r[n],r[n];return t}(t.toLowerCase(),e)}))}function se(t,e){return t&&"mp4a"!==t?t:e}var oe=/#EXT-X-STREAM-INF:([^\r\n]*)(?:[\r\n](?:#[^\r\n]*)?)*([^\r\n]+)|#EXT-X-(SESSION-DATA|SESSION-KEY|DEFINE|CONTENT-STEERING|START):([^\r\n]*)[\r\n]+/g,ue=/#EXT-X-MEDIA:(.*)/g,le=/^#EXT(?:INF|-X-TARGETDURATION):/m,ce=new RegExp([/#EXTINF:\s*(\d*(?:\.\d+)?)(?:,(.*)\s+)?/.source,/(?!#) *(\S[\S ]*)/.source,/#EXT-X-BYTERANGE:*(.+)/.source,/#EXT-X-PROGRAM-DATE-TIME:(.+)/.source,/#.*/.source].join("|"),"g"),Ae=new RegExp([/#(EXTM3U)/.source,/#EXT-X-(DATERANGE|DEFINE|KEY|MAP|PART|PART-INF|PLAYLIST-TYPE|PRELOAD-HINT|RENDITION-REPORT|SERVER-CONTROL|SKIP|START):(.+)/.source,/#EXT-X-(BITRATE|DISCONTINUITY-SEQUENCE|MEDIA-SEQUENCE|TARGETDURATION|VERSION): *(\d+)/.source,/#EXT-X-(DISCONTINUITY|ENDLIST|GAP|INDEPENDENT-SEGMENTS)/.source,/(#)([^:]*):(.*)/.source,/(#)(.*)(?:.*)\r?\n?/.source].join("|")),de=function(){function t(){}return t.findGroup=function(t,e){for(var r=0;r<t.length;r++){var n=t[r];if(n.id===e)return n}},t.resolve=function(t,e){return v.buildAbsoluteURL(e,t,{alwaysNormalize:!0})},t.isMediaPlaylist=function(t){return le.test(t)},t.parseMasterPlaylist=function(e,r){var n,i={contentSteering:null,levels:[],playlistParsingError:null,sessionData:null,sessionKeys:null,startTimeOffset:null,variableList:null,hasVariableRefs:Gt(e)},a=[];for(oe.lastIndex=0;null!=(n=oe.exec(e));)if(n[1]){var s,o=new F(n[1]);Vt(i,o,["CODECS","SUPPLEMENTAL-CODECS","ALLOWED-CPC","PATHWAY-ID","STABLE-VARIANT-ID","AUDIO","VIDEO","SUBTITLES","CLOSED-CAPTIONS","NAME"]);var u=Wt(i,n[2]),l={attrs:o,bitrate:o.decimalInteger("BANDWIDTH")||o.decimalInteger("AVERAGE-BANDWIDTH"),name:o.NAME,url:t.resolve(u,r)},c=o.decimalResolution("RESOLUTION");c&&(l.width=c.width,l.height=c.height),pe(o.CODECS,l),null!=(s=l.unknownCodecs)&&s.length||a.push(l),i.levels.push(l)}else if(n[3]){var A=n[3],d=n[4];switch(A){case"SESSION-DATA":var f=new F(d);Vt(i,f,["DATA-ID","LANGUAGE","VALUE","URI"]);var h=f["DATA-ID"];h&&(null===i.sessionData&&(i.sessionData={}),i.sessionData[h]=f);break;case"SESSION-KEY":var p=fe(d,r,i);p.encrypted&&p.isSupported()?(null===i.sessionKeys&&(i.sessionKeys=[]),i.sessionKeys.push(p)):S.warn('[Keys] Ignoring invalid EXT-X-SESSION-KEY tag: "'+d+'"');break;case"DEFINE":var g=new F(d);Vt(i,g,["NAME","VALUE","QUERYPARAM"]),zt(i,g,r);break;case"CONTENT-STEERING":var v=new F(d);Vt(i,v,["SERVER-URI","PATHWAY-ID"]),i.contentSteering={uri:t.resolve(v["SERVER-URI"],r),pathwayId:v["PATHWAY-ID"]||"."};break;case"START":i.startTimeOffset=he(d)}}var m=a.length>0&&a.length<i.levels.length;return i.levels=m?a:i.levels,0===i.levels.length&&(i.playlistParsingError=new Error("no levels found in manifest")),i},t.parseMasterPlaylistMedia=function(e,r,n){var i,a={},s=n.levels,o={AUDIO:s.map((function(t){return{id:t.attrs.AUDIO,audioCodec:t.audioCodec}})),SUBTITLES:s.map((function(t){return{id:t.attrs.SUBTITLES,textCodec:t.textCodec}})),"CLOSED-CAPTIONS":[]},u=0;for(ue.lastIndex=0;null!==(i=ue.exec(e));){var l=new F(i[1]),c=l.TYPE;if(c){var A=o[c],d=a[c]||[];a[c]=d,Vt(n,l,["URI","GROUP-ID","LANGUAGE","ASSOC-LANGUAGE","STABLE-RENDITION-ID","NAME","INSTREAM-ID","CHARACTERISTICS","CHANNELS"]);var f=l.LANGUAGE,h=l["ASSOC-LANGUAGE"],p=l.CHANNELS,g=l.CHARACTERISTICS,v=l["INSTREAM-ID"],m={attrs:l,bitrate:0,id:u++,groupId:l["GROUP-ID"]||"",name:l.NAME||f||"",type:c,default:l.bool("DEFAULT"),autoselect:l.bool("AUTOSELECT"),forced:l.bool("FORCED"),lang:f,url:l.URI?t.resolve(l.URI,r):""};if(h&&(m.assocLang=h),p&&(m.channels=p),g&&(m.characteristics=g),v&&(m.instreamId=v),null!=A&&A.length){var y=t.findGroup(A,m.groupId)||A[0];ge(m,y,"audioCodec"),ge(m,y,"textCodec")}d.push(m)}}return a},t.parseLevelPlaylist=function(t,e,r,n,i,a){var s,o,u,c=new H(e),A=c.fragments,d=null,f=0,h=0,p=0,g=0,v=null,y=new Q(n,e),w=-1,b=!1,_=null;for(ce.lastIndex=0,c.m3u8=t,c.hasVariableRefs=Gt(t);null!==(s=ce.exec(t));){b&&(b=!1,(y=new Q(n,e)).start=p,y.sn=f,y.cc=g,y.level=r,d&&(y.initSegment=d,y.rawProgramDateTime=d.rawProgramDateTime,d.rawProgramDateTime=null,_&&(y.setByteRange(_),_=null)));var B=s[1];if(B){y.duration=parseFloat(B);var C=(" "+s[2]).slice(1);y.title=C||null,y.tagList.push(C?["INF",B,C]:["INF",B])}else if(s[3]){if(m(y.duration)){y.start=p,u&&ye(y,u,c),y.sn=f,y.level=r,y.cc=g,A.push(y);var E=(" "+s[3]).slice(1);y.relurl=Wt(c,E),ve(y,v),v=y,p+=y.duration,f++,h=0,b=!0}}else if(s[4]){var x=(" "+s[4]).slice(1);v?y.setByteRange(x,v):y.setByteRange(x)}else if(s[5])y.rawProgramDateTime=(" "+s[5]).slice(1),y.tagList.push(["PROGRAM-DATE-TIME",y.rawProgramDateTime]),-1===w&&(w=A.length);else{if(!(s=s[0].match(Ae))){S.warn("No matches on slow regex match for level playlist!");continue}for(o=1;o<s.length&&void 0===s[o];o++);var T=(" "+s[o]).slice(1),k=(" "+s[o+1]).slice(1),I=s[o+2]?(" "+s[o+2]).slice(1):"";switch(T){case"PLAYLIST-TYPE":c.type=k.toUpperCase();break;case"MEDIA-SEQUENCE":f=c.startSN=parseInt(k);break;case"SKIP":var L=new F(k);Vt(c,L,["RECENTLY-REMOVED-DATERANGES"]);var R=L.decimalInteger("SKIPPED-SEGMENTS");if(m(R)){c.skippedSegments=R;for(var U=R;U--;)A.unshift(null);f+=R}var O=L.enumeratedString("RECENTLY-REMOVED-DATERANGES");O&&(c.recentlyRemovedDateranges=O.split("\t"));break;case"TARGETDURATION":c.targetduration=Math.max(parseInt(k),1);break;case"VERSION":c.version=parseInt(k);break;case"INDEPENDENT-SEGMENTS":case"EXTM3U":break;case"ENDLIST":c.live=!1;break;case"#":(k||I)&&y.tagList.push(I?[k,I]:[k]);break;case"DISCONTINUITY":g++,y.tagList.push(["DIS"]);break;case"GAP":y.gap=!0,y.tagList.push([T]);break;case"BITRATE":y.tagList.push([T,k]);break;case"DATERANGE":var P=new F(k);Vt(c,P,["ID","CLASS","START-DATE","END-DATE","SCTE35-CMD","SCTE35-OUT","SCTE35-IN"]),Vt(c,P,P.clientAttrs);var M=new D(P,c.dateRanges[P.ID]);M.isValid||c.skippedSegments?c.dateRanges[M.id]=M:S.warn('Ignoring invalid DATERANGE tag: "'+k+'"'),y.tagList.push(["EXT-X-DATERANGE",k]);break;case"DEFINE":var $=new F(k);Vt(c,$,["NAME","VALUE","IMPORT","QUERYPARAM"]),"IMPORT"in $?Yt(c,$,a):zt(c,$,e);break;case"DISCONTINUITY-SEQUENCE":g=parseInt(k);break;case"KEY":var j=fe(k,e,c);if(j.isSupported()){if("NONE"===j.method){u=void 0;break}u||(u={}),u[j.keyFormat]&&(u=l({},u)),u[j.keyFormat]=j}else S.warn('[Keys] Ignoring invalid EXT-X-KEY tag: "'+k+'"');break;case"START":c.startTimeOffset=he(k);break;case"MAP":var K=new F(k);if(Vt(c,K,["BYTERANGE","URI"]),y.duration){var G=new Q(n,e);me(G,K,r,u),d=G,y.initSegment=d,d.rawProgramDateTime&&!y.rawProgramDateTime&&(y.rawProgramDateTime=d.rawProgramDateTime)}else{var V=y.byteRangeEndOffset;if(V){var W=y.byteRangeStartOffset;_=V-W+"@"+W}else _=null;me(y,K,r,u),d=y,b=!0}break;case"SERVER-CONTROL":var z=new F(k);c.canBlockReload=z.bool("CAN-BLOCK-RELOAD"),c.canSkipUntil=z.optionalFloat("CAN-SKIP-UNTIL",0),c.canSkipDateRanges=c.canSkipUntil>0&&z.bool("CAN-SKIP-DATERANGES"),c.partHoldBack=z.optionalFloat("PART-HOLD-BACK",0),c.holdBack=z.optionalFloat("HOLD-BACK",0);break;case"PART-INF":var Y=new F(k);c.partTarget=Y.decimalFloatingPoint("PART-TARGET");break;case"PART":var q=c.partList;q||(q=c.partList=[]);var X=h>0?q[q.length-1]:void 0,J=h++,Z=new F(k);Vt(c,Z,["BYTERANGE","URI"]);var tt=new N(Z,y,e,J,X);q.push(tt),y.duration+=tt.duration;break;case"PRELOAD-HINT":var et=new F(k);Vt(c,et,["URI"]),c.preloadHint=et;break;case"RENDITION-REPORT":var rt=new F(k);Vt(c,rt,["URI"]),c.renditionReports=c.renditionReports||[],c.renditionReports.push(rt);break;default:S.warn("line parsed but not handled: "+s)}}}v&&!v.relurl?(A.pop(),p-=v.duration,c.partList&&(c.fragmentHint=v)):c.partList&&(ve(y,v),y.cc=g,c.fragmentHint=y,u&&ye(y,u,c));var nt=A.length,it=A[0],at=A[nt-1];if((p+=c.skippedSegments*c.targetduration)>0&&nt&&at){c.averagetargetduration=p/nt;var st=at.sn;c.endSN="initSegment"!==st?st:0,c.live||(at.endList=!0),it&&(c.startCC=it.cc)}else c.endSN=0,c.startCC=0;return c.fragmentHint&&(p+=c.fragmentHint.duration),c.totalduration=p,c.endCC=g,w>0&&function(t,e){for(var r=t[e],n=e;n--;){var i=t[n];if(!i)return;i.programDateTime=r.programDateTime-1e3*i.duration,r=i}}(A,w),c},t}();function fe(t,e,r){var n,i,a=new F(t);Vt(r,a,["KEYFORMAT","KEYFORMATVERSIONS","URI","IV","URI"]);var s=null!=(n=a.METHOD)?n:"",o=a.URI,u=a.hexadecimalInteger("IV"),l=a.KEYFORMATVERSIONS,c=null!=(i=a.KEYFORMAT)?i:"identity";o&&a.IV&&!u&&S.error("Invalid IV: "+a.IV);var A=o?de.resolve(o,e):"",d=(l||"1").split("/").map(Number).filter(Number.isFinite);return new jt(s,A,c,d,u)}function he(t){var e=new F(t).decimalFloatingPoint("TIME-OFFSET");return m(e)?e:null}function pe(t,e){var r=(t||"").split(/[ ,]+/).filter((function(t){return t}));["video","audio","text"].forEach((function(t){var n=r.filter((function(e){return function(t,e){var r=Xt[e];return!!r&&!!r[t.slice(0,4)]}(e,t)}));n.length&&(e[t+"Codec"]=n.join(","),r=r.filter((function(t){return-1===n.indexOf(t)})))})),e.unknownCodecs=r}function ge(t,e,r){var n=e[r];n&&(t[r]=n)}function ve(t,e){t.rawProgramDateTime?t.programDateTime=Date.parse(t.rawProgramDateTime):null!=e&&e.programDateTime&&(t.programDateTime=e.endProgramDateTime),m(t.programDateTime)||(t.programDateTime=null,t.rawProgramDateTime=null)}function me(t,e,r,n){t.relurl=e.URI,e.BYTERANGE&&t.setByteRange(e.BYTERANGE),t.level=r,t.sn="initSegment",n&&(t.levelkeys=n),t.initSegment=null}function ye(t,e,r){t.levelkeys=e;var n=r.encryptedFragments;n.length&&n[n.length-1].levelkeys===e||!Object.keys(e).some((function(t){return e[t].isCommonEncryption}))||n.push(t)}var we="manifest",be="level",_e="audioTrack",Be="subtitleTrack",Ce="main",Ee="audio",xe="subtitle";function Te(t){switch(t.type){case _e:return Ee;case Be:return xe;default:return Ce}}function Se(t,e){var r=t.url;return void 0!==r&&0!==r.indexOf("data:")||(r=e.url),r}var ke=function(){function t(t){this.hls=void 0,this.loaders=Object.create(null),this.variableList=null,this.hls=t,this.registerListeners()}var r=t.prototype;return r.startLoad=function(t){},r.stopLoad=function(){this.destroyInternalLoaders()},r.registerListeners=function(){var t=this.hls;t.on(b.MANIFEST_LOADING,this.onManifestLoading,this),t.on(b.LEVEL_LOADING,this.onLevelLoading,this),t.on(b.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),t.on(b.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)},r.unregisterListeners=function(){var t=this.hls;t.off(b.MANIFEST_LOADING,this.onManifestLoading,this),t.off(b.LEVEL_LOADING,this.onLevelLoading,this),t.off(b.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),t.off(b.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)},r.createInternalLoader=function(t){var e=this.hls.config,r=e.pLoader,n=e.loader,i=new(r||n)(e);return this.loaders[t.type]=i,i},r.getInternalLoader=function(t){return this.loaders[t.type]},r.resetInternalLoader=function(t){this.loaders[t]&&delete this.loaders[t]},r.destroyInternalLoaders=function(){for(var t in this.loaders){var e=this.loaders[t];e&&e.destroy(),this.resetInternalLoader(t)}},r.destroy=function(){this.variableList=null,this.unregisterListeners(),this.destroyInternalLoaders()},r.onManifestLoading=function(t,e){var r=e.url;this.variableList=null,this.load({id:null,level:0,responseType:"text",type:we,url:r,deliveryDirectives:null})},r.onLevelLoading=function(t,e){var r=e.id,n=e.level,i=e.pathwayId,a=e.url,s=e.deliveryDirectives;this.load({id:r,level:n,pathwayId:i,responseType:"text",type:be,url:a,deliveryDirectives:s})},r.onAudioTrackLoading=function(t,e){var r=e.id,n=e.groupId,i=e.url,a=e.deliveryDirectives;this.load({id:r,groupId:n,level:null,responseType:"text",type:_e,url:i,deliveryDirectives:a})},r.onSubtitleTrackLoading=function(t,e){var r=e.id,n=e.groupId,i=e.url,a=e.deliveryDirectives;this.load({id:r,groupId:n,level:null,responseType:"text",type:Be,url:i,deliveryDirectives:a})},r.load=function(t){var e,r,n,i=this,a=this.hls.config,s=this.getInternalLoader(t);if(s){var o=s.context;if(o&&o.url===t.url&&o.level===t.level)return void S.trace("[playlist-loader]: playlist request ongoing");S.log("[playlist-loader]: aborting previous loader for type: "+t.type),s.abort()}if(r=t.type===we?a.manifestLoadPolicy.default:l({},a.playlistLoadPolicy.default,{timeoutRetry:null,errorRetry:null}),s=this.createInternalLoader(t),m(null==(e=t.deliveryDirectives)?void 0:e.part)&&(t.type===be&&null!==t.level?n=this.hls.levels[t.level].details:t.type===_e&&null!==t.id?n=this.hls.audioTracks[t.id].details:t.type===Be&&null!==t.id&&(n=this.hls.subtitleTracks[t.id].details),n)){var u=n.partTarget,c=n.targetduration;if(u&&c){var A=1e3*Math.max(3*u,.8*c);r=l({},r,{maxTimeToFirstByteMs:Math.min(A,r.maxTimeToFirstByteMs),maxLoadTimeMs:Math.min(A,r.maxTimeToFirstByteMs)})}}var d=r.errorRetry||r.timeoutRetry||{},f={loadPolicy:r,timeout:r.maxLoadTimeMs,maxRetry:d.maxNumRetry||0,retryDelay:d.retryDelayMs||0,maxRetryDelay:d.maxRetryDelayMs||0},h={onSuccess:function(t,e,r,n){var a=i.getInternalLoader(r);i.resetInternalLoader(r.type);var s=t.data;0===s.indexOf("#EXTM3U")?(e.parsing.start=performance.now(),de.isMediaPlaylist(s)?i.handleTrackOrLevelPlaylist(t,e,r,n||null,a):i.handleMasterPlaylist(t,e,r,n)):i.handleManifestParsingError(t,r,new Error("no EXTM3U delimiter"),n||null,e)},onError:function(t,e,r,n){i.handleNetworkError(e,r,!1,t,n)},onTimeout:function(t,e,r){i.handleNetworkError(e,r,!0,void 0,t)}};s.load(t,f,h)},r.handleMasterPlaylist=function(t,e,r,n){var i=this.hls,a=t.data,s=Se(t,r),o=de.parseMasterPlaylist(a,s);if(o.playlistParsingError)this.handleManifestParsingError(t,r,o.playlistParsingError,n,e);else{var u=o.contentSteering,l=o.levels,c=o.sessionData,A=o.sessionKeys,d=o.startTimeOffset,f=o.variableList;this.variableList=f;var h=de.parseMasterPlaylistMedia(a,s,o),p=h.AUDIO,g=void 0===p?[]:p,v=h.SUBTITLES,m=h["CLOSED-CAPTIONS"];g.length&&(g.some((function(t){return!t.url}))||!l[0].audioCodec||l[0].attrs.AUDIO||(S.log("[playlist-loader]: audio codec signaled in quality level, but no embedded audio track signaled, create one"),g.unshift({type:"main",name:"main",groupId:"main",default:!1,autoselect:!1,forced:!1,id:-1,attrs:new F({}),bitrate:0,url:""}))),i.trigger(b.MANIFEST_LOADED,{levels:l,audioTracks:g,subtitles:v,captions:m,contentSteering:u,url:s,stats:e,networkDetails:n,sessionData:c,sessionKeys:A,startTimeOffset:d,variableList:f})}},r.handleTrackOrLevelPlaylist=function(t,e,r,n,i){var a=this.hls,s=r.id,o=r.level,u=r.type,l=Se(t,r),c=m(o)?o:m(s)?s:0,A=Te(r),d=de.parseLevelPlaylist(t.data,l,c,A,0,this.variableList);if(u===we){var f={attrs:new F({}),bitrate:0,details:d,name:"",url:l};a.trigger(b.MANIFEST_LOADED,{levels:[f],audioTracks:[],url:l,stats:e,networkDetails:n,sessionData:null,sessionKeys:null,contentSteering:null,startTimeOffset:null,variableList:null})}e.parsing.end=performance.now(),r.levelDetails=d,this.handlePlaylistLoaded(d,t,e,r,n,i)},r.handleManifestParsingError=function(t,e,r,n,i){this.hls.trigger(b.ERROR,{type:_.NETWORK_ERROR,details:B.MANIFEST_PARSING_ERROR,fatal:e.type===we,url:t.url,err:r,error:r,reason:r.message,response:t,context:e,networkDetails:n,stats:i})},r.handleNetworkError=function(t,r,n,i,a){void 0===n&&(n=!1);var s="A network "+(n?"timeout":"error"+(i?" (status "+i.code+")":""))+" occurred while loading "+t.type;t.type===be?s+=": "+t.level+" id: "+t.id:t.type!==_e&&t.type!==Be||(s+=" id: "+t.id+' group-id: "'+t.groupId+'"');var o=new Error(s);S.warn("[playlist-loader]: "+s);var u=B.UNKNOWN,l=!1,c=this.getInternalLoader(t);switch(t.type){case we:u=n?B.MANIFEST_LOAD_TIMEOUT:B.MANIFEST_LOAD_ERROR,l=!0;break;case be:u=n?B.LEVEL_LOAD_TIMEOUT:B.LEVEL_LOAD_ERROR,l=!1;break;case _e:u=n?B.AUDIO_TRACK_LOAD_TIMEOUT:B.AUDIO_TRACK_LOAD_ERROR,l=!1;break;case Be:u=n?B.SUBTITLE_TRACK_LOAD_TIMEOUT:B.SUBTITLE_LOAD_ERROR,l=!1}c&&this.resetInternalLoader(t.type);var A={type:_.NETWORK_ERROR,details:u,fatal:l,url:t.url,loader:c,context:t,error:o,networkDetails:r,stats:a};if(i){var d=(null==r?void 0:r.url)||t.url;A.response=e({url:d,data:void 0},i)}this.hls.trigger(b.ERROR,A)},r.handlePlaylistLoaded=function(t,e,r,n,i,a){var s=this.hls,o=n.type,u=n.level,l=n.id,c=n.groupId,A=n.deliveryDirectives,d=Se(e,n),f=Te(n),h="number"==typeof n.level&&f===Ce?u:void 0;if(t.fragments.length){t.targetduration||(t.playlistParsingError=new Error("Missing Target Duration"));var p=t.playlistParsingError;if(p)s.trigger(b.ERROR,{type:_.NETWORK_ERROR,details:B.LEVEL_PARSING_ERROR,fatal:!1,url:d,error:p,reason:p.message,response:e,context:n,level:h,parent:f,networkDetails:i,stats:r});else switch(t.live&&a&&(a.getCacheAge&&(t.ageHeader=a.getCacheAge()||0),a.getCacheAge&&!isNaN(t.ageHeader)||(t.ageHeader=0)),o){case we:case be:s.trigger(b.LEVEL_LOADED,{details:t,level:h||0,id:l||0,stats:r,networkDetails:i,deliveryDirectives:A});break;case _e:s.trigger(b.AUDIO_TRACK_LOADED,{details:t,id:l||0,groupId:c||"",stats:r,networkDetails:i,deliveryDirectives:A});break;case Be:s.trigger(b.SUBTITLE_TRACK_LOADED,{details:t,id:l||0,groupId:c||"",stats:r,networkDetails:i,deliveryDirectives:A})}}else{var g=new Error("No Segments found in Playlist");s.trigger(b.ERROR,{type:_.NETWORK_ERROR,details:B.LEVEL_EMPTY_ERROR,fatal:!1,url:d,error:g,reason:g.message,response:e,context:n,level:h,parent:f,networkDetails:i,stats:r})}},t}();function Ie(t,e){var r;try{r=new Event("addtrack")}catch(t){(r=document.createEvent("Event")).initEvent("addtrack",!1,!1)}r.track=t,e.dispatchEvent(r)}function Fe(t,e){var r=t.mode;if("disabled"===r&&(t.mode="hidden"),t.cues&&!t.cues.getCueById(e.id))try{if(t.addCue(e),!t.cues.getCueById(e.id))throw new Error("addCue is failed for: "+e)}catch(r){S.debug("[texttrack-utils]: "+r);try{var n=new self.TextTrackCue(e.startTime,e.endTime,e.text);n.id=e.id,t.addCue(n)}catch(t){S.debug("[texttrack-utils]: Legacy TextTrackCue fallback failed: "+t)}}"disabled"===r&&(t.mode=r)}function Le(t){var e=t.mode;if("disabled"===e&&(t.mode="hidden"),t.cues)for(var r=t.cues.length;r--;)t.removeCue(t.cues[r]);"disabled"===e&&(t.mode=e)}function De(t,e,r,n){var i=t.mode;if("disabled"===i&&(t.mode="hidden"),t.cues&&t.cues.length>0)for(var a=function(t,e,r){var n=[],i=function(t,e){if(e<t[0].startTime)return 0;var r=t.length-1;if(e>t[r].endTime)return-1;for(var n=0,i=r;n<=i;){var a=Math.floor((i+n)/2);if(e<t[a].startTime)i=a-1;else{if(!(e>t[a].startTime&&n<r))return a;n=a+1}}return t[n].startTime-e<e-t[i].startTime?n:i}(t,e);if(i>-1)for(var a=i,s=t.length;a<s;a++){var o=t[a];if(o.startTime>=e&&o.endTime<=r)n.push(o);else if(o.startTime>r)return n}return n}(t.cues,e,r),s=0;s<a.length;s++)n&&!n(a[s])||t.removeCue(a[s]);"disabled"===i&&(t.mode=i)}function Re(t){for(var e=[],r=0;r<t.length;r++){var n=t[r];"subtitles"!==n.kind&&"captions"!==n.kind||!n.label||e.push(t[r])}return e}var Ue="org.id3",Oe="https://aomedia.org/emsg/ID3";function Pe(){if("undefined"!=typeof self)return self.VTTCue||self.TextTrackCue}function Me(t,r,n,i,a){var s=new t(r,n,"");try{s.value=i,a&&(s.type=a)}catch(l){s=new t(r,n,JSON.stringify(a?e({type:a},i):i))}return s}var Qe=function(){var t=Pe();try{t&&new t(0,Number.POSITIVE_INFINITY,"")}catch(t){return Number.MAX_VALUE}return Number.POSITIVE_INFINITY}();function Ne(t,e){return t.getTime()/1e3-e}var He=function(){function t(t){this.hls=void 0,this.id3Track=null,this.media=null,this.dateRangeCuesAppended={},this.hls=t,this._registerListeners()}var e=t.prototype;return e.destroy=function(){this._unregisterListeners(),this.id3Track=null,this.media=null,this.dateRangeCuesAppended={},this.hls=null},e._registerListeners=function(){var t=this.hls;t.on(b.MEDIA_ATTACHED,this.onMediaAttached,this),t.on(b.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(b.MANIFEST_LOADING,this.onManifestLoading,this),t.on(b.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),t.on(b.BUFFER_FLUSHING,this.onBufferFlushing,this),t.on(b.LEVEL_UPDATED,this.onLevelUpdated,this)},e._unregisterListeners=function(){var t=this.hls;t.off(b.MEDIA_ATTACHED,this.onMediaAttached,this),t.off(b.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(b.MANIFEST_LOADING,this.onManifestLoading,this),t.off(b.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),t.off(b.BUFFER_FLUSHING,this.onBufferFlushing,this),t.off(b.LEVEL_UPDATED,this.onLevelUpdated,this)},e.onMediaAttached=function(t,e){this.media=e.media},e.onMediaDetaching=function(){this.id3Track&&(Le(this.id3Track),this.id3Track=null,this.media=null,this.dateRangeCuesAppended={})},e.onManifestLoading=function(){this.dateRangeCuesAppended={}},e.createTrack=function(t){var e=this.getID3Track(t.textTracks);return e.mode="hidden",e},e.getID3Track=function(t){if(this.media){for(var e=0;e<t.length;e++){var r=t[e];if("metadata"===r.kind&&"id3"===r.label)return Ie(r,this.media),r}return this.media.addTextTrack("metadata","id3")}},e.onFragParsingMetadata=function(t,e){if(this.media){var r=this.hls.config,n=r.enableEmsgMetadataCues,i=r.enableID3MetadataCues;if(n||i){var a=e.samples;this.id3Track||(this.id3Track=this.createTrack(this.media));var s=Pe();if(s)for(var o=0;o<a.length;o++){var u=a[o].type;if((u!==Oe||n)&&i){var l=dt(a[o].data);if(l){var c=a[o].pts,A=c+a[o].duration;A>Qe&&(A=Qe),A-c<=0&&(A=c+.25);for(var d=0;d<l.length;d++){var f=l[d];if(!ct(f)){this.updateId3CueEnds(c,u);var h=Me(s,c,A,f,u);h&&this.id3Track.addCue(h)}}}}}}}},e.updateId3CueEnds=function(t,e){var r,n=null==(r=this.id3Track)?void 0:r.cues;if(n)for(var i=n.length;i--;){var a=n[i];a.type===e&&a.startTime<t&&a.endTime===Qe&&(a.endTime=t)}},e.onBufferFlushing=function(t,e){var r=e.startOffset,n=e.endOffset,i=e.type,a=this.id3Track,s=this.hls;if(s){var o=s.config,u=o.enableEmsgMetadataCues,l=o.enableID3MetadataCues;a&&(u||l)&&De(a,r,n,"audio"===i?function(t){return t.type===Ue&&l}:"video"===i?function(t){return t.type===Oe&&u}:function(t){return t.type===Ue&&l||t.type===Oe&&u})}},e.onLevelUpdated=function(t,e){var r=this,n=e.details;if(this.media&&n.hasProgramDateTime&&this.hls.config.enableDateRangeMetadataCues){var i=this.dateRangeCuesAppended,a=this.id3Track,s=n.dateRanges,o=Object.keys(s);if(a)for(var u=Object.keys(i).filter((function(t){return!o.includes(t)})),l=function(){var t=u[c];Object.keys(i[t].cues).forEach((function(e){a.removeCue(i[t].cues[e])})),delete i[t]},c=u.length;c--;)l();var A=n.fragments[n.fragments.length-1];if(0!==o.length&&m(null==A?void 0:A.programDateTime)){this.id3Track||(this.id3Track=this.createTrack(this.media));for(var d=A.programDateTime/1e3-A.start,f=Pe(),h=function(){var t=o[p],e=s[t],n=Ne(e.startDate,d),a=i[t],u=(null==a?void 0:a.cues)||{},l=(null==a?void 0:a.durationKnown)||!1,c=Qe,A=e.endDate;if(A)c=Ne(A,d),l=!0;else if(e.endOnNext&&!l){var h=o.reduce((function(t,r){if(r!==e.id){var n=s[r];if(n.class===e.class&&n.startDate>e.startDate&&(!t||e.startDate<t.startDate))return n}return t}),null);h&&(c=Ne(h.startDate,d),l=!0)}for(var g,v,m=Object.keys(e.attr),y=0;y<m.length;y++){var w=m[y];if("ID"!==(v=w)&&"CLASS"!==v&&"START-DATE"!==v&&"DURATION"!==v&&"END-DATE"!==v&&"END-ON-NEXT"!==v){var b=u[w];if(b)l&&!a.durationKnown&&(b.endTime=c);else if(f){var _=e.attr[w];L(w)&&(g=_,_=Uint8Array.from(g.replace(/^0x/,"").replace(/([\da-fA-F]{2}) ?/g,"0x$1 ").replace(/ +$/,"").split(" ")).buffer);var B=Me(f,n,c,{key:w,data:_},"com.apple.quicktime.HLS");B&&(B.id=t,r.id3Track.addCue(B),u[w]=B)}}}i[t]={cues:u,dateRange:e,durationKnown:l}},p=0;p<o.length;p++)h()}}},t}(),$e=function(){function t(t){var e=this;this.hls=void 0,this.config=void 0,this.media=null,this.levelDetails=null,this.currentTime=0,this.stallCount=0,this._latency=null,this.timeupdateHandler=function(){return e.timeupdate()},this.hls=t,this.config=t.config,this.registerListeners()}var e=t.prototype;return e.destroy=function(){this.unregisterListeners(),this.onMediaDetaching(),this.levelDetails=null,this.hls=this.timeupdateHandler=null},e.registerListeners=function(){this.hls.on(b.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.on(b.MEDIA_DETACHING,this.onMediaDetaching,this),this.hls.on(b.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.on(b.LEVEL_UPDATED,this.onLevelUpdated,this),this.hls.on(b.ERROR,this.onError,this)},e.unregisterListeners=function(){this.hls.off(b.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.off(b.MEDIA_DETACHING,this.onMediaDetaching,this),this.hls.off(b.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.off(b.LEVEL_UPDATED,this.onLevelUpdated,this),this.hls.off(b.ERROR,this.onError,this)},e.onMediaAttached=function(t,e){this.media=e.media,this.media.addEventListener("timeupdate",this.timeupdateHandler)},e.onMediaDetaching=function(){this.media&&(this.media.removeEventListener("timeupdate",this.timeupdateHandler),this.media=null)},e.onManifestLoading=function(){this.levelDetails=null,this._latency=null,this.stallCount=0},e.onLevelUpdated=function(t,e){var r=e.details;this.levelDetails=r,r.advanced&&this.timeupdate(),!r.live&&this.media&&this.media.removeEventListener("timeupdate",this.timeupdateHandler)},e.onError=function(t,e){var r;e.details===B.BUFFER_STALLED_ERROR&&(this.stallCount++,null!=(r=this.levelDetails)&&r.live&&S.warn("[playback-rate-controller]: Stall detected, adjusting target latency"))},e.timeupdate=function(){var t=this.media,e=this.levelDetails;if(t&&e){this.currentTime=t.currentTime;var r=this.computeLatency();if(null!==r){this._latency=r;var n=this.config,i=n.lowLatencyMode,a=n.maxLiveSyncPlaybackRate;if(i&&1!==a&&e.live){var s=this.targetLatency;if(null!==s){var o=r-s;if(o<Math.min(this.maxLatency,s+e.targetduration)&&o>.05&&this.forwardBufferLength>1){var u=Math.min(2,Math.max(1,a)),l=Math.round(2/(1+Math.exp(-.75*o-this.edgeStalled))*20)/20;t.playbackRate=Math.min(u,Math.max(1,l))}else 1!==t.playbackRate&&0!==t.playbackRate&&(t.playbackRate=1)}}}}},e.estimateLiveEdge=function(){var t=this.levelDetails;return null===t?null:t.edge+t.age},e.computeLatency=function(){var t=this.estimateLiveEdge();return null===t?null:t-this.currentTime},a(t,[{key:"latency",get:function(){return this._latency||0}},{key:"maxLatency",get:function(){var t=this.config,e=this.levelDetails;return void 0!==t.liveMaxLatencyDuration?t.liveMaxLatencyDuration:e?t.liveMaxLatencyDurationCount*e.targetduration:0}},{key:"targetLatency",get:function(){var t=this.levelDetails;if(null===t)return null;var e=t.holdBack,r=t.partHoldBack,n=t.targetduration,i=this.config,a=i.liveSyncDuration,s=i.liveSyncDurationCount,o=i.lowLatencyMode,u=this.hls.userConfig,l=o&&r||e;(u.liveSyncDuration||u.liveSyncDurationCount||0===l)&&(l=void 0!==a?a:s*n);var c=n;return l+Math.min(1*this.stallCount,c)}},{key:"liveSyncPosition",get:function(){var t=this.estimateLiveEdge(),e=this.targetLatency,r=this.levelDetails;if(null===t||null===e||null===r)return null;var n=r.edge,i=t-e-this.edgeStalled,a=n-r.totalduration,s=n-(this.config.lowLatencyMode&&r.partTarget||r.targetduration);return Math.min(Math.max(a,i),s)}},{key:"drift",get:function(){var t=this.levelDetails;return null===t?1:t.drift}},{key:"edgeStalled",get:function(){var t=this.levelDetails;if(null===t)return 0;var e=3*(this.config.lowLatencyMode&&t.partTarget||t.targetduration);return Math.max(t.age-e,0)}},{key:"forwardBufferLength",get:function(){var t=this.media,e=this.levelDetails;if(!t||!e)return 0;var r=t.buffered.length;return(r?t.buffered.end(r-1):e.edge)-this.currentTime}}]),t}(),je=["NONE","TYPE-0","TYPE-1",null],Ke=["SDR","PQ","HLG"],Ge=function(){function t(t,e,r){this.msn=void 0,this.part=void 0,this.skip=void 0,this.msn=t,this.part=e,this.skip=r}return t.prototype.addDirectives=function(t){var e=new self.URL(t);return void 0!==this.msn&&e.searchParams.set("_HLS_msn",this.msn.toString()),void 0!==this.part&&e.searchParams.set("_HLS_part",this.part.toString()),this.skip&&e.searchParams.set("_HLS_skip",this.skip),e.href},t}(),Ve=function(){function t(t){this._attrs=void 0,this.audioCodec=void 0,this.bitrate=void 0,this.codecSet=void 0,this.url=void 0,this.frameRate=void 0,this.height=void 0,this.id=void 0,this.name=void 0,this.videoCodec=void 0,this.width=void 0,this.details=void 0,this.fragmentError=0,this.loadError=0,this.loaded=void 0,this.realBitrate=0,this.supportedPromise=void 0,this.supportedResult=void 0,this._avgBitrate=0,this._audioGroups=void 0,this._subtitleGroups=void 0,this._urlId=0,this.url=[t.url],this._attrs=[t.attrs],this.bitrate=t.bitrate,t.details&&(this.details=t.details),this.id=t.id||0,this.name=t.name,this.width=t.width||0,this.height=t.height||0,this.frameRate=t.attrs.optionalFloat("FRAME-RATE",0),this._avgBitrate=t.attrs.decimalInteger("AVERAGE-BANDWIDTH"),this.audioCodec=t.audioCodec,this.videoCodec=t.videoCodec,this.codecSet=[t.videoCodec,t.audioCodec].filter((function(t){return!!t})).map((function(t){return t.substring(0,4)})).join(","),this.addGroupId("audio",t.attrs.AUDIO),this.addGroupId("text",t.attrs.SUBTITLES)}var e=t.prototype;return e.hasAudioGroup=function(t){return We(this._audioGroups,t)},e.hasSubtitleGroup=function(t){return We(this._subtitleGroups,t)},e.addGroupId=function(t,e){if(e)if("audio"===t){var r=this._audioGroups;r||(r=this._audioGroups=[]),-1===r.indexOf(e)&&r.push(e)}else if("text"===t){var n=this._subtitleGroups;n||(n=this._subtitleGroups=[]),-1===n.indexOf(e)&&n.push(e)}},e.addFallback=function(){},a(t,[{key:"maxBitrate",get:function(){return Math.max(this.realBitrate,this.bitrate)}},{key:"averageBitrate",get:function(){return this._avgBitrate||this.realBitrate||this.bitrate}},{key:"attrs",get:function(){return this._attrs[0]}},{key:"codecs",get:function(){return this.attrs.CODECS||""}},{key:"pathwayId",get:function(){return this.attrs["PATHWAY-ID"]||"."}},{key:"videoRange",get:function(){return this.attrs["VIDEO-RANGE"]||"SDR"}},{key:"score",get:function(){return this.attrs.optionalFloat("SCORE",0)}},{key:"uri",get:function(){return this.url[0]||""}},{key:"audioGroups",get:function(){return this._audioGroups}},{key:"subtitleGroups",get:function(){return this._subtitleGroups}},{key:"urlId",get:function(){return 0},set:function(t){}},{key:"audioGroupIds",get:function(){return this.audioGroups?[this.audioGroupId]:void 0}},{key:"textGroupIds",get:function(){return this.subtitleGroups?[this.textGroupId]:void 0}},{key:"audioGroupId",get:function(){var t;return null==(t=this.audioGroups)?void 0:t[0]}},{key:"textGroupId",get:function(){var t;return null==(t=this.subtitleGroups)?void 0:t[0]}}]),t}();function We(t,e){return!(!e||!t)&&-1!==t.indexOf(e)}function ze(t,e){var r=e.startPTS;if(m(r)){var n,i=0;e.sn>t.sn?(i=r-t.start,n=t):(i=t.start-r,n=e),n.duration!==i&&(n.duration=i)}else e.sn>t.sn?t.cc===e.cc&&t.minEndPTS?e.start=t.start+(t.minEndPTS-t.start):e.start=t.start+t.duration:e.start=Math.max(t.start-e.duration,0)}function Ye(t,e,r,n,i,a){n-r<=0&&(S.warn("Fragment should have a positive duration",e),n=r+e.duration,a=i+e.duration);var s=r,o=n,u=e.startPTS,l=e.endPTS;if(m(u)){var c=Math.abs(u-r);m(e.deltaPTS)?e.deltaPTS=Math.max(c,e.deltaPTS):e.deltaPTS=c,s=Math.max(r,u),r=Math.min(r,u),i=Math.min(i,e.startDTS),o=Math.min(n,l),n=Math.max(n,l),a=Math.max(a,e.endDTS)}var A=r-e.start;0!==e.start&&(e.start=r),e.duration=n-e.start,e.startPTS=r,e.maxStartPTS=s,e.startDTS=i,e.endPTS=n,e.minEndPTS=o,e.endDTS=a;var d,f=e.sn;if(!t||f<t.startSN||f>t.endSN)return 0;var h=f-t.startSN,p=t.fragments;for(p[h]=e,d=h;d>0;d--)ze(p[d],p[d-1]);for(d=h;d<p.length-1;d++)ze(p[d],p[d+1]);return t.fragmentHint&&ze(p[p.length-1],t.fragmentHint),t.PTSKnown=t.alignedSliding=!0,A}function qe(t,e){for(var r=null,n=t.fragments,i=n.length-1;i>=0;i--){var a=n[i].initSegment;if(a){r=a;break}}t.fragmentHint&&delete t.fragmentHint.endPTS;var s,o,u,c,A,d=0;if(function(t,e,r){for(var n=e.skippedSegments,i=Math.max(t.startSN,e.startSN)-e.startSN,a=(t.fragmentHint?1:0)+(n?e.endSN:Math.min(t.endSN,e.endSN))-e.startSN,s=e.startSN-t.startSN,o=e.fragmentHint?e.fragments.concat(e.fragmentHint):e.fragments,u=t.fragmentHint?t.fragments.concat(t.fragmentHint):t.fragments,l=i;l<=a;l++){var c=u[s+l],A=o[l];n&&!A&&l<n&&(A=e.fragments[l]=c),c&&A&&r(c,A)}}(t,e,(function(t,n){t.relurl&&(d=t.cc-n.cc),m(t.startPTS)&&m(t.endPTS)&&(n.start=n.startPTS=t.startPTS,n.startDTS=t.startDTS,n.maxStartPTS=t.maxStartPTS,n.endPTS=t.endPTS,n.endDTS=t.endDTS,n.minEndPTS=t.minEndPTS,n.duration=t.endPTS-t.startPTS,n.duration&&(s=n),e.PTSKnown=e.alignedSliding=!0),n.elementaryStreams=t.elementaryStreams,n.loader=t.loader,n.stats=t.stats,t.initSegment&&(n.initSegment=t.initSegment,r=t.initSegment)})),r&&(e.fragmentHint?e.fragments.concat(e.fragmentHint):e.fragments).forEach((function(t){var e;!t||t.initSegment&&t.initSegment.relurl!==(null==(e=r)?void 0:e.relurl)||(t.initSegment=r)})),e.skippedSegments)if(e.deltaUpdateFailed=e.fragments.some((function(t){return!t})),e.deltaUpdateFailed){S.warn("[level-helper] Previous playlist missing segments skipped in delta playlist");for(var f=e.skippedSegments;f--;)e.fragments.shift();e.startSN=e.fragments[0].sn,e.startCC=e.fragments[0].cc}else e.canSkipDateRanges&&(e.dateRanges=(o=t.dateRanges,u=e.dateRanges,c=e.recentlyRemovedDateranges,A=l({},o),c&&c.forEach((function(t){delete A[t]})),Object.keys(u).forEach((function(t){var e=new D(u[t].attr,A[t]);e.isValid?A[t]=e:S.warn('Ignoring invalid Playlist Delta Update DATERANGE tag: "'+JSON.stringify(u[t].attr)+'"')})),A));var h=e.fragments;if(d){S.warn("discontinuity sliding from playlist, take drift into account");for(var p=0;p<h.length;p++)h[p].cc+=d}e.skippedSegments&&(e.startCC=e.fragments[0].cc),function(t,e,r){if(t&&e)for(var n=0,i=0,a=t.length;i<=a;i++){var s=t[i],o=e[i+n];s&&o&&s.index===o.index&&s.fragment.sn===o.fragment.sn?r(s,o):n--}}(t.partList,e.partList,(function(t,e){e.elementaryStreams=t.elementaryStreams,e.stats=t.stats})),s?Ye(e,s,s.startPTS,s.endPTS,s.startDTS,s.endDTS):Xe(t,e),h.length&&(e.totalduration=e.edge-h[0].start),e.driftStartTime=t.driftStartTime,e.driftStart=t.driftStart;var g=e.advancedDateTime;if(e.advanced&&g){var v=e.edge;e.driftStart||(e.driftStartTime=g,e.driftStart=v),e.driftEndTime=g,e.driftEnd=v}else e.driftEndTime=t.driftEndTime,e.driftEnd=t.driftEnd,e.advancedDateTime=t.advancedDateTime}function Xe(t,e){var r=e.startSN+e.skippedSegments-t.startSN,n=t.fragments;r<0||r>=n.length||Je(e,n[r].start)}function Je(t,e){if(e){for(var r=t.fragments,n=t.skippedSegments;n<r.length;n++)r[n].start+=e;t.fragmentHint&&(t.fragmentHint.start+=e)}}function Ze(t,e,r){var n;return null!=t&&t.details?tr(null==(n=t.details)?void 0:n.partList,e,r):null}function tr(t,e,r){if(t)for(var n=t.length;n--;){var i=t[n];if(i.index===r&&i.fragment.sn===e)return i}return null}function er(t){t.forEach((function(t,e){var r=t.details;null!=r&&r.fragments&&r.fragments.forEach((function(t){t.level=e}))}))}function rr(t){switch(t.details){case B.FRAG_LOAD_TIMEOUT:case B.KEY_LOAD_TIMEOUT:case B.LEVEL_LOAD_TIMEOUT:case B.MANIFEST_LOAD_TIMEOUT:return!0}return!1}function nr(t,e){var r=rr(e);return t.default[(r?"timeout":"error")+"Retry"]}function ir(t,e){var r="linear"===t.backoff?1:Math.pow(2,e);return Math.min(r*t.retryDelayMs,t.maxRetryDelayMs)}function ar(t){return e(e({},t),{errorRetry:null,timeoutRetry:null})}function sr(t,e,r,n){if(!t)return!1;var i=null==n?void 0:n.code,a=e<t.maxNumRetry&&(function(t){return 0===t&&!1===navigator.onLine||!!t&&(t<400||t>499)}(i)||!!r);return t.shouldRetry?t.shouldRetry(t,e,r,n,a):a}var or=function(t,e){for(var r=0,n=t.length-1,i=null,a=null;r<=n;){var s=e(a=t[i=(r+n)/2|0]);if(s>0)r=i+1;else{if(!(s<0))return a;n=i-1}}return null};function ur(t,e,r,n){void 0===r&&(r=0),void 0===n&&(n=0);var i=null;if(t){i=e[t.sn-e[0].sn+1]||null;var a=t.endDTS-r;a>0&&a<15e-7&&(r+=15e-7)}else 0===r&&0===e[0].start&&(i=e[0]);if(i&&(!t||t.level===i.level)&&0===lr(r,n,i))return i;var s=or(e,lr.bind(null,r,n));return!s||s===t&&i?i:s}function lr(t,e,r){if(void 0===t&&(t=0),void 0===e&&(e=0),r.start<=t&&r.start+r.duration>t)return 0;var n=Math.min(e,r.duration+(r.deltaPTS?r.deltaPTS:0));return r.start+r.duration-n<=t?1:r.start-n>t&&r.start?-1:0}function cr(t,e,r){var n=1e3*Math.min(e,r.duration+(r.deltaPTS?r.deltaPTS:0));return(r.endProgramDateTime||0)-n>t}var Ar=function(){function t(t){this.hls=void 0,this.playlistError=0,this.penalizedRenditions={},this.log=void 0,this.warn=void 0,this.error=void 0,this.hls=t,this.log=S.log.bind(S,"[info]:"),this.warn=S.warn.bind(S,"[warning]:"),this.error=S.error.bind(S,"[error]:"),this.registerListeners()}var e=t.prototype;return e.registerListeners=function(){var t=this.hls;t.on(b.ERROR,this.onError,this),t.on(b.MANIFEST_LOADING,this.onManifestLoading,this),t.on(b.LEVEL_UPDATED,this.onLevelUpdated,this)},e.unregisterListeners=function(){var t=this.hls;t&&(t.off(b.ERROR,this.onError,this),t.off(b.ERROR,this.onErrorOut,this),t.off(b.MANIFEST_LOADING,this.onManifestLoading,this),t.off(b.LEVEL_UPDATED,this.onLevelUpdated,this))},e.destroy=function(){this.unregisterListeners(),this.hls=null,this.penalizedRenditions={}},e.startLoad=function(t){},e.stopLoad=function(){this.playlistError=0},e.getVariantLevelIndex=function(t){return(null==t?void 0:t.type)===Ce?t.level:this.hls.loadLevel},e.onManifestLoading=function(){this.playlistError=0,this.penalizedRenditions={}},e.onLevelUpdated=function(){this.playlistError=0},e.onError=function(t,e){var r,n;if(!e.fatal){var i=this.hls,a=e.context;switch(e.details){case B.FRAG_LOAD_ERROR:case B.FRAG_LOAD_TIMEOUT:case B.KEY_LOAD_ERROR:case B.KEY_LOAD_TIMEOUT:return void(e.errorAction=this.getFragRetryOrSwitchAction(e));case B.FRAG_PARSING_ERROR:if(null!=(r=e.frag)&&r.gap)return void(e.errorAction={action:0,flags:0});case B.FRAG_GAP:case B.FRAG_DECRYPT_ERROR:return e.errorAction=this.getFragRetryOrSwitchAction(e),void(e.errorAction.action=2);case B.LEVEL_EMPTY_ERROR:case B.LEVEL_PARSING_ERROR:var s,o,u=e.parent===Ce?e.level:i.loadLevel;return void(e.details===B.LEVEL_EMPTY_ERROR&&null!=(s=e.context)&&null!=(o=s.levelDetails)&&o.live?e.errorAction=this.getPlaylistRetryOrSwitchAction(e,u):(e.levelRetry=!1,e.errorAction=this.getLevelSwitchAction(e,u)));case B.LEVEL_LOAD_ERROR:case B.LEVEL_LOAD_TIMEOUT:return void("number"==typeof(null==a?void 0:a.level)&&(e.errorAction=this.getPlaylistRetryOrSwitchAction(e,a.level)));case B.AUDIO_TRACK_LOAD_ERROR:case B.AUDIO_TRACK_LOAD_TIMEOUT:case B.SUBTITLE_LOAD_ERROR:case B.SUBTITLE_TRACK_LOAD_TIMEOUT:if(a){var l=i.levels[i.loadLevel];if(l&&(a.type===_e&&l.hasAudioGroup(a.groupId)||a.type===Be&&l.hasSubtitleGroup(a.groupId)))return e.errorAction=this.getPlaylistRetryOrSwitchAction(e,i.loadLevel),e.errorAction.action=2,void(e.errorAction.flags=1)}return;case B.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED:var c=i.levels[i.loadLevel],A=null==c?void 0:c.attrs["HDCP-LEVEL"];return void(A?e.errorAction={action:2,flags:2,hdcpLevel:A}:this.keySystemError(e));case B.BUFFER_ADD_CODEC_ERROR:case B.REMUX_ALLOC_ERROR:case B.BUFFER_APPEND_ERROR:return void(e.errorAction=this.getLevelSwitchAction(e,null!=(n=e.level)?n:i.loadLevel));case B.INTERNAL_EXCEPTION:case B.BUFFER_APPENDING_ERROR:case B.BUFFER_FULL_ERROR:case B.LEVEL_SWITCH_ERROR:case B.BUFFER_STALLED_ERROR:case B.BUFFER_SEEK_OVER_HOLE:case B.BUFFER_NUDGE_ON_STALL:return void(e.errorAction={action:0,flags:0})}e.type===_.KEY_SYSTEM_ERROR&&this.keySystemError(e)}},e.keySystemError=function(t){var e=this.getVariantLevelIndex(t.frag);t.levelRetry=!1,t.errorAction=this.getLevelSwitchAction(t,e)},e.getPlaylistRetryOrSwitchAction=function(t,e){var r=nr(this.hls.config.playlistLoadPolicy,t),n=this.playlistError++;if(sr(r,n,rr(t),t.response))return{action:5,flags:0,retryConfig:r,retryCount:n};var i=this.getLevelSwitchAction(t,e);return r&&(i.retryConfig=r,i.retryCount=n),i},e.getFragRetryOrSwitchAction=function(t){var e=this.hls,r=this.getVariantLevelIndex(t.frag),n=e.levels[r],i=e.config,a=i.fragLoadPolicy,s=i.keyLoadPolicy,o=nr(t.details.startsWith("key")?s:a,t),u=e.levels.reduce((function(t,e){return t+e.fragmentError}),0);if(n&&(t.details!==B.FRAG_GAP&&n.fragmentError++,sr(o,u,rr(t),t.response)))return{action:5,flags:0,retryConfig:o,retryCount:u};var l=this.getLevelSwitchAction(t,r);return o&&(l.retryConfig=o,l.retryCount=u),l},e.getLevelSwitchAction=function(t,e){var r=this.hls;null==e&&(e=r.loadLevel);var n=this.hls.levels[e];if(n){var i,a,s=t.details;n.loadError++,s===B.BUFFER_APPEND_ERROR&&n.fragmentError++;var o=-1,u=r.levels,l=r.loadLevel,c=r.minAutoLevel,A=r.maxAutoLevel;r.autoLevelEnabled||(r.loadLevel=-1);for(var d,f=null==(i=t.frag)?void 0:i.type,h=(f===Ee&&s===B.FRAG_PARSING_ERROR||"audio"===t.sourceBufferName&&(s===B.BUFFER_ADD_CODEC_ERROR||s===B.BUFFER_APPEND_ERROR))&&u.some((function(t){var e=t.audioCodec;return n.audioCodec!==e})),p="video"===t.sourceBufferName&&(s===B.BUFFER_ADD_CODEC_ERROR||s===B.BUFFER_APPEND_ERROR)&&u.some((function(t){var e=t.codecSet,r=t.audioCodec;return n.codecSet!==e&&n.audioCodec===r})),g=null!=(a=t.context)?a:{},v=g.type,m=g.groupId,y=function(){var e=(w+l)%u.length;if(e!==l&&e>=c&&e<=A&&0===u[e].loadError){var r,i,a=u[e];if(s===B.FRAG_GAP&&t.frag){var d=u[e].details;if(d){var g=ur(t.frag,d.fragments,t.frag.start);if(null!=g&&g.gap)return 0}}else{if(v===_e&&a.hasAudioGroup(m)||v===Be&&a.hasSubtitleGroup(m))return 0;if(f===Ee&&null!=(r=n.audioGroups)&&r.some((function(t){return a.hasAudioGroup(t)}))||f===xe&&null!=(i=n.subtitleGroups)&&i.some((function(t){return a.hasSubtitleGroup(t)}))||h&&n.audioCodec===a.audioCodec||!h&&n.audioCodec!==a.audioCodec||p&&n.codecSet===a.codecSet)return 0}return o=e,1}},w=u.length;w--&&(0===(d=y())||1!==d););if(o>-1&&r.loadLevel!==o)return t.levelRetry=!0,this.playlistError=0,{action:2,flags:0,nextAutoLevel:o}}return{action:2,flags:1}},e.onErrorOut=function(t,e){var r;switch(null==(r=e.errorAction)?void 0:r.action){case 0:break;case 2:this.sendAlternateToPenaltyBox(e),e.errorAction.resolved||e.details===B.FRAG_GAP?/MediaSource readyState: ended/.test(e.error.message)&&(this.warn('MediaSource ended after "'+e.sourceBufferName+'" sourceBuffer append error. Attempting to recover from media error.'),this.hls.recoverMediaError()):e.fatal=!0}e.fatal&&this.hls.stopLoad()},e.sendAlternateToPenaltyBox=function(t){var e=this.hls,r=t.errorAction;if(r){var n=r.flags,i=r.hdcpLevel,a=r.nextAutoLevel;switch(n){case 0:this.switchLevel(t,a);break;case 2:i&&(e.maxHdcpLevel=je[je.indexOf(i)-1],r.resolved=!0),this.warn('Restricting playback to HDCP-LEVEL of "'+e.maxHdcpLevel+'" or lower')}r.resolved||this.switchLevel(t,a)}},e.switchLevel=function(t,e){void 0!==e&&t.errorAction&&(this.warn("switching to level "+e+" after "+t.details),this.hls.nextAutoLevel=e,t.errorAction.resolved=!0,this.hls.nextLoadLevel=this.hls.nextAutoLevel)},t}(),dr=function(){function t(t,e){this.hls=void 0,this.timer=-1,this.requestScheduled=-1,this.canLoad=!1,this.log=void 0,this.warn=void 0,this.log=S.log.bind(S,e+":"),this.warn=S.warn.bind(S,e+":"),this.hls=t}var e=t.prototype;return e.destroy=function(){this.clearTimer(),this.hls=this.log=this.warn=null},e.clearTimer=function(){-1!==this.timer&&(self.clearTimeout(this.timer),this.timer=-1)},e.startLoad=function(){this.canLoad=!0,this.requestScheduled=-1,this.loadPlaylist()},e.stopLoad=function(){this.canLoad=!1,this.clearTimer()},e.switchParams=function(t,e){var r=null==e?void 0:e.renditionReports;if(r){for(var n=-1,i=0;i<r.length;i++){var a=r[i],s=void 0;try{s=new self.URL(a.URI,e.url).href}catch(t){S.warn("Could not construct new URL for Rendition Report: "+t),s=a.URI||""}if(s===t){n=i;break}s===t.substring(0,s.length)&&(n=i)}if(-1!==n){var o=r[n],u=parseInt(o["LAST-MSN"])||(null==e?void 0:e.lastPartSn),l=parseInt(o["LAST-PART"])||(null==e?void 0:e.lastPartIndex);if(this.hls.config.lowLatencyMode){var c=Math.min(e.age-e.partTarget,e.targetduration);l>=0&&c>e.partTarget&&(l+=1)}return new Ge(u,l>=0?l:void 0,"")}}},e.loadPlaylist=function(t){-1===this.requestScheduled&&(this.requestScheduled=self.performance.now())},e.shouldLoadPlaylist=function(t){return this.canLoad&&!!t&&!!t.url&&(!t.details||t.details.live)},e.shouldReloadPlaylist=function(t){return-1===this.timer&&-1===this.requestScheduled&&this.shouldLoadPlaylist(t)},e.playlistLoaded=function(t,e,r){var n=this,i=e.details,a=e.stats,s=self.performance.now(),o=a.loading.first?Math.max(0,s-a.loading.first):0;if(i.advancedDateTime=Date.now()-o,i.live||null!=r&&r.live){if(i.reloaded(r),r&&this.log("live playlist "+t+" "+(i.advanced?"REFRESHED "+i.lastPartSn+"-"+i.lastPartIndex:i.updated?"UPDATED":"MISSED")),r&&i.fragments.length>0&&qe(r,i),!this.canLoad||!i.live)return;var u,l=void 0,c=void 0;if(i.canBlockReload&&i.endSN&&i.advanced){var A=this.hls.config.lowLatencyMode,d=i.lastPartSn,f=i.endSN,h=i.lastPartIndex,p=d===f;-1!==h?(l=p?f+1:d,c=p?A?0:h:h+1):l=f+1;var g=i.age,v=g+i.ageHeader,m=Math.min(v-i.partTarget,1.5*i.targetduration);if(m>0){if(r&&m>r.tuneInGoal)this.warn("CDN Tune-in goal increased from: "+r.tuneInGoal+" to: "+m+" with playlist age: "+i.age),m=0;else{var y=Math.floor(m/i.targetduration);l+=y,void 0!==c&&(c+=Math.round(m%i.targetduration/i.partTarget)),this.log("CDN Tune-in age: "+i.ageHeader+"s last advanced "+g.toFixed(2)+"s goal: "+m+" skip sn "+y+" to part "+c)}i.tuneInGoal=m}if(u=this.getDeliveryDirectives(i,e.deliveryDirectives,l,c),A||!p)return void this.loadPlaylist(u)}else(i.canBlockReload||i.canSkipUntil)&&(u=this.getDeliveryDirectives(i,e.deliveryDirectives,l,c));var w=this.hls.mainForwardBufferInfo,b=w?w.end-w.len:0,_=function(t,e){void 0===e&&(e=1/0);var r=1e3*t.targetduration;if(t.updated){var n=t.fragments;if(n.length&&4*r>e){var i=1e3*n[n.length-1].duration;i<r&&(r=i)}}else r/=2;return Math.round(r)}(i,1e3*(i.edge-b));i.updated&&s>this.requestScheduled+_&&(this.requestScheduled=a.loading.start),void 0!==l&&i.canBlockReload?this.requestScheduled=a.loading.first+_-(1e3*i.partTarget||1e3):-1===this.requestScheduled||this.requestScheduled+_<s?this.requestScheduled=s:this.requestScheduled-s<=0&&(this.requestScheduled+=_);var B=this.requestScheduled-s;B=Math.max(0,B),this.log("reload live playlist "+t+" in "+Math.round(B)+" ms"),this.timer=self.setTimeout((function(){return n.loadPlaylist(u)}),B)}else this.clearTimer()},e.getDeliveryDirectives=function(t,e,r,n){var i=function(t,e){var r=t.canSkipUntil,n=t.canSkipDateRanges,i=t.endSN;return r&&(void 0!==e?e-i:0)<r?n?"v2":"YES":""}(t,r);return null!=e&&e.skip&&t.deltaUpdateFailed&&(r=e.msn,n=e.part,i=""),new Ge(r,n,i)},e.checkRetry=function(t){var e=this,r=t.details,n=rr(t),i=t.errorAction,a=i||{},s=a.action,o=a.retryCount,u=void 0===o?0:o,l=a.retryConfig,c=!!i&&!!l&&(5===s||!i.resolved&&2===s);if(c){var A;if(this.requestScheduled=-1,u>=l.maxNumRetry)return!1;if(n&&null!=(A=t.context)&&A.deliveryDirectives)this.warn("Retrying playlist loading "+(u+1)+"/"+l.maxNumRetry+' after "'+r+'" without delivery-directives'),this.loadPlaylist();else{var d=ir(l,u);this.timer=self.setTimeout((function(){return e.loadPlaylist()}),d),this.warn("Retrying playlist loading "+(u+1)+"/"+l.maxNumRetry+' after "'+r+'" in '+d+"ms")}t.levelRetry=!0,i.resolved=!0}return c},t}(),fr=function(){function t(t,e,r){void 0===e&&(e=0),void 0===r&&(r=0),this.halfLife=void 0,this.alpha_=void 0,this.estimate_=void 0,this.totalWeight_=void 0,this.halfLife=t,this.alpha_=t?Math.exp(Math.log(.5)/t):0,this.estimate_=e,this.totalWeight_=r}var e=t.prototype;return e.sample=function(t,e){var r=Math.pow(this.alpha_,t);this.estimate_=e*(1-r)+r*this.estimate_,this.totalWeight_+=t},e.getTotalWeight=function(){return this.totalWeight_},e.getEstimate=function(){if(this.alpha_){var t=1-Math.pow(this.alpha_,this.totalWeight_);if(t)return this.estimate_/t}return this.estimate_},t}(),hr=function(){function t(t,e,r,n){void 0===n&&(n=100),this.defaultEstimate_=void 0,this.minWeight_=void 0,this.minDelayMs_=void 0,this.slow_=void 0,this.fast_=void 0,this.defaultTTFB_=void 0,this.ttfb_=void 0,this.defaultEstimate_=r,this.minWeight_=.001,this.minDelayMs_=50,this.slow_=new fr(t),this.fast_=new fr(e),this.defaultTTFB_=n,this.ttfb_=new fr(t)}var e=t.prototype;return e.update=function(t,e){var r=this.slow_,n=this.fast_,i=this.ttfb_;r.halfLife!==t&&(this.slow_=new fr(t,r.getEstimate(),r.getTotalWeight())),n.halfLife!==e&&(this.fast_=new fr(e,n.getEstimate(),n.getTotalWeight())),i.halfLife!==t&&(this.ttfb_=new fr(t,i.getEstimate(),i.getTotalWeight()))},e.sample=function(t,e){var r=(t=Math.max(t,this.minDelayMs_))/1e3,n=8*e/r;this.fast_.sample(r,n),this.slow_.sample(r,n)},e.sampleTTFB=function(t){var e=t/1e3,r=Math.sqrt(2)*Math.exp(-Math.pow(e,2)/2);this.ttfb_.sample(r,Math.max(t,5))},e.canEstimate=function(){return this.fast_.getTotalWeight()>=this.minWeight_},e.getEstimate=function(){return this.canEstimate()?Math.min(this.fast_.getEstimate(),this.slow_.getEstimate()):this.defaultEstimate_},e.getEstimateTTFB=function(){return this.ttfb_.getTotalWeight()>=this.minWeight_?this.ttfb_.getEstimate():this.defaultTTFB_},e.destroy=function(){},t}(),pr={supported:!0,configurations:[],decodingInfoResults:[{supported:!0,powerEfficient:!0,smooth:!0}]},gr={};function vr(t,r,n){var i=t.videoCodec,a=t.audioCodec;if(!i||!a||!n)return Promise.resolve(pr);var s={width:t.width,height:t.height,bitrate:Math.ceil(Math.max(.9*t.bitrate,t.averageBitrate)),framerate:t.frameRate||30},o=t.videoRange;"SDR"!==o&&(s.transferFunction=o.toLowerCase());var u=i.split(",").map((function(t){return{type:"media-source",video:e(e({},s),{},{contentType:te(t,"video")})}}));return a&&t.audioGroups&&t.audioGroups.forEach((function(t){var e;t&&(null==(e=r.groups[t])||e.tracks.forEach((function(e){if(e.groupId===t){var r=e.channels||"",n=parseFloat(r);m(n)&&n>2&&u.push.apply(u,a.split(",").map((function(t){return{type:"media-source",audio:{contentType:te(t,"audio"),channels:""+n}}})))}})))})),Promise.all(u.map((function(t){var e=function(t){var e=t.audio,r=t.video,n=r||e;if(n){var i=n.contentType.split('"')[1];if(r)return"r"+r.height+"x"+r.width+"f"+Math.ceil(r.framerate)+(r.transferFunction||"sd")+"_"+i+"_"+Math.ceil(r.bitrate/1e5);if(e)return"c"+e.channels+(e.spatialRendering?"s":"n")+"_"+i}return""}(t);return gr[e]||(gr[e]=n.decodingInfo(t))}))).then((function(t){return{supported:!t.some((function(t){return!t.supported})),configurations:u,decodingInfoResults:t}})).catch((function(t){return{supported:!1,configurations:u,decodingInfoResults:[],error:t}}))}function mr(t,e){S.log('[abr] start candidates with "'+t+'" ignored because '+e)}function yr(t,e,r){if("attrs"in t){var n=e.indexOf(t);if(-1!==n)return n}for(var i=0;i<e.length;i++)if(wr(t,e[i],r))return i;return-1}function wr(t,e,r){var n=t.groupId,i=t.name,a=t.lang,s=t.assocLang,o=t.characteristics,u=t.default,l=t.forced;return(void 0===n||e.groupId===n)&&(void 0===i||e.name===i)&&(void 0===a||e.lang===a)&&(void 0===a||e.assocLang===s)&&(void 0===u||e.default===u)&&(void 0===l||e.forced===l)&&(void 0===o||function(t,e){void 0===e&&(e="");var r=t.split(","),n=e.split(",");return r.length===n.length&&!r.some((function(t){return-1===n.indexOf(t)}))}(o,e.characteristics))&&(void 0===r||r(t,e))}function br(t,e){var r=t.audioCodec,n=t.channels;return!(void 0!==r&&(e.audioCodec||"").substring(0,4)!==r.substring(0,4)||void 0!==n&&n!==(e.channels||"2"))}function _r(t,e,r){for(var n=e;n;n--)if(r(t[n]))return n;for(var i=e+1;i<t.length;i++)if(r(t[i]))return i;return-1}var Br=function(){function t(t){var e=this;this.hls=void 0,this.lastLevelLoadSec=0,this.lastLoadedFragLevel=-1,this.firstSelection=-1,this._nextAutoLevel=-1,this.nextAutoLevelKey="",this.audioTracksByGroup=null,this.codecTiers=null,this.timer=-1,this.fragCurrent=null,this.partCurrent=null,this.bitrateTestDelay=0,this.bwEstimator=void 0,this._abandonRulesCheck=function(){var t=e.fragCurrent,r=e.partCurrent,n=e.hls,i=n.autoLevelEnabled,a=n.media;if(t&&a){var s=performance.now(),o=r?r.stats:t.stats,u=r?r.duration:t.duration,l=s-o.loading.start,c=n.minAutoLevel;if(o.aborted||o.loaded&&o.loaded===o.total||t.level<=c)return e.clearTimer(),void(e._nextAutoLevel=-1);if(i&&!a.paused&&a.playbackRate&&a.readyState){var A=n.mainForwardBufferInfo;if(null!==A){var d=e.bwEstimator.getEstimateTTFB(),f=Math.abs(a.playbackRate);if(!(l<=Math.max(d,u/(2*f)*1e3))){var h=A.len/f,p=o.loading.first?o.loading.first-o.loading.start:-1,g=o.loaded&&p>-1,v=e.getBwEstimate(),y=n.levels,w=y[t.level],_=o.total||Math.max(o.loaded,Math.round(u*w.averageBitrate/8)),B=g?l-p:l;B<1&&g&&(B=Math.min(l,8*o.loaded/v));var C=g?1e3*o.loaded/B:0,E=C?(_-o.loaded)/C:8*_/v+d/1e3;if(!(E<=h)){var x,T=C?8*C:v,k=Number.POSITIVE_INFINITY;for(x=t.level-1;x>c;x--){var I=y[x].maxBitrate;if((k=e.getTimeToLoadFrag(d/1e3,T,u*I,!y[x].details))<h)break}if(!(k>=E||k>10*u)){n.nextLoadLevel=n.nextAutoLevel=x,g?e.bwEstimator.sample(l-Math.min(d,p),o.loaded):e.bwEstimator.sampleTTFB(l);var F=y[x].maxBitrate;e.getBwEstimate()*e.hls.config.abrBandWidthUpFactor>F&&e.resetEstimator(F),e.clearTimer(),S.warn("[abr] Fragment "+t.sn+(r?" part "+r.index:"")+" of level "+t.level+" is loading too slowly;\n      Time to underbuffer: "+h.toFixed(3)+" s\n      Estimated load time for current fragment: "+E.toFixed(3)+" s\n      Estimated load time for down switch fragment: "+k.toFixed(3)+" s\n      TTFB estimate: "+(0|p)+" ms\n      Current BW estimate: "+(m(v)?0|v:"Unknown")+" bps\n      New BW estimate: "+(0|e.getBwEstimate())+" bps\n      Switching to level "+x+" @ "+(0|F)+" bps"),n.trigger(b.FRAG_LOAD_EMERGENCY_ABORTED,{frag:t,part:r,stats:o})}}}}}}},this.hls=t,this.bwEstimator=this.initEstimator(),this.registerListeners()}var e=t.prototype;return e.resetEstimator=function(t){t&&(S.log("setting initial bwe to "+t),this.hls.config.abrEwmaDefaultEstimate=t),this.firstSelection=-1,this.bwEstimator=this.initEstimator()},e.initEstimator=function(){var t=this.hls.config;return new hr(t.abrEwmaSlowVoD,t.abrEwmaFastVoD,t.abrEwmaDefaultEstimate)},e.registerListeners=function(){var t=this.hls;t.on(b.MANIFEST_LOADING,this.onManifestLoading,this),t.on(b.FRAG_LOADING,this.onFragLoading,this),t.on(b.FRAG_LOADED,this.onFragLoaded,this),t.on(b.FRAG_BUFFERED,this.onFragBuffered,this),t.on(b.LEVEL_SWITCHING,this.onLevelSwitching,this),t.on(b.LEVEL_LOADED,this.onLevelLoaded,this),t.on(b.LEVELS_UPDATED,this.onLevelsUpdated,this),t.on(b.MAX_AUTO_LEVEL_UPDATED,this.onMaxAutoLevelUpdated,this),t.on(b.ERROR,this.onError,this)},e.unregisterListeners=function(){var t=this.hls;t&&(t.off(b.MANIFEST_LOADING,this.onManifestLoading,this),t.off(b.FRAG_LOADING,this.onFragLoading,this),t.off(b.FRAG_LOADED,this.onFragLoaded,this),t.off(b.FRAG_BUFFERED,this.onFragBuffered,this),t.off(b.LEVEL_SWITCHING,this.onLevelSwitching,this),t.off(b.LEVEL_LOADED,this.onLevelLoaded,this),t.off(b.LEVELS_UPDATED,this.onLevelsUpdated,this),t.off(b.MAX_AUTO_LEVEL_UPDATED,this.onMaxAutoLevelUpdated,this),t.off(b.ERROR,this.onError,this))},e.destroy=function(){this.unregisterListeners(),this.clearTimer(),this.hls=this._abandonRulesCheck=null,this.fragCurrent=this.partCurrent=null},e.onManifestLoading=function(t,e){this.lastLoadedFragLevel=-1,this.firstSelection=-1,this.lastLevelLoadSec=0,this.fragCurrent=this.partCurrent=null,this.onLevelsUpdated(),this.clearTimer()},e.onLevelsUpdated=function(){this.lastLoadedFragLevel>-1&&this.fragCurrent&&(this.lastLoadedFragLevel=this.fragCurrent.level),this._nextAutoLevel=-1,this.onMaxAutoLevelUpdated(),this.codecTiers=null,this.audioTracksByGroup=null},e.onMaxAutoLevelUpdated=function(){this.firstSelection=-1,this.nextAutoLevelKey=""},e.onFragLoading=function(t,e){var r,n=e.frag;this.ignoreFragment(n)||(n.bitrateTest||(this.fragCurrent=n,this.partCurrent=null!=(r=e.part)?r:null),this.clearTimer(),this.timer=self.setInterval(this._abandonRulesCheck,100))},e.onLevelSwitching=function(t,e){this.clearTimer()},e.onError=function(t,e){if(!e.fatal)switch(e.details){case B.BUFFER_ADD_CODEC_ERROR:case B.BUFFER_APPEND_ERROR:this.lastLoadedFragLevel=-1,this.firstSelection=-1;break;case B.FRAG_LOAD_TIMEOUT:var r=e.frag,n=this.fragCurrent,i=this.partCurrent;if(r&&n&&r.sn===n.sn&&r.level===n.level){var a=performance.now(),s=i?i.stats:r.stats,o=a-s.loading.start,u=s.loading.first?s.loading.first-s.loading.start:-1;if(s.loaded&&u>-1){var l=this.bwEstimator.getEstimateTTFB();this.bwEstimator.sample(o-Math.min(l,u),s.loaded)}else this.bwEstimator.sampleTTFB(o)}}},e.getTimeToLoadFrag=function(t,e,r,n){return t+r/e+(n?this.lastLevelLoadSec:0)},e.onLevelLoaded=function(t,e){var r=this.hls.config,n=e.stats.loading,i=n.end-n.start;m(i)&&(this.lastLevelLoadSec=i/1e3),e.details.live?this.bwEstimator.update(r.abrEwmaSlowLive,r.abrEwmaFastLive):this.bwEstimator.update(r.abrEwmaSlowVoD,r.abrEwmaFastVoD)},e.onFragLoaded=function(t,e){var r=e.frag,n=e.part,i=n?n.stats:r.stats;if(r.type===Ce&&this.bwEstimator.sampleTTFB(i.loading.first-i.loading.start),!this.ignoreFragment(r)){if(this.clearTimer(),r.level===this._nextAutoLevel&&(this._nextAutoLevel=-1),this.firstSelection=-1,this.hls.config.abrMaxWithRealBitrate){var a=n?n.duration:r.duration,s=this.hls.levels[r.level],o=(s.loaded?s.loaded.bytes:0)+i.loaded,u=(s.loaded?s.loaded.duration:0)+a;s.loaded={bytes:o,duration:u},s.realBitrate=Math.round(8*o/u)}if(r.bitrateTest){var l={stats:i,frag:r,part:n,id:r.type};this.onFragBuffered(b.FRAG_BUFFERED,l),r.bitrateTest=!1}else this.lastLoadedFragLevel=r.level}},e.onFragBuffered=function(t,e){var r=e.frag,n=e.part,i=null!=n&&n.stats.loaded?n.stats:r.stats;if(!i.aborted&&!this.ignoreFragment(r)){var a=i.parsing.end-i.loading.start-Math.min(i.loading.first-i.loading.start,this.bwEstimator.getEstimateTTFB());this.bwEstimator.sample(a,i.loaded),i.bwEstimate=this.getBwEstimate(),r.bitrateTest?this.bitrateTestDelay=a/1e3:this.bitrateTestDelay=0}},e.ignoreFragment=function(t){return t.type!==Ce||"initSegment"===t.sn},e.clearTimer=function(){this.timer>-1&&(self.clearInterval(this.timer),this.timer=-1)},e.getAutoLevelKey=function(){var t;return this.getBwEstimate()+"_"+(null==(t=this.hls.mainForwardBufferInfo)?void 0:t.len)},e.getNextABRAutoLevel=function(){var t=this.fragCurrent,e=this.partCurrent,r=this.hls,n=r.maxAutoLevel,i=r.config,a=r.minAutoLevel,s=r.media,o=e?e.duration:t?t.duration:0,u=s&&0!==s.playbackRate?Math.abs(s.playbackRate):1,l=this.getBwEstimate(),c=r.mainForwardBufferInfo,A=(c?c.len:0)/u,d=i.abrBandWidthFactor,f=i.abrBandWidthUpFactor;if(A){var h=this.findBestLevel(l,a,n,A,0,d,f);if(h>=0)return h}var p=o?Math.min(o,i.maxStarvationDelay):i.maxStarvationDelay;if(!A){var g=this.bitrateTestDelay;g&&(p=(o?Math.min(o,i.maxLoadingDelay):i.maxLoadingDelay)-g,S.info("[abr] bitrate test took "+Math.round(1e3*g)+"ms, set first fragment max fetchDuration to "+Math.round(1e3*p)+" ms"),d=f=1)}var v=this.findBestLevel(l,a,n,A,p,d,f);if(S.info("[abr] "+(A?"rebuffering expected":"buffer is empty")+", optimal quality level "+v),v>-1)return v;var m=r.levels[a],y=r.levels[r.loadLevel];return(null==m?void 0:m.bitrate)<(null==y?void 0:y.bitrate)?a:r.loadLevel},e.getBwEstimate=function(){return this.bwEstimator.canEstimate()?this.bwEstimator.getEstimate():this.hls.config.abrEwmaDefaultEstimate},e.findBestLevel=function(t,e,r,n,i,a,s){var o,u=this,l=n+i,c=this.lastLoadedFragLevel,A=-1===c?this.hls.firstLevel:c,d=this.fragCurrent,f=this.partCurrent,h=this.hls,p=h.levels,g=h.allAudioTracks,v=h.loadLevel,y=h.config;if(1===p.length)return 0;var w,b=p[A],_=!(null==b||null==(o=b.details)||!o.live),B=-1===v||-1===c,C="SDR",E=(null==b?void 0:b.frameRate)||0,x=y.audioPreference,T=y.videoPreference,k=this.audioTracksByGroup||(this.audioTracksByGroup=function(t){return t.reduce((function(t,e){var r=t.groups[e.groupId];r||(r=t.groups[e.groupId]={tracks:[],channels:{2:0},hasDefault:!1,hasAutoSelect:!1}),r.tracks.push(e);var n=e.channels||"2";return r.channels[n]=(r.channels[n]||0)+1,r.hasDefault=r.hasDefault||e.default,r.hasAutoSelect=r.hasAutoSelect||e.autoselect,r.hasDefault&&(t.hasDefaultAudio=!0),r.hasAutoSelect&&(t.hasAutoSelectAudio=!0),t}),{hasDefaultAudio:!1,hasAutoSelectAudio:!1,groups:{}})}(g));if(B){if(-1!==this.firstSelection)return this.firstSelection;var I=this.codecTiers||(this.codecTiers=function(t,e,r,n){return t.slice(r,n+1).reduce((function(t,r){if(!r.codecSet)return t;var n=r.audioGroups,i=t[r.codecSet];i||(t[r.codecSet]=i={minBitrate:1/0,minHeight:1/0,minFramerate:1/0,maxScore:0,videoRanges:{SDR:0},channels:{2:0},hasDefaultAudio:!n,fragmentError:0}),i.minBitrate=Math.min(i.minBitrate,r.bitrate);var a=Math.min(r.height,r.width);return i.minHeight=Math.min(i.minHeight,a),i.minFramerate=Math.min(i.minFramerate,r.frameRate),i.maxScore=Math.max(i.maxScore,r.score),i.fragmentError+=r.fragmentError,i.videoRanges[r.videoRange]=(i.videoRanges[r.videoRange]||0)+1,n&&n.forEach((function(t){if(t){var r=e.groups[t];i.hasDefaultAudio=i.hasDefaultAudio||e.hasDefaultAudio?r.hasDefault:r.hasAutoSelect||!e.hasDefaultAudio&&!e.hasAutoSelectAudio,Object.keys(r.channels).forEach((function(t){i.channels[t]=(i.channels[t]||0)+r.channels[t]}))}})),t}),{})}(p,k,e,r)),F=function(t,e,r,n,i){for(var a=Object.keys(t),s=null==n?void 0:n.channels,o=null==n?void 0:n.audioCodec,u=s&&2===parseInt(s),l=!0,c=!1,A=1/0,d=1/0,f=1/0,h=0,p=[],g=function(t,e){var r=!1,n=[];return t&&(r="SDR"!==t,n=[t]),e&&(n=e.allowedVideoRanges||Ke.slice(0),n=(r=void 0!==e.preferHDR?e.preferHDR:function(){if("function"==typeof matchMedia){var t=matchMedia("(dynamic-range: high)"),e=matchMedia("bad query");if(t.media!==e.media)return!0===t.matches}return!1}())?n.filter((function(t){return"SDR"!==t})):["SDR"]),{preferHDR:r,allowedVideoRanges:n}}(e,i),v=g.preferHDR,y=g.allowedVideoRanges,w=function(){var e=t[a[b]];l=e.channels[2]>0,A=Math.min(A,e.minHeight),d=Math.min(d,e.minFramerate),f=Math.min(f,e.minBitrate);var r=y.filter((function(t){return e.videoRanges[t]>0}));r.length>0&&(c=!0,p=r)},b=a.length;b--;)w();A=m(A)?A:0,d=m(d)?d:0;var _=Math.max(1080,A),B=Math.max(30,d);return f=m(f)?f:r,r=Math.max(f,r),c||(e=void 0,p=[]),{codecSet:a.reduce((function(e,n){var i=t[n];if(n===e)return e;if(i.minBitrate>r)return mr(n,"min bitrate of "+i.minBitrate+" > current estimate of "+r),e;if(!i.hasDefaultAudio)return mr(n,"no renditions with default or auto-select sound found"),e;if(o&&n.indexOf(o.substring(0,4))%5!=0)return mr(n,'audio codec preference "'+o+'" not found'),e;if(s&&!u){if(!i.channels[s])return mr(n,"no renditions with "+s+" channel sound found (channels options: "+Object.keys(i.channels)+")"),e}else if((!o||u)&&l&&0===i.channels[2])return mr(n,"no renditions with stereo sound found"),e;return i.minHeight>_?(mr(n,"min resolution of "+i.minHeight+" > maximum of "+_),e):i.minFramerate>B?(mr(n,"min framerate of "+i.minFramerate+" > maximum of "+B),e):p.some((function(t){return i.videoRanges[t]>0}))?i.maxScore<h?(mr(n,"max score of "+i.maxScore+" < selected max of "+h),e):e&&(re(n)>=re(e)||i.fragmentError>t[e].fragmentError)?e:(h=i.maxScore,n):(mr(n,"no variants with VIDEO-RANGE of "+JSON.stringify(p)+" found"),e)}),void 0),videoRanges:p,preferHDR:v,minFramerate:d,minBitrate:f}}(I,C,t,x,T),L=F.codecSet,D=F.videoRanges,R=F.minFramerate,U=F.minBitrate,O=F.preferHDR;w=L,C=O?D[D.length-1]:D[0],E=R,t=Math.max(t,U),S.log("[abr] picked start tier "+JSON.stringify(F))}else w=null==b?void 0:b.codecSet,C=null==b?void 0:b.videoRange;for(var P,M=f?f.duration:d?d.duration:0,Q=this.bwEstimator.getEstimateTTFB()/1e3,N=[],H=function(){var e,o,d=p[$],h=$>A;if(!d)return 0;if(y.useMediaCapabilities&&!d.supportedResult&&!d.supportedPromise){var g=navigator.mediaCapabilities;"function"==typeof(null==g?void 0:g.decodingInfo)&&function(t,e,r,n,i,a){var s=t.audioCodec?t.audioGroups:null,o=null==a?void 0:a.audioCodec,u=null==a?void 0:a.channels,l=u?parseInt(u):o?1/0:2,c=null;if(null!=s&&s.length)try{c=1===s.length&&s[0]?e.groups[s[0]].channels:s.reduce((function(t,r){if(r){var n=e.groups[r];if(!n)throw new Error("Audio track group "+r+" not found");Object.keys(n.channels).forEach((function(e){t[e]=(t[e]||0)+n.channels[e]}))}return t}),{2:0})}catch(t){return!0}return void 0!==t.videoCodec&&(t.width>1920&&t.height>1088||t.height>1920&&t.width>1088||t.frameRate>Math.max(n,30)||"SDR"!==t.videoRange&&t.videoRange!==r||t.bitrate>Math.max(i,8e6))||!!c&&m(l)&&Object.keys(c).some((function(t){return parseInt(t)>l}))}(d,k,C,E,t,x)?(d.supportedPromise=vr(d,k,g),d.supportedPromise.then((function(t){d.supportedResult=t;var e=u.hls.levels,r=e.indexOf(d);t.error?S.warn('[abr] MediaCapabilities decodingInfo error: "'+t.error+'" for level '+r+" "+JSON.stringify(t)):t.supported||(S.warn("[abr] Unsupported MediaCapabilities decodingInfo result for level "+r+" "+JSON.stringify(t)),r>-1&&e.length>1&&(S.log("[abr] Removing unsupported level "+r),u.hls.removeLevel(r)))}))):d.supportedResult=pr}if(w&&d.codecSet!==w||C&&d.videoRange!==C||h&&E>d.frameRate||!h&&E>0&&E<d.frameRate||null==(e=d.supportedResult)||null==(o=e.decodingInfoResults)||!o[0].smooth)return N.push($),0;var T,I=d.details,F=(f?null==I?void 0:I.partTarget:null==I?void 0:I.averagetargetduration)||M;T=h?s*t:a*t;var L=M&&n>=2*M&&0===i?p[$].averageBitrate:p[$].maxBitrate,D=u.getTimeToLoadFrag(Q,T,L*F,void 0===I);if(T>=L&&($===c||0===d.loadError&&0===d.fragmentError)&&(D<=Q||!m(D)||_&&!u.bitrateTestDelay||D<l)){var R=u.forcedAutoLevel;return $===v||-1!==R&&R===v||(N.length&&S.trace("[abr] Skipped level(s) "+N.join(",")+" of "+r+' max with CODECS and VIDEO-RANGE:"'+p[N[0]].codecs+'" '+p[N[0]].videoRange+'; not compatible with "'+b.codecs+'" '+C),S.info("[abr] switch candidate:"+A+"->"+$+" adjustedbw("+Math.round(T)+")-bitrate="+Math.round(T-L)+" ttfb:"+Q.toFixed(1)+" avgDuration:"+F.toFixed(1)+" maxFetchDuration:"+l.toFixed(1)+" fetchDuration:"+D.toFixed(1)+" firstSelection:"+B+" codecSet:"+w+" videoRange:"+C+" hls.loadLevel:"+v)),B&&(u.firstSelection=$),{v:$}}},$=r;$>=e;$--)if(0!==(P=H())&&P)return P.v;return-1},a(t,[{key:"firstAutoLevel",get:function(){var t=this.hls,e=t.maxAutoLevel,r=t.minAutoLevel,n=this.getBwEstimate(),i=this.hls.config.maxStarvationDelay,a=this.findBestLevel(n,r,e,0,i,1,1);if(a>-1)return a;var s=this.hls.firstLevel,o=Math.min(Math.max(s,r),e);return S.warn("[abr] Could not find best starting auto level. Defaulting to first in playlist "+s+" clamped to "+o),o}},{key:"forcedAutoLevel",get:function(){return this.nextAutoLevelKey?-1:this._nextAutoLevel}},{key:"nextAutoLevel",get:function(){var t=this.forcedAutoLevel,e=this.bwEstimator.canEstimate(),r=this.lastLoadedFragLevel>-1;if(!(-1===t||e&&r&&this.nextAutoLevelKey!==this.getAutoLevelKey()))return t;var n=e&&r?this.getNextABRAutoLevel():this.firstAutoLevel;if(-1!==t){var i=this.hls.levels;if(i.length>Math.max(t,n)&&i[t].loadError<=i[n].loadError)return t}return this._nextAutoLevel=n,this.nextAutoLevelKey=this.getAutoLevelKey(),n},set:function(t){var e=Math.max(this.hls.minAutoLevel,t);this._nextAutoLevel!=e&&(this.nextAutoLevelKey="",this._nextAutoLevel=e)}}]),t}(),Cr=function(){function t(){this._boundTick=void 0,this._tickTimer=null,this._tickInterval=null,this._tickCallCount=0,this._boundTick=this.tick.bind(this)}var e=t.prototype;return e.destroy=function(){this.onHandlerDestroying(),this.onHandlerDestroyed()},e.onHandlerDestroying=function(){this.clearNextTick(),this.clearInterval()},e.onHandlerDestroyed=function(){},e.hasInterval=function(){return!!this._tickInterval},e.hasNextTick=function(){return!!this._tickTimer},e.setInterval=function(t){return!this._tickInterval&&(this._tickCallCount=0,this._tickInterval=self.setInterval(this._boundTick,t),!0)},e.clearInterval=function(){return!!this._tickInterval&&(self.clearInterval(this._tickInterval),this._tickInterval=null,!0)},e.clearNextTick=function(){return!!this._tickTimer&&(self.clearTimeout(this._tickTimer),this._tickTimer=null,!0)},e.tick=function(){this._tickCallCount++,1===this._tickCallCount&&(this.doTick(),this._tickCallCount>1&&this.tickImmediate(),this._tickCallCount=0)},e.tickImmediate=function(){this.clearNextTick(),this._tickTimer=self.setTimeout(this._boundTick,0)},e.doTick=function(){},t}(),Er="NOT_LOADED",xr="APPENDING",Tr="PARTIAL",Sr="OK",kr=function(){function t(t){this.activePartLists=Object.create(null),this.endListFragments=Object.create(null),this.fragments=Object.create(null),this.timeRanges=Object.create(null),this.bufferPadding=.2,this.hls=void 0,this.hasGaps=!1,this.hls=t,this._registerListeners()}var e=t.prototype;return e._registerListeners=function(){var t=this.hls;t.on(b.BUFFER_APPENDED,this.onBufferAppended,this),t.on(b.FRAG_BUFFERED,this.onFragBuffered,this),t.on(b.FRAG_LOADED,this.onFragLoaded,this)},e._unregisterListeners=function(){var t=this.hls;t.off(b.BUFFER_APPENDED,this.onBufferAppended,this),t.off(b.FRAG_BUFFERED,this.onFragBuffered,this),t.off(b.FRAG_LOADED,this.onFragLoaded,this)},e.destroy=function(){this._unregisterListeners(),this.fragments=this.activePartLists=this.endListFragments=this.timeRanges=null},e.getAppendedFrag=function(t,e){var r=this.activePartLists[e];if(r)for(var n=r.length;n--;){var i=r[n];if(!i)break;var a=i.end;if(i.start<=t&&null!==a&&t<=a)return i}return this.getBufferedFrag(t,e)},e.getBufferedFrag=function(t,e){for(var r=this.fragments,n=Object.keys(r),i=n.length;i--;){var a=r[n[i]];if((null==a?void 0:a.body.type)===e&&a.buffered){var s=a.body;if(s.start<=t&&t<=s.end)return s}}return null},e.detectEvictedFragments=function(t,e,r,n){var i=this;this.timeRanges&&(this.timeRanges[t]=e);var a=(null==n?void 0:n.fragment.sn)||-1;Object.keys(this.fragments).forEach((function(n){var s=i.fragments[n];if(s&&!(a>=s.body.sn))if(s.buffered||s.loaded){var o=s.range[t];o&&o.time.some((function(t){var r=!i.isTimeBuffered(t.startPTS,t.endPTS,e);return r&&i.removeFragment(s.body),r}))}else s.body.type===r&&i.removeFragment(s.body)}))},e.detectPartialFragments=function(t){var e=this,r=this.timeRanges,n=t.frag,i=t.part;if(r&&"initSegment"!==n.sn){var a=Fr(n),s=this.fragments[a];if(!(!s||s.buffered&&n.gap)){var o=!n.relurl;Object.keys(r).forEach((function(t){var a=n.elementaryStreams[t];if(a){var u=r[t],l=o||!0===a.partial;s.range[t]=e.getBufferedTimes(n,i,l,u)}})),s.loaded=null,Object.keys(s.range).length?(s.buffered=!0,(s.body.endList=n.endList||s.body.endList)&&(this.endListFragments[s.body.type]=s),Ir(s)||this.removeParts(n.sn-1,n.type)):this.removeFragment(s.body)}}},e.removeParts=function(t,e){var r=this.activePartLists[e];r&&(this.activePartLists[e]=r.filter((function(e){return e.fragment.sn>=t})))},e.fragBuffered=function(t,e){var r=Fr(t),n=this.fragments[r];!n&&e&&(n=this.fragments[r]={body:t,appendedPTS:null,loaded:null,buffered:!1,range:Object.create(null)},t.gap&&(this.hasGaps=!0)),n&&(n.loaded=null,n.buffered=!0)},e.getBufferedTimes=function(t,e,r,n){for(var i={time:[],partial:r},a=t.start,s=t.end,o=t.minEndPTS||s,u=t.maxStartPTS||a,l=0;l<n.length;l++){var c=n.start(l)-this.bufferPadding,A=n.end(l)+this.bufferPadding;if(u>=c&&o<=A){i.time.push({startPTS:Math.max(a,n.start(l)),endPTS:Math.min(s,n.end(l))});break}if(a<A&&s>c){var d=Math.max(a,n.start(l)),f=Math.min(s,n.end(l));f>d&&(i.partial=!0,i.time.push({startPTS:d,endPTS:f}))}else if(s<=c)break}return i},e.getPartialFragment=function(t){var e,r,n,i=null,a=0,s=this.bufferPadding,o=this.fragments;return Object.keys(o).forEach((function(u){var l=o[u];l&&Ir(l)&&(r=l.body.start-s,n=l.body.end+s,t>=r&&t<=n&&(e=Math.min(t-r,n-t),a<=e&&(i=l.body,a=e)))})),i},e.isEndListAppended=function(t){var e=this.endListFragments[t];return void 0!==e&&(e.buffered||Ir(e))},e.getState=function(t){var e=Fr(t),r=this.fragments[e];return r?r.buffered?Ir(r)?Tr:Sr:xr:Er},e.isTimeBuffered=function(t,e,r){for(var n,i,a=0;a<r.length;a++){if(n=r.start(a)-this.bufferPadding,i=r.end(a)+this.bufferPadding,t>=n&&e<=i)return!0;if(e<=n)return!1}return!1},e.onFragLoaded=function(t,e){var r=e.frag,n=e.part;if("initSegment"!==r.sn&&!r.bitrateTest){var i=n?null:e,a=Fr(r);this.fragments[a]={body:r,appendedPTS:null,loaded:i,buffered:!1,range:Object.create(null)}}},e.onBufferAppended=function(t,e){var r=this,n=e.frag,i=e.part,a=e.timeRanges;if("initSegment"!==n.sn){var s=n.type;if(i){var o=this.activePartLists[s];o||(this.activePartLists[s]=o=[]),o.push(i)}this.timeRanges=a,Object.keys(a).forEach((function(t){var e=a[t];r.detectEvictedFragments(t,e,s,i)}))}},e.onFragBuffered=function(t,e){this.detectPartialFragments(e)},e.hasFragment=function(t){var e=Fr(t);return!!this.fragments[e]},e.hasParts=function(t){var e;return!(null==(e=this.activePartLists[t])||!e.length)},e.removeFragmentsInRange=function(t,e,r,n,i){var a=this;n&&!this.hasGaps||Object.keys(this.fragments).forEach((function(s){var o=a.fragments[s];if(o){var u=o.body;u.type!==r||n&&!u.gap||u.start<e&&u.end>t&&(o.buffered||i)&&a.removeFragment(u)}}))},e.removeFragment=function(t){var e=Fr(t);t.stats.loaded=0,t.clearElementaryStreamInfo();var r=this.activePartLists[t.type];if(r){var n=t.sn;this.activePartLists[t.type]=r.filter((function(t){return t.fragment.sn!==n}))}delete this.fragments[e],t.endList&&delete this.endListFragments[t.type]},e.removeAllFragments=function(){this.fragments=Object.create(null),this.endListFragments=Object.create(null),this.activePartLists=Object.create(null),this.hasGaps=!1},t}();function Ir(t){var e,r,n;return t.buffered&&(t.body.gap||(null==(e=t.range.video)?void 0:e.partial)||(null==(r=t.range.audio)?void 0:r.partial)||(null==(n=t.range.audiovideo)?void 0:n.partial))}function Fr(t){return t.type+"_"+t.level+"_"+t.sn}var Lr={length:0,start:function(){return 0},end:function(){return 0}},Dr=function(){function t(){}return t.isBuffered=function(e,r){try{if(e)for(var n=t.getBuffered(e),i=0;i<n.length;i++)if(r>=n.start(i)&&r<=n.end(i))return!0}catch(t){}return!1},t.bufferInfo=function(e,r,n){try{if(e){var i,a=t.getBuffered(e),s=[];for(i=0;i<a.length;i++)s.push({start:a.start(i),end:a.end(i)});return this.bufferedInfo(s,r,n)}}catch(t){}return{len:0,start:r,end:r,nextStart:void 0}},t.bufferedInfo=function(t,e,r){e=Math.max(0,e),t.sort((function(t,e){var r=t.start-e.start;return r||e.end-t.end}));var n=[];if(r)for(var i=0;i<t.length;i++){var a=n.length;if(a){var s=n[a-1].end;t[i].start-s<r?t[i].end>s&&(n[a-1].end=t[i].end):n.push(t[i])}else n.push(t[i])}else n=t;for(var o,u=0,l=e,c=e,A=0;A<n.length;A++){var d=n[A].start,f=n[A].end;if(e+r>=d&&e<f)l=d,u=(c=f)-e;else if(e+r<d){o=d;break}}return{len:u,start:l||0,end:c||0,nextStart:o}},t.getBuffered=function(t){try{return t.buffered}catch(t){return S.log("failed to get media.buffered",t),Lr}},t}(),Rr=function(t,e,r,n,i,a){void 0===n&&(n=0),void 0===i&&(i=-1),void 0===a&&(a=!1),this.level=void 0,this.sn=void 0,this.part=void 0,this.id=void 0,this.size=void 0,this.partial=void 0,this.transmuxing={start:0,executeStart:0,executeEnd:0,end:0},this.buffering={audio:{start:0,executeStart:0,executeEnd:0,end:0},video:{start:0,executeStart:0,executeEnd:0,end:0},audiovideo:{start:0,executeStart:0,executeEnd:0,end:0}},this.level=t,this.sn=e,this.id=r,this.size=n,this.part=i,this.partial=a};function Ur(t,e){for(var r=0,n=t.length;r<n;r++){var i;if((null==(i=t[r])?void 0:i.cc)===e)return t[r]}return null}function Or(t,e){if(t){var r=t.start+e;t.start=t.startPTS=r,t.endPTS=r+t.duration}}function Pr(t,e){for(var r=e.fragments,n=0,i=r.length;n<i;n++)Or(r[n],t);e.fragmentHint&&Or(e.fragmentHint,t),e.alignedSliding=!0}function Mr(t,e){if(t.hasProgramDateTime&&e.hasProgramDateTime){var r=t.fragments,n=e.fragments;if(r.length&&n.length){var i,a,s=Math.min(e.endCC,t.endCC);e.startCC<s&&t.startCC<s&&(i=Ur(n,s),a=Ur(r,s)),i&&a||(a=Ur(r,(i=n[Math.floor(n.length/2)]).cc)||r[Math.floor(r.length/2)]);var o=i.programDateTime,u=a.programDateTime;o&&u&&Pr((u-o)/1e3-(a.start-i.start),t)}}}var Qr=Math.pow(2,17),Nr=function(){function t(t){this.config=void 0,this.loader=null,this.partLoadTimeout=-1,this.config=t}var r=t.prototype;return r.destroy=function(){this.loader&&(this.loader.destroy(),this.loader=null)},r.abort=function(){this.loader&&this.loader.abort()},r.load=function(t,r){var n=this,i=t.url;if(!i)return Promise.reject(new jr({type:_.NETWORK_ERROR,details:B.FRAG_LOAD_ERROR,fatal:!1,frag:t,error:new Error("Fragment does not have a "+(i?"part list":"url")),networkDetails:null}));this.abort();var a=this.config,s=a.fLoader,o=a.loader;return new Promise((function(u,l){if(n.loader&&n.loader.destroy(),t.gap){if(t.tagList.some((function(t){return"GAP"===t[0]})))return void l($r(t));t.gap=!1}var c=n.loader=t.loader=s?new s(a):new o(a),A=Hr(t),d=ar(a.fragLoadPolicy.default),f={loadPolicy:d,timeout:d.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:"initSegment"===t.sn?1/0:Qr};t.stats=c.stats,c.load(A,f,{onSuccess:function(e,r,i,a){n.resetLoader(t,c);var s=e.data;i.resetIV&&t.decryptdata&&(t.decryptdata.iv=new Uint8Array(s.slice(0,16)),s=s.slice(16)),u({frag:t,part:null,payload:s,networkDetails:a})},onError:function(r,a,s,o){n.resetLoader(t,c),l(new jr({type:_.NETWORK_ERROR,details:B.FRAG_LOAD_ERROR,fatal:!1,frag:t,response:e({url:i,data:void 0},r),error:new Error("HTTP Error "+r.code+" "+r.text),networkDetails:s,stats:o}))},onAbort:function(e,r,i){n.resetLoader(t,c),l(new jr({type:_.NETWORK_ERROR,details:B.INTERNAL_ABORTED,fatal:!1,frag:t,error:new Error("Aborted"),networkDetails:i,stats:e}))},onTimeout:function(e,r,i){n.resetLoader(t,c),l(new jr({type:_.NETWORK_ERROR,details:B.FRAG_LOAD_TIMEOUT,fatal:!1,frag:t,error:new Error("Timeout after "+f.timeout+"ms"),networkDetails:i,stats:e}))},onProgress:function(e,n,i,a){r&&r({frag:t,part:null,payload:i,networkDetails:a})}})}))},r.loadPart=function(t,r,n){var i=this;this.abort();var a=this.config,s=a.fLoader,o=a.loader;return new Promise((function(u,l){if(i.loader&&i.loader.destroy(),t.gap||r.gap)l($r(t,r));else{var c=i.loader=t.loader=s?new s(a):new o(a),A=Hr(t,r),d=ar(a.fragLoadPolicy.default),f={loadPolicy:d,timeout:d.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:Qr};r.stats=c.stats,c.load(A,f,{onSuccess:function(e,a,s,o){i.resetLoader(t,c),i.updateStatsFromPart(t,r);var l={frag:t,part:r,payload:e.data,networkDetails:o};n(l),u(l)},onError:function(n,a,s,o){i.resetLoader(t,c),l(new jr({type:_.NETWORK_ERROR,details:B.FRAG_LOAD_ERROR,fatal:!1,frag:t,part:r,response:e({url:A.url,data:void 0},n),error:new Error("HTTP Error "+n.code+" "+n.text),networkDetails:s,stats:o}))},onAbort:function(e,n,a){t.stats.aborted=r.stats.aborted,i.resetLoader(t,c),l(new jr({type:_.NETWORK_ERROR,details:B.INTERNAL_ABORTED,fatal:!1,frag:t,part:r,error:new Error("Aborted"),networkDetails:a,stats:e}))},onTimeout:function(e,n,a){i.resetLoader(t,c),l(new jr({type:_.NETWORK_ERROR,details:B.FRAG_LOAD_TIMEOUT,fatal:!1,frag:t,part:r,error:new Error("Timeout after "+f.timeout+"ms"),networkDetails:a,stats:e}))}})}}))},r.updateStatsFromPart=function(t,e){var r=t.stats,n=e.stats,i=n.total;if(r.loaded+=n.loaded,i){var a=Math.round(t.duration/e.duration),s=Math.min(Math.round(r.loaded/i),a),o=(a-s)*Math.round(r.loaded/s);r.total=r.loaded+o}else r.total=Math.max(r.loaded,r.total);var u=r.loading,l=n.loading;u.start?u.first+=l.first-l.start:(u.start=l.start,u.first=l.first),u.end=l.end},r.resetLoader=function(t,e){t.loader=null,this.loader===e&&(self.clearTimeout(this.partLoadTimeout),this.loader=null),e.destroy()},t}();function Hr(t,e){void 0===e&&(e=null);var r=e||t,n={frag:t,part:e,responseType:"arraybuffer",url:r.url,headers:{},rangeStart:0,rangeEnd:0},i=r.byteRangeStartOffset,a=r.byteRangeEndOffset;if(m(i)&&m(a)){var s,o=i,u=a;if("initSegment"===t.sn&&"AES-128"===(null==(s=t.decryptdata)?void 0:s.method)){var l=a-i;l%16&&(u=a+(16-l%16)),0!==i&&(n.resetIV=!0,o=i-16)}n.rangeStart=o,n.rangeEnd=u}return n}function $r(t,e){var r=new Error("GAP "+(t.gap?"tag":"attribute")+" found"),n={type:_.MEDIA_ERROR,details:B.FRAG_GAP,fatal:!1,frag:t,error:r,networkDetails:null};return e&&(n.part=e),(e||t).stats.aborted=!0,new jr(n)}var jr=function(t){function e(e){var r;return(r=t.call(this,e.error.message)||this).data=void 0,r.data=e,r}return c(e,t),e}(h(Error)),Kr=function(){function t(t,e){this.subtle=void 0,this.aesIV=void 0,this.subtle=t,this.aesIV=e}return t.prototype.decrypt=function(t,e){return this.subtle.decrypt({name:"AES-CBC",iv:this.aesIV},e,t)},t}(),Gr=function(){function t(t,e){this.subtle=void 0,this.key=void 0,this.subtle=t,this.key=e}return t.prototype.expandKey=function(){return this.subtle.importKey("raw",this.key,{name:"AES-CBC"},!1,["encrypt","decrypt"])},t}(),Vr=function(){function t(){this.rcon=[0,1,2,4,8,16,32,64,128,27,54],this.subMix=[new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256)],this.invSubMix=[new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256)],this.sBox=new Uint32Array(256),this.invSBox=new Uint32Array(256),this.key=new Uint32Array(0),this.ksRows=0,this.keySize=0,this.keySchedule=void 0,this.invKeySchedule=void 0,this.initTable()}var e=t.prototype;return e.uint8ArrayToUint32Array_=function(t){for(var e=new DataView(t),r=new Uint32Array(4),n=0;n<4;n++)r[n]=e.getUint32(4*n);return r},e.initTable=function(){var t=this.sBox,e=this.invSBox,r=this.subMix,n=r[0],i=r[1],a=r[2],s=r[3],o=this.invSubMix,u=o[0],l=o[1],c=o[2],A=o[3],d=new Uint32Array(256),f=0,h=0,p=0;for(p=0;p<256;p++)d[p]=p<128?p<<1:p<<1^283;for(p=0;p<256;p++){var g=h^h<<1^h<<2^h<<3^h<<4;g=g>>>8^255&g^99,t[f]=g,e[g]=f;var v=d[f],m=d[v],y=d[m],w=257*d[g]^16843008*g;n[f]=w<<24|w>>>8,i[f]=w<<16|w>>>16,a[f]=w<<8|w>>>24,s[f]=w,w=16843009*y^65537*m^257*v^16843008*f,u[g]=w<<24|w>>>8,l[g]=w<<16|w>>>16,c[g]=w<<8|w>>>24,A[g]=w,f?(f=v^d[d[d[y^v]]],h^=d[d[h]]):f=h=1}},e.expandKey=function(t){for(var e=this.uint8ArrayToUint32Array_(t),r=!0,n=0;n<e.length&&r;)r=e[n]===this.key[n],n++;if(!r){this.key=e;var i=this.keySize=e.length;if(4!==i&&6!==i&&8!==i)throw new Error("Invalid aes key size="+i);var a,s,o,u,l=this.ksRows=4*(i+6+1),c=this.keySchedule=new Uint32Array(l),A=this.invKeySchedule=new Uint32Array(l),d=this.sBox,f=this.rcon,h=this.invSubMix,p=h[0],g=h[1],v=h[2],m=h[3];for(a=0;a<l;a++)a<i?o=c[a]=e[a]:(u=o,a%i==0?(u=d[(u=u<<8|u>>>24)>>>24]<<24|d[u>>>16&255]<<16|d[u>>>8&255]<<8|d[255&u],u^=f[a/i|0]<<24):i>6&&a%i==4&&(u=d[u>>>24]<<24|d[u>>>16&255]<<16|d[u>>>8&255]<<8|d[255&u]),c[a]=o=(c[a-i]^u)>>>0);for(s=0;s<l;s++)a=l-s,u=3&s?c[a]:c[a-4],A[s]=s<4||a<=4?u:p[d[u>>>24]]^g[d[u>>>16&255]]^v[d[u>>>8&255]]^m[d[255&u]],A[s]=A[s]>>>0}},e.networkToHostOrderSwap=function(t){return t<<24|(65280&t)<<8|(16711680&t)>>8|t>>>24},e.decrypt=function(t,e,r){for(var n,i,a,s,o,u,l,c,A,d,f,h,p,g,v=this.keySize+6,m=this.invKeySchedule,y=this.invSBox,w=this.invSubMix,b=w[0],_=w[1],B=w[2],C=w[3],E=this.uint8ArrayToUint32Array_(r),x=E[0],T=E[1],S=E[2],k=E[3],I=new Int32Array(t),F=new Int32Array(I.length),L=this.networkToHostOrderSwap;e<I.length;){for(A=L(I[e]),d=L(I[e+1]),f=L(I[e+2]),h=L(I[e+3]),o=A^m[0],u=h^m[1],l=f^m[2],c=d^m[3],p=4,g=1;g<v;g++)n=b[o>>>24]^_[u>>16&255]^B[l>>8&255]^C[255&c]^m[p],i=b[u>>>24]^_[l>>16&255]^B[c>>8&255]^C[255&o]^m[p+1],a=b[l>>>24]^_[c>>16&255]^B[o>>8&255]^C[255&u]^m[p+2],s=b[c>>>24]^_[o>>16&255]^B[u>>8&255]^C[255&l]^m[p+3],o=n,u=i,l=a,c=s,p+=4;n=y[o>>>24]<<24^y[u>>16&255]<<16^y[l>>8&255]<<8^y[255&c]^m[p],i=y[u>>>24]<<24^y[l>>16&255]<<16^y[c>>8&255]<<8^y[255&o]^m[p+1],a=y[l>>>24]<<24^y[c>>16&255]<<16^y[o>>8&255]<<8^y[255&u]^m[p+2],s=y[c>>>24]<<24^y[o>>16&255]<<16^y[u>>8&255]<<8^y[255&l]^m[p+3],F[e]=L(n^x),F[e+1]=L(s^T),F[e+2]=L(a^S),F[e+3]=L(i^k),x=A,T=d,S=f,k=h,e+=4}return F.buffer},t}(),Wr=function(){function t(t,e){var r=(void 0===e?{}:e).removePKCS7Padding,n=void 0===r||r;if(this.logEnabled=!0,this.removePKCS7Padding=void 0,this.subtle=null,this.softwareDecrypter=null,this.key=null,this.fastAesKey=null,this.remainderData=null,this.currentIV=null,this.currentResult=null,this.useSoftware=void 0,this.useSoftware=t.enableSoftwareAES,this.removePKCS7Padding=n,n)try{var i=self.crypto;i&&(this.subtle=i.subtle||i.webkitSubtle)}catch(t){}null===this.subtle&&(this.useSoftware=!0)}var e=t.prototype;return e.destroy=function(){this.subtle=null,this.softwareDecrypter=null,this.key=null,this.fastAesKey=null,this.remainderData=null,this.currentIV=null,this.currentResult=null},e.isSync=function(){return this.useSoftware},e.flush=function(){var t=this.currentResult,e=this.remainderData;if(!t||e)return this.reset(),null;var r,n,i,a=new Uint8Array(t);return this.reset(),this.removePKCS7Padding?(n=(r=a).byteLength,(i=n&&new DataView(r.buffer).getUint8(n-1))?rt(r,0,n-i):r):a},e.reset=function(){this.currentResult=null,this.currentIV=null,this.remainderData=null,this.softwareDecrypter&&(this.softwareDecrypter=null)},e.decrypt=function(t,e,r){var n=this;return this.useSoftware?new Promise((function(i,a){n.softwareDecrypt(new Uint8Array(t),e,r);var s=n.flush();s?i(s.buffer):a(new Error("[softwareDecrypt] Failed to decrypt data"))})):this.webCryptoDecrypt(new Uint8Array(t),e,r)},e.softwareDecrypt=function(t,e,r){var n=this.currentIV,i=this.currentResult,a=this.remainderData;this.logOnce("JS AES decrypt"),a&&(t=Pt(a,t),this.remainderData=null);var s=this.getValidChunk(t);if(!s.length)return null;n&&(r=n);var o=this.softwareDecrypter;o||(o=this.softwareDecrypter=new Vr),o.expandKey(e);var u=i;return this.currentResult=o.decrypt(s.buffer,0,r),this.currentIV=rt(s,-16).buffer,u||null},e.webCryptoDecrypt=function(t,e,r){var n=this,i=this.subtle;return this.key===e&&this.fastAesKey||(this.key=e,this.fastAesKey=new Gr(i,e)),this.fastAesKey.expandKey().then((function(e){return i?(n.logOnce("WebCrypto AES decrypt"),new Kr(i,new Uint8Array(r)).decrypt(t.buffer,e)):Promise.reject(new Error("web crypto not initialized"))})).catch((function(i){return S.warn("[decrypter]: WebCrypto Error, disable WebCrypto API, "+i.name+": "+i.message),n.onWebCryptoError(t,e,r)}))},e.onWebCryptoError=function(t,e,r){this.useSoftware=!0,this.logEnabled=!0,this.softwareDecrypt(t,e,r);var n=this.flush();if(n)return n.buffer;throw new Error("WebCrypto and softwareDecrypt: failed to decrypt data")},e.getValidChunk=function(t){var e=t,r=t.length-t.length%16;return r!==t.length&&(e=rt(t,0,r),this.remainderData=rt(t,r)),e},e.logOnce=function(t){this.logEnabled&&(S.log("[decrypter]: "+t),this.logEnabled=!1)},t}(),zr="STOPPED",Yr="IDLE",qr="KEY_LOADING",Xr="FRAG_LOADING",Jr="FRAG_LOADING_WAITING_RETRY",Zr="WAITING_TRACK",tn="PARSING",en="PARSED",rn="ENDED",nn="ERROR",an="WAITING_INIT_PTS",sn="WAITING_LEVEL",on=function(t){function e(e,r,n,i,a){var s;return(s=t.call(this)||this).hls=void 0,s.fragPrevious=null,s.fragCurrent=null,s.fragmentTracker=void 0,s.transmuxer=null,s._state=zr,s.playlistType=void 0,s.media=null,s.mediaBuffer=null,s.config=void 0,s.bitrateTest=!1,s.lastCurrentTime=0,s.nextLoadPosition=0,s.startPosition=0,s.startTimeOffset=null,s.loadedmetadata=!1,s.retryDate=0,s.levels=null,s.fragmentLoader=void 0,s.keyLoader=void 0,s.levelLastLoaded=null,s.startFragRequested=!1,s.decrypter=void 0,s.initPTS=[],s.onvseeking=null,s.onvended=null,s.logPrefix="",s.log=void 0,s.warn=void 0,s.playlistType=a,s.logPrefix=i,s.log=S.log.bind(S,i+":"),s.warn=S.warn.bind(S,i+":"),s.hls=e,s.fragmentLoader=new Nr(e.config),s.keyLoader=n,s.fragmentTracker=r,s.config=e.config,s.decrypter=new Wr(e.config),e.on(b.MANIFEST_LOADED,s.onManifestLoaded,function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(s)),s}c(e,t);var r=e.prototype;return r.doTick=function(){this.onTickEnd()},r.onTickEnd=function(){},r.startLoad=function(t){},r.stopLoad=function(){this.fragmentLoader.abort(),this.keyLoader.abort(this.playlistType);var t=this.fragCurrent;null!=t&&t.loader&&(t.abortRequests(),this.fragmentTracker.removeFragment(t)),this.resetTransmuxer(),this.fragCurrent=null,this.fragPrevious=null,this.clearInterval(),this.clearNextTick(),this.state=zr},r._streamEnded=function(t,e){if(e.live||t.nextStart||!t.end||!this.media)return!1;var r=e.partList;if(null!=r&&r.length){var n=r[r.length-1];return Dr.isBuffered(this.media,n.start+n.duration/2)}var i=e.fragments[e.fragments.length-1].type;return this.fragmentTracker.isEndListAppended(i)},r.getLevelDetails=function(){var t;if(this.levels&&null!==this.levelLastLoaded)return null==(t=this.levelLastLoaded)?void 0:t.details},r.onMediaAttached=function(t,e){var r=this.media=this.mediaBuffer=e.media;this.onvseeking=this.onMediaSeeking.bind(this),this.onvended=this.onMediaEnded.bind(this),r.addEventListener("seeking",this.onvseeking),r.addEventListener("ended",this.onvended);var n=this.config;this.levels&&n.autoStartLoad&&this.state===zr&&this.startLoad(n.startPosition)},r.onMediaDetaching=function(){var t=this.media;null!=t&&t.ended&&(this.log("MSE detaching and video ended, reset startPosition"),this.startPosition=this.lastCurrentTime=0),t&&this.onvseeking&&this.onvended&&(t.removeEventListener("seeking",this.onvseeking),t.removeEventListener("ended",this.onvended),this.onvseeking=this.onvended=null),this.keyLoader&&this.keyLoader.detach(),this.media=this.mediaBuffer=null,this.loadedmetadata=!1,this.fragmentTracker.removeAllFragments(),this.stopLoad()},r.onMediaSeeking=function(){var t=this.config,e=this.fragCurrent,r=this.media,n=this.mediaBuffer,i=this.state,a=r?r.currentTime:0,s=Dr.bufferInfo(n||r,a,t.maxBufferHole);if(this.log("media seeking to "+(m(a)?a.toFixed(3):a)+", state: "+i),this.state===rn)this.resetLoadingState();else if(e){var o=t.maxFragLookUpTolerance,u=e.start-o,l=e.start+e.duration+o;if(!s.len||l<s.start||u>s.end){var c=a>l;(a<u||c)&&(c&&e.loader&&(this.log("seeking outside of buffer while fragment load in progress, cancel fragment load"),e.abortRequests(),this.resetLoadingState()),this.fragPrevious=null)}}r&&(this.fragmentTracker.removeFragmentsInRange(a,1/0,this.playlistType,!0),this.lastCurrentTime=a),this.loadedmetadata||s.len||(this.nextLoadPosition=this.startPosition=a),this.tickImmediate()},r.onMediaEnded=function(){this.startPosition=this.lastCurrentTime=0},r.onManifestLoaded=function(t,e){this.startTimeOffset=e.startTimeOffset,this.initPTS=[]},r.onHandlerDestroying=function(){this.hls.off(b.MANIFEST_LOADED,this.onManifestLoaded,this),this.stopLoad(),t.prototype.onHandlerDestroying.call(this),this.hls=null},r.onHandlerDestroyed=function(){this.state=zr,this.fragmentLoader&&this.fragmentLoader.destroy(),this.keyLoader&&this.keyLoader.destroy(),this.decrypter&&this.decrypter.destroy(),this.hls=this.log=this.warn=this.decrypter=this.keyLoader=this.fragmentLoader=this.fragmentTracker=null,t.prototype.onHandlerDestroyed.call(this)},r.loadFragment=function(t,e,r){this._loadFragForPlayback(t,e,r)},r._loadFragForPlayback=function(t,e,r){var n=this;this._doFragLoad(t,e,r,(function(e){if(n.fragContextChanged(t))return n.warn("Fragment "+t.sn+(e.part?" p: "+e.part.index:"")+" of level "+t.level+" was dropped during download."),void n.fragmentTracker.removeFragment(t);t.stats.chunkCount++,n._handleFragmentLoadProgress(e)})).then((function(e){if(e){var r=n.state;n.fragContextChanged(t)?(r===Xr||!n.fragCurrent&&r===tn)&&(n.fragmentTracker.removeFragment(t),n.state=Yr):("payload"in e&&(n.log("Loaded fragment "+t.sn+" of level "+t.level),n.hls.trigger(b.FRAG_LOADED,e)),n._handleFragmentLoadComplete(e))}})).catch((function(e){n.state!==zr&&n.state!==nn&&(n.warn(e),n.resetFragmentLoading(t))}))},r.clearTrackerIfNeeded=function(t){var e,r=this.fragmentTracker;if(r.getState(t)===xr){var n=t.type,i=this.getFwdBufferInfo(this.mediaBuffer,n),a=Math.max(t.duration,i?i.len:this.config.maxBufferLength);this.reduceMaxBufferLength(a)&&r.removeFragment(t)}else 0===(null==(e=this.mediaBuffer)?void 0:e.buffered.length)?r.removeAllFragments():r.hasParts(t.type)&&(r.detectPartialFragments({frag:t,part:null,stats:t.stats,id:t.type}),r.getState(t)===Tr&&r.removeFragment(t))},r.checkLiveUpdate=function(t){if(t.updated&&!t.live){var e=t.fragments[t.fragments.length-1];this.fragmentTracker.detectPartialFragments({frag:e,part:null,stats:e.stats,id:e.type})}t.fragments[0]||(t.deltaUpdateFailed=!0)},r.flushMainBuffer=function(t,e,r){if(void 0===r&&(r=null),t-e){var n={startOffset:t,endOffset:e,type:r};this.hls.trigger(b.BUFFER_FLUSHING,n)}},r._loadInitSegment=function(t,e){var r=this;this._doFragLoad(t,e).then((function(e){if(!e||r.fragContextChanged(t)||!r.levels)throw new Error("init load aborted");return e})).then((function(e){var n=r.hls,i=e.payload,a=t.decryptdata;if(i&&i.byteLength>0&&null!=a&&a.key&&a.iv&&"AES-128"===a.method){var s=self.performance.now();return r.decrypter.decrypt(new Uint8Array(i),a.key.buffer,a.iv.buffer).catch((function(e){throw n.trigger(b.ERROR,{type:_.MEDIA_ERROR,details:B.FRAG_DECRYPT_ERROR,fatal:!1,error:e,reason:e.message,frag:t}),e})).then((function(i){var a=self.performance.now();return n.trigger(b.FRAG_DECRYPTED,{frag:t,payload:i,stats:{tstart:s,tdecrypt:a}}),e.payload=i,r.completeInitSegmentLoad(e)}))}return r.completeInitSegmentLoad(e)})).catch((function(e){r.state!==zr&&r.state!==nn&&(r.warn(e),r.resetFragmentLoading(t))}))},r.completeInitSegmentLoad=function(t){if(!this.levels)throw new Error("init load aborted, missing levels");var e=t.frag.stats;this.state=Yr,t.frag.data=new Uint8Array(t.payload),e.parsing.start=e.buffering.start=self.performance.now(),e.parsing.end=e.buffering.end=self.performance.now(),this.tick()},r.fragContextChanged=function(t){var e=this.fragCurrent;return!t||!e||t.sn!==e.sn||t.level!==e.level},r.fragBufferedComplete=function(t,e){var r,n,i,a,s=this.mediaBuffer?this.mediaBuffer:this.media;if(this.log("Buffered "+t.type+" sn: "+t.sn+(e?" part: "+e.index:"")+" of "+(this.playlistType===Ce?"level":"track")+" "+t.level+" (frag:["+(null!=(r=t.startPTS)?r:NaN).toFixed(3)+"-"+(null!=(n=t.endPTS)?n:NaN).toFixed(3)+"] > buffer:"+(s?function(t){for(var e="",r=t.length,n=0;n<r;n++)e+="["+t.start(n).toFixed(3)+"-"+t.end(n).toFixed(3)+"]";return e}(Dr.getBuffered(s)):"(detached)")+")"),"initSegment"!==t.sn){var o;if(t.type!==xe){var u=t.elementaryStreams;if(!Object.keys(u).some((function(t){return!!u[t]})))return void(this.state=Yr)}var l=null==(o=this.levels)?void 0:o[t.level];null!=l&&l.fragmentError&&(this.log("Resetting level fragment error count of "+l.fragmentError+" on frag buffered"),l.fragmentError=0)}this.state=Yr,s&&(!this.loadedmetadata&&t.type==Ce&&s.buffered.length&&(null==(i=this.fragCurrent)?void 0:i.sn)===(null==(a=this.fragPrevious)?void 0:a.sn)&&(this.loadedmetadata=!0,this.seekToStartPos()),this.tick())},r.seekToStartPos=function(){},r._handleFragmentLoadComplete=function(t){var e=this.transmuxer;if(e){var r=t.frag,n=t.part,i=t.partsLoaded,a=!i||0===i.length||i.some((function(t){return!t})),s=new Rr(r.level,r.sn,r.stats.chunkCount+1,0,n?n.index:-1,!a);e.flush(s)}},r._handleFragmentLoadProgress=function(t){},r._doFragLoad=function(t,e,r,n){var i,a=this;void 0===r&&(r=null);var s=null==e?void 0:e.details;if(!this.levels||!s)throw new Error("frag load aborted, missing level"+(s?"":" detail")+"s");var o=null;if(!t.encrypted||null!=(i=t.decryptdata)&&i.key?!t.encrypted&&s.encryptedFragments.length&&this.keyLoader.loadClear(t,s.encryptedFragments):(this.log("Loading key for "+t.sn+" of ["+s.startSN+"-"+s.endSN+"], "+("[stream-controller]"===this.logPrefix?"level":"track")+" "+t.level),this.state=qr,this.fragCurrent=t,o=this.keyLoader.load(t).then((function(t){if(!a.fragContextChanged(t.frag))return a.hls.trigger(b.KEY_LOADED,t),a.state===qr&&(a.state=Yr),t})),this.hls.trigger(b.KEY_LOADING,{frag:t}),null===this.fragCurrent&&(o=Promise.reject(new Error("frag load aborted, context changed in KEY_LOADING")))),r=Math.max(t.start,r||0),this.config.lowLatencyMode&&"initSegment"!==t.sn){var u=s.partList;if(u&&n){r>t.end&&s.fragmentHint&&(t=s.fragmentHint);var l=this.getNextPart(u,t,r);if(l>-1){var c,A=u[l];return this.log("Loading part sn: "+t.sn+" p: "+A.index+" cc: "+t.cc+" of playlist ["+s.startSN+"-"+s.endSN+"] parts [0-"+l+"-"+(u.length-1)+"] "+("[stream-controller]"===this.logPrefix?"level":"track")+": "+t.level+", target: "+parseFloat(r.toFixed(3))),this.nextLoadPosition=A.start+A.duration,this.state=Xr,c=o?o.then((function(r){return!r||a.fragContextChanged(r.frag)?null:a.doFragPartsLoad(t,A,e,n)})).catch((function(t){return a.handleFragLoadError(t)})):this.doFragPartsLoad(t,A,e,n).catch((function(t){return a.handleFragLoadError(t)})),this.hls.trigger(b.FRAG_LOADING,{frag:t,part:A,targetBufferTime:r}),null===this.fragCurrent?Promise.reject(new Error("frag load aborted, context changed in FRAG_LOADING parts")):c}if(!t.url||this.loadedEndOfParts(u,r))return Promise.resolve(null)}}this.log("Loading fragment "+t.sn+" cc: "+t.cc+" "+(s?"of ["+s.startSN+"-"+s.endSN+"] ":"")+("[stream-controller]"===this.logPrefix?"level":"track")+": "+t.level+", target: "+parseFloat(r.toFixed(3))),m(t.sn)&&!this.bitrateTest&&(this.nextLoadPosition=t.start+t.duration),this.state=Xr;var d,f=this.config.progressive;return d=f&&o?o.then((function(e){return!e||a.fragContextChanged(null==e?void 0:e.frag)?null:a.fragmentLoader.load(t,n)})).catch((function(t){return a.handleFragLoadError(t)})):Promise.all([this.fragmentLoader.load(t,f?n:void 0),o]).then((function(t){var e=t[0];return!f&&e&&n&&n(e),e})).catch((function(t){return a.handleFragLoadError(t)})),this.hls.trigger(b.FRAG_LOADING,{frag:t,targetBufferTime:r}),null===this.fragCurrent?Promise.reject(new Error("frag load aborted, context changed in FRAG_LOADING")):d},r.doFragPartsLoad=function(t,e,r,n){var i=this;return new Promise((function(a,s){var o,u=[],l=null==(o=r.details)?void 0:o.partList;!function e(o){i.fragmentLoader.loadPart(t,o,n).then((function(n){u[o.index]=n;var s=n.part;i.hls.trigger(b.FRAG_LOADED,n);var c=Ze(r,t.sn,o.index+1)||tr(l,t.sn,o.index+1);if(!c)return a({frag:t,part:s,partsLoaded:u});e(c)})).catch(s)}(e)}))},r.handleFragLoadError=function(t){if("data"in t){var e=t.data;t.data&&e.details===B.INTERNAL_ABORTED?this.handleFragLoadAborted(e.frag,e.part):this.hls.trigger(b.ERROR,e)}else this.hls.trigger(b.ERROR,{type:_.OTHER_ERROR,details:B.INTERNAL_EXCEPTION,err:t,error:t,fatal:!0});return null},r._handleTransmuxerFlush=function(t){var e=this.getCurrentContext(t);if(e&&this.state===tn){var r=e.frag,n=e.part,i=e.level,a=self.performance.now();r.stats.parsing.end=a,n&&(n.stats.parsing.end=a),this.updateLevelTiming(r,n,i,t.partial)}else this.fragCurrent||this.state===zr||this.state===nn||(this.state=Yr)},r.getCurrentContext=function(t){var e=this.levels,r=this.fragCurrent,n=t.level,i=t.sn,a=t.part;if(null==e||!e[n])return this.warn("Levels object was unset while buffering fragment "+i+" of level "+n+". The current chunk will not be buffered."),null;var s=e[n],o=a>-1?Ze(s,i,a):null,u=o?o.fragment:function(t,e,r){if(null==t||!t.details)return null;var n=t.details,i=n.fragments[e-n.startSN];return i||((i=n.fragmentHint)&&i.sn===e?i:e<n.startSN&&r&&r.sn===e?r:null)}(s,i,r);return u?(r&&r!==u&&(u.stats=r.stats),{frag:u,part:o,level:s}):null},r.bufferFragmentData=function(t,e,r,n,i){var a;if(t&&this.state===tn){var s=t.data1,o=t.data2,u=s;if(s&&o&&(u=Pt(s,o)),null!=(a=u)&&a.length){var l={type:t.type,frag:e,part:r,chunkMeta:n,parent:e.type,data:u};if(this.hls.trigger(b.BUFFER_APPENDING,l),t.dropped&&t.independent&&!r){if(i)return;this.flushBufferGap(e)}}}},r.flushBufferGap=function(t){var e=this.media;if(e)if(Dr.isBuffered(e,e.currentTime)){var r=e.currentTime,n=Dr.bufferInfo(e,r,0),i=t.duration,a=Math.min(2*this.config.maxFragLookUpTolerance,.25*i),s=Math.max(Math.min(t.start-a,n.end-a),r+a);t.start-s>a&&this.flushMainBuffer(s,t.start)}else this.flushMainBuffer(0,t.start)},r.getFwdBufferInfo=function(t,e){var r=this.getLoadPosition();return m(r)?this.getFwdBufferInfoAtPos(t,r,e):null},r.getFwdBufferInfoAtPos=function(t,e,r){var n=this.config.maxBufferHole,i=Dr.bufferInfo(t,e,n);if(0===i.len&&void 0!==i.nextStart){var a=this.fragmentTracker.getBufferedFrag(e,r);if(a&&i.nextStart<a.end)return Dr.bufferInfo(t,e,Math.max(i.nextStart,n))}return i},r.getMaxBufferLength=function(t){var e,r=this.config;return e=t?Math.max(8*r.maxBufferSize/t,r.maxBufferLength):r.maxBufferLength,Math.min(e,r.maxMaxBufferLength)},r.reduceMaxBufferLength=function(t){var e=this.config,r=t||e.maxBufferLength;return e.maxMaxBufferLength>=r&&(e.maxMaxBufferLength/=2,this.warn("Reduce max buffer length to "+e.maxMaxBufferLength+"s"),!0)},r.getAppendedFrag=function(t,e){var r=this.fragmentTracker.getAppendedFrag(t,Ce);return r&&"fragment"in r?r.fragment:r},r.getNextFragment=function(t,e){var r=e.fragments,n=r.length;if(!n)return null;var i,a=this.config,s=r[0].start;if(e.live){var o=a.initialLiveManifestSize;if(n<o)return this.warn("Not enough fragments to start playback (have: "+n+", need: "+o+")"),null;(!e.PTSKnown&&!this.startFragRequested&&-1===this.startPosition||t<s)&&(i=this.getInitialLiveFragment(e,r),this.startPosition=this.nextLoadPosition=i?this.hls.liveSyncPosition||i.start:t)}else t<=s&&(i=r[0]);if(!i){var u=a.lowLatencyMode?e.partEnd:e.fragmentEnd;i=this.getFragmentAtPosition(t,u,e)}return this.mapToInitFragWhenRequired(i)},r.isLoopLoading=function(t,e){var r=this.fragmentTracker.getState(t);return(r===Sr||r===Tr&&!!t.gap)&&this.nextLoadPosition>e},r.getNextFragmentLoopLoading=function(t,e,r,n,i){var a=t.gap,s=this.getNextFragment(this.nextLoadPosition,e);if(null===s)return s;if(t=s,a&&t&&!t.gap&&r.nextStart){var o=this.getFwdBufferInfoAtPos(this.mediaBuffer?this.mediaBuffer:this.media,r.nextStart,n);if(null!==o&&r.len+o.len>=i)return this.log('buffer full after gaps in "'+n+'" playlist starting at sn: '+t.sn),null}return t},r.mapToInitFragWhenRequired=function(t){return null==t||!t.initSegment||null!=t&&t.initSegment.data||this.bitrateTest?t:t.initSegment},r.getNextPart=function(t,e,r){for(var n=-1,i=!1,a=!0,s=0,o=t.length;s<o;s++){var u=t[s];if(a=a&&!u.independent,n>-1&&r<u.start)break;var l=u.loaded;l?n=-1:(i||u.independent||a)&&u.fragment===e&&(n=s),i=l}return n},r.loadedEndOfParts=function(t,e){var r=t[t.length-1];return r&&e>r.start&&r.loaded},r.getInitialLiveFragment=function(t,e){var r=this.fragPrevious,n=null;if(r){if(t.hasProgramDateTime&&(this.log("Live playlist, switching playlist, load frag with same PDT: "+r.programDateTime),n=function(t,e,r){if(null===e||!Array.isArray(t)||!t.length||!m(e))return null;if(e<(t[0].programDateTime||0))return null;if(e>=(t[t.length-1].endProgramDateTime||0))return null;r=r||0;for(var n=0;n<t.length;++n){var i=t[n];if(cr(e,r,i))return i}return null}(e,r.endProgramDateTime,this.config.maxFragLookUpTolerance)),!n){var i=r.sn+1;if(i>=t.startSN&&i<=t.endSN){var a=e[i-t.startSN];r.cc===a.cc&&(n=a,this.log("Live playlist, switching playlist, load frag with next SN: "+n.sn))}n||(n=function(t,e){return or(t,(function(t){return t.cc<e?1:t.cc>e?-1:0}))}(e,r.cc),n&&this.log("Live playlist, switching playlist, load frag with same CC: "+n.sn))}}else{var s=this.hls.liveSyncPosition;null!==s&&(n=this.getFragmentAtPosition(s,this.bitrateTest?t.fragmentEnd:t.edge,t))}return n},r.getFragmentAtPosition=function(t,e,r){var n,i=this.config,a=this.fragPrevious,s=r.fragments,o=r.endSN,u=r.fragmentHint,l=i.maxFragLookUpTolerance,c=r.partList,A=!!(i.lowLatencyMode&&null!=c&&c.length&&u);if(A&&u&&!this.bitrateTest&&(s=s.concat(u),o=u.sn),n=t<e?ur(a,s,t,t>e-l?0:l):s[s.length-1]){var d=n.sn-r.startSN,f=this.fragmentTracker.getState(n);if((f===Sr||f===Tr&&n.gap)&&(a=n),a&&n.sn===a.sn&&(!A||c[0].fragment.sn>n.sn)&&a&&n.level===a.level){var h=s[d+1];n=n.sn<o&&this.fragmentTracker.getState(h)!==Sr?h:null}}return n},r.synchronizeToLiveEdge=function(t){var e=this.config,r=this.media;if(r){var n=this.hls.liveSyncPosition,i=r.currentTime,a=t.fragments[0].start,s=t.edge,o=i>=a-e.maxFragLookUpTolerance&&i<=s;if(null!==n&&r.duration>n&&(i<n||!o)){var u=void 0!==e.liveMaxLatencyDuration?e.liveMaxLatencyDuration:e.liveMaxLatencyDurationCount*t.targetduration;(!o&&r.readyState<4||i<s-u)&&(this.loadedmetadata||(this.nextLoadPosition=n),r.readyState&&(this.warn("Playback: "+i.toFixed(3)+" is located too far from the end of live sliding playlist: "+s+", reset currentTime to : "+n.toFixed(3)),r.currentTime=n))}}},r.alignPlaylists=function(t,e,r){var n=t.fragments.length;if(!n)return this.warn("No fragments in live playlist"),0;var i=t.fragments[0].start,a=!e,s=t.alignedSliding&&m(i);if(a||!s&&!i){var o=this.fragPrevious;(function(t,e,r){e&&(function(t,e,r){if(function(t,e,r){return!(!e||!(r.endCC>r.startCC||t&&t.cc<r.startCC))}(t,r,e)){var n=function(t,e){var r=t.fragments,n=e.fragments;if(n.length&&r.length){var i=Ur(r,n[0].cc);if(i&&(!i||i.startPTS))return i;S.log("No frag in previous level to align on")}else S.log("No fragments to align")}(r,e);n&&m(n.start)&&(S.log("Adjusting PTS using last level due to CC increase within current level "+e.url),Pr(n.start,e))}}(t,r,e),!r.alignedSliding&&e&&Mr(r,e),r.alignedSliding||!e||r.skippedSegments||Xe(e,r))})(o,r,t);var u=t.fragments[0].start;return this.log("Live playlist sliding: "+u.toFixed(2)+" start-sn: "+(e?e.startSN:"na")+"->"+t.startSN+" prev-sn: "+(o?o.sn:"na")+" fragments: "+n),u}return i},r.waitForCdnTuneIn=function(t){return t.live&&t.canBlockReload&&t.partTarget&&t.tuneInGoal>Math.max(t.partHoldBack,3*t.partTarget)},r.setStartPosition=function(t,e){var r=this.startPosition;if(r<e&&(r=-1),-1===r||-1===this.lastCurrentTime){var n=null!==this.startTimeOffset,i=n?this.startTimeOffset:t.startTimeOffset;null!==i&&m(i)?(r=e+i,i<0&&(r+=t.totalduration),r=Math.min(Math.max(e,r),e+t.totalduration),this.log("Start time offset "+i+" found in "+(n?"multivariant":"media")+" playlist, adjust startPosition to "+r),this.startPosition=r):t.live?r=this.hls.liveSyncPosition||e:this.startPosition=r=0,this.lastCurrentTime=r}this.nextLoadPosition=r},r.getLoadPosition=function(){var t=this.media,e=0;return this.loadedmetadata&&t?e=t.currentTime:this.nextLoadPosition&&(e=this.nextLoadPosition),e},r.handleFragLoadAborted=function(t,e){this.transmuxer&&"initSegment"!==t.sn&&t.stats.aborted&&(this.warn("Fragment "+t.sn+(e?" part "+e.index:"")+" of level "+t.level+" was aborted"),this.resetFragmentLoading(t))},r.resetFragmentLoading=function(t){this.fragCurrent&&(this.fragContextChanged(t)||this.state===Jr)||(this.state=Yr)},r.onFragmentOrKeyLoadError=function(t,e){if(e.chunkMeta&&!e.frag){var r=this.getCurrentContext(e.chunkMeta);r&&(e.frag=r.frag)}var n=e.frag;if(n&&n.type===t&&this.levels)if(this.fragContextChanged(n)){var i;this.warn("Frag load error must match current frag to retry "+n.url+" > "+(null==(i=this.fragCurrent)?void 0:i.url))}else{var a=e.details===B.FRAG_GAP;a&&this.fragmentTracker.fragBuffered(n,!0);var s=e.errorAction,o=s||{},u=o.action,l=o.retryCount,c=void 0===l?0:l,A=o.retryConfig;if(s&&5===u&&A){this.resetStartWhenNotLoaded(this.levelLastLoaded);var d=ir(A,c);this.warn("Fragment "+n.sn+" of "+t+" "+n.level+" errored with "+e.details+", retrying loading "+(c+1)+"/"+A.maxNumRetry+" in "+d+"ms"),s.resolved=!0,this.retryDate=self.performance.now()+d,this.state=Jr}else if(A&&s){if(this.resetFragmentErrors(t),!(c<A.maxNumRetry))return void S.warn(e.details+" reached or exceeded max retry ("+c+")");a||3===u||(s.resolved=!0)}else 2===(null==s?void 0:s.action)?this.state=sn:this.state=nn;this.tickImmediate()}},r.reduceLengthAndFlushBuffer=function(t){if(this.state===tn||this.state===en){var e=t.parent,r=this.getFwdBufferInfo(this.mediaBuffer,e),n=r&&r.len>.5;n&&this.reduceMaxBufferLength(r.len);var i=!n;return i&&this.warn("Buffer full error while media.currentTime is not buffered, flush "+e+" buffer"),t.frag&&(this.fragmentTracker.removeFragment(t.frag),this.nextLoadPosition=t.frag.start),this.resetLoadingState(),i}return!1},r.resetFragmentErrors=function(t){t===Ee&&(this.fragCurrent=null),this.loadedmetadata||(this.startFragRequested=!1),this.state!==zr&&(this.state=Yr)},r.afterBufferFlushed=function(t,e,r){if(t){var n=Dr.getBuffered(t);this.fragmentTracker.detectEvictedFragments(e,n,r),this.state===rn&&this.resetLoadingState()}},r.resetLoadingState=function(){this.log("Reset loading state"),this.fragCurrent=null,this.fragPrevious=null,this.state=Yr},r.resetStartWhenNotLoaded=function(t){if(!this.loadedmetadata){this.startFragRequested=!1;var e=t?t.details:null;null!=e&&e.live?(this.startPosition=-1,this.setStartPosition(e,0),this.resetLoadingState()):this.nextLoadPosition=this.startPosition}},r.resetWhenMissingContext=function(t){this.warn("The loading context changed while buffering fragment "+t.sn+" of level "+t.level+". This chunk will not be buffered."),this.removeUnbufferedFrags(),this.resetStartWhenNotLoaded(this.levelLastLoaded),this.resetLoadingState()},r.removeUnbufferedFrags=function(t){void 0===t&&(t=0),this.fragmentTracker.removeFragmentsInRange(t,1/0,this.playlistType,!1,!0)},r.updateLevelTiming=function(t,e,r,n){var i,a=this,s=r.details;if(s){if(!Object.keys(t.elementaryStreams).reduce((function(e,i){var o=t.elementaryStreams[i];if(o){var u=o.endPTS-o.startPTS;if(u<=0)return a.warn("Could not parse fragment "+t.sn+" "+i+" duration reliably ("+u+")"),e||!1;var l=n?0:Ye(s,t,o.startPTS,o.endPTS,o.startDTS,o.endDTS);return a.hls.trigger(b.LEVEL_PTS_UPDATED,{details:s,level:r,drift:l,type:i,frag:t,start:o.startPTS,end:o.endPTS}),!0}return e}),!1)&&null===(null==(i=this.transmuxer)?void 0:i.error)){var o=new Error("Found no media in fragment "+t.sn+" of level "+t.level+" resetting transmuxer to fallback to playlist timing");if(0===r.fragmentError&&(r.fragmentError++,t.gap=!0,this.fragmentTracker.removeFragment(t),this.fragmentTracker.fragBuffered(t,!0)),this.warn(o.message),this.hls.trigger(b.ERROR,{type:_.MEDIA_ERROR,details:B.FRAG_PARSING_ERROR,fatal:!1,error:o,frag:t,reason:"Found no media in msn "+t.sn+' of level "'+r.url+'"'}),!this.hls)return;this.resetTransmuxer()}this.state=en,this.hls.trigger(b.FRAG_PARSED,{frag:t,part:e})}else this.warn("level.details undefined")},r.resetTransmuxer=function(){this.transmuxer&&(this.transmuxer.destroy(),this.transmuxer=null)},r.recoverWorkerError=function(t){"demuxerWorker"===t.event&&(this.fragmentTracker.removeAllFragments(),this.resetTransmuxer(),this.resetStartWhenNotLoaded(this.levelLastLoaded),this.resetLoadingState())},a(e,[{key:"state",get:function(){return this._state},set:function(t){var e=this._state;e!==t&&(this._state=t,this.log(e+"->"+t))}}]),e}(Cr),un=function(){function t(){this.chunks=[],this.dataLength=0}var e=t.prototype;return e.push=function(t){this.chunks.push(t),this.dataLength+=t.length},e.flush=function(){var t,e=this.chunks,r=this.dataLength;return e.length?(t=1===e.length?e[0]:function(t,e){for(var r=new Uint8Array(e),n=0,i=0;i<t.length;i++){var a=t[i];r.set(a,n),n+=a.length}return r}(e,r),this.reset(),t):new Uint8Array(0)},e.reset=function(){this.chunks.length=0,this.dataLength=0},t}();function ln(t,e){return void 0===t&&(t=""),void 0===e&&(e=9e4),{type:t,id:-1,pid:-1,inputTimeScale:e,sequenceNumber:-1,samples:[],dropped:0}}var cn=function(){function t(){this._audioTrack=void 0,this._id3Track=void 0,this.frameIndex=0,this.cachedData=null,this.basePTS=null,this.initPTS=null,this.lastPTS=null}var e=t.prototype;return e.resetInitSegment=function(t,e,r,n){this._id3Track={type:"id3",id:3,pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0}},e.resetTimeStamp=function(t){this.initPTS=t,this.resetContiguity()},e.resetContiguity=function(){this.basePTS=null,this.lastPTS=null,this.frameIndex=0},e.canParse=function(t,e){return!1},e.appendFrame=function(t,e,r){},e.demux=function(t,e){this.cachedData&&(t=Pt(this.cachedData,t),this.cachedData=null);var r,n=st(t,0),i=n?n.length:0,a=this._audioTrack,s=this._id3Track,o=n?lt(n):void 0,u=t.length;for((null===this.basePTS||0===this.frameIndex&&m(o))&&(this.basePTS=An(o,e,this.initPTS),this.lastPTS=this.basePTS),null===this.lastPTS&&(this.lastPTS=this.basePTS),n&&n.length>0&&s.samples.push({pts:this.lastPTS,dts:this.lastPTS,data:n,type:Ue,duration:Number.POSITIVE_INFINITY});i<u;){if(this.canParse(t,i)){var l=this.appendFrame(a,t,i);l?(this.frameIndex++,this.lastPTS=l.sample.pts,r=i+=l.length):i=u}else ut(t,i)?(n=st(t,i),s.samples.push({pts:this.lastPTS,dts:this.lastPTS,data:n,type:Ue,duration:Number.POSITIVE_INFINITY}),r=i+=n.length):i++;if(i===u&&r!==u){var c=rt(t,r);this.cachedData?this.cachedData=Pt(this.cachedData,c):this.cachedData=c}}return{audioTrack:a,videoTrack:ln(),id3Track:s,textTrack:ln()}},e.demuxSampleAes=function(t,e,r){return Promise.reject(new Error("["+this+"] This demuxer does not support Sample-AES decryption"))},e.flush=function(t){var e=this.cachedData;return e&&(this.cachedData=null,this.demux(e,0)),{audioTrack:this._audioTrack,videoTrack:ln(),id3Track:this._id3Track,textTrack:ln()}},e.destroy=function(){},t}(),An=function(t,e,r){return m(t)?90*t:9e4*e+(r?9e4*r.baseTime/r.timescale:0)};function dn(t,e){return 255===t[e]&&240==(246&t[e+1])}function fn(t,e){return 1&t[e+1]?7:9}function hn(t,e){return(3&t[e+3])<<11|t[e+4]<<3|(224&t[e+5])>>>5}function pn(t,e){return e+1<t.length&&dn(t,e)}function gn(t,e){if(pn(t,e)){var r=fn(t,e);if(e+r>=t.length)return!1;var n=hn(t,e);if(n<=r)return!1;var i=e+n;return i===t.length||pn(t,i)}return!1}function vn(t,e,r,n,i){if(!t.samplerate){var a=function(t,e,r,n){var i,a,s,o,u=navigator.userAgent.toLowerCase(),l=n,c=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];i=1+((192&e[r+2])>>>6);var A=(60&e[r+2])>>>2;if(!(A>c.length-1))return s=(1&e[r+2])<<2,s|=(192&e[r+3])>>>6,S.log("manifest codec:"+n+", ADTS type:"+i+", samplingIndex:"+A),/firefox/i.test(u)?A>=6?(i=5,o=new Array(4),a=A-3):(i=2,o=new Array(2),a=A):-1!==u.indexOf("android")?(i=2,o=new Array(2),a=A):(i=5,o=new Array(4),n&&(-1!==n.indexOf("mp4a.40.29")||-1!==n.indexOf("mp4a.40.5"))||!n&&A>=6?a=A-3:((n&&-1!==n.indexOf("mp4a.40.2")&&(A>=6&&1===s||/vivaldi/i.test(u))||!n&&1===s)&&(i=2,o=new Array(2)),a=A)),o[0]=i<<3,o[0]|=(14&A)>>1,o[1]|=(1&A)<<7,o[1]|=s<<3,5===i&&(o[1]|=(14&a)>>1,o[2]=(1&a)<<7,o[2]|=8,o[3]=0),{config:o,samplerate:c[A],channelCount:s,codec:"mp4a.40."+i,manifestCodec:l};var d=new Error("invalid ADTS sampling index:"+A);t.emit(b.ERROR,b.ERROR,{type:_.MEDIA_ERROR,details:B.FRAG_PARSING_ERROR,fatal:!0,error:d,reason:d.message})}(e,r,n,i);if(!a)return;t.config=a.config,t.samplerate=a.samplerate,t.channelCount=a.channelCount,t.codec=a.codec,t.manifestCodec=a.manifestCodec,S.log("parsed codec:"+t.codec+", rate:"+a.samplerate+", channels:"+a.channelCount)}}function mn(t){return 9216e4/t}function yn(t,e,r,n,i){var a,s=n+i*mn(t.samplerate),o=function(t,e){var r=fn(t,e);if(e+r<=t.length){var n=hn(t,e)-r;if(n>0)return{headerLength:r,frameLength:n}}}(e,r);if(o){var u=o.frameLength,l=o.headerLength,c=l+u,A=Math.max(0,r+c-e.length);A?(a=new Uint8Array(c-l)).set(e.subarray(r+l,e.length),0):a=e.subarray(r+l,r+c);var d={unit:a,pts:s};return A||t.samples.push(d),{sample:d,length:c,missing:A}}var f=e.length-r;return(a=new Uint8Array(f)).set(e.subarray(r,e.length),0),{sample:{unit:a,pts:s},length:f,missing:-1}}var wn=null,bn=[32,64,96,128,160,192,224,256,288,320,352,384,416,448,32,48,56,64,80,96,112,128,160,192,224,256,320,384,32,40,48,56,64,80,96,112,128,160,192,224,256,320,32,48,56,64,80,96,112,128,144,160,176,192,224,256,8,16,24,32,40,48,56,64,80,96,112,128,144,160],_n=[44100,48e3,32e3,22050,24e3,16e3,11025,12e3,8e3],Bn=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],Cn=[0,1,1,4];function En(t,e,r,n,i){if(!(r+24>e.length)){var a=xn(e,r);if(a&&r+a.frameLength<=e.length){var s=n+i*(9e4*a.samplesPerFrame/a.sampleRate),o={unit:e.subarray(r,r+a.frameLength),pts:s,dts:s};return t.config=[],t.channelCount=a.channelCount,t.samplerate=a.sampleRate,t.samples.push(o),{sample:o,length:a.frameLength,missing:0}}}}function xn(t,e){var r=t[e+1]>>3&3,n=t[e+1]>>1&3,i=t[e+2]>>4&15,a=t[e+2]>>2&3;if(1!==r&&0!==i&&15!==i&&3!==a){var s=t[e+2]>>1&1,o=t[e+3]>>6,u=1e3*bn[14*(3===r?3-n:3===n?3:4)+i-1],l=_n[3*(3===r?0:2===r?1:2)+a],c=3===o?1:2,A=Bn[r][n],d=Cn[n],f=8*A*d,h=Math.floor(A*u/l+s)*d;if(null===wn){var p=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);wn=p?parseInt(p[1]):0}return!!wn&&wn<=87&&2===n&&u>=224e3&&0===o&&(t[e+3]=128|t[e+3]),{sampleRate:l,channelCount:c,frameLength:h,samplesPerFrame:f}}}function Tn(t,e){return 255===t[e]&&224==(224&t[e+1])&&0!=(6&t[e+1])}function Sn(t,e){return e+1<t.length&&Tn(t,e)}function kn(t,e){if(e+1<t.length&&Tn(t,e)){var r=xn(t,e),n=4;null!=r&&r.frameLength&&(n=r.frameLength);var i=e+n;return i===t.length||Sn(t,i)}return!1}var In=function(t){function e(e,r){var n;return(n=t.call(this)||this).observer=void 0,n.config=void 0,n.observer=e,n.config=r,n}c(e,t);var r=e.prototype;return r.resetInitSegment=function(e,r,n,i){t.prototype.resetInitSegment.call(this,e,r,n,i),this._audioTrack={container:"audio/adts",type:"audio",id:2,pid:-1,sequenceNumber:0,segmentCodec:"aac",samples:[],manifestCodec:r,duration:i,inputTimeScale:9e4,dropped:0}},e.probe=function(t){if(!t)return!1;var e=st(t,0),r=(null==e?void 0:e.length)||0;if(kn(t,r))return!1;for(var n=t.length;r<n;r++)if(gn(t,r))return S.log("ADTS sync word found !"),!0;return!1},r.canParse=function(t,e){return function(t,e){return function(t,e){return e+5<t.length}(t,e)&&dn(t,e)&&hn(t,e)<=t.length-e}(t,e)},r.appendFrame=function(t,e,r){vn(t,this.observer,e,r,t.manifestCodec);var n=yn(t,e,r,this.basePTS,this.frameIndex);if(n&&0===n.missing)return n},e}(cn),Fn=/\/emsg[-/]ID3/i,Ln=function(){function t(t,e){this.remainderData=null,this.timeOffset=0,this.config=void 0,this.videoTrack=void 0,this.audioTrack=void 0,this.id3Track=void 0,this.txtTrack=void 0,this.config=e}var e=t.prototype;return e.resetTimeStamp=function(){},e.resetInitSegment=function(t,e,r,n){var i=this.videoTrack=ln("video",1),a=this.audioTrack=ln("audio",1),s=this.txtTrack=ln("text",1);if(this.id3Track=ln("id3",1),this.timeOffset=0,null!=t&&t.byteLength){var o=It(t);if(o.video){var u=o.video,l=u.id,c=u.timescale,A=u.codec;i.id=l,i.timescale=s.timescale=c,i.codec=A}if(o.audio){var d=o.audio,f=d.id,h=d.timescale,p=d.codec;a.id=f,a.timescale=h,a.codec=p}s.id=_t.text,i.sampleDuration=0,i.duration=a.duration=n}},e.resetContiguity=function(){this.remainderData=null},t.probe=function(t){return function(t){for(var e=t.byteLength,r=0;r<e;){var n=Et(t,r);if(n>8&&109===t[r+4]&&111===t[r+5]&&111===t[r+6]&&102===t[r+7])return!0;r=n>1?r+n:e}return!1}(t)},e.demux=function(t,e){this.timeOffset=e;var r=t,n=this.videoTrack,i=this.txtTrack;if(this.config.progressive){this.remainderData&&(r=Pt(this.remainderData,t));var a=function(t){var e={valid:null,remainder:null},r=St(t,["moof"]);if(r.length<2)return e.remainder=t,e;var n=r[r.length-1];return e.valid=rt(t,0,n.byteOffset-8),e.remainder=rt(t,n.byteOffset-8),e}(r);this.remainderData=a.remainder,n.samples=a.valid||new Uint8Array}else n.samples=r;var s=this.extractID3Track(n,e);return i.samples=Mt(e,n),{videoTrack:n,audioTrack:this.audioTrack,id3Track:s,textTrack:this.txtTrack}},e.flush=function(){var t=this.timeOffset,e=this.videoTrack,r=this.txtTrack;e.samples=this.remainderData||new Uint8Array,this.remainderData=null;var n=this.extractID3Track(e,this.timeOffset);return r.samples=Mt(t,e),{videoTrack:e,audioTrack:ln(),id3Track:n,textTrack:ln()}},e.extractID3Track=function(t,e){var r=this.id3Track;if(t.samples.length){var n=St(t.samples,["emsg"]);n&&n.forEach((function(t){var n=function(t){var e=t[0],r="",n="",i=0,a=0,s=0,o=0,u=0,l=0;if(0===e){for(;"\0"!==Bt(t.subarray(l,l+1));)r+=Bt(t.subarray(l,l+1)),l+=1;for(r+=Bt(t.subarray(l,l+1)),l+=1;"\0"!==Bt(t.subarray(l,l+1));)n+=Bt(t.subarray(l,l+1)),l+=1;n+=Bt(t.subarray(l,l+1)),l+=1,i=Et(t,12),a=Et(t,16),o=Et(t,20),u=Et(t,24),l=28}else if(1===e){i=Et(t,l+=4);var c=Et(t,l+=4),A=Et(t,l+=4);for(l+=4,s=Math.pow(2,32)*c+A,y(s)||(s=Number.MAX_SAFE_INTEGER,S.warn("Presentation time exceeds safe integer limit and wrapped to max safe integer in parsing emsg box")),o=Et(t,l),u=Et(t,l+=4),l+=4;"\0"!==Bt(t.subarray(l,l+1));)r+=Bt(t.subarray(l,l+1)),l+=1;for(r+=Bt(t.subarray(l,l+1)),l+=1;"\0"!==Bt(t.subarray(l,l+1));)n+=Bt(t.subarray(l,l+1)),l+=1;n+=Bt(t.subarray(l,l+1)),l+=1}return{schemeIdUri:r,value:n,timeScale:i,presentationTime:s,presentationTimeDelta:a,eventDuration:o,id:u,payload:t.subarray(l,t.byteLength)}}(t);if(Fn.test(n.schemeIdUri)){var i=m(n.presentationTime)?n.presentationTime/n.timeScale:e+n.presentationTimeDelta/n.timeScale,a=4294967295===n.eventDuration?Number.POSITIVE_INFINITY:n.eventDuration/n.timeScale;a<=.001&&(a=Number.POSITIVE_INFINITY);var s=n.payload;r.samples.push({data:s,len:s.byteLength,dts:i,pts:i,type:Oe,duration:a})}}))}return r},e.demuxSampleAes=function(t,e,r){return Promise.reject(new Error("The MP4 demuxer does not support SAMPLE-AES decryption"))},e.destroy=function(){},t}(),Dn=function(t,e){var r=0,n=5;e+=n;for(var i=new Uint32Array(1),a=new Uint32Array(1),s=new Uint8Array(1);n>0;){s[0]=t[e];var o=Math.min(n,8),u=8-o;a[0]=4278190080>>>24+u<<u,i[0]=(s[0]&a[0])>>u,r=r?r<<o|i[0]:i[0],e+=1,n-=o}return r},Rn=function(t){function e(e){var r;return(r=t.call(this)||this).observer=void 0,r.observer=e,r}c(e,t);var r=e.prototype;return r.resetInitSegment=function(e,r,n,i){t.prototype.resetInitSegment.call(this,e,r,n,i),this._audioTrack={container:"audio/ac-3",type:"audio",id:2,pid:-1,sequenceNumber:0,segmentCodec:"ac3",samples:[],manifestCodec:r,duration:i,inputTimeScale:9e4,dropped:0}},r.canParse=function(t,e){return e+64<t.length},r.appendFrame=function(t,e,r){var n=Un(t,e,r,this.basePTS,this.frameIndex);if(-1!==n)return{sample:t.samples[t.samples.length-1],length:n,missing:0}},e.probe=function(t){if(!t)return!1;var e=st(t,0);if(!e)return!1;var r=e.length;return 11===t[r]&&119===t[r+1]&&void 0!==lt(e)&&Dn(t,r)<16},e}(cn);function Un(t,e,r,n,i){if(r+8>e.length)return-1;if(11!==e[r]||119!==e[r+1])return-1;var a=e[r+4]>>6;if(a>=3)return-1;var s=[48e3,44100,32e3][a],o=63&e[r+4],u=2*[64,69,96,64,70,96,80,87,120,80,88,120,96,104,144,96,105,144,112,121,168,112,122,168,128,139,192,128,140,192,160,174,240,160,175,240,192,208,288,192,209,288,224,243,336,224,244,336,256,278,384,256,279,384,320,348,480,320,349,480,384,417,576,384,418,576,448,487,672,448,488,672,512,557,768,512,558,768,640,696,960,640,697,960,768,835,1152,768,836,1152,896,975,1344,896,976,1344,1024,1114,1536,1024,1115,1536,1152,1253,1728,1152,1254,1728,1280,1393,1920,1280,1394,1920][3*o+a];if(r+u>e.length)return-1;var l=e[r+6]>>5,c=0;2===l?c+=2:(1&l&&1!==l&&(c+=2),4&l&&(c+=2));var A=(e[r+6]<<8|e[r+7])>>12-c&1,d=[2,1,2,3,3,4,4,5][l]+A,f=e[r+5]>>3,h=7&e[r+5],p=new Uint8Array([a<<6|f<<1|h>>2,(3&h)<<6|l<<3|A<<2|o>>4,o<<4&224]),g=n+i*(1536/s*9e4),v=e.subarray(r,r+u);return t.config=p,t.channelCount=d,t.samplerate=s,t.samples.push({unit:v,pts:g}),u}var On=function(){function t(){this.VideoSample=null}var e=t.prototype;return e.createVideoSample=function(t,e,r,n){return{key:t,frame:!1,pts:e,dts:r,units:[],debug:n,length:0}},e.getLastNalUnit=function(t){var e,r,n=this.VideoSample;if(n&&0!==n.units.length||(n=t[t.length-1]),null!=(e=n)&&e.units){var i=n.units;r=i[i.length-1]}return r},e.pushAccessUnit=function(t,e){if(t.units.length&&t.frame){if(void 0===t.pts){var r=e.samples,n=r.length;if(!n)return void e.dropped++;var i=r[n-1];t.pts=i.pts,t.dts=i.dts}e.samples.push(t)}t.debug.length&&S.log(t.pts+"/"+t.dts+":"+t.debug)},t}(),Pn=function(){function t(t){this.data=void 0,this.bytesAvailable=void 0,this.word=void 0,this.bitsAvailable=void 0,this.data=t,this.bytesAvailable=t.byteLength,this.word=0,this.bitsAvailable=0}var e=t.prototype;return e.loadWord=function(){var t=this.data,e=this.bytesAvailable,r=t.byteLength-e,n=new Uint8Array(4),i=Math.min(4,e);if(0===i)throw new Error("no bytes available");n.set(t.subarray(r,r+i)),this.word=new DataView(n.buffer).getUint32(0),this.bitsAvailable=8*i,this.bytesAvailable-=i},e.skipBits=function(t){var e;t=Math.min(t,8*this.bytesAvailable+this.bitsAvailable),this.bitsAvailable>t?(this.word<<=t,this.bitsAvailable-=t):(t-=this.bitsAvailable,t-=(e=t>>3)<<3,this.bytesAvailable-=e,this.loadWord(),this.word<<=t,this.bitsAvailable-=t)},e.readBits=function(t){var e=Math.min(this.bitsAvailable,t),r=this.word>>>32-e;if(t>32&&S.error("Cannot read more than 32 bits at a time"),this.bitsAvailable-=e,this.bitsAvailable>0)this.word<<=e;else{if(!(this.bytesAvailable>0))throw new Error("no bits available");this.loadWord()}return(e=t-e)>0&&this.bitsAvailable?r<<e|this.readBits(e):r},e.skipLZ=function(){var t;for(t=0;t<this.bitsAvailable;++t)if(0!=(this.word&2147483648>>>t))return this.word<<=t,this.bitsAvailable-=t,t;return this.loadWord(),t+this.skipLZ()},e.skipUEG=function(){this.skipBits(1+this.skipLZ())},e.skipEG=function(){this.skipBits(1+this.skipLZ())},e.readUEG=function(){var t=this.skipLZ();return this.readBits(t+1)-1},e.readEG=function(){var t=this.readUEG();return 1&t?1+t>>>1:-1*(t>>>1)},e.readBoolean=function(){return 1===this.readBits(1)},e.readUByte=function(){return this.readBits(8)},e.readUShort=function(){return this.readBits(16)},e.readUInt=function(){return this.readBits(32)},e.skipScalingList=function(t){for(var e=8,r=8,n=0;n<t;n++)0!==r&&(r=(e+this.readEG()+256)%256),e=0===r?e:r},e.readSPS=function(){var t,e,r,n=0,i=0,a=0,s=0,o=this.readUByte.bind(this),u=this.readBits.bind(this),l=this.readUEG.bind(this),c=this.readBoolean.bind(this),A=this.skipBits.bind(this),d=this.skipEG.bind(this),f=this.skipUEG.bind(this),h=this.skipScalingList.bind(this);o();var p=o();if(u(5),A(3),o(),f(),100===p||110===p||122===p||244===p||44===p||83===p||86===p||118===p||128===p){var g=l();if(3===g&&A(1),f(),f(),A(1),c())for(e=3!==g?8:12,r=0;r<e;r++)c()&&h(r<6?16:64)}f();var v=l();if(0===v)l();else if(1===v)for(A(1),d(),d(),t=l(),r=0;r<t;r++)d();f(),A(1);var m=l(),y=l(),w=u(1);0===w&&A(1),A(1),c()&&(n=l(),i=l(),a=l(),s=l());var b=[1,1];if(c()&&c())switch(o()){case 1:b=[1,1];break;case 2:b=[12,11];break;case 3:b=[10,11];break;case 4:b=[16,11];break;case 5:b=[40,33];break;case 6:b=[24,11];break;case 7:b=[20,11];break;case 8:b=[32,11];break;case 9:b=[80,33];break;case 10:b=[18,11];break;case 11:b=[15,11];break;case 12:b=[64,33];break;case 13:b=[160,99];break;case 14:b=[4,3];break;case 15:b=[3,2];break;case 16:b=[2,1];break;case 255:b=[o()<<8|o(),o()<<8|o()]}return{width:Math.ceil(16*(m+1)-2*n-2*i),height:(2-w)*(y+1)*16-(w?2:4)*(a+s),pixelRatio:b}},e.readSliceType=function(){return this.readUByte(),this.readUEG(),this.readUEG()},t}(),Mn=function(t){function e(){return t.apply(this,arguments)||this}c(e,t);var r=e.prototype;return r.parseAVCPES=function(t,e,r,n,i){var a,s=this,o=this.parseAVCNALu(t,r.data),u=this.VideoSample,l=!1;r.data=null,u&&o.length&&!t.audFound&&(this.pushAccessUnit(u,t),u=this.VideoSample=this.createVideoSample(!1,r.pts,r.dts,"")),o.forEach((function(n){var o;switch(n.type){case 1:var c=!1;a=!0;var A,d=n.data;if(l&&d.length>4){var f=new Pn(d).readSliceType();2!==f&&4!==f&&7!==f&&9!==f||(c=!0)}c&&null!=(A=u)&&A.frame&&!u.key&&(s.pushAccessUnit(u,t),u=s.VideoSample=null),u||(u=s.VideoSample=s.createVideoSample(!0,r.pts,r.dts,"")),u.frame=!0,u.key=c;break;case 5:a=!0,null!=(o=u)&&o.frame&&!u.key&&(s.pushAccessUnit(u,t),u=s.VideoSample=null),u||(u=s.VideoSample=s.createVideoSample(!0,r.pts,r.dts,"")),u.key=!0,u.frame=!0;break;case 6:a=!0,Nt(n.data,1,r.pts,e.samples);break;case 7:var h,p;a=!0,l=!0;var g=n.data,v=new Pn(g).readSPS();if(!t.sps||t.width!==v.width||t.height!==v.height||(null==(h=t.pixelRatio)?void 0:h[0])!==v.pixelRatio[0]||(null==(p=t.pixelRatio)?void 0:p[1])!==v.pixelRatio[1]){t.width=v.width,t.height=v.height,t.pixelRatio=v.pixelRatio,t.sps=[g],t.duration=i;for(var m=g.subarray(1,4),y="avc1.",w=0;w<3;w++){var b=m[w].toString(16);b.length<2&&(b="0"+b),y+=b}t.codec=y}break;case 8:a=!0,t.pps=[n.data];break;case 9:a=!0,t.audFound=!0,u&&s.pushAccessUnit(u,t),u=s.VideoSample=s.createVideoSample(!1,r.pts,r.dts,"");break;case 12:a=!0;break;default:a=!1,u&&(u.debug+="unknown NAL "+n.type+" ")}u&&a&&u.units.push(n)})),n&&u&&(this.pushAccessUnit(u,t),this.VideoSample=null)},r.parseAVCNALu=function(t,e){var r,n,i=e.byteLength,a=t.naluState||0,s=a,o=[],u=0,l=-1,c=0;for(-1===a&&(l=0,c=31&e[0],a=0,u=1);u<i;)if(r=e[u++],a)if(1!==a)if(r)if(1===r){if(n=u-a-1,l>=0){var A={data:e.subarray(l,n),type:c};o.push(A)}else{var d=this.getLastNalUnit(t.samples);d&&(s&&u<=4-s&&d.state&&(d.data=d.data.subarray(0,d.data.byteLength-s)),n>0&&(d.data=Pt(d.data,e.subarray(0,n)),d.state=0))}u<i?(l=u,c=31&e[u],a=0):a=-1}else a=0;else a=3;else a=r?0:2;else a=r?0:1;if(l>=0&&a>=0){var f={data:e.subarray(l,i),type:c,state:a};o.push(f)}if(0===o.length){var h=this.getLastNalUnit(t.samples);h&&(h.data=Pt(h.data,e))}return t.naluState=a,o},e}(On),Qn=function(){function t(t,e,r){this.keyData=void 0,this.decrypter=void 0,this.keyData=r,this.decrypter=new Wr(e,{removePKCS7Padding:!1})}var e=t.prototype;return e.decryptBuffer=function(t){return this.decrypter.decrypt(t,this.keyData.key.buffer,this.keyData.iv.buffer)},e.decryptAacSample=function(t,e,r){var n=this,i=t[e].unit;if(!(i.length<=16)){var a=i.subarray(16,i.length-i.length%16),s=a.buffer.slice(a.byteOffset,a.byteOffset+a.length);this.decryptBuffer(s).then((function(a){var s=new Uint8Array(a);i.set(s,16),n.decrypter.isSync()||n.decryptAacSamples(t,e+1,r)}))}},e.decryptAacSamples=function(t,e,r){for(;;e++){if(e>=t.length)return void r();if(!(t[e].unit.length<32||(this.decryptAacSample(t,e,r),this.decrypter.isSync())))return}},e.getAvcEncryptedData=function(t){for(var e=16*Math.floor((t.length-48)/160)+16,r=new Int8Array(e),n=0,i=32;i<t.length-16;i+=160,n+=16)r.set(t.subarray(i,i+16),n);return r},e.getAvcDecryptedUnit=function(t,e){for(var r=new Uint8Array(e),n=0,i=32;i<t.length-16;i+=160,n+=16)t.set(r.subarray(n,n+16),i);return t},e.decryptAvcSample=function(t,e,r,n,i){var a=this,s=Ht(i.data),o=this.getAvcEncryptedData(s);this.decryptBuffer(o.buffer).then((function(o){i.data=a.getAvcDecryptedUnit(s,o),a.decrypter.isSync()||a.decryptAvcSamples(t,e,r+1,n)}))},e.decryptAvcSamples=function(t,e,r,n){if(t instanceof Uint8Array)throw new Error("Cannot decrypt samples of type Uint8Array");for(;;e++,r=0){if(e>=t.length)return void n();for(var i=t[e].units;!(r>=i.length);r++){var a=i[r];if(!(a.data.length<=48||1!==a.type&&5!==a.type||(this.decryptAvcSample(t,e,r,n,a),this.decrypter.isSync())))return}}},t}(),Nn=188,Hn=function(){function t(t,e,r){this.observer=void 0,this.config=void 0,this.typeSupported=void 0,this.sampleAes=null,this.pmtParsed=!1,this.audioCodec=void 0,this.videoCodec=void 0,this._duration=0,this._pmtId=-1,this._videoTrack=void 0,this._audioTrack=void 0,this._id3Track=void 0,this._txtTrack=void 0,this.aacOverFlow=null,this.remainderData=null,this.videoParser=void 0,this.observer=t,this.config=e,this.typeSupported=r,this.videoParser=new Mn}t.probe=function(e){var r=t.syncOffset(e);return r>0&&S.warn("MPEG2-TS detected but first sync word found @ offset "+r),-1!==r},t.syncOffset=function(t){for(var e=t.length,r=Math.min(940,e-Nn)+1,n=0;n<r;){for(var i=!1,a=-1,s=0,o=n;o<e;o+=Nn){if(71!==t[o]||e-o!==Nn&&71!==t[o+Nn]){if(s)return-1;break}if(s++,-1===a&&0!==(a=o)&&(r=Math.min(a+18612,t.length-Nn)+1),i||(i=0===$n(t,o)),i&&s>1&&(0===a&&s>2||o+Nn>r))return a}n++}return-1},t.createTrack=function(t,e){return{container:"video"===t||"audio"===t?"video/mp2t":void 0,type:t,id:_t[t],pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0,duration:"audio"===t?e:void 0}};var e=t.prototype;return e.resetInitSegment=function(e,r,n,i){this.pmtParsed=!1,this._pmtId=-1,this._videoTrack=t.createTrack("video"),this._audioTrack=t.createTrack("audio",i),this._id3Track=t.createTrack("id3"),this._txtTrack=t.createTrack("text"),this._audioTrack.segmentCodec="aac",this.aacOverFlow=null,this.remainderData=null,this.audioCodec=r,this.videoCodec=n,this._duration=i},e.resetTimeStamp=function(){},e.resetContiguity=function(){var t=this._audioTrack,e=this._videoTrack,r=this._id3Track;t&&(t.pesData=null),e&&(e.pesData=null),r&&(r.pesData=null),this.aacOverFlow=null,this.remainderData=null},e.demux=function(e,r,n,i){var a;void 0===n&&(n=!1),void 0===i&&(i=!1),n||(this.sampleAes=null);var s=this._videoTrack,o=this._audioTrack,u=this._id3Track,l=this._txtTrack,c=s.pid,A=s.pesData,d=o.pid,f=u.pid,h=o.pesData,p=u.pesData,g=null,v=this.pmtParsed,m=this._pmtId,y=e.length;if(this.remainderData&&(y=(e=Pt(this.remainderData,e)).length,this.remainderData=null),y<Nn&&!i)return this.remainderData=e,{audioTrack:o,videoTrack:s,id3Track:u,textTrack:l};var w=Math.max(0,t.syncOffset(e));(y-=(y-w)%Nn)<e.byteLength&&!i&&(this.remainderData=new Uint8Array(e.buffer,y,e.buffer.byteLength-y));for(var C=0,E=w;E<y;E+=Nn)if(71===e[E]){var x=!!(64&e[E+1]),T=$n(e,E),k=void 0;if((48&e[E+3])>>4>1){if((k=E+5+e[E+4])===E+Nn)continue}else k=E+4;switch(T){case c:x&&(A&&(a=Vn(A))&&this.videoParser.parseAVCPES(s,l,a,!1,this._duration),A={data:[],size:0}),A&&(A.data.push(e.subarray(k,E+Nn)),A.size+=E+Nn-k);break;case d:if(x){if(h&&(a=Vn(h)))switch(o.segmentCodec){case"aac":this.parseAACPES(o,a);break;case"mp3":this.parseMPEGPES(o,a);break;case"ac3":this.parseAC3PES(o,a)}h={data:[],size:0}}h&&(h.data.push(e.subarray(k,E+Nn)),h.size+=E+Nn-k);break;case f:x&&(p&&(a=Vn(p))&&this.parseID3PES(u,a),p={data:[],size:0}),p&&(p.data.push(e.subarray(k,E+Nn)),p.size+=E+Nn-k);break;case 0:x&&(k+=e[k]+1),m=this._pmtId=jn(e,k);break;case m:x&&(k+=e[k]+1);var I=Kn(e,k,this.typeSupported,n);(c=I.videoPid)>0&&(s.pid=c,s.segmentCodec=I.segmentVideoCodec),(d=I.audioPid)>0&&(o.pid=d,o.segmentCodec=I.segmentAudioCodec),(f=I.id3Pid)>0&&(u.pid=f),null===g||v||(S.warn("MPEG-TS PMT found at "+E+" after unknown PID '"+g+"'. Backtracking to sync byte @"+w+" to parse all TS packets."),g=null,E=w-188),v=this.pmtParsed=!0;break;case 17:case 8191:break;default:g=T}}else C++;if(C>0){var F=new Error("Found "+C+" TS packet/s that do not start with 0x47");this.observer.emit(b.ERROR,b.ERROR,{type:_.MEDIA_ERROR,details:B.FRAG_PARSING_ERROR,fatal:!1,error:F,reason:F.message})}s.pesData=A,o.pesData=h,u.pesData=p;var L={audioTrack:o,videoTrack:s,id3Track:u,textTrack:l};return i&&this.extractRemainingSamples(L),L},e.flush=function(){var t,e=this.remainderData;return this.remainderData=null,t=e?this.demux(e,-1,!1,!0):{videoTrack:this._videoTrack,audioTrack:this._audioTrack,id3Track:this._id3Track,textTrack:this._txtTrack},this.extractRemainingSamples(t),this.sampleAes?this.decrypt(t,this.sampleAes):t},e.extractRemainingSamples=function(t){var e,r=t.audioTrack,n=t.videoTrack,i=t.id3Track,a=t.textTrack,s=n.pesData,o=r.pesData,u=i.pesData;if(s&&(e=Vn(s))?(this.videoParser.parseAVCPES(n,a,e,!0,this._duration),n.pesData=null):n.pesData=s,o&&(e=Vn(o))){switch(r.segmentCodec){case"aac":this.parseAACPES(r,e);break;case"mp3":this.parseMPEGPES(r,e);break;case"ac3":this.parseAC3PES(r,e)}r.pesData=null}else null!=o&&o.size&&S.log("last AAC PES packet truncated,might overlap between fragments"),r.pesData=o;u&&(e=Vn(u))?(this.parseID3PES(i,e),i.pesData=null):i.pesData=u},e.demuxSampleAes=function(t,e,r){var n=this.demux(t,r,!0,!this.config.progressive),i=this.sampleAes=new Qn(this.observer,this.config,e);return this.decrypt(n,i)},e.decrypt=function(t,e){return new Promise((function(r){var n=t.audioTrack,i=t.videoTrack;n.samples&&"aac"===n.segmentCodec?e.decryptAacSamples(n.samples,0,(function(){i.samples?e.decryptAvcSamples(i.samples,0,0,(function(){r(t)})):r(t)})):i.samples&&e.decryptAvcSamples(i.samples,0,0,(function(){r(t)}))}))},e.destroy=function(){this._duration=0},e.parseAACPES=function(t,e){var r,n,i,a=0,s=this.aacOverFlow,o=e.data;if(s){this.aacOverFlow=null;var u=s.missing,l=s.sample.unit.byteLength;if(-1===u)o=Pt(s.sample.unit,o);else{var c=l-u;s.sample.unit.set(o.subarray(0,u),c),t.samples.push(s.sample),a=s.missing}}for(r=a,n=o.length;r<n-1&&!pn(o,r);r++);if(r!==a){var A,d=r<n-1;A=d?"AAC PES did not start with ADTS header,offset:"+r:"No ADTS header found in AAC PES";var f=new Error(A);if(S.warn("parsing error: "+A),this.observer.emit(b.ERROR,b.ERROR,{type:_.MEDIA_ERROR,details:B.FRAG_PARSING_ERROR,fatal:!1,levelRetry:d,error:f,reason:A}),!d)return}if(vn(t,this.observer,o,r,this.audioCodec),void 0!==e.pts)i=e.pts;else{if(!s)return void S.warn("[tsdemuxer]: AAC PES unknown PTS");var h=mn(t.samplerate);i=s.sample.pts+h}for(var p,g=0;r<n;){if(r+=(p=yn(t,o,r,i,g)).length,p.missing){this.aacOverFlow=p;break}for(g++;r<n-1&&!pn(o,r);r++);}},e.parseMPEGPES=function(t,e){var r=e.data,n=r.length,i=0,a=0,s=e.pts;if(void 0!==s)for(;a<n;)if(Sn(r,a)){var o=En(t,r,a,s,i);if(!o)break;a+=o.length,i++}else a++;else S.warn("[tsdemuxer]: MPEG PES unknown PTS")},e.parseAC3PES=function(t,e){var r=e.data,n=e.pts;if(void 0!==n)for(var i,a=r.length,s=0,o=0;o<a&&(i=Un(t,r,o,n,s++))>0;)o+=i;else S.warn("[tsdemuxer]: AC3 PES unknown PTS")},e.parseID3PES=function(t,e){if(void 0!==e.pts){var r=l({},e,{type:this._videoTrack?Oe:Ue,duration:Number.POSITIVE_INFINITY});t.samples.push(r)}else S.warn("[tsdemuxer]: ID3 PES unknown PTS")},t}();function $n(t,e){return((31&t[e+1])<<8)+t[e+2]}function jn(t,e){return(31&t[e+10])<<8|t[e+11]}function Kn(t,e,r,n){var i={audioPid:-1,videoPid:-1,id3Pid:-1,segmentVideoCodec:"avc",segmentAudioCodec:"aac"},a=e+3+((15&t[e+1])<<8|t[e+2])-4;for(e+=12+((15&t[e+10])<<8|t[e+11]);e<a;){var s=$n(t,e),o=(15&t[e+3])<<8|t[e+4];switch(t[e]){case 207:if(!n){Gn("ADTS AAC");break}case 15:-1===i.audioPid&&(i.audioPid=s);break;case 21:-1===i.id3Pid&&(i.id3Pid=s);break;case 219:if(!n){Gn("H.264");break}case 27:-1===i.videoPid&&(i.videoPid=s,i.segmentVideoCodec="avc");break;case 3:case 4:r.mpeg||r.mp3?-1===i.audioPid&&(i.audioPid=s,i.segmentAudioCodec="mp3"):S.log("MPEG audio found, not supported in this browser");break;case 193:if(!n){Gn("AC-3");break}case 129:r.ac3?-1===i.audioPid&&(i.audioPid=s,i.segmentAudioCodec="ac3"):S.log("AC-3 audio found, not supported in this browser");break;case 6:if(-1===i.audioPid&&o>0)for(var u=e+5,l=o;l>2;){106===t[u]&&(!0!==r.ac3?S.log("AC-3 audio found, not supported in this browser for now"):(i.audioPid=s,i.segmentAudioCodec="ac3"));var c=t[u+1]+2;u+=c,l-=c}break;case 194:case 135:S.warn("Unsupported EC-3 in M2TS found");break;case 36:S.warn("Unsupported HEVC in M2TS found")}e+=o+5}return i}function Gn(t){S.log(t+" with AES-128-CBC encryption found in unencrypted stream")}function Vn(t){var e,r,n,i,a,s=0,o=t.data;if(!t||0===t.size)return null;for(;o[0].length<19&&o.length>1;)o[0]=Pt(o[0],o[1]),o.splice(1,1);if(1===((e=o[0])[0]<<16)+(e[1]<<8)+e[2]){if((r=(e[4]<<8)+e[5])&&r>t.size-6)return null;var u=e[7];192&u&&(i=536870912*(14&e[9])+4194304*(255&e[10])+16384*(254&e[11])+128*(255&e[12])+(254&e[13])/2,64&u?i-(a=536870912*(14&e[14])+4194304*(255&e[15])+16384*(254&e[16])+128*(255&e[17])+(254&e[18])/2)>54e5&&(S.warn(Math.round((i-a)/9e4)+"s delta between PTS and DTS, align them"),i=a):a=i);var l=(n=e[8])+9;if(t.size<=l)return null;t.size-=l;for(var c=new Uint8Array(t.size),A=0,d=o.length;A<d;A++){var f=(e=o[A]).byteLength;if(l){if(l>f){l-=f;continue}e=e.subarray(l),f-=l,l=0}c.set(e,s),s+=f}return r&&(r-=n+3),{data:c,pts:i,dts:a,len:r}}return null}var Wn=function(t){function e(){return t.apply(this,arguments)||this}c(e,t);var r=e.prototype;return r.resetInitSegment=function(e,r,n,i){t.prototype.resetInitSegment.call(this,e,r,n,i),this._audioTrack={container:"audio/mpeg",type:"audio",id:2,pid:-1,sequenceNumber:0,segmentCodec:"mp3",samples:[],manifestCodec:r,duration:i,inputTimeScale:9e4,dropped:0}},e.probe=function(t){if(!t)return!1;var e=st(t,0),r=(null==e?void 0:e.length)||0;if(e&&11===t[r]&&119===t[r+1]&&void 0!==lt(e)&&Dn(t,r)<=16)return!1;for(var n=t.length;r<n;r++)if(kn(t,r))return S.log("MPEG Audio sync word found !"),!0;return!1},r.canParse=function(t,e){return function(t,e){return Tn(t,e)&&4<=t.length-e}(t,e)},r.appendFrame=function(t,e,r){if(null!==this.basePTS)return En(t,e,r,this.basePTS,this.frameIndex)},e}(cn),zn=function(){function t(){}return t.getSilentFrame=function(t,e){if("mp4a.40.2"===t){if(1===e)return new Uint8Array([0,200,0,128,35,128]);if(2===e)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(3===e)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(4===e)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(5===e)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);if(6===e)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,0,178,0,32,8,224])}else{if(1===e)return new Uint8Array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(2===e)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(3===e)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94])}},t}(),Yn=Math.pow(2,32)-1,qn=function(){function t(){}return t.init=function(){var e;for(e in t.types={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],".mp3":[],dac3:[],"ac-3":[],mvex:[],mvhd:[],pasp:[],sdtp:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[],smhd:[]},t.types)t.types.hasOwnProperty(e)&&(t.types[e]=[e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2),e.charCodeAt(3)]);var r=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),n=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]);t.HDLR_TYPES={video:r,audio:n};var i=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),a=new Uint8Array([0,0,0,0,0,0,0,0]);t.STTS=t.STSC=t.STCO=a,t.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),t.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),t.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),t.STSD=new Uint8Array([0,0,0,0,0,0,0,1]);var s=new Uint8Array([105,115,111,109]),o=new Uint8Array([97,118,99,49]),u=new Uint8Array([0,0,0,1]);t.FTYP=t.box(t.types.ftyp,s,u,s,o),t.DINF=t.box(t.types.dinf,t.box(t.types.dref,i))},t.box=function(t){for(var e=8,r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];for(var a=n.length,s=a;a--;)e+=n[a].byteLength;var o=new Uint8Array(e);for(o[0]=e>>24&255,o[1]=e>>16&255,o[2]=e>>8&255,o[3]=255&e,o.set(t,4),a=0,e=8;a<s;a++)o.set(n[a],e),e+=n[a].byteLength;return o},t.hdlr=function(e){return t.box(t.types.hdlr,t.HDLR_TYPES[e])},t.mdat=function(e){return t.box(t.types.mdat,e)},t.mdhd=function(e,r){r*=e;var n=Math.floor(r/(Yn+1)),i=Math.floor(r%(Yn+1));return t.box(t.types.mdhd,new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,e>>24&255,e>>16&255,e>>8&255,255&e,n>>24,n>>16&255,n>>8&255,255&n,i>>24,i>>16&255,i>>8&255,255&i,85,196,0,0]))},t.mdia=function(e){return t.box(t.types.mdia,t.mdhd(e.timescale,e.duration),t.hdlr(e.type),t.minf(e))},t.mfhd=function(e){return t.box(t.types.mfhd,new Uint8Array([0,0,0,0,e>>24,e>>16&255,e>>8&255,255&e]))},t.minf=function(e){return"audio"===e.type?t.box(t.types.minf,t.box(t.types.smhd,t.SMHD),t.DINF,t.stbl(e)):t.box(t.types.minf,t.box(t.types.vmhd,t.VMHD),t.DINF,t.stbl(e))},t.moof=function(e,r,n){return t.box(t.types.moof,t.mfhd(e),t.traf(n,r))},t.moov=function(e){for(var r=e.length,n=[];r--;)n[r]=t.trak(e[r]);return t.box.apply(null,[t.types.moov,t.mvhd(e[0].timescale,e[0].duration)].concat(n).concat(t.mvex(e)))},t.mvex=function(e){for(var r=e.length,n=[];r--;)n[r]=t.trex(e[r]);return t.box.apply(null,[t.types.mvex].concat(n))},t.mvhd=function(e,r){r*=e;var n=Math.floor(r/(Yn+1)),i=Math.floor(r%(Yn+1)),a=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,e>>24&255,e>>16&255,e>>8&255,255&e,n>>24,n>>16&255,n>>8&255,255&n,i>>24,i>>16&255,i>>8&255,255&i,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]);return t.box(t.types.mvhd,a)},t.sdtp=function(e){var r,n,i=e.samples||[],a=new Uint8Array(4+i.length);for(r=0;r<i.length;r++)n=i[r].flags,a[r+4]=n.dependsOn<<4|n.isDependedOn<<2|n.hasRedundancy;return t.box(t.types.sdtp,a)},t.stbl=function(e){return t.box(t.types.stbl,t.stsd(e),t.box(t.types.stts,t.STTS),t.box(t.types.stsc,t.STSC),t.box(t.types.stsz,t.STSZ),t.box(t.types.stco,t.STCO))},t.avc1=function(e){var r,n,i,a=[],s=[];for(r=0;r<e.sps.length;r++)i=(n=e.sps[r]).byteLength,a.push(i>>>8&255),a.push(255&i),a=a.concat(Array.prototype.slice.call(n));for(r=0;r<e.pps.length;r++)i=(n=e.pps[r]).byteLength,s.push(i>>>8&255),s.push(255&i),s=s.concat(Array.prototype.slice.call(n));var o=t.box(t.types.avcC,new Uint8Array([1,a[3],a[4],a[5],255,224|e.sps.length].concat(a).concat([e.pps.length]).concat(s))),u=e.width,l=e.height,c=e.pixelRatio[0],A=e.pixelRatio[1];return t.box(t.types.avc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,u>>8&255,255&u,l>>8&255,255&l,0,72,0,0,0,72,0,0,0,0,0,0,0,1,18,100,97,105,108,121,109,111,116,105,111,110,47,104,108,115,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),o,t.box(t.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),t.box(t.types.pasp,new Uint8Array([c>>24,c>>16&255,c>>8&255,255&c,A>>24,A>>16&255,A>>8&255,255&A])))},t.esds=function(t){var e=t.config.length;return new Uint8Array([0,0,0,0,3,23+e,0,1,0,4,15+e,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([e]).concat(t.config).concat([6,1,2]))},t.audioStsd=function(t){var e=t.samplerate;return new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,t.channelCount,0,16,0,0,0,0,e>>8&255,255&e,0,0])},t.mp4a=function(e){return t.box(t.types.mp4a,t.audioStsd(e),t.box(t.types.esds,t.esds(e)))},t.mp3=function(e){return t.box(t.types[".mp3"],t.audioStsd(e))},t.ac3=function(e){return t.box(t.types["ac-3"],t.audioStsd(e),t.box(t.types.dac3,e.config))},t.stsd=function(e){return"audio"===e.type?"mp3"===e.segmentCodec&&"mp3"===e.codec?t.box(t.types.stsd,t.STSD,t.mp3(e)):"ac3"===e.segmentCodec?t.box(t.types.stsd,t.STSD,t.ac3(e)):t.box(t.types.stsd,t.STSD,t.mp4a(e)):t.box(t.types.stsd,t.STSD,t.avc1(e))},t.tkhd=function(e){var r=e.id,n=e.duration*e.timescale,i=e.width,a=e.height,s=Math.floor(n/(Yn+1)),o=Math.floor(n%(Yn+1));return t.box(t.types.tkhd,new Uint8Array([1,0,0,7,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,r>>24&255,r>>16&255,r>>8&255,255&r,0,0,0,0,s>>24,s>>16&255,s>>8&255,255&s,o>>24,o>>16&255,o>>8&255,255&o,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,i>>8&255,255&i,0,0,a>>8&255,255&a,0,0]))},t.traf=function(e,r){var n=t.sdtp(e),i=e.id,a=Math.floor(r/(Yn+1)),s=Math.floor(r%(Yn+1));return t.box(t.types.traf,t.box(t.types.tfhd,new Uint8Array([0,0,0,0,i>>24,i>>16&255,i>>8&255,255&i])),t.box(t.types.tfdt,new Uint8Array([1,0,0,0,a>>24,a>>16&255,a>>8&255,255&a,s>>24,s>>16&255,s>>8&255,255&s])),t.trun(e,n.length+16+20+8+16+8+8),n)},t.trak=function(e){return e.duration=e.duration||4294967295,t.box(t.types.trak,t.tkhd(e),t.mdia(e))},t.trex=function(e){var r=e.id;return t.box(t.types.trex,new Uint8Array([0,0,0,0,r>>24,r>>16&255,r>>8&255,255&r,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]))},t.trun=function(e,r){var n,i,a,s,o,u,l=e.samples||[],c=l.length,A=12+16*c,d=new Uint8Array(A);for(r+=8+A,d.set(["video"===e.type?1:0,0,15,1,c>>>24&255,c>>>16&255,c>>>8&255,255&c,r>>>24&255,r>>>16&255,r>>>8&255,255&r],0),n=0;n<c;n++)a=(i=l[n]).duration,s=i.size,o=i.flags,u=i.cts,d.set([a>>>24&255,a>>>16&255,a>>>8&255,255&a,s>>>24&255,s>>>16&255,s>>>8&255,255&s,o.isLeading<<2|o.dependsOn,o.isDependedOn<<6|o.hasRedundancy<<4|o.paddingValue<<1|o.isNonSync,61440&o.degradPrio,15&o.degradPrio,u>>>24&255,u>>>16&255,u>>>8&255,255&u],12+16*n);return t.box(t.types.trun,d)},t.initSegment=function(e){t.types||t.init();var r=t.moov(e);return Pt(t.FTYP,r)},t}();qn.types=void 0,qn.HDLR_TYPES=void 0,qn.STTS=void 0,qn.STSC=void 0,qn.STCO=void 0,qn.STSZ=void 0,qn.VMHD=void 0,qn.SMHD=void 0,qn.STSD=void 0,qn.FTYP=void 0,qn.DINF=void 0;function Xn(t,e,r,n){void 0===r&&(r=1),void 0===n&&(n=!1);var i=t*e*r;return n?Math.round(i):i}function Jn(t,e){return void 0===e&&(e=!1),Xn(t,1e3,1/9e4,e)}var Zn=null,ti=null,ei=function(){function t(t,e,r,n){if(this.observer=void 0,this.config=void 0,this.typeSupported=void 0,this.ISGenerated=!1,this._initPTS=null,this._initDTS=null,this.nextAvcDts=null,this.nextAudioPts=null,this.videoSampleDuration=null,this.isAudioContiguous=!1,this.isVideoContiguous=!1,this.videoTrackConfig=void 0,this.observer=t,this.config=e,this.typeSupported=r,this.ISGenerated=!1,null===Zn){var i=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);Zn=i?parseInt(i[1]):0}if(null===ti){var a=navigator.userAgent.match(/Safari\/(\d+)/i);ti=a?parseInt(a[1]):0}}var e=t.prototype;return e.destroy=function(){this.config=this.videoTrackConfig=this._initPTS=this._initDTS=null},e.resetTimeStamp=function(t){S.log("[mp4-remuxer]: initPTS & initDTS reset"),this._initPTS=this._initDTS=t},e.resetNextTimestamp=function(){S.log("[mp4-remuxer]: reset next timestamp"),this.isVideoContiguous=!1,this.isAudioContiguous=!1},e.resetInitSegment=function(){S.log("[mp4-remuxer]: ISGenerated flag reset"),this.ISGenerated=!1,this.videoTrackConfig=void 0},e.getVideoStartPts=function(t){var e=!1,r=t.reduce((function(t,r){var n=r.pts-t;return n<-4294967296?(e=!0,ri(t,r.pts)):n>0?t:r.pts}),t[0].pts);return e&&S.debug("PTS rollover detected"),r},e.remux=function(t,e,r,n,i,a,s,o){var u,l,c,A,d,f,h=i,p=i,g=t.pid>-1,v=e.pid>-1,m=e.samples.length,y=t.samples.length>0,w=s&&m>0||m>1;if((!g||y)&&(!v||w)||this.ISGenerated||s){if(this.ISGenerated){var b,_,B,C,E=this.videoTrackConfig;!E||e.width===E.width&&e.height===E.height&&(null==(b=e.pixelRatio)?void 0:b[0])===(null==(_=E.pixelRatio)?void 0:_[0])&&(null==(B=e.pixelRatio)?void 0:B[1])===(null==(C=E.pixelRatio)?void 0:C[1])||this.resetInitSegment()}else c=this.generateIS(t,e,i,a);var x,T=this.isVideoContiguous,k=-1;if(w&&(k=function(t){for(var e=0;e<t.length;e++)if(t[e].key)return e;return-1}(e.samples),!T&&this.config.forceKeyFrameOnDiscontinuity))if(f=!0,k>0){S.warn("[mp4-remuxer]: Dropped "+k+" out of "+m+" video samples due to a missing keyframe");var I=this.getVideoStartPts(e.samples);e.samples=e.samples.slice(k),e.dropped+=k,x=p+=(e.samples[0].pts-I)/e.inputTimeScale}else-1===k&&(S.warn("[mp4-remuxer]: No keyframe found out of "+m+" video samples"),f=!1);if(this.ISGenerated){if(y&&w){var F=this.getVideoStartPts(e.samples),L=(ri(t.samples[0].pts,F)-F)/e.inputTimeScale;h+=Math.max(0,L),p+=Math.max(0,-L)}if(y){if(t.samplerate||(S.warn("[mp4-remuxer]: regenerate InitSegment as audio detected"),c=this.generateIS(t,e,i,a)),l=this.remuxAudio(t,h,this.isAudioContiguous,a,v||w||o===Ee?p:void 0),w){var D=l?l.endPTS-l.startPTS:0;e.inputTimeScale||(S.warn("[mp4-remuxer]: regenerate InitSegment as video detected"),c=this.generateIS(t,e,i,a)),u=this.remuxVideo(e,p,T,D)}}else w&&(u=this.remuxVideo(e,p,T,0));u&&(u.firstKeyFrame=k,u.independent=-1!==k,u.firstKeyFramePTS=x)}}return this.ISGenerated&&this._initPTS&&this._initDTS&&(r.samples.length&&(d=ni(r,i,this._initPTS,this._initDTS)),n.samples.length&&(A=ii(n,i,this._initPTS))),{audio:l,video:u,initSegment:c,independent:f,text:A,id3:d}},e.generateIS=function(t,e,r,n){var i,a,s,o=t.samples,u=e.samples,l=this.typeSupported,c={},A=this._initPTS,d=!A||n,f="audio/mp4";if(d&&(i=a=1/0),t.config&&o.length){switch(t.timescale=t.samplerate,t.segmentCodec){case"mp3":l.mpeg?(f="audio/mpeg",t.codec=""):l.mp3&&(t.codec="mp3");break;case"ac3":t.codec="ac-3"}c.audio={id:"audio",container:f,codec:t.codec,initSegment:"mp3"===t.segmentCodec&&l.mpeg?new Uint8Array(0):qn.initSegment([t]),metadata:{channelCount:t.channelCount}},d&&(s=t.inputTimeScale,A&&s===A.timescale?d=!1:i=a=o[0].pts-Math.round(s*r))}if(e.sps&&e.pps&&u.length){if(e.timescale=e.inputTimeScale,c.video={id:"main",container:"video/mp4",codec:e.codec,initSegment:qn.initSegment([e]),metadata:{width:e.width,height:e.height}},d)if(s=e.inputTimeScale,A&&s===A.timescale)d=!1;else{var h=this.getVideoStartPts(u),p=Math.round(s*r);a=Math.min(a,ri(u[0].dts,h)-p),i=Math.min(i,h-p)}this.videoTrackConfig={width:e.width,height:e.height,pixelRatio:e.pixelRatio}}if(Object.keys(c).length)return this.ISGenerated=!0,d?(this._initPTS={baseTime:i,timescale:s},this._initDTS={baseTime:a,timescale:s}):i=s=void 0,{tracks:c,initPTS:i,timescale:s}},e.remuxVideo=function(t,e,r,n){var i,a,s=t.inputTimeScale,o=t.samples,u=[],c=o.length,A=this._initPTS,d=this.nextAvcDts,f=8,h=this.videoSampleDuration,p=Number.POSITIVE_INFINITY,g=Number.NEGATIVE_INFINITY,v=!1;if(!r||null===d){var m=e*s,y=o[0].pts-ri(o[0].dts,o[0].pts);Zn&&null!==d&&Math.abs(m-y-d)<15e3?r=!0:d=m-y}for(var w=A.baseTime*s/A.timescale,C=0;C<c;C++){var E=o[C];E.pts=ri(E.pts-w,d),E.dts=ri(E.dts-w,d),E.dts<o[C>0?C-1:C].dts&&(v=!0)}v&&o.sort((function(t,e){var r=t.dts-e.dts,n=t.pts-e.pts;return r||n})),i=o[0].dts;var x=o[o.length-1].dts-i,T=x?Math.round(x/(c-1)):h||t.inputTimeScale/30;if(r){var k=i-d,I=k>T,F=k<-1;if((I||F)&&(I?S.warn("AVC: "+Jn(k,!0)+" ms ("+k+"dts) hole between fragments detected at "+e.toFixed(3)):S.warn("AVC: "+Jn(-k,!0)+" ms ("+k+"dts) overlapping between fragments detected at "+e.toFixed(3)),!F||d>=o[0].pts||Zn)){i=d;var L=o[0].pts-k;if(I)o[0].dts=i,o[0].pts=L;else for(var D=0;D<o.length&&!(o[D].dts>L);D++)o[D].dts-=k,o[D].pts-=k;S.log("Video: Initial PTS/DTS adjusted: "+Jn(L,!0)+"/"+Jn(i,!0)+", delta: "+Jn(k,!0)+" ms")}}for(var R=0,U=0,O=i=Math.max(0,i),P=0;P<c;P++){for(var M=o[P],Q=M.units,N=Q.length,H=0,$=0;$<N;$++)H+=Q[$].data.length;U+=H,R+=N,M.length=H,M.dts<O?(M.dts=O,O+=T/4|0||1):O=M.dts,p=Math.min(M.pts,p),g=Math.max(M.pts,g)}a=o[c-1].dts;var j,K=U+4*R+8;try{j=new Uint8Array(K)}catch(t){return void this.observer.emit(b.ERROR,b.ERROR,{type:_.MUX_ERROR,details:B.REMUX_ALLOC_ERROR,fatal:!1,error:t,bytes:K,reason:"fail allocating video mdat "+K})}var G=new DataView(j.buffer);G.setUint32(0,K),j.set(qn.types.mdat,4);for(var V=!1,W=Number.POSITIVE_INFINITY,z=Number.POSITIVE_INFINITY,Y=Number.NEGATIVE_INFINITY,q=Number.NEGATIVE_INFINITY,X=0;X<c;X++){for(var J=o[X],Z=J.units,tt=0,et=0,rt=Z.length;et<rt;et++){var nt=Z[et],it=nt.data,at=nt.data.byteLength;G.setUint32(f,at),f+=4,j.set(it,f),f+=at,tt+=4+at}var st=void 0;if(X<c-1)h=o[X+1].dts-J.dts,st=o[X+1].pts-J.pts;else{var ot=this.config,ut=X>0?J.dts-o[X-1].dts:T;if(st=X>0?J.pts-o[X-1].pts:T,ot.stretchShortVideoTrack&&null!==this.nextAudioPts){var lt=Math.floor(ot.maxBufferHole*s),ct=(n?p+n*s:this.nextAudioPts)-J.pts;ct>lt?((h=ct-ut)<0?h=ut:V=!0,S.log("[mp4-remuxer]: It is approximately "+ct/90+" ms to the next segment; using duration "+h/90+" ms for the last video frame.")):h=ut}else h=ut}var At=Math.round(J.pts-J.dts);W=Math.min(W,h),Y=Math.max(Y,h),z=Math.min(z,st),q=Math.max(q,st),u.push(new si(J.key,h,tt,At))}if(u.length)if(Zn){if(Zn<70){var dt=u[0].flags;dt.dependsOn=2,dt.isNonSync=0}}else if(ti&&q-z<Y-W&&T/Y<.025&&0===u[0].cts){S.warn("Found irregular gaps in sample duration. Using PTS instead of DTS to determine MP4 sample duration.");for(var ft=i,ht=0,pt=u.length;ht<pt;ht++){var gt=ft+u[ht].duration,vt=ft+u[ht].cts;if(ht<pt-1){var mt=gt+u[ht+1].cts;u[ht].duration=mt-vt}else u[ht].duration=ht?u[ht-1].duration:T;u[ht].cts=0,ft=gt}}h=V||!h?T:h,this.nextAvcDts=d=a+h,this.videoSampleDuration=h,this.isVideoContiguous=!0;var yt={data1:qn.moof(t.sequenceNumber++,i,l({},t,{samples:u})),data2:j,startPTS:p/s,endPTS:(g+h)/s,startDTS:i/s,endDTS:d/s,type:"video",hasAudio:!1,hasVideo:!0,nb:u.length,dropped:t.dropped};return t.samples=[],t.dropped=0,yt},e.getSamplesPerFrame=function(t){switch(t.segmentCodec){case"mp3":return 1152;case"ac3":return 1536;default:return 1024}},e.remuxAudio=function(t,e,r,n,i){var a=t.inputTimeScale,s=a/(t.samplerate?t.samplerate:a),o=this.getSamplesPerFrame(t),u=o*s,c=this._initPTS,A="mp3"===t.segmentCodec&&this.typeSupported.mpeg,d=[],f=void 0!==i,h=t.samples,p=A?0:8,g=this.nextAudioPts||-1,v=e*a,m=c.baseTime*a/c.timescale;if(this.isAudioContiguous=r=r||h.length&&g>0&&(n&&Math.abs(v-g)<9e3||Math.abs(ri(h[0].pts-m,v)-g)<20*u),h.forEach((function(t){t.pts=ri(t.pts-m,v)})),!r||g<0){if(h=h.filter((function(t){return t.pts>=0})),!h.length)return;g=0===i?0:n&&!f?Math.max(0,v):h[0].pts}if("aac"===t.segmentCodec)for(var y=this.config.maxAudioFramesDrift,w=0,C=g;w<h.length;w++){var E=h[w],x=E.pts,T=x-C,k=Math.abs(1e3*T/a);if(T<=-y*u&&f)0===w&&(S.warn("Audio frame @ "+(x/a).toFixed(3)+"s overlaps nextAudioPts by "+Math.round(1e3*T/a)+" ms."),this.nextAudioPts=g=C=x);else if(T>=y*u&&k<1e4&&f){var I=Math.round(T/u);(C=x-I*u)<0&&(I--,C+=u),0===w&&(this.nextAudioPts=g=C),S.warn("[mp4-remuxer]: Injecting "+I+" audio frame @ "+(C/a).toFixed(3)+"s due to "+Math.round(1e3*T/a)+" ms gap.");for(var F=0;F<I;F++){var L=Math.max(C,0),D=zn.getSilentFrame(t.manifestCodec||t.codec,t.channelCount);D||(S.log("[mp4-remuxer]: Unable to get silent frame for given audio codec; duplicating last frame instead."),D=E.unit.subarray()),h.splice(w,0,{unit:D,pts:L}),C+=u,w++}}E.pts=C,C+=u}for(var R,U=null,O=null,P=0,M=h.length;M--;)P+=h[M].unit.byteLength;for(var Q=0,N=h.length;Q<N;Q++){var H=h[Q],$=H.unit,j=H.pts;if(null!==O)d[Q-1].duration=Math.round((j-O)/s);else{if(r&&"aac"===t.segmentCodec&&(j=g),U=j,!(P>0))return;P+=p;try{R=new Uint8Array(P)}catch(t){return void this.observer.emit(b.ERROR,b.ERROR,{type:_.MUX_ERROR,details:B.REMUX_ALLOC_ERROR,fatal:!1,error:t,bytes:P,reason:"fail allocating audio mdat "+P})}A||(new DataView(R.buffer).setUint32(0,P),R.set(qn.types.mdat,4))}R.set($,p);var K=$.byteLength;p+=K,d.push(new si(!0,o,K,0)),O=j}var G=d.length;if(G){var V=d[d.length-1];this.nextAudioPts=g=O+s*V.duration;var W=A?new Uint8Array(0):qn.moof(t.sequenceNumber++,U/s,l({},t,{samples:d}));t.samples=[];var z=U/a,Y=g/a,q={data1:W,data2:R,startPTS:z,endPTS:Y,startDTS:z,endDTS:Y,type:"audio",hasAudio:!0,hasVideo:!1,nb:G};return this.isAudioContiguous=!0,q}},e.remuxEmptyAudio=function(t,e,r,n){var i=t.inputTimeScale,a=i/(t.samplerate?t.samplerate:i),s=this.nextAudioPts,o=this._initDTS,u=9e4*o.baseTime/o.timescale,l=(null!==s?s:n.startDTS*i)+u,c=n.endDTS*i+u,A=1024*a,d=Math.ceil((c-l)/A),f=zn.getSilentFrame(t.manifestCodec||t.codec,t.channelCount);if(S.warn("[mp4-remuxer]: remux empty Audio"),f){for(var h=[],p=0;p<d;p++){var g=l+p*A;h.push({unit:f,pts:g,dts:g})}return t.samples=h,this.remuxAudio(t,e,r,!1)}S.trace("[mp4-remuxer]: Unable to remuxEmptyAudio since we were unable to get a silent frame for given audio codec")},t}();function ri(t,e){var r;if(null===e)return t;for(r=e<t?-8589934592:8589934592;Math.abs(t-e)>4294967296;)t+=r;return t}function ni(t,e,r,n){var i=t.samples.length;if(i){for(var a=t.inputTimeScale,s=0;s<i;s++){var o=t.samples[s];o.pts=ri(o.pts-r.baseTime*a/r.timescale,e*a)/a,o.dts=ri(o.dts-n.baseTime*a/n.timescale,e*a)/a}var u=t.samples;return t.samples=[],{samples:u}}}function ii(t,e,r){var n=t.samples.length;if(n){for(var i=t.inputTimeScale,a=0;a<n;a++){var s=t.samples[a];s.pts=ri(s.pts-r.baseTime*i/r.timescale,e*i)/i}t.samples.sort((function(t,e){return t.pts-e.pts}));var o=t.samples;return t.samples=[],{samples:o}}}var ai,si=function(t,e,r,n){this.size=void 0,this.duration=void 0,this.cts=void 0,this.flags=void 0,this.duration=e,this.size=r,this.cts=n,this.flags={isLeading:0,isDependedOn:0,hasRedundancy:0,degradPrio:0,dependsOn:t?2:1,isNonSync:t?0:1}},oi=function(){function t(){this.emitInitSegment=!1,this.audioCodec=void 0,this.videoCodec=void 0,this.initData=void 0,this.initPTS=null,this.initTracks=void 0,this.lastEndTime=null}var e=t.prototype;return e.destroy=function(){},e.resetTimeStamp=function(t){this.initPTS=t,this.lastEndTime=null},e.resetNextTimestamp=function(){this.lastEndTime=null},e.resetInitSegment=function(t,e,r,n){this.audioCodec=e,this.videoCodec=r,this.generateInitSegment(function(t,e){if(!t||!e)return t;var r=e.keyId;return r&&e.isCommonEncryption&&St(t,["moov","trak"]).forEach((function(t){var e=St(t,["mdia","minf","stbl","stsd"])[0].subarray(8),n=St(e,["enca"]),i=n.length>0;i||(n=St(e,["encv"])),n.forEach((function(t){St(i?t.subarray(28):t.subarray(78),["sinf"]).forEach((function(t){var e=Ut(t);if(e){var n=e.subarray(8,24);n.some((function(t){return 0!==t}))||(S.log("[eme] Patching keyId in 'enc"+(i?"a":"v")+">sinf>>tenc' box: "+yt(n)+" -> "+yt(r)),e.set(r,8))}}))}))})),t}(t,n)),this.emitInitSegment=!0},e.generateInitSegment=function(t){var e=this.audioCodec,r=this.videoCodec;if(null==t||!t.byteLength)return this.initTracks=void 0,void(this.initData=void 0);var n=this.initData=It(t);n.audio&&(e=ui(n.audio,U)),n.video&&(r=ui(n.video,O));var i={};n.audio&&n.video?i.audiovideo={container:"video/mp4",codec:e+","+r,initSegment:t,id:"main"}:n.audio?i.audio={container:"audio/mp4",codec:e,initSegment:t,id:"audio"}:n.video?i.video={container:"video/mp4",codec:r,initSegment:t,id:"main"}:S.warn("[passthrough-remuxer.ts]: initSegment does not contain moov or trak boxes."),this.initTracks=i},e.remux=function(t,e,r,n,i,a){var s,o,u=this.initPTS,l=this.lastEndTime,c={audio:void 0,video:void 0,text:n,id3:r,initSegment:void 0};m(l)||(l=this.lastEndTime=i||0);var A=e.samples;if(null==A||!A.length)return c;var d={initPTS:void 0,timescale:1},f=this.initData;if(null!=(s=f)&&s.length||(this.generateInitSegment(A),f=this.initData),null==(o=f)||!o.length)return S.warn("[passthrough-remuxer.ts]: Failed to generate initSegment."),c;this.emitInitSegment&&(d.tracks=this.initTracks,this.emitInitSegment=!1);var h=function(t,e){for(var r=0,n=0,i=0,a=St(t,["moof","traf"]),s=0;s<a.length;s++){var o=a[s],u=St(o,["tfhd"])[0],l=e[Et(u,4)];if(l){var c=l.default,A=Et(u,0)|(null==c?void 0:c.flags),d=null==c?void 0:c.duration;8&A&&(d=Et(u,2&A?12:8));for(var f=l.timescale||9e4,h=St(o,["trun"]),p=0;p<h.length;p++)!(r=Ot(h[p]))&&d&&(r=d*Et(h[p],4)),l.type===O?n+=r/f:l.type===U&&(i+=r/f)}}if(0===n&&0===i){for(var g=0,v=St(t,["sidx"]),m=0;m<v.length;m++){var y=kt(v[m]);null!=y&&y.references&&(g+=y.references.reduce((function(t,e){return t+e.info.duration||0}),0))}return g}return n||i}(A,f),p=function(t,e){return St(e,["moof","traf"]).reduce((function(e,r){var n=St(r,["tfdt"])[0],i=n[0],a=St(r,["tfhd"]).reduce((function(e,r){var a=Et(r,4),s=t[a];if(s){var o=Et(n,4);if(1===i){if(o===wt)return S.warn("[mp4-demuxer]: Ignoring assumed invalid signed 64-bit track fragment decode time"),e;o*=wt+1,o+=Et(n,8)}var u=o/(s.timescale||9e4);if(m(u)&&(null===e||u<e))return u}return e}),null);return null!==a&&m(a)&&(null===e||a<e)?a:e}),null)}(f,A),g=null===p?i:p;(function(t,e,r,n){if(null===t)return!0;var i=Math.max(n,1),a=e-t.baseTime/t.timescale;return Math.abs(a-r)>i}(u,g,i,h)||d.timescale!==u.timescale&&a)&&(d.initPTS=g-i,u&&1===u.timescale&&S.warn("Adjusting initPTS by "+(d.initPTS-u.baseTime)),this.initPTS=u={baseTime:d.initPTS,timescale:1});var v=t?g-u.baseTime/u.timescale:l,y=v+h;!function(t,e,r){St(e,["moof","traf"]).forEach((function(e){St(e,["tfhd"]).forEach((function(n){var i=Et(n,4),a=t[i];if(a){var s=a.timescale||9e4;St(e,["tfdt"]).forEach((function(t){var e=t[0],n=r*s;if(n){var i=Et(t,4);if(0===e)i-=n,Tt(t,4,i=Math.max(i,0));else{i*=Math.pow(2,32),i+=Et(t,8),i-=n,i=Math.max(i,0);var a=Math.floor(i/(wt+1)),o=Math.floor(i%(wt+1));Tt(t,4,a),Tt(t,8,o)}}}))}}))}))}(f,A,u.baseTime/u.timescale),h>0?this.lastEndTime=y:(S.warn("Duration parsed from mp4 should be greater than zero"),this.resetNextTimestamp());var w=!!f.audio,b=!!f.video,_="";w&&(_+="audio"),b&&(_+="video");var B={data1:A,startPTS:v,startDTS:v,endPTS:y,endDTS:y,type:_,hasAudio:w,hasVideo:b,nb:1,dropped:0};return c.audio="audio"===B.type?B:void 0,c.video="audio"!==B.type?B:void 0,c.initSegment=d,c.id3=ni(r,i,u,u),n.samples.length&&(c.text=ii(n,i,u)),c},t}();function ui(t,e){var r=null==t?void 0:t.codec;if(r&&r.length>4)return r;if(e===U){if("ec-3"===r||"ac-3"===r||"alac"===r)return r;if("fLaC"===r||"Opus"===r)return ae(r,!1);var n="mp4a.40.5";return S.info('Parsed audio codec "'+r+'" or audio object type not handled. Using "'+n+'"'),n}return S.warn('Unhandled video codec "'+r+'"'),"hvc1"===r||"hev1"===r?"hvc1.1.6.L120.90":"av01"===r?"av01.0.04M.08":"avc1.42e01e"}try{ai=self.performance.now.bind(self.performance)}catch(o){S.debug("Unable to use Performance API on this environment"),ai=null==K?void 0:K.Date.now}var li=[{demux:Ln,remux:oi},{demux:Hn,remux:ei},{demux:In,remux:ei},{demux:Wn,remux:ei}];li.splice(2,0,{demux:Rn,remux:ei});var ci=function(){function t(t,e,r,n,i){this.async=!1,this.observer=void 0,this.typeSupported=void 0,this.config=void 0,this.vendor=void 0,this.id=void 0,this.demuxer=void 0,this.remuxer=void 0,this.decrypter=void 0,this.probe=void 0,this.decryptionPromise=null,this.transmuxConfig=void 0,this.currentTransmuxState=void 0,this.observer=t,this.typeSupported=e,this.config=r,this.vendor=n,this.id=i}var e=t.prototype;return e.configure=function(t){this.transmuxConfig=t,this.decrypter&&this.decrypter.reset()},e.push=function(t,e,r,n){var i=this,a=r.transmuxing;a.executeStart=ai();var s=new Uint8Array(t),o=this.currentTransmuxState,u=this.transmuxConfig;n&&(this.currentTransmuxState=n);var l=n||o,c=l.contiguous,A=l.discontinuity,d=l.trackSwitch,f=l.accurateTimeOffset,h=l.timeOffset,p=l.initSegmentChange,g=u.audioCodec,v=u.videoCodec,m=u.defaultInitPts,y=u.duration,w=u.initSegmentData,C=function(t,e){var r=null;return t.byteLength>0&&null!=(null==e?void 0:e.key)&&null!==e.iv&&null!=e.method&&(r=e),r}(s,e);if(C&&"AES-128"===C.method){var E=this.getDecrypter();if(!E.isSync())return this.decryptionPromise=E.webCryptoDecrypt(s,C.key.buffer,C.iv.buffer).then((function(t){var e=i.push(t,null,r);return i.decryptionPromise=null,e})),this.decryptionPromise;var x=E.softwareDecrypt(s,C.key.buffer,C.iv.buffer);if(r.part>-1&&(x=E.flush()),!x)return a.executeEnd=ai(),Ai(r);s=new Uint8Array(x)}var T=this.needsProbing(A,d);if(T){var k=this.configureTransmuxer(s);if(k)return S.warn("[transmuxer] "+k.message),this.observer.emit(b.ERROR,b.ERROR,{type:_.MEDIA_ERROR,details:B.FRAG_PARSING_ERROR,fatal:!1,error:k,reason:k.message}),a.executeEnd=ai(),Ai(r)}(A||d||p||T)&&this.resetInitSegment(w,g,v,y,e),(A||p||T)&&this.resetInitialTimestamp(m),c||this.resetContiguity();var I=this.transmux(s,C,h,f,r),F=this.currentTransmuxState;return F.contiguous=!0,F.discontinuity=!1,F.trackSwitch=!1,a.executeEnd=ai(),I},e.flush=function(t){var e=this,r=t.transmuxing;r.executeStart=ai();var n=this.decrypter,i=this.currentTransmuxState,a=this.decryptionPromise;if(a)return a.then((function(){return e.flush(t)}));var s=[],o=i.timeOffset;if(n){var u=n.flush();u&&s.push(this.push(u,null,t))}var l=this.demuxer,c=this.remuxer;if(!l||!c)return r.executeEnd=ai(),[Ai(t)];var A=l.flush(o);return di(A)?A.then((function(r){return e.flushRemux(s,r,t),s})):(this.flushRemux(s,A,t),s)},e.flushRemux=function(t,e,r){var n=e.audioTrack,i=e.videoTrack,a=e.id3Track,s=e.textTrack,o=this.currentTransmuxState,u=o.accurateTimeOffset,l=o.timeOffset;S.log("[transmuxer.ts]: Flushed fragment "+r.sn+(r.part>-1?" p: "+r.part:"")+" of level "+r.level);var c=this.remuxer.remux(n,i,a,s,l,u,!0,this.id);t.push({remuxResult:c,chunkMeta:r}),r.transmuxing.executeEnd=ai()},e.resetInitialTimestamp=function(t){var e=this.demuxer,r=this.remuxer;e&&r&&(e.resetTimeStamp(t),r.resetTimeStamp(t))},e.resetContiguity=function(){var t=this.demuxer,e=this.remuxer;t&&e&&(t.resetContiguity(),e.resetNextTimestamp())},e.resetInitSegment=function(t,e,r,n,i){var a=this.demuxer,s=this.remuxer;a&&s&&(a.resetInitSegment(t,e,r,n),s.resetInitSegment(t,e,r,i))},e.destroy=function(){this.demuxer&&(this.demuxer.destroy(),this.demuxer=void 0),this.remuxer&&(this.remuxer.destroy(),this.remuxer=void 0)},e.transmux=function(t,e,r,n,i){return e&&"SAMPLE-AES"===e.method?this.transmuxSampleAes(t,e,r,n,i):this.transmuxUnencrypted(t,r,n,i)},e.transmuxUnencrypted=function(t,e,r,n){var i=this.demuxer.demux(t,e,!1,!this.config.progressive),a=i.audioTrack,s=i.videoTrack,o=i.id3Track,u=i.textTrack;return{remuxResult:this.remuxer.remux(a,s,o,u,e,r,!1,this.id),chunkMeta:n}},e.transmuxSampleAes=function(t,e,r,n,i){var a=this;return this.demuxer.demuxSampleAes(t,e,r).then((function(t){return{remuxResult:a.remuxer.remux(t.audioTrack,t.videoTrack,t.id3Track,t.textTrack,r,n,!1,a.id),chunkMeta:i}}))},e.configureTransmuxer=function(t){for(var e,r=this.config,n=this.observer,i=this.typeSupported,a=this.vendor,s=0,o=li.length;s<o;s++){var u;if(null!=(u=li[s].demux)&&u.probe(t)){e=li[s];break}}if(!e)return new Error("Failed to find demuxer by probing fragment data");var l=this.demuxer,c=this.remuxer,A=e.remux,d=e.demux;c&&c instanceof A||(this.remuxer=new A(n,r,i,a)),l&&l instanceof d||(this.demuxer=new d(n,r,i),this.probe=d.probe)},e.needsProbing=function(t,e){return!this.demuxer||!this.remuxer||t||e},e.getDecrypter=function(){var t=this.decrypter;return t||(t=this.decrypter=new Wr(this.config)),t},t}(),Ai=function(t){return{remuxResult:{},chunkMeta:t}};function di(t){return"then"in t&&t.then instanceof Function}var fi=function(t,e,r,n,i){this.audioCodec=void 0,this.videoCodec=void 0,this.initSegmentData=void 0,this.duration=void 0,this.defaultInitPts=void 0,this.audioCodec=t,this.videoCodec=e,this.initSegmentData=r,this.duration=n,this.defaultInitPts=i||null},hi=function(t,e,r,n,i,a){this.discontinuity=void 0,this.contiguous=void 0,this.accurateTimeOffset=void 0,this.trackSwitch=void 0,this.timeOffset=void 0,this.initSegmentChange=void 0,this.discontinuity=t,this.contiguous=e,this.accurateTimeOffset=r,this.trackSwitch=n,this.timeOffset=i,this.initSegmentChange=a},pi={exports:{}};!function(t){var e=Object.prototype.hasOwnProperty,r="~";function n(){}function i(t,e,r){this.fn=t,this.context=e,this.once=r||!1}function a(t,e,n,a,s){if("function"!=typeof n)throw new TypeError("The listener must be a function");var o=new i(n,a||t,s),u=r?r+e:e;return t._events[u]?t._events[u].fn?t._events[u]=[t._events[u],o]:t._events[u].push(o):(t._events[u]=o,t._eventsCount++),t}function s(t,e){0==--t._eventsCount?t._events=new n:delete t._events[e]}function o(){this._events=new n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),(new n).__proto__||(r=!1)),o.prototype.eventNames=function(){var t,n,i=[];if(0===this._eventsCount)return i;for(n in t=this._events)e.call(t,n)&&i.push(r?n.slice(1):n);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(t)):i},o.prototype.listeners=function(t){var e=r?r+t:t,n=this._events[e];if(!n)return[];if(n.fn)return[n.fn];for(var i=0,a=n.length,s=new Array(a);i<a;i++)s[i]=n[i].fn;return s},o.prototype.listenerCount=function(t){var e=r?r+t:t,n=this._events[e];return n?n.fn?1:n.length:0},o.prototype.emit=function(t,e,n,i,a,s){var o=r?r+t:t;if(!this._events[o])return!1;var u,l,c=this._events[o],A=arguments.length;if(c.fn){switch(c.once&&this.removeListener(t,c.fn,void 0,!0),A){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,e),!0;case 3:return c.fn.call(c.context,e,n),!0;case 4:return c.fn.call(c.context,e,n,i),!0;case 5:return c.fn.call(c.context,e,n,i,a),!0;case 6:return c.fn.call(c.context,e,n,i,a,s),!0}for(l=1,u=new Array(A-1);l<A;l++)u[l-1]=arguments[l];c.fn.apply(c.context,u)}else{var d,f=c.length;for(l=0;l<f;l++)switch(c[l].once&&this.removeListener(t,c[l].fn,void 0,!0),A){case 1:c[l].fn.call(c[l].context);break;case 2:c[l].fn.call(c[l].context,e);break;case 3:c[l].fn.call(c[l].context,e,n);break;case 4:c[l].fn.call(c[l].context,e,n,i);break;default:if(!u)for(d=1,u=new Array(A-1);d<A;d++)u[d-1]=arguments[d];c[l].fn.apply(c[l].context,u)}}return!0},o.prototype.on=function(t,e,r){return a(this,t,e,r,!1)},o.prototype.once=function(t,e,r){return a(this,t,e,r,!0)},o.prototype.removeListener=function(t,e,n,i){var a=r?r+t:t;if(!this._events[a])return this;if(!e)return s(this,a),this;var o=this._events[a];if(o.fn)o.fn!==e||i&&!o.once||n&&o.context!==n||s(this,a);else{for(var u=0,l=[],c=o.length;u<c;u++)(o[u].fn!==e||i&&!o[u].once||n&&o[u].context!==n)&&l.push(o[u]);l.length?this._events[a]=1===l.length?l[0]:l:s(this,a)}return this},o.prototype.removeAllListeners=function(t){var e;return t?(e=r?r+t:t,this._events[e]&&s(this,e)):(this._events=new n,this._eventsCount=0),this},o.prototype.off=o.prototype.removeListener,o.prototype.addListener=o.prototype.on,o.prefixed=r,o.EventEmitter=o,t.exports=o}(pi);var gi=function(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}(pi.exports);function vi(t,e){if(!((r=e.remuxResult).audio||r.video||r.text||r.id3||r.initSegment))return!1;var r,n=[],i=e.remuxResult,a=i.audio,s=i.video;return a&&mi(n,a),s&&mi(n,s),t.postMessage({event:"transmuxComplete",data:e},n),!0}function mi(t,e){e.data1&&t.push(e.data1.buffer),e.data2&&t.push(e.data2.buffer)}function yi(t,e,r){e.reduce((function(e,r){return vi(t,r)||e}),!1)||t.postMessage({event:"transmuxComplete",data:e[0]}),t.postMessage({event:"flush",data:r})}void 0!==u&&u&&function(t){var e=new gi,r=function(e,r){t.postMessage({event:e,data:r})};e.on(b.FRAG_DECRYPTED,r),e.on(b.ERROR,r);t.addEventListener("message",(function(n){var i=n.data;switch(i.cmd){case"init":var a=JSON.parse(i.config);t.transmuxer=new ci(e,i.typeSupported,a,i.vendor,i.id),T(a.debug,i.id),function(){var t=function(t){S[t]=function(e){r("workerLog",{logType:t,message:e})}};for(var e in S)t(e)}(),r("init",null);break;case"configure":t.transmuxer.configure(i.config);break;case"demux":var s=t.transmuxer.push(i.data,i.decryptdata,i.chunkMeta,i.state);di(s)?(t.transmuxer.async=!0,s.then((function(e){vi(t,e)})).catch((function(t){r(b.ERROR,{type:_.MEDIA_ERROR,details:B.FRAG_PARSING_ERROR,chunkMeta:i.chunkMeta,fatal:!1,error:t,err:t,reason:"transmuxer-worker push error"})}))):(t.transmuxer.async=!1,vi(t,s));break;case"flush":var o=i.chunkMeta,u=t.transmuxer.flush(o);di(u)||t.transmuxer.async?(di(u)||(u=Promise.resolve(u)),u.then((function(e){yi(t,e,o)})).catch((function(t){r(b.ERROR,{type:_.MEDIA_ERROR,details:B.FRAG_PARSING_ERROR,chunkMeta:i.chunkMeta,fatal:!1,error:t,err:t,reason:"transmuxer-worker flush error"})}))):yi(t,u,o)}}))}(self);var wi=function(){function t(t,e,r,n){var i=this;this.error=null,this.hls=void 0,this.id=void 0,this.observer=void 0,this.frag=null,this.part=null,this.useWorker=void 0,this.workerContext=null,this.onwmsg=void 0,this.transmuxer=null,this.onTransmuxComplete=void 0,this.onFlush=void 0;var a=t.config;this.hls=t,this.id=e,this.useWorker=!!a.enableWorker,this.onTransmuxComplete=r,this.onFlush=n;var s=function(t,e){(e=e||{}).frag=i.frag,e.id=i.id,t===b.ERROR&&(i.error=e.error),i.hls.trigger(t,e)};this.observer=new gi,this.observer.on(b.FRAG_DECRYPTED,s),this.observer.on(b.ERROR,s);var u,l,c,A,d=qt(a.preferManagedMediaSource)||{isTypeSupported:function(){return!1}},f={mpeg:d.isTypeSupported("audio/mpeg"),mp3:d.isTypeSupported('audio/mp4; codecs="mp3"'),ac3:d.isTypeSupported('audio/mp4; codecs="ac-3"')},h=navigator.vendor;if(!this.useWorker||"undefined"==typeof Worker||(a.workerPath,0))this.transmuxer=new ci(this.observer,f,a,h,e);else try{a.workerPath?(S.log("loading Web Worker "+a.workerPath+' for "'+e+'"'),this.workerContext=(c=a.workerPath,A=new self.URL(c,self.location.href).href,{worker:new self.Worker(A),scriptURL:A})):(S.log('injecting Web Worker for "'+e+'"'),this.workerContext=(u=new self.Blob(["var exports={};var module={exports:exports};function define(f){f()};define.amd=true;("+o.toString()+")(true);"],{type:"text/javascript"}),l=self.URL.createObjectURL(u),{worker:new self.Worker(l),objectURL:l})),this.onwmsg=function(t){return i.onWorkerMessage(t)};var p=this.workerContext.worker;p.addEventListener("message",this.onwmsg),p.onerror=function(t){var r=new Error(t.message+"  ("+t.filename+":"+t.lineno+")");a.enableWorker=!1,S.warn('Error in "'+e+'" Web Worker, fallback to inline'),i.hls.trigger(b.ERROR,{type:_.OTHER_ERROR,details:B.INTERNAL_EXCEPTION,fatal:!1,event:"demuxerWorker",error:r})},p.postMessage({cmd:"init",typeSupported:f,vendor:h,id:e,config:JSON.stringify(a)})}catch(o){S.warn('Error setting up "'+e+'" Web Worker, fallback to inline',o),this.resetWorker(),this.error=null,this.transmuxer=new ci(this.observer,f,a,h,e)}}var e=t.prototype;return e.resetWorker=function(){if(this.workerContext){var t=this.workerContext,e=t.worker,r=t.objectURL;r&&self.URL.revokeObjectURL(r),e.removeEventListener("message",this.onwmsg),e.onerror=null,e.terminate(),this.workerContext=null}},e.destroy=function(){if(this.workerContext)this.resetWorker(),this.onwmsg=void 0;else{var t=this.transmuxer;t&&(t.destroy(),this.transmuxer=null)}var e=this.observer;e&&e.removeAllListeners(),this.frag=null,this.observer=null,this.hls=null},e.push=function(t,e,r,n,i,a,s,o,u,l){var c,A,d=this;u.transmuxing.start=self.performance.now();var f=this.transmuxer,h=a?a.start:i.start,p=i.decryptdata,g=this.frag,v=!(g&&i.cc===g.cc),m=!(g&&u.level===g.level),y=g?u.sn-g.sn:-1,w=this.part?u.part-this.part.index:-1,b=0===y&&u.id>1&&u.id===(null==g?void 0:g.stats.chunkCount),_=!m&&(1===y||0===y&&(1===w||b&&w<=0)),B=self.performance.now();(m||y||0===i.stats.parsing.start)&&(i.stats.parsing.start=B),!a||!w&&_||(a.stats.parsing.start=B);var C=!(g&&(null==(c=i.initSegment)?void 0:c.url)===(null==(A=g.initSegment)?void 0:A.url)),E=new hi(v,_,o,m,h,C);if(!_||v||C){S.log("[transmuxer-interface, "+i.type+"]: Starting new transmux session for sn: "+u.sn+" p: "+u.part+" level: "+u.level+" id: "+u.id+"\n        discontinuity: "+v+"\n        trackSwitch: "+m+"\n        contiguous: "+_+"\n        accurateTimeOffset: "+o+"\n        timeOffset: "+h+"\n        initSegmentChange: "+C);var x=new fi(r,n,e,s,l);this.configureTransmuxer(x)}if(this.frag=i,this.part=a,this.workerContext)this.workerContext.worker.postMessage({cmd:"demux",data:t,decryptdata:p,chunkMeta:u,state:E},t instanceof ArrayBuffer?[t]:[]);else if(f){var T=f.push(t,p,u,E);di(T)?(f.async=!0,T.then((function(t){d.handleTransmuxComplete(t)})).catch((function(t){d.transmuxerError(t,u,"transmuxer-interface push error")}))):(f.async=!1,this.handleTransmuxComplete(T))}},e.flush=function(t){var e=this;t.transmuxing.start=self.performance.now();var r=this.transmuxer;if(this.workerContext)this.workerContext.worker.postMessage({cmd:"flush",chunkMeta:t});else if(r){var n=r.flush(t);di(n)||r.async?(di(n)||(n=Promise.resolve(n)),n.then((function(r){e.handleFlushResult(r,t)})).catch((function(r){e.transmuxerError(r,t,"transmuxer-interface flush error")}))):this.handleFlushResult(n,t)}},e.transmuxerError=function(t,e,r){this.hls&&(this.error=t,this.hls.trigger(b.ERROR,{type:_.MEDIA_ERROR,details:B.FRAG_PARSING_ERROR,chunkMeta:e,fatal:!1,error:t,err:t,reason:r}))},e.handleFlushResult=function(t,e){var r=this;t.forEach((function(t){r.handleTransmuxComplete(t)})),this.onFlush(e)},e.onWorkerMessage=function(t){var e=t.data,r=this.hls;switch(e.event){case"init":var n,i=null==(n=this.workerContext)?void 0:n.objectURL;i&&self.URL.revokeObjectURL(i);break;case"transmuxComplete":this.handleTransmuxComplete(e.data);break;case"flush":this.onFlush(e.data);break;case"workerLog":S[e.data.logType]&&S[e.data.logType](e.data.message);break;default:e.data=e.data||{},e.data.frag=this.frag,e.data.id=this.id,r.trigger(e.event,e.data)}},e.configureTransmuxer=function(t){var e=this.transmuxer;this.workerContext?this.workerContext.worker.postMessage({cmd:"configure",config:t}):e&&e.configure(t)},e.handleTransmuxComplete=function(t){t.chunkMeta.transmuxing.end=self.performance.now(),this.onTransmuxComplete(t)},t}();function bi(t,e){if(t.length!==e.length)return!1;for(var r=0;r<t.length;r++)if(!_i(t[r].attrs,e[r].attrs))return!1;return!0}function _i(t,e,r){var n=t["STABLE-RENDITION-ID"];return n&&!r?n===e["STABLE-RENDITION-ID"]:!(r||["LANGUAGE","NAME","CHARACTERISTICS","AUTOSELECT","DEFAULT","FORCED","ASSOC-LANGUAGE"]).some((function(r){return t[r]!==e[r]}))}function Bi(t,e){return e.label.toLowerCase()===t.name.toLowerCase()&&(!e.language||e.language.toLowerCase()===(t.lang||"").toLowerCase())}var Ci=function(t){function r(e,r,n){var i;return(i=t.call(this,e,r,n,"[audio-stream-controller]",Ee)||this).videoBuffer=null,i.videoTrackCC=-1,i.waitingVideoCC=-1,i.bufferedTrack=null,i.switchingTrack=null,i.trackId=-1,i.waitingData=null,i.mainDetails=null,i.flushing=!1,i.bufferFlushed=!1,i.cachedTrackLoadedData=null,i._registerListeners(),i}c(r,t);var n=r.prototype;return n.onHandlerDestroying=function(){this._unregisterListeners(),t.prototype.onHandlerDestroying.call(this),this.mainDetails=null,this.bufferedTrack=null,this.switchingTrack=null},n._registerListeners=function(){var t=this.hls;t.on(b.MEDIA_ATTACHED,this.onMediaAttached,this),t.on(b.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(b.MANIFEST_LOADING,this.onManifestLoading,this),t.on(b.LEVEL_LOADED,this.onLevelLoaded,this),t.on(b.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),t.on(b.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),t.on(b.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),t.on(b.ERROR,this.onError,this),t.on(b.BUFFER_RESET,this.onBufferReset,this),t.on(b.BUFFER_CREATED,this.onBufferCreated,this),t.on(b.BUFFER_FLUSHING,this.onBufferFlushing,this),t.on(b.BUFFER_FLUSHED,this.onBufferFlushed,this),t.on(b.INIT_PTS_FOUND,this.onInitPtsFound,this),t.on(b.FRAG_BUFFERED,this.onFragBuffered,this)},n._unregisterListeners=function(){var t=this.hls;t.off(b.MEDIA_ATTACHED,this.onMediaAttached,this),t.off(b.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(b.MANIFEST_LOADING,this.onManifestLoading,this),t.off(b.LEVEL_LOADED,this.onLevelLoaded,this),t.off(b.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),t.off(b.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),t.off(b.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),t.off(b.ERROR,this.onError,this),t.off(b.BUFFER_RESET,this.onBufferReset,this),t.off(b.BUFFER_CREATED,this.onBufferCreated,this),t.off(b.BUFFER_FLUSHING,this.onBufferFlushing,this),t.off(b.BUFFER_FLUSHED,this.onBufferFlushed,this),t.off(b.INIT_PTS_FOUND,this.onInitPtsFound,this),t.off(b.FRAG_BUFFERED,this.onFragBuffered,this)},n.onInitPtsFound=function(t,e){var r=e.frag,n=e.id,i=e.initPTS,a=e.timescale;if("main"===n){var s=r.cc;this.initPTS[r.cc]={baseTime:i,timescale:a},this.log("InitPTS for cc: "+s+" found from main: "+i),this.videoTrackCC=s,this.state===an&&this.tick()}},n.startLoad=function(t){if(!this.levels)return this.startPosition=t,void(this.state=zr);var e=this.lastCurrentTime;this.stopLoad(),this.setInterval(100),e>0&&-1===t?(this.log("Override startPosition with lastCurrentTime @"+e.toFixed(3)),t=e,this.state=Yr):(this.loadedmetadata=!1,this.state=Zr),this.nextLoadPosition=this.startPosition=this.lastCurrentTime=t,this.tick()},n.doTick=function(){switch(this.state){case Yr:this.doTickIdle();break;case Zr:var e,r=this.levels,n=this.trackId,i=null==r||null==(e=r[n])?void 0:e.details;if(i){if(this.waitForCdnTuneIn(i))break;this.state=an}break;case Jr:var a,s=performance.now(),o=this.retryDate;if(!o||s>=o||null!=(a=this.media)&&a.seeking){var u=this.levels,l=this.trackId;this.log("RetryDate reached, switch back to IDLE state"),this.resetStartWhenNotLoaded((null==u?void 0:u[l])||null),this.state=Yr}break;case an:var c=this.waitingData;if(c){var A=c.frag,d=c.part,f=c.cache,h=c.complete;if(void 0!==this.initPTS[A.cc]){this.waitingData=null,this.waitingVideoCC=-1,this.state=Xr;var p={frag:A,part:d,payload:f.flush(),networkDetails:null};this._handleFragmentLoadProgress(p),h&&t.prototype._handleFragmentLoadComplete.call(this,p)}else if(this.videoTrackCC!==this.waitingVideoCC)this.log("Waiting fragment cc ("+A.cc+") cancelled because video is at cc "+this.videoTrackCC),this.clearWaitingFragment();else{var g=this.getLoadPosition(),v=Dr.bufferInfo(this.mediaBuffer,g,this.config.maxBufferHole);lr(v.end,this.config.maxFragLookUpTolerance,A)<0&&(this.log("Waiting fragment cc ("+A.cc+") @ "+A.start+" cancelled because another fragment at "+v.end+" is needed"),this.clearWaitingFragment())}}else this.state=Yr}this.onTickEnd()},n.clearWaitingFragment=function(){var t=this.waitingData;t&&(this.fragmentTracker.removeFragment(t.frag),this.waitingData=null,this.waitingVideoCC=-1,this.state=Yr)},n.resetLoadingState=function(){this.clearWaitingFragment(),t.prototype.resetLoadingState.call(this)},n.onTickEnd=function(){var t=this.media;null!=t&&t.readyState&&(this.lastCurrentTime=t.currentTime)},n.doTickIdle=function(){var t=this.hls,e=this.levels,r=this.media,n=this.trackId,i=t.config;if((r||!this.startFragRequested&&i.startFragPrefetch)&&null!=e&&e[n]){var a=e[n],s=a.details;if(!s||s.live&&this.levelLastLoaded!==a||this.waitForCdnTuneIn(s))this.state=Zr;else{var o=this.mediaBuffer?this.mediaBuffer:this.media;this.bufferFlushed&&o&&(this.bufferFlushed=!1,this.afterBufferFlushed(o,U,Ee));var u=this.getFwdBufferInfo(o,Ee);if(null!==u){var l=this.bufferedTrack,c=this.switchingTrack;if(!c&&this._streamEnded(u,s))return t.trigger(b.BUFFER_EOS,{type:"audio"}),void(this.state=rn);var A=this.getFwdBufferInfo(this.videoBuffer?this.videoBuffer:this.media,Ce),d=u.len,f=this.getMaxBufferLength(null==A?void 0:A.len),h=s.fragments,p=h[0].start,g=this.flushing?this.getLoadPosition():u.end;if(c&&r){var v=this.getLoadPosition();l&&!_i(c.attrs,l.attrs)&&(g=v),s.PTSKnown&&v<p&&(u.end>p||u.nextStart)&&(this.log("Alt audio track ahead of main track, seek to start of alt audio track"),r.currentTime=p+.05)}if(!(d>=f&&!c&&g<h[h.length-1].start)){var m=this.getNextFragment(g,s),y=!1;if(m&&this.isLoopLoading(m,g)&&(y=!!m.gap,m=this.getNextFragmentLoopLoading(m,s,u,Ce,f)),m){var w=A&&m.start>A.end+s.targetduration;if(w||(null==A||!A.len)&&u.len){var _=this.getAppendedFrag(m.start,Ce);if(null===_)return;if(y||(y=!!_.gap||!!w&&0===A.len),w&&!y||y&&u.nextStart&&u.nextStart<_.end)return}this.loadFragment(m,a,g)}else this.bufferFlushed=!0}}}}},n.getMaxBufferLength=function(e){var r=t.prototype.getMaxBufferLength.call(this);return e?Math.min(Math.max(r,e),this.config.maxMaxBufferLength):r},n.onMediaDetaching=function(){this.videoBuffer=null,this.bufferFlushed=this.flushing=!1,t.prototype.onMediaDetaching.call(this)},n.onAudioTracksUpdated=function(t,e){var r=e.audioTracks;this.resetTransmuxer(),this.levels=r.map((function(t){return new Ve(t)}))},n.onAudioTrackSwitching=function(t,e){var r=!!e.url;this.trackId=e.id;var n=this.fragCurrent;n&&(n.abortRequests(),this.removeUnbufferedFrags(n.start)),this.resetLoadingState(),r?this.setInterval(100):this.resetTransmuxer(),r?(this.switchingTrack=e,this.state=Yr,this.flushAudioIfNeeded(e)):(this.switchingTrack=null,this.bufferedTrack=e,this.state=zr),this.tick()},n.onManifestLoading=function(){this.fragmentTracker.removeAllFragments(),this.startPosition=this.lastCurrentTime=0,this.bufferFlushed=this.flushing=!1,this.levels=this.mainDetails=this.waitingData=this.bufferedTrack=this.cachedTrackLoadedData=this.switchingTrack=null,this.startFragRequested=!1,this.trackId=this.videoTrackCC=this.waitingVideoCC=-1},n.onLevelLoaded=function(t,e){this.mainDetails=e.details,null!==this.cachedTrackLoadedData&&(this.hls.trigger(b.AUDIO_TRACK_LOADED,this.cachedTrackLoadedData),this.cachedTrackLoadedData=null)},n.onAudioTrackLoaded=function(t,e){var r;if(null!=this.mainDetails){var n=this.levels,i=e.details,a=e.id;if(n){this.log("Audio track "+a+" loaded ["+i.startSN+","+i.endSN+"]"+(i.lastPartSn?"[part-"+i.lastPartSn+"-"+i.lastPartIndex+"]":"")+",duration:"+i.totalduration);var s=n[a],o=0;if(i.live||null!=(r=s.details)&&r.live){this.checkLiveUpdate(i);var u,l=this.mainDetails;if(i.deltaUpdateFailed||!l)return;!s.details&&i.hasProgramDateTime&&l.hasProgramDateTime?(Mr(i,l),o=i.fragments[0].start):o=this.alignPlaylists(i,s.details,null==(u=this.levelLastLoaded)?void 0:u.details)}s.details=i,this.levelLastLoaded=s,this.startFragRequested||!this.mainDetails&&i.live||this.setStartPosition(s.details,o),this.state!==Zr||this.waitForCdnTuneIn(i)||(this.state=Yr),this.tick()}else this.warn("Audio tracks were reset while loading level "+a)}else this.cachedTrackLoadedData=e},n._handleFragmentLoadProgress=function(t){var e,r=t.frag,n=t.part,i=t.payload,a=this.config,s=this.trackId,o=this.levels;if(o){var u=o[s];if(u){var l=u.details;if(!l)return this.warn("Audio track details undefined on fragment load progress"),void this.removeUnbufferedFrags(r.start);var c=a.defaultAudioCodec||u.audioCodec||"mp4a.40.2",A=this.transmuxer;A||(A=this.transmuxer=new wi(this.hls,Ee,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)));var d=this.initPTS[r.cc],f=null==(e=r.initSegment)?void 0:e.data;if(void 0!==d){var h=n?n.index:-1,p=-1!==h,g=new Rr(r.level,r.sn,r.stats.chunkCount,i.byteLength,h,p);A.push(i,f,c,"",r,n,l.totalduration,!1,g,d)}else this.log("Unknown video PTS for cc "+r.cc+", waiting for video PTS before demuxing audio frag "+r.sn+" of ["+l.startSN+" ,"+l.endSN+"],track "+s),(this.waitingData=this.waitingData||{frag:r,part:n,cache:new un,complete:!1}).cache.push(new Uint8Array(i)),this.waitingVideoCC=this.videoTrackCC,this.state=an}else this.warn("Audio track is undefined on fragment load progress")}else this.warn("Audio tracks were reset while fragment load was in progress. Fragment "+r.sn+" of level "+r.level+" will not be buffered")},n._handleFragmentLoadComplete=function(e){this.waitingData?this.waitingData.complete=!0:t.prototype._handleFragmentLoadComplete.call(this,e)},n.onBufferReset=function(){this.mediaBuffer=this.videoBuffer=null,this.loadedmetadata=!1},n.onBufferCreated=function(t,e){var r=e.tracks.audio;r&&(this.mediaBuffer=r.buffer||null),e.tracks.video&&(this.videoBuffer=e.tracks.video.buffer||null)},n.onFragBuffered=function(t,r){var n=r.frag,i=r.part;if(n.type===Ee)if(this.fragContextChanged(n))this.warn("Fragment "+n.sn+(i?" p: "+i.index:"")+" of level "+n.level+" finished buffering, but was aborted. state: "+this.state+", audioSwitch: "+(this.switchingTrack?this.switchingTrack.name:"false"));else{if("initSegment"!==n.sn){this.fragPrevious=n;var a=this.switchingTrack;a&&(this.bufferedTrack=a,this.switchingTrack=null,this.hls.trigger(b.AUDIO_TRACK_SWITCHED,e({},a)))}this.fragBufferedComplete(n,i)}else if(!this.loadedmetadata&&n.type===Ce){var s=this.videoBuffer||this.media;s&&Dr.getBuffered(s).length&&(this.loadedmetadata=!0)}},n.onError=function(e,r){var n;if(r.fatal)this.state=nn;else switch(r.details){case B.FRAG_GAP:case B.FRAG_PARSING_ERROR:case B.FRAG_DECRYPT_ERROR:case B.FRAG_LOAD_ERROR:case B.FRAG_LOAD_TIMEOUT:case B.KEY_LOAD_ERROR:case B.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(Ee,r);break;case B.AUDIO_TRACK_LOAD_ERROR:case B.AUDIO_TRACK_LOAD_TIMEOUT:case B.LEVEL_PARSING_ERROR:r.levelRetry||this.state!==Zr||(null==(n=r.context)?void 0:n.type)!==_e||(this.state=Yr);break;case B.BUFFER_APPEND_ERROR:case B.BUFFER_FULL_ERROR:if(!r.parent||"audio"!==r.parent)return;if(r.details===B.BUFFER_APPEND_ERROR)return void this.resetLoadingState();this.reduceLengthAndFlushBuffer(r)&&(this.bufferedTrack=null,t.prototype.flushMainBuffer.call(this,0,Number.POSITIVE_INFINITY,"audio"));break;case B.INTERNAL_EXCEPTION:this.recoverWorkerError(r)}},n.onBufferFlushing=function(t,e){e.type!==O&&(this.flushing=!0)},n.onBufferFlushed=function(t,e){var r=e.type;if(r!==O){this.flushing=!1,this.bufferFlushed=!0,this.state===rn&&(this.state=Yr);var n=this.mediaBuffer||this.media;n&&(this.afterBufferFlushed(n,r,Ee),this.tick())}},n._handleTransmuxComplete=function(t){var e,r="audio",n=this.hls,i=t.remuxResult,a=t.chunkMeta,s=this.getCurrentContext(a);if(s){var o=s.frag,u=s.part,c=s.level,A=c.details,d=i.audio,f=i.text,h=i.id3,p=i.initSegment;if(!this.fragContextChanged(o)&&A){if(this.state=tn,this.switchingTrack&&d&&this.completeAudioSwitch(this.switchingTrack),null!=p&&p.tracks){var g=o.initSegment||o;this._bufferInitSegment(c,p.tracks,g,a),n.trigger(b.FRAG_PARSING_INIT_SEGMENT,{frag:g,id:r,tracks:p.tracks})}if(d){var v=d.startPTS,m=d.endPTS,y=d.startDTS,w=d.endDTS;u&&(u.elementaryStreams[U]={startPTS:v,endPTS:m,startDTS:y,endDTS:w}),o.setElementaryStreamInfo(U,v,m,y,w),this.bufferFragmentData(d,o,u,a)}if(null!=h&&null!=(e=h.samples)&&e.length){var _=l({id:r,frag:o,details:A},h);n.trigger(b.FRAG_PARSING_METADATA,_)}if(f){var B=l({id:r,frag:o,details:A},f);n.trigger(b.FRAG_PARSING_USERDATA,B)}}else this.fragmentTracker.removeFragment(o)}else this.resetWhenMissingContext(a)},n._bufferInitSegment=function(t,e,r,n){if(this.state===tn){e.video&&delete e.video;var i=e.audio;if(i){i.id="audio";var a=t.audioCodec;this.log("Init audio buffer, container:"+i.container+", codecs[level/parsed]=["+a+"/"+i.codec+"]"),a&&1===a.split(",").length&&(i.levelCodec=a),this.hls.trigger(b.BUFFER_CODECS,e);var s=i.initSegment;if(null!=s&&s.byteLength){var o={type:"audio",frag:r,part:null,chunkMeta:n,parent:r.type,data:s};this.hls.trigger(b.BUFFER_APPENDING,o)}this.tickImmediate()}}},n.loadFragment=function(e,r,n){var i,a=this.fragmentTracker.getState(e);if(this.fragCurrent=e,this.switchingTrack||a===Er||a===Tr)if("initSegment"===e.sn)this._loadInitSegment(e,r);else if(null!=(i=r.details)&&i.live&&!this.initPTS[e.cc]){this.log("Waiting for video PTS in continuity counter "+e.cc+" of live stream before loading audio fragment "+e.sn+" of level "+this.trackId),this.state=an;var s=this.mainDetails;s&&s.fragments[0].start!==r.details.fragments[0].start&&Mr(r.details,s)}else this.startFragRequested=!0,t.prototype.loadFragment.call(this,e,r,n);else this.clearTrackerIfNeeded(e)},n.flushAudioIfNeeded=function(e){var r=this.media,n=this.bufferedTrack,i=null==n?void 0:n.attrs,a=e.attrs;r&&i&&(i.CHANNELS!==a.CHANNELS||n.name!==e.name||n.lang!==e.lang)&&(this.log("Switching audio track : flushing all audio"),t.prototype.flushMainBuffer.call(this,0,Number.POSITIVE_INFINITY,"audio"),this.bufferedTrack=null)},n.completeAudioSwitch=function(t){var r=this.hls;this.flushAudioIfNeeded(t),this.bufferedTrack=t,this.switchingTrack=null,r.trigger(b.AUDIO_TRACK_SWITCHED,e({},t))},r}(on),Ei=function(t){function r(e){var r;return(r=t.call(this,e,"[audio-track-controller]")||this).tracks=[],r.groupIds=null,r.tracksInGroup=[],r.trackId=-1,r.currentTrack=null,r.selectDefaultTrack=!0,r.registerListeners(),r}c(r,t);var n=r.prototype;return n.registerListeners=function(){var t=this.hls;t.on(b.MANIFEST_LOADING,this.onManifestLoading,this),t.on(b.MANIFEST_PARSED,this.onManifestParsed,this),t.on(b.LEVEL_LOADING,this.onLevelLoading,this),t.on(b.LEVEL_SWITCHING,this.onLevelSwitching,this),t.on(b.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),t.on(b.ERROR,this.onError,this)},n.unregisterListeners=function(){var t=this.hls;t.off(b.MANIFEST_LOADING,this.onManifestLoading,this),t.off(b.MANIFEST_PARSED,this.onManifestParsed,this),t.off(b.LEVEL_LOADING,this.onLevelLoading,this),t.off(b.LEVEL_SWITCHING,this.onLevelSwitching,this),t.off(b.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),t.off(b.ERROR,this.onError,this)},n.destroy=function(){this.unregisterListeners(),this.tracks.length=0,this.tracksInGroup.length=0,this.currentTrack=null,t.prototype.destroy.call(this)},n.onManifestLoading=function(){this.tracks=[],this.tracksInGroup=[],this.groupIds=null,this.currentTrack=null,this.trackId=-1,this.selectDefaultTrack=!0},n.onManifestParsed=function(t,e){this.tracks=e.audioTracks||[]},n.onAudioTrackLoaded=function(t,e){var r=e.id,n=e.groupId,i=e.details,a=this.tracksInGroup[r];if(a&&a.groupId===n){var s=a.details;a.details=e.details,this.log("Audio track "+r+' "'+a.name+'" lang:'+a.lang+" group:"+n+" loaded ["+i.startSN+"-"+i.endSN+"]"),r===this.trackId&&this.playlistLoaded(r,e,s)}else this.warn("Audio track with id:"+r+" and group:"+n+" not found in active group "+(null==a?void 0:a.groupId))},n.onLevelLoading=function(t,e){this.switchLevel(e.level)},n.onLevelSwitching=function(t,e){this.switchLevel(e.level)},n.switchLevel=function(t){var e=this.hls.levels[t];if(e){var r=e.audioGroups||null,n=this.groupIds,i=this.currentTrack;if(!r||(null==n?void 0:n.length)!==(null==r?void 0:r.length)||null!=r&&r.some((function(t){return-1===(null==n?void 0:n.indexOf(t))}))){this.groupIds=r,this.trackId=-1,this.currentTrack=null;var a=this.tracks.filter((function(t){return!r||-1!==r.indexOf(t.groupId)}));if(a.length)this.selectDefaultTrack&&!a.some((function(t){return t.default}))&&(this.selectDefaultTrack=!1),a.forEach((function(t,e){t.id=e}));else if(!i&&!this.tracksInGroup.length)return;this.tracksInGroup=a;var s=this.hls.config.audioPreference;if(!i&&s){var o=yr(s,a,br);if(o>-1)i=a[o];else{var u=yr(s,this.tracks);i=this.tracks[u]}}var l=this.findTrackId(i);-1===l&&i&&(l=this.findTrackId(null));var c={audioTracks:a};this.log("Updating audio tracks, "+a.length+" track(s) found in group(s): "+(null==r?void 0:r.join(","))),this.hls.trigger(b.AUDIO_TRACKS_UPDATED,c);var A=this.trackId;if(-1!==l&&-1===A)this.setAudioTrack(l);else if(a.length&&-1===A){var d,f=new Error("No audio track selected for current audio group-ID(s): "+(null==(d=this.groupIds)?void 0:d.join(","))+" track count: "+a.length);this.warn(f.message),this.hls.trigger(b.ERROR,{type:_.MEDIA_ERROR,details:B.AUDIO_TRACK_LOAD_ERROR,fatal:!0,error:f})}}else this.shouldReloadPlaylist(i)&&this.setAudioTrack(this.trackId)}},n.onError=function(t,e){!e.fatal&&e.context&&(e.context.type!==_e||e.context.id!==this.trackId||this.groupIds&&-1===this.groupIds.indexOf(e.context.groupId)||(this.requestScheduled=-1,this.checkRetry(e)))},n.setAudioOption=function(t){var e=this.hls;if(e.config.audioPreference=t,t){var r=this.allAudioTracks;if(this.selectDefaultTrack=!1,r.length){var n=this.currentTrack;if(n&&wr(t,n,br))return n;var i=yr(t,this.tracksInGroup,br);if(i>-1){var a=this.tracksInGroup[i];return this.setAudioTrack(i),a}if(n){var s=e.loadLevel;-1===s&&(s=e.firstAutoLevel);var o=function(t,e,r,n,i){var a=e[n],s=e.reduce((function(t,e,r){var n=e.uri;return(t[n]||(t[n]=[])).push(r),t}),{})[a.uri];s.length>1&&(n=Math.max.apply(Math,s));var o=a.videoRange,u=a.frameRate,l=a.codecSet.substring(0,4),c=_r(e,n,(function(e){if(e.videoRange!==o||e.frameRate!==u||e.codecSet.substring(0,4)!==l)return!1;var n=e.audioGroups,a=r.filter((function(t){return!n||-1!==n.indexOf(t.groupId)}));return yr(t,a,i)>-1}));return c>-1?c:_r(e,n,(function(e){var n=e.audioGroups,a=r.filter((function(t){return!n||-1!==n.indexOf(t.groupId)}));return yr(t,a,i)>-1}))}(t,e.levels,r,s,br);if(-1===o)return null;e.nextLoadLevel=o}if(t.channels||t.audioCodec){var u=yr(t,r);if(u>-1)return r[u]}}}return null},n.setAudioTrack=function(t){var r=this.tracksInGroup;if(t<0||t>=r.length)this.warn("Invalid audio track id: "+t);else{this.clearTimer(),this.selectDefaultTrack=!1;var n=this.currentTrack,i=r[t],a=i.details&&!i.details.live;if(!(t===this.trackId&&i===n&&a||(this.log("Switching to audio-track "+t+' "'+i.name+'" lang:'+i.lang+" group:"+i.groupId+" channels:"+i.channels),this.trackId=t,this.currentTrack=i,this.hls.trigger(b.AUDIO_TRACK_SWITCHING,e({},i)),a))){var s=this.switchParams(i.url,null==n?void 0:n.details);this.loadPlaylist(s)}}},n.findTrackId=function(t){for(var e=this.tracksInGroup,r=0;r<e.length;r++){var n=e[r];if((!this.selectDefaultTrack||n.default)&&(!t||wr(t,n,br)))return r}if(t){for(var i=t.name,a=t.lang,s=t.assocLang,o=t.characteristics,u=t.audioCodec,l=t.channels,c=0;c<e.length;c++)if(wr({name:i,lang:a,assocLang:s,characteristics:o,audioCodec:u,channels:l},e[c],br))return c;for(var A=0;A<e.length;A++){var d=e[A];if(_i(t.attrs,d.attrs,["LANGUAGE","ASSOC-LANGUAGE","CHARACTERISTICS"]))return A}for(var f=0;f<e.length;f++){var h=e[f];if(_i(t.attrs,h.attrs,["LANGUAGE"]))return f}}return-1},n.loadPlaylist=function(e){var r=this.currentTrack;if(this.shouldLoadPlaylist(r)&&r){t.prototype.loadPlaylist.call(this);var n=r.id,i=r.groupId,a=r.url;if(e)try{a=e.addDirectives(a)}catch(t){this.warn("Could not construct new URL with HLS Delivery Directives: "+t)}this.log("loading audio-track playlist "+n+' "'+r.name+'" lang:'+r.lang+" group:"+i),this.clearTimer(),this.hls.trigger(b.AUDIO_TRACK_LOADING,{url:a,id:n,groupId:i,deliveryDirectives:e||null})}},a(r,[{key:"allAudioTracks",get:function(){return this.tracks}},{key:"audioTracks",get:function(){return this.tracksInGroup}},{key:"audioTrack",get:function(){return this.trackId},set:function(t){this.selectDefaultTrack=!1,this.setAudioTrack(t)}}]),r}(dr),xi=function(t){function e(e,r,n){var i;return(i=t.call(this,e,r,n,"[subtitle-stream-controller]",xe)||this).currentTrackId=-1,i.tracksBuffered=[],i.mainDetails=null,i._registerListeners(),i}c(e,t);var r=e.prototype;return r.onHandlerDestroying=function(){this._unregisterListeners(),t.prototype.onHandlerDestroying.call(this),this.mainDetails=null},r._registerListeners=function(){var t=this.hls;t.on(b.MEDIA_ATTACHED,this.onMediaAttached,this),t.on(b.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(b.MANIFEST_LOADING,this.onManifestLoading,this),t.on(b.LEVEL_LOADED,this.onLevelLoaded,this),t.on(b.ERROR,this.onError,this),t.on(b.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),t.on(b.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),t.on(b.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),t.on(b.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),t.on(b.BUFFER_FLUSHING,this.onBufferFlushing,this),t.on(b.FRAG_BUFFERED,this.onFragBuffered,this)},r._unregisterListeners=function(){var t=this.hls;t.off(b.MEDIA_ATTACHED,this.onMediaAttached,this),t.off(b.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(b.MANIFEST_LOADING,this.onManifestLoading,this),t.off(b.LEVEL_LOADED,this.onLevelLoaded,this),t.off(b.ERROR,this.onError,this),t.off(b.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),t.off(b.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),t.off(b.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),t.off(b.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),t.off(b.BUFFER_FLUSHING,this.onBufferFlushing,this),t.off(b.FRAG_BUFFERED,this.onFragBuffered,this)},r.startLoad=function(t){this.stopLoad(),this.state=Yr,this.setInterval(500),this.nextLoadPosition=this.startPosition=this.lastCurrentTime=t,this.tick()},r.onManifestLoading=function(){this.mainDetails=null,this.fragmentTracker.removeAllFragments()},r.onMediaDetaching=function(){this.tracksBuffered=[],t.prototype.onMediaDetaching.call(this)},r.onLevelLoaded=function(t,e){this.mainDetails=e.details},r.onSubtitleFragProcessed=function(t,e){var r=e.frag,n=e.success;if(this.fragPrevious=r,this.state=Yr,n){var i=this.tracksBuffered[this.currentTrackId];if(i){for(var a,s=r.start,o=0;o<i.length;o++)if(s>=i[o].start&&s<=i[o].end){a=i[o];break}var u=r.start+r.duration;a?a.end=u:(a={start:s,end:u},i.push(a)),this.fragmentTracker.fragBuffered(r),this.fragBufferedComplete(r,null)}}},r.onBufferFlushing=function(t,e){var r=e.startOffset,n=e.endOffset;if(0===r&&n!==Number.POSITIVE_INFINITY){var i=n-1;if(i<=0)return;e.endOffsetSubtitles=Math.max(0,i),this.tracksBuffered.forEach((function(t){for(var e=0;e<t.length;)if(t[e].end<=i)t.shift();else{if(!(t[e].start<i))break;t[e].start=i,e++}})),this.fragmentTracker.removeFragmentsInRange(r,i,xe)}},r.onFragBuffered=function(t,e){var r;this.loadedmetadata||e.frag.type!==Ce||null!=(r=this.media)&&r.buffered.length&&(this.loadedmetadata=!0)},r.onError=function(t,e){var r=e.frag;(null==r?void 0:r.type)===xe&&(this.fragCurrent&&this.fragCurrent.abortRequests(),this.state!==zr&&(this.state=Yr))},r.onSubtitleTracksUpdated=function(t,e){var r=this,n=e.subtitleTracks;this.levels&&!bi(this.levels,n)?(this.tracksBuffered=[],this.levels=n.map((function(t){var e=new Ve(t);return r.tracksBuffered[e.id]=[],e})),this.fragmentTracker.removeFragmentsInRange(0,Number.POSITIVE_INFINITY,xe),this.fragPrevious=null,this.mediaBuffer=null):this.levels=n.map((function(t){return new Ve(t)}))},r.onSubtitleTrackSwitch=function(t,e){var r;if(this.currentTrackId=e.id,null!=(r=this.levels)&&r.length&&-1!==this.currentTrackId){var n=this.levels[this.currentTrackId];null!=n&&n.details?this.mediaBuffer=this.mediaBufferTimeRanges:this.mediaBuffer=null,n&&this.setInterval(500)}else this.clearInterval()},r.onSubtitleTrackLoaded=function(t,e){var r,n=this.currentTrackId,i=this.levels,a=e.details,s=e.id;if(i){var o=i[n];if(!(s>=i.length||s!==n)&&o){this.log("Subtitle track "+s+" loaded ["+a.startSN+","+a.endSN+"]"+(a.lastPartSn?"[part-"+a.lastPartSn+"-"+a.lastPartIndex+"]":"")+",duration:"+a.totalduration),this.mediaBuffer=this.mediaBufferTimeRanges;var u=0;if(a.live||null!=(r=o.details)&&r.live){var l=this.mainDetails;if(a.deltaUpdateFailed||!l)return;var c,A=l.fragments[0];o.details?0===(u=this.alignPlaylists(a,o.details,null==(c=this.levelLastLoaded)?void 0:c.details))&&A&&Je(a,u=A.start):a.hasProgramDateTime&&l.hasProgramDateTime?(Mr(a,l),u=a.fragments[0].start):A&&Je(a,u=A.start)}o.details=a,this.levelLastLoaded=o,this.startFragRequested||!this.mainDetails&&a.live||this.setStartPosition(o.details,u),this.tick(),a.live&&!this.fragCurrent&&this.media&&this.state===Yr&&(ur(null,a.fragments,this.media.currentTime,0)||(this.warn("Subtitle playlist not aligned with playback"),o.details=void 0))}}else this.warn("Subtitle tracks were reset while loading level "+s)},r._handleFragmentLoadComplete=function(t){var e=this,r=t.frag,n=t.payload,i=r.decryptdata,a=this.hls;if(!this.fragContextChanged(r)&&n&&n.byteLength>0&&null!=i&&i.key&&i.iv&&"AES-128"===i.method){var s=performance.now();this.decrypter.decrypt(new Uint8Array(n),i.key.buffer,i.iv.buffer).catch((function(t){throw a.trigger(b.ERROR,{type:_.MEDIA_ERROR,details:B.FRAG_DECRYPT_ERROR,fatal:!1,error:t,reason:t.message,frag:r}),t})).then((function(t){var e=performance.now();a.trigger(b.FRAG_DECRYPTED,{frag:r,payload:t,stats:{tstart:s,tdecrypt:e}})})).catch((function(t){e.warn(t.name+": "+t.message),e.state=Yr}))}},r.doTick=function(){if(this.media){if(this.state===Yr){var t=this.currentTrackId,e=this.levels,r=null==e?void 0:e[t];if(!r||!e.length||!r.details)return;var n=this.config,i=this.getLoadPosition(),a=Dr.bufferedInfo(this.tracksBuffered[this.currentTrackId]||[],i,n.maxBufferHole),s=a.end,o=a.len,u=this.getFwdBufferInfo(this.media,Ce),l=r.details;if(o>this.getMaxBufferLength(null==u?void 0:u.len)+l.levelTargetDuration)return;var c=l.fragments,A=c.length,d=l.edge,f=null,h=this.fragPrevious;if(s<d){var p=n.maxFragLookUpTolerance,g=s>d-p?0:p;!(f=ur(h,c,Math.max(c[0].start,s),g))&&h&&h.start<c[0].start&&(f=c[0])}else f=c[A-1];if(!f)return;if("initSegment"!==(f=this.mapToInitFragWhenRequired(f)).sn){var v=c[f.sn-l.startSN-1];v&&v.cc===f.cc&&this.fragmentTracker.getState(v)===Er&&(f=v)}this.fragmentTracker.getState(f)===Er&&this.loadFragment(f,r,s)}}else this.state=Yr},r.getMaxBufferLength=function(e){var r=t.prototype.getMaxBufferLength.call(this);return e?Math.max(r,e):r},r.loadFragment=function(e,r,n){this.fragCurrent=e,"initSegment"===e.sn?this._loadInitSegment(e,r):(this.startFragRequested=!0,t.prototype.loadFragment.call(this,e,r,n))},a(e,[{key:"mediaBufferTimeRanges",get:function(){return new Ti(this.tracksBuffered[this.currentTrackId]||[])}}]),e}(on),Ti=function(t){this.buffered=void 0;var e=function(e,r,n){if((r>>>=0)>n-1)throw new DOMException("Failed to execute '"+e+"' on 'TimeRanges': The index provided ("+r+") is greater than the maximum bound ("+n+")");return t[r][e]};this.buffered={get length(){return t.length},end:function(r){return e("end",r,t.length)},start:function(r){return e("start",r,t.length)}}},Si=function(t){function e(e){var r;return(r=t.call(this,e,"[subtitle-track-controller]")||this).media=null,r.tracks=[],r.groupIds=null,r.tracksInGroup=[],r.trackId=-1,r.currentTrack=null,r.selectDefaultTrack=!0,r.queuedDefaultTrack=-1,r.asyncPollTrackChange=function(){return r.pollTrackChange(0)},r.useTextTrackPolling=!1,r.subtitlePollingInterval=-1,r._subtitleDisplay=!0,r.onTextTracksChanged=function(){if(r.useTextTrackPolling||self.clearInterval(r.subtitlePollingInterval),r.media&&r.hls.config.renderTextTracksNatively){for(var t=null,e=Re(r.media.textTracks),n=0;n<e.length;n++)if("hidden"===e[n].mode)t=e[n];else if("showing"===e[n].mode){t=e[n];break}var i=r.findTrackForTextTrack(t);r.subtitleTrack!==i&&r.setSubtitleTrack(i)}},r.registerListeners(),r}c(e,t);var r=e.prototype;return r.destroy=function(){this.unregisterListeners(),this.tracks.length=0,this.tracksInGroup.length=0,this.currentTrack=null,this.onTextTracksChanged=this.asyncPollTrackChange=null,t.prototype.destroy.call(this)},r.registerListeners=function(){var t=this.hls;t.on(b.MEDIA_ATTACHED,this.onMediaAttached,this),t.on(b.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(b.MANIFEST_LOADING,this.onManifestLoading,this),t.on(b.MANIFEST_PARSED,this.onManifestParsed,this),t.on(b.LEVEL_LOADING,this.onLevelLoading,this),t.on(b.LEVEL_SWITCHING,this.onLevelSwitching,this),t.on(b.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),t.on(b.ERROR,this.onError,this)},r.unregisterListeners=function(){var t=this.hls;t.off(b.MEDIA_ATTACHED,this.onMediaAttached,this),t.off(b.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(b.MANIFEST_LOADING,this.onManifestLoading,this),t.off(b.MANIFEST_PARSED,this.onManifestParsed,this),t.off(b.LEVEL_LOADING,this.onLevelLoading,this),t.off(b.LEVEL_SWITCHING,this.onLevelSwitching,this),t.off(b.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),t.off(b.ERROR,this.onError,this)},r.onMediaAttached=function(t,e){this.media=e.media,this.media&&(this.queuedDefaultTrack>-1&&(this.subtitleTrack=this.queuedDefaultTrack,this.queuedDefaultTrack=-1),this.useTextTrackPolling=!(this.media.textTracks&&"onchange"in this.media.textTracks),this.useTextTrackPolling?this.pollTrackChange(500):this.media.textTracks.addEventListener("change",this.asyncPollTrackChange))},r.pollTrackChange=function(t){self.clearInterval(this.subtitlePollingInterval),this.subtitlePollingInterval=self.setInterval(this.onTextTracksChanged,t)},r.onMediaDetaching=function(){this.media&&(self.clearInterval(this.subtitlePollingInterval),this.useTextTrackPolling||this.media.textTracks.removeEventListener("change",this.asyncPollTrackChange),this.trackId>-1&&(this.queuedDefaultTrack=this.trackId),Re(this.media.textTracks).forEach((function(t){Le(t)})),this.subtitleTrack=-1,this.media=null)},r.onManifestLoading=function(){this.tracks=[],this.groupIds=null,this.tracksInGroup=[],this.trackId=-1,this.currentTrack=null,this.selectDefaultTrack=!0},r.onManifestParsed=function(t,e){this.tracks=e.subtitleTracks},r.onSubtitleTrackLoaded=function(t,e){var r=e.id,n=e.groupId,i=e.details,a=this.tracksInGroup[r];if(a&&a.groupId===n){var s=a.details;a.details=e.details,this.log("Subtitle track "+r+' "'+a.name+'" lang:'+a.lang+" group:"+n+" loaded ["+i.startSN+"-"+i.endSN+"]"),r===this.trackId&&this.playlistLoaded(r,e,s)}else this.warn("Subtitle track with id:"+r+" and group:"+n+" not found in active group "+(null==a?void 0:a.groupId))},r.onLevelLoading=function(t,e){this.switchLevel(e.level)},r.onLevelSwitching=function(t,e){this.switchLevel(e.level)},r.switchLevel=function(t){var e=this.hls.levels[t];if(e){var r=e.subtitleGroups||null,n=this.groupIds,i=this.currentTrack;if(!r||(null==n?void 0:n.length)!==(null==r?void 0:r.length)||null!=r&&r.some((function(t){return-1===(null==n?void 0:n.indexOf(t))}))){this.groupIds=r,this.trackId=-1,this.currentTrack=null;var a=this.tracks.filter((function(t){return!r||-1!==r.indexOf(t.groupId)}));if(a.length)this.selectDefaultTrack&&!a.some((function(t){return t.default}))&&(this.selectDefaultTrack=!1),a.forEach((function(t,e){t.id=e}));else if(!i&&!this.tracksInGroup.length)return;this.tracksInGroup=a;var s=this.hls.config.subtitlePreference;if(!i&&s){this.selectDefaultTrack=!1;var o=yr(s,a);if(o>-1)i=a[o];else{var u=yr(s,this.tracks);i=this.tracks[u]}}var l=this.findTrackId(i);-1===l&&i&&(l=this.findTrackId(null));var c={subtitleTracks:a};this.log("Updating subtitle tracks, "+a.length+' track(s) found in "'+(null==r?void 0:r.join(","))+'" group-id'),this.hls.trigger(b.SUBTITLE_TRACKS_UPDATED,c),-1!==l&&-1===this.trackId&&this.setSubtitleTrack(l)}else this.shouldReloadPlaylist(i)&&this.setSubtitleTrack(this.trackId)}},r.findTrackId=function(t){for(var e=this.tracksInGroup,r=this.selectDefaultTrack,n=0;n<e.length;n++){var i=e[n];if((!r||i.default)&&(r||t)&&(!t||wr(i,t)))return n}if(t){for(var a=0;a<e.length;a++){var s=e[a];if(_i(t.attrs,s.attrs,["LANGUAGE","ASSOC-LANGUAGE","CHARACTERISTICS"]))return a}for(var o=0;o<e.length;o++){var u=e[o];if(_i(t.attrs,u.attrs,["LANGUAGE"]))return o}}return-1},r.findTrackForTextTrack=function(t){if(t)for(var e=this.tracksInGroup,r=0;r<e.length;r++)if(Bi(e[r],t))return r;return-1},r.onError=function(t,e){!e.fatal&&e.context&&(e.context.type!==Be||e.context.id!==this.trackId||this.groupIds&&-1===this.groupIds.indexOf(e.context.groupId)||this.checkRetry(e))},r.setSubtitleOption=function(t){if(this.hls.config.subtitlePreference=t,t){var e=this.allSubtitleTracks;if(this.selectDefaultTrack=!1,e.length){var r=this.currentTrack;if(r&&wr(t,r))return r;var n=yr(t,this.tracksInGroup);if(n>-1){var i=this.tracksInGroup[n];return this.setSubtitleTrack(n),i}if(r)return null;var a=yr(t,e);if(a>-1)return e[a]}}return null},r.loadPlaylist=function(e){t.prototype.loadPlaylist.call(this);var r=this.currentTrack;if(this.shouldLoadPlaylist(r)&&r){var n=r.id,i=r.groupId,a=r.url;if(e)try{a=e.addDirectives(a)}catch(t){this.warn("Could not construct new URL with HLS Delivery Directives: "+t)}this.log("Loading subtitle playlist for id "+n),this.hls.trigger(b.SUBTITLE_TRACK_LOADING,{url:a,id:n,groupId:i,deliveryDirectives:e||null})}},r.toggleTrackModes=function(){var t=this.media;if(t){var e,r=Re(t.textTracks),n=this.currentTrack;if(n&&((e=r.filter((function(t){return Bi(n,t)}))[0])||this.warn('Unable to find subtitle TextTrack with name "'+n.name+'" and language "'+n.lang+'"')),[].slice.call(r).forEach((function(t){"disabled"!==t.mode&&t!==e&&(t.mode="disabled")})),e){var i=this.subtitleDisplay?"showing":"hidden";e.mode!==i&&(e.mode=i)}}},r.setSubtitleTrack=function(t){var e=this.tracksInGroup;if(this.media)if(t<-1||t>=e.length||!m(t))this.warn("Invalid subtitle track id: "+t);else{this.clearTimer(),this.selectDefaultTrack=!1;var r=this.currentTrack,n=e[t]||null;if(this.trackId=t,this.currentTrack=n,this.toggleTrackModes(),n){var i=!!n.details&&!n.details.live;if(t!==this.trackId||n!==r||!i){this.log("Switching to subtitle-track "+t+(n?' "'+n.name+'" lang:'+n.lang+" group:"+n.groupId:""));var a=n.id,s=n.groupId,o=void 0===s?"":s,u=n.name,l=n.type,c=n.url;this.hls.trigger(b.SUBTITLE_TRACK_SWITCH,{id:a,groupId:o,name:u,type:l,url:c});var A=this.switchParams(n.url,null==r?void 0:r.details);this.loadPlaylist(A)}}else this.hls.trigger(b.SUBTITLE_TRACK_SWITCH,{id:t})}else this.queuedDefaultTrack=t},a(e,[{key:"subtitleDisplay",get:function(){return this._subtitleDisplay},set:function(t){this._subtitleDisplay=t,this.trackId>-1&&this.toggleTrackModes()}},{key:"allSubtitleTracks",get:function(){return this.tracks}},{key:"subtitleTracks",get:function(){return this.tracksInGroup}},{key:"subtitleTrack",get:function(){return this.trackId},set:function(t){this.selectDefaultTrack=!1,this.setSubtitleTrack(t)}}]),e}(dr),ki=function(){function t(t){this.buffers=void 0,this.queues={video:[],audio:[],audiovideo:[]},this.buffers=t}var e=t.prototype;return e.append=function(t,e,r){var n=this.queues[e];n.push(t),1!==n.length||r||this.executeNext(e)},e.insertAbort=function(t,e){this.queues[e].unshift(t),this.executeNext(e)},e.appendBlocker=function(t){var e,r=new Promise((function(t){e=t})),n={execute:e,onStart:function(){},onComplete:function(){},onError:function(){}};return this.append(n,t),r},e.executeNext=function(t){var e=this.queues[t];if(e.length){var r=e[0];try{r.execute()}catch(e){S.warn('[buffer-operation-queue]: Exception executing "'+t+'" SourceBuffer operation: '+e),r.onError(e);var n=this.buffers[t];null!=n&&n.updating||this.shiftAndExecuteNext(t)}}},e.shiftAndExecuteNext=function(t){this.queues[t].shift(),this.executeNext(t)},e.current=function(t){return this.queues[t][0]},t}(),Ii=/(avc[1234]|hvc1|hev1|dvh[1e]|vp09|av01)(?:\.[^.,]+)+/,Fi=function(){function t(t){var e=this;this.details=null,this._objectUrl=null,this.operationQueue=void 0,this.listeners=void 0,this.hls=void 0,this.bufferCodecEventsExpected=0,this._bufferCodecEventsTotal=0,this.media=null,this.mediaSource=null,this.lastMpegAudioChunk=null,this.appendSource=void 0,this.appendErrors={audio:0,video:0,audiovideo:0},this.tracks={},this.pendingTracks={},this.sourceBuffer=void 0,this.log=void 0,this.warn=void 0,this.error=void 0,this._onEndStreaming=function(t){e.hls&&e.hls.pauseBuffering()},this._onStartStreaming=function(t){e.hls&&e.hls.resumeBuffering()},this._onMediaSourceOpen=function(){var t=e.media,r=e.mediaSource;e.log("Media source opened"),t&&(t.removeEventListener("emptied",e._onMediaEmptied),e.updateMediaElementDuration(),e.hls.trigger(b.MEDIA_ATTACHED,{media:t,mediaSource:r})),r&&r.removeEventListener("sourceopen",e._onMediaSourceOpen),e.checkPendingTracks()},this._onMediaSourceClose=function(){e.log("Media source closed")},this._onMediaSourceEnded=function(){e.log("Media source ended")},this._onMediaEmptied=function(){var t=e.mediaSrc,r=e._objectUrl;t!==r&&S.error("Media element src was set while attaching MediaSource ("+r+" > "+t+")")},this.hls=t;var r="[buffer-controller]";this.appendSource=t.config.preferManagedMediaSource,this.log=S.log.bind(S,r),this.warn=S.warn.bind(S,r),this.error=S.error.bind(S,r),this._initSourceBuffer(),this.registerListeners()}var e=t.prototype;return e.hasSourceTypes=function(){return this.getSourceBufferTypes().length>0||Object.keys(this.pendingTracks).length>0},e.destroy=function(){this.unregisterListeners(),this.details=null,this.lastMpegAudioChunk=null,this.hls=null},e.registerListeners=function(){var t=this.hls;t.on(b.MEDIA_ATTACHING,this.onMediaAttaching,this),t.on(b.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(b.MANIFEST_LOADING,this.onManifestLoading,this),t.on(b.MANIFEST_PARSED,this.onManifestParsed,this),t.on(b.BUFFER_RESET,this.onBufferReset,this),t.on(b.BUFFER_APPENDING,this.onBufferAppending,this),t.on(b.BUFFER_CODECS,this.onBufferCodecs,this),t.on(b.BUFFER_EOS,this.onBufferEos,this),t.on(b.BUFFER_FLUSHING,this.onBufferFlushing,this),t.on(b.LEVEL_UPDATED,this.onLevelUpdated,this),t.on(b.FRAG_PARSED,this.onFragParsed,this),t.on(b.FRAG_CHANGED,this.onFragChanged,this)},e.unregisterListeners=function(){var t=this.hls;t.off(b.MEDIA_ATTACHING,this.onMediaAttaching,this),t.off(b.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(b.MANIFEST_LOADING,this.onManifestLoading,this),t.off(b.MANIFEST_PARSED,this.onManifestParsed,this),t.off(b.BUFFER_RESET,this.onBufferReset,this),t.off(b.BUFFER_APPENDING,this.onBufferAppending,this),t.off(b.BUFFER_CODECS,this.onBufferCodecs,this),t.off(b.BUFFER_EOS,this.onBufferEos,this),t.off(b.BUFFER_FLUSHING,this.onBufferFlushing,this),t.off(b.LEVEL_UPDATED,this.onLevelUpdated,this),t.off(b.FRAG_PARSED,this.onFragParsed,this),t.off(b.FRAG_CHANGED,this.onFragChanged,this)},e._initSourceBuffer=function(){this.sourceBuffer={},this.operationQueue=new ki(this.sourceBuffer),this.listeners={audio:[],video:[],audiovideo:[]},this.appendErrors={audio:0,video:0,audiovideo:0},this.lastMpegAudioChunk=null},e.onManifestLoading=function(){this.bufferCodecEventsExpected=this._bufferCodecEventsTotal=0,this.details=null},e.onManifestParsed=function(t,e){var r=2;(e.audio&&!e.video||!e.altAudio)&&(r=1),this.bufferCodecEventsExpected=this._bufferCodecEventsTotal=r,this.log(this.bufferCodecEventsExpected+" bufferCodec event(s) expected")},e.onMediaAttaching=function(t,e){var r=this.media=e.media,n=qt(this.appendSource);if(r&&n){var i,a=this.mediaSource=new n;this.log("created media source: "+(null==(i=a.constructor)?void 0:i.name)),a.addEventListener("sourceopen",this._onMediaSourceOpen),a.addEventListener("sourceended",this._onMediaSourceEnded),a.addEventListener("sourceclose",this._onMediaSourceClose),a.addEventListener("startstreaming",this._onStartStreaming),a.addEventListener("endstreaming",this._onEndStreaming);var s=this._objectUrl=self.URL.createObjectURL(a);if(this.appendSource)try{r.removeAttribute("src");var o=self.ManagedMediaSource;r.disableRemotePlayback=r.disableRemotePlayback||o&&a instanceof o,Li(r),function(t,e){var r=self.document.createElement("source");r.type="video/mp4",r.src=e,t.appendChild(r)}(r,s),r.load()}catch(t){r.src=s}else r.src=s;r.addEventListener("emptied",this._onMediaEmptied)}},e.onMediaDetaching=function(){var t=this.media,e=this.mediaSource,r=this._objectUrl;if(e){if(this.log("media source detaching"),"open"===e.readyState)try{e.endOfStream()}catch(t){this.warn("onMediaDetaching: "+t.message+" while calling endOfStream")}this.onBufferReset(),e.removeEventListener("sourceopen",this._onMediaSourceOpen),e.removeEventListener("sourceended",this._onMediaSourceEnded),e.removeEventListener("sourceclose",this._onMediaSourceClose),e.removeEventListener("startstreaming",this._onStartStreaming),e.removeEventListener("endstreaming",this._onEndStreaming),t&&(t.removeEventListener("emptied",this._onMediaEmptied),r&&self.URL.revokeObjectURL(r),this.mediaSrc===r?(t.removeAttribute("src"),this.appendSource&&Li(t),t.load()):this.warn("media|source.src was changed by a third party - skip cleanup")),this.mediaSource=null,this.media=null,this._objectUrl=null,this.bufferCodecEventsExpected=this._bufferCodecEventsTotal,this.pendingTracks={},this.tracks={}}this.hls.trigger(b.MEDIA_DETACHED,void 0)},e.onBufferReset=function(){var t=this;this.getSourceBufferTypes().forEach((function(e){t.resetBuffer(e)})),this._initSourceBuffer()},e.resetBuffer=function(t){var e=this.sourceBuffer[t];try{var r;e&&(this.removeBufferListeners(t),this.sourceBuffer[t]=void 0,null!=(r=this.mediaSource)&&r.sourceBuffers.length&&this.mediaSource.removeSourceBuffer(e))}catch(e){this.warn("onBufferReset "+t,e)}},e.onBufferCodecs=function(t,e){var r=this,n=this.getSourceBufferTypes().length,i=Object.keys(e);if(i.forEach((function(t){if(n){var i=r.tracks[t];if(i&&"function"==typeof i.buffer.changeType){var a,s=e[t],o=s.id,u=s.codec,l=s.levelCodec,c=s.container,A=s.metadata,d=se(i.codec,i.levelCodec),f=null==d?void 0:d.replace(Ii,"$1"),h=se(u,l),p=null==(a=h)?void 0:a.replace(Ii,"$1");if(h&&f!==p){"audio"===t.slice(0,5)&&(h=ae(h,r.hls.config.preferManagedMediaSource));var g=c+";codecs="+h;r.appendChangeType(t,g),r.log("switching codec "+d+" to "+h),r.tracks[t]={buffer:i.buffer,codec:u,container:c,levelCodec:l,metadata:A,id:o}}}}else r.pendingTracks[t]=e[t]})),!n){var a=Math.max(this.bufferCodecEventsExpected-1,0);this.bufferCodecEventsExpected!==a&&(this.log(a+" bufferCodec event(s) expected "+i.join(",")),this.bufferCodecEventsExpected=a),this.mediaSource&&"open"===this.mediaSource.readyState&&this.checkPendingTracks()}},e.appendChangeType=function(t,e){var r=this,n=this.operationQueue,i={execute:function(){var i=r.sourceBuffer[t];i&&(r.log("changing "+t+" sourceBuffer type to "+e),i.changeType(e)),n.shiftAndExecuteNext(t)},onStart:function(){},onComplete:function(){},onError:function(e){r.warn("Failed to change "+t+" SourceBuffer type",e)}};n.append(i,t,!!this.pendingTracks[t])},e.onBufferAppending=function(t,e){var r=this,n=this.hls,i=this.operationQueue,a=this.tracks,s=e.data,o=e.type,u=e.frag,l=e.part,c=e.chunkMeta,A=c.buffering[o],d=self.performance.now();A.start=d;var f=u.stats.buffering,h=l?l.stats.buffering:null;0===f.start&&(f.start=d),h&&0===h.start&&(h.start=d);var p=a.audio,g=!1;"audio"===o&&"audio/mpeg"===(null==p?void 0:p.container)&&(g=!this.lastMpegAudioChunk||1===c.id||this.lastMpegAudioChunk.sn!==c.sn,this.lastMpegAudioChunk=c);var v=u.start,m={execute:function(){if(A.executeStart=self.performance.now(),g){var t=r.sourceBuffer[o];if(t){var e=v-t.timestampOffset;Math.abs(e)>=.1&&(r.log("Updating audio SourceBuffer timestampOffset to "+v+" (delta: "+e+") sn: "+u.sn+")"),t.timestampOffset=v)}}r.appendExecutor(s,o)},onStart:function(){},onComplete:function(){var t=self.performance.now();A.executeEnd=A.end=t,0===f.first&&(f.first=t),h&&0===h.first&&(h.first=t);var e=r.sourceBuffer,n={};for(var i in e)n[i]=Dr.getBuffered(e[i]);r.appendErrors[o]=0,"audio"===o||"video"===o?r.appendErrors.audiovideo=0:(r.appendErrors.audio=0,r.appendErrors.video=0),r.hls.trigger(b.BUFFER_APPENDED,{type:o,frag:u,part:l,chunkMeta:c,parent:u.type,timeRanges:n})},onError:function(t){var e={type:_.MEDIA_ERROR,parent:u.type,details:B.BUFFER_APPEND_ERROR,sourceBufferName:o,frag:u,part:l,chunkMeta:c,error:t,err:t,fatal:!1};if(t.code===DOMException.QUOTA_EXCEEDED_ERR)e.details=B.BUFFER_FULL_ERROR;else{var i=++r.appendErrors[o];e.details=B.BUFFER_APPEND_ERROR,r.warn("Failed "+i+"/"+n.config.appendErrorMaxRetry+' times to append segment in "'+o+'" sourceBuffer'),i>=n.config.appendErrorMaxRetry&&(e.fatal=!0)}n.trigger(b.ERROR,e)}};i.append(m,o,!!this.pendingTracks[o])},e.onBufferFlushing=function(t,e){var r=this,n=this.operationQueue,i=function(t){return{execute:r.removeExecutor.bind(r,t,e.startOffset,e.endOffset),onStart:function(){},onComplete:function(){r.hls.trigger(b.BUFFER_FLUSHED,{type:t})},onError:function(e){r.warn("Failed to remove from "+t+" SourceBuffer",e)}}};e.type?n.append(i(e.type),e.type):this.getSourceBufferTypes().forEach((function(t){n.append(i(t),t)}))},e.onFragParsed=function(t,e){var r=this,n=e.frag,i=e.part,a=[],s=i?i.elementaryStreams:n.elementaryStreams;s[P]?a.push("audiovideo"):(s[U]&&a.push("audio"),s[O]&&a.push("video")),0===a.length&&this.warn("Fragments must have at least one ElementaryStreamType set. type: "+n.type+" level: "+n.level+" sn: "+n.sn),this.blockBuffers((function(){var t=self.performance.now();n.stats.buffering.end=t,i&&(i.stats.buffering.end=t);var e=i?i.stats:n.stats;r.hls.trigger(b.FRAG_BUFFERED,{frag:n,part:i,stats:e,id:n.type})}),a)},e.onFragChanged=function(t,e){this.trimBuffers()},e.onBufferEos=function(t,e){var r=this;this.getSourceBufferTypes().reduce((function(t,n){var i=r.sourceBuffer[n];return!i||e.type&&e.type!==n||(i.ending=!0,i.ended||(i.ended=!0,r.log(n+" sourceBuffer now EOS"))),t&&!(i&&!i.ended)}),!0)&&(this.log("Queueing mediaSource.endOfStream()"),this.blockBuffers((function(){r.getSourceBufferTypes().forEach((function(t){var e=r.sourceBuffer[t];e&&(e.ending=!1)}));var t=r.mediaSource;t&&"open"===t.readyState?(r.log("Calling mediaSource.endOfStream()"),t.endOfStream()):t&&r.log("Could not call mediaSource.endOfStream(). mediaSource.readyState: "+t.readyState)})))},e.onLevelUpdated=function(t,e){var r=e.details;r.fragments.length&&(this.details=r,this.getSourceBufferTypes().length?this.blockBuffers(this.updateMediaElementDuration.bind(this)):this.updateMediaElementDuration())},e.trimBuffers=function(){var t=this.hls,e=this.details,r=this.media;if(r&&null!==e&&this.getSourceBufferTypes().length){var n=t.config,i=r.currentTime,a=e.levelTargetDuration,s=e.live&&null!==n.liveBackBufferLength?n.liveBackBufferLength:n.backBufferLength;if(m(s)&&s>0){var o=Math.max(s,a),u=Math.floor(i/a)*a-o;this.flushBackBuffer(i,a,u)}if(m(n.frontBufferFlushThreshold)&&n.frontBufferFlushThreshold>0){var l=Math.max(n.maxBufferLength,n.frontBufferFlushThreshold),c=Math.max(l,a),A=Math.floor(i/a)*a+c;this.flushFrontBuffer(i,a,A)}}},e.flushBackBuffer=function(t,e,r){var n=this,i=this.details,a=this.sourceBuffer;this.getSourceBufferTypes().forEach((function(s){var o=a[s];if(o){var u=Dr.getBuffered(o);if(u.length>0&&r>u.start(0)){if(n.hls.trigger(b.BACK_BUFFER_REACHED,{bufferEnd:r}),null!=i&&i.live)n.hls.trigger(b.LIVE_BACK_BUFFER_REACHED,{bufferEnd:r});else if(o.ended&&u.end(u.length-1)-t<2*e)return void n.log("Cannot flush "+s+" back buffer while SourceBuffer is in ended state");n.hls.trigger(b.BUFFER_FLUSHING,{startOffset:0,endOffset:r,type:s})}}}))},e.flushFrontBuffer=function(t,e,r){var n=this,i=this.sourceBuffer;this.getSourceBufferTypes().forEach((function(a){var s=i[a];if(s){var o=Dr.getBuffered(s),u=o.length;if(u<2)return;var l=o.start(u-1),c=o.end(u-1);if(r>l||t>=l&&t<=c)return;if(s.ended&&t-c<2*e)return void n.log("Cannot flush "+a+" front buffer while SourceBuffer is in ended state");n.hls.trigger(b.BUFFER_FLUSHING,{startOffset:l,endOffset:1/0,type:a})}}))},e.updateMediaElementDuration=function(){if(this.details&&this.media&&this.mediaSource&&"open"===this.mediaSource.readyState){var t=this.details,e=this.hls,r=this.media,n=this.mediaSource,i=t.fragments[0].start+t.totalduration,a=r.duration,s=m(n.duration)?n.duration:0;t.live&&e.config.liveDurationInfinity?(n.duration=1/0,this.updateSeekableRange(t)):(i>s&&i>a||!m(a))&&(this.log("Updating Media Source duration to "+i.toFixed(3)),n.duration=i)}},e.updateSeekableRange=function(t){var e=this.mediaSource,r=t.fragments;if(r.length&&t.live&&null!=e&&e.setLiveSeekableRange){var n=Math.max(0,r[0].start),i=Math.max(n,n+t.totalduration);this.log("Media Source duration is set to "+e.duration+". Setting seekable range to "+n+"-"+i+"."),e.setLiveSeekableRange(n,i)}},e.checkPendingTracks=function(){var t=this.bufferCodecEventsExpected,e=this.operationQueue,r=this.pendingTracks,n=Object.keys(r).length;if(n&&(!t||2===n||"audiovideo"in r)){this.createSourceBuffers(r),this.pendingTracks={};var i=this.getSourceBufferTypes();if(i.length)this.hls.trigger(b.BUFFER_CREATED,{tracks:this.tracks}),i.forEach((function(t){e.executeNext(t)}));else{var a=new Error("could not create source buffer for media codec(s)");this.hls.trigger(b.ERROR,{type:_.MEDIA_ERROR,details:B.BUFFER_INCOMPATIBLE_CODECS_ERROR,fatal:!0,error:a,reason:a.message})}}},e.createSourceBuffers=function(t){var e=this,r=this.sourceBuffer,n=this.mediaSource;if(!n)throw Error("createSourceBuffers called when mediaSource was null");var i=function(i){if(!r[i]){var a=t[i];if(!a)throw Error("source buffer exists for track "+i+", however track does not");var s=a.levelCodec||a.codec;s&&"audio"===i.slice(0,5)&&(s=ae(s,e.hls.config.preferManagedMediaSource));var o=a.container+";codecs="+s;e.log("creating sourceBuffer("+o+")");try{var u=r[i]=n.addSourceBuffer(o),l=i;e.addBufferListener(l,"updatestart",e._onSBUpdateStart),e.addBufferListener(l,"updateend",e._onSBUpdateEnd),e.addBufferListener(l,"error",e._onSBUpdateError),e.addBufferListener(l,"bufferedchange",(function(t,r){var n=r.removedRanges;null!=n&&n.length&&e.hls.trigger(b.BUFFER_FLUSHED,{type:i})})),e.tracks[i]={buffer:u,codec:s,container:a.container,levelCodec:a.levelCodec,metadata:a.metadata,id:a.id}}catch(t){e.error("error while trying to add sourceBuffer: "+t.message),e.hls.trigger(b.ERROR,{type:_.MEDIA_ERROR,details:B.BUFFER_ADD_CODEC_ERROR,fatal:!1,error:t,sourceBufferName:i,mimeType:o})}}};for(var a in t)i(a)},e._onSBUpdateStart=function(t){this.operationQueue.current(t).onStart()},e._onSBUpdateEnd=function(t){var e;if("closed"!==(null==(e=this.mediaSource)?void 0:e.readyState)){var r=this.operationQueue;r.current(t).onComplete(),r.shiftAndExecuteNext(t)}else this.resetBuffer(t)},e._onSBUpdateError=function(t,e){var r,n=new Error(t+" SourceBuffer error. MediaSource readyState: "+(null==(r=this.mediaSource)?void 0:r.readyState));this.error(""+n,e),this.hls.trigger(b.ERROR,{type:_.MEDIA_ERROR,details:B.BUFFER_APPENDING_ERROR,sourceBufferName:t,error:n,fatal:!1});var i=this.operationQueue.current(t);i&&i.onError(n)},e.removeExecutor=function(t,e,r){var n=this.media,i=this.mediaSource,a=this.operationQueue,s=this.sourceBuffer[t];if(!n||!i||!s)return this.warn("Attempting to remove from the "+t+" SourceBuffer, but it does not exist"),void a.shiftAndExecuteNext(t);var o=m(n.duration)?n.duration:1/0,u=m(i.duration)?i.duration:1/0,l=Math.max(0,e),c=Math.min(r,o,u);c>l&&(!s.ending||s.ended)?(s.ended=!1,this.log("Removing ["+l+","+c+"] from the "+t+" SourceBuffer"),s.remove(l,c)):a.shiftAndExecuteNext(t)},e.appendExecutor=function(t,e){var r=this.sourceBuffer[e];if(r)r.ended=!1,r.appendBuffer(t);else if(!this.pendingTracks[e])throw new Error("Attempting to append to the "+e+" SourceBuffer, but it does not exist")},e.blockBuffers=function(t,e){var r=this;if(void 0===e&&(e=this.getSourceBufferTypes()),!e.length)return this.log("Blocking operation requested, but no SourceBuffers exist"),void Promise.resolve().then(t);var n=this.operationQueue,i=e.map((function(t){return n.appendBlocker(t)}));Promise.all(i).then((function(){t(),e.forEach((function(t){var e=r.sourceBuffer[t];null!=e&&e.updating||n.shiftAndExecuteNext(t)}))}))},e.getSourceBufferTypes=function(){return Object.keys(this.sourceBuffer)},e.addBufferListener=function(t,e,r){var n=this.sourceBuffer[t];if(n){var i=r.bind(this,t);this.listeners[t].push({event:e,listener:i}),n.addEventListener(e,i)}},e.removeBufferListeners=function(t){var e=this.sourceBuffer[t];e&&this.listeners[t].forEach((function(t){e.removeEventListener(t.event,t.listener)}))},a(t,[{key:"mediaSrc",get:function(){var t,e=(null==(t=this.media)?void 0:t.firstChild)||this.media;return null==e?void 0:e.src}}]),t}();function Li(t){var e=t.querySelectorAll("source");[].slice.call(e).forEach((function(e){t.removeChild(e)}))}var Di={42:225,92:233,94:237,95:243,96:250,123:231,124:247,125:209,126:241,127:9608,128:174,129:176,130:189,131:191,132:8482,133:162,134:163,135:9834,136:224,137:32,138:232,139:226,140:234,141:238,142:244,143:251,144:193,145:201,146:211,147:218,148:220,149:252,150:8216,151:161,152:42,153:8217,154:9473,155:169,156:8480,157:8226,158:8220,159:8221,160:192,161:194,162:199,163:200,164:202,165:203,166:235,167:206,168:207,169:239,170:212,171:217,172:249,173:219,174:171,175:187,176:195,177:227,178:205,179:204,180:236,181:210,182:242,183:213,184:245,185:123,186:125,187:92,188:94,189:95,190:124,191:8764,192:196,193:228,194:214,195:246,196:223,197:165,198:164,199:9475,200:197,201:229,202:216,203:248,204:9487,205:9491,206:9495,207:9499},Ri=function(t){var e=t;return Di.hasOwnProperty(t)&&(e=Di[t]),String.fromCharCode(e)},Ui=100,Oi={17:1,18:3,21:5,22:7,23:9,16:11,19:12,20:14},Pi={17:2,18:4,21:6,22:8,23:10,19:13,20:15},Mi={25:1,26:3,29:5,30:7,31:9,24:11,27:12,28:14},Qi={25:2,26:4,29:6,30:8,31:10,27:13,28:15},Ni=["white","green","blue","cyan","red","yellow","magenta","black","transparent"],Hi=function(){function t(){this.time=null,this.verboseLevel=0}return t.prototype.log=function(t,e){if(this.verboseLevel>=t){var r="function"==typeof e?e():e;S.log(this.time+" ["+t+"] "+r)}},t}(),$i=function(t){for(var e=[],r=0;r<t.length;r++)e.push(t[r].toString(16));return e},ji=function(){function t(){this.foreground="white",this.underline=!1,this.italics=!1,this.background="black",this.flash=!1}var e=t.prototype;return e.reset=function(){this.foreground="white",this.underline=!1,this.italics=!1,this.background="black",this.flash=!1},e.setStyles=function(t){for(var e=["foreground","underline","italics","background","flash"],r=0;r<e.length;r++){var n=e[r];t.hasOwnProperty(n)&&(this[n]=t[n])}},e.isDefault=function(){return"white"===this.foreground&&!this.underline&&!this.italics&&"black"===this.background&&!this.flash},e.equals=function(t){return this.foreground===t.foreground&&this.underline===t.underline&&this.italics===t.italics&&this.background===t.background&&this.flash===t.flash},e.copy=function(t){this.foreground=t.foreground,this.underline=t.underline,this.italics=t.italics,this.background=t.background,this.flash=t.flash},e.toString=function(){return"color="+this.foreground+", underline="+this.underline+", italics="+this.italics+", background="+this.background+", flash="+this.flash},t}(),Ki=function(){function t(){this.uchar=" ",this.penState=new ji}var e=t.prototype;return e.reset=function(){this.uchar=" ",this.penState.reset()},e.setChar=function(t,e){this.uchar=t,this.penState.copy(e)},e.setPenState=function(t){this.penState.copy(t)},e.equals=function(t){return this.uchar===t.uchar&&this.penState.equals(t.penState)},e.copy=function(t){this.uchar=t.uchar,this.penState.copy(t.penState)},e.isEmpty=function(){return" "===this.uchar&&this.penState.isDefault()},t}(),Gi=function(){function t(t){this.chars=[],this.pos=0,this.currPenState=new ji,this.cueStartTime=null,this.logger=void 0;for(var e=0;e<Ui;e++)this.chars.push(new Ki);this.logger=t}var e=t.prototype;return e.equals=function(t){for(var e=0;e<Ui;e++)if(!this.chars[e].equals(t.chars[e]))return!1;return!0},e.copy=function(t){for(var e=0;e<Ui;e++)this.chars[e].copy(t.chars[e])},e.isEmpty=function(){for(var t=!0,e=0;e<Ui;e++)if(!this.chars[e].isEmpty()){t=!1;break}return t},e.setCursor=function(t){this.pos!==t&&(this.pos=t),this.pos<0?(this.logger.log(3,"Negative cursor position "+this.pos),this.pos=0):this.pos>Ui&&(this.logger.log(3,"Too large cursor position "+this.pos),this.pos=Ui)},e.moveCursor=function(t){var e=this.pos+t;if(t>1)for(var r=this.pos+1;r<e+1;r++)this.chars[r].setPenState(this.currPenState);this.setCursor(e)},e.backSpace=function(){this.moveCursor(-1),this.chars[this.pos].setChar(" ",this.currPenState)},e.insertChar=function(t){var e=this;t>=144&&this.backSpace();var r=Ri(t);this.pos>=Ui?this.logger.log(0,(function(){return"Cannot insert "+t.toString(16)+" ("+r+") at position "+e.pos+". Skipping it!"})):(this.chars[this.pos].setChar(r,this.currPenState),this.moveCursor(1))},e.clearFromPos=function(t){var e;for(e=t;e<Ui;e++)this.chars[e].reset()},e.clear=function(){this.clearFromPos(0),this.pos=0,this.currPenState.reset()},e.clearToEndOfRow=function(){this.clearFromPos(this.pos)},e.getTextString=function(){for(var t=[],e=!0,r=0;r<Ui;r++){var n=this.chars[r].uchar;" "!==n&&(e=!1),t.push(n)}return e?"":t.join("")},e.setPenStyles=function(t){this.currPenState.setStyles(t),this.chars[this.pos].setPenState(this.currPenState)},t}(),Vi=function(){function t(t){this.rows=[],this.currRow=14,this.nrRollUpRows=null,this.lastOutputScreen=null,this.logger=void 0;for(var e=0;e<15;e++)this.rows.push(new Gi(t));this.logger=t}var e=t.prototype;return e.reset=function(){for(var t=0;t<15;t++)this.rows[t].clear();this.currRow=14},e.equals=function(t){for(var e=!0,r=0;r<15;r++)if(!this.rows[r].equals(t.rows[r])){e=!1;break}return e},e.copy=function(t){for(var e=0;e<15;e++)this.rows[e].copy(t.rows[e])},e.isEmpty=function(){for(var t=!0,e=0;e<15;e++)if(!this.rows[e].isEmpty()){t=!1;break}return t},e.backSpace=function(){this.rows[this.currRow].backSpace()},e.clearToEndOfRow=function(){this.rows[this.currRow].clearToEndOfRow()},e.insertChar=function(t){this.rows[this.currRow].insertChar(t)},e.setPen=function(t){this.rows[this.currRow].setPenStyles(t)},e.moveCursor=function(t){this.rows[this.currRow].moveCursor(t)},e.setCursor=function(t){this.logger.log(2,"setCursor: "+t),this.rows[this.currRow].setCursor(t)},e.setPAC=function(t){this.logger.log(2,(function(){return"pacData = "+JSON.stringify(t)}));var e=t.row-1;if(this.nrRollUpRows&&e<this.nrRollUpRows-1&&(e=this.nrRollUpRows-1),this.nrRollUpRows&&this.currRow!==e){for(var r=0;r<15;r++)this.rows[r].clear();var n=this.currRow+1-this.nrRollUpRows,i=this.lastOutputScreen;if(i){var a=i.rows[n].cueStartTime,s=this.logger.time;if(null!==a&&null!==s&&a<s)for(var o=0;o<this.nrRollUpRows;o++)this.rows[e-this.nrRollUpRows+o+1].copy(i.rows[n+o])}}this.currRow=e;var u=this.rows[this.currRow];if(null!==t.indent){var l=t.indent,c=Math.max(l-1,0);u.setCursor(t.indent),t.color=u.chars[c].penState.foreground}var A={foreground:t.color,underline:t.underline,italics:t.italics,background:"black",flash:!1};this.setPen(A)},e.setBkgData=function(t){this.logger.log(2,(function(){return"bkgData = "+JSON.stringify(t)})),this.backSpace(),this.setPen(t),this.insertChar(32)},e.setRollUpRows=function(t){this.nrRollUpRows=t},e.rollUp=function(){var t=this;if(null!==this.nrRollUpRows){this.logger.log(1,(function(){return t.getDisplayText()}));var e=this.currRow+1-this.nrRollUpRows,r=this.rows.splice(e,1)[0];r.clear(),this.rows.splice(this.currRow,0,r),this.logger.log(2,"Rolling up")}else this.logger.log(3,"roll_up but nrRollUpRows not set yet")},e.getDisplayText=function(t){t=t||!1;for(var e=[],r="",n=-1,i=0;i<15;i++){var a=this.rows[i].getTextString();a&&(n=i+1,t?e.push("Row "+n+": '"+a+"'"):e.push(a.trim()))}return e.length>0&&(r=t?"["+e.join(" | ")+"]":e.join("\n")),r},e.getTextAndFormat=function(){return this.rows},t}(),Wi=function(){function t(t,e,r){this.chNr=void 0,this.outputFilter=void 0,this.mode=void 0,this.verbose=void 0,this.displayedMemory=void 0,this.nonDisplayedMemory=void 0,this.lastOutputScreen=void 0,this.currRollUpRow=void 0,this.writeScreen=void 0,this.cueStartTime=void 0,this.logger=void 0,this.chNr=t,this.outputFilter=e,this.mode=null,this.verbose=0,this.displayedMemory=new Vi(r),this.nonDisplayedMemory=new Vi(r),this.lastOutputScreen=new Vi(r),this.currRollUpRow=this.displayedMemory.rows[14],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null,this.logger=r}var e=t.prototype;return e.reset=function(){this.mode=null,this.displayedMemory.reset(),this.nonDisplayedMemory.reset(),this.lastOutputScreen.reset(),this.outputFilter.reset(),this.currRollUpRow=this.displayedMemory.rows[14],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null},e.getHandler=function(){return this.outputFilter},e.setHandler=function(t){this.outputFilter=t},e.setPAC=function(t){this.writeScreen.setPAC(t)},e.setBkgData=function(t){this.writeScreen.setBkgData(t)},e.setMode=function(t){t!==this.mode&&(this.mode=t,this.logger.log(2,(function(){return"MODE="+t})),"MODE_POP-ON"===this.mode?this.writeScreen=this.nonDisplayedMemory:(this.writeScreen=this.displayedMemory,this.writeScreen.reset()),"MODE_ROLL-UP"!==this.mode&&(this.displayedMemory.nrRollUpRows=null,this.nonDisplayedMemory.nrRollUpRows=null),this.mode=t)},e.insertChars=function(t){for(var e=this,r=0;r<t.length;r++)this.writeScreen.insertChar(t[r]);var n=this.writeScreen===this.displayedMemory?"DISP":"NON_DISP";this.logger.log(2,(function(){return n+": "+e.writeScreen.getDisplayText(!0)})),"MODE_PAINT-ON"!==this.mode&&"MODE_ROLL-UP"!==this.mode||(this.logger.log(1,(function(){return"DISPLAYED: "+e.displayedMemory.getDisplayText(!0)})),this.outputDataUpdate())},e.ccRCL=function(){this.logger.log(2,"RCL - Resume Caption Loading"),this.setMode("MODE_POP-ON")},e.ccBS=function(){this.logger.log(2,"BS - BackSpace"),"MODE_TEXT"!==this.mode&&(this.writeScreen.backSpace(),this.writeScreen===this.displayedMemory&&this.outputDataUpdate())},e.ccAOF=function(){},e.ccAON=function(){},e.ccDER=function(){this.logger.log(2,"DER- Delete to End of Row"),this.writeScreen.clearToEndOfRow(),this.outputDataUpdate()},e.ccRU=function(t){this.logger.log(2,"RU("+t+") - Roll Up"),this.writeScreen=this.displayedMemory,this.setMode("MODE_ROLL-UP"),this.writeScreen.setRollUpRows(t)},e.ccFON=function(){this.logger.log(2,"FON - Flash On"),this.writeScreen.setPen({flash:!0})},e.ccRDC=function(){this.logger.log(2,"RDC - Resume Direct Captioning"),this.setMode("MODE_PAINT-ON")},e.ccTR=function(){this.logger.log(2,"TR"),this.setMode("MODE_TEXT")},e.ccRTD=function(){this.logger.log(2,"RTD"),this.setMode("MODE_TEXT")},e.ccEDM=function(){this.logger.log(2,"EDM - Erase Displayed Memory"),this.displayedMemory.reset(),this.outputDataUpdate(!0)},e.ccCR=function(){this.logger.log(2,"CR - Carriage Return"),this.writeScreen.rollUp(),this.outputDataUpdate(!0)},e.ccENM=function(){this.logger.log(2,"ENM - Erase Non-displayed Memory"),this.nonDisplayedMemory.reset()},e.ccEOC=function(){var t=this;if(this.logger.log(2,"EOC - End Of Caption"),"MODE_POP-ON"===this.mode){var e=this.displayedMemory;this.displayedMemory=this.nonDisplayedMemory,this.nonDisplayedMemory=e,this.writeScreen=this.nonDisplayedMemory,this.logger.log(1,(function(){return"DISP: "+t.displayedMemory.getDisplayText()}))}this.outputDataUpdate(!0)},e.ccTO=function(t){this.logger.log(2,"TO("+t+") - Tab Offset"),this.writeScreen.moveCursor(t)},e.ccMIDROW=function(t){var e={flash:!1};if(e.underline=t%2==1,e.italics=t>=46,e.italics)e.foreground="white";else{var r=Math.floor(t/2)-16;e.foreground=["white","green","blue","cyan","red","yellow","magenta"][r]}this.logger.log(2,"MIDROW: "+JSON.stringify(e)),this.writeScreen.setPen(e)},e.outputDataUpdate=function(t){void 0===t&&(t=!1);var e=this.logger.time;null!==e&&this.outputFilter&&(null!==this.cueStartTime||this.displayedMemory.isEmpty()?this.displayedMemory.equals(this.lastOutputScreen)||(this.outputFilter.newCue(this.cueStartTime,e,this.lastOutputScreen),t&&this.outputFilter.dispatchCue&&this.outputFilter.dispatchCue(),this.cueStartTime=this.displayedMemory.isEmpty()?null:e):this.cueStartTime=e,this.lastOutputScreen.copy(this.displayedMemory))},e.cueSplitAtTime=function(t){this.outputFilter&&(this.displayedMemory.isEmpty()||(this.outputFilter.newCue&&this.outputFilter.newCue(this.cueStartTime,t,this.displayedMemory),this.cueStartTime=t))},t}(),zi=function(){function t(t,e,r){this.channels=void 0,this.currentChannel=0,this.cmdHistory={a:null,b:null},this.logger=void 0;var n=this.logger=new Hi;this.channels=[null,new Wi(t,e,n),new Wi(t+1,r,n)]}var e=t.prototype;return e.getHandler=function(t){return this.channels[t].getHandler()},e.setHandler=function(t,e){this.channels[t].setHandler(e)},e.addData=function(t,e){var r,n,i,a=!1;this.logger.time=t;for(var s=0;s<e.length;s+=2)if(n=127&e[s],i=127&e[s+1],0!==n||0!==i){if(this.logger.log(3,"["+$i([e[s],e[s+1]])+"] -> ("+$i([n,i])+")"),(r=this.parseCmd(n,i))||(r=this.parseMidrow(n,i)),r||(r=this.parsePAC(n,i)),r||(r=this.parseBackgroundAttributes(n,i)),!r&&(a=this.parseChars(n,i))){var o=this.currentChannel;o&&o>0?this.channels[o].insertChars(a):this.logger.log(2,"No channel found yet. TEXT-MODE?")}r||a||this.logger.log(2,"Couldn't parse cleaned data "+$i([n,i])+" orig: "+$i([e[s],e[s+1]]))}},e.parseCmd=function(t,e){var r=this.cmdHistory;if(!((20===t||28===t||21===t||29===t)&&e>=32&&e<=47||(23===t||31===t)&&e>=33&&e<=35))return!1;if(qi(t,e,r))return Yi(null,null,r),this.logger.log(3,"Repeated command ("+$i([t,e])+") is dropped"),!0;var n=20===t||21===t||23===t?1:2,i=this.channels[n];return 20===t||21===t||28===t||29===t?32===e?i.ccRCL():33===e?i.ccBS():34===e?i.ccAOF():35===e?i.ccAON():36===e?i.ccDER():37===e?i.ccRU(2):38===e?i.ccRU(3):39===e?i.ccRU(4):40===e?i.ccFON():41===e?i.ccRDC():42===e?i.ccTR():43===e?i.ccRTD():44===e?i.ccEDM():45===e?i.ccCR():46===e?i.ccENM():47===e&&i.ccEOC():i.ccTO(e-32),Yi(t,e,r),this.currentChannel=n,!0},e.parseMidrow=function(t,e){var r=0;if((17===t||25===t)&&e>=32&&e<=47){if((r=17===t?1:2)!==this.currentChannel)return this.logger.log(0,"Mismatch channel in midrow parsing"),!1;var n=this.channels[r];return!!n&&(n.ccMIDROW(e),this.logger.log(3,"MIDROW ("+$i([t,e])+")"),!0)}return!1},e.parsePAC=function(t,e){var r,n=this.cmdHistory;if(!((t>=17&&t<=23||t>=25&&t<=31)&&e>=64&&e<=127||(16===t||24===t)&&e>=64&&e<=95))return!1;if(qi(t,e,n))return Yi(null,null,n),!0;var i=t<=23?1:2;r=e>=64&&e<=95?1===i?Oi[t]:Mi[t]:1===i?Pi[t]:Qi[t];var a=this.channels[i];return!!a&&(a.setPAC(this.interpretPAC(r,e)),Yi(t,e,n),this.currentChannel=i,!0)},e.interpretPAC=function(t,e){var r,n={color:null,italics:!1,indent:null,underline:!1,row:t};return r=e>95?e-96:e-64,n.underline=1==(1&r),r<=13?n.color=["white","green","blue","cyan","red","yellow","magenta","white"][Math.floor(r/2)]:r<=15?(n.italics=!0,n.color="white"):n.indent=4*Math.floor((r-16)/2),n},e.parseChars=function(t,e){var r,n,i=null,a=null;if(t>=25?(r=2,a=t-8):(r=1,a=t),a>=17&&a<=19?(n=17===a?e+80:18===a?e+112:e+144,this.logger.log(2,"Special char '"+Ri(n)+"' in channel "+r),i=[n]):t>=32&&t<=127&&(i=0===e?[t]:[t,e]),i){var s=$i(i);this.logger.log(3,"Char codes =  "+s.join(",")),Yi(t,e,this.cmdHistory)}return i},e.parseBackgroundAttributes=function(t,e){var r;if(!((16===t||24===t)&&e>=32&&e<=47||(23===t||31===t)&&e>=45&&e<=47))return!1;var n={};16===t||24===t?(r=Math.floor((e-32)/2),n.background=Ni[r],e%2==1&&(n.background=n.background+"_semi")):45===e?n.background="transparent":(n.foreground="black",47===e&&(n.underline=!0));var i=t<=23?1:2;return this.channels[i].setBkgData(n),Yi(t,e,this.cmdHistory),!0},e.reset=function(){for(var t=0;t<Object.keys(this.channels).length;t++){var e=this.channels[t];e&&e.reset()}this.cmdHistory={a:null,b:null}},e.cueSplitAtTime=function(t){for(var e=0;e<this.channels.length;e++){var r=this.channels[e];r&&r.cueSplitAtTime(t)}},t}();function Yi(t,e,r){r.a=t,r.b=e}function qi(t,e,r){return r.a===t&&r.b===e}var Xi=function(){function t(t,e){this.timelineController=void 0,this.cueRanges=[],this.trackName=void 0,this.startTime=null,this.endTime=null,this.screen=null,this.timelineController=t,this.trackName=e}var e=t.prototype;return e.dispatchCue=function(){null!==this.startTime&&(this.timelineController.addCues(this.trackName,this.startTime,this.endTime,this.screen,this.cueRanges),this.startTime=null)},e.newCue=function(t,e,r){(null===this.startTime||this.startTime>t)&&(this.startTime=t),this.endTime=e,this.screen=r,this.timelineController.createCaptionsTrack(this.trackName)},e.reset=function(){this.cueRanges=[],this.startTime=null},t}(),Ji=function(){if(null!=K&&K.VTTCue)return self.VTTCue;var t=["","lr","rl"],e=["start","middle","end","left","right"];function r(t,e){if("string"!=typeof e)return!1;if(!Array.isArray(t))return!1;var r=e.toLowerCase();return!!~t.indexOf(r)&&r}function n(t){return r(e,t)}function i(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];for(var i=1;i<arguments.length;i++){var a=arguments[i];for(var s in a)t[s]=a[s]}return t}function a(e,a,s){var o=this,u={enumerable:!0};o.hasBeenReset=!1;var l="",c=!1,A=e,d=a,f=s,h=null,p="",g=!0,v="auto",m="start",y=50,w="middle",b=50,_="middle";Object.defineProperty(o,"id",i({},u,{get:function(){return l},set:function(t){l=""+t}})),Object.defineProperty(o,"pauseOnExit",i({},u,{get:function(){return c},set:function(t){c=!!t}})),Object.defineProperty(o,"startTime",i({},u,{get:function(){return A},set:function(t){if("number"!=typeof t)throw new TypeError("Start time must be set to a number.");A=t,this.hasBeenReset=!0}})),Object.defineProperty(o,"endTime",i({},u,{get:function(){return d},set:function(t){if("number"!=typeof t)throw new TypeError("End time must be set to a number.");d=t,this.hasBeenReset=!0}})),Object.defineProperty(o,"text",i({},u,{get:function(){return f},set:function(t){f=""+t,this.hasBeenReset=!0}})),Object.defineProperty(o,"region",i({},u,{get:function(){return h},set:function(t){h=t,this.hasBeenReset=!0}})),Object.defineProperty(o,"vertical",i({},u,{get:function(){return p},set:function(e){var n=function(e){return r(t,e)}(e);if(!1===n)throw new SyntaxError("An invalid or illegal string was specified.");p=n,this.hasBeenReset=!0}})),Object.defineProperty(o,"snapToLines",i({},u,{get:function(){return g},set:function(t){g=!!t,this.hasBeenReset=!0}})),Object.defineProperty(o,"line",i({},u,{get:function(){return v},set:function(t){if("number"!=typeof t&&"auto"!==t)throw new SyntaxError("An invalid number or illegal string was specified.");v=t,this.hasBeenReset=!0}})),Object.defineProperty(o,"lineAlign",i({},u,{get:function(){return m},set:function(t){var e=n(t);if(!e)throw new SyntaxError("An invalid or illegal string was specified.");m=e,this.hasBeenReset=!0}})),Object.defineProperty(o,"position",i({},u,{get:function(){return y},set:function(t){if(t<0||t>100)throw new Error("Position must be between 0 and 100.");y=t,this.hasBeenReset=!0}})),Object.defineProperty(o,"positionAlign",i({},u,{get:function(){return w},set:function(t){var e=n(t);if(!e)throw new SyntaxError("An invalid or illegal string was specified.");w=e,this.hasBeenReset=!0}})),Object.defineProperty(o,"size",i({},u,{get:function(){return b},set:function(t){if(t<0||t>100)throw new Error("Size must be between 0 and 100.");b=t,this.hasBeenReset=!0}})),Object.defineProperty(o,"align",i({},u,{get:function(){return _},set:function(t){var e=n(t);if(!e)throw new SyntaxError("An invalid or illegal string was specified.");_=e,this.hasBeenReset=!0}})),o.displayState=void 0}return a.prototype.getCueAsHTML=function(){return self.WebVTT.convertCueToDOMTree(self,this.text)},a}(),Zi=function(){function t(){}return t.prototype.decode=function(t,e){if(!t)return"";if("string"!=typeof t)throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(t))},t}();function ta(t){function e(t,e,r,n){return 3600*(0|t)+60*(0|e)+(0|r)+parseFloat(n||0)}var r=t.match(/^(?:(\d+):)?(\d{2}):(\d{2})(\.\d+)?/);return r?parseFloat(r[2])>59?e(r[2],r[3],0,r[4]):e(r[1],r[2],r[3],r[4]):null}var ea=function(){function t(){this.values=Object.create(null)}var e=t.prototype;return e.set=function(t,e){this.get(t)||""===e||(this.values[t]=e)},e.get=function(t,e,r){return r?this.has(t)?this.values[t]:e[r]:this.has(t)?this.values[t]:e},e.has=function(t){return t in this.values},e.alt=function(t,e,r){for(var n=0;n<r.length;++n)if(e===r[n]){this.set(t,e);break}},e.integer=function(t,e){/^-?\d+$/.test(e)&&this.set(t,parseInt(e,10))},e.percent=function(t,e){if(/^([\d]{1,3})(\.[\d]*)?%$/.test(e)){var r=parseFloat(e);if(r>=0&&r<=100)return this.set(t,r),!0}return!1},t}();function ra(t,e,r,n){var i=n?t.split(n):[t];for(var a in i)if("string"==typeof i[a]){var s=i[a].split(r);2===s.length&&e(s[0],s[1])}}var na=new Ji(0,0,""),ia="middle"===na.align?"middle":"center";function aa(t,e,r){var n=t;function i(){var e=ta(t);if(null===e)throw new Error("Malformed timestamp: "+n);return t=t.replace(/^[^\sa-zA-Z-]+/,""),e}function a(){t=t.replace(/^\s+/,"")}if(a(),e.startTime=i(),a(),"--\x3e"!==t.slice(0,3))throw new Error("Malformed time stamp (time stamps must be separated by '--\x3e'): "+n);t=t.slice(3),a(),e.endTime=i(),a(),function(t,e){var n=new ea;ra(t,(function(t,e){var i;switch(t){case"region":for(var a=r.length-1;a>=0;a--)if(r[a].id===e){n.set(t,r[a].region);break}break;case"vertical":n.alt(t,e,["rl","lr"]);break;case"line":i=e.split(","),n.integer(t,i[0]),n.percent(t,i[0])&&n.set("snapToLines",!1),n.alt(t,i[0],["auto"]),2===i.length&&n.alt("lineAlign",i[1],["start",ia,"end"]);break;case"position":i=e.split(","),n.percent(t,i[0]),2===i.length&&n.alt("positionAlign",i[1],["start",ia,"end","line-left","line-right","auto"]);break;case"size":n.percent(t,e);break;case"align":n.alt(t,e,["start",ia,"end","left","right"])}}),/:/,/\s/),e.region=n.get("region",null),e.vertical=n.get("vertical","");var i=n.get("line","auto");"auto"===i&&-1===na.line&&(i=-1),e.line=i,e.lineAlign=n.get("lineAlign","start"),e.snapToLines=n.get("snapToLines",!0),e.size=n.get("size",100),e.align=n.get("align",ia);var a=n.get("position","auto");"auto"===a&&50===na.position&&(a="start"===e.align||"left"===e.align?0:"end"===e.align||"right"===e.align?100:50),e.position=a}(t,e)}function sa(t){return t.replace(/<br(?: \/)?>/gi,"\n")}var oa=function(){function t(){this.state="INITIAL",this.buffer="",this.decoder=new Zi,this.regionList=[],this.cue=null,this.oncue=void 0,this.onparsingerror=void 0,this.onflush=void 0}var e=t.prototype;return e.parse=function(t){var e=this;function r(){var t=e.buffer,r=0;for(t=sa(t);r<t.length&&"\r"!==t[r]&&"\n"!==t[r];)++r;var n=t.slice(0,r);return"\r"===t[r]&&++r,"\n"===t[r]&&++r,e.buffer=t.slice(r),n}t&&(e.buffer+=e.decoder.decode(t,{stream:!0}));try{var n="";if("INITIAL"===e.state){if(!/\r\n|\n/.test(e.buffer))return this;var i=(n=r()).match(/^(\xef\xbb\xbf)?WEBVTT([ \t].*)?$/);if(null==i||!i[0])throw new Error("Malformed WebVTT signature.");e.state="HEADER"}for(var a=!1;e.buffer;){if(!/\r\n|\n/.test(e.buffer))return this;switch(a?a=!1:n=r(),e.state){case"HEADER":/:/.test(n)?ra(n,(function(t,e){}),/:/):n||(e.state="ID");continue;case"NOTE":n||(e.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(n)){e.state="NOTE";break}if(!n)continue;if(e.cue=new Ji(0,0,""),e.state="CUE",-1===n.indexOf("--\x3e")){e.cue.id=n;continue}case"CUE":if(!e.cue){e.state="BADCUE";continue}try{aa(n,e.cue,e.regionList)}catch(t){e.cue=null,e.state="BADCUE";continue}e.state="CUETEXT";continue;case"CUETEXT":var s=-1!==n.indexOf("--\x3e");if(!n||s&&(a=!0)){e.oncue&&e.cue&&e.oncue(e.cue),e.cue=null,e.state="ID";continue}if(null===e.cue)continue;e.cue.text&&(e.cue.text+="\n"),e.cue.text+=n;continue;case"BADCUE":n||(e.state="ID")}}}catch(t){"CUETEXT"===e.state&&e.cue&&e.oncue&&e.oncue(e.cue),e.cue=null,e.state="INITIAL"===e.state?"BADWEBVTT":"BADCUE"}return this},e.flush=function(){var t=this;try{if((t.cue||"HEADER"===t.state)&&(t.buffer+="\n\n",t.parse()),"INITIAL"===t.state||"BADWEBVTT"===t.state)throw new Error("Malformed WebVTT signature.")}catch(e){t.onparsingerror&&t.onparsingerror(e)}return t.onflush&&t.onflush(),this},t}(),ua=/\r\n|\n\r|\n|\r/g,la=function(t,e,r){return void 0===r&&(r=0),t.slice(r,r+e.length)===e},ca=function(t){for(var e=5381,r=t.length;r;)e=33*e^t.charCodeAt(--r);return(e>>>0).toString()};function Aa(t,e,r){return ca(t.toString())+ca(e.toString())+ca(r)}var da="stpp.ttml.im1t",fa=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,ha=/^(\d*(?:\.\d*)?)(h|m|s|ms|f|t)$/,pa={left:"start",center:"center",right:"end",start:"start",end:"end"};function ga(t,e,r,n){var i=St(new Uint8Array(t),["mdat"]);if(0!==i.length){var a,s,o,u=i.map((function(t){return mt(t)})),c=(a=e.baseTime,1,void 0===(s=e.timescale)&&(s=1),void 0===o&&(o=!1),Xn(a,1,1/s,o));try{u.forEach((function(t){return r(function(t,e){var r=(new DOMParser).parseFromString(t,"text/xml"),n=r.getElementsByTagName("tt")[0];if(!n)throw new Error("Invalid ttml");var i={frameRate:30,subFrameRate:1,frameRateMultiplier:0,tickRate:0},a=Object.keys(i).reduce((function(t,e){return t[e]=n.getAttribute("ttp:"+e)||i[e],t}),{}),s="preserve"!==n.getAttribute("xml:space"),o=ma(va(n,"styling","style")),u=ma(va(n,"layout","region")),c=va(n,"body","[begin]");return[].map.call(c,(function(t){var r=function t(e,r){return[].slice.call(e.childNodes).reduce((function(e,n,i){var a;return"br"===n.nodeName&&i?e+"\n":null!=(a=n.childNodes)&&a.length?t(n,r):r?e+n.textContent.trim().replace(/\s+/g," "):e+n.textContent}),"")}(t,s);if(!r||!t.hasAttribute("begin"))return null;var n=ba(t.getAttribute("begin"),a),i=ba(t.getAttribute("dur"),a),c=ba(t.getAttribute("end"),a);if(null===n)throw wa(t);if(null===c){if(null===i)throw wa(t);c=n+i}var A=new Ji(n-e,c-e,r);A.id=Aa(A.startTime,A.endTime,A.text);var d=function(t,e,r){var n="http://www.w3.org/ns/ttml#styling",i=null,a=null!=t&&t.hasAttribute("style")?t.getAttribute("style"):null;return a&&r.hasOwnProperty(a)&&(i=r[a]),["displayAlign","textAlign","color","backgroundColor","fontSize","fontFamily"].reduce((function(r,a){var s=ya(e,n,a)||ya(t,n,a)||ya(i,n,a);return s&&(r[a]=s),r}),{})}(u[t.getAttribute("region")],o[t.getAttribute("style")],o),f=d.textAlign;if(f){var h=pa[f];h&&(A.lineAlign=h),A.align=f}return l(A,d),A})).filter((function(t){return null!==t}))}(t,c))}))}catch(t){n(t)}}else n(new Error("Could not parse IMSC1 mdat"))}function va(t,e,r){var n=t.getElementsByTagName(e)[0];return n?[].slice.call(n.querySelectorAll(r)):[]}function ma(t){return t.reduce((function(t,e){var r=e.getAttribute("xml:id");return r&&(t[r]=e),t}),{})}function ya(t,e,r){return t&&t.hasAttributeNS(e,r)?t.getAttributeNS(e,r):null}function wa(t){return new Error("Could not parse ttml timestamp "+t)}function ba(t,e){if(!t)return null;var r=ta(t);return null===r&&(fa.test(t)?r=function(t,e){var r=fa.exec(t),n=(0|r[4])+(0|r[5])/e.subFrameRate;return 3600*(0|r[1])+60*(0|r[2])+(0|r[3])+n/e.frameRate}(t,e):ha.test(t)&&(r=function(t,e){var r=ha.exec(t),n=Number(r[1]);switch(r[2]){case"h":return 3600*n;case"m":return 60*n;case"ms":return 1e3*n;case"f":return n/e.frameRate;case"t":return n/e.tickRate}return n}(t,e))),r}var _a=function(){function t(t){this.hls=void 0,this.media=null,this.config=void 0,this.enabled=!0,this.Cues=void 0,this.textTracks=[],this.tracks=[],this.initPTS=[],this.unparsedVttFrags=[],this.captionsTracks={},this.nonNativeCaptionsTracks={},this.cea608Parser1=void 0,this.cea608Parser2=void 0,this.lastCc=-1,this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs={ccOffset:0,presentationOffset:0,0:{start:0,prevCC:-1,new:!0}},this.captionsProperties=void 0,this.hls=t,this.config=t.config,this.Cues=t.config.cueHandler,this.captionsProperties={textTrack1:{label:this.config.captionsTextTrack1Label,languageCode:this.config.captionsTextTrack1LanguageCode},textTrack2:{label:this.config.captionsTextTrack2Label,languageCode:this.config.captionsTextTrack2LanguageCode},textTrack3:{label:this.config.captionsTextTrack3Label,languageCode:this.config.captionsTextTrack3LanguageCode},textTrack4:{label:this.config.captionsTextTrack4Label,languageCode:this.config.captionsTextTrack4LanguageCode}},t.on(b.MEDIA_ATTACHING,this.onMediaAttaching,this),t.on(b.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(b.MANIFEST_LOADING,this.onManifestLoading,this),t.on(b.MANIFEST_LOADED,this.onManifestLoaded,this),t.on(b.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),t.on(b.FRAG_LOADING,this.onFragLoading,this),t.on(b.FRAG_LOADED,this.onFragLoaded,this),t.on(b.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),t.on(b.FRAG_DECRYPTED,this.onFragDecrypted,this),t.on(b.INIT_PTS_FOUND,this.onInitPtsFound,this),t.on(b.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),t.on(b.BUFFER_FLUSHING,this.onBufferFlushing,this)}var e=t.prototype;return e.destroy=function(){var t=this.hls;t.off(b.MEDIA_ATTACHING,this.onMediaAttaching,this),t.off(b.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(b.MANIFEST_LOADING,this.onManifestLoading,this),t.off(b.MANIFEST_LOADED,this.onManifestLoaded,this),t.off(b.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),t.off(b.FRAG_LOADING,this.onFragLoading,this),t.off(b.FRAG_LOADED,this.onFragLoaded,this),t.off(b.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),t.off(b.FRAG_DECRYPTED,this.onFragDecrypted,this),t.off(b.INIT_PTS_FOUND,this.onInitPtsFound,this),t.off(b.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),t.off(b.BUFFER_FLUSHING,this.onBufferFlushing,this),this.hls=this.config=null,this.cea608Parser1=this.cea608Parser2=void 0},e.initCea608Parsers=function(){if(this.config.enableCEA708Captions&&(!this.cea608Parser1||!this.cea608Parser2)){var t=new Xi(this,"textTrack1"),e=new Xi(this,"textTrack2"),r=new Xi(this,"textTrack3"),n=new Xi(this,"textTrack4");this.cea608Parser1=new zi(1,t,e),this.cea608Parser2=new zi(3,r,n)}},e.addCues=function(t,e,r,n,i){for(var a,s,o,u,l=!1,c=i.length;c--;){var A=i[c],d=(a=A[0],s=A[1],o=e,u=r,Math.min(s,u)-Math.max(a,o));if(d>=0&&(A[0]=Math.min(A[0],e),A[1]=Math.max(A[1],r),l=!0,d/(r-e)>.5))return}if(l||i.push([e,r]),this.config.renderTextTracksNatively){var f=this.captionsTracks[t];this.Cues.newCue(f,e,r,n)}else{var h=this.Cues.newCue(null,e,r,n);this.hls.trigger(b.CUES_PARSED,{type:"captions",cues:h,track:t})}},e.onInitPtsFound=function(t,e){var r=this,n=e.frag,i=e.id,a=e.initPTS,s=e.timescale,o=this.unparsedVttFrags;"main"===i&&(this.initPTS[n.cc]={baseTime:a,timescale:s}),o.length&&(this.unparsedVttFrags=[],o.forEach((function(t){r.onFragLoaded(b.FRAG_LOADED,t)})))},e.getExistingTrack=function(t,e){var r=this.media;if(r)for(var n=0;n<r.textTracks.length;n++){var i=r.textTracks[n];if(Ca(i,{name:t,lang:e,attrs:{}}))return i}return null},e.createCaptionsTrack=function(t){this.config.renderTextTracksNatively?this.createNativeTrack(t):this.createNonNativeTrack(t)},e.createNativeTrack=function(t){if(!this.captionsTracks[t]){var e=this.captionsProperties,r=this.captionsTracks,n=this.media,i=e[t],a=i.label,s=i.languageCode,o=this.getExistingTrack(a,s);if(o)r[t]=o,Le(r[t]),Ie(r[t],n);else{var u=this.createTextTrack("captions",a,s);u&&(u[t]=!0,r[t]=u)}}},e.createNonNativeTrack=function(t){if(!this.nonNativeCaptionsTracks[t]){var e=this.captionsProperties[t];if(e){var r={_id:t,label:e.label,kind:"captions",default:!!e.media&&!!e.media.default,closedCaptions:e.media};this.nonNativeCaptionsTracks[t]=r,this.hls.trigger(b.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:[r]})}}},e.createTextTrack=function(t,e,r){var n=this.media;if(n)return n.addTextTrack(t,e,r)},e.onMediaAttaching=function(t,e){this.media=e.media,this._cleanTracks()},e.onMediaDetaching=function(){var t=this.captionsTracks;Object.keys(t).forEach((function(e){Le(t[e]),delete t[e]})),this.nonNativeCaptionsTracks={}},e.onManifestLoading=function(){this.lastCc=-1,this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs={ccOffset:0,presentationOffset:0,0:{start:0,prevCC:-1,new:!0}},this._cleanTracks(),this.tracks=[],this.captionsTracks={},this.nonNativeCaptionsTracks={},this.textTracks=[],this.unparsedVttFrags=[],this.initPTS=[],this.cea608Parser1&&this.cea608Parser2&&(this.cea608Parser1.reset(),this.cea608Parser2.reset())},e._cleanTracks=function(){var t=this.media;if(t){var e=t.textTracks;if(e)for(var r=0;r<e.length;r++)Le(e[r])}},e.onSubtitleTracksUpdated=function(t,e){var r=this,n=e.subtitleTracks||[],i=n.some((function(t){return t.textCodec===da}));if(this.config.enableWebVTT||i&&this.config.enableIMSC1){if(bi(this.tracks,n))return void(this.tracks=n);if(this.textTracks=[],this.tracks=n,this.config.renderTextTracksNatively){var a=this.media,s=a?Re(a.textTracks):null;if(this.tracks.forEach((function(t,e){var n;if(s){for(var i=null,a=0;a<s.length;a++)if(s[a]&&Ca(s[a],t)){i=s[a],s[a]=null;break}i&&(n=i)}if(n)Le(n);else{var o=Ba(t);(n=r.createTextTrack(o,t.name,t.lang))&&(n.mode="disabled")}n&&r.textTracks.push(n)})),null!=s&&s.length){var o=s.filter((function(t){return null!==t})).map((function(t){return t.label}));o.length&&S.warn("Media element contains unused subtitle tracks: "+o.join(", ")+". Replace media element for each source to clear TextTracks and captions menu.")}}else if(this.tracks.length){var u=this.tracks.map((function(t){return{label:t.name,kind:t.type.toLowerCase(),default:t.default,subtitleTrack:t}}));this.hls.trigger(b.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:u})}}},e.onManifestLoaded=function(t,e){var r=this;this.config.enableCEA708Captions&&e.captions&&e.captions.forEach((function(t){var e=/(?:CC|SERVICE)([1-4])/.exec(t.instreamId);if(e){var n="textTrack"+e[1],i=r.captionsProperties[n];i&&(i.label=t.name,t.lang&&(i.languageCode=t.lang),i.media=t)}}))},e.closedCaptionsForLevel=function(t){var e=this.hls.levels[t.level];return null==e?void 0:e.attrs["CLOSED-CAPTIONS"]},e.onFragLoading=function(t,e){this.initCea608Parsers();var r=this.cea608Parser1,n=this.cea608Parser2,i=this.lastCc,a=this.lastSn,s=this.lastPartIndex;if(this.enabled&&r&&n&&e.frag.type===Ce){var o,u,l=e.frag,c=l.cc,A=l.sn,d=null!=(o=null==e||null==(u=e.part)?void 0:u.index)?o:-1;A===a+1||A===a&&d===s+1||c===i||(r.reset(),n.reset()),this.lastCc=c,this.lastSn=A,this.lastPartIndex=d}},e.onFragLoaded=function(t,e){var r=e.frag,n=e.payload;if(r.type===xe)if(n.byteLength){var i=r.decryptdata,a="stats"in e;if(null==i||!i.encrypted||a){var s=this.tracks[r.level],o=this.vttCCs;o[r.cc]||(o[r.cc]={start:r.start,prevCC:this.prevCC,new:!0},this.prevCC=r.cc),s&&s.textCodec===da?this._parseIMSC1(r,n):this._parseVTTs(e)}}else this.hls.trigger(b.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:r,error:new Error("Empty subtitle payload")})},e._parseIMSC1=function(t,e){var r=this,n=this.hls;ga(e,this.initPTS[t.cc],(function(e){r._appendCues(e,t.level),n.trigger(b.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:t})}),(function(e){S.log("Failed to parse IMSC1: "+e),n.trigger(b.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:t,error:e})}))},e._parseVTTs=function(t){var e,r=this,n=t.frag,i=t.payload,a=this.initPTS,s=this.unparsedVttFrags,o=a.length-1;if(a[n.cc]||-1!==o){var u=this.hls;(function(t,e,r,n,i,a,s){var o,u,l,c=new oa,A=mt(new Uint8Array(t)).trim().replace(ua,"\n").split("\n"),d=[],f=e?(o=e.baseTime,void 0===(u=e.timescale)&&(u=1),Xn(o,9e4,1/u)):0,h="00:00.000",p=0,g=0,v=!0;c.oncue=function(t){var a=r[n],s=r.ccOffset,o=(p-f)/9e4;if(null!=a&&a.new&&(void 0!==g?s=r.ccOffset=a.start:function(t,e,r){var n=t[e],i=t[n.prevCC];if(!i||!i.new&&n.new)return t.ccOffset=t.presentationOffset=n.start,void(n.new=!1);for(;null!=(a=i)&&a.new;){var a;t.ccOffset+=n.start-i.start,n.new=!1,i=t[(n=i).prevCC]}t.presentationOffset=r}(r,n,o)),o){if(!e)return void(l=new Error("Missing initPTS for VTT MPEGTS"));s=o-r.presentationOffset}var u=t.endTime-t.startTime,c=ri(9e4*(t.startTime+s-g),9e4*i)/9e4;t.startTime=Math.max(c,0),t.endTime=Math.max(c+u,0);var A=t.text.trim();t.text=decodeURIComponent(encodeURIComponent(A)),t.id||(t.id=Aa(t.startTime,t.endTime,A)),t.endTime>0&&d.push(t)},c.onparsingerror=function(t){l=t},c.onflush=function(){l?s(l):a(d)},A.forEach((function(t){if(v){if(la(t,"X-TIMESTAMP-MAP=")){v=!1,t.slice(16).split(",").forEach((function(t){la(t,"LOCAL:")?h=t.slice(6):la(t,"MPEGTS:")&&(p=parseInt(t.slice(7)))}));try{g=function(t){var e=parseInt(t.slice(-3)),r=parseInt(t.slice(-6,-4)),n=parseInt(t.slice(-9,-7)),i=t.length>9?parseInt(t.substring(0,t.indexOf(":"))):0;if(!(m(e)&&m(r)&&m(n)&&m(i)))throw Error("Malformed X-TIMESTAMP-MAP: Local:"+t);return e+=1e3*r,(e+=6e4*n)+36e5*i}(h)/1e3}catch(t){l=t}return}""===t&&(v=!1)}c.parse(t+"\n")})),c.flush()})(null!=(e=n.initSegment)&&e.data?Pt(n.initSegment.data,new Uint8Array(i)):i,this.initPTS[n.cc],this.vttCCs,n.cc,n.start,(function(t){r._appendCues(t,n.level),u.trigger(b.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:n})}),(function(e){var a="Missing initPTS for VTT MPEGTS"===e.message;a?s.push(t):r._fallbackToIMSC1(n,i),S.log("Failed to parse VTT cue: "+e),a&&o>n.cc||u.trigger(b.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:n,error:e})}))}else s.push(t)},e._fallbackToIMSC1=function(t,e){var r=this,n=this.tracks[t.level];n.textCodec||ga(e,this.initPTS[t.cc],(function(){n.textCodec=da,r._parseIMSC1(t,e)}),(function(){n.textCodec="wvtt"}))},e._appendCues=function(t,e){var r=this.hls;if(this.config.renderTextTracksNatively){var n=this.textTracks[e];if(!n||"disabled"===n.mode)return;t.forEach((function(t){return Fe(n,t)}))}else{var i=this.tracks[e];if(!i)return;var a=i.default?"default":"subtitles"+e;r.trigger(b.CUES_PARSED,{type:"subtitles",cues:t,track:a})}},e.onFragDecrypted=function(t,e){e.frag.type===xe&&this.onFragLoaded(b.FRAG_LOADED,e)},e.onSubtitleTracksCleared=function(){this.tracks=[],this.captionsTracks={}},e.onFragParsingUserdata=function(t,e){this.initCea608Parsers();var r=this.cea608Parser1,n=this.cea608Parser2;if(this.enabled&&r&&n){var i=e.frag,a=e.samples;if(i.type!==Ce||"NONE"!==this.closedCaptionsForLevel(i))for(var s=0;s<a.length;s++){var o=a[s].bytes;if(o){var u=this.extractCea608Data(o);r.addData(a[s].pts,u[0]),n.addData(a[s].pts,u[1])}}}},e.onBufferFlushing=function(t,e){var r=e.startOffset,n=e.endOffset,i=e.endOffsetSubtitles,a=e.type,s=this.media;if(s&&!(s.currentTime<n)){if(!a||"video"===a){var o=this.captionsTracks;Object.keys(o).forEach((function(t){return De(o[t],r,n)}))}if(this.config.renderTextTracksNatively&&0===r&&void 0!==i){var u=this.textTracks;Object.keys(u).forEach((function(t){return De(u[t],r,i)}))}}},e.extractCea608Data=function(t){for(var e=[[],[]],r=31&t[0],n=2,i=0;i<r;i++){var a=t[n++],s=127&t[n++],o=127&t[n++];if((0!==s||0!==o)&&0!=(4&a)){var u=3&a;0!==u&&1!==u||(e[u].push(s),e[u].push(o))}}return e},t}();function Ba(t){return t.characteristics&&/transcribes-spoken-dialog/gi.test(t.characteristics)&&/describes-music-and-sound/gi.test(t.characteristics)?"captions":"subtitles"}function Ca(t,e){return!!t&&t.kind===Ba(e)&&Bi(e,t)}var Ea=function(){function t(t){this.hls=void 0,this.autoLevelCapping=void 0,this.firstLevel=void 0,this.media=void 0,this.restrictedLevels=void 0,this.timer=void 0,this.clientRect=void 0,this.streamController=void 0,this.hls=t,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.firstLevel=-1,this.media=null,this.restrictedLevels=[],this.timer=void 0,this.clientRect=null,this.registerListeners()}var e=t.prototype;return e.setStreamController=function(t){this.streamController=t},e.destroy=function(){this.hls&&this.unregisterListener(),this.timer&&this.stopCapping(),this.media=null,this.clientRect=null,this.hls=this.streamController=null},e.registerListeners=function(){var t=this.hls;t.on(b.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),t.on(b.MEDIA_ATTACHING,this.onMediaAttaching,this),t.on(b.MANIFEST_PARSED,this.onManifestParsed,this),t.on(b.LEVELS_UPDATED,this.onLevelsUpdated,this),t.on(b.BUFFER_CODECS,this.onBufferCodecs,this),t.on(b.MEDIA_DETACHING,this.onMediaDetaching,this)},e.unregisterListener=function(){var t=this.hls;t.off(b.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),t.off(b.MEDIA_ATTACHING,this.onMediaAttaching,this),t.off(b.MANIFEST_PARSED,this.onManifestParsed,this),t.off(b.LEVELS_UPDATED,this.onLevelsUpdated,this),t.off(b.BUFFER_CODECS,this.onBufferCodecs,this),t.off(b.MEDIA_DETACHING,this.onMediaDetaching,this)},e.onFpsDropLevelCapping=function(t,e){var r=this.hls.levels[e.droppedLevel];this.isLevelAllowed(r)&&this.restrictedLevels.push({bitrate:r.bitrate,height:r.height,width:r.width})},e.onMediaAttaching=function(t,e){this.media=e.media instanceof HTMLVideoElement?e.media:null,this.clientRect=null,this.timer&&this.hls.levels.length&&this.detectPlayerSize()},e.onManifestParsed=function(t,e){var r=this.hls;this.restrictedLevels=[],this.firstLevel=e.firstLevel,r.config.capLevelToPlayerSize&&e.video&&this.startCapping()},e.onLevelsUpdated=function(t,e){this.timer&&m(this.autoLevelCapping)&&this.detectPlayerSize()},e.onBufferCodecs=function(t,e){this.hls.config.capLevelToPlayerSize&&e.video&&this.startCapping()},e.onMediaDetaching=function(){this.stopCapping()},e.detectPlayerSize=function(){if(this.media){if(this.mediaHeight<=0||this.mediaWidth<=0)return void(this.clientRect=null);var t=this.hls.levels;if(t.length){var e=this.hls,r=this.getMaxLevel(t.length-1);r!==this.autoLevelCapping&&S.log("Setting autoLevelCapping to "+r+": "+t[r].height+"p@"+t[r].bitrate+" for media "+this.mediaWidth+"x"+this.mediaHeight),e.autoLevelCapping=r,e.autoLevelCapping>this.autoLevelCapping&&this.streamController&&this.streamController.nextLevelSwitch(),this.autoLevelCapping=e.autoLevelCapping}}},e.getMaxLevel=function(e){var r=this,n=this.hls.levels;if(!n.length)return-1;var i=n.filter((function(t,n){return r.isLevelAllowed(t)&&n<=e}));return this.clientRect=null,t.getMaxLevelByMediaSize(i,this.mediaWidth,this.mediaHeight)},e.startCapping=function(){this.timer||(this.autoLevelCapping=Number.POSITIVE_INFINITY,self.clearInterval(this.timer),this.timer=self.setInterval(this.detectPlayerSize.bind(this),1e3),this.detectPlayerSize())},e.stopCapping=function(){this.restrictedLevels=[],this.firstLevel=-1,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.timer&&(self.clearInterval(this.timer),this.timer=void 0)},e.getDimensions=function(){if(this.clientRect)return this.clientRect;var t=this.media,e={width:0,height:0};if(t){var r=t.getBoundingClientRect();e.width=r.width,e.height=r.height,e.width||e.height||(e.width=r.right-r.left||t.width||0,e.height=r.bottom-r.top||t.height||0)}return this.clientRect=e,e},e.isLevelAllowed=function(t){return!this.restrictedLevels.some((function(e){return t.bitrate===e.bitrate&&t.width===e.width&&t.height===e.height}))},t.getMaxLevelByMediaSize=function(t,e,r){if(null==t||!t.length)return-1;for(var n,i,a=t.length-1,s=Math.max(e,r),o=0;o<t.length;o+=1){var u=t[o];if((u.width>=s||u.height>=s)&&(n=u,!(i=t[o+1])||n.width!==i.width||n.height!==i.height)){a=o;break}}return a},a(t,[{key:"mediaWidth",get:function(){return this.getDimensions().width*this.contentScaleFactor}},{key:"mediaHeight",get:function(){return this.getDimensions().height*this.contentScaleFactor}},{key:"contentScaleFactor",get:function(){var t=1;if(!this.hls.config.ignoreDevicePixelRatio)try{t=self.devicePixelRatio}catch(t){}return t}}]),t}(),xa=function(){function t(t){this.hls=void 0,this.isVideoPlaybackQualityAvailable=!1,this.timer=void 0,this.media=null,this.lastTime=void 0,this.lastDroppedFrames=0,this.lastDecodedFrames=0,this.streamController=void 0,this.hls=t,this.registerListeners()}var e=t.prototype;return e.setStreamController=function(t){this.streamController=t},e.registerListeners=function(){this.hls.on(b.MEDIA_ATTACHING,this.onMediaAttaching,this)},e.unregisterListeners=function(){this.hls.off(b.MEDIA_ATTACHING,this.onMediaAttaching,this)},e.destroy=function(){this.timer&&clearInterval(this.timer),this.unregisterListeners(),this.isVideoPlaybackQualityAvailable=!1,this.media=null},e.onMediaAttaching=function(t,e){var r=this.hls.config;if(r.capLevelOnFPSDrop){var n=e.media instanceof self.HTMLVideoElement?e.media:null;this.media=n,n&&"function"==typeof n.getVideoPlaybackQuality&&(this.isVideoPlaybackQualityAvailable=!0),self.clearInterval(this.timer),this.timer=self.setInterval(this.checkFPSInterval.bind(this),r.fpsDroppedMonitoringPeriod)}},e.checkFPS=function(t,e,r){var n=performance.now();if(e){if(this.lastTime){var i=n-this.lastTime,a=r-this.lastDroppedFrames,s=e-this.lastDecodedFrames,o=1e3*a/i,u=this.hls;if(u.trigger(b.FPS_DROP,{currentDropped:a,currentDecoded:s,totalDroppedFrames:r}),o>0&&a>u.config.fpsDroppedMonitoringThreshold*s){var l=u.currentLevel;S.warn("drop FPS ratio greater than max allowed value for currentLevel: "+l),l>0&&(-1===u.autoLevelCapping||u.autoLevelCapping>=l)&&(l-=1,u.trigger(b.FPS_DROP_LEVEL_CAPPING,{level:l,droppedLevel:u.currentLevel}),u.autoLevelCapping=l,this.streamController.nextLevelSwitch())}}this.lastTime=n,this.lastDroppedFrames=r,this.lastDecodedFrames=e}},e.checkFPSInterval=function(){var t=this.media;if(t)if(this.isVideoPlaybackQualityAvailable){var e=t.getVideoPlaybackQuality();this.checkFPS(t,e.totalVideoFrames,e.droppedVideoFrames)}else this.checkFPS(t,t.webkitDecodedFrameCount,t.webkitDroppedFrameCount)},t}(),Ta="[eme]",Sa=function(){function t(e){this.hls=void 0,this.config=void 0,this.media=null,this.keyFormatPromise=null,this.keySystemAccessPromises={},this._requestLicenseFailureCount=0,this.mediaKeySessions=[],this.keyIdToKeySessionPromise={},this.setMediaKeysQueue=t.CDMCleanupPromise?[t.CDMCleanupPromise]:[],this.onMediaEncrypted=this._onMediaEncrypted.bind(this),this.onWaitingForKey=this._onWaitingForKey.bind(this),this.debug=S.debug.bind(S,Ta),this.log=S.log.bind(S,Ta),this.warn=S.warn.bind(S,Ta),this.error=S.error.bind(S,Ta),this.hls=e,this.config=e.config,this.registerListeners()}var r=t.prototype;return r.destroy=function(){this.unregisterListeners(),this.onMediaDetached();var t=this.config;t.requestMediaKeySystemAccessFunc=null,t.licenseXhrSetup=t.licenseResponseCallback=void 0,t.drmSystems=t.drmSystemOptions={},this.hls=this.onMediaEncrypted=this.onWaitingForKey=this.keyIdToKeySessionPromise=null,this.config=null},r.registerListeners=function(){this.hls.on(b.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.on(b.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.on(b.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.on(b.MANIFEST_LOADED,this.onManifestLoaded,this)},r.unregisterListeners=function(){this.hls.off(b.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.off(b.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.off(b.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.off(b.MANIFEST_LOADED,this.onManifestLoaded,this)},r.getLicenseServerUrl=function(t){var e=this.config,r=e.drmSystems,n=e.widevineLicenseUrl,i=r[t];if(i)return i.licenseUrl;if(t===G.WIDEVINE&&n)return n;throw new Error('no license server URL configured for key-system "'+t+'"')},r.getServerCertificateUrl=function(t){var e=this.config.drmSystems[t];if(e)return e.serverCertificateUrl;this.log('No Server Certificate in config.drmSystems["'+t+'"]')},r.attemptKeySystemAccess=function(t){var e=this,r=this.hls.levels,n=function(t,e,r){return!!t&&r.indexOf(t)===e},i=r.map((function(t){return t.audioCodec})).filter(n),a=r.map((function(t){return t.videoCodec})).filter(n);return i.length+a.length===0&&a.push("avc1.42e01e"),new Promise((function(r,n){!function t(s){var o=s.shift();e.getMediaKeysPromise(o,i,a).then((function(t){return r({keySystem:o,mediaKeys:t})})).catch((function(e){s.length?t(s):n(e instanceof Da?e:new Da({type:_.KEY_SYSTEM_ERROR,details:B.KEY_SYSTEM_NO_ACCESS,error:e,fatal:!0},e.message))}))}(t)}))},r.requestMediaKeySystemAccess=function(t,e){var r=this.config.requestMediaKeySystemAccessFunc;if("function"!=typeof r){var n="Configured requestMediaKeySystemAccess is not a function "+r;return null===et&&"http:"===self.location.protocol&&(n="navigator.requestMediaKeySystemAccess is not available over insecure protocol "+location.protocol),Promise.reject(new Error(n))}return r(t,e)},r.getMediaKeysPromise=function(t,e,r){var n=this,i=function(t,e,r,n){var i;switch(t){case G.FAIRPLAY:i=["cenc","sinf"];break;case G.WIDEVINE:case G.PLAYREADY:i=["cenc"];break;case G.CLEARKEY:i=["cenc","keyids"];break;default:throw new Error("Unknown key-system: "+t)}return function(t,e,r,n){return[{initDataTypes:t,persistentState:n.persistentState||"optional",distinctiveIdentifier:n.distinctiveIdentifier||"optional",sessionTypes:n.sessionTypes||[n.sessionType||"temporary"],audioCapabilities:e.map((function(t){return{contentType:'audio/mp4; codecs="'+t+'"',robustness:n.audioRobustness||"",encryptionScheme:n.audioEncryptionScheme||null}})),videoCapabilities:r.map((function(t){return{contentType:'video/mp4; codecs="'+t+'"',robustness:n.videoRobustness||"",encryptionScheme:n.videoEncryptionScheme||null}}))}]}(i,e,r,n)}(t,e,r,this.config.drmSystemOptions),a=this.keySystemAccessPromises[t],s=null==a?void 0:a.keySystemAccess;if(!s){this.log('Requesting encrypted media "'+t+'" key-system access with config: '+JSON.stringify(i)),s=this.requestMediaKeySystemAccess(t,i);var o=this.keySystemAccessPromises[t]={keySystemAccess:s};return s.catch((function(e){n.log('Failed to obtain access to key-system "'+t+'": '+e)})),s.then((function(e){n.log('Access for key-system "'+e.keySystem+'" obtained');var r=n.fetchServerCertificate(t);return n.log('Create media-keys for "'+t+'"'),o.mediaKeys=e.createMediaKeys().then((function(e){return n.log('Media-keys created for "'+t+'"'),r.then((function(r){return r?n.setMediaKeysServerCertificate(e,t,r):e}))})),o.mediaKeys.catch((function(e){n.error('Failed to create media-keys for "'+t+'"}: '+e)})),o.mediaKeys}))}return s.then((function(){return a.mediaKeys}))},r.createMediaKeySessionContext=function(t){var e=t.decryptdata,r=t.keySystem,n=t.mediaKeys;this.log('Creating key-system session "'+r+'" keyId: '+yt(e.keyId||[]));var i=n.createSession(),a={decryptdata:e,keySystem:r,mediaKeys:n,mediaKeysSession:i,keyStatus:"status-pending"};return this.mediaKeySessions.push(a),a},r.renewKeySession=function(t){var e=t.decryptdata;if(e.pssh){var r=this.createMediaKeySessionContext(t),n=this.getKeyIdString(e);this.keyIdToKeySessionPromise[n]=this.generateRequestWithPreferredKeySession(r,"cenc",e.pssh,"expired")}else this.warn("Could not renew expired session. Missing pssh initData.");this.removeSession(t)},r.getKeyIdString=function(t){if(!t)throw new Error("Could not read keyId of undefined decryptdata");if(null===t.keyId)throw new Error("keyId is null");return yt(t.keyId)},r.updateKeySession=function(t,e){var r,n=t.mediaKeysSession;return this.log('Updating key-session "'+n.sessionId+'" for keyID '+yt((null==(r=t.decryptdata)?void 0:r.keyId)||[])+"\n      } (data length: "+(e?e.byteLength:e)+")"),n.update(e)},r.selectKeySystemFormat=function(t){var e=Object.keys(t.levelkeys||{});return this.keyFormatPromise||(this.log("Selecting key-system from fragment (sn: "+t.sn+" "+t.type+": "+t.level+") key formats "+e.join(", ")),this.keyFormatPromise=this.getKeyFormatPromise(e)),this.keyFormatPromise},r.getKeyFormatPromise=function(t){var e=this;return new Promise((function(r,n){var i=Z(e.config),a=t.map(q).filter((function(t){return!!t&&-1!==i.indexOf(t)}));return e.getKeySystemSelectionPromise(a).then((function(t){var e=t.keySystem,i=J(e);i?r(i):n(new Error('Unable to find format for key-system "'+e+'"'))})).catch(n)}))},r.loadKey=function(t){var e=this,r=t.keyInfo.decryptdata,n=this.getKeyIdString(r),i="(keyId: "+n+' format: "'+r.keyFormat+'" method: '+r.method+" uri: "+r.uri+")";this.log("Starting session for key "+i);var a=this.keyIdToKeySessionPromise[n];return a||(a=this.keyIdToKeySessionPromise[n]=this.getKeySystemForKeyPromise(r).then((function(n){var a=n.keySystem,s=n.mediaKeys;return e.throwIfDestroyed(),e.log("Handle encrypted media sn: "+t.frag.sn+" "+t.frag.type+": "+t.frag.level+" using key "+i),e.attemptSetMediaKeys(a,s).then((function(){e.throwIfDestroyed();var t=e.createMediaKeySessionContext({keySystem:a,mediaKeys:s,decryptdata:r});return e.generateRequestWithPreferredKeySession(t,"cenc",r.pssh,"playlist-key")}))}))).catch((function(t){return e.handleError(t)})),a},r.throwIfDestroyed=function(t){if(!this.hls)throw new Error("invalid state")},r.handleError=function(t){this.hls&&(this.error(t.message),t instanceof Da?this.hls.trigger(b.ERROR,t.data):this.hls.trigger(b.ERROR,{type:_.KEY_SYSTEM_ERROR,details:B.KEY_SYSTEM_NO_KEYS,error:t,fatal:!0}))},r.getKeySystemForKeyPromise=function(t){var e=this.getKeyIdString(t),r=this.keyIdToKeySessionPromise[e];if(!r){var n=q(t.keyFormat),i=n?[n]:Z(this.config);return this.attemptKeySystemAccess(i)}return r},r.getKeySystemSelectionPromise=function(t){if(t.length||(t=Z(this.config)),0===t.length)throw new Da({type:_.KEY_SYSTEM_ERROR,details:B.KEY_SYSTEM_NO_CONFIGURED_LICENSE,fatal:!0},"Missing key-system license configuration options "+JSON.stringify({drmSystems:this.config.drmSystems}));return this.attemptKeySystemAccess(t)},r._onMediaEncrypted=function(t){var e=this,r=t.initDataType,n=t.initData;if(this.debug('"'+t.type+'" event: init data type: "'+r+'"'),null!==n){var i,a;if("sinf"===r&&this.config.drmSystems[G.FAIRPLAY]){var s=Bt(new Uint8Array(n));try{var o=$(JSON.parse(s).sinf),u=Ut(new Uint8Array(o));if(!u)return;i=u.subarray(8,24),a=G.FAIRPLAY}catch(t){return void this.warn('Failed to parse sinf "encrypted" event message initData')}}else{var l=function(t){if(!(t instanceof ArrayBuffer)||t.byteLength<32)return null;var e={version:0,systemId:"",kids:null,data:null},r=new DataView(t),n=r.getUint32(0);if(t.byteLength!==n&&n>44)return null;if(1886614376!==r.getUint32(4))return null;if(e.version=r.getUint32(8)>>>24,e.version>1)return null;e.systemId=yt(new Uint8Array(t,12,16));var i=r.getUint32(28);if(0===e.version){if(n-32<i)return null;e.data=new Uint8Array(t,32,i)}else if(1===e.version){e.kids=[];for(var a=0;a<i;a++)e.kids.push(new Uint8Array(t,32+16*a,16))}return e}(n);if(null===l)return;0===l.version&&l.systemId===X&&l.data&&(i=l.data.subarray(8,24)),a=function(t){if(t===X)return G.WIDEVINE}(l.systemId)}if(a&&i){for(var c,A=yt(i),d=this.keyIdToKeySessionPromise,f=this.mediaKeySessions,h=d[A],p=function(){var t=f[g],a=t.decryptdata;if(a.pssh||!a.keyId)return 0;var s=yt(a.keyId);return A===s||-1!==a.uri.replace(/-/g,"").indexOf(A)?(h=d[s],delete d[s],a.pssh=new Uint8Array(n),a.keyId=i,h=d[A]=h.then((function(){return e.generateRequestWithPreferredKeySession(t,r,n,"encrypted-event-key-match")})),1):void 0},g=0;g<f.length&&(0===(c=p())||1!==c);g++);h||(h=d[A]=this.getKeySystemSelectionPromise([a]).then((function(t){var a,s=t.keySystem,o=t.mediaKeys;e.throwIfDestroyed();var u=new jt("ISO-23001-7",A,null!=(a=J(s))?a:"");return u.pssh=new Uint8Array(n),u.keyId=i,e.attemptSetMediaKeys(s,o).then((function(){e.throwIfDestroyed();var t=e.createMediaKeySessionContext({decryptdata:u,keySystem:s,mediaKeys:o});return e.generateRequestWithPreferredKeySession(t,r,n,"encrypted-event-no-match")}))}))),h.catch((function(t){return e.handleError(t)}))}}},r._onWaitingForKey=function(t){this.log('"'+t.type+'" event')},r.attemptSetMediaKeys=function(t,e){var r=this,n=this.setMediaKeysQueue.slice();this.log('Setting media-keys for "'+t+'"');var i=Promise.all(n).then((function(){if(!r.media)throw new Error("Attempted to set mediaKeys without media element attached");return r.media.setMediaKeys(e)}));return this.setMediaKeysQueue.push(i),i.then((function(){r.log('Media-keys set for "'+t+'"'),n.push(i),r.setMediaKeysQueue=r.setMediaKeysQueue.filter((function(t){return-1===n.indexOf(t)}))}))},r.generateRequestWithPreferredKeySession=function(t,e,r,n){var i,a,s=this,o=null==(i=this.config.drmSystems)||null==(a=i[t.keySystem])?void 0:a.generateRequest;if(o)try{var u=o.call(this.hls,e,r,t);if(!u)throw new Error("Invalid response from configured generateRequest filter");e=u.initDataType,r=t.decryptdata.pssh=u.initData?new Uint8Array(u.initData):null}catch(t){var l;if(this.warn(t.message),null!=(l=this.hls)&&l.config.debug)throw t}if(null===r)return this.log('Skipping key-session request for "'+n+'" (no initData)'),Promise.resolve(t);var c=this.getKeyIdString(t.decryptdata);this.log('Generating key-session request for "'+n+'": '+c+" (init data type: "+e+" length: "+(r?r.byteLength:null)+")");var A=new gi,d=t._onmessage=function(e){var r=t.mediaKeysSession;if(r){var n=e.messageType,i=e.message;s.log('"'+n+'" message event for session "'+r.sessionId+'" message size: '+i.byteLength),"license-request"===n||"license-renewal"===n?s.renewLicense(t,i).catch((function(t){s.handleError(t),A.emit("error",t)})):"license-release"===n?t.keySystem===G.FAIRPLAY&&(s.updateKeySession(t,j("acknowledged")),s.removeSession(t)):s.warn('unhandled media key message type "'+n+'"')}else A.emit("error",new Error("invalid state"))},f=t._onkeystatuseschange=function(e){if(t.mediaKeysSession){s.onKeyStatusChange(t);var r=t.keyStatus;A.emit("keyStatus",r),"expired"===r&&(s.warn(t.keySystem+" expired for key "+c),s.renewKeySession(t))}else A.emit("error",new Error("invalid state"))};t.mediaKeysSession.addEventListener("message",d),t.mediaKeysSession.addEventListener("keystatuseschange",f);var h=new Promise((function(t,e){A.on("error",e),A.on("keyStatus",(function(r){r.startsWith("usable")?t():"output-restricted"===r?e(new Da({type:_.KEY_SYSTEM_ERROR,details:B.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED,fatal:!1},"HDCP level output restricted")):"internal-error"===r?e(new Da({type:_.KEY_SYSTEM_ERROR,details:B.KEY_SYSTEM_STATUS_INTERNAL_ERROR,fatal:!0},'key status changed to "'+r+'"')):"expired"===r?e(new Error("key expired while generating request")):s.warn('unhandled key status change "'+r+'"')}))}));return t.mediaKeysSession.generateRequest(e,r).then((function(){var e;s.log('Request generated for key-session "'+(null==(e=t.mediaKeysSession)?void 0:e.sessionId)+'" keyId: '+c)})).catch((function(t){throw new Da({type:_.KEY_SYSTEM_ERROR,details:B.KEY_SYSTEM_NO_SESSION,error:t,fatal:!1},"Error generating key-session request: "+t)})).then((function(){return h})).catch((function(e){throw A.removeAllListeners(),s.removeSession(t),e})).then((function(){return A.removeAllListeners(),t}))},r.onKeyStatusChange=function(t){var e=this;t.mediaKeysSession.keyStatuses.forEach((function(r,n){e.log('key status change "'+r+'" for keyStatuses keyId: '+yt("buffer"in n?new Uint8Array(n.buffer,n.byteOffset,n.byteLength):new Uint8Array(n))+" session keyId: "+yt(new Uint8Array(t.decryptdata.keyId||[]))+" uri: "+t.decryptdata.uri),t.keyStatus=r}))},r.fetchServerCertificate=function(t){var r=this.config,n=new(0,r.loader)(r),i=this.getServerCertificateUrl(t);return i?(this.log('Fetching server certificate for "'+t+'"'),new Promise((function(a,s){var o={responseType:"arraybuffer",url:i},u=r.certLoadPolicy.default,l={loadPolicy:u,timeout:u.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},c={onSuccess:function(t,e,r,n){a(t.data)},onError:function(r,n,a,u){s(new Da({type:_.KEY_SYSTEM_ERROR,details:B.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:a,response:e({url:o.url,data:void 0},r)},'"'+t+'" certificate request failed ('+i+"). Status: "+r.code+" ("+r.text+")"))},onTimeout:function(e,r,n){s(new Da({type:_.KEY_SYSTEM_ERROR,details:B.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:n,response:{url:o.url,data:void 0}},'"'+t+'" certificate request timed out ('+i+")"))},onAbort:function(t,e,r){s(new Error("aborted"))}};n.load(o,l,c)}))):Promise.resolve()},r.setMediaKeysServerCertificate=function(t,e,r){var n=this;return new Promise((function(i,a){t.setServerCertificate(r).then((function(a){n.log("setServerCertificate "+(a?"success":"not supported by CDM")+" ("+(null==r?void 0:r.byteLength)+') on "'+e+'"'),i(t)})).catch((function(t){a(new Da({type:_.KEY_SYSTEM_ERROR,details:B.KEY_SYSTEM_SERVER_CERTIFICATE_UPDATE_FAILED,error:t,fatal:!0},t.message))}))}))},r.renewLicense=function(t,e){var r=this;return this.requestLicense(t,new Uint8Array(e)).then((function(e){return r.updateKeySession(t,new Uint8Array(e)).catch((function(t){throw new Da({type:_.KEY_SYSTEM_ERROR,details:B.KEY_SYSTEM_SESSION_UPDATE_FAILED,error:t,fatal:!0},t.message)}))}))},r.unpackPlayReadyKeyMessage=function(t,e){var r=String.fromCharCode.apply(null,new Uint16Array(e.buffer));if(!r.includes("PlayReadyKeyMessage"))return t.setRequestHeader("Content-Type","text/xml; charset=utf-8"),e;var n=(new DOMParser).parseFromString(r,"application/xml"),i=n.querySelectorAll("HttpHeader");if(i.length>0)for(var a,s=0,o=i.length;s<o;s++){var u,l,c=null==(u=(a=i[s]).querySelector("name"))?void 0:u.textContent,A=null==(l=a.querySelector("value"))?void 0:l.textContent;c&&A&&t.setRequestHeader(c,A)}var d=n.querySelector("Challenge"),f=null==d?void 0:d.textContent;if(!f)throw new Error("Cannot find <Challenge> in key message");return j(atob(f))},r.setupLicenseXHR=function(t,e,r,n){var i=this,a=this.config.licenseXhrSetup;return a?Promise.resolve().then((function(){if(!r.decryptdata)throw new Error("Key removed");return a.call(i.hls,t,e,r,n)})).catch((function(s){if(!r.decryptdata)throw s;return t.open("POST",e,!0),a.call(i.hls,t,e,r,n)})).then((function(r){return t.readyState||t.open("POST",e,!0),{xhr:t,licenseChallenge:r||n}})):(t.open("POST",e,!0),Promise.resolve({xhr:t,licenseChallenge:n}))},r.requestLicense=function(t,e){var r=this,n=this.config.keyLoadPolicy.default;return new Promise((function(i,a){var s=r.getLicenseServerUrl(t.keySystem);r.log("Sending license request to URL: "+s);var o=new XMLHttpRequest;o.responseType="arraybuffer",o.onreadystatechange=function(){if(!r.hls||!t.mediaKeysSession)return a(new Error("invalid state"));if(4===o.readyState)if(200===o.status){r._requestLicenseFailureCount=0;var u=o.response;r.log("License received "+(u instanceof ArrayBuffer?u.byteLength:u));var l=r.config.licenseResponseCallback;if(l)try{u=l.call(r.hls,o,s,t)}catch(t){r.error(t)}i(u)}else{var c=n.errorRetry,A=c?c.maxNumRetry:0;if(r._requestLicenseFailureCount++,r._requestLicenseFailureCount>A||o.status>=400&&o.status<500)a(new Da({type:_.KEY_SYSTEM_ERROR,details:B.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0,networkDetails:o,response:{url:s,data:void 0,code:o.status,text:o.statusText}},"License Request XHR failed ("+s+"). Status: "+o.status+" ("+o.statusText+")"));else{var d=A-r._requestLicenseFailureCount+1;r.warn("Retrying license request, "+d+" attempts left"),r.requestLicense(t,e).then(i,a)}}},t.licenseXhr&&t.licenseXhr.readyState!==XMLHttpRequest.DONE&&t.licenseXhr.abort(),t.licenseXhr=o,r.setupLicenseXHR(o,s,t,e).then((function(e){var n=e.xhr,i=e.licenseChallenge;t.keySystem==G.PLAYREADY&&(i=r.unpackPlayReadyKeyMessage(n,i)),n.send(i)}))}))},r.onMediaAttached=function(t,e){if(this.config.emeEnabled){var r=e.media;this.media=r,r.addEventListener("encrypted",this.onMediaEncrypted),r.addEventListener("waitingforkey",this.onWaitingForKey)}},r.onMediaDetached=function(){var e=this,r=this.media,n=this.mediaKeySessions;r&&(r.removeEventListener("encrypted",this.onMediaEncrypted),r.removeEventListener("waitingforkey",this.onWaitingForKey),this.media=null),this._requestLicenseFailureCount=0,this.setMediaKeysQueue=[],this.mediaKeySessions=[],this.keyIdToKeySessionPromise={},jt.clearKeyUriToKeyIdMap();var i=n.length;t.CDMCleanupPromise=Promise.all(n.map((function(t){return e.removeSession(t)})).concat(null==r?void 0:r.setMediaKeys(null).catch((function(t){e.log("Could not clear media keys: "+t)})))).then((function(){i&&(e.log("finished closing key sessions and clearing media keys"),n.length=0)})).catch((function(t){e.log("Could not close sessions and clear media keys: "+t)}))},r.onManifestLoading=function(){this.keyFormatPromise=null},r.onManifestLoaded=function(t,e){var r=e.sessionKeys;if(r&&this.config.emeEnabled&&!this.keyFormatPromise){var n=r.reduce((function(t,e){return-1===t.indexOf(e.keyFormat)&&t.push(e.keyFormat),t}),[]);this.log("Selecting key-system from session-keys "+n.join(", ")),this.keyFormatPromise=this.getKeyFormatPromise(n)}},r.removeSession=function(t){var e=this,r=t.mediaKeysSession,n=t.licenseXhr;if(r){this.log("Remove licenses and keys and close session "+r.sessionId),t._onmessage&&(r.removeEventListener("message",t._onmessage),t._onmessage=void 0),t._onkeystatuseschange&&(r.removeEventListener("keystatuseschange",t._onkeystatuseschange),t._onkeystatuseschange=void 0),n&&n.readyState!==XMLHttpRequest.DONE&&n.abort(),t.mediaKeysSession=t.decryptdata=t.licenseXhr=void 0;var i=this.mediaKeySessions.indexOf(t);return i>-1&&this.mediaKeySessions.splice(i,1),r.remove().catch((function(t){e.log("Could not remove session: "+t)})).then((function(){return r.close()})).catch((function(t){e.log("Could not close session: "+t)}))}},t}();Sa.CDMCleanupPromise=void 0;var ka,Ia,Fa,La,Da=function(t){function e(e,r){var n;return(n=t.call(this,r)||this).data=void 0,e.error||(e.error=new Error(r)),n.data=e,e.err=e.error,n}return c(e,t),e}(h(Error));!function(t){t.MANIFEST="m",t.AUDIO="a",t.VIDEO="v",t.MUXED="av",t.INIT="i",t.CAPTION="c",t.TIMED_TEXT="tt",t.KEY="k",t.OTHER="o"}(ka||(ka={})),function(t){t.DASH="d",t.HLS="h",t.SMOOTH="s",t.OTHER="o"}(Ia||(Ia={})),function(t){t.OBJECT="CMCD-Object",t.REQUEST="CMCD-Request",t.SESSION="CMCD-Session",t.STATUS="CMCD-Status"}(Fa||(Fa={}));var Ra=((La={})[Fa.OBJECT]=["br","d","ot","tb"],La[Fa.REQUEST]=["bl","dl","mtp","nor","nrr","su"],La[Fa.SESSION]=["cid","pr","sf","sid","st","v"],La[Fa.STATUS]=["bs","rtp"],La),Ua=function t(e,r){this.value=void 0,this.params=void 0,Array.isArray(e)&&(e=e.map((function(e){return e instanceof t?e:new t(e)}))),this.value=e,this.params=r},Oa=function(t){this.description=void 0,this.description=t};var Pa="Bare Item",Ma=/[\x00-\x1f\x7f]+/;function Qa(t,e,r){return function(t,e,r,n){return new Error("failed to "+t+' "'+(i=e,(Array.isArray(i)?JSON.stringify(i):i instanceof Map?"Map{}":i instanceof Set?"Set{}":"object"==s(i)?JSON.stringify(i):String(i))+'" as ')+r,{cause:n});var i}("serialize",t,e,r)}function Na(t){if(function(t){return t<-999999999999999||999999999999999<t}(t))throw Qa(t,"Integer");return t.toString()}function Ha(t){var e=function t(e,r){if(e<0)return-t(-e,r);var n=Math.pow(10,r);if(Math.abs(e*n%1-.5)<Number.EPSILON){var i=Math.floor(e*n);return(i%2==0?i:i+1)/n}return Math.round(e*n)/n}(t,3);if(Math.floor(Math.abs(e)).toString().length>12)throw Qa(t,"Decimal");var r=e.toString();return r.includes(".")?r:r+".0"}function $a(t){var e,r=(e=t).description||e.toString().slice(7,-1);if(!1===/^([a-zA-Z*])([!#$%&'*+\-.^_`|~\w:/]*)$/.test(r))throw Qa(r,"Token");return r}function ja(t){switch(s(t)){case"number":if(!m(t))throw Qa(t,Pa);return Number.isInteger(t)?Na(t):Ha(t);case"string":return function(t){if(Ma.test(t))throw Qa(t,"String");return'"'+t.replace(/\\/g,"\\\\").replace(/"/g,'\\"')+'"'}(t);case"symbol":return $a(t);case"boolean":return function(t){if("boolean"!=typeof t)throw Qa(t,"Boolean");return t?"?1":"?0"}(t);case"object":if(t instanceof Date)return function(t){return"@"+Na(t.getTime()/1e3)}(t);if(t instanceof Uint8Array)return function(t){if(!1===ArrayBuffer.isView(t))throw Qa(t,"Byte Sequence");return":"+(e=t,btoa(String.fromCharCode.apply(String,e))+":");var e}(t);if(t instanceof Oa)return $a(t);default:throw Qa(t,Pa)}}function Ka(t){if(!1===/^[a-z*][a-z0-9\-_.*]*$/.test(t))throw Qa(t,"Key");return t}function Ga(t){return null==t?"":Object.entries(t).map((function(t){var e=t[0],r=t[1];return!0===r?";"+Ka(e):";"+Ka(e)+"="+ja(r)})).join("")}function Va(t){return t instanceof Ua?""+ja(t.value)+Ga(t.params):ja(t)}var Wa=function(t){return Math.round(t)},za=function(t){return 100*Wa(t/100)},Ya={br:Wa,d:Wa,bl:za,dl:za,mtp:za,nor:function(t,e){return null!=e&&e.baseUrl&&(t=function(t,e){var r=new URL(t),n=new URL(e);if(r.origin!==n.origin)return t;for(var i=r.pathname.split("/").slice(1),a=n.pathname.split("/").slice(1,-1);i[0]===a[0];)i.shift(),a.shift();for(;a.length;)a.shift(),i.unshift("..");return i.join("/")}(t,e.baseUrl)),encodeURIComponent(t)},rtp:za,tb:Wa};function qa(t,e){return void 0===e&&(e={}),t?function(t,e){return function(t,e){var r;if(void 0===e&&(e={whitespace:!0}),"object"!=s(t))throw Qa(t,"Dict");var n=t instanceof Map?t.entries():Object.entries(t),i=null!=(r=e)&&r.whitespace?" ":"";return Array.from(n).map((function(t){var e=t[0],r=t[1];r instanceof Ua==0&&(r=new Ua(r));var n,i=Ka(e);return!0===r.value?i+=Ga(r.params):(i+="=",Array.isArray(r.value)?i+="("+(n=r).value.map(Va).join(" ")+")"+Ga(n.params):i+=Va(r)),i})).join(","+i)}(t,e)}(function(t,e){var r={};if(null==t||"object"!=s(t))return r;var n=Object.keys(t).sort(),i=l({},Ya,null==e?void 0:e.formatters),a=null==e?void 0:e.filter;return n.forEach((function(n){if(null==a||!a(n)){var s=t[n],o=i[n];o&&(s=o(s,e)),"v"===n&&1===s||"pr"==n&&1===s||function(t){return"number"==typeof t?m(t):null!=t&&""!==t&&!1!==t}(s)&&(function(t){return"ot"===t||"sf"===t||"st"===t}(n)&&"string"==typeof s&&(s=new Oa(s)),r[n]=s)}})),r}(t,e),l({whitespace:!1},e)):""}var Xa=/CMCD=[^&#]+/;var Ja=function(){function t(t){var e=this;this.hls=void 0,this.config=void 0,this.media=void 0,this.sid=void 0,this.cid=void 0,this.useHeaders=!1,this.includeKeys=void 0,this.initialized=!1,this.starved=!1,this.buffering=!0,this.audioBuffer=void 0,this.videoBuffer=void 0,this.onWaiting=function(){e.initialized&&(e.starved=!0),e.buffering=!0},this.onPlaying=function(){e.initialized||(e.initialized=!0),e.buffering=!1},this.applyPlaylistData=function(t){try{e.apply(t,{ot:ka.MANIFEST,su:!e.initialized})}catch(t){S.warn("Could not generate manifest CMCD data.",t)}},this.applyFragmentData=function(t){try{var r=t.frag,n=e.hls.levels[r.level],i=e.getObjectType(r),a={d:1e3*r.duration,ot:i};i!==ka.VIDEO&&i!==ka.AUDIO&&i!=ka.MUXED||(a.br=n.bitrate/1e3,a.tb=e.getTopBandwidth(i)/1e3,a.bl=e.getBufferLength(i)),e.apply(t,a)}catch(t){S.warn("Could not generate segment CMCD data.",t)}},this.hls=t;var r=this.config=t.config,i=r.cmcd;null!=i&&(r.pLoader=this.createPlaylistLoader(),r.fLoader=this.createFragmentLoader(),this.sid=i.sessionId||function(){try{return n.randomUUID()}catch(i){try{var t=URL.createObjectURL(new Blob),e=t.toString();return URL.revokeObjectURL(t),e.slice(e.lastIndexOf("/")+1)}catch(t){var r=(new Date).getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var e=(r+16*Math.random())%16|0;return r=Math.floor(r/16),("x"==t?e:3&e|8).toString(16)}))}}}(),this.cid=i.contentId,this.useHeaders=!0===i.useHeaders,this.includeKeys=i.includeKeys,this.registerListeners())}var e=t.prototype;return e.registerListeners=function(){var t=this.hls;t.on(b.MEDIA_ATTACHED,this.onMediaAttached,this),t.on(b.MEDIA_DETACHED,this.onMediaDetached,this),t.on(b.BUFFER_CREATED,this.onBufferCreated,this)},e.unregisterListeners=function(){var t=this.hls;t.off(b.MEDIA_ATTACHED,this.onMediaAttached,this),t.off(b.MEDIA_DETACHED,this.onMediaDetached,this),t.off(b.BUFFER_CREATED,this.onBufferCreated,this)},e.destroy=function(){this.unregisterListeners(),this.onMediaDetached(),this.hls=this.config=this.audioBuffer=this.videoBuffer=null,this.onWaiting=this.onPlaying=null},e.onMediaAttached=function(t,e){this.media=e.media,this.media.addEventListener("waiting",this.onWaiting),this.media.addEventListener("playing",this.onPlaying)},e.onMediaDetached=function(){this.media&&(this.media.removeEventListener("waiting",this.onWaiting),this.media.removeEventListener("playing",this.onPlaying),this.media=null)},e.onBufferCreated=function(t,e){var r,n;this.audioBuffer=null==(r=e.tracks.audio)?void 0:r.buffer,this.videoBuffer=null==(n=e.tracks.video)?void 0:n.buffer},e.createData=function(){var t;return{v:1,sf:Ia.HLS,sid:this.sid,cid:this.cid,pr:null==(t=this.media)?void 0:t.playbackRate,mtp:this.hls.bandwidthEstimate/1e3}},e.apply=function(t,e){void 0===e&&(e={}),l(e,this.createData());var r=e.ot===ka.INIT||e.ot===ka.VIDEO||e.ot===ka.MUXED;this.starved&&r&&(e.bs=!0,e.su=!0,this.starved=!1),null==e.su&&(e.su=this.buffering);var n=this.includeKeys;n&&(e=Object.keys(e).reduce((function(t,r){return n.includes(r)&&(t[r]=e[r]),t}),{})),this.useHeaders?(t.headers||(t.headers={}),function(t,e,r){l(t,function(t,e){var r;if(void 0===e&&(e={}),!t)return{};var n=Object.entries(t),i=Object.entries(Ra).concat(Object.entries((null==(r=e)?void 0:r.customHeaderMap)||{})),a=n.reduce((function(t,e){var r,n=e[0],a=e[1],s=(null==(r=i.find((function(t){return t[1].includes(n)})))?void 0:r[0])||Fa.REQUEST;return null!=t[s]||(t[s]={}),t[s][n]=a,t}),{});return Object.entries(a).reduce((function(t,r){var n=r[0],i=r[1];return t[n]=qa(i,e),t}),{})}(e,r))}(t.headers,e)):t.url=function(t,e,r){var n=function(t,e){if(void 0===e&&(e={}),!t)return"";var r=qa(t,e);return"CMCD="+encodeURIComponent(r)}(e,r);if(!n)return t;if(Xa.test(t))return t.replace(Xa,n);var i=t.includes("?")?"&":"?";return""+t+i+n}(t.url,e)},e.getObjectType=function(t){var e=t.type;return"subtitle"===e?ka.TIMED_TEXT:"initSegment"===t.sn?ka.INIT:"audio"===e?ka.AUDIO:"main"===e?this.hls.audioTracks.length?ka.VIDEO:ka.MUXED:void 0},e.getTopBandwidth=function(t){var e,r=0,n=this.hls;if(t===ka.AUDIO)e=n.audioTracks;else{var i=n.maxAutoLevel,a=i>-1?i+1:n.levels.length;e=n.levels.slice(0,a)}for(var s,o=function(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(r)return(r=r.call(t)).next.bind(r);if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return p(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?p(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0;return function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(e);!(s=o()).done;){var u=s.value;u.bitrate>r&&(r=u.bitrate)}return r>0?r:NaN},e.getBufferLength=function(t){var e=this.hls.media,r=t===ka.AUDIO?this.audioBuffer:this.videoBuffer;return r&&e?1e3*Dr.bufferInfo(r,e.currentTime,this.config.maxBufferHole).len:NaN},e.createPlaylistLoader=function(){var t=this.config.pLoader,e=this.applyPlaylistData,r=t||this.config.loader;return function(){function t(t){this.loader=void 0,this.loader=new r(t)}var n=t.prototype;return n.destroy=function(){this.loader.destroy()},n.abort=function(){this.loader.abort()},n.load=function(t,r,n){e(t),this.loader.load(t,r,n)},a(t,[{key:"stats",get:function(){return this.loader.stats}},{key:"context",get:function(){return this.loader.context}}]),t}()},e.createFragmentLoader=function(){var t=this.config.fLoader,e=this.applyFragmentData,r=t||this.config.loader;return function(){function t(t){this.loader=void 0,this.loader=new r(t)}var n=t.prototype;return n.destroy=function(){this.loader.destroy()},n.abort=function(){this.loader.abort()},n.load=function(t,r,n){e(t),this.loader.load(t,r,n)},a(t,[{key:"stats",get:function(){return this.loader.stats}},{key:"context",get:function(){return this.loader.context}}]),t}()},t}(),Za=function(){function t(t){this.hls=void 0,this.log=void 0,this.loader=null,this.uri=null,this.pathwayId=".",this.pathwayPriority=null,this.timeToLoad=300,this.reloadTimer=-1,this.updated=0,this.started=!1,this.enabled=!0,this.levels=null,this.audioTracks=null,this.subtitleTracks=null,this.penalizedPathways={},this.hls=t,this.log=S.log.bind(S,"[content-steering]:"),this.registerListeners()}var e=t.prototype;return e.registerListeners=function(){var t=this.hls;t.on(b.MANIFEST_LOADING,this.onManifestLoading,this),t.on(b.MANIFEST_LOADED,this.onManifestLoaded,this),t.on(b.MANIFEST_PARSED,this.onManifestParsed,this),t.on(b.ERROR,this.onError,this)},e.unregisterListeners=function(){var t=this.hls;t&&(t.off(b.MANIFEST_LOADING,this.onManifestLoading,this),t.off(b.MANIFEST_LOADED,this.onManifestLoaded,this),t.off(b.MANIFEST_PARSED,this.onManifestParsed,this),t.off(b.ERROR,this.onError,this))},e.startLoad=function(){if(this.started=!0,this.clearTimeout(),this.enabled&&this.uri){if(this.updated){var t=1e3*this.timeToLoad-(performance.now()-this.updated);if(t>0)return void this.scheduleRefresh(this.uri,t)}this.loadSteeringManifest(this.uri)}},e.stopLoad=function(){this.started=!1,this.loader&&(this.loader.destroy(),this.loader=null),this.clearTimeout()},e.clearTimeout=function(){-1!==this.reloadTimer&&(self.clearTimeout(this.reloadTimer),this.reloadTimer=-1)},e.destroy=function(){this.unregisterListeners(),this.stopLoad(),this.hls=null,this.levels=this.audioTracks=this.subtitleTracks=null},e.removeLevel=function(t){var e=this.levels;e&&(this.levels=e.filter((function(e){return e!==t})))},e.onManifestLoading=function(){this.stopLoad(),this.enabled=!0,this.timeToLoad=300,this.updated=0,this.uri=null,this.pathwayId=".",this.levels=this.audioTracks=this.subtitleTracks=null},e.onManifestLoaded=function(t,e){var r=e.contentSteering;null!==r&&(this.pathwayId=r.pathwayId,this.uri=r.uri,this.started&&this.startLoad())},e.onManifestParsed=function(t,e){this.audioTracks=e.audioTracks,this.subtitleTracks=e.subtitleTracks},e.onError=function(t,e){var r=e.errorAction;if(2===(null==r?void 0:r.action)&&1===r.flags){var n=this.levels,i=this.pathwayPriority,a=this.pathwayId;if(e.context){var s=e.context,o=s.groupId,u=s.pathwayId,l=s.type;o&&n?a=this.getPathwayForGroupId(o,l,a):u&&(a=u)}a in this.penalizedPathways||(this.penalizedPathways[a]=performance.now()),!i&&n&&(i=n.reduce((function(t,e){return-1===t.indexOf(e.pathwayId)&&t.push(e.pathwayId),t}),[])),i&&i.length>1&&(this.updatePathwayPriority(i),r.resolved=this.pathwayId!==a),r.resolved||S.warn("Could not resolve "+e.details+' ("'+e.error.message+'") with content-steering for Pathway: '+a+" levels: "+(n?n.length:n)+" priorities: "+JSON.stringify(i)+" penalized: "+JSON.stringify(this.penalizedPathways))}},e.filterParsedLevels=function(t){this.levels=t;var e=this.getLevelsForPathway(this.pathwayId);if(0===e.length){var r=t[0].pathwayId;this.log("No levels found in Pathway "+this.pathwayId+'. Setting initial Pathway to "'+r+'"'),e=this.getLevelsForPathway(r),this.pathwayId=r}return e.length!==t.length?(this.log("Found "+e.length+"/"+t.length+' levels in Pathway "'+this.pathwayId+'"'),e):t},e.getLevelsForPathway=function(t){return null===this.levels?[]:this.levels.filter((function(e){return t===e.pathwayId}))},e.updatePathwayPriority=function(t){var e;this.pathwayPriority=t;var r=this.penalizedPathways,n=performance.now();Object.keys(r).forEach((function(t){n-r[t]>3e5&&delete r[t]}));for(var i=0;i<t.length;i++){var a=t[i];if(!(a in r)){if(a===this.pathwayId)return;var s=this.hls.nextLoadLevel,o=this.hls.levels[s];if((e=this.getLevelsForPathway(a)).length>0){this.log('Setting Pathway to "'+a+'"'),this.pathwayId=a,er(e),this.hls.trigger(b.LEVELS_UPDATED,{levels:e});var u=this.hls.levels[s];o&&u&&this.levels&&(u.attrs["STABLE-VARIANT-ID"]!==o.attrs["STABLE-VARIANT-ID"]&&u.bitrate!==o.bitrate&&this.log("Unstable Pathways change from bitrate "+o.bitrate+" to "+u.bitrate),this.hls.nextLoadLevel=s);break}}}},e.getPathwayForGroupId=function(t,e,r){for(var n=this.getLevelsForPathway(r).concat(this.levels||[]),i=0;i<n.length;i++)if(e===_e&&n[i].hasAudioGroup(t)||e===Be&&n[i].hasSubtitleGroup(t))return n[i].pathwayId;return r},e.clonePathways=function(t){var e=this,r=this.levels;if(r){var n={},i={};t.forEach((function(t){var a=t.ID,s=t["BASE-ID"],o=t["URI-REPLACEMENT"];if(!r.some((function(t){return t.pathwayId===a}))){var u=e.getLevelsForPathway(s).map((function(t){var e=new F(t.attrs);e["PATHWAY-ID"]=a;var r=e.AUDIO&&e.AUDIO+"_clone_"+a,s=e.SUBTITLES&&e.SUBTITLES+"_clone_"+a;r&&(n[e.AUDIO]=r,e.AUDIO=r),s&&(i[e.SUBTITLES]=s,e.SUBTITLES=s);var u=es(t.uri,e["STABLE-VARIANT-ID"],"PER-VARIANT-URIS",o),l=new Ve({attrs:e,audioCodec:t.audioCodec,bitrate:t.bitrate,height:t.height,name:t.name,url:u,videoCodec:t.videoCodec,width:t.width});if(t.audioGroups)for(var c=1;c<t.audioGroups.length;c++)l.addGroupId("audio",t.audioGroups[c]+"_clone_"+a);if(t.subtitleGroups)for(var A=1;A<t.subtitleGroups.length;A++)l.addGroupId("text",t.subtitleGroups[A]+"_clone_"+a);return l}));r.push.apply(r,u),ts(e.audioTracks,n,o,a),ts(e.subtitleTracks,i,o,a)}}))}},e.loadSteeringManifest=function(t){var e,r=this,n=this.hls.config,i=n.loader;this.loader&&this.loader.destroy(),this.loader=new i(n);try{e=new self.URL(t)}catch(e){return this.enabled=!1,void this.log("Failed to parse Steering Manifest URI: "+t)}if("data:"!==e.protocol){var a=0|(this.hls.bandwidthEstimate||n.abrEwmaDefaultEstimate);e.searchParams.set("_HLS_pathway",this.pathwayId),e.searchParams.set("_HLS_throughput",""+a)}var s={responseType:"json",url:e.href},o=n.steeringManifestLoadPolicy.default,u=o.errorRetry||o.timeoutRetry||{},l={loadPolicy:o,timeout:o.maxLoadTimeMs,maxRetry:u.maxNumRetry||0,retryDelay:u.retryDelayMs||0,maxRetryDelay:u.maxRetryDelayMs||0},c={onSuccess:function(t,n,i,a){r.log('Loaded steering manifest: "'+e+'"');var s=t.data;if(1===s.VERSION){r.updated=performance.now(),r.timeToLoad=s.TTL;var o=s["RELOAD-URI"],u=s["PATHWAY-CLONES"],l=s["PATHWAY-PRIORITY"];if(o)try{r.uri=new self.URL(o,e).href}catch(t){return r.enabled=!1,void r.log("Failed to parse Steering Manifest RELOAD-URI: "+o)}r.scheduleRefresh(r.uri||i.url),u&&r.clonePathways(u);var c={steeringManifest:s,url:e.toString()};r.hls.trigger(b.STEERING_MANIFEST_LOADED,c),l&&r.updatePathwayPriority(l)}else r.log("Steering VERSION "+s.VERSION+" not supported!")},onError:function(t,e,n,i){if(r.log("Error loading steering manifest: "+t.code+" "+t.text+" ("+e.url+")"),r.stopLoad(),410===t.code)return r.enabled=!1,void r.log("Steering manifest "+e.url+" no longer available");var a=1e3*r.timeToLoad;if(429!==t.code)r.scheduleRefresh(r.uri||e.url,a);else{var s=r.loader;if("function"==typeof(null==s?void 0:s.getResponseHeader)){var o=s.getResponseHeader("Retry-After");o&&(a=1e3*parseFloat(o))}r.log("Steering manifest "+e.url+" rate limited")}},onTimeout:function(t,e,n){r.log("Timeout loading steering manifest ("+e.url+")"),r.scheduleRefresh(r.uri||e.url)}};this.log("Requesting steering manifest: "+e),this.loader.load(s,l,c)},e.scheduleRefresh=function(t,e){var r=this;void 0===e&&(e=1e3*this.timeToLoad),this.clearTimeout(),this.reloadTimer=self.setTimeout((function(){var e,n=null==(e=r.hls)?void 0:e.media;!n||n.ended?r.scheduleRefresh(t,1e3*r.timeToLoad):r.loadSteeringManifest(t)}),e)},t}();function ts(t,e,r,n){t&&Object.keys(e).forEach((function(i){var a=t.filter((function(t){return t.groupId===i})).map((function(t){var a=l({},t);return a.details=void 0,a.attrs=new F(a.attrs),a.url=a.attrs.URI=es(t.url,t.attrs["STABLE-RENDITION-ID"],"PER-RENDITION-URIS",r),a.groupId=a.attrs["GROUP-ID"]=e[i],a.attrs["PATHWAY-ID"]=n,a}));t.push.apply(t,a)}))}function es(t,e,r,n){var i,a=n.HOST,s=n.PARAMS,o=n[r];e&&(i=null==o?void 0:o[e])&&(t=i);var u=new self.URL(t);return a&&!i&&(u.host=a),s&&Object.keys(s).sort().forEach((function(t){t&&u.searchParams.set(t,s[t])})),u.href}var rs=/^age:\s*[\d.]+\s*$/im,ns=function(){function t(t){this.xhrSetup=void 0,this.requestTimeout=void 0,this.retryTimeout=void 0,this.retryDelay=void 0,this.config=null,this.callbacks=null,this.context=null,this.loader=null,this.stats=void 0,this.xhrSetup=t&&t.xhrSetup||null,this.stats=new R,this.retryDelay=0}var e=t.prototype;return e.destroy=function(){this.callbacks=null,this.abortInternal(),this.loader=null,this.config=null,this.context=null,this.xhrSetup=null,this.stats=null},e.abortInternal=function(){var t=this.loader;self.clearTimeout(this.requestTimeout),self.clearTimeout(this.retryTimeout),t&&(t.onreadystatechange=null,t.onprogress=null,4!==t.readyState&&(this.stats.aborted=!0,t.abort()))},e.abort=function(){var t;this.abortInternal(),null!=(t=this.callbacks)&&t.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.loader)},e.load=function(t,e,r){if(this.stats.loading.start)throw new Error("Loader can only be used once.");this.stats.loading.start=self.performance.now(),this.context=t,this.config=e,this.callbacks=r,this.loadInternal()},e.loadInternal=function(){var t=this,e=this.config,r=this.context;if(e&&r){var n=this.loader=new self.XMLHttpRequest,i=this.stats;i.loading.first=0,i.loaded=0,i.aborted=!1;var a=this.xhrSetup;a?Promise.resolve().then((function(){if(!t.stats.aborted)return a(n,r.url)})).catch((function(t){return n.open("GET",r.url,!0),a(n,r.url)})).then((function(){t.stats.aborted||t.openAndSendXhr(n,r,e)})).catch((function(e){t.callbacks.onError({code:n.status,text:e.message},r,n,i)})):this.openAndSendXhr(n,r,e)}},e.openAndSendXhr=function(t,e,r){t.readyState||t.open("GET",e.url,!0);var n=e.headers,i=r.loadPolicy,a=i.maxTimeToFirstByteMs,s=i.maxLoadTimeMs;if(n)for(var o in n)t.setRequestHeader(o,n[o]);e.rangeEnd&&t.setRequestHeader("Range","bytes="+e.rangeStart+"-"+(e.rangeEnd-1)),t.onreadystatechange=this.readystatechange.bind(this),t.onprogress=this.loadprogress.bind(this),t.responseType=e.responseType,self.clearTimeout(this.requestTimeout),r.timeout=a&&m(a)?a:s,this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),r.timeout),t.send()},e.readystatechange=function(){var t=this.context,e=this.loader,r=this.stats;if(t&&e){var n=e.readyState,i=this.config;if(!r.aborted&&n>=2&&(0===r.loading.first&&(r.loading.first=Math.max(self.performance.now(),r.loading.start),i.timeout!==i.loadPolicy.maxLoadTimeMs&&(self.clearTimeout(this.requestTimeout),i.timeout=i.loadPolicy.maxLoadTimeMs,this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),i.loadPolicy.maxLoadTimeMs-(r.loading.first-r.loading.start)))),4===n)){self.clearTimeout(this.requestTimeout),e.onreadystatechange=null,e.onprogress=null;var a=e.status,s="text"!==e.responseType;if(a>=200&&a<300&&(s&&e.response||null!==e.responseText)){r.loading.end=Math.max(self.performance.now(),r.loading.first);var o=s?e.response:e.responseText,u="arraybuffer"===e.responseType?o.byteLength:o.length;if(r.loaded=r.total=u,r.bwEstimate=8e3*r.total/(r.loading.end-r.loading.first),!this.callbacks)return;var l=this.callbacks.onProgress;if(l&&l(r,t,o,e),!this.callbacks)return;var c={url:e.responseURL,data:o,code:a};this.callbacks.onSuccess(c,r,t,e)}else{var A=i.loadPolicy.errorRetry;sr(A,r.retry,!1,{url:t.url,data:void 0,code:a})?this.retry(A):(S.error(a+" while loading "+t.url),this.callbacks.onError({code:a,text:e.statusText},t,e,r))}}}},e.loadtimeout=function(){var t,e=null==(t=this.config)?void 0:t.loadPolicy.timeoutRetry;if(sr(e,this.stats.retry,!0))this.retry(e);else{var r;S.warn("timeout while loading "+(null==(r=this.context)?void 0:r.url));var n=this.callbacks;n&&(this.abortInternal(),n.onTimeout(this.stats,this.context,this.loader))}},e.retry=function(t){var e=this.context,r=this.stats;this.retryDelay=ir(t,r.retry),r.retry++,S.warn((status?"HTTP Status "+status:"Timeout")+" while loading "+(null==e?void 0:e.url)+", retrying "+r.retry+"/"+t.maxNumRetry+" in "+this.retryDelay+"ms"),this.abortInternal(),this.loader=null,self.clearTimeout(this.retryTimeout),this.retryTimeout=self.setTimeout(this.loadInternal.bind(this),this.retryDelay)},e.loadprogress=function(t){var e=this.stats;e.loaded=t.loaded,t.lengthComputable&&(e.total=t.total)},e.getCacheAge=function(){var t=null;if(this.loader&&rs.test(this.loader.getAllResponseHeaders())){var e=this.loader.getResponseHeader("age");t=e?parseFloat(e):null}return t},e.getResponseHeader=function(t){return this.loader&&new RegExp("^"+t+":\\s*[\\d.]+\\s*$","im").test(this.loader.getAllResponseHeaders())?this.loader.getResponseHeader(t):null},t}(),is=/(\d+)-(\d+)\/(\d+)/,as=function(){function t(t){this.fetchSetup=void 0,this.requestTimeout=void 0,this.request=null,this.response=null,this.controller=void 0,this.context=null,this.config=null,this.callbacks=null,this.stats=void 0,this.loader=null,this.fetchSetup=t.fetchSetup||ss,this.controller=new self.AbortController,this.stats=new R}var e=t.prototype;return e.destroy=function(){this.loader=this.callbacks=this.context=this.config=this.request=null,this.abortInternal(),this.response=null,this.fetchSetup=this.controller=this.stats=null},e.abortInternal=function(){this.controller&&!this.stats.loading.end&&(this.stats.aborted=!0,this.controller.abort())},e.abort=function(){var t;this.abortInternal(),null!=(t=this.callbacks)&&t.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.response)},e.load=function(t,e,r){var n=this,i=this.stats;if(i.loading.start)throw new Error("Loader can only be used once.");i.loading.start=self.performance.now();var a=function(t,e){var r={method:"GET",mode:"cors",credentials:"same-origin",signal:e,headers:new self.Headers(l({},t.headers))};return t.rangeEnd&&r.headers.set("Range","bytes="+t.rangeStart+"-"+String(t.rangeEnd-1)),r}(t,this.controller.signal),s=r.onProgress,o="arraybuffer"===t.responseType,u=o?"byteLength":"length",c=e.loadPolicy,A=c.maxTimeToFirstByteMs,d=c.maxLoadTimeMs;this.context=t,this.config=e,this.callbacks=r,this.request=this.fetchSetup(t,a),self.clearTimeout(this.requestTimeout),e.timeout=A&&m(A)?A:d,this.requestTimeout=self.setTimeout((function(){n.abortInternal(),r.onTimeout(i,t,n.response)}),e.timeout),self.fetch(this.request).then((function(a){n.response=n.loader=a;var u=Math.max(self.performance.now(),i.loading.start);if(self.clearTimeout(n.requestTimeout),e.timeout=d,n.requestTimeout=self.setTimeout((function(){n.abortInternal(),r.onTimeout(i,t,n.response)}),d-(u-i.loading.start)),!a.ok){var l=a.status,c=a.statusText;throw new us(c||"fetch, bad network response",l,a)}return i.loading.first=u,i.total=function(t){var e=t.get("Content-Range");if(e){var r=function(t){var e=is.exec(t);if(e)return parseInt(e[2])-parseInt(e[1])+1}(e);if(m(r))return r}var n=t.get("Content-Length");if(n)return parseInt(n)}(a.headers)||i.total,s&&m(e.highWaterMark)?n.loadProgressively(a,i,t,e.highWaterMark,s):o?a.arrayBuffer():"json"===t.responseType?a.json():a.text()})).then((function(a){var o=n.response;if(!o)throw new Error("loader destroyed");self.clearTimeout(n.requestTimeout),i.loading.end=Math.max(self.performance.now(),i.loading.first);var l=a[u];l&&(i.loaded=i.total=l);var c={url:o.url,data:a,code:o.status};s&&!m(e.highWaterMark)&&s(i,t,a,o),r.onSuccess(c,i,t,o)})).catch((function(e){if(self.clearTimeout(n.requestTimeout),!i.aborted){var a=e&&e.code||0,s=e?e.message:null;r.onError({code:a,text:s},t,e?e.details:null,i)}}))},e.getCacheAge=function(){var t=null;if(this.response){var e=this.response.headers.get("age");t=e?parseFloat(e):null}return t},e.getResponseHeader=function(t){return this.response?this.response.headers.get(t):null},e.loadProgressively=function(t,e,r,n,i){void 0===n&&(n=0);var a=new un,s=t.body.getReader();return function o(){return s.read().then((function(s){if(s.done)return a.dataLength&&i(e,r,a.flush(),t),Promise.resolve(new ArrayBuffer(0));var u=s.value,l=u.length;return e.loaded+=l,l<n||a.dataLength?(a.push(u),a.dataLength>=n&&i(e,r,a.flush(),t)):i(e,r,u,t),o()})).catch((function(){return Promise.reject()}))}()},t}();function ss(t,e){return new self.Request(t.url,e)}var os,us=function(t){function e(e,r,n){var i;return(i=t.call(this,e)||this).code=void 0,i.details=void 0,i.code=r,i.details=n,i}return c(e,t),e}(h(Error)),ls=/\s/,cs=e(e({autoStartLoad:!0,startPosition:-1,defaultAudioCodec:void 0,debug:!1,capLevelOnFPSDrop:!1,capLevelToPlayerSize:!1,ignoreDevicePixelRatio:!1,preferManagedMediaSource:!0,initialLiveManifestSize:1,maxBufferLength:30,backBufferLength:1/0,frontBufferFlushThreshold:1/0,maxBufferSize:6e7,maxBufferHole:.1,highBufferWatchdogPeriod:2,nudgeOffset:.1,nudgeMaxRetry:3,maxFragLookUpTolerance:.25,liveSyncDurationCount:3,liveMaxLatencyDurationCount:1/0,liveSyncDuration:void 0,liveMaxLatencyDuration:void 0,maxLiveSyncPlaybackRate:1,liveDurationInfinity:!1,liveBackBufferLength:null,maxMaxBufferLength:600,enableWorker:!0,workerPath:null,enableSoftwareAES:!0,startLevel:void 0,startFragPrefetch:!1,fpsDroppedMonitoringPeriod:5e3,fpsDroppedMonitoringThreshold:.2,appendErrorMaxRetry:3,loader:ns,fLoader:void 0,pLoader:void 0,xhrSetup:void 0,licenseXhrSetup:void 0,licenseResponseCallback:void 0,abrController:Br,bufferController:Fi,capLevelController:Ea,errorController:Ar,fpsController:xa,stretchShortVideoTrack:!1,maxAudioFramesDrift:1,forceKeyFrameOnDiscontinuity:!0,abrEwmaFastLive:3,abrEwmaSlowLive:9,abrEwmaFastVoD:3,abrEwmaSlowVoD:9,abrEwmaDefaultEstimate:5e5,abrEwmaDefaultEstimateMax:5e6,abrBandWidthFactor:.95,abrBandWidthUpFactor:.7,abrMaxWithRealBitrate:!1,maxStarvationDelay:4,maxLoadingDelay:4,minAutoBitrate:0,emeEnabled:!1,widevineLicenseUrl:void 0,drmSystems:{},drmSystemOptions:{},requestMediaKeySystemAccessFunc:et,testBandwidth:!0,progressive:!1,lowLatencyMode:!0,cmcd:void 0,enableDateRangeMetadataCues:!0,enableEmsgMetadataCues:!0,enableID3MetadataCues:!0,useMediaCapabilities:!0,certLoadPolicy:{default:{maxTimeToFirstByteMs:8e3,maxLoadTimeMs:2e4,timeoutRetry:null,errorRetry:null}},keyLoadPolicy:{default:{maxTimeToFirstByteMs:8e3,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:2e4,backoff:"linear"},errorRetry:{maxNumRetry:8,retryDelayMs:1e3,maxRetryDelayMs:2e4,backoff:"linear"}}},manifestLoadPolicy:{default:{maxTimeToFirstByteMs:1/0,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},playlistLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:2,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},fragLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:12e4,timeoutRetry:{maxNumRetry:4,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:6,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},steeringManifestLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},manifestLoadingTimeOut:1e4,manifestLoadingMaxRetry:1,manifestLoadingRetryDelay:1e3,manifestLoadingMaxRetryTimeout:64e3,levelLoadingTimeOut:1e4,levelLoadingMaxRetry:4,levelLoadingRetryDelay:1e3,levelLoadingMaxRetryTimeout:64e3,fragLoadingTimeOut:2e4,fragLoadingMaxRetry:6,fragLoadingRetryDelay:1e3,fragLoadingMaxRetryTimeout:64e3},{cueHandler:{newCue:function(t,e,r,n){for(var i,a,s,o,u,l=[],c=self.VTTCue||self.TextTrackCue,A=0;A<n.rows.length;A++)if(s=!0,o=0,u="",!(i=n.rows[A]).isEmpty()){for(var d,f=0;f<i.chars.length;f++)ls.test(i.chars[f].uchar)&&s?o++:(u+=i.chars[f].uchar,s=!1);i.cueStartTime=e,e===r&&(r+=1e-4),o>=16?o--:o++;var h=sa(u.trim()),p=Aa(e,r,h);null!=t&&null!=(d=t.cues)&&d.getCueById(p)||((a=new c(e,r,h)).id=p,a.line=A+1,a.align="left",a.position=10+Math.min(80,10*Math.floor(8*o/32)),l.push(a))}return t&&l.length&&(l.sort((function(t,e){return"auto"===t.line||"auto"===e.line?0:t.line>8&&e.line>8?e.line-t.line:t.line-e.line})),l.forEach((function(e){return Fe(t,e)}))),l}},enableWebVTT:!0,enableIMSC1:!0,enableCEA708Captions:!0,captionsTextTrack1Label:"English",captionsTextTrack1LanguageCode:"en",captionsTextTrack2Label:"Spanish",captionsTextTrack2LanguageCode:"es",captionsTextTrack3Label:"Unknown CC",captionsTextTrack3LanguageCode:"",captionsTextTrack4Label:"Unknown CC",captionsTextTrack4LanguageCode:"",renderTextTracksNatively:!0}),{},{subtitleStreamController:xi,subtitleTrackController:Si,timelineController:_a,audioStreamController:Ci,audioTrackController:Ei,emeController:Sa,cmcdController:Ja,contentSteeringController:Za});function As(t){return t&&"object"==s(t)?Array.isArray(t)?t.map(As):Object.keys(t).reduce((function(e,r){return e[r]=As(t[r]),e}),{}):t}var ds=function(t){function e(e,r){var n;return(n=t.call(this,e,"[level-controller]")||this)._levels=[],n._firstLevel=-1,n._maxAutoLevel=-1,n._startLevel=void 0,n.currentLevel=null,n.currentLevelIndex=-1,n.manualLevelIndex=-1,n.steering=void 0,n.onParsedComplete=void 0,n.steering=r,n._registerListeners(),n}c(e,t);var r=e.prototype;return r._registerListeners=function(){var t=this.hls;t.on(b.MANIFEST_LOADING,this.onManifestLoading,this),t.on(b.MANIFEST_LOADED,this.onManifestLoaded,this),t.on(b.LEVEL_LOADED,this.onLevelLoaded,this),t.on(b.LEVELS_UPDATED,this.onLevelsUpdated,this),t.on(b.FRAG_BUFFERED,this.onFragBuffered,this),t.on(b.ERROR,this.onError,this)},r._unregisterListeners=function(){var t=this.hls;t.off(b.MANIFEST_LOADING,this.onManifestLoading,this),t.off(b.MANIFEST_LOADED,this.onManifestLoaded,this),t.off(b.LEVEL_LOADED,this.onLevelLoaded,this),t.off(b.LEVELS_UPDATED,this.onLevelsUpdated,this),t.off(b.FRAG_BUFFERED,this.onFragBuffered,this),t.off(b.ERROR,this.onError,this)},r.destroy=function(){this._unregisterListeners(),this.steering=null,this.resetLevels(),t.prototype.destroy.call(this)},r.stopLoad=function(){this._levels.forEach((function(t){t.loadError=0,t.fragmentError=0})),t.prototype.stopLoad.call(this)},r.resetLevels=function(){this._startLevel=void 0,this.manualLevelIndex=-1,this.currentLevelIndex=-1,this.currentLevel=null,this._levels=[],this._maxAutoLevel=-1},r.onManifestLoading=function(t,e){this.resetLevels()},r.onManifestLoaded=function(t,e){var r=this.hls.config.preferManagedMediaSource,n=[],i={},a={},s=!1,o=!1,u=!1;e.levels.forEach((function(t){var e,l,c=t.attrs,A=t.audioCodec,d=t.videoCodec;-1!==(null==(e=A)?void 0:e.indexOf("mp4a.40.34"))&&(os||(os=/chrome|firefox/i.test(navigator.userAgent)),os&&(t.audioCodec=A=void 0)),A&&(t.audioCodec=A=ae(A,r)),0===(null==(l=d)?void 0:l.indexOf("avc1"))&&(d=t.videoCodec=function(t){var e=t.split(".");if(e.length>2){var r=e.shift()+".";return(r+=parseInt(e.shift()).toString(16))+("000"+parseInt(e.shift()).toString(16)).slice(-4)}return t}(d));var f=t.width,h=t.height,p=t.unknownCodecs;if(s||(s=!(!f||!h)),o||(o=!!d),u||(u=!!A),!(null!=p&&p.length||A&&!Jt(A,"audio",r)||d&&!Jt(d,"video",r))){var g=c.CODECS,v=c["FRAME-RATE"],m=c["HDCP-LEVEL"],y=c["PATHWAY-ID"],w=c.RESOLUTION,b=c["VIDEO-RANGE"],_=(y||".")+"-"+t.bitrate+"-"+w+"-"+v+"-"+g+"-"+b+"-"+m;if(i[_])if(i[_].uri===t.url||t.attrs["PATHWAY-ID"])i[_].addGroupId("audio",c.AUDIO),i[_].addGroupId("text",c.SUBTITLES);else{var B=a[_]+=1;t.attrs["PATHWAY-ID"]=new Array(B+1).join(".");var C=new Ve(t);i[_]=C,n.push(C)}else{var E=new Ve(t);i[_]=E,a[_]=1,n.push(E)}}})),this.filterAndSortMediaOptions(n,e,s,o,u)},r.filterAndSortMediaOptions=function(t,e,r,n,i){var a=this,s=[],o=[],u=t;if((r||n)&&i&&(u=u.filter((function(t){var e,r=t.videoCodec,n=t.videoRange,i=t.width,a=t.height;return(!!r||!(!i||!a))&&!!(e=n)&&Ke.indexOf(e)>-1}))),0!==u.length){if(e.audioTracks){var l=this.hls.config.preferManagedMediaSource;fs(s=e.audioTracks.filter((function(t){return!t.audioCodec||Jt(t.audioCodec,"audio",l)})))}e.subtitles&&fs(o=e.subtitles);var c=u.slice(0);u.sort((function(t,e){if(t.attrs["HDCP-LEVEL"]!==e.attrs["HDCP-LEVEL"])return(t.attrs["HDCP-LEVEL"]||"")>(e.attrs["HDCP-LEVEL"]||"")?1:-1;if(r&&t.height!==e.height)return t.height-e.height;if(t.frameRate!==e.frameRate)return t.frameRate-e.frameRate;if(t.videoRange!==e.videoRange)return Ke.indexOf(t.videoRange)-Ke.indexOf(e.videoRange);if(t.videoCodec!==e.videoCodec){var n=ee(t.videoCodec),i=ee(e.videoCodec);if(n!==i)return i-n}if(t.uri===e.uri&&t.codecSet!==e.codecSet){var a=re(t.codecSet),s=re(e.codecSet);if(a!==s)return s-a}return t.averageBitrate!==e.averageBitrate?t.averageBitrate-e.averageBitrate:0}));var A=c[0];if(this.steering&&(u=this.steering.filterParsedLevels(u)).length!==c.length)for(var d=0;d<c.length;d++)if(c[d].pathwayId===u[0].pathwayId){A=c[d];break}this._levels=u;for(var f=0;f<u.length;f++)if(u[f]===A){var h;this._firstLevel=f;var p=A.bitrate,g=this.hls.bandwidthEstimate;if(this.log("manifest loaded, "+u.length+" level(s) found, first bitrate: "+p),void 0===(null==(h=this.hls.userConfig)?void 0:h.abrEwmaDefaultEstimate)){var v=Math.min(p,this.hls.config.abrEwmaDefaultEstimateMax);v>g&&g===cs.abrEwmaDefaultEstimate&&(this.hls.bandwidthEstimate=v)}break}var m=i&&!n,y={levels:u,audioTracks:s,subtitleTracks:o,sessionData:e.sessionData,sessionKeys:e.sessionKeys,firstLevel:this._firstLevel,stats:e.stats,audio:i,video:n,altAudio:!m&&s.some((function(t){return!!t.url}))};this.hls.trigger(b.MANIFEST_PARSED,y),(this.hls.config.autoStartLoad||this.hls.forceStartLoad)&&this.hls.startLoad(this.hls.config.startPosition)}else Promise.resolve().then((function(){if(a.hls){e.levels.length&&a.warn("One or more CODECS in variant not supported: "+JSON.stringify(e.levels[0].attrs));var t=new Error("no level with compatible codecs found in manifest");a.hls.trigger(b.ERROR,{type:_.MEDIA_ERROR,details:B.MANIFEST_INCOMPATIBLE_CODECS_ERROR,fatal:!0,url:e.url,error:t,reason:t.message})}}))},r.onError=function(t,e){!e.fatal&&e.context&&e.context.type===be&&e.context.level===this.level&&this.checkRetry(e)},r.onFragBuffered=function(t,e){var r=e.frag;if(void 0!==r&&r.type===Ce){var n=r.elementaryStreams;if(!Object.keys(n).some((function(t){return!!n[t]})))return;var i=this._levels[r.level];null!=i&&i.loadError&&(this.log("Resetting level error count of "+i.loadError+" on frag buffered"),i.loadError=0)}},r.onLevelLoaded=function(t,e){var r,n,i=e.level,a=e.details,s=this._levels[i];if(!s)return this.warn("Invalid level index "+i),void(null!=(n=e.deliveryDirectives)&&n.skip&&(a.deltaUpdateFailed=!0));i===this.currentLevelIndex?(0===s.fragmentError&&(s.loadError=0),this.playlistLoaded(i,e,s.details)):null!=(r=e.deliveryDirectives)&&r.skip&&(a.deltaUpdateFailed=!0)},r.loadPlaylist=function(e){t.prototype.loadPlaylist.call(this);var r=this.currentLevelIndex,n=this.currentLevel;if(n&&this.shouldLoadPlaylist(n)){var i=n.uri;if(e)try{i=e.addDirectives(i)}catch(t){this.warn("Could not construct new URL with HLS Delivery Directives: "+t)}var a=n.attrs["PATHWAY-ID"];this.log("Loading level index "+r+(void 0!==(null==e?void 0:e.msn)?" at sn "+e.msn+" part "+e.part:"")+" with"+(a?" Pathway "+a:"")+" "+i),this.clearTimer(),this.hls.trigger(b.LEVEL_LOADING,{url:i,level:r,pathwayId:n.attrs["PATHWAY-ID"],id:0,deliveryDirectives:e||null})}},r.removeLevel=function(t){var e,r=this,n=this._levels.filter((function(e,n){return n!==t||(r.steering&&r.steering.removeLevel(e),e===r.currentLevel&&(r.currentLevel=null,r.currentLevelIndex=-1,e.details&&e.details.fragments.forEach((function(t){return t.level=-1}))),!1)}));er(n),this._levels=n,this.currentLevelIndex>-1&&null!=(e=this.currentLevel)&&e.details&&(this.currentLevelIndex=this.currentLevel.details.fragments[0].level),this.hls.trigger(b.LEVELS_UPDATED,{levels:n})},r.onLevelsUpdated=function(t,e){var r=e.levels;this._levels=r},r.checkMaxAutoUpdated=function(){var t=this.hls,e=t.autoLevelCapping,r=t.maxAutoLevel,n=t.maxHdcpLevel;this._maxAutoLevel!==r&&(this._maxAutoLevel=r,this.hls.trigger(b.MAX_AUTO_LEVEL_UPDATED,{autoLevelCapping:e,levels:this.levels,maxAutoLevel:r,minAutoLevel:this.hls.minAutoLevel,maxHdcpLevel:n}))},a(e,[{key:"levels",get:function(){return 0===this._levels.length?null:this._levels}},{key:"level",get:function(){return this.currentLevelIndex},set:function(t){var e=this._levels;if(0!==e.length){if(t<0||t>=e.length){var r=new Error("invalid level idx"),n=t<0;if(this.hls.trigger(b.ERROR,{type:_.OTHER_ERROR,details:B.LEVEL_SWITCH_ERROR,level:t,fatal:n,error:r,reason:r.message}),n)return;t=Math.min(t,e.length-1)}var i=this.currentLevelIndex,a=this.currentLevel,s=a?a.attrs["PATHWAY-ID"]:void 0,o=e[t],u=o.attrs["PATHWAY-ID"];if(this.currentLevelIndex=t,this.currentLevel=o,i!==t||!o.details||!a||s!==u){this.log("Switching to level "+t+" ("+(o.height?o.height+"p ":"")+(o.videoRange?o.videoRange+" ":"")+(o.codecSet?o.codecSet+" ":"")+"@"+o.bitrate+")"+(u?" with Pathway "+u:"")+" from level "+i+(s?" with Pathway "+s:""));var l={level:t,attrs:o.attrs,details:o.details,bitrate:o.bitrate,averageBitrate:o.averageBitrate,maxBitrate:o.maxBitrate,realBitrate:o.realBitrate,width:o.width,height:o.height,codecSet:o.codecSet,audioCodec:o.audioCodec,videoCodec:o.videoCodec,audioGroups:o.audioGroups,subtitleGroups:o.subtitleGroups,loaded:o.loaded,loadError:o.loadError,fragmentError:o.fragmentError,name:o.name,id:o.id,uri:o.uri,url:o.url,urlId:0,audioGroupIds:o.audioGroupIds,textGroupIds:o.textGroupIds};this.hls.trigger(b.LEVEL_SWITCHING,l);var c=o.details;if(!c||c.live){var A=this.switchParams(o.uri,null==a?void 0:a.details);this.loadPlaylist(A)}}}}},{key:"manualLevel",get:function(){return this.manualLevelIndex},set:function(t){this.manualLevelIndex=t,void 0===this._startLevel&&(this._startLevel=t),-1!==t&&(this.level=t)}},{key:"firstLevel",get:function(){return this._firstLevel},set:function(t){this._firstLevel=t}},{key:"startLevel",get:function(){if(void 0===this._startLevel){var t=this.hls.config.startLevel;return void 0!==t?t:this.hls.firstAutoLevel}return this._startLevel},set:function(t){this._startLevel=t}},{key:"nextLoadLevel",get:function(){return-1!==this.manualLevelIndex?this.manualLevelIndex:this.hls.nextAutoLevel},set:function(t){this.level=t,-1===this.manualLevelIndex&&(this.hls.nextAutoLevel=t)}}]),e}(dr);function fs(t){var e={};t.forEach((function(t){var r=t.groupId||"";t.id=e[r]=e[r]||0,e[r]++}))}var hs=function(){function t(t){this.config=void 0,this.keyUriToKeyInfo={},this.emeController=null,this.config=t}var r=t.prototype;return r.abort=function(t){for(var e in this.keyUriToKeyInfo){var r=this.keyUriToKeyInfo[e].loader;if(r){var n;if(t&&t!==(null==(n=r.context)?void 0:n.frag.type))return;r.abort()}}},r.detach=function(){for(var t in this.keyUriToKeyInfo){var e=this.keyUriToKeyInfo[t];(e.mediaKeySessionContext||e.decryptdata.isCommonEncryption)&&delete this.keyUriToKeyInfo[t]}},r.destroy=function(){for(var t in this.detach(),this.keyUriToKeyInfo){var e=this.keyUriToKeyInfo[t].loader;e&&e.destroy()}this.keyUriToKeyInfo={}},r.createKeyLoadError=function(t,e,r,n,i){return void 0===e&&(e=B.KEY_LOAD_ERROR),new jr({type:_.NETWORK_ERROR,details:e,fatal:!1,frag:t,response:i,error:r,networkDetails:n})},r.loadClear=function(t,e){var r=this;if(this.emeController&&this.config.emeEnabled)for(var n=t.sn,i=t.cc,a=function(){var t=e[s];if(i<=t.cc&&("initSegment"===n||"initSegment"===t.sn||n<t.sn))return r.emeController.selectKeySystemFormat(t).then((function(e){t.setKeyFormat(e)})),1},s=0;s<e.length&&!a();s++);},r.load=function(t){var e=this;return!t.decryptdata&&t.encrypted&&this.emeController?this.emeController.selectKeySystemFormat(t).then((function(r){return e.loadInternal(t,r)})):this.loadInternal(t)},r.loadInternal=function(t,e){var r,n;e&&t.setKeyFormat(e);var i=t.decryptdata;if(!i){var a=new Error(e?"Expected frag.decryptdata to be defined after setting format "+e:"Missing decryption data on fragment in onKeyLoading");return Promise.reject(this.createKeyLoadError(t,B.KEY_LOAD_ERROR,a))}var s=i.uri;if(!s)return Promise.reject(this.createKeyLoadError(t,B.KEY_LOAD_ERROR,new Error('Invalid key URI: "'+s+'"')));var o,u=this.keyUriToKeyInfo[s];if(null!=(r=u)&&r.decryptdata.key)return i.key=u.decryptdata.key,Promise.resolve({frag:t,keyInfo:u});if(null!=(n=u)&&n.keyLoadPromise)switch(null==(o=u.mediaKeySessionContext)?void 0:o.keyStatus){case void 0:case"status-pending":case"usable":case"usable-in-future":return u.keyLoadPromise.then((function(e){return i.key=e.keyInfo.decryptdata.key,{frag:t,keyInfo:u}}))}switch(u=this.keyUriToKeyInfo[s]={decryptdata:i,keyLoadPromise:null,loader:null,mediaKeySessionContext:null},i.method){case"ISO-23001-7":case"SAMPLE-AES":case"SAMPLE-AES-CENC":case"SAMPLE-AES-CTR":return"identity"===i.keyFormat?this.loadKeyHTTP(u,t):this.loadKeyEME(u,t);case"AES-128":return this.loadKeyHTTP(u,t);default:return Promise.reject(this.createKeyLoadError(t,B.KEY_LOAD_ERROR,new Error('Key supplied with unsupported METHOD: "'+i.method+'"')))}},r.loadKeyEME=function(t,e){var r={frag:e,keyInfo:t};if(this.emeController&&this.config.emeEnabled){var n=this.emeController.loadKey(r);if(n)return(t.keyLoadPromise=n.then((function(e){return t.mediaKeySessionContext=e,r}))).catch((function(e){throw t.keyLoadPromise=null,e}))}return Promise.resolve(r)},r.loadKeyHTTP=function(t,r){var n=this,i=this.config,a=new(0,i.loader)(i);return r.keyLoader=t.loader=a,t.keyLoadPromise=new Promise((function(s,o){var u={keyInfo:t,frag:r,responseType:"arraybuffer",url:t.decryptdata.uri},l=i.keyLoadPolicy.default,c={loadPolicy:l,timeout:l.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},A={onSuccess:function(t,e,r,i){var a=r.frag,u=r.keyInfo,l=r.url;if(!a.decryptdata||u!==n.keyUriToKeyInfo[l])return o(n.createKeyLoadError(a,B.KEY_LOAD_ERROR,new Error("after key load, decryptdata unset or changed"),i));u.decryptdata.key=a.decryptdata.key=new Uint8Array(t.data),a.keyLoader=null,u.loader=null,s({frag:a,keyInfo:u})},onError:function(t,i,a,s){n.resetLoader(i),o(n.createKeyLoadError(r,B.KEY_LOAD_ERROR,new Error("HTTP Error "+t.code+" loading key "+t.text),a,e({url:u.url,data:void 0},t)))},onTimeout:function(t,e,i){n.resetLoader(e),o(n.createKeyLoadError(r,B.KEY_LOAD_TIMEOUT,new Error("key loading timed out"),i))},onAbort:function(t,e,i){n.resetLoader(e),o(n.createKeyLoadError(r,B.INTERNAL_ABORTED,new Error("key loading aborted"),i))}};a.load(u,c,A)}))},r.resetLoader=function(t){var e=t.frag,r=t.keyInfo,n=t.url,i=r.loader;e.keyLoader===i&&(e.keyLoader=null,r.loader=null),delete this.keyUriToKeyInfo[n],i&&i.destroy()},t}();function ps(){return self.SourceBuffer||self.WebKitSourceBuffer}function gs(){if(!qt())return!1;var t=ps();return!t||t.prototype&&"function"==typeof t.prototype.appendBuffer&&"function"==typeof t.prototype.remove}var vs=function(){function t(t,e,r,n){this.config=void 0,this.media=null,this.fragmentTracker=void 0,this.hls=void 0,this.nudgeRetry=0,this.stallReported=!1,this.stalled=null,this.moved=!1,this.seeking=!1,this.config=t,this.media=e,this.fragmentTracker=r,this.hls=n}var e=t.prototype;return e.destroy=function(){this.media=null,this.hls=this.fragmentTracker=null},e.poll=function(t,e){var r=this.config,n=this.media,i=this.stalled;if(null!==n){var a=n.currentTime,s=n.seeking,o=this.seeking&&!s,u=!this.seeking&&s;if(this.seeking=s,a===t)if(u||o)this.stalled=null;else if(n.paused&&!s||n.ended||0===n.playbackRate||!Dr.getBuffered(n).length)this.nudgeRetry=0;else{var l=Dr.bufferInfo(n,a,0),c=l.nextStart||0;if(s){var A=l.len>2,d=!c||e&&e.start<=a||c-a>2&&!this.fragmentTracker.getPartialFragment(a);if(A||d)return;this.moved=!1}if(!this.moved&&null!==this.stalled){var f;if(!(l.len>0||c))return;var h=Math.max(c,l.start||0)-a,p=this.hls.levels?this.hls.levels[this.hls.currentLevel]:null,g=(null==p||null==(f=p.details)?void 0:f.live)?2*p.details.targetduration:2,v=this.fragmentTracker.getPartialFragment(a);if(h>0&&(h<=g||v))return void(n.paused||this._trySkipBufferHole(v))}var m=self.performance.now();if(null!==i){var y=m-i;if(s||!(y>=250)||(this._reportStall(l),this.media)){var w=Dr.bufferInfo(n,a,r.maxBufferHole);this._tryFixBufferStall(w,y)}}else this.stalled=m}else if(this.moved=!0,s||(this.nudgeRetry=0),null!==i){if(this.stallReported){var b=self.performance.now()-i;S.warn("playback not stuck anymore @"+a+", after "+Math.round(b)+"ms"),this.stallReported=!1}this.stalled=null}}},e._tryFixBufferStall=function(t,e){var r=this.config,n=this.fragmentTracker,i=this.media;if(null!==i){var a=i.currentTime,s=n.getPartialFragment(a);if(s&&(this._trySkipBufferHole(s)||!this.media))return;(t.len>r.maxBufferHole||t.nextStart&&t.nextStart-a<r.maxBufferHole)&&e>1e3*r.highBufferWatchdogPeriod&&(S.warn("Trying to nudge playhead over buffer-hole"),this.stalled=null,this._tryNudgeBuffer())}},e._reportStall=function(t){var e=this.hls,r=this.media;if(!this.stallReported&&r){this.stallReported=!0;var n=new Error("Playback stalling at @"+r.currentTime+" due to low buffer ("+JSON.stringify(t)+")");S.warn(n.message),e.trigger(b.ERROR,{type:_.MEDIA_ERROR,details:B.BUFFER_STALLED_ERROR,fatal:!1,error:n,buffer:t.len})}},e._trySkipBufferHole=function(t){var e=this.config,r=this.hls,n=this.media;if(null===n)return 0;var i=n.currentTime,a=Dr.bufferInfo(n,i,0),s=i<a.start?a.start:a.nextStart;if(s){var o=a.len<=e.maxBufferHole,u=a.len>0&&a.len<1&&n.readyState<3,l=s-i;if(l>0&&(o||u)){if(l>e.maxBufferHole){var c=this.fragmentTracker,A=!1;if(0===i){var d=c.getAppendedFrag(0,Ce);d&&s<d.end&&(A=!0)}if(!A){var f=t||c.getAppendedFrag(i,Ce);if(f){for(var h=!1,p=f.end;p<s;){var g=c.getPartialFragment(p);if(!g){h=!0;break}p+=g.duration}if(h)return 0}}}var v=Math.max(s+.05,i+.1);if(S.warn("skipping hole, adjusting currentTime from "+i+" to "+v),this.moved=!0,this.stalled=null,n.currentTime=v,t&&!t.gap){var m=new Error("fragment loaded with buffer holes, seeking from "+i+" to "+v);r.trigger(b.ERROR,{type:_.MEDIA_ERROR,details:B.BUFFER_SEEK_OVER_HOLE,fatal:!1,error:m,reason:m.message,frag:t})}return v}}return 0},e._tryNudgeBuffer=function(){var t=this.config,e=this.hls,r=this.media,n=this.nudgeRetry;if(null!==r){var i=r.currentTime;if(this.nudgeRetry++,n<t.nudgeMaxRetry){var a=i+(n+1)*t.nudgeOffset,s=new Error("Nudging 'currentTime' from "+i+" to "+a);S.warn(s.message),r.currentTime=a,e.trigger(b.ERROR,{type:_.MEDIA_ERROR,details:B.BUFFER_NUDGE_ON_STALL,error:s,fatal:!1})}else{var o=new Error("Playhead still not moving while enough data buffered @"+i+" after "+t.nudgeMaxRetry+" nudges");S.error(o.message),e.trigger(b.ERROR,{type:_.MEDIA_ERROR,details:B.BUFFER_STALLED_ERROR,error:o,fatal:!0})}}},t}(),ms=function(t){function e(e,r,n){var i;return(i=t.call(this,e,r,n,"[stream-controller]",Ce)||this).audioCodecSwap=!1,i.gapController=null,i.level=-1,i._forceStartLoad=!1,i.altAudio=!1,i.audioOnly=!1,i.fragPlaying=null,i.onvplaying=null,i.onvseeked=null,i.fragLastKbps=0,i.couldBacktrack=!1,i.backtrackFragment=null,i.audioCodecSwitch=!1,i.videoBuffer=null,i._registerListeners(),i}c(e,t);var r=e.prototype;return r._registerListeners=function(){var t=this.hls;t.on(b.MEDIA_ATTACHED,this.onMediaAttached,this),t.on(b.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(b.MANIFEST_LOADING,this.onManifestLoading,this),t.on(b.MANIFEST_PARSED,this.onManifestParsed,this),t.on(b.LEVEL_LOADING,this.onLevelLoading,this),t.on(b.LEVEL_LOADED,this.onLevelLoaded,this),t.on(b.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),t.on(b.ERROR,this.onError,this),t.on(b.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),t.on(b.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),t.on(b.BUFFER_CREATED,this.onBufferCreated,this),t.on(b.BUFFER_FLUSHED,this.onBufferFlushed,this),t.on(b.LEVELS_UPDATED,this.onLevelsUpdated,this),t.on(b.FRAG_BUFFERED,this.onFragBuffered,this)},r._unregisterListeners=function(){var t=this.hls;t.off(b.MEDIA_ATTACHED,this.onMediaAttached,this),t.off(b.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(b.MANIFEST_LOADING,this.onManifestLoading,this),t.off(b.MANIFEST_PARSED,this.onManifestParsed,this),t.off(b.LEVEL_LOADED,this.onLevelLoaded,this),t.off(b.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),t.off(b.ERROR,this.onError,this),t.off(b.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),t.off(b.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),t.off(b.BUFFER_CREATED,this.onBufferCreated,this),t.off(b.BUFFER_FLUSHED,this.onBufferFlushed,this),t.off(b.LEVELS_UPDATED,this.onLevelsUpdated,this),t.off(b.FRAG_BUFFERED,this.onFragBuffered,this)},r.onHandlerDestroying=function(){this._unregisterListeners(),t.prototype.onHandlerDestroying.call(this)},r.startLoad=function(t){if(this.levels){var e=this.lastCurrentTime,r=this.hls;if(this.stopLoad(),this.setInterval(100),this.level=-1,!this.startFragRequested){var n=r.startLevel;-1===n&&(r.config.testBandwidth&&this.levels.length>1?(n=0,this.bitrateTest=!0):n=r.firstAutoLevel),this.level=r.nextLoadLevel=n,this.loadedmetadata=!1}e>0&&-1===t&&(this.log("Override startPosition with lastCurrentTime @"+e.toFixed(3)),t=e),this.state=Yr,this.nextLoadPosition=this.startPosition=this.lastCurrentTime=t,this.tick()}else this._forceStartLoad=!0,this.state=zr},r.stopLoad=function(){this._forceStartLoad=!1,t.prototype.stopLoad.call(this)},r.doTick=function(){switch(this.state){case sn:var t=this.levels,e=this.level,r=null==t?void 0:t[e],n=null==r?void 0:r.details;if(n&&(!n.live||this.levelLastLoaded===r)){if(this.waitForCdnTuneIn(n))break;this.state=Yr;break}if(this.hls.nextLoadLevel!==this.level){this.state=Yr;break}break;case Jr:var i,a=self.performance.now(),s=this.retryDate;if(!s||a>=s||null!=(i=this.media)&&i.seeking){var o=this.levels,u=this.level,l=null==o?void 0:o[u];this.resetStartWhenNotLoaded(l||null),this.state=Yr}}this.state===Yr&&this.doTickIdle(),this.onTickEnd()},r.onTickEnd=function(){t.prototype.onTickEnd.call(this),this.checkBuffer(),this.checkFragmentChanged()},r.doTickIdle=function(){var t=this.hls,e=this.levelLastLoaded,r=this.levels,n=this.media,i=t.config,a=t.nextLoadLevel;if(null!==e&&(n||!this.startFragRequested&&i.startFragPrefetch)&&(!this.altAudio||!this.audioOnly)&&null!=r&&r[a]){var s=r[a],o=this.getMainFwdBufferInfo();if(null!==o){var u=this.getLevelDetails();if(u&&this._streamEnded(o,u)){var l={};return this.altAudio&&(l.type="video"),this.hls.trigger(b.BUFFER_EOS,l),void(this.state=rn)}t.loadLevel!==a&&-1===t.manualLevel&&this.log("Adapting to level "+a+" from level "+this.level),this.level=t.nextLoadLevel=a;var c=s.details;if(!c||this.state===sn||c.live&&this.levelLastLoaded!==s)return this.level=a,void(this.state=sn);var A=o.len,d=this.getMaxBufferLength(s.maxBitrate);if(!(A>=d)){this.backtrackFragment&&this.backtrackFragment.start>o.end&&(this.backtrackFragment=null);var f=this.backtrackFragment?this.backtrackFragment.start:o.end,h=this.getNextFragment(f,c);if(this.couldBacktrack&&!this.fragPrevious&&h&&"initSegment"!==h.sn&&this.fragmentTracker.getState(h)!==Sr){var p,g=(null!=(p=this.backtrackFragment)?p:h).sn-c.startSN,v=c.fragments[g-1];v&&h.cc===v.cc&&(h=v,this.fragmentTracker.removeFragment(v))}else this.backtrackFragment&&o.len&&(this.backtrackFragment=null);if(h&&this.isLoopLoading(h,f)){if(!h.gap){var m=this.audioOnly&&!this.altAudio?U:O,y=(m===O?this.videoBuffer:this.mediaBuffer)||this.media;y&&this.afterBufferFlushed(y,m,Ce)}h=this.getNextFragmentLoopLoading(h,c,o,Ce,d)}h&&(!h.initSegment||h.initSegment.data||this.bitrateTest||(h=h.initSegment),this.loadFragment(h,s,f))}}}},r.loadFragment=function(e,r,n){var i=this.fragmentTracker.getState(e);this.fragCurrent=e,i===Er||i===Tr?"initSegment"===e.sn?this._loadInitSegment(e,r):this.bitrateTest?(this.log("Fragment "+e.sn+" of level "+e.level+" is being downloaded to test bitrate and will not be buffered"),this._loadBitrateTestFrag(e,r)):(this.startFragRequested=!0,t.prototype.loadFragment.call(this,e,r,n)):this.clearTrackerIfNeeded(e)},r.getBufferedFrag=function(t){return this.fragmentTracker.getBufferedFrag(t,Ce)},r.followingBufferedFrag=function(t){return t?this.getBufferedFrag(t.end+.5):null},r.immediateLevelSwitch=function(){this.abortCurrentFrag(),this.flushMainBuffer(0,Number.POSITIVE_INFINITY)},r.nextLevelSwitch=function(){var t=this.levels,e=this.media;if(null!=e&&e.readyState){var r,n=this.getAppendedFrag(e.currentTime);n&&n.start>1&&this.flushMainBuffer(0,n.start-1);var i=this.getLevelDetails();if(null!=i&&i.live){var a=this.getMainFwdBufferInfo();if(!a||a.len<2*i.targetduration)return}if(!e.paused&&t){var s=t[this.hls.nextLoadLevel],o=this.fragLastKbps;r=o&&this.fragCurrent?this.fragCurrent.duration*s.maxBitrate/(1e3*o)+1:0}else r=0;var u=this.getBufferedFrag(e.currentTime+r);if(u){var l=this.followingBufferedFrag(u);if(l){this.abortCurrentFrag();var c=l.maxStartPTS?l.maxStartPTS:l.start,A=l.duration,d=Math.max(u.end,c+Math.min(Math.max(A-this.config.maxFragLookUpTolerance,A*(this.couldBacktrack?.5:.125)),A*(this.couldBacktrack?.75:.25)));this.flushMainBuffer(d,Number.POSITIVE_INFINITY)}}}},r.abortCurrentFrag=function(){var t=this.fragCurrent;switch(this.fragCurrent=null,this.backtrackFragment=null,t&&(t.abortRequests(),this.fragmentTracker.removeFragment(t)),this.state){case qr:case Xr:case Jr:case tn:case en:this.state=Yr}this.nextLoadPosition=this.getLoadPosition()},r.flushMainBuffer=function(e,r){t.prototype.flushMainBuffer.call(this,e,r,this.altAudio?"video":null)},r.onMediaAttached=function(e,r){t.prototype.onMediaAttached.call(this,e,r);var n=r.media;this.onvplaying=this.onMediaPlaying.bind(this),this.onvseeked=this.onMediaSeeked.bind(this),n.addEventListener("playing",this.onvplaying),n.addEventListener("seeked",this.onvseeked),this.gapController=new vs(this.config,n,this.fragmentTracker,this.hls)},r.onMediaDetaching=function(){var e=this.media;e&&this.onvplaying&&this.onvseeked&&(e.removeEventListener("playing",this.onvplaying),e.removeEventListener("seeked",this.onvseeked),this.onvplaying=this.onvseeked=null,this.videoBuffer=null),this.fragPlaying=null,this.gapController&&(this.gapController.destroy(),this.gapController=null),t.prototype.onMediaDetaching.call(this)},r.onMediaPlaying=function(){this.tick()},r.onMediaSeeked=function(){var t=this.media,e=t?t.currentTime:null;m(e)&&this.log("Media seeked to "+e.toFixed(3));var r=this.getMainFwdBufferInfo();null!==r&&0!==r.len?this.tick():this.warn('Main forward buffer length on "seeked" event '+(r?r.len:"empty")+")")},r.onManifestLoading=function(){this.log("Trigger BUFFER_RESET"),this.hls.trigger(b.BUFFER_RESET,void 0),this.fragmentTracker.removeAllFragments(),this.couldBacktrack=!1,this.startPosition=this.lastCurrentTime=this.fragLastKbps=0,this.levels=this.fragPlaying=this.backtrackFragment=this.levelLastLoaded=null,this.altAudio=this.audioOnly=this.startFragRequested=!1},r.onManifestParsed=function(t,e){var r,n,i=!1,a=!1;e.levels.forEach((function(t){var e=t.audioCodec;e&&(i=i||-1!==e.indexOf("mp4a.40.2"),a=a||-1!==e.indexOf("mp4a.40.5"))})),this.audioCodecSwitch=i&&a&&!("function"==typeof(null==(n=ps())||null==(r=n.prototype)?void 0:r.changeType)),this.audioCodecSwitch&&this.log("Both AAC/HE-AAC audio found in levels; declaring level codec as HE-AAC"),this.levels=e.levels,this.startFragRequested=!1},r.onLevelLoading=function(t,e){var r=this.levels;if(r&&this.state===Yr){var n=r[e.level];(!n.details||n.details.live&&this.levelLastLoaded!==n||this.waitForCdnTuneIn(n.details))&&(this.state=sn)}},r.onLevelLoaded=function(t,e){var r,n=this.levels,i=e.level,a=e.details,s=a.totalduration;if(n){this.log("Level "+i+" loaded ["+a.startSN+","+a.endSN+"]"+(a.lastPartSn?"[part-"+a.lastPartSn+"-"+a.lastPartIndex+"]":"")+", cc ["+a.startCC+", "+a.endCC+"] duration:"+s);var o=n[i],u=this.fragCurrent;!u||this.state!==Xr&&this.state!==Jr||u.level!==e.level&&u.loader&&this.abortCurrentFrag();var l=0;if(a.live||null!=(r=o.details)&&r.live){var c;if(this.checkLiveUpdate(a),a.deltaUpdateFailed)return;l=this.alignPlaylists(a,o.details,null==(c=this.levelLastLoaded)?void 0:c.details)}if(o.details=a,this.levelLastLoaded=o,this.hls.trigger(b.LEVEL_UPDATED,{details:a,level:i}),this.state===sn){if(this.waitForCdnTuneIn(a))return;this.state=Yr}this.startFragRequested?a.live&&this.synchronizeToLiveEdge(a):this.setStartPosition(a,l),this.tick()}else this.warn("Levels were reset while loading level "+i)},r._handleFragmentLoadProgress=function(t){var e,r=t.frag,n=t.part,i=t.payload,a=this.levels;if(a){var s=a[r.level],o=s.details;if(!o)return this.warn("Dropping fragment "+r.sn+" of level "+r.level+" after level details were reset"),void this.fragmentTracker.removeFragment(r);var u=s.videoCodec,l=o.PTSKnown||!o.live,c=null==(e=r.initSegment)?void 0:e.data,A=this._getAudioCodec(s),d=this.transmuxer=this.transmuxer||new wi(this.hls,Ce,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)),f=n?n.index:-1,h=-1!==f,p=new Rr(r.level,r.sn,r.stats.chunkCount,i.byteLength,f,h),g=this.initPTS[r.cc];d.push(i,c,A,u,r,n,o.totalduration,l,p,g)}else this.warn("Levels were reset while fragment load was in progress. Fragment "+r.sn+" of level "+r.level+" will not be buffered")},r.onAudioTrackSwitching=function(t,e){var r=this.altAudio;if(!e.url){if(this.mediaBuffer!==this.media){this.log("Switching on main audio, use media.buffered to schedule main fragment loading"),this.mediaBuffer=this.media;var n=this.fragCurrent;n&&(this.log("Switching to main audio track, cancel main fragment load"),n.abortRequests(),this.fragmentTracker.removeFragment(n)),this.resetTransmuxer(),this.resetLoadingState()}else this.audioOnly&&this.resetTransmuxer();var i=this.hls;r&&(i.trigger(b.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:null}),this.fragmentTracker.removeAllFragments()),i.trigger(b.AUDIO_TRACK_SWITCHED,e)}},r.onAudioTrackSwitched=function(t,e){var r=e.id,n=!!this.hls.audioTracks[r].url;if(n){var i=this.videoBuffer;i&&this.mediaBuffer!==i&&(this.log("Switching on alternate audio, use video.buffered to schedule main fragment loading"),this.mediaBuffer=i)}this.altAudio=n,this.tick()},r.onBufferCreated=function(t,e){var r,n,i=e.tracks,a=!1;for(var s in i){var o=i[s];if("main"===o.id){if(n=s,r=o,"video"===s){var u=i[s];u&&(this.videoBuffer=u.buffer)}}else a=!0}a&&r?(this.log("Alternate track found, use "+n+".buffered to schedule main fragment loading"),this.mediaBuffer=r.buffer):this.mediaBuffer=this.media},r.onFragBuffered=function(t,e){var r=e.frag,n=e.part;if(!r||r.type===Ce){if(this.fragContextChanged(r))return this.warn("Fragment "+r.sn+(n?" p: "+n.index:"")+" of level "+r.level+" finished buffering, but was aborted. state: "+this.state),void(this.state===en&&(this.state=Yr));var i=n?n.stats:r.stats;this.fragLastKbps=Math.round(8*i.total/(i.buffering.end-i.loading.first)),"initSegment"!==r.sn&&(this.fragPrevious=r),this.fragBufferedComplete(r,n)}},r.onError=function(t,e){var r;if(e.fatal)this.state=nn;else switch(e.details){case B.FRAG_GAP:case B.FRAG_PARSING_ERROR:case B.FRAG_DECRYPT_ERROR:case B.FRAG_LOAD_ERROR:case B.FRAG_LOAD_TIMEOUT:case B.KEY_LOAD_ERROR:case B.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(Ce,e);break;case B.LEVEL_LOAD_ERROR:case B.LEVEL_LOAD_TIMEOUT:case B.LEVEL_PARSING_ERROR:e.levelRetry||this.state!==sn||(null==(r=e.context)?void 0:r.type)!==be||(this.state=Yr);break;case B.BUFFER_APPEND_ERROR:case B.BUFFER_FULL_ERROR:if(!e.parent||"main"!==e.parent)return;if(e.details===B.BUFFER_APPEND_ERROR)return void this.resetLoadingState();this.reduceLengthAndFlushBuffer(e)&&this.flushMainBuffer(0,Number.POSITIVE_INFINITY);break;case B.INTERNAL_EXCEPTION:this.recoverWorkerError(e)}},r.checkBuffer=function(){var t=this.media,e=this.gapController;if(t&&e&&t.readyState){if(this.loadedmetadata||!Dr.getBuffered(t).length){var r=this.state!==Yr?this.fragCurrent:null;e.poll(this.lastCurrentTime,r)}this.lastCurrentTime=t.currentTime}},r.onFragLoadEmergencyAborted=function(){this.state=Yr,this.loadedmetadata||(this.startFragRequested=!1,this.nextLoadPosition=this.startPosition),this.tickImmediate()},r.onBufferFlushed=function(t,e){var r=e.type;if(r!==U||this.audioOnly&&!this.altAudio){var n=(r===O?this.videoBuffer:this.mediaBuffer)||this.media;this.afterBufferFlushed(n,r,Ce),this.tick()}},r.onLevelsUpdated=function(t,e){this.level>-1&&this.fragCurrent&&(this.level=this.fragCurrent.level),this.levels=e.levels},r.swapAudioCodec=function(){this.audioCodecSwap=!this.audioCodecSwap},r.seekToStartPos=function(){var t=this.media;if(t){var e=t.currentTime,r=this.startPosition;if(r>=0&&e<r){if(t.seeking)return void this.log("could not seek to "+r+", already seeking at "+e);var n=Dr.getBuffered(t),i=(n.length?n.start(0):0)-r;i>0&&(i<this.config.maxBufferHole||i<this.config.maxFragLookUpTolerance)&&(this.log("adjusting start position by "+i+" to match buffer start"),r+=i,this.startPosition=r),this.log("seek to target start position "+r+" from current time "+e),t.currentTime=r}}},r._getAudioCodec=function(t){var e=this.config.defaultAudioCodec||t.audioCodec;return this.audioCodecSwap&&e&&(this.log("Swapping audio codec"),e=-1!==e.indexOf("mp4a.40.5")?"mp4a.40.2":"mp4a.40.5"),e},r._loadBitrateTestFrag=function(t,e){var r=this;t.bitrateTest=!0,this._doFragLoad(t,e).then((function(n){var i=r.hls;if(n&&!r.fragContextChanged(t)){e.fragmentError=0,r.state=Yr,r.startFragRequested=!1,r.bitrateTest=!1;var a=t.stats;a.parsing.start=a.parsing.end=a.buffering.start=a.buffering.end=self.performance.now(),i.trigger(b.FRAG_LOADED,n),t.bitrateTest=!1}}))},r._handleTransmuxComplete=function(t){var e,r="main",n=this.hls,i=t.remuxResult,a=t.chunkMeta,s=this.getCurrentContext(a);if(s){var o=s.frag,u=s.part,l=s.level,c=i.video,A=i.text,d=i.id3,f=i.initSegment,h=l.details,p=this.altAudio?void 0:i.audio;if(this.fragContextChanged(o))this.fragmentTracker.removeFragment(o);else{if(this.state=tn,f){if(null!=f&&f.tracks){var g=o.initSegment||o;this._bufferInitSegment(l,f.tracks,g,a),n.trigger(b.FRAG_PARSING_INIT_SEGMENT,{frag:g,id:r,tracks:f.tracks})}var v=f.initPTS,y=f.timescale;m(v)&&(this.initPTS[o.cc]={baseTime:v,timescale:y},n.trigger(b.INIT_PTS_FOUND,{frag:o,id:r,initPTS:v,timescale:y}))}if(c&&h&&"initSegment"!==o.sn){var w=h.fragments[o.sn-1-h.startSN],_=o.sn===h.startSN,B=!w||o.cc>w.cc;if(!1!==i.independent){var C=c.startPTS,E=c.endPTS,x=c.startDTS,T=c.endDTS;if(u)u.elementaryStreams[c.type]={startPTS:C,endPTS:E,startDTS:x,endDTS:T};else if(c.firstKeyFrame&&c.independent&&1===a.id&&!B&&(this.couldBacktrack=!0),c.dropped&&c.independent){var S=this.getMainFwdBufferInfo(),k=(S?S.end:this.getLoadPosition())+this.config.maxBufferHole,I=c.firstKeyFramePTS?c.firstKeyFramePTS:C;if(!_&&k<I-this.config.maxBufferHole&&!B)return void this.backtrack(o);B&&(o.gap=!0),o.setElementaryStreamInfo(c.type,o.start,E,o.start,T,!0)}else _&&C>2&&(o.gap=!0);o.setElementaryStreamInfo(c.type,C,E,x,T),this.backtrackFragment&&(this.backtrackFragment=o),this.bufferFragmentData(c,o,u,a,_||B)}else{if(!_&&!B)return void this.backtrack(o);o.gap=!0}}if(p){var F=p.startPTS,L=p.endPTS,D=p.startDTS,R=p.endDTS;u&&(u.elementaryStreams[U]={startPTS:F,endPTS:L,startDTS:D,endDTS:R}),o.setElementaryStreamInfo(U,F,L,D,R),this.bufferFragmentData(p,o,u,a)}if(h&&null!=d&&null!=(e=d.samples)&&e.length){var O={id:r,frag:o,details:h,samples:d.samples};n.trigger(b.FRAG_PARSING_METADATA,O)}if(h&&A){var P={id:r,frag:o,details:h,samples:A.samples};n.trigger(b.FRAG_PARSING_USERDATA,P)}}}else this.resetWhenMissingContext(a)},r._bufferInitSegment=function(t,e,r,n){var i=this;if(this.state===tn){this.audioOnly=!!e.audio&&!e.video,this.altAudio&&!this.audioOnly&&delete e.audio;var a=e.audio,s=e.video,o=e.audiovideo;if(a){var u=t.audioCodec,l=navigator.userAgent.toLowerCase();this.audioCodecSwitch&&(u&&(u=-1!==u.indexOf("mp4a.40.5")?"mp4a.40.2":"mp4a.40.5"),1!==a.metadata.channelCount&&-1===l.indexOf("firefox")&&(u="mp4a.40.5")),u&&-1!==u.indexOf("mp4a.40.5")&&-1!==l.indexOf("android")&&"audio/mpeg"!==a.container&&(u="mp4a.40.2",this.log("Android: force audio codec to "+u)),t.audioCodec&&t.audioCodec!==u&&this.log('Swapping manifest audio codec "'+t.audioCodec+'" for "'+u+'"'),a.levelCodec=u,a.id="main",this.log("Init audio buffer, container:"+a.container+", codecs[selected/level/parsed]=["+(u||"")+"/"+(t.audioCodec||"")+"/"+a.codec+"]")}s&&(s.levelCodec=t.videoCodec,s.id="main",this.log("Init video buffer, container:"+s.container+", codecs[level/parsed]=["+(t.videoCodec||"")+"/"+s.codec+"]")),o&&this.log("Init audiovideo buffer, container:"+o.container+", codecs[level/parsed]=["+t.codecs+"/"+o.codec+"]"),this.hls.trigger(b.BUFFER_CODECS,e),Object.keys(e).forEach((function(t){var a=e[t].initSegment;null!=a&&a.byteLength&&i.hls.trigger(b.BUFFER_APPENDING,{type:t,data:a,frag:r,part:null,chunkMeta:n,parent:r.type})})),this.tickImmediate()}},r.getMainFwdBufferInfo=function(){return this.getFwdBufferInfo(this.mediaBuffer?this.mediaBuffer:this.media,Ce)},r.backtrack=function(t){this.couldBacktrack=!0,this.backtrackFragment=t,this.resetTransmuxer(),this.flushBufferGap(t),this.fragmentTracker.removeFragment(t),this.fragPrevious=null,this.nextLoadPosition=t.start,this.state=Yr},r.checkFragmentChanged=function(){var t=this.media,e=null;if(t&&t.readyState>1&&!1===t.seeking){var r=t.currentTime;if(Dr.isBuffered(t,r)?e=this.getAppendedFrag(r):Dr.isBuffered(t,r+.1)&&(e=this.getAppendedFrag(r+.1)),e){this.backtrackFragment=null;var n=this.fragPlaying,i=e.level;n&&e.sn===n.sn&&n.level===i||(this.fragPlaying=e,this.hls.trigger(b.FRAG_CHANGED,{frag:e}),n&&n.level===i||this.hls.trigger(b.LEVEL_SWITCHED,{level:i}))}}},a(e,[{key:"nextLevel",get:function(){var t=this.nextBufferedFrag;return t?t.level:-1}},{key:"currentFrag",get:function(){var t=this.media;return t?this.fragPlaying||this.getAppendedFrag(t.currentTime):null}},{key:"currentProgramDateTime",get:function(){var t=this.media;if(t){var e=t.currentTime,r=this.currentFrag;if(r&&m(e)&&m(r.programDateTime)){var n=r.programDateTime+1e3*(e-r.start);return new Date(n)}}return null}},{key:"currentLevel",get:function(){var t=this.currentFrag;return t?t.level:-1}},{key:"nextBufferedFrag",get:function(){var t=this.currentFrag;return t?this.followingBufferedFrag(t):null}},{key:"forceStartLoad",get:function(){return this._forceStartLoad}}]),e}(on),ys=function(){function t(r){void 0===r&&(r={}),this.config=void 0,this.userConfig=void 0,this.coreComponents=void 0,this.networkControllers=void 0,this.started=!1,this._emitter=new gi,this._autoLevelCapping=-1,this._maxHdcpLevel=null,this.abrController=void 0,this.bufferController=void 0,this.capLevelController=void 0,this.latencyController=void 0,this.levelController=void 0,this.streamController=void 0,this.audioTrackController=void 0,this.subtitleTrackController=void 0,this.emeController=void 0,this.cmcdController=void 0,this._media=null,this.url=null,this.triggeringException=void 0,T(r.debug||!1,"Hls instance");var n=this.config=function(t,r){if((r.liveSyncDurationCount||r.liveMaxLatencyDurationCount)&&(r.liveSyncDuration||r.liveMaxLatencyDuration))throw new Error("Illegal hls.js config: don't mix up liveSyncDurationCount/liveMaxLatencyDurationCount and liveSyncDuration/liveMaxLatencyDuration");if(void 0!==r.liveMaxLatencyDurationCount&&(void 0===r.liveSyncDurationCount||r.liveMaxLatencyDurationCount<=r.liveSyncDurationCount))throw new Error('Illegal hls.js config: "liveMaxLatencyDurationCount" must be greater than "liveSyncDurationCount"');if(void 0!==r.liveMaxLatencyDuration&&(void 0===r.liveSyncDuration||r.liveMaxLatencyDuration<=r.liveSyncDuration))throw new Error('Illegal hls.js config: "liveMaxLatencyDuration" must be greater than "liveSyncDuration"');var n=As(t),i=["TimeOut","MaxRetry","RetryDelay","MaxRetryTimeout"];return["manifest","level","frag"].forEach((function(t){var e=("level"===t?"playlist":t)+"LoadPolicy",a=void 0===r[e],s=[];i.forEach((function(i){var o=t+"Loading"+i,u=r[o];if(void 0!==u&&a){s.push(o);var l=n[e].default;switch(r[e]={default:l},i){case"TimeOut":l.maxLoadTimeMs=u,l.maxTimeToFirstByteMs=u;break;case"MaxRetry":l.errorRetry.maxNumRetry=u,l.timeoutRetry.maxNumRetry=u;break;case"RetryDelay":l.errorRetry.retryDelayMs=u,l.timeoutRetry.retryDelayMs=u;break;case"MaxRetryTimeout":l.errorRetry.maxRetryDelayMs=u,l.timeoutRetry.maxRetryDelayMs=u}}})),s.length&&S.warn('hls.js config: "'+s.join('", "')+'" setting(s) are deprecated, use "'+e+'": '+JSON.stringify(r[e]))})),e(e({},n),r)}(t.DefaultConfig,r);this.userConfig=r,n.progressive&&function(t){var e=t.loader;e!==as&&e!==ns?(S.log("[config]: Custom loader detected, cannot enable progressive streaming"),t.progressive=!1):function(){if(self.fetch&&self.AbortController&&self.ReadableStream&&self.Request)try{return new self.ReadableStream({}),!0}catch(t){}return!1}()&&(t.loader=as,t.progressive=!0,t.enableSoftwareAES=!0,S.log("[config]: Progressive streaming enabled, using FetchLoader"))}(n);var i=n.abrController,a=n.bufferController,s=n.capLevelController,o=n.errorController,u=n.fpsController,l=new o(this),c=this.abrController=new i(this),A=this.bufferController=new a(this),d=this.capLevelController=new s(this),f=new u(this),h=new ke(this),p=new He(this),g=n.contentSteeringController,v=g?new g(this):null,m=this.levelController=new ds(this,v),y=new kr(this),w=new hs(this.config),_=this.streamController=new ms(this,y,w);d.setStreamController(_),f.setStreamController(_);var B=[h,m,_];v&&B.splice(1,0,v),this.networkControllers=B;var C=[c,A,d,f,p,y];this.audioTrackController=this.createController(n.audioTrackController,B);var E=n.audioStreamController;E&&B.push(new E(this,y,w)),this.subtitleTrackController=this.createController(n.subtitleTrackController,B);var x=n.subtitleStreamController;x&&B.push(new x(this,y,w)),this.createController(n.timelineController,C),w.emeController=this.emeController=this.createController(n.emeController,C),this.cmcdController=this.createController(n.cmcdController,C),this.latencyController=this.createController($e,C),this.coreComponents=C,B.push(l);var k=l.onErrorOut;"function"==typeof k&&this.on(b.ERROR,k,l)}t.isMSESupported=function(){return gs()},t.isSupported=function(){return function(){if(!gs())return!1;var t=qt();return"function"==typeof(null==t?void 0:t.isTypeSupported)&&(["avc1.42E01E,mp4a.40.2","av01.0.01M.08","vp09.00.50.08"].some((function(e){return t.isTypeSupported(te(e,"video"))}))||["mp4a.40.2","fLaC"].some((function(e){return t.isTypeSupported(te(e,"audio"))})))}()},t.getMediaSource=function(){return qt()};var r=t.prototype;return r.createController=function(t,e){if(t){var r=new t(this);return e&&e.push(r),r}return null},r.on=function(t,e,r){void 0===r&&(r=this),this._emitter.on(t,e,r)},r.once=function(t,e,r){void 0===r&&(r=this),this._emitter.once(t,e,r)},r.removeAllListeners=function(t){this._emitter.removeAllListeners(t)},r.off=function(t,e,r,n){void 0===r&&(r=this),this._emitter.off(t,e,r,n)},r.listeners=function(t){return this._emitter.listeners(t)},r.emit=function(t,e,r){return this._emitter.emit(t,e,r)},r.trigger=function(t,e){if(this.config.debug)return this.emit(t,t,e);try{return this.emit(t,t,e)}catch(e){if(S.error("An internal error happened while handling event "+t+'. Error message: "'+e.message+'". Here is a stacktrace:',e),!this.triggeringException){this.triggeringException=!0;var r=t===b.ERROR;this.trigger(b.ERROR,{type:_.OTHER_ERROR,details:B.INTERNAL_EXCEPTION,fatal:r,event:t,error:e}),this.triggeringException=!1}}return!1},r.listenerCount=function(t){return this._emitter.listenerCount(t)},r.destroy=function(){S.log("destroy"),this.trigger(b.DESTROYING,void 0),this.detachMedia(),this.removeAllListeners(),this._autoLevelCapping=-1,this.url=null,this.networkControllers.forEach((function(t){return t.destroy()})),this.networkControllers.length=0,this.coreComponents.forEach((function(t){return t.destroy()})),this.coreComponents.length=0;var t=this.config;t.xhrSetup=t.fetchSetup=void 0,this.userConfig=null},r.attachMedia=function(t){S.log("attachMedia"),this._media=t,this.trigger(b.MEDIA_ATTACHING,{media:t})},r.detachMedia=function(){S.log("detachMedia"),this.trigger(b.MEDIA_DETACHING,void 0),this._media=null},r.loadSource=function(t){this.stopLoad();var e=this.media,r=this.url,n=this.url=v.buildAbsoluteURL(self.location.href,t,{alwaysNormalize:!0});this._autoLevelCapping=-1,this._maxHdcpLevel=null,S.log("loadSource:"+n),e&&r&&(r!==n||this.bufferController.hasSourceTypes())&&(this.detachMedia(),this.attachMedia(e)),this.trigger(b.MANIFEST_LOADING,{url:t})},r.startLoad=function(t){void 0===t&&(t=-1),S.log("startLoad("+t+")"),this.started=!0,this.networkControllers.forEach((function(e){e.startLoad(t)}))},r.stopLoad=function(){S.log("stopLoad"),this.started=!1,this.networkControllers.forEach((function(t){t.stopLoad()}))},r.resumeBuffering=function(){this.started&&this.networkControllers.forEach((function(t){"fragmentLoader"in t&&t.startLoad(-1)}))},r.pauseBuffering=function(){this.networkControllers.forEach((function(t){"fragmentLoader"in t&&t.stopLoad()}))},r.swapAudioCodec=function(){S.log("swapAudioCodec"),this.streamController.swapAudioCodec()},r.recoverMediaError=function(){S.log("recoverMediaError");var t=this._media;this.detachMedia(),t&&this.attachMedia(t)},r.removeLevel=function(t){this.levelController.removeLevel(t)},r.setAudioOption=function(t){var e;return null==(e=this.audioTrackController)?void 0:e.setAudioOption(t)},r.setSubtitleOption=function(t){var e;return null==(e=this.subtitleTrackController)||e.setSubtitleOption(t),null},a(t,[{key:"levels",get:function(){var t=this.levelController.levels;return t||[]}},{key:"currentLevel",get:function(){return this.streamController.currentLevel},set:function(t){S.log("set currentLevel:"+t),this.levelController.manualLevel=t,this.streamController.immediateLevelSwitch()}},{key:"nextLevel",get:function(){return this.streamController.nextLevel},set:function(t){S.log("set nextLevel:"+t),this.levelController.manualLevel=t,this.streamController.nextLevelSwitch()}},{key:"loadLevel",get:function(){return this.levelController.level},set:function(t){S.log("set loadLevel:"+t),this.levelController.manualLevel=t}},{key:"nextLoadLevel",get:function(){return this.levelController.nextLoadLevel},set:function(t){this.levelController.nextLoadLevel=t}},{key:"firstLevel",get:function(){return Math.max(this.levelController.firstLevel,this.minAutoLevel)},set:function(t){S.log("set firstLevel:"+t),this.levelController.firstLevel=t}},{key:"startLevel",get:function(){var t=this.levelController.startLevel;return-1===t&&this.abrController.forcedAutoLevel>-1?this.abrController.forcedAutoLevel:t},set:function(t){S.log("set startLevel:"+t),-1!==t&&(t=Math.max(t,this.minAutoLevel)),this.levelController.startLevel=t}},{key:"capLevelToPlayerSize",get:function(){return this.config.capLevelToPlayerSize},set:function(t){var e=!!t;e!==this.config.capLevelToPlayerSize&&(e?this.capLevelController.startCapping():(this.capLevelController.stopCapping(),this.autoLevelCapping=-1,this.streamController.nextLevelSwitch()),this.config.capLevelToPlayerSize=e)}},{key:"autoLevelCapping",get:function(){return this._autoLevelCapping},set:function(t){this._autoLevelCapping!==t&&(S.log("set autoLevelCapping:"+t),this._autoLevelCapping=t,this.levelController.checkMaxAutoUpdated())}},{key:"bandwidthEstimate",get:function(){var t=this.abrController.bwEstimator;return t?t.getEstimate():NaN},set:function(t){this.abrController.resetEstimator(t)}},{key:"ttfbEstimate",get:function(){var t=this.abrController.bwEstimator;return t?t.getEstimateTTFB():NaN}},{key:"maxHdcpLevel",get:function(){return this._maxHdcpLevel},set:function(t){(function(t){return je.indexOf(t)>-1})(t)&&this._maxHdcpLevel!==t&&(this._maxHdcpLevel=t,this.levelController.checkMaxAutoUpdated())}},{key:"autoLevelEnabled",get:function(){return-1===this.levelController.manualLevel}},{key:"manualLevel",get:function(){return this.levelController.manualLevel}},{key:"minAutoLevel",get:function(){var t=this.levels,e=this.config.minAutoBitrate;if(!t)return 0;for(var r=t.length,n=0;n<r;n++)if(t[n].maxBitrate>=e)return n;return 0}},{key:"maxAutoLevel",get:function(){var t,e=this.levels,r=this.autoLevelCapping,n=this.maxHdcpLevel;if(t=-1===r&&null!=e&&e.length?e.length-1:r,n)for(var i=t;i--;){var a=e[i].attrs["HDCP-LEVEL"];if(a&&a<=n)return i}return t}},{key:"firstAutoLevel",get:function(){return this.abrController.firstAutoLevel}},{key:"nextAutoLevel",get:function(){return this.abrController.nextAutoLevel},set:function(t){this.abrController.nextAutoLevel=t}},{key:"playingDate",get:function(){return this.streamController.currentProgramDateTime}},{key:"mainForwardBufferInfo",get:function(){return this.streamController.getMainFwdBufferInfo()}},{key:"allAudioTracks",get:function(){var t=this.audioTrackController;return t?t.allAudioTracks:[]}},{key:"audioTracks",get:function(){var t=this.audioTrackController;return t?t.audioTracks:[]}},{key:"audioTrack",get:function(){var t=this.audioTrackController;return t?t.audioTrack:-1},set:function(t){var e=this.audioTrackController;e&&(e.audioTrack=t)}},{key:"allSubtitleTracks",get:function(){var t=this.subtitleTrackController;return t?t.allSubtitleTracks:[]}},{key:"subtitleTracks",get:function(){var t=this.subtitleTrackController;return t?t.subtitleTracks:[]}},{key:"subtitleTrack",get:function(){var t=this.subtitleTrackController;return t?t.subtitleTrack:-1},set:function(t){var e=this.subtitleTrackController;e&&(e.subtitleTrack=t)}},{key:"media",get:function(){return this._media}},{key:"subtitleDisplay",get:function(){var t=this.subtitleTrackController;return!!t&&t.subtitleDisplay},set:function(t){var e=this.subtitleTrackController;e&&(e.subtitleDisplay=t)}},{key:"lowLatencyMode",get:function(){return this.config.lowLatencyMode},set:function(t){this.config.lowLatencyMode=t}},{key:"liveSyncPosition",get:function(){return this.latencyController.liveSyncPosition}},{key:"latency",get:function(){return this.latencyController.latency}},{key:"maxLatency",get:function(){return this.latencyController.maxLatency}},{key:"targetLatency",get:function(){return this.latencyController.targetLatency}},{key:"drift",get:function(){return this.latencyController.drift}},{key:"forceStartLoad",get:function(){return this.streamController.forceStartLoad}}],[{key:"version",get:function(){return"1.5.2"}},{key:"Events",get:function(){return b}},{key:"ErrorTypes",get:function(){return _}},{key:"ErrorDetails",get:function(){return B}},{key:"DefaultConfig",get:function(){return t.defaultConfig?t.defaultConfig:cs},set:function(e){t.defaultConfig=e}}]),t}();return ys.defaultConfig=void 0,ys},"object"==s(e)&&"undefined"!=typeof t?t.exports=l():(i=l,a="function"===typeof i?i.call(e,r,e,t):i,void 0===a||(t.exports=a))}(!1)}).call(this,r("0b64")["default"])},e0b4:function(t,e,r){"use strict";var n=r("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(r("127e")),a=n(r("34cf")),s=n(r("7ca3")),o=n(r("ee10")),u=n(r("c645"));function l(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function c(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?l(Object(r),!0).forEach((function(e){(0,s.default)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var A={name:"u-tabs",mixins:[uni.$u.mpMixin,uni.$u.mixin,u.default],data:function(){return{firstTime:!0,scrollLeft:0,scrollViewWidth:0,lineOffsetLeft:0,tabsRect:{left:0},innerCurrent:0,moving:!1}},watch:{current:{immediate:!0,handler:function(t,e){var r=this;t!==this.innerCurrent&&(this.innerCurrent=t,this.$nextTick((function(){r.resize()})))}},list:function(){var t=this;this.$nextTick((function(){t.resize()}))}},computed:{textStyle:function(){var t=this;return function(e){var r={},n=e===t.innerCurrent?uni.$u.addStyle(t.activeStyle):uni.$u.addStyle(t.inactiveStyle);return t.list[e].disabled&&(r.color="#c8c9cc"),uni.$u.deepMerge(n,r)}},propsBadge:function(){return uni.$u.props.badge}},mounted:function(){var t=this;return(0,o.default)(i.default.mark((function e(){return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.init();case 1:case"end":return e.stop()}}),e)})))()},methods:{setLineLeft:function(){var t=this,e=this.list[this.innerCurrent];if(e){var r=this.list.slice(0,this.innerCurrent).reduce((function(t,e){return t+e.rect.width}),0),n=uni.$u.getPx(this.lineWidth);this.lineOffsetLeft=r+(e.rect.width-n)/2,this.firstTime&&setTimeout((function(){t.firstTime=!1}),10)}},animation:function(t){},clickHandler:function(t,e){this.$emit("click",c(c({},t),{},{index:e})),t.disabled||(this.innerCurrent=e,this.resize(),this.$emit("change",c(c({},t),{},{index:e})))},init:function(){var t=this;uni.$u.sleep().then((function(){t.resize()}))},setScrollLeft:function(){var t=this.list[this.innerCurrent],e=this.list.slice(0,this.innerCurrent).reduce((function(t,e){return t+e.rect.width}),0),r=(uni.$u.sys().windowWidth,e-(this.tabsRect.width-t.rect.width)/2);r=Math.min(r,this.scrollViewWidth-this.tabsRect.width),this.scrollLeft=Math.max(0,r);var n=this.list[this.innerCurrent],i=this.list.slice(0,this.innerCurrent).reduce((function(t,e){return t+e.rect.width}),0),a=(uni.$u.sys().windowWidth,i-(this.tabsRect.width-n.rect.width)/2);this.scrollLeft=a},resize:function(){var t=this;0!==this.list.length&&Promise.all([this.getTabsRect(),this.getAllItemRect()]).then((function(e){var r=(0,a.default)(e,2),n=r[0],i=r[1],s=void 0===i?[]:i;t.tabsRect=n,t.scrollViewWidth=0,s.map((function(e,r){t.scrollViewWidth+=e.width,t.list[r].rect=e})),t.setLineLeft(),t.setScrollLeft()}))},getTabsRect:function(){var t=this;return new Promise((function(e){t.queryRect("u-tabs__wrapper__scroll-view").then((function(t){return e(t)}))}))},getAllItemRect:function(){var t=this;return new Promise((function(e){var r=t.list.map((function(e,r){return t.queryRect("u-tabs__wrapper__nav__item-".concat(r),!0)}));Promise.all(r).then((function(t){return e(t)}))}))},queryRect:function(t,e){var r=this;return new Promise((function(e){r.$uGetRect(".".concat(t)).then((function(t){e(t)}))}))}}};e.default=A},e0e6:function(t,e,r){"use strict";r.r(e);var n=r("ad40"),i=r.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return n[t]}))}(a);e["default"]=i.a},e112:function(t,e,r){"use strict";r.r(e);var n=r("0a82"),i=r("ee9c");for(var a in i)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return i[t]}))}(a);var s=r("828b"),o=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);e["default"]=o.exports},e1f2:function(t,e,r){"use strict";var n=r("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(r("4231")),a={name:"IndexActor",props:{data:{type:Array}},components:{vodImage:i.default},data:function(){return{swiperOption:{slidesPerView:"auto",spaceBetween:15,autoplay:{delay:2500,disableOnInteraction:!1}}}}};e.default=a},e251:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={props:{name:{type:[String,Number,null],default:uni.$u.props.gridItem.name},bgColor:{type:String,default:uni.$u.props.gridItem.bgColor}}};e.default=n},e2f3:function(t,e,r){(function(t,n){var i,a=r("3b2d");!function(s,o,u,l,c){var A="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof t?t:{},d="function"==typeof A[l]&&A[l],f=d.cache||{},h="function"==typeof n.require&&n.require.bind(n);function p(t,e){if(!f[t]){if(!s[t]){var r="function"==typeof A[l]&&A[l];if(!e&&r)return r(t,!0);if(d)return d(t,!0);if(h&&"string"==typeof t)return h(t);var n=new Error("Cannot find module '"+t+"'");throw n.code="MODULE_NOT_FOUND",n}a.resolve=function(e){var r=s[t][1][e];return null!=r?r:e},a.cache={};var i=f[t]=new p.Module(t);s[t][0].call(i.exports,a,i,i.exports,this)}return f[t].exports;function a(t){var e=a.resolve(t);return!1===e?{}:p(e)}}p.isParcelRequire=!0,p.Module=function(t){this.id=t,this.bundle=p,this.exports={}},p.modules=s,p.cache=f,p.parent=d,p.register=function(t,e){s[t]=[function(t,r){r.exports=e},{}]},Object.defineProperty(p,"root",{get:function(){return A[l]}}),A[l]=p;for(var g=0;g<o.length;g++)p(o[g]);var v=p(u);"object"==a(e)&&"undefined"!=typeof n?n.exports=v:(i=function(){return v}.call(e,r,e,n),void 0===i||(n.exports=i))}({"40mNk":[function(t,e,r){var n=t("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var i=t("./danmuku"),a=n.interopDefault(i),s=t("./setting"),o=n.interopDefault(s),u=t("./heatmap"),l=n.interopDefault(u);function c(t){return function(e){!function(t){var e=t.constructor,r=e.version,n=e.utils.errorHandle,i=r.split(".").map(Number);n(i[0]+i[1]/100>=5,"Artplayer.js@".concat(r," \u4e0d\u517c\u5bb9\u8be5\u5f39\u5e55\u5e93\uff0c\u8bf7\u66f4\u65b0\u5230 Artplayer.js@5.x.x \u7248\u672c\u4ee5\u4e0a"))}(e);var r=new(0,a.default)(e,t);return(0,o.default)(e,r),t.heatmap&&!e.option.isLive&&(0,l.default)(e,r,t.heatmap),{name:"artplayerPluginDanmuku",emit:r.emit.bind(r),load:r.load.bind(r),config:r.config.bind(r),hide:r.hide.bind(r),show:r.show.bind(r),reset:r.reset.bind(r),get option(){return r.option},get isHide(){return r.isHide},get isStop(){return r.isStop}}}}r.default=c,c.env="production",c.version="5.0.1",c.build="2023-05-03 11:57:33","undefined"!=typeof window&&(window.artplayerPluginDanmuku=c)},{"./danmuku":"jgffw","./setting":"d3V7t","./heatmap":"dXFn2","@parcel/transformer-js/src/esmodule-helpers.js":"iWrD0"}],jgffw:[function(t,e,r){var n=t("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"default",(function(){return y}));var i=t("@swc/helpers/src/_async_to_generator.mjs"),a=n.interopDefault(i),s=t("@swc/helpers/src/_class_call_check.mjs"),o=n.interopDefault(s),u=t("@swc/helpers/src/_create_class.mjs"),l=n.interopDefault(u),c=t("@swc/helpers/src/_object_spread.mjs"),A=n.interopDefault(c),d=t("@swc/helpers/src/_object_spread_props.mjs"),f=n.interopDefault(d),h=t("@swc/helpers/src/_ts_generator.mjs"),p=n.interopDefault(h),g=t("./bilibili"),v=t("./getDanmuTop"),m=n.interopDefault(v),y=function(){"use strict";function e(r,n){(0,o.default)(this,e);var i=r.constructor,a=r.template;if(this.utils=i.utils,this.validator=i.validator,this.$danmuku=a.$danmuku,this.$player=a.$player,this.art=r,this.danmus=[],this.queue=[],this.option={},this.$refs=[],this.isStop=!1,this.isHide=!1,this.timer=null,this.config(n),this.option.useWorker)try{this.worker=new Worker(t("12ceab24749100d0"))}catch(t){}this.start=this.start.bind(this),this.stop=this.stop.bind(this),this.reset=this.reset.bind(this),this.destroy=this.destroy.bind(this),r.on("video:play",this.start),r.on("video:playing",this.start),r.on("video:pause",this.stop),r.on("video:waiting",this.stop),r.on("resize",this.reset),r.on("destroy",this.destroy),this.load()}return(0,l.default)(e,[{key:"isRotate",get:function(){return this.art.plugins.autoOrientation&&this.art.plugins.autoOrientation.state}},{key:"marginTop",get:function(){var t=this.utils.clamp,r=this.option.margin[0],n=this.$player.clientHeight;return"number"==typeof r?t(r,0,n):"string"==typeof r&&r.endsWith("%")?t(n*(parseFloat(r)/100),0,n):e.option.margin[0]}},{key:"marginBottom",get:function(){var t=this.utils.clamp,r=this.option.margin[1],n=this.$player.clientHeight;return"number"==typeof r?t(r,0,n):"string"==typeof r&&r.endsWith("%")?t(n*(parseFloat(r)/100),0,n):e.option.margin[1]}},{key:"filter",value:function(t,e){return this.queue.filter((function(e){return e.$state===t})).map(e)}},{key:"getLeft",value:function(t){var e=t.getBoundingClientRect();return this.isRotate?e.top:e.left}},{key:"getRef",value:function(){var t=this.$refs.pop();if(t)return t;var e=document.createElement("div");return e.style.cssText='\n            user-select: none;\n            position: absolute;\n            white-space: pre;\n            pointer-events: none;\n            perspective: 500px;\n            display: inline-block;\n            will-change: transform;\n            font-weight: normal;\n            line-height: 1.125;\n            visibility: hidden;\n            font-family: SimHei, "Microsoft JhengHei", Arial, Helvetica, sans-serif;\n            text-shadow: rgb(0, 0, 0) 1px 0px 1px, rgb(0, 0, 0) 0px 1px 1px, rgb(0, 0, 0) 0px -1px 1px, rgb(0, 0, 0) -1px 0px 1px;\n        ',e}},{key:"getReady",value:function(){var t=this.art.currentTime;return this.queue.filter((function(e){return"ready"===e.$state||"wait"===e.$state&&t+.1>=e.time&&e.time>=t-.1}))}},{key:"getEmits",value:function(){var t=this,e=[],r=this.$player.clientWidth,n=this.getLeft(this.$player);return this.filter("emit",(function(i){var a=i.$ref.offsetTop,s=t.getLeft(i.$ref)-n,o=i.$ref.clientHeight,u=i.$ref.clientWidth,l=s+u,c=r-l,A=l/i.$restTime,d={};d.top=a,d.left=s,d.height=o,d.width=u,d.right=c,d.speed=A,d.distance=l,d.time=i.$restTime,d.mode=i.mode,e.push(d)})),e}},{key:"getFontSize",value:function(t){var r=this.utils.clamp,n=this.$player.clientHeight;return"number"==typeof t?r(t,12,n):"string"==typeof t&&t.endsWith("%")?r(n*(parseFloat(t)/100),12,n):e.option.fontSize}},{key:"postMessage",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this;return new Promise((function(r){if(e.option.useWorker&&e.worker&&e.worker.postMessage)t.id=Date.now(),e.worker.postMessage(t),e.worker.onmessage=function(e){var n=e.data;n.id===t.id&&r(n)};else{var n=(0,m.default)(t);r({top:n})}}))}},{key:"load",value:function(){var t=this;return(0,a.default)((function(){var e;return(0,p.default)(this,(function(r){switch(r.label){case 0:return r.trys.push([0,8,,9]),"function"!=typeof t.option.danmuku?[3,2]:[4,t.option.danmuku()];case 1:return t.danmus=r.sent(),[3,7];case 2:return"function"!=typeof t.option.danmuku.then?[3,4]:[4,t.option.danmuku];case 3:return t.danmus=r.sent(),[3,7];case 4:return"string"!=typeof t.option.danmuku?[3,6]:[4,(0,g.bilibiliDanmuParseFromUrl)(t.option.danmuku)];case 5:return t.danmus=r.sent(),[3,7];case 6:t.danmus=t.option.danmuku,r.label=7;case 7:return t.utils.errorHandle(Array.isArray(t.danmus),"Danmuku need return an array as result"),t.art.emit("artplayerPluginDanmuku:loaded",t.danmus),t.queue=[],t.$danmuku.innerText="",t.danmus.forEach((function(e){return t.emit(e)})),[3,9];case 8:throw e=r.sent(),t.art.emit("artplayerPluginDanmuku:error",e),e;case 9:return[2,t]}}))}))()}},{key:"config",value:function(t){var r=this.utils.clamp;return this.option=Object.assign({},e.option,this.option,t),this.validator(this.option,e.scheme),this.option.speed=r(this.option.speed,1,10),this.option.opacity=r(this.option.opacity,0,1),this.option.lockTime=r(Math.floor(this.option.lockTime),0,60),this.option.maxLength=r(this.option.maxLength,0,500),this.option.minWidth=r(this.option.minWidth,0,500),this.option.maxWidth=r(this.option.maxWidth,0,1/0),t.fontSize&&(this.option.fontSize=this.getFontSize(this.option.fontSize),this.reset()),this.art.emit("artplayerPluginDanmuku:config",this.option),this}},{key:"makeWait",value:function(t){t.$state="wait",t.$ref&&(t.$ref.style.visibility="hidden",t.$ref.style.marginLeft="0px",t.$ref.style.transform="translateX(0px)",t.$ref.style.transition="transform 0s linear 0s",this.$refs.push(t.$ref),t.$ref=null)}},{key:"continue",value:function(){var t=this.$player.clientWidth;return this.filter("stop",(function(e){if(e.$state="emit",e.$lastStartTime=Date.now(),0===e.mode){var r=t+e.$ref.clientWidth;e.$ref.style.transform="translateX(".concat(-r,"px)"),e.$ref.style.transition="transform ".concat(e.$restTime,"s linear 0s")}})),this}},{key:"suspend",value:function(){var t=this,e=this.$player.clientWidth;return this.filter("emit",(function(r){if(r.$state="stop",0===r.mode){var n=e-(t.getLeft(r.$ref)-t.getLeft(t.$player));r.$ref.style.transform="translateX(".concat(-n,"px)"),r.$ref.style.transition="transform 0s linear 0s"}})),this}},{key:"reset",value:function(){var t=this;return this.queue.forEach((function(e){return t.makeWait(e)})),this}},{key:"update",value:function(){var t=this;return this.timer=window.requestAnimationFrame((0,a.default)((function(){var e,r,n,i,a,s,o,u,l;return(0,p.default)(this,(function(c){switch(c.label){case 0:if(!t.art.playing||t.isHide)return[3,4];t.filter("emit",(function(e){var r=(Date.now()-e.$lastStartTime)/1e3;e.$restTime-=r,e.$lastStartTime=Date.now(),e.$restTime<=0&&t.makeWait(e)})),e=t.getReady(),r=t.$player,n=r.clientWidth,i=r.clientHeight,a=0,c.label=1;case 1:return a<e.length?((s=e[a]).$ref=t.getRef(),s.$ref.innerText=s.text,t.$danmuku.appendChild(s.$ref),s.$ref.style.left="".concat(n,"px"),s.$ref.style.opacity=t.option.opacity,s.$ref.style.fontSize="".concat(t.option.fontSize,"px"),s.$ref.style.color=s.color,s.$ref.style.border=s.border?"1px solid ".concat(s.color):null,s.$ref.style.backgroundColor=s.border?"rgb(0 0 0 / 50%)":null,s.$ref.style.marginLeft="0px",s.$lastStartTime=Date.now(),s.$restTime=t.option.synchronousPlayback&&t.art.playbackRate?t.option.speed/Number(t.art.playbackRate):t.option.speed,o={mode:s.mode,height:s.$ref.clientHeight,speed:(n+s.$ref.clientWidth)/s.$restTime},[4,t.postMessage({target:o,emits:t.getEmits(),antiOverlap:t.option.antiOverlap,clientWidth:n,clientHeight:i,marginBottom:t.marginBottom,marginTop:t.marginTop})]):[3,4];case 2:if(u=c.sent().top,s.$ref)if(t.isStop||void 0===u)s.$state="ready",t.$refs.push(s.$ref),s.$ref=null;else switch(s.$state="emit",s.$ref.style.visibility="visible",s.mode){case 0:s.$ref.style.top="".concat(u,"px"),l=n+s.$ref.clientWidth,s.$ref.style.transform="translateX(".concat(-l,"px)"),s.$ref.style.transition="transform ".concat(s.$restTime,"s linear 0s");break;case 1:s.$ref.style.left="50%",s.$ref.style.top="".concat(u,"px"),s.$ref.style.marginLeft="-".concat(s.$ref.clientWidth/2,"px")}c.label=3;case 3:return a++,[3,1];case 4:return t.isStop||t.update(),[2]}}))}))),this}},{key:"stop",value:function(){return this.isStop=!0,this.suspend(),window.cancelAnimationFrame(this.timer),this.art.emit("artplayerPluginDanmuku:stop"),this}},{key:"start",value:function(){return this.isStop=!1,this.continue(),this.update(),this.art.emit("artplayerPluginDanmuku:start"),this}},{key:"show",value:function(){return this.isHide=!1,this.start(),this.$danmuku.style.display="block",this.art.emit("artplayerPluginDanmuku:show"),this}},{key:"hide",value:function(){var t=this;return this.isHide=!0,this.stop(),this.queue.forEach((function(e){return t.makeWait(e)})),this.$danmuku.style.display="none",this.art.emit("artplayerPluginDanmuku:hide"),this}},{key:"emit",value:function(t){return this.validator(t,{text:"string",mode:"number|undefined",color:"string|undefined",time:"number|undefined",border:"boolean|undefined"}),t.text.trim()&&this.option.filter(t)?(t.time?t.time=this.utils.clamp(t.time,0,1/0):t.time=this.art.currentTime+.5,void 0===t.mode&&(t.mode=this.option.mode),void 0===t.color&&(t.color=this.option.color),this.queue.push((0,f.default)((0,A.default)({},t),{$state:"wait",$ref:null,$restTime:0,$lastStartTime:0})),this):this}},{key:"destroy",value:function(){this.stop(),this.worker&&this.worker.terminate&&this.worker.terminate(),this.art.off("video:play",this.start),this.art.off("video:playing",this.start),this.art.off("video:pause",this.stop),this.art.off("video:waiting",this.stop),this.art.off("resize",this.reset),this.art.off("destroy",this.destroy),this.art.emit("artplayerPluginDanmuku:destroy")}}],[{key:"option",get:function(){return{danmuku:[],speed:5,margin:["2%","25%"],opacity:1,color:"#FFFFFF",mode:0,fontSize:25,filter:function(){return!0},antiOverlap:!0,useWorker:!0,synchronousPlayback:!1,lockTime:5,maxLength:100,minWidth:200,maxWidth:400,mount:void 0,theme:"dark",heatmap:!1,beforeEmit:function(){return!0}}}},{key:"scheme",get:function(){return{danmuku:"array|function|string",speed:"number",margin:"array",opacity:"number",color:"string",mode:"number",fontSize:"number|string",filter:"function",antiOverlap:"boolean",useWorker:"boolean",synchronousPlayback:"boolean",lockTime:"number",maxLength:"number",minWidth:"number",maxWidth:"number",mount:"undefined|htmldivelement",theme:"string",heatmap:"object|boolean",beforeEmit:"function"}}}]),e}()},{"@swc/helpers/src/_async_to_generator.mjs":"9vSoD","@swc/helpers/src/_class_call_check.mjs":"iwG1v","@swc/helpers/src/_create_class.mjs":"6rgu9","@swc/helpers/src/_object_spread.mjs":"1LSQ7","@swc/helpers/src/_object_spread_props.mjs":"8IISz","@swc/helpers/src/_ts_generator.mjs":"8UZjC","./bilibili":"kMsXR","./getDanmuTop":"fdr65","12ceab24749100d0":"eYSck","@parcel/transformer-js/src/esmodule-helpers.js":"iWrD0"}],"9vSoD":[function(t,e,r){function n(t,e,r,n,i,a,s){try{var o=t[a](s),u=o.value}catch(t){return void r(t)}o.done?e(u):Promise.resolve(u).then(n,i)}t("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r),r.default=function(t){return function(){var e=this,r=arguments;return new Promise((function(i,a){var s=t.apply(e,r);function o(t){n(s,i,a,o,u,"next",t)}function u(t){n(s,i,a,o,u,"throw",t)}o(void 0)}))}}},{"@parcel/transformer-js/src/esmodule-helpers.js":"iWrD0"}],iWrD0:[function(t,e,r){r.interopDefault=function(t){return t&&t.__esModule?t:{default:t}},r.defineInteropFlag=function(t){Object.defineProperty(t,"__esModule",{value:!0})},r.exportAll=function(t,e){return Object.keys(t).forEach((function(r){"default"===r||"__esModule"===r||e.hasOwnProperty(r)||Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[r]}})})),e},r.export=function(t,e,r){Object.defineProperty(t,e,{enumerable:!0,get:r})}},{}],iwG1v:[function(t,e,r){t("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r),r.default=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},{"@parcel/transformer-js/src/esmodule-helpers.js":"iWrD0"}],"6rgu9":[function(t,e,r){function n(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}t("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r),r.default=function(t,e,r){return e&&n(t.prototype,e),r&&n(t,r),t}},{"@parcel/transformer-js/src/esmodule-helpers.js":"iWrD0"}],"1LSQ7":[function(t,e,r){var n=t("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var i=t("./_define_property.mjs"),a=n.interopDefault(i);r.default=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable})))),n.forEach((function(e){(0,a.default)(t,e,r[e])}))}return t}},{"./_define_property.mjs":"6QNcv","@parcel/transformer-js/src/esmodule-helpers.js":"iWrD0"}],"6QNcv":[function(t,e,r){t("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r),r.default=function(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}},{"@parcel/transformer-js/src/esmodule-helpers.js":"iWrD0"}],"8IISz":[function(t,e,r){t("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r),r.default=function(t,e){return e=null!=e?e:{},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):function(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r.push.apply(r,n)}return r}(Object(e)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))})),t}},{"@parcel/transformer-js/src/esmodule-helpers.js":"iWrD0"}],"8UZjC":[function(t,e,r){var n=t("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"default",(function(){return i.__generator}));var i=t("tslib")},{tslib:"c0d7h","@parcel/transformer-js/src/esmodule-helpers.js":"iWrD0"}],c0d7h:[function(t,e,r){var n=t("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"__extends",(function(){return s})),n.export(r,"__assign",(function(){return o})),n.export(r,"__rest",(function(){return u})),n.export(r,"__decorate",(function(){return l})),n.export(r,"__param",(function(){return c})),n.export(r,"__metadata",(function(){return A})),n.export(r,"__awaiter",(function(){return d})),n.export(r,"__generator",(function(){return f})),n.export(r,"__createBinding",(function(){return h})),n.export(r,"__exportStar",(function(){return p})),n.export(r,"__values",(function(){return g})),n.export(r,"__read",(function(){return v})),n.export(r,"__spread",(function(){return m})),n.export(r,"__spreadArrays",(function(){return y})),n.export(r,"__spreadArray",(function(){return w})),n.export(r,"__await",(function(){return b})),n.export(r,"__asyncGenerator",(function(){return _})),n.export(r,"__asyncDelegator",(function(){return B})),n.export(r,"__asyncValues",(function(){return C})),n.export(r,"__makeTemplateObject",(function(){return E})),n.export(r,"__importStar",(function(){return T})),n.export(r,"__importDefault",(function(){return S})),n.export(r,"__classPrivateFieldGet",(function(){return k})),n.export(r,"__classPrivateFieldSet",(function(){return I})),n.export(r,"__classPrivateFieldIn",(function(){return F}));var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},i(t,e)};function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var o=function(){return o=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},o.apply(this,arguments)};function u(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(t);i<n.length;i++)e.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(t,n[i])&&(r[n[i]]=t[n[i]])}return r}function l(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==("undefined"===typeof Reflect?"undefined":a(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var u=t.length-1;u>=0;u--)(i=t[u])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o}function c(t,e){return function(r,n){e(r,n,t)}}function A(t,e){if("object"==("undefined"===typeof Reflect?"undefined":a(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function d(t,e,r,n){return new(r||(r=Promise))((function(i,a){function s(t){try{u(n.next(t))}catch(t){a(t)}}function o(t){try{u(n.throw(t))}catch(t){a(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(s,o)}u((n=n.apply(t,e||[])).next())}))}function f(t,e){var r,n,i,a,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function o(o){return function(u){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,o[0]&&(s=0)),s;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,n=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(i=s.trys,!((i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=e.call(t,s)}catch(t){o=[6,t],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,u])}}}var h=Object.create?function(t,e,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]};function p(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||h(e,t,r)}function g(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function v(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,a=r.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=a.next()).done;)s.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=a.return)&&r.call(a)}finally{if(i)throw i.error}}return s}function m(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(v(arguments[e]));return t}function y(){for(var t=0,e=0,r=arguments.length;e<r;e++)t+=arguments[e].length;var n=Array(t),i=0;for(e=0;e<r;e++)for(var a=arguments[e],s=0,o=a.length;s<o;s++,i++)n[i]=a[s];return n}function w(t,e,r){if(r||2===arguments.length)for(var n,i=0,a=e.length;i<a;i++)!n&&i in e||(n||(n=Array.prototype.slice.call(e,0,i)),n[i]=e[i]);return t.concat(n||Array.prototype.slice.call(e))}function b(t){return this instanceof b?(this.v=t,this):new b(t)}function _(t,e,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,i=r.apply(t,e||[]),a=[];return n={},s("next"),s("throw"),s("return"),n[Symbol.asyncIterator]=function(){return this},n;function s(t){i[t]&&(n[t]=function(e){return new Promise((function(r,n){a.push([t,e,r,n])>1||o(t,e)}))})}function o(t,e){try{(r=i[t](e)).value instanceof b?Promise.resolve(r.value.v).then(u,l):c(a[0][2],r)}catch(t){c(a[0][3],t)}var r}function u(t){o("next",t)}function l(t){o("throw",t)}function c(t,e){t(e),a.shift(),a.length&&o(a[0][0],a[0][1])}}function B(t){var e,r;return e={},n("next"),n("throw",(function(t){throw t})),n("return"),e[Symbol.iterator]=function(){return this},e;function n(n,i){e[n]=t[n]?function(e){return(r=!r)?{value:b(t[n](e)),done:"return"===n}:i?i(e):e}:i}}function C(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,r=t[Symbol.asyncIterator];return r?r.call(t):(t=g(t),e={},n("next"),n("throw"),n("return"),e[Symbol.asyncIterator]=function(){return this},e);function n(r){e[r]=t[r]&&function(e){return new Promise((function(n,i){(function(t,e,r,n){Promise.resolve(n).then((function(e){t({value:e,done:r})}),e)})(n,i,(e=t[r](e)).done,e.value)}))}}}function E(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}var x=Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e};function T(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&h(e,t,r);return x(e,t),e}function S(t){return t&&t.__esModule?t:{default:t}}function k(t,e,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(t):n?n.value:e.get(t)}function I(t,e,r,n,i){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?i.call(t,r):i?i.value=r:e.set(t,r),r}function F(t,e){if(null===e||"object"!=a(e)&&"function"!=typeof e)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof t?e===t:t.has(e)}},{"@parcel/transformer-js/src/esmodule-helpers.js":"iWrD0"}],kMsXR:[function(t,e,r){var n=t("@parcel/transformer-js/src/esmodule-helpers.js");function i(t){switch(t){case 1:case 2:case 3:default:return 0;case 4:case 5:return 1}}function a(t){if("string"!=typeof t)return[];var e=t.matchAll(RegExp('<d (?:.*? )??p="(?<p>.+?)"(?: .*?)?>(?<text>.+?)<\\/d>',"gs"));return Array.from(e).map((function(t){var e=t.groups.p.split(",");return e.length>=8?{text:t.groups.text.trim().replaceAll("&quot;",'"').replaceAll("&apos;","'").replaceAll("&lt;","<").replaceAll("&gt;",">").replaceAll("&amp;","&"),time:Number(e[0]),mode:i(Number(e[1])),fontSize:Number(e[2]),color:"#".concat(Number(e[3]).toString(16)),timestamp:Number(e[4]),pool:Number(e[5]),userID:e[6],rowID:Number(e[7])}:null})).filter(Boolean)}function s(t){return fetch(t).then((function(t){return t.text()})).then((function(t){return a(t)}))}n.defineInteropFlag(r),n.export(r,"getMode",(function(){return i})),n.export(r,"bilibiliDanmuParseFromXml",(function(){return a})),n.export(r,"bilibiliDanmuParseFromUrl",(function(){return s}))},{"@parcel/transformer-js/src/esmodule-helpers.js":"iWrD0"}],fdr65:[function(t,e,r){var n=t("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var i=t("@swc/helpers/src/_to_consumable_array.mjs"),a=n.interopDefault(i);r.default=function(t){var e=t.target,r=t.emits,n=t.clientWidth,i=t.clientHeight,s=t.marginBottom,o=t.marginTop,u=t.antiOverlap,l=r.filter((function(t){return t.mode===e.mode&&t.top<=i-s})).sort((function(t,e){return t.top-e.top}));if(0===l.length)return o;l.unshift({top:0,left:0,right:0,height:o,width:n,speed:0,distance:n}),l.push({top:i-s,left:0,right:0,height:s,width:n,speed:0,distance:n});for(var c=1;c<l.length;c+=1){var A=l[c],d=l[c-1],f=d.top+d.height;if(A.top-f>=e.height)return f}for(var h=[],p=1;p<l.length-1;p+=1){var g=l[p];if(h.length){var v=h[h.length-1];v[0].top===g.top?v.push(g):h.push([g])}else h.push([g])}if(!u){switch(e.mode){case 0:h.sort((function(t,e){var r,n,i=(r=Math).min.apply(r,(0,a.default)(e.map((function(t){return t.right})))),s=(n=Math).min.apply(n,(0,a.default)(t.map((function(t){return t.right}))));return i*e.length-s*t.length}));break;case 1:h.sort((function(t,e){var r,n,i=(r=Math).max.apply(r,(0,a.default)(e.map((function(t){return t.width})))),s=(n=Math).max.apply(n,(0,a.default)(t.map((function(t){return t.width}))));return s*t.length-i*e.length}))}return h[0][0].top}switch(e.mode){case 0:var m=h.find((function(t){return t.every((function(t){return!(n<t.distance)&&(e.speed<t.speed||t.right/(e.speed-t.speed)>t.time)}))}));return m&&m[0]?m[0].top:void 0;case 1:return}}},{"@swc/helpers/src/_to_consumable_array.mjs":"inwWM","@parcel/transformer-js/src/esmodule-helpers.js":"iWrD0"}],inwWM:[function(t,e,r){var n=t("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var i=t("./_array_without_holes.mjs"),a=n.interopDefault(i),s=t("./_iterable_to_array.mjs"),o=n.interopDefault(s),u=t("./_non_iterable_spread.mjs"),l=n.interopDefault(u),c=t("./_unsupported_iterable_to_array.mjs"),A=n.interopDefault(c);r.default=function(t){return(0,a.default)(t)||(0,o.default)(t)||(0,A.default)(t)||(0,l.default)()}},{"./_array_without_holes.mjs":"aPtE3","./_iterable_to_array.mjs":"a510R","./_non_iterable_spread.mjs":"hRgb8","./_unsupported_iterable_to_array.mjs":"jHVd7","@parcel/transformer-js/src/esmodule-helpers.js":"iWrD0"}],aPtE3:[function(t,e,r){var n=t("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var i=t("./_array_like_to_array.mjs"),a=n.interopDefault(i);r.default=function(t){if(Array.isArray(t))return(0,a.default)(t)}},{"./_array_like_to_array.mjs":"dhuPI","@parcel/transformer-js/src/esmodule-helpers.js":"iWrD0"}],dhuPI:[function(t,e,r){t("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r),r.default=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}},{"@parcel/transformer-js/src/esmodule-helpers.js":"iWrD0"}],a510R:[function(t,e,r){t("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r),r.default=function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}},{"@parcel/transformer-js/src/esmodule-helpers.js":"iWrD0"}],hRgb8:[function(t,e,r){t("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r),r.default=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.")}},{"@parcel/transformer-js/src/esmodule-helpers.js":"iWrD0"}],jHVd7:[function(t,e,r){var n=t("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var i=t("./_array_like_to_array.mjs"),a=n.interopDefault(i);r.default=function(t,e){if(t){if("string"==typeof t)return(0,a.default)(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?(0,a.default)(t,e):void 0}}},{"./_array_like_to_array.mjs":"dhuPI","@parcel/transformer-js/src/esmodule-helpers.js":"iWrD0"}],eYSck:[function(t,e,r){e.exports="data:application/javascript,function%20_arrayLikeToArray%28r%2Ct%29%7B%28null%3D%3Dt%7C%7Ct%3Er.length%29%26%26%28t%3Dr.length%29%3Bfor%28var%20e%3D0%2Cn%3Dnew%20Array%28t%29%3Be%3Ct%3Be%2B%2B%29n%5Be%5D%3Dr%5Be%5D%3Breturn%20n%7Dfunction%20_arrayWithoutHoles%28r%29%7Bif%28Array.isArray%28r%29%29return%20_arrayLikeToArray%28r%29%7Dfunction%20_iterableToArray%28r%29%7Bif%28%22undefined%22%21%3Dtypeof%20Symbol%26%26null%21%3Dr%5BSymbol.iterator%5D%7C%7Cnull%21%3Dr%5B%22%40%40iterator%22%5D%29return%20Array.from%28r%29%7Dfunction%20_nonIterableSpread%28%29%7Bthrow%20new%20TypeError%28%22Invalid%20attempt%20to%20spread%20non-iterable%20instance.%5C%5CnIn%20order%20to%20be%20iterable%2C%20non-array%20objects%20must%20have%20a%20%5BSymbol.iterator%5D%28%29%20method.%22%29%7Dfunction%20_toConsumableArray%28r%29%7Breturn%20_arrayWithoutHoles%28r%29%7C%7C_iterableToArray%28r%29%7C%7C_unsupportedIterableToArray%28r%29%7C%7C_nonIterableSpread%28%29%7Dfunction%20_unsupportedIterableToArray%28r%2Ct%29%7Bif%28r%29%7Bif%28%22string%22%3D%3Dtypeof%20r%29return%20_arrayLikeToArray%28r%2Ct%29%3Bvar%20e%3DObject.prototype.toString.call%28r%29.slice%288%2C-1%29%3Breturn%22Object%22%3D%3D%3De%26%26r.constructor%26%26%28e%3Dr.constructor.name%29%2C%22Map%22%3D%3D%3De%7C%7C%22Set%22%3D%3D%3De%3FArray.from%28e%29%3A%22Arguments%22%3D%3D%3De%7C%7C%2F%5E%28%3F%3AUi%7CI%29nt%28%3F%3A8%7C16%7C32%29%28%3F%3AClamped%29%3FArray%24%2F.test%28e%29%3F_arrayLikeToArray%28r%2Ct%29%3Avoid%200%7D%7Dfunction%20getDanmuTop%28r%29%7Bvar%20t%3Dr.target%2Ce%3Dr.emits%2Cn%3Dr.clientWidth%2Ca%3Dr.clientHeight%2Co%3Dr.marginBottom%2Ci%3Dr.marginTop%2Cu%3Dr.antiOverlap%2Cp%3De.filter%28%28function%28r%29%7Breturn%20r.mode%3D%3D%3Dt.mode%26%26r.top%3C%3Da-o%7D%29%29.sort%28%28function%28r%2Ct%29%7Breturn%20r.top-t.top%7D%29%29%3Bif%280%3D%3D%3Dp.length%29return%20i%3Bp.unshift%28%7Btop%3A0%2Cleft%3A0%2Cright%3A0%2Cheight%3Ai%2Cwidth%3An%2Cspeed%3A0%2Cdistance%3An%7D%29%2Cp.push%28%7Btop%3Aa-o%2Cleft%3A0%2Cright%3A0%2Cheight%3Ao%2Cwidth%3An%2Cspeed%3A0%2Cdistance%3An%7D%29%3Bfor%28var%20l%3D1%3Bl%3Cp.length%3Bl%2B%3D1%29%7Bvar%20s%3Dp%5Bl%5D%2Ch%3Dp%5Bl-1%5D%2Cf%3Dh.top%2Bh.height%3Bif%28s.top-f%3E%3Dt.height%29return%20f%7Dfor%28var%20c%3D%5B%5D%2Cy%3D1%3By%3Cp.length-1%3By%2B%3D1%29%7Bvar%20m%3Dp%5By%5D%3Bif%28c.length%29%7Bvar%20d%3Dc%5Bc.length-1%5D%3Bd%5B0%5D.top%3D%3D%3Dm.top%3Fd.push%28m%29%3Ac.push%28%5Bm%5D%29%7Delse%20c.push%28%5Bm%5D%29%7Dif%28%21u%29%7Bswitch%28t.mode%29%7Bcase%200%3Ac.sort%28%28function%28r%2Ct%29%7Bvar%20e%2Cn%2Ca%3D%28e%3DMath%29.min.apply%28e%2C_toConsumableArray%28t.map%28%28function%28r%29%7Breturn%20r.right%7D%29%29%29%29%2Co%3D%28n%3DMath%29.min.apply%28n%2C_toConsumableArray%28r.map%28%28function%28r%29%7Breturn%20r.right%7D%29%29%29%29%3Breturn%20a%2at.length-o%2ar.length%7D%29%29%3Bbreak%3Bcase%201%3Ac.sort%28%28function%28r%2Ct%29%7Bvar%20e%2Cn%2Ca%3D%28e%3DMath%29.max.apply%28e%2C_toConsumableArray%28t.map%28%28function%28r%29%7Breturn%20r.width%7D%29%29%29%29%2Co%3D%28n%3DMath%29.max.apply%28n%2C_toConsumableArray%28r.map%28%28function%28r%29%7Breturn%20r.width%7D%29%29%29%29%3Breturn%20o%2ar.length-a%2at.length%7D%29%29%7Dreturn%20c%5B0%5D%5B0%5D.top%7Dswitch%28t.mode%29%7Bcase%200%3Avar%20g%3Dc.find%28%28function%28r%29%7Breturn%20r.every%28%28function%28r%29%7Breturn%21%28n%3Cr.distance%29%26%26%28t.speed%3Cr.speed%7C%7Cr.right%2F%28t.speed-r.speed%29%3Er.time%29%7D%29%29%7D%29%29%3Breturn%20g%26%26g%5B0%5D%3Fg%5B0%5D.top%3Avoid%200%3Bcase%201%3Areturn%7D%7Donmessage%3Dfunction%28r%29%7Bvar%20t%3Dr.data%2Ce%3DgetDanmuTop%28t%29%3Bself.postMessage%28%7Btop%3Ae%2Cid%3At.id%7D%29%7D%3B"},{}],d3V7t:[function(t,e,r){var n=t("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var i=t("bundle-text:./style.less"),a=n.interopDefault(i),s=t("bundle-text:./img/danmu-on.svg"),o=n.interopDefault(s),u=t("bundle-text:./img/danmu-off.svg"),l=n.interopDefault(u),c=t("bundle-text:./img/danmu-config.svg"),A=n.interopDefault(c),d=t("bundle-text:./img/danmu-style.svg"),f=n.interopDefault(d);if(r.default=function(t,e){var r=e.option,n=t.template,i=n.$controlsCenter,a=n.$player,s=t.constructor,u=s.SETTING_ITEM_WIDTH,c=s.utils,d=c.removeClass,h=c.addClass,p=c.append,g=c.setStyle,v=c.tooltip,m=c.query,y=c.inverseClass,w=c.getIcon;g(i,"display","flex");var b=w("danmu-on",o.default),_=w("danmu-off",l.default),B=w("danmu-config",A.default),C=w("danmu-style",f.default);!function(){var n=["#FE0302","#FF7204","#FFAA02","#FFD302","#FFFF00","#A0EE00","#00CD00","#019899","#4266BE","#89D5FF","#CC0273","#222222","#9B9B9B","#FFFFFF"].map((function(t){var e=r.color===t?" art-current":"";return'<div class="art-danmuku-style-panel-color'.concat(e,'" data-color="').concat(t,'" style="background-color:').concat(t,'"></div>')})),s=p(i,'<div class="art-danmuku-emitter" style="max-width: '.concat(r.maxWidth?"".concat(r.maxWidth,"px"):"100%",'"><div class="art-danmuku-left"><div class="art-danmuku-style"><div class="art-danmuku-style-panel"><div class="art-danmuku-style-panel-inner"><div class="art-danmuku-style-panel-title">\u6a21\u5f0f</div><div class="art-danmuku-style-panel-modes"><div class="art-danmuku-style-panel-mode art-current" data-mode="0">\u6eda\u52a8</div><div class="art-danmuku-style-panel-mode" data-mode="1">\u9759\u6b62</div></div><div class="art-danmuku-style-panel-title">\u989c\u8272</div><div class="art-danmuku-style-panel-colors">').concat(n.join(""),'</div></div></div></div><input class="art-danmuku-input" maxlength="').concat(r.maxLength,'" placeholder="\u53d1\u4e2a\u5f39\u5e55\u89c1\u8bc1\u5f53\u4e0b" /></div><div class="art-danmuku-send">\u53d1\u9001</div></div>')),o=m(".art-danmuku-style",s),u=m(".art-danmuku-input",s),l=m(".art-danmuku-send",s),c=m(".art-danmuku-style-panel-inner",s),A=m(".art-danmuku-style-panel-modes",s),f=m(".art-danmuku-style-panel-colors",s),v=r.mount||p(a,'<div class="art-layer-danmuku-emitter"></div>');t.option.backdrop&&h(c,"art-backdrop-filter"),r.theme&&h(s,"art-danmuku-theme-".concat(r.theme));var w=null,b=r.mode,_=r.color;function B(){var n={mode:b,color:_,border:!0,text:u.value.trim()};null===w&&r.beforeEmit(n)&&(u.value="",e.emit(n),h(l,"art-disabled"),function t(e){e<=0?(w=null,l.innerText="\u53d1\u9001",d(l,"art-disabled")):(l.innerText=e,w=setTimeout((function(){return t(e-1)}),1e3))}(r.lockTime),t.emit("artplayerPluginDanmuku:emit",n))}function E(){i.clientWidth<r.minWidth?(p(v,s),g(v,"display","flex"),h(s,"art-danmuku-mount"),r.mount||g(a,"marginBottom","40px")):(p(i,s),g(v,"display","none"),d(s,"art-danmuku-mount"),r.mount||g(a,"marginBottom",null))}p(o,C),t.proxy(l,"click",B),t.proxy(u,"keypress",(function(t){"Enter"===t.key&&(t.preventDefault(),B())})),t.proxy(A,"click",(function(t){var e=t.target.dataset;e.mode&&(b=Number(e.mode),y(t.target,"art-current"))})),t.proxy(f,"click",(function(t){var e=t.target.dataset;e.color&&(_=e.color,y(t.target,"art-current"))})),E(),t.on("resize",(function(){t.isInput||E()})),t.on("destroy",(function(){r.mount&&s.parentElement===r.mount&&r.mount.removeChild(s)}))}(),t.controls.add({position:"right",name:"danmuku",click:function(){e.isHide?(e.show(),t.notice.show="\u5f39\u5e55\u663e\u793a",g(b,"display",null),g(_,"display","none")):(e.hide(),t.notice.show="\u5f39\u5e55\u9690\u85cf",g(b,"display","none"),g(_,"display",null))},mounted:function(e){p(e,b),p(e,_),v(e,"\u5f39\u5e55\u5f00\u5173"),g(_,"display","none"),t.on("artplayerPluginDanmuku:hide",(function(){g(b,"display","none"),g(_,"display",null)})),t.on("artplayerPluginDanmuku:show",(function(){g(b,"display",null),g(_,"display","none")}))}}),t.setting.add({width:260,name:"danmuku",html:"\u5f39\u5e55\u8bbe\u7f6e",tooltip:"\u66f4\u591a",icon:B,selector:[{width:u,html:"\u64ad\u653e\u901f\u5ea6",icon:"",tooltip:"\u9002\u4e2d",selector:[{html:"\u6781\u6162",time:10},{html:"\u8f83\u6162",time:7.5},{default:!0,html:"\u9002\u4e2d",time:5},{html:"\u8f83\u5feb",time:2.5},{html:"\u6781\u5feb",time:1}],onSelect:function(t){return e.config({speed:t.time}),t.html}},{width:u,html:"\u5b57\u4f53\u5927\u5c0f",icon:"",tooltip:"\u9002\u4e2d",selector:[{html:"\u6781\u5c0f",fontSize:"4%"},{html:"\u8f83\u5c0f",fontSize:"5%"},{default:!0,html:"\u9002\u4e2d",fontSize:"6%"},{html:"\u8f83\u5927",fontSize:"7%"},{html:"\u6781\u5927",fontSize:"8%"}],onSelect:function(t){return e.config({fontSize:t.fontSize}),t.html}},{width:u,html:"\u4e0d\u900f\u660e\u5ea6",icon:"",tooltip:"100%",selector:[{default:!0,opacity:1,html:"100%"},{opacity:.75,html:"75%"},{opacity:.5,html:"50%"},{opacity:.25,html:"25%"},{opacity:0,html:"0%"}],onSelect:function(t){return e.config({opacity:t.opacity}),t.html}},{width:u,html:"\u663e\u793a\u8303\u56f4",icon:"",tooltip:"3/4",selector:[{html:"1/4",margin:[10,"75%"]},{html:"\u534a\u5c4f",margin:[10,"50%"]},{default:!0,html:"3/4",margin:[10,"25%"]},{html:"\u6ee1\u5c4f",margin:[10,10]}],onSelect:function(t){return e.config({margin:t.margin}),t.html}},{html:"\u5f39\u5e55\u9632\u91cd\u53e0",icon:"",tooltip:r.antiOverlap?"\u5f00\u542f":"\u5173\u95ed",switch:r.antiOverlap,onSwitch:function(t){return e.config({antiOverlap:!t.switch}),t.tooltip=t.switch?"\u5173\u95ed":"\u5f00\u542f",!t.switch}},{html:"\u540c\u6b65\u89c6\u9891\u901f\u5ea6",icon:"",tooltip:r.synchronousPlayback?"\u5f00\u542f":"\u5173\u95ed",switch:r.synchronousPlayback,onSwitch:function(t){return e.config({synchronousPlayback:!t.switch}),t.tooltip=t.switch?"\u5173\u95ed":"\u5f00\u542f",!t.switch}}]})},"undefined"!=typeof document&&!document.getElementById("artplayer-plugin-danmuku")){var h=document.createElement("style");h.id="artplayer-plugin-danmuku",h.textContent=a.default,document.head.appendChild(h)}},{"bundle-text:./style.less":"i8wAr","bundle-text:./img/danmu-on.svg":"kGRGq","bundle-text:./img/danmu-off.svg":"foSCW","bundle-text:./img/danmu-config.svg":"2BOyr","bundle-text:./img/danmu-style.svg":"5iS5P","@parcel/transformer-js/src/esmodule-helpers.js":"iWrD0"}],i8wAr:[function(t,e,r){e.exports='.art-danmuku-emitter{height:32px;width:100%;max-width:100%;background-color:rgba(255,255,255,.3);border-radius:5px;font-size:12px;line-height:1;display:flex;position:relative}.art-danmuku-emitter .art-backdrop-filter{-webkit-backdrop-filter:saturate(180%)blur(20px);backdrop-filter:saturate(180%)blur(20px);background-color:rgba(0,0,0,.7)!important}.art-danmuku-emitter .art-danmuku-left{border-radius:3px 0 0 3px;flex:1;display:flex}.art-danmuku-emitter .art-danmuku-left .art-danmuku-style{width:32px;justify-content:center;align-items:center;display:flex;position:relative}.art-danmuku-emitter .art-danmuku-left .art-danmuku-style .art-danmuku-style-panel{z-index:999;width:200px;padding-bottom:10px;display:none;position:absolute;bottom:30px;left:-85px}.art-danmuku-emitter .art-danmuku-left .art-danmuku-style .art-danmuku-style-panel .art-danmuku-style-panel-inner{background-color:rgba(0,0,0,.9);border-radius:3px;flex-direction:column;padding:10px 10px 0;display:flex}.art-danmuku-emitter .art-danmuku-left .art-danmuku-style .art-danmuku-style-panel .art-danmuku-style-panel-inner .art-danmuku-style-panel-title{margin-bottom:10px;font-size:13px}.art-danmuku-emitter .art-danmuku-left .art-danmuku-style .art-danmuku-style-panel .art-danmuku-style-panel-inner .art-danmuku-style-panel-modes{justify-content:space-between;margin-bottom:15px;display:flex}.art-danmuku-emitter .art-danmuku-left .art-danmuku-style .art-danmuku-style-panel .art-danmuku-style-panel-inner .art-danmuku-style-panel-modes .art-danmuku-style-panel-mode{width:47%;cursor:pointer;color:#fff;border:1px solid #fff;justify-content:center;padding:5px 0;display:flex}.art-danmuku-emitter .art-danmuku-left .art-danmuku-style .art-danmuku-style-panel .art-danmuku-style-panel-inner .art-danmuku-style-panel-modes .art-danmuku-style-panel-mode.art-current{background-color:#00a1d6;border:1px solid #00a1d6}.art-danmuku-emitter .art-danmuku-left .art-danmuku-style .art-danmuku-style-panel .art-danmuku-style-panel-inner .art-danmuku-style-panel-colors{flex-wrap:wrap;justify-content:space-between;gap:5px;margin-bottom:10px;display:flex}.art-danmuku-emitter .art-danmuku-left .art-danmuku-style .art-danmuku-style-panel .art-danmuku-style-panel-inner .art-danmuku-style-panel-colors .art-danmuku-style-panel-color{cursor:pointer;width:20px;height:20px;border:1px solid #fff}.art-danmuku-emitter .art-danmuku-left .art-danmuku-style .art-danmuku-style-panel .art-danmuku-style-panel-inner .art-danmuku-style-panel-colors .art-danmuku-style-panel-color.art-current{position:relative;box-shadow:0 0 2px #fff}.art-danmuku-emitter .art-danmuku-left .art-danmuku-style .art-danmuku-style-panel .art-danmuku-style-panel-inner .art-danmuku-style-panel-colors .art-danmuku-style-panel-color.art-current:before{content:"";width:100%;height:100%;border:2px solid #000;position:absolute;top:0;bottom:0;left:0;right:0}.art-danmuku-emitter .art-danmuku-left .art-danmuku-style:hover .art-danmuku-style-panel{display:flex}.art-danmuku-emitter .art-danmuku-left .art-danmuku-style .art-icon{opacity:.75;cursor:pointer}.art-danmuku-emitter .art-danmuku-left .art-danmuku-style .art-icon:hover{opacity:1}.art-danmuku-emitter .art-danmuku-left .art-danmuku-input{width:100%;color:#fff;background-color:transparent;border:none;outline:none;flex:1;padding:0 10px 0 0;display:flex}.art-danmuku-emitter .art-danmuku-left .art-danmuku-input::placeholder,.art-danmuku-emitter .art-danmuku-left .art-danmuku-input::-webkit-input-placeholder{color:rgba(255,255,255,.5)}.art-danmuku-emitter .art-danmuku-send{width:50px;cursor:pointer;background-color:#00a1d6;border-radius:0 5px 5px 0;justify-content:center;align-items:center;display:flex}.art-danmuku-emitter .art-danmuku-send:hover{background-color:#00b5e5}.art-danmuku-emitter .art-danmuku-send.art-disabled{opacity:.5;pointer-events:none}.art-danmuku-emitter.art-danmuku-mount{max-width:100%!important}.art-danmuku-emitter.art-danmuku-mount .art-danmuku-left .art-danmuku-style .art-danmuku-style-panel{left:0}.art-danmuku-emitter.art-danmuku-mount .art-danmuku-send{width:60px}.art-danmuku-emitter.art-danmuku-mount.art-danmuku-theme-light .art-danmuku-left{background:#f4f4f4;border:1px solid #dadada}.art-danmuku-emitter.art-danmuku-mount.art-danmuku-theme-light .art-danmuku-left .art-danmuku-style .art-icon svg{fill:#666}.art-danmuku-emitter.art-danmuku-mount.art-danmuku-theme-light .art-danmuku-left .art-danmuku-input{color:#000}.art-danmuku-emitter.art-danmuku-mount.art-danmuku-theme-light .art-danmuku-left .art-danmuku-input::placeholder,.art-danmuku-emitter.art-danmuku-mount.art-danmuku-theme-light .art-danmuku-left .art-danmuku-input::-webkit-input-placeholder{color:rgba(0,0,0,.5)}.art-layer-danmuku-emitter{z-index:99;width:100%;position:absolute;bottom:-40px;left:0;right:0}'},{}],kGRGq:[function(t,e,r){e.exports='<svg viewBox="0 0 1152 1024" width="22" height="22" xmlns="http://www.w3.org/2000/svg"><path fill="#fff" d="M311.467 661.333c0 4.267-4.267 8.534-8.534 12.8 0 4.267 0 4.267-4.266 8.534h-12.8c-4.267 0-8.534-4.267-17.067-8.534-8.533-8.533-17.067-8.533-25.6-8.533-8.533 0-12.8 4.267-17.067 12.8-4.266 12.8-8.533 21.333-4.266 29.867 4.266 8.533 12.8 17.066 25.6 21.333 17.066 8.533 34.133 17.067 46.933 17.067 12.8 0 21.333-4.267 34.133-8.534 8.534-4.266 17.067-17.066 25.6-29.866 8.534-12.8 12.8-34.134 17.067-55.467 4.267-21.333 4.267-51.2 4.267-85.333 0-12.8 0-21.334-4.267-29.867 0-8.533-4.267-12.8-8.533-17.067-4.267-4.266-8.534-8.533-12.8-8.533-4.267 0-12.8-4.267-21.334-4.267h-55.466s-4.267-4.266 0-8.533l4.266-38.4c0-4.267 0-8.533 4.267-8.533h46.933c17.067 0 25.6-4.267 34.134-12.8 8.533-8.534 12.8-21.334 12.8-42.667v-72.533c0-17.067-4.267-34.134-8.534-42.667-12.8-12.8-25.6-17.067-42.666-17.067H243.2c-8.533 0-17.067 0-21.333 4.267-4.267 8.533-4.267 12.8-4.267 25.6 0 8.533 0 17.067 4.267 21.333 4.266 4.267 12.8 8.534 21.333 8.534h64c4.267 0 8.533 0 8.533 4.266v34.134c0 8.533 0 12.8-4.266 12.8 0 0-4.267 4.266-8.534 4.266H268.8c-8.533 0-12.8 0-21.333 4.267-4.267 0-8.534 4.267-8.534 4.267-4.266 4.266-8.533 12.8-8.533 17.066 0 8.534-4.267 17.067-4.267 25.6l-8.533 72.534v29.866c0 8.534 4.267 12.8 8.533 17.067 4.267 4.267 8.534 4.267 17.067 8.533h68.267c4.266 0 8.533 0 8.533 4.267s4.267 8.533 4.267 17.067c0 21.333 0 42.666-4.267 55.466 0 8.534-4.267 21.334-8.533 25.6zM896 486.4c-93.867 0-174.933 51.2-217.6 123.733H571.733V576H640c21.333 0 34.133-4.267 42.667-12.8 8.533-8.533 12.8-21.333 12.8-42.667V358.4c0-21.333-4.267-34.133-12.8-42.667-8.534-8.533-21.334-12.8-42.667-12.8 0-4.266 4.267-4.266 4.267-8.533-4.267 0-4.267-4.267-4.267-4.267 4.267-12.8 8.533-21.333 4.267-25.6 0-8.533-4.267-12.8-12.8-21.333-8.534-4.267-17.067-4.267-21.334-4.267-8.533 4.267-12.8 8.534-21.333 21.334-4.267 8.533-8.533 12.8-12.8 21.333-4.267 8.533-8.533 12.8-12.8 21.333H512c-4.267-8.533-8.533-17.066-8.533-21.333-4.267-8.533-8.534-12.8-12.8-21.333-4.267-12.8-12.8-17.067-21.334-17.067s-17.066 0-25.6 8.533c-8.533 8.534-12.8 12.8-12.8 21.334s0 17.066 8.534 25.6l4.266 4.266L448 307.2c-17.067 0-29.867 4.267-38.4 12.8-8.533 4.267-12.8 21.333-12.8 38.4v157.867c0 21.333 4.267 34.133 12.8 42.666 8.533 8.534 21.333 12.8 42.667 12.8H512v34.134h-98.133c-12.8 0-21.334 0-25.6 4.266-4.267 4.267-8.534 8.534-8.534 21.334v17.066c0 4.267 4.267 8.534 4.267 8.534 4.267 0 4.267 4.266 8.533 4.266H512V716.8c0 12.8 4.267 21.333 8.533 25.6 4.267 4.267 12.8 8.533 21.334 8.533 12.8 0 21.333-4.266 25.6-8.533 4.266-4.267 4.266-12.8 4.266-25.6v-55.467H652.8c-8.533 25.6-12.8 51.2-12.8 76.8 0 140.8 115.2 256 256 256s256-115.2 256-256S1036.8 486.4 896 486.4zm-328.533-128h55.466c4.267 0 4.267 0 4.267 4.267V409.6h-59.733v-51.2zm0 102.4H627.2V512h-55.467v-51.2zM512 516.267h-55.467v-51.2H512v51.2zm0-102.4h-59.733V362.667H512v51.2zm384 499.2c-93.867 0-170.667-76.8-170.667-170.667S802.133 571.733 896 571.733s170.667 76.8 170.667 170.667S989.867 913.067 896 913.067z"/><path fill="#fff" d="M951.467 669.867 878.933 742.4l-29.866-25.6C832 699.733 806.4 704 789.333 721.067c-17.066 17.066-12.8 42.666 4.267 59.733l59.733 51.2c8.534 8.533 17.067 8.533 29.867 8.533s21.333-4.266 29.867-12.8l102.4-102.4c17.066-17.066 17.066-42.666 0-59.733-21.334-12.8-46.934-12.8-64 4.267zm-371.2 209.066H213.333c-72.533 0-128-55.466-128-119.466V230.4c0-64 55.467-119.467 128-119.467h512c72.534 0 128 55.467 128 119.467v140.8c0 25.6 17.067 42.667 42.667 42.667s42.667-17.067 42.667-42.667V230.4c0-115.2-93.867-204.8-213.334-204.8h-512C93.867 25.6 0 119.467 0 230.4v529.067c0 115.2 93.867 204.8 213.333 204.8h366.934c25.6 0 42.666-17.067 42.666-42.667s-21.333-42.667-42.666-42.667z"/></svg>'},{}],foSCW:[function(t,e,r){e.exports='<svg viewBox="0 0 1152 1024" width="22" height="22" xmlns="http://www.w3.org/2000/svg"><path fill="#fff" d="M311.296 661.504c0 4.096-4.096 8.704-8.704 12.8 0 4.096 0 4.096-4.096 8.704h-12.8c-4.096 0-8.704-4.096-16.896-8.704-8.704-8.704-16.896-8.704-25.6-8.704s-12.8 4.096-16.896 12.8c-4.096 12.8-8.704 21.504-4.096 29.696 4.096 8.704 12.8 16.896 25.6 21.504 16.896 8.704 34.304 16.896 47.104 16.896 12.8 0 21.504-4.096 34.304-8.704 8.704-4.096 16.896-16.896 25.6-29.696s12.8-34.304 16.896-55.296c4.096-21.504 4.096-51.2 4.096-85.504 0-12.8 0-21.504-4.096-29.696 0-8.704-4.096-12.8-8.704-16.896-4.096-4.096-8.704-8.704-12.8-8.704s-12.8-4.096-21.504-4.096h-55.808s-4.096-4.096 0-8.704l4.096-38.4c0-4.096 0-8.704 4.096-8.704h47.104c16.896 0 25.6-4.096 34.304-12.8s12.8-21.504 12.8-42.496v-72.704c0-16.896-4.096-34.304-8.704-42.496-12.8-12.8-25.6-16.896-42.496-16.896H243.2c-8.704 0-16.896 0-21.504 4.096-4.096 8.704-4.096 12.8-4.096 25.6 0 8.704 0 16.896 4.096 21.504 4.096 4.096 12.8 8.704 21.504 8.704h64c4.096 0 8.704 0 8.704 4.096v34.304c0 8.704 0 12.8-4.096 12.8 0 0-4.096 4.096-8.704 4.096H268.8c-8.704 0-12.8 0-21.504 4.096-4.096 0-8.704 4.096-8.704 4.096-4.096 4.096-8.704 12.8-8.704 16.896 0 8.704-4.096 16.896-4.096 25.6l-8.704 72.704v29.696c0 8.704 4.096 12.8 8.704 16.896s8.704 4.096 16.896 8.704h68.096c4.096 0 8.704 0 8.704 4.096s4.096 8.704 4.096 16.896c0 21.504 0 42.496-4.096 55.296.512 9.216-3.584 22.016-8.192 26.624zM896 486.4c-93.696 0-175.104 51.2-217.6 123.904H571.904V576H640c21.504 0 34.304-4.096 42.496-12.8 8.704-8.704 12.8-21.504 12.8-42.496V358.4c0-21.504-4.096-34.304-12.8-42.496-8.704-8.704-21.504-12.8-42.496-12.8 0-4.096 4.096-4.096 4.096-8.704-4.096 0-4.096-4.096-4.096-4.096 4.096-12.8 8.704-21.504 4.096-25.6 0-8.704-4.096-12.8-12.8-21.504-8.704-4.096-16.896-4.096-21.504-4.096-8.704 4.096-12.8 8.704-21.504 21.504-4.096 8.704-8.704 12.8-12.8 21.504s-8.704 12.8-12.8 21.504h-51.2c-4.096-8.704-8.704-16.896-8.704-21.504-4.096-8.704-8.704-12.8-12.8-21.504-4.096-12.8-12.8-16.896-21.504-16.896s-16.896 0-25.6 8.704-12.8 12.8-12.8 21.504 0 16.896 8.704 25.6l4.096 4.096 4.096 4.096c-16.896 0-29.696 4.096-38.4 12.8-8.704 4.096-12.8 21.504-12.8 38.4v157.696c0 21.504 4.096 34.304 12.8 42.496 8.704 8.704 21.504 12.8 42.496 12.8H512v34.304h-98.304c-12.8 0-21.504 0-25.6 4.096s-8.704 8.704-8.704 21.504v16.896c0 4.096 4.096 8.704 4.096 8.704 4.096 0 4.096 4.096 8.704 4.096H512V716.8c0 12.8 4.096 21.504 8.704 25.6 4.096 4.096 12.8 8.704 21.504 8.704 12.8 0 21.504-4.096 25.6-8.704 4.096-4.096 4.096-12.8 4.096-25.6v-55.296H652.8c-8.704 25.6-12.8 51.2-12.8 76.8 0 140.8 115.2 256 256 256s256-115.2 256-256S1036.8 486.4 896 486.4zm-328.704-128h55.296c4.096 0 4.096 0 4.096 4.096V409.6h-59.904v-51.2zm0 102.4H627.2V512h-55.296v-51.2h-4.608zM512 516.096h-55.296v-51.2H512v51.2zm0-102.4h-59.904v-51.2H512v51.2zm384 499.2c-93.696 0-170.496-76.8-170.496-170.496S802.304 571.904 896 571.904s170.496 76.8 170.496 170.496S989.696 912.896 896 912.896z"/><path fill="#fff" d="M580.096 879.104H213.504c-72.704 0-128-55.296-128-119.296V230.4c0-64 55.296-119.296 128-119.296h512c72.704 0 128 55.296 128 119.296v140.8c0 25.6 16.896 42.496 42.496 42.496s42.496-16.896 42.496-42.496V230.4c0-115.2-93.696-204.8-213.504-204.8h-512C93.696 25.6 0 119.296 0 230.4v528.896c0 115.2 93.696 204.8 213.504 204.8h367.104c25.6 0 42.496-16.896 42.496-42.496s-21.504-42.496-43.008-42.496zm171.52 10.752c-15.36-15.36-15.36-40.96 0-56.32l237.568-237.568c15.36-15.36 40.96-15.36 56.32 0s15.36 40.96 0 56.32L807.936 889.856c-15.36 15.36-40.448 15.36-56.32 0z"/></svg>'},{}],"2BOyr":[function(t,e,r){e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="22" height="22"><path d="M16.5 8c1.289 0 2.49.375 3.5 1.022V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h7.022A6.5 6.5 0 0 1 16.5 8zM7 13H5a1 1 0 0 1 0-2h2a1 1 0 0 1 0 2zm2-4H5a1 1 0 0 1 0-2h4a1 1 0 0 1 0 2z"/><path d="m20.587 13.696-.787-.131a3.503 3.503 0 0 0-.593-1.051l.301-.804a.46.46 0 0 0-.21-.56l-1.005-.581a.52.52 0 0 0-.656.113l-.499.607a3.53 3.53 0 0 0-1.276 0l-.499-.607a.52.52 0 0 0-.656-.113l-1.005.581a.46.46 0 0 0-.21.56l.301.804c-.254.31-.456.665-.593 1.051l-.787.131a.48.48 0 0 0-.413.465v1.209a.48.48 0 0 0 .413.465l.811.135c.144.382.353.733.614 1.038l-.292.78a.46.46 0 0 0 .21.56l1.005.581a.52.52 0 0 0 .656-.113l.515-.626a3.549 3.549 0 0 0 1.136 0l.515.626a.52.52 0 0 0 .656.113l1.005-.581a.46.46 0 0 0 .21-.56l-.292-.78c.261-.305.47-.656.614-1.038l.811-.135A.48.48 0 0 0 21 15.37v-1.209a.48.48 0 0 0-.413-.465zM16.5 16.057a1.29 1.29 0 1 1 .002-2.582 1.29 1.29 0 0 1-.002 2.582z"/></svg>'},{}],"5iS5P":[function(t,e,r){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 22 22" width="24" height="24"><path d="M17 16H5c-.55 0-1 .45-1 1s.45 1 1 1h12c.55 0 1-.45 1-1s-.45-1-1-1zM6.96 15c.39 0 .74-.24.89-.6l.65-1.6h5l.66 1.6c.15.36.5.6.89.6.69 0 1.15-.71.88-1.34l-3.88-8.97C11.87 4.27 11.46 4 11 4s-.87.27-1.05.69l-3.88 8.97c-.27.63.2 1.34.89 1.34zM11 5.98 12.87 11H9.13L11 5.98z"/></svg>'},{}],dXFn2:[function(t,e,r){var n=t("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var i=t("@swc/helpers/src/_to_consumable_array.mjs"),s=n.interopDefault(i),o=function(t,e,r,n,i){return(t-e)*(i-n)/(r-e)+n};r.default=function(t,e,r){var n=t.constructor.utils.query;t.controls.add({name:"heatmap",position:"top",html:"",style:{position:"absolute",top:"-100px",left:"0px",right:"0px",height:"100px",width:"100%",pointerEvents:"none"},mounted:function(i){var u=null,l=null;function c(){var c,A,d=function(t){var r=e.danmus.filter((function(e){var r=e.time;return r>t*g&&r<=(t+h.sampling)*g})).length;p.push([t,r])};if(u=null,l=null,i.innerHTML="",e.danmus.length&&t.duration){var f={w:i.offsetWidth,h:i.offsetHeight},h={xMin:0,xMax:f.w,yMin:0,yMax:128,scale:.25,opacity:.2,minHeight:Math.floor(.05*f.h),sampling:Math.floor(f.w/100),smoothing:.2,flattening:.2};"object"==a(r)&&Object.assign(h,r);for(var p=[],g=t.duration/f.w,v=0;v<=f.w;v+=h.sampling)d(v);var m=p[p.length-1],y=m[0],w=m[1];y!==f.w&&p.push([f.w,w]);for(var b=p.map((function(t){return t[1]})),_=((c=Math).min.apply(c,(0,s.default)(b))+(A=Math).max.apply(A,(0,s.default)(b)))/2,B=0;B<p.length;B++){var C=p[B],E=C[1];C[1]=E*(E>_?1+h.scale:1-h.scale)+h.minHeight}var x=function(t,e,r,n){var i,a,s,u,l=(i=e||t,s=(a=r||t)[0]-i[0],u=a[1]-i[1],{length:Math.sqrt(Math.pow(s,2)+Math.pow(u,2)),angle:Math.atan2(u,s)}),c=o(Math.cos(l.angle)*h.flattening,0,1,1,0),A=l.angle*c+(n?Math.PI:0),d=l.length*h.smoothing;return[t[0]+Math.cos(A)*d,t[1]+Math.sin(A)*d]},T=p.map((function(t){return[o(t[0],h.xMin,h.xMax,0,f.w),o(t[1],h.yMin,h.yMax,f.h,0)]})).reduce((function(t,e,r,n){return 0===r?"M ".concat(n[n.length-1][0],",").concat(f.h," L ").concat(e[0],",").concat(f.h," L ").concat(e[0],",").concat(e[1]):"".concat(t," ").concat(function(t,e,r){var n=x(r[e-1],r[e-2],t),i=x(t,r[e-1],r[e+1],!0),a=e===r.length-1?" z":"";return"C ".concat(n[0],",").concat(n[1]," ").concat(i[0],",").concat(i[1]," ").concat(t[0],",").concat(t[1]).concat(a)}(e,r,n))}),"");i.innerHTML='<svg viewBox="0 0 '.concat(f.w," ").concat(f.h,'"><defs><linearGradient id="heatmap-solids" x1="0%" y1="0%" x2="100%" y2="0%"><stop offset="0%" style="stop-color:var(--art-theme);stop-opacity:').concat(h.opacity,'" /><stop offset="0%" style="stop-color:var(--art-theme);stop-opacity:').concat(h.opacity,'" id="heatmap-start" /><stop offset="0%" style="stop-color:var(--art-progress-color);stop-opacity:1" id="heatmap-stop" /><stop offset="100%" style="stop-color:var(--art-progress-color);stop-opacity:1" /></linearGradient></defs><path fill="url(#heatmap-solids)" d="').concat(T,'"></path></svg>'),u=n("#heatmap-start",i),l=n("#heatmap-stop",i),u.setAttribute("offset","".concat(100*t.played,"%")),l.setAttribute("offset","".concat(100*t.played,"%"))}}t.on("video:timeupdate",(function(){u&&l&&(u.setAttribute("offset","".concat(100*t.played,"%")),l.setAttribute("offset","".concat(100*t.played,"%")))})),t.on("setBar",(function(t,e){u&&l&&"played"===t&&(u.setAttribute("offset","".concat(100*e,"%")),l.setAttribute("offset","".concat(100*e,"%")))})),t.on("ready",c),t.on("resize",c),t.on("artplayerPluginDanmuku:loaded",c)}})}},{"@swc/helpers/src/_to_consumable_array.mjs":"inwWM","@parcel/transformer-js/src/esmodule-helpers.js":"iWrD0"}]},["40mNk"],"40mNk","parcelRequire4dc0")}).call(this,r("0ee4"),r("dc84")(t))},e399:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={indexList:{inactiveColor:"#606266",activeColor:"#5677fc",indexList:function(){return[]},sticky:!0,customNavHeight:0}}},e4ca:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={scrollList:{indicatorWidth:50,indicatorBarWidth:20,indicator:!0,indicatorColor:"#f2f2f2",indicatorActiveColor:"#3c9cff",indicatorStyle:""}}},e531:function(t,e,r){"use strict";var n=r("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(r("127e")),a=n(r("ee10")),s=r("0f81"),o=n(r("42eb")),u={components:{vodItem:o.default},data:function(){return{list:[],page:1,loaded:!1,refreshTriggered:!1,loadStatus:"loadmore"}},methods:{init:function(){!1===this.loaded&&this.getData()},getData:function(){var t=this;return(0,a.default)(i.default.mark((function e(){return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if("nomore"!==t.loadStatus&&"loading"!==t.loadStatus){e.next=2;break}return e.abrupt("return");case 2:return t.loadStatus="loading",e.next=5,s.app.topic(t.page).then((function(e){var r=e.data;r.page<r.page_total?(t.loadStatus="loadmore",t.page++):t.loadStatus="nomore",t.list=t.list.concat(r.list),t.loaded=!0})).catch((function(e){t.loadStatus="loadmore"}));case 5:t.refreshTriggered=!1;case 6:case"end":return e.stop()}}),e)})))()},refresh:function(){this.refreshTriggered=!0,this.loadStatus="loadmore",this.page=1,this.list=[],this.getData()}}};e.default=u},e538:function(t,e,r){var n,i,a,s=r("3b2d");(function(o,u){"object"===s(e)?t.exports=e=u(r("707d")):(i=[r("707d")],n=u,a="function"===typeof n?n.apply(e,i):n,void 0===a||(t.exports=a))})(0,(function(t){return function(){var e=t,r=e.lib,n=r.WordArray,i=e.enc;i.Base64={stringify:function(t){var e=t.words,r=t.sigBytes,n=this._map;t.clamp();for(var i=[],a=0;a<r;a+=3)for(var s=e[a>>>2]>>>24-a%4*8&255,o=e[a+1>>>2]>>>24-(a+1)%4*8&255,u=e[a+2>>>2]>>>24-(a+2)%4*8&255,l=s<<16|o<<8|u,c=0;c<4&&a+.75*c<r;c++)i.push(n.charAt(l>>>6*(3-c)&63));var A=n.charAt(64);if(A)while(i.length%4)i.push(A);return i.join("")},parse:function(t){var e=t.length,r=this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var a=0;a<r.length;a++)i[r.charCodeAt(a)]=a}var s=r.charAt(64);if(s){var o=t.indexOf(s);-1!==o&&(e=o)}return function(t,e,r){for(var i=[],a=0,s=0;s<e;s++)if(s%4){var o=r[t.charCodeAt(s-1)]<<s%4*2,u=r[t.charCodeAt(s)]>>>6-s%4*2,l=o|u;i[a>>>2]|=l<<24-a%4*8,a++}return n.create(i,a)}(t,e,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),t.enc.Base64}))},e58f:function(t,e,r){"use strict";r.r(e);var n=r("f743"),i=r("a133");for(var a in i)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return i[t]}))}(a);var s=r("828b"),o=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);e["default"]=o.exports},e594:function(t,e,r){"use strict";r.d(e,"b",(function(){return i})),r.d(e,"c",(function(){return a})),r.d(e,"a",(function(){return n}));var n={uTabs:r("58b7").default},i=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("view",{staticClass:t._$s(0,"sc","page-container"),attrs:{_i:0}},[r("u-tabs",{attrs:{scrollable:!1,lineColor:"#FC4C5C",list:t.tabs,activeStyle:{color:"#fff"},current:t.tabIndex,_i:1},on:{click:t.tabsClick}}),r("swiper",{staticClass:t._$s(2,"sc","swiper-container"),attrs:{current:t._$s(2,"a-current",t.tabIndex),_i:2},on:{change:t.swiperChange}},[r("swiper-item",[r("notice-item",{ref:"notice0",attrs:{type:1,_i:4}})],1),r("swiper-item",[r("notice-item",{ref:"notice1",attrs:{_i:6}})],1)])],1)},a=[]},e5ca:function(t,e,r){"use strict";r.r(e);var n=r("aa80"),i=r("5f3e");for(var a in i)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return i[t]}))}(a);var s=r("828b"),o=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);e["default"]=o.exports},e5f6:function(t,e,r){var n,i,a,s=r("3b2d");(function(o,u,l){"object"===s(e)?t.exports=e=u(r("707d"),r("bbe5")):(i=[r("707d"),r("bbe5")],n=u,a="function"===typeof n?n.apply(e,i):n,void 0===a||(t.exports=a))})(0,(function(t){return t.pad.NoPadding={pad:function(){},unpad:function(){}},t.pad.NoPadding}))},e67c:function(t,e,r){"use strict";(function(t){var n=r("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(r("127e")),a=n(r("ee10")),s=r("0f81"),o=n(r("4231")),u={components:{vodImage:o.default},data:function(){return{history:[],list:[]}},created:function(){this.getHistory(),this.hotSearch()},methods:{navTo:function(t){var e=this;return(0,a.default)(i.default.mark((function r(){return i.default.wrap((function(r){while(1)switch(r.prev=r.next){case 0:e.openVideo(t);case 1:case"end":return r.stop()}}),r)})))()},hotSearch:function(){var e=this;s.app.hotSearch().then((function(r){t("log","res: ",r," at pages/search/history.vue:93"),e.list=r.data}))},getHistory:function(){var t=this;uni.getStorage({key:"search_history",success:function(e){e.data&&(t.history=JSON.parse(e.data))}})},clearHistory:function(){var e=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(r){t("log","this.history: ",this.history," at pages/search/history.vue:109");for(var n=0;n<this.history.length;n++)if(r==this.history[n]){this.history.splice(n,1),uni.setStorage({key:"search_history",data:JSON.stringify(this.history)});break}}else uni.removeStorage({key:"search_history",success:function(t){e.history=[]}})},click:function(t){this.$emit("item-click",t)}}};e.default=u}).call(this,r("f3b9")["default"])},e67cc:function(t,e,r){"use strict";r.d(e,"b",(function(){return n})),r.d(e,"c",(function(){return i})),r.d(e,"a",(function(){}));var n=function(){var t=this.$createElement,e=this._self._c||t;return e("view",{staticClass:this._$s(0,"sc","u-grid-item"),class:this._$s(0,"c",this.classes),style:this._$s(0,"s",[this.itemStyle]),attrs:{_i:0},on:{click:this.clickHandler}},[this._t("default",null,{_i:1})],2)},i=[]},e682:function(t,e){},e6b4:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={parse:{copyLink:!0,errorImg:"",lazyLoad:!1,loadingImg:"",pauseVideo:!0,previewImg:!0,setTitle:!0,showImgMenu:!0}}},e6b5:function(t,e,r){"use strict";r.r(e);var n=r("023c"),i=r("78c9");for(var a in i)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return i[t]}))}(a);var s=r("828b"),o=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);e["default"]=o.exports},e6bc:function(t,e,r){"use strict";r.d(e,"b",(function(){return n})),r.d(e,"c",(function(){return i})),r.d(e,"a",(function(){}));var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return t._$s(0,"i",t.data.length)?r("view",{staticClass:t._$s(0,"sc","container"),attrs:{_i:0},on:{touchmove:function(t){t.stopPropagation()}}},[r("view",{staticClass:t._$s(1,"sc","game-block"),attrs:{_i:1}},t._l(t._$s(2,"f",{forItems:t.data}),(function(e,n,i,a){return r("view",{key:t._$s(2,"f",{forIndex:i,key:n}),staticClass:t._$s("2-"+a,"sc","game-item"),attrs:{_i:"2-"+a},on:{click:function(r){return t.openApp(e.adv_link)}}},[r("view",{staticClass:t._$s("3-"+a,"sc","vod-image"),attrs:{_i:"3-"+a}},[r("vod-image",{attrs:{src:e.adv_image,mode:"aspectFill",_i:"4-"+a}})],1)])})),0)]):t._e()},i=[]},e6db:function(t,e,r){var n=r("3b2d")["default"];t.exports=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)},t.exports.__esModule=!0,t.exports["default"]=t.exports},e76b:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=null;var i=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null!==n&&clearTimeout(n),r){var i=!n;n=setTimeout((function(){n=null}),e),i&&"function"===typeof t&&t()}else n=setTimeout((function(){"function"===typeof t&&t()}),e)};e.default=i},e78e:function(t,e,r){"use strict";r.d(e,"b",(function(){return i})),r.d(e,"c",(function(){return a})),r.d(e,"a",(function(){return n}));var n={uniIcons:r("da03").default,uPopup:r("591c").default,uToast:r("2fe2").default},i=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("view",{staticClass:t._$s(0,"sc","page-container"),attrs:{_i:0}},[r("view",{staticClass:t._$s(1,"sc","user-info-box"),attrs:{_i:1}},[r("view",{staticClass:t._$s(2,"sc","card"),attrs:{_i:2}},[r("view",{staticClass:t._$s(3,"sc","nav-item"),attrs:{_i:3}},[r("text",{staticClass:t._$s(4,"sc","nav-title"),attrs:{_i:4}}),r("image",{attrs:{src:t._$s(5,"a-src",t.user.user_portrait||"/static/avatar/noavatar.png"),_i:5},on:{click:t.avatar}}),r("uni-icons",{attrs:{type:"forward",color:"#a2a2a2",size:"14",_i:6}})],1),r("view",{staticClass:t._$s(7,"sc","nav-item"),attrs:{_i:7},on:{click:t.nickname}},[r("text",{staticClass:t._$s(8,"sc","nav-title"),attrs:{_i:8}}),r("text",{staticClass:t._$s(9,"sc","nav-value"),attrs:{_i:9}},[t._v(t._$s(9,"t0-0",t._s(t.user.user_nick_name)))]),r("uni-icons",{attrs:{type:"forward",color:"#a2a2a2",size:"14",_i:10}})],1),r("view",{staticClass:t._$s(11,"sc","nav-item"),attrs:{_i:11}},[r("text",{staticClass:t._$s(12,"sc","nav-title"),attrs:{_i:12}}),r("view",{staticClass:t._$s(13,"sc","nav-radio"),attrs:{_i:13}},[r("text",{staticClass:t._$s(14,"sc","nav-radio-item"),class:t._$s(14,"c",1==t.user.user_sex&&"selected"),attrs:{_i:14},on:{click:function(e){return t.changeSex(1)}}}),r("text",{staticClass:t._$s(15,"sc","nav-radio-item"),class:t._$s(15,"c",2==t.user.user_sex&&"selected"),attrs:{_i:15},on:{click:function(e){return t.changeSex(2)}}})])]),t._$s(16,"i",t.user.user_phone)?r("view",{staticClass:t._$s(16,"sc","nav-item"),attrs:{_i:16}},[r("text",{staticClass:t._$s(17,"sc","nav-title"),attrs:{_i:17}}),r("text",{staticClass:t._$s(18,"sc","nav-value"),attrs:{_i:18}},[t._v(t._$s(18,"t0-0",t._s(t.user.user_phone)))])]):t._e(),t._$s(19,"i",t.user.user_email)?r("view",{staticClass:t._$s(19,"sc","nav-item"),attrs:{_i:19}},[r("text",{staticClass:t._$s(20,"sc","nav-title"),attrs:{_i:20}}),r("text",[t._v(t._$s(21,"t0-0",t._s(t.user.user_email)))])]):t._e(),r("navigator",{staticClass:t._$s(22,"sc","nav-item"),attrs:{_i:22}},[r("text",{staticClass:t._$s(23,"sc","nav-title"),attrs:{_i:23}}),r("uni-icons",{attrs:{type:"forward",color:"#a2a2a2",size:"14",_i:24}})],1)])]),r("button",{staticClass:t._$s(25,"sc","user-logout-button"),attrs:{_i:25},on:{click:function(e){t.descShow=!0}}}),r("button",{staticClass:t._$s(26,"sc","user-logout-button"),attrs:{_i:26},on:{click:t.logout}}),r("u-popup",{attrs:{show:t.descShow,mode:"center",bgColor:"transparent","custom-style":{width:"90%",maxWidth:"300px"},_i:27}},[r("view",{staticClass:t._$s(28,"sc","desc-popup"),attrs:{_i:28}},[r("view",[r("uni-icons",{attrs:{type:"closeempty",size:"20",_i:30},on:{click:function(e){t.descShow=!1}}})],1),r("scroll-view",{attrs:{_i:31}},[r("text",[r("view")])]),r("button",{staticClass:t._$s(34,"sc","user-logout-button"),attrs:{_i:34},on:{click:t.logout1}})])]),r("change-avatar",{ref:"avatar",attrs:{user:t.user,_i:35},on:{change:t.changeAvatar}}),r("change-nickname",{ref:"nickname",attrs:{value:t.user.user_nick_name,_i:36},on:{change:t.changeNickname}}),r("u-toast",{ref:"toast",attrs:{_i:37}})],1)},a=[]},e820:function(t,e,r){var n,i,a,s=r("3b2d");(function(o,u,l){"object"===s(e)?t.exports=e=u(r("707d"),r("e538"),r("91de"),r("05f0"),r("bbe5")):(i=[r("707d"),r("e538"),r("91de"),r("05f0"),r("bbe5")],n=u,a="function"===typeof n?n.apply(e,i):n,void 0===a||(t.exports=a))})(0,(function(t){return function(){var e=t,r=e.lib,n=r.StreamCipher,i=e.algo,a=[],s=[],o=[],u=i.RabbitLegacy=n.extend({_doReset:function(){var t=this._key.words,e=this.cfg.iv,r=this._X=[t[0],t[3]<<16|t[2]>>>16,t[1],t[0]<<16|t[3]>>>16,t[2],t[1]<<16|t[0]>>>16,t[3],t[2]<<16|t[1]>>>16],n=this._C=[t[2]<<16|t[2]>>>16,4294901760&t[0]|65535&t[1],t[3]<<16|t[3]>>>16,4294901760&t[1]|65535&t[2],t[0]<<16|t[0]>>>16,4294901760&t[2]|65535&t[3],t[1]<<16|t[1]>>>16,4294901760&t[3]|65535&t[0]];this._b=0;for(var i=0;i<4;i++)l.call(this);for(i=0;i<8;i++)n[i]^=r[i+4&7];if(e){var a=e.words,s=a[0],o=a[1],u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),c=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),A=u>>>16|4294901760&c,d=c<<16|65535&u;n[0]^=u,n[1]^=A,n[2]^=c,n[3]^=d,n[4]^=u,n[5]^=A,n[6]^=c,n[7]^=d;for(i=0;i<4;i++)l.call(this)}},_doProcessBlock:function(t,e){var r=this._X;l.call(this),a[0]=r[0]^r[5]>>>16^r[3]<<16,a[1]=r[2]^r[7]>>>16^r[5]<<16,a[2]=r[4]^r[1]>>>16^r[7]<<16,a[3]=r[6]^r[3]>>>16^r[1]<<16;for(var n=0;n<4;n++)a[n]=16711935&(a[n]<<8|a[n]>>>24)|4278255360&(a[n]<<24|a[n]>>>8),t[e+n]^=a[n]},blockSize:4,ivSize:2});function l(){for(var t=this._X,e=this._C,r=0;r<8;r++)s[r]=e[r];e[0]=e[0]+1295307597+this._b|0,e[1]=e[1]+3545052371+(e[0]>>>0<s[0]>>>0?1:0)|0,e[2]=e[2]+886263092+(e[1]>>>0<s[1]>>>0?1:0)|0,e[3]=e[3]+1295307597+(e[2]>>>0<s[2]>>>0?1:0)|0,e[4]=e[4]+3545052371+(e[3]>>>0<s[3]>>>0?1:0)|0,e[5]=e[5]+886263092+(e[4]>>>0<s[4]>>>0?1:0)|0,e[6]=e[6]+1295307597+(e[5]>>>0<s[5]>>>0?1:0)|0,e[7]=e[7]+3545052371+(e[6]>>>0<s[6]>>>0?1:0)|0,this._b=e[7]>>>0<s[7]>>>0?1:0;for(r=0;r<8;r++){var n=t[r]+e[r],i=65535&n,a=n>>>16,u=((i*i>>>17)+i*a>>>15)+a*a,l=((4294901760&n)*n|0)+((65535&n)*n|0);o[r]=u^l}t[0]=o[0]+(o[7]<<16|o[7]>>>16)+(o[6]<<16|o[6]>>>16)|0,t[1]=o[1]+(o[0]<<8|o[0]>>>24)+o[7]|0,t[2]=o[2]+(o[1]<<16|o[1]>>>16)+(o[0]<<16|o[0]>>>16)|0,t[3]=o[3]+(o[2]<<8|o[2]>>>24)+o[1]|0,t[4]=o[4]+(o[3]<<16|o[3]>>>16)+(o[2]<<16|o[2]>>>16)|0,t[5]=o[5]+(o[4]<<8|o[4]>>>24)+o[3]|0,t[6]=o[6]+(o[5]<<16|o[5]>>>16)+(o[4]<<16|o[4]>>>16)|0,t[7]=o[7]+(o[6]<<8|o[6]>>>24)+o[5]|0}e.RabbitLegacy=n._createHelper(u)}(),t.RabbitLegacy}))},e850:function(t,e,r){"use strict";(function(t){var n=r("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.divide=h,e.enableBoundaryChecking=g,e.minus=f,e.plus=d,e.round=p,e.times=A;var i=n(r("c70d")),a=!0;function s(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:15;return+parseFloat(Number(t).toPrecision(e))}function o(t){var e=t.toString().split(/[eE]/),r=(e[0].split(".")[1]||"").length-+(e[1]||0);return r>0?r:0}function u(t){if(-1===t.toString().indexOf("e"))return Number(t.toString().replace(".",""));var e=o(t);return e>0?s(Number(t)*Math.pow(10,e)):Number(t)}function l(e){a&&(e>Number.MAX_SAFE_INTEGER||e<Number.MIN_SAFE_INTEGER)&&t("warn","".concat(e," \u8d85\u51fa\u4e86\u7cbe\u5ea6\u9650\u5236\uff0c\u7ed3\u679c\u53ef\u80fd\u4e0d\u6b63\u786e")," at uview-ui/libs/function/digit.js:45")}function c(t,e){var r=(0,i.default)(t),n=r[0],a=r[1],s=r.slice(2),o=e(n,a);return s.forEach((function(t){o=e(o,t)})),o}function A(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];if(e.length>2)return c(e,A);var n=e[0],i=e[1],a=u(n),s=u(i),d=o(n)+o(i),f=a*s;return l(f),f/Math.pow(10,d)}function d(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];if(e.length>2)return c(e,d);var n=e[0],i=e[1],a=Math.pow(10,Math.max(o(n),o(i)));return(A(n,a)+A(i,a))/a}function f(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];if(e.length>2)return c(e,f);var n=e[0],i=e[1],a=Math.pow(10,Math.max(o(n),o(i)));return(A(n,a)-A(i,a))/a}function h(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];if(e.length>2)return c(e,h);var n=e[0],i=e[1],a=u(n),d=u(i);return l(a),l(d),A(a/d,s(Math.pow(10,o(i)-o(n))))}function p(t,e){var r=Math.pow(10,e),n=h(Math.round(Math.abs(A(t,r))),r);return t<0&&0!==n&&(n=A(n,-1)),n}function g(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];a=t}var v={times:A,plus:d,minus:f,divide:h,round:p,enableBoundaryChecking:g};e.default=v}).call(this,r("f3b9")["default"])},e85e:function(t,e,r){"use strict";var n=r("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(r("db03"));e.default=function(t){return(0,i.default)(t)}},e8b3:function(t,e,r){"use strict";var n=r("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(r("0d2b")),a=i.default.color,s={icon:{name:"",color:a["u-content-color"],size:"16px",bold:!1,index:"",hoverClass:"",customPrefix:"uicon",label:"",labelPos:"right",labelSize:"15px",labelColor:a["u-content-color"],space:"3px",imgMode:"",width:"",height:"",top:0,stop:!1}};e.default=s},e92e:function(t,e,r){"use strict";r.d(e,"b",(function(){return n})),r.d(e,"c",(function(){return i})),r.d(e,"a",(function(){}));var n=function(){var t=this.$createElement,e=this._self._c||t;return e("view",{staticClass:this._$s(0,"sc","u-status-bar"),style:this._$s(0,"s",[this.style]),attrs:{_i:0}},[this._t("default",null,{_i:1})],2)},i=[]},e9d6:function(t,e,r){"use strict";r.d(e,"b",(function(){return i})),r.d(e,"c",(function(){return a})),r.d(e,"a",(function(){return n}));var n={uniIcons:r("da03").default},i=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("view",{staticClass:t._$s(0,"sc","page-container"),attrs:{_i:0}},[r("view",{staticClass:t._$s(1,"sc","status-bar"),attrs:{_i:1}}),r("view",{staticClass:t._$s(2,"sc","page-head"),attrs:{_i:2}},[r("view",{staticClass:t._$s(3,"sc","page-head-btn"),attrs:{_i:3},on:{click:t.back}},[r("uni-icons",{attrs:{type:"back",color:"#fff",size:"26",_i:4}})],1),r("view",{staticClass:t._$s(5,"sc","page-head-title"),attrs:{_i:5}})]),r("view",{staticClass:t._$s(6,"sc","coin-wallet justify-between align-center"),attrs:{_i:6}},[r("view",[r("view",{staticClass:t._$s(8,"sc","title2"),attrs:{_i:8}}),r("view",{staticClass:t._$s(9,"sc"," "),attrs:{_i:9}},[r("view",{staticClass:t._$s(10,"sc","money"),attrs:{_i:10}},[r("text"),t._v(t._$s(10,"t1-0",t._s(t.data.user_money||"0.00")))])])]),r("view",{staticClass:t._$s(12,"sc","coin-num "),attrs:{_i:12}},[r("view"),r("image",{attrs:{_i:14}}),r("text",[t._v(t._$s(15,"t0-0",t._s(t.data.user_coin||0)))])])]),t._$s(16,"i",t.data.cash_ratio)?r("view",{staticClass:t._$s(16,"sc","coin-remarks"),attrs:{_i:16}},[t._v(t._$s(16,"t0-0",t._s(t.data.cash_ratio))+t._$s(16,"t0-1",t._s(t.data.cash_ratio))+t._$s(16,"t0-2",t._s(10*t.data.cash_ratio))+t._$s(16,"t0-3",t._s(t.data.cash_ratio)))]):t._e(),r("view",{staticClass:t._$s(17,"sc","coin-nav justify-between"),attrs:{_i:17}},[r("view",{staticClass:t._$s(18,"sc","nav-item"),attrs:{_i:18}},[r("navigator",{staticClass:t._$s(19,"sc","flex-col"),attrs:{_i:19}},[r("image",{attrs:{_i:20}}),r("text",{staticClass:t._$s(21,"sc","name"),attrs:{_i:21}})])]),r("view",{staticClass:t._$s(22,"sc","nav-item"),attrs:{_i:22}},[r("navigator",{staticClass:t._$s(23,"sc","flex-col"),attrs:{_i:23}},[r("image",{attrs:{_i:24}}),r("text",{staticClass:t._$s(25,"sc","name"),attrs:{_i:25}})])]),r("view",{staticClass:t._$s(26,"sc","nav-item"),attrs:{_i:26}},[r("navigator",{staticClass:t._$s(27,"sc","flex-col"),attrs:{_i:27}},[r("image",{attrs:{_i:28}}),r("text",{staticClass:t._$s(29,"sc","name"),attrs:{_i:29}})])]),r("view",{staticClass:t._$s(30,"sc","nav-item"),attrs:{_i:30}},[r("navigator",{staticClass:t._$s(31,"sc","flex-col"),attrs:{_i:31}},[r("image",{attrs:{_i:32}}),r("text",{staticClass:t._$s(33,"sc","name"),attrs:{_i:33}})])])]),r("view",{staticClass:t._$s(34,"sc","justify-between align-center"),attrs:{_i:34}},[r("navigator",{staticClass:t._$s(35,"sc","share-button"),attrs:{_i:35}}),r("navigator",{staticClass:t._$s(36,"sc","share-button"),attrs:{_i:36}})])])},a=[]},ea0b:function(t,e,r){"use strict";r.r(e);var n=r("dde9"),i=r.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return n[t]}))}(a);e["default"]=i.a},ea61:function(t,e,r){(function(t){var n,i=r("3b2d");(function(a){"use strict";for(var s=[null,0,{}],o=function(t,e){this.codepoint=t,this.feature=e},u={},l=[],c=0;c<=255;++c)l[c]=0;var A=[function(t,e,r){return e<60||13311<e&&e<42607?new o(e,s):t(e,r)},function(t,e,r){var n=u[e];return n||(n=t(e,r),n.feature&&++l[e>>8&255]>10&&(u[e]=n)),n},function(t,e,r){return r?t(e,r):new o(e,null)},function(t,e,r){var n;if(e<4352||4371<=e&&e<44032||55204<e)return t(e,r);if(4352<=e&&e<4371){var i={},a=21*(e-4352);for(n=0;n<21;++n)i[4449+n]=44032+28*(n+a);return new o(e,[,,i])}var s=e-44032,u=s%28,l=[];if(0!==u)l[0]=[44032+s-u,4519+u];else for(l[0]=[4352+Math.floor(s/588),4449+Math.floor(s%588/28)],l[2]={},n=1;n<28;++n)l[2][4519+n]=e+n;return new o(e,l)},function(t,e,r){var n=65280&e,i=o.udata[n]||{},a=i[e];return new o(e,a||s)}];o.fromCharCode=A.reduceRight((function(t,e){return function(r,n){return e(t,r,n)}}),null),o.isHighSurrogate=function(t){return t>=55296&&t<=56319},o.isLowSurrogate=function(t){return t>=56320&&t<=57343},o.prototype.prepFeature=function(){this.feature||(this.feature=o.fromCharCode(this.codepoint,!0).feature)},o.prototype.toString=function(){if(this.codepoint<65536)return String.fromCharCode(this.codepoint);var t=this.codepoint-65536;return String.fromCharCode(Math.floor(t/1024)+55296,t%1024+56320)},o.prototype.getDecomp=function(){return this.prepFeature(),this.feature[0]||null},o.prototype.isCompatibility=function(){return this.prepFeature(),!!this.feature[1]&&256&this.feature[1]},o.prototype.isExclude=function(){return this.prepFeature(),!!this.feature[1]&&512&this.feature[1]},o.prototype.getCanonicalClass=function(){return this.prepFeature(),this.feature[1]?255&this.feature[1]:0},o.prototype.getComposite=function(t){if(this.prepFeature(),!this.feature[2])return null;var e=this.feature[2][t.codepoint];return e?o.fromCharCode(e):null};var d=function(t){this.str=t,this.cursor=0};d.prototype.next=function(){if(this.str&&this.cursor<this.str.length){var t,e=this.str.charCodeAt(this.cursor++);return o.isHighSurrogate(e)&&this.cursor<this.str.length&&o.isLowSurrogate(t=this.str.charCodeAt(this.cursor))&&(e=1024*(e-55296)+(t-56320)+65536,++this.cursor),o.fromCharCode(e)}return this.str=null,null};var f=function(t,e){this.it=t,this.canonical=e,this.resBuf=[]};f.prototype.next=function(){if(0===this.resBuf.length){var t=this.it.next();if(!t)return null;this.resBuf=function t(e,r){var n=r.getDecomp();if(!n||e&&r.isCompatibility())return[r];for(var i=[],a=0;a<n.length;++a){var s=t(e,o.fromCharCode(n[a]));i=i.concat(s)}return i}(this.canonical,t)}return this.resBuf.shift()};var h=function(t){this.it=t,this.resBuf=[]};h.prototype.next=function(){var t;if(0===this.resBuf.length)do{var e=this.it.next();if(!e)break;t=e.getCanonicalClass();var r=this.resBuf.length;if(0!==t)for(;r>0;--r){var n=this.resBuf[r-1],i=n.getCanonicalClass();if(i<=t)break}this.resBuf.splice(r,0,e)}while(0!==t);return this.resBuf.shift()};var p=function(t){this.it=t,this.procBuf=[],this.resBuf=[],this.lastClass=null};p.prototype.next=function(){while(0===this.resBuf.length){var t=this.it.next();if(!t){this.resBuf=this.procBuf,this.procBuf=[];break}if(0===this.procBuf.length)this.lastClass=t.getCanonicalClass(),this.procBuf.push(t);else{var e=this.procBuf[0],r=e.getComposite(t),n=t.getCanonicalClass();r&&(this.lastClass<n||0===this.lastClass)?this.procBuf[0]=r:(0===n&&(this.resBuf=this.procBuf,this.procBuf=[]),this.lastClass=n,this.procBuf.push(t))}}return this.resBuf.shift()};var g=function(t,e){var r,n=function(t,e){switch(t){case"NFD":return new h(new f(new d(e),!0));case"NFKD":return new h(new f(new d(e),!1));case"NFC":return new p(new h(new f(new d(e),!0)));case"NFKC":return new p(new h(new f(new d(e),!1)))}throw t+" is invalid"}(t,e),i="";while(r=n.next())i+=r.toString();return i};o.udata={0:{60:[,,{824:8814}],61:[,,{824:8800}],62:[,,{824:8815}],65:[,,{768:192,769:193,770:194,771:195,772:256,774:258,775:550,776:196,777:7842,778:197,780:461,783:512,785:514,803:7840,805:7680,808:260}],66:[,,{775:7682,803:7684,817:7686}],67:[,,{769:262,770:264,775:266,780:268,807:199}],68:[,,{775:7690,780:270,803:7692,807:7696,813:7698,817:7694}],69:[,,{768:200,769:201,770:202,771:7868,772:274,774:276,775:278,776:203,777:7866,780:282,783:516,785:518,803:7864,807:552,808:280,813:7704,816:7706}],70:[,,{775:7710}],71:[,,{769:500,770:284,772:7712,774:286,775:288,780:486,807:290}],72:[,,{770:292,775:7714,776:7718,780:542,803:7716,807:7720,814:7722}],73:[,,{768:204,769:205,770:206,771:296,772:298,774:300,775:304,776:207,777:7880,780:463,783:520,785:522,803:7882,808:302,816:7724}],74:[,,{770:308}],75:[,,{769:7728,780:488,803:7730,807:310,817:7732}],76:[,,{769:313,780:317,803:7734,807:315,813:7740,817:7738}],77:[,,{769:7742,775:7744,803:7746}],78:[,,{768:504,769:323,771:209,775:7748,780:327,803:7750,807:325,813:7754,817:7752}],79:[,,{768:210,769:211,770:212,771:213,772:332,774:334,775:558,776:214,777:7886,779:336,780:465,783:524,785:526,795:416,803:7884,808:490}],80:[,,{769:7764,775:7766}],82:[,,{769:340,775:7768,780:344,783:528,785:530,803:7770,807:342,817:7774}],83:[,,{769:346,770:348,775:7776,780:352,803:7778,806:536,807:350}],84:[,,{775:7786,780:356,803:7788,806:538,807:354,813:7792,817:7790}],85:[,,{768:217,769:218,770:219,771:360,772:362,774:364,776:220,777:7910,778:366,779:368,780:467,783:532,785:534,795:431,803:7908,804:7794,808:370,813:7798,816:7796}],86:[,,{771:7804,803:7806}],87:[,,{768:7808,769:7810,770:372,775:7814,776:7812,803:7816}],88:[,,{775:7818,776:7820}],89:[,,{768:7922,769:221,770:374,771:7928,772:562,775:7822,776:376,777:7926,803:7924}],90:[,,{769:377,770:7824,775:379,780:381,803:7826,817:7828}],97:[,,{768:224,769:225,770:226,771:227,772:257,774:259,775:551,776:228,777:7843,778:229,780:462,783:513,785:515,803:7841,805:7681,808:261}],98:[,,{775:7683,803:7685,817:7687}],99:[,,{769:263,770:265,775:267,780:269,807:231}],100:[,,{775:7691,780:271,803:7693,807:7697,813:7699,817:7695}],101:[,,{768:232,769:233,770:234,771:7869,772:275,774:277,775:279,776:235,777:7867,780:283,783:517,785:519,803:7865,807:553,808:281,813:7705,816:7707}],102:[,,{775:7711}],103:[,,{769:501,770:285,772:7713,774:287,775:289,780:487,807:291}],104:[,,{770:293,775:7715,776:7719,780:543,803:7717,807:7721,814:7723,817:7830}],105:[,,{768:236,769:237,770:238,771:297,772:299,774:301,776:239,777:7881,780:464,783:521,785:523,803:7883,808:303,816:7725}],106:[,,{770:309,780:496}],107:[,,{769:7729,780:489,803:7731,807:311,817:7733}],108:[,,{769:314,780:318,803:7735,807:316,813:7741,817:7739}],109:[,,{769:7743,775:7745,803:7747}],110:[,,{768:505,769:324,771:241,775:7749,780:328,803:7751,807:326,813:7755,817:7753}],111:[,,{768:242,769:243,770:244,771:245,772:333,774:335,775:559,776:246,777:7887,779:337,780:466,783:525,785:527,795:417,803:7885,808:491}],112:[,,{769:7765,775:7767}],114:[,,{769:341,775:7769,780:345,783:529,785:531,803:7771,807:343,817:7775}],115:[,,{769:347,770:349,775:7777,780:353,803:7779,806:537,807:351}],116:[,,{775:7787,776:7831,780:357,803:7789,806:539,807:355,813:7793,817:7791}],117:[,,{768:249,769:250,770:251,771:361,772:363,774:365,776:252,777:7911,778:367,779:369,780:468,783:533,785:535,795:432,803:7909,804:7795,808:371,813:7799,816:7797}],118:[,,{771:7805,803:7807}],119:[,,{768:7809,769:7811,770:373,775:7815,776:7813,778:7832,803:7817}],120:[,,{775:7819,776:7821}],121:[,,{768:7923,769:253,770:375,771:7929,772:563,775:7823,776:255,777:7927,778:7833,803:7925}],122:[,,{769:378,770:7825,775:380,780:382,803:7827,817:7829}],160:[[32],256],168:[[32,776],256,{768:8173,769:901,834:8129}],170:[[97],256],175:[[32,772],256],178:[[50],256],179:[[51],256],180:[[32,769],256],181:[[956],256],184:[[32,807],256],185:[[49],256],186:[[111],256],188:[[49,8260,52],256],189:[[49,8260,50],256],190:[[51,8260,52],256],192:[[65,768]],193:[[65,769]],194:[[65,770],,{768:7846,769:7844,771:7850,777:7848}],195:[[65,771]],196:[[65,776],,{772:478}],197:[[65,778],,{769:506}],198:[,,{769:508,772:482}],199:[[67,807],,{769:7688}],200:[[69,768]],201:[[69,769]],202:[[69,770],,{768:7872,769:7870,771:7876,777:7874}],203:[[69,776]],204:[[73,768]],205:[[73,769]],206:[[73,770]],207:[[73,776],,{769:7726}],209:[[78,771]],210:[[79,768]],211:[[79,769]],212:[[79,770],,{768:7890,769:7888,771:7894,777:7892}],213:[[79,771],,{769:7756,772:556,776:7758}],214:[[79,776],,{772:554}],216:[,,{769:510}],217:[[85,768]],218:[[85,769]],219:[[85,770]],220:[[85,776],,{768:475,769:471,772:469,780:473}],221:[[89,769]],224:[[97,768]],225:[[97,769]],226:[[97,770],,{768:7847,769:7845,771:7851,777:7849}],227:[[97,771]],228:[[97,776],,{772:479}],229:[[97,778],,{769:507}],230:[,,{769:509,772:483}],231:[[99,807],,{769:7689}],232:[[101,768]],233:[[101,769]],234:[[101,770],,{768:7873,769:7871,771:7877,777:7875}],235:[[101,776]],236:[[105,768]],237:[[105,769]],238:[[105,770]],239:[[105,776],,{769:7727}],241:[[110,771]],242:[[111,768]],243:[[111,769]],244:[[111,770],,{768:7891,769:7889,771:7895,777:7893}],245:[[111,771],,{769:7757,772:557,776:7759}],246:[[111,776],,{772:555}],248:[,,{769:511}],249:[[117,768]],250:[[117,769]],251:[[117,770]],252:[[117,776],,{768:476,769:472,772:470,780:474}],253:[[121,769]],255:[[121,776]]},256:{256:[[65,772]],257:[[97,772]],258:[[65,774],,{768:7856,769:7854,771:7860,777:7858}],259:[[97,774],,{768:7857,769:7855,771:7861,777:7859}],260:[[65,808]],261:[[97,808]],262:[[67,769]],263:[[99,769]],264:[[67,770]],265:[[99,770]],266:[[67,775]],267:[[99,775]],268:[[67,780]],269:[[99,780]],270:[[68,780]],271:[[100,780]],274:[[69,772],,{768:7700,769:7702}],275:[[101,772],,{768:7701,769:7703}],276:[[69,774]],277:[[101,774]],278:[[69,775]],279:[[101,775]],280:[[69,808]],281:[[101,808]],282:[[69,780]],283:[[101,780]],284:[[71,770]],285:[[103,770]],286:[[71,774]],287:[[103,774]],288:[[71,775]],289:[[103,775]],290:[[71,807]],291:[[103,807]],292:[[72,770]],293:[[104,770]],296:[[73,771]],297:[[105,771]],298:[[73,772]],299:[[105,772]],300:[[73,774]],301:[[105,774]],302:[[73,808]],303:[[105,808]],304:[[73,775]],306:[[73,74],256],307:[[105,106],256],308:[[74,770]],309:[[106,770]],310:[[75,807]],311:[[107,807]],313:[[76,769]],314:[[108,769]],315:[[76,807]],316:[[108,807]],317:[[76,780]],318:[[108,780]],319:[[76,183],256],320:[[108,183],256],323:[[78,769]],324:[[110,769]],325:[[78,807]],326:[[110,807]],327:[[78,780]],328:[[110,780]],329:[[700,110],256],332:[[79,772],,{768:7760,769:7762}],333:[[111,772],,{768:7761,769:7763}],334:[[79,774]],335:[[111,774]],336:[[79,779]],337:[[111,779]],340:[[82,769]],341:[[114,769]],342:[[82,807]],343:[[114,807]],344:[[82,780]],345:[[114,780]],346:[[83,769],,{775:7780}],347:[[115,769],,{775:7781}],348:[[83,770]],349:[[115,770]],350:[[83,807]],351:[[115,807]],352:[[83,780],,{775:7782}],353:[[115,780],,{775:7783}],354:[[84,807]],355:[[116,807]],356:[[84,780]],357:[[116,780]],360:[[85,771],,{769:7800}],361:[[117,771],,{769:7801}],362:[[85,772],,{776:7802}],363:[[117,772],,{776:7803}],364:[[85,774]],365:[[117,774]],366:[[85,778]],367:[[117,778]],368:[[85,779]],369:[[117,779]],370:[[85,808]],371:[[117,808]],372:[[87,770]],373:[[119,770]],374:[[89,770]],375:[[121,770]],376:[[89,776]],377:[[90,769]],378:[[122,769]],379:[[90,775]],380:[[122,775]],381:[[90,780]],382:[[122,780]],383:[[115],256,{775:7835}],416:[[79,795],,{768:7900,769:7898,771:7904,777:7902,803:7906}],417:[[111,795],,{768:7901,769:7899,771:7905,777:7903,803:7907}],431:[[85,795],,{768:7914,769:7912,771:7918,777:7916,803:7920}],432:[[117,795],,{768:7915,769:7913,771:7919,777:7917,803:7921}],439:[,,{780:494}],452:[[68,381],256],453:[[68,382],256],454:[[100,382],256],455:[[76,74],256],456:[[76,106],256],457:[[108,106],256],458:[[78,74],256],459:[[78,106],256],460:[[110,106],256],461:[[65,780]],462:[[97,780]],463:[[73,780]],464:[[105,780]],465:[[79,780]],466:[[111,780]],467:[[85,780]],468:[[117,780]],469:[[220,772]],470:[[252,772]],471:[[220,769]],472:[[252,769]],473:[[220,780]],474:[[252,780]],475:[[220,768]],476:[[252,768]],478:[[196,772]],479:[[228,772]],480:[[550,772]],481:[[551,772]],482:[[198,772]],483:[[230,772]],486:[[71,780]],487:[[103,780]],488:[[75,780]],489:[[107,780]],490:[[79,808],,{772:492}],491:[[111,808],,{772:493}],492:[[490,772]],493:[[491,772]],494:[[439,780]],495:[[658,780]],496:[[106,780]],497:[[68,90],256],498:[[68,122],256],499:[[100,122],256],500:[[71,769]],501:[[103,769]],504:[[78,768]],505:[[110,768]],506:[[197,769]],507:[[229,769]],508:[[198,769]],509:[[230,769]],510:[[216,769]],511:[[248,769]],66045:[,220]},512:{512:[[65,783]],513:[[97,783]],514:[[65,785]],515:[[97,785]],516:[[69,783]],517:[[101,783]],518:[[69,785]],519:[[101,785]],520:[[73,783]],521:[[105,783]],522:[[73,785]],523:[[105,785]],524:[[79,783]],525:[[111,783]],526:[[79,785]],527:[[111,785]],528:[[82,783]],529:[[114,783]],530:[[82,785]],531:[[114,785]],532:[[85,783]],533:[[117,783]],534:[[85,785]],535:[[117,785]],536:[[83,806]],537:[[115,806]],538:[[84,806]],539:[[116,806]],542:[[72,780]],543:[[104,780]],550:[[65,775],,{772:480}],551:[[97,775],,{772:481}],552:[[69,807],,{774:7708}],553:[[101,807],,{774:7709}],554:[[214,772]],555:[[246,772]],556:[[213,772]],557:[[245,772]],558:[[79,775],,{772:560}],559:[[111,775],,{772:561}],560:[[558,772]],561:[[559,772]],562:[[89,772]],563:[[121,772]],658:[,,{780:495}],688:[[104],256],689:[[614],256],690:[[106],256],691:[[114],256],692:[[633],256],693:[[635],256],694:[[641],256],695:[[119],256],696:[[121],256],728:[[32,774],256],729:[[32,775],256],730:[[32,778],256],731:[[32,808],256],732:[[32,771],256],733:[[32,779],256],736:[[611],256],737:[[108],256],738:[[115],256],739:[[120],256],740:[[661],256],66272:[,220]},768:{768:[,230],769:[,230],770:[,230],771:[,230],772:[,230],773:[,230],774:[,230],775:[,230],776:[,230,{769:836}],777:[,230],778:[,230],779:[,230],780:[,230],781:[,230],782:[,230],783:[,230],784:[,230],785:[,230],786:[,230],787:[,230],788:[,230],789:[,232],790:[,220],791:[,220],792:[,220],793:[,220],794:[,232],795:[,216],796:[,220],797:[,220],798:[,220],799:[,220],800:[,220],801:[,202],802:[,202],803:[,220],804:[,220],805:[,220],806:[,220],807:[,202],808:[,202],809:[,220],810:[,220],811:[,220],812:[,220],813:[,220],814:[,220],815:[,220],816:[,220],817:[,220],818:[,220],819:[,220],820:[,1],821:[,1],822:[,1],823:[,1],824:[,1],825:[,220],826:[,220],827:[,220],828:[,220],829:[,230],830:[,230],831:[,230],832:[[768],230],833:[[769],230],834:[,230],835:[[787],230],836:[[776,769],230],837:[,240],838:[,230],839:[,220],840:[,220],841:[,220],842:[,230],843:[,230],844:[,230],845:[,220],846:[,220],848:[,230],849:[,230],850:[,230],851:[,220],852:[,220],853:[,220],854:[,220],855:[,230],856:[,232],857:[,220],858:[,220],859:[,230],860:[,233],861:[,234],862:[,234],863:[,233],864:[,234],865:[,234],866:[,233],867:[,230],868:[,230],869:[,230],870:[,230],871:[,230],872:[,230],873:[,230],874:[,230],875:[,230],876:[,230],877:[,230],878:[,230],879:[,230],884:[[697]],890:[[32,837],256],894:[[59]],900:[[32,769],256],901:[[168,769]],902:[[913,769]],903:[[183]],904:[[917,769]],905:[[919,769]],906:[[921,769]],908:[[927,769]],910:[[933,769]],911:[[937,769]],912:[[970,769]],913:[,,{768:8122,769:902,772:8121,774:8120,787:7944,788:7945,837:8124}],917:[,,{768:8136,769:904,787:7960,788:7961}],919:[,,{768:8138,769:905,787:7976,788:7977,837:8140}],921:[,,{768:8154,769:906,772:8153,774:8152,776:938,787:7992,788:7993}],927:[,,{768:8184,769:908,787:8008,788:8009}],929:[,,{788:8172}],933:[,,{768:8170,769:910,772:8169,774:8168,776:939,788:8025}],937:[,,{768:8186,769:911,787:8040,788:8041,837:8188}],938:[[921,776]],939:[[933,776]],940:[[945,769],,{837:8116}],941:[[949,769]],942:[[951,769],,{837:8132}],943:[[953,769]],944:[[971,769]],945:[,,{768:8048,769:940,772:8113,774:8112,787:7936,788:7937,834:8118,837:8115}],949:[,,{768:8050,769:941,787:7952,788:7953}],951:[,,{768:8052,769:942,787:7968,788:7969,834:8134,837:8131}],953:[,,{768:8054,769:943,772:8145,774:8144,776:970,787:7984,788:7985,834:8150}],959:[,,{768:8056,769:972,787:8e3,788:8001}],961:[,,{787:8164,788:8165}],965:[,,{768:8058,769:973,772:8161,774:8160,776:971,787:8016,788:8017,834:8166}],969:[,,{768:8060,769:974,787:8032,788:8033,834:8182,837:8179}],970:[[953,776],,{768:8146,769:912,834:8151}],971:[[965,776],,{768:8162,769:944,834:8167}],972:[[959,769]],973:[[965,769]],974:[[969,769],,{837:8180}],976:[[946],256],977:[[952],256],978:[[933],256,{769:979,776:980}],979:[[978,769]],980:[[978,776]],981:[[966],256],982:[[960],256],1008:[[954],256],1009:[[961],256],1010:[[962],256],1012:[[920],256],1013:[[949],256],1017:[[931],256],66422:[,230],66423:[,230],66424:[,230],66425:[,230],66426:[,230]},1024:{1024:[[1045,768]],1025:[[1045,776]],1027:[[1043,769]],1030:[,,{776:1031}],1031:[[1030,776]],1036:[[1050,769]],1037:[[1048,768]],1038:[[1059,774]],1040:[,,{774:1232,776:1234}],1043:[,,{769:1027}],1045:[,,{768:1024,774:1238,776:1025}],1046:[,,{774:1217,776:1244}],1047:[,,{776:1246}],1048:[,,{768:1037,772:1250,774:1049,776:1252}],1049:[[1048,774]],1050:[,,{769:1036}],1054:[,,{776:1254}],1059:[,,{772:1262,774:1038,776:1264,779:1266}],1063:[,,{776:1268}],1067:[,,{776:1272}],1069:[,,{776:1260}],1072:[,,{774:1233,776:1235}],1075:[,,{769:1107}],1077:[,,{768:1104,774:1239,776:1105}],1078:[,,{774:1218,776:1245}],1079:[,,{776:1247}],1080:[,,{768:1117,772:1251,774:1081,776:1253}],1081:[[1080,774]],1082:[,,{769:1116}],1086:[,,{776:1255}],1091:[,,{772:1263,774:1118,776:1265,779:1267}],1095:[,,{776:1269}],1099:[,,{776:1273}],1101:[,,{776:1261}],1104:[[1077,768]],1105:[[1077,776]],1107:[[1075,769]],1110:[,,{776:1111}],1111:[[1110,776]],1116:[[1082,769]],1117:[[1080,768]],1118:[[1091,774]],1140:[,,{783:1142}],1141:[,,{783:1143}],1142:[[1140,783]],1143:[[1141,783]],1155:[,230],1156:[,230],1157:[,230],1158:[,230],1159:[,230],1217:[[1046,774]],1218:[[1078,774]],1232:[[1040,774]],1233:[[1072,774]],1234:[[1040,776]],1235:[[1072,776]],1238:[[1045,774]],1239:[[1077,774]],1240:[,,{776:1242}],1241:[,,{776:1243}],1242:[[1240,776]],1243:[[1241,776]],1244:[[1046,776]],1245:[[1078,776]],1246:[[1047,776]],1247:[[1079,776]],1250:[[1048,772]],1251:[[1080,772]],1252:[[1048,776]],1253:[[1080,776]],1254:[[1054,776]],1255:[[1086,776]],1256:[,,{776:1258}],1257:[,,{776:1259}],1258:[[1256,776]],1259:[[1257,776]],1260:[[1069,776]],1261:[[1101,776]],1262:[[1059,772]],1263:[[1091,772]],1264:[[1059,776]],1265:[[1091,776]],1266:[[1059,779]],1267:[[1091,779]],1268:[[1063,776]],1269:[[1095,776]],1272:[[1067,776]],1273:[[1099,776]]},1280:{1415:[[1381,1410],256],1425:[,220],1426:[,230],1427:[,230],1428:[,230],1429:[,230],1430:[,220],1431:[,230],1432:[,230],1433:[,230],1434:[,222],1435:[,220],1436:[,230],1437:[,230],1438:[,230],1439:[,230],1440:[,230],1441:[,230],1442:[,220],1443:[,220],1444:[,220],1445:[,220],1446:[,220],1447:[,220],1448:[,230],1449:[,230],1450:[,220],1451:[,230],1452:[,230],1453:[,222],1454:[,228],1455:[,230],1456:[,10],1457:[,11],1458:[,12],1459:[,13],1460:[,14],1461:[,15],1462:[,16],1463:[,17],1464:[,18],1465:[,19],1466:[,19],1467:[,20],1468:[,21],1469:[,22],1471:[,23],1473:[,24],1474:[,25],1476:[,230],1477:[,220],1479:[,18]},1536:{1552:[,230],1553:[,230],1554:[,230],1555:[,230],1556:[,230],1557:[,230],1558:[,230],1559:[,230],1560:[,30],1561:[,31],1562:[,32],1570:[[1575,1619]],1571:[[1575,1620]],1572:[[1608,1620]],1573:[[1575,1621]],1574:[[1610,1620]],1575:[,,{1619:1570,1620:1571,1621:1573}],1608:[,,{1620:1572}],1610:[,,{1620:1574}],1611:[,27],1612:[,28],1613:[,29],1614:[,30],1615:[,31],1616:[,32],1617:[,33],1618:[,34],1619:[,230],1620:[,230],1621:[,220],1622:[,220],1623:[,230],1624:[,230],1625:[,230],1626:[,230],1627:[,230],1628:[,220],1629:[,230],1630:[,230],1631:[,220],1648:[,35],1653:[[1575,1652],256],1654:[[1608,1652],256],1655:[[1735,1652],256],1656:[[1610,1652],256],1728:[[1749,1620]],1729:[,,{1620:1730}],1730:[[1729,1620]],1746:[,,{1620:1747}],1747:[[1746,1620]],1749:[,,{1620:1728}],1750:[,230],1751:[,230],1752:[,230],1753:[,230],1754:[,230],1755:[,230],1756:[,230],1759:[,230],1760:[,230],1761:[,230],1762:[,230],1763:[,220],1764:[,230],1767:[,230],1768:[,230],1770:[,220],1771:[,230],1772:[,230],1773:[,220]},1792:{1809:[,36],1840:[,230],1841:[,220],1842:[,230],1843:[,230],1844:[,220],1845:[,230],1846:[,230],1847:[,220],1848:[,220],1849:[,220],1850:[,230],1851:[,220],1852:[,220],1853:[,230],1854:[,220],1855:[,230],1856:[,230],1857:[,230],1858:[,220],1859:[,230],1860:[,220],1861:[,230],1862:[,220],1863:[,230],1864:[,220],1865:[,230],1866:[,230],2027:[,230],2028:[,230],2029:[,230],2030:[,230],2031:[,230],2032:[,230],2033:[,230],2034:[,220],2035:[,230]},2048:{2070:[,230],2071:[,230],2072:[,230],2073:[,230],2075:[,230],2076:[,230],2077:[,230],2078:[,230],2079:[,230],2080:[,230],2081:[,230],2082:[,230],2083:[,230],2085:[,230],2086:[,230],2087:[,230],2089:[,230],2090:[,230],2091:[,230],2092:[,230],2093:[,230],2137:[,220],2138:[,220],2139:[,220],2276:[,230],2277:[,230],2278:[,220],2279:[,230],2280:[,230],2281:[,220],2282:[,230],2283:[,230],2284:[,230],2285:[,220],2286:[,220],2287:[,220],2288:[,27],2289:[,28],2290:[,29],2291:[,230],2292:[,230],2293:[,230],2294:[,220],2295:[,230],2296:[,230],2297:[,220],2298:[,220],2299:[,230],2300:[,230],2301:[,230],2302:[,230],2303:[,230]},2304:{2344:[,,{2364:2345}],2345:[[2344,2364]],2352:[,,{2364:2353}],2353:[[2352,2364]],2355:[,,{2364:2356}],2356:[[2355,2364]],2364:[,7],2381:[,9],2385:[,230],2386:[,220],2387:[,230],2388:[,230],2392:[[2325,2364],512],2393:[[2326,2364],512],2394:[[2327,2364],512],2395:[[2332,2364],512],2396:[[2337,2364],512],2397:[[2338,2364],512],2398:[[2347,2364],512],2399:[[2351,2364],512],2492:[,7],2503:[,,{2494:2507,2519:2508}],2507:[[2503,2494]],2508:[[2503,2519]],2509:[,9],2524:[[2465,2492],512],2525:[[2466,2492],512],2527:[[2479,2492],512]},2560:{2611:[[2610,2620],512],2614:[[2616,2620],512],2620:[,7],2637:[,9],2649:[[2582,2620],512],2650:[[2583,2620],512],2651:[[2588,2620],512],2654:[[2603,2620],512],2748:[,7],2765:[,9],68109:[,220],68111:[,230],68152:[,230],68153:[,1],68154:[,220],68159:[,9],68325:[,230],68326:[,220]},2816:{2876:[,7],2887:[,,{2878:2891,2902:2888,2903:2892}],2888:[[2887,2902]],2891:[[2887,2878]],2892:[[2887,2903]],2893:[,9],2908:[[2849,2876],512],2909:[[2850,2876],512],2962:[,,{3031:2964}],2964:[[2962,3031]],3014:[,,{3006:3018,3031:3020}],3015:[,,{3006:3019}],3018:[[3014,3006]],3019:[[3015,3006]],3020:[[3014,3031]],3021:[,9]},3072:{3142:[,,{3158:3144}],3144:[[3142,3158]],3149:[,9],3157:[,84],3158:[,91],3260:[,7],3263:[,,{3285:3264}],3264:[[3263,3285]],3270:[,,{3266:3274,3285:3271,3286:3272}],3271:[[3270,3285]],3272:[[3270,3286]],3274:[[3270,3266],,{3285:3275}],3275:[[3274,3285]],3277:[,9]},3328:{3398:[,,{3390:3402,3415:3404}],3399:[,,{3390:3403}],3402:[[3398,3390]],3403:[[3399,3390]],3404:[[3398,3415]],3405:[,9],3530:[,9],3545:[,,{3530:3546,3535:3548,3551:3550}],3546:[[3545,3530]],3548:[[3545,3535],,{3530:3549}],3549:[[3548,3530]],3550:[[3545,3551]]},3584:{3635:[[3661,3634],256],3640:[,103],3641:[,103],3642:[,9],3656:[,107],3657:[,107],3658:[,107],3659:[,107],3763:[[3789,3762],256],3768:[,118],3769:[,118],3784:[,122],3785:[,122],3786:[,122],3787:[,122],3804:[[3755,3737],256],3805:[[3755,3745],256]},3840:{3852:[[3851],256],3864:[,220],3865:[,220],3893:[,220],3895:[,220],3897:[,216],3907:[[3906,4023],512],3917:[[3916,4023],512],3922:[[3921,4023],512],3927:[[3926,4023],512],3932:[[3931,4023],512],3945:[[3904,4021],512],3953:[,129],3954:[,130],3955:[[3953,3954],512],3956:[,132],3957:[[3953,3956],512],3958:[[4018,3968],512],3959:[[4018,3969],256],3960:[[4019,3968],512],3961:[[4019,3969],256],3962:[,130],3963:[,130],3964:[,130],3965:[,130],3968:[,130],3969:[[3953,3968],512],3970:[,230],3971:[,230],3972:[,9],3974:[,230],3975:[,230],3987:[[3986,4023],512],3997:[[3996,4023],512],4002:[[4001,4023],512],4007:[[4006,4023],512],4012:[[4011,4023],512],4025:[[3984,4021],512],4038:[,220]},4096:{4133:[,,{4142:4134}],4134:[[4133,4142]],4151:[,7],4153:[,9],4154:[,9],4237:[,220],4348:[[4316],256],69702:[,9],69759:[,9],69785:[,,{69818:69786}],69786:[[69785,69818]],69787:[,,{69818:69788}],69788:[[69787,69818]],69797:[,,{69818:69803}],69803:[[69797,69818]],69817:[,9],69818:[,7]},4352:{69888:[,230],69889:[,230],69890:[,230],69934:[[69937,69927]],69935:[[69938,69927]],69937:[,,{69927:69934}],69938:[,,{69927:69935}],69939:[,9],69940:[,9],70003:[,7],70080:[,9]},4608:{70197:[,9],70198:[,7],70377:[,7],70378:[,9]},4864:{4957:[,230],4958:[,230],4959:[,230],70460:[,7],70471:[,,{70462:70475,70487:70476}],70475:[[70471,70462]],70476:[[70471,70487]],70477:[,9],70502:[,230],70503:[,230],70504:[,230],70505:[,230],70506:[,230],70507:[,230],70508:[,230],70512:[,230],70513:[,230],70514:[,230],70515:[,230],70516:[,230]},5120:{70841:[,,{70832:70844,70842:70843,70845:70846}],70843:[[70841,70842]],70844:[[70841,70832]],70846:[[70841,70845]],70850:[,9],70851:[,7]},5376:{71096:[,,{71087:71098}],71097:[,,{71087:71099}],71098:[[71096,71087]],71099:[[71097,71087]],71103:[,9],71104:[,7]},5632:{71231:[,9],71350:[,9],71351:[,7]},5888:{5908:[,9],5940:[,9],6098:[,9],6109:[,230]},6144:{6313:[,228]},6400:{6457:[,222],6458:[,230],6459:[,220]},6656:{6679:[,230],6680:[,220],6752:[,9],6773:[,230],6774:[,230],6775:[,230],6776:[,230],6777:[,230],6778:[,230],6779:[,230],6780:[,230],6783:[,220],6832:[,230],6833:[,230],6834:[,230],6835:[,230],6836:[,230],6837:[,220],6838:[,220],6839:[,220],6840:[,220],6841:[,220],6842:[,220],6843:[,230],6844:[,230],6845:[,220]},6912:{6917:[,,{6965:6918}],6918:[[6917,6965]],6919:[,,{6965:6920}],6920:[[6919,6965]],6921:[,,{6965:6922}],6922:[[6921,6965]],6923:[,,{6965:6924}],6924:[[6923,6965]],6925:[,,{6965:6926}],6926:[[6925,6965]],6929:[,,{6965:6930}],6930:[[6929,6965]],6964:[,7],6970:[,,{6965:6971}],6971:[[6970,6965]],6972:[,,{6965:6973}],6973:[[6972,6965]],6974:[,,{6965:6976}],6975:[,,{6965:6977}],6976:[[6974,6965]],6977:[[6975,6965]],6978:[,,{6965:6979}],6979:[[6978,6965]],6980:[,9],7019:[,230],7020:[,220],7021:[,230],7022:[,230],7023:[,230],7024:[,230],7025:[,230],7026:[,230],7027:[,230],7082:[,9],7083:[,9],7142:[,7],7154:[,9],7155:[,9]},7168:{7223:[,7],7376:[,230],7377:[,230],7378:[,230],7380:[,1],7381:[,220],7382:[,220],7383:[,220],7384:[,220],7385:[,220],7386:[,230],7387:[,230],7388:[,220],7389:[,220],7390:[,220],7391:[,220],7392:[,230],7394:[,1],7395:[,1],7396:[,1],7397:[,1],7398:[,1],7399:[,1],7400:[,1],7405:[,220],7412:[,230],7416:[,230],7417:[,230]},7424:{7468:[[65],256],7469:[[198],256],7470:[[66],256],7472:[[68],256],7473:[[69],256],7474:[[398],256],7475:[[71],256],7476:[[72],256],7477:[[73],256],7478:[[74],256],7479:[[75],256],7480:[[76],256],7481:[[77],256],7482:[[78],256],7484:[[79],256],7485:[[546],256],7486:[[80],256],7487:[[82],256],7488:[[84],256],7489:[[85],256],7490:[[87],256],7491:[[97],256],7492:[[592],256],7493:[[593],256],7494:[[7426],256],7495:[[98],256],7496:[[100],256],7497:[[101],256],7498:[[601],256],7499:[[603],256],7500:[[604],256],7501:[[103],256],7503:[[107],256],7504:[[109],256],7505:[[331],256],7506:[[111],256],7507:[[596],256],7508:[[7446],256],7509:[[7447],256],7510:[[112],256],7511:[[116],256],7512:[[117],256],7513:[[7453],256],7514:[[623],256],7515:[[118],256],7516:[[7461],256],7517:[[946],256],7518:[[947],256],7519:[[948],256],7520:[[966],256],7521:[[967],256],7522:[[105],256],7523:[[114],256],7524:[[117],256],7525:[[118],256],7526:[[946],256],7527:[[947],256],7528:[[961],256],7529:[[966],256],7530:[[967],256],7544:[[1085],256],7579:[[594],256],7580:[[99],256],7581:[[597],256],7582:[[240],256],7583:[[604],256],7584:[[102],256],7585:[[607],256],7586:[[609],256],7587:[[613],256],7588:[[616],256],7589:[[617],256],7590:[[618],256],7591:[[7547],256],7592:[[669],256],7593:[[621],256],7594:[[7557],256],7595:[[671],256],7596:[[625],256],7597:[[624],256],7598:[[626],256],7599:[[627],256],7600:[[628],256],7601:[[629],256],7602:[[632],256],7603:[[642],256],7604:[[643],256],7605:[[427],256],7606:[[649],256],7607:[[650],256],7608:[[7452],256],7609:[[651],256],7610:[[652],256],7611:[[122],256],7612:[[656],256],7613:[[657],256],7614:[[658],256],7615:[[952],256],7616:[,230],7617:[,230],7618:[,220],7619:[,230],7620:[,230],7621:[,230],7622:[,230],7623:[,230],7624:[,230],7625:[,230],7626:[,220],7627:[,230],7628:[,230],7629:[,234],7630:[,214],7631:[,220],7632:[,202],7633:[,230],7634:[,230],7635:[,230],7636:[,230],7637:[,230],7638:[,230],7639:[,230],7640:[,230],7641:[,230],7642:[,230],7643:[,230],7644:[,230],7645:[,230],7646:[,230],7647:[,230],7648:[,230],7649:[,230],7650:[,230],7651:[,230],7652:[,230],7653:[,230],7654:[,230],7655:[,230],7656:[,230],7657:[,230],7658:[,230],7659:[,230],7660:[,230],7661:[,230],7662:[,230],7663:[,230],7664:[,230],7665:[,230],7666:[,230],7667:[,230],7668:[,230],7669:[,230],7676:[,233],7677:[,220],7678:[,230],7679:[,220]},7680:{7680:[[65,805]],7681:[[97,805]],7682:[[66,775]],7683:[[98,775]],7684:[[66,803]],7685:[[98,803]],7686:[[66,817]],7687:[[98,817]],7688:[[199,769]],7689:[[231,769]],7690:[[68,775]],7691:[[100,775]],7692:[[68,803]],7693:[[100,803]],7694:[[68,817]],7695:[[100,817]],7696:[[68,807]],7697:[[100,807]],7698:[[68,813]],7699:[[100,813]],7700:[[274,768]],7701:[[275,768]],7702:[[274,769]],7703:[[275,769]],7704:[[69,813]],7705:[[101,813]],7706:[[69,816]],7707:[[101,816]],7708:[[552,774]],7709:[[553,774]],7710:[[70,775]],7711:[[102,775]],7712:[[71,772]],7713:[[103,772]],7714:[[72,775]],7715:[[104,775]],7716:[[72,803]],7717:[[104,803]],7718:[[72,776]],7719:[[104,776]],7720:[[72,807]],7721:[[104,807]],7722:[[72,814]],7723:[[104,814]],7724:[[73,816]],7725:[[105,816]],7726:[[207,769]],7727:[[239,769]],7728:[[75,769]],7729:[[107,769]],7730:[[75,803]],7731:[[107,803]],7732:[[75,817]],7733:[[107,817]],7734:[[76,803],,{772:7736}],7735:[[108,803],,{772:7737}],7736:[[7734,772]],7737:[[7735,772]],7738:[[76,817]],7739:[[108,817]],7740:[[76,813]],7741:[[108,813]],7742:[[77,769]],7743:[[109,769]],7744:[[77,775]],7745:[[109,775]],7746:[[77,803]],7747:[[109,803]],7748:[[78,775]],7749:[[110,775]],7750:[[78,803]],7751:[[110,803]],7752:[[78,817]],7753:[[110,817]],7754:[[78,813]],7755:[[110,813]],7756:[[213,769]],7757:[[245,769]],7758:[[213,776]],7759:[[245,776]],7760:[[332,768]],7761:[[333,768]],7762:[[332,769]],7763:[[333,769]],7764:[[80,769]],7765:[[112,769]],7766:[[80,775]],7767:[[112,775]],7768:[[82,775]],7769:[[114,775]],7770:[[82,803],,{772:7772}],7771:[[114,803],,{772:7773}],7772:[[7770,772]],7773:[[7771,772]],7774:[[82,817]],7775:[[114,817]],7776:[[83,775]],7777:[[115,775]],7778:[[83,803],,{775:7784}],7779:[[115,803],,{775:7785}],7780:[[346,775]],7781:[[347,775]],7782:[[352,775]],7783:[[353,775]],7784:[[7778,775]],7785:[[7779,775]],7786:[[84,775]],7787:[[116,775]],7788:[[84,803]],7789:[[116,803]],7790:[[84,817]],7791:[[116,817]],7792:[[84,813]],7793:[[116,813]],7794:[[85,804]],7795:[[117,804]],7796:[[85,816]],7797:[[117,816]],7798:[[85,813]],7799:[[117,813]],7800:[[360,769]],7801:[[361,769]],7802:[[362,776]],7803:[[363,776]],7804:[[86,771]],7805:[[118,771]],7806:[[86,803]],7807:[[118,803]],7808:[[87,768]],7809:[[119,768]],7810:[[87,769]],7811:[[119,769]],7812:[[87,776]],7813:[[119,776]],7814:[[87,775]],7815:[[119,775]],7816:[[87,803]],7817:[[119,803]],7818:[[88,775]],7819:[[120,775]],7820:[[88,776]],7821:[[120,776]],7822:[[89,775]],7823:[[121,775]],7824:[[90,770]],7825:[[122,770]],7826:[[90,803]],7827:[[122,803]],7828:[[90,817]],7829:[[122,817]],7830:[[104,817]],7831:[[116,776]],7832:[[119,778]],7833:[[121,778]],7834:[[97,702],256],7835:[[383,775]],7840:[[65,803],,{770:7852,774:7862}],7841:[[97,803],,{770:7853,774:7863}],7842:[[65,777]],7843:[[97,777]],7844:[[194,769]],7845:[[226,769]],7846:[[194,768]],7847:[[226,768]],7848:[[194,777]],7849:[[226,777]],7850:[[194,771]],7851:[[226,771]],7852:[[7840,770]],7853:[[7841,770]],7854:[[258,769]],7855:[[259,769]],7856:[[258,768]],7857:[[259,768]],7858:[[258,777]],7859:[[259,777]],7860:[[258,771]],7861:[[259,771]],7862:[[7840,774]],7863:[[7841,774]],7864:[[69,803],,{770:7878}],7865:[[101,803],,{770:7879}],7866:[[69,777]],7867:[[101,777]],7868:[[69,771]],7869:[[101,771]],7870:[[202,769]],7871:[[234,769]],7872:[[202,768]],7873:[[234,768]],7874:[[202,777]],7875:[[234,777]],7876:[[202,771]],7877:[[234,771]],7878:[[7864,770]],7879:[[7865,770]],7880:[[73,777]],7881:[[105,777]],7882:[[73,803]],7883:[[105,803]],7884:[[79,803],,{770:7896}],7885:[[111,803],,{770:7897}],7886:[[79,777]],7887:[[111,777]],7888:[[212,769]],7889:[[244,769]],7890:[[212,768]],7891:[[244,768]],7892:[[212,777]],7893:[[244,777]],7894:[[212,771]],7895:[[244,771]],7896:[[7884,770]],7897:[[7885,770]],7898:[[416,769]],7899:[[417,769]],7900:[[416,768]],7901:[[417,768]],7902:[[416,777]],7903:[[417,777]],7904:[[416,771]],7905:[[417,771]],7906:[[416,803]],7907:[[417,803]],7908:[[85,803]],7909:[[117,803]],7910:[[85,777]],7911:[[117,777]],7912:[[431,769]],7913:[[432,769]],7914:[[431,768]],7915:[[432,768]],7916:[[431,777]],7917:[[432,777]],7918:[[431,771]],7919:[[432,771]],7920:[[431,803]],7921:[[432,803]],7922:[[89,768]],7923:[[121,768]],7924:[[89,803]],7925:[[121,803]],7926:[[89,777]],7927:[[121,777]],7928:[[89,771]],7929:[[121,771]]},7936:{7936:[[945,787],,{768:7938,769:7940,834:7942,837:8064}],7937:[[945,788],,{768:7939,769:7941,834:7943,837:8065}],7938:[[7936,768],,{837:8066}],7939:[[7937,768],,{837:8067}],7940:[[7936,769],,{837:8068}],7941:[[7937,769],,{837:8069}],7942:[[7936,834],,{837:8070}],7943:[[7937,834],,{837:8071}],7944:[[913,787],,{768:7946,769:7948,834:7950,837:8072}],7945:[[913,788],,{768:7947,769:7949,834:7951,837:8073}],7946:[[7944,768],,{837:8074}],7947:[[7945,768],,{837:8075}],7948:[[7944,769],,{837:8076}],7949:[[7945,769],,{837:8077}],7950:[[7944,834],,{837:8078}],7951:[[7945,834],,{837:8079}],7952:[[949,787],,{768:7954,769:7956}],7953:[[949,788],,{768:7955,769:7957}],7954:[[7952,768]],7955:[[7953,768]],7956:[[7952,769]],7957:[[7953,769]],7960:[[917,787],,{768:7962,769:7964}],7961:[[917,788],,{768:7963,769:7965}],7962:[[7960,768]],7963:[[7961,768]],7964:[[7960,769]],7965:[[7961,769]],7968:[[951,787],,{768:7970,769:7972,834:7974,837:8080}],7969:[[951,788],,{768:7971,769:7973,834:7975,837:8081}],7970:[[7968,768],,{837:8082}],7971:[[7969,768],,{837:8083}],7972:[[7968,769],,{837:8084}],7973:[[7969,769],,{837:8085}],7974:[[7968,834],,{837:8086}],7975:[[7969,834],,{837:8087}],7976:[[919,787],,{768:7978,769:7980,834:7982,837:8088}],7977:[[919,788],,{768:7979,769:7981,834:7983,837:8089}],7978:[[7976,768],,{837:8090}],7979:[[7977,768],,{837:8091}],7980:[[7976,769],,{837:8092}],7981:[[7977,769],,{837:8093}],7982:[[7976,834],,{837:8094}],7983:[[7977,834],,{837:8095}],7984:[[953,787],,{768:7986,769:7988,834:7990}],7985:[[953,788],,{768:7987,769:7989,834:7991}],7986:[[7984,768]],7987:[[7985,768]],7988:[[7984,769]],7989:[[7985,769]],7990:[[7984,834]],7991:[[7985,834]],7992:[[921,787],,{768:7994,769:7996,834:7998}],7993:[[921,788],,{768:7995,769:7997,834:7999}],7994:[[7992,768]],7995:[[7993,768]],7996:[[7992,769]],7997:[[7993,769]],7998:[[7992,834]],7999:[[7993,834]],8e3:[[959,787],,{768:8002,769:8004}],8001:[[959,788],,{768:8003,769:8005}],8002:[[8e3,768]],8003:[[8001,768]],8004:[[8e3,769]],8005:[[8001,769]],8008:[[927,787],,{768:8010,769:8012}],8009:[[927,788],,{768:8011,769:8013}],8010:[[8008,768]],8011:[[8009,768]],8012:[[8008,769]],8013:[[8009,769]],8016:[[965,787],,{768:8018,769:8020,834:8022}],8017:[[965,788],,{768:8019,769:8021,834:8023}],8018:[[8016,768]],8019:[[8017,768]],8020:[[8016,769]],8021:[[8017,769]],8022:[[8016,834]],8023:[[8017,834]],8025:[[933,788],,{768:8027,769:8029,834:8031}],8027:[[8025,768]],8029:[[8025,769]],8031:[[8025,834]],8032:[[969,787],,{768:8034,769:8036,834:8038,837:8096}],8033:[[969,788],,{768:8035,769:8037,834:8039,837:8097}],8034:[[8032,768],,{837:8098}],8035:[[8033,768],,{837:8099}],8036:[[8032,769],,{837:8100}],8037:[[8033,769],,{837:8101}],8038:[[8032,834],,{837:8102}],8039:[[8033,834],,{837:8103}],8040:[[937,787],,{768:8042,769:8044,834:8046,837:8104}],8041:[[937,788],,{768:8043,769:8045,834:8047,837:8105}],8042:[[8040,768],,{837:8106}],8043:[[8041,768],,{837:8107}],8044:[[8040,769],,{837:8108}],8045:[[8041,769],,{837:8109}],8046:[[8040,834],,{837:8110}],8047:[[8041,834],,{837:8111}],8048:[[945,768],,{837:8114}],8049:[[940]],8050:[[949,768]],8051:[[941]],8052:[[951,768],,{837:8130}],8053:[[942]],8054:[[953,768]],8055:[[943]],8056:[[959,768]],8057:[[972]],8058:[[965,768]],8059:[[973]],8060:[[969,768],,{837:8178}],8061:[[974]],8064:[[7936,837]],8065:[[7937,837]],8066:[[7938,837]],8067:[[7939,837]],8068:[[7940,837]],8069:[[7941,837]],8070:[[7942,837]],8071:[[7943,837]],8072:[[7944,837]],8073:[[7945,837]],8074:[[7946,837]],8075:[[7947,837]],8076:[[7948,837]],8077:[[7949,837]],8078:[[7950,837]],8079:[[7951,837]],8080:[[7968,837]],8081:[[7969,837]],8082:[[7970,837]],8083:[[7971,837]],8084:[[7972,837]],8085:[[7973,837]],8086:[[7974,837]],8087:[[7975,837]],8088:[[7976,837]],8089:[[7977,837]],8090:[[7978,837]],8091:[[7979,837]],8092:[[7980,837]],8093:[[7981,837]],8094:[[7982,837]],8095:[[7983,837]],8096:[[8032,837]],8097:[[8033,837]],8098:[[8034,837]],8099:[[8035,837]],8100:[[8036,837]],8101:[[8037,837]],8102:[[8038,837]],8103:[[8039,837]],8104:[[8040,837]],8105:[[8041,837]],8106:[[8042,837]],8107:[[8043,837]],8108:[[8044,837]],8109:[[8045,837]],8110:[[8046,837]],8111:[[8047,837]],8112:[[945,774]],8113:[[945,772]],8114:[[8048,837]],8115:[[945,837]],8116:[[940,837]],8118:[[945,834],,{837:8119}],8119:[[8118,837]],8120:[[913,774]],8121:[[913,772]],8122:[[913,768]],8123:[[902]],8124:[[913,837]],8125:[[32,787],256],8126:[[953]],8127:[[32,787],256,{768:8141,769:8142,834:8143}],8128:[[32,834],256],8129:[[168,834]],8130:[[8052,837]],8131:[[951,837]],8132:[[942,837]],8134:[[951,834],,{837:8135}],8135:[[8134,837]],8136:[[917,768]],8137:[[904]],8138:[[919,768]],8139:[[905]],8140:[[919,837]],8141:[[8127,768]],8142:[[8127,769]],8143:[[8127,834]],8144:[[953,774]],8145:[[953,772]],8146:[[970,768]],8147:[[912]],8150:[[953,834]],8151:[[970,834]],8152:[[921,774]],8153:[[921,772]],8154:[[921,768]],8155:[[906]],8157:[[8190,768]],8158:[[8190,769]],8159:[[8190,834]],8160:[[965,774]],8161:[[965,772]],8162:[[971,768]],8163:[[944]],8164:[[961,787]],8165:[[961,788]],8166:[[965,834]],8167:[[971,834]],8168:[[933,774]],8169:[[933,772]],8170:[[933,768]],8171:[[910]],8172:[[929,788]],8173:[[168,768]],8174:[[901]],8175:[[96]],8178:[[8060,837]],8179:[[969,837]],8180:[[974,837]],8182:[[969,834],,{837:8183}],8183:[[8182,837]],8184:[[927,768]],8185:[[908]],8186:[[937,768]],8187:[[911]],8188:[[937,837]],8189:[[180]],8190:[[32,788],256,{768:8157,769:8158,834:8159}]},8192:{8192:[[8194]],8193:[[8195]],8194:[[32],256],8195:[[32],256],8196:[[32],256],8197:[[32],256],8198:[[32],256],8199:[[32],256],8200:[[32],256],8201:[[32],256],8202:[[32],256],8209:[[8208],256],8215:[[32,819],256],8228:[[46],256],8229:[[46,46],256],8230:[[46,46,46],256],8239:[[32],256],8243:[[8242,8242],256],8244:[[8242,8242,8242],256],8246:[[8245,8245],256],8247:[[8245,8245,8245],256],8252:[[33,33],256],8254:[[32,773],256],8263:[[63,63],256],8264:[[63,33],256],8265:[[33,63],256],8279:[[8242,8242,8242,8242],256],8287:[[32],256],8304:[[48],256],8305:[[105],256],8308:[[52],256],8309:[[53],256],8310:[[54],256],8311:[[55],256],8312:[[56],256],8313:[[57],256],8314:[[43],256],8315:[[8722],256],8316:[[61],256],8317:[[40],256],8318:[[41],256],8319:[[110],256],8320:[[48],256],8321:[[49],256],8322:[[50],256],8323:[[51],256],8324:[[52],256],8325:[[53],256],8326:[[54],256],8327:[[55],256],8328:[[56],256],8329:[[57],256],8330:[[43],256],8331:[[8722],256],8332:[[61],256],8333:[[40],256],8334:[[41],256],8336:[[97],256],8337:[[101],256],8338:[[111],256],8339:[[120],256],8340:[[601],256],8341:[[104],256],8342:[[107],256],8343:[[108],256],8344:[[109],256],8345:[[110],256],8346:[[112],256],8347:[[115],256],8348:[[116],256],8360:[[82,115],256],8400:[,230],8401:[,230],8402:[,1],8403:[,1],8404:[,230],8405:[,230],8406:[,230],8407:[,230],8408:[,1],8409:[,1],8410:[,1],8411:[,230],8412:[,230],8417:[,230],8421:[,1],8422:[,1],8423:[,230],8424:[,220],8425:[,230],8426:[,1],8427:[,1],8428:[,220],8429:[,220],8430:[,220],8431:[,220],8432:[,230]},8448:{8448:[[97,47,99],256],8449:[[97,47,115],256],8450:[[67],256],8451:[[176,67],256],8453:[[99,47,111],256],8454:[[99,47,117],256],8455:[[400],256],8457:[[176,70],256],8458:[[103],256],8459:[[72],256],8460:[[72],256],8461:[[72],256],8462:[[104],256],8463:[[295],256],8464:[[73],256],8465:[[73],256],8466:[[76],256],8467:[[108],256],8469:[[78],256],8470:[[78,111],256],8473:[[80],256],8474:[[81],256],8475:[[82],256],8476:[[82],256],8477:[[82],256],8480:[[83,77],256],8481:[[84,69,76],256],8482:[[84,77],256],8484:[[90],256],8486:[[937]],8488:[[90],256],8490:[[75]],8491:[[197]],8492:[[66],256],8493:[[67],256],8495:[[101],256],8496:[[69],256],8497:[[70],256],8499:[[77],256],8500:[[111],256],8501:[[1488],256],8502:[[1489],256],8503:[[1490],256],8504:[[1491],256],8505:[[105],256],8507:[[70,65,88],256],8508:[[960],256],8509:[[947],256],8510:[[915],256],8511:[[928],256],8512:[[8721],256],8517:[[68],256],8518:[[100],256],8519:[[101],256],8520:[[105],256],8521:[[106],256],8528:[[49,8260,55],256],8529:[[49,8260,57],256],8530:[[49,8260,49,48],256],8531:[[49,8260,51],256],8532:[[50,8260,51],256],8533:[[49,8260,53],256],8534:[[50,8260,53],256],8535:[[51,8260,53],256],8536:[[52,8260,53],256],8537:[[49,8260,54],256],8538:[[53,8260,54],256],8539:[[49,8260,56],256],8540:[[51,8260,56],256],8541:[[53,8260,56],256],8542:[[55,8260,56],256],8543:[[49,8260],256],8544:[[73],256],8545:[[73,73],256],8546:[[73,73,73],256],8547:[[73,86],256],8548:[[86],256],8549:[[86,73],256],8550:[[86,73,73],256],8551:[[86,73,73,73],256],8552:[[73,88],256],8553:[[88],256],8554:[[88,73],256],8555:[[88,73,73],256],8556:[[76],256],8557:[[67],256],8558:[[68],256],8559:[[77],256],8560:[[105],256],8561:[[105,105],256],8562:[[105,105,105],256],8563:[[105,118],256],8564:[[118],256],8565:[[118,105],256],8566:[[118,105,105],256],8567:[[118,105,105,105],256],8568:[[105,120],256],8569:[[120],256],8570:[[120,105],256],8571:[[120,105,105],256],8572:[[108],256],8573:[[99],256],8574:[[100],256],8575:[[109],256],8585:[[48,8260,51],256],8592:[,,{824:8602}],8594:[,,{824:8603}],8596:[,,{824:8622}],8602:[[8592,824]],8603:[[8594,824]],8622:[[8596,824]],8653:[[8656,824]],8654:[[8660,824]],8655:[[8658,824]],8656:[,,{824:8653}],8658:[,,{824:8655}],8660:[,,{824:8654}]},8704:{8707:[,,{824:8708}],8708:[[8707,824]],8712:[,,{824:8713}],8713:[[8712,824]],8715:[,,{824:8716}],8716:[[8715,824]],8739:[,,{824:8740}],8740:[[8739,824]],8741:[,,{824:8742}],8742:[[8741,824]],8748:[[8747,8747],256],8749:[[8747,8747,8747],256],8751:[[8750,8750],256],8752:[[8750,8750,8750],256],8764:[,,{824:8769}],8769:[[8764,824]],8771:[,,{824:8772}],8772:[[8771,824]],8773:[,,{824:8775}],8775:[[8773,824]],8776:[,,{824:8777}],8777:[[8776,824]],8781:[,,{824:8813}],8800:[[61,824]],8801:[,,{824:8802}],8802:[[8801,824]],8804:[,,{824:8816}],8805:[,,{824:8817}],8813:[[8781,824]],8814:[[60,824]],8815:[[62,824]],8816:[[8804,824]],8817:[[8805,824]],8818:[,,{824:8820}],8819:[,,{824:8821}],8820:[[8818,824]],8821:[[8819,824]],8822:[,,{824:8824}],8823:[,,{824:8825}],8824:[[8822,824]],8825:[[8823,824]],8826:[,,{824:8832}],8827:[,,{824:8833}],8828:[,,{824:8928}],8829:[,,{824:8929}],8832:[[8826,824]],8833:[[8827,824]],8834:[,,{824:8836}],8835:[,,{824:8837}],8836:[[8834,824]],8837:[[8835,824]],8838:[,,{824:8840}],8839:[,,{824:8841}],8840:[[8838,824]],8841:[[8839,824]],8849:[,,{824:8930}],8850:[,,{824:8931}],8866:[,,{824:8876}],8872:[,,{824:8877}],8873:[,,{824:8878}],8875:[,,{824:8879}],8876:[[8866,824]],8877:[[8872,824]],8878:[[8873,824]],8879:[[8875,824]],8882:[,,{824:8938}],8883:[,,{824:8939}],8884:[,,{824:8940}],8885:[,,{824:8941}],8928:[[8828,824]],8929:[[8829,824]],8930:[[8849,824]],8931:[[8850,824]],8938:[[8882,824]],8939:[[8883,824]],8940:[[8884,824]],8941:[[8885,824]]},8960:{9001:[[12296]],9002:[[12297]]},9216:{9312:[[49],256],9313:[[50],256],9314:[[51],256],9315:[[52],256],9316:[[53],256],9317:[[54],256],9318:[[55],256],9319:[[56],256],9320:[[57],256],9321:[[49,48],256],9322:[[49,49],256],9323:[[49,50],256],9324:[[49,51],256],9325:[[49,52],256],9326:[[49,53],256],9327:[[49,54],256],9328:[[49,55],256],9329:[[49,56],256],9330:[[49,57],256],9331:[[50,48],256],9332:[[40,49,41],256],9333:[[40,50,41],256],9334:[[40,51,41],256],9335:[[40,52,41],256],9336:[[40,53,41],256],9337:[[40,54,41],256],9338:[[40,55,41],256],9339:[[40,56,41],256],9340:[[40,57,41],256],9341:[[40,49,48,41],256],9342:[[40,49,49,41],256],9343:[[40,49,50,41],256],9344:[[40,49,51,41],256],9345:[[40,49,52,41],256],9346:[[40,49,53,41],256],9347:[[40,49,54,41],256],9348:[[40,49,55,41],256],9349:[[40,49,56,41],256],9350:[[40,49,57,41],256],9351:[[40,50,48,41],256],9352:[[49,46],256],9353:[[50,46],256],9354:[[51,46],256],9355:[[52,46],256],9356:[[53,46],256],9357:[[54,46],256],9358:[[55,46],256],9359:[[56,46],256],9360:[[57,46],256],9361:[[49,48,46],256],9362:[[49,49,46],256],9363:[[49,50,46],256],9364:[[49,51,46],256],9365:[[49,52,46],256],9366:[[49,53,46],256],9367:[[49,54,46],256],9368:[[49,55,46],256],9369:[[49,56,46],256],9370:[[49,57,46],256],9371:[[50,48,46],256],9372:[[40,97,41],256],9373:[[40,98,41],256],9374:[[40,99,41],256],9375:[[40,100,41],256],9376:[[40,101,41],256],9377:[[40,102,41],256],9378:[[40,103,41],256],9379:[[40,104,41],256],9380:[[40,105,41],256],9381:[[40,106,41],256],9382:[[40,107,41],256],9383:[[40,108,41],256],9384:[[40,109,41],256],9385:[[40,110,41],256],9386:[[40,111,41],256],9387:[[40,112,41],256],9388:[[40,113,41],256],9389:[[40,114,41],256],9390:[[40,115,41],256],9391:[[40,116,41],256],9392:[[40,117,41],256],9393:[[40,118,41],256],9394:[[40,119,41],256],9395:[[40,120,41],256],9396:[[40,121,41],256],9397:[[40,122,41],256],9398:[[65],256],9399:[[66],256],9400:[[67],256],9401:[[68],256],9402:[[69],256],9403:[[70],256],9404:[[71],256],9405:[[72],256],9406:[[73],256],9407:[[74],256],9408:[[75],256],9409:[[76],256],9410:[[77],256],9411:[[78],256],9412:[[79],256],9413:[[80],256],9414:[[81],256],9415:[[82],256],9416:[[83],256],9417:[[84],256],9418:[[85],256],9419:[[86],256],9420:[[87],256],9421:[[88],256],9422:[[89],256],9423:[[90],256],9424:[[97],256],9425:[[98],256],9426:[[99],256],9427:[[100],256],9428:[[101],256],9429:[[102],256],9430:[[103],256],9431:[[104],256],9432:[[105],256],9433:[[106],256],9434:[[107],256],9435:[[108],256],9436:[[109],256],9437:[[110],256],9438:[[111],256],9439:[[112],256],9440:[[113],256],9441:[[114],256],9442:[[115],256],9443:[[116],256],9444:[[117],256],9445:[[118],256],9446:[[119],256],9447:[[120],256],9448:[[121],256],9449:[[122],256],9450:[[48],256]},10752:{10764:[[8747,8747,8747,8747],256],10868:[[58,58,61],256],10869:[[61,61],256],10870:[[61,61,61],256],10972:[[10973,824],512]},11264:{11388:[[106],256],11389:[[86],256],11503:[,230],11504:[,230],11505:[,230]},11520:{11631:[[11617],256],11647:[,9],11744:[,230],11745:[,230],11746:[,230],11747:[,230],11748:[,230],11749:[,230],11750:[,230],11751:[,230],11752:[,230],11753:[,230],11754:[,230],11755:[,230],11756:[,230],11757:[,230],11758:[,230],11759:[,230],11760:[,230],11761:[,230],11762:[,230],11763:[,230],11764:[,230],11765:[,230],11766:[,230],11767:[,230],11768:[,230],11769:[,230],11770:[,230],11771:[,230],11772:[,230],11773:[,230],11774:[,230],11775:[,230]},11776:{11935:[[27597],256],12019:[[40863],256]},12032:{12032:[[19968],256],12033:[[20008],256],12034:[[20022],256],12035:[[20031],256],12036:[[20057],256],12037:[[20101],256],12038:[[20108],256],12039:[[20128],256],12040:[[20154],256],12041:[[20799],256],12042:[[20837],256],12043:[[20843],256],12044:[[20866],256],12045:[[20886],256],12046:[[20907],256],12047:[[20960],256],12048:[[20981],256],12049:[[20992],256],12050:[[21147],256],12051:[[21241],256],12052:[[21269],256],12053:[[21274],256],12054:[[21304],256],12055:[[21313],256],12056:[[21340],256],12057:[[21353],256],12058:[[21378],256],12059:[[21430],256],12060:[[21448],256],12061:[[21475],256],12062:[[22231],256],12063:[[22303],256],12064:[[22763],256],12065:[[22786],256],12066:[[22794],256],12067:[[22805],256],12068:[[22823],256],12069:[[22899],256],12070:[[23376],256],12071:[[23424],256],12072:[[23544],256],12073:[[23567],256],12074:[[23586],256],12075:[[23608],256],12076:[[23662],256],12077:[[23665],256],12078:[[24027],256],12079:[[24037],256],12080:[[24049],256],12081:[[24062],256],12082:[[24178],256],12083:[[24186],256],12084:[[24191],256],12085:[[24308],256],12086:[[24318],256],12087:[[24331],256],12088:[[24339],256],12089:[[24400],256],12090:[[24417],256],12091:[[24435],256],12092:[[24515],256],12093:[[25096],256],12094:[[25142],256],12095:[[25163],256],12096:[[25903],256],12097:[[25908],256],12098:[[25991],256],12099:[[26007],256],12100:[[26020],256],12101:[[26041],256],12102:[[26080],256],12103:[[26085],256],12104:[[26352],256],12105:[[26376],256],12106:[[26408],256],12107:[[27424],256],12108:[[27490],256],12109:[[27513],256],12110:[[27571],256],12111:[[27595],256],12112:[[27604],256],12113:[[27611],256],12114:[[27663],256],12115:[[27668],256],12116:[[27700],256],12117:[[28779],256],12118:[[29226],256],12119:[[29238],256],12120:[[29243],256],12121:[[29247],256],12122:[[29255],256],12123:[[29273],256],12124:[[29275],256],12125:[[29356],256],12126:[[29572],256],12127:[[29577],256],12128:[[29916],256],12129:[[29926],256],12130:[[29976],256],12131:[[29983],256],12132:[[29992],256],12133:[[3e4],256],12134:[[30091],256],12135:[[30098],256],12136:[[30326],256],12137:[[30333],256],12138:[[30382],256],12139:[[30399],256],12140:[[30446],256],12141:[[30683],256],12142:[[30690],256],12143:[[30707],256],12144:[[31034],256],12145:[[31160],256],12146:[[31166],256],12147:[[31348],256],12148:[[31435],256],12149:[[31481],256],12150:[[31859],256],12151:[[31992],256],12152:[[32566],256],12153:[[32593],256],12154:[[32650],256],12155:[[32701],256],12156:[[32769],256],12157:[[32780],256],12158:[[32786],256],12159:[[32819],256],12160:[[32895],256],12161:[[32905],256],12162:[[33251],256],12163:[[33258],256],12164:[[33267],256],12165:[[33276],256],12166:[[33292],256],12167:[[33307],256],12168:[[33311],256],12169:[[33390],256],12170:[[33394],256],12171:[[33400],256],12172:[[34381],256],12173:[[34411],256],12174:[[34880],256],12175:[[34892],256],12176:[[34915],256],12177:[[35198],256],12178:[[35211],256],12179:[[35282],256],12180:[[35328],256],12181:[[35895],256],12182:[[35910],256],12183:[[35925],256],12184:[[35960],256],12185:[[35997],256],12186:[[36196],256],12187:[[36208],256],12188:[[36275],256],12189:[[36523],256],12190:[[36554],256],12191:[[36763],256],12192:[[36784],256],12193:[[36789],256],12194:[[37009],256],12195:[[37193],256],12196:[[37318],256],12197:[[37324],256],12198:[[37329],256],12199:[[38263],256],12200:[[38272],256],12201:[[38428],256],12202:[[38582],256],12203:[[38585],256],12204:[[38632],256],12205:[[38737],256],12206:[[38750],256],12207:[[38754],256],12208:[[38761],256],12209:[[38859],256],12210:[[38893],256],12211:[[38899],256],12212:[[38913],256],12213:[[39080],256],12214:[[39131],256],12215:[[39135],256],12216:[[39318],256],12217:[[39321],256],12218:[[39340],256],12219:[[39592],256],12220:[[39640],256],12221:[[39647],256],12222:[[39717],256],12223:[[39727],256],12224:[[39730],256],12225:[[39740],256],12226:[[39770],256],12227:[[40165],256],12228:[[40565],256],12229:[[40575],256],12230:[[40613],256],12231:[[40635],256],12232:[[40643],256],12233:[[40653],256],12234:[[40657],256],12235:[[40697],256],12236:[[40701],256],12237:[[40718],256],12238:[[40723],256],12239:[[40736],256],12240:[[40763],256],12241:[[40778],256],12242:[[40786],256],12243:[[40845],256],12244:[[40860],256],12245:[[40864],256]},12288:{12288:[[32],256],12330:[,218],12331:[,228],12332:[,232],12333:[,222],12334:[,224],12335:[,224],12342:[[12306],256],12344:[[21313],256],12345:[[21316],256],12346:[[21317],256],12358:[,,{12441:12436}],12363:[,,{12441:12364}],12364:[[12363,12441]],12365:[,,{12441:12366}],12366:[[12365,12441]],12367:[,,{12441:12368}],12368:[[12367,12441]],12369:[,,{12441:12370}],12370:[[12369,12441]],12371:[,,{12441:12372}],12372:[[12371,12441]],12373:[,,{12441:12374}],12374:[[12373,12441]],12375:[,,{12441:12376}],12376:[[12375,12441]],12377:[,,{12441:12378}],12378:[[12377,12441]],12379:[,,{12441:12380}],12380:[[12379,12441]],12381:[,,{12441:12382}],12382:[[12381,12441]],12383:[,,{12441:12384}],12384:[[12383,12441]],12385:[,,{12441:12386}],12386:[[12385,12441]],12388:[,,{12441:12389}],12389:[[12388,12441]],12390:[,,{12441:12391}],12391:[[12390,12441]],12392:[,,{12441:12393}],12393:[[12392,12441]],12399:[,,{12441:12400,12442:12401}],12400:[[12399,12441]],12401:[[12399,12442]],12402:[,,{12441:12403,12442:12404}],12403:[[12402,12441]],12404:[[12402,12442]],12405:[,,{12441:12406,12442:12407}],12406:[[12405,12441]],12407:[[12405,12442]],12408:[,,{12441:12409,12442:12410}],12409:[[12408,12441]],12410:[[12408,12442]],12411:[,,{12441:12412,12442:12413}],12412:[[12411,12441]],12413:[[12411,12442]],12436:[[12358,12441]],12441:[,8],12442:[,8],12443:[[32,12441],256],12444:[[32,12442],256],12445:[,,{12441:12446}],12446:[[12445,12441]],12447:[[12424,12426],256],12454:[,,{12441:12532}],12459:[,,{12441:12460}],12460:[[12459,12441]],12461:[,,{12441:12462}],12462:[[12461,12441]],12463:[,,{12441:12464}],12464:[[12463,12441]],12465:[,,{12441:12466}],12466:[[12465,12441]],12467:[,,{12441:12468}],12468:[[12467,12441]],12469:[,,{12441:12470}],12470:[[12469,12441]],12471:[,,{12441:12472}],12472:[[12471,12441]],12473:[,,{12441:12474}],12474:[[12473,12441]],12475:[,,{12441:12476}],12476:[[12475,12441]],12477:[,,{12441:12478}],12478:[[12477,12441]],12479:[,,{12441:12480}],12480:[[12479,12441]],12481:[,,{12441:12482}],12482:[[12481,12441]],12484:[,,{12441:12485}],12485:[[12484,12441]],12486:[,,{12441:12487}],12487:[[12486,12441]],12488:[,,{12441:12489}],12489:[[12488,12441]],12495:[,,{12441:12496,12442:12497}],12496:[[12495,12441]],12497:[[12495,12442]],12498:[,,{12441:12499,12442:12500}],12499:[[12498,12441]],12500:[[12498,12442]],12501:[,,{12441:12502,12442:12503}],12502:[[12501,12441]],12503:[[12501,12442]],12504:[,,{12441:12505,12442:12506}],12505:[[12504,12441]],12506:[[12504,12442]],12507:[,,{12441:12508,12442:12509}],12508:[[12507,12441]],12509:[[12507,12442]],12527:[,,{12441:12535}],12528:[,,{12441:12536}],12529:[,,{12441:12537}],12530:[,,{12441:12538}],12532:[[12454,12441]],12535:[[12527,12441]],12536:[[12528,12441]],12537:[[12529,12441]],12538:[[12530,12441]],12541:[,,{12441:12542}],12542:[[12541,12441]],12543:[[12467,12488],256]},12544:{12593:[[4352],256],12594:[[4353],256],12595:[[4522],256],12596:[[4354],256],12597:[[4524],256],12598:[[4525],256],12599:[[4355],256],12600:[[4356],256],12601:[[4357],256],12602:[[4528],256],12603:[[4529],256],12604:[[4530],256],12605:[[4531],256],12606:[[4532],256],12607:[[4533],256],12608:[[4378],256],12609:[[4358],256],12610:[[4359],256],12611:[[4360],256],12612:[[4385],256],12613:[[4361],256],12614:[[4362],256],12615:[[4363],256],12616:[[4364],256],12617:[[4365],256],12618:[[4366],256],12619:[[4367],256],12620:[[4368],256],12621:[[4369],256],12622:[[4370],256],12623:[[4449],256],12624:[[4450],256],12625:[[4451],256],12626:[[4452],256],12627:[[4453],256],12628:[[4454],256],12629:[[4455],256],12630:[[4456],256],12631:[[4457],256],12632:[[4458],256],12633:[[4459],256],12634:[[4460],256],12635:[[4461],256],12636:[[4462],256],12637:[[4463],256],12638:[[4464],256],12639:[[4465],256],12640:[[4466],256],12641:[[4467],256],12642:[[4468],256],12643:[[4469],256],12644:[[4448],256],12645:[[4372],256],12646:[[4373],256],12647:[[4551],256],12648:[[4552],256],12649:[[4556],256],12650:[[4558],256],12651:[[4563],256],12652:[[4567],256],12653:[[4569],256],12654:[[4380],256],12655:[[4573],256],12656:[[4575],256],12657:[[4381],256],12658:[[4382],256],12659:[[4384],256],12660:[[4386],256],12661:[[4387],256],12662:[[4391],256],12663:[[4393],256],12664:[[4395],256],12665:[[4396],256],12666:[[4397],256],12667:[[4398],256],12668:[[4399],256],12669:[[4402],256],12670:[[4406],256],12671:[[4416],256],12672:[[4423],256],12673:[[4428],256],12674:[[4593],256],12675:[[4594],256],12676:[[4439],256],12677:[[4440],256],12678:[[4441],256],12679:[[4484],256],12680:[[4485],256],12681:[[4488],256],12682:[[4497],256],12683:[[4498],256],12684:[[4500],256],12685:[[4510],256],12686:[[4513],256],12690:[[19968],256],12691:[[20108],256],12692:[[19977],256],12693:[[22235],256],12694:[[19978],256],12695:[[20013],256],12696:[[19979],256],12697:[[30002],256],12698:[[20057],256],12699:[[19993],256],12700:[[19969],256],12701:[[22825],256],12702:[[22320],256],12703:[[20154],256]},12800:{12800:[[40,4352,41],256],12801:[[40,4354,41],256],12802:[[40,4355,41],256],12803:[[40,4357,41],256],12804:[[40,4358,41],256],12805:[[40,4359,41],256],12806:[[40,4361,41],256],12807:[[40,4363,41],256],12808:[[40,4364,41],256],12809:[[40,4366,41],256],12810:[[40,4367,41],256],12811:[[40,4368,41],256],12812:[[40,4369,41],256],12813:[[40,4370,41],256],12814:[[40,4352,4449,41],256],12815:[[40,4354,4449,41],256],12816:[[40,4355,4449,41],256],12817:[[40,4357,4449,41],256],12818:[[40,4358,4449,41],256],12819:[[40,4359,4449,41],256],12820:[[40,4361,4449,41],256],12821:[[40,4363,4449,41],256],12822:[[40,4364,4449,41],256],12823:[[40,4366,4449,41],256],12824:[[40,4367,4449,41],256],12825:[[40,4368,4449,41],256],12826:[[40,4369,4449,41],256],12827:[[40,4370,4449,41],256],12828:[[40,4364,4462,41],256],12829:[[40,4363,4457,4364,4453,4523,41],256],12830:[[40,4363,4457,4370,4462,41],256],12832:[[40,19968,41],256],12833:[[40,20108,41],256],12834:[[40,19977,41],256],12835:[[40,22235,41],256],12836:[[40,20116,41],256],12837:[[40,20845,41],256],12838:[[40,19971,41],256],12839:[[40,20843,41],256],12840:[[40,20061,41],256],12841:[[40,21313,41],256],12842:[[40,26376,41],256],12843:[[40,28779,41],256],12844:[[40,27700,41],256],12845:[[40,26408,41],256],12846:[[40,37329,41],256],12847:[[40,22303,41],256],12848:[[40,26085,41],256],12849:[[40,26666,41],256],12850:[[40,26377,41],256],12851:[[40,31038,41],256],12852:[[40,21517,41],256],12853:[[40,29305,41],256],12854:[[40,36001,41],256],12855:[[40,31069,41],256],12856:[[40,21172,41],256],12857:[[40,20195,41],256],12858:[[40,21628,41],256],12859:[[40,23398,41],256],12860:[[40,30435,41],256],12861:[[40,20225,41],256],12862:[[40,36039,41],256],12863:[[40,21332,41],256],12864:[[40,31085,41],256],12865:[[40,20241,41],256],12866:[[40,33258,41],256],12867:[[40,33267,41],256],12868:[[21839],256],12869:[[24188],256],12870:[[25991],256],12871:[[31631],256],12880:[[80,84,69],256],12881:[[50,49],256],12882:[[50,50],256],12883:[[50,51],256],12884:[[50,52],256],12885:[[50,53],256],12886:[[50,54],256],12887:[[50,55],256],12888:[[50,56],256],12889:[[50,57],256],12890:[[51,48],256],12891:[[51,49],256],12892:[[51,50],256],12893:[[51,51],256],12894:[[51,52],256],12895:[[51,53],256],12896:[[4352],256],12897:[[4354],256],12898:[[4355],256],12899:[[4357],256],12900:[[4358],256],12901:[[4359],256],12902:[[4361],256],12903:[[4363],256],12904:[[4364],256],12905:[[4366],256],12906:[[4367],256],12907:[[4368],256],12908:[[4369],256],12909:[[4370],256],12910:[[4352,4449],256],12911:[[4354,4449],256],12912:[[4355,4449],256],12913:[[4357,4449],256],12914:[[4358,4449],256],12915:[[4359,4449],256],12916:[[4361,4449],256],12917:[[4363,4449],256],12918:[[4364,4449],256],12919:[[4366,4449],256],12920:[[4367,4449],256],12921:[[4368,4449],256],12922:[[4369,4449],256],12923:[[4370,4449],256],12924:[[4366,4449,4535,4352,4457],256],12925:[[4364,4462,4363,4468],256],12926:[[4363,4462],256],12928:[[19968],256],12929:[[20108],256],12930:[[19977],256],12931:[[22235],256],12932:[[20116],256],12933:[[20845],256],12934:[[19971],256],12935:[[20843],256],12936:[[20061],256],12937:[[21313],256],12938:[[26376],256],12939:[[28779],256],12940:[[27700],256],12941:[[26408],256],12942:[[37329],256],12943:[[22303],256],12944:[[26085],256],12945:[[26666],256],12946:[[26377],256],12947:[[31038],256],12948:[[21517],256],12949:[[29305],256],12950:[[36001],256],12951:[[31069],256],12952:[[21172],256],12953:[[31192],256],12954:[[30007],256],12955:[[22899],256],12956:[[36969],256],12957:[[20778],256],12958:[[21360],256],12959:[[27880],256],12960:[[38917],256],12961:[[20241],256],12962:[[20889],256],12963:[[27491],256],12964:[[19978],256],12965:[[20013],256],12966:[[19979],256],12967:[[24038],256],12968:[[21491],256],12969:[[21307],256],12970:[[23447],256],12971:[[23398],256],12972:[[30435],256],12973:[[20225],256],12974:[[36039],256],12975:[[21332],256],12976:[[22812],256],12977:[[51,54],256],12978:[[51,55],256],12979:[[51,56],256],12980:[[51,57],256],12981:[[52,48],256],12982:[[52,49],256],12983:[[52,50],256],12984:[[52,51],256],12985:[[52,52],256],12986:[[52,53],256],12987:[[52,54],256],12988:[[52,55],256],12989:[[52,56],256],12990:[[52,57],256],12991:[[53,48],256],12992:[[49,26376],256],12993:[[50,26376],256],12994:[[51,26376],256],12995:[[52,26376],256],12996:[[53,26376],256],12997:[[54,26376],256],12998:[[55,26376],256],12999:[[56,26376],256],13e3:[[57,26376],256],13001:[[49,48,26376],256],13002:[[49,49,26376],256],13003:[[49,50,26376],256],13004:[[72,103],256],13005:[[101,114,103],256],13006:[[101,86],256],13007:[[76,84,68],256],13008:[[12450],256],13009:[[12452],256],13010:[[12454],256],13011:[[12456],256],13012:[[12458],256],13013:[[12459],256],13014:[[12461],256],13015:[[12463],256],13016:[[12465],256],13017:[[12467],256],13018:[[12469],256],13019:[[12471],256],13020:[[12473],256],13021:[[12475],256],13022:[[12477],256],13023:[[12479],256],13024:[[12481],256],13025:[[12484],256],13026:[[12486],256],13027:[[12488],256],13028:[[12490],256],13029:[[12491],256],13030:[[12492],256],13031:[[12493],256],13032:[[12494],256],13033:[[12495],256],13034:[[12498],256],13035:[[12501],256],13036:[[12504],256],13037:[[12507],256],13038:[[12510],256],13039:[[12511],256],13040:[[12512],256],13041:[[12513],256],13042:[[12514],256],13043:[[12516],256],13044:[[12518],256],13045:[[12520],256],13046:[[12521],256],13047:[[12522],256],13048:[[12523],256],13049:[[12524],256],13050:[[12525],256],13051:[[12527],256],13052:[[12528],256],13053:[[12529],256],13054:[[12530],256]},13056:{13056:[[12450,12497,12540,12488],256],13057:[[12450,12523,12501,12449],256],13058:[[12450,12531,12506,12450],256],13059:[[12450,12540,12523],256],13060:[[12452,12491,12531,12464],256],13061:[[12452,12531,12481],256],13062:[[12454,12457,12531],256],13063:[[12456,12473,12463,12540,12489],256],13064:[[12456,12540,12459,12540],256],13065:[[12458,12531,12473],256],13066:[[12458,12540,12512],256],13067:[[12459,12452,12522],256],13068:[[12459,12521,12483,12488],256],13069:[[12459,12525,12522,12540],256],13070:[[12460,12525,12531],256],13071:[[12460,12531,12510],256],13072:[[12462,12460],256],13073:[[12462,12491,12540],256],13074:[[12461,12517,12522,12540],256],13075:[[12462,12523,12480,12540],256],13076:[[12461,12525],256],13077:[[12461,12525,12464,12521,12512],256],13078:[[12461,12525,12513,12540,12488,12523],256],13079:[[12461,12525,12527,12483,12488],256],13080:[[12464,12521,12512],256],13081:[[12464,12521,12512,12488,12531],256],13082:[[12463,12523,12476,12452,12525],256],13083:[[12463,12525,12540,12493],256],13084:[[12465,12540,12473],256],13085:[[12467,12523,12490],256],13086:[[12467,12540,12509],256],13087:[[12469,12452,12463,12523],256],13088:[[12469,12531,12481,12540,12512],256],13089:[[12471,12522,12531,12464],256],13090:[[12475,12531,12481],256],13091:[[12475,12531,12488],256],13092:[[12480,12540,12473],256],13093:[[12487,12471],256],13094:[[12489,12523],256],13095:[[12488,12531],256],13096:[[12490,12494],256],13097:[[12494,12483,12488],256],13098:[[12495,12452,12484],256],13099:[[12497,12540,12475,12531,12488],256],13100:[[12497,12540,12484],256],13101:[[12496,12540,12524,12523],256],13102:[[12500,12450,12473,12488,12523],256],13103:[[12500,12463,12523],256],13104:[[12500,12467],256],13105:[[12499,12523],256],13106:[[12501,12449,12521,12483,12489],256],13107:[[12501,12451,12540,12488],256],13108:[[12502,12483,12471,12455,12523],256],13109:[[12501,12521,12531],256],13110:[[12504,12463,12479,12540,12523],256],13111:[[12506,12477],256],13112:[[12506,12491,12498],256],13113:[[12504,12523,12484],256],13114:[[12506,12531,12473],256],13115:[[12506,12540,12472],256],13116:[[12505,12540,12479],256],13117:[[12509,12452,12531,12488],256],13118:[[12508,12523,12488],256],13119:[[12507,12531],256],13120:[[12509,12531,12489],256],13121:[[12507,12540,12523],256],13122:[[12507,12540,12531],256],13123:[[12510,12452,12463,12525],256],13124:[[12510,12452,12523],256],13125:[[12510,12483,12495],256],13126:[[12510,12523,12463],256],13127:[[12510,12531,12471,12519,12531],256],13128:[[12511,12463,12525,12531],256],13129:[[12511,12522],256],13130:[[12511,12522,12496,12540,12523],256],13131:[[12513,12460],256],13132:[[12513,12460,12488,12531],256],13133:[[12513,12540,12488,12523],256],13134:[[12516,12540,12489],256],13135:[[12516,12540,12523],256],13136:[[12518,12450,12531],256],13137:[[12522,12483,12488,12523],256],13138:[[12522,12521],256],13139:[[12523,12500,12540],256],13140:[[12523,12540,12502,12523],256],13141:[[12524,12512],256],13142:[[12524,12531,12488,12466,12531],256],13143:[[12527,12483,12488],256],13144:[[48,28857],256],13145:[[49,28857],256],13146:[[50,28857],256],13147:[[51,28857],256],13148:[[52,28857],256],13149:[[53,28857],256],13150:[[54,28857],256],13151:[[55,28857],256],13152:[[56,28857],256],13153:[[57,28857],256],13154:[[49,48,28857],256],13155:[[49,49,28857],256],13156:[[49,50,28857],256],13157:[[49,51,28857],256],13158:[[49,52,28857],256],13159:[[49,53,28857],256],13160:[[49,54,28857],256],13161:[[49,55,28857],256],13162:[[49,56,28857],256],13163:[[49,57,28857],256],13164:[[50,48,28857],256],13165:[[50,49,28857],256],13166:[[50,50,28857],256],13167:[[50,51,28857],256],13168:[[50,52,28857],256],13169:[[104,80,97],256],13170:[[100,97],256],13171:[[65,85],256],13172:[[98,97,114],256],13173:[[111,86],256],13174:[[112,99],256],13175:[[100,109],256],13176:[[100,109,178],256],13177:[[100,109,179],256],13178:[[73,85],256],13179:[[24179,25104],256],13180:[[26157,21644],256],13181:[[22823,27491],256],13182:[[26126,27835],256],13183:[[26666,24335,20250,31038],256],13184:[[112,65],256],13185:[[110,65],256],13186:[[956,65],256],13187:[[109,65],256],13188:[[107,65],256],13189:[[75,66],256],13190:[[77,66],256],13191:[[71,66],256],13192:[[99,97,108],256],13193:[[107,99,97,108],256],13194:[[112,70],256],13195:[[110,70],256],13196:[[956,70],256],13197:[[956,103],256],13198:[[109,103],256],13199:[[107,103],256],13200:[[72,122],256],13201:[[107,72,122],256],13202:[[77,72,122],256],13203:[[71,72,122],256],13204:[[84,72,122],256],13205:[[956,8467],256],13206:[[109,8467],256],13207:[[100,8467],256],13208:[[107,8467],256],13209:[[102,109],256],13210:[[110,109],256],13211:[[956,109],256],13212:[[109,109],256],13213:[[99,109],256],13214:[[107,109],256],13215:[[109,109,178],256],13216:[[99,109,178],256],13217:[[109,178],256],13218:[[107,109,178],256],13219:[[109,109,179],256],13220:[[99,109,179],256],13221:[[109,179],256],13222:[[107,109,179],256],13223:[[109,8725,115],256],13224:[[109,8725,115,178],256],13225:[[80,97],256],13226:[[107,80,97],256],13227:[[77,80,97],256],13228:[[71,80,97],256],13229:[[114,97,100],256],13230:[[114,97,100,8725,115],256],13231:[[114,97,100,8725,115,178],256],13232:[[112,115],256],13233:[[110,115],256],13234:[[956,115],256],13235:[[109,115],256],13236:[[112,86],256],13237:[[110,86],256],13238:[[956,86],256],13239:[[109,86],256],13240:[[107,86],256],13241:[[77,86],256],13242:[[112,87],256],13243:[[110,87],256],13244:[[956,87],256],13245:[[109,87],256],13246:[[107,87],256],13247:[[77,87],256],13248:[[107,937],256],13249:[[77,937],256],13250:[[97,46,109,46],256],13251:[[66,113],256],13252:[[99,99],256],13253:[[99,100],256],13254:[[67,8725,107,103],256],13255:[[67,111,46],256],13256:[[100,66],256],13257:[[71,121],256],13258:[[104,97],256],13259:[[72,80],256],13260:[[105,110],256],13261:[[75,75],256],13262:[[75,77],256],13263:[[107,116],256],13264:[[108,109],256],13265:[[108,110],256],13266:[[108,111,103],256],13267:[[108,120],256],13268:[[109,98],256],13269:[[109,105,108],256],13270:[[109,111,108],256],13271:[[80,72],256],13272:[[112,46,109,46],256],13273:[[80,80,77],256],13274:[[80,82],256],13275:[[115,114],256],13276:[[83,118],256],13277:[[87,98],256],13278:[[86,8725,109],256],13279:[[65,8725,109],256],13280:[[49,26085],256],13281:[[50,26085],256],13282:[[51,26085],256],13283:[[52,26085],256],13284:[[53,26085],256],13285:[[54,26085],256],13286:[[55,26085],256],13287:[[56,26085],256],13288:[[57,26085],256],13289:[[49,48,26085],256],13290:[[49,49,26085],256],13291:[[49,50,26085],256],13292:[[49,51,26085],256],13293:[[49,52,26085],256],13294:[[49,53,26085],256],13295:[[49,54,26085],256],13296:[[49,55,26085],256],13297:[[49,56,26085],256],13298:[[49,57,26085],256],13299:[[50,48,26085],256],13300:[[50,49,26085],256],13301:[[50,50,26085],256],13302:[[50,51,26085],256],13303:[[50,52,26085],256],13304:[[50,53,26085],256],13305:[[50,54,26085],256],13306:[[50,55,26085],256],13307:[[50,56,26085],256],13308:[[50,57,26085],256],13309:[[51,48,26085],256],13310:[[51,49,26085],256],13311:[[103,97,108],256]},27136:{92912:[,1],92913:[,1],92914:[,1],92915:[,1],92916:[,1]},27392:{92976:[,230],92977:[,230],92978:[,230],92979:[,230],92980:[,230],92981:[,230],92982:[,230]},42496:{42607:[,230],42612:[,230],42613:[,230],42614:[,230],42615:[,230],42616:[,230],42617:[,230],42618:[,230],42619:[,230],42620:[,230],42621:[,230],42652:[[1098],256],42653:[[1100],256],42655:[,230],42736:[,230],42737:[,230]},42752:{42864:[[42863],256],43e3:[[294],256],43001:[[339],256]},43008:{43014:[,9],43204:[,9],43232:[,230],43233:[,230],43234:[,230],43235:[,230],43236:[,230],43237:[,230],43238:[,230],43239:[,230],43240:[,230],43241:[,230],43242:[,230],43243:[,230],43244:[,230],43245:[,230],43246:[,230],43247:[,230],43248:[,230],43249:[,230]},43264:{43307:[,220],43308:[,220],43309:[,220],43347:[,9],43443:[,7],43456:[,9]},43520:{43696:[,230],43698:[,230],43699:[,230],43700:[,220],43703:[,230],43704:[,230],43710:[,230],43711:[,230],43713:[,230],43766:[,9]},43776:{43868:[[42791],256],43869:[[43831],256],43870:[[619],256],43871:[[43858],256],44013:[,9]},48128:{113822:[,1]},53504:{119134:[[119127,119141],512],119135:[[119128,119141],512],119136:[[119135,119150],512],119137:[[119135,119151],512],119138:[[119135,119152],512],119139:[[119135,119153],512],119140:[[119135,119154],512],119141:[,216],119142:[,216],119143:[,1],119144:[,1],119145:[,1],119149:[,226],119150:[,216],119151:[,216],119152:[,216],119153:[,216],119154:[,216],119163:[,220],119164:[,220],119165:[,220],119166:[,220],119167:[,220],119168:[,220],119169:[,220],119170:[,220],119173:[,230],119174:[,230],119175:[,230],119176:[,230],119177:[,230],119178:[,220],119179:[,220],119210:[,230],119211:[,230],119212:[,230],119213:[,230],119227:[[119225,119141],512],119228:[[119226,119141],512],119229:[[119227,119150],512],119230:[[119228,119150],512],119231:[[119227,119151],512],119232:[[119228,119151],512]},53760:{119362:[,230],119363:[,230],119364:[,230]},54272:{119808:[[65],256],119809:[[66],256],119810:[[67],256],119811:[[68],256],119812:[[69],256],119813:[[70],256],119814:[[71],256],119815:[[72],256],119816:[[73],256],119817:[[74],256],119818:[[75],256],119819:[[76],256],119820:[[77],256],119821:[[78],256],119822:[[79],256],119823:[[80],256],119824:[[81],256],119825:[[82],256],119826:[[83],256],119827:[[84],256],119828:[[85],256],119829:[[86],256],119830:[[87],256],119831:[[88],256],119832:[[89],256],119833:[[90],256],119834:[[97],256],119835:[[98],256],119836:[[99],256],119837:[[100],256],119838:[[101],256],119839:[[102],256],119840:[[103],256],119841:[[104],256],119842:[[105],256],119843:[[106],256],119844:[[107],256],119845:[[108],256],119846:[[109],256],119847:[[110],256],119848:[[111],256],119849:[[112],256],119850:[[113],256],119851:[[114],256],119852:[[115],256],119853:[[116],256],119854:[[117],256],119855:[[118],256],119856:[[119],256],119857:[[120],256],119858:[[121],256],119859:[[122],256],119860:[[65],256],119861:[[66],256],119862:[[67],256],119863:[[68],256],119864:[[69],256],119865:[[70],256],119866:[[71],256],119867:[[72],256],119868:[[73],256],119869:[[74],256],119870:[[75],256],119871:[[76],256],119872:[[77],256],119873:[[78],256],119874:[[79],256],119875:[[80],256],119876:[[81],256],119877:[[82],256],119878:[[83],256],119879:[[84],256],119880:[[85],256],119881:[[86],256],119882:[[87],256],119883:[[88],256],119884:[[89],256],119885:[[90],256],119886:[[97],256],119887:[[98],256],119888:[[99],256],119889:[[100],256],119890:[[101],256],119891:[[102],256],119892:[[103],256],119894:[[105],256],119895:[[106],256],119896:[[107],256],119897:[[108],256],119898:[[109],256],119899:[[110],256],119900:[[111],256],119901:[[112],256],119902:[[113],256],119903:[[114],256],119904:[[115],256],119905:[[116],256],119906:[[117],256],119907:[[118],256],119908:[[119],256],119909:[[120],256],119910:[[121],256],119911:[[122],256],119912:[[65],256],119913:[[66],256],119914:[[67],256],119915:[[68],256],119916:[[69],256],119917:[[70],256],119918:[[71],256],119919:[[72],256],119920:[[73],256],119921:[[74],256],119922:[[75],256],119923:[[76],256],119924:[[77],256],119925:[[78],256],119926:[[79],256],119927:[[80],256],119928:[[81],256],119929:[[82],256],119930:[[83],256],119931:[[84],256],119932:[[85],256],119933:[[86],256],119934:[[87],256],119935:[[88],256],119936:[[89],256],119937:[[90],256],119938:[[97],256],119939:[[98],256],119940:[[99],256],119941:[[100],256],119942:[[101],256],119943:[[102],256],119944:[[103],256],119945:[[104],256],119946:[[105],256],119947:[[106],256],119948:[[107],256],119949:[[108],256],119950:[[109],256],119951:[[110],256],119952:[[111],256],119953:[[112],256],119954:[[113],256],119955:[[114],256],119956:[[115],256],119957:[[116],256],119958:[[117],256],119959:[[118],256],119960:[[119],256],119961:[[120],256],119962:[[121],256],119963:[[122],256],119964:[[65],256],119966:[[67],256],119967:[[68],256],119970:[[71],256],119973:[[74],256],119974:[[75],256],119977:[[78],256],119978:[[79],256],119979:[[80],256],119980:[[81],256],119982:[[83],256],119983:[[84],256],119984:[[85],256],119985:[[86],256],119986:[[87],256],119987:[[88],256],119988:[[89],256],119989:[[90],256],119990:[[97],256],119991:[[98],256],119992:[[99],256],119993:[[100],256],119995:[[102],256],119997:[[104],256],119998:[[105],256],119999:[[106],256],12e4:[[107],256],120001:[[108],256],120002:[[109],256],120003:[[110],256],120005:[[112],256],120006:[[113],256],120007:[[114],256],120008:[[115],256],120009:[[116],256],120010:[[117],256],120011:[[118],256],120012:[[119],256],120013:[[120],256],120014:[[121],256],120015:[[122],256],120016:[[65],256],120017:[[66],256],120018:[[67],256],120019:[[68],256],120020:[[69],256],120021:[[70],256],120022:[[71],256],120023:[[72],256],120024:[[73],256],120025:[[74],256],120026:[[75],256],120027:[[76],256],120028:[[77],256],120029:[[78],256],120030:[[79],256],120031:[[80],256],120032:[[81],256],120033:[[82],256],120034:[[83],256],120035:[[84],256],120036:[[85],256],120037:[[86],256],120038:[[87],256],120039:[[88],256],120040:[[89],256],120041:[[90],256],120042:[[97],256],120043:[[98],256],120044:[[99],256],120045:[[100],256],120046:[[101],256],120047:[[102],256],120048:[[103],256],120049:[[104],256],120050:[[105],256],120051:[[106],256],120052:[[107],256],120053:[[108],256],120054:[[109],256],120055:[[110],256],120056:[[111],256],120057:[[112],256],120058:[[113],256],120059:[[114],256],120060:[[115],256],120061:[[116],256],120062:[[117],256],120063:[[118],256]},54528:{120064:[[119],256],120065:[[120],256],120066:[[121],256],120067:[[122],256],120068:[[65],256],120069:[[66],256],120071:[[68],256],120072:[[69],256],120073:[[70],256],120074:[[71],256],120077:[[74],256],120078:[[75],256],120079:[[76],256],120080:[[77],256],120081:[[78],256],120082:[[79],256],120083:[[80],256],120084:[[81],256],120086:[[83],256],120087:[[84],256],120088:[[85],256],120089:[[86],256],120090:[[87],256],120091:[[88],256],120092:[[89],256],120094:[[97],256],120095:[[98],256],120096:[[99],256],120097:[[100],256],120098:[[101],256],120099:[[102],256],120100:[[103],256],120101:[[104],256],120102:[[105],256],120103:[[106],256],120104:[[107],256],120105:[[108],256],120106:[[109],256],120107:[[110],256],120108:[[111],256],120109:[[112],256],120110:[[113],256],120111:[[114],256],120112:[[115],256],120113:[[116],256],120114:[[117],256],120115:[[118],256],120116:[[119],256],120117:[[120],256],120118:[[121],256],120119:[[122],256],120120:[[65],256],120121:[[66],256],120123:[[68],256],120124:[[69],256],120125:[[70],256],120126:[[71],256],120128:[[73],256],120129:[[74],256],120130:[[75],256],120131:[[76],256],120132:[[77],256],120134:[[79],256],120138:[[83],256],120139:[[84],256],120140:[[85],256],120141:[[86],256],120142:[[87],256],120143:[[88],256],120144:[[89],256],120146:[[97],256],120147:[[98],256],120148:[[99],256],120149:[[100],256],120150:[[101],256],120151:[[102],256],120152:[[103],256],120153:[[104],256],120154:[[105],256],120155:[[106],256],120156:[[107],256],120157:[[108],256],120158:[[109],256],120159:[[110],256],120160:[[111],256],120161:[[112],256],120162:[[113],256],120163:[[114],256],120164:[[115],256],120165:[[116],256],120166:[[117],256],120167:[[118],256],120168:[[119],256],120169:[[120],256],120170:[[121],256],120171:[[122],256],120172:[[65],256],120173:[[66],256],120174:[[67],256],120175:[[68],256],120176:[[69],256],120177:[[70],256],120178:[[71],256],120179:[[72],256],120180:[[73],256],120181:[[74],256],120182:[[75],256],120183:[[76],256],120184:[[77],256],120185:[[78],256],120186:[[79],256],120187:[[80],256],120188:[[81],256],120189:[[82],256],120190:[[83],256],120191:[[84],256],120192:[[85],256],120193:[[86],256],120194:[[87],256],120195:[[88],256],120196:[[89],256],120197:[[90],256],120198:[[97],256],120199:[[98],256],120200:[[99],256],120201:[[100],256],120202:[[101],256],120203:[[102],256],120204:[[103],256],120205:[[104],256],120206:[[105],256],120207:[[106],256],120208:[[107],256],120209:[[108],256],120210:[[109],256],120211:[[110],256],120212:[[111],256],120213:[[112],256],120214:[[113],256],120215:[[114],256],120216:[[115],256],120217:[[116],256],120218:[[117],256],120219:[[118],256],120220:[[119],256],120221:[[120],256],120222:[[121],256],120223:[[122],256],120224:[[65],256],120225:[[66],256],120226:[[67],256],120227:[[68],256],120228:[[69],256],120229:[[70],256],120230:[[71],256],120231:[[72],256],120232:[[73],256],120233:[[74],256],120234:[[75],256],120235:[[76],256],120236:[[77],256],120237:[[78],256],120238:[[79],256],120239:[[80],256],120240:[[81],256],120241:[[82],256],120242:[[83],256],120243:[[84],256],120244:[[85],256],120245:[[86],256],120246:[[87],256],120247:[[88],256],120248:[[89],256],120249:[[90],256],120250:[[97],256],120251:[[98],256],120252:[[99],256],120253:[[100],256],120254:[[101],256],120255:[[102],256],120256:[[103],256],120257:[[104],256],120258:[[105],256],120259:[[106],256],120260:[[107],256],120261:[[108],256],120262:[[109],256],120263:[[110],256],120264:[[111],256],120265:[[112],256],120266:[[113],256],120267:[[114],256],120268:[[115],256],120269:[[116],256],120270:[[117],256],120271:[[118],256],120272:[[119],256],120273:[[120],256],120274:[[121],256],120275:[[122],256],120276:[[65],256],120277:[[66],256],120278:[[67],256],120279:[[68],256],120280:[[69],256],120281:[[70],256],120282:[[71],256],120283:[[72],256],120284:[[73],256],120285:[[74],256],120286:[[75],256],120287:[[76],256],120288:[[77],256],120289:[[78],256],120290:[[79],256],120291:[[80],256],120292:[[81],256],120293:[[82],256],120294:[[83],256],120295:[[84],256],120296:[[85],256],120297:[[86],256],120298:[[87],256],120299:[[88],256],120300:[[89],256],120301:[[90],256],120302:[[97],256],120303:[[98],256],120304:[[99],256],120305:[[100],256],120306:[[101],256],120307:[[102],256],120308:[[103],256],120309:[[104],256],120310:[[105],256],120311:[[106],256],120312:[[107],256],120313:[[108],256],120314:[[109],256],120315:[[110],256],120316:[[111],256],120317:[[112],256],120318:[[113],256],120319:[[114],256]},54784:{120320:[[115],256],120321:[[116],256],120322:[[117],256],120323:[[118],256],120324:[[119],256],120325:[[120],256],120326:[[121],256],120327:[[122],256],120328:[[65],256],120329:[[66],256],120330:[[67],256],120331:[[68],256],120332:[[69],256],120333:[[70],256],120334:[[71],256],120335:[[72],256],120336:[[73],256],120337:[[74],256],120338:[[75],256],120339:[[76],256],120340:[[77],256],120341:[[78],256],120342:[[79],256],120343:[[80],256],120344:[[81],256],120345:[[82],256],120346:[[83],256],120347:[[84],256],120348:[[85],256],120349:[[86],256],120350:[[87],256],120351:[[88],256],120352:[[89],256],120353:[[90],256],120354:[[97],256],120355:[[98],256],120356:[[99],256],120357:[[100],256],120358:[[101],256],120359:[[102],256],120360:[[103],256],120361:[[104],256],120362:[[105],256],120363:[[106],256],120364:[[107],256],120365:[[108],256],120366:[[109],256],120367:[[110],256],120368:[[111],256],120369:[[112],256],120370:[[113],256],120371:[[114],256],120372:[[115],256],120373:[[116],256],120374:[[117],256],120375:[[118],256],120376:[[119],256],120377:[[120],256],120378:[[121],256],120379:[[122],256],120380:[[65],256],120381:[[66],256],120382:[[67],256],120383:[[68],256],120384:[[69],256],120385:[[70],256],120386:[[71],256],120387:[[72],256],120388:[[73],256],120389:[[74],256],120390:[[75],256],120391:[[76],256],120392:[[77],256],120393:[[78],256],120394:[[79],256],120395:[[80],256],120396:[[81],256],120397:[[82],256],120398:[[83],256],120399:[[84],256],120400:[[85],256],120401:[[86],256],120402:[[87],256],120403:[[88],256],120404:[[89],256],120405:[[90],256],120406:[[97],256],120407:[[98],256],120408:[[99],256],120409:[[100],256],120410:[[101],256],120411:[[102],256],120412:[[103],256],120413:[[104],256],120414:[[105],256],120415:[[106],256],120416:[[107],256],120417:[[108],256],120418:[[109],256],120419:[[110],256],120420:[[111],256],120421:[[112],256],120422:[[113],256],120423:[[114],256],120424:[[115],256],120425:[[116],256],120426:[[117],256],120427:[[118],256],120428:[[119],256],120429:[[120],256],120430:[[121],256],120431:[[122],256],120432:[[65],256],120433:[[66],256],120434:[[67],256],120435:[[68],256],120436:[[69],256],120437:[[70],256],120438:[[71],256],120439:[[72],256],120440:[[73],256],120441:[[74],256],120442:[[75],256],120443:[[76],256],120444:[[77],256],120445:[[78],256],120446:[[79],256],120447:[[80],256],120448:[[81],256],120449:[[82],256],120450:[[83],256],120451:[[84],256],120452:[[85],256],120453:[[86],256],120454:[[87],256],120455:[[88],256],120456:[[89],256],120457:[[90],256],120458:[[97],256],120459:[[98],256],120460:[[99],256],120461:[[100],256],120462:[[101],256],120463:[[102],256],120464:[[103],256],120465:[[104],256],120466:[[105],256],120467:[[106],256],120468:[[107],256],120469:[[108],256],120470:[[109],256],120471:[[110],256],120472:[[111],256],120473:[[112],256],120474:[[113],256],120475:[[114],256],120476:[[115],256],120477:[[116],256],120478:[[117],256],120479:[[118],256],120480:[[119],256],120481:[[120],256],120482:[[121],256],120483:[[122],256],120484:[[305],256],120485:[[567],256],120488:[[913],256],120489:[[914],256],120490:[[915],256],120491:[[916],256],120492:[[917],256],120493:[[918],256],120494:[[919],256],120495:[[920],256],120496:[[921],256],120497:[[922],256],120498:[[923],256],120499:[[924],256],120500:[[925],256],120501:[[926],256],120502:[[927],256],120503:[[928],256],120504:[[929],256],120505:[[1012],256],120506:[[931],256],120507:[[932],256],120508:[[933],256],120509:[[934],256],120510:[[935],256],120511:[[936],256],120512:[[937],256],120513:[[8711],256],120514:[[945],256],120515:[[946],256],120516:[[947],256],120517:[[948],256],120518:[[949],256],120519:[[950],256],120520:[[951],256],120521:[[952],256],120522:[[953],256],120523:[[954],256],120524:[[955],256],120525:[[956],256],120526:[[957],256],120527:[[958],256],120528:[[959],256],120529:[[960],256],120530:[[961],256],120531:[[962],256],120532:[[963],256],120533:[[964],256],120534:[[965],256],120535:[[966],256],120536:[[967],256],120537:[[968],256],120538:[[969],256],120539:[[8706],256],120540:[[1013],256],120541:[[977],256],120542:[[1008],256],120543:[[981],256],120544:[[1009],256],120545:[[982],256],120546:[[913],256],120547:[[914],256],120548:[[915],256],120549:[[916],256],120550:[[917],256],120551:[[918],256],120552:[[919],256],120553:[[920],256],120554:[[921],256],120555:[[922],256],120556:[[923],256],120557:[[924],256],120558:[[925],256],120559:[[926],256],120560:[[927],256],120561:[[928],256],120562:[[929],256],120563:[[1012],256],120564:[[931],256],120565:[[932],256],120566:[[933],256],120567:[[934],256],120568:[[935],256],120569:[[936],256],120570:[[937],256],120571:[[8711],256],120572:[[945],256],120573:[[946],256],120574:[[947],256],120575:[[948],256]},55040:{120576:[[949],256],120577:[[950],256],120578:[[951],256],120579:[[952],256],120580:[[953],256],120581:[[954],256],120582:[[955],256],120583:[[956],256],120584:[[957],256],120585:[[958],256],120586:[[959],256],120587:[[960],256],120588:[[961],256],120589:[[962],256],120590:[[963],256],120591:[[964],256],120592:[[965],256],120593:[[966],256],120594:[[967],256],120595:[[968],256],120596:[[969],256],120597:[[8706],256],120598:[[1013],256],120599:[[977],256],120600:[[1008],256],120601:[[981],256],120602:[[1009],256],120603:[[982],256],120604:[[913],256],120605:[[914],256],120606:[[915],256],120607:[[916],256],120608:[[917],256],120609:[[918],256],120610:[[919],256],120611:[[920],256],120612:[[921],256],120613:[[922],256],120614:[[923],256],120615:[[924],256],120616:[[925],256],120617:[[926],256],120618:[[927],256],120619:[[928],256],120620:[[929],256],120621:[[1012],256],120622:[[931],256],120623:[[932],256],120624:[[933],256],120625:[[934],256],120626:[[935],256],120627:[[936],256],120628:[[937],256],120629:[[8711],256],120630:[[945],256],120631:[[946],256],120632:[[947],256],120633:[[948],256],120634:[[949],256],120635:[[950],256],120636:[[951],256],120637:[[952],256],120638:[[953],256],120639:[[954],256],120640:[[955],256],120641:[[956],256],120642:[[957],256],120643:[[958],256],120644:[[959],256],120645:[[960],256],120646:[[961],256],120647:[[962],256],120648:[[963],256],120649:[[964],256],120650:[[965],256],120651:[[966],256],120652:[[967],256],120653:[[968],256],120654:[[969],256],120655:[[8706],256],120656:[[1013],256],120657:[[977],256],120658:[[1008],256],120659:[[981],256],120660:[[1009],256],120661:[[982],256],120662:[[913],256],120663:[[914],256],120664:[[915],256],120665:[[916],256],120666:[[917],256],120667:[[918],256],120668:[[919],256],120669:[[920],256],120670:[[921],256],120671:[[922],256],120672:[[923],256],120673:[[924],256],120674:[[925],256],120675:[[926],256],120676:[[927],256],120677:[[928],256],120678:[[929],256],120679:[[1012],256],120680:[[931],256],120681:[[932],256],120682:[[933],256],120683:[[934],256],120684:[[935],256],120685:[[936],256],120686:[[937],256],120687:[[8711],256],120688:[[945],256],120689:[[946],256],120690:[[947],256],120691:[[948],256],120692:[[949],256],120693:[[950],256],120694:[[951],256],120695:[[952],256],120696:[[953],256],120697:[[954],256],120698:[[955],256],120699:[[956],256],120700:[[957],256],120701:[[958],256],120702:[[959],256],120703:[[960],256],120704:[[961],256],120705:[[962],256],120706:[[963],256],120707:[[964],256],120708:[[965],256],120709:[[966],256],120710:[[967],256],120711:[[968],256],120712:[[969],256],120713:[[8706],256],120714:[[1013],256],120715:[[977],256],120716:[[1008],256],120717:[[981],256],120718:[[1009],256],120719:[[982],256],120720:[[913],256],120721:[[914],256],120722:[[915],256],120723:[[916],256],120724:[[917],256],120725:[[918],256],120726:[[919],256],120727:[[920],256],120728:[[921],256],120729:[[922],256],120730:[[923],256],120731:[[924],256],120732:[[925],256],120733:[[926],256],120734:[[927],256],120735:[[928],256],120736:[[929],256],120737:[[1012],256],120738:[[931],256],120739:[[932],256],120740:[[933],256],120741:[[934],256],120742:[[935],256],120743:[[936],256],120744:[[937],256],120745:[[8711],256],120746:[[945],256],120747:[[946],256],120748:[[947],256],120749:[[948],256],120750:[[949],256],120751:[[950],256],120752:[[951],256],120753:[[952],256],120754:[[953],256],120755:[[954],256],120756:[[955],256],120757:[[956],256],120758:[[957],256],120759:[[958],256],120760:[[959],256],120761:[[960],256],120762:[[961],256],120763:[[962],256],120764:[[963],256],120765:[[964],256],120766:[[965],256],120767:[[966],256],120768:[[967],256],120769:[[968],256],120770:[[969],256],120771:[[8706],256],120772:[[1013],256],120773:[[977],256],120774:[[1008],256],120775:[[981],256],120776:[[1009],256],120777:[[982],256],120778:[[988],256],120779:[[989],256],120782:[[48],256],120783:[[49],256],120784:[[50],256],120785:[[51],256],120786:[[52],256],120787:[[53],256],120788:[[54],256],120789:[[55],256],120790:[[56],256],120791:[[57],256],120792:[[48],256],120793:[[49],256],120794:[[50],256],120795:[[51],256],120796:[[52],256],120797:[[53],256],120798:[[54],256],120799:[[55],256],120800:[[56],256],120801:[[57],256],120802:[[48],256],120803:[[49],256],120804:[[50],256],120805:[[51],256],120806:[[52],256],120807:[[53],256],120808:[[54],256],120809:[[55],256],120810:[[56],256],120811:[[57],256],120812:[[48],256],120813:[[49],256],120814:[[50],256],120815:[[51],256],120816:[[52],256],120817:[[53],256],120818:[[54],256],120819:[[55],256],120820:[[56],256],120821:[[57],256],120822:[[48],256],120823:[[49],256],120824:[[50],256],120825:[[51],256],120826:[[52],256],120827:[[53],256],120828:[[54],256],120829:[[55],256],120830:[[56],256],120831:[[57],256]},59392:{125136:[,220],125137:[,220],125138:[,220],125139:[,220],125140:[,220],125141:[,220],125142:[,220]},60928:{126464:[[1575],256],126465:[[1576],256],126466:[[1580],256],126467:[[1583],256],126469:[[1608],256],126470:[[1586],256],126471:[[1581],256],126472:[[1591],256],126473:[[1610],256],126474:[[1603],256],126475:[[1604],256],126476:[[1605],256],126477:[[1606],256],126478:[[1587],256],126479:[[1593],256],126480:[[1601],256],126481:[[1589],256],126482:[[1602],256],126483:[[1585],256],126484:[[1588],256],126485:[[1578],256],126486:[[1579],256],126487:[[1582],256],126488:[[1584],256],126489:[[1590],256],126490:[[1592],256],126491:[[1594],256],126492:[[1646],256],126493:[[1722],256],126494:[[1697],256],126495:[[1647],256],126497:[[1576],256],126498:[[1580],256],126500:[[1607],256],126503:[[1581],256],126505:[[1610],256],126506:[[1603],256],126507:[[1604],256],126508:[[1605],256],126509:[[1606],256],126510:[[1587],256],126511:[[1593],256],126512:[[1601],256],126513:[[1589],256],126514:[[1602],256],126516:[[1588],256],126517:[[1578],256],126518:[[1579],256],126519:[[1582],256],126521:[[1590],256],126523:[[1594],256],126530:[[1580],256],126535:[[1581],256],126537:[[1610],256],126539:[[1604],256],126541:[[1606],256],126542:[[1587],256],126543:[[1593],256],126545:[[1589],256],126546:[[1602],256],126548:[[1588],256],126551:[[1582],256],126553:[[1590],256],126555:[[1594],256],126557:[[1722],256],126559:[[1647],256],126561:[[1576],256],126562:[[1580],256],126564:[[1607],256],126567:[[1581],256],126568:[[1591],256],126569:[[1610],256],126570:[[1603],256],126572:[[1605],256],126573:[[1606],256],126574:[[1587],256],126575:[[1593],256],126576:[[1601],256],126577:[[1589],256],126578:[[1602],256],126580:[[1588],256],126581:[[1578],256],126582:[[1579],256],126583:[[1582],256],126585:[[1590],256],126586:[[1592],256],126587:[[1594],256],126588:[[1646],256],126590:[[1697],256],126592:[[1575],256],126593:[[1576],256],126594:[[1580],256],126595:[[1583],256],126596:[[1607],256],126597:[[1608],256],126598:[[1586],256],126599:[[1581],256],126600:[[1591],256],126601:[[1610],256],126603:[[1604],256],126604:[[1605],256],126605:[[1606],256],126606:[[1587],256],126607:[[1593],256],126608:[[1601],256],126609:[[1589],256],126610:[[1602],256],126611:[[1585],256],126612:[[1588],256],126613:[[1578],256],126614:[[1579],256],126615:[[1582],256],126616:[[1584],256],126617:[[1590],256],126618:[[1592],256],126619:[[1594],256],126625:[[1576],256],126626:[[1580],256],126627:[[1583],256],126629:[[1608],256],126630:[[1586],256],126631:[[1581],256],126632:[[1591],256],126633:[[1610],256],126635:[[1604],256],126636:[[1605],256],126637:[[1606],256],126638:[[1587],256],126639:[[1593],256],126640:[[1601],256],126641:[[1589],256],126642:[[1602],256],126643:[[1585],256],126644:[[1588],256],126645:[[1578],256],126646:[[1579],256],126647:[[1582],256],126648:[[1584],256],126649:[[1590],256],126650:[[1592],256],126651:[[1594],256]},61696:{127232:[[48,46],256],127233:[[48,44],256],127234:[[49,44],256],127235:[[50,44],256],127236:[[51,44],256],127237:[[52,44],256],127238:[[53,44],256],127239:[[54,44],256],127240:[[55,44],256],127241:[[56,44],256],127242:[[57,44],256],127248:[[40,65,41],256],127249:[[40,66,41],256],127250:[[40,67,41],256],127251:[[40,68,41],256],127252:[[40,69,41],256],127253:[[40,70,41],256],127254:[[40,71,41],256],127255:[[40,72,41],256],127256:[[40,73,41],256],127257:[[40,74,41],256],127258:[[40,75,41],256],127259:[[40,76,41],256],127260:[[40,77,41],256],127261:[[40,78,41],256],127262:[[40,79,41],256],127263:[[40,80,41],256],127264:[[40,81,41],256],127265:[[40,82,41],256],127266:[[40,83,41],256],127267:[[40,84,41],256],127268:[[40,85,41],256],127269:[[40,86,41],256],127270:[[40,87,41],256],127271:[[40,88,41],256],127272:[[40,89,41],256],127273:[[40,90,41],256],127274:[[12308,83,12309],256],127275:[[67],256],127276:[[82],256],127277:[[67,68],256],127278:[[87,90],256],127280:[[65],256],127281:[[66],256],127282:[[67],256],127283:[[68],256],127284:[[69],256],127285:[[70],256],127286:[[71],256],127287:[[72],256],127288:[[73],256],127289:[[74],256],127290:[[75],256],127291:[[76],256],127292:[[77],256],127293:[[78],256],127294:[[79],256],127295:[[80],256],127296:[[81],256],127297:[[82],256],127298:[[83],256],127299:[[84],256],127300:[[85],256],127301:[[86],256],127302:[[87],256],127303:[[88],256],127304:[[89],256],127305:[[90],256],127306:[[72,86],256],127307:[[77,86],256],127308:[[83,68],256],127309:[[83,83],256],127310:[[80,80,86],256],127311:[[87,67],256],127338:[[77,67],256],127339:[[77,68],256],127376:[[68,74],256]},61952:{127488:[[12411,12363],256],127489:[[12467,12467],256],127490:[[12469],256],127504:[[25163],256],127505:[[23383],256],127506:[[21452],256],127507:[[12487],256],127508:[[20108],256],127509:[[22810],256],127510:[[35299],256],127511:[[22825],256],127512:[[20132],256],127513:[[26144],256],127514:[[28961],256],127515:[[26009],256],127516:[[21069],256],127517:[[24460],256],127518:[[20877],256],127519:[[26032],256],127520:[[21021],256],127521:[[32066],256],127522:[[29983],256],127523:[[36009],256],127524:[[22768],256],127525:[[21561],256],127526:[[28436],256],127527:[[25237],256],127528:[[25429],256],127529:[[19968],256],127530:[[19977],256],127531:[[36938],256],127532:[[24038],256],127533:[[20013],256],127534:[[21491],256],127535:[[25351],256],127536:[[36208],256],127537:[[25171],256],127538:[[31105],256],127539:[[31354],256],127540:[[21512],256],127541:[[28288],256],127542:[[26377],256],127543:[[26376],256],127544:[[30003],256],127545:[[21106],256],127546:[[21942],256],127552:[[12308,26412,12309],256],127553:[[12308,19977,12309],256],127554:[[12308,20108,12309],256],127555:[[12308,23433,12309],256],127556:[[12308,28857,12309],256],127557:[[12308,25171,12309],256],127558:[[12308,30423,12309],256],127559:[[12308,21213,12309],256],127560:[[12308,25943,12309],256],127568:[[24471],256],127569:[[21487],256]},63488:{194560:[[20029]],194561:[[20024]],194562:[[20033]],194563:[[131362]],194564:[[20320]],194565:[[20398]],194566:[[20411]],194567:[[20482]],194568:[[20602]],194569:[[20633]],194570:[[20711]],194571:[[20687]],194572:[[13470]],194573:[[132666]],194574:[[20813]],194575:[[20820]],194576:[[20836]],194577:[[20855]],194578:[[132380]],194579:[[13497]],194580:[[20839]],194581:[[20877]],194582:[[132427]],194583:[[20887]],194584:[[20900]],194585:[[20172]],194586:[[20908]],194587:[[20917]],194588:[[168415]],194589:[[20981]],194590:[[20995]],194591:[[13535]],194592:[[21051]],194593:[[21062]],194594:[[21106]],194595:[[21111]],194596:[[13589]],194597:[[21191]],194598:[[21193]],194599:[[21220]],194600:[[21242]],194601:[[21253]],194602:[[21254]],194603:[[21271]],194604:[[21321]],194605:[[21329]],194606:[[21338]],194607:[[21363]],194608:[[21373]],194609:[[21375]],194610:[[21375]],194611:[[21375]],194612:[[133676]],194613:[[28784]],194614:[[21450]],194615:[[21471]],194616:[[133987]],194617:[[21483]],194618:[[21489]],194619:[[21510]],194620:[[21662]],194621:[[21560]],194622:[[21576]],194623:[[21608]],194624:[[21666]],194625:[[21750]],194626:[[21776]],194627:[[21843]],194628:[[21859]],194629:[[21892]],194630:[[21892]],194631:[[21913]],194632:[[21931]],194633:[[21939]],194634:[[21954]],194635:[[22294]],194636:[[22022]],194637:[[22295]],194638:[[22097]],194639:[[22132]],194640:[[20999]],194641:[[22766]],194642:[[22478]],194643:[[22516]],194644:[[22541]],194645:[[22411]],194646:[[22578]],194647:[[22577]],194648:[[22700]],194649:[[136420]],194650:[[22770]],194651:[[22775]],194652:[[22790]],194653:[[22810]],194654:[[22818]],194655:[[22882]],194656:[[136872]],194657:[[136938]],194658:[[23020]],194659:[[23067]],194660:[[23079]],194661:[[23e3]],194662:[[23142]],194663:[[14062]],194664:[[14076]],194665:[[23304]],194666:[[23358]],194667:[[23358]],194668:[[137672]],194669:[[23491]],194670:[[23512]],194671:[[23527]],194672:[[23539]],194673:[[138008]],194674:[[23551]],194675:[[23558]],194676:[[24403]],194677:[[23586]],194678:[[14209]],194679:[[23648]],194680:[[23662]],194681:[[23744]],194682:[[23693]],194683:[[138724]],194684:[[23875]],194685:[[138726]],194686:[[23918]],194687:[[23915]],194688:[[23932]],194689:[[24033]],194690:[[24034]],194691:[[14383]],194692:[[24061]],194693:[[24104]],194694:[[24125]],194695:[[24169]],194696:[[14434]],194697:[[139651]],194698:[[14460]],194699:[[24240]],194700:[[24243]],194701:[[24246]],194702:[[24266]],194703:[[172946]],194704:[[24318]],194705:[[140081]],194706:[[140081]],194707:[[33281]],194708:[[24354]],194709:[[24354]],194710:[[14535]],194711:[[144056]],194712:[[156122]],194713:[[24418]],194714:[[24427]],194715:[[14563]],194716:[[24474]],194717:[[24525]],194718:[[24535]],194719:[[24569]],194720:[[24705]],194721:[[14650]],194722:[[14620]],194723:[[24724]],194724:[[141012]],194725:[[24775]],194726:[[24904]],194727:[[24908]],194728:[[24910]],194729:[[24908]],194730:[[24954]],194731:[[24974]],194732:[[25010]],194733:[[24996]],194734:[[25007]],194735:[[25054]],194736:[[25074]],194737:[[25078]],194738:[[25104]],194739:[[25115]],194740:[[25181]],194741:[[25265]],194742:[[25300]],194743:[[25424]],194744:[[142092]],194745:[[25405]],194746:[[25340]],194747:[[25448]],194748:[[25475]],194749:[[25572]],194750:[[142321]],194751:[[25634]],194752:[[25541]],194753:[[25513]],194754:[[14894]],194755:[[25705]],194756:[[25726]],194757:[[25757]],194758:[[25719]],194759:[[14956]],194760:[[25935]],194761:[[25964]],194762:[[143370]],194763:[[26083]],194764:[[26360]],194765:[[26185]],194766:[[15129]],194767:[[26257]],194768:[[15112]],194769:[[15076]],194770:[[20882]],194771:[[20885]],194772:[[26368]],194773:[[26268]],194774:[[32941]],194775:[[17369]],194776:[[26391]],194777:[[26395]],194778:[[26401]],194779:[[26462]],194780:[[26451]],194781:[[144323]],194782:[[15177]],194783:[[26618]],194784:[[26501]],194785:[[26706]],194786:[[26757]],194787:[[144493]],194788:[[26766]],194789:[[26655]],194790:[[26900]],194791:[[15261]],194792:[[26946]],194793:[[27043]],194794:[[27114]],194795:[[27304]],194796:[[145059]],194797:[[27355]],194798:[[15384]],194799:[[27425]],194800:[[145575]],194801:[[27476]],194802:[[15438]],194803:[[27506]],194804:[[27551]],194805:[[27578]],194806:[[27579]],194807:[[146061]],194808:[[138507]],194809:[[146170]],194810:[[27726]],194811:[[146620]],194812:[[27839]],194813:[[27853]],194814:[[27751]],194815:[[27926]]},63744:{63744:[[35912]],63745:[[26356]],63746:[[36554]],63747:[[36040]],63748:[[28369]],63749:[[20018]],63750:[[21477]],63751:[[40860]],63752:[[40860]],63753:[[22865]],63754:[[37329]],63755:[[21895]],63756:[[22856]],63757:[[25078]],63758:[[30313]],63759:[[32645]],63760:[[34367]],63761:[[34746]],63762:[[35064]],63763:[[37007]],63764:[[27138]],63765:[[27931]],63766:[[28889]],63767:[[29662]],63768:[[33853]],63769:[[37226]],63770:[[39409]],63771:[[20098]],63772:[[21365]],63773:[[27396]],63774:[[29211]],63775:[[34349]],63776:[[40478]],63777:[[23888]],63778:[[28651]],63779:[[34253]],63780:[[35172]],63781:[[25289]],63782:[[33240]],63783:[[34847]],63784:[[24266]],63785:[[26391]],63786:[[28010]],63787:[[29436]],63788:[[37070]],63789:[[20358]],63790:[[20919]],63791:[[21214]],63792:[[25796]],63793:[[27347]],63794:[[29200]],63795:[[30439]],63796:[[32769]],63797:[[34310]],63798:[[34396]],63799:[[36335]],63800:[[38706]],63801:[[39791]],63802:[[40442]],63803:[[30860]],63804:[[31103]],63805:[[32160]],63806:[[33737]],63807:[[37636]],63808:[[40575]],63809:[[35542]],63810:[[22751]],63811:[[24324]],63812:[[31840]],63813:[[32894]],63814:[[29282]],63815:[[30922]],63816:[[36034]],63817:[[38647]],63818:[[22744]],63819:[[23650]],63820:[[27155]],63821:[[28122]],63822:[[28431]],63823:[[32047]],63824:[[32311]],63825:[[38475]],63826:[[21202]],63827:[[32907]],63828:[[20956]],63829:[[20940]],63830:[[31260]],63831:[[32190]],63832:[[33777]],63833:[[38517]],63834:[[35712]],63835:[[25295]],63836:[[27138]],63837:[[35582]],63838:[[20025]],63839:[[23527]],63840:[[24594]],63841:[[29575]],63842:[[30064]],63843:[[21271]],63844:[[30971]],63845:[[20415]],63846:[[24489]],63847:[[19981]],63848:[[27852]],63849:[[25976]],63850:[[32034]],63851:[[21443]],63852:[[22622]],63853:[[30465]],63854:[[33865]],63855:[[35498]],63856:[[27578]],63857:[[36784]],63858:[[27784]],63859:[[25342]],63860:[[33509]],63861:[[25504]],63862:[[30053]],63863:[[20142]],63864:[[20841]],63865:[[20937]],63866:[[26753]],63867:[[31975]],63868:[[33391]],63869:[[35538]],63870:[[37327]],63871:[[21237]],63872:[[21570]],63873:[[22899]],63874:[[24300]],63875:[[26053]],63876:[[28670]],63877:[[31018]],63878:[[38317]],63879:[[39530]],63880:[[40599]],63881:[[40654]],63882:[[21147]],63883:[[26310]],63884:[[27511]],63885:[[36706]],63886:[[24180]],63887:[[24976]],63888:[[25088]],63889:[[25754]],63890:[[28451]],63891:[[29001]],63892:[[29833]],63893:[[31178]],63894:[[32244]],63895:[[32879]],63896:[[36646]],63897:[[34030]],63898:[[36899]],63899:[[37706]],63900:[[21015]],63901:[[21155]],63902:[[21693]],63903:[[28872]],63904:[[35010]],63905:[[35498]],63906:[[24265]],63907:[[24565]],63908:[[25467]],63909:[[27566]],63910:[[31806]],63911:[[29557]],63912:[[20196]],63913:[[22265]],63914:[[23527]],63915:[[23994]],63916:[[24604]],63917:[[29618]],63918:[[29801]],63919:[[32666]],63920:[[32838]],63921:[[37428]],63922:[[38646]],63923:[[38728]],63924:[[38936]],63925:[[20363]],63926:[[31150]],63927:[[37300]],63928:[[38584]],63929:[[24801]],63930:[[20102]],63931:[[20698]],63932:[[23534]],63933:[[23615]],63934:[[26009]],63935:[[27138]],63936:[[29134]],63937:[[30274]],63938:[[34044]],63939:[[36988]],63940:[[40845]],63941:[[26248]],63942:[[38446]],63943:[[21129]],63944:[[26491]],63945:[[26611]],63946:[[27969]],63947:[[28316]],63948:[[29705]],63949:[[30041]],63950:[[30827]],63951:[[32016]],63952:[[39006]],63953:[[20845]],63954:[[25134]],63955:[[38520]],63956:[[20523]],63957:[[23833]],63958:[[28138]],63959:[[36650]],63960:[[24459]],63961:[[24900]],63962:[[26647]],63963:[[29575]],63964:[[38534]],63965:[[21033]],63966:[[21519]],63967:[[23653]],63968:[[26131]],63969:[[26446]],63970:[[26792]],63971:[[27877]],63972:[[29702]],63973:[[30178]],63974:[[32633]],63975:[[35023]],63976:[[35041]],63977:[[37324]],63978:[[38626]],63979:[[21311]],63980:[[28346]],63981:[[21533]],63982:[[29136]],63983:[[29848]],63984:[[34298]],63985:[[38563]],63986:[[40023]],63987:[[40607]],63988:[[26519]],63989:[[28107]],63990:[[33256]],63991:[[31435]],63992:[[31520]],63993:[[31890]],63994:[[29376]],63995:[[28825]],63996:[[35672]],63997:[[20160]],63998:[[33590]],63999:[[21050]],194816:[[27966]],194817:[[28023]],194818:[[27969]],194819:[[28009]],194820:[[28024]],194821:[[28037]],194822:[[146718]],194823:[[27956]],194824:[[28207]],194825:[[28270]],194826:[[15667]],194827:[[28363]],194828:[[28359]],194829:[[147153]],194830:[[28153]],194831:[[28526]],194832:[[147294]],194833:[[147342]],194834:[[28614]],194835:[[28729]],194836:[[28702]],194837:[[28699]],194838:[[15766]],194839:[[28746]],194840:[[28797]],194841:[[28791]],194842:[[28845]],194843:[[132389]],194844:[[28997]],194845:[[148067]],194846:[[29084]],194847:[[148395]],194848:[[29224]],194849:[[29237]],194850:[[29264]],194851:[[149e3]],194852:[[29312]],194853:[[29333]],194854:[[149301]],194855:[[149524]],194856:[[29562]],194857:[[29579]],194858:[[16044]],194859:[[29605]],194860:[[16056]],194861:[[16056]],194862:[[29767]],194863:[[29788]],194864:[[29809]],194865:[[29829]],194866:[[29898]],194867:[[16155]],194868:[[29988]],194869:[[150582]],194870:[[30014]],194871:[[150674]],194872:[[30064]],194873:[[139679]],194874:[[30224]],194875:[[151457]],194876:[[151480]],194877:[[151620]],194878:[[16380]],194879:[[16392]],194880:[[30452]],194881:[[151795]],194882:[[151794]],194883:[[151833]],194884:[[151859]],194885:[[30494]],194886:[[30495]],194887:[[30495]],194888:[[30538]],194889:[[16441]],194890:[[30603]],194891:[[16454]],194892:[[16534]],194893:[[152605]],194894:[[30798]],194895:[[30860]],194896:[[30924]],194897:[[16611]],194898:[[153126]],194899:[[31062]],194900:[[153242]],194901:[[153285]],194902:[[31119]],194903:[[31211]],194904:[[16687]],194905:[[31296]],194906:[[31306]],194907:[[31311]],194908:[[153980]],194909:[[154279]],194910:[[154279]],194911:[[31470]],194912:[[16898]],194913:[[154539]],194914:[[31686]],194915:[[31689]],194916:[[16935]],194917:[[154752]],194918:[[31954]],194919:[[17056]],194920:[[31976]],194921:[[31971]],194922:[[32e3]],194923:[[155526]],194924:[[32099]],194925:[[17153]],194926:[[32199]],194927:[[32258]],194928:[[32325]],194929:[[17204]],194930:[[156200]],194931:[[156231]],194932:[[17241]],194933:[[156377]],194934:[[32634]],194935:[[156478]],194936:[[32661]],194937:[[32762]],194938:[[32773]],194939:[[156890]],194940:[[156963]],194941:[[32864]],194942:[[157096]],194943:[[32880]],194944:[[144223]],194945:[[17365]],194946:[[32946]],194947:[[33027]],194948:[[17419]],194949:[[33086]],194950:[[23221]],194951:[[157607]],194952:[[157621]],194953:[[144275]],194954:[[144284]],194955:[[33281]],194956:[[33284]],194957:[[36766]],194958:[[17515]],194959:[[33425]],194960:[[33419]],194961:[[33437]],194962:[[21171]],194963:[[33457]],194964:[[33459]],194965:[[33469]],194966:[[33510]],194967:[[158524]],194968:[[33509]],194969:[[33565]],194970:[[33635]],194971:[[33709]],194972:[[33571]],194973:[[33725]],194974:[[33767]],194975:[[33879]],194976:[[33619]],194977:[[33738]],194978:[[33740]],194979:[[33756]],194980:[[158774]],194981:[[159083]],194982:[[158933]],194983:[[17707]],194984:[[34033]],194985:[[34035]],194986:[[34070]],194987:[[160714]],194988:[[34148]],194989:[[159532]],194990:[[17757]],194991:[[17761]],194992:[[159665]],194993:[[159954]],194994:[[17771]],194995:[[34384]],194996:[[34396]],194997:[[34407]],194998:[[34409]],194999:[[34473]],195e3:[[34440]],195001:[[34574]],195002:[[34530]],195003:[[34681]],195004:[[34600]],195005:[[34667]],195006:[[34694]],195007:[[17879]],195008:[[34785]],195009:[[34817]],195010:[[17913]],195011:[[34912]],195012:[[34915]],195013:[[161383]],195014:[[35031]],195015:[[35038]],195016:[[17973]],195017:[[35066]],195018:[[13499]],195019:[[161966]],195020:[[162150]],195021:[[18110]],195022:[[18119]],195023:[[35488]],195024:[[35565]],195025:[[35722]],195026:[[35925]],195027:[[162984]],195028:[[36011]],195029:[[36033]],195030:[[36123]],195031:[[36215]],195032:[[163631]],195033:[[133124]],195034:[[36299]],195035:[[36284]],195036:[[36336]],195037:[[133342]],195038:[[36564]],195039:[[36664]],195040:[[165330]],195041:[[165357]],195042:[[37012]],195043:[[37105]],195044:[[37137]],195045:[[165678]],195046:[[37147]],195047:[[37432]],195048:[[37591]],195049:[[37592]],195050:[[37500]],195051:[[37881]],195052:[[37909]],195053:[[166906]],195054:[[38283]],195055:[[18837]],195056:[[38327]],195057:[[167287]],195058:[[18918]],195059:[[38595]],195060:[[23986]],195061:[[38691]],195062:[[168261]],195063:[[168474]],195064:[[19054]],195065:[[19062]],195066:[[38880]],195067:[[168970]],195068:[[19122]],195069:[[169110]],195070:[[38923]],195071:[[38923]]},64e3:{64e3:[[20999]],64001:[[24230]],64002:[[25299]],64003:[[31958]],64004:[[23429]],64005:[[27934]],64006:[[26292]],64007:[[36667]],64008:[[34892]],64009:[[38477]],64010:[[35211]],64011:[[24275]],64012:[[20800]],64013:[[21952]],64016:[[22618]],64018:[[26228]],64021:[[20958]],64022:[[29482]],64023:[[30410]],64024:[[31036]],64025:[[31070]],64026:[[31077]],64027:[[31119]],64028:[[38742]],64029:[[31934]],64030:[[32701]],64032:[[34322]],64034:[[35576]],64037:[[36920]],64038:[[37117]],64042:[[39151]],64043:[[39164]],64044:[[39208]],64045:[[40372]],64046:[[37086]],64047:[[38583]],64048:[[20398]],64049:[[20711]],64050:[[20813]],64051:[[21193]],64052:[[21220]],64053:[[21329]],64054:[[21917]],64055:[[22022]],64056:[[22120]],64057:[[22592]],64058:[[22696]],64059:[[23652]],64060:[[23662]],64061:[[24724]],64062:[[24936]],64063:[[24974]],64064:[[25074]],64065:[[25935]],64066:[[26082]],64067:[[26257]],64068:[[26757]],64069:[[28023]],64070:[[28186]],64071:[[28450]],64072:[[29038]],64073:[[29227]],64074:[[29730]],64075:[[30865]],64076:[[31038]],64077:[[31049]],64078:[[31048]],64079:[[31056]],64080:[[31062]],64081:[[31069]],64082:[[31117]],64083:[[31118]],64084:[[31296]],64085:[[31361]],64086:[[31680]],64087:[[32244]],64088:[[32265]],64089:[[32321]],64090:[[32626]],64091:[[32773]],64092:[[33261]],64093:[[33401]],64094:[[33401]],64095:[[33879]],64096:[[35088]],64097:[[35222]],64098:[[35585]],64099:[[35641]],64100:[[36051]],64101:[[36104]],64102:[[36790]],64103:[[36920]],64104:[[38627]],64105:[[38911]],64106:[[38971]],64107:[[24693]],64108:[[148206]],64109:[[33304]],64112:[[20006]],64113:[[20917]],64114:[[20840]],64115:[[20352]],64116:[[20805]],64117:[[20864]],64118:[[21191]],64119:[[21242]],64120:[[21917]],64121:[[21845]],64122:[[21913]],64123:[[21986]],64124:[[22618]],64125:[[22707]],64126:[[22852]],64127:[[22868]],64128:[[23138]],64129:[[23336]],64130:[[24274]],64131:[[24281]],64132:[[24425]],64133:[[24493]],64134:[[24792]],64135:[[24910]],64136:[[24840]],64137:[[24974]],64138:[[24928]],64139:[[25074]],64140:[[25140]],64141:[[25540]],64142:[[25628]],64143:[[25682]],64144:[[25942]],64145:[[26228]],64146:[[26391]],64147:[[26395]],64148:[[26454]],64149:[[27513]],64150:[[27578]],64151:[[27969]],64152:[[28379]],64153:[[28363]],64154:[[28450]],64155:[[28702]],64156:[[29038]],64157:[[30631]],64158:[[29237]],64159:[[29359]],64160:[[29482]],64161:[[29809]],64162:[[29958]],64163:[[30011]],64164:[[30237]],64165:[[30239]],64166:[[30410]],64167:[[30427]],64168:[[30452]],64169:[[30538]],64170:[[30528]],64171:[[30924]],64172:[[31409]],64173:[[31680]],64174:[[31867]],64175:[[32091]],64176:[[32244]],64177:[[32574]],64178:[[32773]],64179:[[33618]],64180:[[33775]],64181:[[34681]],64182:[[35137]],64183:[[35206]],64184:[[35222]],64185:[[35519]],64186:[[35576]],64187:[[35531]],64188:[[35585]],64189:[[35582]],64190:[[35565]],64191:[[35641]],64192:[[35722]],64193:[[36104]],64194:[[36664]],64195:[[36978]],64196:[[37273]],64197:[[37494]],64198:[[38524]],64199:[[38627]],64200:[[38742]],64201:[[38875]],64202:[[38911]],64203:[[38923]],64204:[[38971]],64205:[[39698]],64206:[[40860]],64207:[[141386]],64208:[[141380]],64209:[[144341]],64210:[[15261]],64211:[[16408]],64212:[[16441]],64213:[[152137]],64214:[[154832]],64215:[[163539]],64216:[[40771]],64217:[[40846]],195072:[[38953]],195073:[[169398]],195074:[[39138]],195075:[[19251]],195076:[[39209]],195077:[[39335]],195078:[[39362]],195079:[[39422]],195080:[[19406]],195081:[[170800]],195082:[[39698]],195083:[[4e4]],195084:[[40189]],195085:[[19662]],195086:[[19693]],195087:[[40295]],195088:[[172238]],195089:[[19704]],195090:[[172293]],195091:[[172558]],195092:[[172689]],195093:[[40635]],195094:[[19798]],195095:[[40697]],195096:[[40702]],195097:[[40709]],195098:[[40719]],195099:[[40726]],195100:[[40763]],195101:[[173568]]},64256:{64256:[[102,102],256],64257:[[102,105],256],64258:[[102,108],256],64259:[[102,102,105],256],64260:[[102,102,108],256],64261:[[383,116],256],64262:[[115,116],256],64275:[[1396,1398],256],64276:[[1396,1381],256],64277:[[1396,1387],256],64278:[[1406,1398],256],64279:[[1396,1389],256],64285:[[1497,1460],512],64286:[,26],64287:[[1522,1463],512],64288:[[1506],256],64289:[[1488],256],64290:[[1491],256],64291:[[1492],256],64292:[[1499],256],64293:[[1500],256],64294:[[1501],256],64295:[[1512],256],64296:[[1514],256],64297:[[43],256],64298:[[1513,1473],512],64299:[[1513,1474],512],64300:[[64329,1473],512],64301:[[64329,1474],512],64302:[[1488,1463],512],64303:[[1488,1464],512],64304:[[1488,1468],512],64305:[[1489,1468],512],64306:[[1490,1468],512],64307:[[1491,1468],512],64308:[[1492,1468],512],64309:[[1493,1468],512],64310:[[1494,1468],512],64312:[[1496,1468],512],64313:[[1497,1468],512],64314:[[1498,1468],512],64315:[[1499,1468],512],64316:[[1500,1468],512],64318:[[1502,1468],512],64320:[[1504,1468],512],64321:[[1505,1468],512],64323:[[1507,1468],512],64324:[[1508,1468],512],64326:[[1510,1468],512],64327:[[1511,1468],512],64328:[[1512,1468],512],64329:[[1513,1468],512],64330:[[1514,1468],512],64331:[[1493,1465],512],64332:[[1489,1471],512],64333:[[1499,1471],512],64334:[[1508,1471],512],64335:[[1488,1500],256],64336:[[1649],256],64337:[[1649],256],64338:[[1659],256],64339:[[1659],256],64340:[[1659],256],64341:[[1659],256],64342:[[1662],256],64343:[[1662],256],64344:[[1662],256],64345:[[1662],256],64346:[[1664],256],64347:[[1664],256],64348:[[1664],256],64349:[[1664],256],64350:[[1658],256],64351:[[1658],256],64352:[[1658],256],64353:[[1658],256],64354:[[1663],256],64355:[[1663],256],64356:[[1663],256],64357:[[1663],256],64358:[[1657],256],64359:[[1657],256],64360:[[1657],256],64361:[[1657],256],64362:[[1700],256],64363:[[1700],256],64364:[[1700],256],64365:[[1700],256],64366:[[1702],256],64367:[[1702],256],64368:[[1702],256],64369:[[1702],256],64370:[[1668],256],64371:[[1668],256],64372:[[1668],256],64373:[[1668],256],64374:[[1667],256],64375:[[1667],256],64376:[[1667],256],64377:[[1667],256],64378:[[1670],256],64379:[[1670],256],64380:[[1670],256],64381:[[1670],256],64382:[[1671],256],64383:[[1671],256],64384:[[1671],256],64385:[[1671],256],64386:[[1677],256],64387:[[1677],256],64388:[[1676],256],64389:[[1676],256],64390:[[1678],256],64391:[[1678],256],64392:[[1672],256],64393:[[1672],256],64394:[[1688],256],64395:[[1688],256],64396:[[1681],256],64397:[[1681],256],64398:[[1705],256],64399:[[1705],256],64400:[[1705],256],64401:[[1705],256],64402:[[1711],256],64403:[[1711],256],64404:[[1711],256],64405:[[1711],256],64406:[[1715],256],64407:[[1715],256],64408:[[1715],256],64409:[[1715],256],64410:[[1713],256],64411:[[1713],256],64412:[[1713],256],64413:[[1713],256],64414:[[1722],256],64415:[[1722],256],64416:[[1723],256],64417:[[1723],256],64418:[[1723],256],64419:[[1723],256],64420:[[1728],256],64421:[[1728],256],64422:[[1729],256],64423:[[1729],256],64424:[[1729],256],64425:[[1729],256],64426:[[1726],256],64427:[[1726],256],64428:[[1726],256],64429:[[1726],256],64430:[[1746],256],64431:[[1746],256],64432:[[1747],256],64433:[[1747],256],64467:[[1709],256],64468:[[1709],256],64469:[[1709],256],64470:[[1709],256],64471:[[1735],256],64472:[[1735],256],64473:[[1734],256],64474:[[1734],256],64475:[[1736],256],64476:[[1736],256],64477:[[1655],256],64478:[[1739],256],64479:[[1739],256],64480:[[1733],256],64481:[[1733],256],64482:[[1737],256],64483:[[1737],256],64484:[[1744],256],64485:[[1744],256],64486:[[1744],256],64487:[[1744],256],64488:[[1609],256],64489:[[1609],256],64490:[[1574,1575],256],64491:[[1574,1575],256],64492:[[1574,1749],256],64493:[[1574,1749],256],64494:[[1574,1608],256],64495:[[1574,1608],256],64496:[[1574,1735],256],64497:[[1574,1735],256],64498:[[1574,1734],256],64499:[[1574,1734],256],64500:[[1574,1736],256],64501:[[1574,1736],256],64502:[[1574,1744],256],64503:[[1574,1744],256],64504:[[1574,1744],256],64505:[[1574,1609],256],64506:[[1574,1609],256],64507:[[1574,1609],256],64508:[[1740],256],64509:[[1740],256],64510:[[1740],256],64511:[[1740],256]},64512:{64512:[[1574,1580],256],64513:[[1574,1581],256],64514:[[1574,1605],256],64515:[[1574,1609],256],64516:[[1574,1610],256],64517:[[1576,1580],256],64518:[[1576,1581],256],64519:[[1576,1582],256],64520:[[1576,1605],256],64521:[[1576,1609],256],64522:[[1576,1610],256],64523:[[1578,1580],256],64524:[[1578,1581],256],64525:[[1578,1582],256],64526:[[1578,1605],256],64527:[[1578,1609],256],64528:[[1578,1610],256],64529:[[1579,1580],256],64530:[[1579,1605],256],64531:[[1579,1609],256],64532:[[1579,1610],256],64533:[[1580,1581],256],64534:[[1580,1605],256],64535:[[1581,1580],256],64536:[[1581,1605],256],64537:[[1582,1580],256],64538:[[1582,1581],256],64539:[[1582,1605],256],64540:[[1587,1580],256],64541:[[1587,1581],256],64542:[[1587,1582],256],64543:[[1587,1605],256],64544:[[1589,1581],256],64545:[[1589,1605],256],64546:[[1590,1580],256],64547:[[1590,1581],256],64548:[[1590,1582],256],64549:[[1590,1605],256],64550:[[1591,1581],256],64551:[[1591,1605],256],64552:[[1592,1605],256],64553:[[1593,1580],256],64554:[[1593,1605],256],64555:[[1594,1580],256],64556:[[1594,1605],256],64557:[[1601,1580],256],64558:[[1601,1581],256],64559:[[1601,1582],256],64560:[[1601,1605],256],64561:[[1601,1609],256],64562:[[1601,1610],256],64563:[[1602,1581],256],64564:[[1602,1605],256],64565:[[1602,1609],256],64566:[[1602,1610],256],64567:[[1603,1575],256],64568:[[1603,1580],256],64569:[[1603,1581],256],64570:[[1603,1582],256],64571:[[1603,1604],256],64572:[[1603,1605],256],64573:[[1603,1609],256],64574:[[1603,1610],256],64575:[[1604,1580],256],64576:[[1604,1581],256],64577:[[1604,1582],256],64578:[[1604,1605],256],64579:[[1604,1609],256],64580:[[1604,1610],256],64581:[[1605,1580],256],64582:[[1605,1581],256],64583:[[1605,1582],256],64584:[[1605,1605],256],64585:[[1605,1609],256],64586:[[1605,1610],256],64587:[[1606,1580],256],64588:[[1606,1581],256],64589:[[1606,1582],256],64590:[[1606,1605],256],64591:[[1606,1609],256],64592:[[1606,1610],256],64593:[[1607,1580],256],64594:[[1607,1605],256],64595:[[1607,1609],256],64596:[[1607,1610],256],64597:[[1610,1580],256],64598:[[1610,1581],256],64599:[[1610,1582],256],64600:[[1610,1605],256],64601:[[1610,1609],256],64602:[[1610,1610],256],64603:[[1584,1648],256],64604:[[1585,1648],256],64605:[[1609,1648],256],64606:[[32,1612,1617],256],64607:[[32,1613,1617],256],64608:[[32,1614,1617],256],64609:[[32,1615,1617],256],64610:[[32,1616,1617],256],64611:[[32,1617,1648],256],64612:[[1574,1585],256],64613:[[1574,1586],256],64614:[[1574,1605],256],64615:[[1574,1606],256],64616:[[1574,1609],256],64617:[[1574,1610],256],64618:[[1576,1585],256],64619:[[1576,1586],256],64620:[[1576,1605],256],64621:[[1576,1606],256],64622:[[1576,1609],256],64623:[[1576,1610],256],64624:[[1578,1585],256],64625:[[1578,1586],256],64626:[[1578,1605],256],64627:[[1578,1606],256],64628:[[1578,1609],256],64629:[[1578,1610],256],64630:[[1579,1585],256],64631:[[1579,1586],256],64632:[[1579,1605],256],64633:[[1579,1606],256],64634:[[1579,1609],256],64635:[[1579,1610],256],64636:[[1601,1609],256],64637:[[1601,1610],256],64638:[[1602,1609],256],64639:[[1602,1610],256],64640:[[1603,1575],256],64641:[[1603,1604],256],64642:[[1603,1605],256],64643:[[1603,1609],256],64644:[[1603,1610],256],64645:[[1604,1605],256],64646:[[1604,1609],256],64647:[[1604,1610],256],64648:[[1605,1575],256],64649:[[1605,1605],256],64650:[[1606,1585],256],64651:[[1606,1586],256],64652:[[1606,1605],256],64653:[[1606,1606],256],64654:[[1606,1609],256],64655:[[1606,1610],256],64656:[[1609,1648],256],64657:[[1610,1585],256],64658:[[1610,1586],256],64659:[[1610,1605],256],64660:[[1610,1606],256],64661:[[1610,1609],256],64662:[[1610,1610],256],64663:[[1574,1580],256],64664:[[1574,1581],256],64665:[[1574,1582],256],64666:[[1574,1605],256],64667:[[1574,1607],256],64668:[[1576,1580],256],64669:[[1576,1581],256],64670:[[1576,1582],256],64671:[[1576,1605],256],64672:[[1576,1607],256],64673:[[1578,1580],256],64674:[[1578,1581],256],64675:[[1578,1582],256],64676:[[1578,1605],256],64677:[[1578,1607],256],64678:[[1579,1605],256],64679:[[1580,1581],256],64680:[[1580,1605],256],64681:[[1581,1580],256],64682:[[1581,1605],256],64683:[[1582,1580],256],64684:[[1582,1605],256],64685:[[1587,1580],256],64686:[[1587,1581],256],64687:[[1587,1582],256],64688:[[1587,1605],256],64689:[[1589,1581],256],64690:[[1589,1582],256],64691:[[1589,1605],256],64692:[[1590,1580],256],64693:[[1590,1581],256],64694:[[1590,1582],256],64695:[[1590,1605],256],64696:[[1591,1581],256],64697:[[1592,1605],256],64698:[[1593,1580],256],64699:[[1593,1605],256],64700:[[1594,1580],256],64701:[[1594,1605],256],64702:[[1601,1580],256],64703:[[1601,1581],256],64704:[[1601,1582],256],64705:[[1601,1605],256],64706:[[1602,1581],256],64707:[[1602,1605],256],64708:[[1603,1580],256],64709:[[1603,1581],256],64710:[[1603,1582],256],64711:[[1603,1604],256],64712:[[1603,1605],256],64713:[[1604,1580],256],64714:[[1604,1581],256],64715:[[1604,1582],256],64716:[[1604,1605],256],64717:[[1604,1607],256],64718:[[1605,1580],256],64719:[[1605,1581],256],64720:[[1605,1582],256],64721:[[1605,1605],256],64722:[[1606,1580],256],64723:[[1606,1581],256],64724:[[1606,1582],256],64725:[[1606,1605],256],64726:[[1606,1607],256],64727:[[1607,1580],256],64728:[[1607,1605],256],64729:[[1607,1648],256],64730:[[1610,1580],256],64731:[[1610,1581],256],64732:[[1610,1582],256],64733:[[1610,1605],256],64734:[[1610,1607],256],64735:[[1574,1605],256],64736:[[1574,1607],256],64737:[[1576,1605],256],64738:[[1576,1607],256],64739:[[1578,1605],256],64740:[[1578,1607],256],64741:[[1579,1605],256],64742:[[1579,1607],256],64743:[[1587,1605],256],64744:[[1587,1607],256],64745:[[1588,1605],256],64746:[[1588,1607],256],64747:[[1603,1604],256],64748:[[1603,1605],256],64749:[[1604,1605],256],64750:[[1606,1605],256],64751:[[1606,1607],256],64752:[[1610,1605],256],64753:[[1610,1607],256],64754:[[1600,1614,1617],256],64755:[[1600,1615,1617],256],64756:[[1600,1616,1617],256],64757:[[1591,1609],256],64758:[[1591,1610],256],64759:[[1593,1609],256],64760:[[1593,1610],256],64761:[[1594,1609],256],64762:[[1594,1610],256],64763:[[1587,1609],256],64764:[[1587,1610],256],64765:[[1588,1609],256],64766:[[1588,1610],256],64767:[[1581,1609],256]},64768:{64768:[[1581,1610],256],64769:[[1580,1609],256],64770:[[1580,1610],256],64771:[[1582,1609],256],64772:[[1582,1610],256],64773:[[1589,1609],256],64774:[[1589,1610],256],64775:[[1590,1609],256],64776:[[1590,1610],256],64777:[[1588,1580],256],64778:[[1588,1581],256],64779:[[1588,1582],256],64780:[[1588,1605],256],64781:[[1588,1585],256],64782:[[1587,1585],256],64783:[[1589,1585],256],64784:[[1590,1585],256],64785:[[1591,1609],256],64786:[[1591,1610],256],64787:[[1593,1609],256],64788:[[1593,1610],256],64789:[[1594,1609],256],64790:[[1594,1610],256],64791:[[1587,1609],256],64792:[[1587,1610],256],64793:[[1588,1609],256],64794:[[1588,1610],256],64795:[[1581,1609],256],64796:[[1581,1610],256],64797:[[1580,1609],256],64798:[[1580,1610],256],64799:[[1582,1609],256],64800:[[1582,1610],256],64801:[[1589,1609],256],64802:[[1589,1610],256],64803:[[1590,1609],256],64804:[[1590,1610],256],64805:[[1588,1580],256],64806:[[1588,1581],256],64807:[[1588,1582],256],64808:[[1588,1605],256],64809:[[1588,1585],256],64810:[[1587,1585],256],64811:[[1589,1585],256],64812:[[1590,1585],256],64813:[[1588,1580],256],64814:[[1588,1581],256],64815:[[1588,1582],256],64816:[[1588,1605],256],64817:[[1587,1607],256],64818:[[1588,1607],256],64819:[[1591,1605],256],64820:[[1587,1580],256],64821:[[1587,1581],256],64822:[[1587,1582],256],64823:[[1588,1580],256],64824:[[1588,1581],256],64825:[[1588,1582],256],64826:[[1591,1605],256],64827:[[1592,1605],256],64828:[[1575,1611],256],64829:[[1575,1611],256],64848:[[1578,1580,1605],256],64849:[[1578,1581,1580],256],64850:[[1578,1581,1580],256],64851:[[1578,1581,1605],256],64852:[[1578,1582,1605],256],64853:[[1578,1605,1580],256],64854:[[1578,1605,1581],256],64855:[[1578,1605,1582],256],64856:[[1580,1605,1581],256],64857:[[1580,1605,1581],256],64858:[[1581,1605,1610],256],64859:[[1581,1605,1609],256],64860:[[1587,1581,1580],256],64861:[[1587,1580,1581],256],64862:[[1587,1580,1609],256],64863:[[1587,1605,1581],256],64864:[[1587,1605,1581],256],64865:[[1587,1605,1580],256],64866:[[1587,1605,1605],256],64867:[[1587,1605,1605],256],64868:[[1589,1581,1581],256],64869:[[1589,1581,1581],256],64870:[[1589,1605,1605],256],64871:[[1588,1581,1605],256],64872:[[1588,1581,1605],256],64873:[[1588,1580,1610],256],64874:[[1588,1605,1582],256],64875:[[1588,1605,1582],256],64876:[[1588,1605,1605],256],64877:[[1588,1605,1605],256],64878:[[1590,1581,1609],256],64879:[[1590,1582,1605],256],64880:[[1590,1582,1605],256],64881:[[1591,1605,1581],256],64882:[[1591,1605,1581],256],64883:[[1591,1605,1605],256],64884:[[1591,1605,1610],256],64885:[[1593,1580,1605],256],64886:[[1593,1605,1605],256],64887:[[1593,1605,1605],256],64888:[[1593,1605,1609],256],64889:[[1594,1605,1605],256],64890:[[1594,1605,1610],256],64891:[[1594,1605,1609],256],64892:[[1601,1582,1605],256],64893:[[1601,1582,1605],256],64894:[[1602,1605,1581],256],64895:[[1602,1605,1605],256],64896:[[1604,1581,1605],256],64897:[[1604,1581,1610],256],64898:[[1604,1581,1609],256],64899:[[1604,1580,1580],256],64900:[[1604,1580,1580],256],64901:[[1604,1582,1605],256],64902:[[1604,1582,1605],256],64903:[[1604,1605,1581],256],64904:[[1604,1605,1581],256],64905:[[1605,1581,1580],256],64906:[[1605,1581,1605],256],64907:[[1605,1581,1610],256],64908:[[1605,1580,1581],256],64909:[[1605,1580,1605],256],64910:[[1605,1582,1580],256],64911:[[1605,1582,1605],256],64914:[[1605,1580,1582],256],64915:[[1607,1605,1580],256],64916:[[1607,1605,1605],256],64917:[[1606,1581,1605],256],64918:[[1606,1581,1609],256],64919:[[1606,1580,1605],256],64920:[[1606,1580,1605],256],64921:[[1606,1580,1609],256],64922:[[1606,1605,1610],256],64923:[[1606,1605,1609],256],64924:[[1610,1605,1605],256],64925:[[1610,1605,1605],256],64926:[[1576,1582,1610],256],64927:[[1578,1580,1610],256],64928:[[1578,1580,1609],256],64929:[[1578,1582,1610],256],64930:[[1578,1582,1609],256],64931:[[1578,1605,1610],256],64932:[[1578,1605,1609],256],64933:[[1580,1605,1610],256],64934:[[1580,1581,1609],256],64935:[[1580,1605,1609],256],64936:[[1587,1582,1609],256],64937:[[1589,1581,1610],256],64938:[[1588,1581,1610],256],64939:[[1590,1581,1610],256],64940:[[1604,1580,1610],256],64941:[[1604,1605,1610],256],64942:[[1610,1581,1610],256],64943:[[1610,1580,1610],256],64944:[[1610,1605,1610],256],64945:[[1605,1605,1610],256],64946:[[1602,1605,1610],256],64947:[[1606,1581,1610],256],64948:[[1602,1605,1581],256],64949:[[1604,1581,1605],256],64950:[[1593,1605,1610],256],64951:[[1603,1605,1610],256],64952:[[1606,1580,1581],256],64953:[[1605,1582,1610],256],64954:[[1604,1580,1605],256],64955:[[1603,1605,1605],256],64956:[[1604,1580,1605],256],64957:[[1606,1580,1581],256],64958:[[1580,1581,1610],256],64959:[[1581,1580,1610],256],64960:[[1605,1580,1610],256],64961:[[1601,1605,1610],256],64962:[[1576,1581,1610],256],64963:[[1603,1605,1605],256],64964:[[1593,1580,1605],256],64965:[[1589,1605,1605],256],64966:[[1587,1582,1610],256],64967:[[1606,1580,1610],256],65008:[[1589,1604,1746],256],65009:[[1602,1604,1746],256],65010:[[1575,1604,1604,1607],256],65011:[[1575,1603,1576,1585],256],65012:[[1605,1581,1605,1583],256],65013:[[1589,1604,1593,1605],256],65014:[[1585,1587,1608,1604],256],65015:[[1593,1604,1610,1607],256],65016:[[1608,1587,1604,1605],256],65017:[[1589,1604,1609],256],65018:[[1589,1604,1609,32,1575,1604,1604,1607,32,1593,1604,1610,1607,32,1608,1587,1604,1605],256],65019:[[1580,1604,32,1580,1604,1575,1604,1607],256],65020:[[1585,1740,1575,1604],256]},65024:{65040:[[44],256],65041:[[12289],256],65042:[[12290],256],65043:[[58],256],65044:[[59],256],65045:[[33],256],65046:[[63],256],65047:[[12310],256],65048:[[12311],256],65049:[[8230],256],65056:[,230],65057:[,230],65058:[,230],65059:[,230],65060:[,230],65061:[,230],65062:[,230],65063:[,220],65064:[,220],65065:[,220],65066:[,220],65067:[,220],65068:[,220],65069:[,220],65072:[[8229],256],65073:[[8212],256],65074:[[8211],256],65075:[[95],256],65076:[[95],256],65077:[[40],256],65078:[[41],256],65079:[[123],256],65080:[[125],256],65081:[[12308],256],65082:[[12309],256],65083:[[12304],256],65084:[[12305],256],65085:[[12298],256],65086:[[12299],256],65087:[[12296],256],65088:[[12297],256],65089:[[12300],256],65090:[[12301],256],65091:[[12302],256],65092:[[12303],256],65095:[[91],256],65096:[[93],256],65097:[[8254],256],65098:[[8254],256],65099:[[8254],256],65100:[[8254],256],65101:[[95],256],65102:[[95],256],65103:[[95],256],65104:[[44],256],65105:[[12289],256],65106:[[46],256],65108:[[59],256],65109:[[58],256],65110:[[63],256],65111:[[33],256],65112:[[8212],256],65113:[[40],256],65114:[[41],256],65115:[[123],256],65116:[[125],256],65117:[[12308],256],65118:[[12309],256],65119:[[35],256],65120:[[38],256],65121:[[42],256],65122:[[43],256],65123:[[45],256],65124:[[60],256],65125:[[62],256],65126:[[61],256],65128:[[92],256],65129:[[36],256],65130:[[37],256],65131:[[64],256],65136:[[32,1611],256],65137:[[1600,1611],256],65138:[[32,1612],256],65140:[[32,1613],256],65142:[[32,1614],256],65143:[[1600,1614],256],65144:[[32,1615],256],65145:[[1600,1615],256],65146:[[32,1616],256],65147:[[1600,1616],256],65148:[[32,1617],256],65149:[[1600,1617],256],65150:[[32,1618],256],65151:[[1600,1618],256],65152:[[1569],256],65153:[[1570],256],65154:[[1570],256],65155:[[1571],256],65156:[[1571],256],65157:[[1572],256],65158:[[1572],256],65159:[[1573],256],65160:[[1573],256],65161:[[1574],256],65162:[[1574],256],65163:[[1574],256],65164:[[1574],256],65165:[[1575],256],65166:[[1575],256],65167:[[1576],256],65168:[[1576],256],65169:[[1576],256],65170:[[1576],256],65171:[[1577],256],65172:[[1577],256],65173:[[1578],256],65174:[[1578],256],65175:[[1578],256],65176:[[1578],256],65177:[[1579],256],65178:[[1579],256],65179:[[1579],256],65180:[[1579],256],65181:[[1580],256],65182:[[1580],256],65183:[[1580],256],65184:[[1580],256],65185:[[1581],256],65186:[[1581],256],65187:[[1581],256],65188:[[1581],256],65189:[[1582],256],65190:[[1582],256],65191:[[1582],256],65192:[[1582],256],65193:[[1583],256],65194:[[1583],256],65195:[[1584],256],65196:[[1584],256],65197:[[1585],256],65198:[[1585],256],65199:[[1586],256],65200:[[1586],256],65201:[[1587],256],65202:[[1587],256],65203:[[1587],256],65204:[[1587],256],65205:[[1588],256],65206:[[1588],256],65207:[[1588],256],65208:[[1588],256],65209:[[1589],256],65210:[[1589],256],65211:[[1589],256],65212:[[1589],256],65213:[[1590],256],65214:[[1590],256],65215:[[1590],256],65216:[[1590],256],65217:[[1591],256],65218:[[1591],256],65219:[[1591],256],65220:[[1591],256],65221:[[1592],256],65222:[[1592],256],65223:[[1592],256],65224:[[1592],256],65225:[[1593],256],65226:[[1593],256],65227:[[1593],256],65228:[[1593],256],65229:[[1594],256],65230:[[1594],256],65231:[[1594],256],65232:[[1594],256],65233:[[1601],256],65234:[[1601],256],65235:[[1601],256],65236:[[1601],256],65237:[[1602],256],65238:[[1602],256],65239:[[1602],256],65240:[[1602],256],65241:[[1603],256],65242:[[1603],256],65243:[[1603],256],65244:[[1603],256],65245:[[1604],256],65246:[[1604],256],65247:[[1604],256],65248:[[1604],256],65249:[[1605],256],65250:[[1605],256],65251:[[1605],256],65252:[[1605],256],65253:[[1606],256],65254:[[1606],256],65255:[[1606],256],65256:[[1606],256],65257:[[1607],256],65258:[[1607],256],65259:[[1607],256],65260:[[1607],256],65261:[[1608],256],65262:[[1608],256],65263:[[1609],256],65264:[[1609],256],65265:[[1610],256],65266:[[1610],256],65267:[[1610],256],65268:[[1610],256],65269:[[1604,1570],256],65270:[[1604,1570],256],65271:[[1604,1571],256],65272:[[1604,1571],256],65273:[[1604,1573],256],65274:[[1604,1573],256],65275:[[1604,1575],256],65276:[[1604,1575],256]},65280:{65281:[[33],256],65282:[[34],256],65283:[[35],256],65284:[[36],256],65285:[[37],256],65286:[[38],256],65287:[[39],256],65288:[[40],256],65289:[[41],256],65290:[[42],256],65291:[[43],256],65292:[[44],256],65293:[[45],256],65294:[[46],256],65295:[[47],256],65296:[[48],256],65297:[[49],256],65298:[[50],256],65299:[[51],256],65300:[[52],256],65301:[[53],256],65302:[[54],256],65303:[[55],256],65304:[[56],256],65305:[[57],256],65306:[[58],256],65307:[[59],256],65308:[[60],256],65309:[[61],256],65310:[[62],256],65311:[[63],256],65312:[[64],256],65313:[[65],256],65314:[[66],256],65315:[[67],256],65316:[[68],256],65317:[[69],256],65318:[[70],256],65319:[[71],256],65320:[[72],256],65321:[[73],256],65322:[[74],256],65323:[[75],256],65324:[[76],256],65325:[[77],256],65326:[[78],256],65327:[[79],256],65328:[[80],256],65329:[[81],256],65330:[[82],256],65331:[[83],256],65332:[[84],256],65333:[[85],256],65334:[[86],256],65335:[[87],256],65336:[[88],256],65337:[[89],256],65338:[[90],256],65339:[[91],256],65340:[[92],256],65341:[[93],256],65342:[[94],256],65343:[[95],256],65344:[[96],256],65345:[[97],256],65346:[[98],256],65347:[[99],256],65348:[[100],256],65349:[[101],256],65350:[[102],256],65351:[[103],256],65352:[[104],256],65353:[[105],256],65354:[[106],256],65355:[[107],256],65356:[[108],256],65357:[[109],256],65358:[[110],256],65359:[[111],256],65360:[[112],256],65361:[[113],256],65362:[[114],256],65363:[[115],256],65364:[[116],256],65365:[[117],256],65366:[[118],256],65367:[[119],256],65368:[[120],256],65369:[[121],256],65370:[[122],256],65371:[[123],256],65372:[[124],256],65373:[[125],256],65374:[[126],256],65375:[[10629],256],65376:[[10630],256],65377:[[12290],256],65378:[[12300],256],65379:[[12301],256],65380:[[12289],256],65381:[[12539],256],65382:[[12530],256],65383:[[12449],256],65384:[[12451],256],65385:[[12453],256],65386:[[12455],256],65387:[[12457],256],65388:[[12515],256],65389:[[12517],256],65390:[[12519],256],65391:[[12483],256],65392:[[12540],256],65393:[[12450],256],65394:[[12452],256],65395:[[12454],256],65396:[[12456],256],65397:[[12458],256],65398:[[12459],256],65399:[[12461],256],65400:[[12463],256],65401:[[12465],256],65402:[[12467],256],65403:[[12469],256],65404:[[12471],256],65405:[[12473],256],65406:[[12475],256],65407:[[12477],256],65408:[[12479],256],65409:[[12481],256],65410:[[12484],256],65411:[[12486],256],65412:[[12488],256],65413:[[12490],256],65414:[[12491],256],65415:[[12492],256],65416:[[12493],256],65417:[[12494],256],65418:[[12495],256],65419:[[12498],256],65420:[[12501],256],65421:[[12504],256],65422:[[12507],256],65423:[[12510],256],65424:[[12511],256],65425:[[12512],256],65426:[[12513],256],65427:[[12514],256],65428:[[12516],256],65429:[[12518],256],65430:[[12520],256],65431:[[12521],256],65432:[[12522],256],65433:[[12523],256],65434:[[12524],256],65435:[[12525],256],65436:[[12527],256],65437:[[12531],256],65438:[[12441],256],65439:[[12442],256],65440:[[12644],256],65441:[[12593],256],65442:[[12594],256],65443:[[12595],256],65444:[[12596],256],65445:[[12597],256],65446:[[12598],256],65447:[[12599],256],65448:[[12600],256],65449:[[12601],256],65450:[[12602],256],65451:[[12603],256],65452:[[12604],256],65453:[[12605],256],65454:[[12606],256],65455:[[12607],256],65456:[[12608],256],65457:[[12609],256],65458:[[12610],256],65459:[[12611],256],65460:[[12612],256],65461:[[12613],256],65462:[[12614],256],65463:[[12615],256],65464:[[12616],256],65465:[[12617],256],65466:[[12618],256],65467:[[12619],256],65468:[[12620],256],65469:[[12621],256],65470:[[12622],256],65474:[[12623],256],65475:[[12624],256],65476:[[12625],256],65477:[[12626],256],65478:[[12627],256],65479:[[12628],256],65482:[[12629],256],65483:[[12630],256],65484:[[12631],256],65485:[[12632],256],65486:[[12633],256],65487:[[12634],256],65490:[[12635],256],65491:[[12636],256],65492:[[12637],256],65493:[[12638],256],65494:[[12639],256],65495:[[12640],256],65498:[[12641],256],65499:[[12642],256],65500:[[12643],256],65504:[[162],256],65505:[[163],256],65506:[[172],256],65507:[[175],256],65508:[[166],256],65509:[[165],256],65510:[[8361],256],65512:[[9474],256],65513:[[8592],256],65514:[[8593],256],65515:[[8594],256],65516:[[8595],256],65517:[[9632],256],65518:[[9675],256]}};var v={nfc:function(t){return g("NFC",t)},nfd:function(t){return g("NFD",t)},nfkc:function(t){return g("NFKC",t)},nfkd:function(t){return g("NFKD",t)}};"object"===i(t)?t.exports=v:(n=function(){return v}.call(e,r,e,t),void 0===n||(t.exports=n)),v.shimApplied=!1;try{if(["NFD","NFC","NFKC","NFKD"].forEach((function(t){"test".normalize(t)})),String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw new Error("broken implementation")}catch(m){Object.defineProperty(String.prototype,"normalize",{enumerable:!1,configurable:!0,writable:!0,value:function(){var t=""+this,e=void 0===arguments[0]?"NFC":arguments[0];if(null===this||void 0===this)throw new TypeError("Cannot call method on "+Object.prototype.toString.call(this));if("NFC"===e)return v.nfc(t);if("NFD"===e)return v.nfd(t);if("NFKC"===e)return v.nfkc(t);if("NFKD"===e)return v.nfkd(t);throw new RangeError("Invalid normalization form: "+e)}}),v.shimApplied=!0}})()}).call(this,r("dc84")(t))},ea7a:function(t,e,r){"use strict";r.r(e);var n=r("3ce0"),i=r("8994");for(var a in i)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return i[t]}))}(a);var s=r("828b"),o=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);e["default"]=o.exports},ea84:function(t,e,r){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r={name:"uniPopup",components:{},emits:["change","maskClick"],props:{animation:{type:Boolean,default:!0},type:{type:String,default:"center"},isMaskClick:{type:Boolean,default:null},maskClick:{type:Boolean,default:null},backgroundColor:{type:String,default:"none"},safeArea:{type:Boolean,default:!0},maskBackgroundColor:{type:String,default:"rgba(0, 0, 0, 0.4)"}},watch:{type:{handler:function(t){this.config[t]&&this[this.config[t]](!0)},immediate:!0},isDesktop:{handler:function(t){this.config[t]&&this[this.config[this.type]](!0)},immediate:!0},maskClick:{handler:function(t){this.mkclick=t},immediate:!0},isMaskClick:{handler:function(t){this.mkclick=t},immediate:!0},showPopup:function(t){}},data:function(){return{duration:300,ani:[],showPopup:!1,showTrans:!1,popupWidth:0,popupHeight:0,config:{top:"top",bottom:"bottom",center:"center",left:"left",right:"right",message:"top",dialog:"center",share:"bottom"},maskClass:{position:"fixed",bottom:0,top:0,left:0,right:0,backgroundColor:"rgba(0, 0, 0, 0.4)"},transClass:{position:"fixed",left:0,right:0},maskShow:!0,mkclick:!0,popupstyle:this.isDesktop?"fixforpc-top":"top"}},computed:{isDesktop:function(){return this.popupWidth>=500&&this.popupHeight>=500},bg:function(){return""===this.backgroundColor||"none"===this.backgroundColor?"transparent":this.backgroundColor}},mounted:function(){var t=this;(function(){var e=uni.getSystemInfoSync(),r=e.windowWidth,n=e.windowHeight,i=e.windowTop,a=e.safeArea,s=(e.screenHeight,e.safeAreaInsets);t.popupWidth=r,t.popupHeight=n+(i||0),a&&t.safeArea?t.safeAreaInsets=s.bottom:t.safeAreaInsets=0})()},destroyed:function(){this.setH5Visible()},created:function(){null===this.isMaskClick&&null===this.maskClick?this.mkclick=!0:this.mkclick=null!==this.isMaskClick?this.isMaskClick:this.maskClick,this.animation?this.duration=300:this.duration=0,this.messageChild=null,this.clearPropagation=!1,this.maskClass.backgroundColor=this.maskBackgroundColor},methods:{setH5Visible:function(){},closeMask:function(){this.maskShow=!1},disableMask:function(){this.mkclick=!1},clear:function(t){t.stopPropagation(),this.clearPropagation=!0},open:function(e){if(!this.showPopup){e&&-1!==["top","center","bottom","left","right","message","dialog","share"].indexOf(e)||(e=this.type),this.config[e]?(this[this.config[e]](),this.$emit("change",{show:!0,type:e})):t("error","\u7f3a\u5c11\u7c7b\u578b\uff1a",e," at uni_modules/uni-popup/components/uni-popup/uni-popup.vue:279")}},close:function(t){var e=this;this.showTrans=!1,this.$emit("change",{show:!1,type:this.type}),clearTimeout(this.timer),this.timer=setTimeout((function(){e.showPopup=!1}),300)},touchstart:function(){this.clearPropagation=!1},onTap:function(){this.clearPropagation?this.clearPropagation=!1:(this.$emit("maskClick"),this.mkclick&&this.close())},top:function(t){var e=this;this.popupstyle=this.isDesktop?"fixforpc-top":"top",this.ani=["slide-top"],this.transClass={position:"fixed",left:0,right:0,backgroundColor:this.bg},t||(this.showPopup=!0,this.showTrans=!0,this.$nextTick((function(){e.messageChild&&"message"===e.type&&e.messageChild.timerClose()})))},bottom:function(t){this.popupstyle="bottom",this.ani=["slide-bottom"],this.transClass={position:"fixed",left:0,right:0,bottom:0,paddingBottom:this.safeAreaInsets+"px",backgroundColor:this.bg},t||(this.showPopup=!0,this.showTrans=!0)},center:function(t){this.popupstyle="center",this.ani=["zoom-out","fade"],this.transClass={position:"fixed",display:"flex",flexDirection:"column",bottom:0,left:0,right:0,top:0,justifyContent:"center",alignItems:"center"},t||(this.showPopup=!0,this.showTrans=!0)},left:function(t){this.popupstyle="left",this.ani=["slide-left"],this.transClass={position:"fixed",left:0,bottom:0,top:0,backgroundColor:this.bg,display:"flex",flexDirection:"column"},t||(this.showPopup=!0,this.showTrans=!0)},right:function(t){this.popupstyle="right",this.ani=["slide-right"],this.transClass={position:"fixed",bottom:0,right:0,top:0,backgroundColor:this.bg,display:"flex",flexDirection:"column"},t||(this.showPopup=!0,this.showTrans=!0)}}};e.default=r}).call(this,r("f3b9")["default"])},eadc:function(t,e,r){"use strict";var n=r("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(r("7a77")),a=r("0bc9"),s={name:"u-count-down",mixins:[uni.$u.mpMixin,uni.$u.mixin,i.default],data:function(){return{timer:null,timeData:(0,a.parseTimeData)(0),formattedTime:"0",runing:!1,endTime:0,remainTime:0}},watch:{time:function(t){this.reset()}},mounted:function(){this.init()},methods:{init:function(){this.reset()},start:function(){this.runing||(this.runing=!0,this.endTime=Date.now()+this.remainTime,this.toTick())},toTick:function(){this.millisecond?this.microTick():this.macroTick()},macroTick:function(){var t=this;this.clearTimeout(),this.timer=setTimeout((function(){var e=t.getRemainTime();(0,a.isSameSecond)(e,t.remainTime)&&0!==e||t.setRemainTime(e),0!==t.remainTime&&t.macroTick()}),30)},microTick:function(){var t=this;this.clearTimeout(),this.timer=setTimeout((function(){t.setRemainTime(t.getRemainTime()),0!==t.remainTime&&t.microTick()}),50)},getRemainTime:function(){return Math.max(this.endTime-Date.now(),0)},setRemainTime:function(t){this.remainTime=t;var e=(0,a.parseTimeData)(t);this.$emit("change",e),this.formattedTime=(0,a.parseFormat)(this.format,e),t<=0&&(this.pause(),this.$emit("finish"))},reset:function(){this.pause(),this.remainTime=this.time,this.setRemainTime(this.remainTime),this.autoStart&&this.start()},pause:function(){this.runing=!1,this.clearTimeout()},clearTimeout:function(t){function e(){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}((function(){clearTimeout(this.timer),this.timer=null}))},beforeDestroy:function(){this.clearTimeout()}};e.default=s},eb8d:function(t,e,r){"use strict";var n=r("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(r("75cd")),a={name:"u-loading-page",mixins:[uni.$u.mpMixin,uni.$u.mixin,i.default],data:function(){return{}},methods:{}};e.default=a},ec44:function(t,e,r){"use strict";r.d(e,"b",(function(){return n})),r.d(e,"c",(function(){return i})),r.d(e,"a",(function(){}));var n=function(){var t=this.$createElement,e=this._self._c||t;return e("view",{staticClass:this._$s(0,"sc","u-gap"),style:this._$s(0,"s",[this.gapStyle]),attrs:{_i:0}})},i=[]},ec90:function(t,e,r){"use strict";var n=r("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(r("127e")),a=n(r("ee10")),s=n(r("e251")),o={name:"u-grid-item",mixins:[uni.$u.mpMixin,uni.$u.mixin,s.default],data:function(){return{parentData:{col:3,border:!0},classes:[]}},mounted:function(){this.init()},computed:{width:function(){return 100/Number(this.parentData.col)+"%"},itemStyle:function(){var t={background:this.bgColor,width:this.width};return uni.$u.deepMerge(t,uni.$u.addStyle(this.customStyle))}},methods:{init:function(){var t=this;uni.$on("$uGridItem",(function(){t.gridItemClasses()})),this.updateParentData(),uni.$emit("$uGridItem"),this.gridItemClasses()},updateParentData:function(){this.getParentData("u-grid")},clickHandler:function(){var t,e=this,r=this.name,n=null===(t=this.parent)||void 0===t?void 0:t.children;n&&null===this.name&&(r=n.findIndex((function(t){return t===e}))),this.parent&&this.parent.childClick(r),this.$emit("click",r)},getItemWidth:function(){var t=this;return(0,a.default)(i.default.mark((function e(){var r,n;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(r=0,!t.parent){e.next=6;break}return e.next=4,t.getParentWidth();case 4:n=e.sent,r=n/Number(t.parentData.col)+"px";case 6:t.width=r;case 7:case"end":return e.stop()}}),e)})))()},getParentWidth:function(){},gridItemClasses:function(){var t=this;if(this.parentData.border){var e=[];this.parent.children.map((function(r,n){if(t===r){var i=t.parent.children.length;(n+1)%t.parentData.col!==0&&n+1!==i&&e.push("u-border-right");var a=i%t.parentData.col===0?t.parentData.col:i%t.parentData.col;n<i-a&&e.push("u-border-bottom")}})),this.classes=e}}},beforeDestroy:function(){uni.$off("$uGridItem")}};e.default=o},ecb7:function(t,e,r){"use strict";r.d(e,"b",(function(){return n})),r.d(e,"c",(function(){return i})),r.d(e,"a",(function(){}));var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return t._$s(0,"i",t.show&&(0!==Number(t.value)||t.showZero||t.isDot))?r("text",{staticClass:t._$s(0,"sc","u-badge"),class:t._$s(0,"c",[t.isDot?"u-badge--dot":"u-badge--not-dot",t.inverted&&"u-badge--inverted","horn"===t.shape&&"u-badge--horn","u-badge--"+t.type+(t.inverted?"--inverted":"")]),style:t._$s(0,"s",[t.$u.addStyle(t.customStyle),t.badgeStyle]),attrs:{_i:0}},[t._v(t._$s(0,"t0-0",t._s(t.isDot?"":t.showValue)))]):t._e()},i=[]},ece2:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={slider:{value:0,blockSize:18,min:0,max:100,step:1,activeColor:"#2979ff",inactiveColor:"#c0c4cc",blockColor:"#ffffff",showValue:!1,disabled:!1,blockStyle:function(){}}}},ecef:function(t,e,r){"use strict";var n=r("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(r("c688")),a={name:"UniIcons",emits:["click"],props:{type:{type:String,default:""},color:{type:String,default:"#333333"},size:{type:[Number,String],default:16},customPrefix:{type:String,default:""}},data:function(){return{icons:i.default.glyphs}},computed:{unicode:function(){var t=this,e=this.icons.find((function(e){return e.font_class===t.type}));return e?unescape("%u".concat(e.unicode)):""},iconSize:function(){return function(t){return"number"===typeof t||/^[0-9]*$/g.test(t)?t+"px":t}(this.size)}},methods:{_onClick:function(){this.$emit("click")}}};e.default=a},ed45:function(t,e){t.exports=function(t){if(Array.isArray(t))return t},t.exports.__esModule=!0,t.exports["default"]=t.exports},ed83:function(t,e,r){"use strict";(function(t){var n=r("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.Behavior=function(t){return t},e.Component=function(e){var r=function(e){var r=e.data,n=e.options,i=e.methods,a=e.behaviors,s=e.lifetimes,o=e.observers,c=e.relations,A=e.properties,f=e.pageLifetimes,h=e.externalClasses,p={mixins:[],props:{},watch:{},mpOptions:{mpObservers:[]}};return l(p),u(r,p),function(t,e){if(!t)return;e.mpOptions.options=t}(n,p),C(i,p),k(a,p),function(t,e){if(!t)return;E(t,e)}(s,p),function(t,e){if(!t)return;var r=e.mpOptions.mpObservers;Object.keys(t).forEach((function(e){r.push({paths:I(e),observer:t[e]})}))}(o,p),function(e,r){if(!e)return;Object.keys(e).forEach((function(r){var n=e[r];n.name=r,n.target=n.target?String(n.target):function(t,e){0===e.indexOf("/")&&(t="");var r=t.split("/"),n=e.split("/");r.pop();while(n.length){var i=n.shift();""!==i&&"."!==i&&(".."!==i?r.push(i):r.pop())}return r.join("/")}(t.__wxRoute,r)})),r.mpOptions.relations=e}(c,p),B(A,p),function(t,e){if(!t)return;b.forEach((function(r){var n=t[r];d(n)&&(e[w[r]]=n)}))}(f,p),function(t,e){if(!t)return;Array.isArray(t)||(t=[t]);e.mpOptions.externalClasses=t,e.mpOptions.properties||(e.mpOptions.properties=Object.create(null));t.forEach((function(t){e.mpOptions.properties[v(t)]={type:String,value:""}}))}(h,p),E(e,p),T(e),p}(e);r.mixins.unshift(X),r.mpOptions.path=t.__wxRoute,function(t){t.onServiceAttached||(t.onServiceAttached=[]);t.onServiceAttached.push((function(){P(this,"linked")}))}(r),t.__wxComponents[t.__wxRoute]=r},e.Page=function(e){var r=function(t){var e={mixins:[],mpOptions:{}};return l(e),u(t.data,e),function(t,e){var r=Object.create(null);Object.keys(t).forEach((function(e){var n=t[e];d(n)&&-1===_.indexOf(e)&&(r[e]=n)})),e.methods=r}(t,e),function(t,e){Object.keys(t).forEach((function(r){-1!==_.indexOf(r)&&(e[r]=t[r])}))}(t,e),e}(e);r.mixins.unshift(X),r.mpOptions.path=t.__wxRoute,t.__wxComponents[t.__wxRoute]=r},e.nextTick=e.default=void 0;var i,a=n(r("7ca3")),s=n(r("34cf")),o=n(r("951c"));function u(t,e){t&&(e.mpOptions.data=t)}function l(e){e.components=t.__wxVueOptions.components}var c=Object.prototype.toString,A=Object.prototype.hasOwnProperty;function d(t){return"function"===typeof t}function f(t){return"[object Object]"===c.call(t)}function h(t,e){return A.call(t,e)}function p(){}var g=/-(\w)/g,v=function(t){var e=Object.create(null);return function(r){var n=e[r];return n||(e[r]=t(r))}}((function(t){return t.replace(g,(function(t,e){return e?e.toUpperCase():""}))})),m={created:"onServiceCreated",attached:"onServiceAttached",ready:"mounted",moved:"moved",detached:"destroyed"},y=Object.keys(m),w={show:"onPageShow",hide:"onPageHide",resize:"onPageResize"},b=Object.keys(w),_=["onLoad","onShow","onReady","onHide","onUnload","onPullDownRefresh","onReachBottom","onShareAppMessage","onPageScroll","onResize","onTabItemTap"];function B(t,e){t&&(e.mpOptions.properties=t)}function C(t,e){t&&(t.$emit&&(console.warn('Method "$emit" conflicts with an existing Vue instance method'),delete t.$emit),e.methods=t)}function E(t,e){y.forEach((function(r){h(t,r)&&(e[m[r]]||(e[m[r]]=[])).push(t[r])}))}var x={"wx://form-field":{},"wx://component-export":{}};function T(t,e){(function(t){var e=t.behaviors,r=t.definitionFilter,n=[];if(Array.isArray(e)&&e.forEach((function(e){e="string"===typeof e?x[e]:e,e.definitionFilter&&(n.push(e.definitionFilter),e.definitionFilter.call(null,t,[]))})),d(r));})(t)}var S={"wx://form-field":{beforeCreate:function(){var t=this.$options.mpOptions;t.properties||(t.properties=Object.create(null));var e=t.properties;h(e,"name")||(e.name={type:String}),h(e,"value")||(e.value={type:String})}}};function k(t,e){t&&t.forEach((function(t){"string"===typeof t?S[t]&&e.mixins.push(S[t]):e.mixins.push(function(t){var e=t.data,r=t.methods,n=t.behaviors,i=t.properties,a={watch:{},mpOptions:{mpObservers:[]}};return u(e,a),C(r,a),k(n,a),B(i,a),E(t,a),T(t),a}(t))}))}function I(t){return t.split(",").map((function(t){return function(t){return t.split(".")}(t)}))}function F(t,e,r,n){if(e){var i="_$".concat(t,"Handlers");(n[i]||(n[i]=[])).push((function(){e.call(n,r)}))}}function L(t,e,r){var n=t.name,i=r._$relationNodes||(r._$relationNodes=Object.create(null));(i[n]||(i[n]=[])).push(e),F("linked",t["linked"],e,r)}function D(t,e,r){F("unlinked",t["unlinked"],e,r)}function R(t,e,r){var n=t&&t.$options.mpOptions&&t.$options.mpOptions.relations;if(!n)return[];var i=Object.keys(n).find((function(t){var i=n[t];return i.target===e&&i.type===r}));return i?[n[i],t]:[]}function U(t,e,r){var n=r(t,t.$options.mpOptions.path),i=(0,s.default)(n,2),a=i[0],o=i[1];a&&(L(a,t,o),L(e,o,t),D(a,t,o),D(e,o,t))}function O(t){var e=t.$options.mpOptions||{},r=e.relations;r&&Object.keys(r).forEach((function(e){(function(t,e){var r=t.type;"parent"===r?U(e,t,(function(t,e){return R(t.$parent,e,"child")})):"ancestor"===r&&U(e,t,(function(t,e){var r=t.$parent;while(r){var n=R(r,e,"descendant");if(n.length)return n;r=r.$parent}return[]}))})(r[e],t)}))}function P(t,e){var r=t["_$".concat(e,"Handlers")];r&&r.forEach((function(t){return t()}))}var M={enumerable:!0,configurable:!0,get:p,set:p};function Q(t,e,r){M.get=function(){return this[e][r]},M.set=function(t){this[e][r]=t},Object.defineProperty(t,r,M)}function N(t,e){var r=this;f(t)&&(Object.keys(t).forEach((function(e){(function(t,e,r){var n=t.replace(/\[(\d+?)\]/g,".$1").split(".");return n.reduce((function(t,r,i){if(i!==n.length-1)return"undefined"===typeof t[r]&&(t[r]={}),t[r];t[r]=e}),r),1===n.length})(e,t[e],r.data)&&!h(r,e)&&Q(r,"__data__",e)})),this.$forceUpdate(),d(e)&&this.$nextTick(e))}var H=Object.prototype.toString,$=function(t){return function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0,n=H.call(r);if("[object Array]"===n)return e=r.slice(0),e;if("[object Object]"===n){for(var i in r)e[i]=t(e[i],r[i]);return e}if("[object Date]"===n)return new Date(r.getTime());if("[object RegExp]"===n){var a=String(r),s=a.lastIndexOf("/");return new RegExp(a.slice(1,s),a.slice(s+1))}return r}("[object Array]"===H.call(t)?[]:{},t)},j=(i={},(0,a.default)(i,String,""),(0,a.default)(i,Number,0),(0,a.default)(i,Boolean,!1),(0,a.default)(i,Object,null),(0,a.default)(i,Array,[]),(0,a.default)(i,null,null),i);function K(t){return j[t]}function G(t){return f(t)?t.type:t}function V(t,e,r,n){var i=r[t];if(void 0!==i){var a=e[t],s=G(a);i=W(i,s);var o=a&&a.observer;return o&&setTimeout((function(){z(o,n,i)}),4),i}return function(t){return f(t)?h(t,"value")?t.value:K(t.type):K(t)}(e[t])}function W(t,e){return e===Boolean?!!t:e===String?String(t):t}function z(t,e,r,n){try{"function"===typeof t?t.call(e,r,n):"string"===typeof t&&"function"===typeof e[t]&&e[t](r,n)}catch(i){console.error("execute observer ".concat(t," callback fail! err: ").concat(i))}}function Y(t){var e=t.$options.mpOptions&&t.$options.mpOptions.properties,r=t.$options.propsData;r&&e&&Object.keys(e).forEach((function(n){h(r,n)&&(t[n]=W(r[n],G(e[n])))}))}function q(t){var e=JSON.parse(JSON.stringify(t.$options.mpOptions.data||{}));t["__data__"]=e;var r={get:function(){return t["__data__"]},set:function(e){t["__data__"]=e}};Object.defineProperties(t,{data:r,properties:r}),t.setData=N,function(t,e){var r=t.$options.mpOptions.properties;if(r){var n=$(t.$options.propsData)||{},i=function(i){var a=!!f(r[i])&&r[i].observer,s=V(i,r,n,t);Object.defineProperty(e,i,{enumerable:!0,configurable:!0,get:function(){return s},set:function(e){var r=s;e===s||e!==e&&s!==s||(s=Array.isArray(e)?e.slice(0):e,a&&z(a,t,e,r),t.$forceUpdate())}})};for(var a in r)i(a)}}(t,e),Object.keys(e).forEach((function(e){Q(t,"__data__",e)}))}var X={beforeCreate:function(){this._renderProxy=this,this._$self=this,this._$noop=p},created:function(){q(this),function(t){var e=t.$emit;t.triggerEvent=function(r,n,i){var a={dataset:t.$el.dataset},s={target:a,currentTarget:a,detail:n,preventDefault:p,stopPropagation:p};e.call(t,r,s)},t.$emit=function(){t.triggerEvent.apply(t,arguments)},t.getRelationNodes=function(e){return(t._$relationNodes&&t._$relationNodes[e]||[]).filter((function(t){return!t._isDestroyed}))},t._$updateProperties=Y}(this),O(this)},mounted:function(){(function(t){var e=t.$options.watch;e&&Object.keys(e).forEach((function(r){var n=e[r];if(n.mounted){var i=t[r],a=n.handler;"string"===typeof a&&(a=t[a]),a&&a.call(t,i,i)}}))})(this)},destroyed:function(){P(this,"unlinked")}};t.__wxRoute="",t.__wxComponents=Object.create(null),t.__wxVueOptions=Object.create(null);var J=o.default.nextTick;e.nextTick=J;var Z=uni.__$wx__,tt=Z;e.default=tt}).call(this,r("0ee4"))},edec:function(t,e,r){t.exports=r.p+"static/icon/yuanbao.png"},ee10:function(t,e){function r(t,e,r,n,i,a,s){try{var o=t[a](s),u=o.value}catch(l){return void r(l)}o.done?e(u):Promise.resolve(u).then(n,i)}t.exports=function(t){return function(){var e=this,n=arguments;return new Promise((function(i,a){var s=t.apply(e,n);function o(t){r(s,i,a,o,u,"next",t)}function u(t){r(s,i,a,o,u,"throw",t)}o(void 0)}))}},t.exports.__esModule=!0,t.exports["default"]=t.exports},ee2f:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={skeleton:{loading:!0,animate:!0,rows:0,rowsWidth:"100%",rowsHeight:18,title:!0,titleWidth:"50%",titleHeight:18,avatar:!1,avatarSize:32,avatarShape:"circle"}}},ee30:function(t,e,r){"use strict";var n=r("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(r("127e")),a=n(r("ee10")),s=n(r("67ad")),o=n(r("0bdb")),u=function(){function t(){(0,s.default)(this,t),this.config={type:"navigateTo",url:"",delta:1,params:{},animationType:"pop-in",animationDuration:300,intercept:!1},this.route=this.route.bind(this)}return(0,o.default)(t,[{key:"addRootPath",value:function(t){return"/"===t[0]?t:"/".concat(t)}},{key:"mixinParam",value:function(t,e){t=t&&this.addRootPath(t);var r="";return/.*\/.*\?.*=.*/.test(t)?(r=uni.$u.queryParams(e,!1),t+"&".concat(r)):(r=uni.$u.queryParams(e),t+r)}},{key:"route",value:function(){var t=(0,a.default)(i.default.mark((function t(){var e,r,n,a,s=arguments;return i.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e=s.length>0&&void 0!==s[0]?s[0]:{},r=s.length>1&&void 0!==s[1]?s[1]:{},n={},"string"===typeof e?(n.url=this.mixinParam(e,r),n.type="navigateTo"):(n=uni.$u.deepMerge(e,this.config),n.url=this.mixinParam(e.url,e.params)),n.url!==uni.$u.page()){t.next=6;break}return t.abrupt("return");case 6:if(r.intercept&&(this.config.intercept=r.intercept),n.params=r,n=uni.$u.deepMerge(this.config,n),"function"!==typeof uni.$u.routeIntercept){t.next=16;break}return t.next=12,new Promise((function(t,e){uni.$u.routeIntercept(n,t)}));case 12:a=t.sent,a&&this.openPage(n),t.next=17;break;case 16:this.openPage(n);case 17:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"openPage",value:function(t){var e=t.url,r=(t.type,t.delta),n=t.animationType,i=t.animationDuration;"navigateTo"!=t.type&&"to"!=t.type||uni.navigateTo({url:e,animationType:n,animationDuration:i}),"redirectTo"!=t.type&&"redirect"!=t.type||uni.redirectTo({url:e}),"switchTab"!=t.type&&"tab"!=t.type||uni.switchTab({url:e}),"reLaunch"!=t.type&&"launch"!=t.type||uni.reLaunch({url:e}),"navigateBack"!=t.type&&"back"!=t.type||uni.navigateBack({delta:r})}}]),t}(),l=(new u).route;e.default=l},ee49:function(t,e,r){"use strict";r.r(e);var n=r("0a86"),i=r("7f5d");for(var a in i)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return i[t]}))}(a);var s=r("828b"),o=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);e["default"]=o.exports},ee60:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=r("0f81"),i={data:function(){return{content:""}},onLoad:function(){var t=this;n.app.shareMoney().then((function(e){t.content=e.data.content}))}};e.default=i},ee78:function(t,e,r){"use strict";r.r(e);var n=r("fb5a"),i=r("c240");for(var a in i)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return i[t]}))}(a);var s=r("828b"),o=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);e["default"]=o.exports},ee9c:function(t,e,r){"use strict";r.r(e);var n=r("b5e8"),i=r.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return n[t]}))}(a);e["default"]=i.a},ef2f:function(t,e,r){"use strict";r.r(e);var n=r("816f"),i=r("f27b");for(var a in i)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return i[t]}))}(a);var s=r("828b"),o=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,"76752b88",null,!1,n["a"],void 0);e["default"]=o.exports},ef66:function(t,e,r){"use strict";r.r(e);var n=r("ffd8"),i=r("7fe9");for(var a in i)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return i[t]}))}(a);var s=r("828b"),o=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,"7da5a69c",null,!1,n["a"],void 0);e["default"]=o.exports},ef90:function(t,e,r){"use strict";r.r(e);var n=r("ce99"),i=r("5550");for(var a in i)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return i[t]}))}(a);var s=r("828b"),o=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,"398331fc",null,!1,n["a"],void 0);e["default"]=o.exports},efd4:function(t,e,r){"use strict";r.d(e,"b",(function(){return i})),r.d(e,"c",(function(){return a})),r.d(e,"a",(function(){return n}));var n={uCountDown:r("497b").default,uPopup:r("591c").default},i=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("view",{staticClass:t._$s(0,"sc","page-container"),attrs:{_i:0}},[r("vod-image",{staticClass:t._$s(1,"sc","bg"),attrs:{src:t.launch,mode:"aspectFill",_i:1}}),t._$s(2,"i",t.adv)?r("view",{staticClass:t._$s(2,"sc","adv"),attrs:{_i:2},on:{click:function(e){return t.openAD(t.adv.adv_link)}}},[t._$s(3,"i",t.adv.adv_image)?r("vod-image",{staticClass:t._$s(3,"sc","adv"),attrs:{src:t.adv.adv_image,_i:3},on:{load:t.adLoad,error:t.error}}):t._e(),t._$s(4,"i",t.adv.adv_show_time)?r("u-count-down",{ref:"countDown",attrs:{time:1e3*t.adv.adv_show_time,format:"ss",autoStart:!1,_i:4},on:{change:t.timeChange,finish:t.toHome}},[r("text",{staticClass:t._$s(5,"sc","time"),attrs:{_i:5}},[t._v(t._$s(5,"t0-0",t._s(t.showTime.seconds)))])]):t._e()],1):t._e(),t._$s(6,"i",t.loading)?r("view",{staticClass:t._$s(6,"sc","loading-text"),attrs:{_i:6}},[r("text",[t._v(t._$s(7,"t0-0",t._s(t.loadingText)))])]):t._e(),r("u-popup",{attrs:{show:t.guideShow,mode:"center",bgColor:"transparent","custom-style":{width:"80%",maxWidth:"300px"},_i:8}},[r("image",{staticClass:t._$s(9,"sc","guide-img"),attrs:{_i:9}})]),r("u-popup",{attrs:{show:t.safariShow,round:20,mode:"center","custom-style":{width:"80%",maxWidth:"300px"},_i:10}},[r("view",{staticClass:t._$s(11,"sc","safari align-center"),attrs:{_i:11}},[r("view",{staticClass:t._$s(12,"sc","safari-tip"),attrs:{_i:12}},[r("text"),r("image",{attrs:{_i:14}}),r("text")]),r("view",{staticClass:t._$s(16,"sc","copy-link"),attrs:{_i:16},on:{click:t.copyLink}})])])],1)},a=[]},f073:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={gridItem:{name:null,bgColor:"transparent"}}},f0b3:function(t,e,r){"use strict";r.r(e);var n=r("3e0b"),i=r("1490");for(var a in i)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return i[t]}))}(a);var s=r("828b"),o=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);e["default"]=o.exports},f134:function(t,e,r){"use strict";r.r(e);var n=r("d1db"),i=r.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return n[t]}))}(a);e["default"]=i.a},f14d:function(t,e,r){"use strict";r.r(e);var n=r("5679"),i=r.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return n[t]}))}(a);e["default"]=i.a},f27b:function(t,e,r){"use strict";r.r(e);var n=r("2b75"),i=r.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return n[t]}))}(a);e["default"]=i.a},f28c:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={row:{gutter:0,justify:"start",align:"center"}}},f3b9:function(t,e,r){"use strict";function n(t){var e=Object.prototype.toString.call(t);return e.substring(8,e.length-1)}function i(){return"string"===typeof __channelId__&&__channelId__}function a(t,e){switch(n(e)){case"Function":return"function() { [native code] }";default:return e}}function s(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];console[t].apply(console,r)}function o(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var s=e.shift();if(i())return e.push(e.pop().replace("at ","uni-app:///")),console[s].apply(console,e);var o=e.map((function(t){var e=Object.prototype.toString.call(t).toLowerCase();if("[object object]"===e||"[object array]"===e)try{t="---BEGIN:JSON---"+JSON.stringify(t,a)+"---END:JSON---"}catch(i){t=e}else if(null===t)t="---NULL---";else if(void 0===t)t="---UNDEFINED---";else{var r=n(t).toUpperCase();t="NUMBER"===r||"BOOLEAN"===r?"---BEGIN:"+r+"---"+t+"---END:"+r+"---":String(t)}return t})),u="";if(o.length>1){var l=o.pop();u=o.join("---COMMA---"),0===l.indexOf(" at ")?u+=l:u+="---COMMA---"+l}else u=o[0];console[s](u)}r.r(e),r.d(e,"log",(function(){return s})),r.d(e,"default",(function(){return o}))},f3c5:function(t,e,r){"use strict";r.r(e);var n=r("947e"),i=r.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return n[t]}))}(a);e["default"]=i.a},f438:function(t,e,r){"use strict";r.d(e,"b",(function(){return i})),r.d(e,"c",(function(){return a})),r.d(e,"a",(function(){return n}));var n={uEmpty:r("9925").default,uButton:r("9a24").default},i=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("view",{staticClass:t._$s(0,"sc","page-container"),attrs:{_i:0}},[r("scroll-view",{},[r("view",{staticClass:t._$s(2,"sc","download-list"),attrs:{_i:2}},[r("scroll-view",{attrs:{_i:3}},[r("checkbox-group",{staticClass:t._$s(4,"sc","item-container"),attrs:{_i:4},on:{change:t.changeCheck}},t._l(t._$s(5,"f",{forItems:t.fileArr}),(function(e,n,i,a){return r("label",{key:t._$s(5,"f",{forIndex:i,key:n}),staticClass:t._$s("5-"+a,"sc","history-item align-center"),attrs:{_i:"5-"+a}},[t._$s("6-"+a,"i",t.isDeleteMode)?r("checkbox",{attrs:{value:t._$s("6-"+a,"a-value",e.name),checked:t._$s("6-"+a,"a-checked",e.is_checked),_i:"6-"+a}}):t._e(),r("download-item",{attrs:{item:e,showDetail:"true",_i:"7-"+a},on:{DeleteFile:t.deleteFile}})],1)})),0)]),t._$s(8,"i",t.isEmpty)?r("u-empty",{attrs:{icon:"/static/images/empty.svg",width:"240",_i:8}}):t._e()],1)]),t._$s(9,"i",t.isDeleteMode)?r("view",{staticClass:t._$s(9,"sc","history-bottom align-center"),attrs:{_i:9}},[r("u-button",{attrs:{plain:!0,shape:"circle",text:"\u5168\u9009",_i:10},on:{click:t.selectAll}}),r("u-button",{attrs:{type:"error",plain:!0,shape:"circle",text:"\u5220\u9664",_i:11},on:{click:t.deldownload}})],1):t._e()])},a=[]},f4be:function(t,e,r){"use strict";r.d(e,"b",(function(){return i})),r.d(e,"c",(function(){return a})),r.d(e,"a",(function(){return n}));var n={uButton:r("9a24").default},i=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("view",{staticClass:t._$s(0,"sc","page-container"),attrs:{_i:0}},[r("view",{staticClass:t._$s(1,"sc","exchange-header-bg"),attrs:{_i:1}},[r("view",{staticClass:t._$s(2,"sc","header-bg-upper"),attrs:{_i:2}})]),r("view",{staticClass:t._$s(3,"sc","status-bar"),attrs:{_i:3}}),r("view",{staticClass:t._$s(4,"sc","page-header"),attrs:{_i:4}}),r("view",{staticClass:t._$s(5,"sc","exchange-header-content justify-between"),attrs:{_i:5}},[r("view",[r("view",{staticClass:t._$s(7,"sc","coin-num"),attrs:{_i:7}},[t._v(t._$s(7,"t0-0",t._s(t.data.user_coin||0)))]),r("view",{staticClass:t._$s(8,"sc","sub-text"),attrs:{_i:8}})]),r("image",{attrs:{_i:9}})]),r("view",{staticClass:t._$s(10,"sc","exchange-box"),attrs:{_i:10}},[r("view",[r("image",{staticClass:t._$s(12,"sc","exchange-img"),attrs:{_i:12}})]),r("view",{staticClass:t._$s(13,"sc","package justify-around"),attrs:{_i:13}},t._l(t._$s(14,"f",{forItems:t.data.list}),(function(e,n,i,a){return r("view",{key:t._$s(14,"f",{forIndex:i,key:n}),staticClass:t._$s("14-"+a,"sc","package-item"),attrs:{_i:"14-"+a},on:{click:function(r){return t.onSelect(e.recharge_id)}}},[r("view",{staticClass:t._$s("15-"+a,"sc","packages-box"),class:t._$s("15-"+a,"c",e.recharge_id==t.id&&"selected"),attrs:{_i:"15-"+a}},[r("view",{staticClass:t._$s("16-"+a,"sc","package-title justify-center"),attrs:{_i:"16-"+a}},[r("image",{attrs:{_i:"17-"+a}}),r("text",[t._v(t._$s("18-"+a,"t0-0",t._s(e.exchange_coin)))])]),r("view",{staticClass:t._$s("19-"+a,"sc","package-month"),attrs:{_i:"19-"+a}},[t._v(t._$s("19-"+a,"t0-0",t._s(e.recharge_name)))])])])})),0)]),r("u-button",{staticClass:t._$s(20,"sc","exchange-button"),attrs:{shape:"circle",disabled:t.loading,loading:t.loading,color:"linear-gradient(90deg, #DA2538 0%, #F75F68 100%)",text:"\u7acb\u5373\u6210\u4e3a\u5c0a\u8d35VIP",_i:20},on:{click:t.exchange}})],1)},a=[]},f4ee:function(t,e,r){"use strict";(function(t){var n=r("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(r("127e")),a=n(r("ee10")),s=r("0f81"),o=n(r("ca42")),u=(r("a827"),n(r("112e"))),l={props:{id:{type:Number,default:0},showinput:{type:Number,default:0}},components:{CommentBubble:o.default},data:function(){return{list:[],comment:"",isLogin:!1,page:1,commentpage:1,currentPage:!0,previousCommentId:0,loaded:!1,loadStatus:"loadmore",scrollTop:0,tid:"",pid:"",uid:"",focus:!1,index:0,chlidindex:0,inputPlaceholder:"\u8bf7\u5148\u767b\u5f55\u624d\u80fd\u8fdb\u884c\u8bc4\u8bba~",replyCommentList:[]}},mounted:function(){var t=u.default.isOpen();t&&u.default.selectTableData("commentDig").then((function(t){})).catch((function(t){u.default.createTable("commentDig",'"id" INTEGER PRIMARY KEY AUTOINCREMENT,"comment_id" text,"up" text,"down" text')}))},methods:{reply:function(t,e,r){0!=e.comment_status&&(this.isLogin||(this.inputPlaceholder="\u56de\u590d"+e.user_name+":"+e.comment_content,0==t?(this.tid=e.comment_id,this.pid=e.comment_id,this.index=r):(this.tid=e.comment_tid,this.pid=e.comment_id,this.index=r),this.uid=e.user_id,this.focus=!0))},more:function(e,r){var n=this;return(0,a.default)(i.default.mark((function a(){var o,l,c,A,d,f,h;return i.default.wrap((function(i){while(1)switch(i.prev=i.next){case 0:if(1==n.commentpage&&(n.replyCommentList=[]),n.previousCommentId!==e.comment_id&&(n.commentpage=1,n.replyCommentList=[],n.currentPage=!0),n.previousCommentId=e.comment_id,"open"!=n.list[r].expanded){i.next=6;break}return n.list[r].expanded="close",i.abrupt("return");case 6:return i.prev=6,i.next=9,s.comment.list(n.id,1,n.commentpage,e.comment_id);case 9:for(o=i.sent,l=o.data,n.replyCommentList=n.replyCommentList.concat(l.list),c=0;c<n.list.length;c++)c!=r&&(n.list[c].expanded="close");for(A=function(t){var e=n.replyCommentList[t];e.comment_id&&u.default.selectTableData("commentDig","comment_id",e.comment_id).then((function(e){var r=e[0];r&&(n.replyCommentList[t].is_up=1==r.up,n.replyCommentList[t].is_down=1==r.down,n.replyCommentList[t].is_up&&(n.replyCommentList[t].comment_up+=1),n.replyCommentList[t].is_down&&(n.replyCommentList[t].comment_down+=1))}))},d=0;d<n.replyCommentList.length;d++)A(d);try{for(f=function(t){var e=n.list[n.index].ImaginaryArray[t].comment_id,r=n.replyCommentList.findIndex((function(t){return t.comment_id===e}));-1!==r&&(n.list[n.index].ImaginaryArray.splice(t,1),t--),h=t},h=0;h<n.list[n.index].ImaginaryArray.length;h++)f(h)}catch(a){}l.page<l.page_total?(n.commentpage++,n.currentPage=!0,n.list[r].expanded="showMore",t("log",12321312," at pages/video/video-comment.vue:218")):(t("log",222222," at pages/video/video-comment.vue:220"),n.currentPage=!1,n.list[r].expanded="open"),t("log",n.list[r].expanded," at pages/video/video-comment.vue:224"),i.next=22;break;case 20:i.prev=20,i.t0=i["catch"](6);case 22:case"end":return i.stop()}}),a,null,[[6,20]])})))()},init:function(){!1===this.loaded&&this.getData()},getData:function(){var t=this;"nomore"!==this.loadStatus&&"loading"!==this.loadStatus&&(this.loadStatus="loading",s.comment.list(this.id,1,this.page).then((function(e){var r=e.data;if(1===t.page){var n=getApp().globalData.userToken;t.isLogin=1==r.is_login&&!n,t.inputPlaceholder=t.isLogin?"\u8bf7\u5148\u767b\u5f55\u624d\u80fd\u8fdb\u884c\u8bc4\u8bba~":"\u6211\u6765\u8bc4\u8bba~"}r.page<r.page_total?(t.loadStatus="loadmore",t.page++):t.loadStatus="nomore";for(var i=0;i<r.list.length;i++)r.list[i].expanded="close";for(var a=function(t){var e=r.list[t];e.comment_id&&u.default.selectTableData("commentDig","comment_id",e.comment_id).then((function(e){var n=e[0];n&&(r.list[t].is_up=1==n.up,r.list[t].is_down=1==n.down,r.list[t].is_up&&(r.list[t].comment_up+=1),r.list[t].is_down&&(r.list[t].comment_down+=1))}))},s=0;s<r.list.length;s++)a(s);t.list=t.list.concat(r.list),t.loaded=!0})).catch((function(e){t.loadStatus="loadmore"})))},postData:function(){var t=this,e=getApp().globalData.userToken;if(!this.isLogin||e){if(!this.comment)return void uni.showToast({icon:"none",title:"\u8bc4\u8bba\u5185\u5bb9\u4e0d\u80fd\u4e3a\u7a7a~",duration:3e3});uni.showLoading({title:"\u6b63\u5728\u53d1\u9001",mask:!0});var r=Date.now()/1e3;s.comment.add(this.id,1,this.comment,this.tid,this.pid,this.uid,r).then((function(e){1===e.code&&(t.comment="",e.data&&(1!=e.data["comment_status"]||t.tid||t.pid||(t.list.splice(1,0,e.data),"loadmore"===t.loadStatus&&t.list.pop(),t.scrollTop=0),t.tid&&t.pid&&(t.list[t.index].ImaginaryArray=t.list[t.index].ImaginaryArray||[],t.list[t.index].ImaginaryArray.splice(1,0,e.data)),e.data["task_coin"]&&t.$emit("reward",e.data["task_coin"])),t.tid="",t.pid="",t.uid="",t.inputPlaceholder=t.isLogin?"\u8bf7\u5148\u767b\u5f55\u624d\u80fd\u8fdb\u884c\u8bc4\u8bba~":"\u6211\u6765\u8bc4\u8bba~"),uni.showToast({icon:"none",title:e.msg,duration:3e3})}))}else uni.navigateTo({url:"/pages/user/login"})},digComment:function(t,e,r){var n=t["is_"+e]?0:1;if(1===t.is_top)return t["is_"+e]=n,void("down"==e&&(t["comment_"+e]=1===n?1:0));s.app.updateDig(t.comment_id,4,e,n).then((function(r){if(1==r.code){t["is_"+e]=1===n,1===n?t["comment_"+e]+=1:t["comment_"+e]>0&&(t["comment_"+e]-=1);u.default.selectTableData("commentDig","comment_id",t.comment_id).then((function(r){if(r.length){var i="".concat(e," = '").concat(n,"'");u.default.updateTableData("commentDig",i,"comment_id",t.comment_id)}else{var a="'".concat(t.comment_id,"','").concat(n,"'"),s="'comment_id','".concat(e,"'");u.default.insertTableData("commentDig",a,s)}}))}else uni.showToast({icon:"none",title:r.msg,duration:3e3})}))},onScroll:function(t){var e=t.target.scrollTop;this.scrollTop=e}}};e.default=l}).call(this,r("f3b9")["default"])},f571:function(t,e,r){"use strict";(function(t,n,i){var a=r("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.RangeSet=e.Dexie=void 0,e.liveQuery=en,e.mergeRanges=Kr,e.rangesOverlap=Gr;var s=a(r("3b2d")),o=function(){return o=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r],e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},o.apply(this,arguments)};
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */function u(t,e,r){if(r||2===arguments.length)for(var n,i=0,a=e.length;i<a;i++)!n&&i in e||(n||(n=Array.prototype.slice.call(e,0,i)),n[i]=e[i]);return t.concat(n||Array.prototype.slice.call(e))}var l="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:t,c=Object.keys,A=Array.isArray;function d(t,e){return"object"!==(0,s.default)(e)||c(e).forEach((function(r){t[r]=e[r]})),t}"undefined"===typeof Promise||l.Promise||(l.Promise=Promise);var f=Object.getPrototypeOf,h={}.hasOwnProperty;function p(t,e){return h.call(t,e)}function g(t,e){"function"===typeof e&&(e=e(f(t))),("undefined"===typeof Reflect?c:Reflect.ownKeys)(e).forEach((function(r){m(t,r,e[r])}))}var v=Object.defineProperty;function m(t,e,r,n){v(t,e,d(r&&p(r,"get")&&"function"===typeof r.get?{get:r.get,set:r.set,configurable:!0}:{value:r,configurable:!0,writable:!0},n))}function y(t){return{from:function(e){return t.prototype=Object.create(e.prototype),m(t.prototype,"constructor",t),{extend:g.bind(null,t.prototype)}}}}var w=Object.getOwnPropertyDescriptor;function b(t,e){var r,n=w(t,e);return n||(r=f(t))&&b(r,e)}var _=[].slice;function B(t,e,r){return _.call(t,e,r)}function C(t,e){return e(t)}function E(t){if(!t)throw new Error("Assertion Failed")}function x(t){l.setImmediate?setImmediate(t):setTimeout(t,0)}function T(t,e){return t.reduce((function(t,r,n){var i=e(r,n);return i&&(t[i[0]]=i[1]),t}),{})}function S(t,e){if(p(t,e))return t[e];if(!e)return t;if("string"!==typeof e){for(var r=[],n=0,i=e.length;n<i;++n){var a=S(t,e[n]);r.push(a)}return r}var s=e.indexOf(".");if(-1!==s){var o=t[e.substr(0,s)];return void 0===o?void 0:S(o,e.substr(s+1))}}function k(t,e,r){if(t&&void 0!==e&&(!("isFrozen"in Object)||!Object.isFrozen(t)))if("string"!==typeof e&&"length"in e){E("string"!==typeof r&&"length"in r);for(var n=0,i=e.length;n<i;++n)k(t,e[n],r[n])}else{var a=e.indexOf(".");if(-1!==a){var s=e.substr(0,a),o=e.substr(a+1);if(""===o)void 0===r?A(t)&&!isNaN(parseInt(s))?t.splice(s,1):delete t[s]:t[s]=r;else{var u=t[s];u&&p(t,s)||(u=t[s]={}),k(u,o,r)}}else void 0===r?A(t)&&!isNaN(parseInt(e))?t.splice(e,1):delete t[e]:t[e]=r}}function I(t){var e={};for(var r in t)p(t,r)&&(e[r]=t[r]);return e}var F=[].concat;function L(t){return F.apply([],t)}var D="Boolean,String,Date,RegExp,Blob,File,FileList,FileSystemFileHandle,ArrayBuffer,DataView,Uint8ClampedArray,ImageBitmap,ImageData,Map,Set,CryptoKey".split(",").concat(L([8,16,32,64].map((function(t){return["Int","Uint","Float"].map((function(e){return e+t+"Array"}))})))).filter((function(t){return l[t]})),R=D.map((function(t){return l[t]}));T(D,(function(t){return[t,!0]}));var U=null;function O(t){U="undefined"!==typeof WeakMap&&new WeakMap;var e=function t(e){if(!e||"object"!==(0,s.default)(e))return e;var r=U&&U.get(e);if(r)return r;if(A(e)){r=[],U&&U.set(e,r);for(var n=0,i=e.length;n<i;++n)r.push(t(e[n]))}else if(R.indexOf(e.constructor)>=0)r=e;else{var a=f(e);for(var o in r=a===Object.prototype?{}:Object.create(a),U&&U.set(e,r),e)p(e,o)&&(r[o]=t(e[o]))}return r}(t);return U=null,e}var P={}.toString;function M(t){return P.call(t).slice(8,-1)}var Q="undefined"!==typeof Symbol?Symbol.iterator:"@@iterator",N="symbol"===(0,s.default)(Q)?function(t){var e;return null!=t&&(e=t[Q])&&e.apply(t)}:function(){return null},H={};function $(t){var e,r,n,i;if(1===arguments.length){if(A(t))return t.slice();if(this===H&&"string"===typeof t)return[t];if(i=N(t)){r=[];while(n=i.next(),!n.done)r.push(n.value);return r}if(null==t)return[t];if(e=t.length,"number"===typeof e){r=new Array(e);while(e--)r[e]=t[e];return r}return[t]}e=arguments.length,r=new Array(e);while(e--)r[e]=arguments[e];return r}var j="undefined"!==typeof Symbol?function(t){return"AsyncFunction"===t[Symbol.toStringTag]}:function(){return!1},K="undefined"!==typeof location&&/^(http|https):\/\/(localhost|127\.0\.0\.1)/.test(location.href);function G(t,e){K=t,V=e}var V=function(){return!0},W=!new Error("").stack;function z(){if(W)try{throw z.arguments,new Error}catch(t){return t}return new Error}function Y(t,e){var r=t.stack;return r?(e=e||0,0===r.indexOf(t.name)&&(e+=(t.name+t.message).split("\n").length),r.split("\n").slice(e).filter(V).map((function(t){return"\n"+t})).join("")):""}var q=["Unknown","Constraint","Data","TransactionInactive","ReadOnly","Version","NotFound","InvalidState","InvalidAccess","Abort","Timeout","QuotaExceeded","Syntax","DataClone"],X=["Modify","Bulk","OpenFailed","VersionChange","Schema","Upgrade","InvalidTable","MissingAPI","NoSuchDatabase","InvalidArgument","SubTransaction","Unsupported","Internal","DatabaseClosed","PrematureCommit","ForeignAwait"].concat(q),J={VersionChanged:"Database version changed by other database connection",DatabaseClosed:"Database has been closed",Abort:"Transaction aborted",TransactionInactive:"Transaction has already completed or failed",MissingAPI:"IndexedDB API missing. Please visit https://tinyurl.com/y2uuvskb"};function Z(t,e){this._e=z(),this.name=t,this.message=e}function tt(t,e){return t+". Errors: "+Object.keys(e).map((function(t){return e[t].toString()})).filter((function(t,e,r){return r.indexOf(t)===e})).join("\n")}function et(t,e,r,n){this._e=z(),this.failures=e,this.failedKeys=n,this.successCount=r,this.message=tt(t,e)}function rt(t,e){this._e=z(),this.name="BulkError",this.failures=Object.keys(e).map((function(t){return e[t]})),this.failuresByPos=e,this.message=tt(t,e)}y(Z).from(Error).extend({stack:{get:function(){return this._stack||(this._stack=this.name+": "+this.message+Y(this._e,2))}},toString:function(){return this.name+": "+this.message}}),y(et).from(Z),y(rt).from(Z);var nt=X.reduce((function(t,e){return t[e]=e+"Error",t}),{}),it=Z,at=X.reduce((function(t,e){var r=e+"Error";function n(t,n){this._e=z(),this.name=r,t?"string"===typeof t?(this.message=t+(n?"\n "+n:""),this.inner=n||null):"object"===(0,s.default)(t)&&(this.message=t.name+" "+t.message,this.inner=t):(this.message=J[e]||r,this.inner=null)}return y(n).from(it),t[e]=n,t}),{});at.Syntax=SyntaxError,at.Type=TypeError,at.Range=RangeError;var st=q.reduce((function(t,e){return t[e+"Error"]=at[e],t}),{});var ot=X.reduce((function(t,e){return-1===["Syntax","Type","Range"].indexOf(e)&&(t[e+"Error"]=at[e]),t}),{});function ut(){}function lt(t){return t}function ct(t,e){return null==t||t===lt?e:function(r){return e(t(r))}}function At(t,e){return function(){t.apply(this,arguments),e.apply(this,arguments)}}function dt(t,e){return t===ut?e:function(){var r=t.apply(this,arguments);void 0!==r&&(arguments[0]=r);var n=this.onsuccess,i=this.onerror;this.onsuccess=null,this.onerror=null;var a=e.apply(this,arguments);return n&&(this.onsuccess=this.onsuccess?At(n,this.onsuccess):n),i&&(this.onerror=this.onerror?At(i,this.onerror):i),void 0!==a?a:r}}function ft(t,e){return t===ut?e:function(){t.apply(this,arguments);var r=this.onsuccess,n=this.onerror;this.onsuccess=this.onerror=null,e.apply(this,arguments),r&&(this.onsuccess=this.onsuccess?At(r,this.onsuccess):r),n&&(this.onerror=this.onerror?At(n,this.onerror):n)}}function ht(t,e){return t===ut?e:function(r){var n=t.apply(this,arguments);d(r,n);var i=this.onsuccess,a=this.onerror;this.onsuccess=null,this.onerror=null;var s=e.apply(this,arguments);return i&&(this.onsuccess=this.onsuccess?At(i,this.onsuccess):i),a&&(this.onerror=this.onerror?At(a,this.onerror):a),void 0===n?void 0===s?void 0:s:d(n,s)}}function pt(t,e){return t===ut?e:function(){return!1!==e.apply(this,arguments)&&t.apply(this,arguments)}}function gt(t,e){return t===ut?e:function(){var r=t.apply(this,arguments);if(r&&"function"===typeof r.then){var n=this,i=arguments.length,a=new Array(i);while(i--)a[i]=arguments[i];return r.then((function(){return e.apply(n,a)}))}return e.apply(this,arguments)}}ot.ModifyError=et,ot.DexieError=Z,ot.BulkError=rt;var vt={},mt="undefined"===typeof Promise?[]:function(){var t=Promise.resolve();if("undefined"===typeof n||!n.subtle)return[t,f(t),t];var e=n.subtle.digest("SHA-512",new Uint8Array([0]));return[e,f(e),t]}(),yt=mt[0],wt=mt[1],bt=mt[2],_t=wt&&wt.then,Bt=yt&&yt.constructor,Ct=!!bt,Et=!1,xt=bt?function(){bt.then(zt)}:l.setImmediate?setImmediate.bind(null,zt):l.MutationObserver?function(){var t=document.createElement("div");new MutationObserver((function(){zt(),t=null})).observe(t,{attributes:!0}),t.setAttribute("i","1")}:function(){setTimeout(zt,0)},Tt=function(t,e){Ot.push([t,e]),kt&&(xt(),kt=!1)},St=!0,kt=!0,It=[],Ft=[],Lt=null,Dt=lt,Rt={id:"global",global:!0,ref:0,unhandleds:[],onunhandled:me,pgp:!1,env:{},finalize:function(){this.unhandleds.forEach((function(t){try{me(t[0],t[1])}catch(e){}}))}},Ut=Rt,Ot=[],Pt=0,Mt=[];function Qt(t){if("object"!==(0,s.default)(this))throw new TypeError("Promises must be constructed via new");this._listeners=[],this.onuncatched=ut,this._lib=!1;var e=this._PSD=Ut;if(K&&(this._stackHolder=z(),this._prev=null,this._numPrev=0),"function"!==typeof t){if(t!==vt)throw new TypeError("Not a function");return this._state=arguments[1],this._value=arguments[2],void(!1===this._state&&jt(this,this._value))}this._state=null,this._value=null,++e.ref,$t(this,t)}var Nt={get:function(){var t=Ut,e=ie;function r(r,n){var i=this,a=!t.global&&(t!==Ut||e!==ie),s=a&&!ue(),o=new Qt((function(e,o){Gt(i,new Ht(ge(r,t,a,s),ge(n,t,a,s),e,o,t))}));return K&&Wt(o,this),o}return r.prototype=vt,r},set:function(t){m(this,"then",t&&t.prototype===vt?Nt:{get:function(){return t},set:Nt.set})}};function Ht(t,e,r,n,i){this.onFulfilled="function"===typeof t?t:null,this.onRejected="function"===typeof e?e:null,this.resolve=r,this.reject=n,this.psd=i}function $t(t,e){try{e((function(e){if(null===t._state){if(e===t)throw new TypeError("A promise cannot be resolved with itself.");var r=t._lib&&Yt();e&&"function"===typeof e.then?$t(t,(function(t,r){e instanceof Qt?e._then(t,r):e.then(t,r)})):(t._state=!0,t._value=e,Kt(t)),r&&qt()}}),jt.bind(null,t))}catch(r){jt(t,r)}}function jt(t,e){if(Ft.push(e),null===t._state){var r=t._lib&&Yt();e=Dt(e),t._state=!1,t._value=e,K&&null!==e&&"object"===(0,s.default)(e)&&!e._promise&&function(t,e,r){try{t.apply(null,r)}catch(n){e&&e(n)}}((function(){var r=b(e,"stack");e._promise=t,m(e,"stack",{get:function(){return Et?r&&(r.get?r.get.apply(e):r.value):t.stack}})})),function(t){It.some((function(e){return e._value===t._value}))||It.push(t)}(t),Kt(t),r&&qt()}}function Kt(t){var e=t._listeners;t._listeners=[];for(var r=0,n=e.length;r<n;++r)Gt(t,e[r]);var i=t._PSD;--i.ref||i.finalize(),0===Pt&&(++Pt,Tt((function(){0===--Pt&&Xt()}),[]))}function Gt(t,e){if(null!==t._state){var r=t._state?e.onFulfilled:e.onRejected;if(null===r)return(t._state?e.resolve:e.reject)(t._value);++e.psd.ref,++Pt,Tt(Vt,[r,t,e])}else t._listeners.push(e)}function Vt(t,e,r){try{Lt=e;var n,i=e._value;e._state?n=t(i):(Ft.length&&(Ft=[]),n=t(i),-1===Ft.indexOf(i)&&function(t){var e=It.length;while(e)if(It[--e]._value===t._value)return void It.splice(e,1)}(e)),r.resolve(n)}catch(a){r.reject(a)}finally{Lt=null,0===--Pt&&Xt(),--r.psd.ref||r.psd.finalize()}}function Wt(t,e){var r=e?e._numPrev+1:0;r<100&&(t._prev=e,t._numPrev=r)}function zt(){Yt()&&qt()}function Yt(){var t=St;return St=!1,kt=!1,t}function qt(){var t,e,r;do{while(Ot.length>0)for(t=Ot,Ot=[],r=t.length,e=0;e<r;++e){var n=t[e];n[0].apply(null,n[1])}}while(Ot.length>0);St=!0,kt=!0}function Xt(){var t=It;It=[],t.forEach((function(t){t._PSD.onunhandled.call(null,t._value,t)}));var e=Mt.slice(0),r=e.length;while(r)e[--r]()}function Jt(t){return new Qt(vt,!1,t)}function Zt(t,e){var r=Ut;return function(){var n=Yt(),i=Ut;try{return de(r,!0),t.apply(this,arguments)}catch(a){e&&e(a)}finally{de(i,!1),n&&qt()}}}g(Qt.prototype,{then:Nt,_then:function(t,e){Gt(this,new Ht(null,null,t,e,Ut))},catch:function(t){if(1===arguments.length)return this.then(null,t);var e=arguments[0],r=arguments[1];return"function"===typeof e?this.then(null,(function(t){return t instanceof e?r(t):Jt(t)})):this.then(null,(function(t){return t&&t.name===e?r(t):Jt(t)}))},finally:function(t){return this.then((function(e){return t(),e}),(function(e){return t(),Jt(e)}))},stack:{get:function(){if(this._stack)return this._stack;try{Et=!0;var t=function t(e,r,n){if(r.length===n)return r;var i="";if(!1===e._state){var a,s,o=e._value;null!=o?(a=o.name||"Error",s=o.message||o,i=Y(o,0)):(a=o,s=""),r.push(a+(s?": "+s:"")+i)}K&&(i=Y(e._stackHolder,2),i&&-1===r.indexOf(i)&&r.push(i),e._prev&&t(e._prev,r,n));return r}(this,[],20),e=t.join("\nFrom previous: ");return null!==this._state&&(this._stack=e),e}finally{Et=!1}}},timeout:function(t,e){var r=this;return t<1/0?new Qt((function(n,i){var a=setTimeout((function(){return i(new at.Timeout(e))}),t);r.then(n,i).finally(clearTimeout.bind(null,a))})):this}}),"undefined"!==typeof Symbol&&Symbol.toStringTag&&m(Qt.prototype,Symbol.toStringTag,"Dexie.Promise"),Rt.env=fe(),g(Qt,{all:function(){var t=$.apply(null,arguments).map(le);return new Qt((function(e,r){0===t.length&&e([]);var n=t.length;t.forEach((function(i,a){return Qt.resolve(i).then((function(r){t[a]=r,--n||e(t)}),r)}))}))},resolve:function(t){if(t instanceof Qt)return t;if(t&&"function"===typeof t.then)return new Qt((function(e,r){t.then(e,r)}));var e=new Qt(vt,!0,t);return Wt(e,Lt),e},reject:Jt,race:function(){var t=$.apply(null,arguments).map(le);return new Qt((function(e,r){t.map((function(t){return Qt.resolve(t).then(e,r)}))}))},PSD:{get:function(){return Ut},set:function(t){return Ut=t}},totalEchoes:{get:function(){return ie}},newPSD:se,usePSD:he,scheduler:{get:function(){return Tt},set:function(t){Tt=t}},rejectionMapper:{get:function(){return Dt},set:function(t){Dt=t}},follow:function(t,e){return new Qt((function(r,n){return se((function(e,r){var n=Ut;n.unhandleds=[],n.onunhandled=r,n.finalize=At((function(){var t=this;(function(t){Mt.push((function e(){t(),Mt.splice(Mt.indexOf(e),1)})),++Pt,Tt((function(){0===--Pt&&Xt()}),[])})((function(){0===t.unhandleds.length?e():r(t.unhandleds[0])}))}),n.finalize),t()}),e,r,n)}))}}),Bt&&(Bt.allSettled&&m(Qt,"allSettled",(function(){var t=$.apply(null,arguments).map(le);return new Qt((function(e){0===t.length&&e([]);var r=t.length,n=new Array(r);t.forEach((function(t,i){return Qt.resolve(t).then((function(t){return n[i]={status:"fulfilled",value:t}}),(function(t){return n[i]={status:"rejected",reason:t}})).then((function(){return--r||e(n)}))}))}))})),Bt.any&&"undefined"!==typeof AggregateError&&m(Qt,"any",(function(){var t=$.apply(null,arguments).map(le);return new Qt((function(e,r){0===t.length&&r(new AggregateError([]));var n=t.length,i=new Array(n);t.forEach((function(t,a){return Qt.resolve(t).then((function(t){return e(t)}),(function(t){i[a]=t,--n||r(new AggregateError(i))}))}))}))})));var te={awaits:0,echoes:0,id:0},ee=0,re=[],ne=0,ie=0,ae=0;function se(t,e,r,n){var i=Ut,a=Object.create(i);a.parent=i,a.ref=0,a.global=!1,a.id=++ae;var s=Rt.env;a.env=Ct?{Promise:Qt,PromiseProp:{value:Qt,configurable:!0,writable:!0},all:Qt.all,race:Qt.race,allSettled:Qt.allSettled,any:Qt.any,resolve:Qt.resolve,reject:Qt.reject,nthen:ve(s.nthen,a),gthen:ve(s.gthen,a)}:{},e&&d(a,e),++i.ref,a.finalize=function(){--this.parent.ref||this.parent.finalize()};var o=he(a,t,r,n);return 0===a.ref&&a.finalize(),o}function oe(){return te.id||(te.id=++ee),++te.awaits,te.echoes+=100,te.id}function ue(){return!!te.awaits&&(0===--te.awaits&&(te.id=0),te.echoes=100*te.awaits,!0)}function le(t){return te.echoes&&t&&t.constructor===Bt?(oe(),t.then((function(t){return ue(),t}),(function(t){return ue(),ye(t)}))):t}function ce(t){++ie,te.echoes&&0!==--te.echoes||(te.echoes=te.id=0),re.push(Ut),de(t,!0)}function Ae(){var t=re[re.length-1];re.pop(),de(t,!1)}function de(t,e){var r=Ut;if((e?!te.echoes||ne++&&t===Ut:!ne||--ne&&t===Ut)||pe(e?ce.bind(null,t):Ae),t!==Ut&&(Ut=t,r===Rt&&(Rt.env=fe()),Ct)){var n=Rt.env.Promise,i=t.env;wt.then=i.nthen,n.prototype.then=i.gthen,(r.global||t.global)&&(Object.defineProperty(l,"Promise",i.PromiseProp),n.all=i.all,n.race=i.race,n.resolve=i.resolve,n.reject=i.reject,i.allSettled&&(n.allSettled=i.allSettled),i.any&&(n.any=i.any))}}function fe(){var t=l.Promise;return Ct?{Promise:t,PromiseProp:Object.getOwnPropertyDescriptor(l,"Promise"),all:t.all,race:t.race,allSettled:t.allSettled,any:t.any,resolve:t.resolve,reject:t.reject,nthen:wt.then,gthen:t.prototype.then}:{}}function he(t,e,r,n,i){var a=Ut;try{return de(t,!0),e(r,n,i)}finally{de(a,!1)}}function pe(t){_t.call(yt,t)}function ge(t,e,r,n){return"function"!==typeof t?t:function(){var i=Ut;r&&oe(),de(e,!0);try{return t.apply(this,arguments)}finally{de(i,!1),n&&pe(ue)}}}function ve(t,e){return function(r,n){return t.call(this,ge(r,e),ge(n,e))}}-1===(""+_t).indexOf("[native code]")&&(oe=ue=ut);function me(t,e){var r;try{r=e.onuncatched(t)}catch(s){}if(!1!==r)try{var n,a={promise:e,reason:t};if(l.document&&document.createEvent?(n=document.createEvent("Event"),n.initEvent("unhandledrejection",!0,!0),d(n,a)):l.CustomEvent&&(n=new CustomEvent("unhandledrejection",{detail:a}),d(n,a)),n&&l.dispatchEvent&&(dispatchEvent(n),!l.PromiseRejectionEvent&&l.onunhandledrejection))try{l.onunhandledrejection(n)}catch(o){}K&&n&&!n.defaultPrevented&&i("warn","Unhandled rejection: "+(t.stack||t)," at node_modules/dexie/dist/dexie.mjs:1240")}catch(s){}}var ye=Qt.reject;var we=String.fromCharCode(65535),be="Invalid key provided. Keys must be of type string, number, Date or Array<string | number | Date>.",_e=[],Be="undefined"!==typeof navigator&&/(MSIE|Trident|Edge)/.test(navigator.userAgent),Ce=Be,Ee=Be,xe=function(t){return!/(dexie\.js|dexie\.min\.js)/.test(t)};function Te(t,e){return t?e?function(){return t.apply(this,arguments)&&e.apply(this,arguments)}:t:e}var Se={type:3,lower:-1/0,lowerOpen:!1,upper:[[]],upperOpen:!1};function ke(t){return"string"!==typeof t||/\./.test(t)?function(t){return t}:function(e){return void 0===e[t]&&t in e&&(e=O(e),delete e[t]),e}}var Ie=function(){function t(){}return t.prototype._trans=function(t,e,r){var n=this._tx||Ut.trans,a=this.name;function s(t,r,n){if(!n.schema[a])throw new at.NotFound("Table "+a+" not part of transaction");return e(n.idbtrans,n)}var o=Yt();try{return n&&n.db===this.db?n===Ut.trans?n._promise(t,s,r):se((function(){return n._promise(t,s,r)}),{trans:n,transless:Ut.transless||Ut}):function t(e,r,n,a){if(e.idbdb&&(e._state.openComplete||Ut.letThrough||e._vip)){var s=e._createTransaction(r,n,e._dbSchema);try{s.create(),e._state.PR1398_maxLoop=3}catch(o){return o.name===nt.InvalidState&&e.isOpen()&&--e._state.PR1398_maxLoop>0?(i("warn","Dexie: Need to reopen db"," at node_modules/dexie/dist/dexie.mjs:1267"),e._close(),e.open().then((function(){return t(e,r,n,a)}))):ye(o)}return s._promise(r,(function(t,e){return se((function(){return Ut.trans=s,a(t,e,s)}))})).then((function(t){return s._completion.then((function(){return t}))}))}if(e._state.openComplete)return ye(new at.DatabaseClosed(e._state.dbOpenError));if(!e._state.isBeingOpened){if(!e._options.autoOpen)return ye(new at.DatabaseClosed);e.open().catch(ut)}return e._state.dbReadyPromise.then((function(){return t(e,r,n,a)}))}(this.db,t,[this.name],s)}finally{o&&qt()}},t.prototype.get=function(t,e){var r=this;return t&&t.constructor===Object?this.where(t).first(e):this._trans("readonly",(function(e){return r.core.get({trans:e,key:t}).then((function(t){return r.hook.reading.fire(t)}))})).then(e)},t.prototype.where=function(t){if("string"===typeof t)return new this.db.WhereClause(this,t);if(A(t))return new this.db.WhereClause(this,"["+t.join("+")+"]");var e=c(t);if(1===e.length)return this.where(e[0]).equals(t[e[0]]);var r=this.schema.indexes.concat(this.schema.primKey).filter((function(t){return t.compound&&e.every((function(e){return t.keyPath.indexOf(e)>=0}))&&t.keyPath.every((function(t){return e.indexOf(t)>=0}))}))[0];if(r&&this.db._maxKey!==we)return this.where(r.name).equals(r.keyPath.map((function(e){return t[e]})));!r&&K&&i("warn","The query "+JSON.stringify(t)+" on "+this.name+" would benefit of a compound index ["+e.join("+")+"]"," at node_modules/dexie/dist/dexie.mjs:1379");var n=this.schema.idxByName,a=this.db._deps.indexedDB;function s(t,e){try{return 0===a.cmp(t,e)}catch(r){return!1}}var o=e.reduce((function(e,r){var i=e[0],a=e[1],o=n[r],u=t[r];return[i||o,i||!o?Te(a,o&&o.multi?function(t){var e=S(t,r);return A(e)&&e.some((function(t){return s(u,t)}))}:function(t){return s(u,S(t,r))}):a]}),[null,null]),u=o[0],l=o[1];return u?this.where(u.name).equals(t[u.keyPath]).filter(l):r?this.filter(l):this.where(e).equals("")},t.prototype.filter=function(t){return this.toCollection().and(t)},t.prototype.count=function(t){return this.toCollection().count(t)},t.prototype.offset=function(t){return this.toCollection().offset(t)},t.prototype.limit=function(t){return this.toCollection().limit(t)},t.prototype.each=function(t){return this.toCollection().each(t)},t.prototype.toArray=function(t){return this.toCollection().toArray(t)},t.prototype.toCollection=function(){return new this.db.Collection(new this.db.WhereClause(this))},t.prototype.orderBy=function(t){return new this.db.Collection(new this.db.WhereClause(this,A(t)?"["+t.join("+")+"]":t))},t.prototype.reverse=function(){return this.toCollection().reverse()},t.prototype.mapToClass=function(t){this.schema.mappedClass=t;var e=function(e){if(!e)return e;var r=Object.create(t.prototype);for(var n in e)if(p(e,n))try{r[n]=e[n]}catch(i){}return r};return this.schema.readHook&&this.hook.reading.unsubscribe(this.schema.readHook),this.schema.readHook=e,this.hook("reading",e),t},t.prototype.defineClass=function(){return this.mapToClass((function(t){d(this,t)}))},t.prototype.add=function(t,e){var r=this,n=this.schema.primKey,i=n.auto,a=n.keyPath,s=t;return a&&i&&(s=ke(a)(t)),this._trans("readwrite",(function(t){return r.core.mutate({trans:t,type:"add",keys:null!=e?[e]:null,values:[s]})})).then((function(t){return t.numFailures?Qt.reject(t.failures[0]):t.lastResult})).then((function(e){if(a)try{k(t,a,e)}catch(r){}return e}))},t.prototype.update=function(t,e){if("object"!==(0,s.default)(t)||A(t))return this.where(":id").equals(t).modify(e);var r=S(t,this.schema.primKey.keyPath);if(void 0===r)return ye(new at.InvalidArgument("Given object does not contain its primary key"));try{"function"!==typeof e?c(e).forEach((function(r){k(t,r,e[r])})):e(t,{value:t,primKey:r})}catch(Qr){}return this.where(":id").equals(r).modify(e)},t.prototype.put=function(t,e){var r=this,n=this.schema.primKey,i=n.auto,a=n.keyPath,s=t;return a&&i&&(s=ke(a)(t)),this._trans("readwrite",(function(t){return r.core.mutate({trans:t,type:"put",values:[s],keys:null!=e?[e]:null})})).then((function(t){return t.numFailures?Qt.reject(t.failures[0]):t.lastResult})).then((function(e){if(a)try{k(t,a,e)}catch(r){}return e}))},t.prototype.delete=function(t){var e=this;return this._trans("readwrite",(function(r){return e.core.mutate({trans:r,type:"delete",keys:[t]})})).then((function(t){return t.numFailures?Qt.reject(t.failures[0]):void 0}))},t.prototype.clear=function(){var t=this;return this._trans("readwrite",(function(e){return t.core.mutate({trans:e,type:"deleteRange",range:Se})})).then((function(t){return t.numFailures?Qt.reject(t.failures[0]):void 0}))},t.prototype.bulkGet=function(t){var e=this;return this._trans("readonly",(function(r){return e.core.getMany({keys:t,trans:r}).then((function(t){return t.map((function(t){return e.hook.reading.fire(t)}))}))}))},t.prototype.bulkAdd=function(t,e,r){var n=this,i=Array.isArray(e)?e:void 0;r=r||(i?void 0:e);var a=r?r.allKeys:void 0;return this._trans("readwrite",(function(e){var r=n.schema.primKey,s=r.auto,o=r.keyPath;if(o&&i)throw new at.InvalidArgument("bulkAdd(): keys argument invalid on tables with inbound keys");if(i&&i.length!==t.length)throw new at.InvalidArgument("Arguments objects and keys must have the same length");var u=t.length,l=o&&s?t.map(ke(o)):t;return n.core.mutate({trans:e,type:"add",keys:i,values:l,wantResults:a}).then((function(t){var e=t.numFailures,r=t.results,i=t.lastResult,s=t.failures,o=a?r:i;if(0===e)return o;throw new rt(n.name+".bulkAdd(): "+e+" of "+u+" operations failed",s)}))}))},t.prototype.bulkPut=function(t,e,r){var n=this,i=Array.isArray(e)?e:void 0;r=r||(i?void 0:e);var a=r?r.allKeys:void 0;return this._trans("readwrite",(function(e){var r=n.schema.primKey,s=r.auto,o=r.keyPath;if(o&&i)throw new at.InvalidArgument("bulkPut(): keys argument invalid on tables with inbound keys");if(i&&i.length!==t.length)throw new at.InvalidArgument("Arguments objects and keys must have the same length");var u=t.length,l=o&&s?t.map(ke(o)):t;return n.core.mutate({trans:e,type:"put",keys:i,values:l,wantResults:a}).then((function(t){var e=t.numFailures,r=t.results,i=t.lastResult,s=t.failures,o=a?r:i;if(0===e)return o;throw new rt(n.name+".bulkPut(): "+e+" of "+u+" operations failed",s)}))}))},t.prototype.bulkDelete=function(t){var e=this,r=t.length;return this._trans("readwrite",(function(r){return e.core.mutate({trans:r,type:"delete",keys:t})})).then((function(t){var n=t.numFailures,i=t.lastResult,a=t.failures;if(0===n)return i;throw new rt(e.name+".bulkDelete(): "+n+" of "+r+" operations failed",a)}))},t}();function Fe(t){var e={},r=function(r,n){if(n){var i=arguments.length,a=new Array(i-1);while(--i)a[i-1]=arguments[i];return e[r].subscribe.apply(null,a),t}if("string"===typeof r)return e[r]};r.addEventType=a;for(var n=1,i=arguments.length;n<i;++n)a(arguments[n]);return r;function a(t,n,i){if("object"===(0,s.default)(t))return o(t);n||(n=pt),i||(i=ut);var a={subscribers:[],fire:i,subscribe:function(t){-1===a.subscribers.indexOf(t)&&(a.subscribers.push(t),a.fire=n(a.fire,t))},unsubscribe:function(t){a.subscribers=a.subscribers.filter((function(e){return e!==t})),a.fire=a.subscribers.reduce(n,i)}};return e[t]=r[t]=a,a}function o(t){c(t).forEach((function(e){var r=t[e];if(A(r))a(e,t[e][0],t[e][1]);else{if("asap"!==r)throw new at.InvalidArgument("Invalid event config");var n=a(e,lt,(function(){var t=arguments.length,e=new Array(t);while(t--)e[t]=arguments[t];n.subscribers.forEach((function(t){x((function(){t.apply(null,e)}))}))}))}}))}}function Le(t,e){return y(e).from({prototype:t}),e}function De(t,e){return!(t.filter||t.algorithm||t.or)&&(e?t.justLimit:!t.replayFilter)}function Re(t,e){t.filter=Te(t.filter,e)}function Ue(t,e,r){var n=t.replayFilter;t.replayFilter=n?function(){return Te(n(),e())}:e,t.justLimit=r&&!n}function Oe(t,e){if(t.isPrimKey)return e.primaryKey;var r=e.getIndexByKeyPath(t.index);if(!r)throw new at.Schema("KeyPath "+t.index+" on object store "+e.name+" is not indexed");return r}function Pe(t,e,r){var n=Oe(t,e.schema);return e.openCursor({trans:r,values:!t.keysOnly,reverse:"prev"===t.dir,unique:!!t.unique,query:{index:n,range:t.range}})}function Me(t,e,r,n){var i=t.replayFilter?Te(t.filter,t.replayFilter()):t.filter;if(t.or){var a={},s=function(t,r,n){if(!i||i(r,n,(function(t){return r.stop(t)}),(function(t){return r.fail(t)}))){var s=r.primaryKey,o=""+s;"[object ArrayBuffer]"===o&&(o=""+new Uint8Array(s)),p(a,o)||(a[o]=!0,e(t,r,n))}};return Promise.all([t.or._iterate(s,r),Qe(Pe(t,n,r),t.algorithm,s,!t.keysOnly&&t.valueMapper)])}return Qe(Pe(t,n,r),Te(t.algorithm,i),e,!t.keysOnly&&t.valueMapper)}function Qe(t,e,r,n){var i=n?function(t,e,i){return r(n(t),e,i)}:r,a=Zt(i);return t.then((function(t){if(t)return t.start((function(){var r=function(){return t.continue()};e&&!e(t,(function(t){return r=t}),(function(e){t.stop(e),r=ut}),(function(e){t.fail(e),r=ut}))||a(t.value,t,(function(t){return r=t})),r()}))}))}function Ne(t,e){try{var r=He(t),n=He(e);if(r!==n)return"Array"===r?1:"Array"===n?-1:"binary"===r?1:"binary"===n?-1:"string"===r?1:"string"===n?-1:"Date"===r?1:"Date"!==n?NaN:-1;switch(r){case"number":case"Date":case"string":return t>e?1:t<e?-1:0;case"binary":return function(t,e){for(var r=t.length,n=e.length,i=r<n?r:n,a=0;a<i;++a)if(t[a]!==e[a])return t[a]<e[a]?-1:1;return r===n?0:r<n?-1:1}($e(t),$e(e));case"Array":return function(t,e){for(var r=t.length,n=e.length,i=r<n?r:n,a=0;a<i;++a){var s=Ne(t[a],e[a]);if(0!==s)return s}return r===n?0:r<n?-1:1}(t,e)}}catch(Qr){}return NaN}function He(t){var e=(0,s.default)(t);if("object"!==e)return e;if(ArrayBuffer.isView(t))return"binary";var r=M(t);return"ArrayBuffer"===r?"binary":r}function $e(t){return t instanceof Uint8Array?t:ArrayBuffer.isView(t)?new Uint8Array(t.buffer,t.byteOffset,t.byteLength):new Uint8Array(t)}var je=function(){function t(){}return t.prototype._read=function(t,e){var r=this._ctx;return r.error?r.table._trans(null,ye.bind(null,r.error)):r.table._trans("readonly",t).then(e)},t.prototype._write=function(t){var e=this._ctx;return e.error?e.table._trans(null,ye.bind(null,e.error)):e.table._trans("readwrite",t,"locked")},t.prototype._addAlgorithm=function(t){var e=this._ctx;e.algorithm=Te(e.algorithm,t)},t.prototype._iterate=function(t,e){return Me(this._ctx,t,e,this._ctx.table.core)},t.prototype.clone=function(t){var e=Object.create(this.constructor.prototype),r=Object.create(this._ctx);return t&&d(r,t),e._ctx=r,e},t.prototype.raw=function(){return this._ctx.valueMapper=null,this},t.prototype.each=function(t){var e=this._ctx;return this._read((function(r){return Me(e,t,r,e.table.core)}))},t.prototype.count=function(t){var e=this;return this._read((function(t){var r=e._ctx,n=r.table.core;if(De(r,!0))return n.count({trans:t,query:{index:Oe(r,n.schema),range:r.range}}).then((function(t){return Math.min(t,r.limit)}));var i=0;return Me(r,(function(){return++i,!1}),t,n).then((function(){return i}))})).then(t)},t.prototype.sortBy=function(t,e){var r=t.split(".").reverse(),n=r[0],i=r.length-1;function a(t,e){return e?a(t[r[e]],e-1):t[n]}var s="next"===this._ctx.dir?1:-1;function o(t,e){var r=a(t,i),n=a(e,i);return r<n?-s:r>n?s:0}return this.toArray((function(t){return t.sort(o)})).then(e)},t.prototype.toArray=function(t){var e=this;return this._read((function(t){var r=e._ctx;if("next"===r.dir&&De(r,!0)&&r.limit>0){var n=r.valueMapper,i=Oe(r,r.table.core.schema);return r.table.core.query({trans:t,limit:r.limit,values:!0,query:{index:i,range:r.range}}).then((function(t){var e=t.result;return n?e.map(n):e}))}var a=[];return Me(r,(function(t){return a.push(t)}),t,r.table.core).then((function(){return a}))}),t)},t.prototype.offset=function(t){var e=this._ctx;return t<=0||(e.offset+=t,De(e)?Ue(e,(function(){var e=t;return function(t,r){return 0===e||(1===e?(--e,!1):(r((function(){t.advance(e),e=0})),!1))}})):Ue(e,(function(){var e=t;return function(){return--e<0}}))),this},t.prototype.limit=function(t){return this._ctx.limit=Math.min(this._ctx.limit,t),Ue(this._ctx,(function(){var e=t;return function(t,r,n){return--e<=0&&r(n),e>=0}}),!0),this},t.prototype.until=function(t,e){return Re(this._ctx,(function(r,n,i){return!t(r.value)||(n(i),e)})),this},t.prototype.first=function(t){return this.limit(1).toArray((function(t){return t[0]})).then(t)},t.prototype.last=function(t){return this.reverse().first(t)},t.prototype.filter=function(t){return Re(this._ctx,(function(e){return t(e.value)})),function(t,e){t.isMatch=Te(t.isMatch,e)}(this._ctx,t),this},t.prototype.and=function(t){return this.filter(t)},t.prototype.or=function(t){return new this.db.WhereClause(this._ctx.table,t,this)},t.prototype.reverse=function(){return this._ctx.dir="prev"===this._ctx.dir?"next":"prev",this._ondirectionchange&&this._ondirectionchange(this._ctx.dir),this},t.prototype.desc=function(){return this.reverse()},t.prototype.eachKey=function(t){var e=this._ctx;return e.keysOnly=!e.isMatch,this.each((function(e,r){t(r.key,r)}))},t.prototype.eachUniqueKey=function(t){return this._ctx.unique="unique",this.eachKey(t)},t.prototype.eachPrimaryKey=function(t){var e=this._ctx;return e.keysOnly=!e.isMatch,this.each((function(e,r){t(r.primaryKey,r)}))},t.prototype.keys=function(t){var e=this._ctx;e.keysOnly=!e.isMatch;var r=[];return this.each((function(t,e){r.push(e.key)})).then((function(){return r})).then(t)},t.prototype.primaryKeys=function(t){var e=this._ctx;if("next"===e.dir&&De(e,!0)&&e.limit>0)return this._read((function(t){var r=Oe(e,e.table.core.schema);return e.table.core.query({trans:t,values:!1,limit:e.limit,query:{index:r,range:e.range}})})).then((function(t){var e=t.result;return e})).then(t);e.keysOnly=!e.isMatch;var r=[];return this.each((function(t,e){r.push(e.primaryKey)})).then((function(){return r})).then(t)},t.prototype.uniqueKeys=function(t){return this._ctx.unique="unique",this.keys(t)},t.prototype.firstKey=function(t){return this.limit(1).keys((function(t){return t[0]})).then(t)},t.prototype.lastKey=function(t){return this.reverse().firstKey(t)},t.prototype.distinct=function(){var t=this._ctx,e=t.index&&t.table.schema.idxByName[t.index];if(!e||!e.multi)return this;var r={};return Re(this._ctx,(function(t){var e=t.primaryKey.toString(),n=p(r,e);return r[e]=!0,!n})),this},t.prototype.modify=function(t){var e=this,r=this._ctx;return this._write((function(n){var i;if("function"===typeof t)i=t;else{var a=c(t),o=a.length;i=function(e){for(var r=!1,n=0;n<o;++n){var i=a[n],s=t[i];S(e,i)!==s&&(k(e,i,s),r=!0)}return r}}var u=r.table.core,l=u.schema.primaryKey,A=l.outbound,d=l.extractKey,f=e.db._options.modifyChunkSize||200,h=[],p=0,g=[],v=function(t,e){var r=e.failures,n=e.numFailures;p+=t-n;for(var i=0,a=c(r);i<a.length;i++){var s=a[i];h.push(r[s])}};return e.clone().primaryKeys().then((function(e){return function a(o){var l=Math.min(f,e.length-o);return u.getMany({trans:n,keys:e.slice(o,o+l),cache:"immutable"}).then((function(c){for(var h=[],p=[],g=A?[]:null,m=[],y=0;y<l;++y){var w=c[y],b={value:O(w),primKey:e[o+y]};!1!==i.call(b,b.value,b)&&(null==b.value?m.push(e[o+y]):A||0===Ne(d(w),d(b.value))?(p.push(b.value),A&&g.push(e[o+y])):(m.push(e[o+y]),h.push(b.value)))}var _=De(r)&&r.limit===1/0&&("function"!==typeof t||t===Ke)&&{index:r.index,range:r.range};return Promise.resolve(h.length>0&&u.mutate({trans:n,type:"add",values:h}).then((function(t){for(var e in t.failures)m.splice(parseInt(e),1);v(h.length,t)}))).then((function(){return(p.length>0||_&&"object"===(0,s.default)(t))&&u.mutate({trans:n,type:"put",keys:g,values:p,criteria:_,changeSpec:"function"!==typeof t&&t}).then((function(t){return v(p.length,t)}))})).then((function(){return(m.length>0||_&&t===Ke)&&u.mutate({trans:n,type:"delete",keys:m,criteria:_}).then((function(t){return v(m.length,t)}))})).then((function(){return e.length>o+l&&a(o+f)}))}))}(0).then((function(){if(h.length>0)throw new et("Error modifying one or more objects",h,p,g);return e.length}))}))}))},t.prototype.delete=function(){var t=this._ctx,e=t.range;return De(t)&&(t.isPrimKey&&!Ee||3===e.type)?this._write((function(r){var n=t.table.core.schema.primaryKey,i=e;return t.table.core.count({trans:r,query:{index:n,range:i}}).then((function(e){return t.table.core.mutate({trans:r,type:"deleteRange",range:i}).then((function(t){var r=t.failures;t.lastResult,t.results;var n=t.numFailures;if(n)throw new et("Could not delete some values",Object.keys(r).map((function(t){return r[t]})),e-n);return e-n}))}))})):this.modify(Ke)},t}(),Ke=function(t,e){return e.value=null};function Ge(t,e){return t<e?-1:t===e?0:1}function Ve(t,e){return t>e?-1:t===e?0:1}function We(t,e,r){var n=t instanceof Ze?new t.Collection(t):t;return n._ctx.error=r?new r(e):new TypeError(e),n}function ze(t){return new t.Collection(t,(function(){return Je("")})).limit(0)}function Ye(t,e,r,n,i,a){for(var s=Math.min(t.length,n.length),o=-1,u=0;u<s;++u){var l=e[u];if(l!==n[u])return i(t[u],r[u])<0?t.substr(0,u)+r[u]+r.substr(u+1):i(t[u],n[u])<0?t.substr(0,u)+n[u]+r.substr(u+1):o>=0?t.substr(0,o)+e[o]+r.substr(o+1):null;i(t[u],l)<0&&(o=u)}return s<n.length&&"next"===a?t+r.substr(t.length):s<t.length&&"prev"===a?t.substr(0,r.length):o<0?null:t.substr(0,o)+n[o]+r.substr(o+1)}function qe(t,e,r,n){var i,a,s,o,u,l,c,A=r.length;if(!r.every((function(t){return"string"===typeof t})))return We(t,"String expected.");function d(t){i=function(t){return"next"===t?function(t){return t.toUpperCase()}:function(t){return t.toLowerCase()}}(t),a=function(t){return"next"===t?function(t){return t.toLowerCase()}:function(t){return t.toUpperCase()}}(t),s="next"===t?Ge:Ve;var e=r.map((function(t){return{lower:a(t),upper:i(t)}})).sort((function(t,e){return s(t.lower,e.lower)}));o=e.map((function(t){return t.upper})),u=e.map((function(t){return t.lower})),l=t,c="next"===t?"":n}d("next");var f=new t.Collection(t,(function(){return Xe(o[0],u[A-1]+n)}));f._ondirectionchange=function(t){d(t)};var h=0;return f._addAlgorithm((function(t,r,n){var i=t.key;if("string"!==typeof i)return!1;var d=a(i);if(e(d,u,h))return!0;for(var f=null,p=h;p<A;++p){var g=Ye(i,d,o[p],u[p],s,l);null===g&&null===f?h=p+1:(null===f||s(f,g)>0)&&(f=g)}return r(null!==f?function(){t.continue(f+c)}:n),!1})),f}function Xe(t,e,r,n){return{type:2,lower:t,upper:e,lowerOpen:r,upperOpen:n}}function Je(t){return{type:1,lower:t,upper:t}}var Ze=function(){function t(){}return Object.defineProperty(t.prototype,"Collection",{get:function(){return this._ctx.table.db.Collection},enumerable:!1,configurable:!0}),t.prototype.between=function(t,e,r,n){r=!1!==r,n=!0===n;try{return this._cmp(t,e)>0||0===this._cmp(t,e)&&(r||n)&&(!r||!n)?ze(this):new this.Collection(this,(function(){return Xe(t,e,!r,!n)}))}catch(i){return We(this,be)}},t.prototype.equals=function(t){return null==t?We(this,be):new this.Collection(this,(function(){return Je(t)}))},t.prototype.above=function(t){return null==t?We(this,be):new this.Collection(this,(function(){return Xe(t,void 0,!0)}))},t.prototype.aboveOrEqual=function(t){return null==t?We(this,be):new this.Collection(this,(function(){return Xe(t,void 0,!1)}))},t.prototype.below=function(t){return null==t?We(this,be):new this.Collection(this,(function(){return Xe(void 0,t,!1,!0)}))},t.prototype.belowOrEqual=function(t){return null==t?We(this,be):new this.Collection(this,(function(){return Xe(void 0,t)}))},t.prototype.startsWith=function(t){return"string"!==typeof t?We(this,"String expected."):this.between(t,t+we,!0,!0)},t.prototype.startsWithIgnoreCase=function(t){return""===t?this.startsWith(t):qe(this,(function(t,e){return 0===t.indexOf(e[0])}),[t],we)},t.prototype.equalsIgnoreCase=function(t){return qe(this,(function(t,e){return t===e[0]}),[t],"")},t.prototype.anyOfIgnoreCase=function(){var t=$.apply(H,arguments);return 0===t.length?ze(this):qe(this,(function(t,e){return-1!==e.indexOf(t)}),t,"")},t.prototype.startsWithAnyOfIgnoreCase=function(){var t=$.apply(H,arguments);return 0===t.length?ze(this):qe(this,(function(t,e){return e.some((function(e){return 0===t.indexOf(e)}))}),t,we)},t.prototype.anyOf=function(){var t=this,e=$.apply(H,arguments),r=this._cmp;try{e.sort(r)}catch(a){return We(this,be)}if(0===e.length)return ze(this);var n=new this.Collection(this,(function(){return Xe(e[0],e[e.length-1])}));n._ondirectionchange=function(n){r="next"===n?t._ascending:t._descending,e.sort(r)};var i=0;return n._addAlgorithm((function(t,n,a){var s=t.key;while(r(s,e[i])>0)if(++i,i===e.length)return n(a),!1;return 0===r(s,e[i])||(n((function(){t.continue(e[i])})),!1)})),n},t.prototype.notEqual=function(t){return this.inAnyRange([[-1/0,t],[t,this.db._maxKey]],{includeLowers:!1,includeUppers:!1})},t.prototype.noneOf=function(){var t=$.apply(H,arguments);if(0===t.length)return new this.Collection(this);try{t.sort(this._ascending)}catch(r){return We(this,be)}var e=t.reduce((function(t,e){return t?t.concat([[t[t.length-1][1],e]]):[[-1/0,e]]}),null);return e.push([t[t.length-1],this.db._maxKey]),this.inAnyRange(e,{includeLowers:!1,includeUppers:!1})},t.prototype.inAnyRange=function(t,e){var r=this,n=this._cmp,i=this._ascending,a=this._descending,s=this._min,o=this._max;if(0===t.length)return ze(this);if(!t.every((function(t){return void 0!==t[0]&&void 0!==t[1]&&i(t[0],t[1])<=0})))return We(this,"First argument to inAnyRange() must be an Array of two-value Arrays [lower,upper] where upper must not be lower than lower",at.InvalidArgument);var u=!e||!1!==e.includeLowers,l=e&&!0===e.includeUppers;var c,A=i;function d(t,e){return A(t[0],e[0])}try{c=t.reduce((function(t,e){for(var r=0,i=t.length;r<i;++r){var a=t[r];if(n(e[0],a[1])<0&&n(e[1],a[0])>0){a[0]=s(a[0],e[0]),a[1]=o(a[1],e[1]);break}}return r===i&&t.push(e),t}),[]),c.sort(d)}catch(m){return We(this,be)}var f=0,h=l?function(t){return i(t,c[f][1])>0}:function(t){return i(t,c[f][1])>=0},p=u?function(t){return a(t,c[f][0])>0}:function(t){return a(t,c[f][0])>=0};var g=h,v=new this.Collection(this,(function(){return Xe(c[0][0],c[c.length-1][1],!u,!l)}));return v._ondirectionchange=function(t){"next"===t?(g=h,A=i):(g=p,A=a),c.sort(d)},v._addAlgorithm((function(t,e,n){var a=t.key;while(g(a))if(++f,f===c.length)return e(n),!1;return!!function(t){return!h(t)&&!p(t)}(a)||(0===r._cmp(a,c[f][1])||0===r._cmp(a,c[f][0])||e((function(){A===i?t.continue(c[f][0]):t.continue(c[f][1])})),!1)})),v},t.prototype.startsWithAnyOf=function(){var t=$.apply(H,arguments);return t.every((function(t){return"string"===typeof t}))?0===t.length?ze(this):this.inAnyRange(t.map((function(t){return[t,t+we]}))):We(this,"startsWithAnyOf() only works with strings")},t}();function tr(t){return Zt((function(e){return er(e),t(e.target.error),!1}))}function er(t){t.stopPropagation&&t.stopPropagation(),t.preventDefault&&t.preventDefault()}var rr=Fe(null,"storagemutated"),nr=function(){function t(){}return t.prototype._lock=function(){return E(!Ut.global),++this._reculock,1!==this._reculock||Ut.global||(Ut.lockOwnerFor=this),this},t.prototype._unlock=function(){if(E(!Ut.global),0===--this._reculock){Ut.global||(Ut.lockOwnerFor=null);while(this._blockedFuncs.length>0&&!this._locked()){var t=this._blockedFuncs.shift();try{he(t[1],t[0])}catch(e){}}}return this},t.prototype._locked=function(){return this._reculock&&Ut.lockOwnerFor!==this},t.prototype.create=function(t){var e=this;if(!this.mode)return this;var r=this.db.idbdb,n=this.db._state.dbOpenError;if(E(!this.idbtrans),!t&&!r)switch(n&&n.name){case"DatabaseClosedError":throw new at.DatabaseClosed(n);case"MissingAPIError":throw new at.MissingAPI(n.message,n);default:throw new at.OpenFailed(n)}if(!this.active)throw new at.TransactionInactive;return E(null===this._completion._state),t=this.idbtrans=t||(this.db.core?this.db.core.transaction(this.storeNames,this.mode,{durability:this.chromeTransactionDurability}):r.transaction(this.storeNames,this.mode,{durability:this.chromeTransactionDurability})),t.onerror=Zt((function(r){er(r),e._reject(t.error)})),t.onabort=Zt((function(r){er(r),e.active&&e._reject(new at.Abort(t.error)),e.active=!1,e.on("abort").fire(r)})),t.oncomplete=Zt((function(){e.active=!1,e._resolve(),"mutatedParts"in t&&rr.storagemutated.fire(t["mutatedParts"])})),this},t.prototype._promise=function(t,e,r){var n=this;if("readwrite"===t&&"readwrite"!==this.mode)return ye(new at.ReadOnly("Transaction is readonly"));if(!this.active)return ye(new at.TransactionInactive);if(this._locked())return new Qt((function(i,a){n._blockedFuncs.push([function(){n._promise(t,e,r).then(i,a)},Ut])}));if(r)return se((function(){var t=new Qt((function(t,r){n._lock();var i=e(t,r,n);i&&i.then&&i.then(t,r)}));return t.finally((function(){return n._unlock()})),t._lib=!0,t}));var i=new Qt((function(t,r){var i=e(t,r,n);i&&i.then&&i.then(t,r)}));return i._lib=!0,i},t.prototype._root=function(){return this.parent?this.parent._root():this},t.prototype.waitFor=function(t){var e=this._root(),r=Qt.resolve(t);if(e._waitingFor)e._waitingFor=e._waitingFor.then((function(){return r}));else{e._waitingFor=r,e._waitingQueue=[];var n=e.idbtrans.objectStore(e.storeNames[0]);(function t(){++e._spinCount;while(e._waitingQueue.length)e._waitingQueue.shift()();e._waitingFor&&(n.get(-1/0).onsuccess=t)})()}var i=e._waitingFor;return new Qt((function(t,n){r.then((function(r){return e._waitingQueue.push(Zt(t.bind(null,r)))}),(function(t){return e._waitingQueue.push(Zt(n.bind(null,t)))})).finally((function(){e._waitingFor===i&&(e._waitingFor=null)}))}))},t.prototype.abort=function(){this.active&&(this.active=!1,this.idbtrans&&this.idbtrans.abort(),this._reject(new at.Abort))},t.prototype.table=function(t){var e=this._memoizedTables||(this._memoizedTables={});if(p(e,t))return e[t];var r=this.schema[t];if(!r)throw new at.NotFound("Table "+t+" not part of transaction");var n=new this.db.Table(t,r,this);return n.core=this.db.core.table(t),e[t]=n,n},t}();function ir(t,e,r,n,i,a,s){return{name:t,keyPath:e,unique:r,multi:n,auto:i,compound:a,src:(r&&!s?"&":"")+(n?"*":"")+(i?"++":"")+ar(e)}}function ar(t){return"string"===typeof t?t:t?"["+[].join.call(t,"+")+"]":""}function sr(t,e,r){return{name:t,primKey:e,indexes:r,mappedClass:null,idxByName:T(r,(function(t){return[t.name,t]}))}}var or=function(t){try{return t.only([[]]),or=function(){return[[]]},[[]]}catch(e){return or=function(){return we},we}};function ur(t){return null==t?function(){}:"string"===typeof t?function(t){var e=t.split(".");return 1===e.length?function(e){return e[t]}:function(e){return S(e,t)}}(t):function(e){return S(e,t)}}function lr(t){return[].slice.call(t)}var cr=0;function Ar(t){return null==t?":id":"string"===typeof t?t:"["+t.join("+")+"]"}function dr(t,e,r){function n(t){if(3===t.type)return null;if(4===t.type)throw new Error("Cannot convert never type to IDBKeyRange");var r=t.lower,n=t.upper,i=t.lowerOpen,a=t.upperOpen,s=void 0===r?void 0===n?null:e.upperBound(n,!!a):void 0===n?e.lowerBound(r,!!i):e.bound(r,n,!!i,!!a);return s}var i=function(t,e){var r=lr(t.objectStoreNames);return{schema:{name:t.name,tables:r.map((function(t){return e.objectStore(t)})).map((function(t){var e=t.keyPath,r=t.autoIncrement,n=A(e),i=null==e,a={},s={name:t.name,primaryKey:{name:null,isPrimaryKey:!0,outbound:i,compound:n,keyPath:e,autoIncrement:r,unique:!0,extractKey:ur(e)},indexes:lr(t.indexNames).map((function(e){return t.index(e)})).map((function(t){var e=t.name,r=t.unique,n=t.multiEntry,i=t.keyPath,s=A(i),o={name:e,compound:s,keyPath:i,unique:r,multiEntry:n,extractKey:ur(i)};return a[Ar(i)]=o,o})),getIndexByKeyPath:function(t){return a[Ar(t)]}};return a[":id"]=s.primaryKey,null!=e&&(a[Ar(e)]=s.primaryKey),s}))},hasGetAll:r.length>0&&"getAll"in e.objectStore(r[0])&&!("undefined"!==typeof navigator&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604)}}(t,r),a=i.schema,s=i.hasGetAll,o=a.tables.map((function(t){return function(t){var e=t.name;return{name:e,schema:t,mutate:function(t){var r=t.trans,i=t.type,a=t.keys,s=t.values,o=t.range;return new Promise((function(t,u){t=Zt(t);var l=r.objectStore(e),c=null==l.keyPath,A="put"===i||"add"===i;if(!A&&"delete"!==i&&"deleteRange"!==i)throw new Error("Invalid operation type: "+i);var d,f=(a||s||{length:1}).length;if(a&&s&&a.length!==s.length)throw new Error("Given keys array must have same length as given values array.");if(0===f)return t({numFailures:0,failures:{},results:[],lastResult:void 0});var h=[],p=[],g=0,v=function(t){++g,er(t)};if("deleteRange"===i){if(4===o.type)return t({numFailures:g,failures:p,results:[],lastResult:void 0});3===o.type?h.push(d=l.clear()):h.push(d=l.delete(n(o)))}else{var m=A?c?[s,a]:[s,null]:[a,null],y=m[0],w=m[1];if(A)for(var b=0;b<f;++b)h.push(d=w&&void 0!==w[b]?l[i](y[b],w[b]):l[i](y[b])),d.onerror=v;else for(b=0;b<f;++b)h.push(d=l[i](y[b])),d.onerror=v}var _=function(e){var r=e.target.result;h.forEach((function(t,e){return null!=t.error&&(p[e]=t.error)})),t({numFailures:g,failures:p,results:"delete"===i?a:h.map((function(t){return t.result})),lastResult:r})};d.onerror=function(t){v(t),_(t)},d.onsuccess=_}))},getMany:function(t){var r=t.trans,n=t.keys;return new Promise((function(t,i){t=Zt(t);for(var a,s=r.objectStore(e),o=n.length,u=new Array(o),l=0,c=0,A=function(e){var r=e.target;u[r._pos]=r.result,++c===l&&t(u)},d=tr(i),f=0;f<o;++f){var h=n[f];null!=h&&(a=s.get(n[f]),a._pos=f,a.onsuccess=A,a.onerror=d,++l)}0===l&&t(u)}))},get:function(t){var r=t.trans,n=t.key;return new Promise((function(t,i){t=Zt(t);var a=r.objectStore(e),s=a.get(n);s.onsuccess=function(e){return t(e.target.result)},s.onerror=tr(i)}))},query:function(t){return function(r){return new Promise((function(i,a){i=Zt(i);var s=r.trans,o=r.values,u=r.limit,l=r.query,c=u===1/0?void 0:u,A=l.index,d=l.range,f=s.objectStore(e),h=A.isPrimaryKey?f:f.index(A.name),p=n(d);if(0===u)return i({result:[]});if(t){var g=o?h.getAll(p,c):h.getAllKeys(p,c);g.onsuccess=function(t){return i({result:t.target.result})},g.onerror=tr(a)}else{var v=0,m=o||!("openKeyCursor"in h)?h.openCursor(p):h.openKeyCursor(p),y=[];m.onsuccess=function(t){var e=m.result;return e?(y.push(o?e.value:e.primaryKey),++v===u?i({result:y}):void e.continue()):i({result:y})},m.onerror=tr(a)}}))}}(s),openCursor:function(t){var r=t.trans,i=t.values,a=t.query,s=t.reverse,o=t.unique;return new Promise((function(t,u){t=Zt(t);var l=a.index,c=a.range,A=r.objectStore(e),d=l.isPrimaryKey?A:A.index(l.name),f=s?o?"prevunique":"prev":o?"nextunique":"next",h=i||!("openKeyCursor"in d)?d.openCursor(n(c),f):d.openKeyCursor(n(c),f);h.onerror=tr(u),h.onsuccess=Zt((function(e){var n=h.result;if(n){n.___id=++cr,n.done=!1;var i=n.continue.bind(n),a=n.continuePrimaryKey;a&&(a=a.bind(n));var s=n.advance.bind(n),o=function(){throw new Error("Cursor not stopped")};n.trans=r,n.stop=n.continue=n.continuePrimaryKey=n.advance=function(){throw new Error("Cursor not started")},n.fail=Zt(u),n.next=function(){var t=this,e=1;return this.start((function(){return e--?t.continue():t.stop()})).then((function(){return t}))},n.start=function(t){var e=new Promise((function(t,e){t=Zt(t),h.onerror=tr(e),n.fail=e,n.stop=function(e){n.stop=n.continue=n.continuePrimaryKey=n.advance=o,t(e)}})),r=function(){if(h.result)try{t()}catch(e){n.fail(e)}else n.done=!0,n.start=function(){throw new Error("Cursor behind last entry")},n.stop()};return h.onsuccess=Zt((function(t){h.onsuccess=r,r()})),n.continue=i,n.continuePrimaryKey=a,n.advance=s,r(),e},t(n)}else t(null)}),u)}))},count:function(t){var r=t.query,i=t.trans,a=r.index,s=r.range;return new Promise((function(t,r){var o=i.objectStore(e),u=a.isPrimaryKey?o:o.index(a.name),l=n(s),c=l?u.count(l):u.count();c.onsuccess=Zt((function(e){return t(e.target.result)})),c.onerror=tr(r)}))}}}(t)})),u={};return o.forEach((function(t){return u[t.name]=t})),{stack:"dbcore",transaction:t.transaction.bind(t),table:function(t){var e=u[t];if(!e)throw new Error("Table '"+t+"' not found");return u[t]},MIN_KEY:-1/0,MAX_KEY:or(e),schema:a}}function fr(t,e,r,n){var i=r.IDBKeyRange;r.indexedDB;var a=function(t,e){return e.reduce((function(t,e){var r=e.create;return o(o({},t),r(t))}),t)}(dr(e,i,n),t.dbcore);return{dbcore:a}}function hr(t,e){var r=t._novip,n=e.db,i=fr(r._middlewares,n,r._deps,e);r.core=i.dbcore,r.tables.forEach((function(t){var e=t.name;r.core.schema.tables.some((function(t){return t.name===e}))&&(t.core=r.core.table(e),r[e]instanceof r.Table&&(r[e].core=t.core))}))}function pr(t,e,r,n){var i=t._novip;r.forEach((function(t){var r=n[t];e.forEach((function(e){var n=b(e,t);(!n||"value"in n&&void 0===n.value)&&(e===i.Transaction.prototype||e instanceof i.Transaction?m(e,t,{get:function(){return this.table(t)},set:function(e){v(this,t,{value:e,writable:!0,configurable:!0,enumerable:!0})}}):e[t]=new i.Table(t,r))}))}))}function gr(t,e){var r=t._novip;e.forEach((function(t){for(var e in t)t[e]instanceof r.Table&&delete t[e]}))}function vr(t,e){return t._cfg.version-e._cfg.version}function mr(t,e,r,n){var i=t._dbSchema,a=t._createTransaction("readwrite",t._storeNames,i);a.create(r),a._completion.catch(n);var s=a._reject.bind(a),o=Ut.transless||Ut;se((function(){Ut.trans=a,Ut.transless=o,0===e?(c(i).forEach((function(t){wr(r,t,i[t].primKey,i[t].indexes)})),hr(t,r),Qt.follow((function(){return t.on.populate.fire(a)})).catch(s)):function(t,e,r,n){var i=t._novip,a=[],s=i._versions,o=i._dbSchema=_r(i,i.idbdb,n),u=!1,l=s.filter((function(t){return t._cfg.version>=e}));function A(){return a.length?Qt.resolve(a.shift()(r.idbtrans)).then(A):Qt.resolve()}return l.forEach((function(t){a.push((function(){var a=o,s=t._cfg.dbschema;Br(i,a,n),Br(i,s,n),o=i._dbSchema=s;var l=yr(a,s);l.add.forEach((function(t){wr(n,t[0],t[1].primKey,t[1].indexes)})),l.change.forEach((function(t){if(t.recreate)throw new at.Upgrade("Not yet support for changing primary key");var e=n.objectStore(t.name);t.add.forEach((function(t){return br(e,t)})),t.change.forEach((function(t){e.deleteIndex(t.name),br(e,t)})),t.del.forEach((function(t){return e.deleteIndex(t)}))}));var A=t._cfg.contentUpgrade;if(A&&t._cfg.version>e){hr(i,n),r._memoizedTables={},u=!0;var d=I(s);l.del.forEach((function(t){d[t]=a[t]})),gr(i,[i.Transaction.prototype]),pr(i,[i.Transaction.prototype],c(d),d),r.schema=d;var f,h=j(A);h&&oe();var p=Qt.follow((function(){if(f=A(r),f&&h){var t=ue.bind(null,null);f.then(t,t)}}));return f&&"function"===typeof f.then?Qt.resolve(f):p.then((function(){return f}))}})),a.push((function(e){if(!u||!Ce){var n=t._cfg.dbschema;(function(t,e){[].slice.call(e.db.objectStoreNames).forEach((function(r){return null==t[r]&&e.db.deleteObjectStore(r)}))})(n,e)}gr(i,[i.Transaction.prototype]),pr(i,[i.Transaction.prototype],i._storeNames,i._dbSchema),r.schema=i._dbSchema}))})),A().then((function(){(function(t,e){c(t).forEach((function(r){e.db.objectStoreNames.contains(r)||wr(e,r,t[r].primKey,t[r].indexes)}))})(o,n)}))}(t,e,a,r).catch(s)}))}function yr(t,e){var r,n={del:[],add:[],change:[]};for(r in t)e[r]||n.del.push(r);for(r in e){var i=t[r],a=e[r];if(i){var s={name:r,def:a,recreate:!1,del:[],add:[],change:[]};if(""+(i.primKey.keyPath||"")!==""+(a.primKey.keyPath||"")||i.primKey.auto!==a.primKey.auto&&!Be)s.recreate=!0,n.change.push(s);else{var o=i.idxByName,u=a.idxByName,l=void 0;for(l in o)u[l]||s.del.push(l);for(l in u){var c=o[l],A=u[l];c?c.src!==A.src&&s.change.push(A):s.add.push(A)}(s.del.length>0||s.add.length>0||s.change.length>0)&&n.change.push(s)}}else n.add.push([r,a])}return n}function wr(t,e,r,n){var i=t.db.createObjectStore(e,r.keyPath?{keyPath:r.keyPath,autoIncrement:r.auto}:{autoIncrement:r.auto});return n.forEach((function(t){return br(i,t)})),i}function br(t,e){t.createIndex(e.name,e.keyPath,{unique:e.unique,multiEntry:e.multi})}function _r(t,e,r){var n={},i=B(e.objectStoreNames,0);return i.forEach((function(t){for(var e=r.objectStore(t),i=e.keyPath,a=ir(ar(i),i||"",!1,!1,!!e.autoIncrement,i&&"string"!==typeof i,!0),s=[],o=0;o<e.indexNames.length;++o){var u=e.index(e.indexNames[o]);i=u.keyPath;var l=ir(u.name,i,!!u.unique,!!u.multiEntry,!1,i&&"string"!==typeof i,!1);s.push(l)}n[t]=sr(t,a,s)})),n}function Br(t,e,r){for(var n=t._novip,i=r.db.objectStoreNames,a=0;a<i.length;++a){var s=i[a],o=r.objectStore(s);n._hasGetAll="getAll"in o;for(var u=0;u<o.indexNames.length;++u){var c=o.indexNames[u],A=o.index(c).keyPath,d="string"===typeof A?A:"["+B(A).join("+")+"]";if(e[s]){var f=e[s].idxByName[d];f&&(f.name=c,delete e[s].idxByName[d],e[s].idxByName[c]=f)}}}"undefined"!==typeof navigator&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&l.WorkerGlobalScope&&l instanceof l.WorkerGlobalScope&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604&&(n._hasGetAll=!1)}var Cr=function(){function t(){}return t.prototype._parseStoresSpec=function(t,e){c(t).forEach((function(r){if(null!==t[r]){var n=function(t){return t.split(",").map((function(t,e){t=t.trim();var r=t.replace(/([&*]|\+\+)/g,""),n=/^\[/.test(r)?r.match(/^\[(.*)\]$/)[1].split("+"):r;return ir(r,n||null,/\&/.test(t),/\*/.test(t),/\+\+/.test(t),A(n),0===e)}))}(t[r]),i=n.shift();if(i.multi)throw new at.Schema("Primary key cannot be multi-valued");n.forEach((function(t){if(t.auto)throw new at.Schema("Only primary key can be marked as autoIncrement (++)");if(!t.keyPath)throw new at.Schema("Index must have a name and cannot be an empty string")})),e[r]=sr(r,i,n)}}))},t.prototype.stores=function(t){var e=this.db;this._cfg.storesSource=this._cfg.storesSource?d(this._cfg.storesSource,t):t;var r=e._versions,n={},i={};return r.forEach((function(t){d(n,t._cfg.storesSource),i=t._cfg.dbschema={},t._parseStoresSpec(n,i)})),e._dbSchema=i,gr(e,[e._allTables,e,e.Transaction.prototype]),pr(e,[e._allTables,e,e.Transaction.prototype,this._cfg.tables],c(i),i),e._storeNames=c(i),this},t.prototype.upgrade=function(t){return this._cfg.contentUpgrade=gt(this._cfg.contentUpgrade||ut,t),this},t}();function Er(t,e){var r=t["_dbNamesDB"];return r||(r=t["_dbNamesDB"]=new qr("__dbnames",{addons:[],indexedDB:t,IDBKeyRange:e}),r.version(1).stores({dbnames:"name"})),r.table("dbnames")}function xr(t){return t&&"function"===typeof t.databases}function Tr(t,e){var r=t.indexedDB,n=t.IDBKeyRange;!xr(r)&&"__dbnames"!==e&&Er(r,n).delete(e).catch(ut)}function Sr(t){return se((function(){return Ut.letThrough=!0,t()}))}function kr(){var t,e=!navigator.userAgentData&&/Safari\//.test(navigator.userAgent)&&!/Chrom(e|ium)\//.test(navigator.userAgent);return e&&indexedDB.databases?new Promise((function(e){var r=function(){return indexedDB.databases().finally(e)};t=setInterval(r,100),r()})).finally((function(){return clearInterval(t)})):Promise.resolve()}function Ir(t){var e=t._state,r=t._deps.indexedDB;if(e.isBeingOpened||t.idbdb)return e.dbReadyPromise.then((function(){return e.dbOpenError?ye(e.dbOpenError):t}));K&&(e.openCanceller._stackHolder=z()),e.isBeingOpened=!0,e.dbOpenError=null,e.openComplete=!1;var n=e.openCanceller;function a(){if(e.openCanceller!==n)throw new at.DatabaseClosed("db.open() was cancelled")}var s=e.dbReadyResolve,o=null,u=!1;return Qt.race([n,("undefined"===typeof navigator?Qt.resolve():kr()).then((function(){return new Qt((function(n,s){if(a(),!r)throw new at.MissingAPI;var l=t.name,A=e.autoSchema?r.open(l):r.open(l,Math.round(10*t.verno));if(!A)throw new at.MissingAPI;A.onerror=tr(s),A.onblocked=Zt(t._fireOnBlocked),A.onupgradeneeded=Zt((function(n){if(o=A.transaction,e.autoSchema&&!t._options.allowEmptyDB){A.onerror=er,o.abort(),A.result.close();var i=r.deleteDatabase(l);i.onsuccess=i.onerror=Zt((function(){s(new at.NoSuchDatabase("Database "+l+" doesnt exist"))}))}else{o.onerror=tr(s);var a=n.oldVersion>Math.pow(2,62)?0:n.oldVersion;u=a<1,t._novip.idbdb=A.result,mr(t,a/10,o,s)}}),s),A.onsuccess=Zt((function(){o=null;var r=t._novip.idbdb=A.result,a=B(r.objectStoreNames);if(a.length>0)try{var s=r.transaction(function(t){return 1===t.length?t[0]:t}(a),"readonly");e.autoSchema?function(t,e,r){var n=t._novip;n.verno=e.version/10;var i=n._dbSchema=_r(0,e,r);n._storeNames=B(e.objectStoreNames,0),pr(n,[n._allTables],c(i),i)}(t,r,s):(Br(t,t._dbSchema,s),function(t,e){var r=_r(0,t.idbdb,e),n=yr(r,t._dbSchema);return!(n.add.length||n.change.some((function(t){return t.add.length||t.change.length})))}(t,s)||i("warn","Dexie SchemaDiff: Schema was extended without increasing the number passed to db.version(). Some queries may fail."," at node_modules/dexie/dist/dexie.mjs:3773")),hr(t,s)}catch(d){}_e.push(t),r.onversionchange=Zt((function(r){e.vcFired=!0,t.on("versionchange").fire(r)})),r.onclose=Zt((function(e){t.on("close").fire(e)})),u&&function(t,e){var r=t.indexedDB,n=t.IDBKeyRange;!xr(r)&&"__dbnames"!==e&&Er(r,n).put({name:e}).catch(ut)}(t._deps,l),n()}),s)}))}))]).then((function(){return a(),e.onReadyBeingFired=[],Qt.resolve(Sr((function(){return t.on.ready.fire(t.vip)}))).then((function r(){if(e.onReadyBeingFired.length>0){var n=e.onReadyBeingFired.reduce(gt,ut);return e.onReadyBeingFired=[],Qt.resolve(Sr((function(){return n(t.vip)}))).then(r)}}))})).finally((function(){e.onReadyBeingFired=null,e.isBeingOpened=!1})).then((function(){return t})).catch((function(r){e.dbOpenError=r;try{o&&o.abort()}catch(Qr){}return n===e.openCanceller&&t._close(),ye(r)})).finally((function(){e.openComplete=!0,s()}))}function Fr(t){var e=function(e){return t.next(e)},r=i(e),n=i((function(e){return t.throw(e)}));function i(t){return function(e){var i=t(e),a=i.value;return i.done?a:a&&"function"===typeof a.then?a.then(r,n):A(a)?Promise.all(a).then(r,n):r(a)}}return i(e)()}function Lr(t,e,r){var n=arguments.length;if(n<2)throw new at.InvalidArgument("Too few arguments");var i=new Array(n-1);while(--n)i[n-1]=arguments[n];r=i.pop();var a=L(i);return[t,a,r]}function Dr(t,e,r,n,a){return Qt.resolve().then((function(){var s=Ut.transless||Ut,o=t._createTransaction(e,r,t._dbSchema,n),u={trans:o,transless:s};if(n)o.idbtrans=n.idbtrans;else try{o.create(),t._state.PR1398_maxLoop=3}catch(d){return d.name===nt.InvalidState&&t.isOpen()&&--t._state.PR1398_maxLoop>0?(i("warn","Dexie: Need to reopen db"," at node_modules/dexie/dist/dexie.mjs:3866"),t._close(),t.open().then((function(){return Dr(t,e,r,null,a)}))):ye(d)}var l,c=j(a);c&&oe();var A=Qt.follow((function(){if(l=a.call(o,o),l)if(c){var t=ue.bind(null,null);l.then(t,t)}else"function"===typeof l.next&&"function"===typeof l.throw&&(l=Fr(l))}),u);return(l&&"function"===typeof l.then?Qt.resolve(l).then((function(t){return o.active?t:ye(new at.PrematureCommit("Transaction committed too early. See http://bit.ly/2kdckMn"))})):A.then((function(){return l}))).then((function(t){return n&&o._resolve(),o._completion.then((function(){return t}))})).catch((function(t){return o._reject(t),ye(t)}))}))}function Rr(t,e,r){for(var n=A(t)?t.slice():[t],i=0;i<r;++i)n.push(e);return n}var Ur={stack:"dbcore",name:"VirtualIndexMiddleware",level:1,create:function(t){return o(o({},t),{table:function(e){var r=t.table(e),n=r.schema,i={},a=[];function s(t,e,r){var n=Ar(t),u=i[n]=i[n]||[],l=null==t?0:"string"===typeof t?1:t.length,c=e>0,A=o(o({},r),{isVirtual:c,keyTail:e,keyLength:l,extractKey:ur(t),unique:!c&&r.unique});if(u.push(A),A.isPrimaryKey||a.push(A),l>1){var d=2===l?t[0]:t.slice(0,l-1);s(d,e+1,r)}return u.sort((function(t,e){return t.keyTail-e.keyTail})),A}var u=s(n.primaryKey.keyPath,0,n.primaryKey);i[":id"]=[u];for(var l=0,c=n.indexes;l<c.length;l++){var A=c[l];s(A.keyPath,0,A)}function d(e,r){return{type:1===e.type?2:e.type,lower:Rr(e.lower,e.lowerOpen?t.MAX_KEY:t.MIN_KEY,r),lowerOpen:!0,upper:Rr(e.upper,e.upperOpen?t.MIN_KEY:t.MAX_KEY,r),upperOpen:!0}}function f(t){var e=t.query.index;return e.isVirtual?o(o({},t),{query:{index:e,range:d(t.query.range,e.keyTail)}}):t}var h=o(o({},r),{schema:o(o({},n),{primaryKey:u,indexes:a,getIndexByKeyPath:function(t){var e=i[Ar(t)];return e&&e[0]}}),count:function(t){return r.count(f(t))},query:function(t){return r.query(f(t))},openCursor:function(e){var n=e.query.index,i=n.keyTail,a=n.isVirtual,s=n.keyLength;if(!a)return r.openCursor(e);return r.openCursor(f(e)).then((function(r){return r&&function(r){var n=Object.create(r,{continue:{value:function(n){null!=n?r.continue(Rr(n,e.reverse?t.MAX_KEY:t.MIN_KEY,i)):e.unique?r.continue(r.key.slice(0,s).concat(e.reverse?t.MIN_KEY:t.MAX_KEY,i)):r.continue()}},continuePrimaryKey:{value:function(e,n){r.continuePrimaryKey(Rr(e,t.MAX_KEY,i),n)}},primaryKey:{get:function(){return r.primaryKey}},key:{get:function(){var t=r.key;return 1===s?t[0]:t.slice(0,s)}},value:{get:function(){return r.value}}});return n}(r)}))}});return h}})}};function Or(t,e,r,n){return r=r||{},n=n||"",c(t).forEach((function(i){if(p(e,i)){var a=t[i],o=e[i];if("object"===(0,s.default)(a)&&"object"===(0,s.default)(o)&&a&&o){var u=M(a),l=M(o);u!==l?r[n+i]=e[i]:"Object"===u?Or(a,o,r,n+i+"."):a!==o&&(r[n+i]=e[i])}else a!==o&&(r[n+i]=e[i])}else r[n+i]=void 0})),c(e).forEach((function(i){p(t,i)||(r[n+i]=e[i])})),r}var Pr={stack:"dbcore",name:"HooksMiddleware",level:2,create:function(t){return o(o({},t),{table:function(e){var r=t.table(e),n=r.schema.primaryKey,i=o(o({},r),{mutate:function(t){var i=Ut.trans,a=i.table(e).hook,s=a.deleting,l=a.creating,c=a.updating;switch(t.type){case"add":if(l.fire===ut)break;return i._promise("readwrite",(function(){return A(t)}),!0);case"put":if(l.fire===ut&&c.fire===ut)break;return i._promise("readwrite",(function(){return A(t)}),!0);case"delete":if(s.fire===ut)break;return i._promise("readwrite",(function(){return A(t)}),!0);case"deleteRange":if(s.fire===ut)break;return i._promise("readwrite",(function(){return function(t){return function t(e,i,a){return r.query({trans:e,values:!1,query:{index:n,range:i},limit:a}).then((function(r){var n=r.result;return A({type:"delete",keys:n,trans:e}).then((function(r){return r.numFailures>0?Promise.reject(r.failures[0]):n.length<a?{failures:[],numFailures:0,lastResult:void 0}:t(e,o(o({},i),{lower:n[n.length-1],lowerOpen:!0}),a)}))}))}(t.trans,t.range,1e4)}(t)}),!0)}return r.mutate(t);function A(t){var e=Ut.trans,i=t.keys||function(t,e){return"delete"===e.type?e.keys:e.keys||e.values.map(t.extractKey)}(n,t);if(!i)throw new Error("Keys missing");return t="add"===t.type||"put"===t.type?o(o({},t),{keys:i}):o({},t),"delete"!==t.type&&(t.values=u([],t.values,!0)),t.keys&&(t.keys=u([],t.keys,!0)),function(t,e,r){return"add"===e.type?Promise.resolve([]):t.getMany({trans:e.trans,keys:r,cache:"immutable"})}(r,t,i).then((function(a){var o=i.map((function(r,i){var o=a[i],u={onerror:null,onsuccess:null};if("delete"===t.type)s.fire.call(u,r,o,e);else if("add"===t.type||void 0===o){var A=l.fire.call(u,r,t.values[i],e);null==r&&null!=A&&(r=A,t.keys[i]=r,n.outbound||k(t.values[i],n.keyPath,r))}else{var d=Or(o,t.values[i]),f=c.fire.call(u,d,r,o,e);if(f){var h=t.values[i];Object.keys(f).forEach((function(t){p(h,t)?h[t]=f[t]:k(h,t,f[t])}))}}return u}));return r.mutate(t).then((function(e){for(var r=e.failures,n=e.results,s=e.numFailures,u=e.lastResult,l=0;l<i.length;++l){var c=n?n[l]:i[l],A=o[l];null==c?A.onerror&&A.onerror(r[l]):A.onsuccess&&A.onsuccess("put"===t.type&&a[l]?t.values[l]:c)}return{failures:r,results:n,numFailures:s,lastResult:u}})).catch((function(t){return o.forEach((function(e){return e.onerror&&e.onerror(t)})),Promise.reject(t)}))}))}}});return i}})}};function Mr(t,e,r){try{if(!e)return null;if(e.keys.length<t.length)return null;for(var n=[],i=0,a=0;i<e.keys.length&&a<t.length;++i)0===Ne(e.keys[i],t[a])&&(n.push(r?O(e.values[i]):e.values[i]),++a);return n.length===t.length?n:null}catch(Qr){return null}}var Qr,Nr={stack:"dbcore",level:-1,create:function(t){return{table:function(e){var r=t.table(e);return o(o({},r),{getMany:function(t){if(!t.cache)return r.getMany(t);var e=Mr(t.keys,t.trans["_cache"],"clone"===t.cache);return e?Qt.resolve(e):r.getMany(t).then((function(e){return t.trans["_cache"]={keys:t.keys,values:"clone"===t.cache?O(e):e},e}))},mutate:function(t){return"add"!==t.type&&(t.trans["_cache"]=null),r.mutate(t)}})}}}};function Hr(t){return!("from"in t)}var $r=function t(e,r){if(!this){var n=new t;return e&&"d"in e&&d(n,e),n}d(this,arguments.length?{d:1,from:e,to:arguments.length>1?r:e}:{d:0})};function jr(t,e,r){var n=Ne(e,r);if(!isNaN(n)){if(n>0)throw RangeError();if(Hr(t))return d(t,{from:e,to:r,d:1});var i=t.l,a=t.r;if(Ne(r,t.from)<0)return i?jr(i,e,r):t.l={from:e,to:r,d:1,l:null,r:null},Wr(t);if(Ne(e,t.to)>0)return a?jr(a,e,r):t.r={from:e,to:r,d:1,l:null,r:null},Wr(t);Ne(e,t.from)<0&&(t.from=e,t.l=null,t.d=a?a.d+1:1),Ne(r,t.to)>0&&(t.to=r,t.r=null,t.d=t.l?t.l.d+1:1);var s=!t.r;i&&!t.l&&Kr(t,i),a&&s&&Kr(t,a)}}function Kr(t,e){Hr(e)||function t(e,r){var n=r.from,i=r.to,a=r.l,s=r.r;jr(e,n,i),a&&t(e,a),s&&t(e,s)}(t,e)}function Gr(t,e){var r=Vr(e),n=r.next();if(n.done)return!1;var i=n.value,a=Vr(t),s=a.next(i.from),o=s.value;while(!n.done&&!s.done){if(Ne(o.from,i.to)<=0&&Ne(o.to,i.from)>=0)return!0;Ne(i.from,o.from)<0?i=(n=r.next(o.from)).value:o=(s=a.next(i.from)).value}return!1}function Vr(t){var e=Hr(t)?null:{s:0,n:t};return{next:function(t){var r=arguments.length>0;while(e)switch(e.s){case 0:if(e.s=1,r)while(e.n.l&&Ne(t,e.n.from)<0)e={up:e,n:e.n.l,s:1};else while(e.n.l)e={up:e,n:e.n.l,s:1};case 1:if(e.s=2,!r||Ne(t,e.n.to)<=0)return{value:e.n,done:!1};case 2:if(e.n.r){e.s=3,e={up:e,n:e.n.r,s:0};continue}case 3:e=e.up}return{done:!0}}}}function Wr(t){var e,r,n=((null===(e=t.r)||void 0===e?void 0:e.d)||0)-((null===(r=t.l)||void 0===r?void 0:r.d)||0),i=n>1?"r":n<-1?"l":"";if(i){var a="r"===i?"l":"r",s=o({},t),u=t[i];t.from=u.from,t.to=u.to,t[i]=u[i],s[i]=u[a],t[a]=s,s.d=zr(s)}t.d=zr(t)}function zr(t){var e=t.r,r=t.l;return(e?r?Math.max(e.d,r.d):e.d:r?r.d:0)+1}e.RangeSet=$r,g($r.prototype,(Qr={add:function(t){return Kr(this,t),this},addKey:function(t){return jr(this,t,t),this},addKeys:function(t){var e=this;return t.forEach((function(t){return jr(e,t,t)})),this}},Qr[Q]=function(){return Vr(this)},Qr));var Yr={stack:"dbcore",level:0,create:function(t){var e=t.schema.name,r=new $r(t.MIN_KEY,t.MAX_KEY);return o(o({},t),{table:function(n){var i=t.table(n),a=i.schema,s=a.primaryKey,u=s.extractKey,l=s.outbound,d=o(o({},i),{mutate:function(t){var s=t.trans,o=s.mutatedParts||(s.mutatedParts={}),u=function(t){var r="idb://"+e+"/"+n+"/"+t;return o[r]||(o[r]=new $r)},l=u(""),c=u(":dels"),d=t.type,f="deleteRange"===t.type?[t.range]:"delete"===t.type?[t.keys]:t.values.length<50?[[],t.values]:[],h=f[0],p=f[1],g=t.trans["_cache"];return i.mutate(t).then((function(t){if(A(h)){"delete"!==d&&(h=t.results),l.addKeys(h);var e=Mr(h,g);e||"add"===d||c.addKeys(h),(e||p)&&function(t,e,r,n){e.indexes.forEach((function(e){var i=t(e.name||"");function a(t){return null!=t?e.extractKey(t):null}var s=function(t){return e.multiEntry&&A(t)?t.forEach((function(t){return i.addKey(t)})):i.addKey(t)};(r||n).forEach((function(t,e){var i=r&&a(r[e]),o=n&&a(n[e]);0!==Ne(i,o)&&(null!=i&&s(i),null!=o&&s(o))}))}))}(u,a,e,p)}else if(h){var n={from:h.lower,to:h.upper};c.add(n),l.add(n)}else l.add(r),c.add(r),a.indexes.forEach((function(t){return u(t.name).add(r)}));return t}))}}),f=function(e){var r,n,i=e.query,a=i.index,s=i.range;return[a,new $r(null!==(r=s.lower)&&void 0!==r?r:t.MIN_KEY,null!==(n=s.upper)&&void 0!==n?n:t.MAX_KEY)]},h={get:function(t){return[s,new $r(t.key)]},getMany:function(t){return[s,(new $r).addKeys(t.keys)]},count:f,query:f,openCursor:f};return c(h).forEach((function(t){d[t]=function(a){var s=Ut.subscr;if(s){var c=function(t){var r="idb://"+e+"/"+n+"/"+t;return s[r]||(s[r]=new $r)},A=c(""),d=c(":dels"),f=h[t](a),p=f[0],g=f[1];if(c(p.name||"").add(g),!p.isPrimaryKey){if("count"!==t){var v="query"===t&&l&&a.values&&i.query(o(o({},a),{values:!1}));return i[t].apply(this,arguments).then((function(e){if("query"===t){if(l&&a.values)return v.then((function(t){var r=t.result;return A.addKeys(r),e}));var r=a.values?e.result.map(u):e.result;a.values?A.addKeys(r):d.addKeys(r)}else if("openCursor"===t){var n=e,i=a.values;return n&&Object.create(n,{key:{get:function(){return d.addKey(n.primaryKey),n.key}},primaryKey:{get:function(){var t=n.primaryKey;return d.addKey(t),t}},value:{get:function(){return i&&A.addKey(n.primaryKey),n.value}}})}return e}))}d.add(r)}}return i[t].apply(this,arguments)}})),d}})}};var qr=function(){function t(e,r){var n=this;this._middlewares={},this.verno=0;var a=t.dependencies;this._options=r=o({addons:t.addons,autoOpen:!0,indexedDB:a.indexedDB,IDBKeyRange:a.IDBKeyRange},r),this._deps={indexedDB:r.indexedDB,IDBKeyRange:r.IDBKeyRange};var s=r.addons;this._dbSchema={},this._versions=[],this._storeNames=[],this._allTables={},this.idbdb=null,this._novip=this;var u={dbOpenError:null,isBeingOpened:!1,onReadyBeingFired:null,openComplete:!1,dbReadyResolve:ut,dbReadyPromise:null,cancelOpen:ut,openCanceller:null,autoSchema:!0,PR1398_maxLoop:3};u.dbReadyPromise=new Qt((function(t){u.dbReadyResolve=t})),u.openCanceller=new Qt((function(t,e){u.cancelOpen=e})),this._state=u,this.name=e,this.on=Fe(this,"populate","blocked","versionchange","close",{ready:[gt,ut]}),this.on.ready.subscribe=C(this.on.ready.subscribe,(function(e){return function(r,i){t.vip((function(){var t=n._state;if(t.openComplete)t.dbOpenError||Qt.resolve().then(r),i&&e(r);else if(t.onReadyBeingFired)t.onReadyBeingFired.push(r),i&&e(r);else{e(r);var a=n;i||e((function t(){a.on.ready.unsubscribe(r),a.on.ready.unsubscribe(t)}))}}))}})),this.Collection=function(t){return Le(je.prototype,(function(e,r){this.db=t;var n=Se,i=null;if(r)try{n=r()}catch(u){i=u}var a=e._ctx,s=a.table,o=s.hook.reading.fire;this._ctx={table:s,index:a.index,isPrimKey:!a.index||s.schema.primKey.keyPath&&a.index===s.schema.primKey.name,range:n,keysOnly:!1,dir:"next",unique:"",algorithm:null,filter:null,replayFilter:null,justLimit:!0,isMatch:null,offset:0,limit:1/0,error:i,or:a.or,valueMapper:o!==lt?o:null}}))}(this),this.Table=function(t){return Le(Ie.prototype,(function(e,r,n){this.db=t,this._tx=n,this.name=e,this.schema=r,this.hook=t._allTables[e]?t._allTables[e].hook:Fe(null,{creating:[dt,ut],reading:[ct,lt],updating:[ht,ut],deleting:[ft,ut]})}))}(this),this.Transaction=function(t){return Le(nr.prototype,(function(e,r,n,i,a){var s=this;this.db=t,this.mode=e,this.storeNames=r,this.schema=n,this.chromeTransactionDurability=i,this.idbtrans=null,this.on=Fe(this,"complete","error","abort"),this.parent=a||null,this.active=!0,this._reculock=0,this._blockedFuncs=[],this._resolve=null,this._reject=null,this._waitingFor=null,this._waitingQueue=null,this._spinCount=0,this._completion=new Qt((function(t,e){s._resolve=t,s._reject=e})),this._completion.then((function(){s.active=!1,s.on.complete.fire()}),(function(t){var e=s.active;return s.active=!1,s.on.error.fire(t),s.parent?s.parent._reject(t):e&&s.idbtrans&&s.idbtrans.abort(),ye(t)}))}))}(this),this.Version=function(t){return Le(Cr.prototype,(function(e){this.db=t,this._cfg={version:e,storesSource:null,dbschema:{},tables:{},contentUpgrade:null}}))}(this),this.WhereClause=function(t){return Le(Ze.prototype,(function(e,r,n){this.db=t,this._ctx={table:e,index:":id"===r?null:r,or:n};var i=t._deps.indexedDB;if(!i)throw new at.MissingAPI;this._cmp=this._ascending=i.cmp.bind(i),this._descending=function(t,e){return i.cmp(e,t)},this._max=function(t,e){return i.cmp(t,e)>0?t:e},this._min=function(t,e){return i.cmp(t,e)<0?t:e},this._IDBKeyRange=t._deps.IDBKeyRange}))}(this),this.on("versionchange",(function(t){t.newVersion>0?i("warn","Another connection wants to upgrade database '"+n.name+"'. Closing db now to resume the upgrade."," at node_modules/dexie/dist/dexie.mjs:4649"):i("warn","Another connection wants to delete database '"+n.name+"'. Closing db now to resume the delete request."," at node_modules/dexie/dist/dexie.mjs:4651"),n.close()})),this.on("blocked",(function(t){!t.newVersion||t.newVersion<t.oldVersion?i("warn","Dexie.delete('"+n.name+"') was blocked"," at node_modules/dexie/dist/dexie.mjs:4656"):i("warn","Upgrade '"+n.name+"' blocked by other connection holding version "+t.oldVersion/10," at node_modules/dexie/dist/dexie.mjs:4658")})),this._maxKey=or(r.IDBKeyRange),this._createTransaction=function(t,e,r,i){return new n.Transaction(t,e,r,n._options.chromeTransactionDurability,i)},this._fireOnBlocked=function(t){n.on("blocked").fire(t),_e.filter((function(t){return t.name===n.name&&t!==n&&!t._state.vcFired})).map((function(e){return e.on("versionchange").fire(t)}))},this.use(Ur),this.use(Pr),this.use(Yr),this.use(Nr),this.vip=Object.create(this,{_vip:{value:!0}}),s.forEach((function(t){return t(n)}))}return t.prototype.version=function(t){if(isNaN(t)||t<.1)throw new at.Type("Given version is not a positive number");if(t=Math.round(10*t)/10,this.idbdb||this._state.isBeingOpened)throw new at.Schema("Cannot add version when database is open");this.verno=Math.max(this.verno,t);var e=this._versions,r=e.filter((function(e){return e._cfg.version===t}))[0];return r||(r=new this.Version(t),e.push(r),e.sort(vr),r.stores({}),this._state.autoSchema=!1,r)},t.prototype._whenReady=function(t){var e=this;return this.idbdb&&(this._state.openComplete||Ut.letThrough||this._vip)?t():new Qt((function(t,r){if(e._state.openComplete)return r(new at.DatabaseClosed(e._state.dbOpenError));if(!e._state.isBeingOpened){if(!e._options.autoOpen)return void r(new at.DatabaseClosed);e.open().catch(ut)}e._state.dbReadyPromise.then(t,r)})).then(t)},t.prototype.use=function(t){var e=t.stack,r=t.create,n=t.level,i=t.name;i&&this.unuse({stack:e,name:i});var a=this._middlewares[e]||(this._middlewares[e]=[]);return a.push({stack:e,create:r,level:null==n?10:n,name:i}),a.sort((function(t,e){return t.level-e.level})),this},t.prototype.unuse=function(t){var e=t.stack,r=t.name,n=t.create;return e&&this._middlewares[e]&&(this._middlewares[e]=this._middlewares[e].filter((function(t){return n?t.create!==n:!!r&&t.name!==r}))),this},t.prototype.open=function(){return Ir(this)},t.prototype._close=function(){var t=this._state,e=_e.indexOf(this);if(e>=0&&_e.splice(e,1),this.idbdb){try{this.idbdb.close()}catch(r){}this._novip.idbdb=null}t.dbReadyPromise=new Qt((function(e){t.dbReadyResolve=e})),t.openCanceller=new Qt((function(e,r){t.cancelOpen=r}))},t.prototype.close=function(){this._close();var t=this._state;this._options.autoOpen=!1,t.dbOpenError=new at.DatabaseClosed,t.isBeingOpened&&t.cancelOpen(t.dbOpenError)},t.prototype.delete=function(){var t=this,e=arguments.length>0,r=this._state;return new Qt((function(n,i){var a=function(){t.close();var e=t._deps.indexedDB.deleteDatabase(t.name);e.onsuccess=Zt((function(){Tr(t._deps,t.name),n()})),e.onerror=tr(i),e.onblocked=t._fireOnBlocked};if(e)throw new at.InvalidArgument("Arguments not allowed in db.delete()");r.isBeingOpened?r.dbReadyPromise.then(a):a()}))},t.prototype.backendDB=function(){return this.idbdb},t.prototype.isOpen=function(){return null!==this.idbdb},t.prototype.hasBeenClosed=function(){var t=this._state.dbOpenError;return t&&"DatabaseClosed"===t.name},t.prototype.hasFailed=function(){return null!==this._state.dbOpenError},t.prototype.dynamicallyOpened=function(){return this._state.autoSchema},Object.defineProperty(t.prototype,"tables",{get:function(){var t=this;return c(this._allTables).map((function(e){return t._allTables[e]}))},enumerable:!1,configurable:!0}),t.prototype.transaction=function(){var t=Lr.apply(this,arguments);return this._transaction.apply(this,t)},t.prototype._transaction=function(t,e,r){var n=this,i=Ut.trans;i&&i.db===this&&-1===t.indexOf("!")||(i=null);var a,s,o=-1!==t.indexOf("?");t=t.replace("!","").replace("?","");try{if(s=e.map((function(t){var e=t instanceof n.Table?t.name:t;if("string"!==typeof e)throw new TypeError("Invalid table argument to Dexie.transaction(). Only Table or String are allowed");return e})),"r"==t||"readonly"===t)a="readonly";else{if("rw"!=t&&"readwrite"!=t)throw new at.InvalidArgument("Invalid transaction mode: "+t);a="readwrite"}if(i){if("readonly"===i.mode&&"readwrite"===a){if(!o)throw new at.SubTransaction("Cannot enter a sub-transaction with READWRITE mode when parent transaction is READONLY");i=null}i&&s.forEach((function(t){if(i&&-1===i.storeNames.indexOf(t)){if(!o)throw new at.SubTransaction("Table "+t+" not included in parent transaction.");i=null}})),o&&i&&!i.active&&(i=null)}}catch(l){return i?i._promise(null,(function(t,e){e(l)})):ye(l)}var u=Dr.bind(null,this,a,s,i,r);return i?i._promise(a,u,"lock"):Ut.trans?he(Ut.transless,(function(){return n._whenReady(u)})):this._whenReady(u)},t.prototype.table=function(t){if(!p(this._allTables,t))throw new at.InvalidTable("Table "+t+" does not exist");return this._allTables[t]},t}();e.default=e.Dexie=qr;var Xr,Jr="undefined"!==typeof Symbol&&"observable"in Symbol?Symbol.observable:"@@observable",Zr=function(){function t(t){this._subscribe=t}return t.prototype.subscribe=function(t,e,r){return this._subscribe(t&&"function"!==typeof t?t:{next:t,error:e,complete:r})},t.prototype[Jr]=function(){return this},t}();function tn(t,e){return c(e).forEach((function(r){var n=t[r]||(t[r]=new $r);Kr(n,e[r])})),t}function en(t){var e=!1,r=void 0,n=new Zr((function(n){var i=j(t);var a=!1,s={},o={},u={get closed(){return a},unsubscribe:function(){a=!0,rr.storagemutated.unsubscribe(f)}};n.start&&n.start(u);var l=!1,A=!1;function d(){return c(o).some((function(t){return s[t]&&Gr(s[t],o[t])}))}var f=function(t){tn(s,t),d()&&h()},h=function c(){if(!l&&!a){s={};var h={},p=function(e){i&&oe();var r=function(){return se(t,{subscr:e,trans:null})},n=Ut.trans?he(Ut.transless,r):r();return i&&n.then(ue,ue),n}(h);A||(rr("storagemutated",f),A=!0),l=!0,Promise.resolve(p).then((function(t){e=!0,r=t,l=!1,a||(d()?c():(s={},o=h,n.next&&n.next(t)))}),(function(t){l=!1,e=!1,n.error&&n.error(t),u.unsubscribe()}))}};return h(),u}));return n.hasValue=function(){return e},n.getValue=function(){return r},n}try{Xr={indexedDB:l.indexedDB||l.mozIndexedDB||l.webkitIndexedDB||l.msIndexedDB,IDBKeyRange:l.IDBKeyRange||l.webkitIDBKeyRange}}catch(un){Xr={indexedDB:null,IDBKeyRange:null}}var rn=qr;function nn(t){var e=an;try{an=!0,rr.storagemutated.fire(t)}finally{an=e}}g(rn,o(o({},ot),{delete:function(t){var e=new rn(t,{addons:[]});return e.delete()},exists:function(t){return new rn(t,{addons:[]}).open().then((function(t){return t.close(),!0})).catch("NoSuchDatabaseError",(function(){return!1}))},getDatabaseNames:function(t){try{return function(t){var e=t.indexedDB,r=t.IDBKeyRange;return xr(e)?Promise.resolve(e.databases()).then((function(t){return t.map((function(t){return t.name})).filter((function(t){return"__dbnames"!==t}))})):Er(e,r).toCollection().primaryKeys()}(rn.dependencies).then(t)}catch(Qr){return ye(new at.MissingAPI)}},defineClass:function(){return function(t){d(this,t)}},ignoreTransaction:function(t){return Ut.trans?he(Ut.transless,t):t()},vip:Sr,async:function(t){return function(){try{var e=Fr(t.apply(this,arguments));return e&&"function"===typeof e.then?e:Qt.resolve(e)}catch(un){return ye(un)}}},spawn:function(t,e,r){try{var n=Fr(t.apply(r,e||[]));return n&&"function"===typeof n.then?n:Qt.resolve(n)}catch(un){return ye(un)}},currentTransaction:{get:function(){return Ut.trans||null}},waitFor:function(t,e){var r=Qt.resolve("function"===typeof t?rn.ignoreTransaction(t):t).timeout(e||6e4);return Ut.trans?Ut.trans.waitFor(r):r},Promise:Qt,debug:{get:function(){return K},set:function(t){G(t,"dexie"===t?function(){return!0}:xe)}},derive:y,extend:d,props:g,override:C,Events:Fe,on:rr,liveQuery:en,extendObservabilitySet:tn,getByKeyPath:S,setByKeyPath:k,delByKeyPath:function(t,e){"string"===typeof e?k(t,e,void 0):"length"in e&&[].map.call(e,(function(e){k(t,e,void 0)}))},shallowClone:I,deepClone:O,getObjectDiff:Or,cmp:Ne,asap:x,minKey:-1/0,addons:[],connections:_e,errnames:nt,dependencies:Xr,semVer:"3.2.4",version:"3.2.4".split(".").map((function(t){return parseInt(t)})).reduce((function(t,e,r){return t+e/Math.pow(10,2*r)}))})),rn.maxKey=or(rn.dependencies.IDBKeyRange),"undefined"!==typeof dispatchEvent&&"undefined"!==typeof addEventListener&&(rr("storagemutated",(function(t){var e;an||(Be?(e=document.createEvent("CustomEvent"),e.initCustomEvent("x-storagemutated-1",!0,!0,t)):e=new CustomEvent("x-storagemutated-1",{detail:t}),an=!0,dispatchEvent(e),an=!1)})),addEventListener("x-storagemutated-1",(function(t){var e=t.detail;an||nn(e)})));var an=!1;if("undefined"!==typeof BroadcastChannel){var sn=new BroadcastChannel("x-storagemutated-1");"function"===typeof sn.unref&&sn.unref(),rr("storagemutated",(function(t){an||sn.postMessage(t)})),sn.onmessage=function(t){t.data&&nn(t.data)}}else if("undefined"!==typeof self&&"undefined"!==typeof navigator){rr("storagemutated",(function(t){try{an||("undefined"!==typeof localStorage&&localStorage.setItem("x-storagemutated-1",JSON.stringify({trig:Math.random(),changedParts:t})),"object"===(0,s.default)(self["clients"])&&u([],self["clients"].matchAll({includeUncontrolled:!0}),!0).forEach((function(e){return e.postMessage({type:"x-storagemutated-1",changedParts:t})})))}catch(Qr){}})),"undefined"!==typeof addEventListener&&addEventListener("storage",(function(t){if("x-storagemutated-1"===t.key){var e=JSON.parse(t.newValue);e&&nn(e.changedParts)}}));var on=self.document&&navigator.serviceWorker;on&&on.addEventListener("message",(function(t){var e=t.data;e&&"x-storagemutated-1"===e.type&&nn(e.changedParts)}))}Qt.rejectionMapper=function(t,e){if(!t||t instanceof Z||t instanceof TypeError||t instanceof SyntaxError||!t.name||!st[t.name])return t;var r=new st[t.name](e||t.message,t);return"stack"in t&&m(r,"stack",{get:function(){return this.inner.stack}}),r},G(K,xe)}).call(this,r("0ee4"),r("0b64")["default"],r("f3b9")["default"])},f5f7:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={cell:{customClass:"",title:"",label:"",value:"",icon:"",disabled:!1,border:!0,center:!1,url:"",linkType:"navigateTo",clickable:!1,isLink:!1,required:!1,arrowDirection:"",iconStyle:{},rightIconStyle:{},rightIcon:"arrow-right",titleStyle:{},size:"",stop:!0,name:""}}},f668:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={upload:{accept:"image",capture:function(){return["album","camera"]},compressed:!0,camera:"back",maxDuration:60,uploadIcon:"camera-fill",uploadIconColor:"#D3D4D6",useBeforeRead:!1,previewFullImage:!0,maxCount:52,disabled:!1,imageMode:"aspectFill",name:"",sizeType:function(){return["original","compressed"]},multiple:!1,deletable:!0,maxSize:Number.MAX_VALUE,fileList:function(){return[]},uploadText:"",width:80,height:80,previewImage:!0}};e.default=n},f671:function(t,e,r){"use strict";r.d(e,"b",(function(){return n})),r.d(e,"c",(function(){return i})),r.d(e,"a",(function(){}));var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("view",{directives:[{name:"show",rawName:"v-show",value:t._$s(0,"v-show",t.isShow),expression:"_$s(0,'v-show',isShow)"}],ref:"ani",class:t._$s(0,"c",t.customClass),style:t._$s(0,"s",t.transformStyles),attrs:{animation:t._$s(0,"a-animation",t.animationData),_i:0},on:{click:t.onClick}},[t._t("default",null,{_i:1})],2)},i=[]},f682:function(t,e,r){var n,i,a,s=r("3b2d");(function(o,u,l){"object"===s(e)?t.exports=e=u(r("707d"),r("bbe5")):(i=[r("707d"),r("bbe5")],n=u,a="function"===typeof n?n.apply(e,i):n,void 0===a||(t.exports=a))})(0,(function(t){return t.mode.OFB=function(){var e=t.lib.BlockCipherMode.extend(),r=e.Encryptor=e.extend({processBlock:function(t,e){var r=this._cipher,n=r.blockSize,i=this._iv,a=this._keystream;i&&(a=this._keystream=i.slice(0),this._iv=void 0),r.encryptBlock(a,0);for(var s=0;s<n;s++)t[e+s]^=a[s]}});return e.Decryptor=r,e}(),t.mode.OFB}))},f73e:function(t,e,r){"use strict";r.d(e,"b",(function(){return i})),r.d(e,"c",(function(){return a})),r.d(e,"a",(function(){return n}));var n={uLoadingIcon:r("42fe").default,uIcon:r("712b").default},i=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("button",{staticClass:t._$s(0,"sc","u-button u-reset-button"),class:t._$s(0,"c",t.bemClass),style:t._$s(0,"s",[t.baseColor,t.$u.addStyle(t.customStyle)]),attrs:{"hover-start-time":t._$s(0,"a-hover-start-time",Number(t.hoverStartTime)),"hover-stay-time":t._$s(0,"a-hover-stay-time",Number(t.hoverStayTime)),"form-type":t._$s(0,"a-form-type",t.formType),"open-type":t._$s(0,"a-open-type",t.openType),"app-parameter":t._$s(0,"a-app-parameter",t.appParameter),"hover-stop-propagation":t._$s(0,"a-hover-stop-propagation",t.hoverStopPropagation),"send-message-title":t._$s(0,"a-send-message-title",t.sendMessageTitle),"send-message-path":t._$s(0,"a-send-message-path",t.sendMessagePath),lang:t._$s(0,"a-lang",t.lang),"data-name":t._$s(0,"a-data-name",t.dataName),"session-from":t._$s(0,"a-session-from",t.sessionFrom),"send-message-img":t._$s(0,"a-send-message-img",t.sendMessageImg),"show-message-card":t._$s(0,"a-show-message-card",t.showMessageCard),"hover-class":t._$s(0,"a-hover-class",t.disabled||t.loading?"":"u-button--active"),_i:0},on:{getphonenumber:t.getphonenumber,getuserinfo:t.getuserinfo,error:t.error,opensetting:t.opensetting,launchapp:t.launchapp,click:t.clickHandler}},[t._$s(1,"i",t.loading)?[r("u-loading-icon",{attrs:{mode:t.loadingMode,size:1.15*t.loadingSize,color:t.loadingColor,_i:2}}),r("text",{staticClass:t._$s(3,"sc","u-button__loading-text"),style:t._$s(3,"s",[{fontSize:t.textSize+"px"}]),attrs:{_i:3}},[t._v(t._$s(3,"t0-0",t._s(t.loadingText||t.text)))])]:[t._$s(5,"i",t.icon)?r("u-icon",{attrs:{name:t.icon,color:t.iconColorCom,size:1.35*t.textSize,customStyle:{marginRight:"2px"},_i:5}}):t._e(),t._t("default",[r("text",{staticClass:t._$s(7,"sc","u-button__text"),style:t._$s(7,"s",[{fontSize:t.textSize+"px"}]),attrs:{_i:7}},[t._v(t._$s(7,"t0-0",t._s(t.text)))])],{_i:6})]],2)},a=[]},f743:function(t,e,r){"use strict";r.d(e,"b",(function(){return i})),r.d(e,"c",(function(){return a})),r.d(e,"a",(function(){return n}));var n={uIcon:r("712b").default},i=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("view",{staticClass:t._$s(0,"sc","download-item"),attrs:{_i:0}},[r("view",{staticClass:t._$s(1,"sc","download-info"),attrs:{_i:1}},[r("view",{staticClass:t._$s(2,"sc","info"),attrs:{_i:2}},[r("view",{staticClass:t._$s(3,"sc","download-name"),attrs:{_i:3}},[t._v(t._$s(3,"t0-0",t._s(t.getRelFileName(t.item.options.filename))))]),r("view",{staticClass:t._$s(4,"sc","progress-box"),attrs:{_i:4}},[r("progress",{attrs:{percent:t._$s(5,"a-percent",t.progress),_i:5}})])]),t._$s(6,"i",t.isDownload&&5!==t.item.state)?r("view",{staticClass:t._$s(6,"sc","download-cancel"),attrs:{_i:6},on:{click:function(e){return e.stopPropagation(),t.pauseDownload(e)}}},[r("u-icon",{attrs:{name:"pause-circle-fill",size:"20",color:"#fff",_i:7}})],1):r("view",{staticClass:t._$s(8,"sc","download-cancel"),attrs:{_i:8},on:{click:function(e){return e.stopPropagation(),t.resumeDownload(e)}}},[r("u-icon",{attrs:{name:"play-right-fill",size:"20",color:"#fff",_i:9}})],1)])])},a=[]},f76a:function(t,e,r){"use strict";r.r(e);var n=r("c40a"),i=r("7650");for(var a in i)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return i[t]}))}(a);var s=r("828b"),o=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,"dd86112c",null,!1,n["a"],void 0);e["default"]=o.exports},f786:function(t,e,r){var n,i,a,s=r("3b2d");(function(o,u,l){"object"===s(e)?t.exports=e=u(r("707d"),r("396f"),r("f9e5")):(i=[r("707d"),r("396f"),r("f9e5")],n=u,a="function"===typeof n?n.apply(e,i):n,void 0===a||(t.exports=a))})(0,(function(t){return function(){var e=t,r=e.lib,n=r.Base,i=r.WordArray,a=e.algo,s=a.SHA1,o=a.HMAC,u=a.PBKDF2=n.extend({cfg:n.extend({keySize:4,hasher:s,iterations:1}),init:function(t){this.cfg=this.cfg.extend(t)},compute:function(t,e){var r=this.cfg,n=o.create(r.hasher,t),a=i.create(),s=i.create([1]),u=a.words,l=s.words,c=r.keySize,A=r.iterations;while(u.length<c){var d=n.update(e).finalize(s);n.reset();for(var f=d.words,h=f.length,p=d,g=1;g<A;g++){p=n.finalize(p),n.reset();for(var v=p.words,m=0;m<h;m++)f[m]^=v[m]}a.concat(d),l[0]++}return a.sigBytes=4*c,a}});e.PBKDF2=function(t,e,r){return u.create(r).compute(t,e)}}(),t.PBKDF2}))},f8cb:function(t,e){},f8f3:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={noNetwork:{tips:"\u54ce\u5440\uff0c\u7f51\u7edc\u4fe1\u53f7\u4e22\u5931",zIndex:"",image:"data:image/png;base64, "}}},f972:function(t,e,r){"use strict";r.d(e,"b",(function(){return i})),r.d(e,"c",(function(){return a})),r.d(e,"a",(function(){return n}));var n={uTransition:r("ba94").default,uCountDown:r("497b").default},i=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("u-transition",{attrs:{show:t.showPopup,mode:"fade-up",customStyle:"width:100%; height:100%; position:fixed; top:0; left:0; z-index:9999;",_i:0}},[r("view",{staticClass:t._$s(1,"sc","status-bar"),attrs:{_i:1}}),r("view",{staticClass:t._$s(2,"sc","adv-popup"),attrs:{_i:2}},[t._$s(3,"i",t.isMp4)?r("video",{ref:"video",attrs:{src:t._$s(3,"a-src",t.adv.adv_image),_i:3},on:{loadedmetadata:t.videoLoad,ended:function(e){return t.close()}}}):t._e(),r("vodImage",{attrs:{src:t.adv.adv_image,mode:"scaleToFill",_i:4},on:{load:t.imgLoad}}),r("view",{staticClass:t._$s(5,"sc","adv-click"),attrs:{_i:5},on:{click:function(e){return t.openAD(t.adv.adv_link)}}}),r("u-count-down",{ref:"advTime",attrs:{time:t.adTime,autoStart:!1,_i:6},on:{change:t.timeChange}},[t._$s(7,"i",t.countTime.seconds>0)?r("text",{staticClass:t._$s(7,"sc","time"),attrs:{_i:7}},[t._v(t._$s(7,"t0-0",t._s(t.countTime.minutes>0?t.countTime.minutes+"\u5206":""))+t._$s(7,"t0-1",t._s(t.countTime.seconds))),t._$s(8,"i","video"==t.type)?void 0:t._e(),void t._$s(9,"i","sign"==t.type)],2):r("text",{attrs:{_i:11},on:{click:function(e){return t.close()}}},[t._$s(12,"i","video"==t.type)?void 0:t._e(),t._$s(13,"i","sign"==t.type)?void 0:t._e()],2)]),t._$s(14,"i",t.toast)?r("view",{staticClass:t._$s(14,"sc","toast"),attrs:{_i:14}},[r("text",[t._v(t._$s(15,"t0-0",t._s(t.toast)))])]):t._e()],1)])},a=[]},f973:function(t,e,r){"use strict";r.d(e,"b",(function(){return i})),r.d(e,"c",(function(){return a})),r.d(e,"a",(function(){return n}));var n={uTransition:r("ba94").default,uIcon:r("712b").default},i=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("u-transition",{attrs:{mode:"fade",show:t.show,_i:0}},[r("view",{staticClass:t._$s(1,"sc","u-tag-wrapper"),attrs:{_i:1}},[r("view",{staticClass:t._$s(2,"sc","u-tag"),class:t._$s(2,"c",["u-tag--"+t.shape,!t.plain&&"u-tag--"+t.type,t.plain&&"u-tag--"+t.type+"--plain","u-tag--"+t.size,t.plain&&t.plainFill&&"u-tag--"+t.type+"--plain--fill"]),style:t._$s(2,"s",[{marginRight:t.closable?"10px":0,marginTop:t.closable?"10px":0},t.style]),attrs:{_i:2},on:{click:function(e){return e.stopPropagation(),t.clickHandler(e)}}},[t._t("icon",[t._$s(4,"i",t.icon)?r("view",{staticClass:t._$s(4,"sc","u-tag__icon"),attrs:{_i:4}},[t._$s(5,"i",t.$u.test.image(t.icon))?r("image",{style:t._$s(5,"s",[t.imgStyle]),attrs:{src:t._$s(5,"a-src",t.icon),_i:5}}):r("u-icon",{attrs:{color:t.elIconColor,name:t.icon,size:t.iconSize,_i:6}})],1):t._e()],{_i:3}),r("text",{staticClass:t._$s(7,"sc","u-tag__text"),class:t._$s(7,"c",["u-tag__text--"+t.type,t.plain&&"u-tag__text--"+t.type+"--plain","u-tag__text--"+t.size]),style:t._$s(7,"s",[t.textColor]),attrs:{_i:7}},[t._v(t._$s(7,"t0-0",t._s(t.text)))])],2),t._$s(8,"i",t.closable)?r("view",{staticClass:t._$s(8,"sc","u-tag__close"),class:t._$s(8,"c",["u-tag__close--"+t.size]),style:t._$s(8,"s",{backgroundColor:t.closeColor}),attrs:{_i:8},on:{click:function(e){return e.stopPropagation(),t.closeHandler(e)}}},[r("u-icon",{attrs:{name:"close",size:t.closeSize,color:"#ffffff",_i:9}})],1):t._e()])])},a=[]},f98b:function(t,e,r){"use strict";r.r(e);var n=r("9afb"),i=r("e0e6");for(var a in i)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return i[t]}))}(a);var s=r("828b"),o=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);e["default"]=o.exports},f9e5:function(t,e,r){var n,i,a,s=r("3b2d");(function(o,u){"object"===s(e)?t.exports=e=u(r("707d")):(i=[r("707d")],n=u,a="function"===typeof n?n.apply(e,i):n,void 0===a||(t.exports=a))})(0,(function(t){(function(){var e=t,r=e.lib,n=r.Base,i=e.enc,a=i.Utf8,s=e.algo;s.HMAC=n.extend({init:function(t,e){t=this._hasher=new t.init,"string"==typeof e&&(e=a.parse(e));var r=t.blockSize,n=4*r;e.sigBytes>n&&(e=t.finalize(e)),e.clamp();for(var i=this._oKey=e.clone(),s=this._iKey=e.clone(),o=i.words,u=s.words,l=0;l<r;l++)o[l]^=1549556828,u[l]^=909522486;i.sigBytes=s.sigBytes=n,this.reset()},reset:function(){var t=this._hasher;t.reset(),t.update(this._iKey)},update:function(t){return this._hasher.update(t),this},finalize:function(t){var e=this._hasher,r=e.finalize(t);e.reset();var n=e.finalize(this._oKey.clone().concat(r));return n}})})()}))},fa2c:function(t,e,r){"use strict";r.r(e);var n=r("75fb"),i=r("c336");for(var a in i)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return i[t]}))}(a);var s=r("828b"),o=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);e["default"]=o.exports},fb4c:function(t,e,r){"use strict";var n=r("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(r("127e")),a=n(r("ee10")),s=n(r("7ca3")),o=n(r("77d0")),u=n(r("42eb")),l=n(r("b4d6")),c=n(r("4231")),A=n(r("ea7a")),d=n(r("6159")),f=r("0f81"),h={components:{topic:o.default,vodItem:u.default,vodImage:c.default,vodCard:l.default,indexActor:A.default,game:d.default},props:{id:{type:Number,default:0}},data:function(){var t;return t={slideshow:[],topic:[],newList:[],hotList:[],type:[],typeList:[],data:[],loaded:!1,refreshTriggered:!1,current:0,pageIndex:1,advList:[],dotsStyles:{backgroundColor:"rgba(255, 255, 255, 0.4)",color:"#fff",width:6,selectedBackgroundColor:"rgba(255, 255, 255, 0.9)",selectedBorder:"1px rgba(255, 255, 255, 0.9) solid"}},(0,s.default)(t,"advList",[]),(0,s.default)(t,"color",["#534545","#45534C","#0A354A","#47390B"]),(0,s.default)(t,"actor",[]),(0,s.default)(t,"loadmore",!1),(0,s.default)(t,"cardCur",0),(0,s.default)(t,"icon_adv",[]),(0,s.default)(t,"interval_adv",[]),(0,s.default)(t,"text_adv",[]),t},methods:{cardSwiper:function(t){this.cardCur=t.detail.current},changeIndex:function(t){this.current=t.detail.current},init:function(){!1===this.loaded&&(this.getSlideshow(),this.getactorList(),this.getData())},getactorList:function(){var t=this;f.app.actorList().then((function(e){t.actor=e.data.vod_actor,t.getData()}))},getSlideshow:function(){var t=this;f.app.slideshow(this.id).then((function(e){t.slideshow=e.data?e.data:[]}))},getData:function(){var t=this;f.app.indexList(this.id).then((function(e){var r=e.data;r?(t.data=r,t.topic=r.topic,t.newList=r.recommend,t.hotList=[],t.type=r.type,t.text_adv=t.data.adv_list.text_adv,t.advList=r.adv_list.banner_adv?r.adv_list.banner_adv:[],t.icon_adv=r.adv_list.icon_adv,t.interval_adv=r.adv_list.interval_adv||[],t.loaded=!0,t.getTypeList()):uni.reLaunch({url:"/pages/splash/splash"})}))},getTypeList:function(){var t=this;this.loadmore||this.pageIndex>this.type.length||(this.loadmore=!0,setTimeout((function(){var e=t.type.length;t.pageIndex++,t.pageIndex<=e?(t.typeList=t.type.slice(0,t.pageIndex),t.pageIndex++):t.typeList=t.type,t.loadmore=!1}),1e3))},refresh:function(){var t=this;this.refreshTriggered=!0,this.getSlideshow(),this.getData(),setTimeout((function(){t.refreshTriggered=!1}),500)},bannerOpen:function(t){var e=this;return(0,a.default)(i.default.mark((function r(){return i.default.wrap((function(r){while(1)switch(r.prev=r.next){case 0:r.t0=t.type,r.next="adv"===r.t0?3:"topic"===r.t0?5:7;break;case 3:return e.openAD(t.url),r.abrupt("break",8);case 5:return uni.navigateTo({url:"/pages/album/details?id="+t.topic_id}),r.abrupt("break",8);case 7:e.openVideo(t.vod_id);case 8:case"end":return r.stop()}}),r)})))()},toChannel:function(t,e){var r=parseInt(e);getApp().globalData.switchChannel.id=1,r>0?(getApp().globalData.switchChannel.type=t,getApp().globalData.switchChannel.type_pid=r):(getApp().globalData.switchChannel.type=0,getApp().globalData.switchChannel.type_pid=t),uni.switchTab({url:"/pages/home/channel"})}}};e.default=h},fb5a:function(t,e,r){"use strict";r.d(e,"b",(function(){return i})),r.d(e,"c",(function(){return a})),r.d(e,"a",(function(){return n}));var n={uPopup:r("591c").default,uButton:r("9a24").default},i=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("u-popup",{attrs:{show:t.show,round:10,mode:"center","custom-style":{width:"80%",maxWidth:"300px"},_i:0}},[r("view",{staticClass:t._$s(1,"sc","nickname-popup"),attrs:{_i:1}},[r("view",{staticClass:t._$s(2,"sc","popup-header"),attrs:{_i:2}}),r("view",{staticClass:t._$s(3,"sc","popup-input"),attrs:{_i:3}},[r("input",{directives:[{name:"model",rawName:"v-model",value:t.nickName,expression:"nickName"}],attrs:{disabled:t._$s(4,"a-disabled",t.loading),_i:4},domProps:{value:t._$s(4,"v-model",t.nickName)},on:{input:function(e){e.target.composing||(t.nickName=e.target.value)}}})]),r("view",{staticClass:t._$s(5,"sc","popup-bottom justify-between"),attrs:{_i:5}},[r("u-button",{staticClass:t._$s(6,"sc","popup-button"),attrs:{text:"\u53d6\u6d88",_i:6},on:{click:t.close}}),r("u-button",{staticClass:t._$s(7,"sc","popup-button popup-ok-button"),attrs:{disabled:t.loading,loading:t.loading,text:"\u786e\u5b9a",_i:7},on:{click:t.submit}})],1)])])},a=[]},fc49:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={watch:{accept:{immediate:!0,handler:function(t){"all"!==t&&"media"!==t||uni.$u.error("\u53ea\u6709\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u624d\u652f\u6301\u628aaccept\u914d\u7f6e\u4e3aall\u3001media\u4e4b\u4e00"),"file"===t&&uni.$u.error("\u53ea\u6709\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u548cH5(HX2.9.9)\u624d\u652f\u6301\u628aaccept\u914d\u7f6e\u4e3afile")}}}};e.default=n},fcb3:function(t,e,r){"use strict";var n=r("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(r("4231")),a={data:function(){return{type:"default",isMp4:!1,adv:{},showPopup:!1,adTime:0,countTime:{},toast:null}},components:{vodImage:i.default},watch:{showPopup:{handler:function(t){if(t){/^.*\.(mp|MP)4$/.test(this.adv.adv_image)?this.isMp4=!0:this.isMp4=!1}}}},methods:{timeChange:function(t){this.countTime=t},videoLoad:function(t){var e=this;t.detail.duration<this.adv.adv_show_time?this.adTime=1e3*Math.floor(t.detail.duration):this.adTime=1e3*this.adv.adv_show_time,this.$refs.advTime.reset(),this.$nextTick((function(){e.$refs.advTime.start()}))},imgLoad:function(){var t=this;this.adTime=1e3*this.adv.adv_show_time,this.$refs.advTime.reset(),this.$nextTick((function(){t.$refs.advTime.start()}))},close:function(){"sign"!=this.type&&(this.showPopup=!1),this.$emit("close",this.type)}}};e.default=a},fcc2:function(t,e,r){"use strict";r.d(e,"b",(function(){return n})),r.d(e,"c",(function(){return i})),r.d(e,"a",(function(){}));var n=function(){var t=this.$createElement,e=this._self._c||t;return e("div",{ref:"artRef",attrs:{_i:0},on:{touchmove:function(t){t.preventDefault()}}})},i=[]},fd27:function(t,e,r){"use strict";r.r(e);var n=r("eadc"),i=r.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return n[t]}))}(a);e["default"]=i.a},fd28:function(t,e,r){"use strict";r.r(e);var n=r("70df"),i=r.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return n[t]}))}(a);e["default"]=i.a},fd59:function(t,e,r){var n,i,a,s=r("3b2d");(function(o,u,l){"object"===s(e)?t.exports=e=u(r("707d"),r("bbe5")):(i=[r("707d"),r("bbe5")],n=u,a="function"===typeof n?n.apply(e,i):n,void 0===a||(t.exports=a))})(0,(function(t){return t.pad.ZeroPadding={pad:function(t,e){var r=4*e;t.clamp(),t.sigBytes+=r-(t.sigBytes%r||r)},unpad:function(t){var e=t.words,r=t.sigBytes-1;for(r=t.sigBytes-1;r>=0;r--)if(e[r>>>2]>>>24-r%4*8&255){t.sigBytes=r+1;break}}},t.pad.ZeroPadding}))},fdc0:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={collapseItem:{title:"",value:"",label:"",disabled:!1,isLink:!0,clickable:!0,border:!0,align:"left",name:"",icon:"",duration:300}}},fe73:function(t,e,r){"use strict";r.d(e,"b",(function(){return i})),r.d(e,"c",(function(){return a})),r.d(e,"a",(function(){return n}));var n={uIcon:r("712b").default},i=function(){var t=this,e=t.$createElement,r=t._self._c||e;return t._$s(0,"i",t.show)?r("view",{staticClass:t._$s(0,"sc","u-empty"),style:t._$s(0,"s",[t.emptyStyle]),attrs:{_i:0}},[t._$s(1,"i",!t.isSrc)?r("u-icon",{attrs:{name:"message"===t.mode?"chat":"empty-"+t.mode,size:t.iconSize,color:t.iconColor,"margin-top":"14",_i:1}}):r("image",{style:t._$s(2,"s",{width:t.$u.addUnit(t.width),height:t.$u.addUnit(t.height)}),attrs:{src:t._$s(2,"a-src",t.icon),_i:2}}),r("text",{staticClass:t._$s(3,"sc","u-empty__text"),style:t._$s(3,"s",[t.textStyle]),attrs:{_i:3}},[t._v(t._$s(3,"t0-0",t._s(t.text?t.text:t.icons[t.mode])))]),t._$s(4,"i",t.$slots.default||t.$slots.$default)?r("view",{staticClass:t._$s(4,"sc","u-empty__wrap"),attrs:{_i:4}},[t._t("default",null,{_i:5})],2):t._e()],1):t._e()},a=[]},ff24:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={gap:{bgColor:"transparent",height:20,marginTop:0,marginBottom:0,customStyle:{}}}},ff58:function(t,e,r){var n=r("b4d2");t.exports=function(t,e){while(!Object.prototype.hasOwnProperty.call(t,e))if(t=n(t),null===t)break;return t},t.exports.__esModule=!0,t.exports["default"]=t.exports},ff8d:function(t,e,r){"use strict";var n=r("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(r("77d0")),a=r("0f81"),s={components:{topic:i.default},data:function(){return{list:[]}},mounted:function(){this.hotTopic()},methods:{hotTopic:function(){var t=this;a.app.hotTopic().then((function(e){t.list=e.data}))},toChannel:function(){getApp().globalData.switchChannel.id=0,uni.switchTab({url:"/pages/home/channel"})}}};e.default=s},ff91:function(t,e,r){"use strict";var n=r("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(r("127e")),a=n(r("ee10")),s=(n(r("027b")),n(r("b37f"))),o=r("9c63"),u={components:{share:s.default},data:function(){return{isLogin:!1,shareBg:"/static/images/share-bg.png",shareUrl:"",qrcodeImg:(0,o.baseURL)()+"/api/user/qrcode",qrcode:"",drawComplete:!1,qrcodeSize:0,canvasWidth:0,canvasHeight:0}},watch:{qrcode:{handler:function(t){this.drawComplete=!1}}},onShow:function(){var t=this;return(0,a.default)(i.default.mark((function e(){var r;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$onLaunched;case 2:r=getApp().globalData.userToken,t.isLogin=!!r,t.qrcode=getApp().globalData.share.code,t.shareUrl=getApp().globalData.share.url,t.qrcode&&(t.shareUrl+=(-1!==t.shareUrl.indexOf("?")?"&code=":"?code=")+t.qrcode),t.$nextTick((function(){!1===t.drawComplete&&(t.generatePoster(),uni.onWindowResize((function(e){t.generatePoster()})))}));case 8:case"end":return e.stop()}}),e)})))()},methods:{generatePoster:function(){var t=(0,a.default)(i.default.mark((function t(){var e,r=this;return i.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this.getImageInfo(this.shareBg).then((function(t){return t}));case 2:e=t.sent,this.canvasWidth=uni.getSystemInfoSync().windowWidth,this.canvasHeight=this.canvasWidth/e.width*e.height,this.qrcodeSize=.6*this.canvasWidth,this.$nextTick((function(){var t=uni.createCanvasContext("canvas",r);if(t.clearRect(0,0,r.canvasWidth,r.canvasHeight),t.drawImage(r.shareBg,0,0,r.canvasWidth,r.canvasHeight),t.drawImage(r.qrcodeImg+(r.qrcode&&"?code="+r.qrcode),(r.canvasWidth-r.qrcodeSize)/2,.35*r.canvasHeight,r.qrcodeSize,r.qrcodeSize),r.isLogin&&r.qrcode)r.drawCode(t,r.qrcode);else{t.setFillStyle("rgba(255, 255, 255, 0.8)"),t.fillRect(.18*r.canvasWidth,.355*r.canvasHeight,.64*r.canvasWidth,.357*r.canvasHeight),t.setFillStyle("#333333"),t.setFontSize(.05*r.canvasWidth);var e=t.measureText("\u8bf7\u5148\u767b\u5f55").width;t.fillText("\u8bf7\u5148\u767b\u5f55",(r.canvasWidth-e)/2,.516*r.canvasHeight+r.qrcodeSize)}setTimeout((function(){t.draw()}),100),r.drawComplete=!0}));case 7:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}(),drawCode:function(t,e){t.setFillStyle("#ec5834"),t.setFontSize(.06*this.canvasWidth);var r=t.measureText(e).width;t.fillText(e,(this.canvasWidth-r)/2,.519*this.canvasHeight+this.qrcodeSize)},getImageInfo:function(t){return new Promise((function(e,r){uni.getImageInfo({src:t,success:function(t){e(t)}})}))},saveImage:function(){return new Promise((function(t,e){uni.showLoading({title:"\u6b63\u5728\u4fdd\u5b58"}),uni.canvasToTempFilePath({canvasId:"canvas",success:function(e){uni.saveImageToPhotosAlbum({filePath:e.tempFilePath,success:function(){uni.showToast({icon:"none",title:"\u56fe\u7247\u4fdd\u5b58\u6210\u529f~!",duration:3e3}),t(!0)},fail:function(e){t(!1)}})},fail:function(e){t(!1)}})})).then((function(t){!1===t&&uni.showToast({icon:"none",title:"\u4fdd\u5b58\u56fe\u7247\u5931\u8d25~!",duration:3e3})}))},openShare:function(){this.$refs.share.showSharePopup=!0},toLogin:function(){!1===this.isLogin&&uni.navigateTo({url:"/pages/user/login"})}}};e.default=u},ffd8:function(t,e,r){"use strict";r.d(e,"b",(function(){return n})),r.d(e,"c",(function(){return i})),r.d(e,"a",(function(){}));var n=function(){var t=this.$createElement,e=this._self._c||t;return e("view",{staticClass:this._$s(0,"sc","u-code"),attrs:{_i:0}})},i=[]}},[["cf98","app-config"]]]);