UNPKG

theoplayer

Version:

THEOplayer is the universal video player solution, enabling you to quickly deliver cross-platform content playback.

30 lines (22 loc) 421 kB
/*! THEOplayer Usage of this software is limited by the THEOplayer License. It is prohibited to reverse engineer, decompile, translate, disassemble, decipher, decrypt, or otherwise attempt to discover the source code of this software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. For more information, visit https://www.theoplayer.com or contact contact @ theoplayer . com THEOplayer is based on patented technology developed by THEO Technologies (https://www.theoplayer.com). Version: 10.8.0 Created: 2026-01-15T14:16:26.308Z */ !function(r){"use strict";var e,i,A,f,n,a,t,b,k,u=r.window,o=r.document,c=(r.location,r.navigator),s=r.setTimeout,l=r.clearTimeout,h=r.setInterval,v=r.clearInterval,d=r.Error,w=r.TypeError,g=(r.SyntaxError,r.Object),y=r.Math,B=r.parseInt,E=r.parseFloat,_=r.isNaN,I=r.Uint8Array;r.Worker,r.WorkerGlobalScope,r.XMLHttpRequest;function Q(r,i){return null!=i&&void 0!==e&&i[e.hasInstance]?!!i[e.hasInstance](r):r instanceof i}function N(r){return r&&void 0!==e&&r.constructor===e?"symbol":typeof r}"function"==typeof Symbol&&Symbol.iterator?(e=Symbol,i=null!=(a=Symbol.for)?a:Symbol,A=Symbol.iterator,f=null!=(t=Symbol.dispose)?t:i("Symbol.dispose"),n=null!=(b=Symbol.asyncDispose)?b:i("Symbol.asyncDispose")):(k=0,e=function(r){return"hd"+r+"_"+ ++k},A=(i=function(r){return"hd"+r})("Symbol.iterator"),f=i("Symbol.dispose"),n=i("Symbol.asyncDispose"),e.for=i,e.iterator=A,e.dispose=f,e.asyncDispose=n);var R=s;function C(r){return Boolean(r&&void 0!==r.length)}function p(){}function G(r){if(!Q(this,G))throw new w("Promises must be constructed via new");if("function"!=typeof r)throw new w("not a function");this.Ua=0,this.IEi=!1,this.fkt=void 0,this.REi=[],F(r,this)}function m(r,e){for(;3===r.Ua;)r=r.fkt;0!==r.Ua?(r.IEi=!0,G.CEi(function(){var i=1===r.Ua?e.onFulfilled:e.onRejected;if(null!==i){var A;try{A=i(r.fkt)}catch(r){return void W(e.promise,r)}Y(e.promise,A)}else(1===r.Ua?Y:W)(e.promise,r.fkt)})):r.REi.push(e)}function Y(r,e){try{if(e===r)throw new w("A promise cannot be resolved with itself.");if(e&&("object"===(void 0===e?"undefined":N(e))||"function"==typeof e)){var i=e.then;if(Q(e,G))return r.Ua=3,r.fkt=e,void D(r);if("function"==typeof i)return void F(function(r,e){return function(){r.apply(e,arguments)}}(i,e),r)}r.Ua=1,r.fkt=e,D(r)}catch(e){W(r,e)}}function W(r,e){r.Ua=2,r.fkt=e,D(r)}function D(r){2===r.Ua&&0===r.REi.length&&G.CEi(function(){r.IEi||G.PEi(r.fkt)});for(var e=0,i=r.REi.length;e<i;e++)m(r,r.REi[e]);r.REi=null}function S(r,e,i){this.onFulfilled="function"==typeof r?r:null,this.onRejected="function"==typeof e?e:null,this.promise=i}function F(r,e){var i=!1;try{r(function(r){i||(i=!0,Y(e,r))},function(r){i||(i=!0,W(e,r))})}catch(r){if(i)return;i=!0,W(e,r)}}G.prototype.catch=function(r){return this.then(null,r)},G.prototype.then=function(r,e){var i=new this.constructor(p);return m(this,new S(r,e,i)),i},G.prototype.finally=function(r){var e=this.constructor;return this.then(function(i){return e.resolve(r()).then(function(){return i})},function(i){return e.resolve(r()).then(function(){return e.reject(i)})})},G.all=function(r){return new G(function(e,i){if(!C(r))return i(new w("Promise.all accepts an array"));var A=Array.prototype.slice.call(r);if(0===A.length)return e([]);var f=A.length;function n(r,a){try{if(a&&("object"===(void 0===a?"undefined":N(a))||"function"==typeof a)){var t=a.then;if("function"==typeof t)return void t.call(a,function(e){n(r,e)},i)}A[r]=a,0===--f&&e(A)}catch(r){i(r)}}for(var a=0;a<A.length;a++)n(a,A[a])})},G.allSettled=function(r){return new this(function(e,i){if(!r||void 0===r.length)return i(new w((void 0===r?"undefined":N(r))+" "+r+" is not iterable(cannot read property Symbol(Symbol.iterator))"));var A=Array.prototype.slice.call(r);if(0===A.length)return e([]);var f=A.length;function n(r,i){if(i&&("object"===(void 0===i?"undefined":N(i))||"function"==typeof i)){var a=i.then;if("function"==typeof a)return void a.call(i,function(e){n(r,e)},function(i){A[r]={status:"rejected",reason:i},0===--f&&e(A)})}A[r]={status:"fulfilled",value:i},0===--f&&e(A)}for(var a=0;a<A.length;a++)n(a,A[a])})},G.resolve=function(r){return r&&"object"===(void 0===r?"undefined":N(r))&&r.constructor===G?r:new G(function(e){e(r)})},G.reject=function(r){return new G(function(e,i){i(r)})},G.race=function(r){return new G(function(e,i){if(!C(r))return i(new w("Promise.race accepts an array"));for(var A=0,f=r.length;A<f;A++)G.resolve(r[A]).then(e,i)})},G.CEi="function"==typeof setImmediate&&function(r){setImmediate(r)}||function(r){R(r,0)},G.PEi=function(r){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",r)};var T=function(){var r=self.Promise;if(void 0!==r)try{if(-1!==r.toString().indexOf("[native code]"))return r}catch(r){}}(),M=c?c.userAgent:"",O=M.match(/Firefox\/([0-9]+)/i),Z=null!=O,L=O?Number(O[1]):0,U=M.match(/(Version)\/((\d+)\.(\d+)(?:\.(\d+))?).*Safari/),V=null!=U,X=U?Number(U[3]):0,J=function(){function r(r){this.Ab=0,this.Wd=0,this.Kp=[],this.DEi=r}return r.prototype.NEi=function(r){var e=this.length();this.xEi(e+1);var i=this.Wd+e&this.DEi-1;this.Kp[i]=r,this.Ab=e+1},r.prototype.push=function(r){var e=this.length()+1;if(this.DEi<e)this.NEi(r);else{var i=this.Wd+e-1,A=this.DEi-1;this.Kp[i&A]=r,this.Ab=e}},r.prototype.shift=function(){var r=this.Wd,e=this.Kp[r];return this.Kp[r]=void 0,this.Wd=r+1&this.DEi-1,this.Ab--,e},r.prototype.length=function(){return this.Ab},r.prototype.xEi=function(r){this.DEi<r&&this.BEi(this.DEi<<1)},r.prototype.BEi=function(r){var e=this.DEi;this.DEi=r;var i=this.Wd+this.Ab&e-1;!function(r,e,i,A){for(var f=0;f<A;++f)r[f+i]=r[f+e],r[f+e]=void 0}(this.Kp,0,e,i)},r}();var x="unhandledrejection",H=self.PromiseRejectionEvent,j=self.CustomEvent;function z(r){return new H(x,{reason:r,promise:T.reject(r).catch(function(){}),cancelable:!0})}function P(r){var e=new j(x,{detail:{reason:r},cancelable:!0});return g.defineProperty(e,"reason",{value:r}),e}function K(r){var e=o.createEvent("CustomEvent");return e.initCustomEvent(x,!1,!0,{reason:r}),e}var q,$,rr,er,ir,Ar,fr,nr,ar=function(r){return ar=function(){try{var r=T.resolve(),e="error",i=new H(x,{reason:e,promise:r});return x===i.type&&e===i.reason}catch(r){}return!1}()?z:function(){try{var r="error",e=new j(x,{detail:{reason:r}});return x===e.type&&r===e.detail.reason}catch(r){}return!1}()?P:K,ar(r)};function tr(r,e){return tr=g.setPrototypeOf||function(r,e){return r.__proto__=e,r},tr(r,e)}function br(r,e){if("function"!=typeof e&&null!==e)throw new w("Super expression must either be null or a function");r.prototype=g.create(e&&e.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),e&&tr(r,e)}function kr(r,e){for(var i=0;i<e.length;i++){var A=e[i];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),g.defineProperty(r,A.key,A)}}function ur(r,e,i){return e&&kr(r.prototype,e),i&&kr(r,i),r}function or(r,e){(null==e||e>r.length)&&(e=r.length);for(var i=0,A=new Array(e);i<e;i++)A[i]=r[i];return A}function cr(r,i){var f=void 0!==e&&r[A]||r["@@iterator"];if(f)return(f=f.call(r)).next.bind(f);if(Array.isArray(r)||(f=function(r,e){if(r){if("string"==typeof r)return or(r,e);var i=g.prototype.toString.call(r).slice(8,-1);return"Object"===i&&r.constructor&&(i=r.constructor.name),"Map"===i||"Set"===i?Array.from(i):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?or(r,e):void 0}}(r))||i&&r&&"number"==typeof r.length){f&&(r=f);var n=0;return function(){return n>=r.length?{done:!0}:{done:!1,value:r[n++]}}}throw new w("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}T&&!(Z&&L<60||V&&X<15)?$=T:($=G,fr=null!==(q=function(){var r=self.queueMicrotask;if("function"==typeof r)return function(e){return r(e)};var e=T;if(e&&"function"==typeof e.resolve){var i=e.resolve();return function(r){return i.then(r)}}}())&&void 0!==q?q:G.CEi,rr=fr,er=new J(16),ir=!1,(nr={n8:function(r){er.push(r),ir||(ir=!0,rr(Ar))},UQ:Ar=function(){for(;er.length()>0;)er.shift()();ir=!1}}).UQ,G.CEi=nr.n8,G.PEi=function(r){try{var e=ar(r);if(!self.dispatchEvent(e)||e.defaultPrevented)return}catch(r){}s(function(){throw new d("Unhandled promise rejection: ".concat(r))},0)});var sr=function(r){return r.Rv="web",r.Dv="android",r.Bv="android-tv",r.Nv="ios",r.Mv="tvos",r.Lv="chromecast",r.Ov="theoliveweb",r}({});var lr=c?c.userAgent:"",hr=lr.match(/chrome\/([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)/i),vr=lr.match(/Edg\/([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)/i),dr=lr.match(/Android ([0-9\.]+)/i),wr=lr.match(/Windows NT ([0-9\.]+)/i),gr=lr.match(/(Version)\/((\d+)\.(\d+)(?:\.(\d+))?).*Safari/),yr=lr.match(/Firefox\/([0-9\.]+)/i),Br=lr.match(/OPR\/(\d+\.\d+)/i),Er=lr.match(/Tizen ([0-9\.]+)/i),_r=lr.match(/(iPhone OS|iPad OS|iPod OS|Mac OS X) (\d+)_(\d+)_?(\d+)?/),Ir=lr.match(/HbbTV\/([0-9.]+)/i),Qr=lr.match(/(AFT.*) Build/i),Nr=function(){function r(){this.Fv=Boolean("ontouchstart"in self||self.DocumentTouch&&Q(o,self.DocumentTouch)||c&&c.msMaxTouchPoints),this.Vv=/(mac\sos\sx)\s?([\w\s\.]+\w)*/i.test(lr)||/(macintosh|mac(?=_powerpc)\s)/i.test(lr),this.Wv=/Windows NT/i.test(lr),this.zv=wr?E(wr[1]):0,this.Xv=/Android/i.test(lr),this.Kv=dr?E(dr[1]):0,this.Jv=/windows phone (8|8\.1)/i.test(lr),this.$v=/iPhone/i.test(lr),this.i_=/iPad/i.test(lr),this.s_=this.Vv&&this.Fv&&!this.i_,this.r_=/iPod/i.test(lr),this.l_=/Mobile Safari/i.test(lr),this.c_=/EOS\d*STB/i.test(lr),this.d_=/APP\d*STB/i.test(lr),this.h_=(this.$v||this.i_||this.s_||this.r_)&&!this.Jv,this.a_=_r?E(_r[2]):0,this.f_=this.Jv||this.h_||this.Xv||this.l_,this.__=/CriOS/i.test(lr),this.p_=Boolean(self.chrome&&/google/i.test(c.vendor))||this.__,this.A_=this.p_&&/Edg\//i.test(c.userAgent),this.T_=vr?B(vr[1],10):0,this.Vg=Boolean(/CriOS/i.test(lr)),this.Ug=Boolean(self.chrome||/Chrome/i.test(lr)||this.Vg),this.y_=hr?B(hr[1],10):0,this.x_=/SMART-TV.*Tizen/i.test(lr),this.I_=Er?E(Er[1]):0,this.w_=this.I_>0?function(r){return r>=8?108:r>=7?94:r>=6.5?85:r>=6?76:r>=5.5?69:r>=5?63:r>=4?56:r>=3?47:0}(this.I_):void 0,this.R_=/webos|web0s/i.test(lr),this.B_=/HbbTV/i.test(lr),this.M_=!!Ir&&function(r){if(!r)return!1;var e=r.split(".").map(Number);return 3===e.length&&1===e[0]&&2===e[1]}(Ir[1]),this.O_=/AFT.* Build/i.test(lr),this.F_=Qr?Qr[1]:void 0,this.V_=/VIZIO/i.test(lr),this.W_=/Edge\/\d+/i.test(lr),this.z_=/Trident/i.test(lr),this.X_=this.z_&&!self.ActiveXObject&&"ActiveXObject"in self,this.Q_=/Vivaldi/i.test(lr),this.Y_=/Firefox/i.test(lr)&&!/Seamonkey/i.test(lr),this.Z_=yr?E(yr[1]):0,this.rg=/Safari/i.test(lr)&&!/Chrome/i.test(lr)&&!this.Jv&&!this.x_,this.og=gr?E(gr[2]):0,this.cg=Boolean(Br),this.fg=Br?E(Br[1]):0,this._g=/CrKey/.test(lr),this.pg=/\b(tv|smart-tv|smarttv|appletv|crkey|googletv|hbbtv|pov_tv|roku|viera|nettv|philipstv|vizio)\b/i.test(lr),this.Ag=/PlayStation 4/i.test(lr),this.Tg=/PlayStation 5/i.test(lr),this.xg="web"===sr.Bv,this.Ig="web"===sr.Dv,this.Rg=this.Ig||this.xg,this.Bg="web"===sr.Nv,this.Mg="web"===sr.Mv,this.Og="web"===sr.Lv}return ur(r,[{key:"Ke",get:function(){return this.Fv}},{key:"Uv",get:function(){return this.Vv}},{key:"Hv",get:function(){return this.Wv}},{key:"qv",get:function(){return this.zv}},{key:"Gv",get:function(){return this.Xv}},{key:"Qv",get:function(){return this.Kv}},{key:"Yv",get:function(){return this.Jv}},{key:"Zv",get:function(){return this.$v}},{key:"t_",get:function(){return this.i_}},{key:"e_",get:function(){return this.s_}},{key:"n_",get:function(){return this.r_}},{key:"ru",get:function(){return this.h_}},{key:"o_",get:function(){return this.a_}},{key:"u_",get:function(){return this.c_||this.d_}},{key:"$d",get:function(){return this.l_}},{key:"Ks",get:function(){return this.f_}},{key:"v_",get:function(){return this.__}},{key:"g_",get:function(){return this.p_}},{key:"m_",get:function(){var r;return null!=(r=this.w_)?r:this.y_}},{key:"b_",get:function(){return this.A_}},{key:"S_",get:function(){var r;return(null==(r=u.chrome)?void 0:r.webview)&&this.T_>0}},{key:"k_",get:function(){return this.T_}},{key:"E_",get:function(){return this.x_}},{key:"P_",get:function(){return this.I_}},{key:"C_",get:function(){return this.R_}},{key:"D_",get:function(){return this.B_}},{key:"N_",get:function(){return this.M_}},{key:"L_",get:function(){return this.O_}},{key:"IS_FIRETV_AFTMM",get:function(){return"AFTMM"===this.F_}},{key:"U_",get:function(){return this.V_}},{key:"H_",get:function(){return this.W_}},{key:"q_",get:function(){return this.z_}},{key:"G_",get:function(){return this.X_}},{key:"j_",get:function(){return this.Q_}},{key:"K_",get:function(){return this.Y_}},{key:"J_",get:function(){return this.Z_}},{key:"eg",get:function(){return this.rg}},{key:"hg",get:function(){return 0===this.og&&Rr.ru?this.a_:this.og}},{key:"ag",get:function(){return this.cg}},{key:"dg",get:function(){return this.fg}},{key:"vg",get:function(){return this._g}},{key:"gg",get:function(){return this.pg}},{key:"wg",get:function(){return!(!this.C_&&!this.E_)&&this.m_<=56}},{key:"yg",get:function(){return this.Ag}},{key:"Sg",get:function(){return this.Tg}},{key:"Eg",get:function(){return this.xg}},{key:"Pg",get:function(){return this.Ig}},{key:"Cg",get:function(){return this.Rg}},{key:"Dg",get:function(){return this.Bg}},{key:"Ng",get:function(){return this.Mg}},{key:"Lg",get:function(){return this.Og}},{key:"Fg",get:function(){return this.Ug}},{key:"IS_IOS_CHROME",get:function(){return this.Vg}}]),r}();Nr.Hg=new Nr;var Rr=Nr.Hg,Cr={}.toString;function pr(r){return null!=r}Array.isArray;function Gr(r){return"object"===(void 0===r?"undefined":N(r))&&null!==r}function mr(r){return function(r){return"function"==typeof r}(r)||Gr(r)}var Yr=function(){};function Wr(r){var e;return function(){return void 0!==r&&(e=r(),r=void 0),e}}function Dr(r,e,i,A,f,n,a){try{var t=r[n](a),b=t.value}catch(r){return void i(r)}t.done?e(b):$.resolve(b).then(A,f)}function Sr(r,i){var f,n,a,t={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},b=g.create(("function"==typeof Iterator?Iterator:g).prototype);return b.next=k(0),b.throw=k(1),b.return=k(2),"function"==typeof e&&(b[A]=function(){return this}),b;function k(e){return function(A){return function(e){if(f)throw new w("Generator is already executing.");for(;b&&(b=0,e[0]&&(t=0)),t;)try{if(f=1,n&&(a=2&e[0]?n.return:e[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,e[1])).done)return a;switch(n=0,a&&(e=[2&e[0],a.value]),e[0]){case 0:case 1:a=e;break;case 4:return t.label++,{value:e[1],done:!1};case 5:t.label++,n=e[1],e=[0];continue;case 7:e=t.ops.pop(),t.trys.pop();continue;default:if(!(a=t.trys,(a=a.length>0&&a[a.length-1])||6!==e[0]&&2!==e[0])){t=0;continue}if(3===e[0]&&(!a||e[1]>a[0]&&e[1]<a[3])){t.label=e[1];break}if(6===e[0]&&t.label<a[1]){t.label=a[1],a=e;break}if(a&&t.label<a[2]){t.label=a[2],t.ops.push(e);break}a[2]&&t.ops.pop(),t.trys.pop();continue}e=i.call(r,t)}catch(r){e=[6,r],n=0}finally{f=a=0}if(5&e[0])throw e[1];return{value:e[0]?e[1]:void 0,done:!0}}([e,A])}}}y.pow(2,-52),Array.prototype.find,Array.prototype.findLast;var Fr="function"==typeof Array.prototype.findIndex?function(r,e){return r.findIndex(e)}:function(r,e){for(var i=0;i<r.length;i+=1){if(e(r[i],i,r))return i}return-1},Tr="function"==typeof Array.prototype.findLastIndex?function(r,e){return r.findLastIndex(e)}:function(r,e){for(var i=r.length-1;i>=0;i-=1){if(e(r[i],i,r))return i}return-1};Array.prototype.at;function Mr(r,e){var i=r.indexOf(e);return-1!==i&&(function(r,e){0===e?r.shift():r.splice(e,1)}(r,i),!0)}function Or(r){r.length=0}Array.prototype.flat,Array.prototype.flatMap;var Zr=function(){function r(){this.Qg=!1,this.Kg=!1,this.Yg=[],this.Zg=[]}var e=r.prototype;return e.jg=function(){if(!this.Qg&&!this.Kg){this.Qg=!0;for(var r,e=cr(this.Yg.slice());!(r=e()).done;){(0,r.value)()}this.Jg()}},e.Jg=function(){if(!this.Kg){this.Kg=!0;for(var r,e=cr(this.Zg.slice());!(r=e()).done;){(0,r.value)()}Or(this.Yg),Or(this.Zg)}},e.$g=function(r){this.Kg||this.Yg.push(r)},e.tp=function(r){this.Kg||Mr(this.Yg,r)},e.ep=function(r){this.Kg||this.Zg.push(r)},e.sp=function(r){this.Kg||Mr(this.Zg,r)},r}(),Lr=function(){function r(){this.rp=new Zr}var e=r.prototype;return e.hp=function(){this.rp.jg()},e.Jg=function(){this.rp.Jg()},e.op=function(r){var e=this.rp;if(!e.Qg)if(r.Qg)e.jg();else if(!e.Kg&&!r.Kg){var i=function(){A(),e.jg()},A=function(){r.tp(i),r.sp(A),e.tp(i),e.sp(A)};r.$g(i),r.ep(A),e.$g(i),e.ep(A)}},e.ap=function(){var e=new r,i=new r,A=e.np,f=i.np,n=this.rp,a=function(){A.Qg&&f.Kg||f.Qg&&A.Kg?n.jg():A.Kg&&f.Kg&&n.Jg()};A.$g(a),f.$g(a),A.ep(a),f.ep(a),e.op(n),i.op(n);return n.ep(function(){A.tp(a),f.tp(a),A.sp(a),f.sp(a)}),[e,i]},e[f]=function(){this.hp()},r.cp=function(e){for(var i,A=new r,f=cr(e);!(i=f()).done;){var n=i.value;void 0!==n&&A.op(n)}return A},ur(r,[{key:"np",get:function(){return this.rp}}]),r}(),Ur=function(){for(var r=arguments.length,e=new Array(r),i=0;i<r;i++)e[i]=arguments[i];d.apply(this,e)};(Ur.prototype=g.create(d.prototype)).constructor=Ur;var Vr=function(r){function e(e,i){var A;return(A=r.call(this)||this).cause=void 0,A.message=e||"Unknown error",A.cause=i,d.captureStackTrace&&d.captureStackTrace(A,A.constructor),A}return br(e,r),ur(e,[{key:"name",get:function(){return"BaseError"}}]),e}(Ur);$.resolve();function Xr(){return void 0!==o?o.createElement("video"):void 0}var Jr=Wr(Xr),xr=(Wr(function(){return"undefined"!=typeof HTMLVideoElement&&Q(Jr(),HTMLVideoElement)}),null);try{xr=new WebAssembly.Instance(new WebAssembly.Module(new I([0,97,115,109,1,0,0,0,1,13,2,96,0,1,127,96,4,127,127,127,127,1,127,3,7,6,0,1,1,1,1,1,6,6,1,127,1,65,0,11,7,50,6,3,109,117,108,0,1,5,100,105,118,95,115,0,2,5,100,105,118,95,117,0,3,5,114,101,109,95,115,0,4,5,114,101,109,95,117,0,5,8,103,101,116,95,104,105,103,104,0,0,10,191,1,6,4,0,35,0,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,126,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,127,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,128,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,129,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,130,34,4,66,32,135,167,36,0,32,4,167,11])),{}).exports}catch(rr){}function Hr(r,e,i){this.low=0|r,this.high=0|e,this.unsigned=!!i}function jr(r){return!0===(r&&r.lp)}function zr(r){var e=y.clz32(r&-r);return r?31-e:e}Hr.prototype.lp,g.defineProperty(Hr.prototype,"lp",{value:!0}),Hr.isLong=jr;var Pr={},Kr={};function qr(r,e){var i,A,f;return e?(f=0<=(r>>>=0)&&r<256)&&(A=Kr[r])?A:(i=re(r,0,!0),f&&(Kr[r]=i),i):(f=-128<=(r|=0)&&r<128)&&(A=Pr[r])?A:(i=re(r,r<0?-1:0,!1),f&&(Pr[r]=i),i)}function $r(r,e){if(_(r))return e?ke:be;if(e){if(r<0)return ke;if(r>=ne)return le}else{if(r<=-ae)return he;if(r+1>=ae)return se}return r<0?$r(-r,e).neg():re(r%fe|0,r/fe|0,e)}function re(r,e,i){return new Hr(r,e,i)}Hr.fromInt=qr,Hr.fromNumber=$r,Hr.fromBits=re;var ee=y.pow;function ie(r,e,i){if(0===r.length)throw d("empty string");if("number"==typeof e?(i=e,e=!1):e=!!e,"NaN"===r||"Infinity"===r||"+Infinity"===r||"-Infinity"===r)return e?ke:be;if((i=i||10)<2||36<i)throw RangeError("radix");var A;if((A=r.indexOf("-"))>0)throw d("interior hyphen");if(0===A)return ie(r.substring(1),e,i).neg();for(var f=$r(ee(i,8)),n=be,a=0;a<r.length;a+=8){var t=y.min(8,r.length-a),b=B(r.substring(a,a+t),i);if(t<8){var k=$r(ee(i,t));n=n.mul(k).add($r(b))}else n=(n=n.mul(f)).add($r(b))}return n.unsigned=e,n}function Ae(r,e){return"number"==typeof r?$r(r,e):"string"==typeof r?ie(r,e):re(r.low,r.high,"boolean"==typeof e?e:r.unsigned)}Hr.fromString=ie,Hr.fromValue=Ae;var fe=4294967296,ne=fe*fe,ae=ne/2,te=qr(1<<24),be=qr(0);Hr.ZERO=be;var ke=qr(0,!0);Hr.UZERO=ke;var ue=qr(1);Hr.ONE=ue;var oe=qr(1,!0);Hr.UONE=oe;var ce=qr(-1);Hr.NEG_ONE=ce;var se=re(-1,2147483647,!1);Hr.MAX_VALUE=se;var le=re(-1,-1,!0);Hr.MAX_UNSIGNED_VALUE=le;var he=re(0,-2147483648,!1);Hr.MIN_VALUE=he;var ve=Hr.prototype;function de(){return Date.now()||(new Date).getTime()}ve.toInt=function(){return this.unsigned?this.low>>>0:this.low},ve.toNumber=function(){return this.unsigned?(this.high>>>0)*fe+(this.low>>>0):this.high*fe+(this.low>>>0)},ve.toString=function(r){if((r=r||10)<2||36<r)throw RangeError("radix");if(this.isZero())return"0";if(this.isNegative()){if(this.eq(he)){var e=$r(r),i=this.div(e),A=i.mul(e).sub(this);return i.toString(r)+A.toInt().toString(r)}return"-"+this.neg().toString(r)}for(var f=$r(ee(r,6),this.unsigned),n=this,a="";;){var t=n.div(f),b=(n.sub(t.mul(f)).toInt()>>>0).toString(r);if((n=t).isZero())return b+a;for(;b.length<6;)b="0"+b;a=""+b+a}},ve.getHighBits=function(){return this.high},ve.getHighBitsUnsigned=function(){return this.high>>>0},ve.getLowBits=function(){return this.low},ve.getLowBitsUnsigned=function(){return this.low>>>0},ve.getNumBitsAbs=function(){if(this.isNegative())return this.eq(he)?64:this.neg().getNumBitsAbs();for(var r=0!=this.high?this.high:this.low,e=31;e>0&&!(r&1<<e);e--);return 0!=this.high?e+33:e+1},ve.isSafeInteger=function(){var r=this.high>>21;return!r||!this.unsigned&&(-1===r&&!(0===this.low&&-2097152===this.high))},ve.isZero=function(){return 0===this.high&&0===this.low},ve.eqz=ve.isZero,ve.isNegative=function(){return!this.unsigned&&this.high<0},ve.isPositive=function(){return this.unsigned||this.high>=0},ve.isOdd=function(){return!(1&~this.low)},ve.isEven=function(){return!(1&this.low)},ve.equals=function(r){return jr(r)||(r=Ae(r)),(this.unsigned===r.unsigned||this.high>>>31!=1||r.high>>>31!=1)&&(this.high===r.high&&this.low===r.low)},ve.eq=ve.equals,ve.notEquals=function(r){return!this.eq(r)},ve.neq=ve.notEquals,ve.ne=ve.notEquals,ve.lessThan=function(r){return this.comp(r)<0},ve.lt=ve.lessThan,ve.lessThanOrEqual=function(r){return this.comp(r)<=0},ve.lte=ve.lessThanOrEqual,ve.le=ve.lessThanOrEqual,ve.greaterThan=function(r){return this.comp(r)>0},ve.gt=ve.greaterThan,ve.greaterThanOrEqual=function(r){return this.comp(r)>=0},ve.gte=ve.greaterThanOrEqual,ve.ge=ve.greaterThanOrEqual,ve.compare=function(r){if(jr(r)||(r=Ae(r)),this.eq(r))return 0;var e=this.isNegative(),i=r.isNegative();return e&&!i?-1:!e&&i?1:this.unsigned?r.high>>>0>this.high>>>0||r.high===this.high&&r.low>>>0>this.low>>>0?-1:1:this.sub(r).isNegative()?-1:1},ve.comp=ve.compare,ve.negate=function(){return!this.unsigned&&this.eq(he)?he:this.not().add(ue)},ve.neg=ve.negate,ve.add=function(r){jr(r)||(r=Ae(r));var e=this.high>>>16,i=65535&this.high,A=this.low>>>16,f=65535&this.low,n=r.high>>>16,a=65535&r.high,t=r.low>>>16,b=0,k=0,u=0,o=0;return u+=(o+=f+(65535&r.low))>>>16,k+=(u+=A+t)>>>16,b+=(k+=i+a)>>>16,b+=e+n,re((u&=65535)<<16|(o&=65535),(b&=65535)<<16|(k&=65535),this.unsigned)},ve.subtract=function(r){return jr(r)||(r=Ae(r)),this.add(r.neg())},ve.sub=ve.subtract,ve.multiply=function(r){if(this.isZero())return this;if(jr(r)||(r=Ae(r)),xr)return re(xr.mul(this.low,this.high,r.low,r.high),xr.get_high(),this.unsigned);if(r.isZero())return this.unsigned?ke:be;if(this.eq(he))return r.isOdd()?he:be;if(r.eq(he))return this.isOdd()?he:be;if(this.isNegative())return r.isNegative()?this.neg().mul(r.neg()):this.neg().mul(r).neg();if(r.isNegative())return this.mul(r.neg()).neg();if(this.lt(te)&&r.lt(te))return $r(this.toNumber()*r.toNumber(),this.unsigned);var e=this.high>>>16,i=65535&this.high,A=this.low>>>16,f=65535&this.low,n=r.high>>>16,a=65535&r.high,t=r.low>>>16,b=65535&r.low,k=0,u=0,o=0,c=0;return o+=(c+=f*b)>>>16,u+=(o+=A*b)>>>16,o&=65535,u+=(o+=f*t)>>>16,k+=(u+=i*b)>>>16,u&=65535,k+=(u+=A*t)>>>16,u&=65535,k+=(u+=f*a)>>>16,k+=e*b+i*t+A*a+f*n,re((o&=65535)<<16|(c&=65535),(k&=65535)<<16|(u&=65535),this.unsigned)},ve.mul=ve.multiply,ve.divide=function(r){if(jr(r)||(r=Ae(r)),r.isZero())throw d("division by zero");var e,i,A;if(xr)return this.unsigned||-2147483648!==this.high||-1!==r.low||-1!==r.high?re((this.unsigned?xr.div_u:xr.div_s)(this.low,this.high,r.low,r.high),xr.get_high(),this.unsigned):this;if(this.isZero())return this.unsigned?ke:be;if(this.unsigned){if(r.unsigned||(r=r.toUnsigned()),r.gt(this))return ke;if(r.gt(this.shru(1)))return oe;A=ke}else{if(this.eq(he))return r.eq(ue)||r.eq(ce)?he:r.eq(he)?ue:(e=this.shr(1).div(r).shl(1)).eq(be)?r.isNegative()?ue:ce:(i=this.sub(r.mul(e)),A=e.add(i.div(r)));if(r.eq(he))return this.unsigned?ke:be;if(this.isNegative())return r.isNegative()?this.neg().div(r.neg()):this.neg().div(r).neg();if(r.isNegative())return this.div(r.neg()).neg();A=be}for(i=this;i.gte(r);){e=y.max(1,y.floor(i.toNumber()/r.toNumber()));for(var f=y.ceil(y.log(e)/y.LN2),n=f<=48?1:ee(2,f-48),a=$r(e),t=a.mul(r);t.isNegative()||t.gt(i);)t=(a=$r(e-=n,this.unsigned)).mul(r);a.isZero()&&(a=ue),A=A.add(a),i=i.sub(t)}return A},ve.div=ve.divide,ve.modulo=function(r){return jr(r)||(r=Ae(r)),xr?re((this.unsigned?xr.rem_u:xr.rem_s)(this.low,this.high,r.low,r.high),xr.get_high(),this.unsigned):this.sub(this.div(r).mul(r))},ve.mod=ve.modulo,ve.rem=ve.modulo,ve.not=function(){return re(~this.low,~this.high,this.unsigned)},ve.countLeadingZeros=function(){return this.high?y.clz32(this.high):y.clz32(this.low)+32},ve.clz=ve.countLeadingZeros,ve.countTrailingZeros=function(){return this.low?zr(this.low):zr(this.high)+32},ve.ctz=ve.countTrailingZeros,ve.and=function(r){return jr(r)||(r=Ae(r)),re(this.low&r.low,this.high&r.high,this.unsigned)},ve.or=function(r){return jr(r)||(r=Ae(r)),re(this.low|r.low,this.high|r.high,this.unsigned)},ve.xor=function(r){return jr(r)||(r=Ae(r)),re(this.low^r.low,this.high^r.high,this.unsigned)},ve.shiftLeft=function(r){return jr(r)&&(r=r.toInt()),0==(r&=63)?this:r<32?re(this.low<<r,this.high<<r|this.low>>>32-r,this.unsigned):re(0,this.low<<r-32,this.unsigned)},ve.shl=ve.shiftLeft,ve.shiftRight=function(r){return jr(r)&&(r=r.toInt()),0==(r&=63)?this:r<32?re(this.low>>>r|this.high<<32-r,this.high>>r,this.unsigned):re(this.high>>r-32,this.high>=0?0:-1,this.unsigned)},ve.shr=ve.shiftRight,ve.shiftRightUnsigned=function(r){return jr(r)&&(r=r.toInt()),0==(r&=63)?this:r<32?re(this.low>>>r|this.high<<32-r,this.high>>>r,this.unsigned):re(32===r?this.high:this.high>>>r-32,0,this.unsigned)},ve.shru=ve.shiftRightUnsigned,ve.shr_u=ve.shiftRightUnsigned,ve.rotateLeft=function(r){var e;return jr(r)&&(r=r.toInt()),0==(r&=63)?this:32===r?re(this.high,this.low,this.unsigned):r<32?(e=32-r,re(this.low<<r|this.high>>>e,this.high<<r|this.low>>>e,this.unsigned)):(e=32-(r-=32),re(this.high<<r|this.low>>>e,this.low<<r|this.high>>>e,this.unsigned))},ve.rotl=ve.rotateLeft,ve.rotateRight=function(r){var e;return jr(r)&&(r=r.toInt()),0==(r&=63)?this:32===r?re(this.high,this.low,this.unsigned):r<32?(e=32-r,re(this.high<<e|this.low>>>r,this.low<<e|this.high>>>r,this.unsigned)):(e=32-(r-=32),re(this.low<<e|this.high>>>r,this.high<<e|this.low>>>r,this.unsigned))},ve.rotr=ve.rotateRight,ve.toSigned=function(){return this.unsigned?re(this.low,this.high,!1):this},ve.toUnsigned=function(){return this.unsigned?this:re(this.low,this.high,!0)},ve.toBytes=function(r){return r?this.toBytesLE():this.toBytesBE()},ve.toBytesLE=function(){var r=this.high,e=this.low;return[255&e,e>>>8&255,e>>>16&255,e>>>24,255&r,r>>>8&255,r>>>16&255,r>>>24]},ve.toBytesBE=function(){var r=this.high,e=this.low;return[r>>>24,r>>>16&255,r>>>8&255,255&r,e>>>24,e>>>16&255,e>>>8&255,255&e]},Hr.fromBytes=function(r,e,i){return i?Hr.fromBytesLE(r,e):Hr.fromBytesBE(r,e)},Hr.fromBytesLE=function(r,e){return new Hr(r[0]|r[1]<<8|r[2]<<16|r[3]<<24,r[4]|r[5]<<8|r[6]<<16|r[7]<<24,e)},Hr.fromBytesBE=function(r,e){return new Hr(r[4]<<24|r[5]<<16|r[6]<<8|r[7],r[0]<<24|r[1]<<16|r[2]<<8|r[3],e)},"function"==typeof BigInt&&(Hr.fromBigInt=function(r,e){return re(Number(BigInt.asIntN(32,r)),Number(BigInt.asIntN(32,r>>BigInt(32))),e)},Hr.fromValue=function(r,e){return"bigint"===(void 0===r?"undefined":N(r))?Hr.fromBigInt(r,e):Ae(r,e)},ve.toBigInt=function(){var r=BigInt(this.low>>>0);return BigInt(this.unsigned?this.high>>>0:this.high)<<BigInt(32)|r});var we=1/6,ge=(Hr.fromNumber(9007199254740991),Boolean("ontouchstart"in self||self.DocumentTouch&&Q(o,self.DocumentTouch))||Boolean(c&&c.msMaxTouchPoints)),ye=Jr(),Be=Boolean(ye&&ye.webkitShowPlaybackTargetPicker),Ee=function(){function r(){this.vp=void 0,this.Vp=!1,this.Ke=ge,this.Ks=!1,this.dp=!0}var e=r.prototype;return e._p=function(){return 0},e.Mp=function(r,e){return!0},e.Lp=function(r){return r>=2*we},ur(r,[{key:"fp",get:function(){return void 0===this.vp&&(this.vp=this._p()),this.vp}},{key:"gp",get:function(){return Rr.Gv?"android":Rr.Uv?"macos":Rr.ru?"ios":Rr.Hv?"windows":"other"}},{key:"pp",get:function(){return Rr.gg?"tv":Rr.Ks?"mobile":"desktop"}},{key:"mp",get:function(){return!Rr.gg}},{key:"wp",get:function(){if(u.screen)return{width:u.screen.width*this.yp,height:u.screen.height*this.yp}}},{key:"yp",get:function(){return u.devicePixelRatio||1}},{key:"bp",get:function(){return Be}},{key:"Ap",get:function(){return!1}},{key:"Sp",get:function(){return!0}},{key:"Tp",get:function(){return!!(Rr.eg||Rr.ru||Rr.S_)||!!Rr.U_}},{key:"kp",get:function(){return Rr.U_}},{key:"Ep",get:function(){return!Rr.ru}},{key:"xp",get:function(){return!0}},{key:"Pp",get:function(){return!0}},{key:"Ip",get:function(){return!1}},{key:"Cp",get:function(){}},{key:"Rp",get:function(){return!0}},{key:"Dp",get:function(){return!1}},{key:"Bp",get:function(){return Rr.U_}},{key:"Np",get:function(){return!1}},{key:"Op",get:function(){return!1}},{key:"Fp",get:function(){return!1}},{key:"Up",get:function(){return!0}}]),r}(),_e=function(r){function e(){return r.call(this)||this}return br(e,r),e}(Ee),Ie=function(r){function e(){return r.apply(this,arguments)||this}return br(e,r),e.prototype.Mp=function(r,e){if(r&&r.Hp&&e&&e.Hp){var i=Qe(r.Hp,"mp4a.40.2")&&Qe(e.Hp,"mp4a.40.5"),A=Qe(r.Hp,"mp4a.40.5")&&Qe(e.Hp,"mp4a.40.2"),f=Qe(r.Hp,"mp4a.40.2")&&Qe(e.Hp,"mp4a.40.34"),n=Qe(r.Hp,"mp4a.40.34")&&Qe(e.Hp,"mp4a.40.2"),a=Qe(r.Hp,"mp4a.40.5")&&Qe(e.Hp,"mp4a.40.34"),t=Qe(r.Hp,"mp4a.40.34")&&Qe(e.Hp,"mp4a.40.5");return!(i||A||f||n||a||t)}return!0},ur(e,[{key:"Cp",get:function(){if(Rr.Uv)return 4096}}]),e}(_e);function Qe(r,e){return r.indexOf(e)>-1}var Ne,Re=function(r){function e(){return r.apply(this,arguments)||this}return br(e,r),e.prototype.Lp=function(r){return r>=2},e}(_e),Ce=function(r){function e(){var e;return(e=r.call(this)||this).Vp=Rr.hg>=11,e.dp=Rr.eg&&!(Rr.ru&&Rr.hg<10),e}return br(e,r),ur(e,[{key:"Np",get:function(){return Rr.hg<17}},{key:"Op",get:function(){return!0}}]),e}(_e),pe=function(r){function e(){return r.apply(this,arguments)||this}return br(e,r),ur(e,[{key:"Rp",get:function(){return!(Rr.m_>=133)}}]),e}(_e);var Ge=function(){var r=Xr();if(!r)return!1;var e=r.muted;return r.muted=!e,r.muted!==e}();!function(){if(Rr.e_)return!1;var r=Xr();if(!r)return!1;var e=r.volume;r.volume=e/2+.1,r.volume}();var me=function(r){function e(e){var i;return(i=r.call(this)||this).Wp=void 0,i.Wp=e,i.Vp=i.Wp.Vp,i.Ke=i.Wp.Ke,i.dp=Ge&&i.Wp.dp,i}br(e,r);var i=e.prototype;return i._p=function(){return this.Wp.fp},i.Mp=function(r,e){return this.Wp.Mp(r,e)},i.Lp=function(r){return this.Wp.Lp(r)},ur(e,[{key:"Cp",get:function(){return this.Wp.Cp}},{key:"Rp",get:function(){return this.Wp.Rp}},{key:"Np",get:function(){return this.Wp.Np}}]),e}(Ee),Ye=function(r){function e(e){var i;return(i=r.call(this,e)||this).Vp=!0,i.Ks=!0,i}return br(e,r),ur(e,[{key:"Ip",get:function(){return Rr.ru}}]),e}(me);var We=function(r){function e(){return r.apply(this,arguments)||this}return br(e,r),e.prototype._p=function(){return function(r){return r&&mr(u.ManagedMediaSource)?u.ManagedMediaSource:mr(u.MediaSource)?u.MediaSource:void 0}(!0)?r.prototype._p.call(this):1},ur(e,[{key:"Ip",get:function(){return!0}}]),e}(Ye),De=function(r){function e(){var e;return(e=r.apply(this,arguments)||this).Xp=void 0,e}return br(e,r),e.prototype.Mp=function(e,i){return r.prototype.Mp.call(this,e,i)},ur(e,[{key:"Ap",get:function(){return Rr.P_<3}},{key:"Sp",get:function(){return Rr.P_>=3}},{key:"wp",get:function(){var r=this;return u.tizen&&!this.Xp&&u.tizen.systeminfo.getPropertyValue("DISPLAY",function(e){var i=e.resolutionWidth,A=e.resolutionHeight;1===i&&1===A||(r.Xp={width:i,height:A})}),this.Xp}},{key:"Dp",get:function(){return Rr.P_<3}}]),e}(me),Se=function(r){function e(){var e;return(e=r.apply(this,arguments)||this).Xp=void 0,e}return br(e,r),ur(e,[{key:"wp",get:function(){var r=this;return u.webOS&&!this.Xp&&u.webOS.deviceInfo(function(e){r.Xp={width:e.screenWidth,height:e.screenHeight}}),this.Xp}},{key:"xp",get:function(){return!1}}]),e}(me),Fe=function(r){function e(){return r.apply(this,arguments)||this}return br(e,r),ur(e,[{key:"Ip",get:function(){return!0}},{key:"Op",get:function(){return this.Wp.Op}}]),e}(me),Te=function(r){function e(){return r.apply(this,arguments)||this}return br(e,r),ur(e,[{key:"Fp",get:function(){return Rr.IS_FIRETV_AFTMM}}]),e}(me);!function(r){Ne=r}(function(){var r=function(){if(Rr.K_)return new Ie;if(Rr.H_||Rr.q_)return new Re;if(Rr.eg)return new Ce;if(Rr.Fg)return new pe;return new _e}();return Rr.ru?new We(r):Rr.L_?new Te(r):Rr.Ks?new Ye(r):Rr.E_?new De(r):Rr.C_?new Se(r):Rr.Uv?new Fe(r):new me(r)}());var Me=!(Rr.q_&&!Rr.G_),Oe=self.console;function Ze(r){if(Gr(r))try{return JSON.stringify(r)}catch(r){}return r}function Le(r){return r.map(Ze).join(" ")}function Ue(r){var e=Oe&&Oe[r];return e?e.bind&&Me?e.bind(Oe):function(){for(var e=arguments.length,i=new Array(e),A=0;A<e;A++)i[A]=arguments[A];Oe[r](Le(i))}:void 0}var Ve=Ue("log")||Yr,Xe=Ue("warn")||Ve.bind(void 0,"WARNING:"),Je=Ue("error")||Ve.bind(void 0,"ERROR:"),xe=function(){var r=Oe&&Oe.assert;return r?r.bind&&Me?r.bind(Oe):function(r){for(var e=arguments.length,i=new Array(e>1?e-1:0),A=1;A<e;A++)i[A-1]=arguments[A];Oe.assert(r,Le(i))}:function(r){for(var e=arguments.length,i=new Array(e>1?e-1:0),A=1;A<e;A++)i[A-1]=arguments[A];r||Je.apply(void 0,[].concat(["Assertion failed:"],i))}}();function He(r,e){for(var i=0;i<e.length;i++){var A=e[i];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),g.defineProperty(r,A.key,A)}}function je(r,e){var i=function(r,e){var i=r.length;if(i<=1)return r;for(var A=new Array(i),f=1;f<i;f*=2){ze(r,e,f,A);var n=r;r=A,A=n}return r}(r,e);return i!==r&&ze(i,null,r.length,r),r}function ze(r,e,i,A){var f,n,a,t,b,k=r.length,u=0,o=2*i;for(f=0;f<k;f+=o)for(a=(n=f+i)+i,n>k&&(n=k),a>k&&(a=k),t=f,b=n;;)if(t<n&&b<a)e(r[t],r[b])<=0?A[u++]=r[t++]:A[u++]=r[b++];else if(t<n)A[u++]=r[t++];else{if(!(b<a))break;A[u++]=r[b++]}}var Pe=/[a-zA-Z]/,Ke=/[0-9]/,qe=/[0-9a-fA-F]/,$e=/^0x/i,ri=/^[0-9]+$/,ei=/^[0-9a-fA-F]+$/,ii=/^[0-7]+$/,Ai=g.prototype.toString,fi=Array.isArray||function(r){return"[object Array]"===Ai.call(r)},ni=void 0!==e&&"symbol"==typeof A;function ai(r){return fi(r)?r:Array.from(r)}function ti(r,e,i){var A=r[e];r[e]=r[i],r[i]=A}function bi(r){return r>=65&&r<=90}function ki(r){return bi(r)||function(r){return r>=97&&r<=122}(r)}function ui(r){return r>=48&&r<=57}function oi(r){return ui(r)||ki(r)}function ci(r){return ui(r)||r>=65&&r<=70||r>=97&&r<=102}function si(r){return bi(r)?r+32:r}function li(r){return ui(r)?r-48:r>=65&&r<=70?r-65+10:r>=97&&r<=102?r-97+10:-1}function hi(r,e){return void 0===e&&(e=!1),0<=r&&r<=9?r+48:10<=r&&r<=15?r+(e?87:55):-1}var vi=y.min,di=String.fromCharCode;function wi(r){for(var e=r.length,i=[],A=0;A<e;A+=16384){var f=vi(A+16384,e);i.push(di.apply(null,r.slice(A,f)))}return i.join("")}var gi=2147483647,yi=/[^\0-\x7E]/,Bi=/[\x2E\u3002\uFF0E\uFF61]/g,Ei={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},_i=y.floor,Ii=String.fromCharCode;function Qi(r){throw new RangeError(Ei[r])}function Ni(r){for(var e=[],i=0,A=r.length;i<A;){var f=r.charCodeAt(i++);if(f>=55296&&f<=56319&&i<A){var n=r.charCodeAt(i++);56320==(64512&n)?e.push(((1023&f)<<10)+(1023&n)+65536):(e.push(f),i--)}else e.push(f)}return e}var Ri,Ci,pi,Gi=function(r,e){return r+22+75*(r<26)-((0!=e)<<5)},mi=function(r,e,i){var A=0;for(r=i?_i(r/700):r>>1,r+=_i(r/e);r>455;A+=36)r=_i(r/35);return _i(A+36*r/(r+38))},Yi=function(r){return function(r,e){var i=r.split("@"),A="";i.length>1&&(A=i[0]+"@",r=i[1]);var f=function(r,e){for(var i=[],A=r.length;A--;)i[A]=e(r[A]);return i}((r=r.replace(Bi,".")).split("."),e).join(".");return A+f}(r,function(r){return yi.test(r)?"xn--"+function(r){for(var e=[],i=(r=Ni(r)).length,A=128,f=0,n=72,a=0,t=r;a<t.length;a++){var b=t[a];b<128&&e.push(Ii(b))}var k=e.length,u=k;for(k&&e.push("-");u<i;){for(var o=gi,c=0,s=r;c<s.length;c++){var l=s[c];l>=A&&l<o&&(o=l)}var h=u+1;o-A>_i((gi-f)/h)&&Qi("overflow"),f+=(o-A)*h,A=o;for(var v=0,d=r;v<d.length;v++){var w=d[v];if(w<A&&++f>gi&&Qi("overflow"),w==A){for(var g=f,y=36;;y+=36){var B=y<=n?1:y>=n+26?26:y-n;if(g<B)break;var E=g-B,_=36-B;e.push(Ii(Gi(B+E%_,0))),g=_i(E/_)}e.push(Ii(Gi(g,0))),n=mi(f,h,u==k),f=0,++u}}++f,++A}return e.join("")}(r):r})};function Wi(r){for(var e=[],i=0;i<r.length;i++){var A=r[i];A>65535&&(A-=65536,e.push(A>>>10&1023|55296),A=56320|1023&A),e.push(A)}return wi(e)}function Di(r){if(r>=55296&&r<=57343)throw new d("Lone surrogate U+"+r.toString(16).toUpperCase()+" is not a scalar value")}function Si(r,e){return r>>e&63|128}function Fi(r,e){4294967168&r?(4294965248&r?4294901760&r?4292870144&r||(e.push(r>>18&7|240),e.push(Si(r,12)),e.push(Si(r,6))):(Di(r),e.push(r>>12&15|224),e.push(Si(r,6))):e.push(r>>6&31|192),e.push(63&r|128)):e.push(r)}function Ti(r){for(var e=[],i=0;i<r.length;i++){Fi(r[i],e)}return e}function Mi(){if(pi>=Ci)throw new d("Invalid byte index");var r=255&Ri[pi];if(pi++,128==(192&r))return 63&r;throw new d("Invalid continuation byte")}function Oi(){var r,e;if(pi>Ci)throw new d("Invalid byte index");if(pi===Ci)return!1;if(r=255&Ri[pi],pi++,!(128&r))return r;if(192==(224&r)){if((e=(31&r)<<6|Mi())>=128)return e;throw new d("Invalid continuation byte")}if(224==(240&r)){if((e=(15&r)<<12|Mi()<<6|Mi())>=2048)return Di(e),e;throw new d("Invalid continuation byte")}if(240==(248&r)&&(e=(7&r)<<18|Mi()<<12|Mi()<<6|Mi())>=65536&&e<=1114111)return e;throw new d("Invalid UTF-8 detected")}function Zi(r){return[37,hi(r>>4),hi(15&r)]}function Li(r){return function(r){return r>=0&&r<=31}(r)||r>126}function Ui(r){return Li(r)||32===r||34===r||60===r||62===r||96===r}function Vi(r){return Ui(r)||35===r||63===r||123===r||125===r}function Xi(r){return Vi(r)||47===r||58===r||59===r||61===r||64===r||r>=91&&r<=94||124===r}function Ji(r){return r<33||r>126||34===r||35===r||60===r||62===r}function xi(r){return Ji(r)||39===r}function Hi(r,e){if(!e(r))return[r];for(var i=Ti([r]),A=[],f=0;f<i.length;f++){var n=i[f];A.push.apply(A,Zi(n))}return A}function ji(r,e){for(var i=[],A=0,f=Ni(r);A<f.length;A++){var n=f[A];i.push.apply(i,Hi(n,e))}return Wi(i)}function zi(r){return function(r){for(var e=[],i=r.length,A=0;A<i;A++){var f=r[A];if(37===f&&A+2<i&&ci(r[A+1])&&ci(r[A+2])){var n=li(r[A+1])<<4|li(r[A+2]);e.push(n),A+=2}else e.push(f)}return e}(Ti(r))}function Pi(r){return Wi(function(r){Ri=r.slice(),Ci=Ri.length,pi=0;for(var e,i=[];!1!==(e=Oi());)i.push(e);return i}(zi(Ni(r))))}function Ki(r){var e=r.length,i=[0,0,0,0,0,0,0,0],A=0,f=null,n=0;if(n<e&&":"===r[n]){if(!(n+1<e&&":"===r[n+1]))throw new w;n+=2,f=A+=1}for(;n<e;){if(8===A)throw new w("Too many groups");if(":"!==r[n]){for(var a=0,t=0;t<4&&n<e&&qe.test(r[n]);)a=a<<4|B(r[n],16),n+=1,t+=1;if("."===r[n]){if(0===t)throw new w;if(n-=t,A>6)throw new w;for(var b=0;n<e;){var k=null;if(b>0){if(!("."===r[n]&&b<4))throw new w;n+=1}if(!Ke.test(r[n]))throw new w;for(;n<e&&Ke.test(r[n]);){var u=B(r[n],10);if(null===k)k=u;else{if(0===k)throw new w;if((k=10*k+u)>255)throw new w}n+=1}i[A]=i[A]<<8|k,2!==(b+=1)&&4!==b||(A+=1)}if(4!==b)throw new w;break}if(":"===r[n]){if((n+=1)===e)throw new w}else if(n<e)throw new w;i[A]=a,A+=1}else{if(null!==f)throw new w("Too many :: groups");n+=1,f=A+=1}}if(null!==f){var o=A-f;for(A=7;0!==A&&o>0;)ti(i,A,f+o-1),A-=1,o-=1}else if(8!==A)throw new w;return i}function qi(r){var e=10,i=ri;return $e.test(r)?(r=r.slice(2),e=16,i=ei):r.length>=2&&"0"===r[0]&&(r=r.slice(1),e=8,i=ii),""===r?0:i.test(r)?B(r,e):void 0}var $i={jp:4},rA=/[\0\t\n\r #%/:?@\[\\\]]/,eA=/[\0\t\n\r #/:?@\[\\\]]/;function iA(r,e){if("["===r[0]){if("]"!==r[r.length-1])throw new w("Invalid IPv6 address");return{jp:2,Qp:Ki(r.slice(1,-1))}}if(!e)return function(r){if(eA.test(r))throw new w("Invalid code point in opaque host");var e=ji(r,Li);return""===e?$i:{jp:3,Kp:e}}(r);var i=function(r){var e=function(r){return Yi(r.toLowerCase())}(r);return e}(Pi(r));if(rA.test(i))throw new w("Invalid code point in host");var A=function(r){var e=r.split(".");if(""===e[e.length-1]&&e.pop(),!(e.length>4)){for(var i=[],A=0;A<e.length;A++){var f=e[A];if(""===f)return;var n=qi(f);if(void 0===n)return;i.push(n)}for(var a=0;a<i.length-1;a++)if(i[a]>255)throw new w;if(i[i.length-1]>=y.pow(256,5-i.length))throw new w;for(var t=i.pop(),b=0;b<i.length;b++)t+=i[b]*y.pow(256,3-b);return t}}(i);return void 0!==A?{jp:1,Qp:A}:""===i?$i:{jp:0,Yp:i}}function AA(r){switch(r.jp){case 0:return r.Yp;case 1:return function(r){for(var e=[],i=r,A=1;A<=4;A++)e.push(""+(255&i)),4!==A&&e.push("."),i>>>=8;return e.reverse().join("")}(r.Qp);case 2:return"["+function(r){for(var e="",i=function(r){for(var e=0,i=0,A=0,f=0,n=0;n<8;n++)0===r[n]?(0===f&&(A=n),f++):(f>i&&(e=A,i=f),f=0);return f>i&&(e=A,i=f),i>1?e:null}(r),A=!1,f=0;f<8;f++){if(A){if(0===r[f])continue;A=!1}i!==f?(e+=r[f].toString(16),7!==f&&(e+=":")):(e+=0===f?"::":":",A=!0)}return e}(r.Qp)+"]";case 3:return r.Kp;case 4:return""}}var fA=/\+/g;function nA(r){return 42===r||45===r||46===r||95===r||oi(r)}function aA(r){for(var e=r.split("&"),i=[],A=0;A<e.length;A++){var f=e[A];if(""!==f){var n=f.indexOf("="),a=void 0,t=void 0;-1!==n?(a=f.slice(0,n),t=f.slice(n+1)):(a=f,t=""),a=a.replace(fA," "),t=t.replace(fA," ");var b=Pi(a),k=Pi(t);i.push([b,k])}}return i}function tA(r){for(var e="",i=0;i<r.length;i++){var A=r[i];i>0&&(e+="&"),e+=bA(Ti(Ni(A[0])))+"="+bA(Ti(Ni(A[1])))}return e}function bA(r){for(var e=[],i=0;i<r.length;i++){var A=r[i];32===A?e.push(43):nA(A)?e.push(A):e.push.apply(e,Zi(A))}return wi(e)}var kA=/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/;function uA(r){var e=""+r,i=kA.exec(e);return i?function(r,e){for(var i=r.length,A=[],f=e;f<i;f++){var n=r.charCodeAt(f);if(cA(n))if(sA(n)||f===i-1)A.push(oA);else{var a=r.charCodeAt(f+1);sA(a)?(A.push(n,a),f++):A.push(oA)}else A.push(n)}return r.slice(0,e)+wi(A)}(e,i.index):e}var oA=65533,cA=function(r){return 55296==(63488&r)},sA=function(r){return!!(1024&r)};function lA(r,e){var i=r[0],A=e[0];return i===A?0:i<A?-1:1}function hA(r){r.Jp.length=0}function vA(r,e){!function(r,e){for(var i=0;i<e.length;i++)r[i]=e[i];r.length=e.length}(r.Jp,aA(e))}function dA(r){if(r.rc){var e=tA(r.Jp);""===e&&(e=null),r.rc.rc.Zp=e}}var wA=function(){function r(r){if(void 0===r&&(r=void 0),this.rc=null,null==r)this.Jp=[];else if("object"==typeof r||"function"==typeof r)if(function(r){return r instanceof wA&&!!fi(r.Jp)&&(!ni||r[A]===gA)}(r))this.Jp=r.Jp.slice();else if(function(r){return null!=r&&(!!fi(r)||!!ni&&"function"==typeof r[A])}(r)){this.Jp=[];for(var e=0,i=ai(r);e<i.length;e++){var f=ai(i[e]);if(2!==f.length)throw new w("Invalid name-value pair");this.Jp.push([uA(f[0]),uA(f[1])])}}else for(var n in this.Jp=[],r)g.prototype.hasOwnProperty.call(r,n)&&this.Jp.push([uA(n),uA(r[n])]);else(r=uA(r)).length>0&&"?"===r[0]&&(r=r.slice(1)),this.Jp=aA(r)}var e=r.prototype;return e.append=function(r,e){r=uA(r),e=uA(e),this.Jp.push([r,e]),dA(this)},e.delete=function(r){r=uA(r);for(var e=this.Jp,i=0;i<e.length;){e[i][0]===r?e.splice(i,1):i++}dA(this)},e.get=function(r){r=uA(r);for(var e=this.Jp,i=0;i<e.length;i++){var A=e[i];if(A[0]===r)return A[1]}return null},e.getAll=function(r){r=uA(r);for(var e=this.Jp,i=[],A=0;A<e.length;A++){var f=e[A];f[0]===r&&i.push(f[1])}return i},e.has=function(r){r=uA(r);for(var e=this.Jp,i=0;i<e.length;i++){if(e[i][0]===r)return!0}return!1},e.set=function(r,e){r=uA(r),e=uA(e);for(var i=this.Jp,A=!1,f=0;f<i.length;){var n=i[f];n[0]===r?A?i.splice(f,1):(n[1]=e,A=!0,f++):f++}A||i.push([r,e]),dA(this)},e.sort=function(){je(this.Jp,lA),dA(this)},e.toString=function(){return tA(this.Jp)},e.entries=function(){return new _A(this.Jp,yA)},e.keys=function(){return new _A(this.Jp,BA)},e.values=function(){return new _A(this.Jp,EA)},e.forEach=function(r){var e=this;this.Jp.forEach(function(i){return r(i[1],i[0],e)})},r}(),gA=wA.prototype.entries;ni&&(wA.prototype[A]=gA);var yA=function(r){return[r[0],r[1]]},BA=function(r){return r[0]},EA=function(r){return r[1]},_A=function(){function r(r,e){this.$p=0,this.Jp=r,this.im=e}return r.prototype.next=function(){return this.$p<this.Jp.length?{done:!1,value:this.im(this.Jp[this.$p++])}:{done:!0,value:void 0}},r}(),IA="null";var QA=g.create(null);QA.ftp=21,QA.file=0,QA.gopher=70,QA.http=80,QA.https=443,QA.ws=80,QA.wss=443;var NA=/^(?:\.|%2e)$/i,RA=/^(?:\.|%2e){2}$/i;function CA(r){return NA.test(r)}function pA(r){return RA.test(r)}function GA(r){return void 0!==QA[r]}function mA(r){return GA(r.nm)}function YA(r){return""!==r.hm||""!==r.um}function WA(r){var e=r.length;if(!(e>=2))return!1;if(!SA(r.slice(0,2)))return!1;if(2!==e){var i=r[2];if(47!==i&&92!==i&&63!==i&&35!==i)return!1}return!0}function DA(r){return 2===r.length&&Pe.test(r[0])&&(":"===r[1]||"|"===r[1])}function SA(r){return 2===r.length&&DA(wi(r))}function FA(r){return DA(r)&&":"===r[1]}function TA(r){var e=r.dm;0!==e.length&&("file"===r.nm&&1===e.length&&FA(e[0])||e.pop())}function MA(r){return null===r.lm||$i===r.lm||r.fm||"file"===r.nm}var OA=-1,ZA=/\t|\n|\r/g,LA=/^[\x00-\x1f ]+|[\x00-\x1f ]+$/g;function UA(r,e,i,A){void 0===i&&(i=null),void 0===A&&(A=null),i||(i=new XA,r=r.replace(LA,""));var f=null!==A?A:0;e=e||null;for(var n=[],a=!1,t=!1,b=!1,k=Ni(r=r.replace(ZA,"")),u=k.length,o=0;o<=u;){var c=o<u?k[o]:OA;switch(f){case 0:if(!ki(c)){if(null===A){n.length=0,f=2;continue}throw new w("Invalid scheme")}n.push(si(c)),f=1;break;case 1:if(oi(c)||43===c||45===c||46===c)n.push(si(c));else{if(58!==c){if(null===A){n.length=0,f=2,o=0;continue}throw new w("Invalid scheme")}var s=Wi(n);if(null!==A){if(GA(i.nm)&&!GA(s))return;if(!GA(i.nm)&&GA(s))return;if((YA(i)||null!==i.vm)&&"file"===s)return;if("file"===i.nm&&(i.lm===$i||null===i.lm))return}if(i.nm=s,null!==A)return void(mA(i)&&i.vm===QA[i.nm]&&(i.vm=null));n.length=0,"file"===i.nm?f=13:mA(i)&&e&&e.nm===i.nm?f=3:mA(i)?f=7:47===k[o+1]?(f=4,o+=1):(i.fm=!0,i.dm.push(""),f=18)}break;case 2:if(!e||e.fm&&35!==c)throw new w("Invalid scheme");e.fm&&35===c?(i.nm=e.nm,i.dm=e.dm.slice(),i.Zp=e.Zp,i._m="",i.fm=!0,f=20):"file"!==e.nm?(f=5,o-=1):(f=13,o-=1);break;case 3:47===c&&47===k[o+1]?f=8:(f=5,o-=1);break;case 4:47===c?f=9:(f=17,o-=1);break;case 5:i.nm=e.nm,OA===c?(i.hm=e.hm,i.um=e.um,i.lm=e.lm,i.vm=e.vm,i.dm=e.dm.slice(),i.Zp=e.Zp):47===c?f=6:63===c?(i.hm=e.hm,i.um=e.um,i.lm=e.lm,i.vm=e.vm,i.dm=e.dm.slice(),i.Zp="",f=19):35===c?(i.hm=e.hm,i.um=e.um,i.lm=e.lm,i.vm=e.vm,i.dm=e.dm.slice(),i.Zp=e.Zp,i._m="",f=20):92===c&&mA(i)?f=6:(i.hm=e.hm,i.um=e.um,i.lm=e.lm,i.vm=e.vm,i.dm=e.dm.slice(),i.dm.pop(),f=17,o-=1);break;case 6:!mA(i)||47!==c&&92!==c?47===c?f=9:(i.hm=e.hm,i.um=e.um,i.lm=e.lm,i.vm=e.vm,f=17,o-=1):f=8;break;case 7:if(47!==c||47!==k[o+1]){f=8;continue}f=8,o+=1;break;case 8:47!==c&&92!==c&&(f=9,o-=1);break;case 9:if(64===c){a&&n.unshift(37,52,48),a=!0;for(var l=0;l<n.length;l++){var h=n[l];if(58!==h||b){var v=Wi(Hi(h,Xi));b?i.um+=v:i.hm+=v}else b=!0}n.length=0}else if(OA===c||47===c||63===c||35===c||mA(i)&&92===c){if(a&&0===n.length)throw new w("Invalid host");o-=n.length+1,n.length=0,f=10}else n.push(c);break;case 10:case 11:if(null!==A&&"file"===i.nm)o-=1,f=15;else if(58!==c||t)if(OA===c||47===c||63===c||35===c||mA(i)&&92===c){if(o-=1,mA(i)&&0===n.length)throw new w("Invalid host");if(null!==A&&0===n.length&&(YA(i)||null!==i.vm))return;var d=iA(Wi(n),mA(i));if(i.lm=d,n.length=0,f=16,null!==A)return}else 91===c?t=!0:93===c&&(t=!1),n.push(c);else{if(0===n.length)throw new w("Invalid host");var g=iA(Wi(n),mA(i));if(i.lm=g,n.length=0,f=12,11===A)return}break;case 12:if(ui(c))n.push(c);else{if(!(OA===c||47===c||63===c||35===c||mA(i)&&92===c||null!==A))throw new w("Invalid port");if(0!==n.length){var y=B(Wi(n),10);if(y>65535)throw new w("Invalid port");i.vm=y===QA[i.nm]?null:y,n.length=0}if(null!==A)return;f=16,o-=1}break;case 13:i.nm="file",47===c||92===c?f=14:e&&"file"===e.nm?OA===c?(i.lm=e.lm,i.dm=e.dm.slice(),i.Zp=e.Zp):63===c?(i.lm=e.lm,i.dm=e.dm.slice(),i.Zp="",f=19):35===c?(i.lm=e.lm,i.dm=e.dm.slice(),i.Zp=e.Zp,i._m="",f=20):(WA(k.slice(o))||(i.lm=e.lm,i.dm=e.dm.slice(),TA(i)),f=17,o-=1):(f=17,o-=1);break;case 14:47===c||92===c?f=15:(e&&"file"===e.nm&&!WA(k.slice(o))&&(FA(e.dm[0])?i.dm.push(e.dm[0]):i.lm=e.lm),f=17,o-=1);break;case 15:if(OA===c||47===c||92===c||63===c||35===c)if(o-=1,null===A&&SA(n))f=17;else if(0===n.length){if(i.lm=$i,null!==A)return;f=16}else{var E=iA(Wi(n),mA(i));if(0===E.jp&&"localhost"===E.Yp&&(E=$i),i.lm=E,null!==A)return;n.length=0,f=16}else n.push(c);break;case 16:mA(i)?(f=17,47!==c&&92!==c&&(o-=1)):null===A&&63===c?(i.Zp="",f=19):null===A&&35===c?(i._m="",f=20):OA!==c&&(f=17,47!==c&&(o-=1));break;case 17:if(OA===c||47===c||mA(i)&&92===c||null===A&&(63===c||35===c)){var _=Wi(n);if(pA(_)?(TA(i),47===c||mA(i)&&92===c||i.dm.push("")):!CA(_)||47===c||mA(i)&&92===c?CA(_)||("file"===i.nm&&0===i.dm.length&&SA(n)&&($i!==i.lm&&null!==i.lm&&(i.lm=$i),n[1]=58,_=Wi(n)),i.dm.push(_)):i.dm.push(""),n.l